From bee69d88e3786a1810903d2345df2f49c0ca4cf2 Mon Sep 17 00:00:00 2001 From: gkbishnoi07 Date: Wed, 5 Nov 2025 10:39:54 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20openMF/w?= =?UTF-8?q?eb-app@5467f3e8362479be09edb5c0b9cc4f6a150a03d0=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...s => account-transfers.module-DO6BMPA2.js} | 2 +- .../{chunk-KX2ZKPHO.js => chunk-2BUEM4AN.js} | 2 +- .../{chunk-5I7WSU35.js => chunk-7XDYUJUV.js} | 2 +- .../{chunk-3XID6S56.js => chunk-JRMODJLE.js} | 2 +- .../{chunk-2GVR7HS2.js => chunk-NQ7FRJVX.js} | 2 +- .../{chunk-CP3ZQJ5C.js => chunk-R2LWMVHI.js} | 2 +- .../{chunk-EIMWP6JY.js => chunk-VYSWMZL6.js} | 2 +- .../{chunk-D4UX3TYT.js => chunk-ZWPHYTML.js} | 2 +- ...LLN7.js => collaterals.module-OVTOQQC3.js} | 2 +- ...O.js => fixed-deposits.module-KYMJW3C7.js} | 4 +- browser/index.html | 2 +- ...e-455IG6WF.js => loans.module-CZ4MCVAE.js} | 4 +- browser/main.js | 1990 ++++++++--------- ... => recurring-deposits.module-2RUP7WIB.js} | 4 +- ...6DKAYMO6.js => savings.module-MJKP5CF4.js} | 4 +- ...-6BWWOTIG.js => shares.module-BZ36OCHH.js} | 2 +- 16 files changed, 1014 insertions(+), 1014 deletions(-) rename browser/{account-transfers.module-3MJMMBU5.js => account-transfers.module-DO6BMPA2.js} (99%) rename browser/{chunk-KX2ZKPHO.js => chunk-2BUEM4AN.js} (99%) rename browser/{chunk-5I7WSU35.js => chunk-7XDYUJUV.js} (97%) rename browser/{chunk-3XID6S56.js => chunk-JRMODJLE.js} (97%) rename browser/{chunk-2GVR7HS2.js => chunk-NQ7FRJVX.js} (89%) rename browser/{chunk-CP3ZQJ5C.js => chunk-R2LWMVHI.js} (91%) rename browser/{chunk-EIMWP6JY.js => chunk-VYSWMZL6.js} (82%) rename browser/{chunk-D4UX3TYT.js => chunk-ZWPHYTML.js} (99%) rename browser/{collaterals.module-IQLSLLN7.js => collaterals.module-OVTOQQC3.js} (99%) rename browser/{fixed-deposits.module-AK5OY6FO.js => fixed-deposits.module-KYMJW3C7.js} (99%) rename browser/{loans.module-455IG6WF.js => loans.module-CZ4MCVAE.js} (99%) rename browser/{recurring-deposits.module-XCGNYUI2.js => recurring-deposits.module-2RUP7WIB.js} (99%) rename browser/{savings.module-6DKAYMO6.js => savings.module-MJKP5CF4.js} (99%) rename browser/{shares.module-6BWWOTIG.js => shares.module-BZ36OCHH.js} (99%) diff --git a/browser/account-transfers.module-3MJMMBU5.js b/browser/account-transfers.module-DO6BMPA2.js similarity index 99% rename from browser/account-transfers.module-3MJMMBU5.js rename to browser/account-transfers.module-DO6BMPA2.js index 28e757ff1..38e6397af 100644 --- a/browser/account-transfers.module-3MJMMBU5.js +++ b/browser/account-transfers.module-DO6BMPA2.js @@ -1,4 +1,4 @@ -import{a as D}from"./chunk-5I7WSU35.js";import{$a as ye,$c as Oe,Ad as pt,Ba as At,Bd as dt,Ca as Mt,Ce as yt,Da as kt,Dc as ht,Dd as ut,E as H,Ea as E,Ec as z,F as qt,Fa as t,Fd as U,Ga as c,H as V,Ha as v,Ia as g,Ic as Q,Id as ft,Ja as Te,Jc as _,K as h,Kc as W,L as C,La as he,Lc as tt,Ma as Ce,Md as Pe,Mf as Re,Na as be,Oc as Ft,Of as Le,Pa as w,Pc as ke,Pf as He,Qa as vt,Qc as et,Qd as xt,Qf as je,Rc as Ct,Sa as o,Sc as Fe,Ta as s,Tb as N,Tc as nt,Ua as Lt,Ve as jt,W as ce,Wb as Tt,Wc as it,Wd as Ne,We as $t,Xb as G,Xe as Ut,Yf as $e,Zb as pe,Zc as at,Ze as Gt,_ as a,_e as zt,ab as Ee,ac as j,af as Qt,bb as Z,bd as bt,bf as Wt,ca as I,cb as P,cd as Be,da as A,dd as F,df as Yt,ea as Vt,ed as q,ef as Jt,gf as Kt,ha as u,hd as $,ja as m,jd as rt,jf as Ot,kb as De,na as n,nc as Ae,nd as Y,oa as e,od as ot,pa as f,pd as we,pe as qe,qa as R,qb as M,qe as Ve,ra as L,rd as st,rg as Ue,sd as J,ta as O,td as Ht,ua as T,ud as K,va as b,vd as lt,wc as k,xd as mt,ya as Rt,yc as Me,zd as ct}from"./chunk-KX2ZKPHO.js";import{a as Pt,b as Nt}from"./chunk-O7S4L63H.js";var We=()=>["../","edit"],Ye=()=>["../","list-account-transactions"];function Je(i,p){i&1&&(n(0,"button",1),t(1),o(2,"translate"),e()),i&2&&(m("routerLink",w(4,Ye)),a(),v(` +import{a as D}from"./chunk-7XDYUJUV.js";import{$a as ye,$c as Oe,Ad as pt,Ba as At,Bd as dt,Ca as Mt,Ce as yt,Da as kt,Dc as ht,Dd as ut,E as H,Ea as E,Ec as z,F as qt,Fa as t,Fd as U,Ga as c,H as V,Ha as v,Ia as g,Ic as Q,Id as ft,Ja as Te,Jc as _,K as h,Kc as W,L as C,La as he,Lc as tt,Ma as Ce,Md as Pe,Mf as Re,Na as be,Oc as Ft,Of as Le,Pa as w,Pc as ke,Pf as He,Qa as vt,Qc as et,Qd as xt,Qf as je,Rc as Ct,Sa as o,Sc as Fe,Ta as s,Tb as N,Tc as nt,Ua as Lt,Ve as jt,W as ce,Wb as Tt,Wc as it,Wd as Ne,We as $t,Xb as G,Xe as Ut,Yf as $e,Zb as pe,Zc as at,Ze as Gt,_ as a,_e as zt,ab as Ee,ac as j,af as Qt,bb as Z,bd as bt,bf as Wt,ca as I,cb as P,cd as Be,da as A,dd as F,df as Yt,ea as Vt,ed as q,ef as Jt,gf as Kt,ha as u,hd as $,ja as m,jd as rt,jf as Ot,kb as De,na as n,nc as Ae,nd as Y,oa as e,od as ot,pa as f,pd as we,pe as qe,qa as R,qb as M,qe as Ve,ra as L,rd as st,rg as Ue,sd as J,ta as O,td as Ht,ua as T,ud as K,va as b,vd as lt,wc as k,xd as mt,ya as Rt,yc as Me,zd as ct}from"./chunk-2BUEM4AN.js";import{a as Pt,b as Nt}from"./chunk-O7S4L63H.js";var We=()=>["../","edit"],Ye=()=>["../","list-account-transactions"];function Je(i,p){i&1&&(n(0,"button",1),t(1),o(2,"translate"),e()),i&2&&(m("routerLink",w(4,Ye)),a(),v(` `,s(2,2,"labels.buttons.View Transactions History"),` `))}function Ke(i,p){i&1&&(n(0,"span"),t(1),o(2,"translate"),e()),i&2&&(a(),v(" ",s(2,1,"labels.inputs.Within Bank")," "))}function Xe(i,p){i&1&&(n(0,"span"),t(1),o(2,"translate"),e()),i&2&&(a(),v(" ",s(2,1,"labels.inputs.Own Account")," "))}var Xt=(()=>{class i{constructor(r){this.route=r,this.allowclientedit=!1,this.route.data.subscribe(d=>{this.standingInstructionsData=d.standingInstructionsData,this.standingInstructionsData.fromClient.id===this.standingInstructionsData.toClient.id&&(this.allowclientedit=!1)})}static{this.\u0275fac=function(d){return new(d||i)(I(N))}}static{this.\u0275cmp=A({type:i,selectors:[["mifosx-view-standing-instructions"]],decls:215,vars:90,consts:[[1,"layout-row","align-end","gap-2px","responsive-column","container","m-b-20"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row-wrap","responsive-column"],[1,"mat-h2","flex-fill"],[3,"inset"],[1,"flex-fill"],[1,"flex-40"],[1,"flex-60"],[4,"ngIf"]],template:function(d,l){d&1&&(n(0,"div",0),t(1,` `),n(2,"button",1),t(3,` diff --git a/browser/chunk-KX2ZKPHO.js b/browser/chunk-2BUEM4AN.js similarity index 99% rename from browser/chunk-KX2ZKPHO.js rename to browser/chunk-2BUEM4AN.js index 4d37d6094..d1dec7703 100644 --- a/browser/chunk-KX2ZKPHO.js +++ b/browser/chunk-2BUEM4AN.js @@ -13,7 +13,7 @@ ${e.map((n,r)=>`${r+1}) ${n.toString()}`).join(` `+t.message,r,e,n),t[nN]=r,t[e0]=null,t}function cN(t,i,e,n=null){t=t&&t.charAt(0)===` `&&t.charAt(1)==rN?t.slice(2):t;let r=Qi(i);if(Array.isArray(i))r=i.map(Qi).join(" -> ");else if(typeof i=="object"){let a=[];for(let o in i)if(i.hasOwnProperty(o)){let s=i[o];a.push(o+":"+(typeof s=="string"?JSON.stringify(s):Qi(s)))}r=`{${a.join(", ")}}`}return`${e}${n?"("+n+")":""}[${r}]: ${t.replace(iN,` `)}`}var hr=Zb(jb("Optional"),8);var Yr=Zb(jb("SkipSelf"),4);function Ns(t,i){let e=t.hasOwnProperty(X3);return e?t[X3]:null}function lN(t,i,e){if(t.length!==i.length)return!1;for(let n=0;nArray.isArray(e)?n8(e,i):i(e))}function Xb(t,i,e){i>=t.length?t.push(e):t.splice(i,0,e)}function t0(t,i){return i>=t.length-1?t.pop():t.splice(i,1)[0]}function uN(t,i){let e=[];for(let n=0;ni;){let a=r-2;t[r]=t[a],r--}t[i]=e,t[i+1]=n}}function I0(t,i,e){let n=z1(t,i);return n>=0?t[n|1]=e:(n=~n,mN(t,n,i,e)),n}function Ph(t,i){let e=z1(t,i);if(e>=0)return t[e|1]}function z1(t,i){return pN(t,i,1)}function pN(t,i,e){let n=0,r=t.length>>e;for(;r!==n;){let a=n+(r-n>>1),o=t[a<i?r=a:n=a+1}return~(r<{e.push(o)};return n8(i,o=>{let s=o;Qh(s,a,[],n)&&(r||=[],r.push(s))}),r!==void 0&&ry(r,a),e}function ry(t,i){for(let e=0;e{i(a,n)})}}function Qh(t,i,e,n){if(t=li(t),!t)return!1;let r=null,a=Gv(t),o=!a&&Fo(t);if(!a&&!o){let d=t.ngModule;if(a=Gv(d),a)r=d;else return!1}else{if(o&&!o.standalone)return!1;r=t}let s=n.has(r);if(o){if(s)return!1;if(n.add(r),o.dependencies){let d=typeof o.dependencies=="function"?o.dependencies():o.dependencies;for(let h of d)Qh(h,i,e,n)}}else if(a){if(a.imports!=null&&!s){n.add(r);let h;try{n8(a.imports,v=>{Qh(v,i,e,n)&&(h||=[],h.push(v))})}finally{}h!==void 0&&ry(h,i)}if(!s){let h=Ns(r)||(()=>new r);i({provide:r,useFactory:h,deps:Ai},r),i({provide:ey,useValue:r,multi:!0},r),i({provide:hl,useValue:()=>ae(r),multi:!0},r)}let d=a.providers;if(d!=null&&!s){let h=t;i8(d,v=>{i(v,h)})}}else return!1;return r!==t&&t.providers!==void 0}function i8(t,i){for(let e of t)qb(e)&&(e=e.\u0275providers),Array.isArray(e)?i8(e,i):i(e)}var gN=Wt({provide:String,useValue:Wt});function ay(t){return t!==null&&typeof t=="object"&&gN in t}function _N(t){return!!(t&&t.useExisting)}function vN(t){return!!(t&&t.useFactory)}function gl(t){return typeof t=="function"}function bN(t){return!!t.useClass}var P0=new A(""),q3={},Qv={},Th;function T0(){return Th===void 0&&(Th=new n0),Th}var fn=class{},E1=class extends fn{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(i,e,n,r){super(),this.parent=e,this.source=n,this.scopes=r,Zh(i,o=>this.processProvider(o)),this.records.set(Jb,ll(void 0,this)),r.has("environment")&&this.records.set(fn,ll(void 0,this));let a=this.records.get(P0);a!=null&&typeof a.value=="string"&&this.scopes.add(a.value),this.injectorDefTypes=new Set(this.get(ey,Ai,ft.Self))}retrieve(i,e){let n=e;return this.get(i,n.optional?m3:zs,n)}destroy(){M1(this),this._destroyed=!0;let i=ht(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of e)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),ht(i)}}onDestroy(i){return M1(this),this._onDestroyHooks.push(i),()=>this.removeOnDestroy(i)}runInContext(i){M1(this);let e=Xa(this),n=qi(void 0),r;try{return i()}finally{Xa(e),qi(n)}}get(i,e=zs,n=ft.Default){if(M1(this),i.hasOwnProperty(qv))return i[qv](this);n=O0(n);let r,a=Xa(this),o=qi(void 0);try{if(!(n&ft.SkipSelf)){let d=this.records.get(i);if(d===void 0){let h=wN(i)&&E0(i);h&&this.injectableDefInScope(h)?d=ll(Kh(i),q3):d=null,this.records.set(i,d)}if(d!=null)return this.hydrate(i,d,n)}let s=n&ft.Self?T0():this.parent;return e=n&ft.Optional&&e===zs?null:e,s.get(i,e)}catch(s){if(s.name==="NullInjectorError"){if((s[e0]=s[e0]||[]).unshift(Qi(i)),a)throw s;return sN(s,i,"R3InjectorError",this.source)}else throw s}finally{qi(o),Xa(a)}}resolveInjectorInitializers(){let i=ht(null),e=Xa(this),n=qi(void 0),r;try{let a=this.get(hl,Ai,ft.Self);for(let o of a)o()}finally{Xa(e),qi(n),ht(i)}}toString(){let i=[],e=this.records;for(let n of e.keys())i.push(Qi(n));return`R3Injector[${i.join(", ")}]`}processProvider(i){i=li(i);let e=gl(i)?i:li(i&&i.provide),n=CN(i);if(!gl(i)&&i.multi===!0){let r=this.records.get(e);r||(r=ll(void 0,q3,!0),r.factory=()=>Yh(r.multi),this.records.set(e,r)),e=i,r.multi.push(i)}this.records.set(e,n)}hydrate(i,e,n){let r=ht(null);try{return e.value===Qv?Yb(Qi(i)):e.value===q3&&(e.value=Qv,e.value=e.factory(void 0,n)),typeof e.value=="object"&&e.value&&MN(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{ht(r)}}injectableDefInScope(i){if(!i.providedIn)return!1;let e=li(i.providedIn);return typeof e=="string"?e==="any"||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(i){let e=this._onDestroyHooks.indexOf(i);e!==-1&&this._onDestroyHooks.splice(e,1)}};function Kh(t){let i=E0(t),e=i!==null?i.factory:Ns(t);if(e!==null)return e;if(t instanceof A)throw new Ce(204,!1);if(t instanceof Function)return yN(t);throw new Ce(204,!1)}function yN(t){if(t.length>0)throw new Ce(204,!1);let e=YH(t);return e!==null?()=>e.factory(t):()=>new t}function CN(t){if(ay(t))return ll(void 0,t.useValue);{let i=oy(t);return ll(i,q3)}}function oy(t,i,e){let n;if(gl(t)){let r=li(t);return Ns(r)||Kh(r)}else if(ay(t))n=()=>li(t.useValue);else if(vN(t))n=()=>t.useFactory(...Yh(t.deps||[]));else if(_N(t))n=(r,a)=>ae(li(t.useExisting),a!==void 0&&a&ft.Optional?ft.Optional:void 0);else{let r=li(t&&(t.useClass||t.provide));if(xN(t))n=()=>new r(...Yh(t.deps));else return Ns(r)||Kh(r)}return n}function M1(t){if(t.destroyed)throw new Ce(205,!1)}function ll(t,i,e=!1){return{factory:t,value:i,multi:e?[]:void 0}}function xN(t){return!!t.deps}function MN(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function wN(t){return typeof t=="function"||typeof t=="object"&&t instanceof A}function Zh(t,i){for(let e of t)Array.isArray(e)?Zh(e,i):e&&qb(e)?Zh(e.\u0275providers,i):i(e)}function Ki(t,i){let e;t instanceof E1?(M1(t),e=t):e=new J3(t);let n,r=Xa(e),a=qi(void 0);try{return i()}finally{Xa(r),qi(a)}}function r8(){return Qb()!==void 0||g1()!=null}function a8(t){if(!r8())throw new Ce(-203,!1)}function DN(t){let i=ni.ng;if(i&&i.\u0275compilerFacade)return i.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function SN(t){return typeof t=="function"}var lo=0,ct=1,et=2,vi=3,qr=4,Zi=5,_l=6,i0=7,Wn=8,vl=9,ao=10,an=11,O1=12,Kv=13,Dl=14,pr=15,Fs=16,dl=17,oo=18,A0=19,sy=20,Ho=21,Ah=22,Bs=23,Ir=24,pl=25,Sn=26,cy=1;var js=7,r0=8,bl=9,_i=10;function No(t){return Array.isArray(t)&&typeof t[cy]=="object"}function uo(t){return Array.isArray(t)&&t[cy]===!0}function o8(t){return(t.flags&4)!==0}function Sl(t){return t.componentOffset>-1}function V0(t){return(t.flags&1)===1}function ya(t){return!!t.template}function a0(t){return(t[et]&512)!==0}function kl(t){return(t[et]&256)===256}var Xh=class{previousValue;currentValue;firstChange;constructor(i,e,n){this.previousValue=i,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}};function ly(t,i,e,n){i!==null?i.applyValueToInputSignal(i,n):t[e]=n}var Pe=(()=>{let t=()=>dy;return t.ngInherit=!0,t})();function dy(t){return t.type.prototype.ngOnChanges&&(t.setInput=EN),kN}function kN(){let t=my(this),i=t?.current;if(i){let e=t.previous;if(e===ba)t.previous=i;else for(let n in i)e[n]=i[n];t.current=null,this.ngOnChanges(i)}}function EN(t,i,e,n,r){let a=this.declaredInputs[n],o=my(t)||ON(t,{previous:ba,current:null}),s=o.current||(o.current={}),d=o.previous,h=d[a];s[a]=new Xh(h&&h.currentValue,e,d===ba),ly(t,i,r,e)}var uy="__ngSimpleChanges__";function my(t){return t[uy]||null}function ON(t,i){return t[uy]=i}var Zv=null;var Qt=function(t,i=null,e){Zv?.(t,i,e)},py="svg",IN="math";function Ca(t){for(;Array.isArray(t);)t=t[lo];return t}function fy(t,i){return Ca(i[t])}function Da(t,i){return Ca(i[t.index])}function s8(t,i){return t.data[i]}function H1(t,i){return t[i]}function hy(t,i,e,n){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),i[e]=n}function xa(t,i){let e=i[t];return No(e)?e:e[lo]}function PN(t){return(t[et]&4)===4}function c8(t){return(t[et]&128)===128}function TN(t){return uo(t[vi])}function Bo(t,i){return i==null?null:t[i]}function gy(t){t[dl]=0}function _y(t){t[et]&1024||(t[et]|=1024,c8(t)&&El(t))}function AN(t,i){for(;t>0;)i=i[Dl],t--;return i}function L0(t){return!!(t[et]&9216||t[Ir]?.dirty)}function Jh(t){t[ao].changeDetectionScheduler?.notify(8),t[et]&64&&(t[et]|=1024),L0(t)&&El(t)}function El(t){t[ao].changeDetectionScheduler?.notify(0);let i=Us(t);for(;i!==null&&!(i[et]&8192||(i[et]|=8192,!c8(i)));)i=Us(i)}function vy(t,i){if(kl(t))throw new Ce(911,!1);t[Ho]===null&&(t[Ho]=[]),t[Ho].push(i)}function VN(t,i){if(t[Ho]===null)return;let e=t[Ho].indexOf(i);e!==-1&&t[Ho].splice(e,1)}function Us(t){let i=t[vi];return uo(i)?i[vi]:i}function l8(t){return t[i0]??=[]}function d8(t){return t.cleanup??=[]}function LN(t,i,e,n){let r=l8(i);r.push(e),t.firstCreatePass&&d8(t).push(n,r.length-1)}var ut={lFrame:wy(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var e6=!1;function RN(){return ut.lFrame.elementDepthCount}function zN(){ut.lFrame.elementDepthCount++}function HN(){ut.lFrame.elementDepthCount--}function u8(){return ut.bindingsEnabled}function by(){return ut.skipHydrationRootTNode!==null}function NN(t){return ut.skipHydrationRootTNode===t}function FN(){ut.skipHydrationRootTNode=null}function je(){return ut.lFrame.lView}function Kt(){return ut.lFrame.tView}function G(t){return ut.lFrame.contextLView=t,t[Wn]}function W(t){return ut.lFrame.contextLView=null,t}function yi(){let t=yy();for(;t!==null&&t.type===64;)t=t.parent;return t}function yy(){return ut.lFrame.currentTNode}function BN(){let t=ut.lFrame,i=t.currentTNode;return t.isParent?i:i.parent}function jo(t,i){let e=ut.lFrame;e.currentTNode=t,e.isParent=i}function m8(){return ut.lFrame.isParent}function p8(){ut.lFrame.isParent=!1}function jN(){return ut.lFrame.contextLView}function Cy(){return e6}function o0(t){let i=e6;return e6=t,i}function Ks(){let t=ut.lFrame,i=t.bindingRootIndex;return i===-1&&(i=t.bindingRootIndex=t.tView.bindingStartIndex),i}function f8(){return ut.lFrame.bindingIndex}function UN(t){return ut.lFrame.bindingIndex=t}function Zs(){return ut.lFrame.bindingIndex++}function N1(t){let i=ut.lFrame,e=i.bindingIndex;return i.bindingIndex=i.bindingIndex+t,e}function $N(){return ut.lFrame.inI18n}function GN(t,i){let e=ut.lFrame;e.bindingIndex=e.bindingRootIndex=t,t6(i)}function WN(){return ut.lFrame.currentDirectiveIndex}function t6(t){ut.lFrame.currentDirectiveIndex=t}function qN(t){let i=ut.lFrame.currentDirectiveIndex;return i===-1?null:t[i]}function h8(){return ut.lFrame.currentQueryIndex}function R0(t){ut.lFrame.currentQueryIndex=t}function YN(t){let i=t[ct];return i.type===2?i.declTNode:i.type===1?t[Zi]:null}function xy(t,i,e){if(e&ft.SkipSelf){let r=i,a=t;for(;r=r.parent,r===null&&!(e&ft.Host);)if(r=YN(a),r===null||(a=a[Dl],r.type&10))break;if(r===null)return!1;i=r,t=a}let n=ut.lFrame=My();return n.currentTNode=i,n.lView=t,!0}function g8(t){let i=My(),e=t[ct];ut.lFrame=i,i.currentTNode=e.firstChild,i.lView=t,i.tView=e,i.contextLView=t,i.bindingIndex=e.bindingStartIndex,i.inI18n=!1}function My(){let t=ut.lFrame,i=t===null?null:t.child;return i===null?wy(t):i}function wy(t){let i={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=i),i}function Dy(){let t=ut.lFrame;return ut.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Sy=Dy;function _8(){let t=Dy();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function QN(t){return(ut.lFrame.contextLView=AN(t,ut.lFrame.contextLView))[Wn]}function Qr(){return ut.lFrame.selectedIndex}function $s(t){ut.lFrame.selectedIndex=t}function Ol(){let t=ut.lFrame;return s8(t.tView,t.selectedIndex)}function Ut(){ut.lFrame.currentNamespace=py}function Sa(){KN()}function KN(){ut.lFrame.currentNamespace=null}function ZN(){return ut.lFrame.currentNamespace}var ky=!0;function z0(){return ky}function H0(t){ky=t}function XN(t,i,e){let{ngOnChanges:n,ngOnInit:r,ngDoCheck:a}=i.type.prototype;if(n){let o=dy(i);(e.preOrderHooks??=[]).push(t,o),(e.preOrderCheckHooks??=[]).push(t,o)}r&&(e.preOrderHooks??=[]).push(0-t,r),a&&((e.preOrderHooks??=[]).push(t,a),(e.preOrderCheckHooks??=[]).push(t,a))}function v8(t,i){for(let e=i.directiveStart,n=i.directiveEnd;e=n)break}else i[d]<0&&(t[dl]+=65536),(s>14>16&&(t[et]&3)===i&&(t[et]+=16384,Xv(s,a)):Xv(s,a)}var fl=-1,Gs=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(i,e,n){this.factory=i,this.canSeeViewProviders=e,this.injectImpl=n}};function eF(t){return(t.flags&8)!==0}function tF(t){return(t.flags&16)!==0}function nF(t,i,e){let n=0;for(;ni){o=a-1;break}}}for(;a>16}function c0(t,i){let e=rF(t),n=i;for(;e>0;)n=n[Dl],e--;return n}var n6=!0;function l0(t){let i=n6;return n6=t,i}var aF=256,Py=aF-1,Ty=5,oF=0,va={};function sF(t,i,e){let n;typeof e=="string"?n=e.charCodeAt(0)||0:e.hasOwnProperty(D1)&&(n=e[D1]),n==null&&(n=e[D1]=oF++);let r=n&Py,a=1<>Ty)]|=a}function d0(t,i){let e=Ay(t,i);if(e!==-1)return e;let n=i[ct];n.firstCreatePass&&(t.injectorIndex=i.length,Lh(n.data,t),Lh(i,null),Lh(n.blueprint,null));let r=b8(t,i),a=t.injectorIndex;if(Iy(r)){let o=s0(r),s=c0(r,i),d=s[ct].data;for(let h=0;h<8;h++)i[a+h]=s[o+h]|d[o+h]}return i[a+8]=r,a}function Lh(t,i){t.push(0,0,0,0,0,0,0,0,i)}function Ay(t,i){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||i[t.injectorIndex+8]===null?-1:t.injectorIndex}function b8(t,i){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let e=0,n=null,r=i;for(;r!==null;){if(n=Hy(r),n===null)return fl;if(e++,r=r[Dl],n.injectorIndex!==-1)return n.injectorIndex|e<<16}return fl}function i6(t,i,e){sF(t,i,e)}function cF(t,i){if(i==="class")return t.classes;if(i==="style")return t.styles;let e=t.attrs;if(e){let n=e.length,r=0;for(;r>20,C=n?s:s+v,S=r?s+v:h;for(let D=C;D=d&&L.type===e)return D}if(r){let D=o[d];if(D&&ya(D)&&D.type===e)return d}return null}function I1(t,i,e,n,r){let a=t[e],o=i.data;if(a instanceof Gs){let s=a;s.resolving&&Yb(eN(o[e]));let d=l0(s.canSeeViewProviders);s.resolving=!0;let h,v=s.injectImpl?qi(s.injectImpl):null,C=xy(t,n,ft.Default);try{a=t[e]=s.factory(void 0,r,o,t,n),i.firstCreatePass&&e>=n.directiveStart&&XN(e,o[e],i)}finally{v!==null&&qi(v),l0(d),s.resolving=!1,Sy()}}return a}function dF(t){if(typeof t=="string")return t.charCodeAt(0)||0;let i=t.hasOwnProperty(D1)?t[D1]:void 0;return typeof i=="number"?i>=0?i&Py:uF:i}function eb(t,i,e){let n=1<>Ty)]&n)}function tb(t,i){return!(t&ft.Self)&&!(t&ft.Host&&i)}var Hs=class{_tNode;_lView;constructor(i,e){this._tNode=i,this._lView=e}get(i,e,n){return Ry(this._tNode,this._lView,i,O0(n),e)}};function uF(){return new Hs(yi(),je())}function we(t){return R1(()=>{let i=t.prototype.constructor,e=i[X3]||r6(i),n=Object.prototype,r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==n;){let a=r[X3]||r6(r);if(a&&a!==e)return a;r=Object.getPrototypeOf(r)}return a=>new a})}function r6(t){return Ub(t)?()=>{let i=r6(li(t));return i&&i()}:Ns(t)}function mF(t,i,e,n,r){let a=t,o=i;for(;a!==null&&o!==null&&o[et]&2048&&!a0(o);){let s=zy(a,o,e,n|ft.Self,va);if(s!==va)return s;let d=a.parent;if(!d){let h=o[sy];if(h){let v=h.get(e,va,n);if(v!==va)return v}d=Hy(o),o=o[Dl]}a=d}return r}function Hy(t){let i=t[ct],e=i.type;return e===2?i.declTNode:e===1?t[Zi]:null}function N0(t){return cF(yi(),t)}function nb(t,i=null,e=null,n){let r=Ny(t,i,e,n);return r.resolveInjectorInitializers(),r}function Ny(t,i=null,e=null,n,r=new Set){let a=[e||Ai,hN(t)];return n=n||(typeof t=="object"?void 0:Qi(t)),new E1(a,i||T0(),n||null,r)}var Te=class t{static THROW_IF_NOT_FOUND=zs;static NULL=new n0;static create(i,e){if(Array.isArray(i))return nb({name:""},e,i,"");{let n=i.name??"";return nb({name:n},i.parent,i.providers,n)}}static \u0275prov=R({token:t,providedIn:"any",factory:()=>ae(Jb)});static __NG_ELEMENT_ID__=-1};var hn=class{attributeName;constructor(i){this.attributeName=i}__NG_ELEMENT_ID__=()=>N0(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}},pF=new A("");pF.__NG_ELEMENT_ID__=t=>{let i=yi();if(i===null)throw new Ce(204,!1);if(i.type&2)return i.value;if(t&ft.Optional)return null;throw new Ce(204,!1)};var Fy=!1,Uo=(()=>{class t{static __NG_ELEMENT_ID__=fF;static __NG_ENV_ID__=e=>e}return t})(),u0=class extends Uo{_lView;constructor(i){super(),this._lView=i}onDestroy(i){let e=this._lView;return kl(e)?(i(),()=>{}):(vy(e,i),()=>VN(e,i))}};function fF(){return new u0(je())}var Ws=class{},y8=new A("",{providedIn:"root",factory:()=>!1});var By=new A(""),jy=new A(""),mo=(()=>{class t{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new Je(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let e=this.taskId++;return this.pendingTasks.add(e),e}has(e){return this.pendingTasks.has(e)}remove(e){this.pendingTasks.delete(e),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=R({token:t,providedIn:"root",factory:()=>new t})}return t})();var a6=class extends N{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(i=!1){super(),this.__isAsync=i,r8()&&(this.destroyRef=u(Uo,{optional:!0})??void 0,this.pendingTasks=u(mo,{optional:!0})??void 0)}emit(i){let e=ht(null);try{super.next(i)}finally{ht(e)}}subscribe(i,e,n){let r=i,a=e||(()=>null),o=n;if(i&&typeof i=="object"){let d=i;r=d.next?.bind(d),a=d.error?.bind(d),o=d.complete?.bind(d)}this.__isAsync&&(a=this.wrapInTimeout(a),r&&(r=this.wrapInTimeout(r)),o&&(o=this.wrapInTimeout(o)));let s=super.subscribe({next:r,error:a,complete:o});return i instanceof Me&&i.add(s),s}wrapInTimeout(i){return e=>{let n=this.pendingTasks?.add();setTimeout(()=>{try{i(e)}finally{n!==void 0&&this.pendingTasks?.remove(n)}})}}},j=a6;function P1(...t){}function Uy(t){let i,e;function n(){t=P1;try{e!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(e),i!==void 0&&clearTimeout(i)}catch{}}return i=setTimeout(()=>{t(),n()}),typeof requestAnimationFrame=="function"&&(e=requestAnimationFrame(()=>{t(),n()})),()=>n()}function ib(t){return queueMicrotask(()=>t()),()=>{t=P1}}var C8="isAngularZone",m0=C8+"_ID",hF=0,se=class t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new j(!1);onMicrotaskEmpty=new j(!1);onStable=new j(!1);onError=new j(!1);constructor(i){let{enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1,scheduleInRootZone:a=Fy}=i;if(typeof Zone>"u")throw new Ce(908,!1);Zone.assertZonePatched();let o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.callbackScheduled=!1,o.scheduleInRootZone=a,vF(o)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(C8)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new Ce(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new Ce(909,!1)}run(i,e,n){return this._inner.run(i,e,n)}runTask(i,e,n,r){let a=this._inner,o=a.scheduleEventTask("NgZoneEvent: "+r,i,gF,P1,P1);try{return a.runTask(o,e,n)}finally{a.cancelTask(o)}}runGuarded(i,e,n){return this._inner.runGuarded(i,e,n)}runOutsideAngular(i){return this._outer.run(i)}},gF={};function x8(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function _F(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function i(){Uy(()=>{t.callbackScheduled=!1,o6(t),t.isCheckStableRunning=!0,x8(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{i()}):t._outer.run(()=>{i()}),o6(t)}function vF(t){let i=()=>{_F(t)},e=hF++;t._inner=t._inner.fork({name:"angular",properties:{[C8]:!0,[m0]:e,[m0+e]:!0},onInvokeTask:(n,r,a,o,s,d)=>{if(bF(d))return n.invokeTask(a,o,s,d);try{return rb(t),n.invokeTask(a,o,s,d)}finally{(t.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&i(),ab(t)}},onInvoke:(n,r,a,o,s,d,h)=>{try{return rb(t),n.invoke(a,o,s,d,h)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!yF(d)&&i(),ab(t)}},onHasTask:(n,r,a,o)=>{n.hasTask(a,o),r===a&&(o.change=="microTask"?(t._hasPendingMicrotasks=o.microTask,o6(t),x8(t)):o.change=="macroTask"&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(n,r,a,o)=>(n.handleError(a,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}function o6(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function rb(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function ab(t){t._nesting--,x8(t)}var p0=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new j;onMicrotaskEmpty=new j;onStable=new j;onError=new j;run(i,e,n){return i.apply(e,n)}runGuarded(i,e,n){return i.apply(e,n)}runOutsideAngular(i){return i()}runTask(i,e,n,r){return i.apply(e,n)}};function bF(t){return $y(t,"__ignore_ng_zone__")}function yF(t){return $y(t,"__scheduler_tick__")}function $y(t,i){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[i]===!0}function CF(t="zone.js",i){return t==="noop"?new p0:t==="zone.js"?new se(i):t}var Vi=class{_console=console;handleError(i){this._console.error("ERROR",i)}},xF=new A("",{providedIn:"root",factory:()=>{let t=u(se),i=u(Vi);return e=>t.runOutsideAngular(()=>i.handleError(e))}});function ob(t,i){return Bb(t,i)}function MF(t){return Bb(Fb,t)}var Gy=(ob.required=MF,ob);function wF(){return Il(yi(),je())}function Il(t,i){return new Y(Da(t,i))}var Y=(()=>{class t{nativeElement;constructor(e){this.nativeElement=e}static __NG_ELEMENT_ID__=wF}return t})();function Wy(t){return t instanceof Y?t.nativeElement:t}function $o(t){return typeof t=="function"&&t[Gi]!==void 0}function zn(t,i){let e=uh(t,i?.equal),n=e[Gi];return e.set=r=>h1(n,r),e.update=r=>mh(n,r),e.asReadonly=DF.bind(e),e}function DF(){let t=this[Gi];if(t.readonlyFn===void 0){let i=()=>this();i[Gi]=t,t.readonlyFn=i}return t.readonlyFn}function qy(t){return $o(t)&&typeof t.set=="function"}function SF(){return this._results[Symbol.iterator]()}var kn=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new N}constructor(i=!1){this._emitDistinctChangesOnly=i}get(i){return this._results[i]}map(i){return this._results.map(i)}filter(i){return this._results.filter(i)}find(i){return this._results.find(i)}reduce(i,e){return this._results.reduce(i,e)}forEach(i){this._results.forEach(i)}some(i){return this._results.some(i)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(i,e){this.dirty=!1;let n=dN(i);(this._changesDetected=!lN(this._results,n,e))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(i){this._onDirty=i}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=SF};function Yy(t){return(t.flags&128)===128}var Qy=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(Qy||{}),Ky=new Map,kF=0;function EF(){return kF++}function OF(t){Ky.set(t[A0],t)}function s6(t){Ky.delete(t[A0])}var sb="__ngContext__";function Pl(t,i){No(i)?(t[sb]=i[A0],OF(i)):t[sb]=i}function Zy(t){return Jy(t[O1])}function Xy(t){return Jy(t[qr])}function Jy(t){for(;t!==null&&!uo(t);)t=t[qr];return t}var c6;function eC(t){c6=t}function tC(){if(c6!==void 0)return c6;if(typeof document<"u")return document;throw new Ce(210,!1)}var Xs=new A("",{providedIn:"root",factory:()=>IF}),IF="ng",M8=new A(""),Go=new A("",{providedIn:"platform",factory:()=>"unknown"});var ze=new A(""),F1=new A("",{providedIn:"root",factory:()=>tC().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var PF="h",TF="b";var nC=!1,AF=new A("",{providedIn:"root",factory:()=>nC});var w8=function(t){return t[t.CHANGE_DETECTION=0]="CHANGE_DETECTION",t[t.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",t}(w8||{}),Tl=new A(""),cb=new Set;function Wo(t){cb.has(t)||(cb.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var D8=(()=>{class t{view;node;constructor(e,n){this.view=e,this.node=n}static __NG_ELEMENT_ID__=VF}return t})();function VF(){return new D8(je(),yi())}var ul=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(ul||{}),iC=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=R({token:t,providedIn:"root",factory:()=>new t})}return t})(),LF=[ul.EarlyRead,ul.Write,ul.MixedReadWrite,ul.Read],RF=(()=>{class t{ngZone=u(se);scheduler=u(Ws);errorHandler=u(Vi,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){u(Tl,{optional:!0})}execute(){let e=this.sequences.size>0;e&&Qt(16),this.executing=!0;for(let n of LF)for(let r of this.sequences)if(!(r.erroredOrDestroyed||!r.hooks[n]))try{r.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let a=r.hooks[n];return a(r.pipelinedValue)},r.snapshot))}catch(a){r.erroredOrDestroyed=!0,this.errorHandler?.handleError(a)}this.executing=!1;for(let n of this.sequences)n.afterRun(),n.once&&(this.sequences.delete(n),n.destroy());for(let n of this.deferredRegistrations)this.sequences.add(n);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),e&&Qt(17)}register(e){let{view:n}=e;n!==void 0?((n[pl]??=[]).push(e),El(n),n[et]|=8192):this.executing?this.deferredRegistrations.add(e):this.addSequence(e)}addSequence(e){this.sequences.add(e),this.scheduler.notify(7)}unregister(e){this.executing&&this.sequences.has(e)?(e.erroredOrDestroyed=!0,e.pipelinedValue=void 0,e.once=!0):(this.sequences.delete(e),this.deferredRegistrations.delete(e))}maybeTrace(e,n){return n?n.run(w8.AFTER_NEXT_RENDER,e):e()}static \u0275prov=R({token:t,providedIn:"root",factory:()=>new t})}return t})(),l6=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(i,e,n,r,a,o=null){this.impl=i,this.hooks=e,this.view=n,this.once=r,this.snapshot=o,this.unregisterOnDestroy=a?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let i=this.view?.[pl];i&&(this.view[pl]=i.filter(e=>e!==this))}};function Js(t,i){!i?.injector&&a8(Js);let e=i?.injector??u(Te);return Wo("NgAfterRender"),rC(t,e,i,!1)}function kt(t,i){!i?.injector&&a8(kt);let e=i?.injector??u(Te);return Wo("NgAfterNextRender"),rC(t,e,i,!0)}function zF(t,i){if(t instanceof Function){let e=[void 0,void 0,void 0,void 0];return e[i]=t,e}else return[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function rC(t,i,e,n){let r=i.get(iC);r.impl??=i.get(RF);let a=i.get(Tl,null,{optional:!0}),o=e?.phase??ul.MixedReadWrite,s=e?.manualCleanup!==!0?i.get(Uo):null,d=i.get(D8,null,{optional:!0}),h=new l6(r.impl,zF(t,o),d?.view,n,s,a?.snapshot(null));return r.impl.register(h),h}var HF=(t,i,e,n)=>{};function NF(t,i,e,n){HF(t,i,e,n)}var FF=()=>null;function aC(t,i,e=!1){return FF(t,i,e)}function oC(t,i){let e=t.contentQueries;if(e!==null){let n=ht(null);try{for(let r=0;rt,createScript:t=>t,createScriptURL:t=>t})}catch{}return j3}function F0(t){return BF()?.createHTML(t)||t}var U3;function sC(){if(U3===void 0&&(U3=null,ni.trustedTypes))try{U3=ni.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return U3}function lb(t){return sC()?.createHTML(t)||t}function db(t){return sC()?.createScriptURL(t)||t}var so=class{changingThisBreaksApplicationSecurity;constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Nb})`}},u6=class extends so{getTypeName(){return"HTML"}},m6=class extends so{getTypeName(){return"Style"}},p6=class extends so{getTypeName(){return"Script"}},f6=class extends so{getTypeName(){return"URL"}},h6=class extends so{getTypeName(){return"ResourceURL"}};function Pr(t){return t instanceof so?t.changingThisBreaksApplicationSecurity:t}function po(t,i){let e=jF(t);if(e!=null&&e!==i){if(e==="ResourceURL"&&i==="URL")return!0;throw new Error(`Required a safe ${i}, got a ${e} (see ${Nb})`)}return e===i}function jF(t){return t instanceof so&&t.getTypeName()||null}function cC(t){return new u6(t)}function lC(t){return new m6(t)}function dC(t){return new p6(t)}function uC(t){return new f6(t)}function mC(t){return new h6(t)}function UF(t){let i=new _6(t);return $F()?new g6(i):i}var g6=class{inertDocumentHelper;constructor(i){this.inertDocumentHelper=i}getInertBodyElement(i){i=""+i;try{let e=new window.DOMParser().parseFromString(F0(i),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(i):(e.firstChild?.remove(),e)}catch{return null}}},_6=class{defaultDoc;inertDocument;constructor(i){this.defaultDoc=i,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(i){let e=this.inertDocument.createElement("template");return e.innerHTML=F0(i),e}};function $F(){try{return!!new window.DOMParser().parseFromString(F0(""),"text/html")}catch{return!1}}var GF=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function B0(t){return t=String(t),t.match(GF)?t:"unsafe:"+t}function fo(t){let i={};for(let e of t.split(","))i[e]=!0;return i}function B1(...t){let i={};for(let e of t)for(let n in e)e.hasOwnProperty(n)&&(i[n]=!0);return i}var pC=fo("area,br,col,hr,img,wbr"),fC=fo("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),hC=fo("rp,rt"),WF=B1(hC,fC),qF=B1(fC,fo("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),YF=B1(hC,fo("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),ub=B1(pC,qF,YF,WF),gC=fo("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),QF=fo("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),KF=fo("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),ZF=B1(gC,QF,KF),XF=fo("script,style,template"),v6=class{sanitizedSomething=!1;buf=[];sanitizeChildren(i){let e=i.firstChild,n=!0,r=[];for(;e;){if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild){r.push(e),e=tB(e);continue}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let a=eB(e);if(a){e=a;break}e=r.pop()}}return this.buf.join("")}startElement(i){let e=mb(i).toLowerCase();if(!ub.hasOwnProperty(e))return this.sanitizedSomething=!0,!XF.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);let n=i.attributes;for(let r=0;r"),!0}endElement(i){let e=mb(i).toLowerCase();ub.hasOwnProperty(e)&&!pC.hasOwnProperty(e)&&(this.buf.push(""))}chars(i){this.buf.push(pb(i))}};function JF(t,i){return(t.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function eB(t){let i=t.nextSibling;if(i&&t!==i.previousSibling)throw _C(i);return i}function tB(t){let i=t.firstChild;if(i&&JF(t,i))throw _C(i);return i}function mb(t){let i=t.nodeName;return typeof i=="string"?i:"FORM"}function _C(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var nB=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,iB=/([^\#-~ |!])/g;function pb(t){return t.replace(/&/g,"&").replace(nB,function(i){let e=i.charCodeAt(0),n=i.charCodeAt(1);return"&#"+((e-55296)*1024+(n-56320)+65536)+";"}).replace(iB,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(//g,">")}var $3;function k8(t,i){let e=null;try{$3=$3||UF(t);let n=i?String(i):"";e=$3.getInertBodyElement(n);let r=5,a=n;do{if(r===0)throw new Error("Failed to sanitize html because the input is unstable");r--,n=a,a=e.innerHTML,e=$3.getInertBodyElement(n)}while(n!==a);let s=new v6().sanitizeChildren(fb(e)||e);return F0(s)}finally{if(e){let n=fb(e)||e;for(;n.firstChild;)n.firstChild.remove()}}}function fb(t){return"content"in t&&rB(t)?t.content:null}function rB(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var di=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(di||{});function Al(t){let i=O8();return i?lb(i.sanitize(di.HTML,t)||""):po(t,"HTML")?lb(Pr(t)):k8(tC(),Yi(t))}function E8(t){let i=O8();return i?i.sanitize(di.URL,t)||"":po(t,"URL")?Pr(t):B0(Yi(t))}function aB(t){let i=O8();if(i)return db(i.sanitize(di.RESOURCE_URL,t)||"");if(po(t,"ResourceURL"))return db(Pr(t));throw new Ce(904,!1)}function oB(t,i){return i==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||i==="href"&&(t==="base"||t==="link")?aB:E8}function vC(t,i,e){return oB(i,e)(t)}function O8(){let t=je();return t&&t[ao].sanitizer}var sB=/^>|^->||--!>|)/g,lB="\u200B$1\u200B";function dB(t){return t.replace(sB,i=>i.replace(cB,lB))}function Zue(t){return t.ownerDocument.defaultView}function Xue(t){return t.ownerDocument}function bC(t){return t instanceof Function?t():t}function uB(t,i,e){let n=t.length;for(;;){let r=t.indexOf(i,e);if(r===-1)return r;if(r===0||t.charCodeAt(r-1)<=32){let a=i.length;if(r+a===n||t.charCodeAt(r+a)<=32)return r}e=r+1}}var yC="ng-template";function mB(t,i,e,n){let r=0;if(n){for(;r-1){let a;for(;++ra?C="":C=r[v+1].toLowerCase(),n&2&&h!==C){if(Gr(n))return!1;o=!0}}}}return Gr(n)||o}function Gr(t){return(t&1)===0}function hB(t,i,e,n){if(i===null)return-1;let r=0;if(n||!e){let a=!1;for(;r-1)for(e++;e0?'="'+s+'"':"")+"]"}else n&8?r+="."+o:n&4&&(r+=" "+o);else r!==""&&!Gr(o)&&(i+=hb(a,r),r=""),n=o,a=a||!Gr(n);e++}return r!==""&&(i+=hb(a,r)),i}function CB(t){return t.map(yB).join(",")}function xB(t){let i=[],e=[],n=1,r=2;for(;nSn&&kC(t,i,Sn,!1),Qt(o?2:0,r),e(n,r)}finally{$s(a),Qt(o?3:1,r)}}function U0(t,i,e){zB(t,i,e),(e.flags&64)===64&&HB(t,i,e)}function V8(t,i,e=Da){let n=i.localNames;if(n!==null){let r=i.index+1;for(let a=0;anull;function LB(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function j1(t,i,e,n,r,a,o,s){if(!s&&R8(i,t,e,n,r)){Sl(i)&&RB(e,i.index);return}if(i.type&3){let d=Da(i,e);n=LB(n),r=o!=null?o(r,i.value||"",n):r,a.setProperty(d,n,r)}else i.type&12}function RB(t,i){let e=xa(i,t);e[et]&16||(e[et]|=64)}function zB(t,i,e){let n=e.directiveStart,r=e.directiveEnd;Sl(e)&&PB(i,e,t.data[n+e.componentOffset]),t.firstCreatePass||d0(e,i);let a=e.initialInputs;for(let o=n;o=0?n[s]():n[-s].unsubscribe(),o+=2}else{let s=n[e[o+1]];e[o].call(s)}n!==null&&(i[i0]=null);let r=i[Ho];if(r!==null){i[Ho]=null;for(let o=0;o{El(t.lView)},consumerOnSignalRead(){this.lView[Ir]=this}});function dj(t){let i=t[Ir]??Object.create(uj);return i.lView=t,i}var uj=Be(q({},qc),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let i=Us(t.lView);for(;i&&!RC(i[ct]);)i=Us(i);i&&_y(i)},consumerOnSignalRead(){this.lView[Ir]=this}});function RC(t){return t.type!==2}function zC(t){if(t[Bs]===null)return;let i=!0;for(;i;){let e=!1;for(let n of t[Bs])n.dirty&&(e=!0,n.zone===null||Zone.current===n.zone?n.run():n.zone.run(()=>n.run()));i=e&&!!(t[et]&8192)}}var mj=100;function HC(t,i=!0,e=0){let r=t[ao].rendererFactory,a=!1;a||r.begin?.();try{pj(t,e)}catch(o){throw i&&UB(t,o),o}finally{a||r.end?.()}}function pj(t,i){let e=Cy();try{o0(!0),C6(t,i);let n=0;for(;L0(t);){if(n===mj)throw new Ce(103,!1);n++,C6(t,1)}}finally{o0(e)}}function fj(t,i,e,n){if(kl(i))return;let r=i[et],a=!1,o=!1;g8(i);let s=!0,d=null,h=null;a||(RC(t)?(h=oj(i),d=p1(h)):oh()===null?(s=!1,h=dj(i),d=p1(h)):i[Ir]&&(f1(i[Ir]),i[Ir]=null));try{gy(i),UN(t.bindingStartIndex),e!==null&&EC(t,i,e,2,n);let v=(r&3)===3;if(!a)if(v){let D=t.preOrderCheckHooks;D!==null&&Y3(i,D,null)}else{let D=t.preOrderHooks;D!==null&&Q3(i,D,0,null),Vh(i,0)}if(o||hj(i),zC(i),NC(i,0),t.contentQueries!==null&&oC(t,i),!a)if(v){let D=t.contentCheckHooks;D!==null&&Y3(i,D)}else{let D=t.contentHooks;D!==null&&Q3(i,D,1),Vh(i,1)}_j(t,i);let C=t.components;C!==null&&BC(i,C,0);let S=t.viewQuery;if(S!==null&&d6(2,S,n),!a)if(v){let D=t.viewCheckHooks;D!==null&&Y3(i,D)}else{let D=t.viewHooks;D!==null&&Q3(i,D,2),Vh(i,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),i[Ah]){for(let D of i[Ah])D();i[Ah]=null}a||(VC(i),i[et]&=-73)}catch(v){throw a||El(i),v}finally{h!==null&&(o3(h,d),s&&cj(h)),_8()}}function NC(t,i){for(let e=Zy(t);e!==null;e=Xy(e))for(let n=_i;n0&&(t[e-1][qr]=n[qr]);let a=t0(t,_i+i);YB(n[ct],n);let o=a[oo];o!==null&&o.detachView(a[ct]),n[vi]=null,n[qr]=null,n[et]&=-129}return n}function vj(t,i,e,n){let r=_i+n,a=e.length;n>0&&(e[r-1][qr]=i),n-1&&(T1(i,n),t0(e,n))}this._attachedToViewContainer=!1}$0(this._lView[ct],this._lView)}onDestroy(i){vy(this._lView,i)}markForCheck(){j8(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[et]&=-129}reattach(){Jh(this._lView),this._lView[et]|=128}detectChanges(){this._lView[et]|=1024,HC(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Ce(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let i=a0(this._lView),e=this._lView[Fs];e!==null&&!i&&F8(e,this._lView),OC(this._lView[ct],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new Ce(902,!1);this._appRef=i;let e=a0(this._lView),n=this._lView[Fs];n!==null&&!e&&GC(n,this._lView),Jh(this._lView)}};var Qe=(()=>{class t{static __NG_ELEMENT_ID__=Cj}return t})(),bj=Qe,yj=class extends bj{_declarationLView;_declarationTContainer;elementRef;constructor(i,e,n){super(),this._declarationLView=i,this._declarationTContainer=e,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(i,e){return this.createEmbeddedViewImpl(i,e)}createEmbeddedViewImpl(i,e,n){let r=U1(this._declarationLView,this._declarationTContainer,i,{embeddedViewInjector:e,dehydratedView:n});return new A1(r)}};function Cj(){return q0(yi(),je())}function q0(t,i){return t.type&4?new yj(i,t,Il(t,i)):null}function Vl(t,i,e,n,r){let a=t.data[i];if(a===null)a=xj(t,i,e,n,r),$N()&&(a.flags|=32);else if(a.type&64){a.type=e,a.value=n,a.attrs=r;let o=BN();a.injectorIndex=o===null?-1:o.injectorIndex}return jo(a,!0),a}function xj(t,i,e,n,r){let a=yy(),o=m8(),s=o?a:a&&a.parent,d=t.data[i]=wj(t,s,e,i,n,r);return Mj(t,d,a,o),d}function Mj(t,i,e,n){t.firstChild===null&&(t.firstChild=i),e!==null&&(n?e.child==null&&i.parent!==null&&(e.child=i):e.next===null&&(e.next=i,i.prev=e))}function wj(t,i,e,n,r,a){let o=i?i.injectorIndex:-1,s=0;return by()&&(s|=128),{type:e,index:n,insertBeforeIndex:null,injectorIndex:o,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:s,providerIndexes:0,value:r,attrs:a,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:i,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var tme=new RegExp(`^(\\d+)*(${TF}|${PF})*(.*)`);var Dj=()=>null;function xl(t,i){return Dj(t,i)}var Sj=class{},WC=class{},x6=class{resolveComponentFactory(i){throw Error(`No component factory found for ${Qi(i)}.`)}},Y0=class{static NULL=new x6},En=class{},Ke=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>kj()}return t})();function kj(){let t=je(),i=yi(),e=xa(i.index,t);return(No(e)?e:t)[an]}var Ej=(()=>{class t{static \u0275prov=R({token:t,providedIn:"root",factory:()=>null})}return t})();var zh={},M6=class{injector;parentInjector;constructor(i,e){this.injector=i,this.parentInjector=e}get(i,e,n){n=O0(n);let r=this.injector.get(i,zh,n);return r!==zh||e===zh?r:this.parentInjector.get(i,e,n)}};function w6(t,i,e){let n=e?t.styles:null,r=e?t.classes:null,a=0;if(i!==null)for(let o=0;o0&&(e.directiveToIndex=new Map);for(let S=0;S0;){let e=t[--i];if(typeof e=="number"&&e<0)return e}return 0}function Hj(t,i,e){if(e){if(i.exportAs)for(let n=0;n{let[e,n,r]=t[i],a={propName:e,templateName:i,isSignal:(n&j0.SignalBased)!==0};return r&&(a.transform=r),a})}function Bj(t){return Object.keys(t).map(i=>({propName:t[i],templateName:i}))}function jj(t,i,e){let n=i instanceof fn?i:i?.injector;return n&&t.getStandaloneInjector!==null&&(n=t.getStandaloneInjector(n)||n),n?new M6(e,n):e}function Uj(t){let i=t.get(En,null);if(i===null)throw new Ce(407,!1);let e=t.get(Ej,null),n=t.get(Ws,null);return{rendererFactory:i,sanitizer:e,changeDetectionScheduler:n}}function $j(t,i){let e=(t.selectors[0][0]||"div").toLowerCase();return xC(i,e,e==="svg"?py:e==="math"?IN:null)}var qs=class extends WC{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=Fj(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=Bj(this.componentDef.outputs),this.cachedOutputs}constructor(i,e){super(),this.componentDef=i,this.ngModule=e,this.componentType=i.type,this.selector=CB(i.selectors),this.ngContentSelectors=i.ngContentSelectors??[],this.isBoundToModule=!!e}create(i,e,n,r){Qt(22);let a=ht(null);try{let o=this.componentDef,s=n?["ng-version","19.2.14"]:xB(this.componentDef.selectors[0]),d=P8(0,null,null,1,0,null,null,null,null,[s],null),h=jj(o,r||this.ngModule,i),v=Uj(h),C=v.rendererFactory.createRenderer(null,o),S=n?TB(C,n,o.encapsulation,h):$j(o,C),D=T8(null,d,null,512|DC(o),null,null,v,C,h,null,aC(S,h,!0));D[Sn]=S,g8(D);let L=null;try{let ne=YC(Sn,d,D,"#host",()=>[this.componentDef],!0,0);S&&(wC(C,S,ne),Pl(S,D)),U0(d,D,ne),S8(d,ne,D),QC(d,ne),e!==void 0&&Gj(ne,this.ngContentSelectors,e),L=xa(ne.index,D),D[Wn]=L[Wn],z8(d,D,null)}catch(ne){throw L!==null&&s6(L),s6(D),ne}finally{Qt(23),_8()}return new D6(this.componentType,D)}finally{ht(a)}}},D6=class extends Sj{_rootLView;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(i,e){super(),this._rootLView=e,this._tNode=s8(e[ct],Sn),this.location=Il(this._tNode,e),this.instance=xa(this._tNode.index,e)[Wn],this.hostView=this.changeDetectorRef=new A1(e,void 0,!1),this.componentType=i}setInput(i,e){let n=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(i)&&Object.is(this.previousInputValues.get(i),e))return;let r=this._rootLView,a=R8(n,r[ct],r,i,e);this.previousInputValues.set(i,e);let o=xa(n.index,r);j8(o,1)}get injector(){return new Hs(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(i){this.hostView.onDestroy(i)}};function Gj(t,i,e){let n=t.projection=[];for(let r=0;r{class t{static __NG_ELEMENT_ID__=Wj}return t})();function Wj(){let t=yi();return ZC(t,je())}var qj=rt,KC=class extends qj{_lContainer;_hostTNode;_hostLView;constructor(i,e,n){super(),this._lContainer=i,this._hostTNode=e,this._hostLView=n}get element(){return Il(this._hostTNode,this._hostLView)}get injector(){return new Hs(this._hostTNode,this._hostLView)}get parentInjector(){let i=b8(this._hostTNode,this._hostLView);if(Iy(i)){let e=c0(i,this._hostLView),n=s0(i),r=e[ct].data[n+8];return new Hs(r,e)}else return new Hs(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){let e=Cb(this._lContainer);return e!==null&&e[i]||null}get length(){return this._lContainer.length-_i}createEmbeddedView(i,e,n){let r,a;typeof n=="number"?r=n:n!=null&&(r=n.index,a=n.injector);let o=xl(this._lContainer,i.ssrId),s=i.createEmbeddedViewImpl(e||{},a,o);return this.insertImpl(s,r,Cl(this._hostTNode,o)),s}createComponent(i,e,n,r,a){let o=i&&!SN(i),s;if(o)s=e;else{let L=e||{};s=L.index,n=L.injector,r=L.projectableNodes,a=L.environmentInjector||L.ngModuleRef}let d=o?i:new qs(Fo(i)),h=n||this.parentInjector;if(!a&&d.ngModule==null){let ne=(o?h:this.parentInjector).get(fn,null);ne&&(a=ne)}let v=Fo(d.componentType??{}),C=xl(this._lContainer,v?.id??null),S=C?.firstChild??null,D=d.create(h,r,S,a);return this.insertImpl(D.hostView,s,Cl(this._hostTNode,C)),D}insert(i,e){return this.insertImpl(i,e,!0)}insertImpl(i,e,n){let r=i._lView;if(TN(r)){let s=this.indexOf(i);if(s!==-1)this.detach(s);else{let d=r[vi],h=new KC(d,d[Zi],d[vi]);h.detach(h.indexOf(i))}}let a=this._adjustIndex(e),o=this._lContainer;return $1(o,r,a,n),i.attachToViewContainerRef(),Xb(Hh(o),a,i),i}move(i,e){return this.insert(i,e)}indexOf(i){let e=Cb(this._lContainer);return e!==null?e.indexOf(i):-1}remove(i){let e=this._adjustIndex(i,-1),n=T1(this._lContainer,e);n&&(t0(Hh(this._lContainer),e),$0(n[ct],n))}detach(i){let e=this._adjustIndex(i,-1),n=T1(this._lContainer,e);return n&&t0(Hh(this._lContainer),e)!=null?new A1(n):null}_adjustIndex(i,e=0){return i??this.length+e}};function Cb(t){return t[r0]}function Hh(t){return t[r0]||(t[r0]=[])}function ZC(t,i){let e,n=i[t.index];return uo(n)?e=n:(e=jC(n,i,null,t),i[t.index]=e,A8(i,e)),Qj(e,i,t,n),new KC(e,t,i)}function Yj(t,i){let e=t[an],n=e.createComment(""),r=Da(i,t),a=e.parentNode(r);return f0(e,a,n,e.nextSibling(r),!1),n}var Qj=Xj,Kj=()=>!1;function Zj(t,i,e){return Kj(t,i,e)}function Xj(t,i,e,n){if(t[js])return;let r;e.type&8?r=Ca(n):r=Yj(i,e),t[js]=r}var S6=class t{queryList;matches=null;constructor(i){this.queryList=i}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},k6=class t{queries;constructor(i=[]){this.queries=i}createEmbeddedView(i){let e=i.queries;if(e!==null){let n=i.contentQueries!==null?i.contentQueries[0]:e.length,r=[];for(let a=0;a0)n.push(o[s/2]);else{let h=a[s+1],v=i[-d];for(let C=_i;Ci.trim())}function tx(t,i,e){t.queries===null&&(t.queries=new E6),t.queries.track(new O6(i,e))}function aU(t,i){let e=t.contentQueries||(t.contentQueries=[]),n=e.length?e[e.length-1]:-1;i!==n&&e.push(t.queries.length-1,i)}function G8(t,i){return t.queries.getByIndex(i)}function nx(t,i){let e=t[ct],n=G8(e,i);return n.crossesNgTemplate?I6(e,t,i,[]):XC(e,t,n,i)}function ix(t,i,e){let n,r=d3(()=>{n._dirtyCounter();let a=lU(n,t);if(i&&a===void 0)throw new Ce(-951,!1);return a});return n=r[Gi],n._dirtyCounter=zn(0),n._flatValue=void 0,r}function oU(t){return ix(!0,!1,t)}function sU(t){return ix(!0,!0,t)}function cU(t,i){let e=t[Gi];e._lView=je(),e._queryIndex=i,e._queryList=$8(e._lView,i),e._queryList.onDirty(()=>e._dirtyCounter.update(n=>n+1))}function lU(t,i){let e=t._lView,n=t._queryIndex;if(e===void 0||n===void 0||e[et]&4)return i?void 0:Ai;let r=$8(e,n),a=nx(e,n);return r.reset(a,Wy),i?r.first:r._changesDetected||t._flatValue===void 0?t._flatValue=r.toArray():t._flatValue}function xb(t,i){return oU(i)}function dU(t,i){return sU(i)}var rx=(xb.required=dU,xb);function uU(t){let i=[],e=new Map;function n(r){let a=e.get(r);if(!a){let o=t(r);e.set(r,a=o.then(hU))}return a}return v0.forEach((r,a)=>{let o=[];r.templateUrl&&o.push(n(r.templateUrl).then(h=>{r.template=h}));let s=typeof r.styles=="string"?[r.styles]:r.styles||[];if(r.styles=s,r.styleUrl&&r.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(r.styleUrls?.length){let h=r.styles.length,v=r.styleUrls;r.styleUrls.forEach((C,S)=>{s.push(""),o.push(n(C).then(D=>{s[h+S]=D,v.splice(v.indexOf(C),1),v.length==0&&(r.styleUrls=void 0)}))})}else r.styleUrl&&o.push(n(r.styleUrl).then(h=>{s.push(h),r.styleUrl=void 0}));let d=Promise.all(o).then(()=>gU(a));i.push(d)}),pU(),Promise.all(i).then(()=>{})}var v0=new Map,mU=new Set;function pU(){let t=v0;return v0=new Map,t}function fU(){return v0.size===0}function hU(t){return typeof t=="string"?t:t.text()}function gU(t){mU.delete(t)}var co=class{},W8=class{};var b0=class extends co{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new g0(this);constructor(i,e,n,r=!0){super(),this.ngModuleType=i,this._parent=e;let a=ty(i);this._bootstrapComponents=bC(a.bootstrap),this._r3Injector=Ny(i,e,[{provide:co,useValue:this},{provide:Y0,useValue:this.componentFactoryResolver},...n],Qi(i),new Set(["environment"])),r&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(i){this.destroyCbs.push(i)}},y0=class extends W8{moduleType;constructor(i){super(),this.moduleType=i}create(i){return new b0(this.moduleType,i,[])}};function _U(t,i,e){return new b0(t,i,e,!1)}var P6=class extends co{injector;componentFactoryResolver=new g0(this);instance=null;constructor(i){super();let e=new E1([...i.providers,{provide:co,useValue:this},{provide:Y0,useValue:this.componentFactoryResolver}],i.parent||T0(),i.debugName,new Set(["environment"]));this.injector=e,i.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(i){this.injector.onDestroy(i)}};function G1(t,i,e=null){return new P6({providers:t,parent:i,debugName:e,runEnvironmentInitializers:!0}).injector}var vU=(()=>{class t{_injector;cachedInjectors=new Map;constructor(e){this._injector=e}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){let n=iy(!1,e.type),r=n.length>0?G1([n],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,r)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=R({token:t,providedIn:"environment",factory:()=>new t(ae(fn))})}return t})();function I(t){return R1(()=>{let i=ax(t),e=Be(q({},i),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Qy.OnPush,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&t.dependencies||null,getStandaloneInjector:i.standalone?r=>r.get(vU).getOrCreateStandaloneInjector(e):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Ma.Emulated,styles:t.styles||Ai,_:null,schemas:t.schemas||null,tView:null,id:""});i.standalone&&Wo("NgStandalone"),ox(e);let n=t.dependencies;return e.directiveDefs=Mb(n,!1),e.pipeDefs=Mb(n,!0),e.id=MU(e),e})}function bU(t){return Fo(t)||ny(t)}function yU(t){return t!==null}function K(t){return R1(()=>({type:t.type,bootstrap:t.bootstrap||Ai,declarations:t.declarations||Ai,imports:t.imports||Ai,exports:t.exports||Ai,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function CU(t,i){if(t==null)return ba;let e={};for(let n in t)if(t.hasOwnProperty(n)){let r=t[n],a,o,s,d;Array.isArray(r)?(s=r[0],a=r[1],o=r[2]??a,d=r[3]||null):(a=r,o=r,s=j0.None,d=null),e[a]=[n,s,d],i[a]=o}return e}function xU(t){if(t==null)return ba;let i={};for(let e in t)t.hasOwnProperty(e)&&(i[t[e]]=e);return i}function V(t){return R1(()=>{let i=ax(t);return ox(i),i})}function _t(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone??!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function ax(t){let i={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputConfig:t.inputs||ba,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||Ai,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:CU(t.inputs,i),outputs:xU(t.outputs),debugInfo:null}}function ox(t){t.features?.forEach(i=>i(t))}function Mb(t,i){if(!t)return null;let e=i?fN:bU;return()=>(typeof t=="function"?t():t).map(n=>e(n)).filter(yU)}function MU(t){let i=0,e=typeof t.consts=="function"?"":t.consts,n=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,e,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery];for(let a of n.join("|"))i=Math.imul(31,i)+a.charCodeAt(0)<<0;return i+=2147483648,"c"+i}function wU(t){return Object.getPrototypeOf(t.prototype).constructor}function ce(t){let i=wU(t.type),e=!0,n=[t];for(;i;){let r;if(ya(t))r=i.\u0275cmp||i.\u0275dir;else{if(i.\u0275cmp)throw new Ce(903,!1);r=i.\u0275dir}if(r){if(e){n.push(r);let o=t;o.inputs=Nh(t.inputs),o.declaredInputs=Nh(t.declaredInputs),o.outputs=Nh(t.outputs);let s=r.hostBindings;s&&OU(t,s);let d=r.viewQuery,h=r.contentQueries;if(d&&kU(t,d),h&&EU(t,h),DU(t,r),WH(t.outputs,r.outputs),ya(r)&&r.data.animation){let v=t.data;v.animation=(v.animation||[]).concat(r.data.animation)}}let a=r.features;if(a)for(let o=0;o=0;n--){let r=t[n];r.hostVars=i+=r.hostVars,r.hostAttrs=yl(r.hostAttrs,e=yl(e,r.hostAttrs))}}function Nh(t){return t===ba?{}:t===Ai?[]:t}function kU(t,i){let e=t.viewQuery;e?t.viewQuery=(n,r)=>{i(n,r),e(n,r)}:t.viewQuery=i}function EU(t,i){let e=t.contentQueries;e?t.contentQueries=(n,r,a)=>{i(n,r,a),e(n,r,a)}:t.contentQueries=i}function OU(t,i){let e=t.hostBindings;e?t.hostBindings=(n,r)=>{i(n,r),e(n,r)}:t.hostBindings=i}function sx(t){let i=e=>{let n=Array.isArray(t);e.hostDirectives===null?(e.findHostDirectiveDefs=cx,e.hostDirectives=n?t.map(T6):[t]):n?e.hostDirectives.unshift(...t.map(T6)):e.hostDirectives.unshift(t)};return i.ngInherit=!0,i}function cx(t,i,e){if(t.hostDirectives!==null)for(let n of t.hostDirectives)if(typeof n=="function"){let r=n();for(let a of r)wb(T6(a),i,e)}else wb(n,i,e)}function wb(t,i,e){let n=ny(t.directive);IU(n.declaredInputs,t.inputs),cx(n,i,e),e.set(n,t),i.push(n)}function T6(t){return typeof t=="function"?{directive:li(t),inputs:ba,outputs:ba}:{directive:li(t.directive),inputs:Db(t.inputs),outputs:Db(t.outputs)}}function Db(t){if(t===void 0||t.length===0)return ba;let i={};for(let e=0;e{class t{log(e){console.log(e)}warn(e){console.warn(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();var Q8=new A(""),q1=new A(""),K0=(()=>{class t{_ngZone;registry;_isZoneStable=!0;_callbacks=[];_taskTrackingZone=null;_destroyRef;constructor(e,n,r){this._ngZone=e,this.registry=n,r8()&&(this._destroyRef=u(Uo,{optional:!0})??void 0),K8||(RU(r),r.addToWindow(n)),this._watchAngularEvents(),e.run(()=>{this._taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){let e=this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),n=this._ngZone.runOutsideAngular(()=>this._ngZone.onStable.subscribe({next:()=>{se.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}}));this._destroyRef?.onDestroy(()=>{e.unsubscribe(),n.unsubscribe()})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb()}});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(n=>n.updateCb&&n.updateCb(e)?(clearTimeout(n.timeoutId),!1):!0)}}getPendingTasks(){return this._taskTrackingZone?this._taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,n,r){let a=-1;n&&n>0&&(a=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==a),e()},n)),this._callbacks.push({doneCb:e,timeoutId:a,updateCb:r})}whenStable(e,n,r){if(r&&!this._taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,n,r),this._runCallbacksIfReady()}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,n,r){return[]}static \u0275fac=function(n){return new(n||t)(ae(se),ae(Z0),ae(q1))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),Z0=(()=>{class t{_applications=new Map;registerApplication(e,n){this._applications.set(e,n)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,n=!0){return K8?.findTestabilityInTree(this,e,n)??null}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function RU(t){K8=t}var K8,mx=(()=>{class t{static \u0275prov=R({token:t,providedIn:"root",factory:()=>new A6})}return t})(),A6=class{queuedEffectCount=0;queues=new Map;schedule(i){this.enqueue(i)}remove(i){let e=i.zone,n=this.queues.get(e);n.has(i)&&(n.delete(i),this.queuedEffectCount--)}enqueue(i){let e=i.zone;this.queues.has(e)||this.queues.set(e,new Set);let n=this.queues.get(e);n.has(i)||(this.queuedEffectCount++,n.add(i))}flush(){for(;this.queuedEffectCount>0;)for(let[i,e]of this.queues)i===null?this.flushQueue(e):i.run(()=>this.flushQueue(e))}flushQueue(i){for(let e of i)i.delete(e),this.queuedEffectCount--,e.run()}};function qo(t){return!!t&&typeof t.then=="function"}function Z8(t){return!!t&&typeof t.subscribe=="function"}var px=new A("");function X8(t){return wl([{provide:px,multi:!0,useValue:t}])}var fx=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((e,n)=>{this.resolve=e,this.reject=n});appInits=u(px,{optional:!0})??[];injector=u(Te);constructor(){}runInitializers(){if(this.initialized)return;let e=[];for(let r of this.appInits){let a=Ki(this.injector,r);if(qo(a))e.push(a);else if(Z8(a)){let o=new Promise((s,d)=>{a.subscribe({complete:s,error:d})});e.push(o)}}let n=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{n()}).catch(r=>{this.reject(r)}),e.length===0&&n(),this.initialized=!0}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),J8=new A("");function zU(){dh(()=>{throw new Ce(600,!1)})}function HU(t){return t.isBoundToModule}var NU=10;function hx(t,i){return Array.isArray(i)?i.reduce(hx,t):q(q({},t),i)}var bi=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=u(xF);afterRenderManager=u(iC);zonelessEnabled=u(y8);rootEffectScheduler=u(mx);dirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new N;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=u(mo).hasPendingTasks.pipe(pe(e=>!e));constructor(){u(Tl,{optional:!0})}whenStable(){let e;return new Promise(n=>{e=this.isStable.subscribe({next:r=>{r&&n()}})}).finally(()=>{e.unsubscribe()})}_injector=u(fn);_rendererFactory=null;get injector(){return this._injector}bootstrap(e,n){return this.bootstrapImpl(e,n)}bootstrapImpl(e,n,r=Te.NULL){Qt(10);let a=e instanceof WC;if(!this._injector.get(fx).done){let D="";throw new Ce(405,D)}let s;a?s=e:s=this._injector.get(Y0).resolveComponentFactory(e),this.componentTypes.push(s.componentType);let d=HU(s)?void 0:this._injector.get(co),h=n||s.selector,v=s.create(r,[],h,d),C=v.location.nativeElement,S=v.injector.get(Q8,null);return S?.registerApplication(C),v.onDestroy(()=>{this.detachView(v.hostView),Z3(this.components,v),S?.unregisterApplication(C)}),this._loadComponent(v),Qt(11,v),v}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){Qt(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(w8.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new Ce(101,!1);let e=ht(null);try{this._runningTick=!0,this.synchronize()}catch(n){this.internalErrorHandler(n)}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,ht(e),this.afterTick.next(),Qt(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(En,null,{optional:!0}));let e=0;for(;this.dirtyFlags!==0&&e++L0(e))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(e){let n=e;this._views.push(n),n.attachToAppRef(this)}detachView(e){let n=e;Z3(this._views,n),n.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(J8,[]).forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Z3(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new Ce(406,!1);let e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Z3(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}function FU(t,i,e,n){if(!e&&!L0(t))return;HC(t,i,e&&!n?0:1)}function ee(t,i,e,n){let r=je(),a=Zs();if(fr(r,a,i)){let o=Kt(),s=Ol();FB(s,r,t,i,e,n)}return ee}function eg(t,i,e,n){return fr(t,Zs(),e)?i+Yi(e)+n:qn}function gx(t,i,e,n,r,a){let o=f8(),s=V1(t,o,e,r);return N1(2),s?i+Yi(e)+n+Yi(r)+a:qn}function BU(t,i,e,n,r,a,o,s){let d=f8(),h=dx(t,d,e,r,o);return N1(3),h?i+Yi(e)+n+Yi(r)+a+Yi(o)+s:qn}function jU(t,i,e,n,r,a,o,s,d,h){let v=f8(),C=ux(t,v,e,r,o,d);return N1(4),C?i+Yi(e)+n+Yi(r)+a+Yi(o)+s+Yi(d)+h:qn}function G3(t,i){return t<<17|i<<2}function Ys(t){return t>>17&32767}function UU(t){return(t&2)==2}function $U(t,i){return t&131071|i<<17}function V6(t){return t|2}function Ml(t){return(t&131068)>>2}function Fh(t,i){return t&-131069|i<<2}function GU(t){return(t&1)===1}function L6(t){return t|1}function WU(t,i,e,n,r,a){let o=a?i.classBindings:i.styleBindings,s=Ys(o),d=Ml(o);t[n]=e;let h=!1,v;if(Array.isArray(e)){let C=e;v=C[1],(v===null||z1(C,v)>0)&&(h=!0)}else v=e;if(r)if(d!==0){let S=Ys(t[s+1]);t[n+1]=G3(S,s),S!==0&&(t[S+1]=Fh(t[S+1],n)),t[s+1]=$U(t[s+1],n)}else t[n+1]=G3(s,0),s!==0&&(t[s+1]=Fh(t[s+1],n)),s=n;else t[n+1]=G3(d,0),s===0?s=n:t[d+1]=Fh(t[d+1],n),d=n;h&&(t[n+1]=V6(t[n+1])),Sb(t,v,n,!0),Sb(t,v,n,!1),qU(i,v,t,n,a),o=G3(s,d),a?i.classBindings=o:i.styleBindings=o}function qU(t,i,e,n,r){let a=r?t.residualClasses:t.residualStyles;a!=null&&typeof i=="string"&&z1(a,i)>=0&&(e[n+1]=L6(e[n+1]))}function Sb(t,i,e,n){let r=t[e+1],a=i===null,o=n?Ys(r):Ml(r),s=!1;for(;o!==0&&(s===!1||a);){let d=t[o],h=t[o+1];YU(d,i)&&(s=!0,t[o+1]=n?L6(h):V6(h)),o=n?Ys(h):Ml(h)}s&&(t[e+1]=n?V6(r):L6(r))}function YU(t,i){return t===null||i==null||(Array.isArray(t)?t[1]:t)===i?!0:Array.isArray(t)&&typeof i=="string"?z1(t,i)>=0:!1}var Wr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function QU(t){return t.substring(Wr.key,Wr.keyEnd)}function KU(t){return ZU(t),_x(t,vx(t,0,Wr.textEnd))}function _x(t,i){let e=Wr.textEnd;return e===i?-1:(i=Wr.keyEnd=XU(t,Wr.key=i,e),vx(t,i,e))}function ZU(t){Wr.key=0,Wr.keyEnd=0,Wr.value=0,Wr.valueEnd=0,Wr.textEnd=t.length}function vx(t,i,e){for(;i32;)i++;return i}function y(t,i,e){let n=je(),r=Zs();if(fr(n,r,i)){let a=Kt(),o=Ol();j1(a,o,n,t,i,n[an],e,!1)}return y}function R6(t,i,e,n,r){R8(i,t,e,r?"class":"style",n)}function Et(t,i,e){return yx(t,i,e,!1),Et}function te(t,i){return yx(t,i,null,!0),te}function It(t){Cx(r$,bx,t,!0)}function bx(t,i){for(let e=KU(i);e>=0;e=_x(i,e))I0(t,QU(i),!0)}function yx(t,i,e,n){let r=je(),a=Kt(),o=N1(2);if(a.firstUpdatePass&&Mx(a,t,o,n),i!==qn&&fr(r,o,i)){let s=a.data[Qr()];wx(a,s,r,r[an],t,r[o+1]=o$(i,e),n,o)}}function Cx(t,i,e,n){let r=Kt(),a=N1(2);r.firstUpdatePass&&Mx(r,null,a,n);let o=je();if(e!==qn&&fr(o,a,e)){let s=r.data[Qr()];if(Dx(s,n)&&!xx(r,a)){let d=n?s.classesWithoutHost:s.stylesWithoutHost;d!==null&&(e=Gh(d,e||"")),R6(r,s,o,e,n)}else a$(r,s,o,o[an],o[a+1],o[a+1]=i$(t,i,e),n,a)}}function xx(t,i){return i>=t.expandoStartIndex}function Mx(t,i,e,n){let r=t.data;if(r[e+1]===null){let a=r[Qr()],o=xx(t,e);Dx(a,n)&&i===null&&!o&&(i=!1),i=JU(r,a,i,n),WU(r,a,i,e,o,n)}}function JU(t,i,e,n){let r=qN(t),a=n?i.residualClasses:i.residualStyles;if(r===null)(n?i.classBindings:i.styleBindings)===0&&(e=Bh(null,t,i,e,n),e=L1(e,i.attrs,n),a=null);else{let o=i.directiveStylingLast;if(o===-1||t[o]!==r)if(e=Bh(r,t,i,e,n),a===null){let d=e$(t,i,n);d!==void 0&&Array.isArray(d)&&(d=Bh(null,t,i,d[1],n),d=L1(d,i.attrs,n),t$(t,i,n,d))}else a=n$(t,i,n)}return a!==void 0&&(n?i.residualClasses=a:i.residualStyles=a),e}function e$(t,i,e){let n=e?i.classBindings:i.styleBindings;if(Ml(n)!==0)return t[Ys(n)]}function t$(t,i,e,n){let r=e?i.classBindings:i.styleBindings;t[Ys(r)]=n}function n$(t,i,e){let n,r=i.directiveEnd;for(let a=1+i.directiveStylingLast;a0;){let d=t[r],h=Array.isArray(d),v=h?d[1]:d,C=v===null,S=e[r+1];S===qn&&(S=C?Ai:void 0);let D=C?Ph(S,n):v===n?S:void 0;if(h&&!x0(D)&&(D=Ph(d,n)),x0(D)&&(s=D,o))return s;let L=t[r+1];r=o?Ys(L):Ml(L)}if(i!==null){let d=a?i.residualClasses:i.residualStyles;d!=null&&(s=Ph(d,n))}return s}function x0(t){return t!==void 0}function o$(t,i){return t==null||t===""||(typeof i=="string"?t=t+i:typeof t=="object"&&(t=Qi(Pr(t)))),t}function Dx(t,i){return(t.flags&(i?8:16))!==0}function X0(t,i,e){let n=je(),r=eg(n,t,i,e);Cx(I0,bx,r,!0)}var z6=class{destroy(i){}updateValue(i,e){}swap(i,e){let n=Math.min(i,e),r=Math.max(i,e),a=this.detach(r);if(r-n>1){let o=this.detach(n);this.attach(n,a),this.attach(r,o)}else this.attach(n,a)}move(i,e){this.attach(e,this.detach(i))}};function jh(t,i,e,n,r){return t===e&&Object.is(i,n)?1:Object.is(r(t,i),r(e,n))?-1:0}function s$(t,i,e){let n,r,a=0,o=t.length-1,s=void 0;if(Array.isArray(i)){let d=i.length-1;for(;a<=o&&a<=d;){let h=t.at(a),v=i[a],C=jh(a,h,a,v,e);if(C!==0){C<0&&t.updateValue(a,v),a++;continue}let S=t.at(o),D=i[d],L=jh(o,S,d,D,e);if(L!==0){L<0&&t.updateValue(o,D),o--,d--;continue}let ne=e(a,h),oe=e(o,S),ye=e(a,v);if(Object.is(ye,oe)){let qe=e(d,D);Object.is(qe,ne)?(t.swap(a,o),t.updateValue(o,D),d--,o--):t.move(o,a),t.updateValue(a,v),a++;continue}if(n??=new M0,r??=Ob(t,a,o,e),H6(t,n,a,ye))t.updateValue(a,v),a++,o++;else if(r.has(ye))n.set(ne,t.detach(a)),o--;else{let qe=t.create(a,i[a]);t.attach(a,qe),a++,o++}}for(;a<=d;)Eb(t,n,e,a,i[a]),a++}else if(i!=null){let d=i[Symbol.iterator](),h=d.next();for(;!h.done&&a<=o;){let v=t.at(a),C=h.value,S=jh(a,v,a,C,e);if(S!==0)S<0&&t.updateValue(a,C),a++,h=d.next();else{n??=new M0,r??=Ob(t,a,o,e);let D=e(a,C);if(H6(t,n,a,D))t.updateValue(a,C),a++,o++,h=d.next();else if(!r.has(D))t.attach(a,t.create(a,C)),a++,o++,h=d.next();else{let L=e(a,v);n.set(L,t.detach(a)),o--}}}for(;!h.done;)Eb(t,n,e,t.length,h.value),h=d.next()}for(;a<=o;)t.destroy(t.detach(o--));n?.forEach(d=>{t.destroy(d)})}function H6(t,i,e,n){return i!==void 0&&i.has(n)?(t.attach(e,i.get(n)),i.delete(n),!0):!1}function Eb(t,i,e,n,r){if(H6(t,i,n,e(n,r)))t.updateValue(n,r);else{let a=t.create(n,r);t.attach(n,a)}}function Ob(t,i,e,n){let r=new Set;for(let a=i;a<=e;a++)r.add(n(a,t.at(a)));return r}var M0=class{kvMap=new Map;_vMap=void 0;has(i){return this.kvMap.has(i)}delete(i){if(!this.has(i))return!1;let e=this.kvMap.get(i);return this._vMap!==void 0&&this._vMap.has(e)?(this.kvMap.set(i,this._vMap.get(e)),this._vMap.delete(e)):this.kvMap.delete(i),!0}get(i){return this.kvMap.get(i)}set(i,e){if(this.kvMap.has(i)){let n=this.kvMap.get(i);this._vMap===void 0&&(this._vMap=new Map);let r=this._vMap;for(;r.has(n);)n=r.get(n);r.set(n,e)}else this.kvMap.set(i,e)}forEach(i){for(let[e,n]of this.kvMap)if(i(n,e),this._vMap!==void 0){let r=this._vMap;for(;r.has(n);)n=r.get(n),i(n,e)}}};function ke(t,i){Wo("NgControlFlow");let e=je(),n=Zs(),r=e[n]!==qn?e[n]:-1,a=r!==-1?w0(e,Sn+r):void 0,o=0;if(fr(e,n,t)){let s=ht(null);try{if(a!==void 0&&$C(a,o),t!==-1){let d=Sn+t,h=w0(e,d),v=j6(e[ct],d),C=xl(h,v.tView.ssrId),S=U1(e,v,i,{dehydratedView:C});$1(h,S,o,Cl(v,C))}}finally{ht(s)}}else if(a!==void 0){let s=UC(a,o);s!==void 0&&(s[Wn]=i)}}var N6=class{lContainer;$implicit;$index;constructor(i,e,n){this.lContainer=i,this.$implicit=e,this.$index=n}get $count(){return this.lContainer.length-_i}};function ho(t,i){return i}var F6=class{hasEmptyBlock;trackByFn;liveCollection;constructor(i,e,n){this.hasEmptyBlock=i,this.trackByFn=e,this.liveCollection=n}};function Xi(t,i,e,n,r,a,o,s,d,h,v,C,S){Wo("NgControlFlow");let D=je(),L=Kt(),ne=d!==void 0,oe=je(),ye=s?o.bind(oe[pr][Wn]):o,qe=new F6(ne,ye);oe[Sn+t]=qe,C0(D,L,t+1,i,e,n,r,Bo(L.consts,a)),ne&&C0(D,L,t+2,d,h,v,C,Bo(L.consts,S))}var B6=class extends z6{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(i,e,n){super(),this.lContainer=i,this.hostLView=e,this.templateTNode=n}get length(){return this.lContainer.length-_i}at(i){return this.getLView(i)[Wn].$implicit}attach(i,e){let n=e[_l];this.needsIndexUpdate||=i!==this.length,$1(this.lContainer,e,i,Cl(this.templateTNode,n))}detach(i){return this.needsIndexUpdate||=i!==this.length-1,c$(this.lContainer,i)}create(i,e){let n=xl(this.lContainer,this.templateTNode.tView.ssrId),r=U1(this.hostLView,this.templateTNode,new N6(this.lContainer,e,i),{dehydratedView:n});return this.operationsCounter?.recordCreate(),r}destroy(i){$0(i[ct],i),this.operationsCounter?.recordDestroy()}updateValue(i,e){this.getLView(i)[Wn].$implicit=e}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let i=0;i(H0(!0),xC(n,r,ZN()));function u$(t,i,e,n,r){let a=i.consts,o=Bo(a,n),s=Vl(i,t,8,"ng-container",o);o!==null&&w6(s,o,!0);let d=Bo(a,r);return u8()&&U8(i,e,s,d,L8),s.mergedAttrs=yl(s.mergedAttrs,s.attrs),i.queries!==null&&i.queries.elementStart(i,s),s}function gn(t,i,e){let n=je(),r=Kt(),a=t+Sn,o=r.firstCreatePass?u$(a,r,n,i,e):r.data[a];jo(o,!0);let s=m$(r,n,o,t);return n[a]=s,z0()&&G0(r,n,s,o),Pl(s,n),V0(o)&&(U0(r,n,o),S8(r,o,n)),e!=null&&V8(n,o),gn}function _n(){let t=yi(),i=Kt();return m8()?p8():(t=t.parent,jo(t,!1)),i.firstCreatePass&&(v8(i,t),o8(t)&&i.queries.elementEnd(t)),_n}function Tt(t,i,e){return gn(t,i,e),_n(),Tt}var m$=(t,i,e,n)=>(H0(!0),DB(i[an],""));function de(){return je()}function zt(t,i,e){let n=je(),r=Zs();if(fr(n,r,i)){let a=Kt(),o=Ol();j1(a,o,n,t,i,n[an],e,!0)}return zt}var Rs=void 0;function p$(t){let i=Math.floor(Math.abs(t)),e=t.toString().replace(/^[^.]*\.?/,"").length;return i===1&&e===0?1:5}var f$=["en",[["a","p"],["AM","PM"],Rs],[["AM","PM"],Rs,Rs],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Rs,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Rs,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Rs,"{1} 'at' {0}",Rs],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",p$],S1={};function Sx(t,i,e){typeof i!="string"&&(e=i,i=t[on.LocaleId]),i=i.toLowerCase().replace(/_/g,"-"),S1[i]=t,e&&(S1[i][on.ExtraData]=e)}function er(t){let i=h$(t),e=Ib(i);if(e)return e;let n=i.split("-")[0];if(e=Ib(n),e)return e;if(n==="en")return f$;throw new Ce(701,!1)}function Ib(t){return t in S1||(S1[t]=ni.ng&&ni.ng.common&&ni.ng.common.locales&&ni.ng.common.locales[t]),S1[t]}var on=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(on||{});function h$(t){return t.toLowerCase().replace(/_/g,"-")}var D0="en-US",g$="USD";var _$=D0;function v$(t){typeof t=="string"&&(_$=t.toLowerCase().replace(/_/g,"-"))}function Pb(t,i,e){return function n(r){if(r===Function)return e;let a=Sl(t)?xa(t.index,i):i;j8(a,5);let o=i[Wn],s=Tb(i,o,e,r),d=n.__ngNextListenerFn__;for(;d;)s=Tb(i,o,d,r)&&s,d=d.__ngNextListenerFn__;return s}}function Tb(t,i,e,n){let r=ht(null);try{return Qt(6,i,e),e(n)!==!1}catch(a){return b$(t,a),!1}finally{Qt(7,i,e),ht(r)}}function b$(t,i){let e=t[vl],n=e?e.get(Vi,null):null;n&&n.handleError(i)}function Ab(t,i,e,n,r,a){let o=i[e],s=i[ct],h=s.data[e].outputs[n],v=o[h],C=s.firstCreatePass?d8(s):null,S=l8(i),D=v.subscribe(a),L=S.length;S.push(a,D),C&&C.push(r,t.index,L,-(L+1))}function z(t,i,e,n){let r=je(),a=Kt(),o=yi();return kx(a,r,r[an],o,t,i,n),z}function y$(t,i,e,n){let r=t.cleanup;if(r!=null)for(let a=0;ad?s[d]:null}typeof o=="string"&&(a+=2)}return null}function kx(t,i,e,n,r,a,o){let s=V0(n),h=t.firstCreatePass?d8(t):null,v=l8(i),C=!0;if(n.type&3||o){let S=Da(n,i),D=o?o(S):S,L=v.length,ne=o?ye=>o(Ca(ye[n.index])):n.index,oe=null;if(!o&&s&&(oe=y$(t,i,r,n.index)),oe!==null){let ye=oe.__ngLastListenerFn__||oe;ye.__ngNextListenerFn__=a,oe.__ngLastListenerFn__=a,C=!1}else{a=Pb(n,i,a),NF(i,D,r,a);let ye=e.listen(D,r,a);v.push(a,ye),h&&h.push(r,ne,L,L+1)}}else a=Pb(n,i,a);if(C){let S=n.outputs?.[r],D=n.hostDirectiveOutputs?.[r];if(D&&D.length)for(let L=0;L(H0(!0),MB(i[an],n));function P(t){return X("",t,""),P}function X(t,i,e){let n=je(),r=eg(n,t,i,e);return r!==qn&&tu(n,Qr(),r),X}function Ct(t,i,e,n,r){let a=je(),o=gx(a,t,i,e,n,r);return o!==qn&&tu(a,Qr(),o),Ct}function tg(t,i,e,n,r,a,o){let s=je(),d=BU(s,t,i,e,n,r,a,o);return d!==qn&&tu(s,Qr(),d),tg}function w$(t,i,e,n,r,a,o,s,d){let h=je(),v=jU(h,t,i,e,n,r,a,o,s,d);return v!==qn&&tu(h,Qr(),v),w$}function tu(t,i,e){let n=fy(i,t);wB(t[an],n,e)}function Y1(t,i,e){qy(i)&&(i=i());let n=je(),r=Zs();if(fr(n,r,i)){let a=Kt(),o=Ol();j1(a,o,n,t,i,n[an],e,!1)}return Y1}function nu(t,i){let e=qy(t);return e&&t.set(i),e}function Q1(t,i){let e=je(),n=Kt(),r=yi();return kx(n,e,e[an],r,t,i),Q1}var D$={};function ng(t){let i=Kt(),e=je(),n=t+Sn,r=Vl(i,n,128,null,null);return jo(r,!1),hy(i,e,n,D$),ng}function S$(t,i,e){let n=Kt();if(n.firstCreatePass){let r=ya(t);U6(e,n.data,n.blueprint,r,!0),U6(i,n.data,n.blueprint,r,!1)}}function U6(t,i,e,n,r){if(t=li(t),Array.isArray(t))for(let a=0;a>20;if(gl(t)||!t.multi){let D=new Gs(h,r,k),L=$h(d,i,r?v:v+S,C);L===-1?(i6(d0(s,o),a,d),Uh(a,t,i.length),i.push(d),s.directiveStart++,s.directiveEnd++,r&&(s.providerIndexes+=1048576),e.push(D),o.push(D)):(e[L]=D,o[L]=D)}else{let D=$h(d,i,v+S,C),L=$h(d,i,v,v+S),ne=D>=0&&e[D],oe=L>=0&&e[L];if(r&&!oe||!r&&!ne){i6(d0(s,o),a,d);let ye=O$(r?E$:k$,e.length,r,n,h);!r&&oe&&(e[L].providerFactory=ye),Uh(a,t,i.length,0),i.push(d),s.directiveStart++,s.directiveEnd++,r&&(s.providerIndexes+=1048576),e.push(ye),o.push(ye)}else{let ye=Ix(e[r?L:D],h,!r&&n);Uh(a,t,D>-1?D:L,ye)}!r&&n&&oe&&e[L].componentProviders++}}}function Uh(t,i,e,n){let r=gl(i),a=bN(i);if(r||a){let d=(a?li(i.useClass):i).prototype.ngOnDestroy;if(d){let h=t.destroyHooks||(t.destroyHooks=[]);if(!r&&i.multi){let v=h.indexOf(e);v===-1?h.push(e,[n,d]):h[v+1].push(n,d)}else h.push(e,d)}}}function Ix(t,i,e){return e&&t.componentProviders++,t.multi.push(i)-1}function $h(t,i,e,n){for(let r=e;r{e.providersResolver=(n,r)=>S$(n,r?r(t):t,i)}}function tr(t,i,e){let n=Ks()+t,r=je();return r[n]===qn?W1(r,n,e?i.call(e):i()):TU(r,n)}function go(t,i,e,n){return Px(je(),Ks(),t,i,e,n)}function ka(t,i,e,n,r){return Tx(je(),Ks(),t,i,e,n,r)}function iu(t,i){let e=t[i];return e===qn?void 0:e}function Px(t,i,e,n,r,a){let o=i+e;return fr(t,o,r)?W1(t,o+1,a?n.call(a,r):n(r)):iu(t,o+1)}function Tx(t,i,e,n,r,a,o){let s=i+e;return V1(t,s,r,a)?W1(t,s+2,o?n.call(o,r,a):n(r,a)):iu(t,s+2)}function I$(t,i,e,n,r,a,o,s){let d=i+e;return dx(t,d,r,a,o)?W1(t,d+3,s?n.call(s,r,a,o):n(r,a,o)):iu(t,d+3)}function P$(t,i,e,n,r,a,o,s,d){let h=i+e;return ux(t,h,r,a,o,s)?W1(t,h+4,d?n.call(d,r,a,o,s):n(r,a,o,s)):iu(t,h+4)}function E(t,i){let e=Kt(),n,r=t+Sn;e.firstCreatePass?(n=T$(i,e.pipeRegistry),e.data[r]=n,n.onDestroy&&(e.destroyHooks??=[]).push(r,n.onDestroy)):n=e.data[r];let a=n.factory||(n.factory=Ns(n.type,!0)),o,s=qi(k);try{let d=l0(!1),h=a();return l0(d),hy(e,je(),r,h),h}finally{qi(s)}}function T$(t,i){if(i)for(let e=i.length-1;e>=0;e--){let n=i[e];if(t===n.name)return n}}function O(t,i,e){let n=t+Sn,r=je(),a=H1(r,n);return ru(r,n)?Px(r,Ks(),i,a.transform,e,a):a.transform(e)}function Kr(t,i,e,n){let r=t+Sn,a=je(),o=H1(a,r);return ru(a,r)?Tx(a,Ks(),i,o.transform,e,n,o):o.transform(e,n)}function cme(t,i,e,n,r){let a=t+Sn,o=je(),s=H1(o,a);return ru(o,a)?I$(o,Ks(),i,s.transform,e,n,r,s):s.transform(e,n,r)}function ig(t,i,e,n,r,a){let o=t+Sn,s=je(),d=H1(s,o);return ru(s,o)?P$(s,Ks(),i,d.transform,e,n,r,a,d):d.transform(e,n,r,a)}function ru(t,i){return t[ct].data[i].pure}function nr(t,i){return q0(t,i)}var W3=null;function A$(t){W3!==null&&(t.defaultEncapsulation!==W3.defaultEncapsulation||t.preserveWhitespaces!==W3.preserveWhitespaces)||(W3=t)}var Qs=class{full;major;minor;patch;constructor(i){this.full=i;let e=i.split(".");this.major=e[0],this.minor=e[1],this.patch=e.slice(2).join(".")}},rg=new Qs("19.2.14"),G6=class{ngModuleFactory;componentFactories;constructor(i,e){this.ngModuleFactory=i,this.componentFactories=e}},Ax=(()=>{class t{compileModuleSync(e){return new y0(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){let n=this.compileModuleSync(e),r=ty(e),a=bC(r.declarations).reduce((o,s)=>{let d=Fo(s);return d&&o.push(new qs(d)),o},[]);return new G6(n,a)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),V$=new A("");function L$(t,i,e){let n=new y0(e);return Promise.resolve(n)}function Vb(t){for(let i=t.length-1;i>=0;i--)if(t[i]!==void 0)return t[i]}var R$=(()=>{class t{zone=u(se);changeDetectionScheduler=u(Ws);applicationRef=u(bi);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function z$({ngZoneFactory:t,ignoreChangesOutsideZone:i,scheduleInRootZone:e}){return t??=()=>new se(Be(q({},Vx()),{scheduleInRootZone:e})),[{provide:se,useFactory:t},{provide:hl,multi:!0,useFactory:()=>{let n=u(R$,{optional:!0});return()=>n.initialize()}},{provide:hl,multi:!0,useFactory:()=>{let n=u(H$);return()=>{n.initialize()}}},i===!0?{provide:By,useValue:!0}:[],{provide:jy,useValue:e??Fy}]}function Vx(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var H$=(()=>{class t{subscription=new Me;initialized=!1;zone=u(se);pendingTasks=u(mo);initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{se.assertNotInAngularZone(),queueMicrotask(()=>{e!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{se.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var N$=(()=>{class t{appRef=u(bi);taskService=u(mo);ngZone=u(se);zonelessEnabled=u(y8);tracing=u(Tl,{optional:!0});disableScheduling=u(By,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Me;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(m0):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(u(jy,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof p0||!this.zoneIsDefined)}notify(e){if(!this.zonelessEnabled&&e===5)return;let n=!1;switch(e){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2,n=!0;break}case 12:{this.appRef.dirtyFlags|=16,n=!0;break}case 13:{this.appRef.dirtyFlags|=2,n=!0;break}case 11:{n=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(n))return;let r=this.useMicrotaskScheduler?ib:Uy;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(e){return!(this.disableScheduling&&!e||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(m0+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let e=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(n){throw this.taskService.remove(e),n}finally{this.cleanup()}this.useMicrotaskScheduler=!0,ib(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(e)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let e=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(e)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function F$(){return typeof $localize<"u"&&$localize.locale||D0}var Ea=new A("",{providedIn:"root",factory:()=>u(Ea,ft.Optional|ft.SkipSelf)||F$()}),Lx=new A("",{providedIn:"root",factory:()=>g$});var S0=new A(""),B$=new A("");function x1(t){return!t.moduleRef}function j$(t){let i=x1(t)?t.r3Injector:t.moduleRef.injector,e=i.get(se);return e.run(()=>{x1(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let n=i.get(Vi,null),r;if(e.runOutsideAngular(()=>{r=e.onError.subscribe({next:a=>{n.handleError(a)}})}),x1(t)){let a=()=>i.destroy(),o=t.platformInjector.get(S0);o.add(a),i.onDestroy(()=>{r.unsubscribe(),o.delete(a)})}else{let a=()=>t.moduleRef.destroy(),o=t.platformInjector.get(S0);o.add(a),t.moduleRef.onDestroy(()=>{Z3(t.allPlatformModules,t.moduleRef),r.unsubscribe(),o.delete(a)})}return $$(n,e,()=>{let a=i.get(fx);return a.runInitializers(),a.donePromise.then(()=>{let o=i.get(Ea,D0);if(v$(o||D0),!i.get(B$,!0))return x1(t)?i.get(bi):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(x1(t)){let d=i.get(bi);return t.rootComponent!==void 0&&d.bootstrap(t.rootComponent),d}else return U$(t.moduleRef,t.allPlatformModules),t.moduleRef})})})}function U$(t,i){let e=t.injector.get(bi);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(n=>e.bootstrap(n));else if(t.instance.ngDoBootstrap)t.instance.ngDoBootstrap(e);else throw new Ce(-403,!1);i.push(t)}function $$(t,i,e){try{let n=e();return qo(n)?n.catch(r=>{throw i.runOutsideAngular(()=>t.handleError(r)),r}):n}catch(n){throw i.runOutsideAngular(()=>t.handleError(n)),n}}var Rx=(()=>{class t{_injector;_modules=[];_destroyListeners=[];_destroyed=!1;constructor(e){this._injector=e}bootstrapModuleFactory(e,n){let r=n?.scheduleInRootZone,a=()=>CF(n?.ngZone,Be(q({},Vx({eventCoalescing:n?.ngZoneEventCoalescing,runCoalescing:n?.ngZoneRunCoalescing})),{scheduleInRootZone:r})),o=n?.ignoreChangesOutsideZone,s=[z$({ngZoneFactory:a,ignoreChangesOutsideZone:o}),{provide:Ws,useExisting:N$}],d=_U(e.moduleType,this.injector,s);return j$({moduleRef:d,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(e,n=[]){let r=hx({},n);return L$(this.injector,r,e).then(a=>this.bootstrapModuleFactory(a,r))}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Ce(404,!1);this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());let e=this._injector.get(S0,null);e&&(e.forEach(n=>n()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static \u0275fac=function(n){return new(n||t)(ae(Te))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})(),k1=null,zx=new A("");function G$(t){if(k1&&!k1.get(zx,!1))throw new Ce(400,!1);zU(),k1=t;let i=t.get(Rx);return Y$(t),i}function ag(t,i,e=[]){let n=`Platform: ${i}`,r=new A(n);return(a=[])=>{let o=Hx();if(!o||o.injector.get(zx,!1)){let s=[...e,...a,{provide:r,useValue:!0}];t?t(s):G$(W$(s,n))}return q$(r)}}function W$(t=[],i){return Te.create({name:i,providers:[{provide:P0,useValue:"platform"},{provide:S0,useValue:new Set([()=>k1=null])},...t]})}function q$(t){let i=Hx();if(!i)throw new Ce(401,!1);return i}function Hx(){return k1?.get(Rx)??null}function Y$(t){let i=t.get(M8,null);Ki(t,()=>{i?.forEach(e=>e())})}var be=(()=>{class t{static __NG_ELEMENT_ID__=Q$}return t})();function Q$(t){return K$(yi(),je(),(t&16)===16)}function K$(t,i,e){if(Sl(t)&&!e){let n=xa(t.index,i);return new A1(n,n)}else if(t.type&175){let n=i[pr];return new A1(n,i)}return null}var W6=class{constructor(){}supports(i){return lx(i)}create(i){return new q6(i)}},Z$=(t,i)=>i,q6=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(i){this._trackByFn=i||Z$}forEachItem(i){let e;for(e=this._itHead;e!==null;e=e._next)i(e)}forEachOperation(i){let e=this._itHead,n=this._removalsHead,r=0,a=null;for(;e||n;){let o=!n||e&&e.currentIndex{o=this._trackByFn(r,s),e===null||!Object.is(e.trackById,o)?(e=this._mismatch(e,s,o,r),n=!0):(n&&(e=this._verifyReinsertion(e,s,o,r)),Object.is(e.item,s)||this._addIdentityChange(e,s)),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=i,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let i;for(i=this._previousItHead=this._itHead;i!==null;i=i._next)i._nextPrevious=i._next;for(i=this._additionsHead;i!==null;i=i._nextAdded)i.previousIndex=i.currentIndex;for(this._additionsHead=this._additionsTail=null,i=this._movesHead;i!==null;i=i._nextMoved)i.previousIndex=i.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(i,e,n,r){let a;return i===null?a=this._itTail:(a=i._prev,this._remove(i)),i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),i!==null?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._reinsertAfter(i,a,r)):(i=this._linkedRecords===null?null:this._linkedRecords.get(n,r),i!==null?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._moveAfter(i,a,r)):i=this._addAfter(new Y6(e,n),a,r)),i}_verifyReinsertion(i,e,n,r){let a=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return a!==null?i=this._reinsertAfter(a,i._prev,r):i.currentIndex!=r&&(i.currentIndex=r,this._addToMoves(i,r)),i}_truncate(i){for(;i!==null;){let e=i._next;this._addToRemovals(this._unlink(i)),i=e}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(i,e,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(i);let r=i._prevRemoved,a=i._nextRemoved;return r===null?this._removalsHead=a:r._nextRemoved=a,a===null?this._removalsTail=r:a._prevRemoved=r,this._insertAfter(i,e,n),this._addToMoves(i,n),i}_moveAfter(i,e,n){return this._unlink(i),this._insertAfter(i,e,n),this._addToMoves(i,n),i}_addAfter(i,e,n){return this._insertAfter(i,e,n),this._additionsTail===null?this._additionsTail=this._additionsHead=i:this._additionsTail=this._additionsTail._nextAdded=i,i}_insertAfter(i,e,n){let r=e===null?this._itHead:e._next;return i._next=r,i._prev=e,r===null?this._itTail=i:r._prev=i,e===null?this._itHead=i:e._next=i,this._linkedRecords===null&&(this._linkedRecords=new k0),this._linkedRecords.put(i),i.currentIndex=n,i}_remove(i){return this._addToRemovals(this._unlink(i))}_unlink(i){this._linkedRecords!==null&&this._linkedRecords.remove(i);let e=i._prev,n=i._next;return e===null?this._itHead=n:e._next=n,n===null?this._itTail=e:n._prev=e,i}_addToMoves(i,e){return i.previousIndex===e||(this._movesTail===null?this._movesTail=this._movesHead=i:this._movesTail=this._movesTail._nextMoved=i),i}_addToRemovals(i){return this._unlinkedRecords===null&&(this._unlinkedRecords=new k0),this._unlinkedRecords.put(i),i.currentIndex=null,i._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=i,i._prevRemoved=null):(i._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=i),i}_addIdentityChange(i,e){return i.item=e,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=i:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=i,i}},Y6=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(i,e){this.item=i,this.trackById=e}},Q6=class{_head=null;_tail=null;add(i){this._head===null?(this._head=this._tail=i,i._nextDup=null,i._prevDup=null):(this._tail._nextDup=i,i._prevDup=this._tail,i._nextDup=null,this._tail=i)}get(i,e){let n;for(n=this._head;n!==null;n=n._nextDup)if((e===null||e<=n.currentIndex)&&Object.is(n.trackById,i))return n;return null}remove(i){let e=i._prevDup,n=i._nextDup;return e===null?this._head=n:e._nextDup=n,n===null?this._tail=e:n._prevDup=e,this._head===null}},k0=class{map=new Map;put(i){let e=i.trackById,n=this.map.get(e);n||(n=new Q6,this.map.set(e,n)),n.add(i)}get(i,e){let n=i,r=this.map.get(n);return r?r.get(i,e):null}remove(i){let e=i.trackById;return this.map.get(e).remove(i)&&this.map.delete(e),i}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Lb(t,i,e){let n=t.previousIndex;if(n===null)return n;let r=0;return e&&n{if(e&&e.key===r)this._maybeAddToChanges(e,n),this._appendAfter=e,e=e._next;else{let a=this._getOrCreateRecordForKey(r,n);e=this._insertBeforeOrAppend(e,a)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let n=e;n!==null;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(i,e){if(i){let n=i._prev;return e._next=i,e._prev=n,i._prev=e,n&&(n._next=e),i===this._mapHead&&(this._mapHead=e),this._appendAfter=i,i}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(i,e){if(this._records.has(i)){let r=this._records.get(i);this._maybeAddToChanges(r,e);let a=r._prev,o=r._next;return a&&(a._next=o),o&&(o._prev=a),r._next=null,r._prev=null,r}let n=new X6(i);return this._records.set(i,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let i;for(this._previousMapHead=this._mapHead,i=this._previousMapHead;i!==null;i=i._next)i._nextPrevious=i._next;for(i=this._changesHead;i!==null;i=i._nextChanged)i.previousValue=i.currentValue;for(i=this._additionsHead;i!=null;i=i._nextAdded)i.previousValue=i.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(i,e){Object.is(e,i.currentValue)||(i.previousValue=i.currentValue,i.currentValue=e,this._addToChanges(i))}_addToAdditions(i){this._additionsHead===null?this._additionsHead=this._additionsTail=i:(this._additionsTail._nextAdded=i,this._additionsTail=i)}_addToChanges(i){this._changesHead===null?this._changesHead=this._changesTail=i:(this._changesTail._nextChanged=i,this._changesTail=i)}_forEach(i,e){i instanceof Map?i.forEach(e):Object.keys(i).forEach(n=>e(i[n],n))}},X6=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(i){this.key=i}};function Rb(){return new gr([new W6])}var gr=(()=>{class t{factories;static \u0275prov=R({token:t,providedIn:"root",factory:Rb});constructor(e){this.factories=e}static create(e,n){if(n!=null){let r=n.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||Rb()),deps:[[t,new Yr,new hr]]}}find(e){let n=this.factories.find(r=>r.supports(e));if(n!=null)return n;throw new Ce(901,!1)}}return t})();function zb(){return new au([new K6])}var au=(()=>{class t{static \u0275prov=R({token:t,providedIn:"root",factory:zb});factories;constructor(e){this.factories=e}static create(e,n){if(n){let r=n.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||zb()),deps:[[t,new Yr,new hr]]}}find(e){let n=this.factories.find(r=>r.supports(e));if(n)return n;throw new Ce(901,!1)}}return t})();var Nx=ag(null,"core",[]),Fx=(()=>{class t{constructor(e){}static \u0275fac=function(n){return new(n||t)(ae(bi))};static \u0275mod=K({type:t});static \u0275inj=Q({})}return t})();function B(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function ot(t,i=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):i}function ir(t){return ph(t)}function Zr(t,i){return d3(t,i?.equal)}var J6=class{[Gi];constructor(i){this[Gi]=i}destroy(){this[Gi].destroy()}};function K1(t,i){!i?.injector&&a8(K1);let e=i?.injector??u(Te),n=i?.manualCleanup!==!0?e.get(Uo):null,r,a=e.get(D8,null,{optional:!0}),o=e.get(Ws);return a!==null&&!i?.forceRoot?(r=eG(a.view,o,t),n instanceof u0&&n._lView===a.view&&(n=null)):r=tG(t,e.get(mx),o),r.injector=e,n!==null&&(r.onDestroyFn=n.onDestroy(()=>r.destroy())),new J6(r)}var Bx=Be(q({},qc),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,cleanupFns:void 0,zone:null,kind:"effect",onDestroyFn:P1,run(){if(this.dirty=!1,this.hasRun&&!s3(this))return;this.hasRun=!0;let t=n=>(this.cleanupFns??=[]).push(n),i=p1(this),e=o0(!1);try{this.maybeCleanup(),this.fn(t)}finally{o0(e),o3(this,i)}},maybeCleanup(){if(this.cleanupFns?.length)try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[]}}}),X$=Be(q({},Bx),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){f1(this),this.onDestroyFn(),this.maybeCleanup(),this.scheduler.remove(this)}}),J$=Be(q({},Bx),{consumerMarkedDirty(){this.view[et]|=8192,El(this.view),this.notifier.notify(13)},destroy(){f1(this),this.onDestroyFn(),this.maybeCleanup(),this.view[Bs]?.delete(this)}});function eG(t,i,e){let n=Object.create(J$);return n.view=t,n.zone=typeof Zone<"u"?Zone.current:null,n.notifier=i,n.fn=e,t[Bs]??=new Set,t[Bs].add(n),n.consumerMarkedDirty(n),n}function tG(t,i,e){let n=Object.create(X$);return n.fn=t,n.scheduler=i,n.notifier=e,n.zone=typeof Zone<"u"?Zone.current:null,n.scheduler.schedule(n),n.notifier.notify(12),n}function ou(t,i){let e=Fo(t),n=i.elementInjector||T0();return new qs(e).create(n,i.projectableNodes,i.hostElement,i.environmentInjector)}function jx(t){let i=Fo(t);if(!i)return null;let e=new qs(i);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return i.standalone},get isSignal(){return i.signals}}}var De=new A("");var Gx=null;function _r(){return Gx}function og(t){Gx??=t}var Z1=class{},X1=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:()=>u(Wx),providedIn:"platform"})}return t})(),sg=new A(""),Wx=(()=>{class t extends X1{_location;_history;_doc=u(De);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return _r().getBaseHref(this._doc)}onPopState(e){let n=_r().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e)}onHashChange(e){let n=_r().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",e,!1),()=>n.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,n,r){this._history.pushState(e,n,r)}replaceState(e,n,r){this._history.replaceState(e,n,r)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function su(t,i){return t?i?t.endsWith("/")?i.startsWith("/")?t+i.slice(1):t+i:i.startsWith("/")?t+i:`${t}/${i}`:t:i}function Ux(t){let i=t.search(/#|\?|$/);return t[i-1]==="/"?t.slice(0,i-1)+t.slice(i):t}function Xr(t){return t&&t[0]!=="?"?`?${t}`:t}var Jr=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:()=>u(lu),providedIn:"root"})}return t})(),cu=new A(""),lu=(()=>{class t extends Jr{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,n){super(),this._platformLocation=e,this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??u(De).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return su(this._baseHref,e)}path(e=!1){let n=this._platformLocation.pathname+Xr(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${n}${r}`:n}pushState(e,n,r,a){let o=this.prepareExternalUrl(r+Xr(a));this._platformLocation.pushState(e,n,o)}replaceState(e,n,r,a){let o=this.prepareExternalUrl(r+Xr(a));this._platformLocation.replaceState(e,n,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(n){return new(n||t)(ae(X1),ae(cu,8))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Tr=(()=>{class t{_subject=new N;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let n=this._locationStrategy.getBaseHref();this._basePath=rG(Ux($x(n))),this._locationStrategy.onPopState(r=>{this._subject.next({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,n=""){return this.path()==this.normalize(e+Xr(n))}normalize(e){return t.stripTrailingSlash(iG(this._basePath,$x(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,n="",r=null){this._locationStrategy.pushState(r,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Xr(n)),r)}replaceState(e,n="",r=null){this._locationStrategy.replaceState(r,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Xr(n)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)}),()=>{let n=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(n,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",n){this._urlChangeListeners.forEach(r=>r(e,n))}subscribe(e,n,r){return this._subject.subscribe({next:e,error:n??void 0,complete:r??void 0})}static normalizeQueryParams=Xr;static joinWithSlash=su;static stripTrailingSlash=Ux;static \u0275fac=function(n){return new(n||t)(ae(Jr))};static \u0275prov=R({token:t,factory:()=>nG(),providedIn:"root"})}return t})();function nG(){return new Tr(ae(Jr))}function iG(t,i){if(!t||!i.startsWith(t))return i;let e=i.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:i}function $x(t){return t.replace(/\/index.html$/,"")}function rG(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}var gg=(()=>{class t extends Jr{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(e,n){super(),this._platformLocation=e,n!=null&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let n=this._platformLocation.hash??"#";return n.length>0?n.substring(1):n}prepareExternalUrl(e){let n=su(this._baseHref,e);return n.length>0?"#"+n:n}pushState(e,n,r,a){let o=this.prepareExternalUrl(r+Xr(a))||this._platformLocation.pathname;this._platformLocation.pushState(e,n,o)}replaceState(e,n,r,a){let o=this.prepareExternalUrl(r+Xr(a))||this._platformLocation.pathname;this._platformLocation.replaceState(e,n,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(n){return new(n||t)(ae(X1),ae(cu,8))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),eM={ADP:[void 0,void 0,0],AFN:[void 0,"\u060B",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058F",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20BC"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09F3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xA5","\xA5"],COP:[void 0,"$",2],CRC:[void 0,"\u20A1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010D",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xA3"],ESP:[void 0,"\u20A7",0],EUR:["\u20AC"],FJD:[void 0,"$"],FKP:[void 0,"\xA3"],GBP:["\xA3"],GEL:[void 0,"\u20BE"],GHS:[void 0,"GH\u20B5"],GIP:[void 0,"\xA3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20AA"],INR:["\u20B9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xA5",void 0,0],KHR:[void 0,"\u17DB"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20A9",0],KRW:["\u20A9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20B8"],LAK:[void 0,"\u20AD",0],LBP:[void 0,"L\xA3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20AE",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20A6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20B1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20B2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20BD"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xA3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xA3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xA3",0],THB:[void 0,"\u0E3F"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20BA"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20B4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20AB",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202FCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xA4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]},yu=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t}(yu||{});var Ci=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}(Ci||{}),Gt=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}(Gt||{}),rr=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}(rr||{}),ui={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function tM(t){return er(t)[on.LocaleId]}function nM(t,i,e){let n=er(t),r=[n[on.DayPeriodsFormat],n[on.DayPeriodsStandalone]],a=Ar(r,i);return Ar(a,e)}function iM(t,i,e){let n=er(t),r=[n[on.DaysFormat],n[on.DaysStandalone]],a=Ar(r,i);return Ar(a,e)}function rM(t,i,e){let n=er(t),r=[n[on.MonthsFormat],n[on.MonthsStandalone]],a=Ar(r,i);return Ar(a,e)}function aM(t,i){let n=er(t)[on.Eras];return Ar(n,i)}function J1(t,i){let e=er(t);return Ar(e[on.DateFormat],i)}function ed(t,i){let e=er(t);return Ar(e[on.TimeFormat],i)}function td(t,i){let n=er(t)[on.DateTimeFormat];return Ar(n,i)}function ta(t,i){let e=er(t),n=e[on.NumberSymbols][i];if(typeof n>"u"){if(i===ui.CurrencyDecimal)return e[on.NumberSymbols][ui.Decimal];if(i===ui.CurrencyGroup)return e[on.NumberSymbols][ui.Group]}return n}function _g(t,i){return er(t)[on.NumberFormats][i]}function aG(t){return er(t)[on.Currencies]}function oM(t){if(!t[on.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[on.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function sM(t){let i=er(t);return oM(i),(i[on.ExtraData][2]||[]).map(n=>typeof n=="string"?cg(n):[cg(n[0]),cg(n[1])])}function cM(t,i,e){let n=er(t);oM(n);let r=[n[on.ExtraData][0],n[on.ExtraData][1]],a=Ar(r,i)||[];return Ar(a,e)||[]}function Ar(t,i){for(let e=i;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new Error("Locale data API: locale data undefined")}function cg(t){let[i,e]=t.split(":");return{hours:+i,minutes:+e}}function lM(t,i,e="en"){let n=aG(e)[t]||eM[t]||[],r=n[1];return i==="narrow"&&typeof r=="string"?r:n[0]||t}var oG=2;function dM(t){let i,e=eM[t];return e&&(i=e[2]),typeof i=="number"?i:oG}var sG=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,du={},cG=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;function uM(t,i,e,n){let r=_G(t);i=_o(e,i)||i;let o=[],s;for(;i;)if(s=cG.exec(i),s){o=o.concat(s.slice(1));let v=o.pop();if(!v)break;i=v}else{o.push(i);break}let d=r.getTimezoneOffset();n&&(d=pM(n,d),r=gG(r,n));let h="";return o.forEach(v=>{let C=fG(v);h+=C?C(r,e,d):v==="''"?"'":v.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),h}function hu(t,i,e){let n=new Date(0);return n.setFullYear(t,i,e),n.setHours(0,0,0),n}function _o(t,i){let e=tM(t);if(du[e]??={},du[e][i])return du[e][i];let n="";switch(i){case"shortDate":n=J1(t,rr.Short);break;case"mediumDate":n=J1(t,rr.Medium);break;case"longDate":n=J1(t,rr.Long);break;case"fullDate":n=J1(t,rr.Full);break;case"shortTime":n=ed(t,rr.Short);break;case"mediumTime":n=ed(t,rr.Medium);break;case"longTime":n=ed(t,rr.Long);break;case"fullTime":n=ed(t,rr.Full);break;case"short":let r=_o(t,"shortTime"),a=_o(t,"shortDate");n=uu(td(t,rr.Short),[r,a]);break;case"medium":let o=_o(t,"mediumTime"),s=_o(t,"mediumDate");n=uu(td(t,rr.Medium),[o,s]);break;case"long":let d=_o(t,"longTime"),h=_o(t,"longDate");n=uu(td(t,rr.Long),[d,h]);break;case"full":let v=_o(t,"fullTime"),C=_o(t,"fullDate");n=uu(td(t,rr.Full),[v,C]);break}return n&&(du[e][i]=n),n}function uu(t,i){return i&&(t=t.replace(/\{([^}]+)}/g,function(e,n){return i!=null&&n in i?i[n]:e})),t}function ea(t,i,e="-",n,r){let a="";(t<0||r&&t<=0)&&(r?t=-t+1:(t=-t,a=e));let o=String(t);for(;o.length0||s>-e)&&(s+=e),t===3)s===0&&e===-12&&(s=12);else if(t===6)return lG(s,i);let d=ta(o,ui.MinusSign);return ea(s,i,d,n,r)}}function dG(t,i){switch(t){case 0:return i.getFullYear();case 1:return i.getMonth();case 2:return i.getDate();case 3:return i.getHours();case 4:return i.getMinutes();case 5:return i.getSeconds();case 6:return i.getMilliseconds();case 7:return i.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}function Zt(t,i,e=Ci.Format,n=!1){return function(r,a){return uG(r,a,t,i,e,n)}}function uG(t,i,e,n,r,a){switch(e){case 2:return rM(i,r,n)[t.getMonth()];case 1:return iM(i,r,n)[t.getDay()];case 0:let o=t.getHours(),s=t.getMinutes();if(a){let h=sM(i),v=cM(i,r,n),C=h.findIndex(S=>{if(Array.isArray(S)){let[D,L]=S,ne=o>=D.hours&&s>=D.minutes,oe=o0?Math.floor(r/60):Math.ceil(r/60);switch(t){case 0:return(r>=0?"+":"")+ea(o,2,a)+ea(Math.abs(r%60),2,a);case 1:return"GMT"+(r>=0?"+":"")+ea(o,1,a);case 2:return"GMT"+(r>=0?"+":"")+ea(o,2,a)+":"+ea(Math.abs(r%60),2,a);case 3:return n===0?"Z":(r>=0?"+":"")+ea(o,2,a)+":"+ea(Math.abs(r%60),2,a);default:throw new Error(`Unknown zone width "${t}"`)}}}var mG=0,fu=4;function pG(t){let i=hu(t,mG,1).getDay();return hu(t,0,1+(i<=fu?fu:fu+7)-i)}function mM(t){let i=t.getDay(),e=i===0?-3:fu-i;return hu(t.getFullYear(),t.getMonth(),t.getDate()+e)}function lg(t,i=!1){return function(e,n){let r;if(i){let a=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,o=e.getDate();r=1+Math.floor((o+a)/7)}else{let a=mM(e),o=pG(a.getFullYear()),s=a.getTime()-o.getTime();r=1+Math.round(s/6048e5)}return ea(r,t,ta(n,ui.MinusSign))}}function pu(t,i=!1){return function(e,n){let a=mM(e).getFullYear();return ea(a,t,ta(n,ui.MinusSign),i)}}var dg={};function fG(t){if(dg[t])return dg[t];let i;switch(t){case"G":case"GG":case"GGG":i=Zt(3,Gt.Abbreviated);break;case"GGGG":i=Zt(3,Gt.Wide);break;case"GGGGG":i=Zt(3,Gt.Narrow);break;case"y":i=Hn(0,1,0,!1,!0);break;case"yy":i=Hn(0,2,0,!0,!0);break;case"yyy":i=Hn(0,3,0,!1,!0);break;case"yyyy":i=Hn(0,4,0,!1,!0);break;case"Y":i=pu(1);break;case"YY":i=pu(2,!0);break;case"YYY":i=pu(3);break;case"YYYY":i=pu(4);break;case"M":case"L":i=Hn(1,1,1);break;case"MM":case"LL":i=Hn(1,2,1);break;case"MMM":i=Zt(2,Gt.Abbreviated);break;case"MMMM":i=Zt(2,Gt.Wide);break;case"MMMMM":i=Zt(2,Gt.Narrow);break;case"LLL":i=Zt(2,Gt.Abbreviated,Ci.Standalone);break;case"LLLL":i=Zt(2,Gt.Wide,Ci.Standalone);break;case"LLLLL":i=Zt(2,Gt.Narrow,Ci.Standalone);break;case"w":i=lg(1);break;case"ww":i=lg(2);break;case"W":i=lg(1,!0);break;case"d":i=Hn(2,1);break;case"dd":i=Hn(2,2);break;case"c":case"cc":i=Hn(7,1);break;case"ccc":i=Zt(1,Gt.Abbreviated,Ci.Standalone);break;case"cccc":i=Zt(1,Gt.Wide,Ci.Standalone);break;case"ccccc":i=Zt(1,Gt.Narrow,Ci.Standalone);break;case"cccccc":i=Zt(1,Gt.Short,Ci.Standalone);break;case"E":case"EE":case"EEE":i=Zt(1,Gt.Abbreviated);break;case"EEEE":i=Zt(1,Gt.Wide);break;case"EEEEE":i=Zt(1,Gt.Narrow);break;case"EEEEEE":i=Zt(1,Gt.Short);break;case"a":case"aa":case"aaa":i=Zt(0,Gt.Abbreviated);break;case"aaaa":i=Zt(0,Gt.Wide);break;case"aaaaa":i=Zt(0,Gt.Narrow);break;case"b":case"bb":case"bbb":i=Zt(0,Gt.Abbreviated,Ci.Standalone,!0);break;case"bbbb":i=Zt(0,Gt.Wide,Ci.Standalone,!0);break;case"bbbbb":i=Zt(0,Gt.Narrow,Ci.Standalone,!0);break;case"B":case"BB":case"BBB":i=Zt(0,Gt.Abbreviated,Ci.Format,!0);break;case"BBBB":i=Zt(0,Gt.Wide,Ci.Format,!0);break;case"BBBBB":i=Zt(0,Gt.Narrow,Ci.Format,!0);break;case"h":i=Hn(3,1,-12);break;case"hh":i=Hn(3,2,-12);break;case"H":i=Hn(3,1);break;case"HH":i=Hn(3,2);break;case"m":i=Hn(4,1);break;case"mm":i=Hn(4,2);break;case"s":i=Hn(5,1);break;case"ss":i=Hn(5,2);break;case"S":i=Hn(6,1);break;case"SS":i=Hn(6,2);break;case"SSS":i=Hn(6,3);break;case"Z":case"ZZ":case"ZZZ":i=mu(0);break;case"ZZZZZ":i=mu(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":i=mu(1);break;case"OOOO":case"ZZZZ":case"zzzz":i=mu(2);break;default:return null}return dg[t]=i,i}function pM(t,i){t=t.replace(/:/g,"");let e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?i:e}function hG(t,i){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+i),t}function gG(t,i,e){let r=t.getTimezoneOffset(),a=pM(i,r);return hG(t,-1*(a-r))}function _G(t){if(qx(t))return t;if(typeof t=="number"&&!isNaN(t))return new Date(t);if(typeof t=="string"){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){let[r,a=1,o=1]=t.split("-").map(s=>+s);return hu(r,a-1,o)}let e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let n;if(n=t.match(sG))return vG(n)}let i=new Date(t);if(!qx(i))throw new Error(`Unable to convert "${t}" into a date`);return i}function vG(t){let i=new Date(0),e=0,n=0,r=t[8]?i.setUTCFullYear:i.setFullYear,a=t[8]?i.setUTCHours:i.setHours;t[9]&&(e=Number(t[9]+t[10]),n=Number(t[9]+t[11])),r.call(i,Number(t[1]),Number(t[2])-1,Number(t[3]));let o=Number(t[4]||0)-e,s=Number(t[5]||0)-n,d=Number(t[6]||0),h=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return a.call(i,o,s,d,h),i}function qx(t){return t instanceof Date&&!isNaN(t.valueOf())}var bG=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Yx=22,gu=".",nd="0",yG=";",CG=",",ug="#",Qx="\xA4";function fM(t,i,e,n,r,a,o=!1){let s="",d=!1;if(!isFinite(t))s=ta(e,ui.Infinity);else{let h=MG(t);o&&(h=xG(h));let v=i.minInt,C=i.minFrac,S=i.maxFrac;if(a){let qe=a.match(bG);if(qe===null)throw new Error(`${a} is not a valid digit info`);let nt=qe[1],An=qe[3],Rn=qe[5];nt!=null&&(v=mg(nt)),An!=null&&(C=mg(An)),Rn!=null?S=mg(Rn):An!=null&&C>S&&(S=C)}wG(h,C,S);let D=h.digits,L=h.integerLen,ne=h.exponent,oe=[];for(d=D.every(qe=>!qe);L0?oe=D.splice(L,D.length):(oe=D,D=[0]);let ye=[];for(D.length>=i.lgSize&&ye.unshift(D.splice(-i.lgSize,D.length).join(""));D.length>i.gSize;)ye.unshift(D.splice(-i.gSize,D.length).join(""));D.length&&ye.unshift(D.join("")),s=ye.join(ta(e,n)),oe.length&&(s+=ta(e,r)+oe.join("")),ne&&(s+=ta(e,ui.Exponential)+"+"+ne)}return t<0&&!d?s=i.negPre+s+i.negSuf:s=i.posPre+s+i.posSuf,s}function Cu(t,i,e,n,r){let a=_g(i,yu.Currency),o=gM(a,ta(i,ui.MinusSign));return o.minFrac=dM(n),o.maxFrac=o.minFrac,fM(t,o,i,ui.CurrencyGroup,ui.CurrencyDecimal,r).replace(Qx,e).replace(Qx,"").trim()}function hM(t,i,e){let n=_g(i,yu.Decimal),r=gM(n,ta(i,ui.MinusSign));return fM(t,r,i,ui.Group,ui.Decimal,e)}function gM(t,i="-"){let e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=t.split(yG),r=n[0],a=n[1],o=r.indexOf(gu)!==-1?r.split(gu):[r.substring(0,r.lastIndexOf(nd)+1),r.substring(r.lastIndexOf(nd)+1)],s=o[0],d=o[1]||"";e.posPre=s.substring(0,s.indexOf(ug));for(let v=0;v-1&&(i=i.replace(gu,"")),(a=i.search(/e/i))>0?(r<0&&(r=a),r+=+i.slice(a+1),i=i.substring(0,a)):r<0&&(r=i.length),a=0;i.charAt(a)===nd;a++);if(a===(s=i.length))n=[0],r=1;else{for(s--;i.charAt(s)===nd;)s--;for(r-=a,n=[],o=0;a<=s;a++,o++)n[o]=Number(i.charAt(a))}return r>Yx&&(n=n.splice(0,Yx-1),e=r-1,r=1),{digits:n,exponent:e,integerLen:r}}function wG(t,i,e){if(i>e)throw new Error(`The minimum number of digits after fraction (${i}) is higher than the maximum (${e}).`);let n=t.digits,r=n.length-t.integerLen,a=Math.min(Math.max(i,r),e),o=a+t.integerLen,s=n[o];if(o>0){n.splice(Math.max(t.integerLen,o));for(let C=o;C=5)if(o-1<0){for(let C=0;C>o;C--)n.unshift(0),t.integerLen++;n.unshift(1),t.integerLen++}else n[o-1]++;for(;r=h?L.pop():d=!1),S>=10?1:0},0);v&&(n.unshift(v),t.integerLen++)}function mg(t){let i=parseInt(t);if(isNaN(i))throw new Error("Invalid integer literal when parsing "+t);return i}var pg=/\s+/,Kx=[],yn=(()=>{class t{_ngEl;_renderer;initialClasses=Kx;rawClass;stateMap=new Map;constructor(e,n){this._ngEl=e,this._renderer=n}set klass(e){this.initialClasses=e!=null?e.trim().split(pg):Kx}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(pg):e}ngDoCheck(){for(let n of this.initialClasses)this._updateState(n,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let n of e)this._updateState(n,!0);else if(e!=null)for(let n of Object.keys(e))this._updateState(n,!!e[n]);this._applyStateDiff()}_updateState(e,n){let r=this.stateMap.get(e);r!==void 0?(r.enabled!==n&&(r.changed=!0,r.enabled=n),r.touched=!0):this.stateMap.set(e,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(let e of this.stateMap){let n=e[0],r=e[1];r.changed?(this._toggleClass(n,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(n,!1),this.stateMap.delete(n)),r.touched=!1}}_toggleClass(e,n){e=e.trim(),e.length>0&&e.split(pg).forEach(r=>{n?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}static \u0275fac=function(n){return new(n||t)(k(Y),k(Ke))};static \u0275dir=V({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return t})();var _u=class{$implicit;ngForOf;index;count;constructor(i,e,n,r){this.$implicit=i,this.ngForOf=e,this.index=n,this.count=r}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},Ht=(()=>{class t{_viewContainer;_template;_differs;set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(e,n,r){this._viewContainer=e,this._template=n,this._differs=r}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){let e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){let n=this._viewContainer;e.forEachOperation((r,a,o)=>{if(r.previousIndex==null)n.createEmbeddedView(this._template,new _u(r.item,this._ngForOf,-1,-1),o===null?void 0:o);else if(o==null)n.remove(a===null?void 0:a);else if(a!==null){let s=n.get(a);n.move(s,o),Zx(s,r)}});for(let r=0,a=n.length;r{let a=n.get(r.currentIndex);Zx(a,r)})}static ngTemplateContextGuard(e,n){return!0}static \u0275fac=function(n){return new(n||t)(k(rt),k(Qe),k(gr))};static \u0275dir=V({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return t})();function Zx(t,i){t.context.$implicit=i.item}var Ae=(()=>{class t{_viewContainer;_context=new vu;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(e,n){this._viewContainer=e,this._thenTemplateRef=n}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){Xx(e,!1),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){Xx(e,!1),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(e,n){return!0}static \u0275fac=function(n){return new(n||t)(k(rt),k(Qe))};static \u0275dir=V({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return t})(),vu=class{$implicit=null;ngIf=null};function Xx(t,i){if(t&&!t.createEmbeddedView)throw new Ce(2020,!1)}var bu=class{_viewContainerRef;_templateRef;_created=!1;constructor(i,e){this._viewContainerRef=i,this._templateRef=e}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(i){i&&!this._created?this.create():!i&&this._created&&this.destroy()}},id=(()=>{class t{_defaultViews=[];_defaultUsed=!1;_caseCount=0;_lastCaseCheckIndex=0;_lastCasesMatched=!1;_ngSwitch;set ngSwitch(e){this._ngSwitch=e,this._caseCount===0&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews.push(e)}_matchCase(e){let n=e===this._ngSwitch;return this._lastCasesMatched||=n,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),n}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(let n of this._defaultViews)n.enforceState(e)}}static \u0275fac=function(n){return new(n||t)};static \u0275dir=V({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}})}return t})(),vg=(()=>{class t{ngSwitch;_view;ngSwitchCase;constructor(e,n,r){this.ngSwitch=r,r._addCase(),this._view=new bu(e,n)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static \u0275fac=function(n){return new(n||t)(k(rt),k(Qe),k(id,9))};static \u0275dir=V({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}})}return t})(),bg=(()=>{class t{constructor(e,n,r){r._addDefault(new bu(e,n))}static \u0275fac=function(n){return new(n||t)(k(rt),k(Qe),k(id,9))};static \u0275dir=V({type:t,selectors:[["","ngSwitchDefault",""]]})}return t})();var yg=(()=>{class t{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(e,n,r){this._ngEl=e,this._differs=n,this._renderer=r}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){let e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,n){let[r,a]=e.split("."),o=r.indexOf("-")===-1?void 0:wa.DashCase;n!=null?this._renderer.setStyle(this._ngEl.nativeElement,r,a?`${n}${a}`:n,o):this._renderer.removeStyle(this._ngEl.nativeElement,r,o)}_applyChanges(e){e.forEachRemovedItem(n=>this._setStyle(n.key,null)),e.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),e.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}static \u0275fac=function(n){return new(n||t)(k(Y),k(au),k(Ke))};static \u0275dir=V({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return t})(),Yo=(()=>{class t{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(e){this._viewContainerRef=e}ngOnChanges(e){if(this._shouldRecreateView(e)){let n=this._viewContainerRef;if(this._viewRef&&n.remove(n.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let r=this._createContextForwardProxy();this._viewRef=n.createEmbeddedView(this.ngTemplateOutlet,r,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,n,r)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,n,r):!1,get:(e,n,r)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,n,r)}})}static \u0275fac=function(n){return new(n||t)(k(rt))};static \u0275dir=V({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Pe]})}return t})();function Ll(t,i){return new Ce(2100,!1)}var fg=class{createSubscription(i,e){return ir(()=>i.subscribe({next:e,error:n=>{throw n}}))}dispose(i){ir(()=>i.unsubscribe())}},hg=class{createSubscription(i,e){return i.then(n=>e?.(n),n=>{throw n}),{unsubscribe:()=>{e=null}}}dispose(i){i.unsubscribe()}},DG=new hg,SG=new fg,rd=(()=>{class t{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;constructor(e){this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){if(!this._obj){if(e)try{this.markForCheckOnValueUpdate=!1,this._subscribe(e)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,n=>this._updateLatestValue(e,n))}_selectStrategy(e){if(qo(e))return DG;if(Z8(e))return SG;throw Ll(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,n){e===this._obj&&(this._latestValue=n,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(n){return new(n||t)(k(be,16))};static \u0275pipe=_t({name:"async",type:t,pure:!1})}return t})(),kG=(()=>{class t{transform(e){if(e==null)return null;if(typeof e!="string")throw Ll(t,e);return e.toLowerCase()}static \u0275fac=function(n){return new(n||t)};static \u0275pipe=_t({name:"lowercase",type:t,pure:!0})}return t})(),EG=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g,OG=(()=>{class t{transform(e){if(e==null)return null;if(typeof e!="string")throw Ll(t,e);return e.replace(EG,n=>n[0].toUpperCase()+n.slice(1).toLowerCase())}static \u0275fac=function(n){return new(n||t)};static \u0275pipe=_t({name:"titlecase",type:t,pure:!0})}return t})();var IG="mediumDate",_M=new A(""),vM=new A(""),ec=(()=>{class t{locale;defaultTimezone;defaultOptions;constructor(e,n,r){this.locale=e,this.defaultTimezone=n,this.defaultOptions=r}transform(e,n,r,a){if(e==null||e===""||e!==e)return null;try{let o=n??this.defaultOptions?.dateFormat??IG,s=r??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return uM(e,o,a||this.locale,s)}catch(o){throw Ll(t,o.message)}}static \u0275fac=function(n){return new(n||t)(k(Ea,16),k(_M,24),k(vM,24))};static \u0275pipe=_t({name:"date",type:t,pure:!0})}return t})();var PG=(()=>{class t{transform(e){return JSON.stringify(e,null,2)}static \u0275fac=function(n){return new(n||t)};static \u0275pipe=_t({name:"json",type:t,pure:!1})}return t})();function TG(t,i){return{key:t,value:i}}var AG=(()=>{class t{differs;constructor(e){this.differs=e}differ;keyValues=[];compareFn=Jx;transform(e,n=Jx){if(!e||!(e instanceof Map)&&typeof e!="object")return null;this.differ??=this.differs.find(e).create();let r=this.differ.diff(e),a=n!==this.compareFn;return r&&(this.keyValues=[],r.forEachItem(o=>{this.keyValues.push(TG(o.key,o.currentValue))})),(r||a)&&(n&&this.keyValues.sort(n),this.compareFn=n),this.keyValues}static \u0275fac=function(n){return new(n||t)(k(au,16))};static \u0275pipe=_t({name:"keyvalue",type:t,pure:!1})}return t})();function Jx(t,i){let e=t.key,n=i.key;if(e===n)return 0;if(e==null)return 1;if(n==null)return-1;if(typeof e=="string"&&typeof n=="string")return e{class t{_locale;constructor(e){this._locale=e}transform(e,n,r){if(!bM(e))return null;r||=this._locale;try{let a=yM(e);return hM(a,r,n)}catch(a){throw Ll(t,a.message)}}static \u0275fac=function(n){return new(n||t)(k(Ea,16))};static \u0275pipe=_t({name:"number",type:t,pure:!0})}return t})();var Cg=(()=>{class t{_locale;_defaultCurrencyCode;constructor(e,n="USD"){this._locale=e,this._defaultCurrencyCode=n}transform(e,n=this._defaultCurrencyCode,r="symbol",a,o){if(!bM(e))return null;o||=this._locale,typeof r=="boolean"&&(r=r?"symbol":"code");let s=n||this._defaultCurrencyCode;r!=="code"&&(r==="symbol"||r==="symbol-narrow"?s=lM(s,r==="symbol"?"wide":"narrow",o):s=r);try{let d=yM(e);return Cu(d,o,s,n,a)}catch(d){throw Ll(t,d.message)}}static \u0275fac=function(n){return new(n||t)(k(Ea,16),k(Lx,16))};static \u0275pipe=_t({name:"currency",type:t,pure:!0})}return t})();function bM(t){return!(t==null||t===""||t!==t)}function yM(t){if(typeof t=="string"&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if(typeof t!="number")throw new Error(`${t} is not a number`);return t}var fe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=K({type:t});static \u0275inj=Q({})}return t})();function od(t,i){i=encodeURIComponent(i);for(let e of t.split(";")){let n=e.indexOf("="),[r,a]=n==-1?[e,""]:[e.slice(0,n),e.slice(n+1)];if(r.trim()===i)return decodeURIComponent(a)}return null}var xu="browser",CM="server";function xg(t){return t===xu}function Mu(t){return t===CM}var tc=class{};function ppe(t,i,e){return Sx(t,i,e)}var xM=(()=>{class t{static \u0275prov=R({token:t,providedIn:"root",factory:()=>new Mg(u(De),window)})}return t})(),Mg=class{document;window;offset=()=>[0,0];constructor(i,e){this.document=i,this.window=e}setOffset(i){Array.isArray(i)?this.offset=()=>i:this.offset=i}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(i){this.window.scrollTo(i[0],i[1])}scrollToAnchor(i){let e=VG(this.document,i);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(i){this.window.history.scrollRestoration=i}scrollToElement(i){let e=i.getBoundingClientRect(),n=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,a=this.offset();this.window.scrollTo(n-a[0],r-a[1])}};function VG(t,i){let e=t.getElementById(i)||t.getElementsByName(i)[0];if(e)return e;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),r=n.currentNode;for(;r;){let a=r.shadowRoot;if(a){let o=a.getElementById(i)||a.querySelector(`[name="${i}"]`);if(o)return o}r=n.nextNode()}}return null}var Su=new A(""),kg=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,n){this._zone=n,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,n,r,a){return this._findPluginFor(n).addEventListener(e,n,r,a)}getZone(){return this._zone}_findPluginFor(e){let n=this._eventNameToPlugin.get(e);if(n)return n;if(n=this._plugins.find(a=>a.supports(e)),!n)throw new Ce(5101,!1);return this._eventNameToPlugin.set(e,n),n}static \u0275fac=function(n){return new(n||t)(ae(Su),ae(se))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),sd=class{_doc;constructor(i){this._doc=i}manager},wu="ng-app-id";function MM(t){for(let i of t)i.remove()}function wM(t,i){let e=i.createElement("style");return e.textContent=t,e}function LG(t,i,e,n){let r=t.head?.querySelectorAll(`style[${wu}="${i}"],link[${wu}="${i}"]`);if(r)for(let a of r)a.removeAttribute(wu),a instanceof HTMLLinkElement?n.set(a.href.slice(a.href.lastIndexOf("/")+1),{usage:0,elements:[a]}):a.textContent&&e.set(a.textContent,{usage:0,elements:[a]})}function Dg(t,i){let e=i.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var Eg=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(e,n,r,a={}){this.doc=e,this.appId=n,this.nonce=r,this.isServer=Mu(a),LG(e,n,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,n){for(let r of e)this.addUsage(r,this.inline,wM);n?.forEach(r=>this.addUsage(r,this.external,Dg))}removeStyles(e,n){for(let r of e)this.removeUsage(r,this.inline);n?.forEach(r=>this.removeUsage(r,this.external))}addUsage(e,n,r){let a=n.get(e);a?a.usage++:n.set(e,{usage:1,elements:[...this.hosts].map(o=>this.addElement(o,r(e,this.doc)))})}removeUsage(e,n){let r=n.get(e);r&&(r.usage--,r.usage<=0&&(MM(r.elements),n.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])MM(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[n,{elements:r}]of this.inline)r.push(this.addElement(e,wM(n,this.doc)));for(let[n,{elements:r}]of this.external)r.push(this.addElement(e,Dg(n,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,n){return this.nonce&&n.setAttribute("nonce",this.nonce),this.isServer&&n.setAttribute(wu,this.appId),e.appendChild(n)}static \u0275fac=function(n){return new(n||t)(ae(De),ae(Xs),ae(F1,8),ae(Go))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),wg={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Og=/%COMP%/g;var SM="%COMP%",RG=`_nghost-${SM}`,zG=`_ngcontent-${SM}`,HG=!0,NG=new A("",{providedIn:"root",factory:()=>HG});function FG(t){return zG.replace(Og,t)}function BG(t){return RG.replace(Og,t)}function kM(t,i){return i.map(e=>e.replace(Og,t))}var Ig=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,n,r,a,o,s,d,h=null,v=null){this.eventManager=e,this.sharedStylesHost=n,this.appId=r,this.removeStylesOnCompDestroy=a,this.doc=o,this.platformId=s,this.ngZone=d,this.nonce=h,this.tracingService=v,this.platformIsServer=Mu(s),this.defaultRenderer=new cd(e,o,d,this.platformIsServer,this.tracingService)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;this.platformIsServer&&n.encapsulation===Ma.ShadowDom&&(n=Be(q({},n),{encapsulation:Ma.Emulated}));let r=this.getOrCreateRenderer(e,n);return r instanceof Du?r.applyToHost(e):r instanceof ld&&r.applyStyles(),r}getOrCreateRenderer(e,n){let r=this.rendererByCompId,a=r.get(n.id);if(!a){let o=this.doc,s=this.ngZone,d=this.eventManager,h=this.sharedStylesHost,v=this.removeStylesOnCompDestroy,C=this.platformIsServer,S=this.tracingService;switch(n.encapsulation){case Ma.Emulated:a=new Du(d,h,n,this.appId,v,o,s,C,S);break;case Ma.ShadowDom:return new Sg(d,h,e,n,o,s,this.nonce,C,S);default:a=new ld(d,h,n,v,o,s,C,S);break}r.set(n.id,a)}return a}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(n){return new(n||t)(ae(kg),ae(Eg),ae(Xs),ae(NG),ae(De),ae(Go),ae(se),ae(F1),ae(Tl,8))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),cd=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(i,e,n,r,a){this.eventManager=i,this.doc=e,this.ngZone=n,this.platformIsServer=r,this.tracingService=a}destroy(){}destroyNode=null;createElement(i,e){return e?this.doc.createElementNS(wg[e]||e,i):this.doc.createElement(i)}createComment(i){return this.doc.createComment(i)}createText(i){return this.doc.createTextNode(i)}appendChild(i,e){(DM(i)?i.content:i).appendChild(e)}insertBefore(i,e,n){i&&(DM(i)?i.content:i).insertBefore(e,n)}removeChild(i,e){e.remove()}selectRootElement(i,e){let n=typeof i=="string"?this.doc.querySelector(i):i;if(!n)throw new Ce(-5104,!1);return e||(n.textContent=""),n}parentNode(i){return i.parentNode}nextSibling(i){return i.nextSibling}setAttribute(i,e,n,r){if(r){e=r+":"+e;let a=wg[r];a?i.setAttributeNS(a,e,n):i.setAttribute(e,n)}else i.setAttribute(e,n)}removeAttribute(i,e,n){if(n){let r=wg[n];r?i.removeAttributeNS(r,e):i.removeAttribute(`${n}:${e}`)}else i.removeAttribute(e)}addClass(i,e){i.classList.add(e)}removeClass(i,e){i.classList.remove(e)}setStyle(i,e,n,r){r&(wa.DashCase|wa.Important)?i.style.setProperty(e,n,r&wa.Important?"important":""):i.style[e]=n}removeStyle(i,e,n){n&wa.DashCase?i.style.removeProperty(e):i.style[e]=""}setProperty(i,e,n){i!=null&&(i[e]=n)}setValue(i,e){i.nodeValue=e}listen(i,e,n,r){if(typeof i=="string"&&(i=_r().getGlobalEventTarget(this.doc,i),!i))throw new Ce(5102,!1);let a=this.decoratePreventDefault(n);return this.tracingService?.wrapEventListener&&(a=this.tracingService.wrapEventListener(i,e,a)),this.eventManager.addEventListener(i,e,a,r)}decoratePreventDefault(i){return e=>{if(e==="__ngUnwrap__")return i;(this.platformIsServer?this.ngZone.runGuarded(()=>i(e)):i(e))===!1&&e.preventDefault()}}};function DM(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Sg=class extends cd{sharedStylesHost;hostEl;shadowRoot;constructor(i,e,n,r,a,o,s,d,h){super(i,a,o,d,h),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let v=r.styles;v=kM(r.id,v);for(let S of v){let D=document.createElement("style");s&&D.setAttribute("nonce",s),D.textContent=S,this.shadowRoot.appendChild(D)}let C=r.getExternalStyles?.();if(C)for(let S of C){let D=Dg(S,a);s&&D.setAttribute("nonce",s),this.shadowRoot.appendChild(D)}}nodeOrShadowRoot(i){return i===this.hostEl?this.shadowRoot:i}appendChild(i,e){return super.appendChild(this.nodeOrShadowRoot(i),e)}insertBefore(i,e,n){return super.insertBefore(this.nodeOrShadowRoot(i),e,n)}removeChild(i,e){return super.removeChild(null,e)}parentNode(i){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(i)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},ld=class extends cd{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(i,e,n,r,a,o,s,d,h){super(i,a,o,s,d),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=r;let v=n.styles;this.styles=h?kM(h,v):v,this.styleUrls=n.getExternalStyles?.(h)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Du=class extends ld{contentAttr;hostAttr;constructor(i,e,n,r,a,o,s,d,h){let v=r+"-"+n.id;super(i,e,n,a,o,s,d,h,v),this.contentAttr=FG(v),this.hostAttr=BG(v)}applyToHost(i){this.applyStyles(),this.setAttribute(i,this.hostAttr,"")}createElement(i,e){let n=super.createElement(i,e);return super.setAttribute(n,this.contentAttr,""),n}};var ku=class t extends Z1{supportsDOMEvents=!0;static makeCurrent(){og(new t)}onAndCancel(i,e,n,r){return i.addEventListener(e,n,r),()=>{i.removeEventListener(e,n,r)}}dispatchEvent(i,e){i.dispatchEvent(e)}remove(i){i.remove()}createElement(i,e){return e=e||this.getDefaultDocument(),e.createElement(i)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(i){return i.nodeType===Node.ELEMENT_NODE}isShadowRoot(i){return i instanceof DocumentFragment}getGlobalEventTarget(i,e){return e==="window"?window:e==="document"?i:e==="body"?i.body:null}getBaseHref(i){let e=jG();return e==null?null:UG(e)}resetBaseElement(){dd=null}getUserAgent(){return window.navigator.userAgent}getCookie(i){return od(document.cookie,i)}},dd=null;function jG(){return dd=dd||document.head.querySelector("base"),dd?dd.getAttribute("href"):null}function UG(t){return new URL(t,document.baseURI).pathname}var Eu=class{addToWindow(i){ni.getAngularTestability=(n,r=!0)=>{let a=i.findTestabilityInTree(n,r);if(a==null)throw new Ce(5103,!1);return a},ni.getAllAngularTestabilities=()=>i.getAllTestabilities(),ni.getAllAngularRootElements=()=>i.getAllRootElements();let e=n=>{let r=ni.getAllAngularTestabilities(),a=r.length,o=function(){a--,a==0&&n()};r.forEach(s=>{s.whenStable(o)})};ni.frameworkStabilizers||(ni.frameworkStabilizers=[]),ni.frameworkStabilizers.push(e)}findTestabilityInTree(i,e,n){if(e==null)return null;let r=i.getTestability(e);return r??(n?_r().isShadowRoot(e)?this.findTestabilityInTree(i,e.host,!0):this.findTestabilityInTree(i,e.parentElement,!0):null)}},$G=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),OM=(()=>{class t extends sd{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,r,a){return e.addEventListener(n,r,a),()=>this.removeEventListener(e,n,r,a)}removeEventListener(e,n,r,a){return e.removeEventListener(n,r,a)}static \u0275fac=function(n){return new(n||t)(ae(De))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),EM=["alt","control","meta","shift"],GG={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},WG={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},IM=(()=>{class t extends sd{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,n,r,a){let o=t.parseEventName(n),s=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>_r().onAndCancel(e,o.domEventName,s,a))}static parseEventName(e){let n=e.toLowerCase().split("."),r=n.shift();if(n.length===0||!(r==="keydown"||r==="keyup"))return null;let a=t._normalizeKey(n.pop()),o="",s=n.indexOf("code");if(s>-1&&(n.splice(s,1),o="code."),EM.forEach(h=>{let v=n.indexOf(h);v>-1&&(n.splice(v,1),o+=h+".")}),o+=a,n.length!=0||a.length===0)return null;let d={};return d.domEventName=r,d.fullKey=o,d}static matchEventFullKeyCode(e,n){let r=GG[e.key]||e.key,a="";return n.indexOf("code.")>-1&&(r=e.code,a="code."),r==null||!r?!1:(r=r.toLowerCase(),r===" "?r="space":r==="."&&(r="dot"),EM.forEach(o=>{if(o!==r){let s=WG[o];s(e)&&(a+=o+".")}}),a+=r,a===n)}static eventCallback(e,n,r){return a=>{t.matchEventFullKeyCode(a,e)&&r.runGuarded(()=>n(a))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(n){return new(n||t)(ae(De))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function qG(){ku.makeCurrent()}function YG(){return new Vi}function QG(){return eC(document),document}var KG=[{provide:Go,useValue:xu},{provide:M8,useValue:qG,multi:!0},{provide:De,useFactory:QG}],ZG=ag(Nx,"browser",KG);var XG=[{provide:q1,useClass:Eu},{provide:Q8,useClass:K0,deps:[se,Z0,q1]},{provide:K0,useClass:K0,deps:[se,Z0,q1]}],JG=[{provide:P0,useValue:"root"},{provide:Vi,useFactory:YG},{provide:Su,useClass:OM,multi:!0,deps:[De]},{provide:Su,useClass:IM,multi:!0,deps:[De]},Ig,Eg,kg,{provide:En,useExisting:Ig},{provide:tc,useClass:$G},[]],eW=(()=>{class t{constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275mod=K({type:t});static \u0275inj=Q({providers:[...JG,...XG],imports:[fe,Fx]})}return t})();var zl=class{},ud=class{},vr=class t{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(i){i?typeof i=="string"?this.lazyInit=()=>{this.headers=new Map,i.split(` -`).forEach(e=>{let n=e.indexOf(":");if(n>0){let r=e.slice(0,n),a=e.slice(n+1).trim();this.addHeaderEntry(r,a)}})}:typeof Headers<"u"&&i instanceof Headers?(this.headers=new Map,i.forEach((e,n)=>{this.addHeaderEntry(n,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(i).forEach(([e,n])=>{this.setHeaderEntries(e,n)})}:this.headers=new Map}has(i){return this.init(),this.headers.has(i.toLowerCase())}get(i){this.init();let e=this.headers.get(i.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(i){return this.init(),this.headers.get(i.toLowerCase())||null}append(i,e){return this.clone({name:i,value:e,op:"a"})}set(i,e){return this.clone({name:i,value:e,op:"s"})}delete(i,e){return this.clone({name:i,value:e,op:"d"})}maybeSetNormalizedName(i,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,i)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(i=>this.applyUpdate(i)),this.lazyUpdate=null))}copyFrom(i){i.init(),Array.from(i.headers.keys()).forEach(e=>{this.headers.set(e,i.headers.get(e)),this.normalizedNames.set(e,i.normalizedNames.get(e))})}clone(i){let e=new t;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([i]),e}applyUpdate(i){let e=i.name.toLowerCase();switch(i.op){case"a":case"s":let n=i.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(i.name,e);let r=(i.op==="a"?this.headers.get(e):void 0)||[];r.push(...n),this.headers.set(e,r);break;case"d":let a=i.value;if(!a)this.headers.delete(e),this.normalizedNames.delete(e);else{let o=this.headers.get(e);if(!o)return;o=o.filter(s=>a.indexOf(s)===-1),o.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}break}}addHeaderEntry(i,e){let n=i.toLowerCase();this.maybeSetNormalizedName(i,n),this.headers.has(n)?this.headers.get(n).push(e):this.headers.set(n,[e])}setHeaderEntries(i,e){let n=(Array.isArray(e)?e:[e]).map(a=>a.toString()),r=i.toLowerCase();this.headers.set(r,n),this.maybeSetNormalizedName(i,r)}forEach(i){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>i(this.normalizedNames.get(e),this.headers.get(e)))}};var Iu=class{encodeKey(i){return PM(i)}encodeValue(i){return PM(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}};function tW(t,i){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{let a=r.indexOf("="),[o,s]=a==-1?[i.decodeKey(r),""]:[i.decodeKey(r.slice(0,a)),i.decodeValue(r.slice(a+1))],d=e.get(o)||[];d.push(s),e.set(o,d)}),e}var nW=/%(\d[a-f0-9])/gi,iW={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function PM(t){return encodeURIComponent(t).replace(nW,(i,e)=>iW[e]??i)}function Ou(t){return`${t}`}var Z=class t{map;encoder;updates=null;cloneFrom=null;constructor(i={}){if(this.encoder=i.encoder||new Iu,i.fromString){if(i.fromObject)throw new Ce(2805,!1);this.map=tW(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(e=>{let n=i.fromObject[e],r=Array.isArray(n)?n.map(Ou):[Ou(n)];this.map.set(e,r)})):this.map=null}has(i){return this.init(),this.map.has(i)}get(i){this.init();let e=this.map.get(i);return e?e[0]:null}getAll(i){return this.init(),this.map.get(i)||null}keys(){return this.init(),Array.from(this.map.keys())}append(i,e){return this.clone({param:i,value:e,op:"a"})}appendAll(i){let e=[];return Object.keys(i).forEach(n=>{let r=i[n];Array.isArray(r)?r.forEach(a=>{e.push({param:n,value:a,op:"a"})}):e.push({param:n,value:r,op:"a"})}),this.clone(e)}set(i,e){return this.clone({param:i,value:e,op:"s"})}delete(i,e){return this.clone({param:i,value:e,op:"d"})}toString(){return this.init(),this.keys().map(i=>{let e=this.encoder.encodeKey(i);return this.map.get(i).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(i=>i!=="").join("&")}clone(i){let e=new t({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(i),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(i=>this.map.set(i,this.cloneFrom.map.get(i))),this.updates.forEach(i=>{switch(i.op){case"a":case"s":let e=(i.op==="a"?this.map.get(i.param):void 0)||[];e.push(Ou(i.value)),this.map.set(i.param,e);break;case"d":if(i.value!==void 0){let n=this.map.get(i.param)||[],r=n.indexOf(Ou(i.value));r!==-1&&n.splice(r,1),n.length>0?this.map.set(i.param,n):this.map.delete(i.param)}else{this.map.delete(i.param);break}}}),this.cloneFrom=this.updates=null)}};var Pu=class{map=new Map;set(i,e){return this.map.set(i,e),this}get(i){return this.map.has(i)||this.map.set(i,i.defaultValue()),this.map.get(i)}delete(i){return this.map.delete(i),this}has(i){return this.map.has(i)}keys(){return this.map.keys()}};function rW(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function TM(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function AM(t){return typeof Blob<"u"&&t instanceof Blob}function VM(t){return typeof FormData<"u"&&t instanceof FormData}function aW(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var LM="Content-Type",RM="Accept",HM="X-Request-URL",NM="text/plain",FM="application/json",oW=`${FM}, ${NM}, */*`,Rl=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(i,e,n,r){this.url=e,this.method=i.toUpperCase();let a;if(rW(this.method)||r?(this.body=n!==void 0?n:null,a=r):a=n,a&&(this.reportProgress=!!a.reportProgress,this.withCredentials=!!a.withCredentials,a.responseType&&(this.responseType=a.responseType),a.headers&&(this.headers=a.headers),a.context&&(this.context=a.context),a.params&&(this.params=a.params),this.transferCache=a.transferCache),this.headers??=new vr,this.context??=new Pu,!this.params)this.params=new Z,this.urlWithParams=e;else{let o=this.params.toString();if(o.length===0)this.urlWithParams=e;else{let s=e.indexOf("?"),d=s===-1?"?":sS.set(D,i.setHeaders[D]),h)),i.setParams&&(v=Object.keys(i.setParams).reduce((S,D)=>S.set(D,i.setParams[D]),v)),new t(e,n,o,{params:v,headers:h,context:C,reportProgress:d,responseType:r,withCredentials:s,transferCache:a})}},nc=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(nc||{}),Hl=class{headers;status;statusText;url;ok;type;constructor(i,e=200,n="OK"){this.headers=i.headers||new vr,this.status=i.status!==void 0?i.status:e,this.statusText=i.statusText||n,this.url=i.url||null,this.ok=this.status>=200&&this.status<300}},Tu=class t extends Hl{constructor(i={}){super(i)}type=nc.ResponseHeader;clone(i={}){return new t({headers:i.headers||this.headers,status:i.status!==void 0?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}},md=class t extends Hl{body;constructor(i={}){super(i),this.body=i.body!==void 0?i.body:null}type=nc.Response;clone(i={}){return new t({body:i.body!==void 0?i.body:this.body,headers:i.headers||this.headers,status:i.status!==void 0?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}},pd=class extends Hl{name="HttpErrorResponse";message;error;ok=!1;constructor(i){super(i,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${i.url||"(unknown url)"}`:this.message=`Http failure response for ${i.url||"(unknown url)"}: ${i.status} ${i.statusText}`,this.error=i.error||null}},sW=200,cW=204;function Pg(t,i){return{body:i,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var On=(()=>{class t{handler;constructor(e){this.handler=e}request(e,n,r={}){let a;if(e instanceof Rl)a=e;else{let d;r.headers instanceof vr?d=r.headers:d=new vr(r.headers);let h;r.params&&(r.params instanceof Z?h=r.params:h=new Z({fromObject:r.params})),a=new Rl(e,n,r.body!==void 0?r.body:null,{headers:d,context:r.context,params:h,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache})}let o=ie(a).pipe(Ti(d=>this.handler.handle(d)));if(e instanceof Rl||r.observe==="events")return o;let s=o.pipe(Ve(d=>d instanceof md));switch(r.observe||"body"){case"body":switch(a.responseType){case"arraybuffer":return s.pipe(pe(d=>{if(d.body!==null&&!(d.body instanceof ArrayBuffer))throw new Ce(2806,!1);return d.body}));case"blob":return s.pipe(pe(d=>{if(d.body!==null&&!(d.body instanceof Blob))throw new Ce(2807,!1);return d.body}));case"text":return s.pipe(pe(d=>{if(d.body!==null&&typeof d.body!="string")throw new Ce(2808,!1);return d.body}));case"json":default:return s.pipe(pe(d=>d.body))}case"response":return s;default:throw new Ce(2809,!1)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:new Z().append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,r={}){return this.request("PATCH",e,Pg(r,n))}post(e,n,r={}){return this.request("POST",e,Pg(r,n))}put(e,n,r={}){return this.request("PUT",e,Pg(r,n))}static \u0275fac=function(n){return new(n||t)(ae(zl))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();var lW=new A("");function BM(t,i){return i(t)}function dW(t,i){return(e,n)=>i.intercept(e,{handle:r=>t(r,n)})}function uW(t,i,e){return(n,r)=>Ki(e,()=>i(n,a=>t(a,r)))}var jM=new A(""),Ag=new A(""),UM=new A(""),Vg=new A("",{providedIn:"root",factory:()=>!0});function mW(){let t=null;return(i,e)=>{t===null&&(t=(u(jM,{optional:!0})??[]).reduceRight(dW,BM));let n=u(mo);if(u(Vg)){let a=n.add();return t(i,e).pipe(_a(()=>n.remove(a)))}else return t(i,e)}}var Au=(()=>{class t extends zl{backend;injector;chain=null;pendingTasks=u(mo);contributeToStability=u(Vg);constructor(e,n){super(),this.backend=e,this.injector=n}handle(e){if(this.chain===null){let n=Array.from(new Set([...this.injector.get(Ag),...this.injector.get(UM,[])]));this.chain=n.reduceRight((r,a)=>uW(r,a,this.injector),BM)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(e,r=>this.backend.handle(r)).pipe(_a(()=>this.pendingTasks.remove(n)))}else return this.chain(e,n=>this.backend.handle(n))}static \u0275fac=function(n){return new(n||t)(ae(ud),ae(fn))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();var pW=/^\)\]\}',?\n/,fW=RegExp(`^${HM}:`,"m");function hW(t){return"responseURL"in t&&t.responseURL?t.responseURL:fW.test(t.getAllResponseHeaders())?t.getResponseHeader(HM):null}var Tg=(()=>{class t{xhrFactory;constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new Ce(-2800,!1);let n=this.xhrFactory;return(n.\u0275loadImpl?jt(n.\u0275loadImpl()):ie(null)).pipe(dt(()=>new Ue(a=>{let o=n.build();if(o.open(e.method,e.urlWithParams),e.withCredentials&&(o.withCredentials=!0),e.headers.forEach((ne,oe)=>o.setRequestHeader(ne,oe.join(","))),e.headers.has(RM)||o.setRequestHeader(RM,oW),!e.headers.has(LM)){let ne=e.detectContentTypeHeader();ne!==null&&o.setRequestHeader(LM,ne)}if(e.responseType){let ne=e.responseType.toLowerCase();o.responseType=ne!=="json"?ne:"text"}let s=e.serializeBody(),d=null,h=()=>{if(d!==null)return d;let ne=o.statusText||"OK",oe=new vr(o.getAllResponseHeaders()),ye=hW(o)||e.url;return d=new Tu({headers:oe,status:o.status,statusText:ne,url:ye}),d},v=()=>{let{headers:ne,status:oe,statusText:ye,url:qe}=h(),nt=null;oe!==cW&&(nt=typeof o.response>"u"?o.responseText:o.response),oe===0&&(oe=nt?sW:0);let An=oe>=200&&oe<300;if(e.responseType==="json"&&typeof nt=="string"){let Rn=nt;nt=nt.replace(pW,"");try{nt=nt!==""?JSON.parse(nt):null}catch(Ei){nt=Rn,An&&(An=!1,nt={error:Ei,text:nt})}}An?(a.next(new md({body:nt,headers:ne,status:oe,statusText:ye,url:qe||void 0})),a.complete()):a.error(new pd({error:nt,headers:ne,status:oe,statusText:ye,url:qe||void 0}))},C=ne=>{let{url:oe}=h(),ye=new pd({error:ne,status:o.status||0,statusText:o.statusText||"Unknown Error",url:oe||void 0});a.error(ye)},S=!1,D=ne=>{S||(a.next(h()),S=!0);let oe={type:nc.DownloadProgress,loaded:ne.loaded};ne.lengthComputable&&(oe.total=ne.total),e.responseType==="text"&&o.responseText&&(oe.partialText=o.responseText),a.next(oe)},L=ne=>{let oe={type:nc.UploadProgress,loaded:ne.loaded};ne.lengthComputable&&(oe.total=ne.total),a.next(oe)};return o.addEventListener("load",v),o.addEventListener("error",C),o.addEventListener("timeout",C),o.addEventListener("abort",C),e.reportProgress&&(o.addEventListener("progress",D),s!==null&&o.upload&&o.upload.addEventListener("progress",L)),o.send(s),a.next({type:nc.Sent}),()=>{o.removeEventListener("error",C),o.removeEventListener("abort",C),o.removeEventListener("load",v),o.removeEventListener("timeout",C),e.reportProgress&&(o.removeEventListener("progress",D),s!==null&&o.upload&&o.upload.removeEventListener("progress",L)),o.readyState!==o.DONE&&o.abort()}})))}static \u0275fac=function(n){return new(n||t)(ae(tc))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),$M=new A(""),gW="XSRF-TOKEN",_W=new A("",{providedIn:"root",factory:()=>gW}),vW="X-XSRF-TOKEN",bW=new A("",{providedIn:"root",factory:()=>vW}),fd=class{},yW=(()=>{class t{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(e,n){this.doc=e,this.cookieName=n}getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=od(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(n){return new(n||t)(ae(De),ae(_W))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function CW(t,i){let e=t.url.toLowerCase();if(!u($M)||t.method==="GET"||t.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return i(t);let n=u(fd).getToken(),r=u(bW);return n!=null&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,n)})),i(t)}var Lg=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(Lg||{});function xW(t,i){return{\u0275kind:t,\u0275providers:i}}function MW(...t){let i=[On,Tg,Au,{provide:zl,useExisting:Au},{provide:ud,useFactory:()=>u(lW,{optional:!0})??u(Tg)},{provide:Ag,useValue:CW,multi:!0},{provide:$M,useValue:!0},{provide:fd,useClass:yW}];for(let e of t)i.push(...e.\u0275providers);return wl(i)}var zM=new A("");function wW(){return xW(Lg.LegacyInterceptors,[{provide:zM,useFactory:mW},{provide:Ag,useExisting:zM,multi:!0}])}var GM=(()=>{class t{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(n){return new(n||t)(ae(De))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var hd=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:function(n){let r=null;return n?r=new(n||t):r=ae(DW),r},providedIn:"root"})}return t})(),DW=(()=>{class t extends hd{_doc;constructor(e){super(),this._doc=e}sanitize(e,n){if(n==null)return null;switch(e){case di.NONE:return n;case di.HTML:return po(n,"HTML")?Pr(n):k8(this._doc,String(n)).toString();case di.STYLE:return po(n,"Style")?Pr(n):n;case di.SCRIPT:if(po(n,"Script"))return Pr(n);throw new Ce(5200,!1);case di.URL:return po(n,"URL")?Pr(n):B0(String(n));case di.RESOURCE_URL:if(po(n,"ResourceURL"))return Pr(n);throw new Ce(5201,!1);default:throw new Ce(5202,!1)}}bypassSecurityTrustHtml(e){return cC(e)}bypassSecurityTrustStyle(e){return lC(e)}bypassSecurityTrustScript(e){return dC(e)}bypassSecurityTrustUrl(e){return uC(e)}bypassSecurityTrustResourceUrl(e){return mC(e)}static \u0275fac=function(n){return new(n||t)(ae(De))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Nl=class{},WM=(()=>{class t extends Nl{getTranslation(e){return ie({})}static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),_d=class{},qM=(()=>{class t{handle(e){return e.key}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function Lu(t,i){if(t===i)return!0;if(t===null||i===null)return!1;if(t!==t&&i!==i)return!0;let e=typeof t,n=typeof i,r,a,o;if(e==n&&e=="object")if(Array.isArray(t)){if(!Array.isArray(i))return!1;if((r=t.length)==i.length){for(a=0;a{bd(i[n])?n in t?e[n]=zg(t[n],i[n]):Object.assign(e,{[n]:i[n]}):Object.assign(e,{[n]:i[n]})}),e):zg({},i)}function Hg(t,i){let e=i.split(".");i="";do i+=e.shift(),Qo(t)&&Qo(t[i])&&(bd(t[i])||Ug(t[i])||!e.length)?(t=t[i],i=""):e.length?i+=".":t=void 0;while(e.length);return t}function kW(t,i,e){let n=i.split("."),r=t;for(let a=0;a{class t extends Fl{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(e,n){if($g(e))return this.interpolateString(e,n);if(SW(e))return this.interpolateFunction(e,n)}interpolateFunction(e,n){return e(n)}interpolateString(e,n){return n?e.replace(this.templateMatcher,(r,a)=>{let o=Hg(n,a);return Qo(o)?o:r}):e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),Bl=class{},QM=(()=>{class t extends Bl{compile(e,n){return e}compileTranslations(e,n){return e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),vd=class{defaultLang;currentLang=this.defaultLang;translations={};langs=[];onTranslationChange=new j;onLangChange=new j;onDefaultLangChange=new j},Ng=new A("ISOLATE_TRANSLATE_SERVICE"),Fg=new A("USE_DEFAULT_LANG"),Bg=new A("DEFAULT_LANGUAGE"),jg=new A("USE_EXTEND"),gd=t=>Gn(t)?t:ie(t),br=(()=>{class t{store;currentLoader;compiler;parser;missingTranslationHandler;useDefaultLang;extend;loadingTranslations;pending=!1;_translationRequests={};lastUseLanguage=null;get onTranslationChange(){return this.store.onTranslationChange}get onLangChange(){return this.store.onLangChange}get onDefaultLangChange(){return this.store.onDefaultLangChange}get defaultLang(){return this.store.defaultLang}set defaultLang(e){this.store.defaultLang=e}get currentLang(){return this.store.currentLang}set currentLang(e){this.store.currentLang=e}get langs(){return this.store.langs}set langs(e){this.store.langs=e}get translations(){return this.store.translations}set translations(e){this.store.translations=e}constructor(e,n,r,a,o,s=!0,d=!1,h=!1,v){this.store=e,this.currentLoader=n,this.compiler=r,this.parser=a,this.missingTranslationHandler=o,this.useDefaultLang=s,this.extend=h,d&&(this.store=new vd),v&&this.setDefaultLang(v)}setDefaultLang(e){if(e===this.defaultLang)return;let n=this.retrieveTranslations(e);typeof n<"u"?(this.defaultLang==null&&(this.defaultLang=e),n.pipe(Le(1)).subscribe(()=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(this.lastUseLanguage=e,e===this.currentLang)return ie(this.translations[e]);this.currentLang||(this.currentLang=e);let n=this.retrieveTranslations(e);return Gn(n)?(n.pipe(Le(1)).subscribe(()=>{this.changeLang(e)}),n):(this.changeLang(e),ie(this.translations[e]))}changeLang(e){e===this.lastUseLanguage&&(this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),this.defaultLang==null&&this.changeDefaultLang(e))}retrieveTranslations(e){if(typeof this.translations[e]>"u"||this.extend)return this._translationRequests[e]=this._translationRequests[e]||this.loadAndCompileTranslations(e),this._translationRequests[e]}getTranslation(e){return this.loadAndCompileTranslations(e)}loadAndCompileTranslations(e){this.pending=!0;let n=this.currentLoader.getTranslation(e).pipe(Vs(1),Le(1));return this.loadingTranslations=n.pipe(pe(r=>this.compiler.compileTranslations(r,e)),Vs(1),Le(1)),this.loadingTranslations.subscribe({next:r=>{this.translations[e]=this.extend&&this.translations[e]?q(q({},r),this.translations[e]):r,this.updateLangs(),this.pending=!1},error:r=>{this.pending=!1}}),n}setTranslation(e,n,r=!1){let a=this.compiler.compileTranslations(n,e);(r||this.extend)&&this.translations[e]?this.translations[e]=zg(this.translations[e],a):this.translations[e]=a,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){let n=e.filter(r=>!this.langs.includes(r));n.length>0&&(this.langs=[...this.langs,...n])}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResultForKey(e,n,r){let a;if(e&&(a=this.runInterpolation(Hg(e,n),r)),a===void 0&&this.defaultLang!=null&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(a=this.runInterpolation(Hg(this.translations[this.defaultLang],n),r)),a===void 0){let o={key:n,translateService:this};typeof r<"u"&&(o.interpolateParams=r),a=this.missingTranslationHandler.handle(o)}return a!==void 0?a:n}runInterpolation(e,n){if(Ug(e))return e.map(r=>this.runInterpolation(r,n));if(bd(e)){let r={};for(let a in e){let o=this.runInterpolation(e[a],n);o!==void 0&&(r[a]=o)}return r}else return this.parser.interpolate(e,n)}getParsedResult(e,n,r){if(n instanceof Array){let a={},o=!1;for(let d of n)a[d]=this.getParsedResultForKey(e,d,r),o=o||Gn(a[d]);if(!o)return a;let s=n.map(d=>gd(a[d]));return no(s).pipe(pe(d=>{let h={};return d.forEach((v,C)=>{h[n[C]]=v}),h}))}return this.getParsedResultForKey(e,n,r)}get(e,n){if(!Qo(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return this.pending?this.loadingTranslations.pipe(Ti(r=>gd(this.getParsedResult(r,e,n)))):gd(this.getParsedResult(this.translations[this.currentLang],e,n))}getStreamOnTranslationChange(e,n){if(!Qo(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return gi(Pi(()=>this.get(e,n)),this.onTranslationChange.pipe(dt(r=>{let a=this.getParsedResult(r.translations,e,n);return gd(a)})))}stream(e,n){if(!Qo(e)||!e.length)throw new Error('Parameter "key" required');return gi(Pi(()=>this.get(e,n)),this.onLangChange.pipe(dt(r=>{let a=this.getParsedResult(r.translations,e,n);return gd(a)})))}instant(e,n){if(!Qo(e)||e.length===0)throw new Error('Parameter "key" is required and cannot be empty');let r=this.getParsedResult(this.translations[this.currentLang],e,n);return Gn(r)?Array.isArray(e)?e.reduce((a,o)=>(a[o]=o,a),{}):e:r}set(e,n,r=this.currentLang){kW(this.translations[r],e,$g(n)?this.compiler.compile(n,r):this.compiler.compileTranslations(n,r)),this.updateLangs(),this.onTranslationChange.emit({lang:r,translations:this.translations[r]})}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.loadAndCompileTranslations(e)}resetLang(e){delete this._translationRequests[e],delete this.translations[e]}getBrowserLang(){if(typeof window>"u"||!window.navigator)return;let e=this.getBrowserCultureLang();return e?e.split(/[-_]/)[0]:void 0}getBrowserCultureLang(){if(!(typeof window>"u"||typeof window.navigator>"u"))return window.navigator.languages?window.navigator.languages[0]:window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}static \u0275fac=function(n){return new(n||t)(ae(vd),ae(Nl),ae(Bl),ae(Fl),ae(_d),ae(Fg),ae(Ng),ae(jg),ae(Bg))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Ee=(()=>{class t{translate;_ref;value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onDefaultLangChange;constructor(e,n){this.translate=e,this._ref=n}updateValue(e,n,r){let a=o=>{this.value=o!==void 0?o:e,this.lastKey=e,this._ref.markForCheck()};if(r){let o=this.translate.getParsedResult(r,e,n);Gn(o)?o.subscribe(a):a(o)}this.translate.get(e,n).subscribe(a)}transform(e,...n){if(!e||!e.length)return e;if(Lu(e,this.lastKey)&&Lu(n,this.lastParams))return this.value;let r;if(Qo(n[0])&&n.length)if($g(n[0])&&n[0].length){let a=n[0].replace(/(')?([a-zA-Z0-9_]+)(')?(\s)?:/g,'"$2":').replace(/:(\s)?(')(.*?)(')/g,':"$3"');try{r=JSON.parse(a)}catch(o){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${n[0]}`)}}else bd(n[0])&&(r=n[0]);return this.lastKey=e,this.lastParams=n,this.updateValue(e,r),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(a=>{this.lastKey&&a.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,r,a.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(a=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r,a.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}static \u0275fac=function(n){return new(n||t)(k(br,16),k(be,16))};static \u0275pipe=_t({name:"translate",type:t,pure:!1});static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();var Gg=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:Nl,useClass:WM},e.compiler||{provide:Bl,useClass:QM},e.parser||{provide:Fl,useClass:YM},e.missingTranslationHandler||{provide:_d,useClass:qM},vd,{provide:Ng,useValue:e.isolate},{provide:Fg,useValue:e.useDefaultLang},{provide:jg,useValue:e.extend},{provide:Bg,useValue:e.defaultLanguage},br]}}static forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:Nl,useClass:WM},e.compiler||{provide:Bl,useClass:QM},e.parser||{provide:Fl,useClass:YM},e.missingTranslationHandler||{provide:_d,useClass:qM},{provide:Ng,useValue:e.isolate},{provide:Fg,useValue:e.useDefaultLang},{provide:jg,useValue:e.extend},{provide:Bg,useValue:e.defaultLanguage},br]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=K({type:t});static \u0275inj=Q({})}return t})();var Wg={mifos_x:{version:"251104",hash:"9caac8c"},allow_switching_backend_instance:!0};var Xt=window.env||{},mt={production:!0,version:Wg.mifos_x.version,hash:Wg.mifos_x.hash,fineractPlatformTenantId:Xt.fineractPlatformTenantId||"default",fineractPlatformTenantIds:Xt.fineractPlatformTenantIds||"default",baseApiUrls:Xt.fineractApiUrls||"https://sandbox.mifos.community,https://demo.mifos.community,https://localhost:8443,"+window.location.origin,baseApiUrl:Xt.fineractApiUrl||(Xt.fineractApiUrls?.length>0?Xt.fineractApiUrls.split(",")[0]:window.location.origin),oauthServerUrl:Xt.oauthServerUrl||Xt.fineractApiUrl+Xt.apiProvider,allowServerSwitch:Xt.allowServerSwitch||"true",apiProvider:Xt.apiProvider||"/fineract-provider/api",apiVersion:Xt.apiVersion||"/v1",serverUrl:"",oauth:{enabled:Xt.oauthServerEnabled||!1,serverUrl:Xt.oauthServerUrl||"",appId:Xt.oauthAppId||""},enableRememberMe:!1,warningDialog:{title:"Warning",content:"This system is for authorized use only. Unauthorized access will result in possible legal action. By accessing this system, you acknowledge that you are authorized to do so and that all data stored and processed here is confidential.",buttonText:"Close"},defaultLanguage:Xt.defaultLanguage||"en-US",supportedLanguages:Xt.supportedLanguages||"cs-CS,de-DE,en-US,es-MX,fr-FR,it-IT,ko-KO,lt-LT,lv-LV,ne-NE,pt-PT,sw-SW",preloadClients:Xt.preloadClients||!0,defaultCharDelimiter:Xt.defaultCharDelimiter||",",displayBackEndInfo:Xt.displayBackEndInfo||"true",displayTenantSelector:Xt.displayTenantSelector||"true",waitTimeForNotifications:Xt.waitTimeForNotifications||60,waitTimeForCOBCatchUp:Xt.waitTimeForCOBCatchUp||30,session:{timeout:{idleTimeout:Xt.sessionIdleTimeout||3e5}},httpCacheEnabled:Xt.httpCacheEnabled||!1,vNextApiUrl:window.env.vNextApiUrl||"https://apis.mifos.community",vNextApiProvider:window.env.vNextApiProvider||"/vnext1",vNextApiVersion:window.env.vNextApiVersion||"/v1.0",interbankTransfers:window.env.interbankTransfers||!1,minPasswordLength:Xt.minPasswordLength||12,OIDC:{oidcServerEnabled:window.env.oidcServerEnabled||!1,oidcBaseUrl:window.env.oidcBaseUrl||"",oidcClientId:window.env.oidcClientId||"",oidcApiUrl:window.env.oidcApiUrl||"",oidcFrontUrl:window.env.oidcFrontUrl||""}};mt.serverUrl=`${mt.baseApiUrl}${mt.apiProvider}${mt.apiVersion}`;var KM=(()=>{class t{transform(e,n,r,a){if(e){if(n==="loan"&&(r==="closed"?e=e.filter(o=>o.status.code==="loanStatusType.closed.written.off"||o.status.code==="loanStatusType.closed.obligations.met"||o.status.code==="loanStatusType.closed.reschedule.outstanding.amount"||o.status.code==="loanStatusType.withdrawn.by.client"||o.status.code==="loanStatusType.rejected"):e=e.filter(o=>o.status.code!=="loanStatusType.closed.written.off"&&o.status.code!=="loanStatusType.closed.obligations.met"&&o.status.code!=="loanStatusType.closed.reschedule.outstanding.amount"&&o.status.code!=="loanStatusType.withdrawn.by.client"&&o.status.code!=="loanStatusType.rejected")),n==="saving"&&(a==="isFixed"?e=e.filter(o=>o.depositType.value==="Fixed Deposit"):a==="isRecurring"?e=e.filter(o=>o.depositType.value==="Recurring Deposit"):a==="isSavings"&&(e=e.filter(o=>o.depositType.value==="Savings")),r==="closed"?e=e.filter(o=>o.status.code==="savingsAccountStatusType.withdrawn.by.applicant"||o.status.code==="savingsAccountStatusType.closed"||o.status.code==="savingsAccountStatusType.pre.mature.closure"||o.status.code==="savingsAccountStatusType.rejected"):e=e.filter(o=>o.status.code!=="savingsAccountStatusType.withdrawn.by.applicant"&&o.status.code!=="savingsAccountStatusType.closed"&&o.status.code!=="savingsAccountStatusType.pre.mature.closure"&&o.status.code!=="savingsAccountStatusType.rejected")),n==="share"&&(r==="closed"?e=e.filter(o=>o.status.code==="shareAccountStatusType.closed"||o.status.code==="shareAccountStatusType.rejected"):e=e.filter(o=>o.status.code!=="shareAccountStatusType.closed"&&o.status.code!=="shareAccountStatusType.rejected")),n==="guarantor")if(r===!1)e=e.filter(o=>o.status===!0);else return e;return n==="clientApproval"&&(e=e.filter(o=>o.active===!1&&o.status.value==="Pending")),e}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"accountsFilter",type:t,pure:!0})}}return t})();var ZM=(()=>{class t{transform(e,n,r,a){return e&&(e=e.filter(o=>!(o.currency.code!==r||a&&o.chargeTimeType.id===12||n.filter(s=>s.id===o.id).length))),e}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"chargesFilter",type:t,pure:!0})}}return t})();var XM=(()=>{class t{transform(e,n){return e&&(e=e.filter(r=>r.penalty===n)),e}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"chargesPenaltyFilter",type:t,pure:!0})}}return t})();var Ko=(()=>{class t{constructor(){this.alertEvent=new j}alert(e){this.alertEvent.emit(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ul=i3(zu());var Li=(()=>{class t{static{this.DEFAULT_DATEFORMAT="yyyy-MM-dd"}static{this.DEFAULT_DATETIMEFORMAT="yyyy-MM-dd HH:mm"}constructor(e){this.datePipe=e}getDate(e){return this.datePipe.transform(e,"YYYY-MM-DD")}formatDate(e,n){return new ec(this.language.code).transform(e,n)}formatDateAsString(e,n){return(0,Ul.default)(e).format(n)}parseDate(e){return e instanceof Array?(0,Ul.default)(e.join("-"),"YYYY-MM-DD").toDate():(0,Ul.default)(e).toDate()}parseDatetime(e){return(0,Ul.default)(e).toDate()}convertToDate(e,n){return(0,Ul.default)(e).toDate()}get language(){return localStorage.getItem("mifosXLanguage")?JSON.parse(localStorage.getItem("mifosXLanguage")):"en"}calculateDiff(e,n){return Math.floor((Date.UTC(n.getFullYear(),n.getMonth(),n.getDate())-Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()))/(1e3*60*60*24))}static{this.\u0275fac=function(n){return new(n||t)(ae(ec))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Yg(t,i){if(!t)return i;try{return JSON.parse(t)}catch{return i}}function Hu(t,i){if(!t)return i;try{let e=JSON.parse(t);return e&&typeof e=="object"&&!Array.isArray(e)?e:i}catch{return i}}function Qg(t,i=[]){if(!t)return i;try{let e=JSON.parse(t);return Array.isArray(e)?e:i}catch{return i}}var Nt=(()=>{class t{static{this.businessDateFormat="yyyy-MM-dd"}static{this.businessDateConfigName="enable-business-date"}static{this.businessDateType="BUSINESS_DATE"}static{this.cobDateType="COB_DATE"}constructor(e,n){this.alertService=e,this.dateUtils=n,this.minAllowedDate=new Date(1950,0,1),this.maxAllowedDate=new Date(2100,0,1)}setDateFormat(e){localStorage.setItem("mifosXDateFormat",JSON.stringify(e))}setLanguage(e){localStorage.setItem("mifosXLanguage",JSON.stringify(e))}setDecimalToDisplay(e){localStorage.setItem("mifosXDecimalsToDisplay",e)}setDefaultLanguage(){let e=mt.defaultLanguage?mt.defaultLanguage:"en-US";this.setLanguage({name:e,code:e.substring(0,2)})}setServer(e){localStorage.setItem("mifosXServerURL",e)}setServers(e){localStorage.setItem("mifosXServers",JSON.stringify(e))}setTenantIdentifiers(e){localStorage.setItem("mifosXTenantIdentifiers",JSON.stringify(e))}setTenantIdentifier(e){localStorage.setItem("mifosXTenantIdentifier",e)}setBusinessDate(e){localStorage.setItem("mifosXServerDate",e)}setBusinessDateConfig(e){localStorage.setItem("mifosXServerBusinessDateEnabled",e)}get dateFormat(){let e=Yg(localStorage.getItem("mifosXDateFormat"),null);return typeof e=="string"&&e.length>0?e:"dd MMMM yyyy"}get language(){return localStorage.getItem("mifosXLanguage")||this.setDefaultLanguage(),Hu(localStorage.getItem("mifosXLanguage"),void 0)}get languageCode(){let e=this.language.code;return e==="es"?"es-MX":e==="en"?"en-US":e+"-"+e.toUpperCase()}get decimals(){return localStorage.getItem("mifosXDecimalsToDisplay")?localStorage.getItem("mifosXDecimalsToDisplay"):"2"}get servers(){return Qg(localStorage.getItem("mifosXServers"),[])}get server(){return localStorage.getItem("mifosXServerURL")?localStorage.getItem("mifosXServerURL"):mt.baseApiUrl&&mt.baseApiUrl!==""?mt.baseApiUrl:this.servers[0]}get baseServerUrl(){return this.server+mt.apiProvider}get serverUrl(){return this.server+mt.apiProvider+mt.apiVersion}get serverHost(){return this.server}get businessDate(){return this.dateUtils.convertToDate(localStorage.getItem("mifosXServerDate"),t.businessDateFormat)}get businessDateConfig(){return localStorage.getItem("mifosXServerBusinessDateEnabled")}get minPastDate(){return this.minAllowedDate}get maxFutureDate(){return this.maxAllowedDate}get tenantIdentifiers(){return Qg(localStorage.getItem("mifosXTenantIdentifiers"),[])}get tenantIdentifier(){return localStorage.getItem("mifosXTenantIdentifier")}validateBusinessDateStatus(e){e.some(n=>{if(n.name===t.businessDateConfigName)return n.enabled})}getBusinessDates(e,n){e.some(r=>{if(r.type===n){let a=new Date(r.date);this.setBusinessDate(this.dateUtils.formatDate(a,t.businessDateFormat)),this.alertService.alert({type:n+" Set",message:this.dateUtils.formatDate(a,this.dateFormat)});return}})}setThemeDarkEnabled(e){localStorage.setItem("mifosXThemeDarkEnabled",JSON.stringify(e))}get themeDarkEnabled(){return Yg(localStorage.getItem("mifosXThemeDarkEnabled"),!1)}static{this.\u0275fac=function(n){return new(n||t)(ae(Ko),ae(Li))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Nu=i3(zu());var yr=(()=>{class t{constructor(e){this.settingsService=e}transform(e,n){let r=this.settingsService.dateFormat.replace("dd","DD");if(typeof e>"u")return"";let a;return Nu.default.locale(this.settingsService.language.code),e instanceof Array?a=(0,Nu.default)(e.join("-"),"YYYY-MM-DD"):a=(0,Nu.default)(e),n==null?a.format(r):a.format(n)}static{this.\u0275fac=function(n){return new(n||t)(k(Nt,16))}}static{this.\u0275pipe=_t({name:"dateFormat",type:t,pure:!0})}}return t})();var Cd=i3(zu());var Ia=(()=>{class t{transform(e,n){if(e==null||e==="")return"";let r;if(Array.isArray(e)){let[o,s,d,h,v,C]=e;h!=null?r=(0,Cd.default)({year:o,month:(s??1)-1,date:d,hour:h,minute:v??0,second:C??0}):r=(0,Cd.default)({year:o,month:(s??1)-1,date:d})}else typeof e=="number"&&e<1e12?r=Cd.default.unix(e):r=(0,Cd.default)(e);let a=n??"YYYY-MM-DDTHH:mm:ssZ";return r.format(a)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"datetimeFormat",type:t,pure:!0})}}return t})();var Fu=(()=>{class t{transform(e){if(e){if(/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/gi.test(e))return e.split("-")[4];{let a=e.length;return a>20?e.substring(a-20,a):e}}else return""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"externalIdentifier",type:t,pure:!0})}}return t})();var JM=(()=>{class t{transform(e,n,r,a){let o;return n&&(o=n.find(s=>s[r]===e)),o?o[a]:""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"find",type:t,pure:!0})}}return t})();var Zo=(()=>{class t{constructor(e,n){this.decimalFormat=e,this.settingsService=n}transform(e,n){if(e===void 0)return n||"";let r=this.settingsService.decimals,a=`1.${r}-${r}`;return this.decimalFormat.transform(e,a)}static{this.\u0275fac=function(n){return new(n||t)(k(ad,16),k(Nt,16))}}static{this.\u0275pipe=_t({name:"formatNumber",type:t,pure:!0})}}return t})();var nw=i3(tw());var ju=(()=>{class t{transform(e){if(e.charAt(0)==="{"&&e.charAt(e.length-1)==="}")try{return nw.json(e)}catch{return e}return e}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"prettyPrint",type:t,pure:!0})}}return t})();var iw=(()=>{class t{transform(e){return{true:"status-active",false:"status-deleted",Active:"status-active",Block:"status-block","charges.StatusType.active.true":"status-active","loanStatusType.submitted.and.pending.approval":"status-pending","loanStatusType.approved":"status-approved","loanStatusType.active":"status-active","loanStatusType.overpaid":"status-overpaid","loanStatusType.chargeoff":"status-chargeoff","loanStatusType.activeOverdue":"status-active-overdue","loanSubStatusType.contractTermination":"subStatus-contract-termination","savingsAccountStatusType.submitted.and.pending.approval":"status-pending","savingsAccountStatusType.approved":"status-approved","savingsAccountStatusType.active":"status-active","savingsAccountStatusType.activeInactive":"status-active-overdue","savingsAccountStatusType.activeDormant":"status-active-overdue","savingsAccountStatusType.matured":"status-matured","shareAccountStatusType.submitted.and.pending.approval":"status-pending","shareAccountStatusType.approved":"status-approved","shareAccountStatusType.active":"status-active","shareAccountStatusType.rejected":"status-rejected","loanProduct.active":"status-active","loanProduct.inActive":"status-inactive","clientStatusType.pending":"status-pending","clientStatusType.closed":"status-closed","clientStatusType.rejected":"status-rejected","clientStatusType.withdraw":"status-withdraw","clientStatusType.active":"status-active","clientStatusType.submitted.and.pending.approval":"status-pending","clientStatusTYpe.approved":"status-approved","clientStatusType.transfer.in.progress":"status-transfer-progress","clientStatusType.transfer.on.hold":"status-transfer-hold","groupingStatusType.active":"status-active","groupingStatusType.pending":"status-pending","groupingStatusType.submitted.and.pending.approval":"status-pending","groupingStatusType.approved":"status-approved","smsCampaignStatus.active":"status-active","smsCampaignStatus.pending":"status-pending","smsCampaignStatus.closed":"status-closed","purchasedSharesStatusType.applied":"status-pending"}[e]??"status-unknown"}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"statusLookup",type:t,pure:!0})}}return t})();var ic=(()=>{class t{constructor(e){this.translateService=e}transform(e,n,r="labels"){let a=`${r}.${n}.${e}`;return this.translateService.instant(a)}static{this.\u0275fac=function(n){return new(n||t)(k(br,16))}}static{this.\u0275pipe=_t({name:"translateKey",type:t,pure:!0})}}return t})();var Uu=(()=>{class t{transform(e,n){if(e.length<=40)return e;let r=e.substring(0,30);return n&&(r=e.substring(0,n)),r}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"truncateText",type:t,pure:!0})}}return t})();var aw=(()=>{class t{transform(e){e=decodeURIComponent(e);let n=e.slice(1).split("/");if(e.includes("?")){let a=n.pop(),o=a.slice(0,a.indexOf("?"));n.push(o)}return n.map(a=>a.split("-").map(o=>o.charAt(0).toUpperCase()+o.slice(1)).join(" ")).join(" | ")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"urlToString",type:t,pure:!0})}}return t})();var $u=(()=>{class t{constructor(e){this.translateService=e}transform(e,...n){if(e==null)return null;let r=e?"Yes":"No";return this.translateService.instant("labels.buttons."+r)}static{this.\u0275fac=function(n){return new(n||t)(k(br,16))}}static{this.\u0275pipe=_t({name:"yesNo",type:t,pure:!0})}}return t})();var ow=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=K({type:t})}static{this.\u0275inj=Q({providers:[iw,KM,ZM,XM,JM,aw,yr,Ia,Fu,Zo,$u,ju,ic,Uu],imports:[fe]})}}return t})();var bo={headers:{"Fineract-Platform-TenantId":mt.fineractPlatformTenantId}},Gu="Authorization",PW="Fineract-Platform-TenantId",sw="Fineract-Platform-TFA-Token",cw=(()=>{class t{constructor(e){this.settingsService=e}intercept(e,n){return this.settingsService.tenantIdentifier&&(bo.headers["Fineract-Platform-TenantId"]=this.settingsService.tenantIdentifier),e=e.clone({setHeaders:bo.headers}),n.handle(e)}setAuthorizationToken(e){mt.oauth.enabled?bo.headers[Gu]=`Bearer ${e}`:bo.headers[Gu]=`Basic ${e}`}setTwoFactorAccessToken(e){bo.headers[sw]=e}removeAuthorization(){delete bo.headers[Gu]}removeAuthorizationTenant(){delete bo.headers[Gu],delete bo.headers[PW]}removeTwoFactorAuthorization(){delete bo.headers[sw]}static{this.\u0275fac=function(n){return new(n||t)(ae(Nt))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac})}}return t})();var Wu=(()=>{class t{changePassword(e,n){return this.http.put(`/users/${e}`,n)}constructor(e,n,r){this.http=e,this.alertService=n,this.authenticationInterceptor=r,this.userLoggedIn$=new Je(!1),this.isAuthenticated$=this.userLoggedIn$.asObservable(),this.dialogShown=!1,this.credentialsStorageKey="mifosXCredentials",this.oAuthTokenDetailsStorageKey="mifosXOAuthTokenDetails",this.twoFactorAuthenticationTokenStorageKey="mifosXTwoFactorAuthenticationToken",this.userLoggedIn=!1,this.rememberMe=!1,this.storage=sessionStorage;let a=JSON.parse(sessionStorage.getItem(this.credentialsStorageKey)||localStorage.getItem(this.credentialsStorageKey));if(a){a.rememberMe&&(this.rememberMe=!0,this.storage=localStorage);let o=JSON.parse(this.storage.getItem(this.twoFactorAuthenticationTokenStorageKey));mt.oauth.enabled?this.refreshOAuthAccessToken():r.setAuthorizationToken(a.base64EncodedAuthenticationKey),o&&r.setTwoFactorAccessToken(o.token),this.userLoggedIn=!0,this.userLoggedIn$.next(!0)}}login(e){this.alertService.alert({type:"Authentication Start",message:"Please wait..."});let n=mt.enableRememberMe===!0;if(this.rememberMe=n?e.remember:!1,this.storage=this.rememberMe?localStorage:sessionStorage,mt.oauth.enabled){let r=new Z;r=r.set("username",e.username),r=r.set("password",e.password),r=r.set("client_id",`${mt.oauth.appId}`),r=r.set("grant_type","password"),r=r.set("remember_me",this.rememberMe?"true":"false");let a=new vr;return a=a.set("Content-Type","application/x-www-form-urlencoded"),this.http.post(`${mt.oauth.serverUrl}/token`,r.toString(),{headers:a}).pipe(pe(o=>(this.getUserDetails(o),ie(!0))))}else return this.http.post("/authentication",{username:e.username,password:e.password,remember:this.rememberMe}).pipe(pe(r=>(this.onLoginSuccess(r),ie(!0))))}getUserDetails(e){this.refreshTokenOnExpiry(e.expires_in);let n=new vr;n=n.set("Authorization","bearer "+e.access_token),this.http.get(`${mt.serverUrl}/userdetails`,{headers:n}).subscribe(r=>{this.onLoginSuccess(r),r.shouldRenewPassword||this.storage.setItem(this.oAuthTokenDetailsStorageKey,JSON.stringify(e))})}refreshTokenOnExpiry(e){setTimeout(()=>this.refreshOAuthAccessToken(),e*1e3)}refreshOAuthAccessToken(){var e=JSON.parse(this.storage.getItem(this.oAuthTokenDetailsStorageKey));if(e==null)return;e=JSON.parse(this.storage.getItem(this.oAuthTokenDetailsStorageKey)).refresh_token,this.authenticationInterceptor.removeAuthorization();let n=JSON.parse(this.storage.getItem(this.credentialsStorageKey)),r=new Z;r=r.set("username",n.username),r=r.set("client_id",`${mt.oauth.appId}`),r=r.set("refresh_token",e),r=r.set("grant_type","refresh_token");let a=new vr;return a=a.set("Content-Type","application/x-www-form-urlencoded"),this.http.post(`${mt.oauth.serverUrl}/token`,r.toString(),{headers:a}).subscribe(o=>{this.storage.setItem(this.oAuthTokenDetailsStorageKey,JSON.stringify(o)),this.authenticationInterceptor.setAuthorizationToken(o.access_token),this.refreshTokenOnExpiry(o.expires_in);let s=JSON.parse(this.storage.getItem(this.credentialsStorageKey));s.accessToken=o.access_token,this.storage.setItem(this.credentialsStorageKey,JSON.stringify(s))})}onLoginSuccess(e){this.userLoggedIn=!0,this.userLoggedIn$.next(!0),e.rememberMe=this.rememberMe,mt.oauth.enabled?this.authenticationInterceptor.setAuthorizationToken(e.accessToken):this.authenticationInterceptor.setAuthorizationToken(e.base64EncodedAuthenticationKey),e.isTwoFactorAuthenticationRequired?(this.credentials=e,this.alertService.alert({type:"Two Factor Authentication Required",message:"Two Factor Authentication Required"})):e.shouldRenewPassword?(this.credentials=e,this.alertService.alert({type:"Password Expired",message:"Your password has expired, please reset your password!"})):(this.setCredentials(e),this.alertService.alert({type:"Authentication Success",message:`${e.username} successfully logged in!`}),delete this.credentials)}logoutAuthSession(){let e=JSON.parse(this.storage.getItem(this.oAuthTokenDetailsStorageKey)).refresh_token,n=JSON.parse(this.storage.getItem(this.credentialsStorageKey));this.authenticationInterceptor.removeAuthorizationTenant();let r=new Z;r=r.set("username",n.username),r=r.set("client_id",`${mt.oauth.appId}`),r=r.set("refresh_token",e);let a=new vr;return a=a.set("Content-Type","application/x-www-form-urlencoded"),this.http.post(`${mt.oauth.serverUrl}/logout`,r.toString(),{headers:a}).subscribe()}logout(){let e=JSON.parse(this.storage.getItem(this.twoFactorAuthenticationTokenStorageKey));return e&&(this.http.post("/twofactor/invalidate",{token:e.token}).subscribe(),this.authenticationInterceptor.removeTwoFactorAuthorization()),JSON.parse(this.storage.getItem(this.oAuthTokenDetailsStorageKey))&&this.logoutAuthSession(),this.authenticationInterceptor.removeAuthorization(),this.setCredentials(),this.resetDialog(),this.userLoggedIn=!1,this.userLoggedIn$.next(!1),ie(!0)}twoFactorAccessTokenIsValid(){let e=JSON.parse(this.storage.getItem(this.twoFactorAuthenticationTokenStorageKey));return e?new Date().getTime(){this.onOTPValidateSuccess(r)}))}onOTPValidateSuccess(e){this.authenticationInterceptor.setTwoFactorAccessToken(e.token),this.credentials.shouldRenewPassword?this.alertService.alert({type:"Password Expired",message:"Your password has expired, please reset your password!"}):(this.setCredentials(this.credentials),this.alertService.alert({type:"Authentication Success",message:`${this.credentials.username} successfully logged in!`}),delete this.credentials,this.storage.setItem(this.twoFactorAuthenticationTokenStorageKey,JSON.stringify(e)))}resetPassword(e){return this.http.put(`/users/${this.credentials.userId}`,e).pipe(pe(()=>{this.alertService.alert({type:"Password Reset Success",message:"Your password was sucessfully reset!"}),this.authenticationInterceptor.removeAuthorization(),this.authenticationInterceptor.removeTwoFactorAuthorization();let n={username:this.credentials.username,password:e.password,remember:this.rememberMe};this.login(n).subscribe()}))}getUserLoggedIn(){return this.userLoggedIn}static{this.\u0275fac=function(n){return new(n||t)(ae(On),ae(Ko),ae(cw))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac})}}return t})();var Xo=(()=>{class t{constructor(e,n,r){this.templateRef=e,this.viewContainer=n,this.authenticationService=r;let a=this.authenticationService.getCredentials();this.userPermissions=a.permissions}set mifosxHasPermission(e){if(typeof e!="string")throw new Error("hasPermission value must be a string");this.viewContainer.clear(),this.hasPermission(e)&&this.viewContainer.createEmbeddedView(this.templateRef)}hasPermission(e){return e=e.trim(),this.userPermissions.includes("ALL_FUNCTIONS")?!0:e!==""?e.substring(0,5)==="READ_"&&this.userPermissions.includes("ALL_FUNCTIONS_READ")?!0:!!this.userPermissions.includes(e):!1}static{this.\u0275fac=function(n){return new(n||t)(k(Qe),k(rt),k(Wu))}}static{this.\u0275dir=V({type:t,selectors:[["","mifosxHasPermission",""]],inputs:{mifosxHasPermission:"mifosxHasPermission"}})}}return t})();var _w=(()=>{class t{_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||t)(k(Ke),k(Y))};static \u0275dir=V({type:t})}return t})(),vw=(()=>{class t extends _w{static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=V({type:t,features:[ce]})}return t})(),Yn=new A("");var AW={provide:Yn,useExisting:wt(()=>ri),multi:!0};function VW(){let t=_r()?_r().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var LW=new A(""),ri=(()=>{class t extends _w{_compositionMode;_composing=!1;constructor(e,n,r){super(e,n),this._compositionMode=r,this._compositionMode==null&&(this._compositionMode=!VW())}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||t)(k(Ke),k(Y),k(LW,8))};static \u0275dir=V({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,r){n&1&&z("input",function(o){return r._handleInput(o.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(o){return r._compositionEnd(o.target.value)})},standalone:!1,features:[ue([AW]),ce]})}return t})();function Jg(t){return t==null||e5(t)===0}function e5(t){return t==null?null:Array.isArray(t)||typeof t=="string"?t.length:t instanceof Set?t.size:null}var ai=new A(""),ac=new A(""),RW=/^(?=.{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])?)*$/,vn=class{static min(i){return bw(i)}static max(i){return yw(i)}static required(i){return Cw(i)}static requiredTrue(i){return zW(i)}static email(i){return HW(i)}static minLength(i){return xw(i)}static maxLength(i){return Mw(i)}static pattern(i){return NW(i)}static nullValidator(i){return Yu()}static compose(i){return Ow(i)}static composeAsync(i){return Iw(i)}};function bw(t){return i=>{if(i.value==null||t==null)return null;let e=parseFloat(i.value);return!isNaN(e)&&e{if(i.value==null||t==null)return null;let e=parseFloat(i.value);return!isNaN(e)&&e>t?{max:{max:t,actual:i.value}}:null}}function Cw(t){return Jg(t.value)?{required:!0}:null}function zW(t){return t.value===!0?null:{required:!0}}function HW(t){return Jg(t.value)||RW.test(t.value)?null:{email:!0}}function xw(t){return i=>{let e=i.value?.length??e5(i.value);return e===null||e===0?null:e{let e=i.value?.length??e5(i.value);return e!==null&&e>t?{maxlength:{requiredLength:t,actualLength:e}}:null}}function NW(t){if(!t)return Yu;let i,e;return typeof t=="string"?(e="",t.charAt(0)!=="^"&&(e+="^"),e+=t,t.charAt(t.length-1)!=="$"&&(e+="$"),i=new RegExp(e)):(e=t.toString(),i=t),n=>{if(Jg(n.value))return null;let r=n.value;return i.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function Yu(t){return null}function ww(t){return t!=null}function Dw(t){return qo(t)?jt(t):t}function Sw(t){let i={};return t.forEach(e=>{i=e!=null?q(q({},i),e):i}),Object.keys(i).length===0?null:i}function kw(t,i){return i.map(e=>e(t))}function FW(t){return!t.validate}function Ew(t){return t.map(i=>FW(i)?i:e=>i.validate(e))}function Ow(t){if(!t)return null;let i=t.filter(ww);return i.length==0?null:function(e){return Sw(kw(e,i))}}function t5(t){return t!=null?Ow(Ew(t)):null}function Iw(t){if(!t)return null;let i=t.filter(ww);return i.length==0?null:function(e){let n=kw(e,i).map(Dw);return no(n).pipe(pe(Sw))}}function n5(t){return t!=null?Iw(Ew(t)):null}function dw(t,i){return t===null?[i]:Array.isArray(t)?[...t,i]:[t,i]}function Pw(t){return t._rawValidators}function Tw(t){return t._rawAsyncValidators}function Kg(t){return t?Array.isArray(t)?t:[t]:[]}function Qu(t,i){return Array.isArray(t)?t.includes(i):t===i}function uw(t,i){let e=Kg(i);return Kg(t).forEach(r=>{Qu(e,r)||e.push(r)}),e}function mw(t,i){return Kg(i).filter(e=>!Qu(t,e))}var Ku=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(i){this._rawValidators=i||[],this._composedValidatorFn=t5(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=n5(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i=void 0){this.control&&this.control.reset(i)}hasError(i,e){return this.control?this.control.hasError(i,e):!1}getError(i,e){return this.control?this.control.getError(i,e):null}},ii=class extends Ku{name;get formDirective(){return null}get path(){return null}},Nn=class extends Ku{_parent=null;name=null;valueAccessor=null},Zu=class{_cd;constructor(i){this._cd=i}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}},BW={"[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"},o6e=Be(q({},BW),{"[class.ng-submitted]":"isSubmitted"}),Jt=(()=>{class t extends Zu{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(k(Nn,2))};static \u0275dir=V({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){n&2&&te("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},standalone:!1,features:[ce]})}return t})(),Lr=(()=>{class t extends Zu{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(k(ii,10))};static \u0275dir=V({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,r){n&2&&te("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},standalone:!1,features:[ce]})}return t})();var xd="VALID",qu="INVALID",Gl="PENDING",Md="DISABLED",es=class{},Xu=class extends es{value;source;constructor(i,e){super(),this.value=i,this.source=e}},Dd=class extends es{pristine;source;constructor(i,e){super(),this.pristine=i,this.source=e}},Sd=class extends es{touched;source;constructor(i,e){super(),this.touched=i,this.source=e}},Wl=class extends es{status;source;constructor(i,e){super(),this.status=i,this.source=e}},Ju=class extends es{source;constructor(i){super(),this.source=i}},em=class extends es{source;constructor(i){super(),this.source=i}};function i5(t){return(rm(t)?t.validators:t)||null}function jW(t){return Array.isArray(t)?t5(t):t||null}function r5(t,i){return(rm(i)?i.asyncValidators:t)||null}function UW(t){return Array.isArray(t)?n5(t):t||null}function rm(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function Aw(t,i,e){let n=t.controls;if(!(i?Object.keys(n):n).length)throw new Ce(1e3,"");if(!n[e])throw new Ce(1001,"")}function Vw(t,i,e){t._forEachChild((n,r)=>{if(e[r]===void 0)throw new Ce(1002,"")})}var ql=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(i,e){this._assignValidators(i),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(i){this._rawValidators=this._composedValidatorFn=i}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get parent(){return this._parent}get status(){return ir(this.statusReactive)}set status(i){ir(()=>this.statusReactive.set(i))}_status=Zr(()=>this.statusReactive());statusReactive=zn(void 0);get valid(){return this.status===xd}get invalid(){return this.status===qu}get pending(){return this.status==Gl}get disabled(){return this.status===Md}get enabled(){return this.status!==Md}errors;get pristine(){return ir(this.pristineReactive)}set pristine(i){ir(()=>this.pristineReactive.set(i))}_pristine=Zr(()=>this.pristineReactive());pristineReactive=zn(!0);get dirty(){return!this.pristine}get touched(){return ir(this.touchedReactive)}set touched(i){ir(()=>this.touchedReactive.set(i))}_touched=Zr(()=>this.touchedReactive());touchedReactive=zn(!1);get untouched(){return!this.touched}_events=new N;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._assignValidators(i)}setAsyncValidators(i){this._assignAsyncValidators(i)}addValidators(i){this.setValidators(uw(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(uw(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(mw(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(mw(i,this._rawAsyncValidators))}hasValidator(i){return Qu(this._rawValidators,i)}hasAsyncValidator(i){return Qu(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(i={}){let e=this.touched===!1;this.touched=!0;let n=i.sourceControl??this;this._parent&&!i.onlySelf&&this._parent.markAsTouched(Be(q({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new Sd(!0,n))}markAllAsTouched(i={}){this.markAsTouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(i))}markAsUntouched(i={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=i.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:n})}),this._parent&&!i.onlySelf&&this._parent._updateTouched(i,n),e&&i.emitEvent!==!1&&this._events.next(new Sd(!1,n))}markAsDirty(i={}){let e=this.pristine===!0;this.pristine=!1;let n=i.sourceControl??this;this._parent&&!i.onlySelf&&this._parent.markAsDirty(Be(q({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new Dd(!1,n))}markAsPristine(i={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=i.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:i.emitEvent})}),this._parent&&!i.onlySelf&&this._parent._updatePristine(i,n),e&&i.emitEvent!==!1&&this._events.next(new Dd(!0,n))}markAsPending(i={}){this.status=Gl;let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Wl(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.markAsPending(Be(q({},i),{sourceControl:e}))}disable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=Md,this.errors=null,this._forEachChild(r=>{r.disable(Be(q({},i),{onlySelf:!0}))}),this._updateValue();let n=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Xu(this.value,n)),this._events.next(new Wl(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Be(q({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=xd,this._forEachChild(n=>{n.enable(Be(q({},i),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors(Be(q({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(i,e){this._parent&&!i.onlySelf&&(this._parent.updateValueAndValidity(i),i.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(i){this._parent=i}getRawValue(){return this.value}updateValueAndValidity(i={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===xd||this.status===Gl)&&this._runAsyncValidator(n,i.emitEvent)}let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Xu(this.value,e)),this._events.next(new Wl(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.updateValueAndValidity(Be(q({},i),{sourceControl:e}))}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Md:xd}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i,e){if(this.asyncValidator){this.status=Gl,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1};let n=Dw(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:e,shouldHaveEmitted:i})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let i=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,i}return!1}setErrors(i,e={}){this.errors=i,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(i){let e=i;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((n,r)=>n&&n._find(r),this)}getError(i,e){let n=e?this.get(e):this;return n&&n.errors?n.errors[i]:null}hasError(i,e){return!!this.getError(i,e)}get root(){let i=this;for(;i._parent;)i=i._parent;return i}_updateControlsErrors(i,e,n){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),(i||n)&&this._events.next(new Wl(this.status,e)),this._parent&&this._parent._updateControlsErrors(i,e,n)}_initObservables(){this.valueChanges=new j,this.statusChanges=new j}_calculateStatus(){return this._allControlsDisabled()?Md:this.errors?qu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Gl)?Gl:this._anyControlsHaveStatus(qu)?qu:xd}_anyControlsHaveStatus(i){return this._anyControls(e=>e.status===i)}_anyControlsDirty(){return this._anyControls(i=>i.dirty)}_anyControlsTouched(){return this._anyControls(i=>i.touched)}_updatePristine(i,e){let n=!this._anyControlsDirty(),r=this.pristine!==n;this.pristine=n,this._parent&&!i.onlySelf&&this._parent._updatePristine(i,e),r&&this._events.next(new Dd(this.pristine,e))}_updateTouched(i={},e){this.touched=this._anyControlsTouched(),this._events.next(new Sd(this.touched,e)),this._parent&&!i.onlySelf&&this._parent._updateTouched(i,e)}_onDisabledChange=[];_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){rm(i)&&i.updateOn!=null&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){let e=this._parent&&this._parent.dirty;return!i&&!!e&&!this._parent._anyControlsDirty()}_find(i){return null}_assignValidators(i){this._rawValidators=Array.isArray(i)?i.slice():i,this._composedValidatorFn=jW(this._rawValidators)}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=UW(this._rawAsyncValidators)}},rc=class extends ql{constructor(i,e,n){super(i5(e),r5(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(i,e){return this.controls[i]?this.controls[i]:(this.controls[i]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(i,e,n={}){this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(i,e={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(i,e,n={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],e&&this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(i){return this.controls.hasOwnProperty(i)&&this.controls[i].enabled}setValue(i,e={}){Vw(this,!0,i),Object.keys(i).forEach(n=>{Aw(this,!0,n),this.controls[n].setValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){i!=null&&(Object.keys(i).forEach(n=>{let r=this.controls[n];r&&r.patchValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i={},e={}){this._forEachChild((n,r)=>{n.reset(i?i[r]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(i,e,n)=>(i[n]=e.getRawValue(),i))}_syncPendingControls(){let i=this._reduceChildren(!1,(e,n)=>n._syncPendingControls()?!0:e);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){Object.keys(this.controls).forEach(e=>{let n=this.controls[e];n&&i(n,e)})}_setUpControls(){this._forEachChild(i=>{i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(i){for(let[e,n]of Object.entries(this.controls))if(this.contains(e)&&i(n))return!0;return!1}_reduceValue(){let i={};return this._reduceChildren(i,(e,n,r)=>((n.enabled||this.disabled)&&(e[r]=n.value),e))}_reduceChildren(i,e){let n=i;return this._forEachChild((r,a)=>{n=e(n,r,a)}),n}_allControlsDisabled(){for(let i of Object.keys(this.controls))if(this.controls[i].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(i){return this.controls.hasOwnProperty(i)?this.controls[i]:null}};var Lw=rc;var Zg=class extends rc{};var Yl=new A("",{providedIn:"root",factory:()=>am}),am="always";function om(t,i){return[...i.path,t]}function kd(t,i,e=am){a5(t,i),i.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&i.valueAccessor.setDisabledState?.(t.disabled),GW(t,i),qW(t,i),WW(t,i),$W(t,i)}function tm(t,i,e=!0){let n=()=>{};i.valueAccessor&&(i.valueAccessor.registerOnChange(n),i.valueAccessor.registerOnTouched(n)),im(t,i),t&&(i._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function nm(t,i){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(i)})}function $W(t,i){if(i.valueAccessor.setDisabledState){let e=n=>{i.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function a5(t,i){let e=Pw(t);i.validator!==null?t.setValidators(dw(e,i.validator)):typeof e=="function"&&t.setValidators([e]);let n=Tw(t);i.asyncValidator!==null?t.setAsyncValidators(dw(n,i.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let r=()=>t.updateValueAndValidity();nm(i._rawValidators,r),nm(i._rawAsyncValidators,r)}function im(t,i){let e=!1;if(t!==null){if(i.validator!==null){let r=Pw(t);if(Array.isArray(r)&&r.length>0){let a=r.filter(o=>o!==i.validator);a.length!==r.length&&(e=!0,t.setValidators(a))}}if(i.asyncValidator!==null){let r=Tw(t);if(Array.isArray(r)&&r.length>0){let a=r.filter(o=>o!==i.asyncValidator);a.length!==r.length&&(e=!0,t.setAsyncValidators(a))}}}let n=()=>{};return nm(i._rawValidators,n),nm(i._rawAsyncValidators,n),e}function GW(t,i){i.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&Rw(t,i)})}function WW(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&Rw(t,i),t.updateOn!=="submit"&&t.markAsTouched()})}function Rw(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function qW(t,i){let e=(n,r)=>{i.valueAccessor.writeValue(n),r&&i.viewToModelUpdate(n)};t.registerOnChange(e),i._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function zw(t,i){t==null,a5(t,i)}function YW(t,i){return im(t,i)}function o5(t,i){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(i,e.currentValue)}function QW(t){return Object.getPrototypeOf(t.constructor)===vw}function Hw(t,i){t._syncPendingControls(),i.forEach(e=>{let n=e.control;n.updateOn==="submit"&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function s5(t,i){if(!i)return null;Array.isArray(i);let e,n,r;return i.forEach(a=>{a.constructor===ri?e=a:QW(a)?n=a:r=a}),r||n||e||null}function KW(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}var ZW={provide:ii,useExisting:wt(()=>Ql)},wd=Promise.resolve(),Ql=(()=>{class t extends ii{callSetDisabledState;get submitted(){return ir(this.submittedReactive)}_submitted=Zr(()=>this.submittedReactive());submittedReactive=zn(!1);_directives=new Set;form;ngSubmit=new j;options;constructor(e,n,r){super(),this.callSetDisabledState=r,this.form=new rc({},t5(e),n5(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){wd.then(()=>{let n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),kd(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){wd.then(()=>{let n=this._findContainer(e.path);n&&n.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){wd.then(()=>{let n=this._findContainer(e.path),r=new rc({});zw(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){wd.then(()=>{let n=this._findContainer(e.path);n&&n.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,n){wd.then(()=>{this.form.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),Hw(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new Ju(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 em(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||t)(k(ai,10),k(ac,10),k(Yl,8))};static \u0275dir=V({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,r){n&1&&z("submit",function(o){return r.onSubmit(o)})("reset",function(){return r.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[ue([ZW]),ce]})}return t})();function pw(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}function fw(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var Jo=class extends ql{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(i=null,e,n){super(i5(e),r5(n,e)),this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),rm(e)&&(e.nonNullable||e.initialValueIsDefault)&&(fw(i)?this.defaultValue=i.value:this.defaultValue=i)}setValue(i,e={}){this.value=this._pendingValue=i,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(i,e={}){this.setValue(i,e)}reset(i=this.defaultValue,e={}){this._applyFormState(i),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){pw(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){pw(this._onDisabledChange,i)}_forEachChild(i){}_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(i){fw(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}},xi=Jo,XW=t=>t instanceof Jo,JW=(()=>{class t extends ii{_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 om(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(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=V({type:t,standalone:!1,features:[ce]})}return t})();var eq={provide:Nn,useExisting:wt(()=>tq)},hw=Promise.resolve(),tq=(()=>{class t extends Nn{_changeDetectorRef;callSetDisabledState;control=new Jo;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new j;constructor(e,n,r,a,o,s){super(),this._changeDetectorRef=o,this.callSetDisabledState=s,this._parent=e,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=s5(this,a)}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),o5(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(){kd(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){hw.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let n=e.isDisabled.currentValue,r=n!==0&&B(n);hw.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?om(e,this._parent):[e]}static \u0275fac=function(n){return new(n||t)(k(ii,9),k(ai,10),k(ac,10),k(Yn,10),k(be,8),k(Yl,8))};static \u0275dir=V({type:t,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:[ue([eq]),ce,Pe]})}return t})();var ts=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=V({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return t})(),nq={provide:Yn,useExisting:wt(()=>iq),multi:!0},iq=(()=>{class t extends vw{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(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=V({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,r){n&1&&z("input",function(o){return r.onChange(o.target.value)})("blur",function(){return r.onTouched()})},standalone:!1,features:[ue([nq]),ce]})}return t})();var c5=new A(""),rq={provide:Nn,useExisting:wt(()=>mi)},mi=(()=>{class t extends Nn{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new j;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,n,r,a,o){super(),this._ngModelWarningConfig=a,this.callSetDisabledState=o,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=s5(this,r)}ngOnChanges(e){if(this._isControlChanged(e)){let n=e.form.previousValue;n&&tm(n,this,!1),kd(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}o5(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&tm(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||t)(k(ai,10),k(ac,10),k(Yn,10),k(c5,8),k(Yl,8))};static \u0275dir=V({type:t,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[ue([rq]),ce,Pe]})}return t})(),aq={provide:ii,useExisting:wt(()=>Qn)},Qn=(()=>{class t extends ii{callSetDisabledState;get submitted(){return ir(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=Zr(()=>this._submittedReactive());_submittedReactive=zn(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new j;constructor(e,n,r){super(),this.callSetDisabledState=r,this._setValidators(e),this._setAsyncValidators(n)}ngOnChanges(e){e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(im(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 kd(n,e,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),n}getControl(e){return this.form.get(e.path)}removeControl(e){tm(e.control||null,e,!1),KW(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),Hw(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new Ju(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 em(this.form))}_updateDomValue(){this.directives.forEach(e=>{let n=e.control,r=this.form.get(e.path);n!==r&&(tm(n||null,e),XW(r)&&(kd(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let n=this.form.get(e.path);zw(n,e),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let n=this.form.get(e.path);n&&YW(n,e)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){a5(this.form,this),this._oldForm&&im(this._oldForm,this)}static \u0275fac=function(n){return new(n||t)(k(ai,10),k(ac,10),k(Yl,8))};static \u0275dir=V({type:t,selectors:[["","formGroup",""]],hostBindings:function(n,r){n&1&&z("submit",function(o){return r.onSubmit(o)})("reset",function(){return r.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[ue([aq]),ce,Pe]})}return t})(),oq={provide:ii,useExisting:wt(()=>Nw)},Nw=(()=>{class t extends JW{name=null;constructor(e,n,r){super(),this._parent=e,this._setValidators(n),this._setAsyncValidators(r)}_checkParentType(){Bw(this._parent)}static \u0275fac=function(n){return new(n||t)(k(ii,13),k(ai,10),k(ac,10))};static \u0275dir=V({type:t,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:!1,features:[ue([oq]),ce]})}return t})(),sq={provide:ii,useExisting:wt(()=>Fw)},Fw=(()=>{class t extends ii{_parent;name=null;constructor(e,n,r){super(),this._parent=e,this._setValidators(n),this._setAsyncValidators(r)}ngOnInit(){Bw(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 om(this.name==null?this.name:this.name.toString(),this._parent)}static \u0275fac=function(n){return new(n||t)(k(ii,13),k(ai,10),k(ac,10))};static \u0275dir=V({type:t,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:!1,features:[ue([sq]),ce]})}return t})();function Bw(t){return!(t instanceof Nw)&&!(t instanceof Qn)&&!(t instanceof Fw)}var cq={provide:Nn,useExisting:wt(()=>Cr)},Cr=(()=>{class t extends Nn{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(e){}model;update=new j;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,n,r,a,o){super(),this._ngModelWarningConfig=o,this._parent=e,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=s5(this,a)}ngOnChanges(e){this._added||this._setUpControl(),o5(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 om(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||t)(k(ii,13),k(ai,10),k(ac,10),k(Yn,10),k(c5,8))};static \u0275dir=V({type:t,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[ue([cq]),ce,Pe]})}return t})();function jw(t){return typeof t=="number"?t:parseInt(t,10)}function Uw(t){return typeof t=="number"?t:parseFloat(t)}var Ed=(()=>{class t{_validator=Yu;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){let n=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(n),this._validator=this._enabled?this.createValidator(n):Yu,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}static \u0275fac=function(n){return new(n||t)};static \u0275dir=V({type:t,features:[Pe]})}return t})(),lq={provide:ai,useExisting:wt(()=>dq),multi:!0},dq=(()=>{class t extends Ed{max;inputName="max";normalizeInput=e=>Uw(e);createValidator=e=>yw(e);static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=V({type:t,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(n,r){n&2&&ee("max",r._enabled?r.max:null)},inputs:{max:"max"},standalone:!1,features:[ue([lq]),ce]})}return t})(),uq={provide:ai,useExisting:wt(()=>mq),multi:!0},mq=(()=>{class t extends Ed{min;inputName="min";normalizeInput=e=>Uw(e);createValidator=e=>bw(e);static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=V({type:t,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(n,r){n&2&&ee("min",r._enabled?r.min:null)},inputs:{min:"min"},standalone:!1,features:[ue([uq]),ce]})}return t})(),pq={provide:ai,useExisting:wt(()=>na),multi:!0};var na=(()=>{class t extends Ed{required;inputName="required";normalizeInput=B;createValidator=e=>Cw;enabled(e){return e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=V({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(n,r){n&2&&ee("required",r._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[ue([pq]),ce]})}return t})();var fq={provide:ai,useExisting:wt(()=>hq),multi:!0},hq=(()=>{class t extends Ed{minlength;inputName="minlength";normalizeInput=e=>jw(e);createValidator=e=>xw(e);static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=V({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(n,r){n&2&&ee("minlength",r._enabled?r.minlength:null)},inputs:{minlength:"minlength"},standalone:!1,features:[ue([fq]),ce]})}return t})(),gq={provide:ai,useExisting:wt(()=>_q),multi:!0},_q=(()=>{class t extends Ed{maxlength;inputName="maxlength";normalizeInput=e=>jw(e);createValidator=e=>Mw(e);static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=V({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(n,r){n&2&&ee("maxlength",r._enabled?r.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[ue([gq]),ce]})}return t})();var $w=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=K({type:t});static \u0275inj=Q({})}return t})(),Xg=class extends ql{constructor(i,e,n){super(i5(e),r5(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(i){return this.controls[this._adjustIndex(i)]}push(i,e={}){this.controls.push(i),this._registerControl(i),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(i,e,n={}){this.controls.splice(i,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(i,e={}){let n=this._adjustIndex(i);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(i,e,n={}){let r=this._adjustIndex(i);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(i,e={}){Vw(this,!1,i),i.forEach((n,r)=>{Aw(this,!1,r),this.at(r).setValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){i!=null&&(i.forEach((n,r)=>{this.at(r)&&this.at(r).patchValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i=[],e={}){this._forEachChild((n,r)=>{n.reset(i[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(i=>i.getRawValue())}clear(i={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:i.emitEvent}))}_adjustIndex(i){return i<0?i+this.length:i}_syncPendingControls(){let i=this.controls.reduce((e,n)=>n._syncPendingControls()?!0:e,!1);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){this.controls.forEach((e,n)=>{i(e,n)})}_updateValue(){this.value=this.controls.filter(i=>i.enabled||this.disabled).map(i=>i.value)}_anyControls(i){return this.controls.some(e=>e.enabled&&i(e))}_setUpControls(){this._forEachChild(i=>this._registerControl(i))}_allControlsDisabled(){for(let i of this.controls)if(i.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(i){i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)}_find(i){return this.at(i)??null}};function gw(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0)}var vq=(()=>{class t{useNonNullable=!1;get nonNullable(){let e=new t;return e.useNonNullable=!0,e}group(e,n=null){let r=this._reduceControls(e),a={};return gw(n)?a=n:n!==null&&(a.validators=n.validator,a.asyncValidators=n.asyncValidator),new rc(r,a)}record(e,n=null){let r=this._reduceControls(e);return new Zg(r,n)}control(e,n,r){let a={};return this.useNonNullable?(gw(n)?a=n:(a.validators=n,a.asyncValidators=r),new Jo(e,Be(q({},a),{nonNullable:!0}))):new Jo(e,n,r)}array(e,n,r){let a=e.map(o=>this._createControl(o));return new Xg(a,n,r)}_reduceControls(e){let n={};return Object.keys(e).forEach(r=>{n[r]=this._createControl(e[r])}),n}_createControl(e){if(e instanceof Jo)return e;if(e instanceof ql)return e;if(Array.isArray(e)){let n=e[0],r=e.length>1?e[1]:null,a=e.length>2?e[2]:null;return this.control(n,r,a)}else return this.control(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var ns=(()=>{class t extends vq{group(e,n=null){return super.group(e,n)}control(e,n,r){return super.control(e,n,r)}array(e,n,r){return super.array(e,n,r)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Gw=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Yl,useValue:e.callSetDisabledState??am}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=K({type:t});static \u0275inj=Q({imports:[$w]})}return t})(),_e=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:c5,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Yl,useValue:e.callSetDisabledState??am}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=K({type:t});static \u0275inj=Q({imports:[$w]})}return t})();var Ww=(()=>{class t{set _(e){let n=e.split(":");this.currencyCode=n[0],this.displaySymbol=n.length>1?n[1]:"$",this.digitsInfo=n.length>2?n[2]:"1.2-2"}blur(e){e.value=this.parse(e.value)}focus(e){typeof this.control.value>"u"?e.value="":e.value=this.control.value}ngOnInit(){setTimeout(()=>{this.el.nativeElement.value=this.parse(this.el.nativeElement.value)})}constructor(e,n,r){this.locale=e,this.el=n,this.control=r,this.format="N0",this.digitsInfo="1.0-0",this.sufix=""}parse(e){return Cu(e,this.locale,this.displaySymbol,this.currencyCode,this.digitsInfo)+this.sufix}static{this.\u0275fac=function(n){return new(n||t)(k(Ea),k(Y),k(Nn))}}static{this.\u0275dir=V({type:t,selectors:[["","mifosxFormatAmount",""]],hostBindings:function(n,r){n&1&&z("blur",function(o){return r.blur(o.target)})("focus",function(o){return r.focus(o.target)})},inputs:{sufix:"sufix",_:[0,"mifosxFormatAmount","_"]}})}}return t})();var m6e=(()=>{class t{constructor(e,n){this.control=e,this.el=n}onFocus(){this.control.control?.markAsTouched(),this.control.control?.updateValueAndValidity()}static{this.\u0275fac=function(n){return new(n||t)(k(Nn),k(Y))}}static{this.\u0275dir=V({type:t,selectors:[["","mifosxValidateOnFocus",""]],hostBindings:function(n,r){n&1&&z("focus",function(){return r.onFocus()})}})}}return t})();var qw=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=K({type:t})}static{this.\u0275inj=Q({imports:[fe]})}}return t})();var Rr=class{constructor(i={}){this.controlType=i.controlType||"",this.controlName=i.controlName||"",this.label=i.label||"",this.value=i.value===void 0?"":i.value,this.required=!!i.required,this.order=i.order===void 0?1:i.order,this.validators=i.validators===void 0?[]:i.validators,this.min=i.min===void 0?null:i.min,this.max=i.max===void 0?null:i.max}};function yo(t){return t.buttons===0||t.detail===0}function Co(t){let i=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!i&&i.identifier===-1&&(i.radiusX==null||i.radiusX===1)&&(i.radiusY==null||i.radiusY===1)}var l5;function Yw(){if(l5==null){let t=typeof document<"u"?document.head:null;l5=!!(t&&(t.createShadowRoot||t.attachShadow))}return l5}function oc(t){if(Yw()){let i=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}function Ri(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){let i=t.shadowRoot.activeElement;if(i===t)break;t=i}return t}function In(t){return t.composedPath?t.composedPath()[0]:t.target}function Dt(t,i,e,n,r){let a=parseInt(rg.major),o=parseInt(rg.minor);return a>19||a===19&&o>0||a===0&&o===0?t.listen(i,e,n,r):(i.addEventListener(e,n,r),()=>{i.removeEventListener(e,n,r)})}var d5;try{d5=typeof Intl<"u"&&Intl.v8BreakIterator}catch{d5=!1}var He=(()=>{class t{_platformId=u(Go);isBrowser=this._platformId?xg(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||d5)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Od;function Qw(){if(Od==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Od=!0}))}finally{Od=Od||!1}return Od}function is(t){return Qw()?t:!!t.capture}function sn(t,i=0){return sm(t)?Number(t):arguments.length===2?i:0}function sm(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Cn(t){return t instanceof Y?t.nativeElement:t}var Kw=new A("cdk-input-modality-detector-options"),Zw={ignoreKeys:[18,17,224,91,16]},Xw=650,u5={passive:!0,capture:!0},Jw=(()=>{class t{_platform=u(He);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new Je(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(n=>n===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=In(e))};_onMousedown=e=>{Date.now()-this._lastTouchMs{if(Co(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=In(e)};constructor(){let e=u(se),n=u(De),r=u(Kw,{optional:!0});if(this._options=q(q({},Zw),r),this.modalityDetected=this._modality.pipe(Ls(1)),this.modalityChanged=this.modalityDetected.pipe(sl()),this._platform.isBrowser){let a=u(En).createRenderer(null,null);this._listenerCleanups=e.runOutsideAngular(()=>[Dt(a,n,"keydown",this._onKeydown,u5),Dt(a,n,"mousedown",this._onMousedown,u5),Dt(a,n,"touchstart",this._onTouchstart,u5)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(e=>e())}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Id=function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t}(Id||{}),eD=new A("cdk-focus-monitor-default-options"),cm=is({passive:!0,capture:!0}),qt=(()=>{class t{_ngZone=u(se);_platform=u(He);_inputModalityDetector=u(Jw);_origin=null;_lastFocusOrigin;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)};_document=u(De,{optional:!0});_stopInputModalityDetector=new N;constructor(){let e=u(eD,{optional:!0});this._detectionMode=e?.detectionMode||Id.IMMEDIATE}_rootNodeFocusAndBlurListener=e=>{let n=In(e);for(let r=n;r;r=r.parentElement)e.type==="focus"?this._onFocus(e,r):this._onBlur(e,r)};monitor(e,n=!1){let r=Cn(e);if(!this._platform.isBrowser||r.nodeType!==1)return ie();let a=oc(r)||this._getDocument(),o=this._elementInfo.get(r);if(o)return n&&(o.checkChildren=!0),o.subject;let s={checkChildren:n,subject:new N,rootNode:a};return this._elementInfo.set(r,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){let n=Cn(e),r=this._elementInfo.get(n);r&&(r.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(r))}focusVia(e,n,r){let a=Cn(e),o=this._getDocument().activeElement;a===o?this._getClosestElementsInfo(a).forEach(([s,d])=>this._originChanged(s,n,d)):(this._setOrigin(n),typeof a.focus=="function"&&a.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,n)=>this.stopMonitoring(n))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===Id.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,n){e.classList.toggle("cdk-focused",!!n),e.classList.toggle("cdk-touch-focused",n==="touch"),e.classList.toggle("cdk-keyboard-focused",n==="keyboard"),e.classList.toggle("cdk-mouse-focused",n==="mouse"),e.classList.toggle("cdk-program-focused",n==="program")}_setOrigin(e,n=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&n,this._detectionMode===Id.IMMEDIATE){clearTimeout(this._originTimeoutId);let r=this._originFromTouchInteraction?Xw:1;this._originTimeoutId=setTimeout(()=>this._origin=null,r)}})}_onFocus(e,n){let r=this._elementInfo.get(n),a=In(e);!r||!r.checkChildren&&n!==a||this._originChanged(n,this._getFocusOrigin(a),r)}_onBlur(e,n){let r=this._elementInfo.get(n);!r||r.checkChildren&&e.relatedTarget instanceof Node&&n.contains(e.relatedTarget)||(this._setClasses(n),this._emitOrigin(r,null))}_emitOrigin(e,n){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(n))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let n=e.rootNode,r=this._rootNodeFocusListenerCount.get(n)||0;r||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,cm),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,cm)}),this._rootNodeFocusListenerCount.set(n,r+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(ve(this._stopInputModalityDetector)).subscribe(a=>{this._setOrigin(a,!0)}))}_removeGlobalListeners(e){let n=e.rootNode;if(this._rootNodeFocusListenerCount.has(n)){let r=this._rootNodeFocusListenerCount.get(n);r>1?this._rootNodeFocusListenerCount.set(n,r-1):(n.removeEventListener("focus",this._rootNodeFocusAndBlurListener,cm),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,cm),this._rootNodeFocusListenerCount.delete(n))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,n,r){this._setClasses(e,n),this._emitOrigin(r,n),this._lastFocusOrigin=n}_getClosestElementsInfo(e){let n=[];return this._elementInfo.forEach((r,a)=>{(a===e||r.checkChildren&&a.contains(e))&&n.push([a,r])}),n}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:n,mostRecentModality:r}=this._inputModalityDetector;if(r!=="mouse"||!n||n===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let a=e.labels;if(a){for(let o=0;o{class t{_elementRef=u(Y);_focusMonitor=u(qt);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new j;constructor(){}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,e.nodeType===1&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(n=>{this._focusOrigin=n,this.cdkFocusChange.emit(n)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=V({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return t})();var lm=new WeakMap,Ze=(()=>{class t{_appRef;_injector=u(Te);_environmentInjector=u(fn);load(e){let n=this._appRef=this._appRef||this._injector.get(bi),r=lm.get(n);r||(r={loaders:new Set,refs:[]},lm.set(n,r),n.onDestroy(()=>{lm.get(n)?.refs.forEach(a=>a.destroy()),lm.delete(n)})),r.loaders.has(e)||(r.loaders.add(e),r.refs.push(ou(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var ar=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=I({type:t,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(n,r){},styles:[`.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0} +`).forEach(e=>{let n=e.indexOf(":");if(n>0){let r=e.slice(0,n),a=e.slice(n+1).trim();this.addHeaderEntry(r,a)}})}:typeof Headers<"u"&&i instanceof Headers?(this.headers=new Map,i.forEach((e,n)=>{this.addHeaderEntry(n,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(i).forEach(([e,n])=>{this.setHeaderEntries(e,n)})}:this.headers=new Map}has(i){return this.init(),this.headers.has(i.toLowerCase())}get(i){this.init();let e=this.headers.get(i.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(i){return this.init(),this.headers.get(i.toLowerCase())||null}append(i,e){return this.clone({name:i,value:e,op:"a"})}set(i,e){return this.clone({name:i,value:e,op:"s"})}delete(i,e){return this.clone({name:i,value:e,op:"d"})}maybeSetNormalizedName(i,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,i)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(i=>this.applyUpdate(i)),this.lazyUpdate=null))}copyFrom(i){i.init(),Array.from(i.headers.keys()).forEach(e=>{this.headers.set(e,i.headers.get(e)),this.normalizedNames.set(e,i.normalizedNames.get(e))})}clone(i){let e=new t;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([i]),e}applyUpdate(i){let e=i.name.toLowerCase();switch(i.op){case"a":case"s":let n=i.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(i.name,e);let r=(i.op==="a"?this.headers.get(e):void 0)||[];r.push(...n),this.headers.set(e,r);break;case"d":let a=i.value;if(!a)this.headers.delete(e),this.normalizedNames.delete(e);else{let o=this.headers.get(e);if(!o)return;o=o.filter(s=>a.indexOf(s)===-1),o.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}break}}addHeaderEntry(i,e){let n=i.toLowerCase();this.maybeSetNormalizedName(i,n),this.headers.has(n)?this.headers.get(n).push(e):this.headers.set(n,[e])}setHeaderEntries(i,e){let n=(Array.isArray(e)?e:[e]).map(a=>a.toString()),r=i.toLowerCase();this.headers.set(r,n),this.maybeSetNormalizedName(i,r)}forEach(i){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>i(this.normalizedNames.get(e),this.headers.get(e)))}};var Iu=class{encodeKey(i){return PM(i)}encodeValue(i){return PM(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}};function tW(t,i){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{let a=r.indexOf("="),[o,s]=a==-1?[i.decodeKey(r),""]:[i.decodeKey(r.slice(0,a)),i.decodeValue(r.slice(a+1))],d=e.get(o)||[];d.push(s),e.set(o,d)}),e}var nW=/%(\d[a-f0-9])/gi,iW={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function PM(t){return encodeURIComponent(t).replace(nW,(i,e)=>iW[e]??i)}function Ou(t){return`${t}`}var Z=class t{map;encoder;updates=null;cloneFrom=null;constructor(i={}){if(this.encoder=i.encoder||new Iu,i.fromString){if(i.fromObject)throw new Ce(2805,!1);this.map=tW(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(e=>{let n=i.fromObject[e],r=Array.isArray(n)?n.map(Ou):[Ou(n)];this.map.set(e,r)})):this.map=null}has(i){return this.init(),this.map.has(i)}get(i){this.init();let e=this.map.get(i);return e?e[0]:null}getAll(i){return this.init(),this.map.get(i)||null}keys(){return this.init(),Array.from(this.map.keys())}append(i,e){return this.clone({param:i,value:e,op:"a"})}appendAll(i){let e=[];return Object.keys(i).forEach(n=>{let r=i[n];Array.isArray(r)?r.forEach(a=>{e.push({param:n,value:a,op:"a"})}):e.push({param:n,value:r,op:"a"})}),this.clone(e)}set(i,e){return this.clone({param:i,value:e,op:"s"})}delete(i,e){return this.clone({param:i,value:e,op:"d"})}toString(){return this.init(),this.keys().map(i=>{let e=this.encoder.encodeKey(i);return this.map.get(i).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(i=>i!=="").join("&")}clone(i){let e=new t({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(i),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(i=>this.map.set(i,this.cloneFrom.map.get(i))),this.updates.forEach(i=>{switch(i.op){case"a":case"s":let e=(i.op==="a"?this.map.get(i.param):void 0)||[];e.push(Ou(i.value)),this.map.set(i.param,e);break;case"d":if(i.value!==void 0){let n=this.map.get(i.param)||[],r=n.indexOf(Ou(i.value));r!==-1&&n.splice(r,1),n.length>0?this.map.set(i.param,n):this.map.delete(i.param)}else{this.map.delete(i.param);break}}}),this.cloneFrom=this.updates=null)}};var Pu=class{map=new Map;set(i,e){return this.map.set(i,e),this}get(i){return this.map.has(i)||this.map.set(i,i.defaultValue()),this.map.get(i)}delete(i){return this.map.delete(i),this}has(i){return this.map.has(i)}keys(){return this.map.keys()}};function rW(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function TM(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function AM(t){return typeof Blob<"u"&&t instanceof Blob}function VM(t){return typeof FormData<"u"&&t instanceof FormData}function aW(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var LM="Content-Type",RM="Accept",HM="X-Request-URL",NM="text/plain",FM="application/json",oW=`${FM}, ${NM}, */*`,Rl=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(i,e,n,r){this.url=e,this.method=i.toUpperCase();let a;if(rW(this.method)||r?(this.body=n!==void 0?n:null,a=r):a=n,a&&(this.reportProgress=!!a.reportProgress,this.withCredentials=!!a.withCredentials,a.responseType&&(this.responseType=a.responseType),a.headers&&(this.headers=a.headers),a.context&&(this.context=a.context),a.params&&(this.params=a.params),this.transferCache=a.transferCache),this.headers??=new vr,this.context??=new Pu,!this.params)this.params=new Z,this.urlWithParams=e;else{let o=this.params.toString();if(o.length===0)this.urlWithParams=e;else{let s=e.indexOf("?"),d=s===-1?"?":sS.set(D,i.setHeaders[D]),h)),i.setParams&&(v=Object.keys(i.setParams).reduce((S,D)=>S.set(D,i.setParams[D]),v)),new t(e,n,o,{params:v,headers:h,context:C,reportProgress:d,responseType:r,withCredentials:s,transferCache:a})}},nc=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(nc||{}),Hl=class{headers;status;statusText;url;ok;type;constructor(i,e=200,n="OK"){this.headers=i.headers||new vr,this.status=i.status!==void 0?i.status:e,this.statusText=i.statusText||n,this.url=i.url||null,this.ok=this.status>=200&&this.status<300}},Tu=class t extends Hl{constructor(i={}){super(i)}type=nc.ResponseHeader;clone(i={}){return new t({headers:i.headers||this.headers,status:i.status!==void 0?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}},md=class t extends Hl{body;constructor(i={}){super(i),this.body=i.body!==void 0?i.body:null}type=nc.Response;clone(i={}){return new t({body:i.body!==void 0?i.body:this.body,headers:i.headers||this.headers,status:i.status!==void 0?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}},pd=class extends Hl{name="HttpErrorResponse";message;error;ok=!1;constructor(i){super(i,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${i.url||"(unknown url)"}`:this.message=`Http failure response for ${i.url||"(unknown url)"}: ${i.status} ${i.statusText}`,this.error=i.error||null}},sW=200,cW=204;function Pg(t,i){return{body:i,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var On=(()=>{class t{handler;constructor(e){this.handler=e}request(e,n,r={}){let a;if(e instanceof Rl)a=e;else{let d;r.headers instanceof vr?d=r.headers:d=new vr(r.headers);let h;r.params&&(r.params instanceof Z?h=r.params:h=new Z({fromObject:r.params})),a=new Rl(e,n,r.body!==void 0?r.body:null,{headers:d,context:r.context,params:h,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache})}let o=ie(a).pipe(Ti(d=>this.handler.handle(d)));if(e instanceof Rl||r.observe==="events")return o;let s=o.pipe(Ve(d=>d instanceof md));switch(r.observe||"body"){case"body":switch(a.responseType){case"arraybuffer":return s.pipe(pe(d=>{if(d.body!==null&&!(d.body instanceof ArrayBuffer))throw new Ce(2806,!1);return d.body}));case"blob":return s.pipe(pe(d=>{if(d.body!==null&&!(d.body instanceof Blob))throw new Ce(2807,!1);return d.body}));case"text":return s.pipe(pe(d=>{if(d.body!==null&&typeof d.body!="string")throw new Ce(2808,!1);return d.body}));case"json":default:return s.pipe(pe(d=>d.body))}case"response":return s;default:throw new Ce(2809,!1)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:new Z().append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,r={}){return this.request("PATCH",e,Pg(r,n))}post(e,n,r={}){return this.request("POST",e,Pg(r,n))}put(e,n,r={}){return this.request("PUT",e,Pg(r,n))}static \u0275fac=function(n){return new(n||t)(ae(zl))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();var lW=new A("");function BM(t,i){return i(t)}function dW(t,i){return(e,n)=>i.intercept(e,{handle:r=>t(r,n)})}function uW(t,i,e){return(n,r)=>Ki(e,()=>i(n,a=>t(a,r)))}var jM=new A(""),Ag=new A(""),UM=new A(""),Vg=new A("",{providedIn:"root",factory:()=>!0});function mW(){let t=null;return(i,e)=>{t===null&&(t=(u(jM,{optional:!0})??[]).reduceRight(dW,BM));let n=u(mo);if(u(Vg)){let a=n.add();return t(i,e).pipe(_a(()=>n.remove(a)))}else return t(i,e)}}var Au=(()=>{class t extends zl{backend;injector;chain=null;pendingTasks=u(mo);contributeToStability=u(Vg);constructor(e,n){super(),this.backend=e,this.injector=n}handle(e){if(this.chain===null){let n=Array.from(new Set([...this.injector.get(Ag),...this.injector.get(UM,[])]));this.chain=n.reduceRight((r,a)=>uW(r,a,this.injector),BM)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(e,r=>this.backend.handle(r)).pipe(_a(()=>this.pendingTasks.remove(n)))}else return this.chain(e,n=>this.backend.handle(n))}static \u0275fac=function(n){return new(n||t)(ae(ud),ae(fn))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();var pW=/^\)\]\}',?\n/,fW=RegExp(`^${HM}:`,"m");function hW(t){return"responseURL"in t&&t.responseURL?t.responseURL:fW.test(t.getAllResponseHeaders())?t.getResponseHeader(HM):null}var Tg=(()=>{class t{xhrFactory;constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new Ce(-2800,!1);let n=this.xhrFactory;return(n.\u0275loadImpl?jt(n.\u0275loadImpl()):ie(null)).pipe(dt(()=>new Ue(a=>{let o=n.build();if(o.open(e.method,e.urlWithParams),e.withCredentials&&(o.withCredentials=!0),e.headers.forEach((ne,oe)=>o.setRequestHeader(ne,oe.join(","))),e.headers.has(RM)||o.setRequestHeader(RM,oW),!e.headers.has(LM)){let ne=e.detectContentTypeHeader();ne!==null&&o.setRequestHeader(LM,ne)}if(e.responseType){let ne=e.responseType.toLowerCase();o.responseType=ne!=="json"?ne:"text"}let s=e.serializeBody(),d=null,h=()=>{if(d!==null)return d;let ne=o.statusText||"OK",oe=new vr(o.getAllResponseHeaders()),ye=hW(o)||e.url;return d=new Tu({headers:oe,status:o.status,statusText:ne,url:ye}),d},v=()=>{let{headers:ne,status:oe,statusText:ye,url:qe}=h(),nt=null;oe!==cW&&(nt=typeof o.response>"u"?o.responseText:o.response),oe===0&&(oe=nt?sW:0);let An=oe>=200&&oe<300;if(e.responseType==="json"&&typeof nt=="string"){let Rn=nt;nt=nt.replace(pW,"");try{nt=nt!==""?JSON.parse(nt):null}catch(Ei){nt=Rn,An&&(An=!1,nt={error:Ei,text:nt})}}An?(a.next(new md({body:nt,headers:ne,status:oe,statusText:ye,url:qe||void 0})),a.complete()):a.error(new pd({error:nt,headers:ne,status:oe,statusText:ye,url:qe||void 0}))},C=ne=>{let{url:oe}=h(),ye=new pd({error:ne,status:o.status||0,statusText:o.statusText||"Unknown Error",url:oe||void 0});a.error(ye)},S=!1,D=ne=>{S||(a.next(h()),S=!0);let oe={type:nc.DownloadProgress,loaded:ne.loaded};ne.lengthComputable&&(oe.total=ne.total),e.responseType==="text"&&o.responseText&&(oe.partialText=o.responseText),a.next(oe)},L=ne=>{let oe={type:nc.UploadProgress,loaded:ne.loaded};ne.lengthComputable&&(oe.total=ne.total),a.next(oe)};return o.addEventListener("load",v),o.addEventListener("error",C),o.addEventListener("timeout",C),o.addEventListener("abort",C),e.reportProgress&&(o.addEventListener("progress",D),s!==null&&o.upload&&o.upload.addEventListener("progress",L)),o.send(s),a.next({type:nc.Sent}),()=>{o.removeEventListener("error",C),o.removeEventListener("abort",C),o.removeEventListener("load",v),o.removeEventListener("timeout",C),e.reportProgress&&(o.removeEventListener("progress",D),s!==null&&o.upload&&o.upload.removeEventListener("progress",L)),o.readyState!==o.DONE&&o.abort()}})))}static \u0275fac=function(n){return new(n||t)(ae(tc))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),$M=new A(""),gW="XSRF-TOKEN",_W=new A("",{providedIn:"root",factory:()=>gW}),vW="X-XSRF-TOKEN",bW=new A("",{providedIn:"root",factory:()=>vW}),fd=class{},yW=(()=>{class t{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(e,n){this.doc=e,this.cookieName=n}getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=od(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(n){return new(n||t)(ae(De),ae(_W))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function CW(t,i){let e=t.url.toLowerCase();if(!u($M)||t.method==="GET"||t.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return i(t);let n=u(fd).getToken(),r=u(bW);return n!=null&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,n)})),i(t)}var Lg=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(Lg||{});function xW(t,i){return{\u0275kind:t,\u0275providers:i}}function MW(...t){let i=[On,Tg,Au,{provide:zl,useExisting:Au},{provide:ud,useFactory:()=>u(lW,{optional:!0})??u(Tg)},{provide:Ag,useValue:CW,multi:!0},{provide:$M,useValue:!0},{provide:fd,useClass:yW}];for(let e of t)i.push(...e.\u0275providers);return wl(i)}var zM=new A("");function wW(){return xW(Lg.LegacyInterceptors,[{provide:zM,useFactory:mW},{provide:Ag,useExisting:zM,multi:!0}])}var GM=(()=>{class t{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(n){return new(n||t)(ae(De))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var hd=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:function(n){let r=null;return n?r=new(n||t):r=ae(DW),r},providedIn:"root"})}return t})(),DW=(()=>{class t extends hd{_doc;constructor(e){super(),this._doc=e}sanitize(e,n){if(n==null)return null;switch(e){case di.NONE:return n;case di.HTML:return po(n,"HTML")?Pr(n):k8(this._doc,String(n)).toString();case di.STYLE:return po(n,"Style")?Pr(n):n;case di.SCRIPT:if(po(n,"Script"))return Pr(n);throw new Ce(5200,!1);case di.URL:return po(n,"URL")?Pr(n):B0(String(n));case di.RESOURCE_URL:if(po(n,"ResourceURL"))return Pr(n);throw new Ce(5201,!1);default:throw new Ce(5202,!1)}}bypassSecurityTrustHtml(e){return cC(e)}bypassSecurityTrustStyle(e){return lC(e)}bypassSecurityTrustScript(e){return dC(e)}bypassSecurityTrustUrl(e){return uC(e)}bypassSecurityTrustResourceUrl(e){return mC(e)}static \u0275fac=function(n){return new(n||t)(ae(De))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Nl=class{},WM=(()=>{class t extends Nl{getTranslation(e){return ie({})}static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),_d=class{},qM=(()=>{class t{handle(e){return e.key}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function Lu(t,i){if(t===i)return!0;if(t===null||i===null)return!1;if(t!==t&&i!==i)return!0;let e=typeof t,n=typeof i,r,a,o;if(e==n&&e=="object")if(Array.isArray(t)){if(!Array.isArray(i))return!1;if((r=t.length)==i.length){for(a=0;a{bd(i[n])?n in t?e[n]=zg(t[n],i[n]):Object.assign(e,{[n]:i[n]}):Object.assign(e,{[n]:i[n]})}),e):zg({},i)}function Hg(t,i){let e=i.split(".");i="";do i+=e.shift(),Qo(t)&&Qo(t[i])&&(bd(t[i])||Ug(t[i])||!e.length)?(t=t[i],i=""):e.length?i+=".":t=void 0;while(e.length);return t}function kW(t,i,e){let n=i.split("."),r=t;for(let a=0;a{class t extends Fl{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(e,n){if($g(e))return this.interpolateString(e,n);if(SW(e))return this.interpolateFunction(e,n)}interpolateFunction(e,n){return e(n)}interpolateString(e,n){return n?e.replace(this.templateMatcher,(r,a)=>{let o=Hg(n,a);return Qo(o)?o:r}):e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),Bl=class{},QM=(()=>{class t extends Bl{compile(e,n){return e}compileTranslations(e,n){return e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),vd=class{defaultLang;currentLang=this.defaultLang;translations={};langs=[];onTranslationChange=new j;onLangChange=new j;onDefaultLangChange=new j},Ng=new A("ISOLATE_TRANSLATE_SERVICE"),Fg=new A("USE_DEFAULT_LANG"),Bg=new A("DEFAULT_LANGUAGE"),jg=new A("USE_EXTEND"),gd=t=>Gn(t)?t:ie(t),br=(()=>{class t{store;currentLoader;compiler;parser;missingTranslationHandler;useDefaultLang;extend;loadingTranslations;pending=!1;_translationRequests={};lastUseLanguage=null;get onTranslationChange(){return this.store.onTranslationChange}get onLangChange(){return this.store.onLangChange}get onDefaultLangChange(){return this.store.onDefaultLangChange}get defaultLang(){return this.store.defaultLang}set defaultLang(e){this.store.defaultLang=e}get currentLang(){return this.store.currentLang}set currentLang(e){this.store.currentLang=e}get langs(){return this.store.langs}set langs(e){this.store.langs=e}get translations(){return this.store.translations}set translations(e){this.store.translations=e}constructor(e,n,r,a,o,s=!0,d=!1,h=!1,v){this.store=e,this.currentLoader=n,this.compiler=r,this.parser=a,this.missingTranslationHandler=o,this.useDefaultLang=s,this.extend=h,d&&(this.store=new vd),v&&this.setDefaultLang(v)}setDefaultLang(e){if(e===this.defaultLang)return;let n=this.retrieveTranslations(e);typeof n<"u"?(this.defaultLang==null&&(this.defaultLang=e),n.pipe(Le(1)).subscribe(()=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(this.lastUseLanguage=e,e===this.currentLang)return ie(this.translations[e]);this.currentLang||(this.currentLang=e);let n=this.retrieveTranslations(e);return Gn(n)?(n.pipe(Le(1)).subscribe(()=>{this.changeLang(e)}),n):(this.changeLang(e),ie(this.translations[e]))}changeLang(e){e===this.lastUseLanguage&&(this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),this.defaultLang==null&&this.changeDefaultLang(e))}retrieveTranslations(e){if(typeof this.translations[e]>"u"||this.extend)return this._translationRequests[e]=this._translationRequests[e]||this.loadAndCompileTranslations(e),this._translationRequests[e]}getTranslation(e){return this.loadAndCompileTranslations(e)}loadAndCompileTranslations(e){this.pending=!0;let n=this.currentLoader.getTranslation(e).pipe(Vs(1),Le(1));return this.loadingTranslations=n.pipe(pe(r=>this.compiler.compileTranslations(r,e)),Vs(1),Le(1)),this.loadingTranslations.subscribe({next:r=>{this.translations[e]=this.extend&&this.translations[e]?q(q({},r),this.translations[e]):r,this.updateLangs(),this.pending=!1},error:r=>{this.pending=!1}}),n}setTranslation(e,n,r=!1){let a=this.compiler.compileTranslations(n,e);(r||this.extend)&&this.translations[e]?this.translations[e]=zg(this.translations[e],a):this.translations[e]=a,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){let n=e.filter(r=>!this.langs.includes(r));n.length>0&&(this.langs=[...this.langs,...n])}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResultForKey(e,n,r){let a;if(e&&(a=this.runInterpolation(Hg(e,n),r)),a===void 0&&this.defaultLang!=null&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(a=this.runInterpolation(Hg(this.translations[this.defaultLang],n),r)),a===void 0){let o={key:n,translateService:this};typeof r<"u"&&(o.interpolateParams=r),a=this.missingTranslationHandler.handle(o)}return a!==void 0?a:n}runInterpolation(e,n){if(Ug(e))return e.map(r=>this.runInterpolation(r,n));if(bd(e)){let r={};for(let a in e){let o=this.runInterpolation(e[a],n);o!==void 0&&(r[a]=o)}return r}else return this.parser.interpolate(e,n)}getParsedResult(e,n,r){if(n instanceof Array){let a={},o=!1;for(let d of n)a[d]=this.getParsedResultForKey(e,d,r),o=o||Gn(a[d]);if(!o)return a;let s=n.map(d=>gd(a[d]));return no(s).pipe(pe(d=>{let h={};return d.forEach((v,C)=>{h[n[C]]=v}),h}))}return this.getParsedResultForKey(e,n,r)}get(e,n){if(!Qo(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return this.pending?this.loadingTranslations.pipe(Ti(r=>gd(this.getParsedResult(r,e,n)))):gd(this.getParsedResult(this.translations[this.currentLang],e,n))}getStreamOnTranslationChange(e,n){if(!Qo(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return gi(Pi(()=>this.get(e,n)),this.onTranslationChange.pipe(dt(r=>{let a=this.getParsedResult(r.translations,e,n);return gd(a)})))}stream(e,n){if(!Qo(e)||!e.length)throw new Error('Parameter "key" required');return gi(Pi(()=>this.get(e,n)),this.onLangChange.pipe(dt(r=>{let a=this.getParsedResult(r.translations,e,n);return gd(a)})))}instant(e,n){if(!Qo(e)||e.length===0)throw new Error('Parameter "key" is required and cannot be empty');let r=this.getParsedResult(this.translations[this.currentLang],e,n);return Gn(r)?Array.isArray(e)?e.reduce((a,o)=>(a[o]=o,a),{}):e:r}set(e,n,r=this.currentLang){kW(this.translations[r],e,$g(n)?this.compiler.compile(n,r):this.compiler.compileTranslations(n,r)),this.updateLangs(),this.onTranslationChange.emit({lang:r,translations:this.translations[r]})}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.loadAndCompileTranslations(e)}resetLang(e){delete this._translationRequests[e],delete this.translations[e]}getBrowserLang(){if(typeof window>"u"||!window.navigator)return;let e=this.getBrowserCultureLang();return e?e.split(/[-_]/)[0]:void 0}getBrowserCultureLang(){if(!(typeof window>"u"||typeof window.navigator>"u"))return window.navigator.languages?window.navigator.languages[0]:window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}static \u0275fac=function(n){return new(n||t)(ae(vd),ae(Nl),ae(Bl),ae(Fl),ae(_d),ae(Fg),ae(Ng),ae(jg),ae(Bg))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Ee=(()=>{class t{translate;_ref;value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onDefaultLangChange;constructor(e,n){this.translate=e,this._ref=n}updateValue(e,n,r){let a=o=>{this.value=o!==void 0?o:e,this.lastKey=e,this._ref.markForCheck()};if(r){let o=this.translate.getParsedResult(r,e,n);Gn(o)?o.subscribe(a):a(o)}this.translate.get(e,n).subscribe(a)}transform(e,...n){if(!e||!e.length)return e;if(Lu(e,this.lastKey)&&Lu(n,this.lastParams))return this.value;let r;if(Qo(n[0])&&n.length)if($g(n[0])&&n[0].length){let a=n[0].replace(/(')?([a-zA-Z0-9_]+)(')?(\s)?:/g,'"$2":').replace(/:(\s)?(')(.*?)(')/g,':"$3"');try{r=JSON.parse(a)}catch(o){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${n[0]}`)}}else bd(n[0])&&(r=n[0]);return this.lastKey=e,this.lastParams=n,this.updateValue(e,r),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(a=>{this.lastKey&&a.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,r,a.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(a=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r,a.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}static \u0275fac=function(n){return new(n||t)(k(br,16),k(be,16))};static \u0275pipe=_t({name:"translate",type:t,pure:!1});static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();var Gg=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:Nl,useClass:WM},e.compiler||{provide:Bl,useClass:QM},e.parser||{provide:Fl,useClass:YM},e.missingTranslationHandler||{provide:_d,useClass:qM},vd,{provide:Ng,useValue:e.isolate},{provide:Fg,useValue:e.useDefaultLang},{provide:jg,useValue:e.extend},{provide:Bg,useValue:e.defaultLanguage},br]}}static forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:Nl,useClass:WM},e.compiler||{provide:Bl,useClass:QM},e.parser||{provide:Fl,useClass:YM},e.missingTranslationHandler||{provide:_d,useClass:qM},{provide:Ng,useValue:e.isolate},{provide:Fg,useValue:e.useDefaultLang},{provide:jg,useValue:e.extend},{provide:Bg,useValue:e.defaultLanguage},br]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=K({type:t});static \u0275inj=Q({})}return t})();var Wg={mifos_x:{version:"251105",hash:"5467f3e"},allow_switching_backend_instance:!0};var Xt=window.env||{},mt={production:!0,version:Wg.mifos_x.version,hash:Wg.mifos_x.hash,fineractPlatformTenantId:Xt.fineractPlatformTenantId||"default",fineractPlatformTenantIds:Xt.fineractPlatformTenantIds||"default",baseApiUrls:Xt.fineractApiUrls||"https://sandbox.mifos.community,https://demo.mifos.community,https://localhost:8443,"+window.location.origin,baseApiUrl:Xt.fineractApiUrl||(Xt.fineractApiUrls?.length>0?Xt.fineractApiUrls.split(",")[0]:window.location.origin),oauthServerUrl:Xt.oauthServerUrl||Xt.fineractApiUrl+Xt.apiProvider,allowServerSwitch:Xt.allowServerSwitch||"true",apiProvider:Xt.apiProvider||"/fineract-provider/api",apiVersion:Xt.apiVersion||"/v1",serverUrl:"",oauth:{enabled:Xt.oauthServerEnabled||!1,serverUrl:Xt.oauthServerUrl||"",appId:Xt.oauthAppId||""},enableRememberMe:!1,warningDialog:{title:"Warning",content:"This system is for authorized use only. Unauthorized access will result in possible legal action. By accessing this system, you acknowledge that you are authorized to do so and that all data stored and processed here is confidential.",buttonText:"Close"},defaultLanguage:Xt.defaultLanguage||"en-US",supportedLanguages:Xt.supportedLanguages||"cs-CS,de-DE,en-US,es-MX,fr-FR,it-IT,ko-KO,lt-LT,lv-LV,ne-NE,pt-PT,sw-SW",preloadClients:Xt.preloadClients||!0,defaultCharDelimiter:Xt.defaultCharDelimiter||",",displayBackEndInfo:Xt.displayBackEndInfo||"true",displayTenantSelector:Xt.displayTenantSelector||"true",waitTimeForNotifications:Xt.waitTimeForNotifications||60,waitTimeForCOBCatchUp:Xt.waitTimeForCOBCatchUp||30,session:{timeout:{idleTimeout:Xt.sessionIdleTimeout||3e5}},httpCacheEnabled:Xt.httpCacheEnabled||!1,vNextApiUrl:window.env.vNextApiUrl||"https://apis.mifos.community",vNextApiProvider:window.env.vNextApiProvider||"/vnext1",vNextApiVersion:window.env.vNextApiVersion||"/v1.0",interbankTransfers:window.env.interbankTransfers||!1,minPasswordLength:Xt.minPasswordLength||12,OIDC:{oidcServerEnabled:window.env.oidcServerEnabled||!1,oidcBaseUrl:window.env.oidcBaseUrl||"",oidcClientId:window.env.oidcClientId||"",oidcApiUrl:window.env.oidcApiUrl||"",oidcFrontUrl:window.env.oidcFrontUrl||""}};mt.serverUrl=`${mt.baseApiUrl}${mt.apiProvider}${mt.apiVersion}`;var KM=(()=>{class t{transform(e,n,r,a){if(e){if(n==="loan"&&(r==="closed"?e=e.filter(o=>o.status.code==="loanStatusType.closed.written.off"||o.status.code==="loanStatusType.closed.obligations.met"||o.status.code==="loanStatusType.closed.reschedule.outstanding.amount"||o.status.code==="loanStatusType.withdrawn.by.client"||o.status.code==="loanStatusType.rejected"):e=e.filter(o=>o.status.code!=="loanStatusType.closed.written.off"&&o.status.code!=="loanStatusType.closed.obligations.met"&&o.status.code!=="loanStatusType.closed.reschedule.outstanding.amount"&&o.status.code!=="loanStatusType.withdrawn.by.client"&&o.status.code!=="loanStatusType.rejected")),n==="saving"&&(a==="isFixed"?e=e.filter(o=>o.depositType.value==="Fixed Deposit"):a==="isRecurring"?e=e.filter(o=>o.depositType.value==="Recurring Deposit"):a==="isSavings"&&(e=e.filter(o=>o.depositType.value==="Savings")),r==="closed"?e=e.filter(o=>o.status.code==="savingsAccountStatusType.withdrawn.by.applicant"||o.status.code==="savingsAccountStatusType.closed"||o.status.code==="savingsAccountStatusType.pre.mature.closure"||o.status.code==="savingsAccountStatusType.rejected"):e=e.filter(o=>o.status.code!=="savingsAccountStatusType.withdrawn.by.applicant"&&o.status.code!=="savingsAccountStatusType.closed"&&o.status.code!=="savingsAccountStatusType.pre.mature.closure"&&o.status.code!=="savingsAccountStatusType.rejected")),n==="share"&&(r==="closed"?e=e.filter(o=>o.status.code==="shareAccountStatusType.closed"||o.status.code==="shareAccountStatusType.rejected"):e=e.filter(o=>o.status.code!=="shareAccountStatusType.closed"&&o.status.code!=="shareAccountStatusType.rejected")),n==="guarantor")if(r===!1)e=e.filter(o=>o.status===!0);else return e;return n==="clientApproval"&&(e=e.filter(o=>o.active===!1&&o.status.value==="Pending")),e}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"accountsFilter",type:t,pure:!0})}}return t})();var ZM=(()=>{class t{transform(e,n,r,a){return e&&(e=e.filter(o=>!(o.currency.code!==r||a&&o.chargeTimeType.id===12||n.filter(s=>s.id===o.id).length))),e}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"chargesFilter",type:t,pure:!0})}}return t})();var XM=(()=>{class t{transform(e,n){return e&&(e=e.filter(r=>r.penalty===n)),e}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"chargesPenaltyFilter",type:t,pure:!0})}}return t})();var Ko=(()=>{class t{constructor(){this.alertEvent=new j}alert(e){this.alertEvent.emit(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ul=i3(zu());var Li=(()=>{class t{static{this.DEFAULT_DATEFORMAT="yyyy-MM-dd"}static{this.DEFAULT_DATETIMEFORMAT="yyyy-MM-dd HH:mm"}constructor(e){this.datePipe=e}getDate(e){return this.datePipe.transform(e,"YYYY-MM-DD")}formatDate(e,n){return new ec(this.language.code).transform(e,n)}formatDateAsString(e,n){return(0,Ul.default)(e).format(n)}parseDate(e){return e instanceof Array?(0,Ul.default)(e.join("-"),"YYYY-MM-DD").toDate():(0,Ul.default)(e).toDate()}parseDatetime(e){return(0,Ul.default)(e).toDate()}convertToDate(e,n){return(0,Ul.default)(e).toDate()}get language(){return localStorage.getItem("mifosXLanguage")?JSON.parse(localStorage.getItem("mifosXLanguage")):"en"}calculateDiff(e,n){return Math.floor((Date.UTC(n.getFullYear(),n.getMonth(),n.getDate())-Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()))/(1e3*60*60*24))}static{this.\u0275fac=function(n){return new(n||t)(ae(ec))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Yg(t,i){if(!t)return i;try{return JSON.parse(t)}catch{return i}}function Hu(t,i){if(!t)return i;try{let e=JSON.parse(t);return e&&typeof e=="object"&&!Array.isArray(e)?e:i}catch{return i}}function Qg(t,i=[]){if(!t)return i;try{let e=JSON.parse(t);return Array.isArray(e)?e:i}catch{return i}}var Nt=(()=>{class t{static{this.businessDateFormat="yyyy-MM-dd"}static{this.businessDateConfigName="enable-business-date"}static{this.businessDateType="BUSINESS_DATE"}static{this.cobDateType="COB_DATE"}constructor(e,n){this.alertService=e,this.dateUtils=n,this.minAllowedDate=new Date(1950,0,1),this.maxAllowedDate=new Date(2100,0,1)}setDateFormat(e){localStorage.setItem("mifosXDateFormat",JSON.stringify(e))}setLanguage(e){localStorage.setItem("mifosXLanguage",JSON.stringify(e))}setDecimalToDisplay(e){localStorage.setItem("mifosXDecimalsToDisplay",e)}setDefaultLanguage(){let e=mt.defaultLanguage?mt.defaultLanguage:"en-US";this.setLanguage({name:e,code:e.substring(0,2)})}setServer(e){localStorage.setItem("mifosXServerURL",e)}setServers(e){localStorage.setItem("mifosXServers",JSON.stringify(e))}setTenantIdentifiers(e){localStorage.setItem("mifosXTenantIdentifiers",JSON.stringify(e))}setTenantIdentifier(e){localStorage.setItem("mifosXTenantIdentifier",e)}setBusinessDate(e){localStorage.setItem("mifosXServerDate",e)}setBusinessDateConfig(e){localStorage.setItem("mifosXServerBusinessDateEnabled",e)}get dateFormat(){let e=Yg(localStorage.getItem("mifosXDateFormat"),null);return typeof e=="string"&&e.length>0?e:"dd MMMM yyyy"}get language(){return localStorage.getItem("mifosXLanguage")||this.setDefaultLanguage(),Hu(localStorage.getItem("mifosXLanguage"),void 0)}get languageCode(){let e=this.language.code;return e==="es"?"es-MX":e==="en"?"en-US":e+"-"+e.toUpperCase()}get decimals(){return localStorage.getItem("mifosXDecimalsToDisplay")?localStorage.getItem("mifosXDecimalsToDisplay"):"2"}get servers(){return Qg(localStorage.getItem("mifosXServers"),[])}get server(){return localStorage.getItem("mifosXServerURL")?localStorage.getItem("mifosXServerURL"):mt.baseApiUrl&&mt.baseApiUrl!==""?mt.baseApiUrl:this.servers[0]}get baseServerUrl(){return this.server+mt.apiProvider}get serverUrl(){return this.server+mt.apiProvider+mt.apiVersion}get serverHost(){return this.server}get businessDate(){return this.dateUtils.convertToDate(localStorage.getItem("mifosXServerDate"),t.businessDateFormat)}get businessDateConfig(){return localStorage.getItem("mifosXServerBusinessDateEnabled")}get minPastDate(){return this.minAllowedDate}get maxFutureDate(){return this.maxAllowedDate}get tenantIdentifiers(){return Qg(localStorage.getItem("mifosXTenantIdentifiers"),[])}get tenantIdentifier(){return localStorage.getItem("mifosXTenantIdentifier")}validateBusinessDateStatus(e){e.some(n=>{if(n.name===t.businessDateConfigName)return n.enabled})}getBusinessDates(e,n){e.some(r=>{if(r.type===n){let a=new Date(r.date);this.setBusinessDate(this.dateUtils.formatDate(a,t.businessDateFormat)),this.alertService.alert({type:n+" Set",message:this.dateUtils.formatDate(a,this.dateFormat)});return}})}setThemeDarkEnabled(e){localStorage.setItem("mifosXThemeDarkEnabled",JSON.stringify(e))}get themeDarkEnabled(){return Yg(localStorage.getItem("mifosXThemeDarkEnabled"),!1)}static{this.\u0275fac=function(n){return new(n||t)(ae(Ko),ae(Li))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Nu=i3(zu());var yr=(()=>{class t{constructor(e){this.settingsService=e}transform(e,n){let r=this.settingsService.dateFormat.replace("dd","DD");if(typeof e>"u")return"";let a;return Nu.default.locale(this.settingsService.language.code),e instanceof Array?a=(0,Nu.default)(e.join("-"),"YYYY-MM-DD"):a=(0,Nu.default)(e),n==null?a.format(r):a.format(n)}static{this.\u0275fac=function(n){return new(n||t)(k(Nt,16))}}static{this.\u0275pipe=_t({name:"dateFormat",type:t,pure:!0})}}return t})();var Cd=i3(zu());var Ia=(()=>{class t{transform(e,n){if(e==null||e==="")return"";let r;if(Array.isArray(e)){let[o,s,d,h,v,C]=e;h!=null?r=(0,Cd.default)({year:o,month:(s??1)-1,date:d,hour:h,minute:v??0,second:C??0}):r=(0,Cd.default)({year:o,month:(s??1)-1,date:d})}else typeof e=="number"&&e<1e12?r=Cd.default.unix(e):r=(0,Cd.default)(e);let a=n??"YYYY-MM-DDTHH:mm:ssZ";return r.format(a)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"datetimeFormat",type:t,pure:!0})}}return t})();var Fu=(()=>{class t{transform(e){if(e){if(/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/gi.test(e))return e.split("-")[4];{let a=e.length;return a>20?e.substring(a-20,a):e}}else return""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"externalIdentifier",type:t,pure:!0})}}return t})();var JM=(()=>{class t{transform(e,n,r,a){let o;return n&&(o=n.find(s=>s[r]===e)),o?o[a]:""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"find",type:t,pure:!0})}}return t})();var Zo=(()=>{class t{constructor(e,n){this.decimalFormat=e,this.settingsService=n}transform(e,n){if(e===void 0)return n||"";let r=this.settingsService.decimals,a=`1.${r}-${r}`;return this.decimalFormat.transform(e,a)}static{this.\u0275fac=function(n){return new(n||t)(k(ad,16),k(Nt,16))}}static{this.\u0275pipe=_t({name:"formatNumber",type:t,pure:!0})}}return t})();var nw=i3(tw());var ju=(()=>{class t{transform(e){if(e.charAt(0)==="{"&&e.charAt(e.length-1)==="}")try{return nw.json(e)}catch{return e}return e}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"prettyPrint",type:t,pure:!0})}}return t})();var iw=(()=>{class t{transform(e){return{true:"status-active",false:"status-deleted",Active:"status-active",Block:"status-block","charges.StatusType.active.true":"status-active","loanStatusType.submitted.and.pending.approval":"status-pending","loanStatusType.approved":"status-approved","loanStatusType.active":"status-active","loanStatusType.overpaid":"status-overpaid","loanStatusType.chargeoff":"status-chargeoff","loanStatusType.activeOverdue":"status-active-overdue","loanSubStatusType.contractTermination":"subStatus-contract-termination","savingsAccountStatusType.submitted.and.pending.approval":"status-pending","savingsAccountStatusType.approved":"status-approved","savingsAccountStatusType.active":"status-active","savingsAccountStatusType.activeInactive":"status-active-overdue","savingsAccountStatusType.activeDormant":"status-active-overdue","savingsAccountStatusType.matured":"status-matured","shareAccountStatusType.submitted.and.pending.approval":"status-pending","shareAccountStatusType.approved":"status-approved","shareAccountStatusType.active":"status-active","shareAccountStatusType.rejected":"status-rejected","loanProduct.active":"status-active","loanProduct.inActive":"status-inactive","clientStatusType.pending":"status-pending","clientStatusType.closed":"status-closed","clientStatusType.rejected":"status-rejected","clientStatusType.withdraw":"status-withdraw","clientStatusType.active":"status-active","clientStatusType.submitted.and.pending.approval":"status-pending","clientStatusTYpe.approved":"status-approved","clientStatusType.transfer.in.progress":"status-transfer-progress","clientStatusType.transfer.on.hold":"status-transfer-hold","groupingStatusType.active":"status-active","groupingStatusType.pending":"status-pending","groupingStatusType.submitted.and.pending.approval":"status-pending","groupingStatusType.approved":"status-approved","smsCampaignStatus.active":"status-active","smsCampaignStatus.pending":"status-pending","smsCampaignStatus.closed":"status-closed","purchasedSharesStatusType.applied":"status-pending"}[e]??"status-unknown"}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"statusLookup",type:t,pure:!0})}}return t})();var ic=(()=>{class t{constructor(e){this.translateService=e}transform(e,n,r="labels"){let a=`${r}.${n}.${e}`;return this.translateService.instant(a)}static{this.\u0275fac=function(n){return new(n||t)(k(br,16))}}static{this.\u0275pipe=_t({name:"translateKey",type:t,pure:!0})}}return t})();var Uu=(()=>{class t{transform(e,n){if(e.length<=40)return e;let r=e.substring(0,30);return n&&(r=e.substring(0,n)),r}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"truncateText",type:t,pure:!0})}}return t})();var aw=(()=>{class t{transform(e){e=decodeURIComponent(e);let n=e.slice(1).split("/");if(e.includes("?")){let a=n.pop(),o=a.slice(0,a.indexOf("?"));n.push(o)}return n.map(a=>a.split("-").map(o=>o.charAt(0).toUpperCase()+o.slice(1)).join(" ")).join(" | ")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=_t({name:"urlToString",type:t,pure:!0})}}return t})();var $u=(()=>{class t{constructor(e){this.translateService=e}transform(e,...n){if(e==null)return null;let r=e?"Yes":"No";return this.translateService.instant("labels.buttons."+r)}static{this.\u0275fac=function(n){return new(n||t)(k(br,16))}}static{this.\u0275pipe=_t({name:"yesNo",type:t,pure:!0})}}return t})();var ow=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=K({type:t})}static{this.\u0275inj=Q({providers:[iw,KM,ZM,XM,JM,aw,yr,Ia,Fu,Zo,$u,ju,ic,Uu],imports:[fe]})}}return t})();var bo={headers:{"Fineract-Platform-TenantId":mt.fineractPlatformTenantId}},Gu="Authorization",PW="Fineract-Platform-TenantId",sw="Fineract-Platform-TFA-Token",cw=(()=>{class t{constructor(e){this.settingsService=e}intercept(e,n){return this.settingsService.tenantIdentifier&&(bo.headers["Fineract-Platform-TenantId"]=this.settingsService.tenantIdentifier),e=e.clone({setHeaders:bo.headers}),n.handle(e)}setAuthorizationToken(e){mt.oauth.enabled?bo.headers[Gu]=`Bearer ${e}`:bo.headers[Gu]=`Basic ${e}`}setTwoFactorAccessToken(e){bo.headers[sw]=e}removeAuthorization(){delete bo.headers[Gu]}removeAuthorizationTenant(){delete bo.headers[Gu],delete bo.headers[PW]}removeTwoFactorAuthorization(){delete bo.headers[sw]}static{this.\u0275fac=function(n){return new(n||t)(ae(Nt))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac})}}return t})();var Wu=(()=>{class t{changePassword(e,n){return this.http.put(`/users/${e}`,n)}constructor(e,n,r){this.http=e,this.alertService=n,this.authenticationInterceptor=r,this.userLoggedIn$=new Je(!1),this.isAuthenticated$=this.userLoggedIn$.asObservable(),this.dialogShown=!1,this.credentialsStorageKey="mifosXCredentials",this.oAuthTokenDetailsStorageKey="mifosXOAuthTokenDetails",this.twoFactorAuthenticationTokenStorageKey="mifosXTwoFactorAuthenticationToken",this.userLoggedIn=!1,this.rememberMe=!1,this.storage=sessionStorage;let a=JSON.parse(sessionStorage.getItem(this.credentialsStorageKey)||localStorage.getItem(this.credentialsStorageKey));if(a){a.rememberMe&&(this.rememberMe=!0,this.storage=localStorage);let o=JSON.parse(this.storage.getItem(this.twoFactorAuthenticationTokenStorageKey));mt.oauth.enabled?this.refreshOAuthAccessToken():r.setAuthorizationToken(a.base64EncodedAuthenticationKey),o&&r.setTwoFactorAccessToken(o.token),this.userLoggedIn=!0,this.userLoggedIn$.next(!0)}}login(e){this.alertService.alert({type:"Authentication Start",message:"Please wait..."});let n=mt.enableRememberMe===!0;if(this.rememberMe=n?e.remember:!1,this.storage=this.rememberMe?localStorage:sessionStorage,mt.oauth.enabled){let r=new Z;r=r.set("username",e.username),r=r.set("password",e.password),r=r.set("client_id",`${mt.oauth.appId}`),r=r.set("grant_type","password"),r=r.set("remember_me",this.rememberMe?"true":"false");let a=new vr;return a=a.set("Content-Type","application/x-www-form-urlencoded"),this.http.post(`${mt.oauth.serverUrl}/token`,r.toString(),{headers:a}).pipe(pe(o=>(this.getUserDetails(o),ie(!0))))}else return this.http.post("/authentication",{username:e.username,password:e.password,remember:this.rememberMe}).pipe(pe(r=>(this.onLoginSuccess(r),ie(!0))))}getUserDetails(e){this.refreshTokenOnExpiry(e.expires_in);let n=new vr;n=n.set("Authorization","bearer "+e.access_token),this.http.get(`${mt.serverUrl}/userdetails`,{headers:n}).subscribe(r=>{this.onLoginSuccess(r),r.shouldRenewPassword||this.storage.setItem(this.oAuthTokenDetailsStorageKey,JSON.stringify(e))})}refreshTokenOnExpiry(e){setTimeout(()=>this.refreshOAuthAccessToken(),e*1e3)}refreshOAuthAccessToken(){var e=JSON.parse(this.storage.getItem(this.oAuthTokenDetailsStorageKey));if(e==null)return;e=JSON.parse(this.storage.getItem(this.oAuthTokenDetailsStorageKey)).refresh_token,this.authenticationInterceptor.removeAuthorization();let n=JSON.parse(this.storage.getItem(this.credentialsStorageKey)),r=new Z;r=r.set("username",n.username),r=r.set("client_id",`${mt.oauth.appId}`),r=r.set("refresh_token",e),r=r.set("grant_type","refresh_token");let a=new vr;return a=a.set("Content-Type","application/x-www-form-urlencoded"),this.http.post(`${mt.oauth.serverUrl}/token`,r.toString(),{headers:a}).subscribe(o=>{this.storage.setItem(this.oAuthTokenDetailsStorageKey,JSON.stringify(o)),this.authenticationInterceptor.setAuthorizationToken(o.access_token),this.refreshTokenOnExpiry(o.expires_in);let s=JSON.parse(this.storage.getItem(this.credentialsStorageKey));s.accessToken=o.access_token,this.storage.setItem(this.credentialsStorageKey,JSON.stringify(s))})}onLoginSuccess(e){this.userLoggedIn=!0,this.userLoggedIn$.next(!0),e.rememberMe=this.rememberMe,mt.oauth.enabled?this.authenticationInterceptor.setAuthorizationToken(e.accessToken):this.authenticationInterceptor.setAuthorizationToken(e.base64EncodedAuthenticationKey),e.isTwoFactorAuthenticationRequired?(this.credentials=e,this.alertService.alert({type:"Two Factor Authentication Required",message:"Two Factor Authentication Required"})):e.shouldRenewPassword?(this.credentials=e,this.alertService.alert({type:"Password Expired",message:"Your password has expired, please reset your password!"})):(this.setCredentials(e),this.alertService.alert({type:"Authentication Success",message:`${e.username} successfully logged in!`}),delete this.credentials)}logoutAuthSession(){let e=JSON.parse(this.storage.getItem(this.oAuthTokenDetailsStorageKey)).refresh_token,n=JSON.parse(this.storage.getItem(this.credentialsStorageKey));this.authenticationInterceptor.removeAuthorizationTenant();let r=new Z;r=r.set("username",n.username),r=r.set("client_id",`${mt.oauth.appId}`),r=r.set("refresh_token",e);let a=new vr;return a=a.set("Content-Type","application/x-www-form-urlencoded"),this.http.post(`${mt.oauth.serverUrl}/logout`,r.toString(),{headers:a}).subscribe()}logout(){let e=JSON.parse(this.storage.getItem(this.twoFactorAuthenticationTokenStorageKey));return e&&(this.http.post("/twofactor/invalidate",{token:e.token}).subscribe(),this.authenticationInterceptor.removeTwoFactorAuthorization()),JSON.parse(this.storage.getItem(this.oAuthTokenDetailsStorageKey))&&this.logoutAuthSession(),this.authenticationInterceptor.removeAuthorization(),this.setCredentials(),this.resetDialog(),this.userLoggedIn=!1,this.userLoggedIn$.next(!1),ie(!0)}twoFactorAccessTokenIsValid(){let e=JSON.parse(this.storage.getItem(this.twoFactorAuthenticationTokenStorageKey));return e?new Date().getTime(){this.onOTPValidateSuccess(r)}))}onOTPValidateSuccess(e){this.authenticationInterceptor.setTwoFactorAccessToken(e.token),this.credentials.shouldRenewPassword?this.alertService.alert({type:"Password Expired",message:"Your password has expired, please reset your password!"}):(this.setCredentials(this.credentials),this.alertService.alert({type:"Authentication Success",message:`${this.credentials.username} successfully logged in!`}),delete this.credentials,this.storage.setItem(this.twoFactorAuthenticationTokenStorageKey,JSON.stringify(e)))}resetPassword(e){return this.http.put(`/users/${this.credentials.userId}`,e).pipe(pe(()=>{this.alertService.alert({type:"Password Reset Success",message:"Your password was sucessfully reset!"}),this.authenticationInterceptor.removeAuthorization(),this.authenticationInterceptor.removeTwoFactorAuthorization();let n={username:this.credentials.username,password:e.password,remember:this.rememberMe};this.login(n).subscribe()}))}getUserLoggedIn(){return this.userLoggedIn}static{this.\u0275fac=function(n){return new(n||t)(ae(On),ae(Ko),ae(cw))}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac})}}return t})();var Xo=(()=>{class t{constructor(e,n,r){this.templateRef=e,this.viewContainer=n,this.authenticationService=r;let a=this.authenticationService.getCredentials();this.userPermissions=a.permissions}set mifosxHasPermission(e){if(typeof e!="string")throw new Error("hasPermission value must be a string");this.viewContainer.clear(),this.hasPermission(e)&&this.viewContainer.createEmbeddedView(this.templateRef)}hasPermission(e){return e=e.trim(),this.userPermissions.includes("ALL_FUNCTIONS")?!0:e!==""?e.substring(0,5)==="READ_"&&this.userPermissions.includes("ALL_FUNCTIONS_READ")?!0:!!this.userPermissions.includes(e):!1}static{this.\u0275fac=function(n){return new(n||t)(k(Qe),k(rt),k(Wu))}}static{this.\u0275dir=V({type:t,selectors:[["","mifosxHasPermission",""]],inputs:{mifosxHasPermission:"mifosxHasPermission"}})}}return t})();var _w=(()=>{class t{_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||t)(k(Ke),k(Y))};static \u0275dir=V({type:t})}return t})(),vw=(()=>{class t extends _w{static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=V({type:t,features:[ce]})}return t})(),Yn=new A("");var AW={provide:Yn,useExisting:wt(()=>ri),multi:!0};function VW(){let t=_r()?_r().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var LW=new A(""),ri=(()=>{class t extends _w{_compositionMode;_composing=!1;constructor(e,n,r){super(e,n),this._compositionMode=r,this._compositionMode==null&&(this._compositionMode=!VW())}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||t)(k(Ke),k(Y),k(LW,8))};static \u0275dir=V({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,r){n&1&&z("input",function(o){return r._handleInput(o.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(o){return r._compositionEnd(o.target.value)})},standalone:!1,features:[ue([AW]),ce]})}return t})();function Jg(t){return t==null||e5(t)===0}function e5(t){return t==null?null:Array.isArray(t)||typeof t=="string"?t.length:t instanceof Set?t.size:null}var ai=new A(""),ac=new A(""),RW=/^(?=.{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])?)*$/,vn=class{static min(i){return bw(i)}static max(i){return yw(i)}static required(i){return Cw(i)}static requiredTrue(i){return zW(i)}static email(i){return HW(i)}static minLength(i){return xw(i)}static maxLength(i){return Mw(i)}static pattern(i){return NW(i)}static nullValidator(i){return Yu()}static compose(i){return Ow(i)}static composeAsync(i){return Iw(i)}};function bw(t){return i=>{if(i.value==null||t==null)return null;let e=parseFloat(i.value);return!isNaN(e)&&e{if(i.value==null||t==null)return null;let e=parseFloat(i.value);return!isNaN(e)&&e>t?{max:{max:t,actual:i.value}}:null}}function Cw(t){return Jg(t.value)?{required:!0}:null}function zW(t){return t.value===!0?null:{required:!0}}function HW(t){return Jg(t.value)||RW.test(t.value)?null:{email:!0}}function xw(t){return i=>{let e=i.value?.length??e5(i.value);return e===null||e===0?null:e{let e=i.value?.length??e5(i.value);return e!==null&&e>t?{maxlength:{requiredLength:t,actualLength:e}}:null}}function NW(t){if(!t)return Yu;let i,e;return typeof t=="string"?(e="",t.charAt(0)!=="^"&&(e+="^"),e+=t,t.charAt(t.length-1)!=="$"&&(e+="$"),i=new RegExp(e)):(e=t.toString(),i=t),n=>{if(Jg(n.value))return null;let r=n.value;return i.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function Yu(t){return null}function ww(t){return t!=null}function Dw(t){return qo(t)?jt(t):t}function Sw(t){let i={};return t.forEach(e=>{i=e!=null?q(q({},i),e):i}),Object.keys(i).length===0?null:i}function kw(t,i){return i.map(e=>e(t))}function FW(t){return!t.validate}function Ew(t){return t.map(i=>FW(i)?i:e=>i.validate(e))}function Ow(t){if(!t)return null;let i=t.filter(ww);return i.length==0?null:function(e){return Sw(kw(e,i))}}function t5(t){return t!=null?Ow(Ew(t)):null}function Iw(t){if(!t)return null;let i=t.filter(ww);return i.length==0?null:function(e){let n=kw(e,i).map(Dw);return no(n).pipe(pe(Sw))}}function n5(t){return t!=null?Iw(Ew(t)):null}function dw(t,i){return t===null?[i]:Array.isArray(t)?[...t,i]:[t,i]}function Pw(t){return t._rawValidators}function Tw(t){return t._rawAsyncValidators}function Kg(t){return t?Array.isArray(t)?t:[t]:[]}function Qu(t,i){return Array.isArray(t)?t.includes(i):t===i}function uw(t,i){let e=Kg(i);return Kg(t).forEach(r=>{Qu(e,r)||e.push(r)}),e}function mw(t,i){return Kg(i).filter(e=>!Qu(t,e))}var Ku=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(i){this._rawValidators=i||[],this._composedValidatorFn=t5(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=n5(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i=void 0){this.control&&this.control.reset(i)}hasError(i,e){return this.control?this.control.hasError(i,e):!1}getError(i,e){return this.control?this.control.getError(i,e):null}},ii=class extends Ku{name;get formDirective(){return null}get path(){return null}},Nn=class extends Ku{_parent=null;name=null;valueAccessor=null},Zu=class{_cd;constructor(i){this._cd=i}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}},BW={"[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"},o6e=Be(q({},BW),{"[class.ng-submitted]":"isSubmitted"}),Jt=(()=>{class t extends Zu{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(k(Nn,2))};static \u0275dir=V({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){n&2&&te("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},standalone:!1,features:[ce]})}return t})(),Lr=(()=>{class t extends Zu{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(k(ii,10))};static \u0275dir=V({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,r){n&2&&te("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},standalone:!1,features:[ce]})}return t})();var xd="VALID",qu="INVALID",Gl="PENDING",Md="DISABLED",es=class{},Xu=class extends es{value;source;constructor(i,e){super(),this.value=i,this.source=e}},Dd=class extends es{pristine;source;constructor(i,e){super(),this.pristine=i,this.source=e}},Sd=class extends es{touched;source;constructor(i,e){super(),this.touched=i,this.source=e}},Wl=class extends es{status;source;constructor(i,e){super(),this.status=i,this.source=e}},Ju=class extends es{source;constructor(i){super(),this.source=i}},em=class extends es{source;constructor(i){super(),this.source=i}};function i5(t){return(rm(t)?t.validators:t)||null}function jW(t){return Array.isArray(t)?t5(t):t||null}function r5(t,i){return(rm(i)?i.asyncValidators:t)||null}function UW(t){return Array.isArray(t)?n5(t):t||null}function rm(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function Aw(t,i,e){let n=t.controls;if(!(i?Object.keys(n):n).length)throw new Ce(1e3,"");if(!n[e])throw new Ce(1001,"")}function Vw(t,i,e){t._forEachChild((n,r)=>{if(e[r]===void 0)throw new Ce(1002,"")})}var ql=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(i,e){this._assignValidators(i),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(i){this._rawValidators=this._composedValidatorFn=i}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get parent(){return this._parent}get status(){return ir(this.statusReactive)}set status(i){ir(()=>this.statusReactive.set(i))}_status=Zr(()=>this.statusReactive());statusReactive=zn(void 0);get valid(){return this.status===xd}get invalid(){return this.status===qu}get pending(){return this.status==Gl}get disabled(){return this.status===Md}get enabled(){return this.status!==Md}errors;get pristine(){return ir(this.pristineReactive)}set pristine(i){ir(()=>this.pristineReactive.set(i))}_pristine=Zr(()=>this.pristineReactive());pristineReactive=zn(!0);get dirty(){return!this.pristine}get touched(){return ir(this.touchedReactive)}set touched(i){ir(()=>this.touchedReactive.set(i))}_touched=Zr(()=>this.touchedReactive());touchedReactive=zn(!1);get untouched(){return!this.touched}_events=new N;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._assignValidators(i)}setAsyncValidators(i){this._assignAsyncValidators(i)}addValidators(i){this.setValidators(uw(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(uw(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(mw(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(mw(i,this._rawAsyncValidators))}hasValidator(i){return Qu(this._rawValidators,i)}hasAsyncValidator(i){return Qu(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(i={}){let e=this.touched===!1;this.touched=!0;let n=i.sourceControl??this;this._parent&&!i.onlySelf&&this._parent.markAsTouched(Be(q({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new Sd(!0,n))}markAllAsTouched(i={}){this.markAsTouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(i))}markAsUntouched(i={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=i.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:n})}),this._parent&&!i.onlySelf&&this._parent._updateTouched(i,n),e&&i.emitEvent!==!1&&this._events.next(new Sd(!1,n))}markAsDirty(i={}){let e=this.pristine===!0;this.pristine=!1;let n=i.sourceControl??this;this._parent&&!i.onlySelf&&this._parent.markAsDirty(Be(q({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new Dd(!1,n))}markAsPristine(i={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=i.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:i.emitEvent})}),this._parent&&!i.onlySelf&&this._parent._updatePristine(i,n),e&&i.emitEvent!==!1&&this._events.next(new Dd(!0,n))}markAsPending(i={}){this.status=Gl;let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Wl(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.markAsPending(Be(q({},i),{sourceControl:e}))}disable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=Md,this.errors=null,this._forEachChild(r=>{r.disable(Be(q({},i),{onlySelf:!0}))}),this._updateValue();let n=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Xu(this.value,n)),this._events.next(new Wl(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Be(q({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=xd,this._forEachChild(n=>{n.enable(Be(q({},i),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors(Be(q({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(i,e){this._parent&&!i.onlySelf&&(this._parent.updateValueAndValidity(i),i.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(i){this._parent=i}getRawValue(){return this.value}updateValueAndValidity(i={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===xd||this.status===Gl)&&this._runAsyncValidator(n,i.emitEvent)}let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Xu(this.value,e)),this._events.next(new Wl(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.updateValueAndValidity(Be(q({},i),{sourceControl:e}))}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Md:xd}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i,e){if(this.asyncValidator){this.status=Gl,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1};let n=Dw(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:e,shouldHaveEmitted:i})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let i=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,i}return!1}setErrors(i,e={}){this.errors=i,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(i){let e=i;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((n,r)=>n&&n._find(r),this)}getError(i,e){let n=e?this.get(e):this;return n&&n.errors?n.errors[i]:null}hasError(i,e){return!!this.getError(i,e)}get root(){let i=this;for(;i._parent;)i=i._parent;return i}_updateControlsErrors(i,e,n){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),(i||n)&&this._events.next(new Wl(this.status,e)),this._parent&&this._parent._updateControlsErrors(i,e,n)}_initObservables(){this.valueChanges=new j,this.statusChanges=new j}_calculateStatus(){return this._allControlsDisabled()?Md:this.errors?qu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Gl)?Gl:this._anyControlsHaveStatus(qu)?qu:xd}_anyControlsHaveStatus(i){return this._anyControls(e=>e.status===i)}_anyControlsDirty(){return this._anyControls(i=>i.dirty)}_anyControlsTouched(){return this._anyControls(i=>i.touched)}_updatePristine(i,e){let n=!this._anyControlsDirty(),r=this.pristine!==n;this.pristine=n,this._parent&&!i.onlySelf&&this._parent._updatePristine(i,e),r&&this._events.next(new Dd(this.pristine,e))}_updateTouched(i={},e){this.touched=this._anyControlsTouched(),this._events.next(new Sd(this.touched,e)),this._parent&&!i.onlySelf&&this._parent._updateTouched(i,e)}_onDisabledChange=[];_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){rm(i)&&i.updateOn!=null&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){let e=this._parent&&this._parent.dirty;return!i&&!!e&&!this._parent._anyControlsDirty()}_find(i){return null}_assignValidators(i){this._rawValidators=Array.isArray(i)?i.slice():i,this._composedValidatorFn=jW(this._rawValidators)}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=UW(this._rawAsyncValidators)}},rc=class extends ql{constructor(i,e,n){super(i5(e),r5(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(i,e){return this.controls[i]?this.controls[i]:(this.controls[i]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(i,e,n={}){this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(i,e={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(i,e,n={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],e&&this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(i){return this.controls.hasOwnProperty(i)&&this.controls[i].enabled}setValue(i,e={}){Vw(this,!0,i),Object.keys(i).forEach(n=>{Aw(this,!0,n),this.controls[n].setValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){i!=null&&(Object.keys(i).forEach(n=>{let r=this.controls[n];r&&r.patchValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i={},e={}){this._forEachChild((n,r)=>{n.reset(i?i[r]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(i,e,n)=>(i[n]=e.getRawValue(),i))}_syncPendingControls(){let i=this._reduceChildren(!1,(e,n)=>n._syncPendingControls()?!0:e);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){Object.keys(this.controls).forEach(e=>{let n=this.controls[e];n&&i(n,e)})}_setUpControls(){this._forEachChild(i=>{i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(i){for(let[e,n]of Object.entries(this.controls))if(this.contains(e)&&i(n))return!0;return!1}_reduceValue(){let i={};return this._reduceChildren(i,(e,n,r)=>((n.enabled||this.disabled)&&(e[r]=n.value),e))}_reduceChildren(i,e){let n=i;return this._forEachChild((r,a)=>{n=e(n,r,a)}),n}_allControlsDisabled(){for(let i of Object.keys(this.controls))if(this.controls[i].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(i){return this.controls.hasOwnProperty(i)?this.controls[i]:null}};var Lw=rc;var Zg=class extends rc{};var Yl=new A("",{providedIn:"root",factory:()=>am}),am="always";function om(t,i){return[...i.path,t]}function kd(t,i,e=am){a5(t,i),i.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&i.valueAccessor.setDisabledState?.(t.disabled),GW(t,i),qW(t,i),WW(t,i),$W(t,i)}function tm(t,i,e=!0){let n=()=>{};i.valueAccessor&&(i.valueAccessor.registerOnChange(n),i.valueAccessor.registerOnTouched(n)),im(t,i),t&&(i._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function nm(t,i){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(i)})}function $W(t,i){if(i.valueAccessor.setDisabledState){let e=n=>{i.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function a5(t,i){let e=Pw(t);i.validator!==null?t.setValidators(dw(e,i.validator)):typeof e=="function"&&t.setValidators([e]);let n=Tw(t);i.asyncValidator!==null?t.setAsyncValidators(dw(n,i.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let r=()=>t.updateValueAndValidity();nm(i._rawValidators,r),nm(i._rawAsyncValidators,r)}function im(t,i){let e=!1;if(t!==null){if(i.validator!==null){let r=Pw(t);if(Array.isArray(r)&&r.length>0){let a=r.filter(o=>o!==i.validator);a.length!==r.length&&(e=!0,t.setValidators(a))}}if(i.asyncValidator!==null){let r=Tw(t);if(Array.isArray(r)&&r.length>0){let a=r.filter(o=>o!==i.asyncValidator);a.length!==r.length&&(e=!0,t.setAsyncValidators(a))}}}let n=()=>{};return nm(i._rawValidators,n),nm(i._rawAsyncValidators,n),e}function GW(t,i){i.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&Rw(t,i)})}function WW(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&Rw(t,i),t.updateOn!=="submit"&&t.markAsTouched()})}function Rw(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function qW(t,i){let e=(n,r)=>{i.valueAccessor.writeValue(n),r&&i.viewToModelUpdate(n)};t.registerOnChange(e),i._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function zw(t,i){t==null,a5(t,i)}function YW(t,i){return im(t,i)}function o5(t,i){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(i,e.currentValue)}function QW(t){return Object.getPrototypeOf(t.constructor)===vw}function Hw(t,i){t._syncPendingControls(),i.forEach(e=>{let n=e.control;n.updateOn==="submit"&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function s5(t,i){if(!i)return null;Array.isArray(i);let e,n,r;return i.forEach(a=>{a.constructor===ri?e=a:QW(a)?n=a:r=a}),r||n||e||null}function KW(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}var ZW={provide:ii,useExisting:wt(()=>Ql)},wd=Promise.resolve(),Ql=(()=>{class t extends ii{callSetDisabledState;get submitted(){return ir(this.submittedReactive)}_submitted=Zr(()=>this.submittedReactive());submittedReactive=zn(!1);_directives=new Set;form;ngSubmit=new j;options;constructor(e,n,r){super(),this.callSetDisabledState=r,this.form=new rc({},t5(e),n5(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){wd.then(()=>{let n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),kd(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){wd.then(()=>{let n=this._findContainer(e.path);n&&n.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){wd.then(()=>{let n=this._findContainer(e.path),r=new rc({});zw(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){wd.then(()=>{let n=this._findContainer(e.path);n&&n.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,n){wd.then(()=>{this.form.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),Hw(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new Ju(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 em(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||t)(k(ai,10),k(ac,10),k(Yl,8))};static \u0275dir=V({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,r){n&1&&z("submit",function(o){return r.onSubmit(o)})("reset",function(){return r.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[ue([ZW]),ce]})}return t})();function pw(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}function fw(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var Jo=class extends ql{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(i=null,e,n){super(i5(e),r5(n,e)),this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),rm(e)&&(e.nonNullable||e.initialValueIsDefault)&&(fw(i)?this.defaultValue=i.value:this.defaultValue=i)}setValue(i,e={}){this.value=this._pendingValue=i,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(i,e={}){this.setValue(i,e)}reset(i=this.defaultValue,e={}){this._applyFormState(i),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){pw(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){pw(this._onDisabledChange,i)}_forEachChild(i){}_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(i){fw(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}},xi=Jo,XW=t=>t instanceof Jo,JW=(()=>{class t extends ii{_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 om(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(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=V({type:t,standalone:!1,features:[ce]})}return t})();var eq={provide:Nn,useExisting:wt(()=>tq)},hw=Promise.resolve(),tq=(()=>{class t extends Nn{_changeDetectorRef;callSetDisabledState;control=new Jo;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new j;constructor(e,n,r,a,o,s){super(),this._changeDetectorRef=o,this.callSetDisabledState=s,this._parent=e,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=s5(this,a)}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),o5(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(){kd(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){hw.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let n=e.isDisabled.currentValue,r=n!==0&&B(n);hw.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?om(e,this._parent):[e]}static \u0275fac=function(n){return new(n||t)(k(ii,9),k(ai,10),k(ac,10),k(Yn,10),k(be,8),k(Yl,8))};static \u0275dir=V({type:t,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:[ue([eq]),ce,Pe]})}return t})();var ts=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=V({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return t})(),nq={provide:Yn,useExisting:wt(()=>iq),multi:!0},iq=(()=>{class t extends vw{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(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=V({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,r){n&1&&z("input",function(o){return r.onChange(o.target.value)})("blur",function(){return r.onTouched()})},standalone:!1,features:[ue([nq]),ce]})}return t})();var c5=new A(""),rq={provide:Nn,useExisting:wt(()=>mi)},mi=(()=>{class t extends Nn{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new j;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,n,r,a,o){super(),this._ngModelWarningConfig=a,this.callSetDisabledState=o,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=s5(this,r)}ngOnChanges(e){if(this._isControlChanged(e)){let n=e.form.previousValue;n&&tm(n,this,!1),kd(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}o5(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&tm(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||t)(k(ai,10),k(ac,10),k(Yn,10),k(c5,8),k(Yl,8))};static \u0275dir=V({type:t,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[ue([rq]),ce,Pe]})}return t})(),aq={provide:ii,useExisting:wt(()=>Qn)},Qn=(()=>{class t extends ii{callSetDisabledState;get submitted(){return ir(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=Zr(()=>this._submittedReactive());_submittedReactive=zn(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new j;constructor(e,n,r){super(),this.callSetDisabledState=r,this._setValidators(e),this._setAsyncValidators(n)}ngOnChanges(e){e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(im(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 kd(n,e,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),n}getControl(e){return this.form.get(e.path)}removeControl(e){tm(e.control||null,e,!1),KW(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),Hw(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new Ju(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 em(this.form))}_updateDomValue(){this.directives.forEach(e=>{let n=e.control,r=this.form.get(e.path);n!==r&&(tm(n||null,e),XW(r)&&(kd(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let n=this.form.get(e.path);zw(n,e),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let n=this.form.get(e.path);n&&YW(n,e)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){a5(this.form,this),this._oldForm&&im(this._oldForm,this)}static \u0275fac=function(n){return new(n||t)(k(ai,10),k(ac,10),k(Yl,8))};static \u0275dir=V({type:t,selectors:[["","formGroup",""]],hostBindings:function(n,r){n&1&&z("submit",function(o){return r.onSubmit(o)})("reset",function(){return r.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[ue([aq]),ce,Pe]})}return t})(),oq={provide:ii,useExisting:wt(()=>Nw)},Nw=(()=>{class t extends JW{name=null;constructor(e,n,r){super(),this._parent=e,this._setValidators(n),this._setAsyncValidators(r)}_checkParentType(){Bw(this._parent)}static \u0275fac=function(n){return new(n||t)(k(ii,13),k(ai,10),k(ac,10))};static \u0275dir=V({type:t,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:!1,features:[ue([oq]),ce]})}return t})(),sq={provide:ii,useExisting:wt(()=>Fw)},Fw=(()=>{class t extends ii{_parent;name=null;constructor(e,n,r){super(),this._parent=e,this._setValidators(n),this._setAsyncValidators(r)}ngOnInit(){Bw(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 om(this.name==null?this.name:this.name.toString(),this._parent)}static \u0275fac=function(n){return new(n||t)(k(ii,13),k(ai,10),k(ac,10))};static \u0275dir=V({type:t,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:!1,features:[ue([sq]),ce]})}return t})();function Bw(t){return!(t instanceof Nw)&&!(t instanceof Qn)&&!(t instanceof Fw)}var cq={provide:Nn,useExisting:wt(()=>Cr)},Cr=(()=>{class t extends Nn{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(e){}model;update=new j;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,n,r,a,o){super(),this._ngModelWarningConfig=o,this._parent=e,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=s5(this,a)}ngOnChanges(e){this._added||this._setUpControl(),o5(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 om(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||t)(k(ii,13),k(ai,10),k(ac,10),k(Yn,10),k(c5,8))};static \u0275dir=V({type:t,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[ue([cq]),ce,Pe]})}return t})();function jw(t){return typeof t=="number"?t:parseInt(t,10)}function Uw(t){return typeof t=="number"?t:parseFloat(t)}var Ed=(()=>{class t{_validator=Yu;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){let n=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(n),this._validator=this._enabled?this.createValidator(n):Yu,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}static \u0275fac=function(n){return new(n||t)};static \u0275dir=V({type:t,features:[Pe]})}return t})(),lq={provide:ai,useExisting:wt(()=>dq),multi:!0},dq=(()=>{class t extends Ed{max;inputName="max";normalizeInput=e=>Uw(e);createValidator=e=>yw(e);static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=V({type:t,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(n,r){n&2&&ee("max",r._enabled?r.max:null)},inputs:{max:"max"},standalone:!1,features:[ue([lq]),ce]})}return t})(),uq={provide:ai,useExisting:wt(()=>mq),multi:!0},mq=(()=>{class t extends Ed{min;inputName="min";normalizeInput=e=>Uw(e);createValidator=e=>bw(e);static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=V({type:t,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(n,r){n&2&&ee("min",r._enabled?r.min:null)},inputs:{min:"min"},standalone:!1,features:[ue([uq]),ce]})}return t})(),pq={provide:ai,useExisting:wt(()=>na),multi:!0};var na=(()=>{class t extends Ed{required;inputName="required";normalizeInput=B;createValidator=e=>Cw;enabled(e){return e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=V({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(n,r){n&2&&ee("required",r._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[ue([pq]),ce]})}return t})();var fq={provide:ai,useExisting:wt(()=>hq),multi:!0},hq=(()=>{class t extends Ed{minlength;inputName="minlength";normalizeInput=e=>jw(e);createValidator=e=>xw(e);static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=V({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(n,r){n&2&&ee("minlength",r._enabled?r.minlength:null)},inputs:{minlength:"minlength"},standalone:!1,features:[ue([fq]),ce]})}return t})(),gq={provide:ai,useExisting:wt(()=>_q),multi:!0},_q=(()=>{class t extends Ed{maxlength;inputName="maxlength";normalizeInput=e=>jw(e);createValidator=e=>Mw(e);static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275dir=V({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(n,r){n&2&&ee("maxlength",r._enabled?r.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[ue([gq]),ce]})}return t})();var $w=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=K({type:t});static \u0275inj=Q({})}return t})(),Xg=class extends ql{constructor(i,e,n){super(i5(e),r5(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(i){return this.controls[this._adjustIndex(i)]}push(i,e={}){this.controls.push(i),this._registerControl(i),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(i,e,n={}){this.controls.splice(i,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(i,e={}){let n=this._adjustIndex(i);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(i,e,n={}){let r=this._adjustIndex(i);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(i,e={}){Vw(this,!1,i),i.forEach((n,r)=>{Aw(this,!1,r),this.at(r).setValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){i!=null&&(i.forEach((n,r)=>{this.at(r)&&this.at(r).patchValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i=[],e={}){this._forEachChild((n,r)=>{n.reset(i[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(i=>i.getRawValue())}clear(i={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:i.emitEvent}))}_adjustIndex(i){return i<0?i+this.length:i}_syncPendingControls(){let i=this.controls.reduce((e,n)=>n._syncPendingControls()?!0:e,!1);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){this.controls.forEach((e,n)=>{i(e,n)})}_updateValue(){this.value=this.controls.filter(i=>i.enabled||this.disabled).map(i=>i.value)}_anyControls(i){return this.controls.some(e=>e.enabled&&i(e))}_setUpControls(){this._forEachChild(i=>this._registerControl(i))}_allControlsDisabled(){for(let i of this.controls)if(i.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(i){i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)}_find(i){return this.at(i)??null}};function gw(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0)}var vq=(()=>{class t{useNonNullable=!1;get nonNullable(){let e=new t;return e.useNonNullable=!0,e}group(e,n=null){let r=this._reduceControls(e),a={};return gw(n)?a=n:n!==null&&(a.validators=n.validator,a.asyncValidators=n.asyncValidator),new rc(r,a)}record(e,n=null){let r=this._reduceControls(e);return new Zg(r,n)}control(e,n,r){let a={};return this.useNonNullable?(gw(n)?a=n:(a.validators=n,a.asyncValidators=r),new Jo(e,Be(q({},a),{nonNullable:!0}))):new Jo(e,n,r)}array(e,n,r){let a=e.map(o=>this._createControl(o));return new Xg(a,n,r)}_reduceControls(e){let n={};return Object.keys(e).forEach(r=>{n[r]=this._createControl(e[r])}),n}_createControl(e){if(e instanceof Jo)return e;if(e instanceof ql)return e;if(Array.isArray(e)){let n=e[0],r=e.length>1?e[1]:null,a=e.length>2?e[2]:null;return this.control(n,r,a)}else return this.control(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var ns=(()=>{class t extends vq{group(e,n=null){return super.group(e,n)}control(e,n,r){return super.control(e,n,r)}array(e,n,r){return super.array(e,n,r)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=we(t)))(r||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Gw=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Yl,useValue:e.callSetDisabledState??am}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=K({type:t});static \u0275inj=Q({imports:[$w]})}return t})(),_e=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:c5,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Yl,useValue:e.callSetDisabledState??am}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=K({type:t});static \u0275inj=Q({imports:[$w]})}return t})();var Ww=(()=>{class t{set _(e){let n=e.split(":");this.currencyCode=n[0],this.displaySymbol=n.length>1?n[1]:"$",this.digitsInfo=n.length>2?n[2]:"1.2-2"}blur(e){e.value=this.parse(e.value)}focus(e){typeof this.control.value>"u"?e.value="":e.value=this.control.value}ngOnInit(){setTimeout(()=>{this.el.nativeElement.value=this.parse(this.el.nativeElement.value)})}constructor(e,n,r){this.locale=e,this.el=n,this.control=r,this.format="N0",this.digitsInfo="1.0-0",this.sufix=""}parse(e){return Cu(e,this.locale,this.displaySymbol,this.currencyCode,this.digitsInfo)+this.sufix}static{this.\u0275fac=function(n){return new(n||t)(k(Ea),k(Y),k(Nn))}}static{this.\u0275dir=V({type:t,selectors:[["","mifosxFormatAmount",""]],hostBindings:function(n,r){n&1&&z("blur",function(o){return r.blur(o.target)})("focus",function(o){return r.focus(o.target)})},inputs:{sufix:"sufix",_:[0,"mifosxFormatAmount","_"]}})}}return t})();var m6e=(()=>{class t{constructor(e,n){this.control=e,this.el=n}onFocus(){this.control.control?.markAsTouched(),this.control.control?.updateValueAndValidity()}static{this.\u0275fac=function(n){return new(n||t)(k(Nn),k(Y))}}static{this.\u0275dir=V({type:t,selectors:[["","mifosxValidateOnFocus",""]],hostBindings:function(n,r){n&1&&z("focus",function(){return r.onFocus()})}})}}return t})();var qw=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=K({type:t})}static{this.\u0275inj=Q({imports:[fe]})}}return t})();var Rr=class{constructor(i={}){this.controlType=i.controlType||"",this.controlName=i.controlName||"",this.label=i.label||"",this.value=i.value===void 0?"":i.value,this.required=!!i.required,this.order=i.order===void 0?1:i.order,this.validators=i.validators===void 0?[]:i.validators,this.min=i.min===void 0?null:i.min,this.max=i.max===void 0?null:i.max}};function yo(t){return t.buttons===0||t.detail===0}function Co(t){let i=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!i&&i.identifier===-1&&(i.radiusX==null||i.radiusX===1)&&(i.radiusY==null||i.radiusY===1)}var l5;function Yw(){if(l5==null){let t=typeof document<"u"?document.head:null;l5=!!(t&&(t.createShadowRoot||t.attachShadow))}return l5}function oc(t){if(Yw()){let i=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}function Ri(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){let i=t.shadowRoot.activeElement;if(i===t)break;t=i}return t}function In(t){return t.composedPath?t.composedPath()[0]:t.target}function Dt(t,i,e,n,r){let a=parseInt(rg.major),o=parseInt(rg.minor);return a>19||a===19&&o>0||a===0&&o===0?t.listen(i,e,n,r):(i.addEventListener(e,n,r),()=>{i.removeEventListener(e,n,r)})}var d5;try{d5=typeof Intl<"u"&&Intl.v8BreakIterator}catch{d5=!1}var He=(()=>{class t{_platformId=u(Go);isBrowser=this._platformId?xg(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||d5)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Od;function Qw(){if(Od==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Od=!0}))}finally{Od=Od||!1}return Od}function is(t){return Qw()?t:!!t.capture}function sn(t,i=0){return sm(t)?Number(t):arguments.length===2?i:0}function sm(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Cn(t){return t instanceof Y?t.nativeElement:t}var Kw=new A("cdk-input-modality-detector-options"),Zw={ignoreKeys:[18,17,224,91,16]},Xw=650,u5={passive:!0,capture:!0},Jw=(()=>{class t{_platform=u(He);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new Je(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(n=>n===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=In(e))};_onMousedown=e=>{Date.now()-this._lastTouchMs{if(Co(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=In(e)};constructor(){let e=u(se),n=u(De),r=u(Kw,{optional:!0});if(this._options=q(q({},Zw),r),this.modalityDetected=this._modality.pipe(Ls(1)),this.modalityChanged=this.modalityDetected.pipe(sl()),this._platform.isBrowser){let a=u(En).createRenderer(null,null);this._listenerCleanups=e.runOutsideAngular(()=>[Dt(a,n,"keydown",this._onKeydown,u5),Dt(a,n,"mousedown",this._onMousedown,u5),Dt(a,n,"touchstart",this._onTouchstart,u5)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(e=>e())}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Id=function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t}(Id||{}),eD=new A("cdk-focus-monitor-default-options"),cm=is({passive:!0,capture:!0}),qt=(()=>{class t{_ngZone=u(se);_platform=u(He);_inputModalityDetector=u(Jw);_origin=null;_lastFocusOrigin;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)};_document=u(De,{optional:!0});_stopInputModalityDetector=new N;constructor(){let e=u(eD,{optional:!0});this._detectionMode=e?.detectionMode||Id.IMMEDIATE}_rootNodeFocusAndBlurListener=e=>{let n=In(e);for(let r=n;r;r=r.parentElement)e.type==="focus"?this._onFocus(e,r):this._onBlur(e,r)};monitor(e,n=!1){let r=Cn(e);if(!this._platform.isBrowser||r.nodeType!==1)return ie();let a=oc(r)||this._getDocument(),o=this._elementInfo.get(r);if(o)return n&&(o.checkChildren=!0),o.subject;let s={checkChildren:n,subject:new N,rootNode:a};return this._elementInfo.set(r,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){let n=Cn(e),r=this._elementInfo.get(n);r&&(r.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(r))}focusVia(e,n,r){let a=Cn(e),o=this._getDocument().activeElement;a===o?this._getClosestElementsInfo(a).forEach(([s,d])=>this._originChanged(s,n,d)):(this._setOrigin(n),typeof a.focus=="function"&&a.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,n)=>this.stopMonitoring(n))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===Id.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,n){e.classList.toggle("cdk-focused",!!n),e.classList.toggle("cdk-touch-focused",n==="touch"),e.classList.toggle("cdk-keyboard-focused",n==="keyboard"),e.classList.toggle("cdk-mouse-focused",n==="mouse"),e.classList.toggle("cdk-program-focused",n==="program")}_setOrigin(e,n=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&n,this._detectionMode===Id.IMMEDIATE){clearTimeout(this._originTimeoutId);let r=this._originFromTouchInteraction?Xw:1;this._originTimeoutId=setTimeout(()=>this._origin=null,r)}})}_onFocus(e,n){let r=this._elementInfo.get(n),a=In(e);!r||!r.checkChildren&&n!==a||this._originChanged(n,this._getFocusOrigin(a),r)}_onBlur(e,n){let r=this._elementInfo.get(n);!r||r.checkChildren&&e.relatedTarget instanceof Node&&n.contains(e.relatedTarget)||(this._setClasses(n),this._emitOrigin(r,null))}_emitOrigin(e,n){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(n))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let n=e.rootNode,r=this._rootNodeFocusListenerCount.get(n)||0;r||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,cm),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,cm)}),this._rootNodeFocusListenerCount.set(n,r+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(ve(this._stopInputModalityDetector)).subscribe(a=>{this._setOrigin(a,!0)}))}_removeGlobalListeners(e){let n=e.rootNode;if(this._rootNodeFocusListenerCount.has(n)){let r=this._rootNodeFocusListenerCount.get(n);r>1?this._rootNodeFocusListenerCount.set(n,r-1):(n.removeEventListener("focus",this._rootNodeFocusAndBlurListener,cm),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,cm),this._rootNodeFocusListenerCount.delete(n))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,n,r){this._setClasses(e,n),this._emitOrigin(r,n),this._lastFocusOrigin=n}_getClosestElementsInfo(e){let n=[];return this._elementInfo.forEach((r,a)=>{(a===e||r.checkChildren&&a.contains(e))&&n.push([a,r])}),n}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:n,mostRecentModality:r}=this._inputModalityDetector;if(r!=="mouse"||!n||n===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let a=e.labels;if(a){for(let o=0;o{class t{_elementRef=u(Y);_focusMonitor=u(qt);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new j;constructor(){}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,e.nodeType===1&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(n=>{this._focusOrigin=n,this.cdkFocusChange.emit(n)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=V({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return t})();var lm=new WeakMap,Ze=(()=>{class t{_appRef;_injector=u(Te);_environmentInjector=u(fn);load(e){let n=this._appRef=this._appRef||this._injector.get(bi),r=lm.get(n);r||(r={loaders:new Set,refs:[]},lm.set(n,r),n.onDestroy(()=>{lm.get(n)?.refs.forEach(a=>a.destroy()),lm.delete(n)})),r.loaders.has(e)||(r.loaders.add(e),r.refs.push(ou(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var ar=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=I({type:t,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(n,r){},styles:[`.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0} `],encapsulation:2,changeDetection:0})}return t})();function rs(t){return Array.isArray(t)?t:[t]}var tD=new Set,sc,iD=(()=>{class t{_platform=u(He);_nonce=u(F1,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):yq}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&bq(e,this._nonce),this._matchMedia(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function bq(t,i){if(!tD.has(t))try{sc||(sc=document.createElement("style"),i&&sc.setAttribute("nonce",i),sc.setAttribute("type","text/css"),document.head.appendChild(sc)),sc.sheet&&(sc.sheet.insertRule(`@media ${t} {body{ }}`,0),tD.add(t))}catch(e){console.error(e)}}function yq(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var cc=(()=>{class t{_mediaMatcher=u(iD);_zone=u(se);_queries=new Map;_destroySubject=new N;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return nD(rs(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let r=nD(rs(e)).map(o=>this._registerQuery(o).observable),a=ti(r);return a=gi(a.pipe(Le(1)),a.pipe(Ls(1),$r(0))),a.pipe(pe(o=>{let s={matches:!1,breakpoints:{}};return o.forEach(({matches:d,query:h})=>{s.matches=s.matches||d,s.breakpoints[h]=d}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let n=this._mediaMatcher.matchMedia(e),a={observable:new Ue(o=>{let s=d=>this._zone.run(()=>o.next(d));return n.addListener(s),()=>{n.removeListener(s)}}).pipe($e(n),pe(({matches:o})=>({query:e,matches:o})),ve(this._destroySubject)),mql:n};return this._queries.set(e,a),a}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function nD(t){return t.map(i=>i.split(",")).reduce((i,e)=>i.concat(e)).map(i=>i.trim())}function Cq(t){if(t.type==="characterData"&&t.target instanceof Comment)return!0;if(t.type==="childList"){for(let i=0;i{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),aD=(()=>{class t{_mutationObserverFactory=u(rD);_observedElements=new Map;_ngZone=u(se);constructor(){}ngOnDestroy(){this._observedElements.forEach((e,n)=>this._cleanupObserver(n))}observe(e){let n=Cn(e);return new Ue(r=>{let o=this._observeElement(n).pipe(pe(s=>s.filter(d=>!Cq(d))),Ve(s=>!!s.length)).subscribe(s=>{this._ngZone.run(()=>{r.next(s)})});return()=>{o.unsubscribe(),this._unobserveElement(n)}})}_observeElement(e){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(e))this._observedElements.get(e).count++;else{let n=new N,r=this._mutationObserverFactory.create(a=>n.next(a));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:n,count:1})}return this._observedElements.get(e).stream})}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){let{observer:n,stream:r}=this._observedElements.get(e);n&&n.disconnect(),r.complete(),this._observedElements.delete(e)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Td=(()=>{class t{_contentObserver=u(aD);_elementRef=u(Y);event=new j;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._disabled?this._unsubscribe():this._subscribe()}_disabled=!1;get debounce(){return this._debounce}set debounce(e){this._debounce=sn(e),this._subscribe()}_debounce;_currentSubscription=null;constructor(){}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();let e=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?e.pipe($r(this.debounce)):e).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=V({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",B],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return t})(),Kl=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=K({type:t});static \u0275inj=Q({providers:[rD]})}return t})();var os=(()=>{class t{_platform=u(He);constructor(){}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return Mq(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let n=xq(Pq(e));if(n&&(oD(n)===-1||!this.isVisible(n)))return!1;let r=e.nodeName.toLowerCase(),a=oD(e);return e.hasAttribute("contenteditable")?a!==-1:r==="iframe"||r==="object"||this._platform.WEBKIT&&this._platform.IOS&&!Oq(e)?!1:r==="audio"?e.hasAttribute("controls")?a!==-1:!1:r==="video"?a===-1?!1:a!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,n){return Iq(e)&&!this.isDisabled(e)&&(n?.ignoreVisibility||this.isVisible(e))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function xq(t){try{return t.frameElement}catch{return null}}function Mq(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function wq(t){let i=t.nodeName.toLowerCase();return i==="input"||i==="select"||i==="button"||i==="textarea"}function Dq(t){return kq(t)&&t.type=="hidden"}function Sq(t){return Eq(t)&&t.hasAttribute("href")}function kq(t){return t.nodeName.toLowerCase()=="input"}function Eq(t){return t.nodeName.toLowerCase()=="a"}function lD(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let i=t.getAttribute("tabindex");return!!(i&&!isNaN(parseInt(i,10)))}function oD(t){if(!lD(t))return null;let i=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(i)?-1:i}function Oq(t){let i=t.nodeName.toLowerCase(),e=i==="input"&&t.type;return e==="text"||e==="password"||i==="select"||i==="textarea"}function Iq(t){return Dq(t)?!1:wq(t)||Sq(t)||t.hasAttribute("contenteditable")||lD(t)}function Pq(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var dm=class{_element;_checker;_ngZone;_document;_injector;_startAnchor;_endAnchor;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(i){this._enabled=i,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_enabled=!0;constructor(i,e,n,r,a=!1,o){this._element=i,this._checker=e,this._ngZone=n,this._document=r,this._injector=o,a||this.attachAnchors()}destroy(){let i=this._startAnchor,e=this._endAnchor;i&&(i.removeEventListener("focus",this.startAnchorListener),i.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(i)))})}focusFirstTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(i)))})}focusLastTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(i)))})}_getRegionBoundary(i){let e=this._element.querySelectorAll(`[cdk-focus-region-${i}], [cdkFocusRegion${i}], [cdk-focus-${i}]`);return i=="start"?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(i){let e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){let n=this._getFirstTabbableElement(e);return n?.focus(i),!!n}return e.focus(i),!0}return this.focusFirstTabbableElement(i)}focusFirstTabbableElement(i){let e=this._getRegionBoundary("start");return e&&e.focus(i),!!e}focusLastTabbableElement(i){let e=this._getRegionBoundary("end");return e&&e.focus(i),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(i){if(this._checker.isFocusable(i)&&this._checker.isTabbable(i))return i;let e=i.children;for(let n=0;n=0;n--){let r=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(r)return r}return null}_createAnchor(){let i=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,i),i.classList.add("cdk-visually-hidden"),i.classList.add("cdk-focus-trap-anchor"),i.setAttribute("aria-hidden","true"),i}_toggleAnchorTabIndex(i,e){i?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(i){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_executeOnStable(i){this._injector?kt(i,{injector:this._injector}):setTimeout(i)}},Zl=(()=>{class t{_checker=u(os);_ngZone=u(se);_document=u(De);_injector=u(Te);constructor(){u(Ze).load(ar)}create(e,n=!1){return new dm(e,this._checker,this._ngZone,this._document,n,this._injector)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),p5=(()=>{class t{_elementRef=u(Y);_focusTrapFactory=u(Zl);focusTrap;_previouslyFocusedElement=null;get enabled(){return this.focusTrap?.enabled||!1}set enabled(e){this.focusTrap&&(this.focusTrap.enabled=e)}autoCapture;constructor(){u(He).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))}ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(e){let n=e.autoCapture;n&&!n.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=Ri(),this.focusTrap?.focusInitialElementWhenReady()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=V({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",B],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",B]},exportAs:["cdkTrapFocus"],features:[Pe]})}return t})(),dD=new A("liveAnnouncerElement",{providedIn:"root",factory:uD});function uD(){return null}var mD=new A("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),Tq=0,Ad=(()=>{class t{_ngZone=u(se);_defaultOptions=u(mD,{optional:!0});_liveElement;_document=u(De);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=u(dD,{optional:!0});this._liveElement=e||this._createLiveElement()}announce(e,...n){let r=this._defaultOptions,a,o;return n.length===1&&typeof n[0]=="number"?o=n[0]:[a,o]=n,this.clear(),clearTimeout(this._previousTimeout),a||(a=r&&r.politeness?r.politeness:"polite"),o==null&&r&&(o=r.duration),this._liveElement.setAttribute("aria-live",a),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,typeof o=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),o)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let e="cdk-live-announcer-element",n=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let a=0;a .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{class t{_platform=u(He);_hasCheckedHighContrastMode;_document=u(De);_breakpointSubscription;constructor(){this._breakpointSubscription=u(cc).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return as.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let n=this._document.defaultView||window,r=n&&n.getComputedStyle?n.getComputedStyle(e):null,a=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),a){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return as.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return as.BLACK_ON_WHITE}return as.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(m5,sD,cD),this._hasCheckedHighContrastMode=!0;let n=this.getHighContrastMode();n===as.BLACK_ON_WHITE?e.add(m5,sD):n===as.WHITE_ON_BLACK&&e.add(m5,cD)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),xo=(()=>{class t{constructor(){u(um)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(n){return new(n||t)};static \u0275mod=K({type:t});static \u0275inj=Q({imports:[Kl]})}return t})();var f5={},Fe=(()=>{class t{_appId=u(Xs);getId(e){return this._appId!=="ng"&&(e+=this._appId),f5.hasOwnProperty(e)||(f5[e]=0),`${e}${f5[e]++}`}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Aq=200,Xl=class{_letterKeyStream=new N;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new N;selectedItem=this._selectedItem;constructor(i,e){let n=typeof e?.debounceInterval=="number"?e.debounceInterval:Aq;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(i),this._setupKeyHandler(n)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(i){this._selectedItemIndex=i}setItems(i){this._items=i}handleKey(i){let e=i.keyCode;i.key&&i.key.length===1?this._letterKeyStream.next(i.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(i){this._letterKeyStream.pipe(Mt(e=>this._pressedLetters.push(e)),$r(i),Ve(()=>this._pressedLetters.length>0),pe(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let n=1;nt[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var Jl=class{_items;_activeItemIndex=-1;_activeItem=zn(null);_wrap=!1;_typeaheadSubscription=Me.EMPTY;_itemChangesSubscription;_vertical=!0;_horizontal;_allowedModifierKeys=[];_homeAndEnd=!1;_pageUpAndDown={enabled:!1,delta:10};_effectRef;_typeahead;_skipPredicateFn=i=>i.disabled;constructor(i,e){this._items=i,i instanceof kn?this._itemChangesSubscription=i.changes.subscribe(n=>this._itemsChanged(n.toArray())):$o(i)&&(this._effectRef=K1(()=>this._itemsChanged(i()),{injector:e}))}tabOut=new N;change=new N;skipPredicate(i){return this._skipPredicateFn=i,this}withWrap(i=!0){return this._wrap=i,this}withVerticalOrientation(i=!0){return this._vertical=i,this}withHorizontalOrientation(i){return this._horizontal=i,this}withAllowedModifierKeys(i){return this._allowedModifierKeys=i,this}withTypeAhead(i=200){this._typeaheadSubscription.unsubscribe();let e=this._getItemsArray();return this._typeahead=new Xl(e,{debounceInterval:typeof i=="number"?i:void 0,skipPredicate:n=>this._skipPredicateFn(n)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(n=>{this.setActiveItem(n)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(i=!0){return this._homeAndEnd=i,this}withPageUpDown(i=!0,e=10){return this._pageUpAndDown={enabled:i,delta:e},this}setActiveItem(i){let e=this._activeItem();this.updateActiveItem(i),this._activeItem()!==e&&this.change.next(this._activeItemIndex)}onKeydown(i){let e=i.keyCode,r=["altKey","ctrlKey","metaKey","shiftKey"].every(a=>!i[a]||this._allowedModifierKeys.indexOf(a)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&r){this.setNextItemActive();break}else return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&r){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&r){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&r){let a=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(a>0?a:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&r){let a=this._activeItemIndex+this._pageUpAndDown.delta,o=this._getItemsArray().length;this._setActiveItemByIndex(a-1&&n!==this._activeItemIndex&&(this._activeItemIndex=n,this._typeahead?.setCurrentSelectedItemIndex(n))}}};var lc=class extends Jl{setActiveItem(i){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(i),this.activeItem&&this.activeItem.setActiveStyles()}};var aa=class extends Jl{_origin="program";setFocusOrigin(i){return this._origin=i,this}setActiveItem(i){super.setActiveItem(i),this.activeItem&&this.activeItem.focus(this._origin)}};function dc(t){return Gn(t)?t:ie(t)}var h5=class{_activeItemIndex=-1;_activeItem=null;_shouldActivationFollowFocus=!1;_horizontalOrientation="ltr";_skipPredicateFn=i=>!1;_trackByFn=i=>i;_items=[];_typeahead;_typeaheadSubscription=Me.EMPTY;_hasInitialFocused=!1;_initializeFocus(){if(this._hasInitialFocused||this._items.length===0)return;let i=0;for(let n=0;n{this._items=n.toArray(),this._typeahead?.setItems(this._items),this._updateActiveItemIndex(this._items),this._initializeFocus()})):Gn(i)?i.subscribe(n=>{this._items=n,this._typeahead?.setItems(n),this._updateActiveItemIndex(n),this._initializeFocus()}):(this._items=i,this._initializeFocus()),typeof e.shouldActivationFollowFocus=="boolean"&&(this._shouldActivationFollowFocus=e.shouldActivationFollowFocus),e.horizontalOrientation&&(this._horizontalOrientation=e.horizontalOrientation),e.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),e.trackBy&&(this._trackByFn=e.trackBy),typeof e.typeAheadDebounceInterval<"u"&&this._setTypeAhead(e.typeAheadDebounceInterval)}change=new N;destroy(){this._typeaheadSubscription.unsubscribe(),this._typeahead?.destroy(),this.change.complete()}onKeydown(i){switch(i.key){case"Tab":return;case"ArrowDown":this._focusNextItem();break;case"ArrowUp":this._focusPreviousItem();break;case"ArrowRight":this._horizontalOrientation==="rtl"?this._collapseCurrentItem():this._expandCurrentItem();break;case"ArrowLeft":this._horizontalOrientation==="rtl"?this._expandCurrentItem():this._collapseCurrentItem();break;case"Home":this._focusFirstItem();break;case"End":this._focusLastItem();break;case"Enter":case" ":this._activateCurrentItem();break;default:if(i.key==="*"){this._expandAllItemsAtCurrentItemLevel();break}this._typeahead?.handleKey(i);return}this._typeahead?.reset(),i.preventDefault()}getActiveItemIndex(){return this._activeItemIndex}getActiveItem(){return this._activeItem}_focusFirstItem(){this.focusItem(this._findNextAvailableItemIndex(-1))}_focusLastItem(){this.focusItem(this._findPreviousAvailableItemIndex(this._items.length))}_focusNextItem(){this.focusItem(this._findNextAvailableItemIndex(this._activeItemIndex))}_focusPreviousItem(){this.focusItem(this._findPreviousAvailableItemIndex(this._activeItemIndex))}focusItem(i,e={}){e.emitChangeEvent??=!0;let n=typeof i=="number"?i:this._items.findIndex(o=>this._trackByFn(o)===this._trackByFn(i));if(n<0||n>=this._items.length)return;let r=this._items[n];if(this._activeItem!==null&&this._trackByFn(r)===this._trackByFn(this._activeItem))return;let a=this._activeItem;this._activeItem=r??null,this._activeItemIndex=n,this._typeahead?.setCurrentSelectedItemIndex(n),this._activeItem?.focus(),a?.unfocus(),e.emitChangeEvent&&this.change.next(this._activeItem),this._shouldActivationFollowFocus&&this._activateCurrentItem()}_updateActiveItemIndex(i){let e=this._activeItem;if(!e)return;let n=i.findIndex(r=>this._trackByFn(r)===this._trackByFn(e));n>-1&&n!==this._activeItemIndex&&(this._activeItemIndex=n,this._typeahead?.setCurrentSelectedItemIndex(n))}_setTypeAhead(i){this._typeahead=new Xl(this._items,{debounceInterval:typeof i=="number"?i:void 0,skipPredicate:e=>this._skipPredicateFn(e)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(e=>{this.focusItem(e)})}_findNextAvailableItemIndex(i){for(let e=i+1;e=0;e--)if(!this._skipPredicateFn(this._items[e]))return e;return i}_collapseCurrentItem(){if(this._activeItem)if(this._isCurrentItemExpanded())this._activeItem.collapse();else{let i=this._activeItem.getParent();if(!i||this._skipPredicateFn(i))return;this.focusItem(i)}}_expandCurrentItem(){this._activeItem&&(this._isCurrentItemExpanded()?dc(this._activeItem.getChildren()).pipe(Le(1)).subscribe(i=>{let e=i.find(n=>!this._skipPredicateFn(n));e&&this.focusItem(e)}):this._activeItem.expand())}_isCurrentItemExpanded(){return this._activeItem?typeof this._activeItem.isExpanded=="boolean"?this._activeItem.isExpanded:this._activeItem.isExpanded():!1}_isItemDisabled(i){return typeof i.isDisabled=="boolean"?i.isDisabled:i.isDisabled?.()}_expandAllItemsAtCurrentItemLevel(){if(!this._activeItem)return;let i=this._activeItem.getParent(),e;i?e=dc(i.getChildren()):e=ie(this._items.filter(n=>n.getParent()===null)),e.pipe(Le(1)).subscribe(n=>{for(let r of n)r.expand()})}_activateCurrentItem(){this._activeItem?.activate()}};function Vq(){return(t,i)=>new h5(t,i)}var hD=new A("tree-key-manager",{providedIn:"root",factory:Vq});var _D=" ";function e2(t,i,e){let n=hm(t,i);e=e.trim(),!n.some(r=>r.trim()===e)&&(n.push(e),t.setAttribute(i,n.join(_D)))}function ss(t,i,e){let n=hm(t,i);e=e.trim();let r=n.filter(a=>a!==e);r.length?t.setAttribute(i,r.join(_D)):t.removeAttribute(i)}function hm(t,i){return t.getAttribute(i)?.match(/\S+/g)??[]}var vD="cdk-describedby-message",fm="cdk-describedby-host",_5=0,t2=(()=>{class t{_platform=u(He);_document=u(De);_messageRegistry=new Map;_messagesContainer=null;_id=`${_5++}`;constructor(){u(Ze).load(ar),this._id=u(Xs)+"-"+_5++}describe(e,n,r){if(!this._canBeDescribed(e,n))return;let a=g5(n,r);typeof n!="string"?(gD(n,this._id),this._messageRegistry.set(a,{messageElement:n,referenceCount:0})):this._messageRegistry.has(a)||this._createMessageElement(n,r),this._isElementDescribedByMessage(e,a)||this._addMessageReference(e,a)}removeDescription(e,n,r){if(!n||!this._isElementNode(e))return;let a=g5(n,r);if(this._isElementDescribedByMessage(e,a)&&this._removeMessageReference(e,a),typeof n=="string"){let o=this._messageRegistry.get(a);o&&o.referenceCount===0&&this._deleteMessageElement(a)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let e=this._document.querySelectorAll(`[${fm}="${this._id}"]`);for(let n=0;nr.indexOf(vD)!=0);e.setAttribute("aria-describedby",n.join(" "))}_addMessageReference(e,n){let r=this._messageRegistry.get(n);e2(e,"aria-describedby",r.messageElement.id),e.setAttribute(fm,this._id),r.referenceCount++}_removeMessageReference(e,n){let r=this._messageRegistry.get(n);r.referenceCount--,ss(e,"aria-describedby",r.messageElement.id),e.removeAttribute(fm)}_isElementDescribedByMessage(e,n){let r=hm(e,"aria-describedby"),a=this._messageRegistry.get(n),o=a&&a.messageElement.id;return!!o&&r.indexOf(o)!=-1}_canBeDescribed(e,n){if(!this._isElementNode(e))return!1;if(n&&typeof n=="object")return!0;let r=n==null?"":`${n}`.trim(),a=e.getAttribute("aria-label");return r?!a||a.trim()!==r:!1}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function g5(t,i){return typeof t=="string"?`${i||""}/${t}`:t}function gD(t,i){t.id||(t.id=`${vD}-${i}-${_5++}`)}var Lq=["mat-internal-form-field",""],Rq=["*"],n2=(()=>{class t{labelPosition;static \u0275fac=function(n){return new(n||t)};static \u0275cmp=I({type:t,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(n,r){n&2&&te("mdc-form-field--align-end",r.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},attrs:Lq,ngContentSelectors:Rq,decls:1,vars:0,template:function(n,r){n&1&&(xe(),re(0))},styles:[`.mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0} `],encapsulation:2,changeDetection:0})}return t})();var Yt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=I({type:t,selectors:[["structural-styles"]],decls:0,vars:0,template:function(n,r){},styles:[`.mat-focus-indicator{position:relative}.mat-focus-indicator::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border-width:var(--mat-focus-indicator-border-width, 3px);border-style:var(--mat-focus-indicator-border-style, solid);border-color:var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus::before{content:""}@media(forced-colors: active){html{--mat-focus-indicator-display: block}} `],encapsulation:2,changeDetection:0})}return t})();var oa=function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t}(oa||{}),gm,uc;function _m(){if(uc==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return uc=!1,uc;if("scrollBehavior"in document.documentElement.style)uc=!0;else{let t=Element.prototype.scrollTo;t?uc=!/\{\s*\[native code\]\s*\}/.test(t.toString()):uc=!1}}return uc}function i2(){if(typeof document!="object"||!document)return oa.NORMAL;if(gm==null){let t=document.createElement("div"),i=t.style;t.dir="rtl",i.width="1px",i.overflow="auto",i.visibility="hidden",i.pointerEvents="none",i.position="absolute";let e=document.createElement("div"),n=e.style;n.width="2px",n.height="1px",t.appendChild(e),document.body.appendChild(t),gm=oa.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,gm=t.scrollLeft===0?oa.NEGATED:oa.INVERTED),t.remove()}return gm}function v5(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var r2,bD=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function b5(){if(r2)return r2;if(typeof document!="object"||!document)return r2=new Set(bD),r2;let t=document.createElement("input");return r2=new Set(bD.filter(i=>(t.setAttribute("type",i),t.type===i))),r2}function en(t){return t!=null&&`${t}`!="false"}function Ln(t){return t==null?"":typeof t=="string"?t:`${t}px`}function yD(t,i=/\s+/){let e=[];if(t!=null){let n=Array.isArray(t)?t:`${t}`.split(i);for(let r of n){let a=`${r}`.trim();a&&e.push(a)}}return e}var zr=function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t}(zr||{}),y5=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=zr.HIDDEN;constructor(i,e,n,r=!1){this._renderer=i,this.element=e,this.config=n,this._animationForciblyDisabledThroughCss=r}fadeOut(){this._renderer.fadeOutRipple(this)}},CD=is({passive:!0,capture:!0}),C5=class{_events=new Map;addHandler(i,e,n,r){let a=this._events.get(e);if(a){let o=a.get(n);o?o.add(r):a.set(n,new Set([r]))}else this._events.set(e,new Map([[n,new Set([r])]])),i.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,CD)})}removeHandler(i,e,n){let r=this._events.get(i);if(!r)return;let a=r.get(e);a&&(a.delete(n),a.size===0&&r.delete(e),r.size===0&&(this._events.delete(i),document.removeEventListener(i,this._delegateEventHandler,CD)))}_delegateEventHandler=i=>{let e=In(i);e&&this._events.get(i.type)?.forEach((n,r)=>{(r===e||r.contains(e))&&n.forEach(a=>a.handleEvent(i))})}},Rd={enterDuration:225,exitDuration:150},zq=800,xD=is({passive:!0,capture:!0}),MD=["mousedown","touchstart"],wD=["mouseup","mouseleave","touchend","touchcancel"],Hq=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=I({type:t,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(n,r){},styles:[`.mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale3d(0, 0, 0);background-color:var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent))}@media(forced-colors: active){.mat-ripple-element{display:none}}.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none} diff --git a/browser/chunk-5I7WSU35.js b/browser/chunk-7XDYUJUV.js similarity index 97% rename from browser/chunk-5I7WSU35.js rename to browser/chunk-7XDYUJUV.js index 16ff63a55..151b25549 100644 --- a/browser/chunk-5I7WSU35.js +++ b/browser/chunk-7XDYUJUV.js @@ -1 +1 @@ -import{Bb as N,E as f,H as l,xb as m,yb as a,yc as i,z as g}from"./chunk-KX2ZKPHO.js";import{a as d,b as h}from"./chunk-O7S4L63H.js";var P=(()=>{class c{constructor(t){this.http=t}getStandingInstructionsData(t){return this.http.get(`/standinginstructions/${t}`)}getStandingInstructionsDataAndTemplate(t){let n=new a().set("associations","template");return this.http.get(`/standinginstructions/${t}`,{params:n})}updateStandingInstructionsData(t,n){let s=new a().set("command","update");return this.http.put(`/standinginstructions/${t}`,n,{params:s})}getStandingInstructionsTemplate(t,n,s,e){let r=new a().set("fromAccountType",s).set("fromClientId",t).set("fromOfficeId",n);if(e){let o=Object.getOwnPropertyNames(e);for(let p=0;p{let o=JSON.stringify(h(d({},s),{ownerFspId:r.fspId}));return this.http.post(`${i.vNextApiUrl}${i.vNextApiVersion}${i.vNextApiProvider}/partyinfo`,o,{headers:e})}))}sendInterbankTransfer(t){let n=new m({"Content-Type":"application/json"});return this.http.post(`${i.vNextApiUrl}${i.vNextApiVersion}${i.vNextApiProvider}/executetransfer`,t,{headers:n})}static{this.\u0275fac=function(n){return new(n||c)(l(N))}}static{this.\u0275prov=f({token:c,factory:c.\u0275fac,providedIn:"root"})}}return c})();export{P as a}; +import{Bb as N,E as f,H as l,xb as m,yb as a,yc as i,z as g}from"./chunk-2BUEM4AN.js";import{a as d,b as h}from"./chunk-O7S4L63H.js";var P=(()=>{class c{constructor(t){this.http=t}getStandingInstructionsData(t){return this.http.get(`/standinginstructions/${t}`)}getStandingInstructionsDataAndTemplate(t){let n=new a().set("associations","template");return this.http.get(`/standinginstructions/${t}`,{params:n})}updateStandingInstructionsData(t,n){let s=new a().set("command","update");return this.http.put(`/standinginstructions/${t}`,n,{params:s})}getStandingInstructionsTemplate(t,n,s,e){let r=new a().set("fromAccountType",s).set("fromClientId",t).set("fromOfficeId",n);if(e){let o=Object.getOwnPropertyNames(e);for(let p=0;p{let o=JSON.stringify(h(d({},s),{ownerFspId:r.fspId}));return this.http.post(`${i.vNextApiUrl}${i.vNextApiVersion}${i.vNextApiProvider}/partyinfo`,o,{headers:e})}))}sendInterbankTransfer(t){let n=new m({"Content-Type":"application/json"});return this.http.post(`${i.vNextApiUrl}${i.vNextApiVersion}${i.vNextApiProvider}/executetransfer`,t,{headers:n})}static{this.\u0275fac=function(n){return new(n||c)(l(N))}}static{this.\u0275prov=f({token:c,factory:c.\u0275fac,providedIn:"root"})}}return c})();export{P as a}; diff --git a/browser/chunk-3XID6S56.js b/browser/chunk-JRMODJLE.js similarity index 97% rename from browser/chunk-3XID6S56.js rename to browser/chunk-JRMODJLE.js index c935296be..752fae8e1 100644 --- a/browser/chunk-3XID6S56.js +++ b/browser/chunk-JRMODJLE.js @@ -1 +1 @@ -import{Bb as d,E as i,H as p,Rf as n,j as u,yb as c}from"./chunk-KX2ZKPHO.js";var h=class{constructor(a){this.selectOptions=[],this.childParameters=[],this.name=a[0],this.variable=a[1],this.label=a[2],this.displayType=a[3],this.formatType=a[4],this.defaultVal=a[5],this.selectOne=a[6],this.selectAll=a[7],this.parentParameterName=a[8],this.inputName=`R_${a[1]}`}};var l=class{constructor(a){this.id=a[0],this.name=a[1]}};var f=class{constructor(a){this.keysLabel=a.columnHeaders[0].columnName,this.valuesLabel=a.columnHeaders[1].columnName,this.keys=a.data.map(t=>t.row[0]),this.values=a.data.map(t=>t.row[1])}};var F=(()=>{class e{constructor(t){this.http=t}getReports(){return this.http.get("/reports")}getReportParams(t){let r=new c().set("R_reportListing",`'${t}'`).set("parameterType","true");return this.http.get("/runreports/FullParameterList",{params:r}).pipe(u(s=>s.data.map(o=>new h(o.row))))}getSelectOptions(t){let r=new c().set("parameterType","true");return this.http.get(`/runreports/${t}`,{params:r}).pipe(u(s=>s.data.map(o=>new l(o.row))))}getPentahoParams(t){let r=new c().set("fields","reportParameters");return this.http.get(`/reports/${t}`,{params:r}).pipe(u(s=>s.reportParameters))}getRunReportData(t,r){let s=new c;for(let[o,m]of Object.entries(r))s=s.set(o,m);return this.http.get(`/runreports/${t}`,{params:s})}getChartRunReportData(t,r){let s=new c;for(let[o,m]of Object.entries(r))s=s.set(o,m);return this.http.get(`/runreports/${t}`,{params:s}).pipe(u(o=>new f(o)))}getPentahoRunReportData(t,r,s,o,m){let g=new c().set("tenantIdentifier",s).set("locale",o).set("dateFormat",m);for(let[b,w]of Object.entries(r))g=g.set(b,w);return this.http.get(`/runreports/${t}`,{responseType:"arraybuffer",observe:"response",params:g})}static{this.\u0275fac=function(r){return new(r||e)(p(d))}}static{this.\u0275prov=i({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var L=(()=>{class e{constructor(t){this.groupsService=t}resolve(t){let r=t.parent.paramMap.get("groupId");return this.groupsService.getGroupAccountsData(r)}static{this.\u0275fac=function(r){return new(r||e)(p(n))}}static{this.\u0275prov=i({token:e,factory:e.\u0275fac})}}return e})();var C=(()=>{class e{constructor(t){this.groupsService=t}resolve(t){let r=t.parent.paramMap.get("groupId");return this.groupsService.getGSIMAccountsData(r)}static{this.\u0275fac=function(r){return new(r||e)(p(n))}}static{this.\u0275prov=i({token:e,factory:e.\u0275fac})}}return e})();var B=(()=>{class e{constructor(t){this.groupsService=t}resolve(t){let r=t.paramMap.get("groupId");return this.groupsService.getGroupData(r)}static{this.\u0275fac=function(r){return new(r||e)(p(n))}}static{this.\u0275prov=i({token:e,factory:e.\u0275fac})}}return e})();export{F as a,L as b,C as c,B as d}; +import{Bb as d,E as i,H as p,Rf as n,j as u,yb as c}from"./chunk-2BUEM4AN.js";var h=class{constructor(a){this.selectOptions=[],this.childParameters=[],this.name=a[0],this.variable=a[1],this.label=a[2],this.displayType=a[3],this.formatType=a[4],this.defaultVal=a[5],this.selectOne=a[6],this.selectAll=a[7],this.parentParameterName=a[8],this.inputName=`R_${a[1]}`}};var l=class{constructor(a){this.id=a[0],this.name=a[1]}};var f=class{constructor(a){this.keysLabel=a.columnHeaders[0].columnName,this.valuesLabel=a.columnHeaders[1].columnName,this.keys=a.data.map(t=>t.row[0]),this.values=a.data.map(t=>t.row[1])}};var F=(()=>{class e{constructor(t){this.http=t}getReports(){return this.http.get("/reports")}getReportParams(t){let r=new c().set("R_reportListing",`'${t}'`).set("parameterType","true");return this.http.get("/runreports/FullParameterList",{params:r}).pipe(u(s=>s.data.map(o=>new h(o.row))))}getSelectOptions(t){let r=new c().set("parameterType","true");return this.http.get(`/runreports/${t}`,{params:r}).pipe(u(s=>s.data.map(o=>new l(o.row))))}getPentahoParams(t){let r=new c().set("fields","reportParameters");return this.http.get(`/reports/${t}`,{params:r}).pipe(u(s=>s.reportParameters))}getRunReportData(t,r){let s=new c;for(let[o,m]of Object.entries(r))s=s.set(o,m);return this.http.get(`/runreports/${t}`,{params:s})}getChartRunReportData(t,r){let s=new c;for(let[o,m]of Object.entries(r))s=s.set(o,m);return this.http.get(`/runreports/${t}`,{params:s}).pipe(u(o=>new f(o)))}getPentahoRunReportData(t,r,s,o,m){let g=new c().set("tenantIdentifier",s).set("locale",o).set("dateFormat",m);for(let[b,w]of Object.entries(r))g=g.set(b,w);return this.http.get(`/runreports/${t}`,{responseType:"arraybuffer",observe:"response",params:g})}static{this.\u0275fac=function(r){return new(r||e)(p(d))}}static{this.\u0275prov=i({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var L=(()=>{class e{constructor(t){this.groupsService=t}resolve(t){let r=t.parent.paramMap.get("groupId");return this.groupsService.getGroupAccountsData(r)}static{this.\u0275fac=function(r){return new(r||e)(p(n))}}static{this.\u0275prov=i({token:e,factory:e.\u0275fac})}}return e})();var C=(()=>{class e{constructor(t){this.groupsService=t}resolve(t){let r=t.parent.paramMap.get("groupId");return this.groupsService.getGSIMAccountsData(r)}static{this.\u0275fac=function(r){return new(r||e)(p(n))}}static{this.\u0275prov=i({token:e,factory:e.\u0275fac})}}return e})();var B=(()=>{class e{constructor(t){this.groupsService=t}resolve(t){let r=t.paramMap.get("groupId");return this.groupsService.getGroupData(r)}static{this.\u0275fac=function(r){return new(r||e)(p(n))}}static{this.\u0275prov=i({token:e,factory:e.\u0275fac})}}return e})();export{F as a,L as b,C as c,B as d}; diff --git a/browser/chunk-2GVR7HS2.js b/browser/chunk-NQ7FRJVX.js similarity index 89% rename from browser/chunk-2GVR7HS2.js rename to browser/chunk-NQ7FRJVX.js index 2eb6e37f3..c795baf96 100644 --- a/browser/chunk-2GVR7HS2.js +++ b/browser/chunk-NQ7FRJVX.js @@ -1,4 +1,4 @@ -import{Fa as t,Ga as m,Ha as u,Pa as f,Sa as o,Ta as a,_ as n,ac as x,ca as p,da as d,dd as E,ja as c,lc as v,na as e,oa as i,oc as D,pc as M,qb as g,qc as b,rc as C,wc as S}from"./chunk-KX2ZKPHO.js";var T=()=>({confirm:!0}),O=(()=>{class l{constructor(s){this.dialogRef=s}static{this.\u0275fac=function(r){return new(r||l)(p(v))}}static{this.\u0275cmp=d({type:l,selectors:[["mifosx-undo-transaction-dialog"]],decls:22,vars:14,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","warn",3,"mat-dialog-close"]],template:function(r,h){r&1&&(e(0,"h1",0),t(1),o(2,"translate"),i(),t(3,` +import{Fa as t,Ga as m,Ha as u,Pa as f,Sa as o,Ta as a,_ as n,ac as x,ca as p,da as d,dd as E,ja as c,lc as v,na as e,oa as i,oc as D,pc as M,qb as g,qc as b,rc as C,wc as S}from"./chunk-2BUEM4AN.js";var T=()=>({confirm:!0}),O=(()=>{class l{constructor(s){this.dialogRef=s}static{this.\u0275fac=function(r){return new(r||l)(p(v))}}static{this.\u0275cmp=d({type:l,selectors:[["mifosx-undo-transaction-dialog"]],decls:22,vars:14,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","warn",3,"mat-dialog-close"]],template:function(r,h){r&1&&(e(0,"h1",0),t(1),o(2,"translate"),i(),t(3,` `),e(4,"div",1),t(5,` `),e(6,"p"),t(7),o(8,"translate"),i(),t(9,` `),i(),t(10,` diff --git a/browser/chunk-CP3ZQJ5C.js b/browser/chunk-R2LWMVHI.js similarity index 91% rename from browser/chunk-CP3ZQJ5C.js rename to browser/chunk-R2LWMVHI.js index bea4ae174..eb002172f 100644 --- a/browser/chunk-CP3ZQJ5C.js +++ b/browser/chunk-R2LWMVHI.js @@ -1 +1 @@ -import{E as r,H as i,Tf as n}from"./chunk-KX2ZKPHO.js";var m=(()=>{class t{constructor(e){this.savingsService=e}resolve(e){let a=e.parent.parent.paramMap.get("savingAccountId")||e.parent.parent.paramMap.get("fixedDepositAccountId")||e.parent.parent.paramMap.get("recurringDepositAccountId"),c=e.paramMap.get("datatableName");return this.savingsService.getSavingsDatatable(a,c)}static{this.\u0275fac=function(a){return new(a||t)(i(n))}}static{this.\u0275prov=r({token:t,factory:t.\u0275fac})}}return t})();var S=(()=>{class t{constructor(e){this.savingsService=e}resolve(){return this.savingsService.getSavingsDatatables()}static{this.\u0275fac=function(a){return new(a||t)(i(n))}}static{this.\u0275prov=r({token:t,factory:t.\u0275fac})}}return t})();export{m as a,S as b}; +import{E as r,H as i,Tf as n}from"./chunk-2BUEM4AN.js";var m=(()=>{class t{constructor(e){this.savingsService=e}resolve(e){let a=e.parent.parent.paramMap.get("savingAccountId")||e.parent.parent.paramMap.get("fixedDepositAccountId")||e.parent.parent.paramMap.get("recurringDepositAccountId"),c=e.paramMap.get("datatableName");return this.savingsService.getSavingsDatatable(a,c)}static{this.\u0275fac=function(a){return new(a||t)(i(n))}}static{this.\u0275prov=r({token:t,factory:t.\u0275fac})}}return t})();var S=(()=>{class t{constructor(e){this.savingsService=e}resolve(){return this.savingsService.getSavingsDatatables()}static{this.\u0275fac=function(a){return new(a||t)(i(n))}}static{this.\u0275prov=r({token:t,factory:t.\u0275fac})}}return t})();export{m as a,S as b}; diff --git a/browser/chunk-EIMWP6JY.js b/browser/chunk-VYSWMZL6.js similarity index 82% rename from browser/chunk-EIMWP6JY.js rename to browser/chunk-VYSWMZL6.js index 74d3ba2b9..fe9619860 100644 --- a/browser/chunk-EIMWP6JY.js +++ b/browser/chunk-VYSWMZL6.js @@ -1 +1 @@ -import{E as r,H as c,Tf as a}from"./chunk-KX2ZKPHO.js";var f=(()=>{class t{constructor(i){this.savingsService=i}resolve(i){let e=i.paramMap.get("savingAccountId");return this.savingsService.getSavingsAccountData(e)}static{this.\u0275fac=function(e){return new(e||t)(c(a))}}static{this.\u0275prov=r({token:t,factory:t.\u0275fac})}}return t})();export{f as a}; +import{E as r,H as c,Tf as a}from"./chunk-2BUEM4AN.js";var f=(()=>{class t{constructor(i){this.savingsService=i}resolve(i){let e=i.paramMap.get("savingAccountId");return this.savingsService.getSavingsAccountData(e)}static{this.\u0275fac=function(e){return new(e||t)(c(a))}}static{this.\u0275prov=r({token:t,factory:t.\u0275fac})}}return t})();export{f as a}; diff --git a/browser/chunk-D4UX3TYT.js b/browser/chunk-ZWPHYTML.js similarity index 99% rename from browser/chunk-D4UX3TYT.js rename to browser/chunk-ZWPHYTML.js index 7bfd10bdf..0f5decd65 100644 --- a/browser/chunk-D4UX3TYT.js +++ b/browser/chunk-ZWPHYTML.js @@ -1 +1 @@ -import{Bb as u,E as o,Ec as c,H as p,vc as f,yb as r}from"./chunk-KX2ZKPHO.js";import{a as g,b as d}from"./chunk-O7S4L63H.js";var E=(()=>{class a{constructor(t){this.translateService=t}translate(t,e){return this.translateService.get(t,e)}static{this.\u0275fac=function(e){return new(e||a)(p(f))}}static{this.\u0275prov=o({token:a,factory:a.\u0275fac})}}return a})();var T=(()=>{class a{static{this.LOAN_SCHEDULE_TYPE_CUMULATIVE="CUMULATIVE"}static{this.LOAN_SCHEDULE_TYPE_PROGRESSIVE="PROGRESSIVE"}static{this.LOAN_SCHEDULE_PROCESSING_TYPE_HORIZONTAL="HORIZONTAL"}static{this.LOAN_SCHEDULE_PROCESSING_TYPE_VERTICAL="VERTICAL"}static{this.ADVANCED_PAYMENT_ALLOCATION_STRATEGY="advanced-payment-allocation-strategy"}static{this.DAYS_BEFORE_REPAYMENT_IS_DUE="days-before-repayment-is-due"}static{this.DAYS_AFTER_REPAYMENT_IS_OVERDUE="days-after-repayment-is-overdue"}static isAdvancedPaymentAllocationStrategy(t){return t===this.ADVANCED_PAYMENT_ALLOCATION_STRATEGY}constructor(t){this.settingsService=t,this.globalConfigurations=[a.DAYS_BEFORE_REPAYMENT_IS_DUE,a.DAYS_AFTER_REPAYMENT_IS_OVERDUE],this.propertyNames=["dueDaysForRepaymentEvent","overDueDaysForRepaymentEvent"]}setItemsByDefault(t){let e=[];return t.globalConfiguration.forEach(s=>{this.globalConfigurations.includes(s.name)&&e.push(s)}),e}updateLoanProductDefaults(t,e){return t.itemsByDefault.forEach(n=>{let i=this.resolvePropertyName(n.name);i!==""&&(e?(!t[i]||t[i]==="")&&(t[i]=n.value):t[i]=n.value)}),t}buildPayload(t,e){let s=this.settingsService.dateFormat,n=this.settingsService.language.code,i=d(g({},t),{charges:t.charges.map(h=>({id:h.id})),dateFormat:s,locale:n});return delete i.allowAttributeConfiguration,delete i.advancedAccountingRules,i.allowPartialPeriodInterestCalcualtion=i.allowPartialPeriodInterestCalculation,delete i.allowPartialPeriodInterestCalculation,e.forEach(h=>{let l=this.resolvePropertyName(h.name);l!==""&&(!i[l]||i[l]==="")&&(i[l]=h.value)}),i}isItemByDefault(t){return this.propertyNames.includes(t)}isGlobalConfigurations(t){return this.globalConfigurations.includes(t)}resolvePropertyName(t){if(this.globalConfigurations.includes(t)){let e=this.globalConfigurations.indexOf(t);if(e>-1)return this.propertyNames[e]}return""}static{this.\u0275fac=function(e){return new(e||a)(p(c))}}static{this.\u0275prov=o({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();var b=(()=>{class a{constructor(t){this.http=t,this.basePath="/external-asset-owners"}executeExternalAssetOwnerLoanCommand(t,e,s){let n=new r().set("command",s);return this.http.post(`${this.basePath}/transfers/loans/${t}`,e,{params:n})}executeExternalAssetOwnerTransferCommand(t,e,s){let n=new r().set("command",s);return this.http.post(`${this.basePath}/transfers/${t}`,e,{params:n})}retrieveExternalAssetOwnerTransfers(t){let e=new r().set("loanId",t);return this.http.get(`${this.basePath}/transfers`,{params:e})}retrieveExternalAssetOwnerActiveTransfer(t){let e=new r().set("loanId",t);return this.http.get(`${this.basePath}/transfers/active-transfer`,{params:e})}retrieveExternalAssetOwnerTransferJournalEntries(t){return this.http.get(`${this.basePath}/transfers/${t}/journal-entries`)}searchExternalAssetOwnerTransfer(t){return this.http.post(`${this.basePath}/search`,t)}static{this.\u0275fac=function(e){return new(e||a)(p(u))}}static{this.\u0275prov=o({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();var F=(()=>{class a{constructor(t,e){this.http=t,this.settingsService=e}getProvisioningCriterias(){return this.http.get("/provisioningcriteria")}getProvisioningCriteriaTemplate(){return this.http.get("/provisioningcriteria/template")}getProvisioningCriteria(t,e=!1){let s=new r().set("template",e.toString());return this.http.get(`/provisioningcriteria/${t}`,{params:s})}createProvisioningCriteria(t){return this.http.post("/provisioningcriteria",t)}updateProvisioningCriteria(t,e){return this.http.put(`/provisioningcriteria/${t}`,e)}deleteProvisioningCriteria(t){return this.http.delete(`/provisioningcriteria/${t}`)}getOffices(){return this.http.get("/offices")}getOfficeTemplate(t){let e=new r().set("officeId",t.toString());return this.http.get("/loans/loanreassignment/template",{params:e})}getOfficerTemplate(t,e){let s=new r().set("fromLoanOfficerId",t.toString()).set("officeId",e.toString());return this.http.get("/loans/loanreassignment/template",{params:s})}createLoanReassignment(t){return this.http.post("/loans/loanreassignment",t)}getOffice(t,e=!1){let s=new r().set("template",e.toString());return this.http.get(`/offices/${t}`,{params:s})}createOffice(t){return this.http.post("/offices",t)}updateOffice(t,e){return this.http.put(`/offices/${t}`,e)}getOfficeDatatables(){let t=new r().set("apptable","m_office");return this.http.get("/datatables",{params:t})}getOfficeDatatable(t,e){let s=new r().set("genericResultSet","true");return this.http.get(`/datatables/${e}/${t}`,{params:s})}addOfficeDatatableEntry(t,e,s){let n=new r().set("genericResultSet","true");return this.http.post(`/datatables/${e}/${t}`,s,{params:n})}editOfficeDatatableEntry(t,e,s){let n=new r().set("genericResultSet","true");return this.http.put(`/datatables/${e}/${t}`,s,{params:n})}deleteDatatableContent(t,e){let s=new r().set("genericResultSet","true");return this.http.delete(`/datatables/${e}/${t}`,{params:s})}getEmployees(){let t=new r().set("status","all");return this.http.get("/staff",{params:t})}createEmployee(t){return this.http.post("/staff",t)}getEmployee(t,e=!0){let s=new r().set("template",e.toString());return this.http.get(`/staff/${t}`,{params:s})}getCurrencies(){return this.http.get("/currencies")}updateCurrencies(t){return this.http.put("/currencies",{currencies:t})}getSmsCampaigns(){return this.http.get("/smscampaigns")}getSmsCampaign(t){return this.http.get(`/smscampaigns/${t}`)}createSmsCampaign(t){return this.http.post("/smscampaigns",t)}updateSmsCampaign(t,e){return this.http.put(`/smscampaigns/${e}`,t)}deleteSmsCampaign(t){return this.http.delete(`/smscampaigns/${t}`)}getSmsCampaignTemplate(){return this.http.get("/smscampaigns/template")}executeSmsCampaignCommand(t,e,s){let n=new r().set("command",s.toString());return this.http.post(`/smscampaigns/${t}`,e,{params:n})}getMessagebyStatus(t){let e=new r().set("status",t.status.toString()).set("locale",t.locale).set("dateFormat",t.dateFormat);return e=t.fromDate?e.set("fromDate",t.fromDate):e,e=t.toDate?e.set("toDate",t.toDate):e,this.http.get(`/sms/${t.id}/messageByStatus`,{params:e})}getAdhocQueries(){return this.http.get("/adhocquery")}getAdhocQuery(t){return this.http.get(`/adhocquery/${t}`)}getAdhocQueryTemplate(){return this.http.get("/adhocquery/template")}getAdhocQueryAndTemplate(t){let e=new r().set("template","true");return this.http.get(`/adhocquery/${t}`,{params:e})}createAdhocQuery(t){return this.http.post("/adhocquery",t)}updateAdhocQuery(t,e){return this.http.put(`/adhocquery/${t}`,e)}deleteAdhocQuery(t){return this.http.delete(`/adhocquery/${t}`)}getTellers(){return this.http.get("/tellers")}getTeller(t){return this.http.get(`/tellers/${t}`)}getCashiers(t){return this.http.get(`/tellers/${t}/cashiers`)}getCashier(t,e){return this.http.get(`/tellers/${t}/cashiers/${e}`)}getCashierSummaryAndTransactions(t,e,s){let n=new r().set("currencyCode",s);return this.http.get(`/tellers/${t}/cashiers/${e}/summaryandtransactions`,{params:n})}getCashierTransactionTemplate(t,e){return this.http.get(`/tellers/${t}/cashiers/${e}/transactions/template`)}createCashier(t,e){return this.http.post(`/tellers/${t}/cashiers`,e)}deleteCashier(t,e){return this.http.delete(`/tellers/${t}/cashiers/${e}`)}settleCash(t,e,s){let n=new r().set("command","settle");return this.http.post(`/tellers/${t}/cashiers/${e}/settle`,s,{params:n})}allocateCash(t,e,s){let n=new r().set("command","allocate");return this.http.post(`/tellers/${t}/cashiers/${e}/allocate`,s,{params:n})}getCashierTemplate(t){return this.http.get(`/tellers/${t}/cashiers/template`)}updateCashier(t,e,s){return this.http.put(`/tellers/${t}/cashiers/${e}`,s)}deleteTeller(t){return this.http.delete(`/tellers/${t}`)}createTeller(t){return this.http.post("/tellers",t)}getPaymentTypes(){return this.http.get("/paymenttypes")}getPaymentTypesWithCode(){return this.http.get("/paymenttypes?onlyWithCode=true")}createPaymentType(t){return this.http.post("/paymenttypes",t)}deletePaymentType(t){return this.http.delete(`/paymenttypes/${t}`)}getPaymentType(t){return this.http.get(`/paymenttypes/${t}`)}updatePaymentType(t,e){return this.http.put(`/paymenttypes/${t}`,e)}getPasswordPreferencesTemplate(){return this.http.get("/passwordpreferences/template")}updatePasswordPreferences(t){return this.http.put("/passwordpreferences",t)}getEntityDataTableChecks(t=0,e=-1){let s=new r().set("offset",t.toString()).set("limit",e.toString());return this.http.get("/entityDatatableChecks",{params:s})}getEntityDataTableChecksTemplate(){return this.http.get("/entityDatatableChecks/template")}createEntityDataTableChecks(t){return this.http.post("/entityDatatableChecks",t)}deleteEntityDataTableCheck(t){return this.http.delete(`/entityDatatableChecks/${t}`)}getWorkingDays(){return this.http.get("/workingdays")}updateWorkingDays(t){return this.http.put("/workingdays",t)}getHolidays(t){let e=new r().set("officeId",t.toString());return this.http.get("/holidays",{params:e})}getHoliday(t){return this.http.get(`/holidays/${t}`)}getHolidayTemplate(){return this.http.get("/holidays/template")}createHoliday(t){return this.http.post("/holidays",t)}updateHoliday(t,e){return this.http.put(`/holidays/${t}`,e)}deleteHoliday(t){return this.http.delete(`/holidays/${t}`)}activateHoliday(t){let e=new r().set("command","activate");return this.http.post(`/holidays/${t}`,null,{params:e})}updateEmployee(t,e){return this.http.put(`/staff/${t}`,e)}updateTeller(t,e){return this.http.put(`/tellers/${t}`,e)}getFunds(){return this.http.get("/funds")}getFund(t){return this.http.get(`/funds/${t}`)}createFund(t){return this.http.post("/funds",t)}editFund(t,e){return this.http.put(`/funds/${t}`,e)}getStaffs(t){let e=new r().set("officeId",t).set("status","all");return this.http.get("/staff",{params:e})}getCenters(t){let e=new r().set("officeId",t).set("status","all");return this.http.get("/centers",{params:e})}getGroups(t){let e=new r().set("officeId",t).set("status","all");return this.http.get("/groups",{params:e})}getStaff(t){let e=new r().set("officeId",t.toString());return this.http.get("/staff",{params:e})}getImports(t){let e=new r().set("entityType",t);return this.http.get("/imports",{params:e})}getAdvanceSearchTemplate(){return this.http.get("/search/template")}retrieveAdvanceSearchResults(t){return this.http.post("/search/advance",t)}getStandingInstructionTemplate(){return this.http.get("/standinginstructions/template")}getStandingInstructions(t){let e=new r;for(let s in t)t[s]!==""&&t[s]!==null&&(e=e.set(s,t[s]));return this.http.get("/standinginstructionrunhistory",{params:e})}getImportTemplate(t,e,s,n){let i=new r().set("tenantIdentifier","default").set("locale",this.settingsService.language.code).set("dateFormat",this.settingsService.dateFormat);return e&&(i=i.set("officeId",e.toString())),s&&(i=i.set("staffId",s.toString())),n.length&&(i=i.set("legalFormType",n)),this.http.get(`${t}/downloadtemplate`,{params:i,responseType:"arraybuffer",observe:"response"})}getImportDocument(t){let e=new r().set("importDocumentId",t).set("tenantIdentifier","default");return this.http.get("/imports/downloadOutputTemplate",{params:e,responseType:"arraybuffer",observe:"response"})}uploadImportDocument(t,e,s){let n=new r;s.length&&(n=n.set("legalFormType",s));let i=new FormData;return i.append("file",t),i.append("locale",this.settingsService.language.code),i.append("dateFormat",this.settingsService.dateFormat),this.http.post(`${e}/uploadtemplate`,i,{params:n})}static{this.\u0275fac=function(e){return new(e||a)(p(u),p(c))}}static{this.\u0275prov=o({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();var k=(()=>{class a{constructor(){this.defaultDate="9999-12-31"}validateStatus(t,e){return t!=null?t.status===e:!1}itemCurrentStatus(t){return this.isBuyBackPending(t)?t.status+" PENDING":t.status}itemStatus(t){return"status-"+t.toLowerCase()}isPending(t){return t.status==="PENDING"}isPendingOrCanceled(t){return t.status==="PENDING"||t.status==="CANCELLED"||this.isBuyBackPending(t)}isBuyBackPending(t){return t.status==="BUYBACK"&&t.effectiveTo===this.defaultDate}canBeCancelled(t){return this.validateStatus(t,"PENDING")}canBeSold(t){return t==null?!0:["","CANCELLED"].includes(t.status)||t.status==="BUYBACK"&&t.effectiveTo!==this.defaultDate}canBeBuyed(t){return this.validateStatus(t,"ACTIVE")}static{this.\u0275fac=function(e){return new(e||a)}}static{this.\u0275prov=o({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();export{E as a,T as b,b as c,F as d,k as e}; +import{Bb as u,E as o,Ec as c,H as p,vc as f,yb as r}from"./chunk-2BUEM4AN.js";import{a as g,b as d}from"./chunk-O7S4L63H.js";var E=(()=>{class a{constructor(t){this.translateService=t}translate(t,e){return this.translateService.get(t,e)}static{this.\u0275fac=function(e){return new(e||a)(p(f))}}static{this.\u0275prov=o({token:a,factory:a.\u0275fac})}}return a})();var T=(()=>{class a{static{this.LOAN_SCHEDULE_TYPE_CUMULATIVE="CUMULATIVE"}static{this.LOAN_SCHEDULE_TYPE_PROGRESSIVE="PROGRESSIVE"}static{this.LOAN_SCHEDULE_PROCESSING_TYPE_HORIZONTAL="HORIZONTAL"}static{this.LOAN_SCHEDULE_PROCESSING_TYPE_VERTICAL="VERTICAL"}static{this.ADVANCED_PAYMENT_ALLOCATION_STRATEGY="advanced-payment-allocation-strategy"}static{this.DAYS_BEFORE_REPAYMENT_IS_DUE="days-before-repayment-is-due"}static{this.DAYS_AFTER_REPAYMENT_IS_OVERDUE="days-after-repayment-is-overdue"}static isAdvancedPaymentAllocationStrategy(t){return t===this.ADVANCED_PAYMENT_ALLOCATION_STRATEGY}constructor(t){this.settingsService=t,this.globalConfigurations=[a.DAYS_BEFORE_REPAYMENT_IS_DUE,a.DAYS_AFTER_REPAYMENT_IS_OVERDUE],this.propertyNames=["dueDaysForRepaymentEvent","overDueDaysForRepaymentEvent"]}setItemsByDefault(t){let e=[];return t.globalConfiguration.forEach(s=>{this.globalConfigurations.includes(s.name)&&e.push(s)}),e}updateLoanProductDefaults(t,e){return t.itemsByDefault.forEach(n=>{let i=this.resolvePropertyName(n.name);i!==""&&(e?(!t[i]||t[i]==="")&&(t[i]=n.value):t[i]=n.value)}),t}buildPayload(t,e){let s=this.settingsService.dateFormat,n=this.settingsService.language.code,i=d(g({},t),{charges:t.charges.map(h=>({id:h.id})),dateFormat:s,locale:n});return delete i.allowAttributeConfiguration,delete i.advancedAccountingRules,i.allowPartialPeriodInterestCalcualtion=i.allowPartialPeriodInterestCalculation,delete i.allowPartialPeriodInterestCalculation,e.forEach(h=>{let l=this.resolvePropertyName(h.name);l!==""&&(!i[l]||i[l]==="")&&(i[l]=h.value)}),i}isItemByDefault(t){return this.propertyNames.includes(t)}isGlobalConfigurations(t){return this.globalConfigurations.includes(t)}resolvePropertyName(t){if(this.globalConfigurations.includes(t)){let e=this.globalConfigurations.indexOf(t);if(e>-1)return this.propertyNames[e]}return""}static{this.\u0275fac=function(e){return new(e||a)(p(c))}}static{this.\u0275prov=o({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();var b=(()=>{class a{constructor(t){this.http=t,this.basePath="/external-asset-owners"}executeExternalAssetOwnerLoanCommand(t,e,s){let n=new r().set("command",s);return this.http.post(`${this.basePath}/transfers/loans/${t}`,e,{params:n})}executeExternalAssetOwnerTransferCommand(t,e,s){let n=new r().set("command",s);return this.http.post(`${this.basePath}/transfers/${t}`,e,{params:n})}retrieveExternalAssetOwnerTransfers(t){let e=new r().set("loanId",t);return this.http.get(`${this.basePath}/transfers`,{params:e})}retrieveExternalAssetOwnerActiveTransfer(t){let e=new r().set("loanId",t);return this.http.get(`${this.basePath}/transfers/active-transfer`,{params:e})}retrieveExternalAssetOwnerTransferJournalEntries(t){return this.http.get(`${this.basePath}/transfers/${t}/journal-entries`)}searchExternalAssetOwnerTransfer(t){return this.http.post(`${this.basePath}/search`,t)}static{this.\u0275fac=function(e){return new(e||a)(p(u))}}static{this.\u0275prov=o({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();var F=(()=>{class a{constructor(t,e){this.http=t,this.settingsService=e}getProvisioningCriterias(){return this.http.get("/provisioningcriteria")}getProvisioningCriteriaTemplate(){return this.http.get("/provisioningcriteria/template")}getProvisioningCriteria(t,e=!1){let s=new r().set("template",e.toString());return this.http.get(`/provisioningcriteria/${t}`,{params:s})}createProvisioningCriteria(t){return this.http.post("/provisioningcriteria",t)}updateProvisioningCriteria(t,e){return this.http.put(`/provisioningcriteria/${t}`,e)}deleteProvisioningCriteria(t){return this.http.delete(`/provisioningcriteria/${t}`)}getOffices(){return this.http.get("/offices")}getOfficeTemplate(t){let e=new r().set("officeId",t.toString());return this.http.get("/loans/loanreassignment/template",{params:e})}getOfficerTemplate(t,e){let s=new r().set("fromLoanOfficerId",t.toString()).set("officeId",e.toString());return this.http.get("/loans/loanreassignment/template",{params:s})}createLoanReassignment(t){return this.http.post("/loans/loanreassignment",t)}getOffice(t,e=!1){let s=new r().set("template",e.toString());return this.http.get(`/offices/${t}`,{params:s})}createOffice(t){return this.http.post("/offices",t)}updateOffice(t,e){return this.http.put(`/offices/${t}`,e)}getOfficeDatatables(){let t=new r().set("apptable","m_office");return this.http.get("/datatables",{params:t})}getOfficeDatatable(t,e){let s=new r().set("genericResultSet","true");return this.http.get(`/datatables/${e}/${t}`,{params:s})}addOfficeDatatableEntry(t,e,s){let n=new r().set("genericResultSet","true");return this.http.post(`/datatables/${e}/${t}`,s,{params:n})}editOfficeDatatableEntry(t,e,s){let n=new r().set("genericResultSet","true");return this.http.put(`/datatables/${e}/${t}`,s,{params:n})}deleteDatatableContent(t,e){let s=new r().set("genericResultSet","true");return this.http.delete(`/datatables/${e}/${t}`,{params:s})}getEmployees(){let t=new r().set("status","all");return this.http.get("/staff",{params:t})}createEmployee(t){return this.http.post("/staff",t)}getEmployee(t,e=!0){let s=new r().set("template",e.toString());return this.http.get(`/staff/${t}`,{params:s})}getCurrencies(){return this.http.get("/currencies")}updateCurrencies(t){return this.http.put("/currencies",{currencies:t})}getSmsCampaigns(){return this.http.get("/smscampaigns")}getSmsCampaign(t){return this.http.get(`/smscampaigns/${t}`)}createSmsCampaign(t){return this.http.post("/smscampaigns",t)}updateSmsCampaign(t,e){return this.http.put(`/smscampaigns/${e}`,t)}deleteSmsCampaign(t){return this.http.delete(`/smscampaigns/${t}`)}getSmsCampaignTemplate(){return this.http.get("/smscampaigns/template")}executeSmsCampaignCommand(t,e,s){let n=new r().set("command",s.toString());return this.http.post(`/smscampaigns/${t}`,e,{params:n})}getMessagebyStatus(t){let e=new r().set("status",t.status.toString()).set("locale",t.locale).set("dateFormat",t.dateFormat);return e=t.fromDate?e.set("fromDate",t.fromDate):e,e=t.toDate?e.set("toDate",t.toDate):e,this.http.get(`/sms/${t.id}/messageByStatus`,{params:e})}getAdhocQueries(){return this.http.get("/adhocquery")}getAdhocQuery(t){return this.http.get(`/adhocquery/${t}`)}getAdhocQueryTemplate(){return this.http.get("/adhocquery/template")}getAdhocQueryAndTemplate(t){let e=new r().set("template","true");return this.http.get(`/adhocquery/${t}`,{params:e})}createAdhocQuery(t){return this.http.post("/adhocquery",t)}updateAdhocQuery(t,e){return this.http.put(`/adhocquery/${t}`,e)}deleteAdhocQuery(t){return this.http.delete(`/adhocquery/${t}`)}getTellers(){return this.http.get("/tellers")}getTeller(t){return this.http.get(`/tellers/${t}`)}getCashiers(t){return this.http.get(`/tellers/${t}/cashiers`)}getCashier(t,e){return this.http.get(`/tellers/${t}/cashiers/${e}`)}getCashierSummaryAndTransactions(t,e,s){let n=new r().set("currencyCode",s);return this.http.get(`/tellers/${t}/cashiers/${e}/summaryandtransactions`,{params:n})}getCashierTransactionTemplate(t,e){return this.http.get(`/tellers/${t}/cashiers/${e}/transactions/template`)}createCashier(t,e){return this.http.post(`/tellers/${t}/cashiers`,e)}deleteCashier(t,e){return this.http.delete(`/tellers/${t}/cashiers/${e}`)}settleCash(t,e,s){let n=new r().set("command","settle");return this.http.post(`/tellers/${t}/cashiers/${e}/settle`,s,{params:n})}allocateCash(t,e,s){let n=new r().set("command","allocate");return this.http.post(`/tellers/${t}/cashiers/${e}/allocate`,s,{params:n})}getCashierTemplate(t){return this.http.get(`/tellers/${t}/cashiers/template`)}updateCashier(t,e,s){return this.http.put(`/tellers/${t}/cashiers/${e}`,s)}deleteTeller(t){return this.http.delete(`/tellers/${t}`)}createTeller(t){return this.http.post("/tellers",t)}getPaymentTypes(){return this.http.get("/paymenttypes")}getPaymentTypesWithCode(){return this.http.get("/paymenttypes?onlyWithCode=true")}createPaymentType(t){return this.http.post("/paymenttypes",t)}deletePaymentType(t){return this.http.delete(`/paymenttypes/${t}`)}getPaymentType(t){return this.http.get(`/paymenttypes/${t}`)}updatePaymentType(t,e){return this.http.put(`/paymenttypes/${t}`,e)}getPasswordPreferencesTemplate(){return this.http.get("/passwordpreferences/template")}updatePasswordPreferences(t){return this.http.put("/passwordpreferences",t)}getEntityDataTableChecks(t=0,e=-1){let s=new r().set("offset",t.toString()).set("limit",e.toString());return this.http.get("/entityDatatableChecks",{params:s})}getEntityDataTableChecksTemplate(){return this.http.get("/entityDatatableChecks/template")}createEntityDataTableChecks(t){return this.http.post("/entityDatatableChecks",t)}deleteEntityDataTableCheck(t){return this.http.delete(`/entityDatatableChecks/${t}`)}getWorkingDays(){return this.http.get("/workingdays")}updateWorkingDays(t){return this.http.put("/workingdays",t)}getHolidays(t){let e=new r().set("officeId",t.toString());return this.http.get("/holidays",{params:e})}getHoliday(t){return this.http.get(`/holidays/${t}`)}getHolidayTemplate(){return this.http.get("/holidays/template")}createHoliday(t){return this.http.post("/holidays",t)}updateHoliday(t,e){return this.http.put(`/holidays/${t}`,e)}deleteHoliday(t){return this.http.delete(`/holidays/${t}`)}activateHoliday(t){let e=new r().set("command","activate");return this.http.post(`/holidays/${t}`,null,{params:e})}updateEmployee(t,e){return this.http.put(`/staff/${t}`,e)}updateTeller(t,e){return this.http.put(`/tellers/${t}`,e)}getFunds(){return this.http.get("/funds")}getFund(t){return this.http.get(`/funds/${t}`)}createFund(t){return this.http.post("/funds",t)}editFund(t,e){return this.http.put(`/funds/${t}`,e)}getStaffs(t){let e=new r().set("officeId",t).set("status","all");return this.http.get("/staff",{params:e})}getCenters(t){let e=new r().set("officeId",t).set("status","all");return this.http.get("/centers",{params:e})}getGroups(t){let e=new r().set("officeId",t).set("status","all");return this.http.get("/groups",{params:e})}getStaff(t){let e=new r().set("officeId",t.toString());return this.http.get("/staff",{params:e})}getImports(t){let e=new r().set("entityType",t);return this.http.get("/imports",{params:e})}getAdvanceSearchTemplate(){return this.http.get("/search/template")}retrieveAdvanceSearchResults(t){return this.http.post("/search/advance",t)}getStandingInstructionTemplate(){return this.http.get("/standinginstructions/template")}getStandingInstructions(t){let e=new r;for(let s in t)t[s]!==""&&t[s]!==null&&(e=e.set(s,t[s]));return this.http.get("/standinginstructionrunhistory",{params:e})}getImportTemplate(t,e,s,n){let i=new r().set("tenantIdentifier","default").set("locale",this.settingsService.language.code).set("dateFormat",this.settingsService.dateFormat);return e&&(i=i.set("officeId",e.toString())),s&&(i=i.set("staffId",s.toString())),n.length&&(i=i.set("legalFormType",n)),this.http.get(`${t}/downloadtemplate`,{params:i,responseType:"arraybuffer",observe:"response"})}getImportDocument(t){let e=new r().set("importDocumentId",t).set("tenantIdentifier","default");return this.http.get("/imports/downloadOutputTemplate",{params:e,responseType:"arraybuffer",observe:"response"})}uploadImportDocument(t,e,s){let n=new r;s.length&&(n=n.set("legalFormType",s));let i=new FormData;return i.append("file",t),i.append("locale",this.settingsService.language.code),i.append("dateFormat",this.settingsService.dateFormat),this.http.post(`${e}/uploadtemplate`,i,{params:n})}static{this.\u0275fac=function(e){return new(e||a)(p(u),p(c))}}static{this.\u0275prov=o({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();var k=(()=>{class a{constructor(){this.defaultDate="9999-12-31"}validateStatus(t,e){return t!=null?t.status===e:!1}itemCurrentStatus(t){return this.isBuyBackPending(t)?t.status+" PENDING":t.status}itemStatus(t){return"status-"+t.toLowerCase()}isPending(t){return t.status==="PENDING"}isPendingOrCanceled(t){return t.status==="PENDING"||t.status==="CANCELLED"||this.isBuyBackPending(t)}isBuyBackPending(t){return t.status==="BUYBACK"&&t.effectiveTo===this.defaultDate}canBeCancelled(t){return this.validateStatus(t,"PENDING")}canBeSold(t){return t==null?!0:["","CANCELLED"].includes(t.status)||t.status==="BUYBACK"&&t.effectiveTo!==this.defaultDate}canBeBuyed(t){return this.validateStatus(t,"ACTIVE")}static{this.\u0275fac=function(e){return new(e||a)}}static{this.\u0275prov=o({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();export{E as a,T as b,b as c,F as d,k as e}; diff --git a/browser/collaterals.module-IQLSLLN7.js b/browser/collaterals.module-OVTOQQC3.js similarity index 99% rename from browser/collaterals.module-IQLSLLN7.js rename to browser/collaterals.module-OVTOQQC3.js index e5ea10017..e0804cb7f 100644 --- a/browser/collaterals.module-IQLSLLN7.js +++ b/browser/collaterals.module-OVTOQQC3.js @@ -1,4 +1,4 @@ -import{Bb as Y,Dd as ft,E,Ec as tt,F as y,Fa as t,Fd as xt,Ga as c,H as w,Ha as h,Ia as b,Ic as et,Id as ht,Jc as it,K as Q,Kc as at,L as z,Lc as nt,Md as bt,Mf as Rt,Pa as B,Pf as Pt,Qc as lt,Sa as m,Ta as p,Tb as F,Tc as ot,Ve as vt,Wb as O,Wc as rt,We as gt,Xb as V,Xe as _t,Yf as Tt,Zb as U,Zc as mt,Ze as St,_ as o,_e as Dt,ac as L,af as It,bd as pt,bf as Mt,ca as f,cb as W,da as R,dd as A,df as Et,ea as P,ed as j,ef as yt,gf as wt,ha as d,hd as H,ja as C,jd as st,na as i,nc as Z,nd as ct,oa as a,od as dt,pa as u,qa as D,qb as g,ra as I,rg as Bt,sd as ut,ta as J,ua as T,ud as Ct,va as K,wc as N,yb as X}from"./chunk-KX2ZKPHO.js";import"./chunk-O7S4L63H.js";var _=(()=>{class e{constructor(n){this.http=n}getFilteredClients(n,l,r,x,v){let S=new X().set("displayName",x).set("orphansOnly",r.toString()).set("sortOrder",l).set("orderBy",n);return v&&(S=S.set("officeId",v)),this.http.get("/clients",{params:S})}getClientCollateral(n,l){return this.http.get(`/clients/${n}/collaterals/${l}`)}updateClientCollateral(n,l,r){return this.http.put(`/clients/${n}/collaterals/${l}`,r)}deleteCollateral(n,l){return this.http.delete(`/clients/${n}/collaterals/${l}`)}static{this.\u0275fac=function(l){return new(l||e)(w(Y))}}static{this.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Ht=()=>["edit"];function qt(e,s){e&1&&(i(0,"button",16),t(1,` +import{Bb as Y,Dd as ft,E,Ec as tt,F as y,Fa as t,Fd as xt,Ga as c,H as w,Ha as h,Ia as b,Ic as et,Id as ht,Jc as it,K as Q,Kc as at,L as z,Lc as nt,Md as bt,Mf as Rt,Pa as B,Pf as Pt,Qc as lt,Sa as m,Ta as p,Tb as F,Tc as ot,Ve as vt,Wb as O,Wc as rt,We as gt,Xb as V,Xe as _t,Yf as Tt,Zb as U,Zc as mt,Ze as St,_ as o,_e as Dt,ac as L,af as It,bd as pt,bf as Mt,ca as f,cb as W,da as R,dd as A,df as Et,ea as P,ed as j,ef as yt,gf as wt,ha as d,hd as H,ja as C,jd as st,na as i,nc as Z,nd as ct,oa as a,od as dt,pa as u,qa as D,qb as g,ra as I,rg as Bt,sd as ut,ta as J,ua as T,ud as Ct,va as K,wc as N,yb as X}from"./chunk-2BUEM4AN.js";import"./chunk-O7S4L63H.js";var _=(()=>{class e{constructor(n){this.http=n}getFilteredClients(n,l,r,x,v){let S=new X().set("displayName",x).set("orphansOnly",r.toString()).set("sortOrder",l).set("orderBy",n);return v&&(S=S.set("officeId",v)),this.http.get("/clients",{params:S})}getClientCollateral(n,l){return this.http.get(`/clients/${n}/collaterals/${l}`)}updateClientCollateral(n,l,r){return this.http.put(`/clients/${n}/collaterals/${l}`,r)}deleteCollateral(n,l){return this.http.delete(`/clients/${n}/collaterals/${l}`)}static{this.\u0275fac=function(l){return new(l||e)(w(Y))}}static{this.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Ht=()=>["edit"];function qt(e,s){e&1&&(i(0,"button",16),t(1,` `),u(2,"fa-icon",17),t(3),m(4,"translate"),a()),e&2&&(C("routerLink",B(4,Ht)),o(3),h(` `,p(4,2,"labels.buttons.Edit"),` `))}function kt(e,s){if(e&1){let n=J();i(0,"button",18),T("click",function(){Q(n);let r=K();return z(r.deleteCollateral())}),t(1,` diff --git a/browser/fixed-deposits.module-AK5OY6FO.js b/browser/fixed-deposits.module-KYMJW3C7.js similarity index 99% rename from browser/fixed-deposits.module-AK5OY6FO.js rename to browser/fixed-deposits.module-KYMJW3C7.js index ab0b8ffed..8b564ff78 100644 --- a/browser/fixed-deposits.module-AK5OY6FO.js +++ b/browser/fixed-deposits.module-KYMJW3C7.js @@ -1,4 +1,4 @@ -import{a as di}from"./chunk-2GVR7HS2.js";import{a as Fn,b as wn}from"./chunk-CP3ZQJ5C.js";import{a as mi}from"./chunk-5I7WSU35.js";import{$b as Be,$d as Je,Ad as Pt,Ba as _t,Bb as Hn,Bd as Mt,Ca as Ct,Cd as We,Ce as Qn,Da as ht,Dc as J,Dd as yt,E as Gt,Ea as R,Ec as H,Ed as It,F as $e,Fa as t,Fd as ue,Ga as u,Gf as ei,H as Lt,Ha as f,Ia as S,Ic as it,Id as st,J as te,Ja as se,Jb as Ee,Jc as V,K as P,Kb as Fe,Kc as X,L as M,Lc as at,Ld as De,Le as Yn,Lf as ni,Mb as ce,Md as ke,Me as Jn,Mf as fe,Nb as le,Nf as ii,Ob as we,Oc as Q,Of as ai,Pa as k,Pe as Xe,Pf as oi,Q as Le,Qa as Ge,Qc as ot,Qd as Ne,Qe as Ze,Rc as Kt,Re as tn,Sa as r,Sc as Ln,Se as en,Ta as c,Tb as N,Tc as rt,Td as Ke,Te as re,Tf as $t,Ua as F,Ub as zn,Ud as Qe,Ue as Qt,Vd as Ye,Ve as wt,W as qn,Wa as et,Wb as $,Wc as pt,Wd as xe,We as Bt,Xa as jn,Xb as Y,Xe as Rt,Yb as $n,Yf as ri,Zb as En,Zc as dt,Ze as kt,Zf as nn,_ as o,_e as Nt,_f as Ve,ab as Oe,ac as B,af as Vt,bb as vt,bd as ct,bf as qt,bg as pi,ca as _,cb as w,da as A,db as ye,dd as y,df as jt,ea as Ue,ed as G,ef as Ht,fd as Un,gd as Gn,gf as zt,gg as ci,ha as m,hd as ut,ia as Ae,ig as li,ja as d,jd as Dt,jf as be,kb as Ie,kd as Wn,lc as ee,mc as Re,md as Kn,na as n,nc as Wt,nd as Z,oa as i,oc as ne,od as xt,of as Xn,pa as g,pb as me,pc as ie,pf as Zn,qa as v,qb as O,qc as ae,qf as ti,qg as an,ra as D,rc as oe,rd as bt,rg as si,sd as tt,ta as I,td as Ft,ua as b,ud as lt,va as C,vd as At,wc as E,xd as Ot,ya as ft,yb as de,zd as St}from"./chunk-KX2ZKPHO.js";import{a as j,b as K}from"./chunk-O7S4L63H.js";var xi=()=>({confirm:!0}),on=(()=>{class e{constructor(a){this.dialogRef=a}static{this.\u0275fac=function(l){return new(l||e)(_(ee))}}static{this.\u0275cmp=A({type:e,selectors:[["mifosx-calculate-interest-dialog"]],decls:22,vars:14,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(l,p){l&1&&(n(0,"h1",0),t(1),r(2,"translate"),i(),t(3,` +import{a as di}from"./chunk-NQ7FRJVX.js";import{a as Fn,b as wn}from"./chunk-R2LWMVHI.js";import{a as mi}from"./chunk-7XDYUJUV.js";import{$b as Be,$d as Je,Ad as Pt,Ba as _t,Bb as Hn,Bd as Mt,Ca as Ct,Cd as We,Ce as Qn,Da as ht,Dc as J,Dd as yt,E as Gt,Ea as R,Ec as H,Ed as It,F as $e,Fa as t,Fd as ue,Ga as u,Gf as ei,H as Lt,Ha as f,Ia as S,Ic as it,Id as st,J as te,Ja as se,Jb as Ee,Jc as V,K as P,Kb as Fe,Kc as X,L as M,Lc as at,Ld as De,Le as Yn,Lf as ni,Mb as ce,Md as ke,Me as Jn,Mf as fe,Nb as le,Nf as ii,Ob as we,Oc as Q,Of as ai,Pa as k,Pe as Xe,Pf as oi,Q as Le,Qa as Ge,Qc as ot,Qd as Ne,Qe as Ze,Rc as Kt,Re as tn,Sa as r,Sc as Ln,Se as en,Ta as c,Tb as N,Tc as rt,Td as Ke,Te as re,Tf as $t,Ua as F,Ub as zn,Ud as Qe,Ue as Qt,Vd as Ye,Ve as wt,W as qn,Wa as et,Wb as $,Wc as pt,Wd as xe,We as Bt,Xa as jn,Xb as Y,Xe as Rt,Yb as $n,Yf as ri,Zb as En,Zc as dt,Ze as kt,Zf as nn,_ as o,_e as Nt,_f as Ve,ab as Oe,ac as B,af as Vt,bb as vt,bd as ct,bf as qt,bg as pi,ca as _,cb as w,da as A,db as ye,dd as y,df as jt,ea as Ue,ed as G,ef as Ht,fd as Un,gd as Gn,gf as zt,gg as ci,ha as m,hd as ut,ia as Ae,ig as li,ja as d,jd as Dt,jf as be,kb as Ie,kd as Wn,lc as ee,mc as Re,md as Kn,na as n,nc as Wt,nd as Z,oa as i,oc as ne,od as xt,of as Xn,pa as g,pb as me,pc as ie,pf as Zn,qa as v,qb as O,qc as ae,qf as ti,qg as an,ra as D,rc as oe,rd as bt,rg as si,sd as tt,ta as I,td as Ft,ua as b,ud as lt,va as C,vd as At,wc as E,xd as Ot,ya as ft,yb as de,zd as St}from"./chunk-2BUEM4AN.js";import{a as j,b as K}from"./chunk-O7S4L63H.js";var xi=()=>({confirm:!0}),on=(()=>{class e{constructor(a){this.dialogRef=a}static{this.\u0275fac=function(l){return new(l||e)(_(ee))}}static{this.\u0275cmp=A({type:e,selectors:[["mifosx-calculate-interest-dialog"]],decls:22,vars:14,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(l,p){l&1&&(n(0,"h1",0),t(1),r(2,"translate"),i(),t(3,` `),n(4,"div",1),t(5,` `),n(6,"p"),t(7),r(8,"translate"),i(),t(9,` `),i(),t(10,` @@ -2267,4 +2267,4 @@ import{a as di}from"./chunk-2GVR7HS2.js";import{a as Fn,b as wn}from"./chunk-CP3 `,p.fixedDepositsAccountData.maturityDate?c(61,47,p.fixedDepositsAccountData.maturityDate):"N/A",` `),o(7),u(c(68,49,"labels.inputs.Deposit Period")),o(4),S(` `,p.fixedDepositsAccountData.depositPeriod,"\xA0",F(72,51,p.fixedDepositsAccountData.depositPeriodFrequency.value,"catalogs"),` - `),o(4),d("ngIf",p.fixedDepositsAccountData.withHoldTax),o(2),d("ngIf",p.fixedDepositsAccountData.onAccountClosure),o(8),u(c(86,54,"labels.heading.Interest Details")),o(10),u(c(96,56,"labels.inputs.Interest Rate")),o(4),f("",p.fixedDepositsAccountData.nominalAnnualInterestRate," %"),o(6),u(c(106,58,"labels.inputs.Interest Compounding Period")),o(4),u(F(110,60,p.fixedDepositsAccountData.interestCompoundingPeriodType.value,"catalogs")),o(7),u(c(117,63,"labels.inputs.Interest Posting Period")),o(4),u(F(121,65,p.fixedDepositsAccountData.interestPostingPeriodType.value,"catalogs")),o(7),u(c(128,68,"labels.inputs.Interest Calculated Using")),o(4),u(F(132,70,p.fixedDepositsAccountData.interestCalculationType.value,"catalogs")),o(7),u(c(139,73,"labels.inputs.No. of Days in Year")),o(4),u(F(143,75,p.fixedDepositsAccountData.interestCalculationDaysInYearType.value,"catalogs")),o(4),d("ngIf",p.fixedDepositsAccountData.preClosurePenalApplicable),o(8),d("ngIf",!p.fixedDepositsAccountData.status.rejected&&!p.fixedDepositsAccountData.status.submittedAndPendingApproval)("ngIfElse",x)}},dependencies:[O,w,me,y,yt,E,It,ei],styles:[".fixed-deposits-account-tables[_ngcontent-%COMP%]{padding:1%}"]})}}return e})();var ll=[{path:"",data:{title:"All Fixed Deposits",breadcrumb:"Fixed Deposits",routeParamBreadcrumb:!1},children:[{path:"create",data:{title:"Create Fixed Deposit Account",breadcrumb:"Create Fixed Deposit Account"},component:An,resolve:{fixedDepositsAccountTemplate:Nn}},{path:":fixedDepositAccountId",data:{title:"Fixed Deposit Account View",routeParamBreadcrumb:"fixedDepositAccountId"},resolve:{fixedDepositsAccountData:yn},children:[{path:"",component:cn,resolve:{fixedDepositsAccountData:yn,savingsDatatables:wn},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:In,data:{title:"Fixed Deposit Account Details",breadcrumb:"General",routeParamBreadcrumb:!1}},{path:"interest-rate-chart",component:ln,data:{title:"Fixed Deposit Account Interest Rate Chart",breadcrumb:"Interest Rate Chart",routeParamBreadcrumb:!1}},{path:"transactions",component:sn,data:{title:"Fixed Deposit Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1}},{path:"charges",component:un,data:{title:"Fixed Deposit Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1}},{path:"standing-instructions",component:xn,data:{title:"Fixed Deposit Account Standing Instructions",breadcrumb:"Standing Instructions",routeParamBreadcrumb:!1}},{path:"datatables",children:[{path:":datatableName",component:fn,data:{title:"View Data Table",routeParamBreadcrumb:"datatableName"},resolve:{savingsDatatable:Fn}}]}]},{path:"edit",data:{title:"Edit Fixed Deposit Account",breadcrumb:"Edit",routeParamBreadcrumb:!1},component:On,resolve:{fixedDepositsAccountAndTemplate:Vn}},{path:"transactions",data:{title:"Fixed Deposits Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},children:[{path:"",redirectTo:"../transactions",pathMatch:"prefix"},{path:"account-transfers",loadChildren:()=>import("./account-transfers.module-3MJMMBU5.js").then(e=>e.AccountTransfersModule)},{path:":id",data:{routeParamBreadcrumb:"id"},children:[{path:"",component:Tn,resolve:{fixedDepositsAccountTransaction:Rn}}]}]},{path:"actions/:name",data:{title:"Fixed Deposits Account Actions",routeParamBreadcrumb:"name"},component:Mn,resolve:{fixedDepositsAccountActionData:kn}}]}]}],ui=(()=>{class e{static{this.\u0275fac=function(l){return new(l||e)}}static{this.\u0275mod=Ue({type:e})}static{this.\u0275inj=$e({providers:[yn,Fn,wn,Rn,kn,Nn,Vn],imports:[En.forChild(ll),En]})}}return e})();var Mg=(()=>{class e{static{this.\u0275fac=function(l){return new(l||e)}}static{this.\u0275mod=Ue({type:e})}static{this.\u0275inj=$e({imports:[si,oi,ri,ui,cn,sn,un,xn,ln,fn,Mn,gn,_n,rn,on,ze,Cn,hn,vn,Tn,mn,dn,Dn,bn,Sn,An,_e,Ce,ve,he,je,He,On,In,Pn]})}}return e})();export{Mg as FixedDepositsModule}; + `),o(4),d("ngIf",p.fixedDepositsAccountData.withHoldTax),o(2),d("ngIf",p.fixedDepositsAccountData.onAccountClosure),o(8),u(c(86,54,"labels.heading.Interest Details")),o(10),u(c(96,56,"labels.inputs.Interest Rate")),o(4),f("",p.fixedDepositsAccountData.nominalAnnualInterestRate," %"),o(6),u(c(106,58,"labels.inputs.Interest Compounding Period")),o(4),u(F(110,60,p.fixedDepositsAccountData.interestCompoundingPeriodType.value,"catalogs")),o(7),u(c(117,63,"labels.inputs.Interest Posting Period")),o(4),u(F(121,65,p.fixedDepositsAccountData.interestPostingPeriodType.value,"catalogs")),o(7),u(c(128,68,"labels.inputs.Interest Calculated Using")),o(4),u(F(132,70,p.fixedDepositsAccountData.interestCalculationType.value,"catalogs")),o(7),u(c(139,73,"labels.inputs.No. of Days in Year")),o(4),u(F(143,75,p.fixedDepositsAccountData.interestCalculationDaysInYearType.value,"catalogs")),o(4),d("ngIf",p.fixedDepositsAccountData.preClosurePenalApplicable),o(8),d("ngIf",!p.fixedDepositsAccountData.status.rejected&&!p.fixedDepositsAccountData.status.submittedAndPendingApproval)("ngIfElse",x)}},dependencies:[O,w,me,y,yt,E,It,ei],styles:[".fixed-deposits-account-tables[_ngcontent-%COMP%]{padding:1%}"]})}}return e})();var ll=[{path:"",data:{title:"All Fixed Deposits",breadcrumb:"Fixed Deposits",routeParamBreadcrumb:!1},children:[{path:"create",data:{title:"Create Fixed Deposit Account",breadcrumb:"Create Fixed Deposit Account"},component:An,resolve:{fixedDepositsAccountTemplate:Nn}},{path:":fixedDepositAccountId",data:{title:"Fixed Deposit Account View",routeParamBreadcrumb:"fixedDepositAccountId"},resolve:{fixedDepositsAccountData:yn},children:[{path:"",component:cn,resolve:{fixedDepositsAccountData:yn,savingsDatatables:wn},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:In,data:{title:"Fixed Deposit Account Details",breadcrumb:"General",routeParamBreadcrumb:!1}},{path:"interest-rate-chart",component:ln,data:{title:"Fixed Deposit Account Interest Rate Chart",breadcrumb:"Interest Rate Chart",routeParamBreadcrumb:!1}},{path:"transactions",component:sn,data:{title:"Fixed Deposit Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1}},{path:"charges",component:un,data:{title:"Fixed Deposit Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1}},{path:"standing-instructions",component:xn,data:{title:"Fixed Deposit Account Standing Instructions",breadcrumb:"Standing Instructions",routeParamBreadcrumb:!1}},{path:"datatables",children:[{path:":datatableName",component:fn,data:{title:"View Data Table",routeParamBreadcrumb:"datatableName"},resolve:{savingsDatatable:Fn}}]}]},{path:"edit",data:{title:"Edit Fixed Deposit Account",breadcrumb:"Edit",routeParamBreadcrumb:!1},component:On,resolve:{fixedDepositsAccountAndTemplate:Vn}},{path:"transactions",data:{title:"Fixed Deposits Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},children:[{path:"",redirectTo:"../transactions",pathMatch:"prefix"},{path:"account-transfers",loadChildren:()=>import("./account-transfers.module-DO6BMPA2.js").then(e=>e.AccountTransfersModule)},{path:":id",data:{routeParamBreadcrumb:"id"},children:[{path:"",component:Tn,resolve:{fixedDepositsAccountTransaction:Rn}}]}]},{path:"actions/:name",data:{title:"Fixed Deposits Account Actions",routeParamBreadcrumb:"name"},component:Mn,resolve:{fixedDepositsAccountActionData:kn}}]}]}],ui=(()=>{class e{static{this.\u0275fac=function(l){return new(l||e)}}static{this.\u0275mod=Ue({type:e})}static{this.\u0275inj=$e({providers:[yn,Fn,wn,Rn,kn,Nn,Vn],imports:[En.forChild(ll),En]})}}return e})();var Mg=(()=>{class e{static{this.\u0275fac=function(l){return new(l||e)}}static{this.\u0275mod=Ue({type:e})}static{this.\u0275inj=$e({imports:[si,oi,ri,ui,cn,sn,un,xn,ln,fn,Mn,gn,_n,rn,on,ze,Cn,hn,vn,Tn,mn,dn,Dn,bn,Sn,An,_e,Ce,ve,he,je,He,On,In,Pn]})}}return e})();export{Mg as FixedDepositsModule}; diff --git a/browser/index.html b/browser/index.html index 5f5100526..19e628ff4 100644 --- a/browser/index.html +++ b/browser/index.html @@ -57,5 +57,5 @@
- + diff --git a/browser/loans.module-455IG6WF.js b/browser/loans.module-CZ4MCVAE.js similarity index 99% rename from browser/loans.module-455IG6WF.js rename to browser/loans.module-CZ4MCVAE.js index a81eaeea0..f05109119 100644 --- a/browser/loans.module-455IG6WF.js +++ b/browser/loans.module-CZ4MCVAE.js @@ -1,4 +1,4 @@ -import{a as hf}from"./chunk-EIMWP6JY.js";import{a as W1,b as Lr,c as Nr,d as Oc,e as Ec}from"./chunk-D4UX3TYT.js";import{a as Mc,b as ld,c as gf,d as xf}from"./chunk-3XID6S56.js";import{a as hi}from"./chunk-FK6H3RFT.js";import{a as ff}from"./chunk-5I7WSU35.js";import{$b as ja,$d as Cc,$e as Dc,$f as a0,A as T1,Ad as Ke,Ba as si,Bd as Je,Ca as ci,Cc as Jl,Cd as wa,Ce as So,Da as pi,Dc as ce,Dd as On,E as an,Ea as Et,Ec as ie,Ed as qa,Ef as tf,F as fc,Fa as e,Fd as be,Ff as ef,Ga as C,Gb as Hl,Gc as B1,Gf as Va,H as sn,Ha as y,Hf as nf,Ia as Wt,Ic as xe,Id as cn,J as Er,Ja as Qs,Jc as Gt,K as ct,Ka as t0,Kc as me,Kd as $1,Kf as af,L as pt,La as e0,Lc as Te,Ld as fi,Le as mo,Lf as Tc,Ma as n0,Md as ra,Me as Do,Mf as pn,Na as i0,Nd as Y1,Ne as yc,Nf as Ic,Oc as se,Of as ns,Pa as Ut,Pc as j1,Pd as xc,Pe as Xl,Pf as of,Q as Ul,Qa as La,Qc as Le,Qd as qo,Qe as Ql,Qf as is,Rc as Ti,Re as ts,Sa as p,Sc as jo,Se as es,Sf as Pt,Ta as u,Tb as Ot,Tc as Ie,Td as _c,Te as uo,U as I1,Ua as ze,Ub as N1,Ud as vc,Ue as za,Uf as rf,Va as M1,Vd as bc,Ve as fn,W as od,Wa as Ue,Wb as oe,Wc as Ae,Wd as Ii,We as hn,Wf as lf,X as hc,Xb as te,Xc as q1,Xe as gn,Yb as F1,Yc as z1,Ye as Sc,Yf as sf,Zb as rd,Zc as ke,Ze as xn,Zf as la,_ as s,_e as _n,_f as Pi,ab as pa,ac as $t,af as vn,b as D1,ba as A1,bb as on,bd as _e,bf as bn,bg as cf,c as w1,ca as E,cb as Vt,cd as V1,cf as wc,cg as pf,da as yt,dd as Dt,de as da,df as Cn,e as P1,ea as gc,ed as fe,ef as yn,fd as U1,ff as Pc,gd as H1,gf as Sn,gg as mf,ha as g,hd as De,ia as oa,ib as E1,ig as df,ja as h,jd as Re,jf as Mi,kd as G1,lc as Gl,mc as Wl,na as r,nc as Qn,nd as de,oa as l,ob as L1,oc as $l,od as Be,of as J1,pa as P,pb as Da,pc as Yl,pe as Z1,pf as X1,pg as Ac,qa as V,qb as St,qc as Zl,qe as K1,qf as Q1,qg as Xi,ra as U,rc as Kl,rd as $e,rg as uf,sd as ue,ta as vt,td as Vn,ua as it,ud as ve,va as I,vc as ma,vd as In,wc as It,xc as k1,xd as An,ya as le,yc as R1,za as O1,zd as Ze}from"./chunk-KX2ZKPHO.js";import{a as ae,b as we,d as S1}from"./chunk-O7S4L63H.js";var Lc=class{constructor(i,n){this.setOptions(i,n),this.setButtons(i)}get singleButtons(){return this.buttonsArray}get options(){return this.optionArray}get optionsPayment(){return this.optionPaymentArray}setButtons(i){switch(i){case"Active":this.buttonsArray=[{name:"Add Loan Charge",icon:"plus",taskPermissionName:"CREATE_LOANCHARGE"},{name:"Foreclosure",icon:"heart-broken",taskPermissionName:"FORECLOSURE_LOAN"},{name:"Make Repayment",icon:"coins",taskPermissionName:"REPAYMENT_LOAN"},{name:"Undo Disbursal",icon:"undo",taskPermissionName:"DISBURSALUNDO_LOAN"}];break;case"Submitted and pending approval":this.buttonsArray=[{name:"Add Loan Charge",icon:"plus",taskPermissionName:"CREATE_LOANCHARGE"},{name:"Approve",icon:"check",taskPermissionName:"APPROVE_LOAN"},{name:"Modify Application",icon:"edit",taskPermissionName:"UPDATE_LOAN"},{name:"Reject",icon:"times",taskPermissionName:"REJECT_LOAN"}];break;case"Approved":this.buttonsArray=[{name:"Disburse",icon:"hand-holding-usd",taskPermissionName:"DISBURSE_LOAN"},{name:"Disburse to Savings",icon:"piggy-bank",taskPermissionName:"DISBURSETOSAVINGS_LOAN"},{name:"Undo Approval",icon:"undo",taskPermissionName:"APPROVALUNDO_LOAN"}];break;case"Overpaid":this.buttonsArray=[{name:"Transfer Funds",icon:"exchange",taskPermissionName:"CREATE_ACCOUNTTRANSFER"},{name:"Credit Balance Refund",icon:"coins",taskPermissionName:"CREATE_CREDIT_BALANCE_REFUND"}];break;case"Closed (written off)":this.buttonsArray=[{name:"Recovery Payment",icon:"briefcase",taskPermissionName:"RECOVERYPAYMENT_LOAN"},{name:"Undo Write-off",icon:"undo",taskPermissionName:"UNDOWRITEOFF_LOAN"}];break;case"Closed (obligations met)":this.buttonsArray=[{name:"Goodwill Credit",icon:"coins",taskPermissionName:"CREATE_GOODWILL_TRANSACTION"},{name:"Interest Payment Waiver",icon:"coins",taskPermissionName:"CREATE_INTERESTPAYMENTWAIVER_TRANSACTION"},{name:"Payout Refund",icon:"coins",taskPermissionName:"CREATE_PAYOUT_REFUND"},{name:"Merchant Issued Refund",icon:"coins",taskPermissionName:"CREATE_MERCHANT_ISSUED_REFUND"}];break;default:this.buttonsArray=[]}}setOptions(i,n){switch(i){case"Active":this.optionArray=[{name:"Waive Interest",taskPermissionName:"WAIVEINTERESTPORTION_LOAN"},{name:"Reschedule",taskPermissionName:"CREATE_RESCHEDULELOAN"},{name:"Write Off",taskPermissionName:"WRITEOFF_LOAN"},{name:"Close (as Rescheduled)",taskPermissionName:"CLOSEASRESCHEDULED_LOAN"},{name:"Close",taskPermissionName:"CLOSE_LOAN"},{name:"Loan Screen Report",taskPermissionName:"READ_LOAN"},{name:"View Guarantors",taskPermissionName:"READ_GUARANTOR"},{name:"Create Guarantor",taskPermissionName:"CREATE_GUARANTOR"},{name:"Recover From Guarantor",taskPermissionName:"RECOVERGUARANTEES_LOAN"},{name:"Sell Loan",taskPermissionName:"SALE_LOAN"}],this.isContractTermination(n)||this.optionArray.push({name:"Contract Termination",taskPermissionName:"CONTRACT_TERMINATION_LOAN"}),this.optionPaymentArray=[{name:"Goodwill Credit",taskPermissionName:"CREATE_GOODWILL_TRANSACTION"},{name:"Interest Payment Waiver",taskPermissionName:"CREATE_INTERESTPAYMENTWAIVER_TRANSACTION"},{name:"Payout Refund",taskPermissionName:"CREATE_PAYOUT_REFUND"},{name:"Merchant Issued Refund",taskPermissionName:"CREATE_MERCHANT_ISSUED_REFUND"}];break;case"Submitted and pending approval":this.optionArray=[{name:"Withdrawn by Client",taskPermissionName:"WITHDRAW_LOAN"},{name:"Delete",taskPermissionName:"DELETE_LOAN"},{name:"Add Collateral",taskPermissionName:"CREATE_COLLATERAL"},{name:"View Guarantors",taskPermissionName:"READ_GUARANTOR"},{name:"Create Guarantor",taskPermissionName:"CREATE_GUARANTOR"},{name:"Loan Screen Reports",taskPermissionName:"READ_LOAN"}],this.optionPaymentArray=[];break;case"Approved":this.optionArray=[{name:"Add Loan Charge",taskPermissionName:"CREATE_LOANCHARGE"},{name:"View Guarantors",taskPermissionName:"READ_GUARANTOR"},{name:"Create Guarantor",taskPermissionName:"CREATE_GUARANTOR"},{name:"Loan Screen Report",taskPermissionName:"READ_LOAN"}],this.optionPaymentArray=[];break;default:this.optionArray=[],this.optionPaymentArray=[]}}addOption(i){this.optionArray.push(i)}addButton(i){this.buttonsArray.push(i)}isContractTermination(i){return i==null?!1:i.code==="loanSubStatus.loanSubStatusType.contractTermination"}};var mx=()=>["./general"],dx=()=>["./accountdetail"],ux=()=>["./repayment-schedule"],fx=()=>["./loan-documents"],hx=()=>["./original-schedule"],gx=()=>["./transactions"],xx=()=>["./deferred-income"],_x=()=>["./buy-down-fees"],vx=()=>["./delinquencytags"],bx=()=>["./loan-collateral"],Cx=()=>["./loan-tranche-details"],yx=()=>["./term-variations"],Sx=()=>["./overdue-charges"],Dx=()=>["./floating-interest-rates"],wx=()=>["./charges"],Px=()=>["./loan-reschedules"],Tx=()=>["./notes"],Ix=()=>["./standing-instruction"],Ax=()=>["./external-asset-owner"],Ox=t=>["./datatables",t];function Mx(t,i){if(t&1&&(r(0,"tr"),e(1,` +import{a as hf}from"./chunk-VYSWMZL6.js";import{a as W1,b as Lr,c as Nr,d as Oc,e as Ec}from"./chunk-ZWPHYTML.js";import{a as Mc,b as ld,c as gf,d as xf}from"./chunk-JRMODJLE.js";import{a as hi}from"./chunk-FK6H3RFT.js";import{a as ff}from"./chunk-7XDYUJUV.js";import{$b as ja,$d as Cc,$e as Dc,$f as a0,A as T1,Ad as Ke,Ba as si,Bd as Je,Ca as ci,Cc as Jl,Cd as wa,Ce as So,Da as pi,Dc as ce,Dd as On,E as an,Ea as Et,Ec as ie,Ed as qa,Ef as tf,F as fc,Fa as e,Fd as be,Ff as ef,Ga as C,Gb as Hl,Gc as B1,Gf as Va,H as sn,Ha as y,Hf as nf,Ia as Wt,Ic as xe,Id as cn,J as Er,Ja as Qs,Jc as Gt,K as ct,Ka as t0,Kc as me,Kd as $1,Kf as af,L as pt,La as e0,Lc as Te,Ld as fi,Le as mo,Lf as Tc,Ma as n0,Md as ra,Me as Do,Mf as pn,Na as i0,Nd as Y1,Ne as yc,Nf as Ic,Oc as se,Of as ns,Pa as Ut,Pc as j1,Pd as xc,Pe as Xl,Pf as of,Q as Ul,Qa as La,Qc as Le,Qd as qo,Qe as Ql,Qf as is,Rc as Ti,Re as ts,Sa as p,Sc as jo,Se as es,Sf as Pt,Ta as u,Tb as Ot,Tc as Ie,Td as _c,Te as uo,U as I1,Ua as ze,Ub as N1,Ud as vc,Ue as za,Uf as rf,Va as M1,Vd as bc,Ve as fn,W as od,Wa as Ue,Wb as oe,Wc as Ae,Wd as Ii,We as hn,Wf as lf,X as hc,Xb as te,Xc as q1,Xe as gn,Yb as F1,Yc as z1,Ye as Sc,Yf as sf,Zb as rd,Zc as ke,Ze as xn,Zf as la,_ as s,_e as _n,_f as Pi,ab as pa,ac as $t,af as vn,b as D1,ba as A1,bb as on,bd as _e,bf as bn,bg as cf,c as w1,ca as E,cb as Vt,cd as V1,cf as wc,cg as pf,da as yt,dd as Dt,de as da,df as Cn,e as P1,ea as gc,ed as fe,ef as yn,fd as U1,ff as Pc,gd as H1,gf as Sn,gg as mf,ha as g,hd as De,ia as oa,ib as E1,ig as df,ja as h,jd as Re,jf as Mi,kd as G1,lc as Gl,mc as Wl,na as r,nc as Qn,nd as de,oa as l,ob as L1,oc as $l,od as Be,of as J1,pa as P,pb as Da,pc as Yl,pe as Z1,pf as X1,pg as Ac,qa as V,qb as St,qc as Zl,qe as K1,qf as Q1,qg as Xi,ra as U,rc as Kl,rd as $e,rg as uf,sd as ue,ta as vt,td as Vn,ua as it,ud as ve,va as I,vc as ma,vd as In,wc as It,xc as k1,xd as An,ya as le,yc as R1,za as O1,zd as Ze}from"./chunk-2BUEM4AN.js";import{a as ae,b as we,d as S1}from"./chunk-O7S4L63H.js";var Lc=class{constructor(i,n){this.setOptions(i,n),this.setButtons(i)}get singleButtons(){return this.buttonsArray}get options(){return this.optionArray}get optionsPayment(){return this.optionPaymentArray}setButtons(i){switch(i){case"Active":this.buttonsArray=[{name:"Add Loan Charge",icon:"plus",taskPermissionName:"CREATE_LOANCHARGE"},{name:"Foreclosure",icon:"heart-broken",taskPermissionName:"FORECLOSURE_LOAN"},{name:"Make Repayment",icon:"coins",taskPermissionName:"REPAYMENT_LOAN"},{name:"Undo Disbursal",icon:"undo",taskPermissionName:"DISBURSALUNDO_LOAN"}];break;case"Submitted and pending approval":this.buttonsArray=[{name:"Add Loan Charge",icon:"plus",taskPermissionName:"CREATE_LOANCHARGE"},{name:"Approve",icon:"check",taskPermissionName:"APPROVE_LOAN"},{name:"Modify Application",icon:"edit",taskPermissionName:"UPDATE_LOAN"},{name:"Reject",icon:"times",taskPermissionName:"REJECT_LOAN"}];break;case"Approved":this.buttonsArray=[{name:"Disburse",icon:"hand-holding-usd",taskPermissionName:"DISBURSE_LOAN"},{name:"Disburse to Savings",icon:"piggy-bank",taskPermissionName:"DISBURSETOSAVINGS_LOAN"},{name:"Undo Approval",icon:"undo",taskPermissionName:"APPROVALUNDO_LOAN"}];break;case"Overpaid":this.buttonsArray=[{name:"Transfer Funds",icon:"exchange",taskPermissionName:"CREATE_ACCOUNTTRANSFER"},{name:"Credit Balance Refund",icon:"coins",taskPermissionName:"CREATE_CREDIT_BALANCE_REFUND"}];break;case"Closed (written off)":this.buttonsArray=[{name:"Recovery Payment",icon:"briefcase",taskPermissionName:"RECOVERYPAYMENT_LOAN"},{name:"Undo Write-off",icon:"undo",taskPermissionName:"UNDOWRITEOFF_LOAN"}];break;case"Closed (obligations met)":this.buttonsArray=[{name:"Goodwill Credit",icon:"coins",taskPermissionName:"CREATE_GOODWILL_TRANSACTION"},{name:"Interest Payment Waiver",icon:"coins",taskPermissionName:"CREATE_INTERESTPAYMENTWAIVER_TRANSACTION"},{name:"Payout Refund",icon:"coins",taskPermissionName:"CREATE_PAYOUT_REFUND"},{name:"Merchant Issued Refund",icon:"coins",taskPermissionName:"CREATE_MERCHANT_ISSUED_REFUND"}];break;default:this.buttonsArray=[]}}setOptions(i,n){switch(i){case"Active":this.optionArray=[{name:"Waive Interest",taskPermissionName:"WAIVEINTERESTPORTION_LOAN"},{name:"Reschedule",taskPermissionName:"CREATE_RESCHEDULELOAN"},{name:"Write Off",taskPermissionName:"WRITEOFF_LOAN"},{name:"Close (as Rescheduled)",taskPermissionName:"CLOSEASRESCHEDULED_LOAN"},{name:"Close",taskPermissionName:"CLOSE_LOAN"},{name:"Loan Screen Report",taskPermissionName:"READ_LOAN"},{name:"View Guarantors",taskPermissionName:"READ_GUARANTOR"},{name:"Create Guarantor",taskPermissionName:"CREATE_GUARANTOR"},{name:"Recover From Guarantor",taskPermissionName:"RECOVERGUARANTEES_LOAN"},{name:"Sell Loan",taskPermissionName:"SALE_LOAN"}],this.isContractTermination(n)||this.optionArray.push({name:"Contract Termination",taskPermissionName:"CONTRACT_TERMINATION_LOAN"}),this.optionPaymentArray=[{name:"Goodwill Credit",taskPermissionName:"CREATE_GOODWILL_TRANSACTION"},{name:"Interest Payment Waiver",taskPermissionName:"CREATE_INTERESTPAYMENTWAIVER_TRANSACTION"},{name:"Payout Refund",taskPermissionName:"CREATE_PAYOUT_REFUND"},{name:"Merchant Issued Refund",taskPermissionName:"CREATE_MERCHANT_ISSUED_REFUND"}];break;case"Submitted and pending approval":this.optionArray=[{name:"Withdrawn by Client",taskPermissionName:"WITHDRAW_LOAN"},{name:"Delete",taskPermissionName:"DELETE_LOAN"},{name:"Add Collateral",taskPermissionName:"CREATE_COLLATERAL"},{name:"View Guarantors",taskPermissionName:"READ_GUARANTOR"},{name:"Create Guarantor",taskPermissionName:"CREATE_GUARANTOR"},{name:"Loan Screen Reports",taskPermissionName:"READ_LOAN"}],this.optionPaymentArray=[];break;case"Approved":this.optionArray=[{name:"Add Loan Charge",taskPermissionName:"CREATE_LOANCHARGE"},{name:"View Guarantors",taskPermissionName:"READ_GUARANTOR"},{name:"Create Guarantor",taskPermissionName:"CREATE_GUARANTOR"},{name:"Loan Screen Report",taskPermissionName:"READ_LOAN"}],this.optionPaymentArray=[];break;default:this.optionArray=[],this.optionPaymentArray=[]}}addOption(i){this.optionArray.push(i)}addButton(i){this.buttonsArray.push(i)}isContractTermination(i){return i==null?!1:i.code==="loanSubStatus.loanSubStatusType.contractTermination"}};var mx=()=>["./general"],dx=()=>["./accountdetail"],ux=()=>["./repayment-schedule"],fx=()=>["./loan-documents"],hx=()=>["./original-schedule"],gx=()=>["./transactions"],xx=()=>["./deferred-income"],_x=()=>["./buy-down-fees"],vx=()=>["./delinquencytags"],bx=()=>["./loan-collateral"],Cx=()=>["./loan-tranche-details"],yx=()=>["./term-variations"],Sx=()=>["./overdue-charges"],Dx=()=>["./floating-interest-rates"],wx=()=>["./charges"],Px=()=>["./loan-reschedules"],Tx=()=>["./notes"],Ix=()=>["./standing-instruction"],Ax=()=>["./external-asset-owner"],Ox=t=>["./datatables",t];function Mx(t,i){if(t&1&&(r(0,"tr"),e(1,` `),r(2,"td"),e(3),p(4,"translate"),l(),e(5,` `),r(6,"td"),e(7,` `),r(8,"span",49),P(9,"i",50),l(),e(10),l(),e(11,` @@ -6171,7 +6171,7 @@ end`};i.events.push(["putFont",function(c){(function(d){var m=d.font,x=d.out,v=d `),g(7,ZN,34,3,"table",1),e(8,` `),l(),e(9,` -`)),a&2&&(s(3),Wt("",u(4,3,"labels.inputs.Deferred income")," - ",u(5,5,"labels.menus.Capitalized Income"),""),s(4),h("ngIf",o.capitalizedIncomeData.length>0))},dependencies:[St,Vt,Dt,It,fn,xn,gn,_n,hn,vn,bn,yn,Cn,Sn,pn],encapsulation:2})}}return t})();var Ru=(()=>{class t{constructor(n){this.loansService=n}resolve(n){let a=n.paramMap.get("loanId")||n.parent.paramMap.get("loanId");return this.loansService.getDeferredIncomeData(a)}static{this.\u0275fac=function(a){return new(a||t)(sn(Pt))}}static{this.\u0275prov=an({token:t,factory:t.\u0275fac})}}return t})();var Bu=(()=>{class t{constructor(n){this.loansService=n}resolve(n){let a=n.paramMap.get("loanId")||n.parent.paramMap.get("loanId");return a?this.loansService.getBuyDownFeeData(a):(console.error("LoanBuyDownFeesDataResolver: Could not find loanId in route parameters"),new D1(o=>{o.next([]),o.complete()}))}static{this.\u0275fac=function(a){return new(a||t)(sn(Pt))}}static{this.\u0275prov=an({token:t,factory:t.\u0275fac})}}return t})();var KN=[{path:"",data:{title:"Loans",breadcrumb:"Loans",routeParamBreadcrumb:!1},children:[{path:"create",data:{title:"Create Loans Account",breadcrumb:"Create Loans Account"},component:sm,resolve:{loansAccountTemplate:Pu}},{path:":loanId",data:{title:"Loan View",routeParamBreadcrumb:"loanId"},component:Nc,resolve:{loanDetailsData:Wr,loanDatatables:_m,loanArrearsDelinquencyConfig:Cg},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:Fc,data:{title:"General",breadcrumb:"General",routeParamBreadcrumb:!1},resolve:{loanDetailsData:Wr,loanDatatables:_m}},{path:"accountdetail",component:kc,data:{title:"Account Detail",breadcrumb:"Account Detail",routeParamBreadcrumb:!1}},{path:"original-schedule",component:Sp,data:{title:"Original Schedule",breadcrumb:"Original Schedule",routeParamBreadcrumb:!1}},{path:"repayment-schedule",component:Ur,data:{title:"Repayment Schedule",breadcrumb:"Repayment Schedule",routeParamBreadcrumb:!1}},{path:"transactions",data:{title:"Loans Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},children:[{path:"",component:yp},{path:"export",component:hm}]},{path:"deferred-income",data:{title:"Loans Deferred Income",breadcrumb:"Deferred income",routeParamBreadcrumb:!1},resolve:{loanDeferredIncomeData:Ru},children:[{path:"",component:wg}]},{path:"delinquencytags",data:{title:"Loans Delinquency Tags",breadcrumb:"Delinquency Tags",routeParamBreadcrumb:!1},resolve:{loanDelinquencyTagsData:Lu,loanDelinquencyData:Fu,loanDelinquencyActions:Dg},children:[{path:"",component:ym}]},{path:"loan-reschedules",data:{},resolve:{loanRescheduleData:bg},children:[{path:"",component:Sm}]},{path:"loan-collateral",component:rm,data:{title:"Loan Collateral Details",breadcrumb:"Loan Collateral Details",routeParamBreadcrumb:!1},resolve:{loanCollaterals:Sg}},{path:"term-variations",component:Pm,data:{title:"Loan Term Variations",breadcrumb:"Loan Term Variations",routeParamBreadcrumb:!1},resolve:{loanDetailsData:Wr,interestPausesData:ku}},{path:"loan-tranche-details",component:om,data:{title:"Loan Tranche Details",breadcrumb:"Loan Tranche Details",routeParamBreadcrumb:!1}},{path:"overdue-charges",component:Dp,data:{title:"Overdue Charges",breadcrumb:"Overdue Charges",routeParamBreadcrumb:!1}},{path:"floating-interest-rates",component:am,data:{title:"Floating Interest Rates",breadcrumb:"Floating Interest Rates",routeParamBreadcrumb:!1}},{path:"charges",data:{title:"Loans Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1},component:wp},{path:"loan-documents",component:cm,data:{title:"Loan Documents",breadcrumb:"Loan Documents",routeParamBreadcrumb:!1},resolve:{loanDocuments:Tu}},{path:"notes",component:Rc,data:{title:"Notes",breadcrumb:"Notes",routeParamBreadcrumb:!1},resolve:{loanNotes:Su}},{path:"standing-instruction",component:pm,data:{title:"Standing Instructions",breadcrumb:"Standing Instructions",routeParamBreadcrumb:!1}},{path:"external-asset-owner",component:wm,data:{title:"External Asset Owner",breadcrumb:"External Asset Owner",routeParamBreadcrumb:!1},resolve:{activeTransferData:yg,loanTransfersData:Nu}},{path:"datatables",children:[{path:":datatableName",component:Pp,data:{title:"Data Table View",routeParamBreadcrumb:"datatableName"},resolve:{loanDatatable:Du}}]},{path:"buy-down-fees",component:vg,data:{title:"Buy Down Fees",breadcrumb:"Buy Down Fees",routeParamBreadcrumb:!1},resolve:{loanBuyDownFeesData:Bu}}]},{path:":loanId/transactions/:id",data:{title:"Loans Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},resolve:{loanDetailsAssociationData:Wr},children:[{path:"",data:{routeParamBreadcrumb:"id"},component:dm,resolve:{loansAccountTransaction:Iu}},{path:"edit",component:um,data:{breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{loansAccountTransactionTemplate:Ou}},{path:"reciept",component:fm,data:{breadcrumb:"Reciept",routeParamBreadcrumb:!1},resolve:{loansTransactionReciept:Au}}]},{path:":loanId/edit-loans-account",data:{title:"Modify Loans Account",breadcrumb:"Modify Loans Account",routeParamBreadcrumb:"Edit"},component:M0,resolve:{loansAccountAndTemplate:vm}},{path:":loanId/charges",data:{title:"Loans Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1},children:[{path:"",redirectTo:"../charges",pathMatch:"prefix"},{path:":id",data:{routeParamBreadcrumb:"id"},component:mm,resolve:{loansAccountCharge:bm,loanDetailsData:Wr}},{path:":id/adjustment",data:{routeParamBreadcrumb:"id",breadcrumb:"Adjustment"},component:Dm,resolve:{loansAccountCharge:bm,loanDetailsData:Wr}}]},{path:":loanId/actions/:action",component:im,data:{title:"Loan Account Actions",breadcrumb:"action",routeParamBreadcrumb:"action"},resolve:{actionButtonData:wu}},{path:":loanId/transfer-funds",loadChildren:()=>import("./account-transfers.module-3MJMMBU5.js").then(t=>t.AccountTransfersModule)},{path:"edit-loans-account",data:{title:"Modify Loans Account",breadcrumb:"Modify Loans Account",routeParamBreadcrumb:"Edit"},component:M0,resolve:{loansAccountAndTemplate:vm}}]},{path:"glim-account",data:{title:"Loans",breadcrumb:"Loans",routeParamBreadcrumb:!1},children:[{path:"create",data:{title:"Create GLIM Application",breadcrumb:"Create GLIM Application",routeParamBreadcrumb:!1},component:xm,resolve:{loansAccountTemplate:Eu,groupsData:xf}},{path:":glimId",data:{title:"GSIM Account View",routeParamBreadcrumb:"savingAccountId"},component:gm,resolve:{glimData:Mu,groupsData:ld}}]}],Pg=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275mod=gc({type:t})}static{this.\u0275inj=fc({providers:[Wr,Su,_m,Du,Lu,wu,Pu,Tu,vm,bm,Iu,Ou,Au,hf,ld,Mu,gf,Eu,Nu,Fu,ku,Ru,Bu],imports:[rd.forChild(KN),rd]})}}return t})();var Tg=(()=>{class t{constructor(n){this.externalAssetOwner=n}itemStatus(n){return this.externalAssetOwner.itemStatus(n)}static{this.\u0275fac=function(a){return new(a||t)(E(Ec))}}static{this.\u0275cmp=yt({type:t,selectors:[["mifosx-external-asset-transfer"]],inputs:{transferData:"transferData"},decls:167,vars:60,consts:[[1,"m-l-5","flex-25"],[1,"flex-25","m-l-5","left"],[3,"ngClass"],["icon","stop"],[1,"m-l-5","status"],["completed","true",3,"externalId"],[1,"flex-75","left"],[1,"flex-50","m-l-5"],[1,"flex-50","r-amount"]],template:function(a,o){a&1&&(r(0,"table"),e(1,` +`)),a&2&&(s(3),Wt("",u(4,3,"labels.inputs.Deferred income")," - ",u(5,5,"labels.menus.Capitalized Income"),""),s(4),h("ngIf",o.capitalizedIncomeData.length>0))},dependencies:[St,Vt,Dt,It,fn,xn,gn,_n,hn,vn,bn,yn,Cn,Sn,pn],encapsulation:2})}}return t})();var Ru=(()=>{class t{constructor(n){this.loansService=n}resolve(n){let a=n.paramMap.get("loanId")||n.parent.paramMap.get("loanId");return this.loansService.getDeferredIncomeData(a)}static{this.\u0275fac=function(a){return new(a||t)(sn(Pt))}}static{this.\u0275prov=an({token:t,factory:t.\u0275fac})}}return t})();var Bu=(()=>{class t{constructor(n){this.loansService=n}resolve(n){let a=n.paramMap.get("loanId")||n.parent.paramMap.get("loanId");return a?this.loansService.getBuyDownFeeData(a):(console.error("LoanBuyDownFeesDataResolver: Could not find loanId in route parameters"),new D1(o=>{o.next([]),o.complete()}))}static{this.\u0275fac=function(a){return new(a||t)(sn(Pt))}}static{this.\u0275prov=an({token:t,factory:t.\u0275fac})}}return t})();var KN=[{path:"",data:{title:"Loans",breadcrumb:"Loans",routeParamBreadcrumb:!1},children:[{path:"create",data:{title:"Create Loans Account",breadcrumb:"Create Loans Account"},component:sm,resolve:{loansAccountTemplate:Pu}},{path:":loanId",data:{title:"Loan View",routeParamBreadcrumb:"loanId"},component:Nc,resolve:{loanDetailsData:Wr,loanDatatables:_m,loanArrearsDelinquencyConfig:Cg},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:Fc,data:{title:"General",breadcrumb:"General",routeParamBreadcrumb:!1},resolve:{loanDetailsData:Wr,loanDatatables:_m}},{path:"accountdetail",component:kc,data:{title:"Account Detail",breadcrumb:"Account Detail",routeParamBreadcrumb:!1}},{path:"original-schedule",component:Sp,data:{title:"Original Schedule",breadcrumb:"Original Schedule",routeParamBreadcrumb:!1}},{path:"repayment-schedule",component:Ur,data:{title:"Repayment Schedule",breadcrumb:"Repayment Schedule",routeParamBreadcrumb:!1}},{path:"transactions",data:{title:"Loans Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},children:[{path:"",component:yp},{path:"export",component:hm}]},{path:"deferred-income",data:{title:"Loans Deferred Income",breadcrumb:"Deferred income",routeParamBreadcrumb:!1},resolve:{loanDeferredIncomeData:Ru},children:[{path:"",component:wg}]},{path:"delinquencytags",data:{title:"Loans Delinquency Tags",breadcrumb:"Delinquency Tags",routeParamBreadcrumb:!1},resolve:{loanDelinquencyTagsData:Lu,loanDelinquencyData:Fu,loanDelinquencyActions:Dg},children:[{path:"",component:ym}]},{path:"loan-reschedules",data:{},resolve:{loanRescheduleData:bg},children:[{path:"",component:Sm}]},{path:"loan-collateral",component:rm,data:{title:"Loan Collateral Details",breadcrumb:"Loan Collateral Details",routeParamBreadcrumb:!1},resolve:{loanCollaterals:Sg}},{path:"term-variations",component:Pm,data:{title:"Loan Term Variations",breadcrumb:"Loan Term Variations",routeParamBreadcrumb:!1},resolve:{loanDetailsData:Wr,interestPausesData:ku}},{path:"loan-tranche-details",component:om,data:{title:"Loan Tranche Details",breadcrumb:"Loan Tranche Details",routeParamBreadcrumb:!1}},{path:"overdue-charges",component:Dp,data:{title:"Overdue Charges",breadcrumb:"Overdue Charges",routeParamBreadcrumb:!1}},{path:"floating-interest-rates",component:am,data:{title:"Floating Interest Rates",breadcrumb:"Floating Interest Rates",routeParamBreadcrumb:!1}},{path:"charges",data:{title:"Loans Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1},component:wp},{path:"loan-documents",component:cm,data:{title:"Loan Documents",breadcrumb:"Loan Documents",routeParamBreadcrumb:!1},resolve:{loanDocuments:Tu}},{path:"notes",component:Rc,data:{title:"Notes",breadcrumb:"Notes",routeParamBreadcrumb:!1},resolve:{loanNotes:Su}},{path:"standing-instruction",component:pm,data:{title:"Standing Instructions",breadcrumb:"Standing Instructions",routeParamBreadcrumb:!1}},{path:"external-asset-owner",component:wm,data:{title:"External Asset Owner",breadcrumb:"External Asset Owner",routeParamBreadcrumb:!1},resolve:{activeTransferData:yg,loanTransfersData:Nu}},{path:"datatables",children:[{path:":datatableName",component:Pp,data:{title:"Data Table View",routeParamBreadcrumb:"datatableName"},resolve:{loanDatatable:Du}}]},{path:"buy-down-fees",component:vg,data:{title:"Buy Down Fees",breadcrumb:"Buy Down Fees",routeParamBreadcrumb:!1},resolve:{loanBuyDownFeesData:Bu}}]},{path:":loanId/transactions/:id",data:{title:"Loans Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},resolve:{loanDetailsAssociationData:Wr},children:[{path:"",data:{routeParamBreadcrumb:"id"},component:dm,resolve:{loansAccountTransaction:Iu}},{path:"edit",component:um,data:{breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{loansAccountTransactionTemplate:Ou}},{path:"reciept",component:fm,data:{breadcrumb:"Reciept",routeParamBreadcrumb:!1},resolve:{loansTransactionReciept:Au}}]},{path:":loanId/edit-loans-account",data:{title:"Modify Loans Account",breadcrumb:"Modify Loans Account",routeParamBreadcrumb:"Edit"},component:M0,resolve:{loansAccountAndTemplate:vm}},{path:":loanId/charges",data:{title:"Loans Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1},children:[{path:"",redirectTo:"../charges",pathMatch:"prefix"},{path:":id",data:{routeParamBreadcrumb:"id"},component:mm,resolve:{loansAccountCharge:bm,loanDetailsData:Wr}},{path:":id/adjustment",data:{routeParamBreadcrumb:"id",breadcrumb:"Adjustment"},component:Dm,resolve:{loansAccountCharge:bm,loanDetailsData:Wr}}]},{path:":loanId/actions/:action",component:im,data:{title:"Loan Account Actions",breadcrumb:"action",routeParamBreadcrumb:"action"},resolve:{actionButtonData:wu}},{path:":loanId/transfer-funds",loadChildren:()=>import("./account-transfers.module-DO6BMPA2.js").then(t=>t.AccountTransfersModule)},{path:"edit-loans-account",data:{title:"Modify Loans Account",breadcrumb:"Modify Loans Account",routeParamBreadcrumb:"Edit"},component:M0,resolve:{loansAccountAndTemplate:vm}}]},{path:"glim-account",data:{title:"Loans",breadcrumb:"Loans",routeParamBreadcrumb:!1},children:[{path:"create",data:{title:"Create GLIM Application",breadcrumb:"Create GLIM Application",routeParamBreadcrumb:!1},component:xm,resolve:{loansAccountTemplate:Eu,groupsData:xf}},{path:":glimId",data:{title:"GSIM Account View",routeParamBreadcrumb:"savingAccountId"},component:gm,resolve:{glimData:Mu,groupsData:ld}}]}],Pg=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275mod=gc({type:t})}static{this.\u0275inj=fc({providers:[Wr,Su,_m,Du,Lu,wu,Pu,Tu,vm,bm,Iu,Ou,Au,hf,ld,Mu,gf,Eu,Nu,Fu,ku,Ru,Bu],imports:[rd.forChild(KN),rd]})}}return t})();var Tg=(()=>{class t{constructor(n){this.externalAssetOwner=n}itemStatus(n){return this.externalAssetOwner.itemStatus(n)}static{this.\u0275fac=function(a){return new(a||t)(E(Ec))}}static{this.\u0275cmp=yt({type:t,selectors:[["mifosx-external-asset-transfer"]],inputs:{transferData:"transferData"},decls:167,vars:60,consts:[[1,"m-l-5","flex-25"],[1,"flex-25","m-l-5","left"],[3,"ngClass"],["icon","stop"],[1,"m-l-5","status"],["completed","true",3,"externalId"],[1,"flex-75","left"],[1,"flex-50","m-l-5"],[1,"flex-50","r-amount"]],template:function(a,o){a&1&&(r(0,"table"),e(1,` `),r(2,"tbody"),e(3,` `),r(4,"tr"),e(5,` `),r(6,"td",0),e(7,` diff --git a/browser/main.js b/browser/main.js index 8a82becad..94cf220bf 100644 --- a/browser/main.js +++ b/browser/main.js @@ -1,4 +1,4 @@ -import{a as V$,b as Sa,c as Bw,d as Ei,e as vW}from"./chunk-D4UX3TYT.js";import{a as Ts,b as e9,c as i9,d as db}from"./chunk-3XID6S56.js";import{$ as n$,$a as Lg,$b as Hi,$c as ns,$d as Yo,$f as hn,A as Um,Aa as Ng,Ab as b$,Ac as A$,Ad as Mi,Ae as mu,Af as Qg,B as wo,Ba as Nt,Bb as Ro,Bc as O$,Bd as Di,Be as xa,Bf as cW,C as Bo,Ca as Bt,Cb as iu,Cc as Dl,Cd as Ai,Ce as Je,Cf as pW,D as JU,Da as Rt,Db as C$,Dc as _i,Dd as Gi,De as J$,Df as kw,E as Wt,Ea as Mt,Eb as y$,Ec as We,Ed as on,Ee as Gg,Ef as mW,F as un,Fa as t,Fb as S$,Fc as mb,Fd as de,Fe as Tp,Ff as dW,G as JS,Ga as b,Gb as Wm,Gc as Wo,Gd as L$,Ge as Ss,Gf as La,H as Qt,Ha as P,Hb as vo,Hc as F$,Hd as z$,He as ws,Hf as Mp,I as ZU,Ia as _t,Ib as cm,Ic as Se,Id as Gt,Ie as Z$,If as Xm,J as Vo,Ja as ea,Jb as Zs,Jc as bt,Jd as xw,Je as X$,Jf as Iw,K as W,Ka as c$,Kb as zs,Kc as re,Ke as tW,Kf as Rl,L as Q,La as H0,Lb as w$,Lc as ue,Ld as Fn,Le as du,Lf as Fr,M as ca,Ma as G0,Mb as zo,Mc as pm,Md as Li,Me as $e,Mf as _r,N as XU,Na as U0,Nb as ps,Nd as qg,Ne as wi,Nf as mo,O as ZS,Oa as p$,Ob as js,Oc as _e,Od as au,Oe as eW,Of as no,P as q0,Pa as ht,Pb as Lh,Pc as ru,Pd as Ci,Pe as _a,Pf as ya,Q as $n,Qa as Xe,Qb as sw,Qc as ge,Qd as sn,Qe as va,Qf as Ji,R as Nh,Ra as vs,Rb as pb,Rc as Gn,Rd as _w,Re as ba,Rf as vr,S as lb,Sa as m,Sb as lw,Sc as er,Sd as vw,Se as Ca,Sf as uW,T as JO,Ta as d,Tb as Lt,Tc as fe,Td as Ym,Te as En,U as t$,Ua as Ye,Ub as fa,Uc as ha,Ud as Km,Ue as dn,Uf as Tw,V as e$,Va as Js,Vb as cw,Vc as is,Vd as Jm,Ve as Fe,Vf as Mw,W as XS,Wa as pi,Wb as te,Wc as he,Wd as Pi,We as Be,Wf as fW,X as tw,Xa as vi,Xb as qt,Xc as B$,Xd as bw,Xe as Re,Xf as Dw,Y as i$,Ya as $m,Yb as es,Yc as ou,Yd as Cw,Yf as rl,Z as Rg,Za as m$,Zb as tr,Zc as Ie,Zd as j$,Ze as Ne,Zf as Is,_ as l,_a as d$,_b as pw,_c as gw,_d as Hg,_e as Le,_f as Xn,a as ab,aa as r$,ab as io,ac as Dt,ad as R$,ae as yw,af as Ve,ag as hW,b as Fh,ba as ew,bb as se,bc as mw,bd as xe,be as q$,bf as ze,bg as ol,c as ec,ca as V,cb as zt,cc as XO,cd as Qm,ce as H$,d as _s,da as yt,db as Ra,dc as E$,dd as wt,de as Xs,df as je,dg as gW,e as qU,ea as fn,eb as Na,ec as P$,ed as oe,ee as Sw,ef as qe,eg as xn,f as HU,fa as cb,fb as u$,fc as t9,fd as Qo,fe as G$,fg as Aw,g as sb,ga as o$,gb as Ip,gc as dw,gd as Al,ge as U$,gf as He,gg as t0,h as Bh,ha as x,hb as f$,hc as uw,hd as me,he as $$,hf as iW,hg as xW,i as GU,ia as kr,ib as bs,ic as k$,id as Ol,ie as W$,if as nW,j as xr,ja as g,jb as iw,jc as I$,jd as Ue,je as Q$,jf as ci,jg as Ow,k as UU,ka as Xd,kb as Vg,kc as fw,kd as ga,ke as Y$,kf as rW,kg as na,l as $U,la as kp,lb as nw,lc as qr,ld as N$,le as mm,lf as oW,lg as Dp,m as Bg,ma as a$,mb as h$,mc as bo,md as zg,me as su,mf as Bl,mg as Co,n as YS,na as a,nb as rw,nc as ni,nd as $t,ne as lu,nf as xl,ng as Ap,o as WU,oa as s,ob as eu,oc as Ar,od as Te,oe as K$,of as Es,og as Fw,p as Ec,pa as k,pb as g$,pc as Or,pd as rs,pe as Cs,pf as Ps,pg as _W,q as Rh,qa as ot,qb as St,qc as po,qd as jg,qe as ys,qf as ks,r as KS,ra as at,rb as Yc,rc as Ir,rd as Si,re as cu,rf as aW,rg as Yr,s as Oo,sa as kc,sb as x$,sc as hw,sd as Ht,se as pu,sf as sW,t as QU,ta as st,tb as _$,tc as T$,td as Tr,te as tl,tf as ww,u as Fo,ua as q,ub as ow,uc as M$,ud as Zt,ue as el,uf as Ug,v as Gm,va as A,vb as aw,vc as zi,vd as De,ve as Zm,vf as $g,w as YU,wa as s$,wb as v$,wc as Et,wd as qs,we as il,wf as Ew,x as KU,xa as l$,xc as nu,xd as Oe,xe as nl,xf as lW,y as Pc,ya as Xt,yb as Hn,yc as Wn,yd as ia,ye as Fl,yf as Pw,z as KO,za as tu,zb as ZO,zc as D$,zd as Ti,ze as Io,zf as Wg}from"./chunk-KX2ZKPHO.js";import{a as ye,b as oi,c as lm,d as zU,e as Pe,f as QO,g as Pp,h as Dr,i as YO,j as jU,k as cs,l as QS}from"./chunk-O7S4L63H.js";var Uh=Pe((tx,Cb)=>{(function(){var e,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",n="Expected a function",c="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",h=500,_="__lodash_placeholder__",y=1,C=2,E=4,T=1,D=2,M=1,F=2,B=4,z=8,$=16,tt=32,lt=64,gt=128,X=256,mt=512,vt=30,Tt="...",Ct=800,Z=16,nt=1,xt=2,R=3,j=1/0,G=9007199254740991,H=17976931348623157e292,K=NaN,et=4294967295,ft=et-1,At=et>>>1,Ot=[["ary",gt],["bind",M],["bindKey",F],["curry",z],["curryRight",$],["flip",mt],["partial",tt],["partialRight",lt],["rearg",X]],Yt="[object Arguments]",dt="[object Array]",jt="[object AsyncFunction]",ct="[object Boolean]",rt="[object Date]",It="[object DOMException]",Kt="[object Error]",ke="[object Function]",ce="[object GeneratorFunction]",pe="[object Map]",si="[object Number]",ii="[object Null]",le="[object Object]",ti="[object Promise]",Ke="[object Proxy]",li="[object RegExp]",fi="[object Set]",di="[object String]",gi="[object Symbol]",Yi="[object Undefined]",Zi="[object WeakMap]",Xi="[object WeakSet]",On="[object ArrayBuffer]",pn="[object DataView]",kn="[object Float32Array]",Rr="[object Float64Array]",Un="[object Int8Array]",In="[object Int16Array]",Qn="[object Int32Array]",mn="[object Uint8Array]",ln="[object Uint8ClampedArray]",lr="[object Uint16Array]",vn="[object Uint32Array]",zn=/\b__p \+= '';/g,wl=/\b(__p \+=) '' \+/g,Yn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ar=/&(?:amp|lt|gt|quot|#39);/g,oa=/[&<>"']/g,yr=RegExp(ar.source),Sr=RegExp(oa.source),$s=/<%-([\s\S]+?)%>/g,pr=/<%([\s\S]+?)%>/g,sr=/<%=([\s\S]+?)%>/g,To=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,br=/^\w*$/,ir=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ds=/[\\^$.*+?()[\]{}|]/g,wr=RegExp(ds.source),Ze=/^\s+/,Ii=/\s/,Ri=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,nn=/\{\n\/\* \[wrapped with (.+)\] \*/,Ur=/,? & /,_n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Vn=/[()=,{}\[\]\/\s]/,Mo=/\\(\\)?/g,nr=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Bn=/\w*$/,to=/^[-+]0x[0-9a-f]+$/i,zr=/^0b[01]+$/i,$r=/^\[object .+?Constructor\]$/,No=/^0o[0-7]+$/i,pa=/^(?:0|[1-9]\d*)$/,Xo=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ss=/($^)/,za=/['\n\r\u2028\u2029\\]/g,Wa="\\ud800-\\udfff",Ae="\\u0300-\\u036f",yi="\\ufe20-\\ufe2f",$i="\\u20d0-\\u20ff",Vi=Ae+yi+$i,cn="\\u2700-\\u27bf",Rn="a-z\\xdf-\\xf6\\xf8-\\xff",jn="\\xac\\xb1\\xd7\\xf7",Lr="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Er="\\u2000-\\u206f",mr=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Pr="A-Z\\xc0-\\xd6\\xd8-\\xde",aa="\\ufe0e\\ufe0f",ma=jn+Lr+Er+mr,ho="['\u2019]",Lo="["+Wa+"]",da="["+ma+"]",us="["+Vi+"]",pl="\\d+",lc="["+cn+"]",Hl="["+Rn+"]",d0="[^"+Wa+ma+pl+cn+Rn+Pr+"]",op="\\ud83c[\\udffb-\\udfff]",xo="(?:"+us+"|"+op+")",Eo="[^"+Wa+"]",cc="(?:\\ud83c[\\udde6-\\uddff]){2}",El="[\\ud800-\\udbff][\\udc00-\\udfff]",Rc="["+Pr+"]",ja="\\u200d",Ws="(?:"+Hl+"|"+d0+")",ap="(?:"+Rc+"|"+d0+")",Nc="(?:"+ho+"(?:d|ll|m|re|s|t|ve))?",Qp="(?:"+ho+"(?:D|LL|M|RE|S|T|VE))?",Yp=xo+"?",Gl="["+aa+"]?",Kp="(?:"+ja+"(?:"+[Eo,cc,El].join("|")+")"+Gl+Yp+")*",bd="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Cd="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Sm=Gl+Yp+Kp,yd="(?:"+[lc,cc,El].join("|")+")"+Sm,P1="(?:"+[Eo+us+"?",us,cc,El,Lo].join("|")+")",wm=RegExp(ho,"g"),Sd=RegExp(us,"g"),k1=RegExp(op+"(?="+op+")|"+P1+Sm,"g"),DC=RegExp([Rc+"?"+Hl+"+"+Nc+"(?="+[da,Rc,"$"].join("|")+")",ap+"+"+Qp+"(?="+[da,Rc+Ws,"$"].join("|")+")",Rc+"?"+Ws+"+"+Nc,Rc+"+"+Qp,Cd,bd,pl,yd].join("|"),"g"),AC=RegExp("["+ja+Wa+Vi+aa+"]"),Df=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,_A=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],y_=-1,ta={};ta[kn]=ta[Rr]=ta[Un]=ta[In]=ta[Qn]=ta[mn]=ta[ln]=ta[lr]=ta[vn]=!0,ta[Yt]=ta[dt]=ta[On]=ta[ct]=ta[pn]=ta[rt]=ta[Kt]=ta[ke]=ta[pe]=ta[si]=ta[le]=ta[li]=ta[fi]=ta[di]=ta[Zi]=!1;var fr={};fr[Yt]=fr[dt]=fr[On]=fr[pn]=fr[ct]=fr[rt]=fr[kn]=fr[Rr]=fr[Un]=fr[In]=fr[Qn]=fr[pe]=fr[si]=fr[le]=fr[li]=fr[fi]=fr[di]=fr[gi]=fr[mn]=fr[ln]=fr[lr]=fr[vn]=!0,fr[Kt]=fr[ke]=fr[Zi]=!1;var vA={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},S_={"&":"&","<":"<",">":">",'"':""","'":"'"},OC={"&":"&","<":"<",">":">",""":'"',"'":"'"},Af={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},w_=parseFloat,wd=parseInt,E_=typeof global=="object"&&global&&global.Object===Object&&global,P_=typeof self=="object"&&self&&self.Object===Object&&self,fs=E_||P_||Function("return this")(),I1=typeof tx=="object"&&tx&&!tx.nodeType&&tx,u0=I1&&typeof Cb=="object"&&Cb&&!Cb.nodeType&&Cb,T1=u0&&u0.exports===I1,k_=T1&&E_.process,pc=function(){try{var ui=u0&&u0.require&&u0.require("util").types;return ui||k_&&k_.binding&&k_.binding("util")}catch{}}(),FC=pc&&pc.isArrayBuffer,Of=pc&&pc.isDate,M1=pc&&pc.isMap,BC=pc&&pc.isRegExp,RC=pc&&pc.isSet,NC=pc&&pc.isTypedArray;function Ul(ui,ji,bi){switch(bi.length){case 0:return ui.call(ji);case 1:return ui.call(ji,bi[0]);case 2:return ui.call(ji,bi[0],bi[1]);case 3:return ui.call(ji,bi[0],bi[1],bi[2])}return ui.apply(ji,bi)}function Ed(ui,ji,bi,qn){for(var Mr=-1,ro=ui==null?0:ui.length;++Mr-1}function D1(ui,ji,bi){for(var qn=-1,Mr=ui==null?0:ui.length;++qn-1;);return bi}function GC(ui,ji){for(var bi=ui.length;bi--&&f0(ji,ui[bi],0)>-1;);return bi}function h0(ui,ji){for(var bi=ui.length,qn=0;bi--;)ui[bi]===ji&&++qn;return qn}var Lf=Rf(vA),yA=Rf(S_);function SA(ui){return"\\"+Af[ui]}function V1(ui,ji){return ui==null?e:ui[ji]}function Pm(ui){return AC.test(ui)}function wA(ui){return Df.test(ui)}function EA(ui){for(var ji,bi=[];!(ji=ui.next()).done;)bi.push(ji.value);return bi}function F_(ui){var ji=-1,bi=Array(ui.size);return ui.forEach(function(qn,Mr){bi[++ji]=[Mr,qn]}),bi}function B_(ui,ji){return function(bi){return ui(ji(bi))}}function Zp(ui,ji){for(var bi=-1,qn=ui.length,Mr=0,ro=[];++bi-1}function zA(L,Y){var ut=this.__data__,Ft=Qf(ut,L);return Ft<0?(++this.size,ut.push([L,Y])):ut[Ft][1]=Y,this}pp.prototype.clear=j1,pp.prototype.delete=oy,pp.prototype.get=LA,pp.prototype.has=VA,pp.prototype.set=zA;function mp(L){var Y=-1,ut=L==null?0:L.length;for(this.clear();++Y=Y?L:Y)),L}function Pl(L,Y,ut,Ft,ee,we){var Qe,ri=Y&y,hi=Y&C,Ui=Y&E;if(ut&&(Qe=ee?ut(L,Ft,ee,we):ut(L)),Qe!==e)return Qe;if(!Pa(L))return L;var Wi=Vr(L);if(Wi){if(Qe=qy(L),!ri)return Yl(L,Qe)}else{var rn=Fs(L),Mn=rn==ke||rn==ce;if(Vm(L))return My(L,ri);if(rn==le||rn==Yt||Mn&&!ee){if(Qe=hi||Mn?{}:sg(L),!ri)return hi?a7(L,hy(Qe,L)):o7(L,Yf(Qe,L))}else{if(!fr[rn])return ee?L:{};Qe=mh(L,rn,ri)}}we||(we=new Wl);var Zn=we.get(L);if(Zn)return Zn;we.set(L,Qe),Ud(L)?L.forEach(function(gr){Qe.add(Pl(gr,Y,ut,gr,L,we))}):Av(L)&&L.forEach(function(gr,so){Qe.set(so,Pl(gr,Y,ut,so,L,we))});var ur=Ui?hi?ch:lh:hi?hl:ls,Qr=Wi?e:ur(L);return mc(Qr||L,function(gr,so){Qr&&(so=gr,gr=L[so]),Po(Qe,so,Pl(gr,Y,ut,so,L,we))}),Qe}function gy(L){var Y=ls(L);return function(ut){return xy(ut,L,Y)}}function xy(L,Y,ut){var Ft=ut.length;if(L==null)return!Ft;for(L=Go(L);Ft--;){var ee=ut[Ft],we=Y[ee],Qe=L[ee];if(Qe===e&&!(ee in L)||!we(Qe))return!1}return!0}function Kf(L,Y,ut){if(typeof L!="function")throw new ml(n);return Bm(function(){L.apply(e,ut)},Y)}function Jf(L,Y,ut,Ft){var ee=-1,we=Ff,Qe=!0,ri=L.length,hi=[],Ui=Y.length;if(!ri)return hi;ut&&(Y=sa(Y,$l(ut))),Ft?(we=D1,Qe=!1):Y.length>=i&&(we=Nf,Qe=!1,Y=new gc(Y));t:for(;++eeee?0:ee+ut),Ft=Ft===e||Ft>ee?ee:Jn(Ft),Ft<0&&(Ft+=ee),Ft=ut>Ft?0:Ha(Ft);ut0&&ut(ri)?Y>1?As(ri,Y-1,ut,Ft,ee):Em(ee,ri):Ft||(ee[ee.length]=ri)}return ee}var U1=By(),Cy=By(!0);function xc(L,Y){return L&&U1(L,Y,ls)}function Zf(L,Y){return L&&Cy(L,Y,ls)}function Bd(L,Y){return Jp(Y,function(ut){return rm(L[ut])})}function v0(L,Y){Y=hp(Y,L);for(var ut=0,Ft=Y.length;L!=null&&utY}function $A(L,Y){return L!=null&&bn.call(L,Y)}function WA(L,Y){return L!=null&&Y in Go(L)}function yy(L,Y,ut){return L>=hs(Y,ut)&&L=120&&Wi.length>=120)?new gc(Qe&&Wi):e}Wi=L[0];var rn=-1,Mn=ri[0];t:for(;++rn-1;)ri!==L&&Lc.call(ri,hi,1),Lc.call(L,hi,1);return L}function Z_(L,Y){for(var ut=L?Y.length:0,Ft=ut-1;ut--;){var ee=Y[ut];if(ut==Ft||ee!==we){var we=ee;_p(ee)?Lc.call(L,ee,1):iv(L,ee)}}return L}function th(L,Y){return L+Uf(ny()*(Y-L+1))}function Z1(L,Y,ut,Ft){for(var ee=-1,we=Ka(Gf((Y-L)/(ut||1)),0),Qe=bi(we);we--;)Qe[Ft?we:++ee]=L,L+=ut;return Qe}function X_(L,Y){var ut="";if(!L||Y<1||Y>G)return ut;do Y%2&&(ut+=L),Y=Uf(Y/2),Y&&(L+=L);while(Y);return ut}function Xr(L,Y){return lg(Qy(L,Y,jr),L+"")}function JA(L){return Dm(R0(L))}function tv(L,Y){var ut=R0(L);return gh(ut,_0(Y,0,ut.length))}function eh(L,Y,ut,Ft){if(!Pa(L))return L;Y=hp(Y,L);for(var ee=-1,we=Y.length,Qe=we-1,ri=L;ri!=null&&++eeee?0:ee+Y),ut=ut>ee?ee:ut,ut<0&&(ut+=ee),ee=Y>ut?0:ut-Y>>>0,Y>>>=0;for(var we=bi(ee);++Ft>>1,Qe=L[we];Qe!==null&&!Rs(Qe)&&(ut?Qe<=Y:Qe=i){var Ui=Y?null:zd(L);if(Ui)return z1(Ui);Qe=!1,ee=Nf,hi=new gc}else hi=Y?[]:ri;t:for(;++Ft=Ft?L:_c(L,Y,ut)}var ig=ZC||function(L){return fs.clearTimeout(L)};function My(L,Y){if(Y)return L.slice();var ut=L.length,Ft=N_?N_(ut):new L.constructor(ut);return L.copy(Ft),Ft}function av(L){var Y=new L.constructor(L.byteLength);return new Td(Y).set(new Td(L)),Y}function i7(L,Y){var ut=Y?av(L.buffer):L.buffer;return new L.constructor(ut,L.byteOffset,L.byteLength)}function C0(L){var Y=new L.constructor(L.source,Bn.exec(L));return Y.lastIndex=L.lastIndex,Y}function n7(L){return Qs?Go(Qs.call(L)):{}}function sv(L,Y){var ut=Y?av(L.buffer):L.buffer;return new L.constructor(ut,L.byteOffset,L.length)}function Dy(L,Y){if(L!==Y){var ut=L!==e,Ft=L===null,ee=L===L,we=Rs(L),Qe=Y!==e,ri=Y===null,hi=Y===Y,Ui=Rs(Y);if(!ri&&!Ui&&!we&&L>Y||we&&Qe&&hi&&!ri&&!Ui||Ft&&Qe&&hi||!ut&&hi||!ee)return 1;if(!Ft&&!we&&!Ui&&L=ri)return hi;var Ui=ut[Ft];return hi*(Ui=="desc"?-1:1)}}return L.index-Y.index}function Ay(L,Y,ut,Ft){for(var ee=-1,we=L.length,Qe=ut.length,ri=-1,hi=Y.length,Ui=Ka(we-Qe,0),Wi=bi(hi+Ui),rn=!Ft;++ri1?ut[ee-1]:e,Qe=ee>2?ut[2]:e;for(we=L.length>3&&typeof we=="function"?(ee--,we):e,Qe&&Ys(ut[0],ut[1],Qe)&&(we=ee<3?e:we,ee=1),Y=Go(Y);++Ft-1?ee[we?Y[Qe]:Qe]:e}}function Vd(L){return nm(function(Y){var ut=Y.length,Ft=ut,ee=hc.prototype.thru;for(L&&Y.reverse();Ft--;){var we=Y[Ft];if(typeof we!="function")throw new ml(n);if(ee&&!Qe&&k0(we)=="wrapper")var Qe=new hc([],!0)}for(Ft=Qe?Ft:ut;++Ft1&&go.reverse(),Wi&&hiri))return!1;var Ui=we.get(L),Wi=we.get(Y);if(Ui&&Wi)return Ui==Y&&Wi==L;var rn=-1,Mn=!0,Zn=ut&D?new gc:e;for(we.set(L,Y),we.set(Y,L);++rn1?"& ":"")+Y[Ft],Y=Y.join(ut>2?", ":" "),L.replace(Ri,`{ +import{a as V$,b as Sa,c as Bw,d as Ei,e as vW}from"./chunk-ZWPHYTML.js";import{a as Ts,b as e9,c as i9,d as db}from"./chunk-JRMODJLE.js";import{$ as n$,$a as Lg,$b as Hi,$c as ns,$d as Yo,$f as hn,A as Um,Aa as Ng,Ab as b$,Ac as A$,Ad as Mi,Ae as mu,Af as Qg,B as wo,Ba as Nt,Bb as Ro,Bc as O$,Bd as Di,Be as xa,Bf as cW,C as Bo,Ca as Bt,Cb as iu,Cc as Dl,Cd as Ai,Ce as Je,Cf as pW,D as JU,Da as Rt,Db as C$,Dc as _i,Dd as Gi,De as J$,Df as kw,E as Wt,Ea as Mt,Eb as y$,Ec as We,Ed as on,Ee as Gg,Ef as mW,F as un,Fa as t,Fb as S$,Fc as mb,Fd as de,Fe as Tp,Ff as dW,G as JS,Ga as b,Gb as Wm,Gc as Wo,Gd as L$,Ge as Ss,Gf as La,H as Qt,Ha as P,Hb as vo,Hc as F$,Hd as z$,He as ws,Hf as Mp,I as ZU,Ia as _t,Ib as cm,Ic as Se,Id as Gt,Ie as Z$,If as Xm,J as Vo,Ja as ea,Jb as Zs,Jc as bt,Jd as xw,Je as X$,Jf as Iw,K as W,Ka as c$,Kb as zs,Kc as re,Ke as tW,Kf as Rl,L as Q,La as H0,Lb as w$,Lc as ue,Ld as Fn,Le as du,Lf as Fr,M as ca,Ma as G0,Mb as zo,Mc as pm,Md as Li,Me as $e,Mf as _r,N as XU,Na as U0,Nb as ps,Nd as qg,Ne as wi,Nf as mo,O as ZS,Oa as p$,Ob as js,Oc as _e,Od as au,Oe as eW,Of as no,P as q0,Pa as ht,Pb as Lh,Pc as ru,Pd as Ci,Pe as _a,Pf as ya,Q as $n,Qa as Xe,Qb as sw,Qc as ge,Qd as sn,Qe as va,Qf as Ji,R as Nh,Ra as vs,Rb as pb,Rc as Gn,Rd as _w,Re as ba,Rf as vr,S as lb,Sa as m,Sb as lw,Sc as er,Sd as vw,Se as Ca,Sf as uW,T as JO,Ta as d,Tb as Lt,Tc as fe,Td as Ym,Te as En,U as t$,Ua as Ye,Ub as fa,Uc as ha,Ud as Km,Ue as dn,Uf as Tw,V as e$,Va as Js,Vb as cw,Vc as is,Vd as Jm,Ve as Fe,Vf as Mw,W as XS,Wa as pi,Wb as te,Wc as he,Wd as Pi,We as Be,Wf as fW,X as tw,Xa as vi,Xb as qt,Xc as B$,Xd as bw,Xe as Re,Xf as Dw,Y as i$,Ya as $m,Yb as es,Yc as ou,Yd as Cw,Yf as rl,Z as Rg,Za as m$,Zb as tr,Zc as Ie,Zd as j$,Ze as Ne,Zf as Is,_ as l,_a as d$,_b as pw,_c as gw,_d as Hg,_e as Le,_f as Xn,a as ab,aa as r$,ab as io,ac as Dt,ad as R$,ae as yw,af as Ve,ag as hW,b as Fh,ba as ew,bb as se,bc as mw,bd as xe,be as q$,bf as ze,bg as ol,c as ec,ca as V,cb as zt,cc as XO,cd as Qm,ce as H$,d as _s,da as yt,db as Ra,dc as E$,dd as wt,de as Xs,df as je,dg as gW,e as qU,ea as fn,eb as Na,ec as P$,ed as oe,ee as Sw,ef as qe,eg as xn,f as HU,fa as cb,fb as u$,fc as t9,fd as Qo,fe as G$,fg as Aw,g as sb,ga as o$,gb as Ip,gc as dw,gd as Al,ge as U$,gf as He,gg as t0,h as Bh,ha as x,hb as f$,hc as uw,hd as me,he as $$,hf as iW,hg as xW,i as GU,ia as kr,ib as bs,ic as k$,id as Ol,ie as W$,if as nW,j as xr,ja as g,jb as iw,jc as I$,jd as Ue,je as Q$,jf as ci,jg as Ow,k as UU,ka as Xd,kb as Vg,kc as fw,kd as ga,ke as Y$,kf as rW,kg as na,l as $U,la as kp,lb as nw,lc as qr,ld as N$,le as mm,lf as oW,lg as Dp,m as Bg,ma as a$,mb as h$,mc as bo,md as zg,me as su,mf as Bl,mg as Co,n as YS,na as a,nb as rw,nc as ni,nd as $t,ne as lu,nf as xl,ng as Ap,o as WU,oa as s,ob as eu,oc as Ar,od as Te,oe as K$,of as Es,og as Fw,p as Ec,pa as k,pb as g$,pc as Or,pd as rs,pe as Cs,pf as Ps,pg as _W,q as Rh,qa as ot,qb as St,qc as po,qd as jg,qe as ys,qf as ks,r as KS,ra as at,rb as Yc,rc as Ir,rd as Si,re as cu,rf as aW,rg as Yr,s as Oo,sa as kc,sb as x$,sc as hw,sd as Ht,se as pu,sf as sW,t as QU,ta as st,tb as _$,tc as T$,td as Tr,te as tl,tf as ww,u as Fo,ua as q,ub as ow,uc as M$,ud as Zt,ue as el,uf as Ug,v as Gm,va as A,vb as aw,vc as zi,vd as De,ve as Zm,vf as $g,w as YU,wa as s$,wb as v$,wc as Et,wd as qs,we as il,wf as Ew,x as KU,xa as l$,xc as nu,xd as Oe,xe as nl,xf as lW,y as Pc,ya as Xt,yb as Hn,yc as Wn,yd as ia,ye as Fl,yf as Pw,z as KO,za as tu,zb as ZO,zc as D$,zd as Ti,ze as Io,zf as Wg}from"./chunk-2BUEM4AN.js";import{a as ye,b as oi,c as lm,d as zU,e as Pe,f as QO,g as Pp,h as Dr,i as YO,j as jU,k as cs,l as QS}from"./chunk-O7S4L63H.js";var Uh=Pe((tx,Cb)=>{(function(){var e,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",n="Expected a function",c="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",h=500,_="__lodash_placeholder__",y=1,C=2,E=4,T=1,D=2,M=1,F=2,B=4,z=8,$=16,tt=32,lt=64,gt=128,X=256,mt=512,vt=30,Tt="...",Ct=800,Z=16,nt=1,xt=2,R=3,j=1/0,G=9007199254740991,H=17976931348623157e292,K=NaN,et=4294967295,ft=et-1,At=et>>>1,Ot=[["ary",gt],["bind",M],["bindKey",F],["curry",z],["curryRight",$],["flip",mt],["partial",tt],["partialRight",lt],["rearg",X]],Yt="[object Arguments]",dt="[object Array]",jt="[object AsyncFunction]",ct="[object Boolean]",rt="[object Date]",It="[object DOMException]",Kt="[object Error]",ke="[object Function]",ce="[object GeneratorFunction]",pe="[object Map]",si="[object Number]",ii="[object Null]",le="[object Object]",ti="[object Promise]",Ke="[object Proxy]",li="[object RegExp]",fi="[object Set]",di="[object String]",gi="[object Symbol]",Yi="[object Undefined]",Zi="[object WeakMap]",Xi="[object WeakSet]",On="[object ArrayBuffer]",pn="[object DataView]",kn="[object Float32Array]",Rr="[object Float64Array]",Un="[object Int8Array]",In="[object Int16Array]",Qn="[object Int32Array]",mn="[object Uint8Array]",ln="[object Uint8ClampedArray]",lr="[object Uint16Array]",vn="[object Uint32Array]",zn=/\b__p \+= '';/g,wl=/\b(__p \+=) '' \+/g,Yn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ar=/&(?:amp|lt|gt|quot|#39);/g,oa=/[&<>"']/g,yr=RegExp(ar.source),Sr=RegExp(oa.source),$s=/<%-([\s\S]+?)%>/g,pr=/<%([\s\S]+?)%>/g,sr=/<%=([\s\S]+?)%>/g,To=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,br=/^\w*$/,ir=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ds=/[\\^$.*+?()[\]{}|]/g,wr=RegExp(ds.source),Ze=/^\s+/,Ii=/\s/,Ri=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,nn=/\{\n\/\* \[wrapped with (.+)\] \*/,Ur=/,? & /,_n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Vn=/[()=,{}\[\]\/\s]/,Mo=/\\(\\)?/g,nr=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Bn=/\w*$/,to=/^[-+]0x[0-9a-f]+$/i,zr=/^0b[01]+$/i,$r=/^\[object .+?Constructor\]$/,No=/^0o[0-7]+$/i,pa=/^(?:0|[1-9]\d*)$/,Xo=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ss=/($^)/,za=/['\n\r\u2028\u2029\\]/g,Wa="\\ud800-\\udfff",Ae="\\u0300-\\u036f",yi="\\ufe20-\\ufe2f",$i="\\u20d0-\\u20ff",Vi=Ae+yi+$i,cn="\\u2700-\\u27bf",Rn="a-z\\xdf-\\xf6\\xf8-\\xff",jn="\\xac\\xb1\\xd7\\xf7",Lr="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Er="\\u2000-\\u206f",mr=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Pr="A-Z\\xc0-\\xd6\\xd8-\\xde",aa="\\ufe0e\\ufe0f",ma=jn+Lr+Er+mr,ho="['\u2019]",Lo="["+Wa+"]",da="["+ma+"]",us="["+Vi+"]",pl="\\d+",lc="["+cn+"]",Hl="["+Rn+"]",d0="[^"+Wa+ma+pl+cn+Rn+Pr+"]",op="\\ud83c[\\udffb-\\udfff]",xo="(?:"+us+"|"+op+")",Eo="[^"+Wa+"]",cc="(?:\\ud83c[\\udde6-\\uddff]){2}",El="[\\ud800-\\udbff][\\udc00-\\udfff]",Rc="["+Pr+"]",ja="\\u200d",Ws="(?:"+Hl+"|"+d0+")",ap="(?:"+Rc+"|"+d0+")",Nc="(?:"+ho+"(?:d|ll|m|re|s|t|ve))?",Qp="(?:"+ho+"(?:D|LL|M|RE|S|T|VE))?",Yp=xo+"?",Gl="["+aa+"]?",Kp="(?:"+ja+"(?:"+[Eo,cc,El].join("|")+")"+Gl+Yp+")*",bd="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Cd="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Sm=Gl+Yp+Kp,yd="(?:"+[lc,cc,El].join("|")+")"+Sm,P1="(?:"+[Eo+us+"?",us,cc,El,Lo].join("|")+")",wm=RegExp(ho,"g"),Sd=RegExp(us,"g"),k1=RegExp(op+"(?="+op+")|"+P1+Sm,"g"),DC=RegExp([Rc+"?"+Hl+"+"+Nc+"(?="+[da,Rc,"$"].join("|")+")",ap+"+"+Qp+"(?="+[da,Rc+Ws,"$"].join("|")+")",Rc+"?"+Ws+"+"+Nc,Rc+"+"+Qp,Cd,bd,pl,yd].join("|"),"g"),AC=RegExp("["+ja+Wa+Vi+aa+"]"),Df=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,_A=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],y_=-1,ta={};ta[kn]=ta[Rr]=ta[Un]=ta[In]=ta[Qn]=ta[mn]=ta[ln]=ta[lr]=ta[vn]=!0,ta[Yt]=ta[dt]=ta[On]=ta[ct]=ta[pn]=ta[rt]=ta[Kt]=ta[ke]=ta[pe]=ta[si]=ta[le]=ta[li]=ta[fi]=ta[di]=ta[Zi]=!1;var fr={};fr[Yt]=fr[dt]=fr[On]=fr[pn]=fr[ct]=fr[rt]=fr[kn]=fr[Rr]=fr[Un]=fr[In]=fr[Qn]=fr[pe]=fr[si]=fr[le]=fr[li]=fr[fi]=fr[di]=fr[gi]=fr[mn]=fr[ln]=fr[lr]=fr[vn]=!0,fr[Kt]=fr[ke]=fr[Zi]=!1;var vA={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},S_={"&":"&","<":"<",">":">",'"':""","'":"'"},OC={"&":"&","<":"<",">":">",""":'"',"'":"'"},Af={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},w_=parseFloat,wd=parseInt,E_=typeof global=="object"&&global&&global.Object===Object&&global,P_=typeof self=="object"&&self&&self.Object===Object&&self,fs=E_||P_||Function("return this")(),I1=typeof tx=="object"&&tx&&!tx.nodeType&&tx,u0=I1&&typeof Cb=="object"&&Cb&&!Cb.nodeType&&Cb,T1=u0&&u0.exports===I1,k_=T1&&E_.process,pc=function(){try{var ui=u0&&u0.require&&u0.require("util").types;return ui||k_&&k_.binding&&k_.binding("util")}catch{}}(),FC=pc&&pc.isArrayBuffer,Of=pc&&pc.isDate,M1=pc&&pc.isMap,BC=pc&&pc.isRegExp,RC=pc&&pc.isSet,NC=pc&&pc.isTypedArray;function Ul(ui,ji,bi){switch(bi.length){case 0:return ui.call(ji);case 1:return ui.call(ji,bi[0]);case 2:return ui.call(ji,bi[0],bi[1]);case 3:return ui.call(ji,bi[0],bi[1],bi[2])}return ui.apply(ji,bi)}function Ed(ui,ji,bi,qn){for(var Mr=-1,ro=ui==null?0:ui.length;++Mr-1}function D1(ui,ji,bi){for(var qn=-1,Mr=ui==null?0:ui.length;++qn-1;);return bi}function GC(ui,ji){for(var bi=ui.length;bi--&&f0(ji,ui[bi],0)>-1;);return bi}function h0(ui,ji){for(var bi=ui.length,qn=0;bi--;)ui[bi]===ji&&++qn;return qn}var Lf=Rf(vA),yA=Rf(S_);function SA(ui){return"\\"+Af[ui]}function V1(ui,ji){return ui==null?e:ui[ji]}function Pm(ui){return AC.test(ui)}function wA(ui){return Df.test(ui)}function EA(ui){for(var ji,bi=[];!(ji=ui.next()).done;)bi.push(ji.value);return bi}function F_(ui){var ji=-1,bi=Array(ui.size);return ui.forEach(function(qn,Mr){bi[++ji]=[Mr,qn]}),bi}function B_(ui,ji){return function(bi){return ui(ji(bi))}}function Zp(ui,ji){for(var bi=-1,qn=ui.length,Mr=0,ro=[];++bi-1}function zA(L,Y){var ut=this.__data__,Ft=Qf(ut,L);return Ft<0?(++this.size,ut.push([L,Y])):ut[Ft][1]=Y,this}pp.prototype.clear=j1,pp.prototype.delete=oy,pp.prototype.get=LA,pp.prototype.has=VA,pp.prototype.set=zA;function mp(L){var Y=-1,ut=L==null?0:L.length;for(this.clear();++Y=Y?L:Y)),L}function Pl(L,Y,ut,Ft,ee,we){var Qe,ri=Y&y,hi=Y&C,Ui=Y&E;if(ut&&(Qe=ee?ut(L,Ft,ee,we):ut(L)),Qe!==e)return Qe;if(!Pa(L))return L;var Wi=Vr(L);if(Wi){if(Qe=qy(L),!ri)return Yl(L,Qe)}else{var rn=Fs(L),Mn=rn==ke||rn==ce;if(Vm(L))return My(L,ri);if(rn==le||rn==Yt||Mn&&!ee){if(Qe=hi||Mn?{}:sg(L),!ri)return hi?a7(L,hy(Qe,L)):o7(L,Yf(Qe,L))}else{if(!fr[rn])return ee?L:{};Qe=mh(L,rn,ri)}}we||(we=new Wl);var Zn=we.get(L);if(Zn)return Zn;we.set(L,Qe),Ud(L)?L.forEach(function(gr){Qe.add(Pl(gr,Y,ut,gr,L,we))}):Av(L)&&L.forEach(function(gr,so){Qe.set(so,Pl(gr,Y,ut,so,L,we))});var ur=Ui?hi?ch:lh:hi?hl:ls,Qr=Wi?e:ur(L);return mc(Qr||L,function(gr,so){Qr&&(so=gr,gr=L[so]),Po(Qe,so,Pl(gr,Y,ut,so,L,we))}),Qe}function gy(L){var Y=ls(L);return function(ut){return xy(ut,L,Y)}}function xy(L,Y,ut){var Ft=ut.length;if(L==null)return!Ft;for(L=Go(L);Ft--;){var ee=ut[Ft],we=Y[ee],Qe=L[ee];if(Qe===e&&!(ee in L)||!we(Qe))return!1}return!0}function Kf(L,Y,ut){if(typeof L!="function")throw new ml(n);return Bm(function(){L.apply(e,ut)},Y)}function Jf(L,Y,ut,Ft){var ee=-1,we=Ff,Qe=!0,ri=L.length,hi=[],Ui=Y.length;if(!ri)return hi;ut&&(Y=sa(Y,$l(ut))),Ft?(we=D1,Qe=!1):Y.length>=i&&(we=Nf,Qe=!1,Y=new gc(Y));t:for(;++eeee?0:ee+ut),Ft=Ft===e||Ft>ee?ee:Jn(Ft),Ft<0&&(Ft+=ee),Ft=ut>Ft?0:Ha(Ft);ut0&&ut(ri)?Y>1?As(ri,Y-1,ut,Ft,ee):Em(ee,ri):Ft||(ee[ee.length]=ri)}return ee}var U1=By(),Cy=By(!0);function xc(L,Y){return L&&U1(L,Y,ls)}function Zf(L,Y){return L&&Cy(L,Y,ls)}function Bd(L,Y){return Jp(Y,function(ut){return rm(L[ut])})}function v0(L,Y){Y=hp(Y,L);for(var ut=0,Ft=Y.length;L!=null&&utY}function $A(L,Y){return L!=null&&bn.call(L,Y)}function WA(L,Y){return L!=null&&Y in Go(L)}function yy(L,Y,ut){return L>=hs(Y,ut)&&L=120&&Wi.length>=120)?new gc(Qe&&Wi):e}Wi=L[0];var rn=-1,Mn=ri[0];t:for(;++rn-1;)ri!==L&&Lc.call(ri,hi,1),Lc.call(L,hi,1);return L}function Z_(L,Y){for(var ut=L?Y.length:0,Ft=ut-1;ut--;){var ee=Y[ut];if(ut==Ft||ee!==we){var we=ee;_p(ee)?Lc.call(L,ee,1):iv(L,ee)}}return L}function th(L,Y){return L+Uf(ny()*(Y-L+1))}function Z1(L,Y,ut,Ft){for(var ee=-1,we=Ka(Gf((Y-L)/(ut||1)),0),Qe=bi(we);we--;)Qe[Ft?we:++ee]=L,L+=ut;return Qe}function X_(L,Y){var ut="";if(!L||Y<1||Y>G)return ut;do Y%2&&(ut+=L),Y=Uf(Y/2),Y&&(L+=L);while(Y);return ut}function Xr(L,Y){return lg(Qy(L,Y,jr),L+"")}function JA(L){return Dm(R0(L))}function tv(L,Y){var ut=R0(L);return gh(ut,_0(Y,0,ut.length))}function eh(L,Y,ut,Ft){if(!Pa(L))return L;Y=hp(Y,L);for(var ee=-1,we=Y.length,Qe=we-1,ri=L;ri!=null&&++eeee?0:ee+Y),ut=ut>ee?ee:ut,ut<0&&(ut+=ee),ee=Y>ut?0:ut-Y>>>0,Y>>>=0;for(var we=bi(ee);++Ft>>1,Qe=L[we];Qe!==null&&!Rs(Qe)&&(ut?Qe<=Y:Qe=i){var Ui=Y?null:zd(L);if(Ui)return z1(Ui);Qe=!1,ee=Nf,hi=new gc}else hi=Y?[]:ri;t:for(;++Ft=Ft?L:_c(L,Y,ut)}var ig=ZC||function(L){return fs.clearTimeout(L)};function My(L,Y){if(Y)return L.slice();var ut=L.length,Ft=N_?N_(ut):new L.constructor(ut);return L.copy(Ft),Ft}function av(L){var Y=new L.constructor(L.byteLength);return new Td(Y).set(new Td(L)),Y}function i7(L,Y){var ut=Y?av(L.buffer):L.buffer;return new L.constructor(ut,L.byteOffset,L.byteLength)}function C0(L){var Y=new L.constructor(L.source,Bn.exec(L));return Y.lastIndex=L.lastIndex,Y}function n7(L){return Qs?Go(Qs.call(L)):{}}function sv(L,Y){var ut=Y?av(L.buffer):L.buffer;return new L.constructor(ut,L.byteOffset,L.length)}function Dy(L,Y){if(L!==Y){var ut=L!==e,Ft=L===null,ee=L===L,we=Rs(L),Qe=Y!==e,ri=Y===null,hi=Y===Y,Ui=Rs(Y);if(!ri&&!Ui&&!we&&L>Y||we&&Qe&&hi&&!ri&&!Ui||Ft&&Qe&&hi||!ut&&hi||!ee)return 1;if(!Ft&&!we&&!Ui&&L=ri)return hi;var Ui=ut[Ft];return hi*(Ui=="desc"?-1:1)}}return L.index-Y.index}function Ay(L,Y,ut,Ft){for(var ee=-1,we=L.length,Qe=ut.length,ri=-1,hi=Y.length,Ui=Ka(we-Qe,0),Wi=bi(hi+Ui),rn=!Ft;++ri1?ut[ee-1]:e,Qe=ee>2?ut[2]:e;for(we=L.length>3&&typeof we=="function"?(ee--,we):e,Qe&&Ys(ut[0],ut[1],Qe)&&(we=ee<3?e:we,ee=1),Y=Go(Y);++Ft-1?ee[we?Y[Qe]:Qe]:e}}function Vd(L){return nm(function(Y){var ut=Y.length,Ft=ut,ee=hc.prototype.thru;for(L&&Y.reverse();Ft--;){var we=Y[Ft];if(typeof we!="function")throw new ml(n);if(ee&&!Qe&&k0(we)=="wrapper")var Qe=new hc([],!0)}for(Ft=Qe?Ft:ut;++Ft1&&go.reverse(),Wi&&hiri))return!1;var Ui=we.get(L),Wi=we.get(Y);if(Ui&&Wi)return Ui==Y&&Wi==L;var rn=-1,Mn=!0,Zn=ut&D?new gc:e;for(we.set(L,Y),we.set(Y,L);++rn1?"& ":"")+Y[Ft],Y=Y.join(ut>2?", ":" "),L.replace(Ri,`{ /* [wrapped with `+Y+`] */ `)}function Gy(L){return Vr(L)||F0(L)||!!(Hf&&L&&L[Hf])}function _p(L,Y){var ut=typeof L;return Y=Y??G,!!Y&&(ut=="number"||ut!="symbol"&&pa.test(L))&&L>-1&&L%1==0&&L0){if(++Y>=Ct)return arguments[0]}else Y=0;return L.apply(e,arguments)}}function gh(L,Y){var ut=-1,Ft=L.length,ee=Ft-1;for(Y=Y===e?Ft:Y;++ut1?L[Y-1]:e;return ut=typeof ut=="function"?(L.pop(),ut):e,Cc(L,ut)});function bv(L){var Y=be(L);return Y.__chain__=!0,Y}function L7(L,Y){return Y(L),L}function D0(L,Y){return Y(L)}var V7=nm(function(L){var Y=L.length,ut=Y?L[0]:0,Ft=this.__wrapped__,ee=function(we){return H1(we,L)};return Y>1||this.__actions__.length||!(Ft instanceof oo)||!_p(ut)?this.thru(ee):(Ft=Ft.slice(ut,+ut+(Y?1:0)),Ft.__actions__.push({func:D0,args:[ee],thisArg:e}),new hc(Ft,this.__chain__).thru(function(we){return Y&&!we.length&&we.push(e),we}))});function z7(){return bv(this)}function j7(){return new hc(this.value(),this.__chain__)}function f3(){this.__values__===e&&(this.__values__=fl(this.value()));var L=this.__index__>=this.__values__.length,Y=L?e:this.__values__[this.__index__++];return{done:L,value:Y}}function q7(){return this}function H7(L){for(var Y,ut=this;ut instanceof Fd;){var Ft=I0(ut);Ft.__index__=0,Ft.__values__=e,Y?ee.__wrapped__=Ft:Y=Ft;var ee=Ft;ut=ut.__wrapped__}return ee.__wrapped__=L,Y}function h3(){var L=this.__wrapped__;if(L instanceof oo){var Y=L;return this.__actions__.length&&(Y=new oo(this)),Y=Y.reverse(),Y.__actions__.push({func:D0,args:[mg],thisArg:e}),new hc(Y,this.__chain__)}return this.thru(mg)}function Cv(){return nv(this.__wrapped__,this.__actions__)}var g3=nh(function(L,Y,ut){bn.call(L,ut)?++L[ut]:em(L,ut,1)});function x3(L,Y,ut){var Ft=Vr(L)?I_:UA;return ut&&Ys(L,Y,ut)&&(Y=e),Ft(L,dr(Y,3))}function G7(L,Y){var ut=Vr(L)?Jp:by;return ut(L,dr(Y,3))}var _3=lv(xv),Xl=lv(Zy);function v3(L,Y){return As(A0(L,Y),1)}function U7(L,Y){return As(A0(L,Y),j)}function b3(L,Y,ut){return ut=ut===e?1:Jn(ut),As(A0(L,Y),ut)}function ug(L,Y){var ut=Vr(L)?mc:im;return ut(L,dr(Y,3))}function C3(L,Y){var ut=Vr(L)?LC:_y;return ut(L,dr(Y,3))}var $7=nh(function(L,Y,ut){bn.call(L,ut)?L[ut].push(Y):em(L,ut,[Y])});function tc(L,Y,ut,Ft){L=kl(L)?L:R0(L),ut=ut&&!Ft?Jn(ut):0;var ee=L.length;return ut<0&&(ut=Ka(ee+ut,0)),Ph(L)?ut<=ee&&L.indexOf(Y,ut)>-1:!!ee&&f0(L,Y,ut)>-1}var W7=Xr(function(L,Y,ut){var Ft=-1,ee=typeof Y=="function",we=kl(L)?bi(L.length):[];return im(L,function(Qe){we[++Ft]=ee?Ul(Y,Qe,ut):Rd(Qe,Y,ut)}),we}),Q7=nh(function(L,Y,ut){em(L,ut,Y)});function A0(L,Y){var ut=Vr(L)?sa:K_;return ut(L,dr(Y,3))}function Uc(L,Y,ut,Ft){return L==null?[]:(Vr(Y)||(Y=Y==null?[]:[Y]),ut=Ft?e:ut,Vr(ut)||(ut=ut==null?[]:[ut]),J_(L,Y,ut))}var Y7=nh(function(L,Y,ut){L[ut?0:1].push(Y)},function(){return[[],[]]});function bh(L,Y,ut){var Ft=Vr(L)?A1:R1,ee=arguments.length<3;return Ft(L,dr(Y,4),ut,ee,im)}function y3(L,Y,ut){var Ft=Vr(L)?bA:R1,ee=arguments.length<3;return Ft(L,dr(Y,4),ut,ee,_y)}function K7(L,Y){var ut=Vr(L)?Jp:by;return ut(L,fg(dr(Y,3)))}function S3(L){var Y=Vr(L)?Dm:JA;return Y(L)}function w3(L,Y,ut){(ut?Ys(L,Y,ut):Y===e)?Y=1:Y=Jn(Y);var Ft=Vr(L)?HA:tv;return Ft(L,Y)}function E3(L){var Y=Vr(L)?fy:XA;return Y(L)}function Ch(L){if(L==null)return 0;if(kl(L))return Ph(L)?Pd(L):L.length;var Y=Fs(L);return Y==pe||Y==fi?L.size:Y_(L).length}function P3(L,Y,ut){var Ft=Vr(L)?O1:t7;return ut&&Ys(L,Y,ut)&&(Y=e),Ft(L,dr(Y,3))}var k3=Xr(function(L,Y){if(L==null)return[];var ut=Y.length;return ut>1&&Ys(L,Y[0],Y[1])?Y=[]:ut>2&&Ys(Y[0],Y[1],Y[2])&&(Y=[Y[0]]),J_(L,As(Y,1),[])}),Gd=V_||function(){return fs.Date.now()};function I3(L,Y){if(typeof Y!="function")throw new ml(n);return L=Jn(L),function(){if(--L<1)return Y.apply(this,arguments)}}function yv(L,Y,ut){return Y=ut?e:Y,Y=L&&Y==null?L.length:Y,qc(L,gt,e,e,e,e,Y)}function Sv(L,Y){var ut;if(typeof Y!="function")throw new ml(n);return L=Jn(L),function(){return--L>0&&(ut=Y.apply(this,arguments)),L<=1&&(Y=e),ut}}var wv=Xr(function(L,Y,ut){var Ft=M;if(ut.length){var ee=Zp(ut,qd(wv));Ft|=tt}return qc(L,Ft,Y,ut,ee)}),T3=Xr(function(L,Y,ut){var Ft=M|F;if(ut.length){var ee=Zp(ut,qd(T3));Ft|=tt}return qc(Y,Ft,L,ut,ee)});function Ev(L,Y,ut){Y=ut?e:Y;var Ft=qc(L,z,e,e,e,e,e,Y);return Ft.placeholder=Ev.placeholder,Ft}function Pv(L,Y,ut){Y=ut?e:Y;var Ft=qc(L,$,e,e,e,e,e,Y);return Ft.placeholder=Pv.placeholder,Ft}function kv(L,Y,ut){var Ft,ee,we,Qe,ri,hi,Ui=0,Wi=!1,rn=!1,Mn=!0;if(typeof L!="function")throw new ml(n);Y=la(Y)||0,Pa(ut)&&(Wi=!!ut.leading,rn="maxWait"in ut,we=rn?Ka(la(ut.maxWait)||0,Y):we,Mn="trailing"in ut?!!ut.trailing:Mn);function Zn(Ga){var Wc=Ft,Qc=ee;return Ft=ee=e,Ui=Ga,Qe=L.apply(Qc,Wc),Qe}function ur(Ga){return Ui=Ga,ri=Bm(so,Y),Wi?Zn(Ga):Qe}function Qr(Ga){var Wc=Ga-hi,Qc=Ga-Ui,Jv=Y-Wc;return rn?hs(Jv,we-Qc):Jv}function gr(Ga){var Wc=Ga-hi,Qc=Ga-Ui;return hi===e||Wc>=Y||Wc<0||rn&&Qc>=we}function so(){var Ga=Gd();if(gr(Ga))return go(Ga);ri=Bm(so,Qr(Ga))}function go(Ga){return ri=e,Mn&&Ft?Zn(Ga):(Ft=ee=e,Qe)}function Il(){ri!==e&&ig(ri),Ui=0,Ft=hi=ee=ri=e}function gl(){return ri===e?Qe:go(Gd())}function Tl(){var Ga=Gd(),Wc=gr(Ga);if(Ft=arguments,ee=this,hi=Ga,Wc){if(ri===e)return ur(hi);if(rn)return ig(ri),ri=Bm(so,Y),Zn(hi)}return ri===e&&(ri=Bm(so,Y)),Qe}return Tl.cancel=Il,Tl.flush=gl,Tl}var J7=Xr(function(L,Y){return Kf(L,1,Y)}),Z7=Xr(function(L,Y,ut){return Kf(L,la(Y)||0,ut)});function X7(L){return qc(L,mt)}function yh(L,Y){if(typeof L!="function"||Y!=null&&typeof Y!="function")throw new ml(n);var ut=function(){var Ft=arguments,ee=Y?Y.apply(this,Ft):Ft[0],we=ut.cache;if(we.has(ee))return we.get(ee);var Qe=L.apply(this,Ft);return ut.cache=we.set(ee,Qe)||we,Qe};return ut.cache=new(yh.Cache||mp),ut}yh.Cache=mp;function fg(L){if(typeof L!="function")throw new ml(n);return function(){var Y=arguments;switch(Y.length){case 0:return!L.call(this);case 1:return!L.call(this,Y[0]);case 2:return!L.call(this,Y[0],Y[1]);case 3:return!L.call(this,Y[0],Y[1],Y[2])}return!L.apply(this,Y)}}function t8(L){return Sv(2,L)}var M3=e7(function(L,Y){Y=Y.length==1&&Vr(Y[0])?sa(Y[0],$l(dr())):sa(As(Y,1),$l(dr()));var ut=Y.length;return Xr(function(Ft){for(var ee=-1,we=hs(Ft.length,ut);++ee=Y}),F0=$_(function(){return arguments}())?$_:function(L){return Fa(L)&&bn.call(L,"callee")&&!L_.call(L,"callee")},Vr=bi.isArray,r8=FC?$l(FC):Sy;function kl(L){return L!=null&&wh(L.length)&&!rm(L)}function qa(L){return Fa(L)&&kl(L)}function o8(L){return L===!0||L===!1||Fa(L)&&Os(L)==ct}var Vm=MA||Sg,a8=Of?$l(Of):an;function s8(L){return Fa(L)&&L.nodeType===1&&!Bs(L)}function B0(L){if(L==null)return!0;if(kl(L)&&(Vr(L)||typeof L=="string"||typeof L.splice=="function"||Vm(L)||vp(L)||F0(L)))return!L.length;var Y=Fs(L);if(Y==pe||Y==fi)return!L.size;if(fh(L))return!Y_(L).length;for(var ut in L)if(bn.call(L,ut))return!1;return!0}function l8(L,Y){return Nd(L,Y)}function c8(L,Y,ut){ut=typeof ut=="function"?ut:e;var Ft=ut?ut(L,Y):e;return Ft===e?Nd(L,Y,e,ut):!!Ft}function gg(L){if(!Fa(L))return!1;var Y=Os(L);return Y==Kt||Y==It||typeof L.message=="string"&&typeof L.name=="string"&&!Bs(L)}function p8(L){return typeof L=="number"&&j_(L)}function rm(L){if(!Pa(L))return!1;var Y=Os(L);return Y==ke||Y==ce||Y==jt||Y==Ke}function N3(L){return typeof L=="number"&&L==Jn(L)}function wh(L){return typeof L=="number"&&L>-1&&L%1==0&&L<=G}function Pa(L){var Y=typeof L;return L!=null&&(Y=="object"||Y=="function")}function Fa(L){return L!=null&&typeof L=="object"}var Av=M1?$l(M1):wy;function m8(L,Y){return L===Y||W1(L,Y,pv(Y))}function d8(L,Y,ut){return ut=typeof ut=="function"?ut:e,W1(L,Y,pv(Y),ut)}function u8(L){return Fv(L)&&L!=+L}function f8(L){if(Uy(L))throw new Mr(o);return W_(L)}function h8(L){return L===null}function Ov(L){return L==null}function Fv(L){return typeof L=="number"||Fa(L)&&Os(L)==si}function Bs(L){if(!Fa(L)||Os(L)!=le)return!1;var Y=ua(L);if(Y===null)return!0;var ut=bn.call(Y,"constructor")&&Y.constructor;return typeof ut=="function"&&ut instanceof ut&&Id.call(ut)==KC}var Eh=BC?$l(BC):Ey;function L3(L){return N3(L)&&L>=-G&&L<=G}var Ud=RC?$l(RC):Q1;function Ph(L){return typeof L=="string"||!Vr(L)&&Fa(L)&&Os(L)==di}function Rs(L){return typeof L=="symbol"||Fa(L)&&Os(L)==gi}var vp=NC?$l(NC):YA;function V3(L){return L===e}function ko(L){return Fa(L)&&Fs(L)==Zi}function xs(L){return Fa(L)&&Os(L)==Xi}var $o=w0(K1),Ba=w0(function(L,Y){return L<=Y});function fl(L){if(!L)return[];if(kl(L))return Ph(L)?dc(L):Yl(L);if(Dd&&L[Dd])return EA(L[Dd]());var Y=Fs(L),ut=Y==pe?F_:Y==fi?z1:R0;return ut(L)}function bp(L){if(!L)return L===0?L:0;if(L=la(L),L===j||L===-j){var Y=L<0?-1:1;return Y*H}return L===L?L:0}function Jn(L){var Y=bp(L),ut=Y%1;return Y===Y?ut?Y-ut:Y:0}function Ha(L){return L?_0(Jn(L),0,et):0}function la(L){if(typeof L=="number")return L;if(Rs(L))return K;if(Pa(L)){var Y=typeof L.valueOf=="function"?L.valueOf():L;L=Pa(Y)?Y+"":Y}if(typeof L!="string")return L===0?L:+L;L=A_(L);var ut=zr.test(L);return ut||No.test(L)?wd(L.slice(2),ut?2:8):to.test(L)?K:+L}function Cp(L){return gp(L,hl(L))}function yp(L){return L?_0(Jn(L),-G,G):L===0?L:0}function Wr(L){return L==null?"":dl(L)}var g8=y0(function(L,Y){if(fh(Y)||kl(Y)){gp(Y,ls(Y),L);return}for(var ut in Y)bn.call(Y,ut)&&Po(L,ut,Y[ut])}),xg=y0(function(L,Y){gp(Y,hl(Y),L)}),ao=y0(function(L,Y,ut,Ft){gp(Y,hl(Y),L,Ft)}),x8=y0(function(L,Y,ut,Ft){gp(Y,ls(Y),L,Ft)}),z3=nm(H1);function _8(L,Y){var ut=Tm(L);return Y==null?ut:Yf(ut,Y)}var v8=Xr(function(L,Y){L=Go(L);var ut=-1,Ft=Y.length,ee=Ft>2?Y[2]:e;for(ee&&Ys(Y[0],Y[1],ee)&&(Ft=1);++ut1),we}),gp(L,ch(L),ut),Ft&&(ut=Pl(ut,y|C|E,Ny));for(var ee=Y.length;ee--;)iv(ut,Y[ee]);return ut});function _g(L,Y){return Q3(L,fg(dr(Y)))}var I8=nm(function(L,Y){return L==null?{}:b0(L,Y)});function Q3(L,Y){if(L==null)return{};var ut=sa(ch(L),function(Ft){return[Ft]});return Y=dr(Y),qo(L,ut,function(Ft,ee){return Y(Ft,ee[0])})}function T8(L,Y,ut){Y=hp(Y,L);var Ft=-1,ee=Y.length;for(ee||(ee=1,L=e);++FtY){var Ft=L;L=Y,Y=Ft}if(ut||L%1||Y%1){var ee=ny();return hs(L+ee*(Y-L+w_("1e-"+((ee+"").length-1))),Y)}return th(L,Y)}var B8=Fm(function(L,Y,ut){return Y=Y.toLowerCase(),L+(ut?eS(Y):Y)});function eS(L){return zv(Wr(L).toLowerCase())}function Lv(L){return L=Wr(L),L&&L.replace(Xo,Lf).replace(Sd,"")}function R8(L,Y,ut){L=Wr(L),Y=dl(Y);var Ft=L.length;ut=ut===e?Ft:_0(Jn(ut),0,Ft);var ee=ut;return ut-=Y.length,ut>=0&&L.slice(ut,ee)==Y}function Qd(L){return L=Wr(L),L&&Sr.test(L)?L.replace(oa,yA):L}function N8(L){return L=Wr(L),L&&wr.test(L)?L.replace(ds,"\\$&"):L}var om=Fm(function(L,Y,ut){return L+(ut?"-":"")+Y.toLowerCase()}),L8=Fm(function(L,Y,ut){return L+(ut?" ":"")+Y.toLowerCase()}),iS=Ry("toLowerCase");function nS(L,Y,ut){L=Wr(L),Y=Jn(Y);var Ft=Y?Pd(L):0;if(!Y||Ft>=Y)return L;var ee=(Y-Ft)/2;return xp(Uf(ee),ut)+L+xp(Gf(ee),ut)}function kh(L,Y,ut){L=Wr(L),Y=Jn(Y);var Ft=Y?Pd(L):0;return Y&&Ft>>0,ut?(L=Wr(L),L&&(typeof Y=="string"||Y!=null&&!Eh(Y))&&(Y=dl(Y),!Y&&Pm(L))?Om(dc(L),0,ut):L.split(Y,ut)):[]}var sS=Fm(function(L,Y,ut){return L+(ut?" ":"")+zv(Y)});function lS(L,Y,ut){return L=Wr(L),ut=ut==null?0:_0(Jn(ut),0,L.length),Y=dl(Y),L.slice(ut,ut+Y.length)==Y}function cS(L,Y,ut){var Ft=be.templateSettings;ut&&Ys(L,Y,ut)&&(Y=e),L=Wr(L),Y=ao({},Y,Ft,jd);var ee=ao({},Y.imports,Ft.imports,jd),we=ls(ee),Qe=O_(ee,we),ri,hi,Ui=0,Wi=Y.interpolate||ss,rn="__p += '",Mn=R_((Y.escape||ss).source+"|"+Wi.source+"|"+(Wi===sr?nr:ss).source+"|"+(Y.evaluate||ss).source+"|$","g"),Zn="//# sourceURL="+(bn.call(Y,"sourceURL")?(Y.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++y_+"]")+` `;L.replace(Mn,function(gr,so,go,Il,gl,Tl){return go||(go=Il),rn+=L.slice(Ui,Tl).replace(za,SA),so&&(ri=!0,rn+=`' + @@ -17,7 +17,7 @@ __p += '`),go&&(rn+=`' + function print() { __p += __j.call(arguments, '') } `:`; `)+rn+`return __p -}`;var Qr=mS(function(){return ro(we,Zn+"return "+rn).apply(e,Qe)});if(Qr.source=rn,gg(Qr))throw Qr;return Qr}function j8(L){return Wr(L).toLowerCase()}function pS(L){return Wr(L).toUpperCase()}function q8(L,Y,ut){if(L=Wr(L),L&&(ut||Y===e))return A_(L);if(!L||!(Y=dl(Y)))return L;var Ft=dc(L),ee=dc(Y),we=HC(Ft,ee),Qe=GC(Ft,ee)+1;return Om(Ft,we,Qe).join("")}function H8(L,Y,ut){if(L=Wr(L),L&&(ut||Y===e))return L.slice(0,WC(L)+1);if(!L||!(Y=dl(Y)))return L;var Ft=dc(L),ee=GC(Ft,dc(Y))+1;return Om(Ft,0,ee).join("")}function G8(L,Y,ut){if(L=Wr(L),L&&(ut||Y===e))return L.replace(Ze,"");if(!L||!(Y=dl(Y)))return L;var Ft=dc(L),ee=HC(Ft,dc(Y));return Om(Ft,ee).join("")}function U8(L,Y){var ut=vt,Ft=Tt;if(Pa(Y)){var ee="separator"in Y?Y.separator:ee;ut="length"in Y?Jn(Y.length):ut,Ft="omission"in Y?dl(Y.omission):Ft}L=Wr(L);var we=L.length;if(Pm(L)){var Qe=dc(L);we=Qe.length}if(ut>=we)return L;var ri=ut-Pd(Ft);if(ri<1)return Ft;var hi=Qe?Om(Qe,0,ri).join(""):L.slice(0,ri);if(ee===e)return hi+Ft;if(Qe&&(ri+=hi.length-ri),Eh(ee)){if(L.slice(ri).search(ee)){var Ui,Wi=hi;for(ee.global||(ee=R_(ee.source,Wr(Bn.exec(ee))+"g")),ee.lastIndex=0;Ui=ee.exec(Wi);)var rn=Ui.index;hi=hi.slice(0,rn===e?ri:rn)}}else if(L.indexOf(dl(ee),ri)!=ri){var Mn=hi.lastIndexOf(ee);Mn>-1&&(hi=hi.slice(0,Mn))}return hi+Ft}function $8(L){return L=Wr(L),L&&yr.test(L)?L.replace(ar,QC):L}var W8=Fm(function(L,Y,ut){return L+(ut?" ":"")+Y.toUpperCase()}),zv=Ry("toUpperCase");function vg(L,Y,ut){return L=Wr(L),Y=ut?e:Y,Y===e?wA(L)?YC(L):VC(L):L.match(Y)||[]}var mS=Xr(function(L,Y){try{return Ul(L,e,Y)}catch(ut){return gg(ut)?ut:new Mr(ut)}}),jv=nm(function(L,Y){return mc(Y,function(ut){ut=Hc(ut),em(L,ut,wv(L[ut],L))}),L});function zm(L){var Y=L==null?0:L.length,ut=dr();return L=Y?sa(L,function(Ft){if(typeof Ft[1]!="function")throw new ml(n);return[ut(Ft[0]),Ft[1]]}):[],Xr(function(Ft){for(var ee=-1;++eeG)return[];var ut=et,Ft=hs(L,et);Y=dr(Y),L-=et;for(var ee=L1(Ft,Y);++ut0||Y<0)?new oo(ut):(L<0?ut=ut.takeRight(-L):L&&(ut=ut.drop(L)),Y!==e&&(Y=Jn(Y),ut=Y<0?ut.dropRight(-Y):ut.take(Y-L)),ut)},oo.prototype.takeRightWhile=function(L){return this.reverse().takeWhile(L).reverse()},oo.prototype.toArray=function(){return this.take(et)},xc(oo.prototype,function(L,Y){var ut=/^(?:filter|find|map|reject)|While$/.test(Y),Ft=/^(?:head|last)$/.test(Y),ee=be[Ft?"take"+(Y=="last"?"Right":""):Y],we=Ft||/^find/.test(Y);ee&&(be.prototype[Y]=function(){var Qe=this.__wrapped__,ri=Ft?[1]:arguments,hi=Qe instanceof oo,Ui=ri[0],Wi=hi||Vr(Qe),rn=function(so){var go=ee.apply(be,Em([so],ri));return Ft&&Mn?go[0]:go};Wi&&ut&&typeof Ui=="function"&&Ui.length!=1&&(hi=Wi=!1);var Mn=this.__chain__,Zn=!!this.__actions__.length,ur=we&&!Mn,Qr=hi&&!Zn;if(!we&&Wi){Qe=Qr?Qe:new oo(this);var gr=L.apply(Qe,ri);return gr.__actions__.push({func:D0,args:[rn],thisArg:e}),new hc(gr,Mn)}return ur&&Qr?L.apply(this,ri):(gr=this.thru(rn),ur?Ft?gr.value()[0]:gr.value():gr)})}),mc(["pop","push","shift","sort","splice","unshift"],function(L){var Y=Vf[L],ut=/^(?:push|sort|unshift)$/.test(L)?"tap":"thru",Ft=/^(?:pop|shift)$/.test(L);be.prototype[L]=function(){var ee=arguments;if(Ft&&!this.__chain__){var we=this.value();return Y.apply(Vr(we)?we:[],ee)}return this[ut](function(Qe){return Y.apply(Vr(Qe)?Qe:[],ee)})}}),xc(oo.prototype,function(L,Y){var ut=be[Y];if(ut){var Ft=ut.name+"";bn.call(Od,Ft)||(Od[Ft]=[]),Od[Ft].push({name:Y,func:ut})}}),Od[rh(e,F).name]=[{name:"wrapper",func:e}],oo.prototype.clone=cp,oo.prototype.reverse=BA,oo.prototype.value=Tn,be.prototype.at=V7,be.prototype.chain=z7,be.prototype.commit=j7,be.prototype.next=f3,be.prototype.plant=H7,be.prototype.reverse=h3,be.prototype.toJSON=be.prototype.valueOf=be.prototype.value=Cv,be.prototype.first=be.prototype.head,Dd&&(be.prototype[Dd]=q7),be},Xp=TA();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(fs._=Xp,define(function(){return Xp})):u0?((u0.exports=Xp)._=Xp,I1._=Xp):fs._=Xp}).call(tx)});var JK=Pe(c5=>{"use strict";c5.byteLength=kEt;c5.toByteArray=TEt;c5.fromByteArray=AEt;var r0=[],Vp=[],PEt=typeof Uint8Array<"u"?Uint8Array:Array,yF="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(n1=0,YK=yF.length;n10)throw new Error("Invalid string. Length must be a multiple of 4");var i=e.indexOf("=");i===-1&&(i=r);var o=i===r?0:4-i%4;return[i,o]}function kEt(e){var r=KK(e),i=r[0],o=r[1];return(i+o)*3/4-o}function IEt(e,r,i){return(r+i)*3/4-i}function TEt(e){var r,i=KK(e),o=i[0],n=i[1],c=new PEt(IEt(e,o,n)),u=0,h=n>0?o-4:o,_;for(_=0;_>16&255,c[u++]=r>>8&255,c[u++]=r&255;return n===2&&(r=Vp[e.charCodeAt(_)]<<2|Vp[e.charCodeAt(_+1)]>>4,c[u++]=r&255),n===1&&(r=Vp[e.charCodeAt(_)]<<10|Vp[e.charCodeAt(_+1)]<<4|Vp[e.charCodeAt(_+2)]>>2,c[u++]=r>>8&255,c[u++]=r&255),c}function MEt(e){return r0[e>>18&63]+r0[e>>12&63]+r0[e>>6&63]+r0[e&63]}function DEt(e,r,i){for(var o,n=[],c=r;ch?h:u+c));return o===1?(r=e[i-1],n.push(r0[r>>2]+r0[r<<4&63]+"==")):o===2&&(r=(e[i-2]<<8)+e[i-1],n.push(r0[r>>10]+r0[r>>4&63]+r0[r<<2&63]+"=")),n.join("")}});var ZK=Pe(SF=>{SF.read=function(e,r,i,o,n){var c,u,h=n*8-o-1,_=(1<>1,C=-7,E=i?n-1:0,T=i?-1:1,D=e[r+E];for(E+=T,c=D&(1<<-C)-1,D>>=-C,C+=h;C>0;c=c*256+e[r+E],E+=T,C-=8);for(u=c&(1<<-C)-1,c>>=-C,C+=o;C>0;u=u*256+e[r+E],E+=T,C-=8);if(c===0)c=1-y;else{if(c===_)return u?NaN:(D?-1:1)*(1/0);u=u+Math.pow(2,o),c=c-y}return(D?-1:1)*u*Math.pow(2,c-o)};SF.write=function(e,r,i,o,n,c){var u,h,_,y=c*8-n-1,C=(1<>1,T=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,D=o?0:c-1,M=o?1:-1,F=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(h=isNaN(r)?1:0,u=C):(u=Math.floor(Math.log(r)/Math.LN2),r*(_=Math.pow(2,-u))<1&&(u--,_*=2),u+E>=1?r+=T/_:r+=T*Math.pow(2,1-E),r*_>=2&&(u++,_/=2),u+E>=C?(h=0,u=C):u+E>=1?(h=(r*_-1)*Math.pow(2,n),u=u+E):(h=r*Math.pow(2,E-1)*Math.pow(2,n),u=0));n>=8;e[i+D]=h&255,D+=M,h/=256,n-=8);for(u=u<0;e[i+D]=u&255,D+=M,u/=256,y-=8);e[i+D-M]|=F*128}});var mJ=Pe(gx=>{"use strict";var wF=JK(),hx=ZK(),XK=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;gx.Buffer=Qi;gx.SlowBuffer=LEt;gx.INSPECT_MAX_BYTES=50;var p5=2147483647;gx.kMaxLength=p5;Qi.TYPED_ARRAY_SUPPORT=OEt();!Qi.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function OEt(){try{var e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch{return!1}}Object.defineProperty(Qi.prototype,"parent",{enumerable:!0,get:function(){if(Qi.isBuffer(this))return this.buffer}});Object.defineProperty(Qi.prototype,"offset",{enumerable:!0,get:function(){if(Qi.isBuffer(this))return this.byteOffset}});function ed(e){if(e>p5)throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=new Uint8Array(e);return Object.setPrototypeOf(r,Qi.prototype),r}function Qi(e,r,i){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return IF(e)}return iJ(e,r,i)}Qi.poolSize=8192;function iJ(e,r,i){if(typeof e=="string")return BEt(e,r);if(ArrayBuffer.isView(e))return REt(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(o0(e,ArrayBuffer)||e&&o0(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(o0(e,SharedArrayBuffer)||e&&o0(e.buffer,SharedArrayBuffer)))return PF(e,r,i);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var o=e.valueOf&&e.valueOf();if(o!=null&&o!==e)return Qi.from(o,r,i);var n=NEt(e);if(n)return n;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return Qi.from(e[Symbol.toPrimitive]("string"),r,i);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}Qi.from=function(e,r,i){return iJ(e,r,i)};Object.setPrototypeOf(Qi.prototype,Uint8Array.prototype);Object.setPrototypeOf(Qi,Uint8Array);function nJ(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function FEt(e,r,i){return nJ(e),e<=0?ed(e):r!==void 0?typeof i=="string"?ed(e).fill(r,i):ed(e).fill(r):ed(e)}Qi.alloc=function(e,r,i){return FEt(e,r,i)};function IF(e){return nJ(e),ed(e<0?0:TF(e)|0)}Qi.allocUnsafe=function(e){return IF(e)};Qi.allocUnsafeSlow=function(e){return IF(e)};function BEt(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!Qi.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var i=rJ(e,r)|0,o=ed(i),n=o.write(e,r);return n!==i&&(o=o.slice(0,n)),o}function EF(e){for(var r=e.length<0?0:TF(e.length)|0,i=ed(r),o=0;o=p5)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+p5.toString(16)+" bytes");return e|0}function LEt(e){return+e!=e&&(e=0),Qi.alloc(+e)}Qi.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==Qi.prototype};Qi.compare=function(r,i){if(o0(r,Uint8Array)&&(r=Qi.from(r,r.offset,r.byteLength)),o0(i,Uint8Array)&&(i=Qi.from(i,i.offset,i.byteLength)),!Qi.isBuffer(r)||!Qi.isBuffer(i))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===i)return 0;for(var o=r.length,n=i.length,c=0,u=Math.min(o,n);cn.length?Qi.from(u).copy(n,c):Uint8Array.prototype.set.call(n,u,c);else if(Qi.isBuffer(u))u.copy(n,c);else throw new TypeError('"list" argument must be an Array of Buffers');c+=u.length}return n};function rJ(e,r){if(Qi.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||o0(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var i=e.length,o=arguments.length>2&&arguments[2]===!0;if(!o&&i===0)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return kF(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i*2;case"hex":return i>>>1;case"base64":return pJ(e).length;default:if(n)return o?-1:kF(e).length;r=(""+r).toLowerCase(),n=!0}}Qi.byteLength=rJ;function VEt(e,r,i){var o=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((i===void 0||i>this.length)&&(i=this.length),i<=0)||(i>>>=0,r>>>=0,i<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return YEt(this,r,i);case"utf8":case"utf-8":return aJ(this,r,i);case"ascii":return WEt(this,r,i);case"latin1":case"binary":return QEt(this,r,i);case"base64":return UEt(this,r,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return KEt(this,r,i);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}Qi.prototype._isBuffer=!0;function r1(e,r,i){var o=e[r];e[r]=e[i],e[i]=o}Qi.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var i=0;ii&&(r+=" ... "),""};XK&&(Qi.prototype[XK]=Qi.prototype.inspect);Qi.prototype.compare=function(r,i,o,n,c){if(o0(r,Uint8Array)&&(r=Qi.from(r,r.offset,r.byteLength)),!Qi.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(i===void 0&&(i=0),o===void 0&&(o=r?r.length:0),n===void 0&&(n=0),c===void 0&&(c=this.length),i<0||o>r.length||n<0||c>this.length)throw new RangeError("out of range index");if(n>=c&&i>=o)return 0;if(n>=c)return-1;if(i>=o)return 1;if(i>>>=0,o>>>=0,n>>>=0,c>>>=0,this===r)return 0;for(var u=c-n,h=o-i,_=Math.min(u,h),y=this.slice(n,c),C=r.slice(i,o),E=0;E<_;++E)if(y[E]!==C[E]){u=y[E],h=C[E];break}return u2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,MF(i)&&(i=n?0:e.length-1),i<0&&(i=e.length+i),i>=e.length){if(n)return-1;i=e.length-1}else if(i<0)if(n)i=0;else return-1;if(typeof r=="string"&&(r=Qi.from(r,o)),Qi.isBuffer(r))return r.length===0?-1:tJ(e,r,i,o,n);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(e,r,i):Uint8Array.prototype.lastIndexOf.call(e,r,i):tJ(e,[r],i,o,n);throw new TypeError("val must be string, number or Buffer")}function tJ(e,r,i,o,n){var c=1,u=e.length,h=r.length;if(o!==void 0&&(o=String(o).toLowerCase(),o==="ucs2"||o==="ucs-2"||o==="utf16le"||o==="utf-16le")){if(e.length<2||r.length<2)return-1;c=2,u/=2,h/=2,i/=2}function _(D,M){return c===1?D[M]:D.readUInt16BE(M*c)}var y;if(n){var C=-1;for(y=i;yu&&(i=u-h),y=i;y>=0;y--){for(var E=!0,T=0;Tn&&(o=n)):o=n;var c=r.length;o>c/2&&(o=c/2);for(var u=0;u>>0,isFinite(o)?(o=o>>>0,n===void 0&&(n="utf8")):(n=o,o=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var c=this.length-i;if((o===void 0||o>c)&&(o=c),r.length>0&&(o<0||i<0)||i>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var u=!1;;)switch(n){case"hex":return zEt(this,r,i,o);case"utf8":case"utf-8":return jEt(this,r,i,o);case"ascii":case"latin1":case"binary":return qEt(this,r,i,o);case"base64":return HEt(this,r,i,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return GEt(this,r,i,o);default:if(u)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),u=!0}};Qi.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function UEt(e,r,i){return r===0&&i===e.length?wF.fromByteArray(e):wF.fromByteArray(e.slice(r,i))}function aJ(e,r,i){i=Math.min(e.length,i);for(var o=[],n=r;n239?4:c>223?3:c>191?2:1;if(n+h<=i){var _,y,C,E;switch(h){case 1:c<128&&(u=c);break;case 2:_=e[n+1],(_&192)===128&&(E=(c&31)<<6|_&63,E>127&&(u=E));break;case 3:_=e[n+1],y=e[n+2],(_&192)===128&&(y&192)===128&&(E=(c&15)<<12|(_&63)<<6|y&63,E>2047&&(E<55296||E>57343)&&(u=E));break;case 4:_=e[n+1],y=e[n+2],C=e[n+3],(_&192)===128&&(y&192)===128&&(C&192)===128&&(E=(c&15)<<18|(_&63)<<12|(y&63)<<6|C&63,E>65535&&E<1114112&&(u=E))}}u===null?(u=65533,h=1):u>65535&&(u-=65536,o.push(u>>>10&1023|55296),u=56320|u&1023),o.push(u),n+=h}return $Et(o)}var eJ=4096;function $Et(e){var r=e.length;if(r<=eJ)return String.fromCharCode.apply(String,e);for(var i="",o=0;oo)&&(i=o);for(var n="",c=r;co&&(r=o),i<0?(i+=o,i<0&&(i=0)):i>o&&(i=o),ii)throw new RangeError("Trying to access beyond buffer length")}Qi.prototype.readUintLE=Qi.prototype.readUIntLE=function(r,i,o){r=r>>>0,i=i>>>0,o||sl(r,i,this.length);for(var n=this[r],c=1,u=0;++u>>0,i=i>>>0,o||sl(r,i,this.length);for(var n=this[r+--i],c=1;i>0&&(c*=256);)n+=this[r+--i]*c;return n};Qi.prototype.readUint8=Qi.prototype.readUInt8=function(r,i){return r=r>>>0,i||sl(r,1,this.length),this[r]};Qi.prototype.readUint16LE=Qi.prototype.readUInt16LE=function(r,i){return r=r>>>0,i||sl(r,2,this.length),this[r]|this[r+1]<<8};Qi.prototype.readUint16BE=Qi.prototype.readUInt16BE=function(r,i){return r=r>>>0,i||sl(r,2,this.length),this[r]<<8|this[r+1]};Qi.prototype.readUint32LE=Qi.prototype.readUInt32LE=function(r,i){return r=r>>>0,i||sl(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};Qi.prototype.readUint32BE=Qi.prototype.readUInt32BE=function(r,i){return r=r>>>0,i||sl(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};Qi.prototype.readIntLE=function(r,i,o){r=r>>>0,i=i>>>0,o||sl(r,i,this.length);for(var n=this[r],c=1,u=0;++u=c&&(n-=Math.pow(2,8*i)),n};Qi.prototype.readIntBE=function(r,i,o){r=r>>>0,i=i>>>0,o||sl(r,i,this.length);for(var n=i,c=1,u=this[r+--n];n>0&&(c*=256);)u+=this[r+--n]*c;return c*=128,u>=c&&(u-=Math.pow(2,8*i)),u};Qi.prototype.readInt8=function(r,i){return r=r>>>0,i||sl(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};Qi.prototype.readInt16LE=function(r,i){r=r>>>0,i||sl(r,2,this.length);var o=this[r]|this[r+1]<<8;return o&32768?o|4294901760:o};Qi.prototype.readInt16BE=function(r,i){r=r>>>0,i||sl(r,2,this.length);var o=this[r+1]|this[r]<<8;return o&32768?o|4294901760:o};Qi.prototype.readInt32LE=function(r,i){return r=r>>>0,i||sl(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};Qi.prototype.readInt32BE=function(r,i){return r=r>>>0,i||sl(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};Qi.prototype.readFloatLE=function(r,i){return r=r>>>0,i||sl(r,4,this.length),hx.read(this,r,!0,23,4)};Qi.prototype.readFloatBE=function(r,i){return r=r>>>0,i||sl(r,4,this.length),hx.read(this,r,!1,23,4)};Qi.prototype.readDoubleLE=function(r,i){return r=r>>>0,i||sl(r,8,this.length),hx.read(this,r,!0,52,8)};Qi.prototype.readDoubleBE=function(r,i){return r=r>>>0,i||sl(r,8,this.length),hx.read(this,r,!1,52,8)};function Ac(e,r,i,o,n,c){if(!Qi.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||re.length)throw new RangeError("Index out of range")}Qi.prototype.writeUintLE=Qi.prototype.writeUIntLE=function(r,i,o,n){if(r=+r,i=i>>>0,o=o>>>0,!n){var c=Math.pow(2,8*o)-1;Ac(this,r,i,o,c,0)}var u=1,h=0;for(this[i]=r&255;++h>>0,o=o>>>0,!n){var c=Math.pow(2,8*o)-1;Ac(this,r,i,o,c,0)}var u=o-1,h=1;for(this[i+u]=r&255;--u>=0&&(h*=256);)this[i+u]=r/h&255;return i+o};Qi.prototype.writeUint8=Qi.prototype.writeUInt8=function(r,i,o){return r=+r,i=i>>>0,o||Ac(this,r,i,1,255,0),this[i]=r&255,i+1};Qi.prototype.writeUint16LE=Qi.prototype.writeUInt16LE=function(r,i,o){return r=+r,i=i>>>0,o||Ac(this,r,i,2,65535,0),this[i]=r&255,this[i+1]=r>>>8,i+2};Qi.prototype.writeUint16BE=Qi.prototype.writeUInt16BE=function(r,i,o){return r=+r,i=i>>>0,o||Ac(this,r,i,2,65535,0),this[i]=r>>>8,this[i+1]=r&255,i+2};Qi.prototype.writeUint32LE=Qi.prototype.writeUInt32LE=function(r,i,o){return r=+r,i=i>>>0,o||Ac(this,r,i,4,4294967295,0),this[i+3]=r>>>24,this[i+2]=r>>>16,this[i+1]=r>>>8,this[i]=r&255,i+4};Qi.prototype.writeUint32BE=Qi.prototype.writeUInt32BE=function(r,i,o){return r=+r,i=i>>>0,o||Ac(this,r,i,4,4294967295,0),this[i]=r>>>24,this[i+1]=r>>>16,this[i+2]=r>>>8,this[i+3]=r&255,i+4};Qi.prototype.writeIntLE=function(r,i,o,n){if(r=+r,i=i>>>0,!n){var c=Math.pow(2,8*o-1);Ac(this,r,i,o,c-1,-c)}var u=0,h=1,_=0;for(this[i]=r&255;++u>0)-_&255;return i+o};Qi.prototype.writeIntBE=function(r,i,o,n){if(r=+r,i=i>>>0,!n){var c=Math.pow(2,8*o-1);Ac(this,r,i,o,c-1,-c)}var u=o-1,h=1,_=0;for(this[i+u]=r&255;--u>=0&&(h*=256);)r<0&&_===0&&this[i+u+1]!==0&&(_=1),this[i+u]=(r/h>>0)-_&255;return i+o};Qi.prototype.writeInt8=function(r,i,o){return r=+r,i=i>>>0,o||Ac(this,r,i,1,127,-128),r<0&&(r=255+r+1),this[i]=r&255,i+1};Qi.prototype.writeInt16LE=function(r,i,o){return r=+r,i=i>>>0,o||Ac(this,r,i,2,32767,-32768),this[i]=r&255,this[i+1]=r>>>8,i+2};Qi.prototype.writeInt16BE=function(r,i,o){return r=+r,i=i>>>0,o||Ac(this,r,i,2,32767,-32768),this[i]=r>>>8,this[i+1]=r&255,i+2};Qi.prototype.writeInt32LE=function(r,i,o){return r=+r,i=i>>>0,o||Ac(this,r,i,4,2147483647,-2147483648),this[i]=r&255,this[i+1]=r>>>8,this[i+2]=r>>>16,this[i+3]=r>>>24,i+4};Qi.prototype.writeInt32BE=function(r,i,o){return r=+r,i=i>>>0,o||Ac(this,r,i,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[i]=r>>>24,this[i+1]=r>>>16,this[i+2]=r>>>8,this[i+3]=r&255,i+4};function sJ(e,r,i,o,n,c){if(i+o>e.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function lJ(e,r,i,o,n){return r=+r,i=i>>>0,n||sJ(e,r,i,4,34028234663852886e22,-34028234663852886e22),hx.write(e,r,i,o,23,4),i+4}Qi.prototype.writeFloatLE=function(r,i,o){return lJ(this,r,i,!0,o)};Qi.prototype.writeFloatBE=function(r,i,o){return lJ(this,r,i,!1,o)};function cJ(e,r,i,o,n){return r=+r,i=i>>>0,n||sJ(e,r,i,8,17976931348623157e292,-17976931348623157e292),hx.write(e,r,i,o,52,8),i+8}Qi.prototype.writeDoubleLE=function(r,i,o){return cJ(this,r,i,!0,o)};Qi.prototype.writeDoubleBE=function(r,i,o){return cJ(this,r,i,!1,o)};Qi.prototype.copy=function(r,i,o,n){if(!Qi.isBuffer(r))throw new TypeError("argument should be a Buffer");if(o||(o=0),!n&&n!==0&&(n=this.length),i>=r.length&&(i=r.length),i||(i=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),r.length-i>>0,o=o===void 0?this.length:o>>>0,r||(r=0);var u;if(typeof r=="number")for(u=i;u55295&&i<57344){if(!n){if(i>56319){(r-=3)>-1&&c.push(239,191,189);continue}else if(u+1===o){(r-=3)>-1&&c.push(239,191,189);continue}n=i;continue}if(i<56320){(r-=3)>-1&&c.push(239,191,189),n=i;continue}i=(n-55296<<10|i-56320)+65536}else n&&(r-=3)>-1&&c.push(239,191,189);if(n=null,i<128){if((r-=1)<0)break;c.push(i)}else if(i<2048){if((r-=2)<0)break;c.push(i>>6|192,i&63|128)}else if(i<65536){if((r-=3)<0)break;c.push(i>>12|224,i>>6&63|128,i&63|128)}else if(i<1114112){if((r-=4)<0)break;c.push(i>>18|240,i>>12&63|128,i>>6&63|128,i&63|128)}else throw new Error("Invalid code point")}return c}function XEt(e){for(var r=[],i=0;i>8,n=i%256,c.push(n),c.push(o);return c}function pJ(e){return wF.toByteArray(ZEt(e))}function m5(e,r,i,o){for(var n=0;n=r.length||n>=e.length);++n)r[n+i]=e[n];return n}function o0(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function MF(e){return e!==e}var ePt=function(){for(var e="0123456789abcdef",r=new Array(256),i=0;i<16;++i)for(var o=i*16,n=0;n<16;++n)r[o+n]=e[i]+e[n];return r}()});var XX=Pe((dTn,ZX)=>{function Sme(){this.__data__=[],this.size=0}ZX.exports=Sme});var f1=Pe((uTn,ttt)=>{function wme(e,r){return e===r||e!==e&&r!==r}ttt.exports=wme});var I2=Pe((fTn,ett)=>{var Eme=f1();function Pme(e,r){for(var i=e.length;i--;)if(Eme(e[i][0],r))return i;return-1}ett.exports=Pme});var ntt=Pe((hTn,itt)=>{var kme=I2(),Ime=Array.prototype,Tme=Ime.splice;function Mme(e){var r=this.__data__,i=kme(r,e);if(i<0)return!1;var o=r.length-1;return i==o?r.pop():Tme.call(r,i,1),--this.size,!0}itt.exports=Mme});var ott=Pe((gTn,rtt)=>{var Dme=I2();function Ame(e){var r=this.__data__,i=Dme(r,e);return i<0?void 0:r[i][1]}rtt.exports=Ame});var stt=Pe((xTn,att)=>{var Ome=I2();function Fme(e){return Ome(this.__data__,e)>-1}att.exports=Fme});var ctt=Pe((_Tn,ltt)=>{var Bme=I2();function Rme(e,r){var i=this.__data__,o=Bme(i,e);return o<0?(++this.size,i.push([e,r])):i[o][1]=r,this}ltt.exports=Rme});var T2=Pe((vTn,ptt)=>{var Nme=XX(),Lme=ntt(),Vme=ott(),zme=stt(),jme=ctt();function kx(e){var r=-1,i=e==null?0:e.length;for(this.clear();++r{var qme=T2();function Hme(){this.__data__=new qme,this.size=0}mtt.exports=Hme});var ftt=Pe((CTn,utt)=>{function Gme(e){var r=this.__data__,i=r.delete(e);return this.size=r.size,i}utt.exports=Gme});var gtt=Pe((yTn,htt)=>{function Ume(e){return this.__data__.get(e)}htt.exports=Ume});var _tt=Pe((STn,xtt)=>{function $me(e){return this.__data__.has(e)}xtt.exports=$me});var _R=Pe((wTn,vtt)=>{var Wme=typeof global=="object"&&global&&global.Object===Object&&global;vtt.exports=Wme});var jp=Pe((ETn,btt)=>{var Qme=_R(),Yme=typeof self=="object"&&self&&self.Object===Object&&self,Kme=Qme||Yme||Function("return this")();btt.exports=Kme});var h1=Pe((PTn,Ctt)=>{var Jme=jp(),Zme=Jme.Symbol;Ctt.exports=Zme});var Ett=Pe((kTn,wtt)=>{var ytt=h1(),Stt=Object.prototype,Xme=Stt.hasOwnProperty,t0e=Stt.toString,M2=ytt?ytt.toStringTag:void 0;function e0e(e){var r=Xme.call(e,M2),i=e[M2];try{e[M2]=void 0;var o=!0}catch{}var n=t0e.call(e);return o&&(r?e[M2]=i:delete e[M2]),n}wtt.exports=e0e});var ktt=Pe((ITn,Ptt)=>{var i0e=Object.prototype,n0e=i0e.toString;function r0e(e){return n0e.call(e)}Ptt.exports=r0e});var ku=Pe((TTn,Mtt)=>{var Itt=h1(),o0e=Ett(),a0e=ktt(),s0e="[object Null]",l0e="[object Undefined]",Ttt=Itt?Itt.toStringTag:void 0;function c0e(e){return e==null?e===void 0?l0e:s0e:Ttt&&Ttt in Object(e)?o0e(e):a0e(e)}Mtt.exports=c0e});var Zc=Pe((MTn,Dtt)=>{function p0e(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}Dtt.exports=p0e});var Ix=Pe((DTn,Att)=>{var m0e=ku(),d0e=Zc(),u0e="[object AsyncFunction]",f0e="[object Function]",h0e="[object GeneratorFunction]",g0e="[object Proxy]";function x0e(e){if(!d0e(e))return!1;var r=m0e(e);return r==f0e||r==h0e||r==u0e||r==g0e}Att.exports=x0e});var Ftt=Pe((ATn,Ott)=>{var _0e=jp(),v0e=_0e["__core-js_shared__"];Ott.exports=v0e});var Ntt=Pe((OTn,Rtt)=>{var vR=Ftt(),Btt=function(){var e=/[^.]+$/.exec(vR&&vR.keys&&vR.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function b0e(e){return!!Btt&&Btt in e}Rtt.exports=b0e});var bR=Pe((FTn,Ltt)=>{var C0e=Function.prototype,y0e=C0e.toString;function S0e(e){if(e!=null){try{return y0e.call(e)}catch{}try{return e+""}catch{}}return""}Ltt.exports=S0e});var ztt=Pe((BTn,Vtt)=>{var w0e=Ix(),E0e=Ntt(),P0e=Zc(),k0e=bR(),I0e=/[\\^$.*+?()[\]{}|]/g,T0e=/^\[object .+?Constructor\]$/,M0e=Function.prototype,D0e=Object.prototype,A0e=M0e.toString,O0e=D0e.hasOwnProperty,F0e=RegExp("^"+A0e.call(O0e).replace(I0e,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function B0e(e){if(!P0e(e)||E0e(e))return!1;var r=w0e(e)?F0e:T0e;return r.test(k0e(e))}Vtt.exports=B0e});var qtt=Pe((RTn,jtt)=>{function R0e(e,r){return e?.[r]}jtt.exports=R0e});var Iu=Pe((NTn,Htt)=>{var N0e=ztt(),L0e=qtt();function V0e(e,r){var i=L0e(e,r);return N0e(i)?i:void 0}Htt.exports=V0e});var cI=Pe((LTn,Gtt)=>{var z0e=Iu(),j0e=jp(),q0e=z0e(j0e,"Map");Gtt.exports=q0e});var D2=Pe((VTn,Utt)=>{var H0e=Iu(),G0e=H0e(Object,"create");Utt.exports=G0e});var Qtt=Pe((zTn,Wtt)=>{var $tt=D2();function U0e(){this.__data__=$tt?$tt(null):{},this.size=0}Wtt.exports=U0e});var Ktt=Pe((jTn,Ytt)=>{function $0e(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}Ytt.exports=$0e});var Ztt=Pe((qTn,Jtt)=>{var W0e=D2(),Q0e="__lodash_hash_undefined__",Y0e=Object.prototype,K0e=Y0e.hasOwnProperty;function J0e(e){var r=this.__data__;if(W0e){var i=r[e];return i===Q0e?void 0:i}return K0e.call(r,e)?r[e]:void 0}Jtt.exports=J0e});var tet=Pe((HTn,Xtt)=>{var Z0e=D2(),X0e=Object.prototype,tde=X0e.hasOwnProperty;function ede(e){var r=this.__data__;return Z0e?r[e]!==void 0:tde.call(r,e)}Xtt.exports=ede});var iet=Pe((GTn,eet)=>{var ide=D2(),nde="__lodash_hash_undefined__";function rde(e,r){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=ide&&r===void 0?nde:r,this}eet.exports=rde});var ret=Pe((UTn,net)=>{var ode=Qtt(),ade=Ktt(),sde=Ztt(),lde=tet(),cde=iet();function Tx(e){var r=-1,i=e==null?0:e.length;for(this.clear();++r{var oet=ret(),pde=T2(),mde=cI();function dde(){this.size=0,this.__data__={hash:new oet,map:new(mde||pde),string:new oet}}aet.exports=dde});var pet=Pe((WTn,cet)=>{function ude(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}cet.exports=ude});var A2=Pe((QTn,met)=>{var fde=pet();function hde(e,r){var i=e.__data__;return fde(r)?i[typeof r=="string"?"string":"hash"]:i.map}met.exports=hde});var uet=Pe((YTn,det)=>{var gde=A2();function xde(e){var r=gde(this,e).delete(e);return this.size-=r?1:0,r}det.exports=xde});var het=Pe((KTn,fet)=>{var _de=A2();function vde(e){return _de(this,e).get(e)}fet.exports=vde});var xet=Pe((JTn,get)=>{var bde=A2();function Cde(e){return bde(this,e).has(e)}get.exports=Cde});var vet=Pe((ZTn,_et)=>{var yde=A2();function Sde(e,r){var i=yde(this,e),o=i.size;return i.set(e,r),this.size+=i.size==o?0:1,this}_et.exports=Sde});var pI=Pe((XTn,bet)=>{var wde=set(),Ede=uet(),Pde=het(),kde=xet(),Ide=vet();function Mx(e){var r=-1,i=e==null?0:e.length;for(this.clear();++r{var Tde=T2(),Mde=cI(),Dde=pI(),Ade=200;function Ode(e,r){var i=this.__data__;if(i instanceof Tde){var o=i.__data__;if(!Mde||o.length{var Fde=T2(),Bde=dtt(),Rde=ftt(),Nde=gtt(),Lde=_tt(),Vde=yet();function Dx(e){var r=this.__data__=new Fde(e);this.size=r.size}Dx.prototype.clear=Bde;Dx.prototype.delete=Rde;Dx.prototype.get=Nde;Dx.prototype.has=Lde;Dx.prototype.set=Vde;wet.exports=Dx});var mI=Pe((iMn,Eet)=>{function zde(e,r){for(var i=-1,o=e==null?0:e.length;++i{var jde=Iu(),qde=function(){try{var e=jde(Object,"defineProperty");return e({},"",{}),e}catch{}}();Pet.exports=qde});var F2=Pe((rMn,Iet)=>{var ket=CR();function Hde(e,r,i){r=="__proto__"&&ket?ket(e,r,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[r]=i}Iet.exports=Hde});var B2=Pe((oMn,Tet)=>{var Gde=F2(),Ude=f1(),$de=Object.prototype,Wde=$de.hasOwnProperty;function Qde(e,r,i){var o=e[r];(!(Wde.call(e,r)&&Ude(o,i))||i===void 0&&!(r in e))&&Gde(e,r,i)}Tet.exports=Qde});var Ax=Pe((aMn,Met)=>{var Yde=B2(),Kde=F2();function Jde(e,r,i,o){var n=!i;i||(i={});for(var c=-1,u=r.length;++c{function Zde(e,r){for(var i=-1,o=Array(e);++i{function Xde(e){return e!=null&&typeof e=="object"}Oet.exports=Xde});var Bet=Pe((cMn,Fet)=>{var tue=ku(),eue=bm(),iue="[object Arguments]";function nue(e){return eue(e)&&tue(e)==iue}Fet.exports=nue});var Ox=Pe((pMn,Let)=>{var Ret=Bet(),rue=bm(),Net=Object.prototype,oue=Net.hasOwnProperty,aue=Net.propertyIsEnumerable,sue=Ret(function(){return arguments}())?Ret:function(e){return rue(e)&&oue.call(e,"callee")&&!aue.call(e,"callee")};Let.exports=sue});var ms=Pe((mMn,Vet)=>{var lue=Array.isArray;Vet.exports=lue});var jet=Pe((dMn,zet)=>{function cue(){return!1}zet.exports=cue});var g1=Pe((R2,Fx)=>{var pue=jp(),mue=jet(),Get=typeof R2=="object"&&R2&&!R2.nodeType&&R2,qet=Get&&typeof Fx=="object"&&Fx&&!Fx.nodeType&&Fx,due=qet&&qet.exports===Get,Het=due?pue.Buffer:void 0,uue=Het?Het.isBuffer:void 0,fue=uue||mue;Fx.exports=fue});var N2=Pe((uMn,Uet)=>{var hue=9007199254740991,gue=/^(?:0|[1-9]\d*)$/;function xue(e,r){var i=typeof e;return r=r??hue,!!r&&(i=="number"||i!="symbol"&&gue.test(e))&&e>-1&&e%1==0&&e{var _ue=9007199254740991;function vue(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=_ue}$et.exports=vue});var Qet=Pe((hMn,Wet)=>{var bue=ku(),Cue=dI(),yue=bm(),Sue="[object Arguments]",wue="[object Array]",Eue="[object Boolean]",Pue="[object Date]",kue="[object Error]",Iue="[object Function]",Tue="[object Map]",Mue="[object Number]",Due="[object Object]",Aue="[object RegExp]",Oue="[object Set]",Fue="[object String]",Bue="[object WeakMap]",Rue="[object ArrayBuffer]",Nue="[object DataView]",Lue="[object Float32Array]",Vue="[object Float64Array]",zue="[object Int8Array]",jue="[object Int16Array]",que="[object Int32Array]",Hue="[object Uint8Array]",Gue="[object Uint8ClampedArray]",Uue="[object Uint16Array]",$ue="[object Uint32Array]",Ta={};Ta[Lue]=Ta[Vue]=Ta[zue]=Ta[jue]=Ta[que]=Ta[Hue]=Ta[Gue]=Ta[Uue]=Ta[$ue]=!0;Ta[Sue]=Ta[wue]=Ta[Rue]=Ta[Eue]=Ta[Nue]=Ta[Pue]=Ta[kue]=Ta[Iue]=Ta[Tue]=Ta[Mue]=Ta[Due]=Ta[Aue]=Ta[Oue]=Ta[Fue]=Ta[Bue]=!1;function Wue(e){return yue(e)&&Cue(e.length)&&!!Ta[bue(e)]}Wet.exports=Wue});var L2=Pe((gMn,Yet)=>{function Que(e){return function(r){return e(r)}}Yet.exports=Que});var uI=Pe((V2,Bx)=>{var Yue=_R(),Ket=typeof V2=="object"&&V2&&!V2.nodeType&&V2,z2=Ket&&typeof Bx=="object"&&Bx&&!Bx.nodeType&&Bx,Kue=z2&&z2.exports===Ket,yR=Kue&&Yue.process,Jue=function(){try{var e=z2&&z2.require&&z2.require("util").types;return e||yR&&yR.binding&&yR.binding("util")}catch{}}();Bx.exports=Jue});var Rx=Pe((xMn,Xet)=>{var Zue=Qet(),Xue=L2(),Jet=uI(),Zet=Jet&&Jet.isTypedArray,tfe=Zet?Xue(Zet):Zue;Xet.exports=tfe});var SR=Pe((_Mn,tit)=>{var efe=Aet(),ife=Ox(),nfe=ms(),rfe=g1(),ofe=N2(),afe=Rx(),sfe=Object.prototype,lfe=sfe.hasOwnProperty;function cfe(e,r){var i=nfe(e),o=!i&&ife(e),n=!i&&!o&&rfe(e),c=!i&&!o&&!n&&afe(e),u=i||o||n||c,h=u?efe(e.length,String):[],_=h.length;for(var y in e)(r||lfe.call(e,y))&&!(u&&(y=="length"||n&&(y=="offset"||y=="parent")||c&&(y=="buffer"||y=="byteLength"||y=="byteOffset")||ofe(y,_)))&&h.push(y);return h}tit.exports=cfe});var j2=Pe((vMn,eit)=>{var pfe=Object.prototype;function mfe(e){var r=e&&e.constructor,i=typeof r=="function"&&r.prototype||pfe;return e===i}eit.exports=mfe});var wR=Pe((bMn,iit)=>{function dfe(e,r){return function(i){return e(r(i))}}iit.exports=dfe});var rit=Pe((CMn,nit)=>{var ufe=wR(),ffe=ufe(Object.keys,Object);nit.exports=ffe});var fI=Pe((yMn,oit)=>{var hfe=j2(),gfe=rit(),xfe=Object.prototype,_fe=xfe.hasOwnProperty;function vfe(e){if(!hfe(e))return gfe(e);var r=[];for(var i in Object(e))_fe.call(e,i)&&i!="constructor"&&r.push(i);return r}oit.exports=vfe});var l0=Pe((SMn,ait)=>{var bfe=Ix(),Cfe=dI();function yfe(e){return e!=null&&Cfe(e.length)&&!bfe(e)}ait.exports=yfe});var sd=Pe((wMn,sit)=>{var Sfe=SR(),wfe=fI(),Efe=l0();function Pfe(e){return Efe(e)?Sfe(e):wfe(e)}sit.exports=Pfe});var cit=Pe((EMn,lit)=>{var kfe=Ax(),Ife=sd();function Tfe(e,r){return e&&kfe(r,Ife(r),e)}lit.exports=Tfe});var mit=Pe((PMn,pit)=>{function Mfe(e){var r=[];if(e!=null)for(var i in Object(e))r.push(i);return r}pit.exports=Mfe});var uit=Pe((kMn,dit)=>{var Dfe=Zc(),Afe=j2(),Ofe=mit(),Ffe=Object.prototype,Bfe=Ffe.hasOwnProperty;function Rfe(e){if(!Dfe(e))return Ofe(e);var r=Afe(e),i=[];for(var o in e)o=="constructor"&&(r||!Bfe.call(e,o))||i.push(o);return i}dit.exports=Rfe});var Tu=Pe((IMn,fit)=>{var Nfe=SR(),Lfe=uit(),Vfe=l0();function zfe(e){return Vfe(e)?Nfe(e,!0):Lfe(e)}fit.exports=zfe});var git=Pe((TMn,hit)=>{var jfe=Ax(),qfe=Tu();function Hfe(e,r){return e&&jfe(r,qfe(r),e)}hit.exports=Hfe});var ER=Pe((q2,Nx)=>{var Gfe=jp(),bit=typeof q2=="object"&&q2&&!q2.nodeType&&q2,xit=bit&&typeof Nx=="object"&&Nx&&!Nx.nodeType&&Nx,Ufe=xit&&xit.exports===bit,_it=Ufe?Gfe.Buffer:void 0,vit=_it?_it.allocUnsafe:void 0;function $fe(e,r){if(r)return e.slice();var i=e.length,o=vit?vit(i):new e.constructor(i);return e.copy(o),o}Nx.exports=$fe});var PR=Pe((MMn,Cit)=>{function Wfe(e,r){var i=-1,o=e.length;for(r||(r=Array(o));++i{function Qfe(e,r){for(var i=-1,o=e==null?0:e.length,n=0,c=[];++i{function Yfe(){return[]}Sit.exports=Yfe});var hI=Pe((OMn,Eit)=>{var Kfe=kR(),Jfe=IR(),Zfe=Object.prototype,Xfe=Zfe.propertyIsEnumerable,wit=Object.getOwnPropertySymbols,the=wit?function(e){return e==null?[]:(e=Object(e),Kfe(wit(e),function(r){return Xfe.call(e,r)}))}:Jfe;Eit.exports=the});var kit=Pe((FMn,Pit)=>{var ehe=Ax(),ihe=hI();function nhe(e,r){return ehe(e,ihe(e),r)}Pit.exports=nhe});var gI=Pe((BMn,Iit)=>{function rhe(e,r){for(var i=-1,o=r.length,n=e.length;++i{var ohe=wR(),ahe=ohe(Object.getPrototypeOf,Object);Tit.exports=ahe});var TR=Pe((NMn,Mit)=>{var she=gI(),lhe=H2(),che=hI(),phe=IR(),mhe=Object.getOwnPropertySymbols,dhe=mhe?function(e){for(var r=[];e;)she(r,che(e)),e=lhe(e);return r}:phe;Mit.exports=dhe});var Ait=Pe((LMn,Dit)=>{var uhe=Ax(),fhe=TR();function hhe(e,r){return uhe(e,fhe(e),r)}Dit.exports=hhe});var MR=Pe((VMn,Oit)=>{var ghe=gI(),xhe=ms();function _he(e,r,i){var o=r(e);return xhe(e)?o:ghe(o,i(e))}Oit.exports=_he});var DR=Pe((zMn,Fit)=>{var vhe=MR(),bhe=hI(),Che=sd();function yhe(e){return vhe(e,Che,bhe)}Fit.exports=yhe});var Rit=Pe((jMn,Bit)=>{var She=MR(),whe=TR(),Ehe=Tu();function Phe(e){return She(e,Ehe,whe)}Bit.exports=Phe});var Lit=Pe((qMn,Nit)=>{var khe=Iu(),Ihe=jp(),The=khe(Ihe,"DataView");Nit.exports=The});var zit=Pe((HMn,Vit)=>{var Mhe=Iu(),Dhe=jp(),Ahe=Mhe(Dhe,"Promise");Vit.exports=Ahe});var AR=Pe((GMn,jit)=>{var Ohe=Iu(),Fhe=jp(),Bhe=Ohe(Fhe,"Set");jit.exports=Bhe});var Hit=Pe((UMn,qit)=>{var Rhe=Iu(),Nhe=jp(),Lhe=Rhe(Nhe,"WeakMap");qit.exports=Lhe});var _1=Pe(($Mn,Kit)=>{var OR=Lit(),FR=cI(),BR=zit(),RR=AR(),NR=Hit(),Yit=ku(),Lx=bR(),Git="[object Map]",Vhe="[object Object]",Uit="[object Promise]",$it="[object Set]",Wit="[object WeakMap]",Qit="[object DataView]",zhe=Lx(OR),jhe=Lx(FR),qhe=Lx(BR),Hhe=Lx(RR),Ghe=Lx(NR),x1=Yit;(OR&&x1(new OR(new ArrayBuffer(1)))!=Qit||FR&&x1(new FR)!=Git||BR&&x1(BR.resolve())!=Uit||RR&&x1(new RR)!=$it||NR&&x1(new NR)!=Wit)&&(x1=function(e){var r=Yit(e),i=r==Vhe?e.constructor:void 0,o=i?Lx(i):"";if(o)switch(o){case zhe:return Qit;case jhe:return Git;case qhe:return Uit;case Hhe:return $it;case Ghe:return Wit}return r});Kit.exports=x1});var Zit=Pe((WMn,Jit)=>{var Uhe=Object.prototype,$he=Uhe.hasOwnProperty;function Whe(e){var r=e.length,i=new e.constructor(r);return r&&typeof e[0]=="string"&&$he.call(e,"index")&&(i.index=e.index,i.input=e.input),i}Jit.exports=Whe});var LR=Pe((QMn,Xit)=>{var Qhe=jp(),Yhe=Qhe.Uint8Array;Xit.exports=Yhe});var xI=Pe((YMn,ent)=>{var tnt=LR();function Khe(e){var r=new e.constructor(e.byteLength);return new tnt(r).set(new tnt(e)),r}ent.exports=Khe});var nnt=Pe((KMn,int)=>{var Jhe=xI();function Zhe(e,r){var i=r?Jhe(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}int.exports=Zhe});var ont=Pe((JMn,rnt)=>{var Xhe=/\w*$/;function t1e(e){var r=new e.constructor(e.source,Xhe.exec(e));return r.lastIndex=e.lastIndex,r}rnt.exports=t1e});var pnt=Pe((ZMn,cnt)=>{var ant=h1(),snt=ant?ant.prototype:void 0,lnt=snt?snt.valueOf:void 0;function e1e(e){return lnt?Object(lnt.call(e)):{}}cnt.exports=e1e});var VR=Pe((XMn,mnt)=>{var i1e=xI();function n1e(e,r){var i=r?i1e(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}mnt.exports=n1e});var unt=Pe((tDn,dnt)=>{var r1e=xI(),o1e=nnt(),a1e=ont(),s1e=pnt(),l1e=VR(),c1e="[object Boolean]",p1e="[object Date]",m1e="[object Map]",d1e="[object Number]",u1e="[object RegExp]",f1e="[object Set]",h1e="[object String]",g1e="[object Symbol]",x1e="[object ArrayBuffer]",_1e="[object DataView]",v1e="[object Float32Array]",b1e="[object Float64Array]",C1e="[object Int8Array]",y1e="[object Int16Array]",S1e="[object Int32Array]",w1e="[object Uint8Array]",E1e="[object Uint8ClampedArray]",P1e="[object Uint16Array]",k1e="[object Uint32Array]";function I1e(e,r,i){var o=e.constructor;switch(r){case x1e:return r1e(e);case c1e:case p1e:return new o(+e);case _1e:return o1e(e,i);case v1e:case b1e:case C1e:case y1e:case S1e:case w1e:case E1e:case P1e:case k1e:return l1e(e,i);case m1e:return new o;case d1e:case h1e:return new o(e);case u1e:return a1e(e);case f1e:return new o;case g1e:return s1e(e)}}dnt.exports=I1e});var zR=Pe((eDn,hnt)=>{var T1e=Zc(),fnt=Object.create,M1e=function(){function e(){}return function(r){if(!T1e(r))return{};if(fnt)return fnt(r);e.prototype=r;var i=new e;return e.prototype=void 0,i}}();hnt.exports=M1e});var jR=Pe((iDn,gnt)=>{var D1e=zR(),A1e=H2(),O1e=j2();function F1e(e){return typeof e.constructor=="function"&&!O1e(e)?D1e(A1e(e)):{}}gnt.exports=F1e});var _nt=Pe((nDn,xnt)=>{var B1e=_1(),R1e=bm(),N1e="[object Map]";function L1e(e){return R1e(e)&&B1e(e)==N1e}xnt.exports=L1e});var ynt=Pe((rDn,Cnt)=>{var V1e=_nt(),z1e=L2(),vnt=uI(),bnt=vnt&&vnt.isMap,j1e=bnt?z1e(bnt):V1e;Cnt.exports=j1e});var wnt=Pe((oDn,Snt)=>{var q1e=_1(),H1e=bm(),G1e="[object Set]";function U1e(e){return H1e(e)&&q1e(e)==G1e}Snt.exports=U1e});var Int=Pe((aDn,knt)=>{var $1e=wnt(),W1e=L2(),Ent=uI(),Pnt=Ent&&Ent.isSet,Q1e=Pnt?W1e(Pnt):$1e;knt.exports=Q1e});var qR=Pe((sDn,Ant)=>{var Y1e=O2(),K1e=mI(),J1e=B2(),Z1e=cit(),X1e=git(),tge=ER(),ege=PR(),ige=kit(),nge=Ait(),rge=DR(),oge=Rit(),age=_1(),sge=Zit(),lge=unt(),cge=jR(),pge=ms(),mge=g1(),dge=ynt(),uge=Zc(),fge=Int(),hge=sd(),gge=Tu(),xge=1,_ge=2,vge=4,Tnt="[object Arguments]",bge="[object Array]",Cge="[object Boolean]",yge="[object Date]",Sge="[object Error]",Mnt="[object Function]",wge="[object GeneratorFunction]",Ege="[object Map]",Pge="[object Number]",Dnt="[object Object]",kge="[object RegExp]",Ige="[object Set]",Tge="[object String]",Mge="[object Symbol]",Dge="[object WeakMap]",Age="[object ArrayBuffer]",Oge="[object DataView]",Fge="[object Float32Array]",Bge="[object Float64Array]",Rge="[object Int8Array]",Nge="[object Int16Array]",Lge="[object Int32Array]",Vge="[object Uint8Array]",zge="[object Uint8ClampedArray]",jge="[object Uint16Array]",qge="[object Uint32Array]",wa={};wa[Tnt]=wa[bge]=wa[Age]=wa[Oge]=wa[Cge]=wa[yge]=wa[Fge]=wa[Bge]=wa[Rge]=wa[Nge]=wa[Lge]=wa[Ege]=wa[Pge]=wa[Dnt]=wa[kge]=wa[Ige]=wa[Tge]=wa[Mge]=wa[Vge]=wa[zge]=wa[jge]=wa[qge]=!0;wa[Sge]=wa[Mnt]=wa[Dge]=!1;function _I(e,r,i,o,n,c){var u,h=r&xge,_=r&_ge,y=r&vge;if(i&&(u=n?i(e,o,n,c):i(e)),u!==void 0)return u;if(!uge(e))return e;var C=pge(e);if(C){if(u=sge(e),!h)return ege(e,u)}else{var E=age(e),T=E==Mnt||E==wge;if(mge(e))return tge(e,h);if(E==Dnt||E==Tnt||T&&!n){if(u=_||T?{}:cge(e),!h)return _?nge(e,X1e(u,e)):ige(e,Z1e(u,e))}else{if(!wa[E])return n?e:{};u=lge(e,E,h)}}c||(c=new Y1e);var D=c.get(e);if(D)return D;c.set(e,u),fge(e)?e.forEach(function(B){u.add(_I(B,r,i,B,e,c))}):dge(e)&&e.forEach(function(B,z){u.set(z,_I(B,r,i,z,e,c))});var M=y?_?oge:rge:_?gge:hge,F=C?void 0:M(e);return K1e(F||e,function(B,z){F&&(z=B,B=e[z]),J1e(u,z,_I(B,r,i,z,e,c))}),u}Ant.exports=_I});var Fnt=Pe((lDn,Ont)=>{var Hge=qR(),Gge=4;function Uge(e){return Hge(e,Gge)}Ont.exports=Uge});var vI=Pe((cDn,Bnt)=>{function $ge(e){return function(){return e}}Bnt.exports=$ge});var Nnt=Pe((pDn,Rnt)=>{function Wge(e){return function(r,i,o){for(var n=-1,c=Object(r),u=o(r),h=u.length;h--;){var _=u[e?h:++n];if(i(c[_],_,c)===!1)break}return r}}Rnt.exports=Wge});var bI=Pe((mDn,Lnt)=>{var Qge=Nnt(),Yge=Qge();Lnt.exports=Yge});var CI=Pe((dDn,Vnt)=>{var Kge=bI(),Jge=sd();function Zge(e,r){return e&&Kge(e,r,Jge)}Vnt.exports=Zge});var jnt=Pe((uDn,znt)=>{var Xge=l0();function txe(e,r){return function(i,o){if(i==null)return i;if(!Xge(i))return e(i,o);for(var n=i.length,c=r?n:-1,u=Object(i);(r?c--:++c{var exe=CI(),ixe=jnt(),nxe=ixe(exe);qnt.exports=nxe});var Mu=Pe((hDn,Hnt)=>{function rxe(e){return e}Hnt.exports=rxe});var HR=Pe((gDn,Gnt)=>{var oxe=Mu();function axe(e){return typeof e=="function"?e:oxe}Gnt.exports=axe});var GR=Pe((xDn,Unt)=>{var sxe=mI(),lxe=G2(),cxe=HR(),pxe=ms();function mxe(e,r){var i=pxe(e)?sxe:lxe;return i(e,cxe(r))}Unt.exports=mxe});var UR=Pe((_Dn,$nt)=>{$nt.exports=GR()});var Qnt=Pe((vDn,Wnt)=>{var dxe=G2();function uxe(e,r){var i=[];return dxe(e,function(o,n,c){r(o,n,c)&&i.push(o)}),i}Wnt.exports=uxe});var Knt=Pe((bDn,Ynt)=>{var fxe="__lodash_hash_undefined__";function hxe(e){return this.__data__.set(e,fxe),this}Ynt.exports=hxe});var Znt=Pe((CDn,Jnt)=>{function gxe(e){return this.__data__.has(e)}Jnt.exports=gxe});var $R=Pe((yDn,Xnt)=>{var xxe=pI(),_xe=Knt(),vxe=Znt();function yI(e){var r=-1,i=e==null?0:e.length;for(this.__data__=new xxe;++r{function bxe(e,r){for(var i=-1,o=e==null?0:e.length;++i{function Cxe(e,r){return e.has(r)}irt.exports=Cxe});var QR=Pe((EDn,nrt)=>{var yxe=$R(),Sxe=ert(),wxe=WR(),Exe=1,Pxe=2;function kxe(e,r,i,o,n,c){var u=i&Exe,h=e.length,_=r.length;if(h!=_&&!(u&&_>h))return!1;var y=c.get(e),C=c.get(r);if(y&&C)return y==r&&C==e;var E=-1,T=!0,D=i&Pxe?new yxe:void 0;for(c.set(e,r),c.set(r,e);++E{function Ixe(e){var r=-1,i=Array(e.size);return e.forEach(function(o,n){i[++r]=[n,o]}),i}rrt.exports=Ixe});var SI=Pe((kDn,art)=>{function Txe(e){var r=-1,i=Array(e.size);return e.forEach(function(o){i[++r]=o}),i}art.exports=Txe});var mrt=Pe((IDn,prt)=>{var srt=h1(),lrt=LR(),Mxe=f1(),Dxe=QR(),Axe=ort(),Oxe=SI(),Fxe=1,Bxe=2,Rxe="[object Boolean]",Nxe="[object Date]",Lxe="[object Error]",Vxe="[object Map]",zxe="[object Number]",jxe="[object RegExp]",qxe="[object Set]",Hxe="[object String]",Gxe="[object Symbol]",Uxe="[object ArrayBuffer]",$xe="[object DataView]",crt=srt?srt.prototype:void 0,YR=crt?crt.valueOf:void 0;function Wxe(e,r,i,o,n,c,u){switch(i){case $xe:if(e.byteLength!=r.byteLength||e.byteOffset!=r.byteOffset)return!1;e=e.buffer,r=r.buffer;case Uxe:return!(e.byteLength!=r.byteLength||!c(new lrt(e),new lrt(r)));case Rxe:case Nxe:case zxe:return Mxe(+e,+r);case Lxe:return e.name==r.name&&e.message==r.message;case jxe:case Hxe:return e==r+"";case Vxe:var h=Axe;case qxe:var _=o&Fxe;if(h||(h=Oxe),e.size!=r.size&&!_)return!1;var y=u.get(e);if(y)return y==r;o|=Bxe,u.set(e,r);var C=Dxe(h(e),h(r),o,n,c,u);return u.delete(e),C;case Gxe:if(YR)return YR.call(e)==YR.call(r)}return!1}prt.exports=Wxe});var frt=Pe((TDn,urt)=>{var drt=DR(),Qxe=1,Yxe=Object.prototype,Kxe=Yxe.hasOwnProperty;function Jxe(e,r,i,o,n,c){var u=i&Qxe,h=drt(e),_=h.length,y=drt(r),C=y.length;if(_!=C&&!u)return!1;for(var E=_;E--;){var T=h[E];if(!(u?T in r:Kxe.call(r,T)))return!1}var D=c.get(e),M=c.get(r);if(D&&M)return D==r&&M==e;var F=!0;c.set(e,r),c.set(r,e);for(var B=u;++E<_;){T=h[E];var z=e[T],$=r[T];if(o)var tt=u?o($,z,T,r,e,c):o(z,$,T,e,r,c);if(!(tt===void 0?z===$||n(z,$,i,o,c):tt)){F=!1;break}B||(B=T=="constructor")}if(F&&!B){var lt=e.constructor,gt=r.constructor;lt!=gt&&"constructor"in e&&"constructor"in r&&!(typeof lt=="function"&< instanceof lt&&typeof gt=="function"&> instanceof gt)&&(F=!1)}return c.delete(e),c.delete(r),F}urt.exports=Jxe});var yrt=Pe((MDn,Crt)=>{var KR=O2(),Zxe=QR(),Xxe=mrt(),t_e=frt(),hrt=_1(),grt=ms(),xrt=g1(),e_e=Rx(),i_e=1,_rt="[object Arguments]",vrt="[object Array]",wI="[object Object]",n_e=Object.prototype,brt=n_e.hasOwnProperty;function r_e(e,r,i,o,n,c){var u=grt(e),h=grt(r),_=u?vrt:hrt(e),y=h?vrt:hrt(r);_=_==_rt?wI:_,y=y==_rt?wI:y;var C=_==wI,E=y==wI,T=_==y;if(T&&xrt(e)){if(!xrt(r))return!1;u=!0,C=!1}if(T&&!C)return c||(c=new KR),u||e_e(e)?Zxe(e,r,i,o,n,c):Xxe(e,r,_,i,o,n,c);if(!(i&i_e)){var D=C&&brt.call(e,"__wrapped__"),M=E&&brt.call(r,"__wrapped__");if(D||M){var F=D?e.value():e,B=M?r.value():r;return c||(c=new KR),n(F,B,i,o,c)}}return T?(c||(c=new KR),t_e(e,r,i,o,n,c)):!1}Crt.exports=r_e});var JR=Pe((DDn,Ert)=>{var o_e=yrt(),Srt=bm();function wrt(e,r,i,o,n){return e===r?!0:e==null||r==null||!Srt(e)&&!Srt(r)?e!==e&&r!==r:o_e(e,r,i,o,wrt,n)}Ert.exports=wrt});var krt=Pe((ADn,Prt)=>{var a_e=O2(),s_e=JR(),l_e=1,c_e=2;function p_e(e,r,i,o){var n=i.length,c=n,u=!o;if(e==null)return!c;for(e=Object(e);n--;){var h=i[n];if(u&&h[2]?h[1]!==e[h[0]]:!(h[0]in e))return!1}for(;++n{var m_e=Zc();function d_e(e){return e===e&&!m_e(e)}Irt.exports=d_e});var Mrt=Pe((FDn,Trt)=>{var u_e=ZR(),f_e=sd();function h_e(e){for(var r=f_e(e),i=r.length;i--;){var o=r[i],n=e[o];r[i]=[o,n,u_e(n)]}return r}Trt.exports=h_e});var XR=Pe((BDn,Drt)=>{function g_e(e,r){return function(i){return i==null?!1:i[e]===r&&(r!==void 0||e in Object(i))}}Drt.exports=g_e});var Ort=Pe((RDn,Art)=>{var x_e=krt(),__e=Mrt(),v_e=XR();function b_e(e){var r=__e(e);return r.length==1&&r[0][2]?v_e(r[0][0],r[0][1]):function(i){return i===e||x_e(i,e,r)}}Art.exports=b_e});var v1=Pe((NDn,Frt)=>{var C_e=ku(),y_e=bm(),S_e="[object Symbol]";function w_e(e){return typeof e=="symbol"||y_e(e)&&C_e(e)==S_e}Frt.exports=w_e});var EI=Pe((LDn,Brt)=>{var E_e=ms(),P_e=v1(),k_e=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,I_e=/^\w*$/;function T_e(e,r){if(E_e(e))return!1;var i=typeof e;return i=="number"||i=="symbol"||i=="boolean"||e==null||P_e(e)?!0:I_e.test(e)||!k_e.test(e)||r!=null&&e in Object(r)}Brt.exports=T_e});var Lrt=Pe((VDn,Nrt)=>{var Rrt=pI(),M_e="Expected a function";function tN(e,r){if(typeof e!="function"||r!=null&&typeof r!="function")throw new TypeError(M_e);var i=function(){var o=arguments,n=r?r.apply(this,o):o[0],c=i.cache;if(c.has(n))return c.get(n);var u=e.apply(this,o);return i.cache=c.set(n,u)||c,u};return i.cache=new(tN.Cache||Rrt),i}tN.Cache=Rrt;Nrt.exports=tN});var zrt=Pe((zDn,Vrt)=>{var D_e=Lrt(),A_e=500;function O_e(e){var r=D_e(e,function(o){return i.size===A_e&&i.clear(),o}),i=r.cache;return r}Vrt.exports=O_e});var qrt=Pe((jDn,jrt)=>{var F_e=zrt(),B_e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,R_e=/\\(\\)?/g,N_e=F_e(function(e){var r=[];return e.charCodeAt(0)===46&&r.push(""),e.replace(B_e,function(i,o,n,c){r.push(n?c.replace(R_e,"$1"):o||i)}),r});jrt.exports=N_e});var U2=Pe((qDn,Hrt)=>{function L_e(e,r){for(var i=-1,o=e==null?0:e.length,n=Array(o);++i{var Grt=h1(),V_e=U2(),z_e=ms(),j_e=v1(),q_e=1/0,Urt=Grt?Grt.prototype:void 0,$rt=Urt?Urt.toString:void 0;function Wrt(e){if(typeof e=="string")return e;if(z_e(e))return V_e(e,Wrt)+"";if(j_e(e))return $rt?$rt.call(e):"";var r=e+"";return r=="0"&&1/e==-q_e?"-0":r}Qrt.exports=Wrt});var eN=Pe((GDn,Krt)=>{var H_e=Yrt();function G_e(e){return e==null?"":H_e(e)}Krt.exports=G_e});var $2=Pe((UDn,Jrt)=>{var U_e=ms(),$_e=EI(),W_e=qrt(),Q_e=eN();function Y_e(e,r){return U_e(e)?e:$_e(e,r)?[e]:W_e(Q_e(e))}Jrt.exports=Y_e});var Vx=Pe(($Dn,Zrt)=>{var K_e=v1(),J_e=1/0;function Z_e(e){if(typeof e=="string"||K_e(e))return e;var r=e+"";return r=="0"&&1/e==-J_e?"-0":r}Zrt.exports=Z_e});var W2=Pe((WDn,Xrt)=>{var X_e=$2(),tve=Vx();function eve(e,r){r=X_e(r,e);for(var i=0,o=r.length;e!=null&&i{var ive=W2();function nve(e,r,i){var o=e==null?void 0:ive(e,r);return o===void 0?i:o}tot.exports=nve});var not=Pe((YDn,iot)=>{function rve(e,r){return e!=null&&r in Object(e)}iot.exports=rve});var iN=Pe((KDn,rot)=>{var ove=$2(),ave=Ox(),sve=ms(),lve=N2(),cve=dI(),pve=Vx();function mve(e,r,i){r=ove(r,e);for(var o=-1,n=r.length,c=!1;++o{var dve=not(),uve=iN();function fve(e,r){return e!=null&&uve(e,r,dve)}oot.exports=fve});var sot=Pe((ZDn,aot)=>{var hve=JR(),gve=eot(),xve=nN(),_ve=EI(),vve=ZR(),bve=XR(),Cve=Vx(),yve=1,Sve=2;function wve(e,r){return _ve(e)&&vve(r)?bve(Cve(e),r):function(i){var o=gve(i,e);return o===void 0&&o===r?xve(i,e):hve(r,o,yve|Sve)}}aot.exports=wve});var rN=Pe((XDn,lot)=>{function Eve(e){return function(r){return r?.[e]}}lot.exports=Eve});var pot=Pe((t6n,cot)=>{var Pve=W2();function kve(e){return function(r){return Pve(r,e)}}cot.exports=kve});var dot=Pe((e6n,mot)=>{var Ive=rN(),Tve=pot(),Mve=EI(),Dve=Vx();function Ave(e){return Mve(e)?Ive(Dve(e)):Tve(e)}mot.exports=Ave});var c0=Pe((i6n,uot)=>{var Ove=Ort(),Fve=sot(),Bve=Mu(),Rve=ms(),Nve=dot();function Lve(e){return typeof e=="function"?e:e==null?Bve:typeof e=="object"?Rve(e)?Fve(e[0],e[1]):Ove(e):Nve(e)}uot.exports=Lve});var oN=Pe((n6n,fot)=>{var Vve=kR(),zve=Qnt(),jve=c0(),qve=ms();function Hve(e,r){var i=qve(e)?Vve:zve;return i(e,jve(r,3))}fot.exports=Hve});var got=Pe((r6n,hot)=>{var Gve=Object.prototype,Uve=Gve.hasOwnProperty;function $ve(e,r){return e!=null&&Uve.call(e,r)}hot.exports=$ve});var aN=Pe((o6n,xot)=>{var Wve=got(),Qve=iN();function Yve(e,r){return e!=null&&Qve(e,r,Wve)}xot.exports=Yve});var vot=Pe((a6n,_ot)=>{var Kve=fI(),Jve=_1(),Zve=Ox(),Xve=ms(),tbe=l0(),ebe=g1(),ibe=j2(),nbe=Rx(),rbe="[object Map]",obe="[object Set]",abe=Object.prototype,sbe=abe.hasOwnProperty;function lbe(e){if(e==null)return!0;if(tbe(e)&&(Xve(e)||typeof e=="string"||typeof e.splice=="function"||ebe(e)||nbe(e)||Zve(e)))return!e.length;var r=Jve(e);if(r==rbe||r==obe)return!e.size;if(ibe(e))return!Kve(e).length;for(var i in e)if(sbe.call(e,i))return!1;return!0}_ot.exports=lbe});var sN=Pe((s6n,bot)=>{function cbe(e){return e===void 0}bot.exports=cbe});var lN=Pe((l6n,Cot)=>{var pbe=G2(),mbe=l0();function dbe(e,r){var i=-1,o=mbe(e)?Array(e.length):[];return pbe(e,function(n,c,u){o[++i]=r(n,c,u)}),o}Cot.exports=dbe});var cN=Pe((c6n,yot)=>{var ube=U2(),fbe=c0(),hbe=lN(),gbe=ms();function xbe(e,r){var i=gbe(e)?ube:hbe;return i(e,fbe(r,3))}yot.exports=xbe});var wot=Pe((p6n,Sot)=>{function _be(e,r,i,o){var n=-1,c=e==null?0:e.length;for(o&&c&&(i=e[++n]);++n{function vbe(e,r,i,o,n){return n(e,function(c,u,h){i=o?(o=!1,c):r(i,c,u,h)}),i}Eot.exports=vbe});var pN=Pe((d6n,kot)=>{var bbe=wot(),Cbe=G2(),ybe=c0(),Sbe=Pot(),wbe=ms();function Ebe(e,r,i){var o=wbe(e)?bbe:Sbe,n=arguments.length<3;return o(e,ybe(r,4),i,n,Cbe)}kot.exports=Ebe});var Tot=Pe((u6n,Iot)=>{var Pbe=ku(),kbe=ms(),Ibe=bm(),Tbe="[object String]";function Mbe(e){return typeof e=="string"||!kbe(e)&&Ibe(e)&&Pbe(e)==Tbe}Iot.exports=Mbe});var Dot=Pe((f6n,Mot)=>{var Dbe=rN(),Abe=Dbe("length");Mot.exports=Abe});var Oot=Pe((h6n,Aot)=>{var Obe="\\ud800-\\udfff",Fbe="\\u0300-\\u036f",Bbe="\\ufe20-\\ufe2f",Rbe="\\u20d0-\\u20ff",Nbe=Fbe+Bbe+Rbe,Lbe="\\ufe0e\\ufe0f",Vbe="\\u200d",zbe=RegExp("["+Vbe+Obe+Nbe+Lbe+"]");function jbe(e){return zbe.test(e)}Aot.exports=jbe});var qot=Pe((g6n,jot)=>{var Bot="\\ud800-\\udfff",qbe="\\u0300-\\u036f",Hbe="\\ufe20-\\ufe2f",Gbe="\\u20d0-\\u20ff",Ube=qbe+Hbe+Gbe,$be="\\ufe0e\\ufe0f",Wbe="["+Bot+"]",mN="["+Ube+"]",dN="\\ud83c[\\udffb-\\udfff]",Qbe="(?:"+mN+"|"+dN+")",Rot="[^"+Bot+"]",Not="(?:\\ud83c[\\udde6-\\uddff]){2}",Lot="[\\ud800-\\udbff][\\udc00-\\udfff]",Ybe="\\u200d",Vot=Qbe+"?",zot="["+$be+"]?",Kbe="(?:"+Ybe+"(?:"+[Rot,Not,Lot].join("|")+")"+zot+Vot+")*",Jbe=zot+Vot+Kbe,Zbe="(?:"+[Rot+mN+"?",mN,Not,Lot,Wbe].join("|")+")",Fot=RegExp(dN+"(?="+dN+")|"+Zbe+Jbe,"g");function Xbe(e){for(var r=Fot.lastIndex=0;Fot.test(e);)++r;return r}jot.exports=Xbe});var Got=Pe((x6n,Hot)=>{var t2e=Dot(),e2e=Oot(),i2e=qot();function n2e(e){return e2e(e)?i2e(e):t2e(e)}Hot.exports=n2e});var $ot=Pe((_6n,Uot)=>{var r2e=fI(),o2e=_1(),a2e=l0(),s2e=Tot(),l2e=Got(),c2e="[object Map]",p2e="[object Set]";function m2e(e){if(e==null)return 0;if(a2e(e))return s2e(e)?l2e(e):e.length;var r=o2e(e);return r==c2e||r==p2e?e.size:r2e(e).length}Uot.exports=m2e});var Qot=Pe((v6n,Wot)=>{var d2e=mI(),u2e=zR(),f2e=CI(),h2e=c0(),g2e=H2(),x2e=ms(),_2e=g1(),v2e=Ix(),b2e=Zc(),C2e=Rx();function y2e(e,r,i){var o=x2e(e),n=o||_2e(e)||C2e(e);if(r=h2e(r,4),i==null){var c=e&&e.constructor;n?i=o?new c:[]:b2e(e)?i=v2e(c)?u2e(g2e(e)):{}:i={}}return(n?d2e:f2e)(e,function(u,h,_){return r(i,u,h,_)}),i}Wot.exports=y2e});var Zot=Pe((b6n,Jot)=>{var Yot=h1(),S2e=Ox(),w2e=ms(),Kot=Yot?Yot.isConcatSpreadable:void 0;function E2e(e){return w2e(e)||S2e(e)||!!(Kot&&e&&e[Kot])}Jot.exports=E2e});var PI=Pe((C6n,tat)=>{var P2e=gI(),k2e=Zot();function Xot(e,r,i,o,n){var c=-1,u=e.length;for(i||(i=k2e),n||(n=[]);++c0&&i(h)?r>1?Xot(h,r-1,i,o,n):P2e(n,h):o||(n[n.length]=h)}return n}tat.exports=Xot});var iat=Pe((y6n,eat)=>{function I2e(e,r,i){switch(i.length){case 0:return e.call(r);case 1:return e.call(r,i[0]);case 2:return e.call(r,i[0],i[1]);case 3:return e.call(r,i[0],i[1],i[2])}return e.apply(r,i)}eat.exports=I2e});var uN=Pe((S6n,rat)=>{var T2e=iat(),nat=Math.max;function M2e(e,r,i){return r=nat(r===void 0?e.length-1:r,0),function(){for(var o=arguments,n=-1,c=nat(o.length-r,0),u=Array(c);++n{var D2e=vI(),oat=CR(),A2e=Mu(),O2e=oat?function(e,r){return oat(e,"toString",{configurable:!0,enumerable:!1,value:D2e(r),writable:!0})}:A2e;aat.exports=O2e});var cat=Pe((E6n,lat)=>{var F2e=800,B2e=16,R2e=Date.now;function N2e(e){var r=0,i=0;return function(){var o=R2e(),n=B2e-(o-i);if(i=o,n>0){if(++r>=F2e)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}lat.exports=N2e});var fN=Pe((P6n,pat)=>{var L2e=sat(),V2e=cat(),z2e=V2e(L2e);pat.exports=z2e});var Q2=Pe((k6n,mat)=>{var j2e=Mu(),q2e=uN(),H2e=fN();function G2e(e,r){return H2e(q2e(e,r,j2e),e+"")}mat.exports=G2e});var hN=Pe((I6n,dat)=>{function U2e(e,r,i,o){for(var n=e.length,c=i+(o?1:-1);o?c--:++c{function $2e(e){return e!==e}uat.exports=$2e});var gat=Pe((M6n,hat)=>{function W2e(e,r,i){for(var o=i-1,n=e.length;++o{var Q2e=hN(),Y2e=fat(),K2e=gat();function J2e(e,r,i){return r===r?K2e(e,r,i):Q2e(e,Y2e,i)}xat.exports=J2e});var bat=Pe((A6n,vat)=>{var Z2e=_at();function X2e(e,r){var i=e==null?0:e.length;return!!i&&Z2e(e,r,0)>-1}vat.exports=X2e});var yat=Pe((O6n,Cat)=>{function tCe(e,r,i){for(var o=-1,n=e==null?0:e.length;++o{function eCe(){}Sat.exports=eCe});var Pat=Pe((B6n,Eat)=>{var gN=AR(),iCe=wat(),nCe=SI(),rCe=1/0,oCe=gN&&1/nCe(new gN([,-0]))[1]==rCe?function(e){return new gN(e)}:iCe;Eat.exports=oCe});var Iat=Pe((R6n,kat)=>{var aCe=$R(),sCe=bat(),lCe=yat(),cCe=WR(),pCe=Pat(),mCe=SI(),dCe=200;function uCe(e,r,i){var o=-1,n=sCe,c=e.length,u=!0,h=[],_=h;if(i)u=!1,n=lCe;else if(c>=dCe){var y=r?null:pCe(e);if(y)return mCe(y);u=!1,n=cCe,_=new aCe}else _=r?[]:h;t:for(;++o{var fCe=l0(),hCe=bm();function gCe(e){return hCe(e)&&fCe(e)}Tat.exports=gCe});var Dat=Pe((L6n,Mat)=>{var xCe=PI(),_Ce=Q2(),vCe=Iat(),bCe=xN(),CCe=_Ce(function(e){return vCe(xCe(e,1,bCe,!0))});Mat.exports=CCe});var Oat=Pe((V6n,Aat)=>{var yCe=U2();function SCe(e,r){return yCe(r,function(i){return e[i]})}Aat.exports=SCe});var _N=Pe((z6n,Fat)=>{var wCe=Oat(),ECe=sd();function PCe(e){return e==null?[]:wCe(e,ECe(e))}Fat.exports=PCe});var Xc=Pe((j6n,Bat)=>{var kI;if(typeof lm=="function")try{kI={clone:Fnt(),constant:vI(),each:UR(),filter:oN(),has:aN(),isArray:ms(),isEmpty:vot(),isFunction:Ix(),isUndefined:sN(),keys:sd(),map:cN(),reduce:pN(),size:$ot(),transform:Qot(),union:Dat(),values:_N()}}catch{}kI||(kI=window._);Bat.exports=kI});var II=Pe((H6n,Vat)=>{"use strict";var Hr=Xc();Vat.exports=fo;var kCe="\0",b1="\0",Rat="";function fo(e){this._isDirected=Hr.has(e,"directed")?e.directed:!0,this._isMultigraph=Hr.has(e,"multigraph")?e.multigraph:!1,this._isCompound=Hr.has(e,"compound")?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=Hr.constant(void 0),this._defaultEdgeLabelFn=Hr.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[b1]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}fo.prototype._nodeCount=0;fo.prototype._edgeCount=0;fo.prototype.isDirected=function(){return this._isDirected};fo.prototype.isMultigraph=function(){return this._isMultigraph};fo.prototype.isCompound=function(){return this._isCompound};fo.prototype.setGraph=function(e){return this._label=e,this};fo.prototype.graph=function(){return this._label};fo.prototype.setDefaultNodeLabel=function(e){return Hr.isFunction(e)||(e=Hr.constant(e)),this._defaultNodeLabelFn=e,this};fo.prototype.nodeCount=function(){return this._nodeCount};fo.prototype.nodes=function(){return Hr.keys(this._nodes)};fo.prototype.sources=function(){var e=this;return Hr.filter(this.nodes(),function(r){return Hr.isEmpty(e._in[r])})};fo.prototype.sinks=function(){var e=this;return Hr.filter(this.nodes(),function(r){return Hr.isEmpty(e._out[r])})};fo.prototype.setNodes=function(e,r){var i=arguments,o=this;return Hr.each(e,function(n){i.length>1?o.setNode(n,r):o.setNode(n)}),this};fo.prototype.setNode=function(e,r){return Hr.has(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=r),this):(this._nodes[e]=arguments.length>1?r:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=b1,this._children[e]={},this._children[b1][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)};fo.prototype.node=function(e){return this._nodes[e]};fo.prototype.hasNode=function(e){return Hr.has(this._nodes,e)};fo.prototype.removeNode=function(e){var r=this;if(Hr.has(this._nodes,e)){var i=function(o){r.removeEdge(r._edgeObjs[o])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],Hr.each(this.children(e),function(o){r.setParent(o)}),delete this._children[e]),Hr.each(Hr.keys(this._in[e]),i),delete this._in[e],delete this._preds[e],Hr.each(Hr.keys(this._out[e]),i),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this};fo.prototype.setParent=function(e,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(Hr.isUndefined(r))r=b1;else{r+="";for(var i=r;!Hr.isUndefined(i);i=this.parent(i))if(i===e)throw new Error("Setting "+r+" as parent of "+e+" would create a cycle");this.setNode(r)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=r,this._children[r][e]=!0,this};fo.prototype._removeFromParentsChildList=function(e){delete this._children[this._parent[e]][e]};fo.prototype.parent=function(e){if(this._isCompound){var r=this._parent[e];if(r!==b1)return r}};fo.prototype.children=function(e){if(Hr.isUndefined(e)&&(e=b1),this._isCompound){var r=this._children[e];if(r)return Hr.keys(r)}else{if(e===b1)return this.nodes();if(this.hasNode(e))return[]}};fo.prototype.predecessors=function(e){var r=this._preds[e];if(r)return Hr.keys(r)};fo.prototype.successors=function(e){var r=this._sucs[e];if(r)return Hr.keys(r)};fo.prototype.neighbors=function(e){var r=this.predecessors(e);if(r)return Hr.union(r,this.successors(e))};fo.prototype.isLeaf=function(e){var r;return this.isDirected()?r=this.successors(e):r=this.neighbors(e),r.length===0};fo.prototype.filterNodes=function(e){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var i=this;Hr.each(this._nodes,function(c,u){e(u)&&r.setNode(u,c)}),Hr.each(this._edgeObjs,function(c){r.hasNode(c.v)&&r.hasNode(c.w)&&r.setEdge(c,i.edge(c))});var o={};function n(c){var u=i.parent(c);return u===void 0||r.hasNode(u)?(o[c]=u,u):u in o?o[u]:n(u)}return this._isCompound&&Hr.each(r.nodes(),function(c){r.setParent(c,n(c))}),r};fo.prototype.setDefaultEdgeLabel=function(e){return Hr.isFunction(e)||(e=Hr.constant(e)),this._defaultEdgeLabelFn=e,this};fo.prototype.edgeCount=function(){return this._edgeCount};fo.prototype.edges=function(){return Hr.values(this._edgeObjs)};fo.prototype.setPath=function(e,r){var i=this,o=arguments;return Hr.reduce(e,function(n,c){return o.length>1?i.setEdge(n,c,r):i.setEdge(n,c),c}),this};fo.prototype.setEdge=function(){var e,r,i,o,n=!1,c=arguments[0];typeof c=="object"&&c!==null&&"v"in c?(e=c.v,r=c.w,i=c.name,arguments.length===2&&(o=arguments[1],n=!0)):(e=c,r=arguments[1],i=arguments[3],arguments.length>2&&(o=arguments[2],n=!0)),e=""+e,r=""+r,Hr.isUndefined(i)||(i=""+i);var u=Y2(this._isDirected,e,r,i);if(Hr.has(this._edgeLabels,u))return n&&(this._edgeLabels[u]=o),this;if(!Hr.isUndefined(i)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(r),this._edgeLabels[u]=n?o:this._defaultEdgeLabelFn(e,r,i);var h=ICe(this._isDirected,e,r,i);return e=h.v,r=h.w,Object.freeze(h),this._edgeObjs[u]=h,Nat(this._preds[r],e),Nat(this._sucs[e],r),this._in[r][u]=h,this._out[e][u]=h,this._edgeCount++,this};fo.prototype.edge=function(e,r,i){var o=arguments.length===1?vN(this._isDirected,arguments[0]):Y2(this._isDirected,e,r,i);return this._edgeLabels[o]};fo.prototype.hasEdge=function(e,r,i){var o=arguments.length===1?vN(this._isDirected,arguments[0]):Y2(this._isDirected,e,r,i);return Hr.has(this._edgeLabels,o)};fo.prototype.removeEdge=function(e,r,i){var o=arguments.length===1?vN(this._isDirected,arguments[0]):Y2(this._isDirected,e,r,i),n=this._edgeObjs[o];return n&&(e=n.v,r=n.w,delete this._edgeLabels[o],delete this._edgeObjs[o],Lat(this._preds[r],e),Lat(this._sucs[e],r),delete this._in[r][o],delete this._out[e][o],this._edgeCount--),this};fo.prototype.inEdges=function(e,r){var i=this._in[e];if(i){var o=Hr.values(i);return r?Hr.filter(o,function(n){return n.v===r}):o}};fo.prototype.outEdges=function(e,r){var i=this._out[e];if(i){var o=Hr.values(i);return r?Hr.filter(o,function(n){return n.w===r}):o}};fo.prototype.nodeEdges=function(e,r){var i=this.inEdges(e,r);if(i)return i.concat(this.outEdges(e,r))};function Nat(e,r){e[r]?e[r]++:e[r]=1}function Lat(e,r){--e[r]||delete e[r]}function Y2(e,r,i,o){var n=""+r,c=""+i;if(!e&&n>c){var u=n;n=c,c=u}return n+Rat+c+Rat+(Hr.isUndefined(o)?kCe:o)}function ICe(e,r,i,o){var n=""+r,c=""+i;if(!e&&n>c){var u=n;n=c,c=u}var h={v:n,w:c};return o&&(h.name=o),h}function vN(e,r){return Y2(e,r.v,r.w,r.name)}});var jat=Pe((G6n,zat)=>{zat.exports="2.1.8"});var Hat=Pe((U6n,qat)=>{qat.exports={Graph:II(),version:jat()}});var Uat=Pe(($6n,Gat)=>{var p0=Xc(),TCe=II();Gat.exports={write:MCe,read:OCe};function MCe(e){var r={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:DCe(e),edges:ACe(e)};return p0.isUndefined(e.graph())||(r.value=p0.clone(e.graph())),r}function DCe(e){return p0.map(e.nodes(),function(r){var i=e.node(r),o=e.parent(r),n={v:r};return p0.isUndefined(i)||(n.value=i),p0.isUndefined(o)||(n.parent=o),n})}function ACe(e){return p0.map(e.edges(),function(r){var i=e.edge(r),o={v:r.v,w:r.w};return p0.isUndefined(r.name)||(o.name=r.name),p0.isUndefined(i)||(o.value=i),o})}function OCe(e){var r=new TCe(e.options).setGraph(e.value);return p0.each(e.nodes,function(i){r.setNode(i.v,i.value),i.parent&&r.setParent(i.v,i.parent)}),p0.each(e.edges,function(i){r.setEdge({v:i.v,w:i.w,name:i.name},i.value)}),r}});var Wat=Pe((W6n,$at)=>{var TI=Xc();$at.exports=FCe;function FCe(e){var r={},i=[],o;function n(c){TI.has(r,c)||(r[c]=!0,o.push(c),TI.each(e.successors(c),n),TI.each(e.predecessors(c),n))}return TI.each(e.nodes(),function(c){o=[],n(c),o.length&&i.push(o)}),i}});var bN=Pe((Q6n,Yat)=>{var Qat=Xc();Yat.exports=qp;function qp(){this._arr=[],this._keyIndices={}}qp.prototype.size=function(){return this._arr.length};qp.prototype.keys=function(){return this._arr.map(function(e){return e.key})};qp.prototype.has=function(e){return Qat.has(this._keyIndices,e)};qp.prototype.priority=function(e){var r=this._keyIndices[e];if(r!==void 0)return this._arr[r].priority};qp.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key};qp.prototype.add=function(e,r){var i=this._keyIndices;if(e=String(e),!Qat.has(i,e)){var o=this._arr,n=o.length;return i[e]=n,o.push({key:e,priority:r}),this._decrease(n),!0}return!1};qp.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key};qp.prototype.decrease=function(e,r){var i=this._keyIndices[e];if(r>this._arr[i].priority)throw new Error("New priority is greater than current priority. Key: "+e+" Old: "+this._arr[i].priority+" New: "+r);this._arr[i].priority=r,this._decrease(i)};qp.prototype._heapify=function(e){var r=this._arr,i=2*e,o=i+1,n=e;i>1,!(r[o].priority{var BCe=Xc(),RCe=bN();Kat.exports=LCe;var NCe=BCe.constant(1);function LCe(e,r,i,o){return VCe(e,String(r),i||NCe,o||function(n){return e.outEdges(n)})}function VCe(e,r,i,o){var n={},c=new RCe,u,h,_=function(y){var C=y.v!==u?y.v:y.w,E=n[C],T=i(y),D=h.distance+T;if(T<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+y+" Weight: "+T);D0&&(u=c.removeMin(),h=n[u],h.distance!==Number.POSITIVE_INFINITY);)o(u).forEach(_);return n}});var Zat=Pe((K6n,Jat)=>{var zCe=CN(),jCe=Xc();Jat.exports=qCe;function qCe(e,r,i){return jCe.transform(e.nodes(),function(o,n){o[n]=zCe(e,n,r,i)},{})}});var yN=Pe((J6n,tst)=>{var Xat=Xc();tst.exports=HCe;function HCe(e){var r=0,i=[],o={},n=[];function c(u){var h=o[u]={onStack:!0,lowlink:r,index:r++};if(i.push(u),e.successors(u).forEach(function(C){Xat.has(o,C)?o[C].onStack&&(h.lowlink=Math.min(h.lowlink,o[C].index)):(c(C),h.lowlink=Math.min(h.lowlink,o[C].lowlink))}),h.lowlink===h.index){var _=[],y;do y=i.pop(),o[y].onStack=!1,_.push(y);while(u!==y);n.push(_)}}return e.nodes().forEach(function(u){Xat.has(o,u)||c(u)}),n}});var ist=Pe((Z6n,est)=>{var GCe=Xc(),UCe=yN();est.exports=$Ce;function $Ce(e){return GCe.filter(UCe(e),function(r){return r.length>1||r.length===1&&e.hasEdge(r[0],r[0])})}});var rst=Pe((X6n,nst)=>{var WCe=Xc();nst.exports=YCe;var QCe=WCe.constant(1);function YCe(e,r,i){return KCe(e,r||QCe,i||function(o){return e.outEdges(o)})}function KCe(e,r,i){var o={},n=e.nodes();return n.forEach(function(c){o[c]={},o[c][c]={distance:0},n.forEach(function(u){c!==u&&(o[c][u]={distance:Number.POSITIVE_INFINITY})}),i(c).forEach(function(u){var h=u.v===c?u.w:u.v,_=r(u);o[c][h]={distance:_,predecessor:c}})}),n.forEach(function(c){var u=o[c];n.forEach(function(h){var _=o[h];n.forEach(function(y){var C=_[c],E=u[y],T=_[y],D=C.distance+E.distance;D{var K2=Xc();ast.exports=ost;ost.CycleException=MI;function ost(e){var r={},i={},o=[];function n(c){if(K2.has(i,c))throw new MI;K2.has(r,c)||(i[c]=!0,r[c]=!0,K2.each(e.predecessors(c),n),delete i[c],o.push(c))}if(K2.each(e.sinks(),n),K2.size(r)!==e.nodeCount())throw new MI;return o}function MI(){}MI.prototype=new Error});var cst=Pe((eAn,lst)=>{var sst=SN();lst.exports=JCe;function JCe(e){try{sst(e)}catch(r){if(r instanceof sst.CycleException)return!1;throw r}return!0}});var wN=Pe((iAn,mst)=>{var DI=Xc();mst.exports=ZCe;function ZCe(e,r,i){DI.isArray(r)||(r=[r]);var o=(e.isDirected()?e.successors:e.neighbors).bind(e),n=[],c={};return DI.each(r,function(u){if(!e.hasNode(u))throw new Error("Graph does not have node: "+u);pst(e,u,i==="post",c,o,n)}),n}function pst(e,r,i,o,n,c){DI.has(o,r)||(o[r]=!0,i||c.push(r),DI.each(n(r),function(u){pst(e,u,i,o,n,c)}),i&&c.push(r))}});var ust=Pe((nAn,dst)=>{var XCe=wN();dst.exports=tye;function tye(e,r){return XCe(e,r,"post")}});var hst=Pe((rAn,fst)=>{var eye=wN();fst.exports=iye;function iye(e,r){return eye(e,r,"pre")}});var _st=Pe((oAn,xst)=>{var gst=Xc(),nye=II(),rye=bN();xst.exports=oye;function oye(e,r){var i=new nye,o={},n=new rye,c;function u(_){var y=_.v===c?_.w:_.v,C=n.priority(y);if(C!==void 0){var E=r(_);E0;){if(c=n.removeMin(),gst.has(o,c))i.setEdge(c,o[c]);else{if(h)throw new Error("Input graph is not connected: "+e);h=!0}e.nodeEdges(c).forEach(u)}return i}});var bst=Pe((aAn,vst)=>{vst.exports={components:Wat(),dijkstra:CN(),dijkstraAll:Zat(),findCycles:ist(),floydWarshall:rst(),isAcyclic:cst(),postorder:ust(),preorder:hst(),prim:_st(),tarjan:yN(),topsort:SN()}});var Sst=Pe((sAn,yst)=>{var Cst=Hat();yst.exports={Graph:Cst.Graph,json:Uat(),alg:bst(),version:Cst.version}});var Hp=Pe((lAn,wst)=>{var AI;if(typeof lm=="function")try{AI=Sst()}catch{}AI||(AI=window.graphlib);wst.exports=AI});var Pst=Pe((pAn,Est)=>{var aye=qR(),sye=1,lye=4;function cye(e){return aye(e,sye|lye)}Est.exports=cye});var J2=Pe((mAn,kst)=>{var pye=f1(),mye=l0(),dye=N2(),uye=Zc();function fye(e,r,i){if(!uye(i))return!1;var o=typeof r;return(o=="number"?mye(i)&&dye(r,i.length):o=="string"&&r in i)?pye(i[r],e):!1}kst.exports=fye});var Mst=Pe((dAn,Tst)=>{var hye=Q2(),gye=f1(),xye=J2(),_ye=Tu(),Ist=Object.prototype,vye=Ist.hasOwnProperty,bye=hye(function(e,r){e=Object(e);var i=-1,o=r.length,n=o>2?r[2]:void 0;for(n&&xye(r[0],r[1],n)&&(o=1);++i{var Cye=c0(),yye=l0(),Sye=sd();function wye(e){return function(r,i,o){var n=Object(r);if(!yye(r)){var c=Cye(i,3);r=Sye(r),i=function(h){return c(n[h],h,n)}}var u=e(r,i,o);return u>-1?n[c?r[u]:u]:void 0}}Dst.exports=wye});var Fst=Pe((fAn,Ost)=>{var Eye=/\s/;function Pye(e){for(var r=e.length;r--&&Eye.test(e.charAt(r)););return r}Ost.exports=Pye});var Rst=Pe((hAn,Bst)=>{var kye=Fst(),Iye=/^\s+/;function Tye(e){return e&&e.slice(0,kye(e)+1).replace(Iye,"")}Bst.exports=Tye});var zst=Pe((gAn,Vst)=>{var Mye=Rst(),Nst=Zc(),Dye=v1(),Lst=NaN,Aye=/^[-+]0x[0-9a-f]+$/i,Oye=/^0b[01]+$/i,Fye=/^0o[0-7]+$/i,Bye=parseInt;function Rye(e){if(typeof e=="number")return e;if(Dye(e))return Lst;if(Nst(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=Nst(r)?r+"":r}if(typeof e!="string")return e===0?e:+e;e=Mye(e);var i=Oye.test(e);return i||Fye.test(e)?Bye(e.slice(2),i?2:8):Aye.test(e)?Lst:+e}Vst.exports=Rye});var EN=Pe((xAn,qst)=>{var Nye=zst(),jst=1/0,Lye=17976931348623157e292;function Vye(e){if(!e)return e===0?e:0;if(e=Nye(e),e===jst||e===-jst){var r=e<0?-1:1;return r*Lye}return e===e?e:0}qst.exports=Vye});var Gst=Pe((_An,Hst)=>{var zye=EN();function jye(e){var r=zye(e),i=r%1;return r===r?i?r-i:r:0}Hst.exports=jye});var $st=Pe((vAn,Ust)=>{var qye=hN(),Hye=c0(),Gye=Gst(),Uye=Math.max;function $ye(e,r,i){var o=e==null?0:e.length;if(!o)return-1;var n=i==null?0:Gye(i);return n<0&&(n=Uye(o+n,0)),qye(e,Hye(r,3),n)}Ust.exports=$ye});var Qst=Pe((bAn,Wst)=>{var Wye=Ast(),Qye=$st(),Yye=Wye(Qye);Wst.exports=Yye});var PN=Pe((CAn,Yst)=>{var Kye=PI();function Jye(e){var r=e==null?0:e.length;return r?Kye(e,1):[]}Yst.exports=Jye});var Jst=Pe((yAn,Kst)=>{var Zye=bI(),Xye=HR(),t3e=Tu();function e3e(e,r){return e==null?e:Zye(e,Xye(r),t3e)}Kst.exports=e3e});var Xst=Pe((SAn,Zst)=>{function i3e(e){var r=e==null?0:e.length;return r?e[r-1]:void 0}Zst.exports=i3e});var elt=Pe((wAn,tlt)=>{var n3e=F2(),r3e=CI(),o3e=c0();function a3e(e,r){var i={};return r=o3e(r,3),r3e(e,function(o,n,c){n3e(i,n,r(o,n,c))}),i}tlt.exports=a3e});var OI=Pe((EAn,ilt)=>{var s3e=v1();function l3e(e,r,i){for(var o=-1,n=e.length;++o{function c3e(e,r){return e>r}nlt.exports=c3e});var alt=Pe((kAn,olt)=>{var p3e=OI(),m3e=rlt(),d3e=Mu();function u3e(e){return e&&e.length?p3e(e,d3e,m3e):void 0}olt.exports=u3e});var kN=Pe((IAn,slt)=>{var f3e=F2(),h3e=f1();function g3e(e,r,i){(i!==void 0&&!h3e(e[r],i)||i===void 0&&!(r in e))&&f3e(e,r,i)}slt.exports=g3e});var plt=Pe((TAn,clt)=>{var x3e=ku(),_3e=H2(),v3e=bm(),b3e="[object Object]",C3e=Function.prototype,y3e=Object.prototype,llt=C3e.toString,S3e=y3e.hasOwnProperty,w3e=llt.call(Object);function E3e(e){if(!v3e(e)||x3e(e)!=b3e)return!1;var r=_3e(e);if(r===null)return!0;var i=S3e.call(r,"constructor")&&r.constructor;return typeof i=="function"&&i instanceof i&&llt.call(i)==w3e}clt.exports=E3e});var IN=Pe((MAn,mlt)=>{function P3e(e,r){if(!(r==="constructor"&&typeof e[r]=="function")&&r!="__proto__")return e[r]}mlt.exports=P3e});var ult=Pe((DAn,dlt)=>{var k3e=Ax(),I3e=Tu();function T3e(e){return k3e(e,I3e(e))}dlt.exports=T3e});var vlt=Pe((AAn,_lt)=>{var flt=kN(),M3e=ER(),D3e=VR(),A3e=PR(),O3e=jR(),hlt=Ox(),glt=ms(),F3e=xN(),B3e=g1(),R3e=Ix(),N3e=Zc(),L3e=plt(),V3e=Rx(),xlt=IN(),z3e=ult();function j3e(e,r,i,o,n,c,u){var h=xlt(e,i),_=xlt(r,i),y=u.get(_);if(y){flt(e,i,y);return}var C=c?c(h,_,i+"",e,r,u):void 0,E=C===void 0;if(E){var T=glt(_),D=!T&&B3e(_),M=!T&&!D&&V3e(_);C=_,T||D||M?glt(h)?C=h:F3e(h)?C=A3e(h):D?(E=!1,C=M3e(_,!0)):M?(E=!1,C=D3e(_,!0)):C=[]:L3e(_)||hlt(_)?(C=h,hlt(h)?C=z3e(h):(!N3e(h)||R3e(h))&&(C=O3e(_))):E=!1}E&&(u.set(_,C),n(C,_,o,c,u),u.delete(_)),flt(e,i,C)}_lt.exports=j3e});var ylt=Pe((OAn,Clt)=>{var q3e=O2(),H3e=kN(),G3e=bI(),U3e=vlt(),$3e=Zc(),W3e=Tu(),Q3e=IN();function blt(e,r,i,o,n){e!==r&&G3e(r,function(c,u){if(n||(n=new q3e),$3e(c))U3e(e,r,u,i,blt,o,n);else{var h=o?o(Q3e(e,u),c,u+"",e,r,n):void 0;h===void 0&&(h=c),H3e(e,u,h)}},W3e)}Clt.exports=blt});var wlt=Pe((FAn,Slt)=>{var Y3e=Q2(),K3e=J2();function J3e(e){return Y3e(function(r,i){var o=-1,n=i.length,c=n>1?i[n-1]:void 0,u=n>2?i[2]:void 0;for(c=e.length>3&&typeof c=="function"?(n--,c):void 0,u&&K3e(i[0],i[1],u)&&(c=n<3?void 0:c,n=1),r=Object(r);++o{var Z3e=ylt(),X3e=wlt(),tSe=X3e(function(e,r,i){Z3e(e,r,i)});Elt.exports=tSe});var TN=Pe((RAn,klt)=>{function eSe(e,r){return e{var iSe=OI(),nSe=TN(),rSe=Mu();function oSe(e){return e&&e.length?iSe(e,rSe,nSe):void 0}Ilt.exports=oSe});var Dlt=Pe((LAn,Mlt)=>{var aSe=OI(),sSe=c0(),lSe=TN();function cSe(e,r){return e&&e.length?aSe(e,sSe(r,2),lSe):void 0}Mlt.exports=cSe});var Olt=Pe((VAn,Alt)=>{var pSe=jp(),mSe=function(){return pSe.Date.now()};Alt.exports=mSe});var Rlt=Pe((zAn,Blt)=>{var dSe=B2(),uSe=$2(),fSe=N2(),Flt=Zc(),hSe=Vx();function gSe(e,r,i,o){if(!Flt(e))return e;r=uSe(r,e);for(var n=-1,c=r.length,u=c-1,h=e;h!=null&&++n{var xSe=W2(),_Se=Rlt(),vSe=$2();function bSe(e,r,i){for(var o=-1,n=r.length,c={};++o{var CSe=Llt(),ySe=nN();function SSe(e,r){return CSe(e,r,function(i,o){return ySe(e,o)})}Vlt.exports=SSe});var qlt=Pe((HAn,jlt)=>{var wSe=PN(),ESe=uN(),PSe=fN();function kSe(e){return PSe(ESe(e,void 0,wSe),e+"")}jlt.exports=kSe});var Glt=Pe((GAn,Hlt)=>{var ISe=zlt(),TSe=qlt(),MSe=TSe(function(e,r){return e==null?{}:ISe(e,r)});Hlt.exports=MSe});var $lt=Pe((UAn,Ult)=>{var DSe=Math.ceil,ASe=Math.max;function OSe(e,r,i,o){for(var n=-1,c=ASe(DSe((r-e)/(i||1)),0),u=Array(c);c--;)u[o?c:++n]=e,e+=i;return u}Ult.exports=OSe});var Qlt=Pe(($An,Wlt)=>{var FSe=$lt(),BSe=J2(),MN=EN();function RSe(e){return function(r,i,o){return o&&typeof o!="number"&&BSe(r,i,o)&&(i=o=void 0),r=MN(r),i===void 0?(i=r,r=0):i=MN(i),o=o===void 0?r{var NSe=Qlt(),LSe=NSe();Ylt.exports=LSe});var Zlt=Pe((QAn,Jlt)=>{function VSe(e,r){var i=e.length;for(e.sort(r);i--;)e[i]=e[i].value;return e}Jlt.exports=VSe});var ect=Pe((YAn,tct)=>{var Xlt=v1();function zSe(e,r){if(e!==r){var i=e!==void 0,o=e===null,n=e===e,c=Xlt(e),u=r!==void 0,h=r===null,_=r===r,y=Xlt(r);if(!h&&!y&&!c&&e>r||c&&u&&_&&!h&&!y||o&&u&&_||!i&&_||!n)return 1;if(!o&&!c&&!y&&e{var jSe=ect();function qSe(e,r,i){for(var o=-1,n=e.criteria,c=r.criteria,u=n.length,h=i.length;++o=h)return _;var y=i[o];return _*(y=="desc"?-1:1)}}return e.index-r.index}ict.exports=qSe});var oct=Pe((JAn,rct)=>{var DN=U2(),HSe=W2(),GSe=c0(),USe=lN(),$Se=Zlt(),WSe=L2(),QSe=nct(),YSe=Mu(),KSe=ms();function JSe(e,r,i){r.length?r=DN(r,function(c){return KSe(c)?function(u){return HSe(u,c.length===1?c[0]:c)}:c}):r=[YSe];var o=-1;r=DN(r,WSe(GSe));var n=USe(e,function(c,u,h){var _=DN(r,function(y){return y(c)});return{criteria:_,index:++o,value:c}});return $Se(n,function(c,u){return QSe(c,u,i)})}rct.exports=JSe});var lct=Pe((ZAn,sct)=>{var ZSe=PI(),XSe=oct(),twe=Q2(),act=J2(),ewe=twe(function(e,r){if(e==null)return[];var i=r.length;return i>1&&act(e,r[0],r[1])?r=[]:i>2&&act(r[0],r[1],r[2])&&(r=[r[0]]),XSe(e,ZSe(r,1),[])});sct.exports=ewe});var pct=Pe((XAn,cct)=>{var iwe=eN(),nwe=0;function rwe(e){var r=++nwe;return iwe(e)+r}cct.exports=rwe});var dct=Pe((t7n,mct)=>{function owe(e,r,i){for(var o=-1,n=e.length,c=r.length,u={};++o{var awe=B2(),swe=dct();function lwe(e,r){return swe(e||[],r||[],awe)}uct.exports=lwe});var Ma=Pe((i7n,hct)=>{var FI;if(typeof lm=="function")try{FI={cloneDeep:Pst(),constant:vI(),defaults:Mst(),each:UR(),filter:oN(),find:Qst(),flatten:PN(),forEach:GR(),forIn:Jst(),has:aN(),isUndefined:sN(),last:Xst(),map:cN(),mapValues:elt(),max:alt(),merge:Plt(),min:Tlt(),minBy:Dlt(),now:Olt(),pick:Glt(),range:Klt(),reduce:pN(),sortBy:lct(),uniqueId:pct(),values:_N(),zipObject:fct()}}catch{}FI||(FI=window._);hct.exports=FI});var _ct=Pe((r7n,xct)=>{xct.exports=BI;function BI(){var e={};e._next=e._prev=e,this._sentinel=e}BI.prototype.dequeue=function(){var e=this._sentinel,r=e._prev;if(r!==e)return gct(r),r};BI.prototype.enqueue=function(e){var r=this._sentinel;e._prev&&e._next&&gct(e),e._next=r._next,r._next._prev=e,r._next=e,e._prev=r};BI.prototype.toString=function(){for(var e=[],r=this._sentinel,i=r._prev;i!==r;)e.push(JSON.stringify(i,cwe)),i=i._prev;return"["+e.join(", ")+"]"};function gct(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function cwe(e,r){if(e!=="_next"&&e!=="_prev")return r}});var bct=Pe((o7n,vct)=>{var ld=Ma(),pwe=Hp().Graph,mwe=_ct();vct.exports=uwe;var dwe=ld.constant(1);function uwe(e,r){if(e.nodeCount()<=1)return[];var i=hwe(e,r||dwe),o=fwe(i.graph,i.buckets,i.zeroIdx);return ld.flatten(ld.map(o,function(n){return e.outEdges(n.v,n.w)}),!0)}function fwe(e,r,i){for(var o=[],n=r[r.length-1],c=r[0],u;e.nodeCount();){for(;u=c.dequeue();)AN(e,r,i,u);for(;u=n.dequeue();)AN(e,r,i,u);if(e.nodeCount()){for(var h=r.length-2;h>0;--h)if(u=r[h].dequeue(),u){o=o.concat(AN(e,r,i,u,!0));break}}}return o}function AN(e,r,i,o,n){var c=n?[]:void 0;return ld.forEach(e.inEdges(o.v),function(u){var h=e.edge(u),_=e.node(u.v);n&&c.push({v:u.v,w:u.w}),_.out-=h,ON(r,i,_)}),ld.forEach(e.outEdges(o.v),function(u){var h=e.edge(u),_=u.w,y=e.node(_);y.in-=h,ON(r,i,y)}),e.removeNode(o.v),c}function hwe(e,r){var i=new pwe,o=0,n=0;ld.forEach(e.nodes(),function(h){i.setNode(h,{v:h,in:0,out:0})}),ld.forEach(e.edges(),function(h){var _=i.edge(h.v,h.w)||0,y=r(h),C=_+y;i.setEdge(h.v,h.w,C),n=Math.max(n,i.node(h.v).out+=y),o=Math.max(o,i.node(h.w).in+=y)});var c=ld.range(n+o+3).map(function(){return new mwe}),u=o+1;return ld.forEach(i.nodes(),function(h){ON(c,u,i.node(h))}),{graph:i,buckets:c,zeroIdx:u}}function ON(e,r,i){i.out?i.in?e[i.out-i.in+r].enqueue(i):e[e.length-1].enqueue(i):e[0].enqueue(i)}});var yct=Pe((a7n,Cct)=>{"use strict";var C1=Ma(),gwe=bct();Cct.exports={run:xwe,undo:vwe};function xwe(e){var r=e.graph().acyclicer==="greedy"?gwe(e,i(e)):_we(e);C1.forEach(r,function(o){var n=e.edge(o);e.removeEdge(o),n.forwardName=o.name,n.reversed=!0,e.setEdge(o.w,o.v,n,C1.uniqueId("rev"))});function i(o){return function(n){return o.edge(n).weight}}}function _we(e){var r=[],i={},o={};function n(c){C1.has(o,c)||(o[c]=!0,i[c]=!0,C1.forEach(e.outEdges(c),function(u){C1.has(i,u.w)?r.push(u):n(u.w)}),delete i[c])}return C1.forEach(e.nodes(),n),r}function vwe(e){C1.forEach(e.edges(),function(r){var i=e.edge(r);if(i.reversed){e.removeEdge(r);var o=i.forwardName;delete i.reversed,delete i.forwardName,e.setEdge(r.w,r.v,i,o)}})}});var nc=Pe((s7n,Pct)=>{"use strict";var Ho=Ma(),Sct=Hp().Graph;Pct.exports={addDummyNode:wct,simplify:bwe,asNonCompoundGraph:Cwe,successorWeights:ywe,predecessorWeights:Swe,intersectRect:wwe,buildLayerMatrix:Ewe,normalizeRanks:Pwe,removeEmptyRanks:kwe,addBorderNode:Iwe,maxRank:Ect,partition:Twe,time:Mwe,notime:Dwe};function wct(e,r,i,o){var n;do n=Ho.uniqueId(o);while(e.hasNode(n));return i.dummy=r,e.setNode(n,i),n}function bwe(e){var r=new Sct().setGraph(e.graph());return Ho.forEach(e.nodes(),function(i){r.setNode(i,e.node(i))}),Ho.forEach(e.edges(),function(i){var o=r.edge(i.v,i.w)||{weight:0,minlen:1},n=e.edge(i);r.setEdge(i.v,i.w,{weight:o.weight+n.weight,minlen:Math.max(o.minlen,n.minlen)})}),r}function Cwe(e){var r=new Sct({multigraph:e.isMultigraph()}).setGraph(e.graph());return Ho.forEach(e.nodes(),function(i){e.children(i).length||r.setNode(i,e.node(i))}),Ho.forEach(e.edges(),function(i){r.setEdge(i,e.edge(i))}),r}function ywe(e){var r=Ho.map(e.nodes(),function(i){var o={};return Ho.forEach(e.outEdges(i),function(n){o[n.w]=(o[n.w]||0)+e.edge(n).weight}),o});return Ho.zipObject(e.nodes(),r)}function Swe(e){var r=Ho.map(e.nodes(),function(i){var o={};return Ho.forEach(e.inEdges(i),function(n){o[n.v]=(o[n.v]||0)+e.edge(n).weight}),o});return Ho.zipObject(e.nodes(),r)}function wwe(e,r){var i=e.x,o=e.y,n=r.x-i,c=r.y-o,u=e.width/2,h=e.height/2;if(!n&&!c)throw new Error("Not possible to find intersection inside of the rectangle");var _,y;return Math.abs(c)*u>Math.abs(n)*h?(c<0&&(h=-h),_=h*n/c,y=h):(n<0&&(u=-u),_=u,y=u*c/n),{x:i+_,y:o+y}}function Ewe(e){var r=Ho.map(Ho.range(Ect(e)+1),function(){return[]});return Ho.forEach(e.nodes(),function(i){var o=e.node(i),n=o.rank;Ho.isUndefined(n)||(r[n][o.order]=i)}),r}function Pwe(e){var r=Ho.min(Ho.map(e.nodes(),function(i){return e.node(i).rank}));Ho.forEach(e.nodes(),function(i){var o=e.node(i);Ho.has(o,"rank")&&(o.rank-=r)})}function kwe(e){var r=Ho.min(Ho.map(e.nodes(),function(c){return e.node(c).rank})),i=[];Ho.forEach(e.nodes(),function(c){var u=e.node(c).rank-r;i[u]||(i[u]=[]),i[u].push(c)});var o=0,n=e.graph().nodeRankFactor;Ho.forEach(i,function(c,u){Ho.isUndefined(c)&&u%n!==0?--o:o&&Ho.forEach(c,function(h){e.node(h).rank+=o})})}function Iwe(e,r,i,o){var n={width:0,height:0};return arguments.length>=4&&(n.rank=i,n.order=o),wct(e,"border",n,r)}function Ect(e){return Ho.max(Ho.map(e.nodes(),function(r){var i=e.node(r).rank;if(!Ho.isUndefined(i))return i}))}function Twe(e,r){var i={lhs:[],rhs:[]};return Ho.forEach(e,function(o){r(o)?i.lhs.push(o):i.rhs.push(o)}),i}function Mwe(e,r){var i=Ho.now();try{return r()}finally{console.log(e+" time: "+(Ho.now()-i)+"ms")}}function Dwe(e,r){return r()}});var Tct=Pe((l7n,Ict)=>{"use strict";var kct=Ma(),Awe=nc();Ict.exports={run:Owe,undo:Bwe};function Owe(e){e.graph().dummyChains=[],kct.forEach(e.edges(),function(r){Fwe(e,r)})}function Fwe(e,r){var i=r.v,o=e.node(i).rank,n=r.w,c=e.node(n).rank,u=r.name,h=e.edge(r),_=h.labelRank;if(c!==o+1){e.removeEdge(r);var y,C,E;for(E=0,++o;o{"use strict";var RI=Ma();Mct.exports={longestPath:Rwe,slack:Nwe};function Rwe(e){var r={};function i(o){var n=e.node(o);if(RI.has(r,o))return n.rank;r[o]=!0;var c=RI.min(RI.map(e.outEdges(o),function(u){return i(u.w)-e.edge(u).minlen}));return(c===Number.POSITIVE_INFINITY||c===void 0||c===null)&&(c=0),n.rank=c}RI.forEach(e.sources(),i)}function Nwe(e,r){return e.node(r.w).rank-e.node(r.v).rank-e.edge(r).minlen}});var FN=Pe((p7n,Dct)=>{"use strict";var NI=Ma(),Lwe=Hp().Graph,LI=Z2().slack;Dct.exports=Vwe;function Vwe(e){var r=new Lwe({directed:!1}),i=e.nodes()[0],o=e.nodeCount();r.setNode(i,{});for(var n,c;zwe(r,e){"use strict";var cd=Ma(),Hwe=FN(),Gwe=Z2().slack,Uwe=Z2().longestPath,$we=Hp().alg.preorder,Wwe=Hp().alg.postorder,Qwe=nc().simplify;Lct.exports=y1;y1.initLowLimValues=RN;y1.initCutValues=BN;y1.calcCutValue=Oct;y1.leaveEdge=Bct;y1.enterEdge=Rct;y1.exchangeEdges=Nct;function y1(e){e=Qwe(e),Uwe(e);var r=Hwe(e);RN(r),BN(r,e);for(var i,o;i=Bct(r);)o=Rct(r,e,i),Nct(r,e,i,o)}function BN(e,r){var i=Wwe(e,e.nodes());i=i.slice(0,i.length-1),cd.forEach(i,function(o){Ywe(e,r,o)})}function Ywe(e,r,i){var o=e.node(i),n=o.parent;e.edge(i,n).cutvalue=Oct(e,r,i)}function Oct(e,r,i){var o=e.node(i),n=o.parent,c=!0,u=r.edge(i,n),h=0;return u||(c=!1,u=r.edge(n,i)),h=u.weight,cd.forEach(r.nodeEdges(i),function(_){var y=_.v===i,C=y?_.w:_.v;if(C!==n){var E=y===c,T=r.edge(_).weight;if(h+=E?T:-T,Jwe(e,i,C)){var D=e.edge(i,C).cutvalue;h+=E?-D:D}}}),h}function RN(e,r){arguments.length<2&&(r=e.nodes()[0]),Fct(e,{},1,r)}function Fct(e,r,i,o,n){var c=i,u=e.node(o);return r[o]=!0,cd.forEach(e.neighbors(o),function(h){cd.has(r,h)||(i=Fct(e,r,i,h,o))}),u.low=c,u.lim=i++,n?u.parent=n:delete u.parent,i}function Bct(e){return cd.find(e.edges(),function(r){return e.edge(r).cutvalue<0})}function Rct(e,r,i){var o=i.v,n=i.w;r.hasEdge(o,n)||(o=i.w,n=i.v);var c=e.node(o),u=e.node(n),h=c,_=!1;c.lim>u.lim&&(h=u,_=!0);var y=cd.filter(r.edges(),function(C){return _===Act(e,e.node(C.v),h)&&_!==Act(e,e.node(C.w),h)});return cd.minBy(y,function(C){return Gwe(r,C)})}function Nct(e,r,i,o){var n=i.v,c=i.w;e.removeEdge(n,c),e.setEdge(o.v,o.w,{}),RN(e),BN(e,r),Kwe(e,r)}function Kwe(e,r){var i=cd.find(e.nodes(),function(n){return!r.node(n).parent}),o=$we(e,i);o=o.slice(1),cd.forEach(o,function(n){var c=e.node(n).parent,u=r.edge(n,c),h=!1;u||(u=r.edge(c,n),h=!0),r.node(n).rank=r.node(c).rank+(h?u.minlen:-u.minlen)})}function Jwe(e,r,i){return e.hasEdge(r,i)}function Act(e,r,i){return i.low<=r.lim&&r.lim<=i.lim}});var Hct=Pe((d7n,qct)=>{"use strict";var Zwe=Z2(),jct=Zwe.longestPath,Xwe=FN(),t4e=Vct();qct.exports=e4e;function e4e(e){switch(e.graph().ranker){case"network-simplex":zct(e);break;case"tight-tree":n4e(e);break;case"longest-path":i4e(e);break;default:zct(e)}}var i4e=jct;function n4e(e){jct(e),Xwe(e)}function zct(e){t4e(e)}});var Uct=Pe((u7n,Gct)=>{var NN=Ma();Gct.exports=r4e;function r4e(e){var r=a4e(e);NN.forEach(e.graph().dummyChains,function(i){for(var o=e.node(i),n=o.edgeObj,c=o4e(e,r,n.v,n.w),u=c.path,h=c.lca,_=0,y=u[_],C=!0;i!==n.w;){if(o=e.node(i),C){for(;(y=u[_])!==h&&e.node(y).maxRanku||h>r[_].lim));for(y=_,_=o;(_=e.parent(_))!==y;)c.push(_);return{path:n.concat(c.reverse()),lca:y}}function a4e(e){var r={},i=0;function o(n){var c=i;NN.forEach(e.children(n),o),r[n]={low:c,lim:i++}}return NN.forEach(e.children(),o),r}});var Qct=Pe((f7n,Wct)=>{var pd=Ma(),LN=nc();Wct.exports={run:s4e,cleanup:p4e};function s4e(e){var r=LN.addDummyNode(e,"root",{},"_root"),i=l4e(e),o=pd.max(pd.values(i))-1,n=2*o+1;e.graph().nestingRoot=r,pd.forEach(e.edges(),function(u){e.edge(u).minlen*=n});var c=c4e(e)+1;pd.forEach(e.children(),function(u){$ct(e,r,n,c,o,i,u)}),e.graph().nodeRankFactor=n}function $ct(e,r,i,o,n,c,u){var h=e.children(u);if(!h.length){u!==r&&e.setEdge(r,u,{weight:0,minlen:i});return}var _=LN.addBorderNode(e,"_bt"),y=LN.addBorderNode(e,"_bb"),C=e.node(u);e.setParent(_,u),C.borderTop=_,e.setParent(y,u),C.borderBottom=y,pd.forEach(h,function(E){$ct(e,r,i,o,n,c,E);var T=e.node(E),D=T.borderTop?T.borderTop:E,M=T.borderBottom?T.borderBottom:E,F=T.borderTop?o:2*o,B=D!==M?1:n-c[u]+1;e.setEdge(_,D,{weight:F,minlen:B,nestingEdge:!0}),e.setEdge(M,y,{weight:F,minlen:B,nestingEdge:!0})}),e.parent(u)||e.setEdge(r,_,{weight:0,minlen:n+c[u]})}function l4e(e){var r={};function i(o,n){var c=e.children(o);c&&c.length&&pd.forEach(c,function(u){i(u,n+1)}),r[o]=n}return pd.forEach(e.children(),function(o){i(o,1)}),r}function c4e(e){return pd.reduce(e.edges(),function(r,i){return r+e.edge(i).weight},0)}function p4e(e){var r=e.graph();e.removeNode(r.nestingRoot),delete r.nestingRoot,pd.forEach(e.edges(),function(i){var o=e.edge(i);o.nestingEdge&&e.removeEdge(i)})}});var Jct=Pe((h7n,Kct)=>{var VN=Ma(),m4e=nc();Kct.exports=d4e;function d4e(e){function r(i){var o=e.children(i),n=e.node(i);if(o.length&&VN.forEach(o,r),VN.has(n,"minRank")){n.borderLeft=[],n.borderRight=[];for(var c=n.minRank,u=n.maxRank+1;c{"use strict";var m0=Ma();tpt.exports={adjust:u4e,undo:f4e};function u4e(e){var r=e.graph().rankdir.toLowerCase();(r==="lr"||r==="rl")&&Xct(e)}function f4e(e){var r=e.graph().rankdir.toLowerCase();(r==="bt"||r==="rl")&&h4e(e),(r==="lr"||r==="rl")&&(g4e(e),Xct(e))}function Xct(e){m0.forEach(e.nodes(),function(r){Zct(e.node(r))}),m0.forEach(e.edges(),function(r){Zct(e.edge(r))})}function Zct(e){var r=e.width;e.width=e.height,e.height=r}function h4e(e){m0.forEach(e.nodes(),function(r){zN(e.node(r))}),m0.forEach(e.edges(),function(r){var i=e.edge(r);m0.forEach(i.points,zN),m0.has(i,"y")&&zN(i)})}function zN(e){e.y=-e.y}function g4e(e){m0.forEach(e.nodes(),function(r){jN(e.node(r))}),m0.forEach(e.edges(),function(r){var i=e.edge(r);m0.forEach(i.points,jN),m0.has(i,"x")&&jN(i)})}function jN(e){var r=e.x;e.x=e.y,e.y=r}});var npt=Pe((x7n,ipt)=>{"use strict";var md=Ma();ipt.exports=x4e;function x4e(e){var r={},i=md.filter(e.nodes(),function(h){return!e.children(h).length}),o=md.max(md.map(i,function(h){return e.node(h).rank})),n=md.map(md.range(o+1),function(){return[]});function c(h){if(!md.has(r,h)){r[h]=!0;var _=e.node(h);n[_.rank].push(h),md.forEach(e.successors(h),c)}}var u=md.sortBy(i,function(h){return e.node(h).rank});return md.forEach(u,c),n}});var opt=Pe((_7n,rpt)=>{"use strict";var Du=Ma();rpt.exports=_4e;function _4e(e,r){for(var i=0,o=1;o0;)C%2&&(E+=h[C+1]),C=C-1>>1,h[C]+=y.weight;_+=y.weight*E})),_}});var lpt=Pe((v7n,spt)=>{var apt=Ma();spt.exports=b4e;function b4e(e,r){return apt.map(r,function(i){var o=e.inEdges(i);if(o.length){var n=apt.reduce(o,function(c,u){var h=e.edge(u),_=e.node(u.v);return{sum:c.sum+h.weight*_.order,weight:c.weight+h.weight}},{sum:0,weight:0});return{v:i,barycenter:n.sum/n.weight,weight:n.weight}}else return{v:i}})}});var ppt=Pe((b7n,cpt)=>{"use strict";var tp=Ma();cpt.exports=C4e;function C4e(e,r){var i={};tp.forEach(e,function(n,c){var u=i[n.v]={indegree:0,in:[],out:[],vs:[n.v],i:c};tp.isUndefined(n.barycenter)||(u.barycenter=n.barycenter,u.weight=n.weight)}),tp.forEach(r.edges(),function(n){var c=i[n.v],u=i[n.w];!tp.isUndefined(c)&&!tp.isUndefined(u)&&(u.indegree++,c.out.push(i[n.w]))});var o=tp.filter(i,function(n){return!n.indegree});return y4e(o)}function y4e(e){var r=[];function i(c){return function(u){u.merged||(tp.isUndefined(u.barycenter)||tp.isUndefined(c.barycenter)||u.barycenter>=c.barycenter)&&S4e(c,u)}}function o(c){return function(u){u.in.push(c),--u.indegree===0&&e.push(u)}}for(;e.length;){var n=e.pop();r.push(n),tp.forEach(n.in.reverse(),i(n)),tp.forEach(n.out,o(n))}return tp.map(tp.filter(r,function(c){return!c.merged}),function(c){return tp.pick(c,["vs","i","barycenter","weight"])})}function S4e(e,r){var i=0,o=0;e.weight&&(i+=e.barycenter*e.weight,o+=e.weight),r.weight&&(i+=r.barycenter*r.weight,o+=r.weight),e.vs=r.vs.concat(e.vs),e.barycenter=i/o,e.weight=o,e.i=Math.min(r.i,e.i),r.merged=!0}});var upt=Pe((C7n,dpt)=>{var X2=Ma(),w4e=nc();dpt.exports=E4e;function E4e(e,r){var i=w4e.partition(e,function(C){return X2.has(C,"barycenter")}),o=i.lhs,n=X2.sortBy(i.rhs,function(C){return-C.i}),c=[],u=0,h=0,_=0;o.sort(P4e(!!r)),_=mpt(c,n,_),X2.forEach(o,function(C){_+=C.vs.length,c.push(C.vs),u+=C.barycenter*C.weight,h+=C.weight,_=mpt(c,n,_)});var y={vs:X2.flatten(c,!0)};return h&&(y.barycenter=u/h,y.weight=h),y}function mpt(e,r,i){for(var o;r.length&&(o=X2.last(r)).i<=i;)r.pop(),e.push(o.vs),i++;return i}function P4e(e){return function(r,i){return r.barycenteri.barycenter?1:e?i.i-r.i:r.i-i.i}}});var gpt=Pe((y7n,hpt)=>{var Au=Ma(),k4e=lpt(),I4e=ppt(),T4e=upt();hpt.exports=fpt;function fpt(e,r,i,o){var n=e.children(r),c=e.node(r),u=c?c.borderLeft:void 0,h=c?c.borderRight:void 0,_={};u&&(n=Au.filter(n,function(M){return M!==u&&M!==h}));var y=k4e(e,n);Au.forEach(y,function(M){if(e.children(M.v).length){var F=fpt(e,M.v,i,o);_[M.v]=F,Au.has(F,"barycenter")&&D4e(M,F)}});var C=I4e(y,i);M4e(C,_);var E=T4e(C,o);if(u&&(E.vs=Au.flatten([u,E.vs,h],!0),e.predecessors(u).length)){var T=e.node(e.predecessors(u)[0]),D=e.node(e.predecessors(h)[0]);Au.has(E,"barycenter")||(E.barycenter=0,E.weight=0),E.barycenter=(E.barycenter*E.weight+T.order+D.order)/(E.weight+2),E.weight+=2}return E}function M4e(e,r){Au.forEach(e,function(i){i.vs=Au.flatten(i.vs.map(function(o){return r[o]?r[o].vs:o}),!0)})}function D4e(e,r){Au.isUndefined(e.barycenter)?(e.barycenter=r.barycenter,e.weight=r.weight):(e.barycenter=(e.barycenter*e.weight+r.barycenter*r.weight)/(e.weight+r.weight),e.weight+=r.weight)}});var _pt=Pe((S7n,xpt)=>{var tC=Ma(),A4e=Hp().Graph;xpt.exports=O4e;function O4e(e,r,i){var o=F4e(e),n=new A4e({compound:!0}).setGraph({root:o}).setDefaultNodeLabel(function(c){return e.node(c)});return tC.forEach(e.nodes(),function(c){var u=e.node(c),h=e.parent(c);(u.rank===r||u.minRank<=r&&r<=u.maxRank)&&(n.setNode(c),n.setParent(c,h||o),tC.forEach(e[i](c),function(_){var y=_.v===c?_.w:_.v,C=n.edge(y,c),E=tC.isUndefined(C)?0:C.weight;n.setEdge(y,c,{weight:e.edge(_).weight+E})}),tC.has(u,"minRank")&&n.setNode(c,{borderLeft:u.borderLeft[r],borderRight:u.borderRight[r]}))}),n}function F4e(e){for(var r;e.hasNode(r=tC.uniqueId("_root")););return r}});var bpt=Pe((w7n,vpt)=>{var B4e=Ma();vpt.exports=R4e;function R4e(e,r,i){var o={},n;B4e.forEach(i,function(c){for(var u=e.parent(c),h,_;u;){if(h=e.parent(u),h?(_=o[h],o[h]=u):(_=n,n=u),_&&_!==u){r.setEdge(_,u);return}u=h}})}});var Ept=Pe((E7n,wpt)=>{"use strict";var Ou=Ma(),N4e=npt(),L4e=opt(),V4e=gpt(),z4e=_pt(),j4e=bpt(),q4e=Hp().Graph,Cpt=nc();wpt.exports=H4e;function H4e(e){var r=Cpt.maxRank(e),i=ypt(e,Ou.range(1,r+1),"inEdges"),o=ypt(e,Ou.range(r-1,-1,-1),"outEdges"),n=N4e(e);Spt(e,n);for(var c=Number.POSITIVE_INFINITY,u,h=0,_=0;_<4;++h,++_){G4e(h%2?i:o,h%4>=2),n=Cpt.buildLayerMatrix(e);var y=L4e(e,n);y{"use strict";var Gr=Ma(),U4e=Hp().Graph,$4e=nc();Fpt.exports={positionX:Y4e,findType1Conflicts:Ppt,findType2Conflicts:kpt,addConflict:qN,hasConflict:Ipt,verticalAlignment:Tpt,horizontalCompaction:Mpt,alignCoordinates:Apt,findSmallestWidthAlignment:Dpt,balance:Opt};function Ppt(e,r){var i={};function o(n,c){var u=0,h=0,_=n.length,y=Gr.last(c);return Gr.forEach(c,function(C,E){var T=W4e(e,C),D=T?e.node(T).order:_;(T||C===y)&&(Gr.forEach(c.slice(h,E+1),function(M){Gr.forEach(e.predecessors(M),function(F){var B=e.node(F),z=B.order;(zy)&&qN(i,T,C)})})}function n(c,u){var h=-1,_,y=0;return Gr.forEach(u,function(C,E){if(e.node(C).dummy==="border"){var T=e.predecessors(C);T.length&&(_=e.node(T[0]).order,o(u,y,E,h,_),y=E,h=_)}o(u,y,u.length,_,c.length)}),u}return Gr.reduce(r,n),i}function W4e(e,r){if(e.node(r).dummy)return Gr.find(e.predecessors(r),function(i){return e.node(i).dummy})}function qN(e,r,i){if(r>i){var o=r;r=i,i=o}var n=e[r];n||(e[r]=n={}),n[i]=!0}function Ipt(e,r,i){if(r>i){var o=r;r=i,i=o}return Gr.has(e[r],i)}function Tpt(e,r,i,o){var n={},c={},u={};return Gr.forEach(r,function(h){Gr.forEach(h,function(_,y){n[_]=_,c[_]=_,u[_]=y})}),Gr.forEach(r,function(h){var _=-1;Gr.forEach(h,function(y){var C=o(y);if(C.length){C=Gr.sortBy(C,function(F){return u[F]});for(var E=(C.length-1)/2,T=Math.floor(E),D=Math.ceil(E);T<=D;++T){var M=C[T];c[y]===y&&_{"use strict";var eC=Ma(),Rpt=nc(),Z4e=Bpt().positionX;Npt.exports=X4e;function X4e(e){e=Rpt.asNonCompoundGraph(e),t5e(e),eC.forEach(Z4e(e),function(r,i){e.node(i).x=r})}function t5e(e){var r=Rpt.buildLayerMatrix(e),i=e.graph().ranksep,o=0;eC.forEach(r,function(n){var c=eC.max(eC.map(n,function(u){return e.node(u).height}));eC.forEach(n,function(u){e.node(u).y=o+c/2}),o+=c+i})}});var Gpt=Pe((I7n,Hpt)=>{"use strict";var lo=Ma(),Vpt=yct(),zpt=Tct(),e5e=Hct(),i5e=nc().normalizeRanks,n5e=Uct(),r5e=nc().removeEmptyRanks,jpt=Qct(),o5e=Jct(),qpt=ept(),a5e=Ept(),s5e=Lpt(),Fu=nc(),l5e=Hp().Graph;Hpt.exports=c5e;function c5e(e,r){var i=r&&r.debugTiming?Fu.time:Fu.notime;i("layout",function(){var o=i(" buildLayoutGraph",function(){return b5e(e)});i(" runLayout",function(){p5e(o,i)}),i(" updateInputGraph",function(){m5e(e,o)})})}function p5e(e,r){r(" makeSpaceForEdgeLabels",function(){C5e(e)}),r(" removeSelfEdges",function(){M5e(e)}),r(" acyclic",function(){Vpt.run(e)}),r(" nestingGraph.run",function(){jpt.run(e)}),r(" rank",function(){e5e(Fu.asNonCompoundGraph(e))}),r(" injectEdgeLabelProxies",function(){y5e(e)}),r(" removeEmptyRanks",function(){r5e(e)}),r(" nestingGraph.cleanup",function(){jpt.cleanup(e)}),r(" normalizeRanks",function(){i5e(e)}),r(" assignRankMinMax",function(){S5e(e)}),r(" removeEdgeLabelProxies",function(){w5e(e)}),r(" normalize.run",function(){zpt.run(e)}),r(" parentDummyChains",function(){n5e(e)}),r(" addBorderSegments",function(){o5e(e)}),r(" order",function(){a5e(e)}),r(" insertSelfEdges",function(){D5e(e)}),r(" adjustCoordinateSystem",function(){qpt.adjust(e)}),r(" position",function(){s5e(e)}),r(" positionSelfEdges",function(){A5e(e)}),r(" removeBorderNodes",function(){T5e(e)}),r(" normalize.undo",function(){zpt.undo(e)}),r(" fixupEdgeLabelCoords",function(){k5e(e)}),r(" undoCoordinateSystem",function(){qpt.undo(e)}),r(" translateGraph",function(){E5e(e)}),r(" assignNodeIntersects",function(){P5e(e)}),r(" reversePoints",function(){I5e(e)}),r(" acyclic.undo",function(){Vpt.undo(e)})}function m5e(e,r){lo.forEach(e.nodes(),function(i){var o=e.node(i),n=r.node(i);o&&(o.x=n.x,o.y=n.y,r.children(i).length&&(o.width=n.width,o.height=n.height))}),lo.forEach(e.edges(),function(i){var o=e.edge(i),n=r.edge(i);o.points=n.points,lo.has(n,"x")&&(o.x=n.x,o.y=n.y)}),e.graph().width=r.graph().width,e.graph().height=r.graph().height}var d5e=["nodesep","edgesep","ranksep","marginx","marginy"],u5e={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},f5e=["acyclicer","ranker","rankdir","align"],h5e=["width","height"],g5e={width:0,height:0},x5e=["minlen","weight","width","height","labeloffset"],_5e={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},v5e=["labelpos"];function b5e(e){var r=new l5e({multigraph:!0,compound:!0}),i=GN(e.graph());return r.setGraph(lo.merge({},u5e,HN(i,d5e),lo.pick(i,f5e))),lo.forEach(e.nodes(),function(o){var n=GN(e.node(o));r.setNode(o,lo.defaults(HN(n,h5e),g5e)),r.setParent(o,e.parent(o))}),lo.forEach(e.edges(),function(o){var n=GN(e.edge(o));r.setEdge(o,lo.merge({},_5e,HN(n,x5e),lo.pick(n,v5e)))}),r}function C5e(e){var r=e.graph();r.ranksep/=2,lo.forEach(e.edges(),function(i){var o=e.edge(i);o.minlen*=2,o.labelpos.toLowerCase()!=="c"&&(r.rankdir==="TB"||r.rankdir==="BT"?o.width+=o.labeloffset:o.height+=o.labeloffset)})}function y5e(e){lo.forEach(e.edges(),function(r){var i=e.edge(r);if(i.width&&i.height){var o=e.node(r.v),n=e.node(r.w),c={rank:(n.rank-o.rank)/2+o.rank,e:r};Fu.addDummyNode(e,"edge-proxy",c,"_ep")}})}function S5e(e){var r=0;lo.forEach(e.nodes(),function(i){var o=e.node(i);o.borderTop&&(o.minRank=e.node(o.borderTop).rank,o.maxRank=e.node(o.borderBottom).rank,r=lo.max(r,o.maxRank))}),e.graph().maxRank=r}function w5e(e){lo.forEach(e.nodes(),function(r){var i=e.node(r);i.dummy==="edge-proxy"&&(e.edge(i.e).labelRank=i.rank,e.removeNode(r))})}function E5e(e){var r=Number.POSITIVE_INFINITY,i=0,o=Number.POSITIVE_INFINITY,n=0,c=e.graph(),u=c.marginx||0,h=c.marginy||0;function _(y){var C=y.x,E=y.y,T=y.width,D=y.height;r=Math.min(r,C-T/2),i=Math.max(i,C+T/2),o=Math.min(o,E-D/2),n=Math.max(n,E+D/2)}lo.forEach(e.nodes(),function(y){_(e.node(y))}),lo.forEach(e.edges(),function(y){var C=e.edge(y);lo.has(C,"x")&&_(C)}),r-=u,o-=h,lo.forEach(e.nodes(),function(y){var C=e.node(y);C.x-=r,C.y-=o}),lo.forEach(e.edges(),function(y){var C=e.edge(y);lo.forEach(C.points,function(E){E.x-=r,E.y-=o}),lo.has(C,"x")&&(C.x-=r),lo.has(C,"y")&&(C.y-=o)}),c.width=i-r+u,c.height=n-o+h}function P5e(e){lo.forEach(e.edges(),function(r){var i=e.edge(r),o=e.node(r.v),n=e.node(r.w),c,u;i.points?(c=i.points[0],u=i.points[i.points.length-1]):(i.points=[],c=n,u=o),i.points.unshift(Fu.intersectRect(o,c)),i.points.push(Fu.intersectRect(n,u))})}function k5e(e){lo.forEach(e.edges(),function(r){var i=e.edge(r);if(lo.has(i,"x"))switch((i.labelpos==="l"||i.labelpos==="r")&&(i.width-=i.labeloffset),i.labelpos){case"l":i.x-=i.width/2+i.labeloffset;break;case"r":i.x+=i.width/2+i.labeloffset;break}})}function I5e(e){lo.forEach(e.edges(),function(r){var i=e.edge(r);i.reversed&&i.points.reverse()})}function T5e(e){lo.forEach(e.nodes(),function(r){if(e.children(r).length){var i=e.node(r),o=e.node(i.borderTop),n=e.node(i.borderBottom),c=e.node(lo.last(i.borderLeft)),u=e.node(lo.last(i.borderRight));i.width=Math.abs(u.x-c.x),i.height=Math.abs(n.y-o.y),i.x=c.x+i.width/2,i.y=o.y+i.height/2}}),lo.forEach(e.nodes(),function(r){e.node(r).dummy==="border"&&e.removeNode(r)})}function M5e(e){lo.forEach(e.edges(),function(r){if(r.v===r.w){var i=e.node(r.v);i.selfEdges||(i.selfEdges=[]),i.selfEdges.push({e:r,label:e.edge(r)}),e.removeEdge(r)}})}function D5e(e){var r=Fu.buildLayerMatrix(e);lo.forEach(r,function(i){var o=0;lo.forEach(i,function(n,c){var u=e.node(n);u.order=c+o,lo.forEach(u.selfEdges,function(h){Fu.addDummyNode(e,"selfedge",{width:h.label.width,height:h.label.height,rank:u.rank,order:c+ ++o,e:h.e,label:h.label},"_se")}),delete u.selfEdges})})}function A5e(e){lo.forEach(e.nodes(),function(r){var i=e.node(r);if(i.dummy==="selfedge"){var o=e.node(i.e.v),n=o.x+o.width/2,c=o.y,u=i.x-n,h=o.height/2;e.setEdge(i.e,i.label),e.removeNode(r),i.label.points=[{x:n+2*u/3,y:c-h},{x:n+5*u/6,y:c-h},{x:n+u,y:c},{x:n+5*u/6,y:c+h},{x:n+2*u/3,y:c+h}],i.label.x=i.x,i.label.y=i.y}})}function HN(e,r){return lo.mapValues(lo.pick(e,r),Number)}function GN(e){var r={};return lo.forEach(e,function(i,o){r[o.toLowerCase()]=i}),r}});var $pt=Pe((T7n,Upt)=>{var VI=Ma(),O5e=nc(),F5e=Hp().Graph;Upt.exports={debugOrdering:B5e};function B5e(e){var r=O5e.buildLayerMatrix(e),i=new F5e({compound:!0,multigraph:!0}).setGraph({});return VI.forEach(e.nodes(),function(o){i.setNode(o,{label:o}),i.setParent(o,"layer"+e.node(o).rank)}),VI.forEach(e.edges(),function(o){i.setEdge(o.v,o.w,{},o.name)}),VI.forEach(r,function(o,n){var c="layer"+n;i.setNode(c,{rank:"same"}),VI.reduce(o,function(u,h){return i.setEdge(u,h,{style:"invis"}),h})}),i}});var Qpt=Pe((M7n,Wpt)=>{Wpt.exports="0.8.5"});var Kpt=Pe((D7n,Ypt)=>{Ypt.exports={graphlib:Hp(),layout:Gpt(),debug:$pt(),util:{time:nc().time,notime:nc().notime},version:Qpt()}});var QN=Pe(Bu=>{"use strict";Object.defineProperty(Bu,"__esModule",{value:!0});var WN=function(){function e(r,i,o){this.source=r,this.target=i,this.type=o}return e}();Bu.PowerEdge=WN;var Smt=function(){function e(r,i,o,n){var c=this;if(this.linkAccessor=o,this.modules=new Array(r),this.roots=[],n)this.initModulesFromGroup(n);else{this.roots.push(new zx);for(var u=0;u=this.R))return this.merge(o.a,o.b,r),!0}},e.prototype.nEdges=function(r,i){var o=r.incoming.intersection(i.incoming),n=r.outgoing.intersection(i.outgoing);return this.R-o.count()-n.count()},e.prototype.getGroupHierarchy=function(r){var i=this,o=[],n={};wmt(this.roots[0],n,o);var c=this.allEdges();return c.forEach(function(u){var h=i.modules[u.source],_=i.modules[u.target];r.push(new WN(typeof h.gid>"u"?u.source:o[h.gid],typeof _.gid>"u"?u.target:o[_.gid],u.type))}),o},e.prototype.allEdges=function(){var r=[];return e.getEdges(this.roots[0],r),r},e.getEdges=function(r,i){r.forAll(function(o){o.getEdges(i),e.getEdges(o.children,i)})},e}();Bu.Configuration=Smt;function wmt(e,r,i){e.forAll(function(o){if(o.isLeaf())r.leaves||(r.leaves=[]),r.leaves.push(o.id);else{var n=r;if(o.gid=i.length,!o.isIsland()||o.isPredefined()){if(n={id:o.gid},o.isPredefined())for(var c in o.definition)n[c]=o.definition[c];r.groups||(r.groups=[]),r.groups.push(o.gid),i.push(n)}wmt(o.children,n,i)}})}var iC=function(){function e(r,i,o,n,c){i===void 0&&(i=new nC),o===void 0&&(o=new nC),n===void 0&&(n=new zx),this.id=r,this.outgoing=i,this.incoming=o,this.children=n,this.definition=c}return e.prototype.getEdges=function(r){var i=this;this.outgoing.forAll(function(o,n){o.forAll(function(c){r.push(new WN(i.id,c.id,n))})})},e.prototype.isLeaf=function(){return this.children.count()===0},e.prototype.isIsland=function(){return this.outgoing.count()===0&&this.incoming.count()===0},e.prototype.isPredefined=function(){return typeof this.definition<"u"},e}();Bu.Module=iC;function j5e(e,r){var i={};for(var o in e)o in r&&(i[o]=e[o]);return i}var zx=function(){function e(){this.table={}}return e.prototype.count=function(){return Object.keys(this.table).length},e.prototype.intersection=function(r){var i=new e;return i.table=j5e(this.table,r.table),i},e.prototype.intersectionCount=function(r){return this.intersection(r).count()},e.prototype.contains=function(r){return r in this.table},e.prototype.add=function(r){this.table[r.id]=r},e.prototype.remove=function(r){delete this.table[r.id]},e.prototype.forAll=function(r){for(var i in this.table)r(this.table[i])},e.prototype.modules=function(){var r=[];return this.forAll(function(i){i.isPredefined()||r.push(i)}),r},e}();Bu.ModuleSet=zx;var nC=function(){function e(){this.sets={},this.n=0}return e.prototype.count=function(){return this.n},e.prototype.contains=function(r){var i=!1;return this.forAllModules(function(o){!i&&o.id==r&&(i=!0)}),i},e.prototype.add=function(r,i){var o=r in this.sets?this.sets[r]:this.sets[r]=new zx;o.add(i),++this.n},e.prototype.remove=function(r,i){var o=this.sets[r];o.remove(i),o.count()===0&&delete this.sets[r],--this.n},e.prototype.forAll=function(r){for(var i in this.sets)r(this.sets[i],Number(i))},e.prototype.forAllModules=function(r){this.forAll(function(i,o){return i.forAll(r)})},e.prototype.intersection=function(r){var i=new e;return this.forAll(function(o,n){if(n in r.sets){var c=o.intersection(r.sets[n]),u=c.count();u>0&&(i.sets[n]=c,i.n+=u)}}),i},e}();Bu.LinkSets=nC;function q5e(e,r,i,o){for(var n=e.length,c=new Smt(n,r,i,o);c.greedyMerge(););var u=[],h=c.getGroupHierarchy(u);return u.forEach(function(_){var y=function(C){var E=_[C];typeof E=="number"&&(_[C]=e[E])};y("source"),y("target")}),{groups:h,powerEdges:u}}Bu.getGroups=q5e});var GI=Pe(jx=>{"use strict";Object.defineProperty(jx,"__esModule",{value:!0});function Emt(e,r){var i={};for(var o in e)i[o]={};for(var o in r)i[o]={};return Object.keys(i).length}function Pmt(e,r){var i=0;for(var o in e)typeof r[o]<"u"&&++i;return i}function H5e(e,r){var i={},o=function(n,c){typeof i[n]>"u"&&(i[n]={}),i[n][c]={}};return e.forEach(function(n){var c=r.getSourceIndex(n),u=r.getTargetIndex(n);o(c,u),o(u,c)}),i}function kmt(e,r,i,o){var n=H5e(e,o);e.forEach(function(c){var u=n[o.getSourceIndex(c)],h=n[o.getTargetIndex(c)];o.setLength(c,1+r*i(u,h))})}function G5e(e,r,i){i===void 0&&(i=1),kmt(e,i,function(o,n){return Math.sqrt(Emt(o,n)-Pmt(o,n))},r)}jx.symmetricDiffLinkLengths=G5e;function U5e(e,r,i){i===void 0&&(i=1),kmt(e,i,function(o,n){return Math.min(Object.keys(o).length,Object.keys(n).length)<1.1?0:Pmt(o,n)/Emt(o,n)},r)}jx.jaccardLinkLengths=U5e;function $5e(e,r,i,o){var n=Imt(e,r,o),c={};n.forEach(function(h,_){return h.forEach(function(y){return c[y]=_})});var u=[];return r.forEach(function(h){var _=o.getSourceIndex(h),y=o.getTargetIndex(h),C=c[_],E=c[y];C!==E&&u.push({axis:i,left:_,right:y,gap:o.getMinSeparation(h)})}),u}jx.generateDirectedEdgeConstraints=$5e;function Imt(e,r,i){var o=[],n=0,c=[],u=[];function h(z){z.index=z.lowlink=n++,c.push(z),z.onStack=!0;for(var $=0,tt=z.out;$"u"?(h(lt),z.lowlink=Math.min(z.lowlink,lt.lowlink)):lt.onStack&&(z.lowlink=Math.min(z.lowlink,lt.index))}if(z.lowlink===z.index){for(var gt=[];c.length&&(lt=c.pop(),lt.onStack=!1,gt.push(lt),lt!==z););u.push(gt.map(function(X){return X.id}))}}for(var _=0;_"u"&&h(B)}return u}jx.stronglyConnectedComponents=Imt});var UI=Pe(rC=>{"use strict";Object.defineProperty(rC,"__esModule",{value:!0});var Tmt=function(){function e(){this.locks={}}return e.prototype.add=function(r,i){this.locks[r]=i},e.prototype.clear=function(){this.locks={}},e.prototype.isEmpty=function(){for(var r in this.locks)return!1;return!0},e.prototype.apply=function(r){for(var i in this.locks)r(Number(i),this.locks[i])},e}();rC.Locks=Tmt;var W5e=function(){function e(r,i,o){o===void 0&&(o=null),this.D=i,this.G=o,this.threshold=1e-4,this.numGridSnapNodes=0,this.snapGridSize=100,this.snapStrength=1e3,this.scaleSnapByMaxH=!1,this.random=new Mmt,this.project=null,this.x=r,this.k=r.length;var n=this.n=r[0].length;this.H=new Array(this.k),this.g=new Array(this.k),this.Hd=new Array(this.k),this.a=new Array(this.k),this.b=new Array(this.k),this.c=new Array(this.k),this.d=new Array(this.k),this.e=new Array(this.k),this.ia=new Array(this.k),this.ib=new Array(this.k),this.xtmp=new Array(this.k),this.locks=new Tmt,this.minD=Number.MAX_VALUE;for(var c=n,u;c--;)for(u=n;--u>c;){var h=i[c][u];h>0&&h1e-9)break;var M=this.offsetDir();for(n=0;n1&&F>B||!isFinite(B)){for(n=0;n1&&(z=1);var $=B*B,tt=2*z*(F-B)/($*F),lt=F*F*F,gt=2*-z/($*lt);for(isFinite(tt)||console.log(tt),n=0;n0?Z-(R+1)*mt:Z-(R-1)*mt;-X0;)for(var c=i;c-- >0;)o(n,c)},e.prototype.matrixApply=function(r){e.mApply(this.k,this.n,r)},e.prototype.computeNextPosition=function(r,i){var o=this;this.computeDerivatives(r);var n=this.computeStepSize(this.g);if(this.stepAndProject(r,i,this.g,n),this.project){this.matrixApply(function(u,h){return o.e[u][h]=r[u][h]-i[u][h]});var c=this.computeStepSize(this.e);c=Math.max(.2,Math.min(c,1)),this.stepAndProject(r,i,this.e,c)}},e.prototype.run=function(r){for(var i=Number.MAX_VALUE,o=!1;!o&&r-- >0;){var n=this.rungeKutta();o=Math.abs(i/n-1)>16)/this.range},e.prototype.getNextBetween=function(r,i){return r+this.getNext()*(i-r)},e}();rC.PseudoRandom=Mmt});var QI=Pe(dd=>{"use strict";Object.defineProperty(dd,"__esModule",{value:!0});var Dmt=function(){function e(r){this.scale=r,this.AB=0,this.AD=0,this.A2=0}return e.prototype.addVariable=function(r){var i=this.scale/r.scale,o=r.offset/r.scale,n=r.weight;this.AB+=n*i*o,this.AD+=n*i*r.desiredPosition,this.A2+=n*i*i},e.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},e}();dd.PositionStats=Dmt;var $I=function(){function e(r,i,o,n){n===void 0&&(n=!1),this.left=r,this.right=i,this.gap=o,this.equality=n,this.active=!1,this.unsatisfiable=!1,this.left=r,this.right=i,this.gap=o,this.equality=n}return e.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},e}();dd.Constraint=$I;var WI=function(){function e(r,i,o){i===void 0&&(i=1),o===void 0&&(o=1),this.desiredPosition=r,this.weight=i,this.scale=o,this.offset=0}return e.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},e.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},e.prototype.visitNeighbours=function(r,i){var o=function(n,c){return n.active&&r!==c&&i(n,c)};this.cOut.forEach(function(n){return o(n,n.right)}),this.cIn.forEach(function(n){return o(n,n.left)})},e}();dd.Variable=WI;var YN=function(){function e(r){this.vars=[],r.offset=0,this.ps=new Dmt(r.scale),this.addVariable(r)}return e.prototype.addVariable=function(r){r.block=this,this.vars.push(r),this.ps.addVariable(r),this.posn=this.ps.getPosn()},e.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var r=0,i=this.vars.length;r=0?this.inactive.push(r):this.bs.merge(r)}}},e.prototype.solve=function(){this.satisfy();for(var r=Number.MAX_VALUE,i=this.bs.cost();Math.abs(r-i)>1e-4;)this.satisfy(),r=i,i=this.bs.cost();return i},e.LAGRANGIAN_TOLERANCE=-1e-4,e.ZERO_UPPERBOUND=-1e-10,e}();dd.Solver=JN;function Q5e(e,r,i){for(var o=e.map(function(B){return new WI(B.desiredCenter)}),n=[],c=e.length,u=0;u{"use strict";var Y5e=w1&&w1.__extends||function(){var e=function(r,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var c in n)n.hasOwnProperty(c)&&(o[c]=n[c])},e(r,i)};return function(r,i){e(r,i);function o(){this.constructor=r}r.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}}();Object.defineProperty(w1,"__esModule",{value:!0});var Amt=function(){function e(){this.findIter=function(r){for(var i=this._root,o=this.iterator();i!==null;){var n=this._comparator(r,i.data);if(n===0)return o._cursor=i,o;o._ancestors.push(i),i=i.get_child(n>0)}return null}}return e.prototype.clear=function(){this._root=null,this.size=0},e.prototype.find=function(r){for(var i=this._root;i!==null;){var o=this._comparator(r,i.data);if(o===0)return i.data;i=i.get_child(o>0)}return null},e.prototype.lowerBound=function(r){return this._bound(r,this._comparator)},e.prototype.upperBound=function(r){var i=this._comparator;function o(n,c){return i(c,n)}return this._bound(r,o)},e.prototype.min=function(){var r=this._root;if(r===null)return null;for(;r.left!==null;)r=r.left;return r.data},e.prototype.max=function(){var r=this._root;if(r===null)return null;for(;r.right!==null;)r=r.right;return r.data},e.prototype.iterator=function(){return new Omt(this)},e.prototype.each=function(r){for(var i=this.iterator(),o;(o=i.next())!==null;)r(o)},e.prototype.reach=function(r){for(var i=this.iterator(),o;(o=i.prev())!==null;)r(o)},e.prototype._bound=function(r,i){for(var o=this._root,n=this.iterator();o!==null;){var c=this._comparator(r,o.data);if(c===0)return n._cursor=o,n;n._ancestors.push(o),o=o.get_child(c>0)}for(var u=n._ancestors.length-1;u>=0;--u)if(o=n._ancestors[u],i(r,o.data)>0)return n._cursor=o,n._ancestors.length=u,n;return n._ancestors.length=0,n},e}();w1.TreeBase=Amt;var Omt=function(){function e(r){this._tree=r,this._ancestors=[],this._cursor=null}return e.prototype.data=function(){return this._cursor!==null?this._cursor.data:null},e.prototype.next=function(){if(this._cursor===null){var r=this._tree._root;r!==null&&this._minNode(r)}else if(this._cursor.right===null){var i;do if(i=this._cursor,this._ancestors.length)this._cursor=this._ancestors.pop();else{this._cursor=null;break}while(this._cursor.right===i)}else this._ancestors.push(this._cursor),this._minNode(this._cursor.right);return this._cursor!==null?this._cursor.data:null},e.prototype.prev=function(){if(this._cursor===null){var r=this._tree._root;r!==null&&this._maxNode(r)}else if(this._cursor.left===null){var i;do if(i=this._cursor,this._ancestors.length)this._cursor=this._ancestors.pop();else{this._cursor=null;break}while(this._cursor.left===i)}else this._ancestors.push(this._cursor),this._maxNode(this._cursor.left);return this._cursor!==null?this._cursor.data:null},e.prototype._minNode=function(r){for(;r.left!==null;)this._ancestors.push(r),r=r.left;this._cursor=r},e.prototype._maxNode=function(r){for(;r.right!==null;)this._ancestors.push(r),r=r.right;this._cursor=r},e}();w1.Iterator=Omt;var YI=function(){function e(r){this.data=r,this.left=null,this.right=null,this.red=!0}return e.prototype.get_child=function(r){return r?this.right:this.left},e.prototype.set_child=function(r,i){r?this.right=i:this.left=i},e}(),K5e=function(e){Y5e(r,e);function r(i){var o=e.call(this)||this;return o._root=null,o._comparator=i,o.size=0,o}return r.prototype.insert=function(i){var o=!1;if(this._root===null)this._root=new YI(i),o=!0,this.size++;else{var n=new YI(void 0),c=!1,u=!1,h=null,_=n,y=null,C=this._root;for(_.right=this._root;;){if(C===null?(C=new YI(i),y.set_child(c,C),o=!0,this.size++):r.is_red(C.left)&&r.is_red(C.right)&&(C.red=!0,C.left.red=!1,C.right.red=!1),r.is_red(C)&&r.is_red(y)){var E=_.right===h;C===y.get_child(u)?_.set_child(E,r.single_rotate(h,!u)):_.set_child(E,r.double_rotate(h,!u))}var T=this._comparator(C.data,i);if(T===0)break;u=c,c=T<0,h!==null&&(_=h),h=y,y=C,C=C.get_child(c)}this._root=n.right}return this._root.red=!1,o},r.prototype.remove=function(i){if(this._root===null)return!1;var o=new YI(void 0),n=o;n.right=this._root;for(var c=null,u=null,h=null,_=!0;n.get_child(_)!==null;){var y=_;u=c,c=n,n=n.get_child(_);var C=this._comparator(i,n.data);if(_=C>0,C===0&&(h=n),!r.is_red(n)&&!r.is_red(n.get_child(_))){if(r.is_red(n.get_child(!_))){var E=r.single_rotate(n,_);c.set_child(y,E),c=E}else if(!r.is_red(n.get_child(!_))){var T=c.get_child(!y);if(T!==null)if(!r.is_red(T.get_child(!y))&&!r.is_red(T.get_child(y)))c.red=!1,T.red=!0,n.red=!0;else{var D=u.right===c;r.is_red(T.get_child(y))?u.set_child(D,r.double_rotate(c,y)):r.is_red(T.get_child(!y))&&u.set_child(D,r.single_rotate(c,y));var M=u.get_child(D);M.red=!0,n.red=!0,M.left.red=!1,M.right.red=!1}}}}return h!==null&&(h.data=n.data,c.set_child(c.right===n,n.get_child(n.left===null)),this.size--),this._root=o.right,this._root!==null&&(this._root.red=!1),h!==null},r.is_red=function(i){return i!==null&&i.red},r.single_rotate=function(i,o){var n=i.get_child(!o);return i.set_child(!o,n.get_child(o)),n.set_child(o,i),i.red=!0,n.red=!1,n},r.double_rotate=function(i,o){return i.set_child(!o,r.single_rotate(i.get_child(!o),!o)),r.single_rotate(i,o)},r}(Amt);w1.RBTree=K5e});var qx=Pe(oc=>{"use strict";var J5e=oc&&oc.__extends||function(){var e=function(r,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var c in n)n.hasOwnProperty(c)&&(o[c]=n[c])},e(r,i)};return function(r,i){e(r,i);function o(){this.constructor=r}r.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}}();Object.defineProperty(oc,"__esModule",{value:!0});var ud=QI(),Z5e=ZN();function oC(e){return e.bounds=typeof e.leaves<"u"?e.leaves.reduce(function(r,i){return i.bounds.union(r)},Ru.empty()):Ru.empty(),typeof e.groups<"u"&&(e.bounds=e.groups.reduce(function(r,i){return oC(i).union(r)},e.bounds)),e.bounds=e.bounds.inflate(e.padding),e.bounds}oc.computeGroupBounds=oC;var Ru=function(){function e(r,i,o,n){this.x=r,this.X=i,this.y=o,this.Y=n}return e.empty=function(){return new e(Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY)},e.prototype.cx=function(){return(this.x+this.X)/2},e.prototype.cy=function(){return(this.y+this.Y)/2},e.prototype.overlapX=function(r){var i=this.cx(),o=r.cx();return i<=o&&r.x0?o[0]:null},e.prototype.vertices=function(){return[{x:this.x,y:this.y},{x:this.X,y:this.y},{x:this.X,y:this.Y},{x:this.x,y:this.Y}]},e.lineIntersection=function(r,i,o,n,c,u,h,_){var y=o-r,C=h-c,E=n-i,T=_-u,D=T*y-C*E;if(D==0)return null;var M=r-c,F=i-u,B=C*F-T*M,z=B/D,$=y*F-E*M,tt=$/D;return z>=0&&z<=1&&tt>=0&&tt<=1?{x:r+z*y,y:i+z*E}:null},e.prototype.inflate=function(r){return new e(this.x-r,this.X+r,this.y-r,this.Y+r)},e}();oc.Rectangle=Ru;function X5e(e,r,i){var o=e.rayIntersection(r.cx(),r.cy())||{x:e.cx(),y:e.cy()},n=r.rayIntersection(e.cx(),e.cy())||{x:r.cx(),y:r.cy()},c=n.x-o.x,u=n.y-o.y,h=Math.sqrt(c*c+u*u),_=h-i;return{sourceIntersection:o,targetIntersection:n,arrowStart:{x:o.x+_*c/h,y:o.y+_*u/h}}}oc.makeEdgeBetween=X5e;function tEe(e,r,i){var o=r.rayIntersection(e.x,e.y);o||(o={x:r.cx(),y:r.cy()});var n=o.x-e.x,c=o.y-e.y,u=Math.sqrt(n*n+c*c);return{x:o.x-i*n/u,y:o.y-i*c/u}}oc.makeEdgeTo=tEe;var eEe=function(){function e(r,i,o){this.v=r,this.r=i,this.pos=o,this.prev=XN(),this.next=XN()}return e}(),Fmt=function(){function e(r,i,o){this.isOpen=r,this.v=i,this.pos=o}return e}();function iEe(e,r){return e.pos>r.pos?1:e.pos=c);var h=new Array(u);for(n=0;n0&&(e[o].insert(c),c[n].insert(e))};i("next","prev"),i("prev","next")}function Nmt(e,r){return eL(e,r,Bmt,1e-6)}oc.generateXConstraints=Nmt;function Lmt(e,r){return eL(e,r,Rmt,1e-6)}oc.generateYConstraints=Lmt;function Vmt(e){return tL(e,Bmt,1e-6)}oc.generateXGroupConstraints=Vmt;function zmt(e){return tL(e,Rmt,1e-6)}oc.generateYGroupConstraints=zmt;function oEe(e){var r=e.map(function(n){return new ud.Variable(n.cx())}),i=Nmt(e,r),o=new ud.Solver(r,i);o.solve(),r.forEach(function(n,c){return e[c].setXCentre(n.position())}),r=e.map(function(n){return new ud.Variable(n.cy())}),i=Lmt(e,r),o=new ud.Solver(r,i),o.solve(),r.forEach(function(n,c){return e[c].setYCentre(n.position())})}oc.removeOverlaps=oEe;var KI=function(e){J5e(r,e);function r(i,o){var n=e.call(this,0,o)||this;return n.index=i,n}return r}(ud.Variable);oc.IndexedVariable=KI;var aEe=function(){function e(r,i,o,n,c){var u=this;if(o===void 0&&(o=null),n===void 0&&(n=null),c===void 0&&(c=!1),this.nodes=r,this.groups=i,this.rootGroup=o,this.avoidOverlaps=c,this.variables=r.map(function(_,y){return _.variable=new KI(y,1)}),n&&this.createConstraints(n),c&&o&&typeof o.groups<"u"){r.forEach(function(_){if(!_.width||!_.height){_.bounds=new Ru(_.x,_.x,_.y,_.y);return}var y=_.width/2,C=_.height/2;_.bounds=new Ru(_.x-y,_.x+y,_.y-C,_.y+C)}),oC(o);var h=r.length;i.forEach(function(_){u.variables[h]=_.minVar=new KI(h++,typeof _.stiffness<"u"?_.stiffness:.01),u.variables[h]=_.maxVar=new KI(h++,typeof _.stiffness<"u"?_.stiffness:.01)})}}return e.prototype.createSeparation=function(r){return new ud.Constraint(this.nodes[r.left].variable,this.nodes[r.right].variable,r.gap,typeof r.equality<"u"?r.equality:!1)},e.prototype.makeFeasible=function(r){var i=this;if(this.avoidOverlaps){var o="x",n="width";r.axis==="x"&&(o="y",n="height");var c=r.offsets.map(function(h){return i.nodes[h.node]}).sort(function(h,_){return h[o]-_[o]}),u=null;c.forEach(function(h){if(u){var _=u[o]+u[n];_>h[o]&&(h[o]=_)}u=h})}},e.prototype.createAlignment=function(r){var i=this,o=this.nodes[r.offsets[0].node].variable;this.makeFeasible(r);var n=r.axis==="x"?this.xConstraints:this.yConstraints;r.offsets.slice(1).forEach(function(c){var u=i.nodes[c.node].variable;n.push(new ud.Constraint(o,u,c.offset,!0))})},e.prototype.createConstraints=function(r){var i=this,o=function(n){return typeof n.type>"u"||n.type==="separation"};this.xConstraints=r.filter(function(n){return n.axis==="x"&&o(n)}).map(function(n){return i.createSeparation(n)}),this.yConstraints=r.filter(function(n){return n.axis==="y"&&o(n)}).map(function(n){return i.createSeparation(n)}),r.filter(function(n){return n.type==="alignment"}).forEach(function(n){return i.createAlignment(n)})},e.prototype.setupVariablesAndBounds=function(r,i,o,n){this.nodes.forEach(function(c,u){c.fixed?(c.variable.weight=c.fixedWeight?c.fixedWeight:1e3,o[u]=n(c)):c.variable.weight=1;var h=(c.width||0)/2,_=(c.height||0)/2,y=r[u],C=i[u];c.bounds=new Ru(y-h,y+h,C-_,C+_)})},e.prototype.xProject=function(r,i,o){!this.rootGroup&&!(this.avoidOverlaps||this.xConstraints)||this.project(r,i,r,o,function(n){return n.px},this.xConstraints,Vmt,function(n){return n.bounds.setXCentre(o[n.variable.index]=n.variable.position())},function(n){var c=o[n.minVar.index]=n.minVar.position(),u=o[n.maxVar.index]=n.maxVar.position(),h=n.padding/2;n.bounds.x=c-h,n.bounds.X=u+h})},e.prototype.yProject=function(r,i,o){!this.rootGroup&&!this.yConstraints||this.project(r,i,i,o,function(n){return n.py},this.yConstraints,zmt,function(n){return n.bounds.setYCentre(o[n.variable.index]=n.variable.position())},function(n){var c=o[n.minVar.index]=n.minVar.position(),u=o[n.maxVar.index]=n.maxVar.position(),h=n.padding/2;n.bounds.y=c-h,n.bounds.Y=u+h})},e.prototype.projectFunctions=function(){var r=this;return[function(i,o,n){return r.xProject(i,o,n)},function(i,o,n){return r.yProject(i,o,n)}]},e.prototype.project=function(r,i,o,n,c,u,h,_,y){this.setupVariablesAndBounds(r,i,n,c),this.rootGroup&&this.avoidOverlaps&&(oC(this.rootGroup),u=u.concat(h(this.rootGroup))),this.solve(this.variables,u,o,n),this.nodes.forEach(_),this.rootGroup&&this.avoidOverlaps&&(this.groups.forEach(y),oC(this.rootGroup))},e.prototype.solve=function(r,i,o,n){var c=new ud.Solver(r,i);c.setStartingPositions(o),c.setDesiredPositions(n),c.solve()},e}();oc.Projection=aEe});var iL=Pe(JI=>{"use strict";Object.defineProperty(JI,"__esModule",{value:!0});var jmt=function(){function e(r){this.elem=r,this.subheaps=[]}return e.prototype.toString=function(r){for(var i="",o=!1,n=0;n{"use strict";Object.defineProperty(nL,"__esModule",{value:!0});var qmt=iL(),Hmt=function(){function e(r,i){this.id=r,this.distance=i}return e}(),lEe=function(){function e(r){this.id=r,this.neighbours=[]}return e}(),Gmt=function(){function e(r,i,o){this.node=r,this.prev=i,this.d=o}return e}(),cEe=function(){function e(r,i,o,n,c){this.n=r,this.es=i,this.neighbours=new Array(this.n);for(var u=this.n;u--;)this.neighbours[u]=new lEe(u);for(u=this.es.length;u--;){var h=this.es[u],_=o(h),y=n(h),C=c(h);this.neighbours[_].neighbours.push(new Hmt(y,C)),this.neighbours[y].neighbours.push(new Hmt(_,C))}}return e.prototype.DistanceMatrix=function(){for(var r=new Array(this.n),i=0;iE&&(y.d=E,y.prev=h,o.reduceKey(y.q,y,function(D,M){return D.q=M}))}}return c},e}();nL.Calculator=cEe});var sL=Pe($a=>{"use strict";var $mt=$a&&$a.__extends||function(){var e=function(r,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var c in n)n.hasOwnProperty(c)&&(o[c]=n[c])},e(r,i)};return function(r,i){e(r,i);function o(){this.constructor=r}r.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}}();Object.defineProperty($a,"__esModule",{value:!0});var pEe=qx(),oL=function(){function e(){}return e}();$a.Point=oL;var aL=function(){function e(r,i,o,n){this.x1=r,this.y1=i,this.x2=o,this.y2=n}return e}();$a.LineSegment=aL;var mEe=function(e){$mt(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r}(oL);$a.PolyPoint=mEe;function ep(e,r,i){return(r.x-e.x)*(i.y-e.y)-(i.x-e.x)*(r.y-e.y)}$a.isLeft=ep;function ym(e,r,i){return ep(e,r,i)>0}function Gp(e,r,i){return ep(e,r,i)<0}function dEe(e){var r=e.slice(0).sort(function(T,D){return T.x!==D.x?D.x-T.x:D.y-T.y}),i=e.length,o,n=0,c=r[0].x;for(o=1;o=0&&r[o].x===C;o--);for(_=o+1,o=u;++o<=_;)if(!(ep(r[n],r[_],r[o])>=0&&o<_)){for(;h.length>1&&!(ep(h[h.length-2],h[h.length-1],r[o])>0);)h.length-=1;o!=n&&h.push(r[o])}y!=_&&h.push(r[y]);var E=h.length;for(o=_;--o>=u;)if(!(ep(r[y],r[u],r[o])>=0&&o>u)){for(;h.length>E&&!(ep(h[h.length-2],h[h.length-1],r[o])>0);)h.length-=1;o!=n&&h.push(r[o])}}return h}$a.ConvexHull=dEe;function uEe(e,r,i){r.slice(0).sort(function(o,n){return Math.atan2(o.y-e.y,o.x-e.x)-Math.atan2(n.y-e.y,n.x-e.x)}).forEach(i)}$a.clockwiseRadialSweep=uEe;function fEe(e,r){var i=r.slice(0);return i.push(r[0]),{rtan:XI(e,i),ltan:tT(e,i)}}function XI(e,r){var i=r.length-1,o,n,c,u,h;if(Gp(e,r[1],r[0])&&!ym(e,r[i-1],r[0]))return 0;for(o=0,n=i;;){if(n-o===1)return ym(e,r[o],r[n])?o:n;if(c=Math.floor((o+n)/2),h=Gp(e,r[c+1],r[c]),h&&!ym(e,r[c-1],r[c]))return c;u=ym(e,r[o+1],r[o]),u?h||ym(e,r[o],r[c])?n=c:o=c:h&&Gp(e,r[o],r[c])?n=c:o=c}}function tT(e,r){var i=r.length-1,o,n,c,u,h;if(ym(e,r[i-1],r[0])&&!Gp(e,r[1],r[0]))return 0;for(o=0,n=i;;){if(n-o===1)return Gp(e,r[o],r[n])?o:n;if(c=Math.floor((o+n)/2),h=Gp(e,r[c+1],r[c]),ym(e,r[c-1],r[c])&&!h)return c;u=Gp(e,r[o+1],r[o]),u?h?Gp(e,r[o],r[c])?n=c:o=c:n=c:h?o=c:ym(e,r[o],r[c])?n=c:o=c}}function eT(e,r,i,o,n,c){var u,h;u=i(r[0],e),h=o(e[u],r);for(var _=!1;!_;){for(_=!0;u===e.length-1&&(u=0),!n(r[h],e[u],e[u+1]);)++u;for(;h===0&&(h=r.length-1),!c(e[u],r[h],r[h-1]);)--h,_=!1}return{t1:u,t2:h}}$a.tangent_PolyPolyC=eT;function hEe(e,r){var i=Wmt(r,e);return{t1:i.t2,t2:i.t1}}$a.LRtangent_PolyPolyC=hEe;function Wmt(e,r){return eT(e,r,XI,tT,ym,Gp)}$a.RLtangent_PolyPolyC=Wmt;function gEe(e,r){return eT(e,r,tT,tT,Gp,Gp)}$a.LLtangent_PolyPolyC=gEe;function xEe(e,r){return eT(e,r,XI,XI,ym,ym)}$a.RRtangent_PolyPolyC=xEe;var sC=function(){function e(r,i){this.t1=r,this.t2=i}return e}();$a.BiTangent=sC;var Qmt=function(){function e(){}return e}();$a.BiTangents=Qmt;var _Ee=function(e){$mt(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r}(oL);$a.TVGPoint=_Ee;var rL=function(){function e(r,i,o,n){this.id=r,this.polyid=i,this.polyvertid=o,this.p=n,n.vv=this}return e}();$a.VisibilityVertex=rL;var ZI=function(){function e(r,i){this.source=r,this.target=i}return e.prototype.length=function(){var r=this.source.p.x-this.target.p.x,i=this.source.p.y-this.target.p.y;return Math.sqrt(r*r+i*i)},e}();$a.VisibilityEdge=ZI;var vEe=function(){function e(r,i){if(this.P=r,this.V=[],this.E=[],i)this.V=i.V.slice(0),this.E=i.E.slice(0);else{for(var o=r.length,n=0;n0&&this.E.push(new ZI(c[u-1].vv,_))}c.length>1&&this.E.push(new ZI(c[0].vv,c[c.length-1].vv))}for(var n=0;n0)return!0;return!1},e}();$a.TangentVisibilityGraph=vEe;function Ymt(e,r){for(var i=[],o=1,n=r.length;o=0&&M>=0&&F<0&&B>=0&&z>=0&&$<0?n.ll=new sC(c,u):D<=0&&M<=0&&F>0&&B<=0&&z<=0&&$>0?n.rr=new sC(c,u):D<=0&&M>0&&F<=0&&B>=0&&z<0&&$>=0?n.rl=new sC(c,u):D>=0&&M<0&&F>=0&&B<=0&&z>0&&$<=0&&(n.lr=new sC(c,u))}return n}$a.tangents=Kmt;function bEe(e,r){for(var i=1,o=r.length;i0)return!0}return!1}$a.polysOverlap=CEe});var lL=Pe(iT=>{"use strict";Object.defineProperty(iT,"__esModule",{value:!0});var Up={PADDING:10,GOLDEN_SECTION:(1+Math.sqrt(5))/2,FLOAT_EPSILON:1e-4,MAX_INERATIONS:100};function yEe(e,r,i,E,C,c){C===void 0&&(C=1),c===void 0&&(c=!0);var u=0,h=0,_=r,y=i,C=typeof C<"u"?C:1,E=typeof E<"u"?E:0,T=0,D=0,M=0,F=0,B=[];if(e.length==0)return;z(e),tt(e,C),c&&$(e);function z(vt){vt.forEach(function(Ct){Tt(Ct)});function Tt(Ct){var Z=Number.MAX_VALUE,nt=Number.MAX_VALUE,xt=0,R=0;Ct.array.forEach(function(j){var G=typeof j.width<"u"?j.width:E,H=typeof j.height<"u"?j.height:E;G/=2,H/=2,xt=Math.max(j.x+G,xt),Z=Math.min(j.x-G,Z),R=Math.max(j.y+H,R),nt=Math.min(j.y-H,nt)}),Ct.width=xt-Z,Ct.height=R-nt}}function $(vt){vt.forEach(function(Tt){var Ct={x:0,y:0};Tt.array.forEach(function(xt){Ct.x+=xt.x,Ct.y+=xt.y}),Ct.x/=Tt.array.length,Ct.y/=Tt.array.length;var Z={x:Ct.x-Tt.width/2,y:Ct.y-Tt.height/2},nt={x:Tt.x-Z.x+_/2-T/2,y:Tt.y-Z.y+y/2-D/2};Tt.array.forEach(function(xt){xt.x+=nt.x,xt.y+=nt.y})})}function tt(vt,Tt){var Ct=Number.POSITIVE_INFINITY,Z=0;vt.sort(function(Ot,Yt){return Yt.height-Ot.height}),M=vt.reduce(function(Ot,Yt){return Ot.widthM||et>Up.FLOAT_EPSILON;){if(H!=1)var ft=xt-(xt-nt)/Up.GOLDEN_SECTION,j=lt(vt,ft);if(H!=0)var At=nt+(xt-nt)/Up.GOLDEN_SECTION,G=lt(vt,At);if(K=Math.abs(ft-At),et=Math.abs(j-G),jG?(nt=ft,ft=At,j=G,H=1):(xt=At,At=ft,G=j,H=0),R++>100)break}lt(vt,Z)}function lt(vt,Tt){B=[],T=0,D=0,F=h;for(var Ct=0;Ct=vt.height&&B[Z].x+B[Z].width+vt.width+Up.PADDING-Tt<=Up.FLOAT_EPSILON){Ct=B[Z];break}B.push(vt),Ct!==void 0?(vt.x=Ct.x+Ct.width+Up.PADDING,vt.y=Ct.bottom,vt.space_left=vt.height,vt.bottom=vt.y,Ct.space_left-=vt.height+Up.PADDING,Ct.bottom+=vt.height+Up.PADDING):(vt.y=F,F+=vt.height+Up.PADDING,vt.x=u,vt.bottom=vt.y,vt.space_left=vt.height),vt.y+vt.height-D>-Up.FLOAT_EPSILON&&(D=vt.y+vt.height-h),vt.x+vt.width-T>-Up.FLOAT_EPSILON&&(T=vt.x+vt.width-u)}function X(vt){var Tt=0;return vt.forEach(function(Ct){return Tt+=Ct.width+Up.PADDING}),Tt}function mt(){return T/D}}iT.applyPacking=yEe;function SEe(e,r){for(var i={},o={},n=[],c=0,u=0;u{"use strict";Object.defineProperty(cC,"__esModule",{value:!0});var wEe=QN(),cL=GI(),nT=UI(),rT=qx(),Jmt=aC(),Zmt=sL(),Xmt=lL(),lC;(function(e){e[e.start=0]="start",e[e.tick=1]="tick",e[e.end=2]="end"})(lC=cC.EventType||(cC.EventType={}));function oT(e){return typeof e.leaves<"u"||typeof e.groups<"u"}var EEe=function(){function e(){var r=this;this._canvasSize=[1,1],this._linkDistance=20,this._defaultNodeSize=10,this._linkLengthCalculator=null,this._linkType=null,this._avoidOverlaps=!1,this._handleDisconnected=!0,this._running=!1,this._nodes=[],this._groups=[],this._rootGroup=null,this._links=[],this._constraints=[],this._distanceMatrix=null,this._descent=null,this._directedLinkConstraints=null,this._threshold=.01,this._visibilityGraph=null,this._groupCompactness=1e-6,this.event=null,this.linkAccessor={getSourceIndex:e.getSourceIndex,getTargetIndex:e.getTargetIndex,setLength:e.setLinkLength,getType:function(i){return typeof r._linkType=="function"?r._linkType(i):0}}}return e.prototype.on=function(r,i){return this.event||(this.event={}),typeof r=="string"?this.event[lC[r]]=i:this.event[r]=i,this},e.prototype.trigger=function(r){this.event&&typeof this.event[r.type]<"u"&&this.event[r.type](r)},e.prototype.kick=function(){for(;!this.tick(););},e.prototype.tick=function(){if(this._alpha"u"||typeof o.py>"u")&&(o.px=o.x,o.py=o.y);var c=[o.px,o.py];this._descent.locks.add(n,c)}var u=this._descent.rungeKutta();return u===0?this._alpha=0:typeof this._lastStress<"u"&&(this._alpha=u),this._lastStress=u,this.updateNodePositions(),this.trigger({type:lC.tick,alpha:this._alpha,stress:this._lastStress}),!1},e.prototype.updateNodePositions=function(){for(var r=this._descent.x[0],i=this._descent.x[1],o,n=this._nodes.length;n--;)o=this._nodes[n],o.x=r[n],o.y=i[n]},e.prototype.nodes=function(r){if(!r){if(this._nodes.length===0&&this._links.length>0){var i=0;this._links.forEach(function(n){i=Math.max(i,n.source,n.target)}),this._nodes=new Array(++i);for(var o=0;o"u"&&(o.padding=1),typeof o.leaves<"u"&&o.leaves.forEach(function(n,c){typeof n=="number"&&((o.leaves[c]=i._nodes[n]).parent=o)}),typeof o.groups<"u"&&o.groups.forEach(function(n,c){typeof n=="number"&&((o.groups[c]=i._groups[n]).parent=o)})}),this._rootGroup.leaves=this._nodes.filter(function(o){return typeof o.parent>"u"}),this._rootGroup.groups=this._groups.filter(function(o){return typeof o.parent>"u"}),this):this._groups},e.prototype.powerGraphGroups=function(r){var i=wEe.getGroups(this._nodes,this._links,this.linkAccessor,this._rootGroup);return this.groups(i.groups),r(i),this},e.prototype.avoidOverlaps=function(r){return arguments.length?(this._avoidOverlaps=r,this):this._avoidOverlaps},e.prototype.handleDisconnected=function(r){return arguments.length?(this._handleDisconnected=r,this):this._handleDisconnected},e.prototype.flowLayout=function(r,i){return arguments.length||(r="y"),this._directedLinkConstraints={axis:r,getMinSeparation:typeof i=="number"?function(){return i}:i},this},e.prototype.links=function(r){return arguments.length?(this._links=r,this):this._links},e.prototype.constraints=function(r){return arguments.length?(this._constraints=r,this):this._constraints},e.prototype.distanceMatrix=function(r){return arguments.length?(this._distanceMatrix=r,this):this._distanceMatrix},e.prototype.size=function(r){return r?(this._canvasSize=r,this):this._canvasSize},e.prototype.defaultNodeSize=function(r){return r?(this._defaultNodeSize=r,this):this._defaultNodeSize},e.prototype.groupCompactness=function(r){return r?(this._groupCompactness=r,this):this._groupCompactness},e.prototype.linkDistance=function(r){return r?(this._linkDistance=typeof r=="function"?r:+r,this._linkLengthCalculator=null,this):this._linkDistance},e.prototype.linkType=function(r){return this._linkType=r,this},e.prototype.convergenceThreshold=function(r){return r?(this._threshold=typeof r=="function"?r:+r,this):this._threshold},e.prototype.alpha=function(r){return arguments.length?(r=+r,this._alpha?r>0?this._alpha=r:this._alpha=0:r>0&&(this._running||(this._running=!0,this.trigger({type:lC.start,alpha:this._alpha=r}),this.kick())),this):this._alpha},e.prototype.getLinkLength=function(r){return typeof this._linkDistance=="function"?+this._linkDistance(r):this._linkDistance},e.setLinkLength=function(r,i){r.length=i},e.prototype.getLinkType=function(r){return typeof this._linkType=="function"?this._linkType(r):0},e.prototype.symmetricDiffLinkLengths=function(r,i){var o=this;return i===void 0&&(i=1),this.linkDistance(function(n){return r*n.length}),this._linkLengthCalculator=function(){return cL.symmetricDiffLinkLengths(o._links,o.linkAccessor,i)},this},e.prototype.jaccardLinkLengths=function(r,i){var o=this;return i===void 0&&(i=1),this.linkDistance(function(n){return r*n.length}),this._linkLengthCalculator=function(){return cL.jaccardLinkLengths(o._links,o.linkAccessor,i)},this},e.prototype.start=function(r,i,o,n,c,u){var h=this;r===void 0&&(r=0),i===void 0&&(i=0),o===void 0&&(o=0),n===void 0&&(n=0),c===void 0&&(c=!0),u===void 0&&(u=!0);var _,y,C=this.nodes().length,E=C+2*this._groups.length,T=this._links.length,D=this._canvasSize[0],M=this._canvasSize[1],F=new Array(E),B=new Array(E),z=null,$=this._avoidOverlaps;this._nodes.forEach(function(Ct,Z){Ct.index=Z,typeof Ct.x>"u"&&(Ct.x=D/2,Ct.y=M/2),F[Z]=Ct.x,B[Z]=Ct.y}),this._linkLengthCalculator&&this._linkLengthCalculator();var tt;this._distanceMatrix?tt=this._distanceMatrix:(tt=new Jmt.Calculator(E,this._links,e.getSourceIndex,e.getTargetIndex,function(Ct){return h.getLinkLength(Ct)}).DistanceMatrix(),z=nT.Descent.createSquareMatrix(E,function(){return 2}),this._links.forEach(function(Ct){typeof Ct.source=="number"&&(Ct.source=h._nodes[Ct.source]),typeof Ct.target=="number"&&(Ct.target=h._nodes[Ct.target])}),this._links.forEach(function(Ct){var Z=e.getSourceIndex(Ct),nt=e.getTargetIndex(Ct);z[Z][nt]=z[nt][Z]=Ct.weight||1}));var lt=nT.Descent.createSquareMatrix(E,function(Ct,Z){return tt[Ct][Z]});if(this._rootGroup&&typeof this._rootGroup.groups<"u"){var _=C,gt=function(Z,nt,xt,R){z[Z][nt]=z[nt][Z]=xt,lt[Z][nt]=lt[nt][Z]=R};this._groups.forEach(function(Z){gt(_,_+1,h._groupCompactness,.1),F[_]=0,B[_++]=0,F[_]=0,B[_++]=0})}else this._rootGroup={leaves:this._nodes,groups:[]};var X=this._constraints||[];this._directedLinkConstraints&&(this.linkAccessor.getMinSeparation=this._directedLinkConstraints.getMinSeparation,X=X.concat(cL.generateDirectedEdgeConstraints(C,this._links,this._directedLinkConstraints.axis,this.linkAccessor))),this.avoidOverlaps(!1),this._descent=new nT.Descent([F,B],lt),this._descent.locks.clear();for(var _=0;_0&&(this._descent.project=new rT.Projection(this._nodes,this._groups,this._rootGroup,X).projectFunctions()),this._descent.run(i),this.separateOverlappingComponents(D,M,u),this.avoidOverlaps($),$&&(this._nodes.forEach(function(Ct,Z){Ct.x=F[Z],Ct.y=B[Z]}),this._descent.project=new rT.Projection(this._nodes,this._groups,this._rootGroup,X,!0).projectFunctions(),this._nodes.forEach(function(Ct,Z){F[Z]=Ct.x,B[Z]=Ct.y})),this._descent.G=z,this._descent.run(o),n){this._descent.snapStrength=1e3,this._descent.snapGridSize=this._nodes[0].width,this._descent.numGridSnapNodes=C,this._descent.scaleSnapByMaxH=C!=E;var Tt=nT.Descent.createSquareMatrix(E,function(Ct,Z){return Ct>=C||Z>=C?z[Ct][Z]:0});this._descent.G=Tt,this._descent.run(n)}return this.updateNodePositions(),this.separateOverlappingComponents(D,M,u),c?this.resume():this},e.prototype.initialLayout=function(r,i,o){if(this._groups.length>0&&r>0){var n=this._nodes.length,c=this._links.map(function(h){return{source:h.source.index,target:h.target.index}}),u=this._nodes.map(function(h){return{index:h.index}});this._groups.forEach(function(h,_){u.push({index:h.index=n+_})}),this._groups.forEach(function(h,_){typeof h.leaves<"u"&&h.leaves.forEach(function(y){return c.push({source:h.index,target:y.index})}),typeof h.groups<"u"&&h.groups.forEach(function(y){return c.push({source:h.index,target:y.index})})}),new e().size(this.size()).nodes(u).links(c).avoidOverlaps(!1).linkDistance(this.linkDistance()).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(r,0,0,0,!1),this._nodes.forEach(function(h){i[h.index]=u[h.index].x,o[h.index]=u[h.index].y})}else this._descent.run(r)},e.prototype.separateOverlappingComponents=function(r,i,o){var n=this;if(o===void 0&&(o=!0),!this._distanceMatrix&&this._handleDisconnected){var c=this._descent.x[0],u=this._descent.x[1];this._nodes.forEach(function(_,y){_.x=c[y],_.y=u[y]});var h=Xmt.separateGraphs(this._nodes,this._links);Xmt.applyPacking(h,r,i,this._defaultNodeSize,1,o),this._nodes.forEach(function(_,y){n._descent.x[0][y]=_.x,n._descent.x[1][y]=_.y,_.bounds&&(_.bounds.setXCentre(_.x),_.bounds.setYCentre(_.y))})}},e.prototype.resume=function(){return this.alpha(.1)},e.prototype.stop=function(){return this.alpha(0)},e.prototype.prepareEdgeRouting=function(r){r===void 0&&(r=0),this._visibilityGraph=new Zmt.TangentVisibilityGraph(this._nodes.map(function(i){return i.bounds.inflate(-r).vertices()}))},e.prototype.routeEdge=function(r,i,o){i===void 0&&(i=5);var n=[],c=new Zmt.TangentVisibilityGraph(this._visibilityGraph.P,{V:this._visibilityGraph.V,E:this._visibilityGraph.E}),u={x:r.source.x,y:r.source.y},h={x:r.target.x,y:r.target.y},_=c.addPoint(u,r.source.index),y=c.addPoint(h,r.target.index);c.addEdgeIfVisible(u,h,r.source.index,r.target.index),typeof o<"u"&&o(c);var C=function(lt){return lt.source.id},E=function(lt){return lt.target.id},T=function(lt){return lt.length()},D=new Jmt.Calculator(c.V.length,c.E,C,E,T),M=D.PathFromNodeToNode(_.id,y.id);if(M.length===1||M.length===c.V.length){var F=rT.makeEdgeBetween(r.source.innerBounds,r.target.innerBounds,i);n=[F.sourceIntersection,F.arrowStart]}else{for(var B=M.length-2,z=c.V[M[B]].p,$=c.V[M[0]].p,n=[r.source.innerBounds.rayIntersection(z.x,z.y)],tt=B;tt>=0;--tt)n.push(c.V[M[tt]].p);n.push(rT.makeEdgeTo($,r.target.innerBounds,i))}return n},e.getSourceIndex=function(r){return typeof r.source=="number"?r.source:r.source.index},e.getTargetIndex=function(r){return typeof r.target=="number"?r.target:r.target.index},e.linkId=function(r){return e.getSourceIndex(r)+"-"+e.getTargetIndex(r)},e.dragStart=function(r){oT(r)?e.storeOffset(r,e.dragOrigin(r)):(e.stopNode(r),r.fixed|=2)},e.stopNode=function(r){r.px=r.x,r.py=r.y},e.storeOffset=function(r,i){typeof r.leaves<"u"&&r.leaves.forEach(function(o){o.fixed|=2,e.stopNode(o),o._dragGroupOffsetX=o.x-i.x,o._dragGroupOffsetY=o.y-i.y}),typeof r.groups<"u"&&r.groups.forEach(function(o){return e.storeOffset(o,i)})},e.dragOrigin=function(r){return oT(r)?{x:r.bounds.cx(),y:r.bounds.cy()}:r},e.drag=function(r,i){oT(r)?(typeof r.leaves<"u"&&r.leaves.forEach(function(o){r.bounds.setXCentre(i.x),r.bounds.setYCentre(i.y),o.px=o._dragGroupOffsetX+i.x,o.py=o._dragGroupOffsetY+i.y}),typeof r.groups<"u"&&r.groups.forEach(function(o){return e.drag(o,i)})):(r.px=i.x,r.py=i.y)},e.dragEnd=function(r){oT(r)?(typeof r.leaves<"u"&&r.leaves.forEach(function(i){e.dragEnd(i),delete i._dragGroupOffsetX,delete i._dragGroupOffsetY}),typeof r.groups<"u"&&r.groups.forEach(e.dragEnd)):r.fixed&=-7},e.mouseOver=function(r){r.fixed|=4,r.px=r.x,r.py=r.y},e.mouseOut=function(r){r.fixed&=-5},e}();cC.Layout=EEe});var e0t=Pe(Gx=>{"use strict";var PEe=Gx&&Gx.__extends||function(){var e=function(r,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var c in n)n.hasOwnProperty(c)&&(o[c]=n[c])},e(r,i)};return function(r,i){e(r,i);function o(){this.constructor=r}r.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}}();Object.defineProperty(Gx,"__esModule",{value:!0});var pL=Hx(),t0t=function(e){PEe(r,e);function r(i){var o=e.call(this)||this,n=o,c=i;return c.trigger&&(o.trigger=c.trigger),c.kick&&(o.kick=c.kick),c.drag&&(o.drag=c.drag),c.on&&(o.on=c.on),o.dragstart=o.dragStart=pL.Layout.dragStart,o.dragend=o.dragEnd=pL.Layout.dragEnd,o}return r.prototype.trigger=function(i){},r.prototype.kick=function(){},r.prototype.drag=function(){},r.prototype.on=function(i,o){return this},r}(pL.Layout);Gx.LayoutAdaptor=t0t;function kEe(e){return new t0t(e)}Gx.adaptor=kEe});var n0t=Pe(Ux=>{"use strict";var IEe=Ux&&Ux.__extends||function(){var e=function(r,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var c in n)n.hasOwnProperty(c)&&(o[c]=n[c])},e(r,i)};return function(r,i){e(r,i);function o(){this.constructor=r}r.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}}();Object.defineProperty(Ux,"__esModule",{value:!0});var ip=Hx(),i0t=function(e){IEe(r,e);function r(){var i=e.call(this)||this;i.event=d3.dispatch(ip.EventType[ip.EventType.start],ip.EventType[ip.EventType.tick],ip.EventType[ip.EventType.end]);var o=i,n;return i.drag=function(){if(!c)var c=d3.behavior.drag().origin(ip.Layout.dragOrigin).on("dragstart.d3adaptor",ip.Layout.dragStart).on("drag.d3adaptor",function(u){ip.Layout.drag(u,d3.event),o.resume()}).on("dragend.d3adaptor",ip.Layout.dragEnd);if(!arguments.length)return c;this.call(c)},i}return r.prototype.trigger=function(i){var o={type:ip.EventType[i.type],alpha:i.alpha,stress:i.stress};this.event[o.type](o)},r.prototype.kick=function(){var i=this;d3.timer(function(){return e.prototype.tick.call(i)})},r.prototype.on=function(i,o){return typeof i=="string"?this.event.on(i,o):this.event.on(ip.EventType[i],o),this},r}(ip.Layout);Ux.D3StyleLayoutAdaptor=i0t;function TEe(){return new i0t}Ux.d3adaptor=TEe});var r0t=Pe(pC=>{"use strict";var MEe=pC&&pC.__extends||function(){var e=function(r,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var c in n)n.hasOwnProperty(c)&&(o[c]=n[c])},e(r,i)};return function(r,i){e(r,i);function o(){this.constructor=r}r.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}}();Object.defineProperty(pC,"__esModule",{value:!0});var np=Hx(),DEe=function(e){MEe(r,e);function r(i){var o=e.call(this)||this;o.d3Context=i,o.event=i.dispatch(np.EventType[np.EventType.start],np.EventType[np.EventType.tick],np.EventType[np.EventType.end]);var n=o,c;return o.drag=function(){if(!u)var u=i.drag().subject(np.Layout.dragOrigin).on("start.d3adaptor",np.Layout.dragStart).on("drag.d3adaptor",function(h){np.Layout.drag(h,i.event),n.resume()}).on("end.d3adaptor",np.Layout.dragEnd);if(!arguments.length)return u;arguments[0].call(u)},o}return r.prototype.trigger=function(i){var o={type:np.EventType[i.type],alpha:i.alpha,stress:i.stress};this.event.call(o.type,o)},r.prototype.kick=function(){var i=this,o=this.d3Context.timer(function(){return e.prototype.tick.call(i)&&o.stop()})},r.prototype.on=function(i,o){return typeof i=="string"?this.event.on(i,o):this.event.on(np.EventType[i],o),this},r}(np.Layout);pC.D3StyleLayoutAdaptor=DEe});var o0t=Pe(mL=>{"use strict";Object.defineProperty(mL,"__esModule",{value:!0});var AEe=n0t(),OEe=r0t();function FEe(e){return!e||BEe(e)?new AEe.D3StyleLayoutAdaptor:new OEe.D3StyleLayoutAdaptor(e)}mL.d3adaptor=FEe;function BEe(e){var r=/^3\./;return e.version&&e.version.match(r)!==null}});var hL=Pe($x=>{"use strict";Object.defineProperty($x,"__esModule",{value:!0});var REe=qx(),dL=QI(),NEe=aC(),a0t=function(){function e(r,i,o){this.id=r,this.rect=i,this.children=o,this.leaf=typeof o>"u"||o.length===0}return e}();$x.NodeWrapper=a0t;var uL=function(){function e(r,i,o,n,c){n===void 0&&(n=null),c===void 0&&(c=null),this.id=r,this.x=i,this.y=o,this.node=n,this.line=c}return e}();$x.Vert=uL;var fL=function(){function e(r,i){this.s=r,this.t=i;var o=e.findMatch(r,i),n=i.slice(0).reverse(),c=e.findMatch(r,n);o.length>=c.length?(this.length=o.length,this.si=o.si,this.ti=o.ti,this.reversed=!1):(this.length=c.length,this.si=c.si,this.ti=i.length-c.ti-c.length,this.reversed=!0)}return e.findMatch=function(r,i){for(var o=r.length,n=i.length,c={length:0,si:-1,ti:-1},u=new Array(o),h=0;hc.length&&(c.length=y,c.si=h-y+1,c.ti=_-y+1)}else u[h][_]=0}return c},e.prototype.getSequence=function(){return this.length>=0?this.s.slice(this.si,this.si+this.length):[]},e}();$x.LongestCommonSubsequence=fL;var LEe=function(){function e(r,i,o){var n=this;o===void 0&&(o=12),this.originalnodes=r,this.groupPadding=o,this.leaves=null,this.nodes=r.map(function(F,B){return new a0t(B,i.getBounds(F),i.getChildren(F))}),this.leaves=this.nodes.filter(function(F){return F.leaf}),this.groups=this.nodes.filter(function(F){return!F.leaf}),this.cols=this.getGridLines("x"),this.rows=this.getGridLines("y"),this.groups.forEach(function(F){return F.children.forEach(function(B){return n.nodes[B].parent=F})}),this.root={children:[]},this.nodes.forEach(function(F){typeof F.parent>"u"&&(F.parent=n.root,n.root.children.push(F.id)),F.ports=[]}),this.backToFront=this.nodes.slice(0),this.backToFront.sort(function(F,B){return n.getDepth(F)-n.getDepth(B)});var c=this.backToFront.slice(0).reverse().filter(function(F){return!F.leaf});c.forEach(function(F){var B=REe.Rectangle.empty();F.children.forEach(function(z){return B=B.union(n.nodes[z].rect)}),F.rect=B.inflate(n.groupPadding)});var u=this.midPoints(this.cols.map(function(F){return F.pos})),h=this.midPoints(this.rows.map(function(F){return F.pos})),_=u[0],y=u[u.length-1],C=h[0],E=h[h.length-1],T=this.rows.map(function(F){return{x1:_,x2:y,y1:F.pos,y2:F.pos}}).concat(h.map(function(F){return{x1:_,x2:y,y1:F,y2:F}})),D=this.cols.map(function(F){return{x1:F.pos,x2:F.pos,y1:C,y2:E}}).concat(u.map(function(F){return{x1:F,x2:F,y1:C,y2:E}})),M=T.concat(D);M.forEach(function(F){return F.verts=[]}),this.verts=[],this.edges=[],T.forEach(function(F){return D.forEach(function(B){var z=new uL(n.verts.length,B.x1,F.y1);F.verts.push(z),B.verts.push(z),n.verts.push(z);for(var $=n.backToFront.length;$-- >0;){var tt=n.backToFront[$],lt=tt.rect,gt=Math.abs(z.x-lt.cx()),X=Math.abs(z.y-lt.cy());if(gt0;){var n=o.filter(function(u){return u.rect["overlap"+r.toUpperCase()](o[0].rect)}),c={nodes:n,pos:this.avg(n.map(function(u){return u.rect["c"+r]()}))};i.push(c),c.nodes.forEach(function(u){return o.splice(o.indexOf(u),1)})}return i.sort(function(u,h){return u.pos-h.pos}),i},e.prototype.getDepth=function(r){for(var i=0;r.parent!==this.root;)i++,r=r.parent;return i},e.prototype.midPoints=function(r){for(var i=r[1]-r[0],o=[r[0]-i/2],n=1;n.1)&&(E={pos:_[0][i],segments:[]},C.push(E)),E.segments.push(_)}return C},e.nudgeSegs=function(r,i,o,n,c,u){var h=n.length;if(!(h<=1)){for(var _=n.map(function(tt){return new dL.Variable(tt[0][r])}),y=[],C=0;C=0&&y.push(new dL.Constraint(_[B],_[z],u))}var $=new dL.Solver(_,y);$.solve(),_.forEach(function(tt,lt){var gt=n[lt],X=tt.position();gt[0][r]=gt[1][r]=X;var mt=o[gt.edgeid];gt.i>0&&(mt[gt.i-1][1][r]=X),gt.iMath.PI||c<-Math.PI)&&(c=n-o),c},e.isLeft=function(r,i,o){return(i.x-r.x)*(o.y-r.y)-(i.y-r.y)*(o.x-r.x)<=0},e.getOrder=function(r){for(var i={},o=0;o"u"&&(i[n.l]={}),i[n.l][n.r]=!0}return function(c,u){return typeof i[c]<"u"&&i[c][u]}},e.orderEdges=function(r){for(var i=[],o=0;o=c.length||h.ti+h.length>=u.length)){i.push({l:o,r:n});continue}h.si+h.length>=c.length||h.ti+h.length>=u.length?(_=c[h.si+1],C=c[h.si-1],y=u[h.ti-1]):(_=c[h.si+h.length-2],y=c[h.si+h.length],C=u[h.ti+h.length]),e.isLeft(_,y,C)?i.push({l:n,r:o}):i.push({l:o,r:n})}}return e.getOrder(i)},e.makeSegments=function(r){function i(y){return{x:y.x,y:y.y}}for(var o=function(y,C,E){return Math.abs((C.x-y.x)*(E.y-y.y)-(C.y-y.y)*(E.x-y.x))<.001},n=[],c=i(r[0]),u=1;u1&&vt>1?1e3:0},F=D.PathFromNodeToNodeWithPrevCost(n.ports[0].id,c.ports[0].id,M),B=F.reverse().map(function(z){return o.verts[z]});return B.push(this.nodes[c.id].ports[0]),B.filter(function(z,$){return!($0&&z.node===c&&B[$-1].node===c)})},e.getRoutePath=function(r,i,o,n){var c={routepath:"M "+r[0][0].x+" "+r[0][0].y+" ",arrowpath:""};if(r.length>1)for(var u=0;u0?_-=C/Math.abs(C)*i:y-=E/Math.abs(E)*i,c.routepath+="L "+_+" "+y+" ";var T=r[u+1],D=T[0].x,M=T[0].y,F=T[1].x,B=T[1].y;C=F-D,E=B-M;var z=e.angleBetween2Lines(h,T)<0?1:0,$,tt;Math.abs(C)>0?($=D+C/Math.abs(C)*i,tt=M):($=D,tt=M+E/Math.abs(E)*i);var lt=Math.abs($-_),gt=Math.abs(tt-y);c.routepath+="A "+lt+" "+gt+" 0 0 "+z+" "+$+" "+tt+" "}else{var X=[_,y],mt,vt;Math.abs(C)>0?(_-=C/Math.abs(C)*n,mt=[_,y+o],vt=[_,y-o]):(y-=E/Math.abs(E)*n,mt=[_+o,y],vt=[_-o,y]),c.routepath+="L "+_+" "+y+" ",n>0&&(c.arrowpath="M "+X[0]+" "+X[1]+" L "+mt[0]+" "+mt[1]+" L "+vt[0]+" "+vt[1])}}else{var h=r[0],_=h[1].x,y=h[1].y,C=_-h[0].x,E=y-h[0].y,X=[_,y],mt,vt;Math.abs(C)>0?(_-=C/Math.abs(C)*n,mt=[_,y+o],vt=[_,y-o]):(y-=E/Math.abs(E)*n,mt=[_+o,y],vt=[_-o,y]),c.routepath+="L "+_+" "+y+" ",n>0&&(c.arrowpath="M "+X[0]+" "+X[1]+" L "+mt[0]+" "+mt[1]+" L "+vt[0]+" "+vt[1])}return c},e}();$x.GridRouter=LEe});var s0t=Pe(mC=>{"use strict";Object.defineProperty(mC,"__esModule",{value:!0});var VEe=aC(),gL=UI(),zEe=qx(),jEe=GI(),qEe=function(){function e(r,i){this.source=r,this.target=i}return e.prototype.actualLength=function(r){var i=this;return Math.sqrt(r.reduce(function(o,n){var c=n[i.target]-n[i.source];return o+c*c},0))},e}();mC.Link3D=qEe;var HEe=function(){function e(r,i,o){r===void 0&&(r=0),i===void 0&&(i=0),o===void 0&&(o=0),this.x=r,this.y=i,this.z=o}return e}();mC.Node3D=HEe;var GEe=function(){function e(r,i,o){var n=this;o===void 0&&(o=1),this.nodes=r,this.links=i,this.idealLinkLength=o,this.constraints=null,this.useJaccardLinkLengths=!0,this.result=new Array(e.k);for(var c=0;c"u"&&(u[C]=Math.random())}n.result[0][h]=u.x,n.result[1][h]=u.y,n.result[2][h]=u.z})}return e.prototype.linkLength=function(r){return r.actualLength(this.result)},e.prototype.start=function(r){var i=this;r===void 0&&(r=100);var o=this.nodes.length,n=new UEe;this.useJaccardLinkLengths&&jEe.jaccardLinkLengths(this.links,n,1.5),this.links.forEach(function(C){return C.length*=i.idealLinkLength});var c=new VEe.Calculator(o,this.links,function(C){return C.source},function(C){return C.target},function(C){return C.length}).DistanceMatrix(),u=gL.Descent.createSquareMatrix(o,function(C,E){return c[C][E]}),h=gL.Descent.createSquareMatrix(o,function(){return 2});this.links.forEach(function(C){var E=C.source,T=C.target;return h[E][T]=h[T][E]=1}),this.descent=new gL.Descent(this.result,u),this.descent.threshold=.001,this.descent.G=h,this.constraints&&(this.descent.project=new zEe.Projection(this.nodes,null,null,this.constraints).projectFunctions());for(var _=0;_{"use strict";Object.defineProperty(aT,"__esModule",{value:!0});var xL=Hx(),$Ee=hL();function WEe(e,r,i,o){e.cola.start(0,0,0,10,!1);var n=QEe(e.cola.nodes(),e.cola.groups(),i,o);return n.routeEdges(e.powerGraph.powerEdges,r,function(c){return c.source.routerNode.id},function(c){return c.target.routerNode.id})}aT.gridify=WEe;function QEe(e,r,i,o){e.forEach(function(c){c.routerNode={name:c.name,bounds:c.bounds.inflate(-i)}}),r.forEach(function(c){c.routerNode={bounds:c.bounds.inflate(-o),children:(typeof c.groups<"u"?c.groups.map(function(u){return e.length+u.id}):[]).concat(typeof c.leaves<"u"?c.leaves.map(function(u){return u.index}):[])}});var n=e.concat(r).map(function(c,u){return c.routerNode.id=u,c.routerNode});return new $Ee.GridRouter(n,{getChildren:function(c){return c.children},getBounds:function(c){return c.bounds}},i-o)}function YEe(e,r,i){var o;e.nodes.forEach(function(h,_){return h.index=_}),new xL.Layout().avoidOverlaps(!1).nodes(e.nodes).links(e.links).powerGraphGroups(function(h){o=h,o.groups.forEach(function(_){return _.padding=i})});var n=e.nodes.length,c=[],u=e.nodes.slice(0);return u.forEach(function(h,_){return h.index=_}),o.groups.forEach(function(h){var _=h.index=h.id+n;u.push(h),typeof h.leaves<"u"&&h.leaves.forEach(function(y){return c.push({source:_,target:y.index})}),typeof h.groups<"u"&&h.groups.forEach(function(y){return c.push({source:_,target:y.id+n})})}),o.powerEdges.forEach(function(h){c.push({source:h.source.index,target:h.target.index})}),new xL.Layout().size(r).nodes(u).links(c).avoidOverlaps(!1).linkDistance(30).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(100,0,0,0,!1),{cola:new xL.Layout().convergenceThreshold(.001).size(r).avoidOverlaps(!0).nodes(e.nodes).links(e.links).groupCompactness(1e-4).linkDistance(30).symmetricDiffLinkLengths(5).powerGraphGroups(function(h){o=h,o.groups.forEach(function(_){_.padding=i})}).start(50,0,100,0,!1),powerGraph:o}}aT.powerGraphGridLayout=YEe});var c0t=Pe(sT=>{"use strict";function Ll(e){for(var r in e)sT.hasOwnProperty(r)||(sT[r]=e[r])}Object.defineProperty(sT,"__esModule",{value:!0});Ll(e0t());Ll(o0t());Ll(UI());Ll(sL());Ll(hL());Ll(lL());Ll(Hx());Ll(s0t());Ll(GI());Ll(QN());Ll(iL());Ll(ZN());Ll(qx());Ll(aC());Ll(QI());Ll(l0t())});var Hut=Pe((jl,sc)=>{(function(e){let r=e.en=e.en||{};r.dictionary=Object.assign(r.dictionary||{},{"%0 of %1":"%0 of %1",Accept:"Accept","Align cell text to the bottom":"Align cell text to the bottom","Align cell text to the center":"Align cell text to the center","Align cell text to the left":"Align cell text to the left","Align cell text to the middle":"Align cell text to the middle","Align cell text to the right":"Align cell text to the right","Align cell text to the top":"Align cell text to the top","Align table to the left":"Align table to the left","Align table to the right":"Align table to the right",Alignment:"Alignment",Aquamarine:"Aquamarine",Background:"Background",Black:"Black","Block quote":"Block quote",Blue:"Blue",Bold:"Bold",Border:"Border","Break text":"Break text","Bulleted List":"Bulleted List","Bulleted list styles toolbar":"Bulleted list styles toolbar",Cancel:"Cancel","Cannot access default workspace.":"Cannot access default workspace.","Cannot determine a category for the uploaded file.":"Cannot determine a category for the uploaded file.","Cannot upload file:":"Cannot upload file:","Caption for image: %0":"Caption for image: %0","Caption for the image":"Caption for the image","Cell properties":"Cell properties","Center table":"Center table","Centered image":"Centered image","Change image text alternative":"Change image text alternative","Choose heading":"Choose heading",Circle:"Circle",Clear:"Clear","Click to edit block":"Click to edit block",Code:"Code",Color:"Color","Color picker":"Color picker",Column:"Column","Could not insert image at the current position.":"Could not insert image at the current position.","Could not obtain resized image URL.":"Could not obtain resized image URL.",Dashed:"Dashed",Decimal:"Decimal","Decimal with leading zero":"Decimal with leading zero","Decrease indent":"Decrease indent","Delete column":"Delete column","Delete row":"Delete row","Dim grey":"Dim grey",Dimensions:"Dimensions",Disc:"Disc",Dotted:"Dotted",Double:"Double",Downloadable:"Downloadable","Drag to move":"Drag to move","Dropdown toolbar":"Dropdown toolbar","Edit block":"Edit block","Edit image":"Edit image","Edit link":"Edit link","Editor block content toolbar":"Editor block content toolbar","Editor contextual toolbar":"Editor contextual toolbar","Editor editing area: %0":"Editor editing area: %0","Editor toolbar":"Editor toolbar","Enter image caption":"Enter image caption","Enter table caption":"Enter table caption","Failed to determine category of edited image.":"Failed to determine category of edited image.","Full size image":"Full size image",Green:"Green",Grey:"Grey",Groove:"Groove","Header column":"Header column","Header row":"Header row",Heading:"Heading","Heading 1":"Heading 1","Heading 2":"Heading 2","Heading 3":"Heading 3","Heading 4":"Heading 4","Heading 5":"Heading 5","Heading 6":"Heading 6",Height:"Height",HEX:"HEX","Horizontal text alignment toolbar":"Horizontal text alignment toolbar","Image resize list":"Image resize list","Image toolbar":"Image toolbar","image widget":"image widget","In line":"In line","Increase indent":"Increase indent",Insert:"Insert","Insert column left":"Insert column left","Insert column right":"Insert column right","Insert image":"Insert image","Insert image or file":"Insert image or file","Insert image via URL":"Insert image via URL","Insert image with file manager":"Insert image with file manager","Insert media":"Insert media","Insert paragraph after block":"Insert paragraph after block","Insert paragraph before block":"Insert paragraph before block","Insert row above":"Insert row above","Insert row below":"Insert row below","Insert table":"Insert table","Insert with file manager":"Insert with file manager","Inserting image failed":"Inserting image failed",Inset:"Inset",Italic:"Italic","Justify cell text":"Justify cell text","Left aligned image":"Left aligned image","Light blue":"Light blue","Light green":"Light green","Light grey":"Light grey",Link:"Link","Link image":"Link image","Link URL":"Link URL","List properties":"List properties","Lower-latin":"Lower-latin","Lower\u2013roman":"Lower\u2013roman","Media toolbar":"Media toolbar","Media URL":"Media URL","media widget":"media widget","Merge cell down":"Merge cell down","Merge cell left":"Merge cell left","Merge cell right":"Merge cell right","Merge cell up":"Merge cell up","Merge cells":"Merge cells",Next:"Next","No results found":"No results found","No searchable items":"No searchable items",None:"None","Numbered List":"Numbered List","Numbered list styles toolbar":"Numbered list styles toolbar","Open file manager":"Open file manager","Open in a new tab":"Open in a new tab","Open link in new tab":"Open link in new tab","Open media in new tab":"Open media in new tab",Orange:"Orange",Original:"Original",Outset:"Outset",Padding:"Padding",Paragraph:"Paragraph","Paste the media URL in the input.":"Paste the media URL in the input.","Press Enter to type after or press Shift + Enter to type before the widget":"Press Enter to type after or press Shift + Enter to type before the widget",Previous:"Previous","Processing the edited image.":"Processing the edited image.",Purple:"Purple",Red:"Red",Redo:"Redo","Remove color":"Remove color","Replace from computer":"Replace from computer","Replace image":"Replace image","Replace image from computer":"Replace image from computer","Replace image with file manager":"Replace image with file manager","Replace with file manager":"Replace with file manager","Resize image":"Resize image","Resize image to %0":"Resize image to %0","Resize image to the original size":"Resize image to the original size","Restore default":"Restore default","Reversed order":"Reversed order","Rich Text Editor":"Rich Text Editor",Ridge:"Ridge","Right aligned image":"Right aligned image",Row:"Row",Save:"Save","Select all":"Select all","Select column":"Select column","Select row":"Select row","Selecting resized image failed":"Selecting resized image failed","Server failed to process the image.":"Server failed to process the image.","Show more items":"Show more items","Side image":"Side image",Solid:"Solid","Split cell horizontally":"Split cell horizontally","Split cell vertically":"Split cell vertically",Square:"Square","Start at":"Start at","Start index must be greater than 0.":"Start index must be greater than 0.",Strikethrough:"Strikethrough",Style:"Style",Subscript:"Subscript",Superscript:"Superscript","Table alignment toolbar":"Table alignment toolbar","Table cell text alignment":"Table cell text alignment","Table properties":"Table properties","Table toolbar":"Table toolbar","Text alternative":"Text alternative",'The color is invalid. Try "#FF0000" or "rgb(255,0,0)" or "red".':'The color is invalid. Try "#FF0000" or "rgb(255,0,0)" or "red".',"The URL must not be empty.":"The URL must not be empty.",'The value is invalid. Try "10px" or "2em" or simply "2".':'The value is invalid. Try "10px" or "2em" or simply "2".',"This link has no URL":"This link has no URL","This media URL is not supported.":"This media URL is not supported.","Tip: Paste the URL into the content to embed faster.":"Tip: Paste the URL into the content to embed faster.","To-do List":"To-do List","Toggle caption off":"Toggle caption off","Toggle caption on":"Toggle caption on","Toggle the circle list style":"Toggle the circle list style","Toggle the decimal list style":"Toggle the decimal list style","Toggle the decimal with leading zero list style":"Toggle the decimal with leading zero list style","Toggle the disc list style":"Toggle the disc list style","Toggle the lower\u2013latin list style":"Toggle the lower\u2013latin list style","Toggle the lower\u2013roman list style":"Toggle the lower\u2013roman list style","Toggle the square list style":"Toggle the square list style","Toggle the upper\u2013latin list style":"Toggle the upper\u2013latin list style","Toggle the upper\u2013roman list style":"Toggle the upper\u2013roman list style",Turquoise:"Turquoise","Type or paste your content here.":"Type or paste your content here.","Type your title":"Type your title",Underline:"Underline",Undo:"Undo",Unlink:"Unlink",Update:"Update","Update image URL":"Update image URL","Upload failed":"Upload failed","Upload from computer":"Upload from computer","Upload image from computer":"Upload image from computer","Upload in progress":"Upload in progress","Upper-latin":"Upper-latin","Upper-roman":"Upper-roman","Vertical text alignment toolbar":"Vertical text alignment toolbar",White:"White","Widget toolbar":"Widget toolbar",Width:"Width","Wrap text":"Wrap text",Yellow:"Yellow"})})(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),function(e,r){typeof jl=="object"&&typeof sc=="object"?sc.exports=r():typeof define=="function"&&define.amd?define([],r):typeof jl=="object"?jl.ClassicEditor=r():e.ClassicEditor=r()}(self,()=>(()=>{var e={4959:(n,c,u)=>{let h=u(1103),_={};for(let C of Object.keys(h))_[h[C]]=C;let y={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};n.exports=y;for(let C of Object.keys(y)){if(!("channels"in y[C]))throw new Error("missing channels property: "+C);if(!("labels"in y[C]))throw new Error("missing channel labels property: "+C);if(y[C].labels.length!==y[C].channels)throw new Error("channel and label counts mismatch: "+C);let{channels:E,labels:T}=y[C];delete y[C].channels,delete y[C].labels,Object.defineProperty(y[C],"channels",{value:E}),Object.defineProperty(y[C],"labels",{value:T})}y.rgb.hsl=function(C){let E=C[0]/255,T=C[1]/255,D=C[2]/255,M=Math.min(E,T,D),F=Math.max(E,T,D),B=F-M,z,$;F===M?z=0:E===F?z=(T-D)/B:T===F?z=2+(D-E)/B:D===F&&(z=4+(E-T)/B),z=Math.min(60*z,360),z<0&&(z+=360);let tt=(M+F)/2;return $=F===M?0:tt<=.5?B/(F+M):B/(2-F-M),[z,100*$,100*tt]},y.rgb.hsv=function(C){let E,T,D,M,F,B=C[0]/255,z=C[1]/255,$=C[2]/255,tt=Math.max(B,z,$),lt=tt-Math.min(B,z,$),gt=function(X){return(tt-X)/6/lt+.5};return lt===0?(M=0,F=0):(F=lt/tt,E=gt(B),T=gt(z),D=gt($),B===tt?M=D-T:z===tt?M=.3333333333333333+E-D:$===tt&&(M=.6666666666666666+T-E),M<0?M+=1:M>1&&(M-=1)),[360*M,100*F,100*tt]},y.rgb.hwb=function(C){let E=C[0],T=C[1],D=C[2],M=y.rgb.hsl(C)[0],F=1/255*Math.min(E,Math.min(T,D));return D=1-.00392156862745098*Math.max(E,Math.max(T,D)),[M,100*F,100*D]},y.rgb.cmyk=function(C){let E=C[0]/255,T=C[1]/255,D=C[2]/255,M=Math.min(1-E,1-T,1-D);return[100*((1-E-M)/(1-M)||0),100*((1-T-M)/(1-M)||0),100*((1-D-M)/(1-M)||0),100*M]},y.rgb.keyword=function(C){let E=_[C];if(E)return E;let T,D=1/0;for(let B of Object.keys(h)){let z=h[B],$=(F=z,((M=C)[0]-F[0])**2+(M[1]-F[1])**2+(M[2]-F[2])**2);$.04045?((E+.055)/1.055)**2.4:E/12.92,T=T>.04045?((T+.055)/1.055)**2.4:T/12.92,D=D>.04045?((D+.055)/1.055)**2.4:D/12.92,[100*(.4124*E+.3576*T+.1805*D),100*(.2126*E+.7152*T+.0722*D),100*(.0193*E+.1192*T+.9505*D)]},y.rgb.lab=function(C){let E=y.rgb.xyz(C),T=E[0],D=E[1],M=E[2];return T/=95.047,D/=100,M/=108.883,T=T>.008856?T**.3333333333333333:7.787*T+.13793103448275862,D=D>.008856?D**.3333333333333333:7.787*D+.13793103448275862,M=M>.008856?M**.3333333333333333:7.787*M+.13793103448275862,[116*D-16,500*(T-D),200*(D-M)]},y.hsl.rgb=function(C){let E=C[0]/360,T=C[1]/100,D=C[2]/100,M,F,B;if(T===0)return B=255*D,[B,B,B];M=D<.5?D*(1+T):D+T-D*T;let z=2*D-M,$=[0,0,0];for(let tt=0;tt<3;tt++)F=E+.3333333333333333*-(tt-1),F<0&&F++,F>1&&F--,B=6*F<1?z+6*(M-z)*F:2*F<1?M:3*F<2?z+(M-z)*(.6666666666666666-F)*6:z,$[tt]=255*B;return $},y.hsl.hsv=function(C){let E=C[0],T=C[1]/100,D=C[2]/100,M=T,F=Math.max(D,.01);return D*=2,T*=D<=1?D:2-D,M*=F<=1?F:2-F,[E,100*(D===0?2*M/(F+M):2*T/(D+T)),100*((D+T)/2)]},y.hsv.rgb=function(C){let E=C[0]/60,T=C[1]/100,D=C[2]/100,M=Math.floor(E)%6,F=E-Math.floor(E),B=255*D*(1-T),z=255*D*(1-T*F),$=255*D*(1-T*(1-F));switch(D*=255,M){case 0:return[D,$,B];case 1:return[z,D,B];case 2:return[B,D,$];case 3:return[B,z,D];case 4:return[$,B,D];case 5:return[D,B,z]}},y.hsv.hsl=function(C){let E=C[0],T=C[1]/100,D=C[2]/100,M=Math.max(D,.01),F,B;B=(2-T)*D;let z=(2-T)*M;return F=T*M,F/=z<=1?z:2-z,F=F||0,B/=2,[E,100*F,100*B]},y.hwb.rgb=function(C){let E=C[0]/360,T=C[1]/100,D=C[2]/100,M=T+D,F;M>1&&(T/=M,D/=M);let B=Math.floor(6*E),z=1-D;F=6*E-B,(1&B)!=0&&(F=1-F);let $=T+F*(z-T),tt,lt,gt;switch(B){default:case 6:case 0:tt=z,lt=$,gt=T;break;case 1:tt=$,lt=z,gt=T;break;case 2:tt=T,lt=z,gt=$;break;case 3:tt=T,lt=$,gt=z;break;case 4:tt=$,lt=T,gt=z;break;case 5:tt=z,lt=T,gt=$}return[255*tt,255*lt,255*gt]},y.cmyk.rgb=function(C){let E=C[0]/100,T=C[1]/100,D=C[2]/100,M=C[3]/100;return[255*(1-Math.min(1,E*(1-M)+M)),255*(1-Math.min(1,T*(1-M)+M)),255*(1-Math.min(1,D*(1-M)+M))]},y.xyz.rgb=function(C){let E=C[0]/100,T=C[1]/100,D=C[2]/100,M,F,B;return M=3.2406*E+-1.5372*T+-.4986*D,F=-.9689*E+1.8758*T+.0415*D,B=.0557*E+-.204*T+1.057*D,M=M>.0031308?1.055*M**.4166666666666667-.055:12.92*M,F=F>.0031308?1.055*F**.4166666666666667-.055:12.92*F,B=B>.0031308?1.055*B**.4166666666666667-.055:12.92*B,M=Math.min(Math.max(0,M),1),F=Math.min(Math.max(0,F),1),B=Math.min(Math.max(0,B),1),[255*M,255*F,255*B]},y.xyz.lab=function(C){let E=C[0],T=C[1],D=C[2];return E/=95.047,T/=100,D/=108.883,E=E>.008856?E**.3333333333333333:7.787*E+.13793103448275862,T=T>.008856?T**.3333333333333333:7.787*T+.13793103448275862,D=D>.008856?D**.3333333333333333:7.787*D+.13793103448275862,[116*T-16,500*(E-T),200*(T-D)]},y.lab.xyz=function(C){let E,T,D;T=(C[0]+16)/116,E=C[1]/500+T,D=T-C[2]/200;let M=T**3,F=E**3,B=D**3;return T=M>.008856?M:(T-.13793103448275862)/7.787,E=F>.008856?F:(E-.13793103448275862)/7.787,D=B>.008856?B:(D-.13793103448275862)/7.787,E*=95.047,T*=100,D*=108.883,[E,T,D]},y.lab.lch=function(C){let E=C[0],T=C[1],D=C[2],M;return M=360*Math.atan2(D,T)/2/Math.PI,M<0&&(M+=360),[E,Math.sqrt(T*T+D*D),M]},y.lch.lab=function(C){let E=C[0],T=C[1],D=C[2]/360*2*Math.PI;return[E,T*Math.cos(D),T*Math.sin(D)]},y.rgb.ansi16=function(C,E=null){let[T,D,M]=C,F=E===null?y.rgb.hsv(C)[2]:E;if(F=Math.round(F/50),F===0)return 30;let B=30+(Math.round(M/255)<<2|Math.round(D/255)<<1|Math.round(T/255));return F===2&&(B+=60),B},y.hsv.ansi16=function(C){return y.rgb.ansi16(y.hsv.rgb(C),C[2])},y.rgb.ansi256=function(C){let E=C[0],T=C[1],D=C[2];return E===T&&T===D?E<8?16:E>248?231:Math.round((E-8)/247*24)+232:16+36*Math.round(E/255*5)+6*Math.round(T/255*5)+Math.round(D/255*5)},y.ansi16.rgb=function(C){let E=C%10;if(E===0||E===7)return C>50&&(E+=3.5),E=E/10.5*255,[E,E,E];let T=.5*(1+~~(C>50));return[(1&E)*T*255,(E>>1&1)*T*255,(E>>2&1)*T*255]},y.ansi256.rgb=function(C){if(C>=232){let T=10*(C-232)+8;return[T,T,T]}let E;return C-=16,[Math.floor(C/36)/5*255,Math.floor((E=C%36)/6)/5*255,E%6/5*255]},y.rgb.hex=function(C){let E=(((255&Math.round(C[0]))<<16)+((255&Math.round(C[1]))<<8)+(255&Math.round(C[2]))).toString(16).toUpperCase();return"000000".substring(E.length)+E},y.hex.rgb=function(C){let E=C.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!E)return[0,0,0];let T=E[0];E[0].length===3&&(T=T.split("").map(M=>M+M).join(""));let D=parseInt(T,16);return[D>>16&255,D>>8&255,255&D]},y.rgb.hcg=function(C){let E=C[0]/255,T=C[1]/255,D=C[2]/255,M=Math.max(Math.max(E,T),D),F=Math.min(Math.min(E,T),D),B=M-F,z,$;return z=B<1?F/(1-B):0,$=B<=0?0:M===E?(T-D)/B%6:M===T?2+(D-E)/B:4+(E-T)/B,$/=6,$%=1,[360*$,100*B,100*z]},y.hsl.hcg=function(C){let E=C[1]/100,T=C[2]/100,D=T<.5?2*E*T:2*E*(1-T),M=0;return D<1&&(M=(T-.5*D)/(1-D)),[C[0],100*D,100*M]},y.hsv.hcg=function(C){let E=C[1]/100,T=C[2]/100,D=E*T,M=0;return D<1&&(M=(T-D)/(1-D)),[C[0],100*D,100*M]},y.hcg.rgb=function(C){let E=C[0]/360,T=C[1]/100,D=C[2]/100;if(T===0)return[255*D,255*D,255*D];let M=[0,0,0],F=E%1*6,B=F%1,z=1-B,$=0;switch(Math.floor(F)){case 0:M[0]=1,M[1]=B,M[2]=0;break;case 1:M[0]=z,M[1]=1,M[2]=0;break;case 2:M[0]=0,M[1]=1,M[2]=B;break;case 3:M[0]=0,M[1]=z,M[2]=1;break;case 4:M[0]=B,M[1]=0,M[2]=1;break;default:M[0]=1,M[1]=0,M[2]=z}return $=(1-T)*D,[255*(T*M[0]+$),255*(T*M[1]+$),255*(T*M[2]+$)]},y.hcg.hsv=function(C){let E=C[1]/100,T=E+C[2]/100*(1-E),D=0;return T>0&&(D=E/T),[C[0],100*D,100*T]},y.hcg.hsl=function(C){let E=C[1]/100,T=C[2]/100*(1-E)+.5*E,D=0;return T>0&&T<.5?D=E/(2*T):T>=.5&&T<1&&(D=E/(2*(1-T))),[C[0],100*D,100*T]},y.hcg.hwb=function(C){let E=C[1]/100,T=E+C[2]/100*(1-E);return[C[0],100*(T-E),100*(1-T)]},y.hwb.hcg=function(C){let E=C[1]/100,T=1-C[2]/100,D=T-E,M=0;return D<1&&(M=(T-D)/(1-D)),[C[0],100*D,100*M]},y.apple.rgb=function(C){return[C[0]/65535*255,C[1]/65535*255,C[2]/65535*255]},y.rgb.apple=function(C){return[C[0]/255*65535,C[1]/255*65535,C[2]/255*65535]},y.gray.rgb=function(C){return[C[0]/100*255,C[0]/100*255,C[0]/100*255]},y.gray.hsl=function(C){return[0,0,C[0]]},y.gray.hsv=y.gray.hsl,y.gray.hwb=function(C){return[0,100,C[0]]},y.gray.cmyk=function(C){return[0,0,0,C[0]]},y.gray.lab=function(C){return[C[0],0,0]},y.gray.hex=function(C){let E=255&Math.round(C[0]/100*255),T=((E<<16)+(E<<8)+E).toString(16).toUpperCase();return"000000".substring(T.length)+T},y.rgb.gray=function(C){return[(C[0]+C[1]+C[2])/3/255*100]}},841:(n,c,u)=>{let h=u(4959),_=u(9325),y={};Object.keys(h).forEach(C=>{y[C]={},Object.defineProperty(y[C],"channels",{value:h[C].channels}),Object.defineProperty(y[C],"labels",{value:h[C].labels});let E=_(C);Object.keys(E).forEach(T=>{let D=E[T];y[C][T]=function(M){let F=function(...B){let z=B[0];if(z==null)return z;z.length>1&&(B=z);let $=M(B);if(typeof $=="object")for(let tt=$.length,lt=0;lt1&&(B=z),M(B))};return"conversion"in M&&(F.conversion=M.conversion),F}(D)})}),n.exports=y},9325:(n,c,u)=>{let h=u(4959);function _(E){let T=function(){let M={},F=Object.keys(h);for(let B=F.length,z=0;z{"use strict";n.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},8603:(n,c,u)=>{"use strict";u.d(c,{Z:()=>E});var h=u(1799),_=u.n(h),y=u(2609),C=u.n(y)()(_());C.push([n.id,".ck-content code{background-color:hsla(0,0%,78%,.3);border-radius:2px;padding:.15em}.ck.ck-editor__editable .ck-code_selected{background-color:hsla(0,0%,78%,.5)}","",{version:3,sources:["webpack://./../ckeditor5-basic-styles/theme/code.css"],names:[],mappings:"AAKA,iBACC,kCAAuC,CAEvC,iBAAkB,CADlB,aAED,CAEA,0CACC,kCACD",sourcesContent:[`/* +}`;var Qr=mS(function(){return ro(we,Zn+"return "+rn).apply(e,Qe)});if(Qr.source=rn,gg(Qr))throw Qr;return Qr}function j8(L){return Wr(L).toLowerCase()}function pS(L){return Wr(L).toUpperCase()}function q8(L,Y,ut){if(L=Wr(L),L&&(ut||Y===e))return A_(L);if(!L||!(Y=dl(Y)))return L;var Ft=dc(L),ee=dc(Y),we=HC(Ft,ee),Qe=GC(Ft,ee)+1;return Om(Ft,we,Qe).join("")}function H8(L,Y,ut){if(L=Wr(L),L&&(ut||Y===e))return L.slice(0,WC(L)+1);if(!L||!(Y=dl(Y)))return L;var Ft=dc(L),ee=GC(Ft,dc(Y))+1;return Om(Ft,0,ee).join("")}function G8(L,Y,ut){if(L=Wr(L),L&&(ut||Y===e))return L.replace(Ze,"");if(!L||!(Y=dl(Y)))return L;var Ft=dc(L),ee=HC(Ft,dc(Y));return Om(Ft,ee).join("")}function U8(L,Y){var ut=vt,Ft=Tt;if(Pa(Y)){var ee="separator"in Y?Y.separator:ee;ut="length"in Y?Jn(Y.length):ut,Ft="omission"in Y?dl(Y.omission):Ft}L=Wr(L);var we=L.length;if(Pm(L)){var Qe=dc(L);we=Qe.length}if(ut>=we)return L;var ri=ut-Pd(Ft);if(ri<1)return Ft;var hi=Qe?Om(Qe,0,ri).join(""):L.slice(0,ri);if(ee===e)return hi+Ft;if(Qe&&(ri+=hi.length-ri),Eh(ee)){if(L.slice(ri).search(ee)){var Ui,Wi=hi;for(ee.global||(ee=R_(ee.source,Wr(Bn.exec(ee))+"g")),ee.lastIndex=0;Ui=ee.exec(Wi);)var rn=Ui.index;hi=hi.slice(0,rn===e?ri:rn)}}else if(L.indexOf(dl(ee),ri)!=ri){var Mn=hi.lastIndexOf(ee);Mn>-1&&(hi=hi.slice(0,Mn))}return hi+Ft}function $8(L){return L=Wr(L),L&&yr.test(L)?L.replace(ar,QC):L}var W8=Fm(function(L,Y,ut){return L+(ut?" ":"")+Y.toUpperCase()}),zv=Ry("toUpperCase");function vg(L,Y,ut){return L=Wr(L),Y=ut?e:Y,Y===e?wA(L)?YC(L):VC(L):L.match(Y)||[]}var mS=Xr(function(L,Y){try{return Ul(L,e,Y)}catch(ut){return gg(ut)?ut:new Mr(ut)}}),jv=nm(function(L,Y){return mc(Y,function(ut){ut=Hc(ut),em(L,ut,wv(L[ut],L))}),L});function zm(L){var Y=L==null?0:L.length,ut=dr();return L=Y?sa(L,function(Ft){if(typeof Ft[1]!="function")throw new ml(n);return[ut(Ft[0]),Ft[1]]}):[],Xr(function(Ft){for(var ee=-1;++eeG)return[];var ut=et,Ft=hs(L,et);Y=dr(Y),L-=et;for(var ee=L1(Ft,Y);++ut0||Y<0)?new oo(ut):(L<0?ut=ut.takeRight(-L):L&&(ut=ut.drop(L)),Y!==e&&(Y=Jn(Y),ut=Y<0?ut.dropRight(-Y):ut.take(Y-L)),ut)},oo.prototype.takeRightWhile=function(L){return this.reverse().takeWhile(L).reverse()},oo.prototype.toArray=function(){return this.take(et)},xc(oo.prototype,function(L,Y){var ut=/^(?:filter|find|map|reject)|While$/.test(Y),Ft=/^(?:head|last)$/.test(Y),ee=be[Ft?"take"+(Y=="last"?"Right":""):Y],we=Ft||/^find/.test(Y);ee&&(be.prototype[Y]=function(){var Qe=this.__wrapped__,ri=Ft?[1]:arguments,hi=Qe instanceof oo,Ui=ri[0],Wi=hi||Vr(Qe),rn=function(so){var go=ee.apply(be,Em([so],ri));return Ft&&Mn?go[0]:go};Wi&&ut&&typeof Ui=="function"&&Ui.length!=1&&(hi=Wi=!1);var Mn=this.__chain__,Zn=!!this.__actions__.length,ur=we&&!Mn,Qr=hi&&!Zn;if(!we&&Wi){Qe=Qr?Qe:new oo(this);var gr=L.apply(Qe,ri);return gr.__actions__.push({func:D0,args:[rn],thisArg:e}),new hc(gr,Mn)}return ur&&Qr?L.apply(this,ri):(gr=this.thru(rn),ur?Ft?gr.value()[0]:gr.value():gr)})}),mc(["pop","push","shift","sort","splice","unshift"],function(L){var Y=Vf[L],ut=/^(?:push|sort|unshift)$/.test(L)?"tap":"thru",Ft=/^(?:pop|shift)$/.test(L);be.prototype[L]=function(){var ee=arguments;if(Ft&&!this.__chain__){var we=this.value();return Y.apply(Vr(we)?we:[],ee)}return this[ut](function(Qe){return Y.apply(Vr(Qe)?Qe:[],ee)})}}),xc(oo.prototype,function(L,Y){var ut=be[Y];if(ut){var Ft=ut.name+"";bn.call(Od,Ft)||(Od[Ft]=[]),Od[Ft].push({name:Y,func:ut})}}),Od[rh(e,F).name]=[{name:"wrapper",func:e}],oo.prototype.clone=cp,oo.prototype.reverse=BA,oo.prototype.value=Tn,be.prototype.at=V7,be.prototype.chain=z7,be.prototype.commit=j7,be.prototype.next=f3,be.prototype.plant=H7,be.prototype.reverse=h3,be.prototype.toJSON=be.prototype.valueOf=be.prototype.value=Cv,be.prototype.first=be.prototype.head,Dd&&(be.prototype[Dd]=q7),be},Xp=TA();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(fs._=Xp,define(function(){return Xp})):u0?((u0.exports=Xp)._=Xp,I1._=Xp):fs._=Xp}).call(tx)});var JK=Pe(c5=>{"use strict";c5.byteLength=kEt;c5.toByteArray=TEt;c5.fromByteArray=AEt;var r0=[],Vp=[],PEt=typeof Uint8Array<"u"?Uint8Array:Array,yF="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(n1=0,YK=yF.length;n10)throw new Error("Invalid string. Length must be a multiple of 4");var i=e.indexOf("=");i===-1&&(i=r);var o=i===r?0:4-i%4;return[i,o]}function kEt(e){var r=KK(e),i=r[0],o=r[1];return(i+o)*3/4-o}function IEt(e,r,i){return(r+i)*3/4-i}function TEt(e){var r,i=KK(e),o=i[0],n=i[1],c=new PEt(IEt(e,o,n)),u=0,h=n>0?o-4:o,_;for(_=0;_>16&255,c[u++]=r>>8&255,c[u++]=r&255;return n===2&&(r=Vp[e.charCodeAt(_)]<<2|Vp[e.charCodeAt(_+1)]>>4,c[u++]=r&255),n===1&&(r=Vp[e.charCodeAt(_)]<<10|Vp[e.charCodeAt(_+1)]<<4|Vp[e.charCodeAt(_+2)]>>2,c[u++]=r>>8&255,c[u++]=r&255),c}function MEt(e){return r0[e>>18&63]+r0[e>>12&63]+r0[e>>6&63]+r0[e&63]}function DEt(e,r,i){for(var o,n=[],c=r;ch?h:u+c));return o===1?(r=e[i-1],n.push(r0[r>>2]+r0[r<<4&63]+"==")):o===2&&(r=(e[i-2]<<8)+e[i-1],n.push(r0[r>>10]+r0[r>>4&63]+r0[r<<2&63]+"=")),n.join("")}});var ZK=Pe(SF=>{SF.read=function(e,r,i,o,n){var c,u,h=n*8-o-1,_=(1<>1,C=-7,E=i?n-1:0,T=i?-1:1,D=e[r+E];for(E+=T,c=D&(1<<-C)-1,D>>=-C,C+=h;C>0;c=c*256+e[r+E],E+=T,C-=8);for(u=c&(1<<-C)-1,c>>=-C,C+=o;C>0;u=u*256+e[r+E],E+=T,C-=8);if(c===0)c=1-y;else{if(c===_)return u?NaN:(D?-1:1)*(1/0);u=u+Math.pow(2,o),c=c-y}return(D?-1:1)*u*Math.pow(2,c-o)};SF.write=function(e,r,i,o,n,c){var u,h,_,y=c*8-n-1,C=(1<>1,T=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,D=o?0:c-1,M=o?1:-1,F=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(h=isNaN(r)?1:0,u=C):(u=Math.floor(Math.log(r)/Math.LN2),r*(_=Math.pow(2,-u))<1&&(u--,_*=2),u+E>=1?r+=T/_:r+=T*Math.pow(2,1-E),r*_>=2&&(u++,_/=2),u+E>=C?(h=0,u=C):u+E>=1?(h=(r*_-1)*Math.pow(2,n),u=u+E):(h=r*Math.pow(2,E-1)*Math.pow(2,n),u=0));n>=8;e[i+D]=h&255,D+=M,h/=256,n-=8);for(u=u<0;e[i+D]=u&255,D+=M,u/=256,y-=8);e[i+D-M]|=F*128}});var mJ=Pe(gx=>{"use strict";var wF=JK(),hx=ZK(),XK=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;gx.Buffer=Qi;gx.SlowBuffer=LEt;gx.INSPECT_MAX_BYTES=50;var p5=2147483647;gx.kMaxLength=p5;Qi.TYPED_ARRAY_SUPPORT=OEt();!Qi.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function OEt(){try{var e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch{return!1}}Object.defineProperty(Qi.prototype,"parent",{enumerable:!0,get:function(){if(Qi.isBuffer(this))return this.buffer}});Object.defineProperty(Qi.prototype,"offset",{enumerable:!0,get:function(){if(Qi.isBuffer(this))return this.byteOffset}});function ed(e){if(e>p5)throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=new Uint8Array(e);return Object.setPrototypeOf(r,Qi.prototype),r}function Qi(e,r,i){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return IF(e)}return iJ(e,r,i)}Qi.poolSize=8192;function iJ(e,r,i){if(typeof e=="string")return BEt(e,r);if(ArrayBuffer.isView(e))return REt(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(o0(e,ArrayBuffer)||e&&o0(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(o0(e,SharedArrayBuffer)||e&&o0(e.buffer,SharedArrayBuffer)))return PF(e,r,i);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var o=e.valueOf&&e.valueOf();if(o!=null&&o!==e)return Qi.from(o,r,i);var n=NEt(e);if(n)return n;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return Qi.from(e[Symbol.toPrimitive]("string"),r,i);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}Qi.from=function(e,r,i){return iJ(e,r,i)};Object.setPrototypeOf(Qi.prototype,Uint8Array.prototype);Object.setPrototypeOf(Qi,Uint8Array);function nJ(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function FEt(e,r,i){return nJ(e),e<=0?ed(e):r!==void 0?typeof i=="string"?ed(e).fill(r,i):ed(e).fill(r):ed(e)}Qi.alloc=function(e,r,i){return FEt(e,r,i)};function IF(e){return nJ(e),ed(e<0?0:TF(e)|0)}Qi.allocUnsafe=function(e){return IF(e)};Qi.allocUnsafeSlow=function(e){return IF(e)};function BEt(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!Qi.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var i=rJ(e,r)|0,o=ed(i),n=o.write(e,r);return n!==i&&(o=o.slice(0,n)),o}function EF(e){for(var r=e.length<0?0:TF(e.length)|0,i=ed(r),o=0;o=p5)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+p5.toString(16)+" bytes");return e|0}function LEt(e){return+e!=e&&(e=0),Qi.alloc(+e)}Qi.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==Qi.prototype};Qi.compare=function(r,i){if(o0(r,Uint8Array)&&(r=Qi.from(r,r.offset,r.byteLength)),o0(i,Uint8Array)&&(i=Qi.from(i,i.offset,i.byteLength)),!Qi.isBuffer(r)||!Qi.isBuffer(i))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===i)return 0;for(var o=r.length,n=i.length,c=0,u=Math.min(o,n);cn.length?Qi.from(u).copy(n,c):Uint8Array.prototype.set.call(n,u,c);else if(Qi.isBuffer(u))u.copy(n,c);else throw new TypeError('"list" argument must be an Array of Buffers');c+=u.length}return n};function rJ(e,r){if(Qi.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||o0(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var i=e.length,o=arguments.length>2&&arguments[2]===!0;if(!o&&i===0)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return kF(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i*2;case"hex":return i>>>1;case"base64":return pJ(e).length;default:if(n)return o?-1:kF(e).length;r=(""+r).toLowerCase(),n=!0}}Qi.byteLength=rJ;function VEt(e,r,i){var o=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((i===void 0||i>this.length)&&(i=this.length),i<=0)||(i>>>=0,r>>>=0,i<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return YEt(this,r,i);case"utf8":case"utf-8":return aJ(this,r,i);case"ascii":return WEt(this,r,i);case"latin1":case"binary":return QEt(this,r,i);case"base64":return UEt(this,r,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return KEt(this,r,i);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}Qi.prototype._isBuffer=!0;function r1(e,r,i){var o=e[r];e[r]=e[i],e[i]=o}Qi.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var i=0;ii&&(r+=" ... "),""};XK&&(Qi.prototype[XK]=Qi.prototype.inspect);Qi.prototype.compare=function(r,i,o,n,c){if(o0(r,Uint8Array)&&(r=Qi.from(r,r.offset,r.byteLength)),!Qi.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(i===void 0&&(i=0),o===void 0&&(o=r?r.length:0),n===void 0&&(n=0),c===void 0&&(c=this.length),i<0||o>r.length||n<0||c>this.length)throw new RangeError("out of range index");if(n>=c&&i>=o)return 0;if(n>=c)return-1;if(i>=o)return 1;if(i>>>=0,o>>>=0,n>>>=0,c>>>=0,this===r)return 0;for(var u=c-n,h=o-i,_=Math.min(u,h),y=this.slice(n,c),C=r.slice(i,o),E=0;E<_;++E)if(y[E]!==C[E]){u=y[E],h=C[E];break}return u2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,MF(i)&&(i=n?0:e.length-1),i<0&&(i=e.length+i),i>=e.length){if(n)return-1;i=e.length-1}else if(i<0)if(n)i=0;else return-1;if(typeof r=="string"&&(r=Qi.from(r,o)),Qi.isBuffer(r))return r.length===0?-1:tJ(e,r,i,o,n);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(e,r,i):Uint8Array.prototype.lastIndexOf.call(e,r,i):tJ(e,[r],i,o,n);throw new TypeError("val must be string, number or Buffer")}function tJ(e,r,i,o,n){var c=1,u=e.length,h=r.length;if(o!==void 0&&(o=String(o).toLowerCase(),o==="ucs2"||o==="ucs-2"||o==="utf16le"||o==="utf-16le")){if(e.length<2||r.length<2)return-1;c=2,u/=2,h/=2,i/=2}function _(D,M){return c===1?D[M]:D.readUInt16BE(M*c)}var y;if(n){var C=-1;for(y=i;yu&&(i=u-h),y=i;y>=0;y--){for(var E=!0,T=0;Tn&&(o=n)):o=n;var c=r.length;o>c/2&&(o=c/2);for(var u=0;u>>0,isFinite(o)?(o=o>>>0,n===void 0&&(n="utf8")):(n=o,o=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var c=this.length-i;if((o===void 0||o>c)&&(o=c),r.length>0&&(o<0||i<0)||i>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var u=!1;;)switch(n){case"hex":return zEt(this,r,i,o);case"utf8":case"utf-8":return jEt(this,r,i,o);case"ascii":case"latin1":case"binary":return qEt(this,r,i,o);case"base64":return HEt(this,r,i,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return GEt(this,r,i,o);default:if(u)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),u=!0}};Qi.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function UEt(e,r,i){return r===0&&i===e.length?wF.fromByteArray(e):wF.fromByteArray(e.slice(r,i))}function aJ(e,r,i){i=Math.min(e.length,i);for(var o=[],n=r;n239?4:c>223?3:c>191?2:1;if(n+h<=i){var _,y,C,E;switch(h){case 1:c<128&&(u=c);break;case 2:_=e[n+1],(_&192)===128&&(E=(c&31)<<6|_&63,E>127&&(u=E));break;case 3:_=e[n+1],y=e[n+2],(_&192)===128&&(y&192)===128&&(E=(c&15)<<12|(_&63)<<6|y&63,E>2047&&(E<55296||E>57343)&&(u=E));break;case 4:_=e[n+1],y=e[n+2],C=e[n+3],(_&192)===128&&(y&192)===128&&(C&192)===128&&(E=(c&15)<<18|(_&63)<<12|(y&63)<<6|C&63,E>65535&&E<1114112&&(u=E))}}u===null?(u=65533,h=1):u>65535&&(u-=65536,o.push(u>>>10&1023|55296),u=56320|u&1023),o.push(u),n+=h}return $Et(o)}var eJ=4096;function $Et(e){var r=e.length;if(r<=eJ)return String.fromCharCode.apply(String,e);for(var i="",o=0;oo)&&(i=o);for(var n="",c=r;co&&(r=o),i<0?(i+=o,i<0&&(i=0)):i>o&&(i=o),ii)throw new RangeError("Trying to access beyond buffer length")}Qi.prototype.readUintLE=Qi.prototype.readUIntLE=function(r,i,o){r=r>>>0,i=i>>>0,o||sl(r,i,this.length);for(var n=this[r],c=1,u=0;++u>>0,i=i>>>0,o||sl(r,i,this.length);for(var n=this[r+--i],c=1;i>0&&(c*=256);)n+=this[r+--i]*c;return n};Qi.prototype.readUint8=Qi.prototype.readUInt8=function(r,i){return r=r>>>0,i||sl(r,1,this.length),this[r]};Qi.prototype.readUint16LE=Qi.prototype.readUInt16LE=function(r,i){return r=r>>>0,i||sl(r,2,this.length),this[r]|this[r+1]<<8};Qi.prototype.readUint16BE=Qi.prototype.readUInt16BE=function(r,i){return r=r>>>0,i||sl(r,2,this.length),this[r]<<8|this[r+1]};Qi.prototype.readUint32LE=Qi.prototype.readUInt32LE=function(r,i){return r=r>>>0,i||sl(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};Qi.prototype.readUint32BE=Qi.prototype.readUInt32BE=function(r,i){return r=r>>>0,i||sl(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};Qi.prototype.readIntLE=function(r,i,o){r=r>>>0,i=i>>>0,o||sl(r,i,this.length);for(var n=this[r],c=1,u=0;++u=c&&(n-=Math.pow(2,8*i)),n};Qi.prototype.readIntBE=function(r,i,o){r=r>>>0,i=i>>>0,o||sl(r,i,this.length);for(var n=i,c=1,u=this[r+--n];n>0&&(c*=256);)u+=this[r+--n]*c;return c*=128,u>=c&&(u-=Math.pow(2,8*i)),u};Qi.prototype.readInt8=function(r,i){return r=r>>>0,i||sl(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};Qi.prototype.readInt16LE=function(r,i){r=r>>>0,i||sl(r,2,this.length);var o=this[r]|this[r+1]<<8;return o&32768?o|4294901760:o};Qi.prototype.readInt16BE=function(r,i){r=r>>>0,i||sl(r,2,this.length);var o=this[r+1]|this[r]<<8;return o&32768?o|4294901760:o};Qi.prototype.readInt32LE=function(r,i){return r=r>>>0,i||sl(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};Qi.prototype.readInt32BE=function(r,i){return r=r>>>0,i||sl(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};Qi.prototype.readFloatLE=function(r,i){return r=r>>>0,i||sl(r,4,this.length),hx.read(this,r,!0,23,4)};Qi.prototype.readFloatBE=function(r,i){return r=r>>>0,i||sl(r,4,this.length),hx.read(this,r,!1,23,4)};Qi.prototype.readDoubleLE=function(r,i){return r=r>>>0,i||sl(r,8,this.length),hx.read(this,r,!0,52,8)};Qi.prototype.readDoubleBE=function(r,i){return r=r>>>0,i||sl(r,8,this.length),hx.read(this,r,!1,52,8)};function Ac(e,r,i,o,n,c){if(!Qi.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||re.length)throw new RangeError("Index out of range")}Qi.prototype.writeUintLE=Qi.prototype.writeUIntLE=function(r,i,o,n){if(r=+r,i=i>>>0,o=o>>>0,!n){var c=Math.pow(2,8*o)-1;Ac(this,r,i,o,c,0)}var u=1,h=0;for(this[i]=r&255;++h>>0,o=o>>>0,!n){var c=Math.pow(2,8*o)-1;Ac(this,r,i,o,c,0)}var u=o-1,h=1;for(this[i+u]=r&255;--u>=0&&(h*=256);)this[i+u]=r/h&255;return i+o};Qi.prototype.writeUint8=Qi.prototype.writeUInt8=function(r,i,o){return r=+r,i=i>>>0,o||Ac(this,r,i,1,255,0),this[i]=r&255,i+1};Qi.prototype.writeUint16LE=Qi.prototype.writeUInt16LE=function(r,i,o){return r=+r,i=i>>>0,o||Ac(this,r,i,2,65535,0),this[i]=r&255,this[i+1]=r>>>8,i+2};Qi.prototype.writeUint16BE=Qi.prototype.writeUInt16BE=function(r,i,o){return r=+r,i=i>>>0,o||Ac(this,r,i,2,65535,0),this[i]=r>>>8,this[i+1]=r&255,i+2};Qi.prototype.writeUint32LE=Qi.prototype.writeUInt32LE=function(r,i,o){return r=+r,i=i>>>0,o||Ac(this,r,i,4,4294967295,0),this[i+3]=r>>>24,this[i+2]=r>>>16,this[i+1]=r>>>8,this[i]=r&255,i+4};Qi.prototype.writeUint32BE=Qi.prototype.writeUInt32BE=function(r,i,o){return r=+r,i=i>>>0,o||Ac(this,r,i,4,4294967295,0),this[i]=r>>>24,this[i+1]=r>>>16,this[i+2]=r>>>8,this[i+3]=r&255,i+4};Qi.prototype.writeIntLE=function(r,i,o,n){if(r=+r,i=i>>>0,!n){var c=Math.pow(2,8*o-1);Ac(this,r,i,o,c-1,-c)}var u=0,h=1,_=0;for(this[i]=r&255;++u>0)-_&255;return i+o};Qi.prototype.writeIntBE=function(r,i,o,n){if(r=+r,i=i>>>0,!n){var c=Math.pow(2,8*o-1);Ac(this,r,i,o,c-1,-c)}var u=o-1,h=1,_=0;for(this[i+u]=r&255;--u>=0&&(h*=256);)r<0&&_===0&&this[i+u+1]!==0&&(_=1),this[i+u]=(r/h>>0)-_&255;return i+o};Qi.prototype.writeInt8=function(r,i,o){return r=+r,i=i>>>0,o||Ac(this,r,i,1,127,-128),r<0&&(r=255+r+1),this[i]=r&255,i+1};Qi.prototype.writeInt16LE=function(r,i,o){return r=+r,i=i>>>0,o||Ac(this,r,i,2,32767,-32768),this[i]=r&255,this[i+1]=r>>>8,i+2};Qi.prototype.writeInt16BE=function(r,i,o){return r=+r,i=i>>>0,o||Ac(this,r,i,2,32767,-32768),this[i]=r>>>8,this[i+1]=r&255,i+2};Qi.prototype.writeInt32LE=function(r,i,o){return r=+r,i=i>>>0,o||Ac(this,r,i,4,2147483647,-2147483648),this[i]=r&255,this[i+1]=r>>>8,this[i+2]=r>>>16,this[i+3]=r>>>24,i+4};Qi.prototype.writeInt32BE=function(r,i,o){return r=+r,i=i>>>0,o||Ac(this,r,i,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[i]=r>>>24,this[i+1]=r>>>16,this[i+2]=r>>>8,this[i+3]=r&255,i+4};function sJ(e,r,i,o,n,c){if(i+o>e.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function lJ(e,r,i,o,n){return r=+r,i=i>>>0,n||sJ(e,r,i,4,34028234663852886e22,-34028234663852886e22),hx.write(e,r,i,o,23,4),i+4}Qi.prototype.writeFloatLE=function(r,i,o){return lJ(this,r,i,!0,o)};Qi.prototype.writeFloatBE=function(r,i,o){return lJ(this,r,i,!1,o)};function cJ(e,r,i,o,n){return r=+r,i=i>>>0,n||sJ(e,r,i,8,17976931348623157e292,-17976931348623157e292),hx.write(e,r,i,o,52,8),i+8}Qi.prototype.writeDoubleLE=function(r,i,o){return cJ(this,r,i,!0,o)};Qi.prototype.writeDoubleBE=function(r,i,o){return cJ(this,r,i,!1,o)};Qi.prototype.copy=function(r,i,o,n){if(!Qi.isBuffer(r))throw new TypeError("argument should be a Buffer");if(o||(o=0),!n&&n!==0&&(n=this.length),i>=r.length&&(i=r.length),i||(i=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),r.length-i>>0,o=o===void 0?this.length:o>>>0,r||(r=0);var u;if(typeof r=="number")for(u=i;u55295&&i<57344){if(!n){if(i>56319){(r-=3)>-1&&c.push(239,191,189);continue}else if(u+1===o){(r-=3)>-1&&c.push(239,191,189);continue}n=i;continue}if(i<56320){(r-=3)>-1&&c.push(239,191,189),n=i;continue}i=(n-55296<<10|i-56320)+65536}else n&&(r-=3)>-1&&c.push(239,191,189);if(n=null,i<128){if((r-=1)<0)break;c.push(i)}else if(i<2048){if((r-=2)<0)break;c.push(i>>6|192,i&63|128)}else if(i<65536){if((r-=3)<0)break;c.push(i>>12|224,i>>6&63|128,i&63|128)}else if(i<1114112){if((r-=4)<0)break;c.push(i>>18|240,i>>12&63|128,i>>6&63|128,i&63|128)}else throw new Error("Invalid code point")}return c}function XEt(e){for(var r=[],i=0;i>8,n=i%256,c.push(n),c.push(o);return c}function pJ(e){return wF.toByteArray(ZEt(e))}function m5(e,r,i,o){for(var n=0;n=r.length||n>=e.length);++n)r[n+i]=e[n];return n}function o0(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function MF(e){return e!==e}var ePt=function(){for(var e="0123456789abcdef",r=new Array(256),i=0;i<16;++i)for(var o=i*16,n=0;n<16;++n)r[o+n]=e[i]+e[n];return r}()});var XX=Pe((mTn,ZX)=>{function Sme(){this.__data__=[],this.size=0}ZX.exports=Sme});var f1=Pe((dTn,ttt)=>{function wme(e,r){return e===r||e!==e&&r!==r}ttt.exports=wme});var I2=Pe((uTn,ett)=>{var Eme=f1();function Pme(e,r){for(var i=e.length;i--;)if(Eme(e[i][0],r))return i;return-1}ett.exports=Pme});var ntt=Pe((fTn,itt)=>{var kme=I2(),Ime=Array.prototype,Tme=Ime.splice;function Mme(e){var r=this.__data__,i=kme(r,e);if(i<0)return!1;var o=r.length-1;return i==o?r.pop():Tme.call(r,i,1),--this.size,!0}itt.exports=Mme});var ott=Pe((hTn,rtt)=>{var Dme=I2();function Ame(e){var r=this.__data__,i=Dme(r,e);return i<0?void 0:r[i][1]}rtt.exports=Ame});var stt=Pe((gTn,att)=>{var Ome=I2();function Fme(e){return Ome(this.__data__,e)>-1}att.exports=Fme});var ctt=Pe((xTn,ltt)=>{var Bme=I2();function Rme(e,r){var i=this.__data__,o=Bme(i,e);return o<0?(++this.size,i.push([e,r])):i[o][1]=r,this}ltt.exports=Rme});var T2=Pe((_Tn,ptt)=>{var Nme=XX(),Lme=ntt(),Vme=ott(),zme=stt(),jme=ctt();function kx(e){var r=-1,i=e==null?0:e.length;for(this.clear();++r{var qme=T2();function Hme(){this.__data__=new qme,this.size=0}mtt.exports=Hme});var ftt=Pe((bTn,utt)=>{function Gme(e){var r=this.__data__,i=r.delete(e);return this.size=r.size,i}utt.exports=Gme});var gtt=Pe((CTn,htt)=>{function Ume(e){return this.__data__.get(e)}htt.exports=Ume});var _tt=Pe((yTn,xtt)=>{function $me(e){return this.__data__.has(e)}xtt.exports=$me});var _R=Pe((STn,vtt)=>{var Wme=typeof global=="object"&&global&&global.Object===Object&&global;vtt.exports=Wme});var jp=Pe((wTn,btt)=>{var Qme=_R(),Yme=typeof self=="object"&&self&&self.Object===Object&&self,Kme=Qme||Yme||Function("return this")();btt.exports=Kme});var h1=Pe((ETn,Ctt)=>{var Jme=jp(),Zme=Jme.Symbol;Ctt.exports=Zme});var Ett=Pe((PTn,wtt)=>{var ytt=h1(),Stt=Object.prototype,Xme=Stt.hasOwnProperty,t0e=Stt.toString,M2=ytt?ytt.toStringTag:void 0;function e0e(e){var r=Xme.call(e,M2),i=e[M2];try{e[M2]=void 0;var o=!0}catch{}var n=t0e.call(e);return o&&(r?e[M2]=i:delete e[M2]),n}wtt.exports=e0e});var ktt=Pe((kTn,Ptt)=>{var i0e=Object.prototype,n0e=i0e.toString;function r0e(e){return n0e.call(e)}Ptt.exports=r0e});var ku=Pe((ITn,Mtt)=>{var Itt=h1(),o0e=Ett(),a0e=ktt(),s0e="[object Null]",l0e="[object Undefined]",Ttt=Itt?Itt.toStringTag:void 0;function c0e(e){return e==null?e===void 0?l0e:s0e:Ttt&&Ttt in Object(e)?o0e(e):a0e(e)}Mtt.exports=c0e});var Zc=Pe((TTn,Dtt)=>{function p0e(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}Dtt.exports=p0e});var Ix=Pe((MTn,Att)=>{var m0e=ku(),d0e=Zc(),u0e="[object AsyncFunction]",f0e="[object Function]",h0e="[object GeneratorFunction]",g0e="[object Proxy]";function x0e(e){if(!d0e(e))return!1;var r=m0e(e);return r==f0e||r==h0e||r==u0e||r==g0e}Att.exports=x0e});var Ftt=Pe((DTn,Ott)=>{var _0e=jp(),v0e=_0e["__core-js_shared__"];Ott.exports=v0e});var Ntt=Pe((ATn,Rtt)=>{var vR=Ftt(),Btt=function(){var e=/[^.]+$/.exec(vR&&vR.keys&&vR.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function b0e(e){return!!Btt&&Btt in e}Rtt.exports=b0e});var bR=Pe((OTn,Ltt)=>{var C0e=Function.prototype,y0e=C0e.toString;function S0e(e){if(e!=null){try{return y0e.call(e)}catch{}try{return e+""}catch{}}return""}Ltt.exports=S0e});var ztt=Pe((FTn,Vtt)=>{var w0e=Ix(),E0e=Ntt(),P0e=Zc(),k0e=bR(),I0e=/[\\^$.*+?()[\]{}|]/g,T0e=/^\[object .+?Constructor\]$/,M0e=Function.prototype,D0e=Object.prototype,A0e=M0e.toString,O0e=D0e.hasOwnProperty,F0e=RegExp("^"+A0e.call(O0e).replace(I0e,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function B0e(e){if(!P0e(e)||E0e(e))return!1;var r=w0e(e)?F0e:T0e;return r.test(k0e(e))}Vtt.exports=B0e});var qtt=Pe((BTn,jtt)=>{function R0e(e,r){return e?.[r]}jtt.exports=R0e});var Iu=Pe((RTn,Htt)=>{var N0e=ztt(),L0e=qtt();function V0e(e,r){var i=L0e(e,r);return N0e(i)?i:void 0}Htt.exports=V0e});var cI=Pe((NTn,Gtt)=>{var z0e=Iu(),j0e=jp(),q0e=z0e(j0e,"Map");Gtt.exports=q0e});var D2=Pe((LTn,Utt)=>{var H0e=Iu(),G0e=H0e(Object,"create");Utt.exports=G0e});var Qtt=Pe((VTn,Wtt)=>{var $tt=D2();function U0e(){this.__data__=$tt?$tt(null):{},this.size=0}Wtt.exports=U0e});var Ktt=Pe((zTn,Ytt)=>{function $0e(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}Ytt.exports=$0e});var Ztt=Pe((jTn,Jtt)=>{var W0e=D2(),Q0e="__lodash_hash_undefined__",Y0e=Object.prototype,K0e=Y0e.hasOwnProperty;function J0e(e){var r=this.__data__;if(W0e){var i=r[e];return i===Q0e?void 0:i}return K0e.call(r,e)?r[e]:void 0}Jtt.exports=J0e});var tet=Pe((qTn,Xtt)=>{var Z0e=D2(),X0e=Object.prototype,tde=X0e.hasOwnProperty;function ede(e){var r=this.__data__;return Z0e?r[e]!==void 0:tde.call(r,e)}Xtt.exports=ede});var iet=Pe((HTn,eet)=>{var ide=D2(),nde="__lodash_hash_undefined__";function rde(e,r){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=ide&&r===void 0?nde:r,this}eet.exports=rde});var ret=Pe((GTn,net)=>{var ode=Qtt(),ade=Ktt(),sde=Ztt(),lde=tet(),cde=iet();function Tx(e){var r=-1,i=e==null?0:e.length;for(this.clear();++r{var oet=ret(),pde=T2(),mde=cI();function dde(){this.size=0,this.__data__={hash:new oet,map:new(mde||pde),string:new oet}}aet.exports=dde});var pet=Pe(($Tn,cet)=>{function ude(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}cet.exports=ude});var A2=Pe((WTn,met)=>{var fde=pet();function hde(e,r){var i=e.__data__;return fde(r)?i[typeof r=="string"?"string":"hash"]:i.map}met.exports=hde});var uet=Pe((QTn,det)=>{var gde=A2();function xde(e){var r=gde(this,e).delete(e);return this.size-=r?1:0,r}det.exports=xde});var het=Pe((YTn,fet)=>{var _de=A2();function vde(e){return _de(this,e).get(e)}fet.exports=vde});var xet=Pe((KTn,get)=>{var bde=A2();function Cde(e){return bde(this,e).has(e)}get.exports=Cde});var vet=Pe((JTn,_et)=>{var yde=A2();function Sde(e,r){var i=yde(this,e),o=i.size;return i.set(e,r),this.size+=i.size==o?0:1,this}_et.exports=Sde});var pI=Pe((ZTn,bet)=>{var wde=set(),Ede=uet(),Pde=het(),kde=xet(),Ide=vet();function Mx(e){var r=-1,i=e==null?0:e.length;for(this.clear();++r{var Tde=T2(),Mde=cI(),Dde=pI(),Ade=200;function Ode(e,r){var i=this.__data__;if(i instanceof Tde){var o=i.__data__;if(!Mde||o.length{var Fde=T2(),Bde=dtt(),Rde=ftt(),Nde=gtt(),Lde=_tt(),Vde=yet();function Dx(e){var r=this.__data__=new Fde(e);this.size=r.size}Dx.prototype.clear=Bde;Dx.prototype.delete=Rde;Dx.prototype.get=Nde;Dx.prototype.has=Lde;Dx.prototype.set=Vde;wet.exports=Dx});var mI=Pe((eMn,Eet)=>{function zde(e,r){for(var i=-1,o=e==null?0:e.length;++i{var jde=Iu(),qde=function(){try{var e=jde(Object,"defineProperty");return e({},"",{}),e}catch{}}();Pet.exports=qde});var F2=Pe((nMn,Iet)=>{var ket=CR();function Hde(e,r,i){r=="__proto__"&&ket?ket(e,r,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[r]=i}Iet.exports=Hde});var B2=Pe((rMn,Tet)=>{var Gde=F2(),Ude=f1(),$de=Object.prototype,Wde=$de.hasOwnProperty;function Qde(e,r,i){var o=e[r];(!(Wde.call(e,r)&&Ude(o,i))||i===void 0&&!(r in e))&&Gde(e,r,i)}Tet.exports=Qde});var Ax=Pe((oMn,Met)=>{var Yde=B2(),Kde=F2();function Jde(e,r,i,o){var n=!i;i||(i={});for(var c=-1,u=r.length;++c{function Zde(e,r){for(var i=-1,o=Array(e);++i{function Xde(e){return e!=null&&typeof e=="object"}Oet.exports=Xde});var Bet=Pe((lMn,Fet)=>{var tue=ku(),eue=bm(),iue="[object Arguments]";function nue(e){return eue(e)&&tue(e)==iue}Fet.exports=nue});var Ox=Pe((cMn,Let)=>{var Ret=Bet(),rue=bm(),Net=Object.prototype,oue=Net.hasOwnProperty,aue=Net.propertyIsEnumerable,sue=Ret(function(){return arguments}())?Ret:function(e){return rue(e)&&oue.call(e,"callee")&&!aue.call(e,"callee")};Let.exports=sue});var ms=Pe((pMn,Vet)=>{var lue=Array.isArray;Vet.exports=lue});var jet=Pe((mMn,zet)=>{function cue(){return!1}zet.exports=cue});var g1=Pe((R2,Fx)=>{var pue=jp(),mue=jet(),Get=typeof R2=="object"&&R2&&!R2.nodeType&&R2,qet=Get&&typeof Fx=="object"&&Fx&&!Fx.nodeType&&Fx,due=qet&&qet.exports===Get,Het=due?pue.Buffer:void 0,uue=Het?Het.isBuffer:void 0,fue=uue||mue;Fx.exports=fue});var N2=Pe((dMn,Uet)=>{var hue=9007199254740991,gue=/^(?:0|[1-9]\d*)$/;function xue(e,r){var i=typeof e;return r=r??hue,!!r&&(i=="number"||i!="symbol"&&gue.test(e))&&e>-1&&e%1==0&&e{var _ue=9007199254740991;function vue(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=_ue}$et.exports=vue});var Qet=Pe((fMn,Wet)=>{var bue=ku(),Cue=dI(),yue=bm(),Sue="[object Arguments]",wue="[object Array]",Eue="[object Boolean]",Pue="[object Date]",kue="[object Error]",Iue="[object Function]",Tue="[object Map]",Mue="[object Number]",Due="[object Object]",Aue="[object RegExp]",Oue="[object Set]",Fue="[object String]",Bue="[object WeakMap]",Rue="[object ArrayBuffer]",Nue="[object DataView]",Lue="[object Float32Array]",Vue="[object Float64Array]",zue="[object Int8Array]",jue="[object Int16Array]",que="[object Int32Array]",Hue="[object Uint8Array]",Gue="[object Uint8ClampedArray]",Uue="[object Uint16Array]",$ue="[object Uint32Array]",Ta={};Ta[Lue]=Ta[Vue]=Ta[zue]=Ta[jue]=Ta[que]=Ta[Hue]=Ta[Gue]=Ta[Uue]=Ta[$ue]=!0;Ta[Sue]=Ta[wue]=Ta[Rue]=Ta[Eue]=Ta[Nue]=Ta[Pue]=Ta[kue]=Ta[Iue]=Ta[Tue]=Ta[Mue]=Ta[Due]=Ta[Aue]=Ta[Oue]=Ta[Fue]=Ta[Bue]=!1;function Wue(e){return yue(e)&&Cue(e.length)&&!!Ta[bue(e)]}Wet.exports=Wue});var L2=Pe((hMn,Yet)=>{function Que(e){return function(r){return e(r)}}Yet.exports=Que});var uI=Pe((V2,Bx)=>{var Yue=_R(),Ket=typeof V2=="object"&&V2&&!V2.nodeType&&V2,z2=Ket&&typeof Bx=="object"&&Bx&&!Bx.nodeType&&Bx,Kue=z2&&z2.exports===Ket,yR=Kue&&Yue.process,Jue=function(){try{var e=z2&&z2.require&&z2.require("util").types;return e||yR&&yR.binding&&yR.binding("util")}catch{}}();Bx.exports=Jue});var Rx=Pe((gMn,Xet)=>{var Zue=Qet(),Xue=L2(),Jet=uI(),Zet=Jet&&Jet.isTypedArray,tfe=Zet?Xue(Zet):Zue;Xet.exports=tfe});var SR=Pe((xMn,tit)=>{var efe=Aet(),ife=Ox(),nfe=ms(),rfe=g1(),ofe=N2(),afe=Rx(),sfe=Object.prototype,lfe=sfe.hasOwnProperty;function cfe(e,r){var i=nfe(e),o=!i&&ife(e),n=!i&&!o&&rfe(e),c=!i&&!o&&!n&&afe(e),u=i||o||n||c,h=u?efe(e.length,String):[],_=h.length;for(var y in e)(r||lfe.call(e,y))&&!(u&&(y=="length"||n&&(y=="offset"||y=="parent")||c&&(y=="buffer"||y=="byteLength"||y=="byteOffset")||ofe(y,_)))&&h.push(y);return h}tit.exports=cfe});var j2=Pe((_Mn,eit)=>{var pfe=Object.prototype;function mfe(e){var r=e&&e.constructor,i=typeof r=="function"&&r.prototype||pfe;return e===i}eit.exports=mfe});var wR=Pe((vMn,iit)=>{function dfe(e,r){return function(i){return e(r(i))}}iit.exports=dfe});var rit=Pe((bMn,nit)=>{var ufe=wR(),ffe=ufe(Object.keys,Object);nit.exports=ffe});var fI=Pe((CMn,oit)=>{var hfe=j2(),gfe=rit(),xfe=Object.prototype,_fe=xfe.hasOwnProperty;function vfe(e){if(!hfe(e))return gfe(e);var r=[];for(var i in Object(e))_fe.call(e,i)&&i!="constructor"&&r.push(i);return r}oit.exports=vfe});var l0=Pe((yMn,ait)=>{var bfe=Ix(),Cfe=dI();function yfe(e){return e!=null&&Cfe(e.length)&&!bfe(e)}ait.exports=yfe});var sd=Pe((SMn,sit)=>{var Sfe=SR(),wfe=fI(),Efe=l0();function Pfe(e){return Efe(e)?Sfe(e):wfe(e)}sit.exports=Pfe});var cit=Pe((wMn,lit)=>{var kfe=Ax(),Ife=sd();function Tfe(e,r){return e&&kfe(r,Ife(r),e)}lit.exports=Tfe});var mit=Pe((EMn,pit)=>{function Mfe(e){var r=[];if(e!=null)for(var i in Object(e))r.push(i);return r}pit.exports=Mfe});var uit=Pe((PMn,dit)=>{var Dfe=Zc(),Afe=j2(),Ofe=mit(),Ffe=Object.prototype,Bfe=Ffe.hasOwnProperty;function Rfe(e){if(!Dfe(e))return Ofe(e);var r=Afe(e),i=[];for(var o in e)o=="constructor"&&(r||!Bfe.call(e,o))||i.push(o);return i}dit.exports=Rfe});var Tu=Pe((kMn,fit)=>{var Nfe=SR(),Lfe=uit(),Vfe=l0();function zfe(e){return Vfe(e)?Nfe(e,!0):Lfe(e)}fit.exports=zfe});var git=Pe((IMn,hit)=>{var jfe=Ax(),qfe=Tu();function Hfe(e,r){return e&&jfe(r,qfe(r),e)}hit.exports=Hfe});var ER=Pe((q2,Nx)=>{var Gfe=jp(),bit=typeof q2=="object"&&q2&&!q2.nodeType&&q2,xit=bit&&typeof Nx=="object"&&Nx&&!Nx.nodeType&&Nx,Ufe=xit&&xit.exports===bit,_it=Ufe?Gfe.Buffer:void 0,vit=_it?_it.allocUnsafe:void 0;function $fe(e,r){if(r)return e.slice();var i=e.length,o=vit?vit(i):new e.constructor(i);return e.copy(o),o}Nx.exports=$fe});var PR=Pe((TMn,Cit)=>{function Wfe(e,r){var i=-1,o=e.length;for(r||(r=Array(o));++i{function Qfe(e,r){for(var i=-1,o=e==null?0:e.length,n=0,c=[];++i{function Yfe(){return[]}Sit.exports=Yfe});var hI=Pe((AMn,Eit)=>{var Kfe=kR(),Jfe=IR(),Zfe=Object.prototype,Xfe=Zfe.propertyIsEnumerable,wit=Object.getOwnPropertySymbols,the=wit?function(e){return e==null?[]:(e=Object(e),Kfe(wit(e),function(r){return Xfe.call(e,r)}))}:Jfe;Eit.exports=the});var kit=Pe((OMn,Pit)=>{var ehe=Ax(),ihe=hI();function nhe(e,r){return ehe(e,ihe(e),r)}Pit.exports=nhe});var gI=Pe((FMn,Iit)=>{function rhe(e,r){for(var i=-1,o=r.length,n=e.length;++i{var ohe=wR(),ahe=ohe(Object.getPrototypeOf,Object);Tit.exports=ahe});var TR=Pe((RMn,Mit)=>{var she=gI(),lhe=H2(),che=hI(),phe=IR(),mhe=Object.getOwnPropertySymbols,dhe=mhe?function(e){for(var r=[];e;)she(r,che(e)),e=lhe(e);return r}:phe;Mit.exports=dhe});var Ait=Pe((NMn,Dit)=>{var uhe=Ax(),fhe=TR();function hhe(e,r){return uhe(e,fhe(e),r)}Dit.exports=hhe});var MR=Pe((LMn,Oit)=>{var ghe=gI(),xhe=ms();function _he(e,r,i){var o=r(e);return xhe(e)?o:ghe(o,i(e))}Oit.exports=_he});var DR=Pe((VMn,Fit)=>{var vhe=MR(),bhe=hI(),Che=sd();function yhe(e){return vhe(e,Che,bhe)}Fit.exports=yhe});var Rit=Pe((zMn,Bit)=>{var She=MR(),whe=TR(),Ehe=Tu();function Phe(e){return She(e,Ehe,whe)}Bit.exports=Phe});var Lit=Pe((jMn,Nit)=>{var khe=Iu(),Ihe=jp(),The=khe(Ihe,"DataView");Nit.exports=The});var zit=Pe((qMn,Vit)=>{var Mhe=Iu(),Dhe=jp(),Ahe=Mhe(Dhe,"Promise");Vit.exports=Ahe});var AR=Pe((HMn,jit)=>{var Ohe=Iu(),Fhe=jp(),Bhe=Ohe(Fhe,"Set");jit.exports=Bhe});var Hit=Pe((GMn,qit)=>{var Rhe=Iu(),Nhe=jp(),Lhe=Rhe(Nhe,"WeakMap");qit.exports=Lhe});var _1=Pe((UMn,Kit)=>{var OR=Lit(),FR=cI(),BR=zit(),RR=AR(),NR=Hit(),Yit=ku(),Lx=bR(),Git="[object Map]",Vhe="[object Object]",Uit="[object Promise]",$it="[object Set]",Wit="[object WeakMap]",Qit="[object DataView]",zhe=Lx(OR),jhe=Lx(FR),qhe=Lx(BR),Hhe=Lx(RR),Ghe=Lx(NR),x1=Yit;(OR&&x1(new OR(new ArrayBuffer(1)))!=Qit||FR&&x1(new FR)!=Git||BR&&x1(BR.resolve())!=Uit||RR&&x1(new RR)!=$it||NR&&x1(new NR)!=Wit)&&(x1=function(e){var r=Yit(e),i=r==Vhe?e.constructor:void 0,o=i?Lx(i):"";if(o)switch(o){case zhe:return Qit;case jhe:return Git;case qhe:return Uit;case Hhe:return $it;case Ghe:return Wit}return r});Kit.exports=x1});var Zit=Pe(($Mn,Jit)=>{var Uhe=Object.prototype,$he=Uhe.hasOwnProperty;function Whe(e){var r=e.length,i=new e.constructor(r);return r&&typeof e[0]=="string"&&$he.call(e,"index")&&(i.index=e.index,i.input=e.input),i}Jit.exports=Whe});var LR=Pe((WMn,Xit)=>{var Qhe=jp(),Yhe=Qhe.Uint8Array;Xit.exports=Yhe});var xI=Pe((QMn,ent)=>{var tnt=LR();function Khe(e){var r=new e.constructor(e.byteLength);return new tnt(r).set(new tnt(e)),r}ent.exports=Khe});var nnt=Pe((YMn,int)=>{var Jhe=xI();function Zhe(e,r){var i=r?Jhe(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}int.exports=Zhe});var ont=Pe((KMn,rnt)=>{var Xhe=/\w*$/;function t1e(e){var r=new e.constructor(e.source,Xhe.exec(e));return r.lastIndex=e.lastIndex,r}rnt.exports=t1e});var pnt=Pe((JMn,cnt)=>{var ant=h1(),snt=ant?ant.prototype:void 0,lnt=snt?snt.valueOf:void 0;function e1e(e){return lnt?Object(lnt.call(e)):{}}cnt.exports=e1e});var VR=Pe((ZMn,mnt)=>{var i1e=xI();function n1e(e,r){var i=r?i1e(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}mnt.exports=n1e});var unt=Pe((XMn,dnt)=>{var r1e=xI(),o1e=nnt(),a1e=ont(),s1e=pnt(),l1e=VR(),c1e="[object Boolean]",p1e="[object Date]",m1e="[object Map]",d1e="[object Number]",u1e="[object RegExp]",f1e="[object Set]",h1e="[object String]",g1e="[object Symbol]",x1e="[object ArrayBuffer]",_1e="[object DataView]",v1e="[object Float32Array]",b1e="[object Float64Array]",C1e="[object Int8Array]",y1e="[object Int16Array]",S1e="[object Int32Array]",w1e="[object Uint8Array]",E1e="[object Uint8ClampedArray]",P1e="[object Uint16Array]",k1e="[object Uint32Array]";function I1e(e,r,i){var o=e.constructor;switch(r){case x1e:return r1e(e);case c1e:case p1e:return new o(+e);case _1e:return o1e(e,i);case v1e:case b1e:case C1e:case y1e:case S1e:case w1e:case E1e:case P1e:case k1e:return l1e(e,i);case m1e:return new o;case d1e:case h1e:return new o(e);case u1e:return a1e(e);case f1e:return new o;case g1e:return s1e(e)}}dnt.exports=I1e});var zR=Pe((tDn,hnt)=>{var T1e=Zc(),fnt=Object.create,M1e=function(){function e(){}return function(r){if(!T1e(r))return{};if(fnt)return fnt(r);e.prototype=r;var i=new e;return e.prototype=void 0,i}}();hnt.exports=M1e});var jR=Pe((eDn,gnt)=>{var D1e=zR(),A1e=H2(),O1e=j2();function F1e(e){return typeof e.constructor=="function"&&!O1e(e)?D1e(A1e(e)):{}}gnt.exports=F1e});var _nt=Pe((iDn,xnt)=>{var B1e=_1(),R1e=bm(),N1e="[object Map]";function L1e(e){return R1e(e)&&B1e(e)==N1e}xnt.exports=L1e});var ynt=Pe((nDn,Cnt)=>{var V1e=_nt(),z1e=L2(),vnt=uI(),bnt=vnt&&vnt.isMap,j1e=bnt?z1e(bnt):V1e;Cnt.exports=j1e});var wnt=Pe((rDn,Snt)=>{var q1e=_1(),H1e=bm(),G1e="[object Set]";function U1e(e){return H1e(e)&&q1e(e)==G1e}Snt.exports=U1e});var Int=Pe((oDn,knt)=>{var $1e=wnt(),W1e=L2(),Ent=uI(),Pnt=Ent&&Ent.isSet,Q1e=Pnt?W1e(Pnt):$1e;knt.exports=Q1e});var qR=Pe((aDn,Ant)=>{var Y1e=O2(),K1e=mI(),J1e=B2(),Z1e=cit(),X1e=git(),tge=ER(),ege=PR(),ige=kit(),nge=Ait(),rge=DR(),oge=Rit(),age=_1(),sge=Zit(),lge=unt(),cge=jR(),pge=ms(),mge=g1(),dge=ynt(),uge=Zc(),fge=Int(),hge=sd(),gge=Tu(),xge=1,_ge=2,vge=4,Tnt="[object Arguments]",bge="[object Array]",Cge="[object Boolean]",yge="[object Date]",Sge="[object Error]",Mnt="[object Function]",wge="[object GeneratorFunction]",Ege="[object Map]",Pge="[object Number]",Dnt="[object Object]",kge="[object RegExp]",Ige="[object Set]",Tge="[object String]",Mge="[object Symbol]",Dge="[object WeakMap]",Age="[object ArrayBuffer]",Oge="[object DataView]",Fge="[object Float32Array]",Bge="[object Float64Array]",Rge="[object Int8Array]",Nge="[object Int16Array]",Lge="[object Int32Array]",Vge="[object Uint8Array]",zge="[object Uint8ClampedArray]",jge="[object Uint16Array]",qge="[object Uint32Array]",wa={};wa[Tnt]=wa[bge]=wa[Age]=wa[Oge]=wa[Cge]=wa[yge]=wa[Fge]=wa[Bge]=wa[Rge]=wa[Nge]=wa[Lge]=wa[Ege]=wa[Pge]=wa[Dnt]=wa[kge]=wa[Ige]=wa[Tge]=wa[Mge]=wa[Vge]=wa[zge]=wa[jge]=wa[qge]=!0;wa[Sge]=wa[Mnt]=wa[Dge]=!1;function _I(e,r,i,o,n,c){var u,h=r&xge,_=r&_ge,y=r&vge;if(i&&(u=n?i(e,o,n,c):i(e)),u!==void 0)return u;if(!uge(e))return e;var C=pge(e);if(C){if(u=sge(e),!h)return ege(e,u)}else{var E=age(e),T=E==Mnt||E==wge;if(mge(e))return tge(e,h);if(E==Dnt||E==Tnt||T&&!n){if(u=_||T?{}:cge(e),!h)return _?nge(e,X1e(u,e)):ige(e,Z1e(u,e))}else{if(!wa[E])return n?e:{};u=lge(e,E,h)}}c||(c=new Y1e);var D=c.get(e);if(D)return D;c.set(e,u),fge(e)?e.forEach(function(B){u.add(_I(B,r,i,B,e,c))}):dge(e)&&e.forEach(function(B,z){u.set(z,_I(B,r,i,z,e,c))});var M=y?_?oge:rge:_?gge:hge,F=C?void 0:M(e);return K1e(F||e,function(B,z){F&&(z=B,B=e[z]),J1e(u,z,_I(B,r,i,z,e,c))}),u}Ant.exports=_I});var Fnt=Pe((sDn,Ont)=>{var Hge=qR(),Gge=4;function Uge(e){return Hge(e,Gge)}Ont.exports=Uge});var vI=Pe((lDn,Bnt)=>{function $ge(e){return function(){return e}}Bnt.exports=$ge});var Nnt=Pe((cDn,Rnt)=>{function Wge(e){return function(r,i,o){for(var n=-1,c=Object(r),u=o(r),h=u.length;h--;){var _=u[e?h:++n];if(i(c[_],_,c)===!1)break}return r}}Rnt.exports=Wge});var bI=Pe((pDn,Lnt)=>{var Qge=Nnt(),Yge=Qge();Lnt.exports=Yge});var CI=Pe((mDn,Vnt)=>{var Kge=bI(),Jge=sd();function Zge(e,r){return e&&Kge(e,r,Jge)}Vnt.exports=Zge});var jnt=Pe((dDn,znt)=>{var Xge=l0();function txe(e,r){return function(i,o){if(i==null)return i;if(!Xge(i))return e(i,o);for(var n=i.length,c=r?n:-1,u=Object(i);(r?c--:++c{var exe=CI(),ixe=jnt(),nxe=ixe(exe);qnt.exports=nxe});var Mu=Pe((fDn,Hnt)=>{function rxe(e){return e}Hnt.exports=rxe});var HR=Pe((hDn,Gnt)=>{var oxe=Mu();function axe(e){return typeof e=="function"?e:oxe}Gnt.exports=axe});var GR=Pe((gDn,Unt)=>{var sxe=mI(),lxe=G2(),cxe=HR(),pxe=ms();function mxe(e,r){var i=pxe(e)?sxe:lxe;return i(e,cxe(r))}Unt.exports=mxe});var UR=Pe((xDn,$nt)=>{$nt.exports=GR()});var Qnt=Pe((_Dn,Wnt)=>{var dxe=G2();function uxe(e,r){var i=[];return dxe(e,function(o,n,c){r(o,n,c)&&i.push(o)}),i}Wnt.exports=uxe});var Knt=Pe((vDn,Ynt)=>{var fxe="__lodash_hash_undefined__";function hxe(e){return this.__data__.set(e,fxe),this}Ynt.exports=hxe});var Znt=Pe((bDn,Jnt)=>{function gxe(e){return this.__data__.has(e)}Jnt.exports=gxe});var $R=Pe((CDn,Xnt)=>{var xxe=pI(),_xe=Knt(),vxe=Znt();function yI(e){var r=-1,i=e==null?0:e.length;for(this.__data__=new xxe;++r{function bxe(e,r){for(var i=-1,o=e==null?0:e.length;++i{function Cxe(e,r){return e.has(r)}irt.exports=Cxe});var QR=Pe((wDn,nrt)=>{var yxe=$R(),Sxe=ert(),wxe=WR(),Exe=1,Pxe=2;function kxe(e,r,i,o,n,c){var u=i&Exe,h=e.length,_=r.length;if(h!=_&&!(u&&_>h))return!1;var y=c.get(e),C=c.get(r);if(y&&C)return y==r&&C==e;var E=-1,T=!0,D=i&Pxe?new yxe:void 0;for(c.set(e,r),c.set(r,e);++E{function Ixe(e){var r=-1,i=Array(e.size);return e.forEach(function(o,n){i[++r]=[n,o]}),i}rrt.exports=Ixe});var SI=Pe((PDn,art)=>{function Txe(e){var r=-1,i=Array(e.size);return e.forEach(function(o){i[++r]=o}),i}art.exports=Txe});var mrt=Pe((kDn,prt)=>{var srt=h1(),lrt=LR(),Mxe=f1(),Dxe=QR(),Axe=ort(),Oxe=SI(),Fxe=1,Bxe=2,Rxe="[object Boolean]",Nxe="[object Date]",Lxe="[object Error]",Vxe="[object Map]",zxe="[object Number]",jxe="[object RegExp]",qxe="[object Set]",Hxe="[object String]",Gxe="[object Symbol]",Uxe="[object ArrayBuffer]",$xe="[object DataView]",crt=srt?srt.prototype:void 0,YR=crt?crt.valueOf:void 0;function Wxe(e,r,i,o,n,c,u){switch(i){case $xe:if(e.byteLength!=r.byteLength||e.byteOffset!=r.byteOffset)return!1;e=e.buffer,r=r.buffer;case Uxe:return!(e.byteLength!=r.byteLength||!c(new lrt(e),new lrt(r)));case Rxe:case Nxe:case zxe:return Mxe(+e,+r);case Lxe:return e.name==r.name&&e.message==r.message;case jxe:case Hxe:return e==r+"";case Vxe:var h=Axe;case qxe:var _=o&Fxe;if(h||(h=Oxe),e.size!=r.size&&!_)return!1;var y=u.get(e);if(y)return y==r;o|=Bxe,u.set(e,r);var C=Dxe(h(e),h(r),o,n,c,u);return u.delete(e),C;case Gxe:if(YR)return YR.call(e)==YR.call(r)}return!1}prt.exports=Wxe});var frt=Pe((IDn,urt)=>{var drt=DR(),Qxe=1,Yxe=Object.prototype,Kxe=Yxe.hasOwnProperty;function Jxe(e,r,i,o,n,c){var u=i&Qxe,h=drt(e),_=h.length,y=drt(r),C=y.length;if(_!=C&&!u)return!1;for(var E=_;E--;){var T=h[E];if(!(u?T in r:Kxe.call(r,T)))return!1}var D=c.get(e),M=c.get(r);if(D&&M)return D==r&&M==e;var F=!0;c.set(e,r),c.set(r,e);for(var B=u;++E<_;){T=h[E];var z=e[T],$=r[T];if(o)var tt=u?o($,z,T,r,e,c):o(z,$,T,e,r,c);if(!(tt===void 0?z===$||n(z,$,i,o,c):tt)){F=!1;break}B||(B=T=="constructor")}if(F&&!B){var lt=e.constructor,gt=r.constructor;lt!=gt&&"constructor"in e&&"constructor"in r&&!(typeof lt=="function"&< instanceof lt&&typeof gt=="function"&> instanceof gt)&&(F=!1)}return c.delete(e),c.delete(r),F}urt.exports=Jxe});var yrt=Pe((TDn,Crt)=>{var KR=O2(),Zxe=QR(),Xxe=mrt(),t_e=frt(),hrt=_1(),grt=ms(),xrt=g1(),e_e=Rx(),i_e=1,_rt="[object Arguments]",vrt="[object Array]",wI="[object Object]",n_e=Object.prototype,brt=n_e.hasOwnProperty;function r_e(e,r,i,o,n,c){var u=grt(e),h=grt(r),_=u?vrt:hrt(e),y=h?vrt:hrt(r);_=_==_rt?wI:_,y=y==_rt?wI:y;var C=_==wI,E=y==wI,T=_==y;if(T&&xrt(e)){if(!xrt(r))return!1;u=!0,C=!1}if(T&&!C)return c||(c=new KR),u||e_e(e)?Zxe(e,r,i,o,n,c):Xxe(e,r,_,i,o,n,c);if(!(i&i_e)){var D=C&&brt.call(e,"__wrapped__"),M=E&&brt.call(r,"__wrapped__");if(D||M){var F=D?e.value():e,B=M?r.value():r;return c||(c=new KR),n(F,B,i,o,c)}}return T?(c||(c=new KR),t_e(e,r,i,o,n,c)):!1}Crt.exports=r_e});var JR=Pe((MDn,Ert)=>{var o_e=yrt(),Srt=bm();function wrt(e,r,i,o,n){return e===r?!0:e==null||r==null||!Srt(e)&&!Srt(r)?e!==e&&r!==r:o_e(e,r,i,o,wrt,n)}Ert.exports=wrt});var krt=Pe((DDn,Prt)=>{var a_e=O2(),s_e=JR(),l_e=1,c_e=2;function p_e(e,r,i,o){var n=i.length,c=n,u=!o;if(e==null)return!c;for(e=Object(e);n--;){var h=i[n];if(u&&h[2]?h[1]!==e[h[0]]:!(h[0]in e))return!1}for(;++n{var m_e=Zc();function d_e(e){return e===e&&!m_e(e)}Irt.exports=d_e});var Mrt=Pe((ODn,Trt)=>{var u_e=ZR(),f_e=sd();function h_e(e){for(var r=f_e(e),i=r.length;i--;){var o=r[i],n=e[o];r[i]=[o,n,u_e(n)]}return r}Trt.exports=h_e});var XR=Pe((FDn,Drt)=>{function g_e(e,r){return function(i){return i==null?!1:i[e]===r&&(r!==void 0||e in Object(i))}}Drt.exports=g_e});var Ort=Pe((BDn,Art)=>{var x_e=krt(),__e=Mrt(),v_e=XR();function b_e(e){var r=__e(e);return r.length==1&&r[0][2]?v_e(r[0][0],r[0][1]):function(i){return i===e||x_e(i,e,r)}}Art.exports=b_e});var v1=Pe((RDn,Frt)=>{var C_e=ku(),y_e=bm(),S_e="[object Symbol]";function w_e(e){return typeof e=="symbol"||y_e(e)&&C_e(e)==S_e}Frt.exports=w_e});var EI=Pe((NDn,Brt)=>{var E_e=ms(),P_e=v1(),k_e=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,I_e=/^\w*$/;function T_e(e,r){if(E_e(e))return!1;var i=typeof e;return i=="number"||i=="symbol"||i=="boolean"||e==null||P_e(e)?!0:I_e.test(e)||!k_e.test(e)||r!=null&&e in Object(r)}Brt.exports=T_e});var Lrt=Pe((LDn,Nrt)=>{var Rrt=pI(),M_e="Expected a function";function tN(e,r){if(typeof e!="function"||r!=null&&typeof r!="function")throw new TypeError(M_e);var i=function(){var o=arguments,n=r?r.apply(this,o):o[0],c=i.cache;if(c.has(n))return c.get(n);var u=e.apply(this,o);return i.cache=c.set(n,u)||c,u};return i.cache=new(tN.Cache||Rrt),i}tN.Cache=Rrt;Nrt.exports=tN});var zrt=Pe((VDn,Vrt)=>{var D_e=Lrt(),A_e=500;function O_e(e){var r=D_e(e,function(o){return i.size===A_e&&i.clear(),o}),i=r.cache;return r}Vrt.exports=O_e});var qrt=Pe((zDn,jrt)=>{var F_e=zrt(),B_e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,R_e=/\\(\\)?/g,N_e=F_e(function(e){var r=[];return e.charCodeAt(0)===46&&r.push(""),e.replace(B_e,function(i,o,n,c){r.push(n?c.replace(R_e,"$1"):o||i)}),r});jrt.exports=N_e});var U2=Pe((jDn,Hrt)=>{function L_e(e,r){for(var i=-1,o=e==null?0:e.length,n=Array(o);++i{var Grt=h1(),V_e=U2(),z_e=ms(),j_e=v1(),q_e=1/0,Urt=Grt?Grt.prototype:void 0,$rt=Urt?Urt.toString:void 0;function Wrt(e){if(typeof e=="string")return e;if(z_e(e))return V_e(e,Wrt)+"";if(j_e(e))return $rt?$rt.call(e):"";var r=e+"";return r=="0"&&1/e==-q_e?"-0":r}Qrt.exports=Wrt});var eN=Pe((HDn,Krt)=>{var H_e=Yrt();function G_e(e){return e==null?"":H_e(e)}Krt.exports=G_e});var $2=Pe((GDn,Jrt)=>{var U_e=ms(),$_e=EI(),W_e=qrt(),Q_e=eN();function Y_e(e,r){return U_e(e)?e:$_e(e,r)?[e]:W_e(Q_e(e))}Jrt.exports=Y_e});var Vx=Pe((UDn,Zrt)=>{var K_e=v1(),J_e=1/0;function Z_e(e){if(typeof e=="string"||K_e(e))return e;var r=e+"";return r=="0"&&1/e==-J_e?"-0":r}Zrt.exports=Z_e});var W2=Pe(($Dn,Xrt)=>{var X_e=$2(),tve=Vx();function eve(e,r){r=X_e(r,e);for(var i=0,o=r.length;e!=null&&i{var ive=W2();function nve(e,r,i){var o=e==null?void 0:ive(e,r);return o===void 0?i:o}tot.exports=nve});var not=Pe((QDn,iot)=>{function rve(e,r){return e!=null&&r in Object(e)}iot.exports=rve});var iN=Pe((YDn,rot)=>{var ove=$2(),ave=Ox(),sve=ms(),lve=N2(),cve=dI(),pve=Vx();function mve(e,r,i){r=ove(r,e);for(var o=-1,n=r.length,c=!1;++o{var dve=not(),uve=iN();function fve(e,r){return e!=null&&uve(e,r,dve)}oot.exports=fve});var sot=Pe((JDn,aot)=>{var hve=JR(),gve=eot(),xve=nN(),_ve=EI(),vve=ZR(),bve=XR(),Cve=Vx(),yve=1,Sve=2;function wve(e,r){return _ve(e)&&vve(r)?bve(Cve(e),r):function(i){var o=gve(i,e);return o===void 0&&o===r?xve(i,e):hve(r,o,yve|Sve)}}aot.exports=wve});var rN=Pe((ZDn,lot)=>{function Eve(e){return function(r){return r?.[e]}}lot.exports=Eve});var pot=Pe((XDn,cot)=>{var Pve=W2();function kve(e){return function(r){return Pve(r,e)}}cot.exports=kve});var dot=Pe((t6n,mot)=>{var Ive=rN(),Tve=pot(),Mve=EI(),Dve=Vx();function Ave(e){return Mve(e)?Ive(Dve(e)):Tve(e)}mot.exports=Ave});var c0=Pe((e6n,uot)=>{var Ove=Ort(),Fve=sot(),Bve=Mu(),Rve=ms(),Nve=dot();function Lve(e){return typeof e=="function"?e:e==null?Bve:typeof e=="object"?Rve(e)?Fve(e[0],e[1]):Ove(e):Nve(e)}uot.exports=Lve});var oN=Pe((i6n,fot)=>{var Vve=kR(),zve=Qnt(),jve=c0(),qve=ms();function Hve(e,r){var i=qve(e)?Vve:zve;return i(e,jve(r,3))}fot.exports=Hve});var got=Pe((n6n,hot)=>{var Gve=Object.prototype,Uve=Gve.hasOwnProperty;function $ve(e,r){return e!=null&&Uve.call(e,r)}hot.exports=$ve});var aN=Pe((r6n,xot)=>{var Wve=got(),Qve=iN();function Yve(e,r){return e!=null&&Qve(e,r,Wve)}xot.exports=Yve});var vot=Pe((o6n,_ot)=>{var Kve=fI(),Jve=_1(),Zve=Ox(),Xve=ms(),tbe=l0(),ebe=g1(),ibe=j2(),nbe=Rx(),rbe="[object Map]",obe="[object Set]",abe=Object.prototype,sbe=abe.hasOwnProperty;function lbe(e){if(e==null)return!0;if(tbe(e)&&(Xve(e)||typeof e=="string"||typeof e.splice=="function"||ebe(e)||nbe(e)||Zve(e)))return!e.length;var r=Jve(e);if(r==rbe||r==obe)return!e.size;if(ibe(e))return!Kve(e).length;for(var i in e)if(sbe.call(e,i))return!1;return!0}_ot.exports=lbe});var sN=Pe((a6n,bot)=>{function cbe(e){return e===void 0}bot.exports=cbe});var lN=Pe((s6n,Cot)=>{var pbe=G2(),mbe=l0();function dbe(e,r){var i=-1,o=mbe(e)?Array(e.length):[];return pbe(e,function(n,c,u){o[++i]=r(n,c,u)}),o}Cot.exports=dbe});var cN=Pe((l6n,yot)=>{var ube=U2(),fbe=c0(),hbe=lN(),gbe=ms();function xbe(e,r){var i=gbe(e)?ube:hbe;return i(e,fbe(r,3))}yot.exports=xbe});var wot=Pe((c6n,Sot)=>{function _be(e,r,i,o){var n=-1,c=e==null?0:e.length;for(o&&c&&(i=e[++n]);++n{function vbe(e,r,i,o,n){return n(e,function(c,u,h){i=o?(o=!1,c):r(i,c,u,h)}),i}Eot.exports=vbe});var pN=Pe((m6n,kot)=>{var bbe=wot(),Cbe=G2(),ybe=c0(),Sbe=Pot(),wbe=ms();function Ebe(e,r,i){var o=wbe(e)?bbe:Sbe,n=arguments.length<3;return o(e,ybe(r,4),i,n,Cbe)}kot.exports=Ebe});var Tot=Pe((d6n,Iot)=>{var Pbe=ku(),kbe=ms(),Ibe=bm(),Tbe="[object String]";function Mbe(e){return typeof e=="string"||!kbe(e)&&Ibe(e)&&Pbe(e)==Tbe}Iot.exports=Mbe});var Dot=Pe((u6n,Mot)=>{var Dbe=rN(),Abe=Dbe("length");Mot.exports=Abe});var Oot=Pe((f6n,Aot)=>{var Obe="\\ud800-\\udfff",Fbe="\\u0300-\\u036f",Bbe="\\ufe20-\\ufe2f",Rbe="\\u20d0-\\u20ff",Nbe=Fbe+Bbe+Rbe,Lbe="\\ufe0e\\ufe0f",Vbe="\\u200d",zbe=RegExp("["+Vbe+Obe+Nbe+Lbe+"]");function jbe(e){return zbe.test(e)}Aot.exports=jbe});var qot=Pe((h6n,jot)=>{var Bot="\\ud800-\\udfff",qbe="\\u0300-\\u036f",Hbe="\\ufe20-\\ufe2f",Gbe="\\u20d0-\\u20ff",Ube=qbe+Hbe+Gbe,$be="\\ufe0e\\ufe0f",Wbe="["+Bot+"]",mN="["+Ube+"]",dN="\\ud83c[\\udffb-\\udfff]",Qbe="(?:"+mN+"|"+dN+")",Rot="[^"+Bot+"]",Not="(?:\\ud83c[\\udde6-\\uddff]){2}",Lot="[\\ud800-\\udbff][\\udc00-\\udfff]",Ybe="\\u200d",Vot=Qbe+"?",zot="["+$be+"]?",Kbe="(?:"+Ybe+"(?:"+[Rot,Not,Lot].join("|")+")"+zot+Vot+")*",Jbe=zot+Vot+Kbe,Zbe="(?:"+[Rot+mN+"?",mN,Not,Lot,Wbe].join("|")+")",Fot=RegExp(dN+"(?="+dN+")|"+Zbe+Jbe,"g");function Xbe(e){for(var r=Fot.lastIndex=0;Fot.test(e);)++r;return r}jot.exports=Xbe});var Got=Pe((g6n,Hot)=>{var t2e=Dot(),e2e=Oot(),i2e=qot();function n2e(e){return e2e(e)?i2e(e):t2e(e)}Hot.exports=n2e});var $ot=Pe((x6n,Uot)=>{var r2e=fI(),o2e=_1(),a2e=l0(),s2e=Tot(),l2e=Got(),c2e="[object Map]",p2e="[object Set]";function m2e(e){if(e==null)return 0;if(a2e(e))return s2e(e)?l2e(e):e.length;var r=o2e(e);return r==c2e||r==p2e?e.size:r2e(e).length}Uot.exports=m2e});var Qot=Pe((_6n,Wot)=>{var d2e=mI(),u2e=zR(),f2e=CI(),h2e=c0(),g2e=H2(),x2e=ms(),_2e=g1(),v2e=Ix(),b2e=Zc(),C2e=Rx();function y2e(e,r,i){var o=x2e(e),n=o||_2e(e)||C2e(e);if(r=h2e(r,4),i==null){var c=e&&e.constructor;n?i=o?new c:[]:b2e(e)?i=v2e(c)?u2e(g2e(e)):{}:i={}}return(n?d2e:f2e)(e,function(u,h,_){return r(i,u,h,_)}),i}Wot.exports=y2e});var Zot=Pe((v6n,Jot)=>{var Yot=h1(),S2e=Ox(),w2e=ms(),Kot=Yot?Yot.isConcatSpreadable:void 0;function E2e(e){return w2e(e)||S2e(e)||!!(Kot&&e&&e[Kot])}Jot.exports=E2e});var PI=Pe((b6n,tat)=>{var P2e=gI(),k2e=Zot();function Xot(e,r,i,o,n){var c=-1,u=e.length;for(i||(i=k2e),n||(n=[]);++c0&&i(h)?r>1?Xot(h,r-1,i,o,n):P2e(n,h):o||(n[n.length]=h)}return n}tat.exports=Xot});var iat=Pe((C6n,eat)=>{function I2e(e,r,i){switch(i.length){case 0:return e.call(r);case 1:return e.call(r,i[0]);case 2:return e.call(r,i[0],i[1]);case 3:return e.call(r,i[0],i[1],i[2])}return e.apply(r,i)}eat.exports=I2e});var uN=Pe((y6n,rat)=>{var T2e=iat(),nat=Math.max;function M2e(e,r,i){return r=nat(r===void 0?e.length-1:r,0),function(){for(var o=arguments,n=-1,c=nat(o.length-r,0),u=Array(c);++n{var D2e=vI(),oat=CR(),A2e=Mu(),O2e=oat?function(e,r){return oat(e,"toString",{configurable:!0,enumerable:!1,value:D2e(r),writable:!0})}:A2e;aat.exports=O2e});var cat=Pe((w6n,lat)=>{var F2e=800,B2e=16,R2e=Date.now;function N2e(e){var r=0,i=0;return function(){var o=R2e(),n=B2e-(o-i);if(i=o,n>0){if(++r>=F2e)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}lat.exports=N2e});var fN=Pe((E6n,pat)=>{var L2e=sat(),V2e=cat(),z2e=V2e(L2e);pat.exports=z2e});var Q2=Pe((P6n,mat)=>{var j2e=Mu(),q2e=uN(),H2e=fN();function G2e(e,r){return H2e(q2e(e,r,j2e),e+"")}mat.exports=G2e});var hN=Pe((k6n,dat)=>{function U2e(e,r,i,o){for(var n=e.length,c=i+(o?1:-1);o?c--:++c{function $2e(e){return e!==e}uat.exports=$2e});var gat=Pe((T6n,hat)=>{function W2e(e,r,i){for(var o=i-1,n=e.length;++o{var Q2e=hN(),Y2e=fat(),K2e=gat();function J2e(e,r,i){return r===r?K2e(e,r,i):Q2e(e,Y2e,i)}xat.exports=J2e});var bat=Pe((D6n,vat)=>{var Z2e=_at();function X2e(e,r){var i=e==null?0:e.length;return!!i&&Z2e(e,r,0)>-1}vat.exports=X2e});var yat=Pe((A6n,Cat)=>{function tCe(e,r,i){for(var o=-1,n=e==null?0:e.length;++o{function eCe(){}Sat.exports=eCe});var Pat=Pe((F6n,Eat)=>{var gN=AR(),iCe=wat(),nCe=SI(),rCe=1/0,oCe=gN&&1/nCe(new gN([,-0]))[1]==rCe?function(e){return new gN(e)}:iCe;Eat.exports=oCe});var Iat=Pe((B6n,kat)=>{var aCe=$R(),sCe=bat(),lCe=yat(),cCe=WR(),pCe=Pat(),mCe=SI(),dCe=200;function uCe(e,r,i){var o=-1,n=sCe,c=e.length,u=!0,h=[],_=h;if(i)u=!1,n=lCe;else if(c>=dCe){var y=r?null:pCe(e);if(y)return mCe(y);u=!1,n=cCe,_=new aCe}else _=r?[]:h;t:for(;++o{var fCe=l0(),hCe=bm();function gCe(e){return hCe(e)&&fCe(e)}Tat.exports=gCe});var Dat=Pe((N6n,Mat)=>{var xCe=PI(),_Ce=Q2(),vCe=Iat(),bCe=xN(),CCe=_Ce(function(e){return vCe(xCe(e,1,bCe,!0))});Mat.exports=CCe});var Oat=Pe((L6n,Aat)=>{var yCe=U2();function SCe(e,r){return yCe(r,function(i){return e[i]})}Aat.exports=SCe});var _N=Pe((V6n,Fat)=>{var wCe=Oat(),ECe=sd();function PCe(e){return e==null?[]:wCe(e,ECe(e))}Fat.exports=PCe});var Xc=Pe((z6n,Bat)=>{var kI;if(typeof lm=="function")try{kI={clone:Fnt(),constant:vI(),each:UR(),filter:oN(),has:aN(),isArray:ms(),isEmpty:vot(),isFunction:Ix(),isUndefined:sN(),keys:sd(),map:cN(),reduce:pN(),size:$ot(),transform:Qot(),union:Dat(),values:_N()}}catch{}kI||(kI=window._);Bat.exports=kI});var II=Pe((q6n,Vat)=>{"use strict";var Hr=Xc();Vat.exports=fo;var kCe="\0",b1="\0",Rat="";function fo(e){this._isDirected=Hr.has(e,"directed")?e.directed:!0,this._isMultigraph=Hr.has(e,"multigraph")?e.multigraph:!1,this._isCompound=Hr.has(e,"compound")?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=Hr.constant(void 0),this._defaultEdgeLabelFn=Hr.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[b1]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}fo.prototype._nodeCount=0;fo.prototype._edgeCount=0;fo.prototype.isDirected=function(){return this._isDirected};fo.prototype.isMultigraph=function(){return this._isMultigraph};fo.prototype.isCompound=function(){return this._isCompound};fo.prototype.setGraph=function(e){return this._label=e,this};fo.prototype.graph=function(){return this._label};fo.prototype.setDefaultNodeLabel=function(e){return Hr.isFunction(e)||(e=Hr.constant(e)),this._defaultNodeLabelFn=e,this};fo.prototype.nodeCount=function(){return this._nodeCount};fo.prototype.nodes=function(){return Hr.keys(this._nodes)};fo.prototype.sources=function(){var e=this;return Hr.filter(this.nodes(),function(r){return Hr.isEmpty(e._in[r])})};fo.prototype.sinks=function(){var e=this;return Hr.filter(this.nodes(),function(r){return Hr.isEmpty(e._out[r])})};fo.prototype.setNodes=function(e,r){var i=arguments,o=this;return Hr.each(e,function(n){i.length>1?o.setNode(n,r):o.setNode(n)}),this};fo.prototype.setNode=function(e,r){return Hr.has(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=r),this):(this._nodes[e]=arguments.length>1?r:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=b1,this._children[e]={},this._children[b1][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)};fo.prototype.node=function(e){return this._nodes[e]};fo.prototype.hasNode=function(e){return Hr.has(this._nodes,e)};fo.prototype.removeNode=function(e){var r=this;if(Hr.has(this._nodes,e)){var i=function(o){r.removeEdge(r._edgeObjs[o])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],Hr.each(this.children(e),function(o){r.setParent(o)}),delete this._children[e]),Hr.each(Hr.keys(this._in[e]),i),delete this._in[e],delete this._preds[e],Hr.each(Hr.keys(this._out[e]),i),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this};fo.prototype.setParent=function(e,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(Hr.isUndefined(r))r=b1;else{r+="";for(var i=r;!Hr.isUndefined(i);i=this.parent(i))if(i===e)throw new Error("Setting "+r+" as parent of "+e+" would create a cycle");this.setNode(r)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=r,this._children[r][e]=!0,this};fo.prototype._removeFromParentsChildList=function(e){delete this._children[this._parent[e]][e]};fo.prototype.parent=function(e){if(this._isCompound){var r=this._parent[e];if(r!==b1)return r}};fo.prototype.children=function(e){if(Hr.isUndefined(e)&&(e=b1),this._isCompound){var r=this._children[e];if(r)return Hr.keys(r)}else{if(e===b1)return this.nodes();if(this.hasNode(e))return[]}};fo.prototype.predecessors=function(e){var r=this._preds[e];if(r)return Hr.keys(r)};fo.prototype.successors=function(e){var r=this._sucs[e];if(r)return Hr.keys(r)};fo.prototype.neighbors=function(e){var r=this.predecessors(e);if(r)return Hr.union(r,this.successors(e))};fo.prototype.isLeaf=function(e){var r;return this.isDirected()?r=this.successors(e):r=this.neighbors(e),r.length===0};fo.prototype.filterNodes=function(e){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var i=this;Hr.each(this._nodes,function(c,u){e(u)&&r.setNode(u,c)}),Hr.each(this._edgeObjs,function(c){r.hasNode(c.v)&&r.hasNode(c.w)&&r.setEdge(c,i.edge(c))});var o={};function n(c){var u=i.parent(c);return u===void 0||r.hasNode(u)?(o[c]=u,u):u in o?o[u]:n(u)}return this._isCompound&&Hr.each(r.nodes(),function(c){r.setParent(c,n(c))}),r};fo.prototype.setDefaultEdgeLabel=function(e){return Hr.isFunction(e)||(e=Hr.constant(e)),this._defaultEdgeLabelFn=e,this};fo.prototype.edgeCount=function(){return this._edgeCount};fo.prototype.edges=function(){return Hr.values(this._edgeObjs)};fo.prototype.setPath=function(e,r){var i=this,o=arguments;return Hr.reduce(e,function(n,c){return o.length>1?i.setEdge(n,c,r):i.setEdge(n,c),c}),this};fo.prototype.setEdge=function(){var e,r,i,o,n=!1,c=arguments[0];typeof c=="object"&&c!==null&&"v"in c?(e=c.v,r=c.w,i=c.name,arguments.length===2&&(o=arguments[1],n=!0)):(e=c,r=arguments[1],i=arguments[3],arguments.length>2&&(o=arguments[2],n=!0)),e=""+e,r=""+r,Hr.isUndefined(i)||(i=""+i);var u=Y2(this._isDirected,e,r,i);if(Hr.has(this._edgeLabels,u))return n&&(this._edgeLabels[u]=o),this;if(!Hr.isUndefined(i)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(r),this._edgeLabels[u]=n?o:this._defaultEdgeLabelFn(e,r,i);var h=ICe(this._isDirected,e,r,i);return e=h.v,r=h.w,Object.freeze(h),this._edgeObjs[u]=h,Nat(this._preds[r],e),Nat(this._sucs[e],r),this._in[r][u]=h,this._out[e][u]=h,this._edgeCount++,this};fo.prototype.edge=function(e,r,i){var o=arguments.length===1?vN(this._isDirected,arguments[0]):Y2(this._isDirected,e,r,i);return this._edgeLabels[o]};fo.prototype.hasEdge=function(e,r,i){var o=arguments.length===1?vN(this._isDirected,arguments[0]):Y2(this._isDirected,e,r,i);return Hr.has(this._edgeLabels,o)};fo.prototype.removeEdge=function(e,r,i){var o=arguments.length===1?vN(this._isDirected,arguments[0]):Y2(this._isDirected,e,r,i),n=this._edgeObjs[o];return n&&(e=n.v,r=n.w,delete this._edgeLabels[o],delete this._edgeObjs[o],Lat(this._preds[r],e),Lat(this._sucs[e],r),delete this._in[r][o],delete this._out[e][o],this._edgeCount--),this};fo.prototype.inEdges=function(e,r){var i=this._in[e];if(i){var o=Hr.values(i);return r?Hr.filter(o,function(n){return n.v===r}):o}};fo.prototype.outEdges=function(e,r){var i=this._out[e];if(i){var o=Hr.values(i);return r?Hr.filter(o,function(n){return n.w===r}):o}};fo.prototype.nodeEdges=function(e,r){var i=this.inEdges(e,r);if(i)return i.concat(this.outEdges(e,r))};function Nat(e,r){e[r]?e[r]++:e[r]=1}function Lat(e,r){--e[r]||delete e[r]}function Y2(e,r,i,o){var n=""+r,c=""+i;if(!e&&n>c){var u=n;n=c,c=u}return n+Rat+c+Rat+(Hr.isUndefined(o)?kCe:o)}function ICe(e,r,i,o){var n=""+r,c=""+i;if(!e&&n>c){var u=n;n=c,c=u}var h={v:n,w:c};return o&&(h.name=o),h}function vN(e,r){return Y2(e,r.v,r.w,r.name)}});var jat=Pe((H6n,zat)=>{zat.exports="2.1.8"});var Hat=Pe((G6n,qat)=>{qat.exports={Graph:II(),version:jat()}});var Uat=Pe((U6n,Gat)=>{var p0=Xc(),TCe=II();Gat.exports={write:MCe,read:OCe};function MCe(e){var r={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:DCe(e),edges:ACe(e)};return p0.isUndefined(e.graph())||(r.value=p0.clone(e.graph())),r}function DCe(e){return p0.map(e.nodes(),function(r){var i=e.node(r),o=e.parent(r),n={v:r};return p0.isUndefined(i)||(n.value=i),p0.isUndefined(o)||(n.parent=o),n})}function ACe(e){return p0.map(e.edges(),function(r){var i=e.edge(r),o={v:r.v,w:r.w};return p0.isUndefined(r.name)||(o.name=r.name),p0.isUndefined(i)||(o.value=i),o})}function OCe(e){var r=new TCe(e.options).setGraph(e.value);return p0.each(e.nodes,function(i){r.setNode(i.v,i.value),i.parent&&r.setParent(i.v,i.parent)}),p0.each(e.edges,function(i){r.setEdge({v:i.v,w:i.w,name:i.name},i.value)}),r}});var Wat=Pe(($6n,$at)=>{var TI=Xc();$at.exports=FCe;function FCe(e){var r={},i=[],o;function n(c){TI.has(r,c)||(r[c]=!0,o.push(c),TI.each(e.successors(c),n),TI.each(e.predecessors(c),n))}return TI.each(e.nodes(),function(c){o=[],n(c),o.length&&i.push(o)}),i}});var bN=Pe((W6n,Yat)=>{var Qat=Xc();Yat.exports=qp;function qp(){this._arr=[],this._keyIndices={}}qp.prototype.size=function(){return this._arr.length};qp.prototype.keys=function(){return this._arr.map(function(e){return e.key})};qp.prototype.has=function(e){return Qat.has(this._keyIndices,e)};qp.prototype.priority=function(e){var r=this._keyIndices[e];if(r!==void 0)return this._arr[r].priority};qp.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key};qp.prototype.add=function(e,r){var i=this._keyIndices;if(e=String(e),!Qat.has(i,e)){var o=this._arr,n=o.length;return i[e]=n,o.push({key:e,priority:r}),this._decrease(n),!0}return!1};qp.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key};qp.prototype.decrease=function(e,r){var i=this._keyIndices[e];if(r>this._arr[i].priority)throw new Error("New priority is greater than current priority. Key: "+e+" Old: "+this._arr[i].priority+" New: "+r);this._arr[i].priority=r,this._decrease(i)};qp.prototype._heapify=function(e){var r=this._arr,i=2*e,o=i+1,n=e;i>1,!(r[o].priority{var BCe=Xc(),RCe=bN();Kat.exports=LCe;var NCe=BCe.constant(1);function LCe(e,r,i,o){return VCe(e,String(r),i||NCe,o||function(n){return e.outEdges(n)})}function VCe(e,r,i,o){var n={},c=new RCe,u,h,_=function(y){var C=y.v!==u?y.v:y.w,E=n[C],T=i(y),D=h.distance+T;if(T<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+y+" Weight: "+T);D0&&(u=c.removeMin(),h=n[u],h.distance!==Number.POSITIVE_INFINITY);)o(u).forEach(_);return n}});var Zat=Pe((Y6n,Jat)=>{var zCe=CN(),jCe=Xc();Jat.exports=qCe;function qCe(e,r,i){return jCe.transform(e.nodes(),function(o,n){o[n]=zCe(e,n,r,i)},{})}});var yN=Pe((K6n,tst)=>{var Xat=Xc();tst.exports=HCe;function HCe(e){var r=0,i=[],o={},n=[];function c(u){var h=o[u]={onStack:!0,lowlink:r,index:r++};if(i.push(u),e.successors(u).forEach(function(C){Xat.has(o,C)?o[C].onStack&&(h.lowlink=Math.min(h.lowlink,o[C].index)):(c(C),h.lowlink=Math.min(h.lowlink,o[C].lowlink))}),h.lowlink===h.index){var _=[],y;do y=i.pop(),o[y].onStack=!1,_.push(y);while(u!==y);n.push(_)}}return e.nodes().forEach(function(u){Xat.has(o,u)||c(u)}),n}});var ist=Pe((J6n,est)=>{var GCe=Xc(),UCe=yN();est.exports=$Ce;function $Ce(e){return GCe.filter(UCe(e),function(r){return r.length>1||r.length===1&&e.hasEdge(r[0],r[0])})}});var rst=Pe((Z6n,nst)=>{var WCe=Xc();nst.exports=YCe;var QCe=WCe.constant(1);function YCe(e,r,i){return KCe(e,r||QCe,i||function(o){return e.outEdges(o)})}function KCe(e,r,i){var o={},n=e.nodes();return n.forEach(function(c){o[c]={},o[c][c]={distance:0},n.forEach(function(u){c!==u&&(o[c][u]={distance:Number.POSITIVE_INFINITY})}),i(c).forEach(function(u){var h=u.v===c?u.w:u.v,_=r(u);o[c][h]={distance:_,predecessor:c}})}),n.forEach(function(c){var u=o[c];n.forEach(function(h){var _=o[h];n.forEach(function(y){var C=_[c],E=u[y],T=_[y],D=C.distance+E.distance;D{var K2=Xc();ast.exports=ost;ost.CycleException=MI;function ost(e){var r={},i={},o=[];function n(c){if(K2.has(i,c))throw new MI;K2.has(r,c)||(i[c]=!0,r[c]=!0,K2.each(e.predecessors(c),n),delete i[c],o.push(c))}if(K2.each(e.sinks(),n),K2.size(r)!==e.nodeCount())throw new MI;return o}function MI(){}MI.prototype=new Error});var cst=Pe((tAn,lst)=>{var sst=SN();lst.exports=JCe;function JCe(e){try{sst(e)}catch(r){if(r instanceof sst.CycleException)return!1;throw r}return!0}});var wN=Pe((eAn,mst)=>{var DI=Xc();mst.exports=ZCe;function ZCe(e,r,i){DI.isArray(r)||(r=[r]);var o=(e.isDirected()?e.successors:e.neighbors).bind(e),n=[],c={};return DI.each(r,function(u){if(!e.hasNode(u))throw new Error("Graph does not have node: "+u);pst(e,u,i==="post",c,o,n)}),n}function pst(e,r,i,o,n,c){DI.has(o,r)||(o[r]=!0,i||c.push(r),DI.each(n(r),function(u){pst(e,u,i,o,n,c)}),i&&c.push(r))}});var ust=Pe((iAn,dst)=>{var XCe=wN();dst.exports=tye;function tye(e,r){return XCe(e,r,"post")}});var hst=Pe((nAn,fst)=>{var eye=wN();fst.exports=iye;function iye(e,r){return eye(e,r,"pre")}});var _st=Pe((rAn,xst)=>{var gst=Xc(),nye=II(),rye=bN();xst.exports=oye;function oye(e,r){var i=new nye,o={},n=new rye,c;function u(_){var y=_.v===c?_.w:_.v,C=n.priority(y);if(C!==void 0){var E=r(_);E0;){if(c=n.removeMin(),gst.has(o,c))i.setEdge(c,o[c]);else{if(h)throw new Error("Input graph is not connected: "+e);h=!0}e.nodeEdges(c).forEach(u)}return i}});var bst=Pe((oAn,vst)=>{vst.exports={components:Wat(),dijkstra:CN(),dijkstraAll:Zat(),findCycles:ist(),floydWarshall:rst(),isAcyclic:cst(),postorder:ust(),preorder:hst(),prim:_st(),tarjan:yN(),topsort:SN()}});var Sst=Pe((aAn,yst)=>{var Cst=Hat();yst.exports={Graph:Cst.Graph,json:Uat(),alg:bst(),version:Cst.version}});var Hp=Pe((sAn,wst)=>{var AI;if(typeof lm=="function")try{AI=Sst()}catch{}AI||(AI=window.graphlib);wst.exports=AI});var Pst=Pe((cAn,Est)=>{var aye=qR(),sye=1,lye=4;function cye(e){return aye(e,sye|lye)}Est.exports=cye});var J2=Pe((pAn,kst)=>{var pye=f1(),mye=l0(),dye=N2(),uye=Zc();function fye(e,r,i){if(!uye(i))return!1;var o=typeof r;return(o=="number"?mye(i)&&dye(r,i.length):o=="string"&&r in i)?pye(i[r],e):!1}kst.exports=fye});var Mst=Pe((mAn,Tst)=>{var hye=Q2(),gye=f1(),xye=J2(),_ye=Tu(),Ist=Object.prototype,vye=Ist.hasOwnProperty,bye=hye(function(e,r){e=Object(e);var i=-1,o=r.length,n=o>2?r[2]:void 0;for(n&&xye(r[0],r[1],n)&&(o=1);++i{var Cye=c0(),yye=l0(),Sye=sd();function wye(e){return function(r,i,o){var n=Object(r);if(!yye(r)){var c=Cye(i,3);r=Sye(r),i=function(h){return c(n[h],h,n)}}var u=e(r,i,o);return u>-1?n[c?r[u]:u]:void 0}}Dst.exports=wye});var Fst=Pe((uAn,Ost)=>{var Eye=/\s/;function Pye(e){for(var r=e.length;r--&&Eye.test(e.charAt(r)););return r}Ost.exports=Pye});var Rst=Pe((fAn,Bst)=>{var kye=Fst(),Iye=/^\s+/;function Tye(e){return e&&e.slice(0,kye(e)+1).replace(Iye,"")}Bst.exports=Tye});var zst=Pe((hAn,Vst)=>{var Mye=Rst(),Nst=Zc(),Dye=v1(),Lst=NaN,Aye=/^[-+]0x[0-9a-f]+$/i,Oye=/^0b[01]+$/i,Fye=/^0o[0-7]+$/i,Bye=parseInt;function Rye(e){if(typeof e=="number")return e;if(Dye(e))return Lst;if(Nst(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=Nst(r)?r+"":r}if(typeof e!="string")return e===0?e:+e;e=Mye(e);var i=Oye.test(e);return i||Fye.test(e)?Bye(e.slice(2),i?2:8):Aye.test(e)?Lst:+e}Vst.exports=Rye});var EN=Pe((gAn,qst)=>{var Nye=zst(),jst=1/0,Lye=17976931348623157e292;function Vye(e){if(!e)return e===0?e:0;if(e=Nye(e),e===jst||e===-jst){var r=e<0?-1:1;return r*Lye}return e===e?e:0}qst.exports=Vye});var Gst=Pe((xAn,Hst)=>{var zye=EN();function jye(e){var r=zye(e),i=r%1;return r===r?i?r-i:r:0}Hst.exports=jye});var $st=Pe((_An,Ust)=>{var qye=hN(),Hye=c0(),Gye=Gst(),Uye=Math.max;function $ye(e,r,i){var o=e==null?0:e.length;if(!o)return-1;var n=i==null?0:Gye(i);return n<0&&(n=Uye(o+n,0)),qye(e,Hye(r,3),n)}Ust.exports=$ye});var Qst=Pe((vAn,Wst)=>{var Wye=Ast(),Qye=$st(),Yye=Wye(Qye);Wst.exports=Yye});var PN=Pe((bAn,Yst)=>{var Kye=PI();function Jye(e){var r=e==null?0:e.length;return r?Kye(e,1):[]}Yst.exports=Jye});var Jst=Pe((CAn,Kst)=>{var Zye=bI(),Xye=HR(),t3e=Tu();function e3e(e,r){return e==null?e:Zye(e,Xye(r),t3e)}Kst.exports=e3e});var Xst=Pe((yAn,Zst)=>{function i3e(e){var r=e==null?0:e.length;return r?e[r-1]:void 0}Zst.exports=i3e});var elt=Pe((SAn,tlt)=>{var n3e=F2(),r3e=CI(),o3e=c0();function a3e(e,r){var i={};return r=o3e(r,3),r3e(e,function(o,n,c){n3e(i,n,r(o,n,c))}),i}tlt.exports=a3e});var OI=Pe((wAn,ilt)=>{var s3e=v1();function l3e(e,r,i){for(var o=-1,n=e.length;++o{function c3e(e,r){return e>r}nlt.exports=c3e});var alt=Pe((PAn,olt)=>{var p3e=OI(),m3e=rlt(),d3e=Mu();function u3e(e){return e&&e.length?p3e(e,d3e,m3e):void 0}olt.exports=u3e});var kN=Pe((kAn,slt)=>{var f3e=F2(),h3e=f1();function g3e(e,r,i){(i!==void 0&&!h3e(e[r],i)||i===void 0&&!(r in e))&&f3e(e,r,i)}slt.exports=g3e});var plt=Pe((IAn,clt)=>{var x3e=ku(),_3e=H2(),v3e=bm(),b3e="[object Object]",C3e=Function.prototype,y3e=Object.prototype,llt=C3e.toString,S3e=y3e.hasOwnProperty,w3e=llt.call(Object);function E3e(e){if(!v3e(e)||x3e(e)!=b3e)return!1;var r=_3e(e);if(r===null)return!0;var i=S3e.call(r,"constructor")&&r.constructor;return typeof i=="function"&&i instanceof i&&llt.call(i)==w3e}clt.exports=E3e});var IN=Pe((TAn,mlt)=>{function P3e(e,r){if(!(r==="constructor"&&typeof e[r]=="function")&&r!="__proto__")return e[r]}mlt.exports=P3e});var ult=Pe((MAn,dlt)=>{var k3e=Ax(),I3e=Tu();function T3e(e){return k3e(e,I3e(e))}dlt.exports=T3e});var vlt=Pe((DAn,_lt)=>{var flt=kN(),M3e=ER(),D3e=VR(),A3e=PR(),O3e=jR(),hlt=Ox(),glt=ms(),F3e=xN(),B3e=g1(),R3e=Ix(),N3e=Zc(),L3e=plt(),V3e=Rx(),xlt=IN(),z3e=ult();function j3e(e,r,i,o,n,c,u){var h=xlt(e,i),_=xlt(r,i),y=u.get(_);if(y){flt(e,i,y);return}var C=c?c(h,_,i+"",e,r,u):void 0,E=C===void 0;if(E){var T=glt(_),D=!T&&B3e(_),M=!T&&!D&&V3e(_);C=_,T||D||M?glt(h)?C=h:F3e(h)?C=A3e(h):D?(E=!1,C=M3e(_,!0)):M?(E=!1,C=D3e(_,!0)):C=[]:L3e(_)||hlt(_)?(C=h,hlt(h)?C=z3e(h):(!N3e(h)||R3e(h))&&(C=O3e(_))):E=!1}E&&(u.set(_,C),n(C,_,o,c,u),u.delete(_)),flt(e,i,C)}_lt.exports=j3e});var ylt=Pe((AAn,Clt)=>{var q3e=O2(),H3e=kN(),G3e=bI(),U3e=vlt(),$3e=Zc(),W3e=Tu(),Q3e=IN();function blt(e,r,i,o,n){e!==r&&G3e(r,function(c,u){if(n||(n=new q3e),$3e(c))U3e(e,r,u,i,blt,o,n);else{var h=o?o(Q3e(e,u),c,u+"",e,r,n):void 0;h===void 0&&(h=c),H3e(e,u,h)}},W3e)}Clt.exports=blt});var wlt=Pe((OAn,Slt)=>{var Y3e=Q2(),K3e=J2();function J3e(e){return Y3e(function(r,i){var o=-1,n=i.length,c=n>1?i[n-1]:void 0,u=n>2?i[2]:void 0;for(c=e.length>3&&typeof c=="function"?(n--,c):void 0,u&&K3e(i[0],i[1],u)&&(c=n<3?void 0:c,n=1),r=Object(r);++o{var Z3e=ylt(),X3e=wlt(),tSe=X3e(function(e,r,i){Z3e(e,r,i)});Elt.exports=tSe});var TN=Pe((BAn,klt)=>{function eSe(e,r){return e{var iSe=OI(),nSe=TN(),rSe=Mu();function oSe(e){return e&&e.length?iSe(e,rSe,nSe):void 0}Ilt.exports=oSe});var Dlt=Pe((NAn,Mlt)=>{var aSe=OI(),sSe=c0(),lSe=TN();function cSe(e,r){return e&&e.length?aSe(e,sSe(r,2),lSe):void 0}Mlt.exports=cSe});var Olt=Pe((LAn,Alt)=>{var pSe=jp(),mSe=function(){return pSe.Date.now()};Alt.exports=mSe});var Rlt=Pe((VAn,Blt)=>{var dSe=B2(),uSe=$2(),fSe=N2(),Flt=Zc(),hSe=Vx();function gSe(e,r,i,o){if(!Flt(e))return e;r=uSe(r,e);for(var n=-1,c=r.length,u=c-1,h=e;h!=null&&++n{var xSe=W2(),_Se=Rlt(),vSe=$2();function bSe(e,r,i){for(var o=-1,n=r.length,c={};++o{var CSe=Llt(),ySe=nN();function SSe(e,r){return CSe(e,r,function(i,o){return ySe(e,o)})}Vlt.exports=SSe});var qlt=Pe((qAn,jlt)=>{var wSe=PN(),ESe=uN(),PSe=fN();function kSe(e){return PSe(ESe(e,void 0,wSe),e+"")}jlt.exports=kSe});var Glt=Pe((HAn,Hlt)=>{var ISe=zlt(),TSe=qlt(),MSe=TSe(function(e,r){return e==null?{}:ISe(e,r)});Hlt.exports=MSe});var $lt=Pe((GAn,Ult)=>{var DSe=Math.ceil,ASe=Math.max;function OSe(e,r,i,o){for(var n=-1,c=ASe(DSe((r-e)/(i||1)),0),u=Array(c);c--;)u[o?c:++n]=e,e+=i;return u}Ult.exports=OSe});var Qlt=Pe((UAn,Wlt)=>{var FSe=$lt(),BSe=J2(),MN=EN();function RSe(e){return function(r,i,o){return o&&typeof o!="number"&&BSe(r,i,o)&&(i=o=void 0),r=MN(r),i===void 0?(i=r,r=0):i=MN(i),o=o===void 0?r{var NSe=Qlt(),LSe=NSe();Ylt.exports=LSe});var Zlt=Pe((WAn,Jlt)=>{function VSe(e,r){var i=e.length;for(e.sort(r);i--;)e[i]=e[i].value;return e}Jlt.exports=VSe});var ect=Pe((QAn,tct)=>{var Xlt=v1();function zSe(e,r){if(e!==r){var i=e!==void 0,o=e===null,n=e===e,c=Xlt(e),u=r!==void 0,h=r===null,_=r===r,y=Xlt(r);if(!h&&!y&&!c&&e>r||c&&u&&_&&!h&&!y||o&&u&&_||!i&&_||!n)return 1;if(!o&&!c&&!y&&e{var jSe=ect();function qSe(e,r,i){for(var o=-1,n=e.criteria,c=r.criteria,u=n.length,h=i.length;++o=h)return _;var y=i[o];return _*(y=="desc"?-1:1)}}return e.index-r.index}ict.exports=qSe});var oct=Pe((KAn,rct)=>{var DN=U2(),HSe=W2(),GSe=c0(),USe=lN(),$Se=Zlt(),WSe=L2(),QSe=nct(),YSe=Mu(),KSe=ms();function JSe(e,r,i){r.length?r=DN(r,function(c){return KSe(c)?function(u){return HSe(u,c.length===1?c[0]:c)}:c}):r=[YSe];var o=-1;r=DN(r,WSe(GSe));var n=USe(e,function(c,u,h){var _=DN(r,function(y){return y(c)});return{criteria:_,index:++o,value:c}});return $Se(n,function(c,u){return QSe(c,u,i)})}rct.exports=JSe});var lct=Pe((JAn,sct)=>{var ZSe=PI(),XSe=oct(),twe=Q2(),act=J2(),ewe=twe(function(e,r){if(e==null)return[];var i=r.length;return i>1&&act(e,r[0],r[1])?r=[]:i>2&&act(r[0],r[1],r[2])&&(r=[r[0]]),XSe(e,ZSe(r,1),[])});sct.exports=ewe});var pct=Pe((ZAn,cct)=>{var iwe=eN(),nwe=0;function rwe(e){var r=++nwe;return iwe(e)+r}cct.exports=rwe});var dct=Pe((XAn,mct)=>{function owe(e,r,i){for(var o=-1,n=e.length,c=r.length,u={};++o{var awe=B2(),swe=dct();function lwe(e,r){return swe(e||[],r||[],awe)}uct.exports=lwe});var Ma=Pe((e7n,hct)=>{var FI;if(typeof lm=="function")try{FI={cloneDeep:Pst(),constant:vI(),defaults:Mst(),each:UR(),filter:oN(),find:Qst(),flatten:PN(),forEach:GR(),forIn:Jst(),has:aN(),isUndefined:sN(),last:Xst(),map:cN(),mapValues:elt(),max:alt(),merge:Plt(),min:Tlt(),minBy:Dlt(),now:Olt(),pick:Glt(),range:Klt(),reduce:pN(),sortBy:lct(),uniqueId:pct(),values:_N(),zipObject:fct()}}catch{}FI||(FI=window._);hct.exports=FI});var _ct=Pe((n7n,xct)=>{xct.exports=BI;function BI(){var e={};e._next=e._prev=e,this._sentinel=e}BI.prototype.dequeue=function(){var e=this._sentinel,r=e._prev;if(r!==e)return gct(r),r};BI.prototype.enqueue=function(e){var r=this._sentinel;e._prev&&e._next&&gct(e),e._next=r._next,r._next._prev=e,r._next=e,e._prev=r};BI.prototype.toString=function(){for(var e=[],r=this._sentinel,i=r._prev;i!==r;)e.push(JSON.stringify(i,cwe)),i=i._prev;return"["+e.join(", ")+"]"};function gct(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function cwe(e,r){if(e!=="_next"&&e!=="_prev")return r}});var bct=Pe((r7n,vct)=>{var ld=Ma(),pwe=Hp().Graph,mwe=_ct();vct.exports=uwe;var dwe=ld.constant(1);function uwe(e,r){if(e.nodeCount()<=1)return[];var i=hwe(e,r||dwe),o=fwe(i.graph,i.buckets,i.zeroIdx);return ld.flatten(ld.map(o,function(n){return e.outEdges(n.v,n.w)}),!0)}function fwe(e,r,i){for(var o=[],n=r[r.length-1],c=r[0],u;e.nodeCount();){for(;u=c.dequeue();)AN(e,r,i,u);for(;u=n.dequeue();)AN(e,r,i,u);if(e.nodeCount()){for(var h=r.length-2;h>0;--h)if(u=r[h].dequeue(),u){o=o.concat(AN(e,r,i,u,!0));break}}}return o}function AN(e,r,i,o,n){var c=n?[]:void 0;return ld.forEach(e.inEdges(o.v),function(u){var h=e.edge(u),_=e.node(u.v);n&&c.push({v:u.v,w:u.w}),_.out-=h,ON(r,i,_)}),ld.forEach(e.outEdges(o.v),function(u){var h=e.edge(u),_=u.w,y=e.node(_);y.in-=h,ON(r,i,y)}),e.removeNode(o.v),c}function hwe(e,r){var i=new pwe,o=0,n=0;ld.forEach(e.nodes(),function(h){i.setNode(h,{v:h,in:0,out:0})}),ld.forEach(e.edges(),function(h){var _=i.edge(h.v,h.w)||0,y=r(h),C=_+y;i.setEdge(h.v,h.w,C),n=Math.max(n,i.node(h.v).out+=y),o=Math.max(o,i.node(h.w).in+=y)});var c=ld.range(n+o+3).map(function(){return new mwe}),u=o+1;return ld.forEach(i.nodes(),function(h){ON(c,u,i.node(h))}),{graph:i,buckets:c,zeroIdx:u}}function ON(e,r,i){i.out?i.in?e[i.out-i.in+r].enqueue(i):e[e.length-1].enqueue(i):e[0].enqueue(i)}});var yct=Pe((o7n,Cct)=>{"use strict";var C1=Ma(),gwe=bct();Cct.exports={run:xwe,undo:vwe};function xwe(e){var r=e.graph().acyclicer==="greedy"?gwe(e,i(e)):_we(e);C1.forEach(r,function(o){var n=e.edge(o);e.removeEdge(o),n.forwardName=o.name,n.reversed=!0,e.setEdge(o.w,o.v,n,C1.uniqueId("rev"))});function i(o){return function(n){return o.edge(n).weight}}}function _we(e){var r=[],i={},o={};function n(c){C1.has(o,c)||(o[c]=!0,i[c]=!0,C1.forEach(e.outEdges(c),function(u){C1.has(i,u.w)?r.push(u):n(u.w)}),delete i[c])}return C1.forEach(e.nodes(),n),r}function vwe(e){C1.forEach(e.edges(),function(r){var i=e.edge(r);if(i.reversed){e.removeEdge(r);var o=i.forwardName;delete i.reversed,delete i.forwardName,e.setEdge(r.w,r.v,i,o)}})}});var nc=Pe((a7n,Pct)=>{"use strict";var Ho=Ma(),Sct=Hp().Graph;Pct.exports={addDummyNode:wct,simplify:bwe,asNonCompoundGraph:Cwe,successorWeights:ywe,predecessorWeights:Swe,intersectRect:wwe,buildLayerMatrix:Ewe,normalizeRanks:Pwe,removeEmptyRanks:kwe,addBorderNode:Iwe,maxRank:Ect,partition:Twe,time:Mwe,notime:Dwe};function wct(e,r,i,o){var n;do n=Ho.uniqueId(o);while(e.hasNode(n));return i.dummy=r,e.setNode(n,i),n}function bwe(e){var r=new Sct().setGraph(e.graph());return Ho.forEach(e.nodes(),function(i){r.setNode(i,e.node(i))}),Ho.forEach(e.edges(),function(i){var o=r.edge(i.v,i.w)||{weight:0,minlen:1},n=e.edge(i);r.setEdge(i.v,i.w,{weight:o.weight+n.weight,minlen:Math.max(o.minlen,n.minlen)})}),r}function Cwe(e){var r=new Sct({multigraph:e.isMultigraph()}).setGraph(e.graph());return Ho.forEach(e.nodes(),function(i){e.children(i).length||r.setNode(i,e.node(i))}),Ho.forEach(e.edges(),function(i){r.setEdge(i,e.edge(i))}),r}function ywe(e){var r=Ho.map(e.nodes(),function(i){var o={};return Ho.forEach(e.outEdges(i),function(n){o[n.w]=(o[n.w]||0)+e.edge(n).weight}),o});return Ho.zipObject(e.nodes(),r)}function Swe(e){var r=Ho.map(e.nodes(),function(i){var o={};return Ho.forEach(e.inEdges(i),function(n){o[n.v]=(o[n.v]||0)+e.edge(n).weight}),o});return Ho.zipObject(e.nodes(),r)}function wwe(e,r){var i=e.x,o=e.y,n=r.x-i,c=r.y-o,u=e.width/2,h=e.height/2;if(!n&&!c)throw new Error("Not possible to find intersection inside of the rectangle");var _,y;return Math.abs(c)*u>Math.abs(n)*h?(c<0&&(h=-h),_=h*n/c,y=h):(n<0&&(u=-u),_=u,y=u*c/n),{x:i+_,y:o+y}}function Ewe(e){var r=Ho.map(Ho.range(Ect(e)+1),function(){return[]});return Ho.forEach(e.nodes(),function(i){var o=e.node(i),n=o.rank;Ho.isUndefined(n)||(r[n][o.order]=i)}),r}function Pwe(e){var r=Ho.min(Ho.map(e.nodes(),function(i){return e.node(i).rank}));Ho.forEach(e.nodes(),function(i){var o=e.node(i);Ho.has(o,"rank")&&(o.rank-=r)})}function kwe(e){var r=Ho.min(Ho.map(e.nodes(),function(c){return e.node(c).rank})),i=[];Ho.forEach(e.nodes(),function(c){var u=e.node(c).rank-r;i[u]||(i[u]=[]),i[u].push(c)});var o=0,n=e.graph().nodeRankFactor;Ho.forEach(i,function(c,u){Ho.isUndefined(c)&&u%n!==0?--o:o&&Ho.forEach(c,function(h){e.node(h).rank+=o})})}function Iwe(e,r,i,o){var n={width:0,height:0};return arguments.length>=4&&(n.rank=i,n.order=o),wct(e,"border",n,r)}function Ect(e){return Ho.max(Ho.map(e.nodes(),function(r){var i=e.node(r).rank;if(!Ho.isUndefined(i))return i}))}function Twe(e,r){var i={lhs:[],rhs:[]};return Ho.forEach(e,function(o){r(o)?i.lhs.push(o):i.rhs.push(o)}),i}function Mwe(e,r){var i=Ho.now();try{return r()}finally{console.log(e+" time: "+(Ho.now()-i)+"ms")}}function Dwe(e,r){return r()}});var Tct=Pe((s7n,Ict)=>{"use strict";var kct=Ma(),Awe=nc();Ict.exports={run:Owe,undo:Bwe};function Owe(e){e.graph().dummyChains=[],kct.forEach(e.edges(),function(r){Fwe(e,r)})}function Fwe(e,r){var i=r.v,o=e.node(i).rank,n=r.w,c=e.node(n).rank,u=r.name,h=e.edge(r),_=h.labelRank;if(c!==o+1){e.removeEdge(r);var y,C,E;for(E=0,++o;o{"use strict";var RI=Ma();Mct.exports={longestPath:Rwe,slack:Nwe};function Rwe(e){var r={};function i(o){var n=e.node(o);if(RI.has(r,o))return n.rank;r[o]=!0;var c=RI.min(RI.map(e.outEdges(o),function(u){return i(u.w)-e.edge(u).minlen}));return(c===Number.POSITIVE_INFINITY||c===void 0||c===null)&&(c=0),n.rank=c}RI.forEach(e.sources(),i)}function Nwe(e,r){return e.node(r.w).rank-e.node(r.v).rank-e.edge(r).minlen}});var FN=Pe((c7n,Dct)=>{"use strict";var NI=Ma(),Lwe=Hp().Graph,LI=Z2().slack;Dct.exports=Vwe;function Vwe(e){var r=new Lwe({directed:!1}),i=e.nodes()[0],o=e.nodeCount();r.setNode(i,{});for(var n,c;zwe(r,e){"use strict";var cd=Ma(),Hwe=FN(),Gwe=Z2().slack,Uwe=Z2().longestPath,$we=Hp().alg.preorder,Wwe=Hp().alg.postorder,Qwe=nc().simplify;Lct.exports=y1;y1.initLowLimValues=RN;y1.initCutValues=BN;y1.calcCutValue=Oct;y1.leaveEdge=Bct;y1.enterEdge=Rct;y1.exchangeEdges=Nct;function y1(e){e=Qwe(e),Uwe(e);var r=Hwe(e);RN(r),BN(r,e);for(var i,o;i=Bct(r);)o=Rct(r,e,i),Nct(r,e,i,o)}function BN(e,r){var i=Wwe(e,e.nodes());i=i.slice(0,i.length-1),cd.forEach(i,function(o){Ywe(e,r,o)})}function Ywe(e,r,i){var o=e.node(i),n=o.parent;e.edge(i,n).cutvalue=Oct(e,r,i)}function Oct(e,r,i){var o=e.node(i),n=o.parent,c=!0,u=r.edge(i,n),h=0;return u||(c=!1,u=r.edge(n,i)),h=u.weight,cd.forEach(r.nodeEdges(i),function(_){var y=_.v===i,C=y?_.w:_.v;if(C!==n){var E=y===c,T=r.edge(_).weight;if(h+=E?T:-T,Jwe(e,i,C)){var D=e.edge(i,C).cutvalue;h+=E?-D:D}}}),h}function RN(e,r){arguments.length<2&&(r=e.nodes()[0]),Fct(e,{},1,r)}function Fct(e,r,i,o,n){var c=i,u=e.node(o);return r[o]=!0,cd.forEach(e.neighbors(o),function(h){cd.has(r,h)||(i=Fct(e,r,i,h,o))}),u.low=c,u.lim=i++,n?u.parent=n:delete u.parent,i}function Bct(e){return cd.find(e.edges(),function(r){return e.edge(r).cutvalue<0})}function Rct(e,r,i){var o=i.v,n=i.w;r.hasEdge(o,n)||(o=i.w,n=i.v);var c=e.node(o),u=e.node(n),h=c,_=!1;c.lim>u.lim&&(h=u,_=!0);var y=cd.filter(r.edges(),function(C){return _===Act(e,e.node(C.v),h)&&_!==Act(e,e.node(C.w),h)});return cd.minBy(y,function(C){return Gwe(r,C)})}function Nct(e,r,i,o){var n=i.v,c=i.w;e.removeEdge(n,c),e.setEdge(o.v,o.w,{}),RN(e),BN(e,r),Kwe(e,r)}function Kwe(e,r){var i=cd.find(e.nodes(),function(n){return!r.node(n).parent}),o=$we(e,i);o=o.slice(1),cd.forEach(o,function(n){var c=e.node(n).parent,u=r.edge(n,c),h=!1;u||(u=r.edge(c,n),h=!0),r.node(n).rank=r.node(c).rank+(h?u.minlen:-u.minlen)})}function Jwe(e,r,i){return e.hasEdge(r,i)}function Act(e,r,i){return i.low<=r.lim&&r.lim<=i.lim}});var Hct=Pe((m7n,qct)=>{"use strict";var Zwe=Z2(),jct=Zwe.longestPath,Xwe=FN(),t4e=Vct();qct.exports=e4e;function e4e(e){switch(e.graph().ranker){case"network-simplex":zct(e);break;case"tight-tree":n4e(e);break;case"longest-path":i4e(e);break;default:zct(e)}}var i4e=jct;function n4e(e){jct(e),Xwe(e)}function zct(e){t4e(e)}});var Uct=Pe((d7n,Gct)=>{var NN=Ma();Gct.exports=r4e;function r4e(e){var r=a4e(e);NN.forEach(e.graph().dummyChains,function(i){for(var o=e.node(i),n=o.edgeObj,c=o4e(e,r,n.v,n.w),u=c.path,h=c.lca,_=0,y=u[_],C=!0;i!==n.w;){if(o=e.node(i),C){for(;(y=u[_])!==h&&e.node(y).maxRanku||h>r[_].lim));for(y=_,_=o;(_=e.parent(_))!==y;)c.push(_);return{path:n.concat(c.reverse()),lca:y}}function a4e(e){var r={},i=0;function o(n){var c=i;NN.forEach(e.children(n),o),r[n]={low:c,lim:i++}}return NN.forEach(e.children(),o),r}});var Qct=Pe((u7n,Wct)=>{var pd=Ma(),LN=nc();Wct.exports={run:s4e,cleanup:p4e};function s4e(e){var r=LN.addDummyNode(e,"root",{},"_root"),i=l4e(e),o=pd.max(pd.values(i))-1,n=2*o+1;e.graph().nestingRoot=r,pd.forEach(e.edges(),function(u){e.edge(u).minlen*=n});var c=c4e(e)+1;pd.forEach(e.children(),function(u){$ct(e,r,n,c,o,i,u)}),e.graph().nodeRankFactor=n}function $ct(e,r,i,o,n,c,u){var h=e.children(u);if(!h.length){u!==r&&e.setEdge(r,u,{weight:0,minlen:i});return}var _=LN.addBorderNode(e,"_bt"),y=LN.addBorderNode(e,"_bb"),C=e.node(u);e.setParent(_,u),C.borderTop=_,e.setParent(y,u),C.borderBottom=y,pd.forEach(h,function(E){$ct(e,r,i,o,n,c,E);var T=e.node(E),D=T.borderTop?T.borderTop:E,M=T.borderBottom?T.borderBottom:E,F=T.borderTop?o:2*o,B=D!==M?1:n-c[u]+1;e.setEdge(_,D,{weight:F,minlen:B,nestingEdge:!0}),e.setEdge(M,y,{weight:F,minlen:B,nestingEdge:!0})}),e.parent(u)||e.setEdge(r,_,{weight:0,minlen:n+c[u]})}function l4e(e){var r={};function i(o,n){var c=e.children(o);c&&c.length&&pd.forEach(c,function(u){i(u,n+1)}),r[o]=n}return pd.forEach(e.children(),function(o){i(o,1)}),r}function c4e(e){return pd.reduce(e.edges(),function(r,i){return r+e.edge(i).weight},0)}function p4e(e){var r=e.graph();e.removeNode(r.nestingRoot),delete r.nestingRoot,pd.forEach(e.edges(),function(i){var o=e.edge(i);o.nestingEdge&&e.removeEdge(i)})}});var Jct=Pe((f7n,Kct)=>{var VN=Ma(),m4e=nc();Kct.exports=d4e;function d4e(e){function r(i){var o=e.children(i),n=e.node(i);if(o.length&&VN.forEach(o,r),VN.has(n,"minRank")){n.borderLeft=[],n.borderRight=[];for(var c=n.minRank,u=n.maxRank+1;c{"use strict";var m0=Ma();tpt.exports={adjust:u4e,undo:f4e};function u4e(e){var r=e.graph().rankdir.toLowerCase();(r==="lr"||r==="rl")&&Xct(e)}function f4e(e){var r=e.graph().rankdir.toLowerCase();(r==="bt"||r==="rl")&&h4e(e),(r==="lr"||r==="rl")&&(g4e(e),Xct(e))}function Xct(e){m0.forEach(e.nodes(),function(r){Zct(e.node(r))}),m0.forEach(e.edges(),function(r){Zct(e.edge(r))})}function Zct(e){var r=e.width;e.width=e.height,e.height=r}function h4e(e){m0.forEach(e.nodes(),function(r){zN(e.node(r))}),m0.forEach(e.edges(),function(r){var i=e.edge(r);m0.forEach(i.points,zN),m0.has(i,"y")&&zN(i)})}function zN(e){e.y=-e.y}function g4e(e){m0.forEach(e.nodes(),function(r){jN(e.node(r))}),m0.forEach(e.edges(),function(r){var i=e.edge(r);m0.forEach(i.points,jN),m0.has(i,"x")&&jN(i)})}function jN(e){var r=e.x;e.x=e.y,e.y=r}});var npt=Pe((g7n,ipt)=>{"use strict";var md=Ma();ipt.exports=x4e;function x4e(e){var r={},i=md.filter(e.nodes(),function(h){return!e.children(h).length}),o=md.max(md.map(i,function(h){return e.node(h).rank})),n=md.map(md.range(o+1),function(){return[]});function c(h){if(!md.has(r,h)){r[h]=!0;var _=e.node(h);n[_.rank].push(h),md.forEach(e.successors(h),c)}}var u=md.sortBy(i,function(h){return e.node(h).rank});return md.forEach(u,c),n}});var opt=Pe((x7n,rpt)=>{"use strict";var Du=Ma();rpt.exports=_4e;function _4e(e,r){for(var i=0,o=1;o0;)C%2&&(E+=h[C+1]),C=C-1>>1,h[C]+=y.weight;_+=y.weight*E})),_}});var lpt=Pe((_7n,spt)=>{var apt=Ma();spt.exports=b4e;function b4e(e,r){return apt.map(r,function(i){var o=e.inEdges(i);if(o.length){var n=apt.reduce(o,function(c,u){var h=e.edge(u),_=e.node(u.v);return{sum:c.sum+h.weight*_.order,weight:c.weight+h.weight}},{sum:0,weight:0});return{v:i,barycenter:n.sum/n.weight,weight:n.weight}}else return{v:i}})}});var ppt=Pe((v7n,cpt)=>{"use strict";var tp=Ma();cpt.exports=C4e;function C4e(e,r){var i={};tp.forEach(e,function(n,c){var u=i[n.v]={indegree:0,in:[],out:[],vs:[n.v],i:c};tp.isUndefined(n.barycenter)||(u.barycenter=n.barycenter,u.weight=n.weight)}),tp.forEach(r.edges(),function(n){var c=i[n.v],u=i[n.w];!tp.isUndefined(c)&&!tp.isUndefined(u)&&(u.indegree++,c.out.push(i[n.w]))});var o=tp.filter(i,function(n){return!n.indegree});return y4e(o)}function y4e(e){var r=[];function i(c){return function(u){u.merged||(tp.isUndefined(u.barycenter)||tp.isUndefined(c.barycenter)||u.barycenter>=c.barycenter)&&S4e(c,u)}}function o(c){return function(u){u.in.push(c),--u.indegree===0&&e.push(u)}}for(;e.length;){var n=e.pop();r.push(n),tp.forEach(n.in.reverse(),i(n)),tp.forEach(n.out,o(n))}return tp.map(tp.filter(r,function(c){return!c.merged}),function(c){return tp.pick(c,["vs","i","barycenter","weight"])})}function S4e(e,r){var i=0,o=0;e.weight&&(i+=e.barycenter*e.weight,o+=e.weight),r.weight&&(i+=r.barycenter*r.weight,o+=r.weight),e.vs=r.vs.concat(e.vs),e.barycenter=i/o,e.weight=o,e.i=Math.min(r.i,e.i),r.merged=!0}});var upt=Pe((b7n,dpt)=>{var X2=Ma(),w4e=nc();dpt.exports=E4e;function E4e(e,r){var i=w4e.partition(e,function(C){return X2.has(C,"barycenter")}),o=i.lhs,n=X2.sortBy(i.rhs,function(C){return-C.i}),c=[],u=0,h=0,_=0;o.sort(P4e(!!r)),_=mpt(c,n,_),X2.forEach(o,function(C){_+=C.vs.length,c.push(C.vs),u+=C.barycenter*C.weight,h+=C.weight,_=mpt(c,n,_)});var y={vs:X2.flatten(c,!0)};return h&&(y.barycenter=u/h,y.weight=h),y}function mpt(e,r,i){for(var o;r.length&&(o=X2.last(r)).i<=i;)r.pop(),e.push(o.vs),i++;return i}function P4e(e){return function(r,i){return r.barycenteri.barycenter?1:e?i.i-r.i:r.i-i.i}}});var gpt=Pe((C7n,hpt)=>{var Au=Ma(),k4e=lpt(),I4e=ppt(),T4e=upt();hpt.exports=fpt;function fpt(e,r,i,o){var n=e.children(r),c=e.node(r),u=c?c.borderLeft:void 0,h=c?c.borderRight:void 0,_={};u&&(n=Au.filter(n,function(M){return M!==u&&M!==h}));var y=k4e(e,n);Au.forEach(y,function(M){if(e.children(M.v).length){var F=fpt(e,M.v,i,o);_[M.v]=F,Au.has(F,"barycenter")&&D4e(M,F)}});var C=I4e(y,i);M4e(C,_);var E=T4e(C,o);if(u&&(E.vs=Au.flatten([u,E.vs,h],!0),e.predecessors(u).length)){var T=e.node(e.predecessors(u)[0]),D=e.node(e.predecessors(h)[0]);Au.has(E,"barycenter")||(E.barycenter=0,E.weight=0),E.barycenter=(E.barycenter*E.weight+T.order+D.order)/(E.weight+2),E.weight+=2}return E}function M4e(e,r){Au.forEach(e,function(i){i.vs=Au.flatten(i.vs.map(function(o){return r[o]?r[o].vs:o}),!0)})}function D4e(e,r){Au.isUndefined(e.barycenter)?(e.barycenter=r.barycenter,e.weight=r.weight):(e.barycenter=(e.barycenter*e.weight+r.barycenter*r.weight)/(e.weight+r.weight),e.weight+=r.weight)}});var _pt=Pe((y7n,xpt)=>{var tC=Ma(),A4e=Hp().Graph;xpt.exports=O4e;function O4e(e,r,i){var o=F4e(e),n=new A4e({compound:!0}).setGraph({root:o}).setDefaultNodeLabel(function(c){return e.node(c)});return tC.forEach(e.nodes(),function(c){var u=e.node(c),h=e.parent(c);(u.rank===r||u.minRank<=r&&r<=u.maxRank)&&(n.setNode(c),n.setParent(c,h||o),tC.forEach(e[i](c),function(_){var y=_.v===c?_.w:_.v,C=n.edge(y,c),E=tC.isUndefined(C)?0:C.weight;n.setEdge(y,c,{weight:e.edge(_).weight+E})}),tC.has(u,"minRank")&&n.setNode(c,{borderLeft:u.borderLeft[r],borderRight:u.borderRight[r]}))}),n}function F4e(e){for(var r;e.hasNode(r=tC.uniqueId("_root")););return r}});var bpt=Pe((S7n,vpt)=>{var B4e=Ma();vpt.exports=R4e;function R4e(e,r,i){var o={},n;B4e.forEach(i,function(c){for(var u=e.parent(c),h,_;u;){if(h=e.parent(u),h?(_=o[h],o[h]=u):(_=n,n=u),_&&_!==u){r.setEdge(_,u);return}u=h}})}});var Ept=Pe((w7n,wpt)=>{"use strict";var Ou=Ma(),N4e=npt(),L4e=opt(),V4e=gpt(),z4e=_pt(),j4e=bpt(),q4e=Hp().Graph,Cpt=nc();wpt.exports=H4e;function H4e(e){var r=Cpt.maxRank(e),i=ypt(e,Ou.range(1,r+1),"inEdges"),o=ypt(e,Ou.range(r-1,-1,-1),"outEdges"),n=N4e(e);Spt(e,n);for(var c=Number.POSITIVE_INFINITY,u,h=0,_=0;_<4;++h,++_){G4e(h%2?i:o,h%4>=2),n=Cpt.buildLayerMatrix(e);var y=L4e(e,n);y{"use strict";var Gr=Ma(),U4e=Hp().Graph,$4e=nc();Fpt.exports={positionX:Y4e,findType1Conflicts:Ppt,findType2Conflicts:kpt,addConflict:qN,hasConflict:Ipt,verticalAlignment:Tpt,horizontalCompaction:Mpt,alignCoordinates:Apt,findSmallestWidthAlignment:Dpt,balance:Opt};function Ppt(e,r){var i={};function o(n,c){var u=0,h=0,_=n.length,y=Gr.last(c);return Gr.forEach(c,function(C,E){var T=W4e(e,C),D=T?e.node(T).order:_;(T||C===y)&&(Gr.forEach(c.slice(h,E+1),function(M){Gr.forEach(e.predecessors(M),function(F){var B=e.node(F),z=B.order;(zy)&&qN(i,T,C)})})}function n(c,u){var h=-1,_,y=0;return Gr.forEach(u,function(C,E){if(e.node(C).dummy==="border"){var T=e.predecessors(C);T.length&&(_=e.node(T[0]).order,o(u,y,E,h,_),y=E,h=_)}o(u,y,u.length,_,c.length)}),u}return Gr.reduce(r,n),i}function W4e(e,r){if(e.node(r).dummy)return Gr.find(e.predecessors(r),function(i){return e.node(i).dummy})}function qN(e,r,i){if(r>i){var o=r;r=i,i=o}var n=e[r];n||(e[r]=n={}),n[i]=!0}function Ipt(e,r,i){if(r>i){var o=r;r=i,i=o}return Gr.has(e[r],i)}function Tpt(e,r,i,o){var n={},c={},u={};return Gr.forEach(r,function(h){Gr.forEach(h,function(_,y){n[_]=_,c[_]=_,u[_]=y})}),Gr.forEach(r,function(h){var _=-1;Gr.forEach(h,function(y){var C=o(y);if(C.length){C=Gr.sortBy(C,function(F){return u[F]});for(var E=(C.length-1)/2,T=Math.floor(E),D=Math.ceil(E);T<=D;++T){var M=C[T];c[y]===y&&_{"use strict";var eC=Ma(),Rpt=nc(),Z4e=Bpt().positionX;Npt.exports=X4e;function X4e(e){e=Rpt.asNonCompoundGraph(e),t5e(e),eC.forEach(Z4e(e),function(r,i){e.node(i).x=r})}function t5e(e){var r=Rpt.buildLayerMatrix(e),i=e.graph().ranksep,o=0;eC.forEach(r,function(n){var c=eC.max(eC.map(n,function(u){return e.node(u).height}));eC.forEach(n,function(u){e.node(u).y=o+c/2}),o+=c+i})}});var Gpt=Pe((k7n,Hpt)=>{"use strict";var lo=Ma(),Vpt=yct(),zpt=Tct(),e5e=Hct(),i5e=nc().normalizeRanks,n5e=Uct(),r5e=nc().removeEmptyRanks,jpt=Qct(),o5e=Jct(),qpt=ept(),a5e=Ept(),s5e=Lpt(),Fu=nc(),l5e=Hp().Graph;Hpt.exports=c5e;function c5e(e,r){var i=r&&r.debugTiming?Fu.time:Fu.notime;i("layout",function(){var o=i(" buildLayoutGraph",function(){return b5e(e)});i(" runLayout",function(){p5e(o,i)}),i(" updateInputGraph",function(){m5e(e,o)})})}function p5e(e,r){r(" makeSpaceForEdgeLabels",function(){C5e(e)}),r(" removeSelfEdges",function(){M5e(e)}),r(" acyclic",function(){Vpt.run(e)}),r(" nestingGraph.run",function(){jpt.run(e)}),r(" rank",function(){e5e(Fu.asNonCompoundGraph(e))}),r(" injectEdgeLabelProxies",function(){y5e(e)}),r(" removeEmptyRanks",function(){r5e(e)}),r(" nestingGraph.cleanup",function(){jpt.cleanup(e)}),r(" normalizeRanks",function(){i5e(e)}),r(" assignRankMinMax",function(){S5e(e)}),r(" removeEdgeLabelProxies",function(){w5e(e)}),r(" normalize.run",function(){zpt.run(e)}),r(" parentDummyChains",function(){n5e(e)}),r(" addBorderSegments",function(){o5e(e)}),r(" order",function(){a5e(e)}),r(" insertSelfEdges",function(){D5e(e)}),r(" adjustCoordinateSystem",function(){qpt.adjust(e)}),r(" position",function(){s5e(e)}),r(" positionSelfEdges",function(){A5e(e)}),r(" removeBorderNodes",function(){T5e(e)}),r(" normalize.undo",function(){zpt.undo(e)}),r(" fixupEdgeLabelCoords",function(){k5e(e)}),r(" undoCoordinateSystem",function(){qpt.undo(e)}),r(" translateGraph",function(){E5e(e)}),r(" assignNodeIntersects",function(){P5e(e)}),r(" reversePoints",function(){I5e(e)}),r(" acyclic.undo",function(){Vpt.undo(e)})}function m5e(e,r){lo.forEach(e.nodes(),function(i){var o=e.node(i),n=r.node(i);o&&(o.x=n.x,o.y=n.y,r.children(i).length&&(o.width=n.width,o.height=n.height))}),lo.forEach(e.edges(),function(i){var o=e.edge(i),n=r.edge(i);o.points=n.points,lo.has(n,"x")&&(o.x=n.x,o.y=n.y)}),e.graph().width=r.graph().width,e.graph().height=r.graph().height}var d5e=["nodesep","edgesep","ranksep","marginx","marginy"],u5e={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},f5e=["acyclicer","ranker","rankdir","align"],h5e=["width","height"],g5e={width:0,height:0},x5e=["minlen","weight","width","height","labeloffset"],_5e={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},v5e=["labelpos"];function b5e(e){var r=new l5e({multigraph:!0,compound:!0}),i=GN(e.graph());return r.setGraph(lo.merge({},u5e,HN(i,d5e),lo.pick(i,f5e))),lo.forEach(e.nodes(),function(o){var n=GN(e.node(o));r.setNode(o,lo.defaults(HN(n,h5e),g5e)),r.setParent(o,e.parent(o))}),lo.forEach(e.edges(),function(o){var n=GN(e.edge(o));r.setEdge(o,lo.merge({},_5e,HN(n,x5e),lo.pick(n,v5e)))}),r}function C5e(e){var r=e.graph();r.ranksep/=2,lo.forEach(e.edges(),function(i){var o=e.edge(i);o.minlen*=2,o.labelpos.toLowerCase()!=="c"&&(r.rankdir==="TB"||r.rankdir==="BT"?o.width+=o.labeloffset:o.height+=o.labeloffset)})}function y5e(e){lo.forEach(e.edges(),function(r){var i=e.edge(r);if(i.width&&i.height){var o=e.node(r.v),n=e.node(r.w),c={rank:(n.rank-o.rank)/2+o.rank,e:r};Fu.addDummyNode(e,"edge-proxy",c,"_ep")}})}function S5e(e){var r=0;lo.forEach(e.nodes(),function(i){var o=e.node(i);o.borderTop&&(o.minRank=e.node(o.borderTop).rank,o.maxRank=e.node(o.borderBottom).rank,r=lo.max(r,o.maxRank))}),e.graph().maxRank=r}function w5e(e){lo.forEach(e.nodes(),function(r){var i=e.node(r);i.dummy==="edge-proxy"&&(e.edge(i.e).labelRank=i.rank,e.removeNode(r))})}function E5e(e){var r=Number.POSITIVE_INFINITY,i=0,o=Number.POSITIVE_INFINITY,n=0,c=e.graph(),u=c.marginx||0,h=c.marginy||0;function _(y){var C=y.x,E=y.y,T=y.width,D=y.height;r=Math.min(r,C-T/2),i=Math.max(i,C+T/2),o=Math.min(o,E-D/2),n=Math.max(n,E+D/2)}lo.forEach(e.nodes(),function(y){_(e.node(y))}),lo.forEach(e.edges(),function(y){var C=e.edge(y);lo.has(C,"x")&&_(C)}),r-=u,o-=h,lo.forEach(e.nodes(),function(y){var C=e.node(y);C.x-=r,C.y-=o}),lo.forEach(e.edges(),function(y){var C=e.edge(y);lo.forEach(C.points,function(E){E.x-=r,E.y-=o}),lo.has(C,"x")&&(C.x-=r),lo.has(C,"y")&&(C.y-=o)}),c.width=i-r+u,c.height=n-o+h}function P5e(e){lo.forEach(e.edges(),function(r){var i=e.edge(r),o=e.node(r.v),n=e.node(r.w),c,u;i.points?(c=i.points[0],u=i.points[i.points.length-1]):(i.points=[],c=n,u=o),i.points.unshift(Fu.intersectRect(o,c)),i.points.push(Fu.intersectRect(n,u))})}function k5e(e){lo.forEach(e.edges(),function(r){var i=e.edge(r);if(lo.has(i,"x"))switch((i.labelpos==="l"||i.labelpos==="r")&&(i.width-=i.labeloffset),i.labelpos){case"l":i.x-=i.width/2+i.labeloffset;break;case"r":i.x+=i.width/2+i.labeloffset;break}})}function I5e(e){lo.forEach(e.edges(),function(r){var i=e.edge(r);i.reversed&&i.points.reverse()})}function T5e(e){lo.forEach(e.nodes(),function(r){if(e.children(r).length){var i=e.node(r),o=e.node(i.borderTop),n=e.node(i.borderBottom),c=e.node(lo.last(i.borderLeft)),u=e.node(lo.last(i.borderRight));i.width=Math.abs(u.x-c.x),i.height=Math.abs(n.y-o.y),i.x=c.x+i.width/2,i.y=o.y+i.height/2}}),lo.forEach(e.nodes(),function(r){e.node(r).dummy==="border"&&e.removeNode(r)})}function M5e(e){lo.forEach(e.edges(),function(r){if(r.v===r.w){var i=e.node(r.v);i.selfEdges||(i.selfEdges=[]),i.selfEdges.push({e:r,label:e.edge(r)}),e.removeEdge(r)}})}function D5e(e){var r=Fu.buildLayerMatrix(e);lo.forEach(r,function(i){var o=0;lo.forEach(i,function(n,c){var u=e.node(n);u.order=c+o,lo.forEach(u.selfEdges,function(h){Fu.addDummyNode(e,"selfedge",{width:h.label.width,height:h.label.height,rank:u.rank,order:c+ ++o,e:h.e,label:h.label},"_se")}),delete u.selfEdges})})}function A5e(e){lo.forEach(e.nodes(),function(r){var i=e.node(r);if(i.dummy==="selfedge"){var o=e.node(i.e.v),n=o.x+o.width/2,c=o.y,u=i.x-n,h=o.height/2;e.setEdge(i.e,i.label),e.removeNode(r),i.label.points=[{x:n+2*u/3,y:c-h},{x:n+5*u/6,y:c-h},{x:n+u,y:c},{x:n+5*u/6,y:c+h},{x:n+2*u/3,y:c+h}],i.label.x=i.x,i.label.y=i.y}})}function HN(e,r){return lo.mapValues(lo.pick(e,r),Number)}function GN(e){var r={};return lo.forEach(e,function(i,o){r[o.toLowerCase()]=i}),r}});var $pt=Pe((I7n,Upt)=>{var VI=Ma(),O5e=nc(),F5e=Hp().Graph;Upt.exports={debugOrdering:B5e};function B5e(e){var r=O5e.buildLayerMatrix(e),i=new F5e({compound:!0,multigraph:!0}).setGraph({});return VI.forEach(e.nodes(),function(o){i.setNode(o,{label:o}),i.setParent(o,"layer"+e.node(o).rank)}),VI.forEach(e.edges(),function(o){i.setEdge(o.v,o.w,{},o.name)}),VI.forEach(r,function(o,n){var c="layer"+n;i.setNode(c,{rank:"same"}),VI.reduce(o,function(u,h){return i.setEdge(u,h,{style:"invis"}),h})}),i}});var Qpt=Pe((T7n,Wpt)=>{Wpt.exports="0.8.5"});var Kpt=Pe((M7n,Ypt)=>{Ypt.exports={graphlib:Hp(),layout:Gpt(),debug:$pt(),util:{time:nc().time,notime:nc().notime},version:Qpt()}});var QN=Pe(Bu=>{"use strict";Object.defineProperty(Bu,"__esModule",{value:!0});var WN=function(){function e(r,i,o){this.source=r,this.target=i,this.type=o}return e}();Bu.PowerEdge=WN;var Smt=function(){function e(r,i,o,n){var c=this;if(this.linkAccessor=o,this.modules=new Array(r),this.roots=[],n)this.initModulesFromGroup(n);else{this.roots.push(new zx);for(var u=0;u=this.R))return this.merge(o.a,o.b,r),!0}},e.prototype.nEdges=function(r,i){var o=r.incoming.intersection(i.incoming),n=r.outgoing.intersection(i.outgoing);return this.R-o.count()-n.count()},e.prototype.getGroupHierarchy=function(r){var i=this,o=[],n={};wmt(this.roots[0],n,o);var c=this.allEdges();return c.forEach(function(u){var h=i.modules[u.source],_=i.modules[u.target];r.push(new WN(typeof h.gid>"u"?u.source:o[h.gid],typeof _.gid>"u"?u.target:o[_.gid],u.type))}),o},e.prototype.allEdges=function(){var r=[];return e.getEdges(this.roots[0],r),r},e.getEdges=function(r,i){r.forAll(function(o){o.getEdges(i),e.getEdges(o.children,i)})},e}();Bu.Configuration=Smt;function wmt(e,r,i){e.forAll(function(o){if(o.isLeaf())r.leaves||(r.leaves=[]),r.leaves.push(o.id);else{var n=r;if(o.gid=i.length,!o.isIsland()||o.isPredefined()){if(n={id:o.gid},o.isPredefined())for(var c in o.definition)n[c]=o.definition[c];r.groups||(r.groups=[]),r.groups.push(o.gid),i.push(n)}wmt(o.children,n,i)}})}var iC=function(){function e(r,i,o,n,c){i===void 0&&(i=new nC),o===void 0&&(o=new nC),n===void 0&&(n=new zx),this.id=r,this.outgoing=i,this.incoming=o,this.children=n,this.definition=c}return e.prototype.getEdges=function(r){var i=this;this.outgoing.forAll(function(o,n){o.forAll(function(c){r.push(new WN(i.id,c.id,n))})})},e.prototype.isLeaf=function(){return this.children.count()===0},e.prototype.isIsland=function(){return this.outgoing.count()===0&&this.incoming.count()===0},e.prototype.isPredefined=function(){return typeof this.definition<"u"},e}();Bu.Module=iC;function j5e(e,r){var i={};for(var o in e)o in r&&(i[o]=e[o]);return i}var zx=function(){function e(){this.table={}}return e.prototype.count=function(){return Object.keys(this.table).length},e.prototype.intersection=function(r){var i=new e;return i.table=j5e(this.table,r.table),i},e.prototype.intersectionCount=function(r){return this.intersection(r).count()},e.prototype.contains=function(r){return r in this.table},e.prototype.add=function(r){this.table[r.id]=r},e.prototype.remove=function(r){delete this.table[r.id]},e.prototype.forAll=function(r){for(var i in this.table)r(this.table[i])},e.prototype.modules=function(){var r=[];return this.forAll(function(i){i.isPredefined()||r.push(i)}),r},e}();Bu.ModuleSet=zx;var nC=function(){function e(){this.sets={},this.n=0}return e.prototype.count=function(){return this.n},e.prototype.contains=function(r){var i=!1;return this.forAllModules(function(o){!i&&o.id==r&&(i=!0)}),i},e.prototype.add=function(r,i){var o=r in this.sets?this.sets[r]:this.sets[r]=new zx;o.add(i),++this.n},e.prototype.remove=function(r,i){var o=this.sets[r];o.remove(i),o.count()===0&&delete this.sets[r],--this.n},e.prototype.forAll=function(r){for(var i in this.sets)r(this.sets[i],Number(i))},e.prototype.forAllModules=function(r){this.forAll(function(i,o){return i.forAll(r)})},e.prototype.intersection=function(r){var i=new e;return this.forAll(function(o,n){if(n in r.sets){var c=o.intersection(r.sets[n]),u=c.count();u>0&&(i.sets[n]=c,i.n+=u)}}),i},e}();Bu.LinkSets=nC;function q5e(e,r,i,o){for(var n=e.length,c=new Smt(n,r,i,o);c.greedyMerge(););var u=[],h=c.getGroupHierarchy(u);return u.forEach(function(_){var y=function(C){var E=_[C];typeof E=="number"&&(_[C]=e[E])};y("source"),y("target")}),{groups:h,powerEdges:u}}Bu.getGroups=q5e});var GI=Pe(jx=>{"use strict";Object.defineProperty(jx,"__esModule",{value:!0});function Emt(e,r){var i={};for(var o in e)i[o]={};for(var o in r)i[o]={};return Object.keys(i).length}function Pmt(e,r){var i=0;for(var o in e)typeof r[o]<"u"&&++i;return i}function H5e(e,r){var i={},o=function(n,c){typeof i[n]>"u"&&(i[n]={}),i[n][c]={}};return e.forEach(function(n){var c=r.getSourceIndex(n),u=r.getTargetIndex(n);o(c,u),o(u,c)}),i}function kmt(e,r,i,o){var n=H5e(e,o);e.forEach(function(c){var u=n[o.getSourceIndex(c)],h=n[o.getTargetIndex(c)];o.setLength(c,1+r*i(u,h))})}function G5e(e,r,i){i===void 0&&(i=1),kmt(e,i,function(o,n){return Math.sqrt(Emt(o,n)-Pmt(o,n))},r)}jx.symmetricDiffLinkLengths=G5e;function U5e(e,r,i){i===void 0&&(i=1),kmt(e,i,function(o,n){return Math.min(Object.keys(o).length,Object.keys(n).length)<1.1?0:Pmt(o,n)/Emt(o,n)},r)}jx.jaccardLinkLengths=U5e;function $5e(e,r,i,o){var n=Imt(e,r,o),c={};n.forEach(function(h,_){return h.forEach(function(y){return c[y]=_})});var u=[];return r.forEach(function(h){var _=o.getSourceIndex(h),y=o.getTargetIndex(h),C=c[_],E=c[y];C!==E&&u.push({axis:i,left:_,right:y,gap:o.getMinSeparation(h)})}),u}jx.generateDirectedEdgeConstraints=$5e;function Imt(e,r,i){var o=[],n=0,c=[],u=[];function h(z){z.index=z.lowlink=n++,c.push(z),z.onStack=!0;for(var $=0,tt=z.out;$"u"?(h(lt),z.lowlink=Math.min(z.lowlink,lt.lowlink)):lt.onStack&&(z.lowlink=Math.min(z.lowlink,lt.index))}if(z.lowlink===z.index){for(var gt=[];c.length&&(lt=c.pop(),lt.onStack=!1,gt.push(lt),lt!==z););u.push(gt.map(function(X){return X.id}))}}for(var _=0;_"u"&&h(B)}return u}jx.stronglyConnectedComponents=Imt});var UI=Pe(rC=>{"use strict";Object.defineProperty(rC,"__esModule",{value:!0});var Tmt=function(){function e(){this.locks={}}return e.prototype.add=function(r,i){this.locks[r]=i},e.prototype.clear=function(){this.locks={}},e.prototype.isEmpty=function(){for(var r in this.locks)return!1;return!0},e.prototype.apply=function(r){for(var i in this.locks)r(Number(i),this.locks[i])},e}();rC.Locks=Tmt;var W5e=function(){function e(r,i,o){o===void 0&&(o=null),this.D=i,this.G=o,this.threshold=1e-4,this.numGridSnapNodes=0,this.snapGridSize=100,this.snapStrength=1e3,this.scaleSnapByMaxH=!1,this.random=new Mmt,this.project=null,this.x=r,this.k=r.length;var n=this.n=r[0].length;this.H=new Array(this.k),this.g=new Array(this.k),this.Hd=new Array(this.k),this.a=new Array(this.k),this.b=new Array(this.k),this.c=new Array(this.k),this.d=new Array(this.k),this.e=new Array(this.k),this.ia=new Array(this.k),this.ib=new Array(this.k),this.xtmp=new Array(this.k),this.locks=new Tmt,this.minD=Number.MAX_VALUE;for(var c=n,u;c--;)for(u=n;--u>c;){var h=i[c][u];h>0&&h1e-9)break;var M=this.offsetDir();for(n=0;n1&&F>B||!isFinite(B)){for(n=0;n1&&(z=1);var $=B*B,tt=2*z*(F-B)/($*F),lt=F*F*F,gt=2*-z/($*lt);for(isFinite(tt)||console.log(tt),n=0;n0?Z-(R+1)*mt:Z-(R-1)*mt;-X0;)for(var c=i;c-- >0;)o(n,c)},e.prototype.matrixApply=function(r){e.mApply(this.k,this.n,r)},e.prototype.computeNextPosition=function(r,i){var o=this;this.computeDerivatives(r);var n=this.computeStepSize(this.g);if(this.stepAndProject(r,i,this.g,n),this.project){this.matrixApply(function(u,h){return o.e[u][h]=r[u][h]-i[u][h]});var c=this.computeStepSize(this.e);c=Math.max(.2,Math.min(c,1)),this.stepAndProject(r,i,this.e,c)}},e.prototype.run=function(r){for(var i=Number.MAX_VALUE,o=!1;!o&&r-- >0;){var n=this.rungeKutta();o=Math.abs(i/n-1)>16)/this.range},e.prototype.getNextBetween=function(r,i){return r+this.getNext()*(i-r)},e}();rC.PseudoRandom=Mmt});var QI=Pe(dd=>{"use strict";Object.defineProperty(dd,"__esModule",{value:!0});var Dmt=function(){function e(r){this.scale=r,this.AB=0,this.AD=0,this.A2=0}return e.prototype.addVariable=function(r){var i=this.scale/r.scale,o=r.offset/r.scale,n=r.weight;this.AB+=n*i*o,this.AD+=n*i*r.desiredPosition,this.A2+=n*i*i},e.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},e}();dd.PositionStats=Dmt;var $I=function(){function e(r,i,o,n){n===void 0&&(n=!1),this.left=r,this.right=i,this.gap=o,this.equality=n,this.active=!1,this.unsatisfiable=!1,this.left=r,this.right=i,this.gap=o,this.equality=n}return e.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},e}();dd.Constraint=$I;var WI=function(){function e(r,i,o){i===void 0&&(i=1),o===void 0&&(o=1),this.desiredPosition=r,this.weight=i,this.scale=o,this.offset=0}return e.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},e.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},e.prototype.visitNeighbours=function(r,i){var o=function(n,c){return n.active&&r!==c&&i(n,c)};this.cOut.forEach(function(n){return o(n,n.right)}),this.cIn.forEach(function(n){return o(n,n.left)})},e}();dd.Variable=WI;var YN=function(){function e(r){this.vars=[],r.offset=0,this.ps=new Dmt(r.scale),this.addVariable(r)}return e.prototype.addVariable=function(r){r.block=this,this.vars.push(r),this.ps.addVariable(r),this.posn=this.ps.getPosn()},e.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var r=0,i=this.vars.length;r=0?this.inactive.push(r):this.bs.merge(r)}}},e.prototype.solve=function(){this.satisfy();for(var r=Number.MAX_VALUE,i=this.bs.cost();Math.abs(r-i)>1e-4;)this.satisfy(),r=i,i=this.bs.cost();return i},e.LAGRANGIAN_TOLERANCE=-1e-4,e.ZERO_UPPERBOUND=-1e-10,e}();dd.Solver=JN;function Q5e(e,r,i){for(var o=e.map(function(B){return new WI(B.desiredCenter)}),n=[],c=e.length,u=0;u{"use strict";var Y5e=w1&&w1.__extends||function(){var e=function(r,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var c in n)n.hasOwnProperty(c)&&(o[c]=n[c])},e(r,i)};return function(r,i){e(r,i);function o(){this.constructor=r}r.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}}();Object.defineProperty(w1,"__esModule",{value:!0});var Amt=function(){function e(){this.findIter=function(r){for(var i=this._root,o=this.iterator();i!==null;){var n=this._comparator(r,i.data);if(n===0)return o._cursor=i,o;o._ancestors.push(i),i=i.get_child(n>0)}return null}}return e.prototype.clear=function(){this._root=null,this.size=0},e.prototype.find=function(r){for(var i=this._root;i!==null;){var o=this._comparator(r,i.data);if(o===0)return i.data;i=i.get_child(o>0)}return null},e.prototype.lowerBound=function(r){return this._bound(r,this._comparator)},e.prototype.upperBound=function(r){var i=this._comparator;function o(n,c){return i(c,n)}return this._bound(r,o)},e.prototype.min=function(){var r=this._root;if(r===null)return null;for(;r.left!==null;)r=r.left;return r.data},e.prototype.max=function(){var r=this._root;if(r===null)return null;for(;r.right!==null;)r=r.right;return r.data},e.prototype.iterator=function(){return new Omt(this)},e.prototype.each=function(r){for(var i=this.iterator(),o;(o=i.next())!==null;)r(o)},e.prototype.reach=function(r){for(var i=this.iterator(),o;(o=i.prev())!==null;)r(o)},e.prototype._bound=function(r,i){for(var o=this._root,n=this.iterator();o!==null;){var c=this._comparator(r,o.data);if(c===0)return n._cursor=o,n;n._ancestors.push(o),o=o.get_child(c>0)}for(var u=n._ancestors.length-1;u>=0;--u)if(o=n._ancestors[u],i(r,o.data)>0)return n._cursor=o,n._ancestors.length=u,n;return n._ancestors.length=0,n},e}();w1.TreeBase=Amt;var Omt=function(){function e(r){this._tree=r,this._ancestors=[],this._cursor=null}return e.prototype.data=function(){return this._cursor!==null?this._cursor.data:null},e.prototype.next=function(){if(this._cursor===null){var r=this._tree._root;r!==null&&this._minNode(r)}else if(this._cursor.right===null){var i;do if(i=this._cursor,this._ancestors.length)this._cursor=this._ancestors.pop();else{this._cursor=null;break}while(this._cursor.right===i)}else this._ancestors.push(this._cursor),this._minNode(this._cursor.right);return this._cursor!==null?this._cursor.data:null},e.prototype.prev=function(){if(this._cursor===null){var r=this._tree._root;r!==null&&this._maxNode(r)}else if(this._cursor.left===null){var i;do if(i=this._cursor,this._ancestors.length)this._cursor=this._ancestors.pop();else{this._cursor=null;break}while(this._cursor.left===i)}else this._ancestors.push(this._cursor),this._maxNode(this._cursor.left);return this._cursor!==null?this._cursor.data:null},e.prototype._minNode=function(r){for(;r.left!==null;)this._ancestors.push(r),r=r.left;this._cursor=r},e.prototype._maxNode=function(r){for(;r.right!==null;)this._ancestors.push(r),r=r.right;this._cursor=r},e}();w1.Iterator=Omt;var YI=function(){function e(r){this.data=r,this.left=null,this.right=null,this.red=!0}return e.prototype.get_child=function(r){return r?this.right:this.left},e.prototype.set_child=function(r,i){r?this.right=i:this.left=i},e}(),K5e=function(e){Y5e(r,e);function r(i){var o=e.call(this)||this;return o._root=null,o._comparator=i,o.size=0,o}return r.prototype.insert=function(i){var o=!1;if(this._root===null)this._root=new YI(i),o=!0,this.size++;else{var n=new YI(void 0),c=!1,u=!1,h=null,_=n,y=null,C=this._root;for(_.right=this._root;;){if(C===null?(C=new YI(i),y.set_child(c,C),o=!0,this.size++):r.is_red(C.left)&&r.is_red(C.right)&&(C.red=!0,C.left.red=!1,C.right.red=!1),r.is_red(C)&&r.is_red(y)){var E=_.right===h;C===y.get_child(u)?_.set_child(E,r.single_rotate(h,!u)):_.set_child(E,r.double_rotate(h,!u))}var T=this._comparator(C.data,i);if(T===0)break;u=c,c=T<0,h!==null&&(_=h),h=y,y=C,C=C.get_child(c)}this._root=n.right}return this._root.red=!1,o},r.prototype.remove=function(i){if(this._root===null)return!1;var o=new YI(void 0),n=o;n.right=this._root;for(var c=null,u=null,h=null,_=!0;n.get_child(_)!==null;){var y=_;u=c,c=n,n=n.get_child(_);var C=this._comparator(i,n.data);if(_=C>0,C===0&&(h=n),!r.is_red(n)&&!r.is_red(n.get_child(_))){if(r.is_red(n.get_child(!_))){var E=r.single_rotate(n,_);c.set_child(y,E),c=E}else if(!r.is_red(n.get_child(!_))){var T=c.get_child(!y);if(T!==null)if(!r.is_red(T.get_child(!y))&&!r.is_red(T.get_child(y)))c.red=!1,T.red=!0,n.red=!0;else{var D=u.right===c;r.is_red(T.get_child(y))?u.set_child(D,r.double_rotate(c,y)):r.is_red(T.get_child(!y))&&u.set_child(D,r.single_rotate(c,y));var M=u.get_child(D);M.red=!0,n.red=!0,M.left.red=!1,M.right.red=!1}}}}return h!==null&&(h.data=n.data,c.set_child(c.right===n,n.get_child(n.left===null)),this.size--),this._root=o.right,this._root!==null&&(this._root.red=!1),h!==null},r.is_red=function(i){return i!==null&&i.red},r.single_rotate=function(i,o){var n=i.get_child(!o);return i.set_child(!o,n.get_child(o)),n.set_child(o,i),i.red=!0,n.red=!1,n},r.double_rotate=function(i,o){return i.set_child(!o,r.single_rotate(i.get_child(!o),!o)),r.single_rotate(i,o)},r}(Amt);w1.RBTree=K5e});var qx=Pe(oc=>{"use strict";var J5e=oc&&oc.__extends||function(){var e=function(r,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var c in n)n.hasOwnProperty(c)&&(o[c]=n[c])},e(r,i)};return function(r,i){e(r,i);function o(){this.constructor=r}r.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}}();Object.defineProperty(oc,"__esModule",{value:!0});var ud=QI(),Z5e=ZN();function oC(e){return e.bounds=typeof e.leaves<"u"?e.leaves.reduce(function(r,i){return i.bounds.union(r)},Ru.empty()):Ru.empty(),typeof e.groups<"u"&&(e.bounds=e.groups.reduce(function(r,i){return oC(i).union(r)},e.bounds)),e.bounds=e.bounds.inflate(e.padding),e.bounds}oc.computeGroupBounds=oC;var Ru=function(){function e(r,i,o,n){this.x=r,this.X=i,this.y=o,this.Y=n}return e.empty=function(){return new e(Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY)},e.prototype.cx=function(){return(this.x+this.X)/2},e.prototype.cy=function(){return(this.y+this.Y)/2},e.prototype.overlapX=function(r){var i=this.cx(),o=r.cx();return i<=o&&r.x0?o[0]:null},e.prototype.vertices=function(){return[{x:this.x,y:this.y},{x:this.X,y:this.y},{x:this.X,y:this.Y},{x:this.x,y:this.Y}]},e.lineIntersection=function(r,i,o,n,c,u,h,_){var y=o-r,C=h-c,E=n-i,T=_-u,D=T*y-C*E;if(D==0)return null;var M=r-c,F=i-u,B=C*F-T*M,z=B/D,$=y*F-E*M,tt=$/D;return z>=0&&z<=1&&tt>=0&&tt<=1?{x:r+z*y,y:i+z*E}:null},e.prototype.inflate=function(r){return new e(this.x-r,this.X+r,this.y-r,this.Y+r)},e}();oc.Rectangle=Ru;function X5e(e,r,i){var o=e.rayIntersection(r.cx(),r.cy())||{x:e.cx(),y:e.cy()},n=r.rayIntersection(e.cx(),e.cy())||{x:r.cx(),y:r.cy()},c=n.x-o.x,u=n.y-o.y,h=Math.sqrt(c*c+u*u),_=h-i;return{sourceIntersection:o,targetIntersection:n,arrowStart:{x:o.x+_*c/h,y:o.y+_*u/h}}}oc.makeEdgeBetween=X5e;function tEe(e,r,i){var o=r.rayIntersection(e.x,e.y);o||(o={x:r.cx(),y:r.cy()});var n=o.x-e.x,c=o.y-e.y,u=Math.sqrt(n*n+c*c);return{x:o.x-i*n/u,y:o.y-i*c/u}}oc.makeEdgeTo=tEe;var eEe=function(){function e(r,i,o){this.v=r,this.r=i,this.pos=o,this.prev=XN(),this.next=XN()}return e}(),Fmt=function(){function e(r,i,o){this.isOpen=r,this.v=i,this.pos=o}return e}();function iEe(e,r){return e.pos>r.pos?1:e.pos=c);var h=new Array(u);for(n=0;n0&&(e[o].insert(c),c[n].insert(e))};i("next","prev"),i("prev","next")}function Nmt(e,r){return eL(e,r,Bmt,1e-6)}oc.generateXConstraints=Nmt;function Lmt(e,r){return eL(e,r,Rmt,1e-6)}oc.generateYConstraints=Lmt;function Vmt(e){return tL(e,Bmt,1e-6)}oc.generateXGroupConstraints=Vmt;function zmt(e){return tL(e,Rmt,1e-6)}oc.generateYGroupConstraints=zmt;function oEe(e){var r=e.map(function(n){return new ud.Variable(n.cx())}),i=Nmt(e,r),o=new ud.Solver(r,i);o.solve(),r.forEach(function(n,c){return e[c].setXCentre(n.position())}),r=e.map(function(n){return new ud.Variable(n.cy())}),i=Lmt(e,r),o=new ud.Solver(r,i),o.solve(),r.forEach(function(n,c){return e[c].setYCentre(n.position())})}oc.removeOverlaps=oEe;var KI=function(e){J5e(r,e);function r(i,o){var n=e.call(this,0,o)||this;return n.index=i,n}return r}(ud.Variable);oc.IndexedVariable=KI;var aEe=function(){function e(r,i,o,n,c){var u=this;if(o===void 0&&(o=null),n===void 0&&(n=null),c===void 0&&(c=!1),this.nodes=r,this.groups=i,this.rootGroup=o,this.avoidOverlaps=c,this.variables=r.map(function(_,y){return _.variable=new KI(y,1)}),n&&this.createConstraints(n),c&&o&&typeof o.groups<"u"){r.forEach(function(_){if(!_.width||!_.height){_.bounds=new Ru(_.x,_.x,_.y,_.y);return}var y=_.width/2,C=_.height/2;_.bounds=new Ru(_.x-y,_.x+y,_.y-C,_.y+C)}),oC(o);var h=r.length;i.forEach(function(_){u.variables[h]=_.minVar=new KI(h++,typeof _.stiffness<"u"?_.stiffness:.01),u.variables[h]=_.maxVar=new KI(h++,typeof _.stiffness<"u"?_.stiffness:.01)})}}return e.prototype.createSeparation=function(r){return new ud.Constraint(this.nodes[r.left].variable,this.nodes[r.right].variable,r.gap,typeof r.equality<"u"?r.equality:!1)},e.prototype.makeFeasible=function(r){var i=this;if(this.avoidOverlaps){var o="x",n="width";r.axis==="x"&&(o="y",n="height");var c=r.offsets.map(function(h){return i.nodes[h.node]}).sort(function(h,_){return h[o]-_[o]}),u=null;c.forEach(function(h){if(u){var _=u[o]+u[n];_>h[o]&&(h[o]=_)}u=h})}},e.prototype.createAlignment=function(r){var i=this,o=this.nodes[r.offsets[0].node].variable;this.makeFeasible(r);var n=r.axis==="x"?this.xConstraints:this.yConstraints;r.offsets.slice(1).forEach(function(c){var u=i.nodes[c.node].variable;n.push(new ud.Constraint(o,u,c.offset,!0))})},e.prototype.createConstraints=function(r){var i=this,o=function(n){return typeof n.type>"u"||n.type==="separation"};this.xConstraints=r.filter(function(n){return n.axis==="x"&&o(n)}).map(function(n){return i.createSeparation(n)}),this.yConstraints=r.filter(function(n){return n.axis==="y"&&o(n)}).map(function(n){return i.createSeparation(n)}),r.filter(function(n){return n.type==="alignment"}).forEach(function(n){return i.createAlignment(n)})},e.prototype.setupVariablesAndBounds=function(r,i,o,n){this.nodes.forEach(function(c,u){c.fixed?(c.variable.weight=c.fixedWeight?c.fixedWeight:1e3,o[u]=n(c)):c.variable.weight=1;var h=(c.width||0)/2,_=(c.height||0)/2,y=r[u],C=i[u];c.bounds=new Ru(y-h,y+h,C-_,C+_)})},e.prototype.xProject=function(r,i,o){!this.rootGroup&&!(this.avoidOverlaps||this.xConstraints)||this.project(r,i,r,o,function(n){return n.px},this.xConstraints,Vmt,function(n){return n.bounds.setXCentre(o[n.variable.index]=n.variable.position())},function(n){var c=o[n.minVar.index]=n.minVar.position(),u=o[n.maxVar.index]=n.maxVar.position(),h=n.padding/2;n.bounds.x=c-h,n.bounds.X=u+h})},e.prototype.yProject=function(r,i,o){!this.rootGroup&&!this.yConstraints||this.project(r,i,i,o,function(n){return n.py},this.yConstraints,zmt,function(n){return n.bounds.setYCentre(o[n.variable.index]=n.variable.position())},function(n){var c=o[n.minVar.index]=n.minVar.position(),u=o[n.maxVar.index]=n.maxVar.position(),h=n.padding/2;n.bounds.y=c-h,n.bounds.Y=u+h})},e.prototype.projectFunctions=function(){var r=this;return[function(i,o,n){return r.xProject(i,o,n)},function(i,o,n){return r.yProject(i,o,n)}]},e.prototype.project=function(r,i,o,n,c,u,h,_,y){this.setupVariablesAndBounds(r,i,n,c),this.rootGroup&&this.avoidOverlaps&&(oC(this.rootGroup),u=u.concat(h(this.rootGroup))),this.solve(this.variables,u,o,n),this.nodes.forEach(_),this.rootGroup&&this.avoidOverlaps&&(this.groups.forEach(y),oC(this.rootGroup))},e.prototype.solve=function(r,i,o,n){var c=new ud.Solver(r,i);c.setStartingPositions(o),c.setDesiredPositions(n),c.solve()},e}();oc.Projection=aEe});var iL=Pe(JI=>{"use strict";Object.defineProperty(JI,"__esModule",{value:!0});var jmt=function(){function e(r){this.elem=r,this.subheaps=[]}return e.prototype.toString=function(r){for(var i="",o=!1,n=0;n{"use strict";Object.defineProperty(nL,"__esModule",{value:!0});var qmt=iL(),Hmt=function(){function e(r,i){this.id=r,this.distance=i}return e}(),lEe=function(){function e(r){this.id=r,this.neighbours=[]}return e}(),Gmt=function(){function e(r,i,o){this.node=r,this.prev=i,this.d=o}return e}(),cEe=function(){function e(r,i,o,n,c){this.n=r,this.es=i,this.neighbours=new Array(this.n);for(var u=this.n;u--;)this.neighbours[u]=new lEe(u);for(u=this.es.length;u--;){var h=this.es[u],_=o(h),y=n(h),C=c(h);this.neighbours[_].neighbours.push(new Hmt(y,C)),this.neighbours[y].neighbours.push(new Hmt(_,C))}}return e.prototype.DistanceMatrix=function(){for(var r=new Array(this.n),i=0;iE&&(y.d=E,y.prev=h,o.reduceKey(y.q,y,function(D,M){return D.q=M}))}}return c},e}();nL.Calculator=cEe});var sL=Pe($a=>{"use strict";var $mt=$a&&$a.__extends||function(){var e=function(r,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var c in n)n.hasOwnProperty(c)&&(o[c]=n[c])},e(r,i)};return function(r,i){e(r,i);function o(){this.constructor=r}r.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}}();Object.defineProperty($a,"__esModule",{value:!0});var pEe=qx(),oL=function(){function e(){}return e}();$a.Point=oL;var aL=function(){function e(r,i,o,n){this.x1=r,this.y1=i,this.x2=o,this.y2=n}return e}();$a.LineSegment=aL;var mEe=function(e){$mt(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r}(oL);$a.PolyPoint=mEe;function ep(e,r,i){return(r.x-e.x)*(i.y-e.y)-(i.x-e.x)*(r.y-e.y)}$a.isLeft=ep;function ym(e,r,i){return ep(e,r,i)>0}function Gp(e,r,i){return ep(e,r,i)<0}function dEe(e){var r=e.slice(0).sort(function(T,D){return T.x!==D.x?D.x-T.x:D.y-T.y}),i=e.length,o,n=0,c=r[0].x;for(o=1;o=0&&r[o].x===C;o--);for(_=o+1,o=u;++o<=_;)if(!(ep(r[n],r[_],r[o])>=0&&o<_)){for(;h.length>1&&!(ep(h[h.length-2],h[h.length-1],r[o])>0);)h.length-=1;o!=n&&h.push(r[o])}y!=_&&h.push(r[y]);var E=h.length;for(o=_;--o>=u;)if(!(ep(r[y],r[u],r[o])>=0&&o>u)){for(;h.length>E&&!(ep(h[h.length-2],h[h.length-1],r[o])>0);)h.length-=1;o!=n&&h.push(r[o])}}return h}$a.ConvexHull=dEe;function uEe(e,r,i){r.slice(0).sort(function(o,n){return Math.atan2(o.y-e.y,o.x-e.x)-Math.atan2(n.y-e.y,n.x-e.x)}).forEach(i)}$a.clockwiseRadialSweep=uEe;function fEe(e,r){var i=r.slice(0);return i.push(r[0]),{rtan:XI(e,i),ltan:tT(e,i)}}function XI(e,r){var i=r.length-1,o,n,c,u,h;if(Gp(e,r[1],r[0])&&!ym(e,r[i-1],r[0]))return 0;for(o=0,n=i;;){if(n-o===1)return ym(e,r[o],r[n])?o:n;if(c=Math.floor((o+n)/2),h=Gp(e,r[c+1],r[c]),h&&!ym(e,r[c-1],r[c]))return c;u=ym(e,r[o+1],r[o]),u?h||ym(e,r[o],r[c])?n=c:o=c:h&&Gp(e,r[o],r[c])?n=c:o=c}}function tT(e,r){var i=r.length-1,o,n,c,u,h;if(ym(e,r[i-1],r[0])&&!Gp(e,r[1],r[0]))return 0;for(o=0,n=i;;){if(n-o===1)return Gp(e,r[o],r[n])?o:n;if(c=Math.floor((o+n)/2),h=Gp(e,r[c+1],r[c]),ym(e,r[c-1],r[c])&&!h)return c;u=Gp(e,r[o+1],r[o]),u?h?Gp(e,r[o],r[c])?n=c:o=c:n=c:h?o=c:ym(e,r[o],r[c])?n=c:o=c}}function eT(e,r,i,o,n,c){var u,h;u=i(r[0],e),h=o(e[u],r);for(var _=!1;!_;){for(_=!0;u===e.length-1&&(u=0),!n(r[h],e[u],e[u+1]);)++u;for(;h===0&&(h=r.length-1),!c(e[u],r[h],r[h-1]);)--h,_=!1}return{t1:u,t2:h}}$a.tangent_PolyPolyC=eT;function hEe(e,r){var i=Wmt(r,e);return{t1:i.t2,t2:i.t1}}$a.LRtangent_PolyPolyC=hEe;function Wmt(e,r){return eT(e,r,XI,tT,ym,Gp)}$a.RLtangent_PolyPolyC=Wmt;function gEe(e,r){return eT(e,r,tT,tT,Gp,Gp)}$a.LLtangent_PolyPolyC=gEe;function xEe(e,r){return eT(e,r,XI,XI,ym,ym)}$a.RRtangent_PolyPolyC=xEe;var sC=function(){function e(r,i){this.t1=r,this.t2=i}return e}();$a.BiTangent=sC;var Qmt=function(){function e(){}return e}();$a.BiTangents=Qmt;var _Ee=function(e){$mt(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r}(oL);$a.TVGPoint=_Ee;var rL=function(){function e(r,i,o,n){this.id=r,this.polyid=i,this.polyvertid=o,this.p=n,n.vv=this}return e}();$a.VisibilityVertex=rL;var ZI=function(){function e(r,i){this.source=r,this.target=i}return e.prototype.length=function(){var r=this.source.p.x-this.target.p.x,i=this.source.p.y-this.target.p.y;return Math.sqrt(r*r+i*i)},e}();$a.VisibilityEdge=ZI;var vEe=function(){function e(r,i){if(this.P=r,this.V=[],this.E=[],i)this.V=i.V.slice(0),this.E=i.E.slice(0);else{for(var o=r.length,n=0;n0&&this.E.push(new ZI(c[u-1].vv,_))}c.length>1&&this.E.push(new ZI(c[0].vv,c[c.length-1].vv))}for(var n=0;n0)return!0;return!1},e}();$a.TangentVisibilityGraph=vEe;function Ymt(e,r){for(var i=[],o=1,n=r.length;o=0&&M>=0&&F<0&&B>=0&&z>=0&&$<0?n.ll=new sC(c,u):D<=0&&M<=0&&F>0&&B<=0&&z<=0&&$>0?n.rr=new sC(c,u):D<=0&&M>0&&F<=0&&B>=0&&z<0&&$>=0?n.rl=new sC(c,u):D>=0&&M<0&&F>=0&&B<=0&&z>0&&$<=0&&(n.lr=new sC(c,u))}return n}$a.tangents=Kmt;function bEe(e,r){for(var i=1,o=r.length;i0)return!0}return!1}$a.polysOverlap=CEe});var lL=Pe(iT=>{"use strict";Object.defineProperty(iT,"__esModule",{value:!0});var Up={PADDING:10,GOLDEN_SECTION:(1+Math.sqrt(5))/2,FLOAT_EPSILON:1e-4,MAX_INERATIONS:100};function yEe(e,r,i,E,C,c){C===void 0&&(C=1),c===void 0&&(c=!0);var u=0,h=0,_=r,y=i,C=typeof C<"u"?C:1,E=typeof E<"u"?E:0,T=0,D=0,M=0,F=0,B=[];if(e.length==0)return;z(e),tt(e,C),c&&$(e);function z(vt){vt.forEach(function(Ct){Tt(Ct)});function Tt(Ct){var Z=Number.MAX_VALUE,nt=Number.MAX_VALUE,xt=0,R=0;Ct.array.forEach(function(j){var G=typeof j.width<"u"?j.width:E,H=typeof j.height<"u"?j.height:E;G/=2,H/=2,xt=Math.max(j.x+G,xt),Z=Math.min(j.x-G,Z),R=Math.max(j.y+H,R),nt=Math.min(j.y-H,nt)}),Ct.width=xt-Z,Ct.height=R-nt}}function $(vt){vt.forEach(function(Tt){var Ct={x:0,y:0};Tt.array.forEach(function(xt){Ct.x+=xt.x,Ct.y+=xt.y}),Ct.x/=Tt.array.length,Ct.y/=Tt.array.length;var Z={x:Ct.x-Tt.width/2,y:Ct.y-Tt.height/2},nt={x:Tt.x-Z.x+_/2-T/2,y:Tt.y-Z.y+y/2-D/2};Tt.array.forEach(function(xt){xt.x+=nt.x,xt.y+=nt.y})})}function tt(vt,Tt){var Ct=Number.POSITIVE_INFINITY,Z=0;vt.sort(function(Ot,Yt){return Yt.height-Ot.height}),M=vt.reduce(function(Ot,Yt){return Ot.widthM||et>Up.FLOAT_EPSILON;){if(H!=1)var ft=xt-(xt-nt)/Up.GOLDEN_SECTION,j=lt(vt,ft);if(H!=0)var At=nt+(xt-nt)/Up.GOLDEN_SECTION,G=lt(vt,At);if(K=Math.abs(ft-At),et=Math.abs(j-G),jG?(nt=ft,ft=At,j=G,H=1):(xt=At,At=ft,G=j,H=0),R++>100)break}lt(vt,Z)}function lt(vt,Tt){B=[],T=0,D=0,F=h;for(var Ct=0;Ct=vt.height&&B[Z].x+B[Z].width+vt.width+Up.PADDING-Tt<=Up.FLOAT_EPSILON){Ct=B[Z];break}B.push(vt),Ct!==void 0?(vt.x=Ct.x+Ct.width+Up.PADDING,vt.y=Ct.bottom,vt.space_left=vt.height,vt.bottom=vt.y,Ct.space_left-=vt.height+Up.PADDING,Ct.bottom+=vt.height+Up.PADDING):(vt.y=F,F+=vt.height+Up.PADDING,vt.x=u,vt.bottom=vt.y,vt.space_left=vt.height),vt.y+vt.height-D>-Up.FLOAT_EPSILON&&(D=vt.y+vt.height-h),vt.x+vt.width-T>-Up.FLOAT_EPSILON&&(T=vt.x+vt.width-u)}function X(vt){var Tt=0;return vt.forEach(function(Ct){return Tt+=Ct.width+Up.PADDING}),Tt}function mt(){return T/D}}iT.applyPacking=yEe;function SEe(e,r){for(var i={},o={},n=[],c=0,u=0;u{"use strict";Object.defineProperty(cC,"__esModule",{value:!0});var wEe=QN(),cL=GI(),nT=UI(),rT=qx(),Jmt=aC(),Zmt=sL(),Xmt=lL(),lC;(function(e){e[e.start=0]="start",e[e.tick=1]="tick",e[e.end=2]="end"})(lC=cC.EventType||(cC.EventType={}));function oT(e){return typeof e.leaves<"u"||typeof e.groups<"u"}var EEe=function(){function e(){var r=this;this._canvasSize=[1,1],this._linkDistance=20,this._defaultNodeSize=10,this._linkLengthCalculator=null,this._linkType=null,this._avoidOverlaps=!1,this._handleDisconnected=!0,this._running=!1,this._nodes=[],this._groups=[],this._rootGroup=null,this._links=[],this._constraints=[],this._distanceMatrix=null,this._descent=null,this._directedLinkConstraints=null,this._threshold=.01,this._visibilityGraph=null,this._groupCompactness=1e-6,this.event=null,this.linkAccessor={getSourceIndex:e.getSourceIndex,getTargetIndex:e.getTargetIndex,setLength:e.setLinkLength,getType:function(i){return typeof r._linkType=="function"?r._linkType(i):0}}}return e.prototype.on=function(r,i){return this.event||(this.event={}),typeof r=="string"?this.event[lC[r]]=i:this.event[r]=i,this},e.prototype.trigger=function(r){this.event&&typeof this.event[r.type]<"u"&&this.event[r.type](r)},e.prototype.kick=function(){for(;!this.tick(););},e.prototype.tick=function(){if(this._alpha"u"||typeof o.py>"u")&&(o.px=o.x,o.py=o.y);var c=[o.px,o.py];this._descent.locks.add(n,c)}var u=this._descent.rungeKutta();return u===0?this._alpha=0:typeof this._lastStress<"u"&&(this._alpha=u),this._lastStress=u,this.updateNodePositions(),this.trigger({type:lC.tick,alpha:this._alpha,stress:this._lastStress}),!1},e.prototype.updateNodePositions=function(){for(var r=this._descent.x[0],i=this._descent.x[1],o,n=this._nodes.length;n--;)o=this._nodes[n],o.x=r[n],o.y=i[n]},e.prototype.nodes=function(r){if(!r){if(this._nodes.length===0&&this._links.length>0){var i=0;this._links.forEach(function(n){i=Math.max(i,n.source,n.target)}),this._nodes=new Array(++i);for(var o=0;o"u"&&(o.padding=1),typeof o.leaves<"u"&&o.leaves.forEach(function(n,c){typeof n=="number"&&((o.leaves[c]=i._nodes[n]).parent=o)}),typeof o.groups<"u"&&o.groups.forEach(function(n,c){typeof n=="number"&&((o.groups[c]=i._groups[n]).parent=o)})}),this._rootGroup.leaves=this._nodes.filter(function(o){return typeof o.parent>"u"}),this._rootGroup.groups=this._groups.filter(function(o){return typeof o.parent>"u"}),this):this._groups},e.prototype.powerGraphGroups=function(r){var i=wEe.getGroups(this._nodes,this._links,this.linkAccessor,this._rootGroup);return this.groups(i.groups),r(i),this},e.prototype.avoidOverlaps=function(r){return arguments.length?(this._avoidOverlaps=r,this):this._avoidOverlaps},e.prototype.handleDisconnected=function(r){return arguments.length?(this._handleDisconnected=r,this):this._handleDisconnected},e.prototype.flowLayout=function(r,i){return arguments.length||(r="y"),this._directedLinkConstraints={axis:r,getMinSeparation:typeof i=="number"?function(){return i}:i},this},e.prototype.links=function(r){return arguments.length?(this._links=r,this):this._links},e.prototype.constraints=function(r){return arguments.length?(this._constraints=r,this):this._constraints},e.prototype.distanceMatrix=function(r){return arguments.length?(this._distanceMatrix=r,this):this._distanceMatrix},e.prototype.size=function(r){return r?(this._canvasSize=r,this):this._canvasSize},e.prototype.defaultNodeSize=function(r){return r?(this._defaultNodeSize=r,this):this._defaultNodeSize},e.prototype.groupCompactness=function(r){return r?(this._groupCompactness=r,this):this._groupCompactness},e.prototype.linkDistance=function(r){return r?(this._linkDistance=typeof r=="function"?r:+r,this._linkLengthCalculator=null,this):this._linkDistance},e.prototype.linkType=function(r){return this._linkType=r,this},e.prototype.convergenceThreshold=function(r){return r?(this._threshold=typeof r=="function"?r:+r,this):this._threshold},e.prototype.alpha=function(r){return arguments.length?(r=+r,this._alpha?r>0?this._alpha=r:this._alpha=0:r>0&&(this._running||(this._running=!0,this.trigger({type:lC.start,alpha:this._alpha=r}),this.kick())),this):this._alpha},e.prototype.getLinkLength=function(r){return typeof this._linkDistance=="function"?+this._linkDistance(r):this._linkDistance},e.setLinkLength=function(r,i){r.length=i},e.prototype.getLinkType=function(r){return typeof this._linkType=="function"?this._linkType(r):0},e.prototype.symmetricDiffLinkLengths=function(r,i){var o=this;return i===void 0&&(i=1),this.linkDistance(function(n){return r*n.length}),this._linkLengthCalculator=function(){return cL.symmetricDiffLinkLengths(o._links,o.linkAccessor,i)},this},e.prototype.jaccardLinkLengths=function(r,i){var o=this;return i===void 0&&(i=1),this.linkDistance(function(n){return r*n.length}),this._linkLengthCalculator=function(){return cL.jaccardLinkLengths(o._links,o.linkAccessor,i)},this},e.prototype.start=function(r,i,o,n,c,u){var h=this;r===void 0&&(r=0),i===void 0&&(i=0),o===void 0&&(o=0),n===void 0&&(n=0),c===void 0&&(c=!0),u===void 0&&(u=!0);var _,y,C=this.nodes().length,E=C+2*this._groups.length,T=this._links.length,D=this._canvasSize[0],M=this._canvasSize[1],F=new Array(E),B=new Array(E),z=null,$=this._avoidOverlaps;this._nodes.forEach(function(Ct,Z){Ct.index=Z,typeof Ct.x>"u"&&(Ct.x=D/2,Ct.y=M/2),F[Z]=Ct.x,B[Z]=Ct.y}),this._linkLengthCalculator&&this._linkLengthCalculator();var tt;this._distanceMatrix?tt=this._distanceMatrix:(tt=new Jmt.Calculator(E,this._links,e.getSourceIndex,e.getTargetIndex,function(Ct){return h.getLinkLength(Ct)}).DistanceMatrix(),z=nT.Descent.createSquareMatrix(E,function(){return 2}),this._links.forEach(function(Ct){typeof Ct.source=="number"&&(Ct.source=h._nodes[Ct.source]),typeof Ct.target=="number"&&(Ct.target=h._nodes[Ct.target])}),this._links.forEach(function(Ct){var Z=e.getSourceIndex(Ct),nt=e.getTargetIndex(Ct);z[Z][nt]=z[nt][Z]=Ct.weight||1}));var lt=nT.Descent.createSquareMatrix(E,function(Ct,Z){return tt[Ct][Z]});if(this._rootGroup&&typeof this._rootGroup.groups<"u"){var _=C,gt=function(Z,nt,xt,R){z[Z][nt]=z[nt][Z]=xt,lt[Z][nt]=lt[nt][Z]=R};this._groups.forEach(function(Z){gt(_,_+1,h._groupCompactness,.1),F[_]=0,B[_++]=0,F[_]=0,B[_++]=0})}else this._rootGroup={leaves:this._nodes,groups:[]};var X=this._constraints||[];this._directedLinkConstraints&&(this.linkAccessor.getMinSeparation=this._directedLinkConstraints.getMinSeparation,X=X.concat(cL.generateDirectedEdgeConstraints(C,this._links,this._directedLinkConstraints.axis,this.linkAccessor))),this.avoidOverlaps(!1),this._descent=new nT.Descent([F,B],lt),this._descent.locks.clear();for(var _=0;_0&&(this._descent.project=new rT.Projection(this._nodes,this._groups,this._rootGroup,X).projectFunctions()),this._descent.run(i),this.separateOverlappingComponents(D,M,u),this.avoidOverlaps($),$&&(this._nodes.forEach(function(Ct,Z){Ct.x=F[Z],Ct.y=B[Z]}),this._descent.project=new rT.Projection(this._nodes,this._groups,this._rootGroup,X,!0).projectFunctions(),this._nodes.forEach(function(Ct,Z){F[Z]=Ct.x,B[Z]=Ct.y})),this._descent.G=z,this._descent.run(o),n){this._descent.snapStrength=1e3,this._descent.snapGridSize=this._nodes[0].width,this._descent.numGridSnapNodes=C,this._descent.scaleSnapByMaxH=C!=E;var Tt=nT.Descent.createSquareMatrix(E,function(Ct,Z){return Ct>=C||Z>=C?z[Ct][Z]:0});this._descent.G=Tt,this._descent.run(n)}return this.updateNodePositions(),this.separateOverlappingComponents(D,M,u),c?this.resume():this},e.prototype.initialLayout=function(r,i,o){if(this._groups.length>0&&r>0){var n=this._nodes.length,c=this._links.map(function(h){return{source:h.source.index,target:h.target.index}}),u=this._nodes.map(function(h){return{index:h.index}});this._groups.forEach(function(h,_){u.push({index:h.index=n+_})}),this._groups.forEach(function(h,_){typeof h.leaves<"u"&&h.leaves.forEach(function(y){return c.push({source:h.index,target:y.index})}),typeof h.groups<"u"&&h.groups.forEach(function(y){return c.push({source:h.index,target:y.index})})}),new e().size(this.size()).nodes(u).links(c).avoidOverlaps(!1).linkDistance(this.linkDistance()).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(r,0,0,0,!1),this._nodes.forEach(function(h){i[h.index]=u[h.index].x,o[h.index]=u[h.index].y})}else this._descent.run(r)},e.prototype.separateOverlappingComponents=function(r,i,o){var n=this;if(o===void 0&&(o=!0),!this._distanceMatrix&&this._handleDisconnected){var c=this._descent.x[0],u=this._descent.x[1];this._nodes.forEach(function(_,y){_.x=c[y],_.y=u[y]});var h=Xmt.separateGraphs(this._nodes,this._links);Xmt.applyPacking(h,r,i,this._defaultNodeSize,1,o),this._nodes.forEach(function(_,y){n._descent.x[0][y]=_.x,n._descent.x[1][y]=_.y,_.bounds&&(_.bounds.setXCentre(_.x),_.bounds.setYCentre(_.y))})}},e.prototype.resume=function(){return this.alpha(.1)},e.prototype.stop=function(){return this.alpha(0)},e.prototype.prepareEdgeRouting=function(r){r===void 0&&(r=0),this._visibilityGraph=new Zmt.TangentVisibilityGraph(this._nodes.map(function(i){return i.bounds.inflate(-r).vertices()}))},e.prototype.routeEdge=function(r,i,o){i===void 0&&(i=5);var n=[],c=new Zmt.TangentVisibilityGraph(this._visibilityGraph.P,{V:this._visibilityGraph.V,E:this._visibilityGraph.E}),u={x:r.source.x,y:r.source.y},h={x:r.target.x,y:r.target.y},_=c.addPoint(u,r.source.index),y=c.addPoint(h,r.target.index);c.addEdgeIfVisible(u,h,r.source.index,r.target.index),typeof o<"u"&&o(c);var C=function(lt){return lt.source.id},E=function(lt){return lt.target.id},T=function(lt){return lt.length()},D=new Jmt.Calculator(c.V.length,c.E,C,E,T),M=D.PathFromNodeToNode(_.id,y.id);if(M.length===1||M.length===c.V.length){var F=rT.makeEdgeBetween(r.source.innerBounds,r.target.innerBounds,i);n=[F.sourceIntersection,F.arrowStart]}else{for(var B=M.length-2,z=c.V[M[B]].p,$=c.V[M[0]].p,n=[r.source.innerBounds.rayIntersection(z.x,z.y)],tt=B;tt>=0;--tt)n.push(c.V[M[tt]].p);n.push(rT.makeEdgeTo($,r.target.innerBounds,i))}return n},e.getSourceIndex=function(r){return typeof r.source=="number"?r.source:r.source.index},e.getTargetIndex=function(r){return typeof r.target=="number"?r.target:r.target.index},e.linkId=function(r){return e.getSourceIndex(r)+"-"+e.getTargetIndex(r)},e.dragStart=function(r){oT(r)?e.storeOffset(r,e.dragOrigin(r)):(e.stopNode(r),r.fixed|=2)},e.stopNode=function(r){r.px=r.x,r.py=r.y},e.storeOffset=function(r,i){typeof r.leaves<"u"&&r.leaves.forEach(function(o){o.fixed|=2,e.stopNode(o),o._dragGroupOffsetX=o.x-i.x,o._dragGroupOffsetY=o.y-i.y}),typeof r.groups<"u"&&r.groups.forEach(function(o){return e.storeOffset(o,i)})},e.dragOrigin=function(r){return oT(r)?{x:r.bounds.cx(),y:r.bounds.cy()}:r},e.drag=function(r,i){oT(r)?(typeof r.leaves<"u"&&r.leaves.forEach(function(o){r.bounds.setXCentre(i.x),r.bounds.setYCentre(i.y),o.px=o._dragGroupOffsetX+i.x,o.py=o._dragGroupOffsetY+i.y}),typeof r.groups<"u"&&r.groups.forEach(function(o){return e.drag(o,i)})):(r.px=i.x,r.py=i.y)},e.dragEnd=function(r){oT(r)?(typeof r.leaves<"u"&&r.leaves.forEach(function(i){e.dragEnd(i),delete i._dragGroupOffsetX,delete i._dragGroupOffsetY}),typeof r.groups<"u"&&r.groups.forEach(e.dragEnd)):r.fixed&=-7},e.mouseOver=function(r){r.fixed|=4,r.px=r.x,r.py=r.y},e.mouseOut=function(r){r.fixed&=-5},e}();cC.Layout=EEe});var e0t=Pe(Gx=>{"use strict";var PEe=Gx&&Gx.__extends||function(){var e=function(r,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var c in n)n.hasOwnProperty(c)&&(o[c]=n[c])},e(r,i)};return function(r,i){e(r,i);function o(){this.constructor=r}r.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}}();Object.defineProperty(Gx,"__esModule",{value:!0});var pL=Hx(),t0t=function(e){PEe(r,e);function r(i){var o=e.call(this)||this,n=o,c=i;return c.trigger&&(o.trigger=c.trigger),c.kick&&(o.kick=c.kick),c.drag&&(o.drag=c.drag),c.on&&(o.on=c.on),o.dragstart=o.dragStart=pL.Layout.dragStart,o.dragend=o.dragEnd=pL.Layout.dragEnd,o}return r.prototype.trigger=function(i){},r.prototype.kick=function(){},r.prototype.drag=function(){},r.prototype.on=function(i,o){return this},r}(pL.Layout);Gx.LayoutAdaptor=t0t;function kEe(e){return new t0t(e)}Gx.adaptor=kEe});var n0t=Pe(Ux=>{"use strict";var IEe=Ux&&Ux.__extends||function(){var e=function(r,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var c in n)n.hasOwnProperty(c)&&(o[c]=n[c])},e(r,i)};return function(r,i){e(r,i);function o(){this.constructor=r}r.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}}();Object.defineProperty(Ux,"__esModule",{value:!0});var ip=Hx(),i0t=function(e){IEe(r,e);function r(){var i=e.call(this)||this;i.event=d3.dispatch(ip.EventType[ip.EventType.start],ip.EventType[ip.EventType.tick],ip.EventType[ip.EventType.end]);var o=i,n;return i.drag=function(){if(!c)var c=d3.behavior.drag().origin(ip.Layout.dragOrigin).on("dragstart.d3adaptor",ip.Layout.dragStart).on("drag.d3adaptor",function(u){ip.Layout.drag(u,d3.event),o.resume()}).on("dragend.d3adaptor",ip.Layout.dragEnd);if(!arguments.length)return c;this.call(c)},i}return r.prototype.trigger=function(i){var o={type:ip.EventType[i.type],alpha:i.alpha,stress:i.stress};this.event[o.type](o)},r.prototype.kick=function(){var i=this;d3.timer(function(){return e.prototype.tick.call(i)})},r.prototype.on=function(i,o){return typeof i=="string"?this.event.on(i,o):this.event.on(ip.EventType[i],o),this},r}(ip.Layout);Ux.D3StyleLayoutAdaptor=i0t;function TEe(){return new i0t}Ux.d3adaptor=TEe});var r0t=Pe(pC=>{"use strict";var MEe=pC&&pC.__extends||function(){var e=function(r,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var c in n)n.hasOwnProperty(c)&&(o[c]=n[c])},e(r,i)};return function(r,i){e(r,i);function o(){this.constructor=r}r.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}}();Object.defineProperty(pC,"__esModule",{value:!0});var np=Hx(),DEe=function(e){MEe(r,e);function r(i){var o=e.call(this)||this;o.d3Context=i,o.event=i.dispatch(np.EventType[np.EventType.start],np.EventType[np.EventType.tick],np.EventType[np.EventType.end]);var n=o,c;return o.drag=function(){if(!u)var u=i.drag().subject(np.Layout.dragOrigin).on("start.d3adaptor",np.Layout.dragStart).on("drag.d3adaptor",function(h){np.Layout.drag(h,i.event),n.resume()}).on("end.d3adaptor",np.Layout.dragEnd);if(!arguments.length)return u;arguments[0].call(u)},o}return r.prototype.trigger=function(i){var o={type:np.EventType[i.type],alpha:i.alpha,stress:i.stress};this.event.call(o.type,o)},r.prototype.kick=function(){var i=this,o=this.d3Context.timer(function(){return e.prototype.tick.call(i)&&o.stop()})},r.prototype.on=function(i,o){return typeof i=="string"?this.event.on(i,o):this.event.on(np.EventType[i],o),this},r}(np.Layout);pC.D3StyleLayoutAdaptor=DEe});var o0t=Pe(mL=>{"use strict";Object.defineProperty(mL,"__esModule",{value:!0});var AEe=n0t(),OEe=r0t();function FEe(e){return!e||BEe(e)?new AEe.D3StyleLayoutAdaptor:new OEe.D3StyleLayoutAdaptor(e)}mL.d3adaptor=FEe;function BEe(e){var r=/^3\./;return e.version&&e.version.match(r)!==null}});var hL=Pe($x=>{"use strict";Object.defineProperty($x,"__esModule",{value:!0});var REe=qx(),dL=QI(),NEe=aC(),a0t=function(){function e(r,i,o){this.id=r,this.rect=i,this.children=o,this.leaf=typeof o>"u"||o.length===0}return e}();$x.NodeWrapper=a0t;var uL=function(){function e(r,i,o,n,c){n===void 0&&(n=null),c===void 0&&(c=null),this.id=r,this.x=i,this.y=o,this.node=n,this.line=c}return e}();$x.Vert=uL;var fL=function(){function e(r,i){this.s=r,this.t=i;var o=e.findMatch(r,i),n=i.slice(0).reverse(),c=e.findMatch(r,n);o.length>=c.length?(this.length=o.length,this.si=o.si,this.ti=o.ti,this.reversed=!1):(this.length=c.length,this.si=c.si,this.ti=i.length-c.ti-c.length,this.reversed=!0)}return e.findMatch=function(r,i){for(var o=r.length,n=i.length,c={length:0,si:-1,ti:-1},u=new Array(o),h=0;hc.length&&(c.length=y,c.si=h-y+1,c.ti=_-y+1)}else u[h][_]=0}return c},e.prototype.getSequence=function(){return this.length>=0?this.s.slice(this.si,this.si+this.length):[]},e}();$x.LongestCommonSubsequence=fL;var LEe=function(){function e(r,i,o){var n=this;o===void 0&&(o=12),this.originalnodes=r,this.groupPadding=o,this.leaves=null,this.nodes=r.map(function(F,B){return new a0t(B,i.getBounds(F),i.getChildren(F))}),this.leaves=this.nodes.filter(function(F){return F.leaf}),this.groups=this.nodes.filter(function(F){return!F.leaf}),this.cols=this.getGridLines("x"),this.rows=this.getGridLines("y"),this.groups.forEach(function(F){return F.children.forEach(function(B){return n.nodes[B].parent=F})}),this.root={children:[]},this.nodes.forEach(function(F){typeof F.parent>"u"&&(F.parent=n.root,n.root.children.push(F.id)),F.ports=[]}),this.backToFront=this.nodes.slice(0),this.backToFront.sort(function(F,B){return n.getDepth(F)-n.getDepth(B)});var c=this.backToFront.slice(0).reverse().filter(function(F){return!F.leaf});c.forEach(function(F){var B=REe.Rectangle.empty();F.children.forEach(function(z){return B=B.union(n.nodes[z].rect)}),F.rect=B.inflate(n.groupPadding)});var u=this.midPoints(this.cols.map(function(F){return F.pos})),h=this.midPoints(this.rows.map(function(F){return F.pos})),_=u[0],y=u[u.length-1],C=h[0],E=h[h.length-1],T=this.rows.map(function(F){return{x1:_,x2:y,y1:F.pos,y2:F.pos}}).concat(h.map(function(F){return{x1:_,x2:y,y1:F,y2:F}})),D=this.cols.map(function(F){return{x1:F.pos,x2:F.pos,y1:C,y2:E}}).concat(u.map(function(F){return{x1:F,x2:F,y1:C,y2:E}})),M=T.concat(D);M.forEach(function(F){return F.verts=[]}),this.verts=[],this.edges=[],T.forEach(function(F){return D.forEach(function(B){var z=new uL(n.verts.length,B.x1,F.y1);F.verts.push(z),B.verts.push(z),n.verts.push(z);for(var $=n.backToFront.length;$-- >0;){var tt=n.backToFront[$],lt=tt.rect,gt=Math.abs(z.x-lt.cx()),X=Math.abs(z.y-lt.cy());if(gt0;){var n=o.filter(function(u){return u.rect["overlap"+r.toUpperCase()](o[0].rect)}),c={nodes:n,pos:this.avg(n.map(function(u){return u.rect["c"+r]()}))};i.push(c),c.nodes.forEach(function(u){return o.splice(o.indexOf(u),1)})}return i.sort(function(u,h){return u.pos-h.pos}),i},e.prototype.getDepth=function(r){for(var i=0;r.parent!==this.root;)i++,r=r.parent;return i},e.prototype.midPoints=function(r){for(var i=r[1]-r[0],o=[r[0]-i/2],n=1;n.1)&&(E={pos:_[0][i],segments:[]},C.push(E)),E.segments.push(_)}return C},e.nudgeSegs=function(r,i,o,n,c,u){var h=n.length;if(!(h<=1)){for(var _=n.map(function(tt){return new dL.Variable(tt[0][r])}),y=[],C=0;C=0&&y.push(new dL.Constraint(_[B],_[z],u))}var $=new dL.Solver(_,y);$.solve(),_.forEach(function(tt,lt){var gt=n[lt],X=tt.position();gt[0][r]=gt[1][r]=X;var mt=o[gt.edgeid];gt.i>0&&(mt[gt.i-1][1][r]=X),gt.iMath.PI||c<-Math.PI)&&(c=n-o),c},e.isLeft=function(r,i,o){return(i.x-r.x)*(o.y-r.y)-(i.y-r.y)*(o.x-r.x)<=0},e.getOrder=function(r){for(var i={},o=0;o"u"&&(i[n.l]={}),i[n.l][n.r]=!0}return function(c,u){return typeof i[c]<"u"&&i[c][u]}},e.orderEdges=function(r){for(var i=[],o=0;o=c.length||h.ti+h.length>=u.length)){i.push({l:o,r:n});continue}h.si+h.length>=c.length||h.ti+h.length>=u.length?(_=c[h.si+1],C=c[h.si-1],y=u[h.ti-1]):(_=c[h.si+h.length-2],y=c[h.si+h.length],C=u[h.ti+h.length]),e.isLeft(_,y,C)?i.push({l:n,r:o}):i.push({l:o,r:n})}}return e.getOrder(i)},e.makeSegments=function(r){function i(y){return{x:y.x,y:y.y}}for(var o=function(y,C,E){return Math.abs((C.x-y.x)*(E.y-y.y)-(C.y-y.y)*(E.x-y.x))<.001},n=[],c=i(r[0]),u=1;u1&&vt>1?1e3:0},F=D.PathFromNodeToNodeWithPrevCost(n.ports[0].id,c.ports[0].id,M),B=F.reverse().map(function(z){return o.verts[z]});return B.push(this.nodes[c.id].ports[0]),B.filter(function(z,$){return!($0&&z.node===c&&B[$-1].node===c)})},e.getRoutePath=function(r,i,o,n){var c={routepath:"M "+r[0][0].x+" "+r[0][0].y+" ",arrowpath:""};if(r.length>1)for(var u=0;u0?_-=C/Math.abs(C)*i:y-=E/Math.abs(E)*i,c.routepath+="L "+_+" "+y+" ";var T=r[u+1],D=T[0].x,M=T[0].y,F=T[1].x,B=T[1].y;C=F-D,E=B-M;var z=e.angleBetween2Lines(h,T)<0?1:0,$,tt;Math.abs(C)>0?($=D+C/Math.abs(C)*i,tt=M):($=D,tt=M+E/Math.abs(E)*i);var lt=Math.abs($-_),gt=Math.abs(tt-y);c.routepath+="A "+lt+" "+gt+" 0 0 "+z+" "+$+" "+tt+" "}else{var X=[_,y],mt,vt;Math.abs(C)>0?(_-=C/Math.abs(C)*n,mt=[_,y+o],vt=[_,y-o]):(y-=E/Math.abs(E)*n,mt=[_+o,y],vt=[_-o,y]),c.routepath+="L "+_+" "+y+" ",n>0&&(c.arrowpath="M "+X[0]+" "+X[1]+" L "+mt[0]+" "+mt[1]+" L "+vt[0]+" "+vt[1])}}else{var h=r[0],_=h[1].x,y=h[1].y,C=_-h[0].x,E=y-h[0].y,X=[_,y],mt,vt;Math.abs(C)>0?(_-=C/Math.abs(C)*n,mt=[_,y+o],vt=[_,y-o]):(y-=E/Math.abs(E)*n,mt=[_+o,y],vt=[_-o,y]),c.routepath+="L "+_+" "+y+" ",n>0&&(c.arrowpath="M "+X[0]+" "+X[1]+" L "+mt[0]+" "+mt[1]+" L "+vt[0]+" "+vt[1])}return c},e}();$x.GridRouter=LEe});var s0t=Pe(mC=>{"use strict";Object.defineProperty(mC,"__esModule",{value:!0});var VEe=aC(),gL=UI(),zEe=qx(),jEe=GI(),qEe=function(){function e(r,i){this.source=r,this.target=i}return e.prototype.actualLength=function(r){var i=this;return Math.sqrt(r.reduce(function(o,n){var c=n[i.target]-n[i.source];return o+c*c},0))},e}();mC.Link3D=qEe;var HEe=function(){function e(r,i,o){r===void 0&&(r=0),i===void 0&&(i=0),o===void 0&&(o=0),this.x=r,this.y=i,this.z=o}return e}();mC.Node3D=HEe;var GEe=function(){function e(r,i,o){var n=this;o===void 0&&(o=1),this.nodes=r,this.links=i,this.idealLinkLength=o,this.constraints=null,this.useJaccardLinkLengths=!0,this.result=new Array(e.k);for(var c=0;c"u"&&(u[C]=Math.random())}n.result[0][h]=u.x,n.result[1][h]=u.y,n.result[2][h]=u.z})}return e.prototype.linkLength=function(r){return r.actualLength(this.result)},e.prototype.start=function(r){var i=this;r===void 0&&(r=100);var o=this.nodes.length,n=new UEe;this.useJaccardLinkLengths&&jEe.jaccardLinkLengths(this.links,n,1.5),this.links.forEach(function(C){return C.length*=i.idealLinkLength});var c=new VEe.Calculator(o,this.links,function(C){return C.source},function(C){return C.target},function(C){return C.length}).DistanceMatrix(),u=gL.Descent.createSquareMatrix(o,function(C,E){return c[C][E]}),h=gL.Descent.createSquareMatrix(o,function(){return 2});this.links.forEach(function(C){var E=C.source,T=C.target;return h[E][T]=h[T][E]=1}),this.descent=new gL.Descent(this.result,u),this.descent.threshold=.001,this.descent.G=h,this.constraints&&(this.descent.project=new zEe.Projection(this.nodes,null,null,this.constraints).projectFunctions());for(var _=0;_{"use strict";Object.defineProperty(aT,"__esModule",{value:!0});var xL=Hx(),$Ee=hL();function WEe(e,r,i,o){e.cola.start(0,0,0,10,!1);var n=QEe(e.cola.nodes(),e.cola.groups(),i,o);return n.routeEdges(e.powerGraph.powerEdges,r,function(c){return c.source.routerNode.id},function(c){return c.target.routerNode.id})}aT.gridify=WEe;function QEe(e,r,i,o){e.forEach(function(c){c.routerNode={name:c.name,bounds:c.bounds.inflate(-i)}}),r.forEach(function(c){c.routerNode={bounds:c.bounds.inflate(-o),children:(typeof c.groups<"u"?c.groups.map(function(u){return e.length+u.id}):[]).concat(typeof c.leaves<"u"?c.leaves.map(function(u){return u.index}):[])}});var n=e.concat(r).map(function(c,u){return c.routerNode.id=u,c.routerNode});return new $Ee.GridRouter(n,{getChildren:function(c){return c.children},getBounds:function(c){return c.bounds}},i-o)}function YEe(e,r,i){var o;e.nodes.forEach(function(h,_){return h.index=_}),new xL.Layout().avoidOverlaps(!1).nodes(e.nodes).links(e.links).powerGraphGroups(function(h){o=h,o.groups.forEach(function(_){return _.padding=i})});var n=e.nodes.length,c=[],u=e.nodes.slice(0);return u.forEach(function(h,_){return h.index=_}),o.groups.forEach(function(h){var _=h.index=h.id+n;u.push(h),typeof h.leaves<"u"&&h.leaves.forEach(function(y){return c.push({source:_,target:y.index})}),typeof h.groups<"u"&&h.groups.forEach(function(y){return c.push({source:_,target:y.id+n})})}),o.powerEdges.forEach(function(h){c.push({source:h.source.index,target:h.target.index})}),new xL.Layout().size(r).nodes(u).links(c).avoidOverlaps(!1).linkDistance(30).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(100,0,0,0,!1),{cola:new xL.Layout().convergenceThreshold(.001).size(r).avoidOverlaps(!0).nodes(e.nodes).links(e.links).groupCompactness(1e-4).linkDistance(30).symmetricDiffLinkLengths(5).powerGraphGroups(function(h){o=h,o.groups.forEach(function(_){_.padding=i})}).start(50,0,100,0,!1),powerGraph:o}}aT.powerGraphGridLayout=YEe});var c0t=Pe(sT=>{"use strict";function Ll(e){for(var r in e)sT.hasOwnProperty(r)||(sT[r]=e[r])}Object.defineProperty(sT,"__esModule",{value:!0});Ll(e0t());Ll(o0t());Ll(UI());Ll(sL());Ll(hL());Ll(lL());Ll(Hx());Ll(s0t());Ll(GI());Ll(QN());Ll(iL());Ll(ZN());Ll(qx());Ll(aC());Ll(QI());Ll(l0t())});var Hut=Pe((jl,sc)=>{(function(e){let r=e.en=e.en||{};r.dictionary=Object.assign(r.dictionary||{},{"%0 of %1":"%0 of %1",Accept:"Accept","Align cell text to the bottom":"Align cell text to the bottom","Align cell text to the center":"Align cell text to the center","Align cell text to the left":"Align cell text to the left","Align cell text to the middle":"Align cell text to the middle","Align cell text to the right":"Align cell text to the right","Align cell text to the top":"Align cell text to the top","Align table to the left":"Align table to the left","Align table to the right":"Align table to the right",Alignment:"Alignment",Aquamarine:"Aquamarine",Background:"Background",Black:"Black","Block quote":"Block quote",Blue:"Blue",Bold:"Bold",Border:"Border","Break text":"Break text","Bulleted List":"Bulleted List","Bulleted list styles toolbar":"Bulleted list styles toolbar",Cancel:"Cancel","Cannot access default workspace.":"Cannot access default workspace.","Cannot determine a category for the uploaded file.":"Cannot determine a category for the uploaded file.","Cannot upload file:":"Cannot upload file:","Caption for image: %0":"Caption for image: %0","Caption for the image":"Caption for the image","Cell properties":"Cell properties","Center table":"Center table","Centered image":"Centered image","Change image text alternative":"Change image text alternative","Choose heading":"Choose heading",Circle:"Circle",Clear:"Clear","Click to edit block":"Click to edit block",Code:"Code",Color:"Color","Color picker":"Color picker",Column:"Column","Could not insert image at the current position.":"Could not insert image at the current position.","Could not obtain resized image URL.":"Could not obtain resized image URL.",Dashed:"Dashed",Decimal:"Decimal","Decimal with leading zero":"Decimal with leading zero","Decrease indent":"Decrease indent","Delete column":"Delete column","Delete row":"Delete row","Dim grey":"Dim grey",Dimensions:"Dimensions",Disc:"Disc",Dotted:"Dotted",Double:"Double",Downloadable:"Downloadable","Drag to move":"Drag to move","Dropdown toolbar":"Dropdown toolbar","Edit block":"Edit block","Edit image":"Edit image","Edit link":"Edit link","Editor block content toolbar":"Editor block content toolbar","Editor contextual toolbar":"Editor contextual toolbar","Editor editing area: %0":"Editor editing area: %0","Editor toolbar":"Editor toolbar","Enter image caption":"Enter image caption","Enter table caption":"Enter table caption","Failed to determine category of edited image.":"Failed to determine category of edited image.","Full size image":"Full size image",Green:"Green",Grey:"Grey",Groove:"Groove","Header column":"Header column","Header row":"Header row",Heading:"Heading","Heading 1":"Heading 1","Heading 2":"Heading 2","Heading 3":"Heading 3","Heading 4":"Heading 4","Heading 5":"Heading 5","Heading 6":"Heading 6",Height:"Height",HEX:"HEX","Horizontal text alignment toolbar":"Horizontal text alignment toolbar","Image resize list":"Image resize list","Image toolbar":"Image toolbar","image widget":"image widget","In line":"In line","Increase indent":"Increase indent",Insert:"Insert","Insert column left":"Insert column left","Insert column right":"Insert column right","Insert image":"Insert image","Insert image or file":"Insert image or file","Insert image via URL":"Insert image via URL","Insert image with file manager":"Insert image with file manager","Insert media":"Insert media","Insert paragraph after block":"Insert paragraph after block","Insert paragraph before block":"Insert paragraph before block","Insert row above":"Insert row above","Insert row below":"Insert row below","Insert table":"Insert table","Insert with file manager":"Insert with file manager","Inserting image failed":"Inserting image failed",Inset:"Inset",Italic:"Italic","Justify cell text":"Justify cell text","Left aligned image":"Left aligned image","Light blue":"Light blue","Light green":"Light green","Light grey":"Light grey",Link:"Link","Link image":"Link image","Link URL":"Link URL","List properties":"List properties","Lower-latin":"Lower-latin","Lower\u2013roman":"Lower\u2013roman","Media toolbar":"Media toolbar","Media URL":"Media URL","media widget":"media widget","Merge cell down":"Merge cell down","Merge cell left":"Merge cell left","Merge cell right":"Merge cell right","Merge cell up":"Merge cell up","Merge cells":"Merge cells",Next:"Next","No results found":"No results found","No searchable items":"No searchable items",None:"None","Numbered List":"Numbered List","Numbered list styles toolbar":"Numbered list styles toolbar","Open file manager":"Open file manager","Open in a new tab":"Open in a new tab","Open link in new tab":"Open link in new tab","Open media in new tab":"Open media in new tab",Orange:"Orange",Original:"Original",Outset:"Outset",Padding:"Padding",Paragraph:"Paragraph","Paste the media URL in the input.":"Paste the media URL in the input.","Press Enter to type after or press Shift + Enter to type before the widget":"Press Enter to type after or press Shift + Enter to type before the widget",Previous:"Previous","Processing the edited image.":"Processing the edited image.",Purple:"Purple",Red:"Red",Redo:"Redo","Remove color":"Remove color","Replace from computer":"Replace from computer","Replace image":"Replace image","Replace image from computer":"Replace image from computer","Replace image with file manager":"Replace image with file manager","Replace with file manager":"Replace with file manager","Resize image":"Resize image","Resize image to %0":"Resize image to %0","Resize image to the original size":"Resize image to the original size","Restore default":"Restore default","Reversed order":"Reversed order","Rich Text Editor":"Rich Text Editor",Ridge:"Ridge","Right aligned image":"Right aligned image",Row:"Row",Save:"Save","Select all":"Select all","Select column":"Select column","Select row":"Select row","Selecting resized image failed":"Selecting resized image failed","Server failed to process the image.":"Server failed to process the image.","Show more items":"Show more items","Side image":"Side image",Solid:"Solid","Split cell horizontally":"Split cell horizontally","Split cell vertically":"Split cell vertically",Square:"Square","Start at":"Start at","Start index must be greater than 0.":"Start index must be greater than 0.",Strikethrough:"Strikethrough",Style:"Style",Subscript:"Subscript",Superscript:"Superscript","Table alignment toolbar":"Table alignment toolbar","Table cell text alignment":"Table cell text alignment","Table properties":"Table properties","Table toolbar":"Table toolbar","Text alternative":"Text alternative",'The color is invalid. Try "#FF0000" or "rgb(255,0,0)" or "red".':'The color is invalid. Try "#FF0000" or "rgb(255,0,0)" or "red".',"The URL must not be empty.":"The URL must not be empty.",'The value is invalid. Try "10px" or "2em" or simply "2".':'The value is invalid. Try "10px" or "2em" or simply "2".',"This link has no URL":"This link has no URL","This media URL is not supported.":"This media URL is not supported.","Tip: Paste the URL into the content to embed faster.":"Tip: Paste the URL into the content to embed faster.","To-do List":"To-do List","Toggle caption off":"Toggle caption off","Toggle caption on":"Toggle caption on","Toggle the circle list style":"Toggle the circle list style","Toggle the decimal list style":"Toggle the decimal list style","Toggle the decimal with leading zero list style":"Toggle the decimal with leading zero list style","Toggle the disc list style":"Toggle the disc list style","Toggle the lower\u2013latin list style":"Toggle the lower\u2013latin list style","Toggle the lower\u2013roman list style":"Toggle the lower\u2013roman list style","Toggle the square list style":"Toggle the square list style","Toggle the upper\u2013latin list style":"Toggle the upper\u2013latin list style","Toggle the upper\u2013roman list style":"Toggle the upper\u2013roman list style",Turquoise:"Turquoise","Type or paste your content here.":"Type or paste your content here.","Type your title":"Type your title",Underline:"Underline",Undo:"Undo",Unlink:"Unlink",Update:"Update","Update image URL":"Update image URL","Upload failed":"Upload failed","Upload from computer":"Upload from computer","Upload image from computer":"Upload image from computer","Upload in progress":"Upload in progress","Upper-latin":"Upper-latin","Upper-roman":"Upper-roman","Vertical text alignment toolbar":"Vertical text alignment toolbar",White:"White","Widget toolbar":"Widget toolbar",Width:"Width","Wrap text":"Wrap text",Yellow:"Yellow"})})(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),function(e,r){typeof jl=="object"&&typeof sc=="object"?sc.exports=r():typeof define=="function"&&define.amd?define([],r):typeof jl=="object"?jl.ClassicEditor=r():e.ClassicEditor=r()}(self,()=>(()=>{var e={4959:(n,c,u)=>{let h=u(1103),_={};for(let C of Object.keys(h))_[h[C]]=C;let y={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};n.exports=y;for(let C of Object.keys(y)){if(!("channels"in y[C]))throw new Error("missing channels property: "+C);if(!("labels"in y[C]))throw new Error("missing channel labels property: "+C);if(y[C].labels.length!==y[C].channels)throw new Error("channel and label counts mismatch: "+C);let{channels:E,labels:T}=y[C];delete y[C].channels,delete y[C].labels,Object.defineProperty(y[C],"channels",{value:E}),Object.defineProperty(y[C],"labels",{value:T})}y.rgb.hsl=function(C){let E=C[0]/255,T=C[1]/255,D=C[2]/255,M=Math.min(E,T,D),F=Math.max(E,T,D),B=F-M,z,$;F===M?z=0:E===F?z=(T-D)/B:T===F?z=2+(D-E)/B:D===F&&(z=4+(E-T)/B),z=Math.min(60*z,360),z<0&&(z+=360);let tt=(M+F)/2;return $=F===M?0:tt<=.5?B/(F+M):B/(2-F-M),[z,100*$,100*tt]},y.rgb.hsv=function(C){let E,T,D,M,F,B=C[0]/255,z=C[1]/255,$=C[2]/255,tt=Math.max(B,z,$),lt=tt-Math.min(B,z,$),gt=function(X){return(tt-X)/6/lt+.5};return lt===0?(M=0,F=0):(F=lt/tt,E=gt(B),T=gt(z),D=gt($),B===tt?M=D-T:z===tt?M=.3333333333333333+E-D:$===tt&&(M=.6666666666666666+T-E),M<0?M+=1:M>1&&(M-=1)),[360*M,100*F,100*tt]},y.rgb.hwb=function(C){let E=C[0],T=C[1],D=C[2],M=y.rgb.hsl(C)[0],F=1/255*Math.min(E,Math.min(T,D));return D=1-.00392156862745098*Math.max(E,Math.max(T,D)),[M,100*F,100*D]},y.rgb.cmyk=function(C){let E=C[0]/255,T=C[1]/255,D=C[2]/255,M=Math.min(1-E,1-T,1-D);return[100*((1-E-M)/(1-M)||0),100*((1-T-M)/(1-M)||0),100*((1-D-M)/(1-M)||0),100*M]},y.rgb.keyword=function(C){let E=_[C];if(E)return E;let T,D=1/0;for(let B of Object.keys(h)){let z=h[B],$=(F=z,((M=C)[0]-F[0])**2+(M[1]-F[1])**2+(M[2]-F[2])**2);$.04045?((E+.055)/1.055)**2.4:E/12.92,T=T>.04045?((T+.055)/1.055)**2.4:T/12.92,D=D>.04045?((D+.055)/1.055)**2.4:D/12.92,[100*(.4124*E+.3576*T+.1805*D),100*(.2126*E+.7152*T+.0722*D),100*(.0193*E+.1192*T+.9505*D)]},y.rgb.lab=function(C){let E=y.rgb.xyz(C),T=E[0],D=E[1],M=E[2];return T/=95.047,D/=100,M/=108.883,T=T>.008856?T**.3333333333333333:7.787*T+.13793103448275862,D=D>.008856?D**.3333333333333333:7.787*D+.13793103448275862,M=M>.008856?M**.3333333333333333:7.787*M+.13793103448275862,[116*D-16,500*(T-D),200*(D-M)]},y.hsl.rgb=function(C){let E=C[0]/360,T=C[1]/100,D=C[2]/100,M,F,B;if(T===0)return B=255*D,[B,B,B];M=D<.5?D*(1+T):D+T-D*T;let z=2*D-M,$=[0,0,0];for(let tt=0;tt<3;tt++)F=E+.3333333333333333*-(tt-1),F<0&&F++,F>1&&F--,B=6*F<1?z+6*(M-z)*F:2*F<1?M:3*F<2?z+(M-z)*(.6666666666666666-F)*6:z,$[tt]=255*B;return $},y.hsl.hsv=function(C){let E=C[0],T=C[1]/100,D=C[2]/100,M=T,F=Math.max(D,.01);return D*=2,T*=D<=1?D:2-D,M*=F<=1?F:2-F,[E,100*(D===0?2*M/(F+M):2*T/(D+T)),100*((D+T)/2)]},y.hsv.rgb=function(C){let E=C[0]/60,T=C[1]/100,D=C[2]/100,M=Math.floor(E)%6,F=E-Math.floor(E),B=255*D*(1-T),z=255*D*(1-T*F),$=255*D*(1-T*(1-F));switch(D*=255,M){case 0:return[D,$,B];case 1:return[z,D,B];case 2:return[B,D,$];case 3:return[B,z,D];case 4:return[$,B,D];case 5:return[D,B,z]}},y.hsv.hsl=function(C){let E=C[0],T=C[1]/100,D=C[2]/100,M=Math.max(D,.01),F,B;B=(2-T)*D;let z=(2-T)*M;return F=T*M,F/=z<=1?z:2-z,F=F||0,B/=2,[E,100*F,100*B]},y.hwb.rgb=function(C){let E=C[0]/360,T=C[1]/100,D=C[2]/100,M=T+D,F;M>1&&(T/=M,D/=M);let B=Math.floor(6*E),z=1-D;F=6*E-B,(1&B)!=0&&(F=1-F);let $=T+F*(z-T),tt,lt,gt;switch(B){default:case 6:case 0:tt=z,lt=$,gt=T;break;case 1:tt=$,lt=z,gt=T;break;case 2:tt=T,lt=z,gt=$;break;case 3:tt=T,lt=$,gt=z;break;case 4:tt=$,lt=T,gt=z;break;case 5:tt=z,lt=T,gt=$}return[255*tt,255*lt,255*gt]},y.cmyk.rgb=function(C){let E=C[0]/100,T=C[1]/100,D=C[2]/100,M=C[3]/100;return[255*(1-Math.min(1,E*(1-M)+M)),255*(1-Math.min(1,T*(1-M)+M)),255*(1-Math.min(1,D*(1-M)+M))]},y.xyz.rgb=function(C){let E=C[0]/100,T=C[1]/100,D=C[2]/100,M,F,B;return M=3.2406*E+-1.5372*T+-.4986*D,F=-.9689*E+1.8758*T+.0415*D,B=.0557*E+-.204*T+1.057*D,M=M>.0031308?1.055*M**.4166666666666667-.055:12.92*M,F=F>.0031308?1.055*F**.4166666666666667-.055:12.92*F,B=B>.0031308?1.055*B**.4166666666666667-.055:12.92*B,M=Math.min(Math.max(0,M),1),F=Math.min(Math.max(0,F),1),B=Math.min(Math.max(0,B),1),[255*M,255*F,255*B]},y.xyz.lab=function(C){let E=C[0],T=C[1],D=C[2];return E/=95.047,T/=100,D/=108.883,E=E>.008856?E**.3333333333333333:7.787*E+.13793103448275862,T=T>.008856?T**.3333333333333333:7.787*T+.13793103448275862,D=D>.008856?D**.3333333333333333:7.787*D+.13793103448275862,[116*T-16,500*(E-T),200*(T-D)]},y.lab.xyz=function(C){let E,T,D;T=(C[0]+16)/116,E=C[1]/500+T,D=T-C[2]/200;let M=T**3,F=E**3,B=D**3;return T=M>.008856?M:(T-.13793103448275862)/7.787,E=F>.008856?F:(E-.13793103448275862)/7.787,D=B>.008856?B:(D-.13793103448275862)/7.787,E*=95.047,T*=100,D*=108.883,[E,T,D]},y.lab.lch=function(C){let E=C[0],T=C[1],D=C[2],M;return M=360*Math.atan2(D,T)/2/Math.PI,M<0&&(M+=360),[E,Math.sqrt(T*T+D*D),M]},y.lch.lab=function(C){let E=C[0],T=C[1],D=C[2]/360*2*Math.PI;return[E,T*Math.cos(D),T*Math.sin(D)]},y.rgb.ansi16=function(C,E=null){let[T,D,M]=C,F=E===null?y.rgb.hsv(C)[2]:E;if(F=Math.round(F/50),F===0)return 30;let B=30+(Math.round(M/255)<<2|Math.round(D/255)<<1|Math.round(T/255));return F===2&&(B+=60),B},y.hsv.ansi16=function(C){return y.rgb.ansi16(y.hsv.rgb(C),C[2])},y.rgb.ansi256=function(C){let E=C[0],T=C[1],D=C[2];return E===T&&T===D?E<8?16:E>248?231:Math.round((E-8)/247*24)+232:16+36*Math.round(E/255*5)+6*Math.round(T/255*5)+Math.round(D/255*5)},y.ansi16.rgb=function(C){let E=C%10;if(E===0||E===7)return C>50&&(E+=3.5),E=E/10.5*255,[E,E,E];let T=.5*(1+~~(C>50));return[(1&E)*T*255,(E>>1&1)*T*255,(E>>2&1)*T*255]},y.ansi256.rgb=function(C){if(C>=232){let T=10*(C-232)+8;return[T,T,T]}let E;return C-=16,[Math.floor(C/36)/5*255,Math.floor((E=C%36)/6)/5*255,E%6/5*255]},y.rgb.hex=function(C){let E=(((255&Math.round(C[0]))<<16)+((255&Math.round(C[1]))<<8)+(255&Math.round(C[2]))).toString(16).toUpperCase();return"000000".substring(E.length)+E},y.hex.rgb=function(C){let E=C.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!E)return[0,0,0];let T=E[0];E[0].length===3&&(T=T.split("").map(M=>M+M).join(""));let D=parseInt(T,16);return[D>>16&255,D>>8&255,255&D]},y.rgb.hcg=function(C){let E=C[0]/255,T=C[1]/255,D=C[2]/255,M=Math.max(Math.max(E,T),D),F=Math.min(Math.min(E,T),D),B=M-F,z,$;return z=B<1?F/(1-B):0,$=B<=0?0:M===E?(T-D)/B%6:M===T?2+(D-E)/B:4+(E-T)/B,$/=6,$%=1,[360*$,100*B,100*z]},y.hsl.hcg=function(C){let E=C[1]/100,T=C[2]/100,D=T<.5?2*E*T:2*E*(1-T),M=0;return D<1&&(M=(T-.5*D)/(1-D)),[C[0],100*D,100*M]},y.hsv.hcg=function(C){let E=C[1]/100,T=C[2]/100,D=E*T,M=0;return D<1&&(M=(T-D)/(1-D)),[C[0],100*D,100*M]},y.hcg.rgb=function(C){let E=C[0]/360,T=C[1]/100,D=C[2]/100;if(T===0)return[255*D,255*D,255*D];let M=[0,0,0],F=E%1*6,B=F%1,z=1-B,$=0;switch(Math.floor(F)){case 0:M[0]=1,M[1]=B,M[2]=0;break;case 1:M[0]=z,M[1]=1,M[2]=0;break;case 2:M[0]=0,M[1]=1,M[2]=B;break;case 3:M[0]=0,M[1]=z,M[2]=1;break;case 4:M[0]=B,M[1]=0,M[2]=1;break;default:M[0]=1,M[1]=0,M[2]=z}return $=(1-T)*D,[255*(T*M[0]+$),255*(T*M[1]+$),255*(T*M[2]+$)]},y.hcg.hsv=function(C){let E=C[1]/100,T=E+C[2]/100*(1-E),D=0;return T>0&&(D=E/T),[C[0],100*D,100*T]},y.hcg.hsl=function(C){let E=C[1]/100,T=C[2]/100*(1-E)+.5*E,D=0;return T>0&&T<.5?D=E/(2*T):T>=.5&&T<1&&(D=E/(2*(1-T))),[C[0],100*D,100*T]},y.hcg.hwb=function(C){let E=C[1]/100,T=E+C[2]/100*(1-E);return[C[0],100*(T-E),100*(1-T)]},y.hwb.hcg=function(C){let E=C[1]/100,T=1-C[2]/100,D=T-E,M=0;return D<1&&(M=(T-D)/(1-D)),[C[0],100*D,100*M]},y.apple.rgb=function(C){return[C[0]/65535*255,C[1]/65535*255,C[2]/65535*255]},y.rgb.apple=function(C){return[C[0]/255*65535,C[1]/255*65535,C[2]/255*65535]},y.gray.rgb=function(C){return[C[0]/100*255,C[0]/100*255,C[0]/100*255]},y.gray.hsl=function(C){return[0,0,C[0]]},y.gray.hsv=y.gray.hsl,y.gray.hwb=function(C){return[0,100,C[0]]},y.gray.cmyk=function(C){return[0,0,0,C[0]]},y.gray.lab=function(C){return[C[0],0,0]},y.gray.hex=function(C){let E=255&Math.round(C[0]/100*255),T=((E<<16)+(E<<8)+E).toString(16).toUpperCase();return"000000".substring(T.length)+T},y.rgb.gray=function(C){return[(C[0]+C[1]+C[2])/3/255*100]}},841:(n,c,u)=>{let h=u(4959),_=u(9325),y={};Object.keys(h).forEach(C=>{y[C]={},Object.defineProperty(y[C],"channels",{value:h[C].channels}),Object.defineProperty(y[C],"labels",{value:h[C].labels});let E=_(C);Object.keys(E).forEach(T=>{let D=E[T];y[C][T]=function(M){let F=function(...B){let z=B[0];if(z==null)return z;z.length>1&&(B=z);let $=M(B);if(typeof $=="object")for(let tt=$.length,lt=0;lt1&&(B=z),M(B))};return"conversion"in M&&(F.conversion=M.conversion),F}(D)})}),n.exports=y},9325:(n,c,u)=>{let h=u(4959);function _(E){let T=function(){let M={},F=Object.keys(h);for(let B=F.length,z=0;z{"use strict";n.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},8603:(n,c,u)=>{"use strict";u.d(c,{Z:()=>E});var h=u(1799),_=u.n(h),y=u(2609),C=u.n(y)()(_());C.push([n.id,".ck-content code{background-color:hsla(0,0%,78%,.3);border-radius:2px;padding:.15em}.ck.ck-editor__editable .ck-code_selected{background-color:hsla(0,0%,78%,.5)}","",{version:3,sources:["webpack://./../ckeditor5-basic-styles/theme/code.css"],names:[],mappings:"AAKA,iBACC,kCAAuC,CAEvC,iBAAkB,CADlB,aAED,CAEA,0CACC,kCACD",sourcesContent:[`/* * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ @@ -12549,7 +12549,7 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),k(57,"mat-paginator",13),t(58,` `),s(),t(59,` `),s(),t(60,` -`)),o&2&&(l(5),b(d(6,5,"labels.heading.Charges Overview")),l(3),g("dataSource",n.dataSource),l(44),g("matHeaderRowDef",n.displayedColumns),l(2),g("matRowDefColumns",n.displayedColumns),l(3),g("pageSizeOptions",ht(7,UOt)))},dependencies:[St,io,wt,oe,Gi,Et,Fe,Ne,Re,Le,Be,Ve,ze,qe,je,He,Je,mo],styles:["table[_ngcontent-%COMP%]{width:100%;margin-top:3%}.tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.charges-card[_ngcontent-%COMP%]{margin:0 auto;max-width:80rem;width:90%}"]})}}return e})();var UF=(()=>{class e{constructor(i){this.clientsService=i}resolve(i){let o=i.parent.params.clientId;return this.clientsService.getAllClientCharges(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ji))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var $F=(()=>{class e{constructor(i,o){this.clientsService=i,this.productsService=o}resolve(i){let o=i.paramMap.get("name"),n=i.paramMap.get("clientId")||i.parent.parent.paramMap.get("clientId");switch(o){case"Survey":return this.clientsService.getSurveys(n);case"Take Survey":return this.clientsService.getAllSurveysType();case"Close":return this.clientsService.getClientCommandTemplate("close");case"Reject":return this.clientsService.getClientCommandTemplate("reject");case"Withdraw":return this.clientsService.getClientCommandTemplate("withdraw");case"Transfer Client":return this.clientsService.getOffices();case"Add Charge":return this.clientsService.getClientChargeTemplate(n);case"Create Collateral":return this.productsService.getCollaterals();case"Client Screen Reports":return this.clientsService.getClientReportTemplates();case"Assign Staff":case"Update Default Savings":return this.clientsService.getClientDataAndTemplate(n);case"Undo Transfer":case"Accept Transfer":case"Reject Transfer":return this.clientsService.getClientTransferProposalDate(n);default:return}}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ji),Qt(ki))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var WF=(()=>{class e{constructor(i){this.clientsService=i}resolve(i){let o=i.parent.parent.parent.paramMap.get("clientId"),n=i.paramMap.get("chargeId");return this.clientsService.getSelectedChargeData(o,n)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ji))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var QF=(()=>{class e{constructor(i){this.clientsService=i}resolve(i){let o=i.parent.parent.parent.paramMap.get("clientId"),n=i.paramMap.get("chargeId");return this.clientsService.getClientTransactionPay(o,n)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ji))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var YF=(()=>{class e{constructor(i){this.clientsService=i}resolve(i){let o=i.paramMap.get("clientId");return this.clientsService.getClientDataAndTemplate(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ji))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var KF=(()=>{class e{constructor(i){this.clientsService=i}resolve(i){let o=i.parent.paramMap.get("clientId");return this.clientsService.getCollateralTemplate(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ji))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var a9t=[uo.withShell([{path:"clients",data:{title:"Clients",breadcrumb:"Clients",routeParamBreadcrumb:!1},children:[{path:"",component:a5},{path:"create",data:{title:"Create Client",breadcrumb:"Create Client",routeParamBreadcrumb:!1},component:J5,resolve:{clientAddressFieldConfig:X5,clientTemplate:_x}},{path:":clientId",component:g5,data:{title:"Clients View",routeParamBreadcrumb:"clientId"},resolve:{clientViewData:Z5,clientTemplateData:_x,clientDatatables:jF},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:x5,data:{title:"General",breadcrumb:"General",routeParamBreadcrumb:!1},resolve:{clientAccountsData:OF,clientChargesData:BF,clientCollateralData:KF}},{path:"address",component:E5,data:{title:"Address",breadcrumb:"Address",routeParamBreadcrumb:!1},resolve:{clientAddressFieldConfig:X5,clientAddressTemplateData:GF,clientAddressData:FF}},{path:"family-members",data:{title:"Family Members",breadcrumb:"Family Members",routeParamBreadcrumb:!1},children:[{path:"",component:_5,resolve:{clientFamilyMembers:RF}},{path:"add",component:v5,data:{title:"Add",breadcrumb:"Add",routeParamBreadcrumb:!1},resolve:{clientTemplate:_x}},{path:":familyMemberId",children:[{path:"edit",component:b5,data:{title:"Family Member View",routeParamBreadcrumb:"familyMemberId"},resolve:{clientTemplate:_x,editFamilyMember:NF}}]}]},{path:"identities",component:C5,data:{title:"Identities",breadcrumb:"Identities",routeParamBreadcrumb:!1},resolve:{clientIdentities:LF,clientIdentifierTemplate:HF}},{path:"documents",component:S5,data:{title:"Documents",breadcrumb:"Documents",routeParamBreadcrumb:!1},resolve:{clientDocuments:zF}},{path:"notes",component:y5,data:{title:"Notes",breadcrumb:"Notes",routeParamBreadcrumb:!1},resolve:{clientNotes:VF}},{path:"datatables",children:[{path:":datatableName",component:w5,data:{title:"Data Table View",routeParamBreadcrumb:"datatableName"},resolve:{clientDatatable:qF}}]}]}]},{path:"clients",data:{title:"Clients",breadcrumb:"Clients",routeParamBreadcrumb:!1},children:[{path:":clientId",data:{title:"Clients View",routeParamBreadcrumb:"clientId"},resolve:{clientViewData:Z5},children:[{path:"edit",data:{title:"Edit Client",breadcrumb:"Edit",routeParamBreadcrumb:!1},component:$5,resolve:{clientDataAndTemplate:YF}},{path:"actions/:name",data:{title:"Client Actions",routeParamBreadcrumb:"name"},component:H5,resolve:{clientActionData:$F}},{path:"charges",children:[{path:"overview",data:{title:"Charges Overview",breadcrumb:"Charges Overview"},component:tE,resolve:{clientChargesData:UF}},{path:":chargeId",data:{title:"Charges",routeParamBreadcrumb:"chargeId"},children:[{path:"",component:G5,resolve:{clientChargeData:WF}},{path:"pay",data:{title:"Pay Charge",routeParamBreadcrumb:!1},component:U5,resolve:{transactionData:QF}}]}]},{path:"loans-accounts",loadChildren:()=>import("./loans.module-455IG6WF.js").then(e=>e.LoansModule)},{path:"client-collateral",loadChildren:()=>import("./collaterals.module-IQLSLLN7.js").then(e=>e.CollateralsModule)},{path:"fixed-deposits-accounts",loadChildren:()=>import("./fixed-deposits.module-AK5OY6FO.js").then(e=>e.FixedDepositsModule)},{path:"savings-accounts",loadChildren:()=>import("./savings.module-6DKAYMO6.js").then(e=>e.SavingsModule)},{path:"recurring-deposits-accounts",loadChildren:()=>import("./recurring-deposits.module-XCGNYUI2.js").then(e=>e.RecurringDepositsModule)},{path:"shares-accounts",loadChildren:()=>import("./shares.module-6BWWOTIG.js").then(e=>e.SharesModule)},{path:"standing-instructions",loadChildren:()=>import("./account-transfers.module-3MJMMBU5.js").then(e=>e.AccountTransfersModule)}]}]}])],bJ=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e})}static{this.\u0275inj=un({providers:[Z5,OF,FF,BF,vJ,RF,NF,_x,LF,VF,zF,jF,qF,HF,X5,GF,UF,$F,WF,QF,YF,KF],imports:[tr.forChild(a9t),tr]})}}return e})();var s9t=e=>({editForm:e}),CJ=(()=>{class e{constructor(i,o,n){this.dialogRef=i,this.formBuilder=o,this.data=n}ngOnInit(){this.createNoteForm()}createNoteForm(){this.noteForm=this.formBuilder.group({note:[this.data.noteContent,bt.required]})}static{this.\u0275fac=function(o){return new(o||e)(V(qr),V(xe),V(bo))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-edit-notes-dialog"]],decls:27,vars:14,consts:[["formRef","ngForm"],["mat-dialog-title",""],[3,"formGroup"],["formControlName","note","matInput","","placeholder","Write a note ...."],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"disabled","mat-dialog-close"]],template:function(o,n){o&1&&(a(0,"h1",1),t(1),m(2,"translate"),s(),t(3,` +`)),o&2&&(l(5),b(d(6,5,"labels.heading.Charges Overview")),l(3),g("dataSource",n.dataSource),l(44),g("matHeaderRowDef",n.displayedColumns),l(2),g("matRowDefColumns",n.displayedColumns),l(3),g("pageSizeOptions",ht(7,UOt)))},dependencies:[St,io,wt,oe,Gi,Et,Fe,Ne,Re,Le,Be,Ve,ze,qe,je,He,Je,mo],styles:["table[_ngcontent-%COMP%]{width:100%;margin-top:3%}.tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.charges-card[_ngcontent-%COMP%]{margin:0 auto;max-width:80rem;width:90%}"]})}}return e})();var UF=(()=>{class e{constructor(i){this.clientsService=i}resolve(i){let o=i.parent.params.clientId;return this.clientsService.getAllClientCharges(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ji))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var $F=(()=>{class e{constructor(i,o){this.clientsService=i,this.productsService=o}resolve(i){let o=i.paramMap.get("name"),n=i.paramMap.get("clientId")||i.parent.parent.paramMap.get("clientId");switch(o){case"Survey":return this.clientsService.getSurveys(n);case"Take Survey":return this.clientsService.getAllSurveysType();case"Close":return this.clientsService.getClientCommandTemplate("close");case"Reject":return this.clientsService.getClientCommandTemplate("reject");case"Withdraw":return this.clientsService.getClientCommandTemplate("withdraw");case"Transfer Client":return this.clientsService.getOffices();case"Add Charge":return this.clientsService.getClientChargeTemplate(n);case"Create Collateral":return this.productsService.getCollaterals();case"Client Screen Reports":return this.clientsService.getClientReportTemplates();case"Assign Staff":case"Update Default Savings":return this.clientsService.getClientDataAndTemplate(n);case"Undo Transfer":case"Accept Transfer":case"Reject Transfer":return this.clientsService.getClientTransferProposalDate(n);default:return}}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ji),Qt(ki))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var WF=(()=>{class e{constructor(i){this.clientsService=i}resolve(i){let o=i.parent.parent.parent.paramMap.get("clientId"),n=i.paramMap.get("chargeId");return this.clientsService.getSelectedChargeData(o,n)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ji))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var QF=(()=>{class e{constructor(i){this.clientsService=i}resolve(i){let o=i.parent.parent.parent.paramMap.get("clientId"),n=i.paramMap.get("chargeId");return this.clientsService.getClientTransactionPay(o,n)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ji))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var YF=(()=>{class e{constructor(i){this.clientsService=i}resolve(i){let o=i.paramMap.get("clientId");return this.clientsService.getClientDataAndTemplate(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ji))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var KF=(()=>{class e{constructor(i){this.clientsService=i}resolve(i){let o=i.parent.paramMap.get("clientId");return this.clientsService.getCollateralTemplate(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ji))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var a9t=[uo.withShell([{path:"clients",data:{title:"Clients",breadcrumb:"Clients",routeParamBreadcrumb:!1},children:[{path:"",component:a5},{path:"create",data:{title:"Create Client",breadcrumb:"Create Client",routeParamBreadcrumb:!1},component:J5,resolve:{clientAddressFieldConfig:X5,clientTemplate:_x}},{path:":clientId",component:g5,data:{title:"Clients View",routeParamBreadcrumb:"clientId"},resolve:{clientViewData:Z5,clientTemplateData:_x,clientDatatables:jF},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:x5,data:{title:"General",breadcrumb:"General",routeParamBreadcrumb:!1},resolve:{clientAccountsData:OF,clientChargesData:BF,clientCollateralData:KF}},{path:"address",component:E5,data:{title:"Address",breadcrumb:"Address",routeParamBreadcrumb:!1},resolve:{clientAddressFieldConfig:X5,clientAddressTemplateData:GF,clientAddressData:FF}},{path:"family-members",data:{title:"Family Members",breadcrumb:"Family Members",routeParamBreadcrumb:!1},children:[{path:"",component:_5,resolve:{clientFamilyMembers:RF}},{path:"add",component:v5,data:{title:"Add",breadcrumb:"Add",routeParamBreadcrumb:!1},resolve:{clientTemplate:_x}},{path:":familyMemberId",children:[{path:"edit",component:b5,data:{title:"Family Member View",routeParamBreadcrumb:"familyMemberId"},resolve:{clientTemplate:_x,editFamilyMember:NF}}]}]},{path:"identities",component:C5,data:{title:"Identities",breadcrumb:"Identities",routeParamBreadcrumb:!1},resolve:{clientIdentities:LF,clientIdentifierTemplate:HF}},{path:"documents",component:S5,data:{title:"Documents",breadcrumb:"Documents",routeParamBreadcrumb:!1},resolve:{clientDocuments:zF}},{path:"notes",component:y5,data:{title:"Notes",breadcrumb:"Notes",routeParamBreadcrumb:!1},resolve:{clientNotes:VF}},{path:"datatables",children:[{path:":datatableName",component:w5,data:{title:"Data Table View",routeParamBreadcrumb:"datatableName"},resolve:{clientDatatable:qF}}]}]}]},{path:"clients",data:{title:"Clients",breadcrumb:"Clients",routeParamBreadcrumb:!1},children:[{path:":clientId",data:{title:"Clients View",routeParamBreadcrumb:"clientId"},resolve:{clientViewData:Z5},children:[{path:"edit",data:{title:"Edit Client",breadcrumb:"Edit",routeParamBreadcrumb:!1},component:$5,resolve:{clientDataAndTemplate:YF}},{path:"actions/:name",data:{title:"Client Actions",routeParamBreadcrumb:"name"},component:H5,resolve:{clientActionData:$F}},{path:"charges",children:[{path:"overview",data:{title:"Charges Overview",breadcrumb:"Charges Overview"},component:tE,resolve:{clientChargesData:UF}},{path:":chargeId",data:{title:"Charges",routeParamBreadcrumb:"chargeId"},children:[{path:"",component:G5,resolve:{clientChargeData:WF}},{path:"pay",data:{title:"Pay Charge",routeParamBreadcrumb:!1},component:U5,resolve:{transactionData:QF}}]}]},{path:"loans-accounts",loadChildren:()=>import("./loans.module-CZ4MCVAE.js").then(e=>e.LoansModule)},{path:"client-collateral",loadChildren:()=>import("./collaterals.module-OVTOQQC3.js").then(e=>e.CollateralsModule)},{path:"fixed-deposits-accounts",loadChildren:()=>import("./fixed-deposits.module-KYMJW3C7.js").then(e=>e.FixedDepositsModule)},{path:"savings-accounts",loadChildren:()=>import("./savings.module-MJKP5CF4.js").then(e=>e.SavingsModule)},{path:"recurring-deposits-accounts",loadChildren:()=>import("./recurring-deposits.module-2RUP7WIB.js").then(e=>e.RecurringDepositsModule)},{path:"shares-accounts",loadChildren:()=>import("./shares.module-BZ36OCHH.js").then(e=>e.SharesModule)},{path:"standing-instructions",loadChildren:()=>import("./account-transfers.module-DO6BMPA2.js").then(e=>e.AccountTransfersModule)}]}]}])],bJ=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e})}static{this.\u0275inj=un({providers:[Z5,OF,FF,BF,vJ,RF,NF,_x,LF,VF,zF,jF,qF,HF,X5,GF,UF,$F,WF,QF,YF,KF],imports:[tr.forChild(a9t),tr]})}}return e})();var s9t=e=>({editForm:e}),CJ=(()=>{class e{constructor(i,o,n){this.dialogRef=i,this.formBuilder=o,this.data=n}ngOnInit(){this.createNoteForm()}createNoteForm(){this.noteForm=this.formBuilder.group({note:[this.data.noteContent,bt.required]})}static{this.\u0275fac=function(o){return new(o||e)(V(qr),V(xe),V(bo))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-edit-notes-dialog"]],decls:27,vars:14,consts:[["formRef","ngForm"],["mat-dialog-title",""],[3,"formGroup"],["formControlName","note","matInput","","placeholder","Write a note ...."],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"disabled","mat-dialog-close"]],template:function(o,n){o&1&&(a(0,"h1",1),t(1),m(2,"translate"),s(),t(3,` `),a(4,"div"),t(5,` `),a(6,"form",2,0),t(8,` `),a(9,"mat-form-field"),t(10,` @@ -13916,7 +13916,7 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `,d(68,26,"labels.buttons.Cancel"),` `),l(3),g("disabled",!n.editGroupForm.valid),l(),P(` `,d(72,28,"labels.buttons.Submit"),` - `)}},dependencies:[St,se,zt,wt,ge,Se,re,ue,Ie,fe,he,qt,oe,me,Ue,Ht,$t,Te,Si,Zt,Oe,De,Mi,Di,Ti,Dt,Et],styles:[".container[_ngcontent-%COMP%]{max-width:50rem}"]})}}return e})();var JF=(()=>{class e{constructor(i){this.groupsService=i}resolve(i){let o=i.parent.paramMap.get("groupId");return this.groupsService.getGroupSummary(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(vr))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var ZF=(()=>{class e{constructor(i){this.groupsService=i}resolve(i){let o=i.parent.paramMap.get("groupId");return this.groupsService.getGroupNotes(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(vr))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var XF=(()=>{class e{constructor(i){this.groupsService=i}resolve(){return this.groupsService.getGroupDatatables()}static{this.\u0275fac=function(o){return new(o||e)(Qt(vr))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var tB=(()=>{class e{constructor(i){this.groupsService=i}resolve(i){let o=i.parent.parent.paramMap.get("groupId"),n=i.paramMap.get("datatableName");return this.groupsService.getGroupDatatable(o,n)}static{this.\u0275fac=function(o){return new(o||e)(Qt(vr))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var SE=(()=>{class e{constructor(i){this.groupsService=i}resolve(i){let o=i.paramMap.get("groupId");return this.groupsService.getGroupData(o,"true")}static{this.\u0275fac=function(o){return new(o||e)(Qt(vr))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var eB=(()=>{class e{constructor(i){this.groupsService=i}resolve(i){let o=i.paramMap.get("action"),n=i.paramMap.get("groupId")||i.parent.parent.paramMap.get("groupId");switch(o){case"Attendance":case"Manage Members":case"Transfer Clients":return this.groupsService.getGroupData(n);case"Assign Staff":return this.groupsService.getGroupData(n,"true");case"Close":return this.groupsService.getGroupCommandTemplate("close");case"Attach Meeting":return this.groupsService.getGroupCalendarTemplate(n);case"Edit Meeting":case"Edit Meeting Schedule":let c=i.queryParamMap.get("calendarId");return this.groupsService.getGroupCalendarAndTemplate(n,c);default:return}}static{this.\u0275fac=function(o){return new(o||e)(Qt(vr))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var iB=(()=>{class e{constructor(i){this.groupsService=i}resolve(i){let o=i.parent.paramMap.get("groupId");return this.groupsService.getGLIMAccountsData(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(vr))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var wLt=[uo.withShell([{path:"groups",data:{title:"Groups",breadcrumb:"Groups",routeParamBreadcrumb:!1},children:[{path:"",component:iE},{path:"create",component:cE,data:{title:"Create Group",breadcrumb:"Create",routeParamBreadcrumb:!1},resolve:{offices:bl}},{path:":groupId",data:{title:"View Group",routeParamBreadcrumb:"groupId"},resolve:{groupViewData:db},children:[{path:"",component:rE,resolve:{groupViewData:db,groupDatatables:XF},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:oE,data:{title:"General",breadcrumb:"General",routeParamBreadcrumb:!1},resolve:{groupAccountsData:e9,groupSummary:JF,gsimData:i9,glimData:iB}},{path:"notes",component:aE,data:{title:"Notes",breadcrumb:"Notes",routeParamBreadcrumb:!1},resolve:{groupNotes:ZF}},{path:"committee",component:lE,data:{title:"Committee",breadcrumb:"Committee",routeParamBreadcrumb:!1}},{path:"datatables",children:[{path:":datatableName",component:pE,data:{title:"View Data Table",routeParamBreadcrumb:"datatableName"},resolve:{groupDatatable:tB}}]}]},{path:"edit",component:yE,data:{title:"Edit Group",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{groupAndTemplateData:SE,groupViewData:db}},{path:"committee",children:[{path:"",redirectTo:"../committee",pathMatch:"prefix"},{path:"add-role",data:{title:"Add Role",breadcrumb:"Add Role",routeParamBreadcrumb:!1},component:mE,resolve:{groupAndTemplateData:SE}}]},{path:"actions/:action",data:{title:"Group Actions",breadcrumb:"action",routeParamBreadcrumb:"action"},component:CE,resolve:{groupActionData:eB}},{path:"loans-accounts",loadChildren:()=>import("./loans.module-455IG6WF.js").then(e=>e.LoansModule)},{path:"savings-accounts",loadChildren:()=>import("./savings.module-6DKAYMO6.js").then(e=>e.SavingsModule)}]}]}])],EJ=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e})}static{this.\u0275inj=un({providers:[db,e9,JF,ZF,XF,tB,SE,eB,i9,iB],imports:[tr.forChild(wLt),tr]})}}return e})();var PJ=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e})}static{this.\u0275inj=un({imports:[Yr,ya,rl,EJ,iE,rE,oE,aE,lE,cE,pE,mE,sE,CE,dE,nE,uE,fE,yE,hE,gE,xE,_E,vE,bE]})}}return e})();var Nr=(()=>{class e{constructor(i){this.http=i}getCenters(i,o,n,c,u){let h=new Hn().set("offset",c.toString()).set("limit",u.toString()).set("sortOrder",n).set("orderBy",o).set("paged","true");return i.forEach(function(_){_.value&&(h=h.set(_.type,_.value))}),this.http.get("/centers",{params:h})}createCenter(i){return this.http.post("/centers",i)}getStaff(i){let o=new Hn().set("officeId",i.toString()).set("staffInSelectedOfficeOnly","true");return this.http.get("/centers/template",{params:o})}getCenterData(i){let o=new Hn().set("associations","groupMembers,collectionMeetingCalendar");return this.http.get(`/centers/${i}`,{params:o})}getCenterSummary(i){let o=new Hn().set("R_groupId",i).set("genericResultSet","false");return this.http.get("/runreports/GroupSummaryCounts",{params:o})}getSavingsAccountDetails(i){return this.http.get(`/centers/${i}/accounts`)}getCenterNotes(i){return this.http.get(`/groups/${i}/notes`)}createCenterNote(i,o){return this.http.post(`/groups/${i}/notes`,o)}editCenterNote(i,o,n){return this.http.put(`/groups/${i}/notes/${o}`,n)}deleteCenterNote(i,o){return this.http.delete(`/groups/${i}/notes/${o}`)}getcenterDatatables(){let i=new Hn().set("apptable","m_center");return this.http.get("/datatables",{params:i})}getCenterDatatable(i,o){let n=new Hn().set("genericResultSet","true");return this.http.get(`/datatables/${o}/${i}`,{params:n})}addCenterDatatableEntry(i,o,n){let c=new Hn().set("genericResultSet","true");return this.http.post(`/datatables/${o}/${i}`,n,{params:c})}editCenterDatatableEntry(i,o,n){let c=new Hn().set("genericResultSet","true");return this.http.put(`/datatables/${o}/${i}`,n,{params:c})}deleteDatatableContent(i,o){let n=new Hn().set("genericResultSet","true");return this.http.delete(`/datatables/${o}/${i}`,{params:n})}executeCenterActionCommand(i,o,n){let c=new Hn().set("command",o);return this.http.post(`/centers/${i}`,n,{params:c})}executeGroupActionCommand(i,o,n){let c=new Hn().set("command",o);return this.http.post(`/groups/${i}`,n,{params:c})}getGroupStaffData(i){let o=new Hn().set("groupOrCenter","centers").set("staffInSelectedOfficeOnly","true").set("template","true");return this.http.get(`/groups/${i}`,{params:o})}deleteCenter(i){return this.http.delete(`/centers/${i}`)}getCentersData(i,o,n){let c=new Hn().set("associations",o);return c=n?c.set("template",n):c,this.http.get(`/centers/${i}`,{params:c})}getMeetingsTemplate(i,o){let n=new Hn().set("calenderId",o);return this.http.get(`/centers/${i}/meetings/template`)}assignCenterAttendance(i,o,n){let c=new Hn().set("calenderId",o);return this.http.post(`/centers/${i}/meetings`,n,{params:c})}getCalendarTemplate(i){return this.http.get(`/centers/${i}/calendars/template`)}createCenterMeeting(i,o){return this.http.post(`/centers/${i}/calendars`,o)}getCalendarAndTemplate(i,o){let n=new Hn().set("template","true");return this.http.get(`/centers/${i}/calendars/${o}`,{params:n})}updateCenterMeeting(i,o,n){return this.http.put(`/centers/${i}/calendars/${n}`,o)}getStaffAssignmentHistoryData(i,o,n,c){let u=new Hn().set("tenantIdentifier",n).set("locale",c).set("R_centerId",o);return this.http.get(`/runreports/${i}`,{responseType:"arraybuffer",observe:"response",params:u})}getCenterAndTemplateData(i){let o=new Hn().set("staffInSelectedOfficeOnly","true").set("template","true");return this.http.get(`/centers/${i}`,{params:o})}executeEditCenter(i,o){return this.http.put(`/groups/${i}`,o)}getAllMeetingFallCenters(i,o,n,c,u){return this.http.get(`/centers?dateFormat=${c}&locale=${u}&meetingDate=${n}&officeId=${i}&staffId=${o}`)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ro))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var wE=class{constructor(r){this.centersService=r,this.centersSubject=new _s([]),this.recordsSubject=new _s(0),this.records$=this.recordsSubject.asObservable()}getCenters(r,i="",o="",n=0,c=10,u=!0){this.centersSubject.next([]),this.centersService.getCenters(r,i,o,n*c,c).subscribe(h=>{h.pageItems=u?h.pageItems.filter(_=>_.active):h.pageItems,this.recordsSubject.next(h.totalFilteredRecords),this.centersSubject.next(h.pageItems)})}connect(r){return this.centersSubject.asObservable()}disconnect(r){this.centersSubject.complete(),this.recordsSubject.complete()}};var ELt=["showClosedCenters"],PLt=()=>[10,25,50,100],kLt=()=>["../","organization","bulk-import","Centers"],ILt=()=>["create"],TLt=e=>[e,"general"];function MLt(e,r){e&1&&(a(0,"button",22),t(1,` + `)}},dependencies:[St,se,zt,wt,ge,Se,re,ue,Ie,fe,he,qt,oe,me,Ue,Ht,$t,Te,Si,Zt,Oe,De,Mi,Di,Ti,Dt,Et],styles:[".container[_ngcontent-%COMP%]{max-width:50rem}"]})}}return e})();var JF=(()=>{class e{constructor(i){this.groupsService=i}resolve(i){let o=i.parent.paramMap.get("groupId");return this.groupsService.getGroupSummary(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(vr))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var ZF=(()=>{class e{constructor(i){this.groupsService=i}resolve(i){let o=i.parent.paramMap.get("groupId");return this.groupsService.getGroupNotes(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(vr))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var XF=(()=>{class e{constructor(i){this.groupsService=i}resolve(){return this.groupsService.getGroupDatatables()}static{this.\u0275fac=function(o){return new(o||e)(Qt(vr))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var tB=(()=>{class e{constructor(i){this.groupsService=i}resolve(i){let o=i.parent.parent.paramMap.get("groupId"),n=i.paramMap.get("datatableName");return this.groupsService.getGroupDatatable(o,n)}static{this.\u0275fac=function(o){return new(o||e)(Qt(vr))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var SE=(()=>{class e{constructor(i){this.groupsService=i}resolve(i){let o=i.paramMap.get("groupId");return this.groupsService.getGroupData(o,"true")}static{this.\u0275fac=function(o){return new(o||e)(Qt(vr))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var eB=(()=>{class e{constructor(i){this.groupsService=i}resolve(i){let o=i.paramMap.get("action"),n=i.paramMap.get("groupId")||i.parent.parent.paramMap.get("groupId");switch(o){case"Attendance":case"Manage Members":case"Transfer Clients":return this.groupsService.getGroupData(n);case"Assign Staff":return this.groupsService.getGroupData(n,"true");case"Close":return this.groupsService.getGroupCommandTemplate("close");case"Attach Meeting":return this.groupsService.getGroupCalendarTemplate(n);case"Edit Meeting":case"Edit Meeting Schedule":let c=i.queryParamMap.get("calendarId");return this.groupsService.getGroupCalendarAndTemplate(n,c);default:return}}static{this.\u0275fac=function(o){return new(o||e)(Qt(vr))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var iB=(()=>{class e{constructor(i){this.groupsService=i}resolve(i){let o=i.parent.paramMap.get("groupId");return this.groupsService.getGLIMAccountsData(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(vr))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var wLt=[uo.withShell([{path:"groups",data:{title:"Groups",breadcrumb:"Groups",routeParamBreadcrumb:!1},children:[{path:"",component:iE},{path:"create",component:cE,data:{title:"Create Group",breadcrumb:"Create",routeParamBreadcrumb:!1},resolve:{offices:bl}},{path:":groupId",data:{title:"View Group",routeParamBreadcrumb:"groupId"},resolve:{groupViewData:db},children:[{path:"",component:rE,resolve:{groupViewData:db,groupDatatables:XF},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:oE,data:{title:"General",breadcrumb:"General",routeParamBreadcrumb:!1},resolve:{groupAccountsData:e9,groupSummary:JF,gsimData:i9,glimData:iB}},{path:"notes",component:aE,data:{title:"Notes",breadcrumb:"Notes",routeParamBreadcrumb:!1},resolve:{groupNotes:ZF}},{path:"committee",component:lE,data:{title:"Committee",breadcrumb:"Committee",routeParamBreadcrumb:!1}},{path:"datatables",children:[{path:":datatableName",component:pE,data:{title:"View Data Table",routeParamBreadcrumb:"datatableName"},resolve:{groupDatatable:tB}}]}]},{path:"edit",component:yE,data:{title:"Edit Group",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{groupAndTemplateData:SE,groupViewData:db}},{path:"committee",children:[{path:"",redirectTo:"../committee",pathMatch:"prefix"},{path:"add-role",data:{title:"Add Role",breadcrumb:"Add Role",routeParamBreadcrumb:!1},component:mE,resolve:{groupAndTemplateData:SE}}]},{path:"actions/:action",data:{title:"Group Actions",breadcrumb:"action",routeParamBreadcrumb:"action"},component:CE,resolve:{groupActionData:eB}},{path:"loans-accounts",loadChildren:()=>import("./loans.module-CZ4MCVAE.js").then(e=>e.LoansModule)},{path:"savings-accounts",loadChildren:()=>import("./savings.module-MJKP5CF4.js").then(e=>e.SavingsModule)}]}]}])],EJ=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e})}static{this.\u0275inj=un({providers:[db,e9,JF,ZF,XF,tB,SE,eB,i9,iB],imports:[tr.forChild(wLt),tr]})}}return e})();var PJ=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e})}static{this.\u0275inj=un({imports:[Yr,ya,rl,EJ,iE,rE,oE,aE,lE,cE,pE,mE,sE,CE,dE,nE,uE,fE,yE,hE,gE,xE,_E,vE,bE]})}}return e})();var Nr=(()=>{class e{constructor(i){this.http=i}getCenters(i,o,n,c,u){let h=new Hn().set("offset",c.toString()).set("limit",u.toString()).set("sortOrder",n).set("orderBy",o).set("paged","true");return i.forEach(function(_){_.value&&(h=h.set(_.type,_.value))}),this.http.get("/centers",{params:h})}createCenter(i){return this.http.post("/centers",i)}getStaff(i){let o=new Hn().set("officeId",i.toString()).set("staffInSelectedOfficeOnly","true");return this.http.get("/centers/template",{params:o})}getCenterData(i){let o=new Hn().set("associations","groupMembers,collectionMeetingCalendar");return this.http.get(`/centers/${i}`,{params:o})}getCenterSummary(i){let o=new Hn().set("R_groupId",i).set("genericResultSet","false");return this.http.get("/runreports/GroupSummaryCounts",{params:o})}getSavingsAccountDetails(i){return this.http.get(`/centers/${i}/accounts`)}getCenterNotes(i){return this.http.get(`/groups/${i}/notes`)}createCenterNote(i,o){return this.http.post(`/groups/${i}/notes`,o)}editCenterNote(i,o,n){return this.http.put(`/groups/${i}/notes/${o}`,n)}deleteCenterNote(i,o){return this.http.delete(`/groups/${i}/notes/${o}`)}getcenterDatatables(){let i=new Hn().set("apptable","m_center");return this.http.get("/datatables",{params:i})}getCenterDatatable(i,o){let n=new Hn().set("genericResultSet","true");return this.http.get(`/datatables/${o}/${i}`,{params:n})}addCenterDatatableEntry(i,o,n){let c=new Hn().set("genericResultSet","true");return this.http.post(`/datatables/${o}/${i}`,n,{params:c})}editCenterDatatableEntry(i,o,n){let c=new Hn().set("genericResultSet","true");return this.http.put(`/datatables/${o}/${i}`,n,{params:c})}deleteDatatableContent(i,o){let n=new Hn().set("genericResultSet","true");return this.http.delete(`/datatables/${o}/${i}`,{params:n})}executeCenterActionCommand(i,o,n){let c=new Hn().set("command",o);return this.http.post(`/centers/${i}`,n,{params:c})}executeGroupActionCommand(i,o,n){let c=new Hn().set("command",o);return this.http.post(`/groups/${i}`,n,{params:c})}getGroupStaffData(i){let o=new Hn().set("groupOrCenter","centers").set("staffInSelectedOfficeOnly","true").set("template","true");return this.http.get(`/groups/${i}`,{params:o})}deleteCenter(i){return this.http.delete(`/centers/${i}`)}getCentersData(i,o,n){let c=new Hn().set("associations",o);return c=n?c.set("template",n):c,this.http.get(`/centers/${i}`,{params:c})}getMeetingsTemplate(i,o){let n=new Hn().set("calenderId",o);return this.http.get(`/centers/${i}/meetings/template`)}assignCenterAttendance(i,o,n){let c=new Hn().set("calenderId",o);return this.http.post(`/centers/${i}/meetings`,n,{params:c})}getCalendarTemplate(i){return this.http.get(`/centers/${i}/calendars/template`)}createCenterMeeting(i,o){return this.http.post(`/centers/${i}/calendars`,o)}getCalendarAndTemplate(i,o){let n=new Hn().set("template","true");return this.http.get(`/centers/${i}/calendars/${o}`,{params:n})}updateCenterMeeting(i,o,n){return this.http.put(`/centers/${i}/calendars/${n}`,o)}getStaffAssignmentHistoryData(i,o,n,c){let u=new Hn().set("tenantIdentifier",n).set("locale",c).set("R_centerId",o);return this.http.get(`/runreports/${i}`,{responseType:"arraybuffer",observe:"response",params:u})}getCenterAndTemplateData(i){let o=new Hn().set("staffInSelectedOfficeOnly","true").set("template","true");return this.http.get(`/centers/${i}`,{params:o})}executeEditCenter(i,o){return this.http.put(`/groups/${i}`,o)}getAllMeetingFallCenters(i,o,n,c,u){return this.http.get(`/centers?dateFormat=${c}&locale=${u}&meetingDate=${n}&officeId=${i}&staffId=${o}`)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ro))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var wE=class{constructor(r){this.centersService=r,this.centersSubject=new _s([]),this.recordsSubject=new _s(0),this.records$=this.recordsSubject.asObservable()}getCenters(r,i="",o="",n=0,c=10,u=!0){this.centersSubject.next([]),this.centersService.getCenters(r,i,o,n*c,c).subscribe(h=>{h.pageItems=u?h.pageItems.filter(_=>_.active):h.pageItems,this.recordsSubject.next(h.totalFilteredRecords),this.centersSubject.next(h.pageItems)})}connect(r){return this.centersSubject.asObservable()}disconnect(r){this.centersSubject.complete(),this.recordsSubject.complete()}};var ELt=["showClosedCenters"],PLt=()=>[10,25,50,100],kLt=()=>["../","organization","bulk-import","Centers"],ILt=()=>["create"],TLt=e=>[e,"general"];function MLt(e,r){e&1&&(a(0,"button",22),t(1,` `),k(2,"fa-icon",23),t(3),m(4,"translate"),s()),e&2&&(g("routerLink",ht(4,kLt)),l(3),P("",d(4,2,"labels.buttons.Import Center"),` `))}function DLt(e,r){e&1&&(a(0,"button",22),t(1,` `),k(2,"fa-icon",24),t(3),m(4,"translate"),s()),e&2&&(g("routerLink",ht(4,ILt)),l(3),P("",d(4,2,"labels.buttons.Create Center"),` @@ -22080,7 +22080,7 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `,d(125,31,"labels.buttons.Run Selected Jobs"),` `),l(6),P(` `,d(131,33,"labels.buttons.Refresh"),` - `))},dependencies:[St,io,zt,wt,qt,Ht,$t,Zt,Dt,Ai,Et,Gt,Fe,$e,Ne,Re,Le,Be,Ve,wi,Pi,Hi,ze,qe,je,He,Je,Rl,no],styles:[".container[_ngcontent-%COMP%]{min-width:84rem;width:84rem}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.success[_ngcontent-%COMP%]{color:#32cd32}.fail[_ngcontent-%COMP%]{color:#f44366}.currently-running[_ngcontent-%COMP%]{color:#32cd32}.not-currently-running[_ngcontent-%COMP%]{color:#f44366}.errorlog[_ngcontent-%COMP%]{color:#ffa726}.job-error[_ngcontent-%COMP%]{background-color:#f7dbb7}.suspend[_ngcontent-%COMP%]{background:#32cd32;color:#fff}.activate[_ngcontent-%COMP%]{background:#f44366;color:#fff}.space-top[_ngcontent-%COMP%]{margin-top:30px}.cdk-column-displayName[_ngcontent-%COMP%], .mat-column-displayName[_ngcontent-%COMP%]{flex:0 0 5px!important}"]})}}return e})();var Rk="http://www.w3.org/1999/xhtml",WB={svg:"http://www.w3.org/2000/svg",xhtml:Rk,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function id(e){var r=e+="",i=r.indexOf(":");return i>=0&&(r=e.slice(0,i))!=="xmlns"&&(e=e.slice(i+1)),WB.hasOwnProperty(r)?{space:WB[r],local:e}:e}function mce(e){return function(){var r=this.ownerDocument,i=this.namespaceURI;return i===Rk&&r.documentElement.namespaceURI===Rk?r.createElement(e):r.createElementNS(i,e)}}function dce(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Nk(e){var r=id(e);return(r.local?dce:mce)(r)}function uce(){}function o1(e){return e==null?uce:function(){return this.querySelector(e)}}function ZJ(e){typeof e!="function"&&(e=o1(e));for(var r=this._groups,i=r.length,o=new Array(i),n=0;n=tt&&(tt=$+1);!(gt=B[tt])&&++tt=0;)(u=o[n])&&(c&&u.compareDocumentPosition(c)^4&&c.parentNode.insertBefore(u,c),c=u);return this}function pZ(e){e||(e=Pce);function r(E,T){return E&&T?e(E.__data__,T.__data__):!E-!T}for(var i=this._groups,o=i.length,n=new Array(o),c=0;cr?1:e>=r?0:NaN}function mZ(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function dZ(){return Array.from(this)}function uZ(){for(var e=this._groups,r=0,i=e.length;r1?this.each((r==null?Oce:typeof r=="function"?Bce:Fce)(e,r,i??"")):Su(this.node(),e)}function Su(e,r){return e.style.getPropertyValue(r)||zk(e).getComputedStyle(e,null).getPropertyValue(r)}function Rce(e){return function(){delete this[e]}}function Nce(e,r){return function(){this[e]=r}}function Lce(e,r){return function(){var i=r.apply(this,arguments);i==null?delete this[e]:this[e]=i}}function vZ(e,r){return arguments.length>1?this.each((r==null?Rce:typeof r=="function"?Lce:Nce)(e,r)):this.node()[e]}function bZ(e){return e.trim().split(/^|\s+/)}function YB(e){return e.classList||new CZ(e)}function CZ(e){this._node=e,this._names=bZ(e.getAttribute("class")||"")}CZ.prototype={add:function(e){var r=this._names.indexOf(e);r<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var r=this._names.indexOf(e);r>=0&&(this._names.splice(r,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function yZ(e,r){for(var i=YB(e),o=-1,n=r.length;++o=0&&(i=r.slice(o+1),r=r.slice(0,o)),{type:r,name:i}})}function ipe(e){return function(){var r=this.__on;if(r){for(var i=0,o=-1,n=r.length,c;i=0))throw new Error(`invalid digits: ${e}`);if(r>15)return VZ;let i=10**r;return function(o){this._+=o[0];for(let n=1,c=o.length;ns1)if(!(Math.abs(E*_-y*C)>s1)||!c)this._append`L${this._x1=r},${this._y1=i}`;else{let D=o-u,M=n-h,F=_*_+y*y,B=D*D+M*M,z=Math.sqrt(F),$=Math.sqrt(T),tt=c*Math.tan((JB-Math.acos((F+T-B)/(2*z*$)))/2),lt=tt/$,gt=tt/z;Math.abs(lt-1)>s1&&this._append`L${r+lt*C},${i+lt*E}`,this._append`A${c},${c},0,0,${+(E*D>C*M)},${this._x1=r+gt*_},${this._y1=i+gt*y}`}}arc(r,i,o,n,c,u){if(r=+r,i=+i,o=+o,u=!!u,o<0)throw new Error(`negative radius: ${o}`);let h=o*Math.cos(n),_=o*Math.sin(n),y=r+h,C=i+_,E=1^u,T=u?n-c:c-n;this._x1===null?this._append`M${y},${C}`:(Math.abs(this._x1-y)>s1||Math.abs(this._y1-C)>s1)&&this._append`L${y},${C}`,o&&(T<0&&(T=T%ZB+ZB),T>spe?this._append`A${o},${o},0,1,${E},${r-h},${i-_}A${o},${o},0,1,${E},${this._x1=y},${this._y1=C}`:T>s1&&this._append`A${o},${o},0,${+(T>=JB)},${E},${this._x1=r+o*Math.cos(c)},${this._y1=i+o*Math.sin(c)}`)}rect(r,i,o,n){this._append`M${this._x0=this._x1=+r},${this._y0=this._y1=+i}h${o=+o}v${+n}h${-o}Z`}toString(){return this._}};function zZ(){return new l1}zZ.prototype=l1.prototype;function jZ(e){let r=3;return e.digits=function(i){if(!arguments.length)return r;if(i==null)r=null;else{let o=Math.floor(i);if(!(o>=0))throw new RangeError(`invalid digits: ${i}`);r=o}return e},()=>new l1(r)}var F5n=Array.prototype.slice;function qZ(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function HZ(e){this._context=e}HZ.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;default:this._context.lineTo(e,r);break}}};function u2(e){return new HZ(e)}function GZ(e){return e[0]}function UZ(e){return e[1]}function XB(e,r){var i=a1(!0),o=null,n=u2,c=null,u=jZ(h);e=typeof e=="function"?e:e===void 0?GZ:a1(e),r=typeof r=="function"?r:r===void 0?UZ:a1(r);function h(_){var y,C=(_=qZ(_)).length,E,T=!1,D;for(o==null&&(c=n(D=u())),y=0;y<=C;++y)!(y0)for(var o=e[0],n=r[0],c=e[i]-o,u=r[i]-n,h=-1,_;++h<=i;)_=h/i,this._basis.point(this._beta*e[h]+(1-this._beta)*(o+_*c),this._beta*r[h]+(1-this._beta)*(n+_*u));this._x=this._y=null,this._basis.lineEnd()},point:function(e,r){this._x.push(+e),this._y.push(+r)}};var tR=function e(r){function i(o){return r===1?new qk(o):new WZ(o,r)}return i.beta=function(o){return e(+o)},i}(.85);function Hk(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var YZ=Math.PI,J5n=YZ/2;function f2(e){return(1-Math.cos(YZ*e))/2}var eR={};QO(eR,{dispatch:()=>Cx});var ppe={value:()=>{}};function JZ(){for(var e=0,r=arguments.length,i={},o;e=0&&(o=i.slice(n+1),i=i.slice(0,n)),i&&!r.hasOwnProperty(i))throw new Error("unknown type: "+i);return{type:i,name:o}})}Gk.prototype=JZ.prototype={constructor:Gk,on:function(e,r){var i=this._,o=mpe(e+"",i),n,c=-1,u=o.length;if(arguments.length<2){for(;++c0)for(var i=new Array(n),o=0,n,c;oeX,now:()=>wu,timeout:()=>v2,timer:()=>m1,timerFlush:()=>nR});var yx=0,g2=0,h2=0,XZ=1e3,Uk,x2,$k=0,c1=0,Wk=0,_2=typeof performance=="object"&&performance.now?performance:Date,tX=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function wu(){return c1||(tX(upe),c1=_2.now()+Wk)}function upe(){c1=0}function p1(){this._call=this._time=this._next=null}p1.prototype=m1.prototype={constructor:p1,restart:function(e,r,i){if(typeof e!="function")throw new TypeError("callback is not a function");i=(i==null?wu():+i)+(r==null?0:+r),!this._next&&x2!==this&&(x2?x2._next=this:Uk=this,x2=this),this._call=e,this._time=i,iR()},stop:function(){this._call&&(this._call=null,this._time=1/0,iR())}};function m1(e,r,i){var o=new p1;return o.restart(e,r,i),o}function nR(){wu(),++yx;for(var e=Uk,r;e;)(r=c1-e._time)>=0&&e._call.call(void 0,r),e=e._next;--yx}function ZZ(){c1=($k=_2.now())+Wk,yx=g2=0;try{nR()}finally{yx=0,hpe(),c1=0}}function fpe(){var e=_2.now(),r=e-$k;r>XZ&&(Wk-=r,$k=e)}function hpe(){for(var e,r=Uk,i,o=1/0;r;)r._call?(o>r._time&&(o=r._time),e=r,r=r._next):(i=r._next,r._next=null,r=e?e._next=i:Uk=i);x2=e,iR(o)}function iR(e){if(!yx){g2&&(g2=clearTimeout(g2));var r=e-c1;r>24?(e<1/0&&(g2=setTimeout(ZZ,e-_2.now()-Wk)),h2&&(h2=clearInterval(h2))):(h2||($k=_2.now(),h2=setInterval(fpe,XZ)),yx=1,tX(ZZ))}}function v2(e,r,i){var o=new p1;return r=r==null?0:+r,o.restart(n=>{o.stop(),e(n+r)},r,i),o}function eX(e,r,i){var o=new p1,n=r;return r==null?(o.restart(e,r,i),o):(o._restart=o.restart,o.restart=function(c,u,h){u=+u,h=h==null?wu():+h,o._restart(function _(y){y+=n,o._restart(_,n+=u,h),c(y)},u,h)},o.restart(e,r,i),o)}var gpe=Cx("start","end","cancel","interrupt"),xpe=[],rX=0,iX=1,Yk=2,Qk=3,nX=4,Kk=5,b2=6;function Eu(e,r,i,o,n,c){var u=e.__transition;if(!u)e.__transition={};else if(i in u)return;_pe(e,i,{name:r,index:o,group:n,on:gpe,tween:xpe,time:c.time,delay:c.delay,duration:c.duration,ease:c.ease,timer:null,state:rX})}function C2(e,r){var i=Us(e,r);if(i.state>rX)throw new Error("too late; already scheduled");return i}function Cl(e,r){var i=Us(e,r);if(i.state>Qk)throw new Error("too late; already running");return i}function Us(e,r){var i=e.__transition;if(!i||!(i=i[r]))throw new Error("transition not found");return i}function _pe(e,r,i){var o=e.__transition,n;o[r]=i,i.timer=m1(c,0,i.time);function c(y){i.state=iX,i.timer.restart(u,i.delay,i.time),i.delay<=y&&u(y-i.delay)}function u(y){var C,E,T,D;if(i.state!==iX)return _();for(C in o)if(D=o[C],D.name===i.name){if(D.state===Qk)return v2(u);D.state===nX?(D.state=b2,D.timer.stop(),D.on.call("interrupt",e,e.__data__,D.index,D.group),delete o[C]):+CYk&&o.state>8&15|r>>4&240,r>>4&15|r&240,(r&15)<<4|r&15,1):i===8?Zk(r>>24&255,r>>16&255,r>>8&255,(r&255)/255):i===4?Zk(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|r&240,((r&15)<<4|r&15)/255):null):(r=bpe.exec(e))?new Oc(r[1],r[2],r[3],1):(r=Cpe.exec(e))?new Oc(r[1]*255/100,r[2]*255/100,r[3]*255/100,1):(r=ype.exec(e))?Zk(r[1],r[2],r[3],r[4]):(r=Spe.exec(e))?Zk(r[1]*255/100,r[2]*255/100,r[3]*255/100,r[4]):(r=wpe.exec(e))?uX(r[1],r[2]/100,r[3]/100,1):(r=Epe.exec(e))?uX(r[1],r[2]/100,r[3]/100,r[4]):sX.hasOwnProperty(e)?pX(sX[e]):e==="transparent"?new Oc(NaN,NaN,NaN,0):null}function pX(e){return new Oc(e>>16&255,e>>8&255,e&255,1)}function Zk(e,r,i,o){return o<=0&&(e=r=i=NaN),new Oc(e,r,i,o)}function Ipe(e){return e instanceof w2||(e=Pu(e)),e?(e=e.rgb(),new Oc(e.r,e.g,e.b,e.opacity)):new Oc}function wx(e,r,i,o){return arguments.length===1?Ipe(e):new Oc(e,r,i,o??1)}function Oc(e,r,i,o){this.r=+e,this.g=+r,this.b=+i,this.opacity=+o}Jk(Oc,wx,oR(w2,{brighter(e){return e=e==null?tI:Math.pow(tI,e),new Oc(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?y2:Math.pow(y2,e),new Oc(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Oc(u1(this.r),u1(this.g),u1(this.b),eI(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:mX,formatHex:mX,formatHex8:Tpe,formatRgb:dX,toString:dX}));function mX(){return`#${d1(this.r)}${d1(this.g)}${d1(this.b)}`}function Tpe(){return`#${d1(this.r)}${d1(this.g)}${d1(this.b)}${d1((isNaN(this.opacity)?1:this.opacity)*255)}`}function dX(){let e=eI(this.opacity);return`${e===1?"rgb(":"rgba("}${u1(this.r)}, ${u1(this.g)}, ${u1(this.b)}${e===1?")":`, ${e})`}`}function eI(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function u1(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function d1(e){return e=u1(e),(e<16?"0":"")+e.toString(16)}function uX(e,r,i,o){return o<=0?e=r=i=NaN:i<=0||i>=1?e=r=NaN:r<=0&&(e=NaN),new vm(e,r,i,o)}function hX(e){if(e instanceof vm)return new vm(e.h,e.s,e.l,e.opacity);if(e instanceof w2||(e=Pu(e)),!e)return new vm;if(e instanceof vm)return e;e=e.rgb();var r=e.r/255,i=e.g/255,o=e.b/255,n=Math.min(r,i,o),c=Math.max(r,i,o),u=NaN,h=c-n,_=(c+n)/2;return h?(r===c?u=(i-o)/h+(i0&&_<1?0:u,new vm(u,h,_,e.opacity)}function gX(e,r,i,o){return arguments.length===1?hX(e):new vm(e,r,i,o??1)}function vm(e,r,i,o){this.h=+e,this.s=+r,this.l=+i,this.opacity=+o}Jk(vm,gX,oR(w2,{brighter(e){return e=e==null?tI:Math.pow(tI,e),new vm(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?y2:Math.pow(y2,e),new vm(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,r=isNaN(e)||isNaN(this.s)?0:this.s,i=this.l,o=i+(i<.5?i:1-i)*r,n=2*i-o;return new Oc(aR(e>=240?e-240:e+120,n,o),aR(e,n,o),aR(e<120?e+240:e-120,n,o),this.opacity)},clamp(){return new vm(fX(this.h),Xk(this.s),Xk(this.l),eI(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=eI(this.opacity);return`${e===1?"hsl(":"hsla("}${fX(this.h)}, ${Xk(this.s)*100}%, ${Xk(this.l)*100}%${e===1?")":`, ${e})`}`}}));function fX(e){return e=(e||0)%360,e<0?e+360:e}function Xk(e){return Math.max(0,Math.min(1,e||0))}function aR(e,r,i){return(e<60?r+(i-r)*e/60:e<180?i:e<240?r+(i-r)*(240-e)/60:r)*255}function sR(e,r,i,o,n){var c=e*e,u=c*e;return((1-3*e+3*c-u)*r+(4-6*c+3*u)*i+(1+3*e+3*c-3*u)*o+u*n)/6}function xX(e){var r=e.length-1;return function(i){var o=i<=0?i=0:i>=1?(i=1,r-1):Math.floor(i*r),n=e[o],c=e[o+1],u=o>0?e[o-1]:2*n-c,h=o()=>e;function Mpe(e,r){return function(i){return e+i*r}}function Dpe(e,r,i){return e=Math.pow(e,i),r=Math.pow(r,i)-e,i=1/i,function(o){return Math.pow(e+o*r,i)}}function vX(e){return(e=+e)==1?iI:function(r,i){return i-r?Dpe(r,i,e):lR(isNaN(r)?i:r)}}function iI(e,r){var i=r-e;return i?Mpe(e,i):lR(isNaN(e)?r:e)}var nI=function e(r){var i=vX(r);function o(n,c){var u=i((n=wx(n)).r,(c=wx(c)).r),h=i(n.g,c.g),_=i(n.b,c.b),y=iI(n.opacity,c.opacity);return function(C){return n.r=u(C),n.g=h(C),n.b=_(C),n.opacity=y(C),n+""}}return o.gamma=e,o}(1);function bX(e){return function(r){var i=r.length,o=new Array(i),n=new Array(i),c=new Array(i),u,h;for(u=0;ui&&(c=r.slice(i,c),h[u]?h[u]+=c:h[++u]=c),(o=o[0])===(n=n[0])?h[u]?h[u]+=n:h[++u]=n:(h[++u]=null,_.push({i:u,x:zp(o,n)})),i=cR.lastIndex;return i180?C+=360:C-y>180&&(y+=360),T.push({i:E.push(n(E)+"rotate(",null,o)-2,x:zp(y,C)})):C&&E.push(n(E)+"rotate("+C+o)}function h(y,C,E,T){y!==C?T.push({i:E.push(n(E)+"skewX(",null,o)-2,x:zp(y,C)}):C&&E.push(n(E)+"skewX("+C+o)}function _(y,C,E,T,D,M){if(y!==E||C!==T){var F=D.push(n(D)+"scale(",null,",",null,")");M.push({i:F-4,x:zp(y,E)},{i:F-2,x:zp(C,T)})}else(E!==1||T!==1)&&D.push(n(D)+"scale("+E+","+T+")")}return function(y,C){var E=[],T=[];return y=e(y),C=e(C),c(y.translateX,y.translateY,C.translateX,C.translateY,E,T),u(y.rotate,C.rotate,E,T),h(y.skewX,C.skewX,E,T),_(y.scaleX,y.scaleY,C.scaleX,C.scaleY,E,T),y=C=null,function(D){for(var M=-1,F=T.length,B;++M=0&&(r=r.slice(0,i)),!r||r==="start"})}function eme(e,r,i){var o,n,c=tme(r)?C2:Cl;return function(){var u=c(this,e),h=u.on;h!==o&&(n=(o=h).copy()).on(r,i),u.on=n}}function FX(e,r){var i=this._id;return arguments.length<2?Us(this.node(),i).on.on(e):this.each(eme(i,e,r))}function ime(e){return function(){var r=this.parentNode;for(var i in this.__transition)if(+i!==e)return;r&&r.removeChild(this)}}function BX(){return this.on("end.remove",ime(this._id))}function RX(e){var r=this._name,i=this._id;typeof e!="function"&&(e=o1(e));for(var o=this._groups,n=o.length,c=new Array(n),u=0;u"u"}function od(e,r=0){return{a:1,c:0,e,b:0,d:1,f:r}}function ad(...e){e=Array.isArray(e[0])?e[0]:e;let r=(i,o)=>({a:i.a*o.a+i.c*o.b,c:i.a*o.c+i.c*o.d,e:i.a*o.e+i.c*o.f+i.e,b:i.b*o.a+i.d*o.b,d:i.b*o.c+i.d*o.d,f:i.b*o.e+i.d*o.f+i.f});switch(e.length){case 0:throw new Error("no matrices provided");case 1:return e[0];case 2:return r(e[0],e[1]);default:{let[i,o,...n]=e,c=r(i,o);return ad(c,...n)}}}var{cos:Gkn,sin:Ukn,PI:$kn}=Math;function P2(e,r=void 0,i=void 0,o=void 0){E2(r)&&(r=e);let n={a:e,c:0,e:0,b:0,d:r,f:0};return E2(i)||E2(o)?n:ad([od(i,o),n,od(-i,-o)])}var{tan:Xkn}=Math;function YX(e){return xme(e)}function xme(e){return`matrix(${e.a},${e.b},${e.c},${e.d},${e.e},${e.f})`}function hR(e,r=1e10){return{a:Math.round(e.a*r)/r,b:Math.round(e.b*r)/r,c:Math.round(e.c*r)/r,d:Math.round(e.d*r)/r,e:Math.round(e.e*r)/r,f:Math.round(e.f*r)/r}}function _me(e,r){function i(){this.constructor=e}i.prototype=r.prototype,e.prototype=new i}function lI(e,r,i,o){var n=Error.call(this,e);return Object.setPrototypeOf&&Object.setPrototypeOf(n,lI.prototype),n.expected=r,n.found=i,n.location=o,n.name="SyntaxError",n}_me(lI,Error);function gR(e,r,i){return i=i||" ",e.length>r?e:(r-=e.length,i+=i.repeat(r),e+i.slice(0,r))}lI.prototype.format=function(e){var r="Error: "+this.message;if(this.location){var i=null,o;for(o=0;o=0&&(r=e.slice(0,i))!=="xmlns"&&(e=e.slice(i+1)),WB.hasOwnProperty(r)?{space:WB[r],local:e}:e}function mce(e){return function(){var r=this.ownerDocument,i=this.namespaceURI;return i===Rk&&r.documentElement.namespaceURI===Rk?r.createElement(e):r.createElementNS(i,e)}}function dce(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Nk(e){var r=id(e);return(r.local?dce:mce)(r)}function uce(){}function o1(e){return e==null?uce:function(){return this.querySelector(e)}}function ZJ(e){typeof e!="function"&&(e=o1(e));for(var r=this._groups,i=r.length,o=new Array(i),n=0;n=tt&&(tt=$+1);!(gt=B[tt])&&++tt=0;)(u=o[n])&&(c&&u.compareDocumentPosition(c)^4&&c.parentNode.insertBefore(u,c),c=u);return this}function pZ(e){e||(e=Pce);function r(E,T){return E&&T?e(E.__data__,T.__data__):!E-!T}for(var i=this._groups,o=i.length,n=new Array(o),c=0;cr?1:e>=r?0:NaN}function mZ(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function dZ(){return Array.from(this)}function uZ(){for(var e=this._groups,r=0,i=e.length;r1?this.each((r==null?Oce:typeof r=="function"?Bce:Fce)(e,r,i??"")):Su(this.node(),e)}function Su(e,r){return e.style.getPropertyValue(r)||zk(e).getComputedStyle(e,null).getPropertyValue(r)}function Rce(e){return function(){delete this[e]}}function Nce(e,r){return function(){this[e]=r}}function Lce(e,r){return function(){var i=r.apply(this,arguments);i==null?delete this[e]:this[e]=i}}function vZ(e,r){return arguments.length>1?this.each((r==null?Rce:typeof r=="function"?Lce:Nce)(e,r)):this.node()[e]}function bZ(e){return e.trim().split(/^|\s+/)}function YB(e){return e.classList||new CZ(e)}function CZ(e){this._node=e,this._names=bZ(e.getAttribute("class")||"")}CZ.prototype={add:function(e){var r=this._names.indexOf(e);r<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var r=this._names.indexOf(e);r>=0&&(this._names.splice(r,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function yZ(e,r){for(var i=YB(e),o=-1,n=r.length;++o=0&&(i=r.slice(o+1),r=r.slice(0,o)),{type:r,name:i}})}function ipe(e){return function(){var r=this.__on;if(r){for(var i=0,o=-1,n=r.length,c;i=0))throw new Error(`invalid digits: ${e}`);if(r>15)return VZ;let i=10**r;return function(o){this._+=o[0];for(let n=1,c=o.length;ns1)if(!(Math.abs(E*_-y*C)>s1)||!c)this._append`L${this._x1=r},${this._y1=i}`;else{let D=o-u,M=n-h,F=_*_+y*y,B=D*D+M*M,z=Math.sqrt(F),$=Math.sqrt(T),tt=c*Math.tan((JB-Math.acos((F+T-B)/(2*z*$)))/2),lt=tt/$,gt=tt/z;Math.abs(lt-1)>s1&&this._append`L${r+lt*C},${i+lt*E}`,this._append`A${c},${c},0,0,${+(E*D>C*M)},${this._x1=r+gt*_},${this._y1=i+gt*y}`}}arc(r,i,o,n,c,u){if(r=+r,i=+i,o=+o,u=!!u,o<0)throw new Error(`negative radius: ${o}`);let h=o*Math.cos(n),_=o*Math.sin(n),y=r+h,C=i+_,E=1^u,T=u?n-c:c-n;this._x1===null?this._append`M${y},${C}`:(Math.abs(this._x1-y)>s1||Math.abs(this._y1-C)>s1)&&this._append`L${y},${C}`,o&&(T<0&&(T=T%ZB+ZB),T>spe?this._append`A${o},${o},0,1,${E},${r-h},${i-_}A${o},${o},0,1,${E},${this._x1=y},${this._y1=C}`:T>s1&&this._append`A${o},${o},0,${+(T>=JB)},${E},${this._x1=r+o*Math.cos(c)},${this._y1=i+o*Math.sin(c)}`)}rect(r,i,o,n){this._append`M${this._x0=this._x1=+r},${this._y0=this._y1=+i}h${o=+o}v${+n}h${-o}Z`}toString(){return this._}};function zZ(){return new l1}zZ.prototype=l1.prototype;function jZ(e){let r=3;return e.digits=function(i){if(!arguments.length)return r;if(i==null)r=null;else{let o=Math.floor(i);if(!(o>=0))throw new RangeError(`invalid digits: ${i}`);r=o}return e},()=>new l1(r)}var O5n=Array.prototype.slice;function qZ(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function HZ(e){this._context=e}HZ.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;default:this._context.lineTo(e,r);break}}};function u2(e){return new HZ(e)}function GZ(e){return e[0]}function UZ(e){return e[1]}function XB(e,r){var i=a1(!0),o=null,n=u2,c=null,u=jZ(h);e=typeof e=="function"?e:e===void 0?GZ:a1(e),r=typeof r=="function"?r:r===void 0?UZ:a1(r);function h(_){var y,C=(_=qZ(_)).length,E,T=!1,D;for(o==null&&(c=n(D=u())),y=0;y<=C;++y)!(y0)for(var o=e[0],n=r[0],c=e[i]-o,u=r[i]-n,h=-1,_;++h<=i;)_=h/i,this._basis.point(this._beta*e[h]+(1-this._beta)*(o+_*c),this._beta*r[h]+(1-this._beta)*(n+_*u));this._x=this._y=null,this._basis.lineEnd()},point:function(e,r){this._x.push(+e),this._y.push(+r)}};var tR=function e(r){function i(o){return r===1?new qk(o):new WZ(o,r)}return i.beta=function(o){return e(+o)},i}(.85);function Hk(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var YZ=Math.PI,K5n=YZ/2;function f2(e){return(1-Math.cos(YZ*e))/2}var eR={};QO(eR,{dispatch:()=>Cx});var ppe={value:()=>{}};function JZ(){for(var e=0,r=arguments.length,i={},o;e=0&&(o=i.slice(n+1),i=i.slice(0,n)),i&&!r.hasOwnProperty(i))throw new Error("unknown type: "+i);return{type:i,name:o}})}Gk.prototype=JZ.prototype={constructor:Gk,on:function(e,r){var i=this._,o=mpe(e+"",i),n,c=-1,u=o.length;if(arguments.length<2){for(;++c0)for(var i=new Array(n),o=0,n,c;oeX,now:()=>wu,timeout:()=>v2,timer:()=>m1,timerFlush:()=>nR});var yx=0,g2=0,h2=0,XZ=1e3,Uk,x2,$k=0,c1=0,Wk=0,_2=typeof performance=="object"&&performance.now?performance:Date,tX=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function wu(){return c1||(tX(upe),c1=_2.now()+Wk)}function upe(){c1=0}function p1(){this._call=this._time=this._next=null}p1.prototype=m1.prototype={constructor:p1,restart:function(e,r,i){if(typeof e!="function")throw new TypeError("callback is not a function");i=(i==null?wu():+i)+(r==null?0:+r),!this._next&&x2!==this&&(x2?x2._next=this:Uk=this,x2=this),this._call=e,this._time=i,iR()},stop:function(){this._call&&(this._call=null,this._time=1/0,iR())}};function m1(e,r,i){var o=new p1;return o.restart(e,r,i),o}function nR(){wu(),++yx;for(var e=Uk,r;e;)(r=c1-e._time)>=0&&e._call.call(void 0,r),e=e._next;--yx}function ZZ(){c1=($k=_2.now())+Wk,yx=g2=0;try{nR()}finally{yx=0,hpe(),c1=0}}function fpe(){var e=_2.now(),r=e-$k;r>XZ&&(Wk-=r,$k=e)}function hpe(){for(var e,r=Uk,i,o=1/0;r;)r._call?(o>r._time&&(o=r._time),e=r,r=r._next):(i=r._next,r._next=null,r=e?e._next=i:Uk=i);x2=e,iR(o)}function iR(e){if(!yx){g2&&(g2=clearTimeout(g2));var r=e-c1;r>24?(e<1/0&&(g2=setTimeout(ZZ,e-_2.now()-Wk)),h2&&(h2=clearInterval(h2))):(h2||($k=_2.now(),h2=setInterval(fpe,XZ)),yx=1,tX(ZZ))}}function v2(e,r,i){var o=new p1;return r=r==null?0:+r,o.restart(n=>{o.stop(),e(n+r)},r,i),o}function eX(e,r,i){var o=new p1,n=r;return r==null?(o.restart(e,r,i),o):(o._restart=o.restart,o.restart=function(c,u,h){u=+u,h=h==null?wu():+h,o._restart(function _(y){y+=n,o._restart(_,n+=u,h),c(y)},u,h)},o.restart(e,r,i),o)}var gpe=Cx("start","end","cancel","interrupt"),xpe=[],rX=0,iX=1,Yk=2,Qk=3,nX=4,Kk=5,b2=6;function Eu(e,r,i,o,n,c){var u=e.__transition;if(!u)e.__transition={};else if(i in u)return;_pe(e,i,{name:r,index:o,group:n,on:gpe,tween:xpe,time:c.time,delay:c.delay,duration:c.duration,ease:c.ease,timer:null,state:rX})}function C2(e,r){var i=Us(e,r);if(i.state>rX)throw new Error("too late; already scheduled");return i}function Cl(e,r){var i=Us(e,r);if(i.state>Qk)throw new Error("too late; already running");return i}function Us(e,r){var i=e.__transition;if(!i||!(i=i[r]))throw new Error("transition not found");return i}function _pe(e,r,i){var o=e.__transition,n;o[r]=i,i.timer=m1(c,0,i.time);function c(y){i.state=iX,i.timer.restart(u,i.delay,i.time),i.delay<=y&&u(y-i.delay)}function u(y){var C,E,T,D;if(i.state!==iX)return _();for(C in o)if(D=o[C],D.name===i.name){if(D.state===Qk)return v2(u);D.state===nX?(D.state=b2,D.timer.stop(),D.on.call("interrupt",e,e.__data__,D.index,D.group),delete o[C]):+CYk&&o.state>8&15|r>>4&240,r>>4&15|r&240,(r&15)<<4|r&15,1):i===8?Zk(r>>24&255,r>>16&255,r>>8&255,(r&255)/255):i===4?Zk(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|r&240,((r&15)<<4|r&15)/255):null):(r=bpe.exec(e))?new Oc(r[1],r[2],r[3],1):(r=Cpe.exec(e))?new Oc(r[1]*255/100,r[2]*255/100,r[3]*255/100,1):(r=ype.exec(e))?Zk(r[1],r[2],r[3],r[4]):(r=Spe.exec(e))?Zk(r[1]*255/100,r[2]*255/100,r[3]*255/100,r[4]):(r=wpe.exec(e))?uX(r[1],r[2]/100,r[3]/100,1):(r=Epe.exec(e))?uX(r[1],r[2]/100,r[3]/100,r[4]):sX.hasOwnProperty(e)?pX(sX[e]):e==="transparent"?new Oc(NaN,NaN,NaN,0):null}function pX(e){return new Oc(e>>16&255,e>>8&255,e&255,1)}function Zk(e,r,i,o){return o<=0&&(e=r=i=NaN),new Oc(e,r,i,o)}function Ipe(e){return e instanceof w2||(e=Pu(e)),e?(e=e.rgb(),new Oc(e.r,e.g,e.b,e.opacity)):new Oc}function wx(e,r,i,o){return arguments.length===1?Ipe(e):new Oc(e,r,i,o??1)}function Oc(e,r,i,o){this.r=+e,this.g=+r,this.b=+i,this.opacity=+o}Jk(Oc,wx,oR(w2,{brighter(e){return e=e==null?tI:Math.pow(tI,e),new Oc(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?y2:Math.pow(y2,e),new Oc(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Oc(u1(this.r),u1(this.g),u1(this.b),eI(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:mX,formatHex:mX,formatHex8:Tpe,formatRgb:dX,toString:dX}));function mX(){return`#${d1(this.r)}${d1(this.g)}${d1(this.b)}`}function Tpe(){return`#${d1(this.r)}${d1(this.g)}${d1(this.b)}${d1((isNaN(this.opacity)?1:this.opacity)*255)}`}function dX(){let e=eI(this.opacity);return`${e===1?"rgb(":"rgba("}${u1(this.r)}, ${u1(this.g)}, ${u1(this.b)}${e===1?")":`, ${e})`}`}function eI(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function u1(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function d1(e){return e=u1(e),(e<16?"0":"")+e.toString(16)}function uX(e,r,i,o){return o<=0?e=r=i=NaN:i<=0||i>=1?e=r=NaN:r<=0&&(e=NaN),new vm(e,r,i,o)}function hX(e){if(e instanceof vm)return new vm(e.h,e.s,e.l,e.opacity);if(e instanceof w2||(e=Pu(e)),!e)return new vm;if(e instanceof vm)return e;e=e.rgb();var r=e.r/255,i=e.g/255,o=e.b/255,n=Math.min(r,i,o),c=Math.max(r,i,o),u=NaN,h=c-n,_=(c+n)/2;return h?(r===c?u=(i-o)/h+(i0&&_<1?0:u,new vm(u,h,_,e.opacity)}function gX(e,r,i,o){return arguments.length===1?hX(e):new vm(e,r,i,o??1)}function vm(e,r,i,o){this.h=+e,this.s=+r,this.l=+i,this.opacity=+o}Jk(vm,gX,oR(w2,{brighter(e){return e=e==null?tI:Math.pow(tI,e),new vm(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?y2:Math.pow(y2,e),new vm(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,r=isNaN(e)||isNaN(this.s)?0:this.s,i=this.l,o=i+(i<.5?i:1-i)*r,n=2*i-o;return new Oc(aR(e>=240?e-240:e+120,n,o),aR(e,n,o),aR(e<120?e+240:e-120,n,o),this.opacity)},clamp(){return new vm(fX(this.h),Xk(this.s),Xk(this.l),eI(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=eI(this.opacity);return`${e===1?"hsl(":"hsla("}${fX(this.h)}, ${Xk(this.s)*100}%, ${Xk(this.l)*100}%${e===1?")":`, ${e})`}`}}));function fX(e){return e=(e||0)%360,e<0?e+360:e}function Xk(e){return Math.max(0,Math.min(1,e||0))}function aR(e,r,i){return(e<60?r+(i-r)*e/60:e<180?i:e<240?r+(i-r)*(240-e)/60:r)*255}function sR(e,r,i,o,n){var c=e*e,u=c*e;return((1-3*e+3*c-u)*r+(4-6*c+3*u)*i+(1+3*e+3*c-3*u)*o+u*n)/6}function xX(e){var r=e.length-1;return function(i){var o=i<=0?i=0:i>=1?(i=1,r-1):Math.floor(i*r),n=e[o],c=e[o+1],u=o>0?e[o-1]:2*n-c,h=o()=>e;function Mpe(e,r){return function(i){return e+i*r}}function Dpe(e,r,i){return e=Math.pow(e,i),r=Math.pow(r,i)-e,i=1/i,function(o){return Math.pow(e+o*r,i)}}function vX(e){return(e=+e)==1?iI:function(r,i){return i-r?Dpe(r,i,e):lR(isNaN(r)?i:r)}}function iI(e,r){var i=r-e;return i?Mpe(e,i):lR(isNaN(e)?r:e)}var nI=function e(r){var i=vX(r);function o(n,c){var u=i((n=wx(n)).r,(c=wx(c)).r),h=i(n.g,c.g),_=i(n.b,c.b),y=iI(n.opacity,c.opacity);return function(C){return n.r=u(C),n.g=h(C),n.b=_(C),n.opacity=y(C),n+""}}return o.gamma=e,o}(1);function bX(e){return function(r){var i=r.length,o=new Array(i),n=new Array(i),c=new Array(i),u,h;for(u=0;ui&&(c=r.slice(i,c),h[u]?h[u]+=c:h[++u]=c),(o=o[0])===(n=n[0])?h[u]?h[u]+=n:h[++u]=n:(h[++u]=null,_.push({i:u,x:zp(o,n)})),i=cR.lastIndex;return i180?C+=360:C-y>180&&(y+=360),T.push({i:E.push(n(E)+"rotate(",null,o)-2,x:zp(y,C)})):C&&E.push(n(E)+"rotate("+C+o)}function h(y,C,E,T){y!==C?T.push({i:E.push(n(E)+"skewX(",null,o)-2,x:zp(y,C)}):C&&E.push(n(E)+"skewX("+C+o)}function _(y,C,E,T,D,M){if(y!==E||C!==T){var F=D.push(n(D)+"scale(",null,",",null,")");M.push({i:F-4,x:zp(y,E)},{i:F-2,x:zp(C,T)})}else(E!==1||T!==1)&&D.push(n(D)+"scale("+E+","+T+")")}return function(y,C){var E=[],T=[];return y=e(y),C=e(C),c(y.translateX,y.translateY,C.translateX,C.translateY,E,T),u(y.rotate,C.rotate,E,T),h(y.skewX,C.skewX,E,T),_(y.scaleX,y.scaleY,C.scaleX,C.scaleY,E,T),y=C=null,function(D){for(var M=-1,F=T.length,B;++M=0&&(r=r.slice(0,i)),!r||r==="start"})}function eme(e,r,i){var o,n,c=tme(r)?C2:Cl;return function(){var u=c(this,e),h=u.on;h!==o&&(n=(o=h).copy()).on(r,i),u.on=n}}function FX(e,r){var i=this._id;return arguments.length<2?Us(this.node(),i).on.on(e):this.each(eme(i,e,r))}function ime(e){return function(){var r=this.parentNode;for(var i in this.__transition)if(+i!==e)return;r&&r.removeChild(this)}}function BX(){return this.on("end.remove",ime(this._id))}function RX(e){var r=this._name,i=this._id;typeof e!="function"&&(e=o1(e));for(var o=this._groups,n=o.length,c=new Array(n),u=0;u"u"}function od(e,r=0){return{a:1,c:0,e,b:0,d:1,f:r}}function ad(...e){e=Array.isArray(e[0])?e[0]:e;let r=(i,o)=>({a:i.a*o.a+i.c*o.b,c:i.a*o.c+i.c*o.d,e:i.a*o.e+i.c*o.f+i.e,b:i.b*o.a+i.d*o.b,d:i.b*o.c+i.d*o.d,f:i.b*o.e+i.d*o.f+i.f});switch(e.length){case 0:throw new Error("no matrices provided");case 1:return e[0];case 2:return r(e[0],e[1]);default:{let[i,o,...n]=e,c=r(i,o);return ad(c,...n)}}}var{cos:Hkn,sin:Gkn,PI:Ukn}=Math;function P2(e,r=void 0,i=void 0,o=void 0){E2(r)&&(r=e);let n={a:e,c:0,e:0,b:0,d:r,f:0};return E2(i)||E2(o)?n:ad([od(i,o),n,od(-i,-o)])}var{tan:Zkn}=Math;function YX(e){return xme(e)}function xme(e){return`matrix(${e.a},${e.b},${e.c},${e.d},${e.e},${e.f})`}function hR(e,r=1e10){return{a:Math.round(e.a*r)/r,b:Math.round(e.b*r)/r,c:Math.round(e.c*r)/r,d:Math.round(e.d*r)/r,e:Math.round(e.e*r)/r,f:Math.round(e.f*r)/r}}function _me(e,r){function i(){this.constructor=e}i.prototype=r.prototype,e.prototype=new i}function lI(e,r,i,o){var n=Error.call(this,e);return Object.setPrototypeOf&&Object.setPrototypeOf(n,lI.prototype),n.expected=r,n.found=i,n.location=o,n.name="SyntaxError",n}_me(lI,Error);function gR(e,r,i){return i=i||" ",e.length>r?e:(r-=e.length,i+=i.repeat(r),e+i.slice(0,r))}lI.prototype.format=function(e){var r="Error: "+this.message;if(this.location){var i=null,o;for(o=0;o `+u+` `+_+` | `+c.line+" | "+y+` @@ -38445,11 +38445,11 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),s(),t(19,` `),s()),e&2&&(l(5),b(d(6,3,"labels.inputs.Legal Form")),l(6),b(d(12,5,"labels.inputs.Entity")),l(4),b(d(16,7,"labels.inputs.Person")))}function Z1i(e,r){if(e&1){let i=st();a(0,"button",14),q("click",function(){W(i);let n=A();return Q(n.downloadTemplate())}),t(1,` `),k(2,"i",39),t(3),m(4,"translate"),s()}e&2&&(l(3),P("\xA0\xA0",d(4,1,"labels.buttons.Download"),` - `))}function X1i(e,r){e&1&&(a(0,"mat-hint"),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.text.Please retain the value Entity/Person in the filename.")))}function tgi(e,r){e&1&&k(0,"div",40)}function egi(e,r){e&1&&(a(0,"th",41),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.name")))}function igi(e,r){if(e&1&&(a(0,"td",42),t(1),s()),e&2){let i=r.$implicit;l(),b(i.name)}}function ngi(e,r){e&1&&(a(0,"th",41),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Import Time")))}function rgi(e,r){if(e&1&&(a(0,"td",42),t(1),m(2,"dateFormat"),s()),e&2){let i=r.$implicit;l(),b(d(2,1,i.importTime))}}function ogi(e,r){e&1&&(a(0,"th",41),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.End Time")))}function agi(e,r){if(e&1&&(a(0,"td",42),t(1),m(2,"dateFormat"),s()),e&2){let i=r.$implicit;l(),b(d(2,1,i.endTime))}}function sgi(e,r){e&1&&(a(0,"th",41),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Completed")))}function lgi(e,r){if(e&1&&(a(0,"td",42),t(1),s()),e&2){let i=r.$implicit;l(),b(i.completed)}}function cgi(e,r){e&1&&(a(0,"th",41),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Total Records")))}function pgi(e,r){if(e&1&&(a(0,"td",42),t(1),s()),e&2){let i=r.$implicit;l(),b(i.totalRecords)}}function mgi(e,r){e&1&&(a(0,"th",41),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Success Count")))}function dgi(e,r){if(e&1&&(a(0,"td",42),t(1),s()),e&2){let i=r.$implicit;l(),b(i.successCount)}}function ugi(e,r){e&1&&(a(0,"th",41),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Failure Count")))}function fgi(e,r){if(e&1&&(a(0,"td",42),t(1),s()),e&2){let i=r.$implicit;l(),b(i.failureCount)}}function hgi(e,r){e&1&&(a(0,"th",41),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Download")))}function ggi(e,r){if(e&1){let i=st();a(0,"button",44),q("click",function(){W(i);let n=A().$implicit,c=A();return Q(c.downloadDocument(n.name,n.importId))}),t(1,` - `),k(2,"fa-icon",45),t(3,` - `),s()}}function xgi(e,r){e&1&&(a(0,"td",42),t(1,` - `),x(2,ggi,4,0,"button",43),t(3,` - `),s()),e&2&&(l(2),g("mifosxHasPermission","READ_DOCUMENT"))}function _gi(e,r){e&1&&k(0,"tr",46)}function vgi(e,r){e&1&&k(0,"tr",47)}var zD=(()=>{class e{constructor(i,o,n){this.route=i,this.formBuilder=o,this.organizationService=n,this.bulkImportsArray=VD,this.bulkImport={},this.dataSource=new ci,this.displayedColumns=["name","importTime","endTime","completed","totalRecords","successCount","failureCount","download"],this.bulkImport.name=this.route.snapshot.params["import-name"],this.route.data.subscribe(c=>{this.officeData=c.offices,this.importsData=c.imports})}ngOnInit(){this.bulkImport=this.bulkImportsArray.find(i=>i.name===this.bulkImport.name),this.createBulkImportForm(),this.buildDependencies(),this.setImports()}createBulkImportForm(){this.bulkImportForm=this.formBuilder.group({officeId:[""],staffId:[""],legalForm:[""]})}buildDependencies(){this.bulkImportForm.get("officeId").valueChanges.subscribe(i=>{this.bulkImport.formFields>=2&&this.organizationService.getStaff(i).subscribe(o=>{this.staffData=o})})}setImports(){this.dataSource=new ci(this.importsData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}downloadTemplate(){let i=this.bulkImportForm.get("officeId").value,o=this.bulkImportForm.get("staffId").value,n="";switch(this.bulkImportForm.get("legalForm").value){case"Person":n="CLIENTS_PERSON";break;case"Entity":n="CLIENTS_ENTITY";break}this.organizationService.getImportTemplate(this.bulkImport.urlSuffix,i,o,n).subscribe(c=>{let u=c.headers.get("Content-Type"),h=new Blob([c.body],{type:u}),_=new File([h],"template.xls",{type:u});window.open(window.URL.createObjectURL(_))})}onFileSelect(i){i.target.files.length>0&&(this.template=i.target.files[0])}uploadTemplate(){let i="";this.bulkImport.name==="Clients"&&(this.template.name.toLowerCase().includes("entity")?i="CLIENTS_ENTITY":this.template.name.toLowerCase().includes("person")&&(i="CLIENTS_PERSON")),this.organizationService.uploadImportDocument(this.template,this.bulkImport.urlSuffix,i).subscribe(()=>{})}refreshDocuments(){this.organizationService.getImports(this.bulkImport.entityType).subscribe(i=>{this.dataSource=new ci(i),this.importsTableRef.renderRows()})}downloadDocument(i,o){this.organizationService.getImportDocument(o).subscribe(n=>{let c=n.headers.get("Content-Type"),u=new Blob([n.body],{type:c}),h=new File([u],i,{type:c});window.open(window.URL.createObjectURL(h))})}static{this.\u0275fac=function(o){return new(o||e)(V(Lt),V(xe),V(Ei))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-view-bulk-import"]],viewQuery:function(o,n){if(o&1&&(Nt(Je,7),Nt($e,7),Nt(U1i,7)),o&2){let c;Bt(c=Rt())&&(n.paginator=c.first),Bt(c=Rt())&&(n.sort=c.first),Bt(c=Rt())&&(n.importsTableRef=c.first)}},decls:152,vars:30,consts:[["importsTable",""],[1,"container"],[1,"gap-2percent","m-b-20"],[1,"layout-column","gap-2percent","flex-50"],[3,"formGroup"],[4,"ngIf"],[1,"flex-13"],["mat-raised-button","","color","primary",3,"click",4,"mifosxHasPermission"],["flex","75%","acceptFilter",".xls,.xlsx",3,"change"],["mat-raised-button","","color","primary",3,"click","disabled"],[1,"fa","fa-upload"],["class","flex cover",4,"ngIf"],[1,"documents"],[1,"m-b-10","layout-align-end"],["mat-raised-button","","color","primary",3,"click"],[1,"fa","fa-repeat"],[1,"imports-table","mat-elevation-z1"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","importTime"],["matColumnDef","endTime"],["matColumnDef","completed"],["matColumnDef","totalRecords"],["matColumnDef","successCount"],["matColumnDef","failureCount"],["matColumnDef","download"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],[1,"flex-fill"],["formControlName","officeId"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["formControlName","staffId"],["required","","formControlName","legalForm"],["value","Entity"],["value","Person"],[1,"fa","fa-download"],[1,"flex","cover"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-icon-button","",3,"click",4,"mifosxHasPermission"],["mat-icon-button","",3,"click"],["icon","cloud-download-alt"],["mat-header-row",""],["mat-row","",1,"select-row"]],template:function(o,n){if(o&1){let c=st();a(0,"div",1),t(1,` + `))}function X1i(e,r){e&1&&(a(0,"mat-hint"),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.text.Please retain the value Entity/Person in the filename.")))}function tgi(e,r){e&1&&(a(0,"th",40),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.name")))}function egi(e,r){if(e&1&&(a(0,"td",41),t(1),s()),e&2){let i=r.$implicit;l(),b(i.name)}}function igi(e,r){e&1&&(a(0,"th",40),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Import Time")))}function ngi(e,r){if(e&1&&(a(0,"td",41),t(1),m(2,"dateFormat"),s()),e&2){let i=r.$implicit;l(),b(d(2,1,i.importTime))}}function rgi(e,r){e&1&&(a(0,"th",40),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.End Time")))}function ogi(e,r){if(e&1&&(a(0,"td",41),t(1),m(2,"dateFormat"),s()),e&2){let i=r.$implicit;l(),b(d(2,1,i.endTime))}}function agi(e,r){e&1&&(a(0,"th",40),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Completed")))}function sgi(e,r){if(e&1&&(a(0,"td",41),t(1),s()),e&2){let i=r.$implicit;l(),b(i.completed)}}function lgi(e,r){e&1&&(a(0,"th",40),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Total Records")))}function cgi(e,r){if(e&1&&(a(0,"td",41),t(1),s()),e&2){let i=r.$implicit;l(),b(i.totalRecords)}}function pgi(e,r){e&1&&(a(0,"th",40),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Success Count")))}function mgi(e,r){if(e&1&&(a(0,"td",41),t(1),s()),e&2){let i=r.$implicit;l(),b(i.successCount)}}function dgi(e,r){e&1&&(a(0,"th",40),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Failure Count")))}function ugi(e,r){if(e&1&&(a(0,"td",41),t(1),s()),e&2){let i=r.$implicit;l(),b(i.failureCount)}}function fgi(e,r){e&1&&(a(0,"th",40),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Download")))}function hgi(e,r){if(e&1){let i=st();a(0,"button",43),q("click",function(){W(i);let n=A().$implicit,c=A();return Q(c.downloadDocument(n.name,n.importId))}),t(1,` + `),k(2,"fa-icon",44),t(3,` + `),s()}}function ggi(e,r){e&1&&(a(0,"td",41),t(1,` + `),x(2,hgi,4,0,"button",42),t(3,` + `),s()),e&2&&(l(2),g("mifosxHasPermission","READ_DOCUMENT"))}function xgi(e,r){e&1&&k(0,"tr",45)}function _gi(e,r){e&1&&k(0,"tr",46)}var zD=(()=>{class e{constructor(i,o,n){this.route=i,this.formBuilder=o,this.organizationService=n,this.bulkImportsArray=VD,this.bulkImport={},this.dataSource=new ci,this.displayedColumns=["name","importTime","endTime","completed","totalRecords","successCount","failureCount","download"],this.bulkImport.name=this.route.snapshot.params["import-name"],this.route.data.subscribe(c=>{this.officeData=c.offices,this.importsData=c.imports})}ngOnInit(){this.bulkImport=this.bulkImportsArray.find(i=>i.name===this.bulkImport.name),this.createBulkImportForm(),this.buildDependencies(),this.setImports()}createBulkImportForm(){this.bulkImportForm=this.formBuilder.group({officeId:[""],staffId:[""],legalForm:[""]})}buildDependencies(){this.bulkImportForm.get("officeId").valueChanges.subscribe(i=>{this.bulkImport.formFields>=2&&this.organizationService.getStaff(i).subscribe(o=>{this.staffData=o})})}setImports(){this.dataSource=new ci(this.importsData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}downloadTemplate(){let i=this.bulkImportForm.get("officeId").value,o=this.bulkImportForm.get("staffId").value,n="";switch(this.bulkImportForm.get("legalForm").value){case"Person":n="CLIENTS_PERSON";break;case"Entity":n="CLIENTS_ENTITY";break}this.organizationService.getImportTemplate(this.bulkImport.urlSuffix,i,o,n).subscribe(c=>{let u=c.headers.get("Content-Type"),h=new Blob([c.body],{type:u}),_=new File([h],"template.xls",{type:u});window.open(window.URL.createObjectURL(_))})}onFileSelect(i){i.target.files.length>0&&(this.template=i.target.files[0])}uploadTemplate(){let i="";this.bulkImport.name==="Clients"&&(this.template.name.toLowerCase().includes("entity")?i="CLIENTS_ENTITY":this.template.name.toLowerCase().includes("person")&&(i="CLIENTS_PERSON")),this.organizationService.uploadImportDocument(this.template,this.bulkImport.urlSuffix,i).subscribe(()=>{})}refreshDocuments(){this.organizationService.getImports(this.bulkImport.entityType).subscribe(i=>{this.dataSource=new ci(i),this.importsTableRef.renderRows()})}downloadDocument(i,o){this.organizationService.getImportDocument(o).subscribe(n=>{let c=n.headers.get("Content-Type"),u=new Blob([n.body],{type:c}),h=new File([u],i,{type:c});window.open(window.URL.createObjectURL(h))})}static{this.\u0275fac=function(o){return new(o||e)(V(Lt),V(xe),V(Ei))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-view-bulk-import"]],viewQuery:function(o,n){if(o&1&&(Nt(Je,7),Nt($e,7),Nt(U1i,7)),o&2){let c;Bt(c=Rt())&&(n.paginator=c.first),Bt(c=Rt())&&(n.sort=c.first),Bt(c=Rt())&&(n.importsTableRef=c.first)}},decls:152,vars:29,consts:[["importsTable",""],[1,"container"],[1,"gap-2percent","m-b-20"],[1,"layout-column","gap-2percent","flex-50"],[3,"formGroup"],[4,"ngIf"],[1,"flex-13"],["mat-raised-button","","color","primary",3,"click",4,"mifosxHasPermission"],["flex","75%","acceptFilter",".xls,.xlsx",3,"change"],[1,"flex-spacer"],["mat-raised-button","","color","primary",3,"click","disabled"],[1,"fa","fa-upload"],[1,"documents"],[1,"m-b-10","layout-align-end"],["mat-raised-button","","color","primary",3,"click"],[1,"fa","fa-repeat"],[1,"imports-table","mat-elevation-z1"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","importTime"],["matColumnDef","endTime"],["matColumnDef","completed"],["matColumnDef","totalRecords"],["matColumnDef","successCount"],["matColumnDef","failureCount"],["matColumnDef","download"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],[1,"flex-fill"],["formControlName","officeId"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["formControlName","staffId"],["required","","formControlName","legalForm"],["value","Entity"],["value","Person"],[1,"fa","fa-download"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-icon-button","",3,"click",4,"mifosxHasPermission"],["mat-icon-button","",3,"click"],["icon","cloud-download-alt"],["mat-header-row",""],["mat-row","",1,"select-row"]],template:function(o,n){if(o&1){let c=st();a(0,"div",1),t(1,` `),a(2,"div",2),t(3,` `),a(4,"mat-card",3),t(5,` `),a(6,"h3"),t(7,` @@ -38482,12 +38482,12 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),x(45,X1i,3,3,"mat-hint",5),t(46,` - `),a(47,"div",6),t(48,` - `),a(49,"button",9),q("click",function(){return W(c),Q(n.uploadTemplate())}),t(50,` - `),k(51,"i",10),t(52),m(53,"translate"),s(),t(54,` - `),s(),t(55,` + `),k(47,"div",9),t(48,` - `),x(56,tgi,1,0,"div",11),t(57,` + `),a(49,"div",6),t(50,` + `),a(51,"button",10),q("click",function(){return W(c),Q(n.uploadTemplate())}),t(52,` + `),k(53,"i",11),t(54),m(55,"translate"),s(),t(56,` + `),s(),t(57,` `),s(),t(58,` `),s(),t(59,` @@ -38506,64 +38506,64 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),a(81,"div",16),t(82,` `),a(83,"table",17,0),t(85,` `),ot(86,18),t(87,` - `),x(88,egi,3,3,"th",19),t(89,` - `),x(90,igi,2,1,"td",20),t(91,` + `),x(88,tgi,3,3,"th",19),t(89,` + `),x(90,egi,2,1,"td",20),t(91,` `),at(),t(92,` `),ot(93,21),t(94,` - `),x(95,ngi,3,3,"th",19),t(96,` - `),x(97,rgi,3,3,"td",20),t(98,` + `),x(95,igi,3,3,"th",19),t(96,` + `),x(97,ngi,3,3,"td",20),t(98,` `),at(),t(99,` `),ot(100,22),t(101,` - `),x(102,ogi,3,3,"th",19),t(103,` - `),x(104,agi,3,3,"td",20),t(105,` + `),x(102,rgi,3,3,"th",19),t(103,` + `),x(104,ogi,3,3,"td",20),t(105,` `),at(),t(106,` `),ot(107,23),t(108,` - `),x(109,sgi,3,3,"th",19),t(110,` - `),x(111,lgi,2,1,"td",20),t(112,` + `),x(109,agi,3,3,"th",19),t(110,` + `),x(111,sgi,2,1,"td",20),t(112,` `),at(),t(113,` `),ot(114,24),t(115,` - `),x(116,cgi,3,3,"th",19),t(117,` - `),x(118,pgi,2,1,"td",20),t(119,` + `),x(116,lgi,3,3,"th",19),t(117,` + `),x(118,cgi,2,1,"td",20),t(119,` `),at(),t(120,` `),ot(121,25),t(122,` - `),x(123,mgi,3,3,"th",19),t(124,` - `),x(125,dgi,2,1,"td",20),t(126,` + `),x(123,pgi,3,3,"th",19),t(124,` + `),x(125,mgi,2,1,"td",20),t(126,` `),at(),t(127,` `),ot(128,26),t(129,` - `),x(130,ugi,3,3,"th",19),t(131,` - `),x(132,fgi,2,1,"td",20),t(133,` + `),x(130,dgi,3,3,"th",19),t(131,` + `),x(132,ugi,2,1,"td",20),t(133,` `),at(),t(134,` `),ot(135,27),t(136,` - `),x(137,hgi,3,3,"th",19),t(138,` - `),x(139,xgi,4,1,"td",20),t(140,` + `),x(137,fgi,3,3,"th",19),t(138,` + `),x(139,ggi,4,1,"td",20),t(140,` `),at(),t(141,` - `),x(142,_gi,1,0,"tr",28),t(143,` - `),x(144,vgi,1,0,"tr",29),t(145,` + `),x(142,xgi,1,0,"tr",28),t(143,` + `),x(144,_gi,1,0,"tr",29),t(145,` `),s(),t(146,` `),s(),t(147,` `),k(148,"mat-paginator",30),t(149,` `),s(),t(150,` `),s(),t(151,` -`)}o&2&&(l(9),_t("",n.bulkImport.name," ",d(10,19,"labels.heading.Template"),""),l(4),g("formGroup",n.bulkImportForm),l(4),g("ngIf",n.bulkImport.formFields>=1),l(2),g("ngIf",n.bulkImport.formFields>=2),l(2),g("ngIf",n.bulkImport.formFields===3),l(6),g("mifosxHasPermission",n.bulkImport.permission),l(9),b(n.bulkImport.name),l(4),b(d(41,21,"labels.heading.Select Excel File")),l(5),g("ngIf",n.bulkImport.name==="Clients"),l(4),g("disabled",!n.template),l(3),P("\xA0\xA0",d(53,23,"labels.buttons.Upload"),` - `),l(4),g("ngIf",n.bulkImport.formFields>=2),l(11),b(d(68,25,"labels.heading.Documents")),l(10),P("\xA0\xA0",d(78,27,"labels.buttons.Refresh"),` - `),l(6),g("dataSource",n.dataSource),l(59),g("matHeaderRowDef",n.displayedColumns),l(2),g("matRowDefColumns",n.displayedColumns),l(4),g("pageSizeOptions",ht(29,$1i)))},dependencies:[St,se,zt,wt,ge,re,ue,Ie,fe,he,oe,me,Ht,$t,rs,Oe,De,Dt,Gi,de,Et,au,Fe,$e,Ne,Re,Le,wi,Be,Ve,Hi,Gt,ze,qe,je,He,Je],styles:[".container[_ngcontent-%COMP%]{padding:24px;max-width:100%}.container[_ngcontent-%COMP%] .gap-2percent[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:24px;margin-bottom:24px;align-items:stretch}@media (width <= 768px){.container[_ngcontent-%COMP%] .gap-2percent[_ngcontent-%COMP%]{flex-direction:column}}.container[_ngcontent-%COMP%] .gap-2percent[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{flex:1;padding:24px;display:flex;flex-direction:column;border-radius:20px}.container[_ngcontent-%COMP%] .gap-2percent[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0 0 20px;font-weight:500;color:#333}.container[_ngcontent-%COMP%] .gap-2percent[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-weight:400;margin:16px 0 12px;color:#555}.container[_ngcontent-%COMP%] .gap-2percent[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:0;margin-bottom:20px;flex-grow:1}.container[_ngcontent-%COMP%] .gap-2percent[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%;margin-bottom:16px}.container[_ngcontent-%COMP%] .gap-2percent[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] .flex-13[_ngcontent-%COMP%]{margin-top:auto;padding-top:16px}.container[_ngcontent-%COMP%] .gap-2percent[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] .flex-13[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:12px 24px;font-weight:500;width:100%}.container[_ngcontent-%COMP%] .gap-2percent[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] mifosx-file-upload[_ngcontent-%COMP%]{margin:16px 0;flex-grow:1;padding-top:20px!important}.container[_ngcontent-%COMP%] .gap-2percent[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] mat-hint[_ngcontent-%COMP%]{margin:12px 0;font-size:12px;color:#666}.container[_ngcontent-%COMP%] .gap-2percent[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] .flex.cover[_ngcontent-%COMP%]{flex-grow:1}.container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]:last-child{padding:24px;border-radius:20px;position:relative}.container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]:last-child .documents[_ngcontent-%COMP%]{margin:16px 0 20px;font-weight:500;color:#333}.container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]:last-child .m-b-10[_ngcontent-%COMP%]{position:absolute;right:24px;top:24px;margin-bottom:0}.container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]:last-child .m-b-10[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:8px 16px}.imports-table[_ngcontent-%COMP%]{overflow:auto;margin-top:16px;border-radius:8px}.imports-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.imports-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:500;padding:16px 12px}.imports-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:16px 12px}.imports-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{background-color:#0000000a}mat-paginator[_ngcontent-%COMP%]{margin-top:16px}"]})}}return e})();var bgi=()=>["edit"];function Cgi(e,r){e&1&&(a(0,"button",19),t(1,` - `),k(2,"fa-icon",20),t(3),m(4,"translate"),s()),e&2&&(g("routerLink",ht(4,bgi)),l(3),P(` +`)}o&2&&(l(9),_t("",n.bulkImport.name," ",d(10,18,"labels.heading.Template"),""),l(4),g("formGroup",n.bulkImportForm),l(4),g("ngIf",n.bulkImport.formFields>=1),l(2),g("ngIf",n.bulkImport.formFields>=2),l(2),g("ngIf",n.bulkImport.formFields===3),l(6),g("mifosxHasPermission",n.bulkImport.permission),l(9),b(n.bulkImport.name),l(4),b(d(41,20,"labels.heading.Select Excel File")),l(5),g("ngIf",n.bulkImport.name==="Clients"),l(6),g("disabled",!n.template),l(3),P("\xA0\xA0",d(55,22,"labels.buttons.Upload"),` + `),l(13),b(d(68,24,"labels.heading.Documents")),l(10),P("\xA0\xA0",d(78,26,"labels.buttons.Refresh"),` + `),l(6),g("dataSource",n.dataSource),l(59),g("matHeaderRowDef",n.displayedColumns),l(2),g("matRowDefColumns",n.displayedColumns),l(4),g("pageSizeOptions",ht(28,$1i)))},dependencies:[St,se,zt,wt,ge,re,ue,Ie,fe,he,oe,me,Ht,$t,rs,Oe,De,Dt,Gi,de,Et,au,Fe,$e,Ne,Re,Le,wi,Be,Ve,Hi,Gt,ze,qe,je,He,Je],styles:[".container[_ngcontent-%COMP%]{padding:24px;max-width:100%}.container[_ngcontent-%COMP%] .gap-2percent[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:24px;margin-bottom:24px;align-items:stretch}@media (width <= 768px){.container[_ngcontent-%COMP%] .gap-2percent[_ngcontent-%COMP%]{flex-direction:column}}.container[_ngcontent-%COMP%] .gap-2percent[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{flex:1;padding:24px;display:flex;flex-direction:column;border-radius:20px;min-height:400px}.container[_ngcontent-%COMP%] .gap-2percent[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0 0 20px;font-weight:500;color:#333}.container[_ngcontent-%COMP%] .gap-2percent[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-weight:400;margin:16px 0 12px;color:#555}.container[_ngcontent-%COMP%] .gap-2percent[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:0;margin-bottom:20px}.container[_ngcontent-%COMP%] .gap-2percent[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%;margin-bottom:16px}.container[_ngcontent-%COMP%] .gap-2percent[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] .flex-13[_ngcontent-%COMP%]{margin-top:auto;padding-top:16px}.container[_ngcontent-%COMP%] .gap-2percent[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] .flex-13[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:12px 24px;font-weight:500;width:100%}.container[_ngcontent-%COMP%] .gap-2percent[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1;min-height:20px}.container[_ngcontent-%COMP%] .gap-2percent[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] mifosx-file-upload[_ngcontent-%COMP%]{margin:16px 0;flex-grow:1;padding-top:20px!important}.container[_ngcontent-%COMP%] .gap-2percent[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] mat-hint[_ngcontent-%COMP%]{margin:12px 0;font-size:12px;color:#666}.container[_ngcontent-%COMP%] .gap-2percent[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] .flex.cover[_ngcontent-%COMP%]{flex-grow:1}.container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]:last-child{padding:24px;border-radius:20px;position:relative}.container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]:last-child .documents[_ngcontent-%COMP%]{margin:16px 0 20px;font-weight:500;color:#333}.container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]:last-child .m-b-10[_ngcontent-%COMP%]{position:absolute;right:24px;top:24px;margin-bottom:0}.container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]:last-child .m-b-10[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:8px 16px}.imports-table[_ngcontent-%COMP%]{overflow:auto;margin-top:16px;border-radius:8px}.imports-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.imports-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:500;padding:16px 12px}.imports-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:16px 12px}.imports-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{background-color:#0000000a}mat-paginator[_ngcontent-%COMP%]{margin-top:16px}"]})}}return e})();var vgi=()=>["edit"];function bgi(e,r){e&1&&(a(0,"button",19),t(1,` + `),k(2,"fa-icon",20),t(3),m(4,"translate"),s()),e&2&&(g("routerLink",ht(4,vgi)),l(3),P(` `,d(4,2,"labels.buttons.Edit"),` - `))}function ygi(e,r){if(e&1){let i=st();a(0,"button",21),q("click",function(){W(i);let n=A();return Q(n.deleteCriteria())}),t(1,` + `))}function Cgi(e,r){if(e&1){let i=st();a(0,"button",21),q("click",function(){W(i);let n=A();return Q(n.deleteCriteria())}),t(1,` `),k(2,"fa-icon",22),t(3),m(4,"translate"),s()}e&2&&(l(3),P(` `,d(4,1,"labels.buttons.Delete"),` - `))}function Sgi(e,r){e&1&&(a(0,"th",23),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Category")))}function wgi(e,r){if(e&1&&(a(0,"td",24),t(1),s()),e&2){let i=r.$implicit;l(),b(i.categoryName)}}function Egi(e,r){e&1&&(a(0,"th",23),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Min Age")))}function Pgi(e,r){if(e&1&&(a(0,"td",24),t(1),s()),e&2){let i=r.$implicit;l(),b(i.minAge)}}function kgi(e,r){e&1&&(a(0,"th",23),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Max Age")))}function Igi(e,r){if(e&1&&(a(0,"td",24),t(1),s()),e&2){let i=r.$implicit;l(),b(i.maxAge)}}function Tgi(e,r){e&1&&(a(0,"th",23),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Percentage")))}function Mgi(e,r){if(e&1&&(a(0,"td",24),t(1),s()),e&2){let i=r.$implicit;l(),b(i.provisioningPercentage)}}function Dgi(e,r){e&1&&(a(0,"th",23),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Liability Account")))}function Agi(e,r){if(e&1&&(a(0,"td",24),t(1),s()),e&2){let i=r.$implicit;l(),b(i.liabilityName)}}function Ogi(e,r){e&1&&(a(0,"th",23),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Expense Account")))}function Fgi(e,r){if(e&1&&(a(0,"td",24),t(1),s()),e&2){let i=r.$implicit;l(),b(i.expenseName)}}function Bgi(e,r){e&1&&k(0,"tr",25)}function Rgi(e,r){e&1&&k(0,"tr",26)}var jD=(()=>{class e{constructor(i,o,n,c){this.organizationService=i,this.route=o,this.router=n,this.dialog=c,this.loanProducts="",this.displayedColumns=["category","minAge","maxAge","percentage","liabilityAccount","expenseAccount"],this.route.data.subscribe(u=>{this.provisioningData=u.loanProvisioningCriteria})}ngOnInit(){this.setLoanProvisioningSelectedCriteria()}setLoanProvisioningSelectedCriteria(){this.dataSource=new ci(this.provisioningData.definitions),this.provisioningData.loanProducts&&this.provisioningData.loanProducts.length>0?this.loanProducts=this.provisioningData.loanProducts.filter(i=>i&&i.name).map(i=>i.name).join(", "):this.loanProducts=""}deleteCriteria(){this.dialog.open(Li,{data:{deleteContext:`Loan Provisioning Criteria id: ${this.provisioningData.criteriaId}`}}).afterClosed().subscribe(o=>{o.delete&&this.organizationService.deleteProvisioningCriteria(this.provisioningData.criteriaId).subscribe(()=>{this.router.navigate(["/organization/provisioning-criteria"])},n=>{console.error("Failed to delete provisioning criteria:",n)})})}static{this.\u0275fac=function(o){return new(o||e)(V(Ei),V(Lt),V(te),V(ni))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-view-loan-provisioning-criteria"]],decls:86,vars:11,consts:[[1,"layout-row","align-end","gap-2px","responsive-column","container","m-b-20"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row-wrap","align-center"],[1,"mat-h2","criteria-title"],[1,"loan-product-label"],[3,"inset"],["mat-table","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","category"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","minAge"],["matColumnDef","maxAge"],["matColumnDef","percentage"],["matColumnDef","liabilityAccount"],["matColumnDef","expenseAccount"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(o,n){o&1&&(a(0,"div",0),t(1,` - `),x(2,Cgi,5,5,"button",1),t(3,` - `),x(4,ygi,5,3,"button",2),t(5,` + `))}function ygi(e,r){e&1&&(a(0,"th",23),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Category")))}function Sgi(e,r){if(e&1&&(a(0,"td",24),t(1),s()),e&2){let i=r.$implicit;l(),b(i.categoryName)}}function wgi(e,r){e&1&&(a(0,"th",23),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Min Age")))}function Egi(e,r){if(e&1&&(a(0,"td",24),t(1),s()),e&2){let i=r.$implicit;l(),b(i.minAge)}}function Pgi(e,r){e&1&&(a(0,"th",23),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Max Age")))}function kgi(e,r){if(e&1&&(a(0,"td",24),t(1),s()),e&2){let i=r.$implicit;l(),b(i.maxAge)}}function Igi(e,r){e&1&&(a(0,"th",23),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Percentage")))}function Tgi(e,r){if(e&1&&(a(0,"td",24),t(1),s()),e&2){let i=r.$implicit;l(),b(i.provisioningPercentage)}}function Mgi(e,r){e&1&&(a(0,"th",23),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Liability Account")))}function Dgi(e,r){if(e&1&&(a(0,"td",24),t(1),s()),e&2){let i=r.$implicit;l(),b(i.liabilityName)}}function Agi(e,r){e&1&&(a(0,"th",23),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Expense Account")))}function Ogi(e,r){if(e&1&&(a(0,"td",24),t(1),s()),e&2){let i=r.$implicit;l(),b(i.expenseName)}}function Fgi(e,r){e&1&&k(0,"tr",25)}function Bgi(e,r){e&1&&k(0,"tr",26)}var jD=(()=>{class e{constructor(i,o,n,c){this.organizationService=i,this.route=o,this.router=n,this.dialog=c,this.loanProducts="",this.displayedColumns=["category","minAge","maxAge","percentage","liabilityAccount","expenseAccount"],this.route.data.subscribe(u=>{this.provisioningData=u.loanProvisioningCriteria})}ngOnInit(){this.setLoanProvisioningSelectedCriteria()}setLoanProvisioningSelectedCriteria(){this.dataSource=new ci(this.provisioningData.definitions),this.provisioningData.loanProducts&&this.provisioningData.loanProducts.length>0?this.loanProducts=this.provisioningData.loanProducts.filter(i=>i&&i.name).map(i=>i.name).join(", "):this.loanProducts=""}deleteCriteria(){this.dialog.open(Li,{data:{deleteContext:`Loan Provisioning Criteria id: ${this.provisioningData.criteriaId}`}}).afterClosed().subscribe(o=>{o.delete&&this.organizationService.deleteProvisioningCriteria(this.provisioningData.criteriaId).subscribe(()=>{this.router.navigate(["/organization/provisioning-criteria"])},n=>{console.error("Failed to delete provisioning criteria:",n)})})}static{this.\u0275fac=function(o){return new(o||e)(V(Ei),V(Lt),V(te),V(ni))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-view-loan-provisioning-criteria"]],decls:86,vars:11,consts:[[1,"layout-row","align-end","gap-2px","responsive-column","container","m-b-20"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row-wrap","align-center"],[1,"mat-h2","criteria-title"],[1,"loan-product-label"],[3,"inset"],["mat-table","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","category"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","minAge"],["matColumnDef","maxAge"],["matColumnDef","percentage"],["matColumnDef","liabilityAccount"],["matColumnDef","expenseAccount"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(o,n){o&1&&(a(0,"div",0),t(1,` + `),x(2,bgi,5,5,"button",1),t(3,` + `),x(4,Cgi,5,3,"button",2),t(5,` `),s(),t(6,` `),a(7,"div",3),t(8,` @@ -38581,37 +38581,37 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),a(31,"div"),t(32,` `),a(33,"table",8),t(34,` `),ot(35,9),t(36,` - `),x(37,Sgi,3,3,"th",10),t(38,` - `),x(39,wgi,2,1,"td",11),t(40,` + `),x(37,ygi,3,3,"th",10),t(38,` + `),x(39,Sgi,2,1,"td",11),t(40,` `),at(),t(41,` `),ot(42,12),t(43,` - `),x(44,Egi,3,3,"th",10),t(45,` - `),x(46,Pgi,2,1,"td",11),t(47,` + `),x(44,wgi,3,3,"th",10),t(45,` + `),x(46,Egi,2,1,"td",11),t(47,` `),at(),t(48,` `),ot(49,13),t(50,` - `),x(51,kgi,3,3,"th",10),t(52,` - `),x(53,Igi,2,1,"td",11),t(54,` + `),x(51,Pgi,3,3,"th",10),t(52,` + `),x(53,kgi,2,1,"td",11),t(54,` `),at(),t(55,` `),ot(56,14),t(57,` - `),x(58,Tgi,3,3,"th",10),t(59,` - `),x(60,Mgi,2,1,"td",11),t(61,` + `),x(58,Igi,3,3,"th",10),t(59,` + `),x(60,Tgi,2,1,"td",11),t(61,` `),at(),t(62,` `),ot(63,15),t(64,` - `),x(65,Dgi,3,3,"th",10),t(66,` - `),x(67,Agi,2,1,"td",11),t(68,` + `),x(65,Mgi,3,3,"th",10),t(66,` + `),x(67,Dgi,2,1,"td",11),t(68,` `),at(),t(69,` `),ot(70,16),t(71,` - `),x(72,Ogi,3,3,"th",10),t(73,` - `),x(74,Fgi,2,1,"td",11),t(75,` + `),x(72,Agi,3,3,"th",10),t(73,` + `),x(74,Ogi,2,1,"td",11),t(75,` `),at(),t(76,` - `),x(77,Bgi,1,0,"tr",17),t(78,` - `),x(79,Rgi,1,0,"tr",18),t(80,` + `),x(77,Fgi,1,0,"tr",17),t(78,` + `),x(79,Bgi,1,0,"tr",18),t(80,` `),s(),t(81,` `),s(),t(82,` `),s(),t(83,` @@ -38619,41 +38619,41 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),s(),t(85,` `)),o&2&&(l(2),g("mifosxHasPermission","UPDATE_CRITERIA"),l(2),g("mifosxHasPermission","DELETE_CRITERIA"),l(12),P(` `,n.provisioningData.criteriaName,` - `),l(5),P("",d(22,9,"labels.inputs.Loan Product"),":"),l(4),b(n.loanProducts),l(4),g("inset",!0),l(4),g("dataSource",n.dataSource),l(44),g("matHeaderRowDef",n.displayedColumns),l(2),g("matRowDefColumns",n.displayedColumns))},dependencies:[St,wt,qt,oe,me,Dt,de,Et,Gt,sn,Fe,Ne,Re,Le,Be,Ve,ze,qe,je,He],styles:[".criteria-title[_ngcontent-%COMP%]{margin-bottom:0;display:inline;vertical-align:middle}.loan-product-label[_ngcontent-%COMP%]{margin-left:24px;font-size:1.1em;vertical-align:middle}table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:0;font-weight:500}span[_ngcontent-%COMP%]{margin:.5em 0}mat-divider[_ngcontent-%COMP%]{margin:0 0 .5em}.loanProduct[_ngcontent-%COMP%]{padding:10px 0}"]})}}return e})();function Ngi(e,r){if(e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),a(3,"strong"),t(4),m(5,"translate"),s(),t(6,` + `),l(5),P("",d(22,9,"labels.inputs.Loan Product"),":"),l(4),b(n.loanProducts),l(4),g("inset",!0),l(4),g("dataSource",n.dataSource),l(44),g("matHeaderRowDef",n.displayedColumns),l(2),g("matRowDefColumns",n.displayedColumns))},dependencies:[St,wt,qt,oe,me,Dt,de,Et,Gt,sn,Fe,Ne,Re,Le,Be,Ve,ze,qe,je,He],styles:[".criteria-title[_ngcontent-%COMP%]{margin-bottom:0;display:inline;vertical-align:middle}.loan-product-label[_ngcontent-%COMP%]{margin-left:24px;font-size:1.1em;vertical-align:middle}table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:0;font-weight:500}span[_ngcontent-%COMP%]{margin:.5em 0}mat-divider[_ngcontent-%COMP%]{margin:0 0 .5em}.loanProduct[_ngcontent-%COMP%]{padding:10px 0}"]})}}return e})();function Rgi(e,r){if(e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),a(3,"strong"),t(4),m(5,"translate"),s(),t(6,` `),s()),e&2){let i=A(3).$implicit;l(),_t(` `,i.label," ",d(2,3,"labels.commons.is"),` - `),l(3),b(d(5,5,"labels.commons.required"))}}function Lgi(e,r){if(e&1&&(a(0,"mat-form-field",13),t(1,` + `),l(3),b(d(5,5,"labels.commons.required"))}}function Ngi(e,r){if(e&1&&(a(0,"mat-form-field",13),t(1,` `),a(2,"mat-label"),t(3),s(),t(4,` `),k(5,"input",14),t(6,` - `),x(7,Ngi,7,7,"mat-error",10),t(8,` - `),s()),e&2){let i=A(2).$implicit,o=A();l(3),b(i.label),l(2),g("formControlName",i.name),l(2),g("ngIf",o.ReportForm.controls[i.name].hasError("required"))}}function Vgi(e,r){if(e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),a(3,"strong"),t(4),m(5,"translate"),s(),t(6,` + `),x(7,Rgi,7,7,"mat-error",10),t(8,` + `),s()),e&2){let i=A(2).$implicit,o=A();l(3),b(i.label),l(2),g("formControlName",i.name),l(2),g("ngIf",o.ReportForm.controls[i.name].hasError("required"))}}function Lgi(e,r){if(e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),a(3,"strong"),t(4),m(5,"translate"),s(),t(6,` `),s()),e&2){let i=A(3).$implicit;l(),_t(` `,i.label," ",d(2,3,"labels.commons.is"),` - `),l(3),b(d(5,5,"labels.commons.required"))}}function zgi(e,r){if(e&1){let i=st();a(0,"mat-form-field",15),q("click",function(){W(i);let n=Mt(10);return Q(n.open())}),t(1,` + `),l(3),b(d(5,5,"labels.commons.required"))}}function Vgi(e,r){if(e&1){let i=st();a(0,"mat-form-field",15),q("click",function(){W(i);let n=Mt(10);return Q(n.open())}),t(1,` `),a(2,"mat-label"),t(3),s(),t(4,` `),k(5,"input",16),t(6,` `),k(7,"mat-datepicker-toggle",17),t(8,` `),k(9,"mat-datepicker",null,0),t(11,` - `),x(12,Vgi,7,7,"mat-error",10),t(13,` - `),s()}if(e&2){let i=Mt(10),o=A(2).$implicit,n=A();l(3),b(o.label),l(2),g("min",n.minDate)("max",n.maxDate)("matDatepicker",i)("formControlName",o.name),l(2),g("for",i),l(5),g("ngIf",n.ReportForm.controls[o.name].hasError("required"))}}function jgi(e,r){if(e&1&&(a(0,"mat-option",20),t(1),s()),e&2){let i=r.$implicit;g("value",i),l(),P(` + `),x(12,Lgi,7,7,"mat-error",10),t(13,` + `),s()}if(e&2){let i=Mt(10),o=A(2).$implicit,n=A();l(3),b(o.label),l(2),g("min",n.minDate)("max",n.maxDate)("matDatepicker",i)("formControlName",o.name),l(2),g("for",i),l(5),g("ngIf",n.ReportForm.controls[o.name].hasError("required"))}}function zgi(e,r){if(e&1&&(a(0,"mat-option",20),t(1),s()),e&2){let i=r.$implicit;g("value",i),l(),P(` `,i.name,` - `)}}function qgi(e,r){if(e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),a(3,"strong"),t(4),m(5,"translate"),s(),t(6,` + `)}}function jgi(e,r){if(e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),a(3,"strong"),t(4),m(5,"translate"),s(),t(6,` `),s()),e&2){let i=A(3).$implicit;l(),_t(` `,i.label," ",d(2,3,"labels.commons.is"),` - `),l(3),b(d(5,5,"labels.commons.required"))}}function Hgi(e,r){if(e&1&&(a(0,"mat-form-field",13),t(1,` + `),l(3),b(d(5,5,"labels.commons.required"))}}function qgi(e,r){if(e&1&&(a(0,"mat-form-field",13),t(1,` `),a(2,"mat-label"),t(3),s(),t(4,` `),a(5,"mat-select",18),t(6,` - `),x(7,jgi,2,2,"mat-option",19),t(8,` + `),x(7,zgi,2,2,"mat-option",19),t(8,` `),s(),t(9,` - `),x(10,qgi,7,7,"mat-error",10),t(11,` - `),s()),e&2){let i=A(2).$implicit,o=A();l(3),b(i.label),l(2),g("formControlName",i.name),l(2),g("ngForOf",i.selectOptions),l(3),g("ngIf",o.ReportForm.controls[i.name].hasError("required"))}}function Ggi(e,r){e&1&&(ot(0),t(1,` - `),x(2,Lgi,9,3,"mat-form-field",11),t(3,` + `),x(10,jgi,7,7,"mat-error",10),t(11,` + `),s()),e&2){let i=A(2).$implicit,o=A();l(3),b(i.label),l(2),g("formControlName",i.name),l(2),g("ngForOf",i.selectOptions),l(3),g("ngIf",o.ReportForm.controls[i.name].hasError("required"))}}function Hgi(e,r){e&1&&(ot(0),t(1,` + `),x(2,Ngi,9,3,"mat-form-field",11),t(3,` - `),x(4,zgi,14,7,"mat-form-field",12),t(5,` + `),x(4,Vgi,14,7,"mat-form-field",12),t(5,` - `),x(6,Hgi,12,4,"mat-form-field",11),t(7,` - `),at()),e&2&&(l(2),g("ngSwitchCase","text"),l(2),g("ngSwitchCase","date"),l(2),g("ngSwitchCase","select"))}function Ugi(e,r){if(e&1&&(ot(0,9),t(1,` - `),x(2,Ggi,8,3,"ng-container",10),t(3,` + `),x(6,qgi,12,4,"mat-form-field",11),t(7,` + `),at()),e&2&&(l(2),g("ngSwitchCase","text"),l(2),g("ngSwitchCase","date"),l(2),g("ngSwitchCase","select"))}function Ggi(e,r){if(e&1&&(ot(0,9),t(1,` + `),x(2,Hgi,8,3,"ng-container",10),t(3,` `),at()),e&2){let i=r.$implicit,o=A();g("ngSwitch",i.displayType),l(2),g("ngIf",o.ReportForm.contains(i.name))}}var SC=(()=>{class e{constructor(i,o,n){this.reportsService=i,this.settingsService=o,this.dateUtils=n,this.ReportForm=new pm({}),this.parentParameters=[],this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.templateParameters=new $n}ngOnInit(){this.maxDate=this.settingsService.businessDate}ngOnChanges(){this.paramData&&(this.ReportForm=new pm({}),this.reportName=this.paramData.reportName,this.paramData=this.paramData.response,this.createRunReportForm())}get businessRuleFormValue(){let i=this.formatUserResponse(this.ReportForm.value,!1);return i.reportName=this.reportName,{paramValue:i}}createRunReportForm(){this.paramData.forEach(i=>{if(!i.parentParameterName)this.ReportForm.addControl(i.name,new _e("",bt.required)),i.displayType==="select"&&this.fetchSelectOptions(i,i.name);else{let o=this.paramData.find(n=>n.name===i.parentParameterName);o.childParameters.push(i),this.updateParentParameters(o)}}),this.setChildControls()}updateParentParameters(i){let o=this.parentParameters.map(n=>n.name);if(!o.includes(i.name))this.parentParameters.push(i);else{let n=o.indexOf(i.name);this.parentParameters[n]=i}}setChildControls(){this.parentParameters.forEach(i=>{this.ReportForm.get(i.name).valueChanges.subscribe(o=>{i.childParameters.forEach(n=>{if(n.displayType==="none"?this.ReportForm.addControl(n.name,new _e(n.defaultVal)):this.ReportForm.addControl(n.name,new _e("",bt.required)),n.displayType==="select"){let c=`${n.name}?${i.inputName}=${o.id}`;this.fetchSelectOptions(n,c)}})})})}fetchSelectOptions(i,o){this.reportsService.getSelectOptions(o).subscribe(n=>{i.selectOptions=n,i.selectAll==="Y"&&i.selectOptions.push({id:"-1",name:"All"})})}formatUserResponse(i,o){let n={},c;for(let[u,h]of Object.entries(i)){let _=this.paramData.find(y=>y.name===u);switch(c=o?_.inputName:_.variable,_.displayType){case"text":n[c]=h;break;case"select":n[c]=h.id;break;case"date":let y=this.settingsService.dateFormat;n[c]=this.dateUtils.formatDate(h,y);break;case"none":n[c]=h;break}}return n}getResponseHeaders(){let i=this.formatUserResponse(this.ReportForm.value,!0);this.reportsService.getRunReportData(this.reportName,i).subscribe(o=>{this.templateParameters.emit(o.columnHeaders)},o=>{this.templateParameters.emit(null)})}static{this.\u0275fac=function(o){return new(o||e)(V(Ts),V(We),V(_i))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-business-rule-parameters"]],inputs:{paramData:"paramData"},outputs:{templateParameters:"templateParameters"},features:[Vo],decls:24,vars:9,consts:[["runReportDatePicker",""],[1,"layout-column"],[1,"flex-98"],[1,"mat-h3","flex-98"],[3,"formGroup"],[1,"layout-row-wrap","gap-2percent"],[3,"ngSwitch",4,"ngFor","ngForOf"],[1,"layout-align-center","margin-t"],["mat-raised-button","","matStepperNext","","color","primary",3,"click","disabled"],[3,"ngSwitch"],[4,"ngIf"],["class","flex-48",4,"ngSwitchCase"],["class","flex-48",3,"click",4,"ngSwitchCase"],[1,"flex-48"],["matInput","","required","",3,"formControlName"],[1,"flex-48",3,"click"],["matInput","","required","",3,"min","max","matDatepicker","formControlName"],["matSuffix","",3,"for"],["required","",3,"formControlName"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(o,n){o&1&&(a(0,"div",1),t(1,` `),k(2,"mat-divider",2),t(3,` @@ -38661,7 +38661,7 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),a(8,"form",4),t(9,` `),a(10,"div",5),t(11,` - `),x(12,Ugi,4,2,"ng-container",6),t(13,` + `),x(12,Ggi,4,2,"ng-container",6),t(13,` `),s(),t(14,` `),s(),t(15,` `),s(),t(16,` @@ -38671,16 +38671,16 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),s(),t(23,` `)),o&2&&(l(5),b(d(6,5,"labels.heading.Business Rule Parameters")),l(3),g("formGroup",n.ReportForm),l(4),g("ngForOf",n.paramData),l(7),g("disabled",!n.ReportForm.valid),l(),P(` `,d(21,7,"labels.buttons.Get Parameters"),` - `))},dependencies:[St,se,zt,Ra,Na,wt,ge,Se,re,ue,Ie,fe,he,Ht,$t,Te,Si,Zt,Oe,De,Mi,Di,Ti,Dt,Et,sn,En],styles:["h3[_ngcontent-%COMP%]{font-weight:500}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}.parameter[_ngcontent-%COMP%]{margin-inline:1%}"]})}}return e})();function $gi(e,r){if(e&1&&(a(0,"mat-option",14),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` + `))},dependencies:[St,se,zt,Ra,Na,wt,ge,Se,re,ue,Ie,fe,he,Ht,$t,Te,Si,Zt,Oe,De,Mi,Di,Ti,Dt,Et,sn,En],styles:["h3[_ngcontent-%COMP%]{font-weight:500}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}.parameter[_ngcontent-%COMP%]{margin-inline:1%}"]})}}return e})();function Ugi(e,r){if(e&1&&(a(0,"mat-option",14),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` `,i.value,` - `)}}function Wgi(e,r){if(e&1&&(a(0,"mat-form-field",3),t(1,` + `)}}function $gi(e,r){if(e&1&&(a(0,"mat-form-field",3),t(1,` `),a(2,"mat-label"),t(3),m(4,"translate"),s(),t(5,` `),a(6,"mat-select",13),t(7,` - `),x(8,$gi,2,2,"mat-option",7),t(9,` + `),x(8,Ugi,2,2,"mat-option",7),t(9,` `),s(),t(10,` - `),s()),e&2){let i=A();l(3),b(d(4,2,"labels.inputs.SMS Provider")),l(5),g("ngForOf",i.smsProviders)}}function Qgi(e,r){if(e&1&&(a(0,"mat-option",14),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` + `),s()),e&2){let i=A();l(3),b(d(4,2,"labels.inputs.SMS Provider")),l(5),g("ngForOf",i.smsProviders)}}function Wgi(e,r){if(e&1&&(a(0,"mat-option",14),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` `,i.value,` - `)}}function Ygi(e,r){if(e&1){let i=st();a(0,"mat-form-field",15),q("click",function(){W(i);let n=Mt(11);return Q(n.open())}),t(1,` + `)}}function Qgi(e,r){if(e&1){let i=st();a(0,"mat-form-field",15),q("click",function(){W(i);let n=Mt(11);return Q(n.open())}),t(1,` `),a(2,"mat-label"),t(3),m(4,"translate"),s(),t(5,` `),k(6,"input",16),t(7,` `),k(8,"mat-datepicker-toggle",17),t(9,` @@ -38689,7 +38689,7 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),s(),t(21,` `),s()}if(e&2){let i=Mt(11),o=A();l(3),b(d(4,8,"labels.inputs.Schedule Date")),l(3),g("min",o.minDate)("max",o.maxDate)("matDatepicker",i),l(2),g("for",i),l(6),_t(` `,d(15,10,"labels.inputs.Schedule Date")," ",d(16,12,"labels.commons.is"),` - `),l(4),b(d(19,14,"labels.commons.required"))}}function Kgi(e,r){e&1&&(a(0,"mat-form-field",3),t(1,` + `),l(4),b(d(19,14,"labels.commons.required"))}}function Ygi(e,r){e&1&&(a(0,"mat-form-field",3),t(1,` `),a(2,"mat-label"),t(3),m(4,"translate"),s(),t(5,` `),a(6,"mat-select",18),t(7,` `),a(8,"mat-option",14),t(9),m(10,"translate"),s(),t(11,` @@ -38701,18 +38701,18 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),s(),t(33,` `),s()),e&2&&(l(3),b(d(4,12,"labels.inputs.Repeats")),l(5),g("value",1),l(),b(d(10,14,"labels.inputs.Daily")),l(3),g("value",2),l(),b(d(14,16,"labels.inputs.Weekly")),l(3),g("value",3),l(),b(d(18,18,"labels.inputs.Monthly")),l(3),g("value",4),l(),b(d(22,20,"labels.inputs.Yearly")),l(5),_t(` `,d(27,22,"labels.inputs.Repetition Frequency")," ",d(28,24,"labels.commons.is"),` - `),l(4),b(d(31,26,"labels.commons.required")))}function Jgi(e,r){if(e&1&&(a(0,"mat-option",14),t(1),s()),e&2){let i=r.$implicit;g("value",i),l(),P(` + `),l(4),b(d(31,26,"labels.commons.required")))}function Kgi(e,r){if(e&1&&(a(0,"mat-option",14),t(1),s()),e&2){let i=r.$implicit;g("value",i),l(),P(` `,i,` - `)}}function Zgi(e,r){if(e&1&&(a(0,"mat-form-field",3),t(1,` + `)}}function Jgi(e,r){if(e&1&&(a(0,"mat-form-field",3),t(1,` `),a(2,"mat-label"),t(3),m(4,"translate"),s(),t(5,` `),a(6,"mat-select",19),t(7,` - `),x(8,Jgi,2,2,"mat-option",7),t(9,` + `),x(8,Kgi,2,2,"mat-option",7),t(9,` `),s(),t(10,` `),a(11,"mat-error"),t(12),m(13,"translate"),m(14,"translate"),a(15,"strong"),t(16),m(17,"translate"),s(),t(18,` `),s(),t(19,` `),s()),e&2){let i=A();l(3),b(d(4,5,"labels.inputs.Repetition Interval")),l(5),g("ngForOf",i.repetitionIntervals),l(4),_t(` `,d(13,7,"labels.inputs.Repetition Interval")," ",d(14,9,"labels.commons.is"),` - `),l(4),b(d(17,11,"labels.commons.required"))}}function Xgi(e,r){e&1&&(a(0,"mat-form-field",3),t(1,` + `),l(4),b(d(17,11,"labels.commons.required"))}}function Zgi(e,r){e&1&&(a(0,"mat-form-field",3),t(1,` `),a(2,"mat-label"),t(3),m(4,"translate"),s(),t(5,` `),a(6,"mat-select",20),t(7,` `),a(8,"mat-option",21),t(9),m(10,"translate"),s(),t(11,` @@ -38727,9 +38727,9 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),s()),e&2&&(l(3),b(d(4,11,"labels.inputs.Repeats on Day")),l(6),b(d(10,13,"labels.inputs.Monday")),l(4),b(d(14,15,"labels.inputs.Tuesday")),l(4),b(d(18,17,"labels.inputs.Wednesday")),l(4),b(d(22,19,"labels.inputs.Thursday")),l(4),b(d(26,21,"labels.inputs.Friday")),l(4),b(d(30,23,"labels.inputs.Saturday")),l(4),b(d(34,25,"labels.inputs.Sunday")),l(5),P(` `,d(39,27,"labels.inputs.At least")," "),l(3),b(d(42,29,"labels.inputs.one")),l(2),P(` `,d(44,31,"labels.inputs.day must be selected"),` - `))}function txi(e,r){if(e&1&&(a(0,"mat-option",14),t(1),s()),e&2){let i=r.$implicit;g("value",i.reportId),l(),P(` + `))}function Xgi(e,r){if(e&1&&(a(0,"mat-option",14),t(1),s()),e&2){let i=r.$implicit;g("value",i.reportId),l(),P(` `,i.reportName,` - `)}}function exi(e,r){e&1&&(a(0,"div",28),t(1,` + `)}}function txi(e,r){e&1&&(a(0,"div",28),t(1,` `),a(2,"button",29),t(3,` `),k(4,"fa-icon",30),t(5),m(6,"translate"),s(),t(7,` `),a(8,"button",31),t(9),m(10,"translate"),k(11,"fa-icon",32),t(12,` @@ -38738,7 +38738,7 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `,d(6,2,"labels.buttons.Previous"),` `),l(4),P(` `,d(10,4,"labels.buttons.Next"),` - `))}function ixi(e,r){if(e&1){let i=st();a(0,"mifosx-business-rule-parameters",33),q("templateParameters",function(n){W(i);let c=A();return Q(c.passParameters(n))}),t(1,` + `))}function exi(e,r){if(e&1){let i=st();a(0,"mifosx-business-rule-parameters",33),q("templateParameters",function(n){W(i);let c=A();return Q(c.passParameters(n))}),t(1,` `),s()}if(e&2){let i=A();g("paramData",i.paramData)}}var wC=(()=>{class e{constructor(i,o){this.formBuilder=i,this.reportService=o,this.minDate=new Date,this.maxDate=new Date(new Date().setFullYear(new Date().getFullYear()+10)),this.templateParameters=new $n,this.createSMSCampaignDetailsForm(),this.buildDependencies()}ngOnInit(){this.triggerTypes=this.smsCampaignTemplate.triggerTypeOptions,this.smsProviders=this.smsCampaignTemplate.smsProviderOptions}get smsCampaignFormGroup(){let i;return this.businessRuleParametersComponent?i=new pm({smsCampaign:this.smsCampaignDetailsForm,businessRule:this.businessRuleParametersComponent.ReportForm}):i=new pm({smsCampaign:this.smsCampaignDetailsForm}),i}get smsCampaignFormGroupValue(){return this.businessRuleParametersComponent?ye(ye({},this.smsCampaignDetailsForm.value),this.businessRuleParametersComponent.businessRuleFormValue):this.smsCampaignDetailsForm.value}passParameters(i){this.templateParameters.emit(i)}createSMSCampaignDetailsForm(){this.smsCampaignDetailsForm=this.formBuilder.group({campaignName:["",bt.required],providerId:[null],triggerType:["",bt.required],runReportId:["",bt.required],isNotification:[!1]})}buildDependencies(){this.smsCampaignDetailsForm.get("isNotification").valueChanges.subscribe(i=>{i?this.smsCampaignDetailsForm.removeControl("providerId"):this.smsCampaignDetailsForm.addControl("providerId",new _e(null))}),this.smsCampaignDetailsForm.get("runReportId").valueChanges.subscribe(i=>{if(i){let o=this.businessRules.find(n=>n.reportId===i);this.reportService.getReportParams(o.reportName).subscribe(n=>{this.paramData={response:n,reportName:o.reportName}})}}),this.smsCampaignDetailsForm.get("triggerType").valueChanges.subscribe(i=>{this.templateParameters.emit(null),this.businessRules=this.smsCampaignTemplate.businessRulesOptions,this.smsCampaignDetailsForm.controls.runReportId.value&&this.smsCampaignDetailsForm.get("runReportId").patchValue(""),i===3?this.businessRules=this.businessRules.filter(o=>o.reportSubType==="Triggered"):this.businessRules=this.businessRules.filter(o=>o.reportSubType!=="Triggered"),i===2?(this.smsCampaignDetailsForm.addControl("recurrenceStartDate",new _e("",bt.required)),this.smsCampaignDetailsForm.addControl("frequency",new _e("",bt.required)),this.smsCampaignDetailsForm.addControl("interval",new _e("",bt.required)),this.smsCampaignDetailsForm.get("frequency").valueChanges.subscribe(o=>{switch(this.smsCampaignDetailsForm.removeControl("repeatsOnDay"),o){case 1:this.repetitionIntervals=["1","2","3"];break;case 2:this.repetitionIntervals=["1","2","3"],this.smsCampaignDetailsForm.addControl("repeatsOnDay",new _e("",bt.required));break;case 3:this.repetitionIntervals=["1","2","3","4","5","6","7","8","9","10","11"];break;case 4:this.repetitionIntervals=["1","2","3","4","5"];break}})):(this.smsCampaignDetailsForm.removeControl("recurrenceStartDate"),this.smsCampaignDetailsForm.removeControl("frequency"),this.smsCampaignDetailsForm.removeControl("interval"),this.smsCampaignDetailsForm.removeControl("repeatsOnDay"))})}static{this.\u0275fac=function(o){return new(o||e)(V(xe),V(Ts))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-sms-campaign-step"]],viewQuery:function(o,n){if(o&1&&Nt(SC,5),o&2){let c;Bt(c=Rt())&&(n.businessRuleParametersComponent=c.first)}},inputs:{smsCampaignTemplate:"smsCampaignTemplate"},outputs:{templateParameters:"templateParameters"},decls:84,vars:49,consts:[["recurrenceStartDatePicker",""],[3,"formGroup"],[1,"layout-row-wrap","gap-2percent","responsive-column","align-start-center"],[1,"flex-48"],["matInput","","formControlName","campaignName","required",""],["class","flex-48",4,"ngIf"],["formControlName","triggerType","required",""],[3,"value",4,"ngFor","ngForOf"],["labelPosition","before","formControlName","isNotification",1,"flex-48"],["class","flex-48",3,"click",4,"ngIf"],["formControlName","runReportId","required",""],["class","layout-row layout-xs-column layout-align-center margin-t gap-2percent",4,"ngIf"],[3,"paramData","templateParameters",4,"ngIf"],["formControlName","providerId"],[3,"value"],[1,"flex-48",3,"click"],["matInput","","formControlName","recurrenceStartDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["formControlName","frequency","required",""],["formControlName","interval","required",""],["formControlName","repeatsOnDay","required",""],["value","1"],["value","2"],["value","3"],["value","4"],["value","5"],["value","6"],["value","7"],[1,"layout-row","layout-xs-column","layout-align-center","margin-t","gap-2percent"],["mat-raised-button","","matStepperPrevious","","disabled",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],[3,"templateParameters","paramData"]],template:function(o,n){o&1&&(a(0,"form",1),t(1,` `),a(2,"div",2),t(3,` `),a(4,"mat-form-field",3),t(5,` @@ -38748,12 +38748,12 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),s(),t(20,` `),s(),t(21,` - `),x(22,Wgi,11,4,"mat-form-field",5),t(23,` + `),x(22,$gi,11,4,"mat-form-field",5),t(23,` `),a(24,"mat-form-field",3),t(25,` `),a(26,"mat-label"),t(27),m(28,"translate"),s(),t(29,` `),a(30,"mat-select",6),t(31,` - `),x(32,Qgi,2,2,"mat-option",7),t(33,` + `),x(32,Wgi,2,2,"mat-option",7),t(33,` `),s(),t(34,` `),a(35,"mat-error"),t(36),m(37,"translate"),m(38,"translate"),a(39,"strong"),t(40),m(41,"translate"),s(),t(42,` `),s(),t(43,` @@ -38761,27 +38761,27 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),a(45,"mat-checkbox",8),t(46),m(47,"translate"),s(),t(48,` - `),x(49,Ygi,22,16,"mat-form-field",9),t(50,` + `),x(49,Qgi,22,16,"mat-form-field",9),t(50,` - `),x(51,Kgi,34,28,"mat-form-field",5),t(52,` + `),x(51,Ygi,34,28,"mat-form-field",5),t(52,` - `),x(53,Zgi,20,13,"mat-form-field",5),t(54,` + `),x(53,Jgi,20,13,"mat-form-field",5),t(54,` - `),x(55,Xgi,46,33,"mat-form-field",5),t(56,` + `),x(55,Zgi,46,33,"mat-form-field",5),t(56,` `),a(57,"mat-form-field",3),t(58,` `),a(59,"mat-label"),t(60),m(61,"translate"),s(),t(62,` `),a(63,"mat-select",10),t(64,` - `),x(65,txi,2,2,"mat-option",7),t(66,` + `),x(65,Xgi,2,2,"mat-option",7),t(66,` `),s(),t(67,` `),a(68,"mat-error"),t(69),m(70,"translate"),m(71,"translate"),a(72,"strong"),t(73),m(74,"translate"),s(),t(75,` `),s(),t(76,` `),s(),t(77,` `),s(),t(78,` - `),x(79,exi,14,6,"div",11),t(80,` + `),x(79,txi,14,6,"div",11),t(80,` - `),x(81,ixi,2,1,"mifosx-business-rule-parameters",12),t(82,` + `),x(81,exi,2,1,"mifosx-business-rule-parameters",12),t(82,` `),s(),t(83,` `)),o&2&&(g("formGroup",n.smsCampaignDetailsForm),l(7),b(d(8,23,"labels.inputs.Campaign Name")),l(6),_t(` `,d(14,25,"labels.inputs.Campaign Name")," ",d(15,27,"labels.commons.is"),` @@ -38791,7 +38791,7 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `,d(47,39,"labels.inputs.Is Notification"),`? `),l(3),g("ngIf",n.smsCampaignDetailsForm.contains("recurrenceStartDate")),l(2),g("ngIf",n.smsCampaignDetailsForm.contains("frequency")),l(2),g("ngIf",n.smsCampaignDetailsForm.contains("interval")),l(2),g("ngIf",n.smsCampaignDetailsForm.contains("repeatsOnDay")),l(5),b(d(61,41,"labels.inputs.Business Rule")),l(5),g("ngForOf",n.businessRules),l(4),_t(` `,d(70,43,"labels.inputs.Business Rule")," ",d(71,45,"labels.commons.is"),` - `),l(4),b(d(74,47,"labels.commons.required")),l(6),g("ngIf",!n.smsCampaignDetailsForm.controls.runReportId.value),l(2),g("ngIf",n.smsCampaignDetailsForm.controls.runReportId.value))},dependencies:[St,se,zt,wt,ge,Se,re,ue,Ie,fe,he,Ht,$t,Te,Si,Zt,Oe,De,Mi,Di,Ti,Dt,Ai,Et,dn,Gt,En,SC],styles:[".margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function nxi(e,r){if(e&1){let i=st();a(0,"button",11),q("click",function(){let n=W(i).$implicit,c=A();return Q(c.addText(n))}),t(1),s()}if(e&2){let i=r.$implicit;l(),P(` + `),l(4),b(d(74,47,"labels.commons.required")),l(6),g("ngIf",!n.smsCampaignDetailsForm.controls.runReportId.value),l(2),g("ngIf",n.smsCampaignDetailsForm.controls.runReportId.value))},dependencies:[St,se,zt,wt,ge,Se,re,ue,Ie,fe,he,Ht,$t,Te,Si,Zt,Oe,De,Mi,Di,Ti,Dt,Ai,Et,dn,Gt,En,SC],styles:[".margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function ixi(e,r){if(e&1){let i=st();a(0,"button",11),q("click",function(){let n=W(i).$implicit,c=A();return Q(c.addText(n))}),t(1),s()}if(e&2){let i=r.$implicit;l(),P(` `,i,` `)}}var wf=(()=>{class e{constructor(){this.message=new _e("")}ngOnChanges(){this.message.patchValue(""),this.parameterLabels=[],this.templateParameters&&(this.parameterLabels=this.templateParameters.map(i=>i.columnName)),this.editCampaignMessage&&this.message.patchValue(this.editCampaignMessage)}get campaignMessage(){return{message:this.message.value}}addText(i){let n=this.message.value+` {{${i}}} `;this.message.patchValue(n)}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-campaign-message-step"]],inputs:{templateParameters:"templateParameters",smsCampaignFormValid:"smsCampaignFormValid",editCampaignMessage:"editCampaignMessage"},features:[Vo],decls:36,vars:15,consts:[[1,"layout-column"],[1,"flex-98"],["matInput","",3,"formControl"],[1,"mat-h3","flex-98"],[1,"layout-row-wrap","layout-xs-column","layout-align-center"],["mat-stroked-button","","color","primary","class","parameter",3,"click",4,"ngFor","ngForOf"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext","",3,"disabled"],["icon","arrow-right",1,"m-l-10"],["mat-stroked-button","","color","primary",1,"parameter",3,"click"]],template:function(o,n){o&1&&(a(0,"div",0),t(1,` `),a(2,"mat-form-field",1),t(3,` @@ -38802,7 +38802,7 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),a(11,"h3",3),t(12),m(13,"translate"),s(),t(14,` `),a(15,"div",4),t(16,` - `),x(17,nxi,2,1,"button",5),t(18,` + `),x(17,ixi,2,1,"button",5),t(18,` `),s(),t(19,` `),a(20,"div",6),t(21,` @@ -38816,7 +38816,7 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `,d(26,11,"labels.buttons.Previous"),` `),l(3),g("disabled",!n.smsCampaignFormValid),l(),P(` `,d(30,13,"labels.buttons.Next"),` - `))},dependencies:[St,se,wt,Se,re,er,Ht,$t,Zt,Dt,Et,dn,Gt,En],styles:["h3[_ngcontent-%COMP%]{font-weight:500}.margin-t[_ngcontent-%COMP%]{margin-top:1.75em}.parameter[_ngcontent-%COMP%]{margin:1%}"]})}}return e})();var rxi=()=>["../"],n_=(()=>{class e{constructor(){this.submitEvent=new $n}ngOnInit(){this.triggerTypes=this.smsCampaignTemplate.triggerTypeOptions,this.smsProviders=this.smsCampaignTemplate.smsProviderOptions}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-campaign-preview-step"]],inputs:{campaign:"campaign",smsCampaignTemplate:"smsCampaignTemplate",editedCampaignMessage:"editedCampaignMessage"},outputs:{submitEvent:"submitEvent"},decls:45,vars:38,consts:[[1,"tab-content","mat-typography"],[1,"layout-column","gap-10px","template-message"],["matInput","","disabled",""],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click"]],template:function(o,n){o&1&&(a(0,"div",0),t(1,` + `))},dependencies:[St,se,wt,Se,re,er,Ht,$t,Zt,Dt,Et,dn,Gt,En],styles:["h3[_ngcontent-%COMP%]{font-weight:500}.margin-t[_ngcontent-%COMP%]{margin-top:1.75em}.parameter[_ngcontent-%COMP%]{margin:1%}"]})}}return e})();var nxi=()=>["../"],n_=(()=>{class e{constructor(){this.submitEvent=new $n}ngOnInit(){this.triggerTypes=this.smsCampaignTemplate.triggerTypeOptions,this.smsProviders=this.smsCampaignTemplate.smsProviderOptions}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-campaign-preview-step"]],inputs:{campaign:"campaign",smsCampaignTemplate:"smsCampaignTemplate",editedCampaignMessage:"editedCampaignMessage"},outputs:{submitEvent:"submitEvent"},decls:45,vars:38,consts:[[1,"tab-content","mat-typography"],[1,"layout-column","gap-10px","template-message"],["matInput","","disabled",""],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click"]],template:function(o,n){o&1&&(a(0,"div",0),t(1,` `),a(2,"mat-list"),t(3,` `),a(4,"mat-list-item"),t(5),m(6,"translate"),s(),t(7,` @@ -38846,89 +38846,89 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),l(5),_t(` `,d(20,29,"labels.inputs.Bussiness Rule"),` : `,n.campaign.editFlag?n.campaign.reportName:n.campaign.paramValue==null?null:n.campaign.paramValue.reportName,` - `),l(6),P("",d(26,31,"labels.heading.Campaign Message")," :"),l(4),b(n.campaign.editFlag?n.editedCampaignMessage:n.campaign.message),l(6),g("routerLink",ht(37,rxi)),l(),P(` + `),l(6),P("",d(26,31,"labels.heading.Campaign Message")," :"),l(4),b(n.campaign.editFlag?n.editedCampaignMessage:n.campaign.message),l(6),g("routerLink",ht(37,nxi)),l(),P(` `,d(37,33,"labels.buttons.Cancel"),` `),l(4),P(` `,d(41,35,"labels.buttons.Submit"),` - `))},dependencies:[St,wt,qt,Zt,Dt,Et,Fl,Io,Fr],styles:[".tab-content[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-content[_ngcontent-%COMP%] .template-message[_ngcontent-%COMP%]{padding-inline:1.5%;margin-top:1%}.tab-content[_ngcontent-%COMP%] .margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function oxi(e,r){e&1&&(t(0,` + `))},dependencies:[St,wt,qt,Zt,Dt,Et,Fl,Io,Fr],styles:[".tab-content[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-content[_ngcontent-%COMP%] .template-message[_ngcontent-%COMP%]{padding-inline:1.5%;margin-top:1%}.tab-content[_ngcontent-%COMP%] .margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function rxi(e,r){e&1&&(t(0,` + `),k(1,"fa-icon",13),t(2,` + `))}function oxi(e,r){e&1&&(t(0,` `),k(1,"fa-icon",13),t(2,` `))}function axi(e,r){e&1&&(t(0,` - `),k(1,"fa-icon",13),t(2,` - `))}function sxi(e,r){e&1&&(t(0,` `),k(1,"fa-icon",14),t(2,` - `))}function lxi(e,r){e&1&&(t(0,` + `))}function sxi(e,r){e&1&&(t(0,` `),k(1,"fa-icon",15),t(2,` - `))}function cxi(e,r){e&1&&(t(0,` + `))}function lxi(e,r){e&1&&(t(0,` `),k(1,"fa-icon",16),t(2,` - `))}function pxi(e,r){e&1&&(t(0),m(1,"translate")),e&2&&b(d(1,1,"labels.inputs.CAMPAIGN"))}function mxi(e,r){e&1&&(t(0),m(1,"translate")),e&2&&b(d(1,1,"labels.inputs.MESSAGE"))}function dxi(e,r){e&1&&(t(0),m(1,"translate")),e&2&&b(d(1,1,"labels.inputs.PREVIEW"))}function uxi(e,r){if(e&1){let i=st();a(0,"mat-step",17),t(1,` - `),x(2,dxi,2,3,"ng-template",9),t(3,` + `))}function cxi(e,r){e&1&&(t(0),m(1,"translate")),e&2&&b(d(1,1,"labels.inputs.CAMPAIGN"))}function pxi(e,r){e&1&&(t(0),m(1,"translate")),e&2&&b(d(1,1,"labels.inputs.MESSAGE"))}function mxi(e,r){e&1&&(t(0),m(1,"translate")),e&2&&b(d(1,1,"labels.inputs.PREVIEW"))}function dxi(e,r){if(e&1){let i=st();a(0,"mat-step",17),t(1,` + `),x(2,mxi,2,3,"ng-template",9),t(3,` `),a(4,"mifosx-campaign-preview-step",18),q("submitEvent",function(){W(i);let n=A();return Q(n.submit())}),t(5,` `),s(),t(6,` `),s()}if(e&2){let i=A();l(4),g("smsCampaignTemplate",i.smsCampaignTemplate)("campaign",i.smsCampaign)}}var qD=(()=>{class e{constructor(i,o,n,c,u){this.route=i,this.router=o,this.organizationService=n,this.settingsService=c,this.dateUtils=u,this.route.data.subscribe(h=>{this.smsCampaignTemplate=h.smsCampaignTemplate})}get smsCampaignForm(){return this.smsCampaignStep.smsCampaignFormGroup}get smsCampaign(){return ye(ye({},this.smsCampaignStep.smsCampaignFormGroupValue),this.campaignMessageStep.campaignMessage)}setParameters(i){this.templateParameters=i}submit(){let i=this.settingsService.language.code,o=this.settingsService.dateFormat,n="dd MMMM yyyy HH:mm:ss",c=oi(ye({},this.smsCampaign),{campaignType:this.smsCampaign.isNotification?2:1,submittedOnDate:this.dateUtils.formatDate(new Date,o),dateTimeFormat:n,dateFormat:o,locale:i});if(this.smsCampaign.triggerType===2){let u=c.recurrenceStartDate;c.recurrenceStartDate=this.dateUtils.formatDate(u,n)}this.organizationService.createSmsCampaign(c).subscribe(u=>{this.router.navigate(["../",u.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(o){return new(o||e)(V(Lt),V(te),V(Ei),V(We),V(_i))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-create-campaign"]],viewQuery:function(o,n){if(o&1&&(Nt(wC,7),Nt(wf,7)),o&2){let c;Bt(c=Rt())&&(n.smsCampaignStep=c.first),Bt(c=Rt())&&(n.campaignMessageStep=c.first)}},decls:35,vars:6,consts:[["smsCampaignStepper",""],[1,"container"],["orientation","vertical","labelPosition","bottom",1,"mat-elevation-z8",3,"linear"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"templateParameters","smsCampaignTemplate"],[3,"templateParameters","smsCampaignFormValid"],["state","preview","completed","",4,"ngIf"],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],["state","preview","completed",""],[3,"submitEvent","smsCampaignTemplate","campaign"]],template:function(o,n){if(o&1){let c=st();a(0,"div",1),t(1,` `),a(2,"mat-stepper",2,0),t(4,` - `),x(5,oxi,3,0,"ng-template",3),t(6,` + `),x(5,rxi,3,0,"ng-template",3),t(6,` - `),x(7,axi,3,0,"ng-template",4),t(8,` + `),x(7,oxi,3,0,"ng-template",4),t(8,` - `),x(9,sxi,3,0,"ng-template",5),t(10,` + `),x(9,axi,3,0,"ng-template",5),t(10,` - `),x(11,lxi,3,0,"ng-template",6),t(12,` + `),x(11,sxi,3,0,"ng-template",6),t(12,` - `),x(13,cxi,3,0,"ng-template",7),t(14,` + `),x(13,lxi,3,0,"ng-template",7),t(14,` `),a(15,"mat-step",8),t(16,` - `),x(17,pxi,2,3,"ng-template",9),t(18,` + `),x(17,cxi,2,3,"ng-template",9),t(18,` `),a(19,"mifosx-sms-campaign-step",10),q("templateParameters",function(h){return W(c),Q(n.setParameters(h))}),t(20,` `),s(),t(21,` `),s(),t(22,` `),a(23,"mat-step"),t(24,` - `),x(25,mxi,2,3,"ng-template",9),t(26,` + `),x(25,pxi,2,3,"ng-template",9),t(26,` `),a(27,"mifosx-campaign-message-step",11),t(28,` `),s(),t(29,` `),s(),t(30,` - `),x(31,uxi,7,2,"mat-step",12),t(32,` + `),x(31,dxi,7,2,"mat-step",12),t(32,` `),s(),t(33,` `),s(),t(34,` -`)}o&2&&(l(2),g("linear",!1),l(13),g("stepControl",n.smsCampaignForm),l(4),g("smsCampaignTemplate",n.smsCampaignTemplate),l(8),g("templateParameters",n.templateParameters)("smsCampaignFormValid",n.smsCampaignForm.valid),l(4),g("ngIf",n.smsCampaignForm.valid))},dependencies:[St,zt,wt,Et,Ca,va,Gt,ba,_a,wC,wf,n_],styles:[".container[_ngcontent-%COMP%]{width:60%}"]})}}return e})();function fxi(e,r){if(e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),a(3,"strong"),t(4),m(5,"translate"),s(),t(6,` +`)}o&2&&(l(2),g("linear",!1),l(13),g("stepControl",n.smsCampaignForm),l(4),g("smsCampaignTemplate",n.smsCampaignTemplate),l(8),g("templateParameters",n.templateParameters)("smsCampaignFormValid",n.smsCampaignForm.valid),l(4),g("ngIf",n.smsCampaignForm.valid))},dependencies:[St,zt,wt,Et,Ca,va,Gt,ba,_a,wC,wf,n_],styles:[".container[_ngcontent-%COMP%]{width:60%}"]})}}return e})();function uxi(e,r){if(e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),a(3,"strong"),t(4),m(5,"translate"),s(),t(6,` `),s()),e&2){let i=A(3).$implicit;l(),_t(` `,i.label," ",d(2,3,"labels.commons.is"),` - `),l(3),b(d(5,5,"labels.commons.required"))}}function hxi(e,r){if(e&1&&(a(0,"mat-form-field",16),t(1,` + `),l(3),b(d(5,5,"labels.commons.required"))}}function fxi(e,r){if(e&1&&(a(0,"mat-form-field",16),t(1,` `),a(2,"mat-label"),t(3),s(),t(4,` `),k(5,"input",17),t(6,` - `),x(7,fxi,7,7,"mat-error",13),t(8,` - `),s()),e&2){let i=A(2).$implicit,o=A();l(3),b(i.label),l(2),g("formControlName",i.name),l(2),g("ngIf",o.ReportForm.controls[i.name].hasError("required"))}}function gxi(e,r){if(e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),a(3,"strong"),t(4),m(5,"translate"),s(),t(6,` + `),x(7,uxi,7,7,"mat-error",13),t(8,` + `),s()),e&2){let i=A(2).$implicit,o=A();l(3),b(i.label),l(2),g("formControlName",i.name),l(2),g("ngIf",o.ReportForm.controls[i.name].hasError("required"))}}function hxi(e,r){if(e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),a(3,"strong"),t(4),m(5,"translate"),s(),t(6,` `),s()),e&2){let i=A(3).$implicit;l(),_t(` `,i.label," ",d(2,3,"labels.commons.is"),` - `),l(3),b(d(5,5,"labels.commons.required"))}}function xxi(e,r){if(e&1){let i=st();a(0,"mat-form-field",18),q("click",function(){W(i);let n=Mt(10);return Q(n.open())}),t(1,` + `),l(3),b(d(5,5,"labels.commons.required"))}}function gxi(e,r){if(e&1){let i=st();a(0,"mat-form-field",18),q("click",function(){W(i);let n=Mt(10);return Q(n.open())}),t(1,` `),a(2,"mat-label"),t(3),s(),t(4,` `),k(5,"input",19),t(6,` `),k(7,"mat-datepicker-toggle",20),t(8,` `),k(9,"mat-datepicker",null,0),t(11,` - `),x(12,gxi,7,7,"mat-error",13),t(13,` - `),s()}if(e&2){let i=Mt(10),o=A(2).$implicit,n=A();l(3),b(o.label),l(2),g("min",n.minDate)("max",n.maxDate)("matDatepicker",i)("formControlName",o.name),l(2),g("for",i),l(5),g("ngIf",n.ReportForm.controls[o.name].hasError("required"))}}function _xi(e,r){if(e&1&&(a(0,"mat-option",23),t(1),s()),e&2){let i=r.$implicit;g("value",i),l(),P(` + `),x(12,hxi,7,7,"mat-error",13),t(13,` + `),s()}if(e&2){let i=Mt(10),o=A(2).$implicit,n=A();l(3),b(o.label),l(2),g("min",n.minDate)("max",n.maxDate)("matDatepicker",i)("formControlName",o.name),l(2),g("for",i),l(5),g("ngIf",n.ReportForm.controls[o.name].hasError("required"))}}function xxi(e,r){if(e&1&&(a(0,"mat-option",23),t(1),s()),e&2){let i=r.$implicit;g("value",i),l(),P(` `,i.name,` - `)}}function vxi(e,r){if(e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),a(3,"strong"),t(4),m(5,"translate"),s(),t(6,` + `)}}function _xi(e,r){if(e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),a(3,"strong"),t(4),m(5,"translate"),s(),t(6,` `),s()),e&2){let i=A(3).$implicit;l(),_t(` `,i.label," ",d(2,3,"labels.commons.is"),` - `),l(3),b(d(5,5,"labels.commons.required"))}}function bxi(e,r){if(e&1&&(a(0,"mat-form-field",16),t(1,` + `),l(3),b(d(5,5,"labels.commons.required"))}}function vxi(e,r){if(e&1&&(a(0,"mat-form-field",16),t(1,` `),a(2,"mat-label"),t(3),s(),t(4,` `),a(5,"mat-select",21),t(6,` - `),x(7,_xi,2,2,"mat-option",22),t(8,` + `),x(7,xxi,2,2,"mat-option",22),t(8,` `),s(),t(9,` - `),x(10,vxi,7,7,"mat-error",13),t(11,` - `),s()),e&2){let i=A(2).$implicit,o=A();l(3),b(i.label),l(2),g("formControlName",i.name)("compareWith",o.compareOptions),l(2),g("ngForOf",i.selectOptions),l(3),g("ngIf",o.ReportForm.controls[i.name].hasError("required"))}}function Cxi(e,r){e&1&&(ot(0),t(1,` - `),x(2,hxi,9,3,"mat-form-field",14),t(3,` + `),x(10,_xi,7,7,"mat-error",13),t(11,` + `),s()),e&2){let i=A(2).$implicit,o=A();l(3),b(i.label),l(2),g("formControlName",i.name)("compareWith",o.compareOptions),l(2),g("ngForOf",i.selectOptions),l(3),g("ngIf",o.ReportForm.controls[i.name].hasError("required"))}}function bxi(e,r){e&1&&(ot(0),t(1,` + `),x(2,fxi,9,3,"mat-form-field",14),t(3,` - `),x(4,xxi,14,7,"mat-form-field",15),t(5,` + `),x(4,gxi,14,7,"mat-form-field",15),t(5,` - `),x(6,bxi,12,5,"mat-form-field",14),t(7,` - `),at()),e&2&&(l(2),g("ngSwitchCase","text"),l(2),g("ngSwitchCase","date"),l(2),g("ngSwitchCase","select"))}function yxi(e,r){if(e&1&&(ot(0,12),t(1,` - `),x(2,Cxi,8,3,"ng-container",13),t(3,` + `),x(6,vxi,12,5,"mat-form-field",14),t(7,` + `),at()),e&2&&(l(2),g("ngSwitchCase","text"),l(2),g("ngSwitchCase","date"),l(2),g("ngSwitchCase","select"))}function Cxi(e,r){if(e&1&&(ot(0,12),t(1,` + `),x(2,bxi,8,3,"ng-container",13),t(3,` `),at()),e&2){let i=r.$implicit,o=A();g("ngSwitch",i.displayType),l(2),g("ngIf",o.ReportForm.controls[i.name])}}var HD=(()=>{class e{constructor(i,o,n){this.reportsService=i,this.settingsService=o,this.dateUtils=n,this.templateParameters=new $n,this.ReportForm=new pm({}),this.parentParameters=[],this.minDate=new Date(2e3,0,1),this.maxDate=new Date}ngOnInit(){this.maxDate=this.settingsService.businessDate}ngOnChanges(){this.paramData&&(this.ReportForm=new pm({}),this.paramValue=JSON.parse(this.smsCampaign.paramValue),this.createRunReportForm(),this.disableFormWhenValid(),this.getResponseHeaders())}createRunReportForm(){this.paramData.forEach(i=>{if(i.parentParameterName){let o=this.paramData.find(n=>n.name===i.parentParameterName);o.childParameters.push(i),this.updateParentParameters(o)}else{this.ReportForm.addControl(i.name,new _e("",bt.required));let o=this.paramValue[i.variable].toString();switch(i.displayType){case"text":this.ReportForm.get(i.name).patchValue(o);break;case"select":this.fetchSelectOptions(i,i.name);break;case"date":let n=this.settingsService.dateFormat,c=this.dateUtils.formatDate(o,n);this.ReportForm.get(i.name).patchValue(c);break}}}),this.setChildControls()}updateParentParameters(i){let o=this.parentParameters.map(n=>n.name);if(!o.includes(i.name))this.parentParameters.push(i);else{let n=o.indexOf(i.name);this.parentParameters[n]=i}}setChildControls(){this.parentParameters.forEach(i=>{this.ReportForm.get(i.name).valueChanges.subscribe(o=>{i.childParameters.forEach(n=>{if(n.displayType==="none"?this.ReportForm.addControl(n.name,new _e(n.defaultVal)):this.ReportForm.addControl(n.name,new _e("",bt.required)),n.displayType==="select"){let c=`${n.name}?${i.inputName}=${o.id}`;this.fetchSelectOptions(n,c)}})})})}fetchSelectOptions(i,o){this.reportsService.getSelectOptions(o).subscribe(n=>{i.selectOptions=n,i.selectAll==="Y"&&i.selectOptions.push({id:"-1",name:"All"});let c=this.paramValue[i.variable].toString(),u=n.find(h=>h.id===c);this.ReportForm.controls[i.name].patchValue({id:c,name:u.name})})}compareOptions(i,o){return i&&o&&i.id===o.id}disableFormWhenValid(){this.ReportForm.statusChanges.pipe(Fo()).subscribe(i=>{i==="VALID"&&this.ReportForm.disable()})}formatUserResponse(i,o){let n={},c;for(let[u,h]of Object.entries(i)){let _=this.paramData.find(y=>y.variable===u);c=o?_.inputName:_.variable,n[c]=h}return n}getResponseHeaders(){let i=this.paramValue.reportName;delete this.paramValue.reportName;let o=this.formatUserResponse(this.paramValue,!0);this.reportsService.getRunReportData(i,o).subscribe(n=>{this.templateParameters.emit(n.columnHeaders)},n=>{this.templateParameters.emit(null),this.ReportForm.disable()})}static{this.\u0275fac=function(o){return new(o||e)(V(Ts),V(We),V(_i))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-edit-business-rule-parameters"]],inputs:{paramData:"paramData",smsCampaign:"smsCampaign"},outputs:{templateParameters:"templateParameters"},features:[Vo],decls:32,vars:11,consts:[["runReportDatePicker",""],[1,"layout-column"],[1,"flex-98"],[1,"mat-h3","flex-98"],[3,"formGroup"],[1,"layout-row-wrap","gap-2percent"],[3,"ngSwitch",4,"ngFor","ngForOf"],[1,"layout-row","responsive-column","align-center","gap-2px","margin-t"],["mat-raised-button","","matStepperPrevious","","disabled",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],[3,"ngSwitch"],[4,"ngIf"],["class","flex-48",4,"ngSwitchCase"],["class","flex-48",3,"click",4,"ngSwitchCase"],[1,"flex-48"],["matInput","","required","",3,"formControlName"],[1,"flex-48",3,"click"],["matInput","","required","",3,"min","max","matDatepicker","formControlName"],["matSuffix","",3,"for"],["required","",3,"formControlName","compareWith"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(o,n){o&1&&(a(0,"div",1),t(1,` `),k(2,"mat-divider",2),t(3,` @@ -38936,7 +38936,7 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),a(8,"form",4),t(9,` `),a(10,"div",5),t(11,` - `),x(12,yxi,4,2,"ng-container",6),t(13,` + `),x(12,Cxi,4,2,"ng-container",6),t(13,` `),s(),t(14,` `),s(),t(15,` `),s(),t(16,` @@ -38951,16 +38951,16 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `,d(23,7,"labels.buttons.Previous"),` `),l(4),P(` `,d(27,9,"labels.buttons.Next"),` - `))},dependencies:[St,se,zt,Ra,Na,wt,ge,Se,re,ue,Ie,fe,he,Ht,$t,Te,Si,Zt,Oe,De,Mi,Di,Ti,Dt,Et,sn,dn,Gt,En],styles:["h3[_ngcontent-%COMP%]{font-weight:500}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}.parameter[_ngcontent-%COMP%]{margin-inline:1%}"]})}}return e})();function Sxi(e,r){if(e&1&&(a(0,"mat-option",13),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` + `))},dependencies:[St,se,zt,Ra,Na,wt,ge,Se,re,ue,Ie,fe,he,Ht,$t,Te,Si,Zt,Oe,De,Mi,Di,Ti,Dt,Et,sn,dn,Gt,En],styles:["h3[_ngcontent-%COMP%]{font-weight:500}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}.parameter[_ngcontent-%COMP%]{margin-inline:1%}"]})}}return e})();function yxi(e,r){if(e&1&&(a(0,"mat-option",13),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` `,i.value,` - `)}}function wxi(e,r){if(e&1&&(a(0,"mat-form-field",3),t(1,` + `)}}function Sxi(e,r){if(e&1&&(a(0,"mat-form-field",3),t(1,` `),a(2,"mat-label"),t(3),m(4,"translate"),s(),t(5,` `),a(6,"mat-select",12),t(7,` - `),x(8,Sxi,2,2,"mat-option",7),t(9,` + `),x(8,yxi,2,2,"mat-option",7),t(9,` `),s(),t(10,` - `),s()),e&2){let i=A();l(3),b(d(4,2,"labels.inputs.SMS Provider")),l(5),g("ngForOf",i.smsProviders)}}function Exi(e,r){if(e&1&&(a(0,"mat-option",13),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` + `),s()),e&2){let i=A();l(3),b(d(4,2,"labels.inputs.SMS Provider")),l(5),g("ngForOf",i.smsProviders)}}function wxi(e,r){if(e&1&&(a(0,"mat-option",13),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` `,i.value,` - `)}}function Pxi(e,r){if(e&1){let i=st();a(0,"mat-form-field",14),q("click",function(){W(i);let n=Mt(11);return Q(n.open())}),t(1,` + `)}}function Exi(e,r){if(e&1){let i=st();a(0,"mat-form-field",14),q("click",function(){W(i);let n=Mt(11);return Q(n.open())}),t(1,` `),a(2,"mat-label"),t(3),m(4,"translate"),s(),t(5,` `),k(6,"input",15),t(7,` `),k(8,"mat-datepicker-toggle",16),t(9,` @@ -38969,7 +38969,7 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),s(),t(21,` `),s()}if(e&2){let i=Mt(11),o=A();l(3),b(d(4,8,"labels.inputs.Schedule Date")),l(3),g("min",o.minDate)("max",o.maxDate)("matDatepicker",i),l(2),g("for",i),l(6),_t(` `,d(15,10,"labels.inputs.Schedule Date")," ",d(16,12,"labels.commons.is"),` - `),l(4),b(d(19,14,"labels.commons.required"))}}function kxi(e,r){if(e&1&&(a(0,"mat-option",13),t(1),s()),e&2){let i=r.$implicit;g("value",i.reportId),l(),P(` + `),l(4),b(d(19,14,"labels.commons.required"))}}function Pxi(e,r){if(e&1&&(a(0,"mat-option",13),t(1),s()),e&2){let i=r.$implicit;g("value",i.reportId),l(),P(` `,i.reportName,` `)}}var GD=(()=>{class e{constructor(i,o,n){this.formBuilder=i,this.reportService=o,this.settingsService=n,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.templateParameters=new $n,this.createSMSCampaignDetailsForm()}createSMSCampaignDetailsForm(){this.smsCampaignDetailsForm=this.formBuilder.group({campaignName:["",bt.required],providerId:[null],triggerType:["",bt.required],runReportId:["",bt.required],isNotification:[!1]})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.triggerTypes=this.smsCampaignTemplate.triggerTypeOptions,this.smsProviders=this.smsCampaignTemplate.smsProviderOptions,this.businessRules=this.smsCampaignTemplate.businessRulesOptions,this.setControlValues(),this.getParameters()}passParameters(i){this.templateParameters.emit(i)}getParameters(){this.reportService.getReportParams(this.smsCampaign.reportName).subscribe(i=>{this.paramData=i}),this.smsCampaignDetailsForm.disable()}setControlValues(){this.smsCampaignDetailsForm.patchValue({campaignName:this.smsCampaign.campaignName,providerId:this.smsCampaign.providerId,triggerType:this.smsCampaign.triggerType.id,runReportId:this.smsCampaign.runReportId,isNotification:this.smsCampaign.isNotification}),this.smsCampaign.triggerType.value==="Schedule"&&this.smsCampaignDetailsForm.addControl("recurrenceStartDate",new _e(new Date(this.smsCampaign.recurrenceStartDate)))}static{this.\u0275fac=function(o){return new(o||e)(V(xe),V(Ts),V(We))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-edit-sms-campaign-step"]],inputs:{smsCampaignTemplate:"smsCampaignTemplate",smsCampaign:"smsCampaign"},outputs:{templateParameters:"templateParameters"},decls:77,vars:46,consts:[["recurrenceStartDatePicker",""],[3,"formGroup"],[1,"layout-row-wrap","gap-2percent","responsive-column","align-start-center"],[1,"flex-48"],["matInput","","formControlName","campaignName","required",""],["class","flex-48",4,"ngIf"],["formControlName","triggerType","required",""],[3,"value",4,"ngFor","ngForOf"],["labelPosition","before","formControlName","isNotification",1,"flex-48"],["class","flex-48",3,"click",4,"ngIf"],["formControlName","runReportId","required",""],[3,"templateParameters","paramData","smsCampaign"],["formControlName","providerId"],[3,"value"],[1,"flex-48",3,"click"],["matInput","","formControlName","recurrenceStartDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"]],template:function(o,n){o&1&&(a(0,"form",1),t(1,` `),a(2,"div",2),t(3,` @@ -38980,12 +38980,12 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),s(),t(20,` `),s(),t(21,` - `),x(22,wxi,11,4,"mat-form-field",5),t(23,` + `),x(22,Sxi,11,4,"mat-form-field",5),t(23,` `),a(24,"mat-form-field",3),t(25,` `),a(26,"mat-label"),t(27),m(28,"translate"),s(),t(29,` `),a(30,"mat-select",6),t(31,` - `),x(32,Exi,2,2,"mat-option",7),t(33,` + `),x(32,wxi,2,2,"mat-option",7),t(33,` `),s(),t(34,` `),a(35,"mat-error"),t(36),m(37,"translate"),m(38,"translate"),a(39,"strong"),t(40),m(41,"translate"),s(),t(42,` `),s(),t(43,` @@ -38993,12 +38993,12 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),a(45,"mat-checkbox",8),t(46),m(47,"translate"),s(),t(48,` - `),x(49,Pxi,22,16,"mat-form-field",9),t(50,` + `),x(49,Exi,22,16,"mat-form-field",9),t(50,` `),a(51,"mat-form-field",3),t(52,` `),a(53,"mat-label"),t(54),m(55,"translate"),s(),t(56,` `),a(57,"mat-select",10),t(58,` - `),x(59,kxi,2,2,"mat-option",7),t(60,` + `),x(59,Pxi,2,2,"mat-option",7),t(60,` `),s(),t(61,` `),a(62,"mat-error"),t(63),m(64,"translate"),m(65,"translate"),a(66,"strong"),t(67),m(68,"translate"),s(),t(69,` `),s(),t(70,` @@ -39016,87 +39016,87 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `,d(47,36,"labels.inputs.Is Notification"),`? `),l(3),g("ngIf",n.smsCampaignDetailsForm.controls.recurrenceStartDate),l(5),b(d(55,38,"labels.inputs.Business Rule")),l(5),g("ngForOf",n.businessRules),l(4),_t(` `,d(64,40,"labels.inputs.Business Rule")," ",d(65,42,"labels.commons.is"),` - `),l(4),b(d(68,44,"labels.commons.required")),l(6),g("paramData",n.paramData)("smsCampaign",n.smsCampaign))},dependencies:[St,se,zt,wt,ge,Se,re,ue,Ie,fe,he,Ht,$t,Te,Si,Zt,Oe,De,Mi,Di,Ti,Ai,Et,HD],encapsulation:2})}}return e})();function Ixi(e,r){e&1&&(t(0,` + `),l(4),b(d(68,44,"labels.commons.required")),l(6),g("paramData",n.paramData)("smsCampaign",n.smsCampaign))},dependencies:[St,se,zt,wt,ge,Se,re,ue,Ie,fe,he,Ht,$t,Te,Si,Zt,Oe,De,Mi,Di,Ti,Ai,Et,HD],encapsulation:2})}}return e})();function kxi(e,r){e&1&&(t(0,` + `),k(1,"fa-icon",14),t(2,` + `))}function Ixi(e,r){e&1&&(t(0,` `),k(1,"fa-icon",14),t(2,` `))}function Txi(e,r){e&1&&(t(0,` - `),k(1,"fa-icon",14),t(2,` - `))}function Mxi(e,r){e&1&&(t(0,` `),k(1,"fa-icon",15),t(2,` - `))}function Dxi(e,r){e&1&&(t(0,` + `))}function Mxi(e,r){e&1&&(t(0,` `),k(1,"fa-icon",16),t(2,` - `))}function Axi(e,r){e&1&&(t(0,` + `))}function Dxi(e,r){e&1&&(t(0,` `),k(1,"fa-icon",17),t(2,` - `))}function Oxi(e,r){e&1&&(t(0),m(1,"translate")),e&2&&b(d(1,1,"labels.inputs.CAMPAIGN"))}function Fxi(e,r){e&1&&(t(0),m(1,"translate")),e&2&&b(d(1,1,"labels.inputs.MESSAGE"))}function Bxi(e,r){e&1&&(t(0),m(1,"translate")),e&2&&b(d(1,1,"labels.inputs.PREVIEW"))}var UD=(()=>{class e{constructor(i,o,n,c,u){this.route=i,this.router=o,this.dateUtils=n,this.organizationService=c,this.settingsService=u,this.route.data.subscribe(h=>{this.smsCampaignTemplate=h.smsCampaignTemplate,this.smsCampaign=h.smsCampaign,this.smsCampaign.editFlag=!0})}get campaignMessage(){return this.campaignMessageStep.campaignMessage.message}setParameters(i){this.templateParameters=i}submit(){let i=this.settingsService.language.code,o=this.settingsService.dateFormat,n="dd MMMM yyyy HH:mm:ss",c={campaignName:this.smsCampaign.campaignName,campaignType:this.smsCampaign.isNotification?2:1,isNotification:this.smsCampaign.isNotification,triggerType:this.smsCampaign.triggerType.id,providerId:this.smsCampaign.providerId===0?null:this.smsCampaign.providerId,runReportId:this.smsCampaign.runReportId,message:this.campaignMessage,paramValue:JSON.parse(this.smsCampaign.paramValue),dateTimeFormat:n,dateFormat:o,locale:i};this.smsCampaign.triggerType.id===2&&(c.recurrenceStartDate=this.dateUtils.formatDate(new Date(this.smsCampaign.recurrenceStartDate),n)),this.organizationService.updateSmsCampaign(c,this.smsCampaign.id).subscribe(u=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(o){return new(o||e)(V(Lt),V(te),V(_i),V(Ei),V(We))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-edit-campaign"]],viewQuery:function(o,n){if(o&1&&Nt(wf,7),o&2){let c;Bt(c=Rt())&&(n.campaignMessageStep=c.first)}},decls:41,vars:8,consts:[["smsCampaignStepper",""],[1,"container"],["orientation","vertical","labelPosition","bottom",1,"mat-elevation-z8",3,"linear"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],["completed",""],["matStepLabel",""],[3,"templateParameters","smsCampaign","smsCampaignTemplate"],[3,"templateParameters","editCampaignMessage"],["state","preview","completed",""],[3,"submitEvent","campaign","editedCampaignMessage","smsCampaignTemplate"],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"]],template:function(o,n){if(o&1){let c=st();a(0,"div",1),t(1,` + `))}function Axi(e,r){e&1&&(t(0),m(1,"translate")),e&2&&b(d(1,1,"labels.inputs.CAMPAIGN"))}function Oxi(e,r){e&1&&(t(0),m(1,"translate")),e&2&&b(d(1,1,"labels.inputs.MESSAGE"))}function Fxi(e,r){e&1&&(t(0),m(1,"translate")),e&2&&b(d(1,1,"labels.inputs.PREVIEW"))}var UD=(()=>{class e{constructor(i,o,n,c,u){this.route=i,this.router=o,this.dateUtils=n,this.organizationService=c,this.settingsService=u,this.route.data.subscribe(h=>{this.smsCampaignTemplate=h.smsCampaignTemplate,this.smsCampaign=h.smsCampaign,this.smsCampaign.editFlag=!0})}get campaignMessage(){return this.campaignMessageStep.campaignMessage.message}setParameters(i){this.templateParameters=i}submit(){let i=this.settingsService.language.code,o=this.settingsService.dateFormat,n="dd MMMM yyyy HH:mm:ss",c={campaignName:this.smsCampaign.campaignName,campaignType:this.smsCampaign.isNotification?2:1,isNotification:this.smsCampaign.isNotification,triggerType:this.smsCampaign.triggerType.id,providerId:this.smsCampaign.providerId===0?null:this.smsCampaign.providerId,runReportId:this.smsCampaign.runReportId,message:this.campaignMessage,paramValue:JSON.parse(this.smsCampaign.paramValue),dateTimeFormat:n,dateFormat:o,locale:i};this.smsCampaign.triggerType.id===2&&(c.recurrenceStartDate=this.dateUtils.formatDate(new Date(this.smsCampaign.recurrenceStartDate),n)),this.organizationService.updateSmsCampaign(c,this.smsCampaign.id).subscribe(u=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(o){return new(o||e)(V(Lt),V(te),V(_i),V(Ei),V(We))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-edit-campaign"]],viewQuery:function(o,n){if(o&1&&Nt(wf,7),o&2){let c;Bt(c=Rt())&&(n.campaignMessageStep=c.first)}},decls:41,vars:8,consts:[["smsCampaignStepper",""],[1,"container"],["orientation","vertical","labelPosition","bottom",1,"mat-elevation-z8",3,"linear"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],["completed",""],["matStepLabel",""],[3,"templateParameters","smsCampaign","smsCampaignTemplate"],[3,"templateParameters","editCampaignMessage"],["state","preview","completed",""],[3,"submitEvent","campaign","editedCampaignMessage","smsCampaignTemplate"],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"]],template:function(o,n){if(o&1){let c=st();a(0,"div",1),t(1,` `),a(2,"mat-stepper",2,0),t(4,` - `),x(5,Ixi,3,0,"ng-template",3),t(6,` + `),x(5,kxi,3,0,"ng-template",3),t(6,` - `),x(7,Txi,3,0,"ng-template",4),t(8,` + `),x(7,Ixi,3,0,"ng-template",4),t(8,` - `),x(9,Mxi,3,0,"ng-template",5),t(10,` + `),x(9,Txi,3,0,"ng-template",5),t(10,` - `),x(11,Dxi,3,0,"ng-template",6),t(12,` + `),x(11,Mxi,3,0,"ng-template",6),t(12,` - `),x(13,Axi,3,0,"ng-template",7),t(14,` + `),x(13,Dxi,3,0,"ng-template",7),t(14,` `),a(15,"mat-step",8),t(16,` - `),x(17,Oxi,2,3,"ng-template",9),t(18,` + `),x(17,Axi,2,3,"ng-template",9),t(18,` `),a(19,"mifosx-edit-sms-campaign-step",10),q("templateParameters",function(h){return W(c),Q(n.setParameters(h))}),t(20,` `),s(),t(21,` `),s(),t(22,` `),a(23,"mat-step"),t(24,` - `),x(25,Fxi,2,3,"ng-template",9),t(26,` + `),x(25,Oxi,2,3,"ng-template",9),t(26,` `),a(27,"mifosx-campaign-message-step",11),t(28,` `),s(),t(29,` `),s(),t(30,` `),a(31,"mat-step",12),t(32,` - `),x(33,Bxi,2,3,"ng-template",9),t(34,` + `),x(33,Fxi,2,3,"ng-template",9),t(34,` `),a(35,"mifosx-campaign-preview-step",13),q("submitEvent",function(){return W(c),Q(n.submit())}),t(36,` `),s(),t(37,` `),s(),t(38,` `),s(),t(39,` `),s(),t(40,` -`)}o&2&&(l(2),g("linear",!1),l(17),g("smsCampaign",n.smsCampaign)("smsCampaignTemplate",n.smsCampaignTemplate),l(8),g("templateParameters",n.templateParameters)("editCampaignMessage",n.smsCampaign.campaignMessage),l(8),g("campaign",n.smsCampaign)("editedCampaignMessage",n.campaignMessage)("smsCampaignTemplate",n.smsCampaignTemplate))},dependencies:[St,wt,Et,Ca,va,Gt,ba,_a,GD,wf,n_],styles:[".container[_ngcontent-%COMP%]{width:60%}"]})}}return e})();var Rxi=()=>["../"];function Nxi(e,r){if(e&1&&(a(0,"mat-option",11),t(1),s()),e&2){let i=r.$implicit;g("value",i.value),l(),P(` +`)}o&2&&(l(2),g("linear",!1),l(17),g("smsCampaign",n.smsCampaign)("smsCampaignTemplate",n.smsCampaignTemplate),l(8),g("templateParameters",n.templateParameters)("editCampaignMessage",n.smsCampaign.campaignMessage),l(8),g("campaign",n.smsCampaign)("editedCampaignMessage",n.campaignMessage)("smsCampaignTemplate",n.smsCampaignTemplate))},dependencies:[St,wt,Et,Ca,va,Gt,ba,_a,GD,wf,n_],styles:[".container[_ngcontent-%COMP%]{width:60%}"]})}}return e})();var Bxi=()=>["../"];function Rxi(e,r){if(e&1&&(a(0,"mat-option",11),t(1),s()),e&2){let i=r.$implicit;g("value",i.value),l(),P(` `,i.name,` - `)}}function Lxi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `)}}function Nxi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.Entity")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function Vxi(e,r){if(e&1&&(a(0,"mat-option",11),t(1),s()),e&2){let i=r.$implicit;g("value",i.code),l(),P(` + `),l(4),b(d(6,7,"labels.commons.required")))}function Lxi(e,r){if(e&1&&(a(0,"mat-option",11),t(1),s()),e&2){let i=r.$implicit;g("value",i.code),l(),P(` `,i.name,` - `)}}function zxi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `)}}function Vxi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.Status")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function jxi(e,r){if(e&1&&(a(0,"mat-option",11),t(1),s()),e&2){let i=r.$implicit;g("value",i.dataTableName),l(),P(` + `),l(4),b(d(6,7,"labels.commons.required")))}function zxi(e,r){if(e&1&&(a(0,"mat-option",11),t(1),s()),e&2){let i=r.$implicit;g("value",i.dataTableName),l(),P(` `,i.dataTableName,` - `)}}function qxi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `)}}function jxi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.Data Table")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function Hxi(e,r){if(e&1&&(a(0,"mat-option",11),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` + `),l(4),b(d(6,7,"labels.commons.required")))}function qxi(e,r){if(e&1&&(a(0,"mat-option",11),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` `,i.name,` - `)}}function Gxi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `)}}function Hxi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.Loan Product")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function Uxi(e,r){if(e&1&&(a(0,"mat-form-field"),t(1,` + `),l(4),b(d(6,7,"labels.commons.required")))}function Gxi(e,r){if(e&1&&(a(0,"mat-form-field"),t(1,` `),a(2,"mat-label"),t(3),m(4,"translate"),s(),t(5,` `),a(6,"mat-select",12),t(7,` - `),x(8,Hxi,2,2,"mat-option",4),t(9,` + `),x(8,qxi,2,2,"mat-option",4),t(9,` `),s(),t(10,` - `),x(11,Gxi,8,9,"mat-error",5),t(12,` - `),s()),e&2){let i=A();l(3),b(d(4,3,"labels.inputs.Products")),l(5),g("ngForOf",i.createEntityData.loanProductDatas),l(3),g("ngIf",i.createEntityForm.controls.productId.hasError("required"))}}function $xi(e,r){if(e&1&&(a(0,"mat-option",11),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` + `),x(11,Hxi,8,9,"mat-error",5),t(12,` + `),s()),e&2){let i=A();l(3),b(d(4,3,"labels.inputs.Products")),l(5),g("ngForOf",i.createEntityData.loanProductDatas),l(3),g("ngIf",i.createEntityForm.controls.productId.hasError("required"))}}function Uxi(e,r){if(e&1&&(a(0,"mat-option",11),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` `,i.name,` - `)}}function Wxi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `)}}function $xi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.Loan Product")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function Qxi(e,r){if(e&1&&(a(0,"mat-form-field"),t(1,` + `),l(4),b(d(6,7,"labels.commons.required")))}function Wxi(e,r){if(e&1&&(a(0,"mat-form-field"),t(1,` `),a(2,"mat-label"),t(3),m(4,"translate"),s(),t(5,` `),a(6,"mat-select",12),t(7,` - `),x(8,$xi,2,2,"mat-option",4),t(9,` + `),x(8,Uxi,2,2,"mat-option",4),t(9,` `),s(),t(10,` - `),x(11,Wxi,8,9,"mat-error",5),t(12,` + `),x(11,$xi,8,9,"mat-error",5),t(12,` `),s()),e&2){let i=A();l(3),b(d(4,3,"labels.inputs.Products")),l(5),g("ngForOf",i.createEntityData.savingsProductDatas),l(3),g("ngIf",i.createEntityForm.controls.productId.hasError("required"))}}var $D=(()=>{class e{constructor(i,o,n,c){this.formBuilder=i,this.route=o,this.organizationService=n,this.router=c,this.route.data.subscribe(u=>{this.createEntityData=u.dataTableEntity,this.entityTypes=[{name:"Client",value:"m_client"},{name:"Loan",value:"m_loan"},{name:"Group",value:"m_group"},{name:"Savings Account",value:"m_savings_account"}]})}ngOnInit(){this.setCreateEntityDataTableForm(),this.getEntityType()}setCreateEntityDataTableForm(){this.createEntityForm=this.formBuilder.group({entity:["",bt.required],status:["",bt.required],datatableName:["",bt.required]})}getEntityType(){this.createEntityForm.get("entity").valueChanges.subscribe(i=>{switch(i){case"m_client":{this.entityType="m_client",this.dataTableList=this.createEntityData.datatables.filter(o=>o.entity==="m_client"),this.statusList=this.createEntityData.statusClient,this.createEntityForm.removeControl("productId");break}case"m_loan":{this.entityType="m_loan",this.dataTableList=this.createEntityData.datatables.filter(o=>o.entity==="m_loan"),this.statusList=this.createEntityData.statusLoans,this.createEntityForm.addControl("productId",new _e("",bt.required));break}case"m_group":{this.entityType="m_group",this.dataTableList=this.createEntityData.datatables.filter(o=>o.entity==="m_group"),this.statusList=this.createEntityData.statusGroup,this.createEntityForm.removeControl("productId");break}default:{this.entityType="m_savings_account",this.dataTableList=this.createEntityData.datatables.filter(o=>o.entity==="m_savings_account"),this.statusList=this.createEntityData.statusSavings,this.createEntityForm.addControl("productId",new _e("",bt.required));break}}})}submit(){this.organizationService.createEntityDataTableChecks(this.createEntityForm.value).subscribe(i=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(o){return new(o||e)(V(xe),V(Lt),V(Ei),V(te))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-create-entity-data-table-checks"]],decls:72,vars:27,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["required","","formControlName","entity"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["required","","formControlName","status"],["required","","formControlName","datatableName"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],[3,"value"],["required","","formControlName","productId"]],template:function(o,n){o&1&&(a(0,"div",0),t(1,` `),a(2,"mat-card"),t(3,` `),a(4,"form",1),q("ngSubmit",function(){return n.submit()}),t(5,` @@ -39105,30 +39105,30 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),a(10,"mat-form-field"),t(11,` `),a(12,"mat-label"),t(13),m(14,"translate"),s(),t(15,` `),a(16,"mat-select",3),t(17,` - `),x(18,Nxi,2,2,"mat-option",4),t(19,` + `),x(18,Rxi,2,2,"mat-option",4),t(19,` `),s(),t(20,` - `),x(21,Lxi,8,9,"mat-error",5),t(22,` + `),x(21,Nxi,8,9,"mat-error",5),t(22,` `),s(),t(23,` `),a(24,"mat-form-field"),t(25,` `),a(26,"mat-label"),t(27),m(28,"translate"),s(),t(29,` `),a(30,"mat-select",6),t(31,` - `),x(32,Vxi,2,2,"mat-option",4),t(33,` + `),x(32,Lxi,2,2,"mat-option",4),t(33,` `),s(),t(34,` - `),x(35,zxi,8,9,"mat-error",5),t(36,` + `),x(35,Vxi,8,9,"mat-error",5),t(36,` `),s(),t(37,` `),a(38,"mat-form-field"),t(39,` `),a(40,"mat-label"),t(41),m(42,"translate"),s(),t(43,` `),a(44,"mat-select",7),t(45,` - `),x(46,jxi,2,2,"mat-option",4),t(47,` + `),x(46,zxi,2,2,"mat-option",4),t(47,` `),s(),t(48,` - `),x(49,qxi,8,9,"mat-error",5),t(50,` + `),x(49,jxi,8,9,"mat-error",5),t(50,` `),s(),t(51,` - `),x(52,Uxi,13,5,"mat-form-field",5),t(53,` + `),x(52,Gxi,13,5,"mat-form-field",5),t(53,` - `),x(54,Qxi,13,5,"mat-form-field",5),t(55,` + `),x(54,Wxi,13,5,"mat-form-field",5),t(55,` `),s(),t(56,` `),s(),t(57,` @@ -39139,26 +39139,26 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),s(),t(69,` `),s(),t(70,` `),s(),t(71,` -`)),o&2&&(l(4),g("formGroup",n.createEntityForm),l(9),b(d(14,16,"labels.inputs.Entity")),l(5),g("ngForOf",n.entityTypes),l(3),g("ngIf",n.createEntityForm.controls.entity.hasError("required")),l(6),b(d(28,18,"labels.inputs.Status")),l(5),g("ngForOf",n.statusList),l(3),g("ngIf",n.createEntityForm.controls.status.hasError("required")),l(6),b(d(42,20,"labels.inputs.Data Table")),l(5),g("ngForOf",n.dataTableList),l(3),g("ngIf",n.createEntityForm.controls.datatableName.hasError("required")),l(3),g("ngIf",n.entityType==="m_loan"),l(2),g("ngIf",n.entityType==="m_savings_account"),l(6),g("routerLink",ht(26,Rxi)),l(),P(` +`)),o&2&&(l(4),g("formGroup",n.createEntityForm),l(9),b(d(14,16,"labels.inputs.Entity")),l(5),g("ngForOf",n.entityTypes),l(3),g("ngIf",n.createEntityForm.controls.entity.hasError("required")),l(6),b(d(28,18,"labels.inputs.Status")),l(5),g("ngForOf",n.statusList),l(3),g("ngIf",n.createEntityForm.controls.status.hasError("required")),l(6),b(d(42,20,"labels.inputs.Data Table")),l(5),g("ngForOf",n.dataTableList),l(3),g("ngIf",n.createEntityForm.controls.datatableName.hasError("required")),l(3),g("ngIf",n.entityType==="m_loan"),l(2),g("ngIf",n.entityType==="m_savings_account"),l(6),g("routerLink",ht(26,Bxi)),l(),P(` `,d(62,22,"labels.buttons.Cancel"),` `),l(3),g("disabled",!n.createEntityForm.valid),l(),P(` `,d(66,24,"labels.buttons.Submit"),` - `))},dependencies:[St,se,zt,wt,ge,re,ue,Ie,fe,he,qt,oe,me,Ue,Ht,$t,Te,Oe,De,Dt,Et],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var Yxi=()=>["../"];function Kxi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `))},dependencies:[St,se,zt,wt,ge,re,ue,Ie,fe,he,qt,oe,me,Ue,Ht,$t,Te,Oe,De,Dt,Et],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var Qxi=()=>["../"];function Yxi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.Provisioning Criteria")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function Jxi(e,r){if(e&1&&(a(0,"mat-option",24),t(1),s()),e&2){let i=r.$implicit;g("value",i),l(),P(` + `),l(4),b(d(6,7,"labels.commons.required")))}function Kxi(e,r){if(e&1&&(a(0,"mat-option",24),t(1),s()),e&2){let i=r.$implicit;g("value",i),l(),P(` `,i.name,` - `)}}function Zxi(e,r){e&1&&(a(0,"mat-hint"),t(1),m(2,"translate"),s()),e&2&&(l(),P(` - `,d(2,1,"labels.text.Provisioning criteria definitions"),""))}function Xxi(e,r){e&1&&(a(0,"th",25),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Category")))}function t_i(e,r){if(e&1&&(a(0,"td",26),t(1),s()),e&2){let i=r.$implicit;l(),b(i.categoryName)}}function e_i(e,r){e&1&&(a(0,"th",25),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Min Age")))}function i_i(e,r){if(e&1&&(a(0,"td",26),t(1),s()),e&2){let i=r.$implicit;l(),b(i.minAge||"0")}}function n_i(e,r){e&1&&(a(0,"th",25),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Max Age")))}function r_i(e,r){if(e&1&&(a(0,"td",26),t(1),s()),e&2){let i=r.$implicit;l(),b(i.maxAge||"0")}}function o_i(e,r){e&1&&(a(0,"th",25),t(1),m(2,"translate"),s()),e&2&&(l(),P("",d(2,1,"labels.inputs.Percentage")," (%)"))}function a_i(e,r){if(e&1&&(a(0,"td",26),t(1),s()),e&2){let i=r.$implicit;l(),b(i.provisioningPercentage||"0")}}function s_i(e,r){e&1&&(a(0,"th",25),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Liability Account")))}function l_i(e,r){if(e&1&&(a(0,"td",26),t(1),m(2,"find"),s()),e&2){let i=r.$implicit,o=A();l(),P(` + `)}}function Jxi(e,r){e&1&&(a(0,"mat-hint"),t(1),m(2,"translate"),s()),e&2&&(l(),P(` + `,d(2,1,"labels.text.Provisioning criteria definitions"),""))}function Zxi(e,r){e&1&&(a(0,"th",25),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Category")))}function Xxi(e,r){if(e&1&&(a(0,"td",26),t(1),s()),e&2){let i=r.$implicit;l(),b(i.categoryName)}}function t_i(e,r){e&1&&(a(0,"th",25),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Min Age")))}function e_i(e,r){if(e&1&&(a(0,"td",26),t(1),s()),e&2){let i=r.$implicit;l(),b(i.minAge||"0")}}function i_i(e,r){e&1&&(a(0,"th",25),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Max Age")))}function n_i(e,r){if(e&1&&(a(0,"td",26),t(1),s()),e&2){let i=r.$implicit;l(),b(i.maxAge||"0")}}function r_i(e,r){e&1&&(a(0,"th",25),t(1),m(2,"translate"),s()),e&2&&(l(),P("",d(2,1,"labels.inputs.Percentage")," (%)"))}function o_i(e,r){if(e&1&&(a(0,"td",26),t(1),s()),e&2){let i=r.$implicit;l(),b(i.provisioningPercentage||"0")}}function a_i(e,r){e&1&&(a(0,"th",25),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Liability Account")))}function s_i(e,r){if(e&1&&(a(0,"td",26),t(1),m(2,"find"),s()),e&2){let i=r.$implicit,o=A();l(),P(` `,pi(2,1,i.liabilityAccount,o.loanProvisioningCriteriaTemplate.glAccounts,"id","name")||"-",` - `)}}function c_i(e,r){e&1&&(a(0,"th",25),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Expense Account")))}function p_i(e,r){if(e&1&&(a(0,"td",26),t(1),m(2,"find"),s()),e&2){let i=r.$implicit,o=A();l(),P(` + `)}}function l_i(e,r){e&1&&(a(0,"th",25),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Expense Account")))}function c_i(e,r){if(e&1&&(a(0,"td",26),t(1),m(2,"find"),s()),e&2){let i=r.$implicit,o=A();l(),P(` `,pi(2,1,i.expenseAccount,o.loanProvisioningCriteriaTemplate.glAccounts,"id","name")||"-",` - `)}}function m_i(e,r){e&1&&(a(0,"th",25),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Actions")))}function d_i(e,r){if(e&1){let i=st();a(0,"td",26),t(1,` + `)}}function p_i(e,r){e&1&&(a(0,"th",25),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Actions")))}function m_i(e,r){if(e&1){let i=st();a(0,"td",26),t(1,` `),a(2,"button",27),q("click",function(){let n=W(i).$implicit,c=A();return Q(c.editDefinition(n))}),t(3,` `),k(4,"fa-icon",28),t(5),m(6,"translate"),s(),t(7,` `),s()}e&2&&(l(5),P(` `,d(6,1,"labels.buttons.Edit"),` - `))}function u_i(e,r){e&1&&k(0,"tr",29)}function f_i(e,r){e&1&&k(0,"tr",30)}function h_i(e,r){if(e&1){let i=st();a(0,"button",31),q("click",function(){W(i);let n=A();return Q(n.submit())}),t(1),m(2,"translate"),s()}if(e&2){let i=A();g("disabled",!i.provisioningCriteriaFormValid),l(),P(` + `))}function d_i(e,r){e&1&&k(0,"tr",29)}function u_i(e,r){e&1&&k(0,"tr",30)}function f_i(e,r){if(e&1){let i=st();a(0,"button",31),q("click",function(){W(i);let n=A();return Q(n.submit())}),t(1),m(2,"translate"),s()}if(e&2){let i=A();g("disabled",!i.provisioningCriteriaFormValid),l(),P(` `,d(2,2,"labels.buttons.Submit"),` `)}}var WD=(()=>{class e{constructor(i,o,n,c,u,h){this.formBuilder=i,this.organizationService=o,this.settingsService=n,this.router=c,this.dialog=u,this.route=h,this.displayedColumns=["category","minAge","maxAge","percentage","liabilityAccount","expenseAccount","edit"],this.definitions=[],this.isDefinitionValid={},this.route.data.subscribe(_=>{this.loanProvisioningCriteriaTemplate=_.loanProvisioningCriteriaTemplate,this.definitions=this.loanProvisioningCriteriaTemplate.definitions,this.liabilityAccounts=this.loanProvisioningCriteriaTemplate.glAccounts.filter(y=>y.type.value==="LIABILITY"),this.expenseAccounts=this.loanProvisioningCriteriaTemplate.glAccounts.filter(y=>y.type.value==="EXPENSE")})}ngOnInit(){this.createProvisioningCriteriaForm()}createProvisioningCriteriaForm(){this.provisioningCriteriaForm=this.formBuilder.group({criteriaName:["",bt.required],loanProducts:[[],bt.required]})}editDefinition(i){let o={title:"Edit Criteria Definition",formfields:this.getDefinitionFormFields(i),layout:{addButtonText:"Confirm"}};this.dialog.open(Fn,{data:o}).afterClosed().subscribe(c=>{if(c.data){let u=oi(ye({},c.data.value),{categoryName:i.categoryName,categoryId:i.categoryId});this.definitions.splice(this.definitions.indexOf(i),1,u),this.definitions=this.definitions.concat([]),this.isDefinitionValid[i.categoryName]=!0}})}getDefinitionFormFields(i){let o=[];return o.push(new Xn({controlName:"minAge",label:"Min Age",value:i?i.minAge:"",type:"number",required:!0,order:1})),o.push(new Xn({controlName:"maxAge",label:"Max Age",value:i?i.maxAge:"",type:"number",required:!0,order:2})),o.push(new Xn({controlName:"provisioningPercentage",label:"Percentage (%)",value:i?i.provisioningPercentage:"",type:"number",required:!0,order:3})),o.push(new hn({controlName:"liabilityAccount",label:"Liability Account",value:i?i.liabilityAccount:"",options:{label:"name",value:"id",data:this.liabilityAccounts},required:!0,order:4})),o.push(new hn({controlName:"expenseAccount",label:"Expense Account",value:i?i.expenseAccount:"",options:{label:"name",value:"id",data:this.expenseAccounts},required:!0,order:5})),o}get provisioningCriteriaFormValid(){let i=Object.entries(this.isDefinitionValid).length===this.definitions.length;return this.provisioningCriteriaForm.valid&&i}submit(){let i=this.settingsService.language.code,o=this.provisioningCriteriaForm.get("loanProducts").value,n=oi(ye({},this.provisioningCriteriaForm.value),{loanProducts:o.map(c=>({id:c.id,name:c.name,includeInBorrowerCycle:c.includeInBorrowerCycle})),definitions:this.definitions,locale:i});this.organizationService.createProvisioningCriteria(n).subscribe(c=>{this.router.navigate(["../",c.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(o){return new(o||e)(V(xe),V(Ei),V(We),V(te),V(ni),V(Lt))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-create-loan-provisioning-criteria"]],decls:108,vars:19,consts:[[1,"container"],[3,"formGroup"],[1,"layout-row","gap-2percent"],[1,"flex-fill"],["required","","matInput","","formControlName","criteriaName"],[4,"ngIf"],["formControlName","loanProducts","multiple",""],[3,"value",4,"ngFor","ngForOf"],[1,"mat-elevation-z1"],["mat-table","",1,"m-t-10",3,"dataSource"],["matColumnDef","category"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","minAge"],["matColumnDef","maxAge"],["matColumnDef","percentage"],["matColumnDef","liabilityAccount"],["matColumnDef","expenseAccount"],["matColumnDef","edit"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"m-t-20","layout-row","layout-align-center","gap-20px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled","click",4,"mifosxHasPermission"],[3,"value"],["mat-header-cell",""],["mat-cell",""],["mat-button","","color","primary",3,"click"],["icon","edit",1,"m-r-10"],["mat-header-row",""],["mat-row",""],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(o,n){o&1&&(a(0,"div",0),t(1,` `),a(2,"mat-card"),t(3,` @@ -39168,13 +39168,13 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),a(10,"mat-form-field",3),t(11,` `),a(12,"mat-label"),t(13),m(14,"translate"),s(),t(15,` `),k(16,"input",4),t(17,` - `),x(18,Kxi,8,9,"mat-error",5),t(19,` + `),x(18,Yxi,8,9,"mat-error",5),t(19,` `),s(),t(20,` `),a(21,"mat-form-field",3),t(22,` `),a(23,"mat-label"),t(24),m(25,"translate"),s(),t(26,` `),a(27,"mat-select",6),t(28,` - `),x(29,Jxi,2,2,"mat-option",7),t(30,` + `),x(29,Kxi,2,2,"mat-option",7),t(30,` `),s(),t(31,` `),s(),t(32,` `),s(),t(33,` @@ -39182,81 +39182,81 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),s(),t(35,` `),a(36,"div",8),t(37,` - `),x(38,Zxi,3,3,"mat-hint",5),t(39,` + `),x(38,Jxi,3,3,"mat-hint",5),t(39,` `),a(40,"table",9),t(41,` `),ot(42,10),t(43,` - `),x(44,Xxi,3,3,"th",11),t(45,` - `),x(46,t_i,2,1,"td",12),t(47,` + `),x(44,Zxi,3,3,"th",11),t(45,` + `),x(46,Xxi,2,1,"td",12),t(47,` `),at(),t(48,` `),ot(49,13),t(50,` - `),x(51,e_i,3,3,"th",11),t(52,` - `),x(53,i_i,2,1,"td",12),t(54,` + `),x(51,t_i,3,3,"th",11),t(52,` + `),x(53,e_i,2,1,"td",12),t(54,` `),at(),t(55,` `),ot(56,14),t(57,` - `),x(58,n_i,3,3,"th",11),t(59,` - `),x(60,r_i,2,1,"td",12),t(61,` + `),x(58,i_i,3,3,"th",11),t(59,` + `),x(60,n_i,2,1,"td",12),t(61,` `),at(),t(62,` `),ot(63,15),t(64,` - `),x(65,o_i,3,3,"th",11),t(66,` - `),x(67,a_i,2,1,"td",12),t(68,` + `),x(65,r_i,3,3,"th",11),t(66,` + `),x(67,o_i,2,1,"td",12),t(68,` `),at(),t(69,` `),ot(70,16),t(71,` - `),x(72,s_i,3,3,"th",11),t(73,` - `),x(74,l_i,3,6,"td",12),t(75,` + `),x(72,a_i,3,3,"th",11),t(73,` + `),x(74,s_i,3,6,"td",12),t(75,` `),at(),t(76,` `),ot(77,17),t(78,` - `),x(79,c_i,3,3,"th",11),t(80,` - `),x(81,p_i,3,6,"td",12),t(82,` + `),x(79,l_i,3,3,"th",11),t(80,` + `),x(81,c_i,3,6,"td",12),t(82,` `),at(),t(83,` `),ot(84,18),t(85,` - `),x(86,m_i,3,3,"th",11),t(87,` - `),x(88,d_i,8,3,"td",12),t(89,` + `),x(86,p_i,3,3,"th",11),t(87,` + `),x(88,m_i,8,3,"td",12),t(89,` `),at(),t(90,` - `),x(91,u_i,1,0,"tr",19),t(92,` - `),x(93,f_i,1,0,"tr",20),t(94,` + `),x(91,d_i,1,0,"tr",19),t(92,` + `),x(93,u_i,1,0,"tr",20),t(94,` `),s(),t(95,` `),s(),t(96,` `),a(97,"div",21),t(98,` `),a(99,"button",22),t(100),m(101,"translate"),s(),t(102,` - `),x(103,h_i,3,4,"button",23),t(104,` + `),x(103,f_i,3,4,"button",23),t(104,` `),s(),t(105,` `),s(),t(106,` `),s(),t(107,` -`)),o&2&&(l(6),g("formGroup",n.provisioningCriteriaForm),l(7),b(d(14,12,"labels.inputs.Provisioning Criteria")),l(5),g("ngIf",n.provisioningCriteriaForm.controls.criteriaName.hasError("required")),l(6),b(d(25,14,"labels.inputs.Selected Products")),l(5),g("ngForOf",n.loanProvisioningCriteriaTemplate.loanProducts),l(9),g("ngIf",!n.provisioningCriteriaFormValid),l(2),g("dataSource",n.definitions),l(51),g("matHeaderRowDef",n.displayedColumns),l(2),g("matRowDefColumns",n.displayedColumns),l(6),g("routerLink",ht(18,Yxi)),l(),b(d(101,16,"labels.buttons.Cancel")),l(3),g("mifosxHasPermission","CREATE_PROVISIONING_CRITERIA"))},dependencies:[St,se,zt,wt,ge,Se,re,ue,Ie,fe,he,qt,oe,Ht,$t,Te,rs,Zt,Oe,De,Dt,de,Et,Fe,Ne,Re,Le,Be,Ve,Gt,ze,qe,je,He,Fr],styles:[".container[_ngcontent-%COMP%]{padding:.5rem;max-width:1200px;margin:0 auto}.layout-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}mat-card[_ngcontent-%COMP%]{padding:1rem;box-shadow:0 2px 8px #0000001a!important;border-radius:8px}mat-card[_ngcontent-%COMP%] .layout-row[_ngcontent-%COMP%]{margin-bottom:.5rem}.mat-elevation-z1[_ngcontent-%COMP%]{padding:1rem;margin-top:.5rem;border-radius:4px}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:600}.m-t-20[_ngcontent-%COMP%]{margin-top:2rem}.layout-align-center[_ngcontent-%COMP%]{align-items:center;justify-content:center}@media (width <= 768px){.container[_ngcontent-%COMP%]{padding:.5rem}mat-card[_ngcontent-%COMP%]{padding:1rem}.layout-row[_ngcontent-%COMP%]{flex-direction:column}.gap-20px[_ngcontent-%COMP%]{flex-direction:column;width:100%}}"]})}}return e})();var g_i=()=>["../"];function x_i(e,r){if(e&1&&(a(0,"mat-option",16),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` +`)),o&2&&(l(6),g("formGroup",n.provisioningCriteriaForm),l(7),b(d(14,12,"labels.inputs.Provisioning Criteria")),l(5),g("ngIf",n.provisioningCriteriaForm.controls.criteriaName.hasError("required")),l(6),b(d(25,14,"labels.inputs.Selected Products")),l(5),g("ngForOf",n.loanProvisioningCriteriaTemplate.loanProducts),l(9),g("ngIf",!n.provisioningCriteriaFormValid),l(2),g("dataSource",n.definitions),l(51),g("matHeaderRowDef",n.displayedColumns),l(2),g("matRowDefColumns",n.displayedColumns),l(6),g("routerLink",ht(18,Qxi)),l(),b(d(101,16,"labels.buttons.Cancel")),l(3),g("mifosxHasPermission","CREATE_PROVISIONING_CRITERIA"))},dependencies:[St,se,zt,wt,ge,Se,re,ue,Ie,fe,he,qt,oe,Ht,$t,Te,rs,Zt,Oe,De,Dt,de,Et,Fe,Ne,Re,Le,Be,Ve,Gt,ze,qe,je,He,Fr],styles:[".container[_ngcontent-%COMP%]{padding:.5rem;max-width:1200px;margin:0 auto}.layout-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}mat-card[_ngcontent-%COMP%]{padding:1rem;box-shadow:0 2px 8px #0000001a!important;border-radius:8px}mat-card[_ngcontent-%COMP%] .layout-row[_ngcontent-%COMP%]{margin-bottom:.5rem}.mat-elevation-z1[_ngcontent-%COMP%]{padding:1rem;margin-top:.5rem;border-radius:4px}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:600}.m-t-20[_ngcontent-%COMP%]{margin-top:2rem}.layout-align-center[_ngcontent-%COMP%]{align-items:center;justify-content:center}@media (width <= 768px){.container[_ngcontent-%COMP%]{padding:.5rem}mat-card[_ngcontent-%COMP%]{padding:1rem}.layout-row[_ngcontent-%COMP%]{flex-direction:column}.gap-20px[_ngcontent-%COMP%]{flex-direction:column;width:100%}}"]})}}return e})();var h_i=()=>["../"];function g_i(e,r){if(e&1&&(a(0,"mat-option",16),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` `,i.name,` - `)}}function __i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `)}}function x_i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.Assignment Date")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function v_i(e,r){if(e&1&&(a(0,"mat-option",16),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` + `),l(4),b(d(6,7,"labels.commons.required")))}function __i(e,r){if(e&1&&(a(0,"mat-option",16),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` `,i.displayName,` - `)}}function b_i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `)}}function v_i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.From Loan Officer")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function C_i(e,r){if(e&1){let i=st();a(0,"mat-form-field",4),t(1,` + `),l(4),b(d(6,7,"labels.commons.required")))}function b_i(e,r){if(e&1){let i=st();a(0,"mat-form-field",4),t(1,` `),a(2,"mat-label"),t(3),m(4,"translate"),s(),t(5,` `),a(6,"mat-select",17),q("selectionChange",function(n){W(i);let c=A();return Q(c.getFromOfficers(n.value))}),t(7,` - `),x(8,v_i,2,2,"mat-option",6),t(9,` + `),x(8,__i,2,2,"mat-option",6),t(9,` `),s(),t(10,` - `),x(11,b_i,8,9,"mat-error",10),t(12,` - `),s()}if(e&2){let i=A();l(3),b(d(4,3,"labels.inputs.From loan officer")),l(5),g("ngForOf",i.fromLoanOfficers),l(3),g("ngIf",i.bulkLoanForm.controls.fromLoanOfficerId.hasError("required"))}}function y_i(e,r){if(e&1&&(a(0,"mat-option",16),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` + `),x(11,v_i,8,9,"mat-error",10),t(12,` + `),s()}if(e&2){let i=A();l(3),b(d(4,3,"labels.inputs.From loan officer")),l(5),g("ngForOf",i.fromLoanOfficers),l(3),g("ngIf",i.bulkLoanForm.controls.fromLoanOfficerId.hasError("required"))}}function C_i(e,r){if(e&1&&(a(0,"mat-option",16),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` `,i.displayName,` - `)}}function S_i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `)}}function y_i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.To Loan Officer")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function w_i(e,r){if(e&1){let i=st();a(0,"tr"),t(1,` + `),l(4),b(d(6,7,"labels.commons.required")))}function S_i(e,r){if(e&1){let i=st();a(0,"tr"),t(1,` `),a(2,"td"),t(3,` `),a(4,"mat-checkbox",19),q("change",function(n){let c=W(i).$implicit,u=A(3);return Q(u.getLoans(n,c.id))}),t(5),s(),t(6,` `),s(),t(7,` - `),s()}if(e&2){let i=r.$implicit;l(5),_t("",i.productName,"(",i.accountNo,")")}}function E_i(e,r){if(e&1&&(a(0,"tr"),t(1,` + `),s()}if(e&2){let i=r.$implicit;l(5),_t("",i.productName,"(",i.accountNo,")")}}function w_i(e,r){if(e&1&&(a(0,"tr"),t(1,` `),a(2,"table"),t(3,` `),a(4,"tr"),t(5,` `),a(6,"td"),t(7,` @@ -39264,21 +39264,21 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),s(),t(11,` `),s(),t(12,` - `),x(13,w_i,8,2,"tr",18),t(14,` + `),x(13,S_i,8,2,"tr",18),t(14,` `),s(),t(15,` - `),s()),e&2){let i=r.$implicit;l(9),P(" ",i.displayName," "),l(4),g("ngForOf",i.loans)}}function P_i(e,r){if(e&1&&(a(0,"table",4),t(1,` + `),s()),e&2){let i=r.$implicit;l(9),P(" ",i.displayName," "),l(4),g("ngForOf",i.loans)}}function E_i(e,r){if(e&1&&(a(0,"table",4),t(1,` `),a(2,"thead"),t(3,` `),a(4,"th"),t(5),m(6,"translate"),s(),t(7,` `),s(),t(8,` `),a(9,"tbody"),t(10,` - `),x(11,E_i,16,2,"tr",18),t(12,` + `),x(11,w_i,16,2,"tr",18),t(12,` `),s(),t(13,` - `),s()),e&2){let i=A();l(5),b(d(6,2,"labels.inputs.Clients")),l(6),g("ngForOf",i.officerTemplate.accountSummaryCollection.clients)}}function k_i(e,r){if(e&1){let i=st();a(0,"tr"),t(1,` + `),s()),e&2){let i=A();l(5),b(d(6,2,"labels.inputs.Clients")),l(6),g("ngForOf",i.officerTemplate.accountSummaryCollection.clients)}}function P_i(e,r){if(e&1){let i=st();a(0,"tr"),t(1,` `),a(2,"td"),t(3,` `),a(4,"mat-checkbox",19),q("change",function(n){let c=W(i).$implicit,u=A(3);return Q(u.getLoans(n,c.id))}),t(5),s(),t(6,` `),s(),t(7,` - `),s()}if(e&2){let i=r.$implicit;l(5),_t("",i.productName,"(",i.accountNo,")")}}function I_i(e,r){if(e&1&&(a(0,"tr"),t(1,` + `),s()}if(e&2){let i=r.$implicit;l(5),_t("",i.productName,"(",i.accountNo,")")}}function k_i(e,r){if(e&1&&(a(0,"tr"),t(1,` `),a(2,"table"),t(3,` `),a(4,"tr"),t(5,` `),a(6,"td"),t(7,` @@ -39286,17 +39286,17 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),s(),t(11,` `),s(),t(12,` - `),x(13,k_i,8,2,"tr",18),t(14,` + `),x(13,P_i,8,2,"tr",18),t(14,` `),s(),t(15,` - `),s()),e&2){let i=r.$implicit;l(9),P(" ",i.displayName," "),l(4),g("ngForOf",i.loans)}}function T_i(e,r){if(e&1&&(a(0,"table",4),t(1,` + `),s()),e&2){let i=r.$implicit;l(9),P(" ",i.displayName," "),l(4),g("ngForOf",i.loans)}}function I_i(e,r){if(e&1&&(a(0,"table",4),t(1,` `),a(2,"thead"),t(3,` `),a(4,"th"),t(5),m(6,"translate"),s(),t(7,` `),s(),t(8,` `),a(9,"tbody"),t(10,` - `),x(11,I_i,16,2,"tr",18),t(12,` + `),x(11,k_i,16,2,"tr",18),t(12,` `),s(),t(13,` - `),s()),e&2){let i=A();l(5),b(d(6,2,"labels.inputs.Groups")),l(6),g("ngForOf",i.officerTemplate.accountSummaryCollection.groups)}}function M_i(e,r){if(e&1&&(a(0,"button",20),t(1),m(2,"translate"),s()),e&2){let i=A();g("disabled",!i.bulkLoanForm.valid),l(),P(` + `),s()),e&2){let i=A();l(5),b(d(6,2,"labels.inputs.Groups")),l(6),g("ngForOf",i.officerTemplate.accountSummaryCollection.groups)}}function T_i(e,r){if(e&1&&(a(0,"button",20),t(1),m(2,"translate"),s()),e&2){let i=A();g("disabled",!i.bulkLoanForm.valid),l(),P(` `,d(2,2,"labels.buttons.Submit"),` `)}}var QD=(()=>{class e{constructor(i,o,n,c,u,h){this.formBuilder=i,this.route=o,this.organizationSevice=n,this.settingsService=c,this.dateUtils=u,this.router=h,this.loans=new Array,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(_=>{this.offices=_.offices})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.setBulkLoanForm()}setBulkLoanForm(){this.bulkLoanForm=this.formBuilder.group({assignmentDate:[new Date,bt.required],toLoanOfficerId:["",bt.required]})}getOffice(i){this.organizationSevice.getOfficeTemplate(i).subscribe(o=>{this.officeTemplate=o,this.fromLoanOfficers=this.officeTemplate.loanOfficerOptions,this.bulkLoanForm.addControl("fromLoanOfficerId",new _e("",bt.required))})}getFromOfficers(i){this.toLoanOfficers=this.fromLoanOfficers?.filter(o=>o.id!==i)||[],i&&this.officeTemplate&&this.officeTemplate.id?this.organizationSevice.getOfficerTemplate(i,this.officeTemplate.id).subscribe(o=>{this.officerTemplate=o}):this.officerTemplate=void 0}getLoans(i,o){if(i.checked)this.loans.push(o);else{let c=this.loans.indexOf(o,0);this.loans.splice(c,1)}}submit(){let i=this.bulkLoanForm.value,o=this.settingsService.language.code,n=this.settingsService.dateFormat,c=this.bulkLoanForm.value.assignmentDate;i.assignmentDate instanceof Date&&(i.assignmentDate=this.dateUtils.formatDate(c,n));let u=oi(ye({},i),{dateFormat:n,locale:o});u.loans=this.loans,this.organizationSevice.createLoanReassignment(u).subscribe(h=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(o){return new(o||e)(V(xe),V(Lt),V(Ei),V(We),V(_i),V(te))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-bulk-loan-reassignmnet"]],decls:84,vars:27,consts:[["assignmentDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["required","",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],[1,"flex-48",3,"click"],["matInput","","required","","formControlName","assignmentDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[4,"ngIf"],["class","flex-48",4,"ngIf"],["required","","formControlName","toLoanOfficerId"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],[3,"value"],["required","","formControlName","fromLoanOfficerId",3,"selectionChange"],[4,"ngFor","ngForOf"],[3,"change"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(o,n){if(o&1){let c=st();a(0,"div",1),t(1,` `),a(2,"mat-card"),t(3,` @@ -39306,7 +39306,7 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),a(10,"mat-form-field",4),t(11,` `),a(12,"mat-label"),t(13),m(14,"translate"),s(),t(15,` `),a(16,"mat-select",5),q("selectionChange",function(h){return W(c),Q(n.getOffice(h.value))}),t(17,` - `),x(18,x_i,2,2,"mat-option",6),t(19,` + `),x(18,g_i,2,2,"mat-option",6),t(19,` `),s(),t(20,` `),s(),t(21,` `),s(),t(22,` @@ -39317,55 +39317,55 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),k(31,"input",8),t(32,` `),k(33,"mat-datepicker-toggle",9),t(34,` `),k(35,"mat-datepicker",null,0),t(37,` - `),x(38,__i,8,9,"mat-error",10),t(39,` + `),x(38,x_i,8,9,"mat-error",10),t(39,` `),s(),t(40,` `),s(),t(41,` `),a(42,"div",3),t(43,` - `),x(44,C_i,13,5,"mat-form-field",11),t(45,` + `),x(44,b_i,13,5,"mat-form-field",11),t(45,` `),s(),t(46,` `),a(47,"div",3),t(48,` `),a(49,"mat-form-field",4),t(50,` `),a(51,"mat-label"),t(52),m(53,"translate"),s(),t(54,` `),a(55,"mat-select",12),t(56,` - `),x(57,y_i,2,2,"mat-option",6),t(58,` + `),x(57,C_i,2,2,"mat-option",6),t(58,` `),s(),t(59,` - `),x(60,S_i,8,9,"mat-error",10),t(61,` + `),x(60,y_i,8,9,"mat-error",10),t(61,` `),s(),t(62,` `),s(),t(63,` `),a(64,"div",3),t(65,` - `),x(66,P_i,14,4,"table",11),t(67,` + `),x(66,E_i,14,4,"table",11),t(67,` - `),x(68,T_i,14,4,"table",11),t(69,` + `),x(68,I_i,14,4,"table",11),t(69,` `),s(),t(70,` `),s(),t(71,` `),a(72,"mat-card-actions",13),t(73,` `),a(74,"button",14),t(75),m(76,"translate"),s(),t(77,` - `),x(78,M_i,3,4,"button",15),t(79,` + `),x(78,T_i,3,4,"button",15),t(79,` `),s(),t(80,` `),s(),t(81,` `),s(),t(82,` `),s(),t(83,` -`)}if(o&2){let c=Mt(36);l(4),g("formGroup",n.bulkLoanForm),l(9),b(d(14,18,"labels.inputs.Office")),l(5),g("ngForOf",n.offices),l(10),b(d(29,20,"labels.inputs.Assignment Date")),l(3),g("min",n.minDate)("max",n.maxDate)("matDatepicker",c),l(2),g("for",c),l(5),g("ngIf",n.bulkLoanForm.controls.assignmentDate.hasError("required")),l(6),g("ngIf",n.fromLoanOfficers!==void 0),l(8),b(d(53,22,"labels.inputs.To loan officer")),l(5),g("ngForOf",n.toLoanOfficers),l(3),g("ngIf",n.bulkLoanForm.controls.toLoanOfficerId.hasError("required")),l(6),g("ngIf",n.officerTemplate!==void 0),l(2),g("ngIf",n.officerTemplate!==void 0),l(6),g("routerLink",ht(26,g_i)),l(),P(` +`)}if(o&2){let c=Mt(36);l(4),g("formGroup",n.bulkLoanForm),l(9),b(d(14,18,"labels.inputs.Office")),l(5),g("ngForOf",n.offices),l(10),b(d(29,20,"labels.inputs.Assignment Date")),l(3),g("min",n.minDate)("max",n.maxDate)("matDatepicker",c),l(2),g("for",c),l(5),g("ngIf",n.bulkLoanForm.controls.assignmentDate.hasError("required")),l(6),g("ngIf",n.fromLoanOfficers!==void 0),l(8),b(d(53,22,"labels.inputs.To loan officer")),l(5),g("ngForOf",n.toLoanOfficers),l(3),g("ngIf",n.bulkLoanForm.controls.toLoanOfficerId.hasError("required")),l(6),g("ngIf",n.officerTemplate!==void 0),l(2),g("ngIf",n.officerTemplate!==void 0),l(6),g("routerLink",ht(26,h_i)),l(),P(` `,d(76,24,"labels.buttons.Cancel"),` - `),l(3),g("mifosxHasPermission","BULKREASSIGN_LOAN")}},dependencies:[St,se,zt,wt,ge,Se,re,ue,Ie,fe,he,qt,oe,me,Ue,Ht,$t,Te,Si,Zt,Oe,De,Mi,Di,Ti,Dt,Ai,de,Et],styles:[".container[_ngcontent-%COMP%]{display:flex;justify-content:center;padding:16px 12px}.container[_ngcontent-%COMP%] > mat-card[_ngcontent-%COMP%]{width:100%;max-width:560px;margin:0 auto;border-radius:4px;padding:16px 20px;box-shadow:0 1px 3px #1018281a,0 1px 2px #1018280f}mat-form-field[_ngcontent-%COMP%]{width:100%}.flex-48[_ngcontent-%COMP%]{flex:1 1 100%;min-width:100%}table[_ngcontent-%COMP%]{width:100%}"]})}}return e})();var D_i=()=>["../"];function A_i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `),l(3),g("mifosxHasPermission","BULKREASSIGN_LOAN")}},dependencies:[St,se,zt,wt,ge,Se,re,ue,Ie,fe,he,qt,oe,me,Ue,Ht,$t,Te,Si,Zt,Oe,De,Mi,Di,Ti,Dt,Ai,de,Et],styles:[".container[_ngcontent-%COMP%]{display:flex;justify-content:center;padding:16px 12px}.container[_ngcontent-%COMP%] > mat-card[_ngcontent-%COMP%]{width:100%;max-width:560px;margin:0 auto;border-radius:4px;padding:16px 20px;box-shadow:0 1px 3px #1018281a,0 1px 2px #1018280f}mat-form-field[_ngcontent-%COMP%]{width:100%}.flex-48[_ngcontent-%COMP%]{flex:1 1 100%;min-width:100%}table[_ngcontent-%COMP%]{width:100%}"]})}}return e})();var M_i=()=>["../"];function D_i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.Provisioning Criteria")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function O_i(e,r){if(e&1&&(a(0,"mat-option",24),t(1),s()),e&2){let i=r.$implicit;g("value",i),l(),P(` + `),l(4),b(d(6,7,"labels.commons.required")))}function A_i(e,r){if(e&1&&(a(0,"mat-option",24),t(1),s()),e&2){let i=r.$implicit;g("value",i),l(),P(` `,i.name,` - `)}}function F_i(e,r){e&1&&(a(0,"mat-hint"),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.text.Provisioning criteria definitions")))}function B_i(e,r){e&1&&(a(0,"th",25),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Category")))}function R_i(e,r){if(e&1&&(a(0,"td",26),t(1),s()),e&2){let i=r.$implicit;l(),b(i.categoryName)}}function N_i(e,r){e&1&&(a(0,"th",25),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Min Age")))}function L_i(e,r){if(e&1&&(a(0,"td",26),t(1),s()),e&2){let i=r.$implicit;l(),b(i.minAge||"0")}}function V_i(e,r){e&1&&(a(0,"th",25),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Max Age")))}function z_i(e,r){if(e&1&&(a(0,"td",26),t(1),s()),e&2){let i=r.$implicit;l(),b(i.maxAge||"0")}}function j_i(e,r){e&1&&(a(0,"th",25),t(1),m(2,"translate"),s()),e&2&&(l(),P("",d(2,1,"labels.inputs.Percentage")," (%)"))}function q_i(e,r){if(e&1&&(a(0,"td",26),t(1),s()),e&2){let i=r.$implicit;l(),b(i.provisioningPercentage||"0")}}function H_i(e,r){e&1&&(a(0,"th",25),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Liability Account")))}function G_i(e,r){if(e&1&&(a(0,"td",26),t(1),m(2,"find"),s()),e&2){let i=r.$implicit,o=A();l(),P(` + `)}}function O_i(e,r){e&1&&(a(0,"mat-hint"),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.text.Provisioning criteria definitions")))}function F_i(e,r){e&1&&(a(0,"th",25),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Category")))}function B_i(e,r){if(e&1&&(a(0,"td",26),t(1),s()),e&2){let i=r.$implicit;l(),b(i.categoryName)}}function R_i(e,r){e&1&&(a(0,"th",25),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Min Age")))}function N_i(e,r){if(e&1&&(a(0,"td",26),t(1),s()),e&2){let i=r.$implicit;l(),b(i.minAge||"0")}}function L_i(e,r){e&1&&(a(0,"th",25),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Max Age")))}function V_i(e,r){if(e&1&&(a(0,"td",26),t(1),s()),e&2){let i=r.$implicit;l(),b(i.maxAge||"0")}}function z_i(e,r){e&1&&(a(0,"th",25),t(1),m(2,"translate"),s()),e&2&&(l(),P("",d(2,1,"labels.inputs.Percentage")," (%)"))}function j_i(e,r){if(e&1&&(a(0,"td",26),t(1),s()),e&2){let i=r.$implicit;l(),b(i.provisioningPercentage||"0")}}function q_i(e,r){e&1&&(a(0,"th",25),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Liability Account")))}function H_i(e,r){if(e&1&&(a(0,"td",26),t(1),m(2,"find"),s()),e&2){let i=r.$implicit,o=A();l(),P(` `,pi(2,1,i.liabilityAccount,o.loanProvisioningCriteriaAndTemplate.glAccounts,"id","name")||"-",` - `)}}function U_i(e,r){e&1&&(a(0,"th",25),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Expense Account")))}function $_i(e,r){if(e&1&&(a(0,"td",26),t(1),m(2,"find"),s()),e&2){let i=r.$implicit,o=A();l(),P(` + `)}}function G_i(e,r){e&1&&(a(0,"th",25),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Expense Account")))}function U_i(e,r){if(e&1&&(a(0,"td",26),t(1),m(2,"find"),s()),e&2){let i=r.$implicit,o=A();l(),P(` `,pi(2,1,i.expenseAccount,o.loanProvisioningCriteriaAndTemplate.glAccounts,"id","name")||"-",` - `)}}function W_i(e,r){e&1&&(a(0,"th",25),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Actions")))}function Q_i(e,r){if(e&1){let i=st();a(0,"td",26),t(1,` + `)}}function $_i(e,r){e&1&&(a(0,"th",25),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Actions")))}function W_i(e,r){if(e&1){let i=st();a(0,"td",26),t(1,` `),a(2,"button",27),q("click",function(){let n=W(i).$implicit,c=A();return Q(c.editDefinition(n))}),t(3,` `),k(4,"fa-icon",28),t(5),m(6,"translate"),s(),t(7,` `),s()}e&2&&(l(5),P(` `,d(6,1,"labels.buttons.Edit"),` - `))}function Y_i(e,r){e&1&&k(0,"tr",29)}function K_i(e,r){e&1&&k(0,"tr",30)}function J_i(e,r){if(e&1){let i=st();a(0,"button",31),q("click",function(){W(i);let n=A();return Q(n.submit())}),t(1),m(2,"translate"),s()}if(e&2){let i=A();g("disabled",!i.provisioningCriteriaFormValid),l(),P(` + `))}function Q_i(e,r){e&1&&k(0,"tr",29)}function Y_i(e,r){e&1&&k(0,"tr",30)}function K_i(e,r){if(e&1){let i=st();a(0,"button",31),q("click",function(){W(i);let n=A();return Q(n.submit())}),t(1),m(2,"translate"),s()}if(e&2){let i=A();g("disabled",!i.provisioningCriteriaFormValid),l(),P(` `,d(2,2,"labels.buttons.Submit"),` `)}}var YD=(()=>{class e{constructor(i,o,n,c,u,h){this.formBuilder=i,this.organizationService=o,this.router=n,this.settingsService=c,this.dialog=u,this.route=h,this.displayedColumns=["category","minAge","maxAge","percentage","liabilityAccount","expenseAccount","edit"],this.definitions=[],this.route.data.subscribe(_=>{this.loanProvisioningCriteriaAndTemplate=_.loanProvisioningCriteriaAndTemplate,this.definitions=this.loanProvisioningCriteriaAndTemplate.definitions,this.loanProducts=this.loanProvisioningCriteriaAndTemplate.loanProducts.concat(this.loanProvisioningCriteriaAndTemplate.selectedLoanProducts),this.liabilityAccounts=this.loanProvisioningCriteriaAndTemplate.glAccounts.filter(y=>y.type.value==="LIABILITY"),this.expenseAccounts=this.loanProvisioningCriteriaAndTemplate.glAccounts.filter(y=>y.type.value==="EXPENSE")})}ngOnInit(){this.createProvisioningCriteriaForm()}createProvisioningCriteriaForm(){this.provisioningCriteriaForm=this.formBuilder.group({criteriaName:[this.loanProvisioningCriteriaAndTemplate.criteriaName,bt.required],loanProducts:[this.loanProvisioningCriteriaAndTemplate.selectedLoanProducts]})}compareOptions(i,o){return i&&o&&i.id===o.id}editDefinition(i){let o={title:"Edit Criteria Definition",formfields:this.getDefinitionFormFields(i),layout:{addButtonText:"Confirm"}};this.dialog.open(Fn,{data:o}).afterClosed().subscribe(c=>{if(c.data){let u=ye(ye({},i),c.data.value);this.definitions.splice(this.definitions.indexOf(i),1,u),this.definitions=this.definitions.concat([])}})}getDefinitionFormFields(i){let o=[];return o.push(new Xn({controlName:"minAge",label:"Min Age",value:i?i.minAge:"",type:"number",required:!0,order:1})),o.push(new Xn({controlName:"maxAge",label:"Max Age",value:i?i.maxAge:"",type:"number",required:!0,order:2})),o.push(new Xn({controlName:"provisioningPercentage",label:"Percentage (%)",value:i?i.provisioningPercentage:"",type:"number",required:!0,order:3})),o.push(new hn({controlName:"liabilityAccount",label:"Liability Account",value:i?i.liabilityAccount:"",options:{label:"name",value:"id",data:this.liabilityAccounts},required:!0,order:4})),o.push(new hn({controlName:"expenseAccount",label:"Expense Account",value:i?i.expenseAccount:"",options:{label:"name",value:"id",data:this.expenseAccounts},required:!0,order:5})),o}get provisioningCriteriaFormValid(){return this.provisioningCriteriaForm.valid}submit(){let i=this.settingsService.language.code,o=oi(ye({},this.provisioningCriteriaForm.value),{loanProducts:this.provisioningCriteriaForm.get("loanProducts").value.map(n=>({id:n.id,name:n.name,includeInBorrowerCycle:n.includeInBorrowerCycle})),definitions:this.definitions,locale:i});this.organizationService.updateProvisioningCriteria(this.loanProvisioningCriteriaAndTemplate.criteriaId,o).subscribe(n=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(o){return new(o||e)(V(xe),V(Ei),V(te),V(We),V(ni),V(Lt))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-edit-loan-provisioning-criteria"]],decls:108,vars:20,consts:[[1,"container"],[3,"formGroup"],[1,"layout-row","gap-2percent"],[1,"flex-fill"],["required","","matInput","","formControlName","criteriaName"],[4,"ngIf"],["formControlName","loanProducts","multiple","",3,"compareWith"],[3,"value",4,"ngFor","ngForOf"],[1,"mat-elevation-z1"],["mat-table","",1,"m-t-10",3,"dataSource"],["matColumnDef","category"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","minAge"],["matColumnDef","maxAge"],["matColumnDef","percentage"],["matColumnDef","liabilityAccount"],["matColumnDef","expenseAccount"],["matColumnDef","edit"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"m-t-20","layout-row","layout-align-center","gap-20px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled","click",4,"mifosxHasPermission"],[3,"value"],["mat-header-cell",""],["mat-cell",""],["mat-button","","color","primary",3,"click"],["icon","edit",1,"m-r-10"],["mat-header-row",""],["mat-row",""],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(o,n){o&1&&(a(0,"div",0),t(1,` `),a(2,"mat-card"),t(3,` @@ -39375,13 +39375,13 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),a(10,"mat-form-field",3),t(11,` `),a(12,"mat-label"),t(13),m(14,"translate"),s(),t(15,` `),k(16,"input",4),t(17,` - `),x(18,A_i,8,9,"mat-error",5),t(19,` + `),x(18,D_i,8,9,"mat-error",5),t(19,` `),s(),t(20,` `),a(21,"mat-form-field",3),t(22,` `),a(23,"mat-label"),t(24),m(25,"translate"),s(),t(26,` `),a(27,"mat-select",6),t(28,` - `),x(29,O_i,2,2,"mat-option",7),t(30,` + `),x(29,A_i,2,2,"mat-option",7),t(30,` `),s(),t(31,` `),s(),t(32,` `),s(),t(33,` @@ -39389,66 +39389,66 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),s(),t(35,` `),a(36,"div",8),t(37,` - `),x(38,F_i,3,3,"mat-hint",5),t(39,` + `),x(38,O_i,3,3,"mat-hint",5),t(39,` `),a(40,"table",9),t(41,` `),ot(42,10),t(43,` - `),x(44,B_i,3,3,"th",11),t(45,` - `),x(46,R_i,2,1,"td",12),t(47,` + `),x(44,F_i,3,3,"th",11),t(45,` + `),x(46,B_i,2,1,"td",12),t(47,` `),at(),t(48,` `),ot(49,13),t(50,` - `),x(51,N_i,3,3,"th",11),t(52,` - `),x(53,L_i,2,1,"td",12),t(54,` + `),x(51,R_i,3,3,"th",11),t(52,` + `),x(53,N_i,2,1,"td",12),t(54,` `),at(),t(55,` `),ot(56,14),t(57,` - `),x(58,V_i,3,3,"th",11),t(59,` - `),x(60,z_i,2,1,"td",12),t(61,` + `),x(58,L_i,3,3,"th",11),t(59,` + `),x(60,V_i,2,1,"td",12),t(61,` `),at(),t(62,` `),ot(63,15),t(64,` - `),x(65,j_i,3,3,"th",11),t(66,` - `),x(67,q_i,2,1,"td",12),t(68,` + `),x(65,z_i,3,3,"th",11),t(66,` + `),x(67,j_i,2,1,"td",12),t(68,` `),at(),t(69,` `),ot(70,16),t(71,` - `),x(72,H_i,3,3,"th",11),t(73,` - `),x(74,G_i,3,6,"td",12),t(75,` + `),x(72,q_i,3,3,"th",11),t(73,` + `),x(74,H_i,3,6,"td",12),t(75,` `),at(),t(76,` `),ot(77,17),t(78,` - `),x(79,U_i,3,3,"th",11),t(80,` - `),x(81,$_i,3,6,"td",12),t(82,` + `),x(79,G_i,3,3,"th",11),t(80,` + `),x(81,U_i,3,6,"td",12),t(82,` `),at(),t(83,` `),ot(84,18),t(85,` - `),x(86,W_i,3,3,"th",11),t(87,` - `),x(88,Q_i,8,3,"td",12),t(89,` + `),x(86,$_i,3,3,"th",11),t(87,` + `),x(88,W_i,8,3,"td",12),t(89,` `),at(),t(90,` - `),x(91,Y_i,1,0,"tr",19),t(92,` - `),x(93,K_i,1,0,"tr",20),t(94,` + `),x(91,Q_i,1,0,"tr",19),t(92,` + `),x(93,Y_i,1,0,"tr",20),t(94,` `),s(),t(95,` `),s(),t(96,` `),a(97,"div",21),t(98,` `),a(99,"button",22),t(100),m(101,"translate"),s(),t(102,` - `),x(103,J_i,3,4,"button",23),t(104,` + `),x(103,K_i,3,4,"button",23),t(104,` `),s(),t(105,` `),s(),t(106,` `),s(),t(107,` -`)),o&2&&(l(6),g("formGroup",n.provisioningCriteriaForm),l(7),b(d(14,13,"labels.inputs.Provisioning Criteria")),l(5),g("ngIf",n.provisioningCriteriaForm.controls.criteriaName.hasError("required")),l(6),b(d(25,15,"labels.inputs.Selected Products")),l(3),g("compareWith",n.compareOptions),l(2),g("ngForOf",n.loanProducts),l(9),g("ngIf",!n.provisioningCriteriaFormValid),l(2),g("dataSource",n.definitions),l(51),g("matHeaderRowDef",n.displayedColumns),l(2),g("matRowDefColumns",n.displayedColumns),l(6),g("routerLink",ht(19,D_i)),l(),b(d(101,17,"labels.buttons.Cancel")),l(3),g("mifosxHasPermission","UPDATE_CRITERIA"))},dependencies:[St,se,zt,wt,ge,Se,re,ue,Ie,fe,he,qt,oe,Ht,$t,Te,rs,Zt,Oe,De,Dt,de,Et,Fe,Ne,Re,Le,Be,Ve,Gt,ze,qe,je,He,Fr],encapsulation:2})}}return e})();var Z_i=()=>["../"],X_i=()=>[10,25,50,100];function tvi(e,r){if(e&1&&(a(0,"mat-option",19),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` +`)),o&2&&(l(6),g("formGroup",n.provisioningCriteriaForm),l(7),b(d(14,13,"labels.inputs.Provisioning Criteria")),l(5),g("ngIf",n.provisioningCriteriaForm.controls.criteriaName.hasError("required")),l(6),b(d(25,15,"labels.inputs.Selected Products")),l(3),g("compareWith",n.compareOptions),l(2),g("ngForOf",n.loanProducts),l(9),g("ngIf",!n.provisioningCriteriaFormValid),l(2),g("dataSource",n.definitions),l(51),g("matHeaderRowDef",n.displayedColumns),l(2),g("matRowDefColumns",n.displayedColumns),l(6),g("routerLink",ht(19,M_i)),l(),b(d(101,17,"labels.buttons.Cancel")),l(3),g("mifosxHasPermission","UPDATE_CRITERIA"))},dependencies:[St,se,zt,wt,ge,Se,re,ue,Ie,fe,he,qt,oe,Ht,$t,Te,rs,Zt,Oe,De,Dt,de,Et,Fe,Ne,Re,Le,Be,Ve,Gt,ze,qe,je,He,Fr],encapsulation:2})}}return e})();var J_i=()=>["../"],Z_i=()=>[10,25,50,100];function X_i(e,r){if(e&1&&(a(0,"mat-option",19),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` `,i.value,` - `)}}function evi(e,r){if(e&1&&(a(0,"mat-option",19),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` + `)}}function tvi(e,r){if(e&1&&(a(0,"mat-option",19),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` `,i.value,` - `)}}function ivi(e,r){e&1&&(a(0,"mat-form-field"),t(1,` + `)}}function evi(e,r){e&1&&(a(0,"mat-form-field"),t(1,` `),a(2,"mat-label"),t(3),m(4,"translate"),s(),t(5,` `),k(6,"input",20),t(7,` - `),s()),e&2&&(l(3),b(d(4,1,"labels.inputs.From Account ID")))}function nvi(e,r){e&1&&(a(0,"button",21),t(1,` + `),s()),e&2&&(l(3),b(d(4,1,"labels.inputs.From Account ID")))}function ivi(e,r){e&1&&(a(0,"button",21),t(1,` `),k(2,"fa-icon",22),t(3),m(4,"translate"),s()),e&2&&(l(3),P(` \xA0 `,d(4,1,"labels.buttons.Search Instructions"),` - `))}function rvi(e,r){if(e&1){let i=st();a(0,"mat-card"),t(1,` + `))}function nvi(e,r){if(e&1){let i=st();a(0,"mat-card"),t(1,` `),a(2,"form",5),q("ngSubmit",function(){W(i);let n=A();return Q(n.search())}),t(3,` `),a(4,"mat-card-content"),t(5,` `),a(6,"div",6),t(7,` @@ -39465,18 +39465,18 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),a(26,"mat-form-field"),t(27,` `),a(28,"mat-label"),t(29),m(30,"translate"),s(),t(31,` `),a(32,"mat-select",9),t(33,` - `),x(34,tvi,2,2,"mat-option",10),t(35,` + `),x(34,X_i,2,2,"mat-option",10),t(35,` `),s(),t(36,` `),s(),t(37,` `),a(38,"mat-form-field"),t(39,` `),a(40,"mat-label"),t(41),m(42,"translate"),s(),t(43,` `),a(44,"mat-select",11),t(45,` - `),x(46,evi,2,2,"mat-option",10),t(47,` + `),x(46,tvi,2,2,"mat-option",10),t(47,` `),s(),t(48,` `),s(),t(49,` - `),x(50,ivi,8,3,"mat-form-field",3),t(51,` + `),x(50,evi,8,3,"mat-form-field",3),t(51,` `),a(52,"mat-form-field",12),q("click",function(){W(i);let n=Mt(63);return Q(n.open())}),t(53,` `),a(54,"mat-label"),t(55),m(56,"translate"),s(),t(57,` @@ -39496,24 +39496,24 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),a(82,"mat-card-actions",16),t(83,` `),a(84,"button",17),t(85),m(86,"translate"),s(),t(87,` - `),x(88,nvi,5,3,"button",18),t(89,` + `),x(88,ivi,5,3,"button",18),t(89,` `),s(),t(90,` `),s(),t(91,` - `),s()}if(e&2){let i=Mt(63),o=Mt(77),n=A();l(2),g("formGroup",n.instructionForm),l(9),b(d(12,21,"labels.inputs.Client Name")),l(9),b(d(21,23,"labels.inputs.Client Id")),l(9),b(d(30,25,"labels.inputs.Transfer Type")),l(5),g("ngForOf",n.standingInstructionsTemplate.transferTypeOptions),l(7),b(d(42,27,"labels.inputs.Account Type")),l(5),g("ngForOf",n.standingInstructionsTemplate.fromAccountTypeOptions),l(4),g("ngIf",n.instructionForm.contains("fromAccountId")),l(5),b(d(56,29,"labels.inputs.From Date")),l(3),g("min",n.minDate)("max",n.maxDate)("matDatepicker",i),l(2),g("for",i),l(9),b(d(70,31,"labels.inputs.To Date")),l(3),g("min",n.minDate)("max",n.maxDate)("matDatepicker",o),l(2),g("for",o),l(10),g("routerLink",ht(35,Z_i)),l(),P(` + `),s()}if(e&2){let i=Mt(63),o=Mt(77),n=A();l(2),g("formGroup",n.instructionForm),l(9),b(d(12,21,"labels.inputs.Client Name")),l(9),b(d(21,23,"labels.inputs.Client Id")),l(9),b(d(30,25,"labels.inputs.Transfer Type")),l(5),g("ngForOf",n.standingInstructionsTemplate.transferTypeOptions),l(7),b(d(42,27,"labels.inputs.Account Type")),l(5),g("ngForOf",n.standingInstructionsTemplate.fromAccountTypeOptions),l(4),g("ngIf",n.instructionForm.contains("fromAccountId")),l(5),b(d(56,29,"labels.inputs.From Date")),l(3),g("min",n.minDate)("max",n.maxDate)("matDatepicker",i),l(2),g("for",i),l(9),b(d(70,31,"labels.inputs.To Date")),l(3),g("min",n.minDate)("max",n.maxDate)("matDatepicker",o),l(2),g("for",o),l(10),g("routerLink",ht(35,J_i)),l(),P(` `,d(86,33,"labels.buttons.Cancel"),` - `),l(3),g("mifosxHasPermission","READ_STANDINGINSTRUCTION")}}function ovi(e,r){e&1&&(a(0,"th",40),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.From Client")))}function avi(e,r){if(e&1&&(a(0,"td",41),t(1),s()),e&2){let i=r.$implicit;l(),_t(` + `),l(3),g("mifosxHasPermission","READ_STANDINGINSTRUCTION")}}function rvi(e,r){e&1&&(a(0,"th",40),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.From Client")))}function ovi(e,r){if(e&1&&(a(0,"td",41),t(1),s()),e&2){let i=r.$implicit;l(),_t(` `,i.fromClient.displayName,"(",i.fromClient.id,`) - `)}}function svi(e,r){e&1&&(a(0,"th",40),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.From Account")))}function lvi(e,r){if(e&1&&(a(0,"td",41),t(1),s()),e&2){let i=r.$implicit;l(),_t(` + `)}}function avi(e,r){e&1&&(a(0,"th",40),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.From Account")))}function svi(e,r){if(e&1&&(a(0,"td",41),t(1),s()),e&2){let i=r.$implicit;l(),_t(` `,i.fromAccount.productName,"(",i.fromAccount.id,`) - `)}}function cvi(e,r){e&1&&(a(0,"th",40),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.To Client")))}function pvi(e,r){if(e&1&&(a(0,"td",41),t(1),s()),e&2){let i=r.$implicit;l(),_t(` + `)}}function lvi(e,r){e&1&&(a(0,"th",40),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.To Client")))}function cvi(e,r){if(e&1&&(a(0,"td",41),t(1),s()),e&2){let i=r.$implicit;l(),_t(` `,i.toClient.displayName,"(",i.toClient.id,`) - `)}}function mvi(e,r){e&1&&(a(0,"th",40),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.To Account")))}function dvi(e,r){if(e&1&&(a(0,"td",41),t(1),s()),e&2){let i=r.$implicit;l(),_t(` + `)}}function pvi(e,r){e&1&&(a(0,"th",40),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.To Account")))}function mvi(e,r){if(e&1&&(a(0,"td",41),t(1),s()),e&2){let i=r.$implicit;l(),_t(` `,i.toAccount.productName,"(",i.toAccount.id,`) - `)}}function uvi(e,r){e&1&&(a(0,"th",40),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Execution Time")))}function fvi(e,r){if(e&1&&(a(0,"td",41),t(1),s()),e&2){let i=r.$implicit;l(),b(i.executionTime)}}function hvi(e,r){e&1&&(a(0,"th",40),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Amount")))}function gvi(e,r){if(e&1&&(a(0,"td",41),t(1),m(2,"formatNumber"),s()),e&2){let i=r.$implicit;l(),b(d(2,1,i.amount))}}function xvi(e,r){e&1&&(a(0,"th",40),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Status")))}function _vi(e,r){if(e&1&&(a(0,"td",41),t(1),s()),e&2){let i=r.$implicit;l(),b(i.status)}}function vvi(e,r){e&1&&(a(0,"th",40),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Error Log")))}function bvi(e,r){if(e&1&&(a(0,"button",43),t(1,` + `)}}function dvi(e,r){e&1&&(a(0,"th",40),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Execution Time")))}function uvi(e,r){if(e&1&&(a(0,"td",41),t(1),s()),e&2){let i=r.$implicit;l(),b(i.executionTime)}}function fvi(e,r){e&1&&(a(0,"th",40),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Amount")))}function hvi(e,r){if(e&1&&(a(0,"td",41),t(1),m(2,"formatNumber"),s()),e&2){let i=r.$implicit;l(),b(d(2,1,i.amount))}}function gvi(e,r){e&1&&(a(0,"th",40),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Status")))}function xvi(e,r){if(e&1&&(a(0,"td",41),t(1),s()),e&2){let i=r.$implicit;l(),b(i.status)}}function _vi(e,r){e&1&&(a(0,"th",40),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Error Log")))}function vvi(e,r){if(e&1&&(a(0,"button",43),t(1,` `),k(2,"i",44),t(3,` - `),s()),e&2){let i=A().$implicit;g("matTooltip",i.errorLog)}}function Cvi(e,r){if(e&1&&(a(0,"td",41),t(1,` - `),x(2,bvi,4,1,"button",42),t(3,` - `),s()),e&2){let i=r.$implicit;l(2),g("ngIf",i.status==="failed")}}function yvi(e,r){e&1&&k(0,"tr",45)}function Svi(e,r){e&1&&k(0,"tr",46)}function wvi(e,r){if(e&1){let i=st();a(0,"div",23),t(1,` + `),s()),e&2){let i=A().$implicit;g("matTooltip",i.errorLog)}}function bvi(e,r){if(e&1&&(a(0,"td",41),t(1,` + `),x(2,vvi,4,1,"button",42),t(3,` + `),s()),e&2){let i=r.$implicit;l(2),g("ngIf",i.status==="failed")}}function Cvi(e,r){e&1&&k(0,"tr",45)}function yvi(e,r){e&1&&k(0,"tr",46)}function Svi(e,r){if(e&1){let i=st();a(0,"div",23),t(1,` `),a(2,"mat-card"),t(3,` `),a(4,"div",24),t(5,` `),a(6,"button",25),q("click",function(){W(i);let n=A();return Q(n.isCollapsed=!1)}),t(7),m(8,"translate"),s(),t(9,` @@ -39521,75 +39521,75 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),a(11,"table",26),t(12,` `),ot(13,27),t(14,` - `),x(15,ovi,3,3,"th",28),t(16,` - `),x(17,avi,2,2,"td",29),t(18,` + `),x(15,rvi,3,3,"th",28),t(16,` + `),x(17,ovi,2,2,"td",29),t(18,` `),at(),t(19,` `),ot(20,30),t(21,` - `),x(22,svi,3,3,"th",28),t(23,` - `),x(24,lvi,2,2,"td",29),t(25,` + `),x(22,avi,3,3,"th",28),t(23,` + `),x(24,svi,2,2,"td",29),t(25,` `),at(),t(26,` `),ot(27,31),t(28,` - `),x(29,cvi,3,3,"th",28),t(30,` - `),x(31,pvi,2,2,"td",29),t(32,` + `),x(29,lvi,3,3,"th",28),t(30,` + `),x(31,cvi,2,2,"td",29),t(32,` `),at(),t(33,` `),ot(34,32),t(35,` - `),x(36,mvi,3,3,"th",28),t(37,` - `),x(38,dvi,2,2,"td",29),t(39,` + `),x(36,pvi,3,3,"th",28),t(37,` + `),x(38,mvi,2,2,"td",29),t(39,` `),at(),t(40,` `),ot(41,33),t(42,` - `),x(43,uvi,3,3,"th",28),t(44,` - `),x(45,fvi,2,1,"td",29),t(46,` + `),x(43,dvi,3,3,"th",28),t(44,` + `),x(45,uvi,2,1,"td",29),t(46,` `),at(),t(47,` `),ot(48,34),t(49,` - `),x(50,hvi,3,3,"th",28),t(51,` - `),x(52,gvi,3,3,"td",29),t(53,` + `),x(50,fvi,3,3,"th",28),t(51,` + `),x(52,hvi,3,3,"td",29),t(53,` `),at(),t(54,` `),ot(55,35),t(56,` - `),x(57,xvi,3,3,"th",28),t(58,` - `),x(59,_vi,2,1,"td",29),t(60,` + `),x(57,gvi,3,3,"th",28),t(58,` + `),x(59,xvi,2,1,"td",29),t(60,` `),at(),t(61,` `),ot(62,36),t(63,` - `),x(64,vvi,3,3,"th",28),t(65,` - `),x(66,Cvi,4,1,"td",29),t(67,` + `),x(64,_vi,3,3,"th",28),t(65,` + `),x(66,bvi,4,1,"td",29),t(67,` `),at(),t(68,` - `),x(69,yvi,1,0,"tr",37),t(70,` - `),x(71,Svi,1,0,"tr",38),t(72,` + `),x(69,Cvi,1,0,"tr",37),t(70,` + `),x(71,yvi,1,0,"tr",38),t(72,` `),s(),t(73,` `),k(74,"mat-paginator",39),t(75,` `),s(),t(76,` `),s()}if(e&2){let i=A();l(7),P(` `,d(8,5,"labels.buttons.Parameters"),` - `),l(4),g("dataSource",i.dataSource),l(58),g("matHeaderRowDef",i.displayedColumns),l(2),g("matRowDefColumns",i.displayedColumns),l(3),g("pageSizeOptions",ht(7,X_i))}}var KD=(()=>{class e{constructor(i,o,n,c,u,h){this.formBuilder=i,this.organizationService=o,this.settingsService=n,this.router=c,this.route=u,this.dateUtils=h,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.isCollapsed=!1,this.displayedColumns=["fromClient","fromAccount","toClient","toAccount","executionTime","amount","status","errorLog"],this.route.data.subscribe(_=>{this.standingInstructionsTemplate=_.standingInstructionsTemplate})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createInstructionForm(),this.buildDependencies()}createInstructionForm(){this.instructionForm=this.formBuilder.group({clientName:[""],clientId:[""],transferType:[""],fromAccountType:[""],fromDate:[""],toDate:[""]})}buildDependencies(){this.instructionForm.get("fromAccountType").valueChanges.subscribe(()=>{this.instructionForm.addControl("fromAccountId",new _e(""))})}setInstructions(i){this.dataSource=new ci(i),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}search(){this.isCollapsed=!0;let i=this.instructionForm.value,o=this.settingsService.language.code,n=this.settingsService.dateFormat,c=this.instructionForm.value.fromDate,u=this.instructionForm.value.toDate;i.fromDate instanceof Date&&(i.fromDate=this.dateUtils.formatDate(c,n)),i.toDate instanceof Date&&(i.toDate=this.dateUtils.formatDate(u,n));let h=oi(ye({},i),{dateFormat:n,locale:o});this.organizationService.getStandingInstructions(h).subscribe(_=>{this.setInstructions(_.pageItems)})}static{this.\u0275fac=function(o){return new(o||e)(V(xe),V(Ei),V(We),V(te),V(Lt),V(_i))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-standing-instructions-history"]],viewQuery:function(o,n){if(o&1&&(Nt(Je,5),Nt($e,5)),o&2){let c;Bt(c=Rt())&&(n.paginator=c.first),Bt(c=Rt())&&(n.sort=c.first)}},decls:7,vars:2,consts:[["fromDatePicker",""],["toDatePicker",""],[1,"container","input"],[4,"ngIf"],["class","container output",4,"ngIf"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","formControlName","clientName"],["matInput","","formControlName","clientId"],["formControlName","transferType"],[3,"value",4,"ngFor","ngForOf"],["formControlName","fromAccountType"],[3,"click"],["matInput","","formControlName","fromDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","toDate",3,"min","max","matDatepicker"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",4,"mifosxHasPermission"],[3,"value"],["matInput","","formControlName","fromAccountId"],["mat-raised-button","","color","primary"],["icon","search"],[1,"container","output"],[1,"m-b-20"],["mat-raised-button","","color","primary",3,"click"],["mat-table","","matSort","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","fromClient"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","fromAccount"],["matColumnDef","toClient"],["matColumnDef","toAccount"],["matColumnDef","executionTime"],["matColumnDef","amount"],["matColumnDef","status"],["matColumnDef","errorLog"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["class","error-log","mat-raised-button","","color","warn",3,"matTooltip",4,"ngIf"],["mat-raised-button","","color","warn",1,"error-log",3,"matTooltip"],[1,"fa","fa-exclamation"],["mat-header-row",""],["mat-row",""]],template:function(o,n){o&1&&(a(0,"div",2),t(1,` - `),x(2,rvi,92,36,"mat-card",3),t(3,` + `),l(4),g("dataSource",i.dataSource),l(58),g("matHeaderRowDef",i.displayedColumns),l(2),g("matRowDefColumns",i.displayedColumns),l(3),g("pageSizeOptions",ht(7,Z_i))}}var KD=(()=>{class e{constructor(i,o,n,c,u,h){this.formBuilder=i,this.organizationService=o,this.settingsService=n,this.router=c,this.route=u,this.dateUtils=h,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.isCollapsed=!1,this.displayedColumns=["fromClient","fromAccount","toClient","toAccount","executionTime","amount","status","errorLog"],this.route.data.subscribe(_=>{this.standingInstructionsTemplate=_.standingInstructionsTemplate})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createInstructionForm(),this.buildDependencies()}createInstructionForm(){this.instructionForm=this.formBuilder.group({clientName:[""],clientId:[""],transferType:[""],fromAccountType:[""],fromDate:[""],toDate:[""]})}buildDependencies(){this.instructionForm.get("fromAccountType").valueChanges.subscribe(()=>{this.instructionForm.addControl("fromAccountId",new _e(""))})}setInstructions(i){this.dataSource=new ci(i),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}search(){this.isCollapsed=!0;let i=this.instructionForm.value,o=this.settingsService.language.code,n=this.settingsService.dateFormat,c=this.instructionForm.value.fromDate,u=this.instructionForm.value.toDate;i.fromDate instanceof Date&&(i.fromDate=this.dateUtils.formatDate(c,n)),i.toDate instanceof Date&&(i.toDate=this.dateUtils.formatDate(u,n));let h=oi(ye({},i),{dateFormat:n,locale:o});this.organizationService.getStandingInstructions(h).subscribe(_=>{this.setInstructions(_.pageItems)})}static{this.\u0275fac=function(o){return new(o||e)(V(xe),V(Ei),V(We),V(te),V(Lt),V(_i))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-standing-instructions-history"]],viewQuery:function(o,n){if(o&1&&(Nt(Je,5),Nt($e,5)),o&2){let c;Bt(c=Rt())&&(n.paginator=c.first),Bt(c=Rt())&&(n.sort=c.first)}},decls:7,vars:2,consts:[["fromDatePicker",""],["toDatePicker",""],[1,"container","input"],[4,"ngIf"],["class","container output",4,"ngIf"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","formControlName","clientName"],["matInput","","formControlName","clientId"],["formControlName","transferType"],[3,"value",4,"ngFor","ngForOf"],["formControlName","fromAccountType"],[3,"click"],["matInput","","formControlName","fromDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","toDate",3,"min","max","matDatepicker"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",4,"mifosxHasPermission"],[3,"value"],["matInput","","formControlName","fromAccountId"],["mat-raised-button","","color","primary"],["icon","search"],[1,"container","output"],[1,"m-b-20"],["mat-raised-button","","color","primary",3,"click"],["mat-table","","matSort","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","fromClient"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","fromAccount"],["matColumnDef","toClient"],["matColumnDef","toAccount"],["matColumnDef","executionTime"],["matColumnDef","amount"],["matColumnDef","status"],["matColumnDef","errorLog"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["class","error-log","mat-raised-button","","color","warn",3,"matTooltip",4,"ngIf"],["mat-raised-button","","color","warn",1,"error-log",3,"matTooltip"],[1,"fa","fa-exclamation"],["mat-header-row",""],["mat-row",""]],template:function(o,n){o&1&&(a(0,"div",2),t(1,` + `),x(2,nvi,92,36,"mat-card",3),t(3,` `),s(),t(4,` -`),x(5,wvi,77,8,"div",4),t(6,` -`)),o&2&&(l(2),g("ngIf",!n.isCollapsed),l(3),g("ngIf",n.isCollapsed))},dependencies:[St,se,zt,wt,ge,Se,re,ue,fe,he,qt,oe,me,Ue,Ht,$t,Si,Zt,Oe,De,Mi,Di,Ti,Dt,de,Et,Gt,Fe,$e,Ne,Re,Le,wi,Be,Ve,Pi,ze,qe,je,He,Je,_r],styles:[".input[_ngcontent-%COMP%]{max-width:37rem}.output[_ngcontent-%COMP%] .error-log[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}"]})}}return e})();var Evi=()=>["../"],Pvi=()=>[10,25,50,100];function kvi(e,r){if(e&1&&(a(0,"mat-option",35),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` +`),x(5,Svi,77,8,"div",4),t(6,` +`)),o&2&&(l(2),g("ngIf",!n.isCollapsed),l(3),g("ngIf",n.isCollapsed))},dependencies:[St,se,zt,wt,ge,Se,re,ue,fe,he,qt,oe,me,Ue,Ht,$t,Si,Zt,Oe,De,Mi,Di,Ti,Dt,de,Et,Gt,Fe,$e,Ne,Re,Le,wi,Be,Ve,Pi,ze,qe,je,He,Je,_r],styles:[".input[_ngcontent-%COMP%]{max-width:37rem}.output[_ngcontent-%COMP%] .error-log[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}"]})}}return e})();var wvi=()=>["../"],Evi=()=>[10,25,50,100];function Pvi(e,r){if(e&1&&(a(0,"mat-option",35),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` `,i.name,` - `)}}function Ivi(e,r){if(e&1&&(a(0,"mat-option",35),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` + `)}}function kvi(e,r){if(e&1&&(a(0,"mat-option",35),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` `,i.name,` - `)}}function Tvi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `)}}function Ivi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.Date Type")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function Mvi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `),l(4),b(d(6,7,"labels.commons.required")))}function Tvi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.From Date")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function Dvi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `),l(4),b(d(6,7,"labels.commons.required")))}function Mvi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.To Date")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function Avi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `),l(4),b(d(6,7,"labels.commons.required")))}function Dvi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.Comparison Condition")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function Ovi(e,r){if(e&1&&(a(0,"mat-form-field",17),t(1,` + `),l(4),b(d(6,7,"labels.commons.required")))}function Avi(e,r){if(e&1&&(a(0,"mat-form-field",17),t(1,` `),a(2,"mat-label"),t(3),m(4,"translate"),s(),t(5,` `),a(6,"mat-select",38),t(7,` `),a(8,"mat-option",39),t(9),m(10,"translate"),s(),t(11,` @@ -39599,40 +39599,40 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),a(21,"mat-option",43),t(22,">"),s(),t(23,` `),a(24,"mat-option",44),t(25,"="),s(),t(26,` `),s(),t(27,` - `),x(28,Avi,8,9,"mat-error",22),t(29,` - `),s()),e&2){let i=A(3);l(3),b(d(4,3,"labels.inputs.Comparison Condition")),l(6),b(d(10,5,"labels.inputs.between")),l(19),g("ngIf",i.fundMappingForm.controls.outStandingAmountPercentageCondition.hasError("required"))}}function Fvi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `),x(28,Dvi,8,9,"mat-error",22),t(29,` + `),s()),e&2){let i=A(3);l(3),b(d(4,3,"labels.inputs.Comparison Condition")),l(6),b(d(10,5,"labels.inputs.between")),l(19),g("ngIf",i.fundMappingForm.controls.outStandingAmountPercentageCondition.hasError("required"))}}function Ovi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.Minimum Value")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function Bvi(e,r){if(e&1&&(a(0,"mat-form-field",17),t(1,` + `),l(4),b(d(6,7,"labels.commons.required")))}function Fvi(e,r){if(e&1&&(a(0,"mat-form-field",17),t(1,` `),a(2,"mat-label"),t(3),m(4,"translate"),s(),t(5,` `),k(6,"input",45),m(7,"translate"),t(8,` - `),x(9,Fvi,8,9,"mat-error",22),t(10,` - `),s()),e&2){let i=A(3);l(3),b(d(4,3,"labels.inputs.Minimum Value")),l(3),Xt("placeholder",d(7,5,"labels.inputs.Minimum Value")),l(3),g("ngIf",i.fundMappingForm.controls.minOutStandingAmountPercentage.hasError("required"))}}function Rvi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `),x(9,Ovi,8,9,"mat-error",22),t(10,` + `),s()),e&2){let i=A(3);l(3),b(d(4,3,"labels.inputs.Minimum Value")),l(3),Xt("placeholder",d(7,5,"labels.inputs.Minimum Value")),l(3),g("ngIf",i.fundMappingForm.controls.minOutStandingAmountPercentage.hasError("required"))}}function Bvi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.Comparison Value")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function Nvi(e,r){if(e&1&&(a(0,"mat-form-field",17),t(1,` + `),l(4),b(d(6,7,"labels.commons.required")))}function Rvi(e,r){if(e&1&&(a(0,"mat-form-field",17),t(1,` `),a(2,"mat-label"),t(3),m(4,"translate"),s(),t(5,` `),k(6,"input",46),m(7,"translate"),t(8,` - `),x(9,Rvi,8,9,"mat-error",22),t(10,` - `),s()),e&2){let i=A(3);l(3),b(d(4,3,"labels.inputs.Comparison Value")),l(3),Xt("placeholder",d(7,5,"labels.inputs.Comparison Value")),l(3),g("ngIf",i.fundMappingForm.controls.outStandingAmountPercentage.hasError("required"))}}function Lvi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `),x(9,Bvi,8,9,"mat-error",22),t(10,` + `),s()),e&2){let i=A(3);l(3),b(d(4,3,"labels.inputs.Comparison Value")),l(3),Xt("placeholder",d(7,5,"labels.inputs.Comparison Value")),l(3),g("ngIf",i.fundMappingForm.controls.outStandingAmountPercentage.hasError("required"))}}function Nvi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.Maximum Value")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function Vvi(e,r){if(e&1&&(a(0,"mat-form-field",17),t(1,` + `),l(4),b(d(6,7,"labels.commons.required")))}function Lvi(e,r){if(e&1&&(a(0,"mat-form-field",17),t(1,` `),a(2,"mat-label"),t(3),m(4,"translate"),s(),t(5,` `),k(6,"input",47),m(7,"translate"),t(8,` - `),x(9,Lvi,8,9,"mat-error",22),t(10,` - `),s()),e&2){let i=A(3);l(3),b(d(4,3,"labels.inputs.Maximum Value")),l(3),Xt("placeholder",d(7,5,"labels.inputs.Maximum Value")),l(3),g("ngIf",i.fundMappingForm.controls.maxOutStandingAmountPercentage.hasError("required"))}}function zvi(e,r){if(e&1&&(a(0,"div",36),t(1,` - `),x(2,Ovi,30,7,"mat-form-field",37),t(3,` + `),x(9,Nvi,8,9,"mat-error",22),t(10,` + `),s()),e&2){let i=A(3);l(3),b(d(4,3,"labels.inputs.Maximum Value")),l(3),Xt("placeholder",d(7,5,"labels.inputs.Maximum Value")),l(3),g("ngIf",i.fundMappingForm.controls.maxOutStandingAmountPercentage.hasError("required"))}}function Vvi(e,r){if(e&1&&(a(0,"div",36),t(1,` + `),x(2,Avi,30,7,"mat-form-field",37),t(3,` - `),x(4,Bvi,11,7,"mat-form-field",37),t(5,` + `),x(4,Fvi,11,7,"mat-form-field",37),t(5,` - `),x(6,Nvi,11,7,"mat-form-field",37),t(7,` + `),x(6,Rvi,11,7,"mat-form-field",37),t(7,` - `),x(8,Vvi,11,7,"mat-form-field",37),t(9,` - `),s()),e&2){let i=A(2);l(2),g("ngIf",i.fundMappingForm.contains("outStandingAmountPercentageCondition")),l(2),g("ngIf",i.fundMappingForm.contains("minOutStandingAmountPercentage")),l(2),g("ngIf",i.fundMappingForm.contains("outStandingAmountPercentage")),l(2),g("ngIf",i.fundMappingForm.contains("maxOutStandingAmountPercentage"))}}function jvi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `),x(8,Lvi,11,7,"mat-form-field",37),t(9,` + `),s()),e&2){let i=A(2);l(2),g("ngIf",i.fundMappingForm.contains("outStandingAmountPercentageCondition")),l(2),g("ngIf",i.fundMappingForm.contains("minOutStandingAmountPercentage")),l(2),g("ngIf",i.fundMappingForm.contains("outStandingAmountPercentage")),l(2),g("ngIf",i.fundMappingForm.contains("maxOutStandingAmountPercentage"))}}function zvi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.Comparison Condition")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function qvi(e,r){if(e&1&&(a(0,"mat-form-field",17),t(1,` + `),l(4),b(d(6,7,"labels.commons.required")))}function jvi(e,r){if(e&1&&(a(0,"mat-form-field",17),t(1,` `),a(2,"mat-label"),t(3),m(4,"translate"),s(),t(5,` `),a(6,"mat-select",49),t(7,` `),a(8,"mat-option",39),t(9),m(10,"translate"),s(),t(11,` @@ -39642,37 +39642,37 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),a(21,"mat-option",43),t(22,">"),s(),t(23,` `),a(24,"mat-option",44),t(25,"="),s(),t(26,` `),s(),t(27,` - `),x(28,jvi,8,9,"mat-error",22),t(29,` - `),s()),e&2){let i=A(3);l(3),b(d(4,3,"labels.inputs.Comparison Condition")),l(6),b(d(10,5,"labels.inputs.between")),l(19),g("ngIf",i.fundMappingForm.controls.outstandingAmountCondition.hasError("required"))}}function Hvi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `),x(28,zvi,8,9,"mat-error",22),t(29,` + `),s()),e&2){let i=A(3);l(3),b(d(4,3,"labels.inputs.Comparison Condition")),l(6),b(d(10,5,"labels.inputs.between")),l(19),g("ngIf",i.fundMappingForm.controls.outstandingAmountCondition.hasError("required"))}}function qvi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.Minimum Value")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function Gvi(e,r){if(e&1&&(a(0,"mat-form-field",17),t(1,` + `),l(4),b(d(6,7,"labels.commons.required")))}function Hvi(e,r){if(e&1&&(a(0,"mat-form-field",17),t(1,` `),a(2,"mat-label"),t(3),m(4,"translate"),s(),t(5,` `),k(6,"input",50),m(7,"translate"),t(8,` - `),x(9,Hvi,8,9,"mat-error",22),t(10,` - `),s()),e&2){let i=A(3);l(3),b(d(4,3,"labels.inputs.Minimum Value")),l(3),Xt("placeholder",d(7,5,"labels.inputs.Minimum Value")),l(3),g("ngIf",i.fundMappingForm.controls.minOutstandingAmount.hasError("required"))}}function Uvi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `),x(9,qvi,8,9,"mat-error",22),t(10,` + `),s()),e&2){let i=A(3);l(3),b(d(4,3,"labels.inputs.Minimum Value")),l(3),Xt("placeholder",d(7,5,"labels.inputs.Minimum Value")),l(3),g("ngIf",i.fundMappingForm.controls.minOutstandingAmount.hasError("required"))}}function Gvi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.Comparison Value")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function $vi(e,r){if(e&1&&(a(0,"mat-form-field",17),t(1,` + `),l(4),b(d(6,7,"labels.commons.required")))}function Uvi(e,r){if(e&1&&(a(0,"mat-form-field",17),t(1,` `),a(2,"mat-label"),t(3),m(4,"translate"),s(),t(5,` `),k(6,"input",51),m(7,"translate"),t(8,` - `),x(9,Uvi,8,9,"mat-error",22),t(10,` - `),s()),e&2){let i=A(3);l(3),b(d(4,3,"labels.inputs.Comparison Value")),l(3),Xt("placeholder",d(7,5,"labels.inputs.Comparison Value")),l(3),g("ngIf",i.fundMappingForm.controls.outstandingAmount.hasError("required"))}}function Wvi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `),x(9,Gvi,8,9,"mat-error",22),t(10,` + `),s()),e&2){let i=A(3);l(3),b(d(4,3,"labels.inputs.Comparison Value")),l(3),Xt("placeholder",d(7,5,"labels.inputs.Comparison Value")),l(3),g("ngIf",i.fundMappingForm.controls.outstandingAmount.hasError("required"))}}function $vi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.Maximum Value")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function Qvi(e,r){if(e&1&&(a(0,"mat-form-field",17),t(1,` + `),l(4),b(d(6,7,"labels.commons.required")))}function Wvi(e,r){if(e&1&&(a(0,"mat-form-field",17),t(1,` `),a(2,"mat-label"),t(3),m(4,"translate"),s(),t(5,` `),k(6,"input",52),m(7,"translate"),t(8,` - `),x(9,Wvi,8,9,"mat-error",22),t(10,` - `),s()),e&2){let i=A(3);l(3),b(d(4,3,"labels.inputs.Maximum Value")),l(3),Xt("placeholder",d(7,5,"labels.inputs.Maximum Value")),l(3),g("ngIf",i.fundMappingForm.controls.maxOutstandingAmount.hasError("required"))}}function Yvi(e,r){if(e&1&&(a(0,"div",48),t(1,` - `),x(2,qvi,30,7,"mat-form-field",37),t(3,` + `),x(9,$vi,8,9,"mat-error",22),t(10,` + `),s()),e&2){let i=A(3);l(3),b(d(4,3,"labels.inputs.Maximum Value")),l(3),Xt("placeholder",d(7,5,"labels.inputs.Maximum Value")),l(3),g("ngIf",i.fundMappingForm.controls.maxOutstandingAmount.hasError("required"))}}function Qvi(e,r){if(e&1&&(a(0,"div",48),t(1,` + `),x(2,jvi,30,7,"mat-form-field",37),t(3,` - `),x(4,Gvi,11,7,"mat-form-field",37),t(5,` + `),x(4,Hvi,11,7,"mat-form-field",37),t(5,` - `),x(6,$vi,11,7,"mat-form-field",37),t(7,` + `),x(6,Uvi,11,7,"mat-form-field",37),t(7,` - `),x(8,Qvi,11,7,"mat-form-field",37),t(9,` - `),s()),e&2){let i=A(2);l(2),g("ngIf",i.fundMappingForm.contains("outstandingAmountCondition")),l(2),g("ngIf",i.fundMappingForm.contains("minOutstandingAmount")),l(2),g("ngIf",i.fundMappingForm.contains("outstandingAmount")),l(2),g("ngIf",i.fundMappingForm.contains("maxOutstandingAmount"))}}function Kvi(e,r){if(e&1){let i=st();a(0,"mat-card",3),t(1,` + `),x(8,Wvi,11,7,"mat-form-field",37),t(9,` + `),s()),e&2){let i=A(2);l(2),g("ngIf",i.fundMappingForm.contains("outstandingAmountCondition")),l(2),g("ngIf",i.fundMappingForm.contains("minOutstandingAmount")),l(2),g("ngIf",i.fundMappingForm.contains("outstandingAmount")),l(2),g("ngIf",i.fundMappingForm.contains("maxOutstandingAmount"))}}function Yvi(e,r){if(e&1){let i=st();a(0,"mat-card",3),t(1,` `),a(2,"form",4),q("ngSubmit",function(){W(i);let n=A();return Q(n.submit())}),t(3,` `),a(4,"mat-card-content"),t(5,` `),a(6,"div",5),t(7,` @@ -39692,14 +39692,14 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),a(40,"mat-form-field",6),t(41,` `),a(42,"mat-label"),t(43),m(44,"translate"),s(),t(45,` `),a(46,"mat-select",14),t(47,` - `),x(48,kvi,2,2,"mat-option",15),t(49,` + `),x(48,Pvi,2,2,"mat-option",15),t(49,` `),s(),t(50,` `),s(),t(51,` `),a(52,"mat-form-field",6),t(53,` `),a(54,"mat-label"),t(55),m(56,"translate"),s(),t(57,` `),a(58,"mat-select",16),t(59,` - `),x(60,Ivi,2,2,"mat-option",15),t(61,` + `),x(60,kvi,2,2,"mat-option",15),t(61,` `),s(),t(62,` `),s(),t(63,` @@ -39710,7 +39710,7 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),a(76,"mat-option",20),t(77),m(78,"translate"),s(),t(79,` `),a(80,"mat-option",21),t(81),m(82,"translate"),s(),t(83,` `),s(),t(84,` - `),x(85,Tvi,8,9,"mat-error",22),t(86,` + `),x(85,Ivi,8,9,"mat-error",22),t(86,` `),s(),t(87,` `),a(88,"mat-form-field",23),q("click",function(){W(i);let n=Mt(100);return Q(n.open())}),t(89,` @@ -39718,7 +39718,7 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),k(94,"input",24),m(95,"translate"),t(96,` `),k(97,"mat-datepicker-toggle",25),t(98,` `),k(99,"mat-datepicker",null,0),t(101,` - `),x(102,Mvi,8,9,"mat-error",22),t(103,` + `),x(102,Tvi,8,9,"mat-error",22),t(103,` `),s(),t(104,` `),a(105,"mat-form-field",23),q("click",function(){W(i);let n=Mt(117);return Q(n.open())}),t(106,` @@ -39726,16 +39726,16 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),k(111,"input",26),m(112,"translate"),t(113,` `),k(114,"mat-datepicker-toggle",25),t(115,` `),k(116,"mat-datepicker",null,1),t(118,` - `),x(119,Dvi,8,9,"mat-error",22),t(120,` + `),x(119,Mvi,8,9,"mat-error",22),t(120,` `),s(),t(121,` `),a(122,"mat-checkbox",27),t(123),m(124,"translate"),s(),t(125,` - `),x(126,zvi,10,4,"div",28),t(127,` + `),x(126,Vvi,10,4,"div",28),t(127,` `),a(128,"mat-checkbox",29),t(129),m(130,"translate"),s(),t(131,` - `),x(132,Yvi,10,4,"div",30),t(133,` + `),x(132,Qvi,10,4,"div",30),t(133,` `),s(),t(134,` `),s(),t(135,` @@ -39749,8 +39749,8 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `,d(124,70,"labels.inputs.Loan Outstanding Percentage"),` `),l(3),g("ngIf",n.fundMappingForm.value.includeOutStandingAmountPercentage),l(3),P(` `,d(130,72,"labels.inputs.Loan Outstanding Amount"),` - `),l(3),g("ngIf",n.fundMappingForm.value.includeOutstandingAmount),l(6),g("routerLink",ht(78,Evi)),l(),b(d(140,74,"labels.buttons.Cancel")),l(3),g("disabled",!n.fundMappingForm.valid),l(3),P("\xA0 ",d(146,76,"labels.buttons.Summary"),` - `)}}function Jvi(e,r){e&1&&(a(0,"th",66),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Office Name")))}function Zvi(e,r){if(e&1&&(a(0,"td",67),t(1),s()),e&2){let i=r.$implicit;l(),b(i.officeName)}}function Xvi(e,r){e&1&&(a(0,"th",66),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Product Name")))}function tbi(e,r){if(e&1&&(a(0,"td",67),t(1),s()),e&2){let i=r.$implicit;l(),b(i.loanProductName)}}function ebi(e,r){e&1&&(a(0,"th",66),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Count")))}function ibi(e,r){if(e&1&&(a(0,"td",67),t(1),s()),e&2){let i=r.$implicit;l(),b(i.count)}}function nbi(e,r){e&1&&(a(0,"th",66),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Outstanding")))}function rbi(e,r){if(e&1&&(a(0,"td",67),t(1),s()),e&2){let i=r.$implicit;l(),b(i.loanOutStanding)}}function obi(e,r){e&1&&(a(0,"th",66),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Percentage")))}function abi(e,r){if(e&1&&(a(0,"td",67),t(1),s()),e&2){let i=r.$implicit;l(),b(i.percentage)}}function sbi(e,r){e&1&&k(0,"tr",68)}function lbi(e,r){e&1&&k(0,"tr",69)}function cbi(e,r){if(e&1){let i=st();a(0,"div",3),t(1,` + `),l(3),g("ngIf",n.fundMappingForm.value.includeOutstandingAmount),l(6),g("routerLink",ht(78,wvi)),l(),b(d(140,74,"labels.buttons.Cancel")),l(3),g("disabled",!n.fundMappingForm.valid),l(3),P("\xA0 ",d(146,76,"labels.buttons.Summary"),` + `)}}function Kvi(e,r){e&1&&(a(0,"th",66),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Office Name")))}function Jvi(e,r){if(e&1&&(a(0,"td",67),t(1),s()),e&2){let i=r.$implicit;l(),b(i.officeName)}}function Zvi(e,r){e&1&&(a(0,"th",66),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Product Name")))}function Xvi(e,r){if(e&1&&(a(0,"td",67),t(1),s()),e&2){let i=r.$implicit;l(),b(i.loanProductName)}}function tbi(e,r){e&1&&(a(0,"th",66),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Count")))}function ebi(e,r){if(e&1&&(a(0,"td",67),t(1),s()),e&2){let i=r.$implicit;l(),b(i.count)}}function ibi(e,r){e&1&&(a(0,"th",66),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Outstanding")))}function nbi(e,r){if(e&1&&(a(0,"td",67),t(1),s()),e&2){let i=r.$implicit;l(),b(i.loanOutStanding)}}function rbi(e,r){e&1&&(a(0,"th",66),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Percentage")))}function obi(e,r){if(e&1&&(a(0,"td",67),t(1),s()),e&2){let i=r.$implicit;l(),b(i.percentage)}}function abi(e,r){e&1&&k(0,"tr",68)}function sbi(e,r){e&1&&k(0,"tr",69)}function lbi(e,r){if(e&1){let i=st();a(0,"div",3),t(1,` `),a(2,"mat-card"),t(3,` `),a(4,"div",53),t(5,` `),a(6,"button",54),q("click",function(){W(i);let n=A();return Q(n.isCollapsed=!1)}),t(7),m(8,"translate"),s(),t(9,` @@ -39758,75 +39758,75 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),a(11,"table",55),t(12,` `),ot(13,56),t(14,` - `),x(15,Jvi,3,3,"th",57),t(16,` - `),x(17,Zvi,2,1,"td",58),t(18,` + `),x(15,Kvi,3,3,"th",57),t(16,` + `),x(17,Jvi,2,1,"td",58),t(18,` `),at(),t(19,` `),ot(20,59),t(21,` - `),x(22,Xvi,3,3,"th",57),t(23,` - `),x(24,tbi,2,1,"td",58),t(25,` + `),x(22,Zvi,3,3,"th",57),t(23,` + `),x(24,Xvi,2,1,"td",58),t(25,` `),at(),t(26,` `),ot(27,60),t(28,` - `),x(29,ebi,3,3,"th",57),t(30,` - `),x(31,ibi,2,1,"td",58),t(32,` + `),x(29,tbi,3,3,"th",57),t(30,` + `),x(31,ebi,2,1,"td",58),t(32,` `),at(),t(33,` `),ot(34,61),t(35,` - `),x(36,nbi,3,3,"th",57),t(37,` - `),x(38,rbi,2,1,"td",58),t(39,` + `),x(36,ibi,3,3,"th",57),t(37,` + `),x(38,nbi,2,1,"td",58),t(39,` `),at(),t(40,` `),ot(41,62),t(42,` - `),x(43,obi,3,3,"th",57),t(44,` - `),x(45,abi,2,1,"td",58),t(46,` + `),x(43,rbi,3,3,"th",57),t(44,` + `),x(45,obi,2,1,"td",58),t(46,` `),at(),t(47,` - `),x(48,sbi,1,0,"tr",63),t(49,` - `),x(50,lbi,1,0,"tr",64),t(51,` + `),x(48,abi,1,0,"tr",63),t(49,` + `),x(50,sbi,1,0,"tr",64),t(51,` `),s(),t(52,` `),k(53,"mat-paginator",65),t(54,` `),s(),t(55,` `),s()}if(e&2){let i=A();l(7),P(` `,d(8,5,"labels.buttons.Parameters"),` - `),l(4),g("dataSource",i.dataSource),l(37),g("matHeaderRowDef",i.displayedColumns),l(2),g("matRowDefColumns",i.displayedColumns),l(3),g("pageSizeOptions",ht(7,Pvi))}}var JD=(()=>{class e{constructor(i,o,n,c,u){this.formBuilder=i,this.organizationService=o,this.settingsService=n,this.route=c,this.dateUtils=u,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.isCollapsed=!1,this.displayedColumns=["officeName","productName","count","outstanding","percentage"],this.route.data.subscribe(h=>{this.advanceSearchTemplate=h.advanceSearchTemplate})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createFundMappingForm(),this.buildDependencies()}createFundMappingForm(){this.fundMappingForm=this.formBuilder.group({loanStatus:[""],loanProducts:[""],offices:[""],loanDateOption:["",bt.required],loanFromDate:["",bt.required],loanToDate:["",bt.required],includeOutStandingAmountPercentage:[!1],includeOutstandingAmount:[!1]})}buildDependencies(){this.fundMappingForm.get("includeOutStandingAmountPercentage").valueChanges.subscribe(i=>{i?(this.fundMappingForm.addControl("outStandingAmountPercentageCondition",new _e("",bt.required)),this.fundMappingForm.get("outStandingAmountPercentageCondition").valueChanges.subscribe(o=>{o==="between"?(this.fundMappingForm.addControl("minOutStandingAmountPercentage",new _e("",bt.required)),this.fundMappingForm.addControl("maxOutStandingAmountPercentage",new _e("",bt.required)),this.fundMappingForm.removeControl("outStandingAmountPercentage")):(this.fundMappingForm.addControl("outStandingAmountPercentage",new _e("",bt.required)),this.fundMappingForm.removeControl("minOutStandingAmountPercentage"),this.fundMappingForm.removeControl("maxOutStandingAmountPercentage"))}),this.fundMappingForm.get("outStandingAmountPercentageCondition").patchValue("between")):(this.fundMappingForm.removeControl("outStandingAmountPercentageCondition"),this.fundMappingForm.removeControl("minOutStandingAmountPercentage"),this.fundMappingForm.removeControl("maxOutStandingAmountPercentage"),this.fundMappingForm.removeControl("outStandingAmountPercentage"))}),this.fundMappingForm.get("includeOutStandingAmountPercentage").patchValue(!0),this.fundMappingForm.get("includeOutstandingAmount").valueChanges.subscribe(i=>{i?(this.fundMappingForm.addControl("outstandingAmountCondition",new _e("",bt.required)),this.fundMappingForm.get("outstandingAmountCondition").valueChanges.subscribe(o=>{o==="between"?(this.fundMappingForm.addControl("minOutstandingAmount",new _e("",bt.required)),this.fundMappingForm.addControl("maxOutstandingAmount",new _e("",bt.required)),this.fundMappingForm.removeControl("outstandingAmount")):(this.fundMappingForm.addControl("outstandingAmount",new _e("",bt.required)),this.fundMappingForm.removeControl("minOutstandingAmount"),this.fundMappingForm.removeControl("maxOutstandingAmount"))}),this.fundMappingForm.get("outstandingAmountCondition").patchValue("between")):(this.fundMappingForm.removeControl("outstandingAmountCondition"),this.fundMappingForm.removeControl("minOutstandingAmount"),this.fundMappingForm.removeControl("maxOutstandingAmount"),this.fundMappingForm.removeControl("outstandingAmount"))}),this.fundMappingForm.get("includeOutstandingAmount").patchValue(!0)}setLoans(i){this.dataSource=new ci(i),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}submit(){this.isCollapsed=!0;let i=this.fundMappingForm.value,o=this.settingsService.language.code,n=this.settingsService.dateFormat,c=this.fundMappingForm.value.loanFromDate,u=this.fundMappingForm.value.loanToDate;i.loanFromDate instanceof Date&&(i.loanFromDate=this.dateUtils.formatDate(c,n)),i.loanToDate instanceof Date&&(i.loanToDate=this.dateUtils.formatDate(u,n));let h=oi(ye({},i),{entities:["loans"],dateFormat:n,locale:o});this.organizationService.retrieveAdvanceSearchResults(h).subscribe(_=>{this.setLoans(_)})}static{this.\u0275fac=function(o){return new(o||e)(V(xe),V(Ei),V(We),V(Lt),V(_i))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-fund-mapping"]],viewQuery:function(o,n){if(o&1&&(Nt(Je,5),Nt($e,5)),o&2){let c;Bt(c=Rt())&&(n.paginator=c.first),Bt(c=Rt())&&(n.sort=c.first)}},decls:4,vars:2,consts:[["fromDatePicker",""],["toDatePicker",""],["class","container",4,"ngIf"],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2percent","responsive-column","align-start-center"],[1,"flex-48"],["formControlName","loanStatus","multiple",""],["value","all"],["value","active"],["value","closed"],["value","overpaid"],["value","writeoff"],[1,"flex-48","hide-lt-md"],["formControlName","loanProducts","multiple",""],[3,"value",4,"ngFor","ngForOf"],["formControlName","offices","multiple",""],[1,"flex-31"],["required","","formControlName","loanDateOption"],["value","approvalDate"],["value","createdDate"],["value","disbursalDate"],[4,"ngIf"],[1,"flex-31",3,"click"],["matInput","","formControlName","loanFromDate","required","",3,"min","max","matDatepicker","placeholder"],["matSuffix","",3,"for"],["matInput","","formControlName","loanToDate","required","",3,"min","max","matDatepicker","placeholder"],["labelPosition","before","formControlName","includeOutStandingAmountPercentage",1,"margin-b","flex-73"],["class","flex-fill layout-row-wrap gap-2percent layout-xs-column",4,"ngIf"],["labelPosition","before","formControlName","includeOutstandingAmount",1,"flex-73","margin-b"],["class","flex-fill layout-row-wrap gap-2percent responsive-column",4,"ngIf"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary","type","submit",3,"disabled"],["icon","search"],[3,"value"],[1,"flex-fill","layout-row-wrap","gap-2percent","layout-xs-column"],["class","flex-31",4,"ngIf"],["required","","formControlName","outStandingAmountPercentageCondition"],["value","between"],["value","<="],["value",">="],["value","<"],["value",">"],["value","="],["type","number","matInput","","required","","formControlName","minOutStandingAmountPercentage",3,"placeholder"],["type","number","matInput","","required","","formControlName","outStandingAmountPercentage",3,"placeholder"],["type","number","matInput","","required","","formControlName","maxOutStandingAmountPercentage",3,"placeholder"],[1,"flex-fill","layout-row-wrap","gap-2percent","responsive-column"],["required","","formControlName","outstandingAmountCondition"],["type","number","matInput","","required","","formControlName","minOutstandingAmount",3,"placeholder"],["type","number","matInput","","required","","formControlName","outstandingAmount",3,"placeholder"],["type","number","matInput","","required","","formControlName","maxOutstandingAmount",3,"placeholder"],[1,"m-b-20"],["mat-raised-button","","color","primary",3,"click"],["mat-table","","matSort","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","officeName"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","productName"],["matColumnDef","count"],["matColumnDef","outstanding"],["matColumnDef","percentage"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(o,n){o&1&&(x(0,Kvi,150,79,"mat-card",2),t(1,` + `),l(4),g("dataSource",i.dataSource),l(37),g("matHeaderRowDef",i.displayedColumns),l(2),g("matRowDefColumns",i.displayedColumns),l(3),g("pageSizeOptions",ht(7,Evi))}}var JD=(()=>{class e{constructor(i,o,n,c,u){this.formBuilder=i,this.organizationService=o,this.settingsService=n,this.route=c,this.dateUtils=u,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.isCollapsed=!1,this.displayedColumns=["officeName","productName","count","outstanding","percentage"],this.route.data.subscribe(h=>{this.advanceSearchTemplate=h.advanceSearchTemplate})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createFundMappingForm(),this.buildDependencies()}createFundMappingForm(){this.fundMappingForm=this.formBuilder.group({loanStatus:[""],loanProducts:[""],offices:[""],loanDateOption:["",bt.required],loanFromDate:["",bt.required],loanToDate:["",bt.required],includeOutStandingAmountPercentage:[!1],includeOutstandingAmount:[!1]})}buildDependencies(){this.fundMappingForm.get("includeOutStandingAmountPercentage").valueChanges.subscribe(i=>{i?(this.fundMappingForm.addControl("outStandingAmountPercentageCondition",new _e("",bt.required)),this.fundMappingForm.get("outStandingAmountPercentageCondition").valueChanges.subscribe(o=>{o==="between"?(this.fundMappingForm.addControl("minOutStandingAmountPercentage",new _e("",bt.required)),this.fundMappingForm.addControl("maxOutStandingAmountPercentage",new _e("",bt.required)),this.fundMappingForm.removeControl("outStandingAmountPercentage")):(this.fundMappingForm.addControl("outStandingAmountPercentage",new _e("",bt.required)),this.fundMappingForm.removeControl("minOutStandingAmountPercentage"),this.fundMappingForm.removeControl("maxOutStandingAmountPercentage"))}),this.fundMappingForm.get("outStandingAmountPercentageCondition").patchValue("between")):(this.fundMappingForm.removeControl("outStandingAmountPercentageCondition"),this.fundMappingForm.removeControl("minOutStandingAmountPercentage"),this.fundMappingForm.removeControl("maxOutStandingAmountPercentage"),this.fundMappingForm.removeControl("outStandingAmountPercentage"))}),this.fundMappingForm.get("includeOutStandingAmountPercentage").patchValue(!0),this.fundMappingForm.get("includeOutstandingAmount").valueChanges.subscribe(i=>{i?(this.fundMappingForm.addControl("outstandingAmountCondition",new _e("",bt.required)),this.fundMappingForm.get("outstandingAmountCondition").valueChanges.subscribe(o=>{o==="between"?(this.fundMappingForm.addControl("minOutstandingAmount",new _e("",bt.required)),this.fundMappingForm.addControl("maxOutstandingAmount",new _e("",bt.required)),this.fundMappingForm.removeControl("outstandingAmount")):(this.fundMappingForm.addControl("outstandingAmount",new _e("",bt.required)),this.fundMappingForm.removeControl("minOutstandingAmount"),this.fundMappingForm.removeControl("maxOutstandingAmount"))}),this.fundMappingForm.get("outstandingAmountCondition").patchValue("between")):(this.fundMappingForm.removeControl("outstandingAmountCondition"),this.fundMappingForm.removeControl("minOutstandingAmount"),this.fundMappingForm.removeControl("maxOutstandingAmount"),this.fundMappingForm.removeControl("outstandingAmount"))}),this.fundMappingForm.get("includeOutstandingAmount").patchValue(!0)}setLoans(i){this.dataSource=new ci(i),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}submit(){this.isCollapsed=!0;let i=this.fundMappingForm.value,o=this.settingsService.language.code,n=this.settingsService.dateFormat,c=this.fundMappingForm.value.loanFromDate,u=this.fundMappingForm.value.loanToDate;i.loanFromDate instanceof Date&&(i.loanFromDate=this.dateUtils.formatDate(c,n)),i.loanToDate instanceof Date&&(i.loanToDate=this.dateUtils.formatDate(u,n));let h=oi(ye({},i),{entities:["loans"],dateFormat:n,locale:o});this.organizationService.retrieveAdvanceSearchResults(h).subscribe(_=>{this.setLoans(_)})}static{this.\u0275fac=function(o){return new(o||e)(V(xe),V(Ei),V(We),V(Lt),V(_i))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-fund-mapping"]],viewQuery:function(o,n){if(o&1&&(Nt(Je,5),Nt($e,5)),o&2){let c;Bt(c=Rt())&&(n.paginator=c.first),Bt(c=Rt())&&(n.sort=c.first)}},decls:4,vars:2,consts:[["fromDatePicker",""],["toDatePicker",""],["class","container",4,"ngIf"],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2percent","responsive-column","align-start-center"],[1,"flex-48"],["formControlName","loanStatus","multiple",""],["value","all"],["value","active"],["value","closed"],["value","overpaid"],["value","writeoff"],[1,"flex-48","hide-lt-md"],["formControlName","loanProducts","multiple",""],[3,"value",4,"ngFor","ngForOf"],["formControlName","offices","multiple",""],[1,"flex-31"],["required","","formControlName","loanDateOption"],["value","approvalDate"],["value","createdDate"],["value","disbursalDate"],[4,"ngIf"],[1,"flex-31",3,"click"],["matInput","","formControlName","loanFromDate","required","",3,"min","max","matDatepicker","placeholder"],["matSuffix","",3,"for"],["matInput","","formControlName","loanToDate","required","",3,"min","max","matDatepicker","placeholder"],["labelPosition","before","formControlName","includeOutStandingAmountPercentage",1,"margin-b","flex-73"],["class","flex-fill layout-row-wrap gap-2percent layout-xs-column",4,"ngIf"],["labelPosition","before","formControlName","includeOutstandingAmount",1,"flex-73","margin-b"],["class","flex-fill layout-row-wrap gap-2percent responsive-column",4,"ngIf"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary","type","submit",3,"disabled"],["icon","search"],[3,"value"],[1,"flex-fill","layout-row-wrap","gap-2percent","layout-xs-column"],["class","flex-31",4,"ngIf"],["required","","formControlName","outStandingAmountPercentageCondition"],["value","between"],["value","<="],["value",">="],["value","<"],["value",">"],["value","="],["type","number","matInput","","required","","formControlName","minOutStandingAmountPercentage",3,"placeholder"],["type","number","matInput","","required","","formControlName","outStandingAmountPercentage",3,"placeholder"],["type","number","matInput","","required","","formControlName","maxOutStandingAmountPercentage",3,"placeholder"],[1,"flex-fill","layout-row-wrap","gap-2percent","responsive-column"],["required","","formControlName","outstandingAmountCondition"],["type","number","matInput","","required","","formControlName","minOutstandingAmount",3,"placeholder"],["type","number","matInput","","required","","formControlName","outstandingAmount",3,"placeholder"],["type","number","matInput","","required","","formControlName","maxOutstandingAmount",3,"placeholder"],[1,"m-b-20"],["mat-raised-button","","color","primary",3,"click"],["mat-table","","matSort","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","officeName"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","productName"],["matColumnDef","count"],["matColumnDef","outstanding"],["matColumnDef","percentage"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(o,n){o&1&&(x(0,Yvi,150,79,"mat-card",2),t(1,` -`),x(2,cbi,56,8,"div",2),t(3,` -`)),o&2&&(g("ngIf",!n.isCollapsed),l(2),g("ngIf",n.isCollapsed))},dependencies:[St,se,zt,wt,ge,Se,Gn,re,ue,Ie,fe,he,qt,oe,me,Ue,Ht,$t,Te,Si,Zt,Oe,De,Mi,Di,Ti,Dt,Ai,Et,Gt,Fe,$e,Ne,Re,Le,wi,Be,Ve,ze,qe,je,He,Je],styles:[".container[_ngcontent-%COMP%]{max-width:73rem}.container[_ngcontent-%COMP%] .margin-v[_ngcontent-%COMP%]{margin:1em 0}.container[_ngcontent-%COMP%] .margin-b[_ngcontent-%COMP%]{margin:0 0 1em}.container[_ngcontent-%COMP%] .margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();var ZD=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var XD=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var t6=(()=>{class e{get data(){return this.dataChange.value}constructor(){this.dataChange=new _s([]),this.TREE_DATA={}}initialize(i){this.TREE_DATA=i;let o=this.buildFileTree(this.TREE_DATA,0);this.dataChange.next(o)}buildFileTree(i,o){return Object.keys(i).reduce((n,c)=>{let u=i[c],h=new XD;return h.item=c,u!=null&&(typeof u=="object"?h.children=this.buildFileTree(u,o+1):h.item=u),n.concat(h)},[])}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var e6=(()=>{class e{setEmptyObjectsToNull(i){Object.keys(i).forEach(o=>{Object.keys(i[o]).length===0?i[o]=null:this.setEmptyObjectsToNull(i[o])})}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var dbi=()=>["../"];function ubi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` +`),x(2,lbi,56,8,"div",2),t(3,` +`)),o&2&&(g("ngIf",!n.isCollapsed),l(2),g("ngIf",n.isCollapsed))},dependencies:[St,se,zt,wt,ge,Se,Gn,re,ue,Ie,fe,he,qt,oe,me,Ue,Ht,$t,Te,Si,Zt,Oe,De,Mi,Di,Ti,Dt,Ai,Et,Gt,Fe,$e,Ne,Re,Le,wi,Be,Ve,ze,qe,je,He,Je],styles:[".container[_ngcontent-%COMP%]{max-width:73rem}.container[_ngcontent-%COMP%] .margin-v[_ngcontent-%COMP%]{margin:1em 0}.container[_ngcontent-%COMP%] .margin-b[_ngcontent-%COMP%]{margin:0 0 1em}.container[_ngcontent-%COMP%] .margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();var ZD=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var XD=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var t6=(()=>{class e{get data(){return this.dataChange.value}constructor(){this.dataChange=new _s([]),this.TREE_DATA={}}initialize(i){this.TREE_DATA=i;let o=this.buildFileTree(this.TREE_DATA,0);this.dataChange.next(o)}buildFileTree(i,o){return Object.keys(i).reduce((n,c)=>{let u=i[c],h=new XD;return h.item=c,u!=null&&(typeof u=="object"?h.children=this.buildFileTree(u,o+1):h.item=u),n.concat(h)},[])}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var e6=(()=>{class e{setEmptyObjectsToNull(i){Object.keys(i).forEach(o=>{Object.keys(i[o]).length===0?i[o]=null:this.setEmptyObjectsToNull(i[o])})}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var mbi=()=>["../"];function dbi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.name")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function fbi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `),l(4),b(d(6,7,"labels.commons.required")))}function ubi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.From Date")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function hbi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `),l(4),b(d(6,7,"labels.commons.required")))}function fbi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.To Date")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function gbi(e,r){if(e&1&&(a(0,"mat-option",22),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` + `),l(4),b(d(6,7,"labels.commons.required")))}function hbi(e,r){if(e&1&&(a(0,"mat-option",22),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` `,i.value,` - `)}}function xbi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `)}}function gbi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.Repayment Scheduling Type")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function _bi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `),l(4),b(d(6,7,"labels.commons.required")))}function xbi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.Repayment scheduled to")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function vbi(e,r){if(e&1){let i=st();a(0,"mat-form-field",8),q("click",function(){W(i);let n=Mt(11);return Q(n.open())}),t(1,` + `),l(4),b(d(6,7,"labels.commons.required")))}function _bi(e,r){if(e&1){let i=st();a(0,"mat-form-field",8),q("click",function(){W(i);let n=Mt(11);return Q(n.open())}),t(1,` `),a(2,"mat-label"),t(3),m(4,"translate"),s(),t(5,` `),k(6,"input",23),t(7,` `),k(8,"mat-datepicker-toggle",10),t(9,` `),k(10,"mat-datepicker",null,2),t(12,` - `),x(13,_bi,8,9,"mat-error",7),t(14,` - `),s()}if(e&2){let i=Mt(11),o=A();l(3),b(d(4,6,"labels.inputs.Repayment scheduled to")),l(3),g("min",o.minDate)("max",o.maxDate)("matDatepicker",i),l(2),g("for",i),l(5),g("ngIf",o.holidayForm.controls.repaymentsRescheduledTo.hasError("required"))}}function bbi(e,r){if(e&1){let i=st();a(0,"mat-tree-node",24),t(1,` + `),x(13,xbi,8,9,"mat-error",7),t(14,` + `),s()}if(e&2){let i=Mt(11),o=A();l(3),b(d(4,6,"labels.inputs.Repayment scheduled to")),l(3),g("min",o.minDate)("max",o.maxDate)("matDatepicker",i),l(2),g("for",i),l(5),g("ngIf",o.holidayForm.controls.repaymentsRescheduledTo.hasError("required"))}}function vbi(e,r){if(e&1){let i=st();a(0,"mat-tree-node",24),t(1,` `),k(2,"button",25),t(3,` `),a(4,"mat-checkbox",26),q("change",function(){let n=W(i).$implicit,c=A();return Q(c.officeLeafItemSelectionToggle(n))}),t(5),s(),t(6,` - `),s()}if(e&2){let i=r.$implicit,o=A();l(4),g("checked",o.checklistSelection.isSelected(i)),l(),b(o.officesDict[i.item].name)}}function Cbi(e,r){if(e&1){let i=st();a(0,"mat-tree-node",27),t(1,` + `),s()}if(e&2){let i=r.$implicit,o=A();l(4),g("checked",o.checklistSelection.isSelected(i)),l(),b(o.officesDict[i.item].name)}}function bbi(e,r){if(e&1){let i=st();a(0,"mat-tree-node",27),t(1,` `),a(2,"button",28),t(3,` `),a(4,"mat-icon",29),t(5),s(),t(6,` `),s(),t(7,` `),a(8,"mat-checkbox",30),q("change",function(){let n=W(i).$implicit,c=A();return Q(c.officeItemSelectionToggle(n))}),t(9),s(),t(10,` `),s()}if(e&2){let i=r.$implicit,o=A();l(2),kr("aria-label","toggle "+i.filename),l(3),P(` `,o.treeControl.isExpanded(i)?"expand_more":"chevron_right",` - `),l(3),g("checked",o.descendantsAllSelected(i)),l(),b(o.officesDict[i.item].name)}}function ybi(e,r){if(e&1&&(a(0,"button",31),t(1),m(2,"translate"),s()),e&2){let i=A();g("disabled",!i.holidayForm.valid),l(),P(` + `),l(3),g("checked",o.descendantsAllSelected(i)),l(),b(o.officesDict[i.item].name)}}function Cbi(e,r){if(e&1&&(a(0,"button",31),t(1),m(2,"translate"),s()),e&2){let i=A();g("disabled",!i.holidayForm.valid),l(),P(` `,d(2,2,"labels.buttons.Submit"),` `)}}var i6=(()=>{class e{constructor(i,o,n,c,u,h,_,y){this.formBuilder=i,this.route=o,this.dateUtils=n,this.organizationService=c,this.settings=u,this.router=h,this._database=_,this.createHoliday=y,this.minDate=new Date(2e3,0,1),this.maxDate=new Date(2100,0,1),this.officesDict={},this.flatNodeMap=new Map,this.nestedNodeMap=new Map,this.selectedParent=null,this.newItemName="",this.checklistSelection=new qs(!0),this.getLevel=C=>C.level,this.isExpandable=C=>C.expandable,this.getChildren=C=>C.children,this.hasChild=(C,E)=>E.expandable,this.hasNoContent=(C,E)=>E.item==="",this.transformer=(C,E)=>{let T=this.nestedNodeMap.get(C),D=T&&T.item===C.item?T:new ZD;return D.item=C.item,D.level=E,D.expandable=!!C.children?.length,this.flatNodeMap.set(D,C),this.nestedNodeMap.set(C,D),D},this.route.data.subscribe(C=>{this.officesData=C.offices,this.repaymentSchedulingTypes=C.holidayTemplate,this.constructOfficeHierarchy(),_.initialize(this.officesTrie)}),this.treeFlattener=new cW(this.transformer,this.getLevel,this.isExpandable,this.getChildren),this.treeControl=new sW(this.getLevel,this.isExpandable),this.dataSource=new pW(this.treeControl,this.treeFlattener),this._database.dataChange.subscribe(C=>{this.dataSource.data=C})}constructOfficeHierarchy(){let i={};this.officesData.forEach(o=>{this.officesDict[o.id]=o;let n=o.hierarchy.split(".");n=n.filter(u=>u.length>0);let c=i;n.length===0?c[o.id]={}:(c=i[Object.keys(i)[0]],n.forEach(u=>{u in c||(c[u]={}),c=c[u]}))}),this.createHoliday.setEmptyObjectsToNull(i),this.officesTrie=i}descendantsAllSelected(i){return this.checklistSelection.isSelected(i)}descendantsPartiallySelected(i){return this.treeControl.getDescendants(i).some(c=>this.checklistSelection.isSelected(c))&&!this.descendantsAllSelected(i)}setSelectedOffices(){this.holidayForm.patchValue({offices:this.checklistSelection.selected.map(i=>i.item)})}officeItemSelectionToggle(i){this.checklistSelection.toggle(i);let o=this.treeControl.getDescendants(i);this.checklistSelection.isSelected(i)?this.checklistSelection.select(...o):this.checklistSelection.deselect(...o),o.forEach(n=>this.checklistSelection.isSelected(n)),this.setSelectedOffices()}officeLeafItemSelectionToggle(i){this.checklistSelection.toggle(i),this.setSelectedOffices()}checkAllParentsSelection(i){let o=this.getParentNode(i);for(;o;)this.checkRootNodeSelection(o),o=this.getParentNode(o)}checkRootNodeSelection(i){let o=this.checklistSelection.isSelected(i),n=this.treeControl.getDescendants(i),c=n.length>0&&n.every(u=>this.checklistSelection.isSelected(u));o&&!c?this.checklistSelection.deselect(i):!o&&c&&this.checklistSelection.select(i)}getParentNode(i){let o=this.getLevel(i);if(o<1)return null;let n=this.treeControl.dataNodes.indexOf(i)-1;for(let c=n;c>=0;c--){let u=this.treeControl.dataNodes[c];if(this.getLevel(u){i===2?this.holidayForm.addControl("repaymentsRescheduledTo",new _e("",bt.required)):this.holidayForm.removeControl("repaymentsRescheduledTo")})}submit(){let i=this.holidayForm.value,o=this.settings.dateFormat,n=this.settings.language.code,c=this.holidayForm.value.fromDate,u=this.holidayForm.value.toDate;if(i.fromDate=this.dateUtils.formatDate(c,o),i.toDate=this.dateUtils.formatDate(u,o),this.holidayForm.contains("repaymentsRescheduledTo")){let y=this.holidayForm.value.repaymentsRescheduledTo;i.repaymentsRescheduledTo=this.dateUtils.formatDate(y,o)}let h=this.holidayForm.value.offices.map(y=>({officeId:Number.parseInt(y,10)})),_=oi(ye({},i),{dateFormat:o,locale:n,offices:h});this.organizationService.createHoliday(_).subscribe(y=>{this.router.navigate(["../",y.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(o){return new(o||e)(V(xe),V(Lt),V(_i),V(Ei),V(We),V(te),V(t6),V(e6))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-create-holiday"]],decls:103,vars:42,consts:[["fromDatePicker",""],["toDatePicker",""],["repaymentDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","autofocus","","formControlName","name"],[4,"ngIf"],[3,"click"],["matInput","","required","","formControlName","fromDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","required","","formControlName","toDate",3,"min","max","matDatepicker"],["required","","formControlName","reschedulingType"],[3,"value",4,"ngFor","ngForOf"],[3,"click",4,"ngIf"],["matInput","","formControlName","description"],[3,"dataSource","treeControl"],["matTreeNodeToggle","","matTreeNodePadding","",4,"matTreeNodeDef"],["matTreeNodePadding","",4,"matTreeNodeDef","matTreeNodeDefWhen"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],[3,"value"],["matInput","","required","","formControlName","repaymentsRescheduledTo",3,"min","max","matDatepicker"],["matTreeNodeToggle","","matTreeNodePadding",""],["mat-icon-button","","disabled",""],[1,"checklist-leaf-node",3,"change","checked"],["matTreeNodePadding",""],["type","button","mat-icon-button","","matTreeNodeToggle",""],[1,"mat-icon-rtl-mirror"],[3,"change","checked"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(o,n){if(o&1){let c=st();a(0,"div",3),t(1,` `),a(2,"mat-card"),t(3,` @@ -39836,7 +39836,7 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),a(10,"mat-form-field"),t(11,` `),a(12,"mat-label"),t(13),m(14,"translate"),s(),t(15,` `),k(16,"input",6),t(17,` - `),x(18,ubi,8,9,"mat-error",7),t(19,` + `),x(18,dbi,8,9,"mat-error",7),t(19,` `),s(),t(20,` `),a(21,"mat-form-field",8),q("click",function(){W(c);let h=Mt(32);return Q(h.open())}),t(22,` @@ -39844,7 +39844,7 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),k(27,"input",9),t(28,` `),k(29,"mat-datepicker-toggle",10),t(30,` `),k(31,"mat-datepicker",null,0),t(33,` - `),x(34,fbi,8,9,"mat-error",7),t(35,` + `),x(34,ubi,8,9,"mat-error",7),t(35,` `),s(),t(36,` `),a(37,"mat-form-field",8),q("click",function(){W(c);let h=Mt(48);return Q(h.open())}),t(38,` @@ -39852,18 +39852,18 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),k(43,"input",11),t(44,` `),k(45,"mat-datepicker-toggle",10),t(46,` `),k(47,"mat-datepicker",null,1),t(49,` - `),x(50,hbi,8,9,"mat-error",7),t(51,` + `),x(50,fbi,8,9,"mat-error",7),t(51,` `),s(),t(52,` `),a(53,"mat-form-field"),t(54,` `),a(55,"mat-label"),t(56),m(57,"translate"),s(),t(58,` `),a(59,"mat-select",12),t(60,` - `),x(61,gbi,2,2,"mat-option",13),t(62,` + `),x(61,hbi,2,2,"mat-option",13),t(62,` `),s(),t(63,` - `),x(64,xbi,8,9,"mat-error",7),t(65,` + `),x(64,gbi,8,9,"mat-error",7),t(65,` `),s(),t(66,` - `),x(67,vbi,15,8,"mat-form-field",14),t(68,` + `),x(67,_bi,15,8,"mat-form-field",14),t(68,` `),a(69,"mat-form-field"),t(70,` `),a(71,"mat-label"),t(72),m(73,"translate"),s(),t(74,` @@ -39873,27 +39873,27 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),a(78,"label"),t(79),m(80,"translate"),s(),t(81,` `),a(82,"mat-tree",16),t(83,` - `),x(84,bbi,7,2,"mat-tree-node",17),t(85,` + `),x(84,vbi,7,2,"mat-tree-node",17),t(85,` - `),x(86,Cbi,11,4,"mat-tree-node",18),t(87,` + `),x(86,bbi,11,4,"mat-tree-node",18),t(87,` `),s(),t(88,` `),s(),t(89,` `),s(),t(90,` `),a(91,"mat-card-actions",19),t(92,` `),a(93,"button",20),t(94),m(95,"translate"),s(),t(96,` - `),x(97,ybi,3,4,"button",21),t(98,` + `),x(97,Cbi,3,4,"button",21),t(98,` `),s(),t(99,` `),s(),t(100,` `),s(),t(101,` `),s(),t(102,` -`)}if(o&2){let c=Mt(32),u=Mt(48);l(4),g("formGroup",n.holidayForm),l(9),b(d(14,27,"labels.inputs.name")),l(5),g("ngIf",n.holidayForm.controls.name.hasError("required")),l(6),b(d(25,29,"labels.inputs.From Date")),l(3),g("min",n.minDate)("max",n.maxDate)("matDatepicker",c),l(2),g("for",c),l(5),g("ngIf",n.holidayForm.controls.fromDate.hasError("required")),l(6),b(d(41,31,"labels.inputs.To Date")),l(3),g("min",n.minDate)("max",n.maxDate)("matDatepicker",u),l(2),g("for",u),l(5),g("ngIf",n.holidayForm.controls.toDate.hasError("required")),l(6),b(d(57,33,"labels.inputs.Repayment Scheduling Type")),l(5),g("ngForOf",n.repaymentSchedulingTypes),l(3),g("ngIf",n.holidayForm.controls.reschedulingType.hasError("required")),l(3),g("ngIf",n.holidayForm.contains("repaymentsRescheduledTo")),l(5),b(d(73,35,"labels.inputs.Description")),l(7),b(d(80,37,"labels.inputs.Select applicable offices")),l(3),g("dataSource",n.dataSource)("treeControl",n.treeControl),l(4),g("matTreeNodeDefWhen",n.hasChild),l(7),g("routerLink",ht(41,dbi)),l(),P(` +`)}if(o&2){let c=Mt(32),u=Mt(48);l(4),g("formGroup",n.holidayForm),l(9),b(d(14,27,"labels.inputs.name")),l(5),g("ngIf",n.holidayForm.controls.name.hasError("required")),l(6),b(d(25,29,"labels.inputs.From Date")),l(3),g("min",n.minDate)("max",n.maxDate)("matDatepicker",c),l(2),g("for",c),l(5),g("ngIf",n.holidayForm.controls.fromDate.hasError("required")),l(6),b(d(41,31,"labels.inputs.To Date")),l(3),g("min",n.minDate)("max",n.maxDate)("matDatepicker",u),l(2),g("for",u),l(5),g("ngIf",n.holidayForm.controls.toDate.hasError("required")),l(6),b(d(57,33,"labels.inputs.Repayment Scheduling Type")),l(5),g("ngForOf",n.repaymentSchedulingTypes),l(3),g("ngIf",n.holidayForm.controls.reschedulingType.hasError("required")),l(3),g("ngIf",n.holidayForm.contains("repaymentsRescheduledTo")),l(5),b(d(73,35,"labels.inputs.Description")),l(7),b(d(80,37,"labels.inputs.Select applicable offices")),l(3),g("dataSource",n.dataSource)("treeControl",n.treeControl),l(4),g("matTreeNodeDefWhen",n.hasChild),l(7),g("routerLink",ht(41,mbi)),l(),P(` `,d(95,39,"labels.buttons.Cancel"),` - `),l(3),g("mifosxHasPermission","CREATE_HOLIDAY")}},dependencies:[St,se,zt,wt,ge,Se,re,ue,Ie,fe,he,qt,oe,me,Ue,Ht,$t,Te,Si,Zt,Oe,De,Mi,Di,Ti,Dt,Ai,de,Et,Wg,$g,Ug,Qg,lW,Hi,Yo],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var RV=(()=>{class e{constructor(i){this.organizationService=i}resolve(i){let o=i.paramMap.get("id");return this.organizationService.getProvisioningCriteria(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var Fc=(()=>{class e{constructor(i){this.organizationService=i}resolve(){return this.organizationService.getOffices()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var NV=(()=>{class e{constructor(i){this.organizationService=i}resolve(){return this.organizationService.getEmployees()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var LV=(()=>{class e{constructor(i){this.organizationService=i}resolve(i){let o=i.paramMap.get("id");return this.organizationService.getEmployee(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var VV=(()=>{class e{constructor(i){this.organizationService=i}resolve(i){let o=i.paramMap.get("id");return this.organizationService.getEmployee(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var n6=(()=>{class e{constructor(i){this.organizationService=i}resolve(){return this.organizationService.getCurrencies()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var zV=(()=>{class e{constructor(i){this.organizationService=i}resolve(){return this.organizationService.getSmsCampaigns()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var jV=(()=>{class e{constructor(i){this.organizationService=i}resolve(){return this.organizationService.getAdhocQueries()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var qV=(()=>{class e{constructor(i){this.organizationService=i}resolve(i){let o=i.paramMap.get("id");return this.organizationService.getAdhocQuery(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var HV=(()=>{class e{constructor(i){this.organizationService=i}resolve(){return this.organizationService.getTellers()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var r6=(()=>{class e{constructor(i){this.organizationService=i}resolve(i){let o=i.paramMap.get("id");return this.organizationService.getTeller(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var o6=(()=>{class e{constructor(i){this.organizationService=i}resolve(i){let o=i.paramMap.get("id");return o?this.organizationService.getPaymentType(o):this.organizationService.getPaymentTypes()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var GV=(()=>{class e{constructor(i){this.organizationService=i}resolve(){return this.organizationService.getPasswordPreferencesTemplate()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var UV=(()=>{class e{constructor(i){this.organizationService=i}resolve(){return this.organizationService.getEntityDataTableChecks()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var $V=(()=>{class e{constructor(i){this.organizationService=i}resolve(){return this.organizationService.getWorkingDays()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var WV=(()=>{class e{constructor(i){this.organizationService=i}resolve(i){let o=i.paramMap.get("officeId");return this.organizationService.getOffice(o,!0)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var QV=(()=>{class e{constructor(i){this.organizationService=i}resolve(){return this.organizationService.getAdhocQueryTemplate()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var a6=(()=>{class e{constructor(i){this.organizationService=i}resolve(){return this.organizationService.getProvisioningCriterias()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var s6=(()=>{class e{constructor(i){this.organizationService=i}resolve(i){let o=i.paramMap.get("id"),n=i.parent.parent.paramMap.get("id");return this.organizationService.getCashier(n,o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var YV=(()=>{class e{constructor(i){this.organizationService=i}resolve(i){let o=i.parent.paramMap.get("id");return this.organizationService.getCashiers(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var r_=(()=>{class e{constructor(i){this.organizationService=i}resolve(i){let o=i.paramMap.get("id");return this.organizationService.getHoliday(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var KV=(()=>{class e{constructor(i){this.organizationService=i}resolve(i){let o=i.parent.paramMap.get("officeId");return this.organizationService.getOffice(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var JV=(()=>{class e{constructor(i){this.systemService=i}resolve(i){let o=i.parent.parent.paramMap.get("officeId"),n=i.paramMap.get("datatableName");return this.systemService.getEntityDatatable(o,n)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ci))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var ZV=(()=>{class e{constructor(i){this.systemService=i}resolve(i){return this.systemService.getEntityDatatables("m_office")}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ci))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var XV=(()=>{class e{constructor(i){this.organizationService=i}resolve(i){let o=i.paramMap.get("id");return this.organizationService.getSmsCampaign(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var l6=(()=>{class e{constructor(i){this.organizationService=i}resolve(){return this.organizationService.getFunds()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var c6=(()=>{class e{constructor(i){this.organizationService=i}resolve(i){let o=i.parent.paramMap.get("id"),n=i.parent.parent.paramMap.get("id");return this.organizationService.getCashierTransactionTemplate(n,o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var p6=(()=>{class e{constructor(i){this.organizationService=i}resolve(i){let o=i.parent.parent.paramMap.get("id");return this.organizationService.getCashierTemplate(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var m6=(()=>{class e{constructor(i){this.organizationService=i}resolve(){return this.organizationService.getHolidayTemplate()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var tz=(()=>{class e{constructor(i){this.organizationService=i}resolve(i){let o=i.paramMap.get("id");return this.organizationService.getAdhocQueryAndTemplate(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var ez=(()=>{class e{constructor(i){this.organizationService=i,this.bulkImportsArray=VD}getEntityName(i){return this.bulkImportsArray.find(n=>i===n.name).entityType}resolve(i){let o=this.getEntityName(i.params["import-name"]);return this.organizationService.getImports(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var d6=(()=>{class e{constructor(i){this.organizationService=i}resolve(){return this.organizationService.getSmsCampaignTemplate()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var iz=(()=>{class e{constructor(i){this.organizationService=i}resolve(){return this.organizationService.getEntityDataTableChecksTemplate()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var nz=(()=>{class e{constructor(i){this.organizationService=i}resolve(){return this.organizationService.getProvisioningCriteriaTemplate()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var rz=(()=>{class e{constructor(i){this.organizationService=i}resolve(i){let o=i.paramMap.get("id");return this.organizationService.getProvisioningCriteria(o,!0)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var oz=(()=>{class e{constructor(i){this.organizationService=i}resolve(){return this.organizationService.getStandingInstructionTemplate()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var az=(()=>{class e{constructor(i){this.organizationService=i}resolve(){return this.organizationService.getAdvanceSearchTemplate()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var u6=(()=>{class e{constructor(i){this.organizationService=i}resolve(i){let o=i.paramMap.get("id");return this.organizationService.getFund(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Sbi=()=>["../"],wbi=()=>["edit"];function Ebi(e,r){e&1&&(a(0,"button",9),t(1,` - `),k(2,"fa-icon",10),t(3),m(4,"translate"),s()),e&2&&(g("routerLink",ht(4,wbi)),l(3),P(` + `),l(3),g("mifosxHasPermission","CREATE_HOLIDAY")}},dependencies:[St,se,zt,wt,ge,Se,re,ue,Ie,fe,he,qt,oe,me,Ue,Ht,$t,Te,Si,Zt,Oe,De,Mi,Di,Ti,Dt,Ai,de,Et,Wg,$g,Ug,Qg,lW,Hi,Yo],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var RV=(()=>{class e{constructor(i){this.organizationService=i}resolve(i){let o=i.paramMap.get("id");return this.organizationService.getProvisioningCriteria(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var Fc=(()=>{class e{constructor(i){this.organizationService=i}resolve(){return this.organizationService.getOffices()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var NV=(()=>{class e{constructor(i){this.organizationService=i}resolve(){return this.organizationService.getEmployees()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var LV=(()=>{class e{constructor(i){this.organizationService=i}resolve(i){let o=i.paramMap.get("id");return this.organizationService.getEmployee(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var VV=(()=>{class e{constructor(i){this.organizationService=i}resolve(i){let o=i.paramMap.get("id");return this.organizationService.getEmployee(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var n6=(()=>{class e{constructor(i){this.organizationService=i}resolve(){return this.organizationService.getCurrencies()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var zV=(()=>{class e{constructor(i){this.organizationService=i}resolve(){return this.organizationService.getSmsCampaigns()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var jV=(()=>{class e{constructor(i){this.organizationService=i}resolve(){return this.organizationService.getAdhocQueries()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var qV=(()=>{class e{constructor(i){this.organizationService=i}resolve(i){let o=i.paramMap.get("id");return this.organizationService.getAdhocQuery(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var HV=(()=>{class e{constructor(i){this.organizationService=i}resolve(){return this.organizationService.getTellers()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var r6=(()=>{class e{constructor(i){this.organizationService=i}resolve(i){let o=i.paramMap.get("id");return this.organizationService.getTeller(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var o6=(()=>{class e{constructor(i){this.organizationService=i}resolve(i){let o=i.paramMap.get("id");return o?this.organizationService.getPaymentType(o):this.organizationService.getPaymentTypes()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var GV=(()=>{class e{constructor(i){this.organizationService=i}resolve(){return this.organizationService.getPasswordPreferencesTemplate()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var UV=(()=>{class e{constructor(i){this.organizationService=i}resolve(){return this.organizationService.getEntityDataTableChecks()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var $V=(()=>{class e{constructor(i){this.organizationService=i}resolve(){return this.organizationService.getWorkingDays()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var WV=(()=>{class e{constructor(i){this.organizationService=i}resolve(i){let o=i.paramMap.get("officeId");return this.organizationService.getOffice(o,!0)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var QV=(()=>{class e{constructor(i){this.organizationService=i}resolve(){return this.organizationService.getAdhocQueryTemplate()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var a6=(()=>{class e{constructor(i){this.organizationService=i}resolve(){return this.organizationService.getProvisioningCriterias()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var s6=(()=>{class e{constructor(i){this.organizationService=i}resolve(i){let o=i.paramMap.get("id"),n=i.parent.parent.paramMap.get("id");return this.organizationService.getCashier(n,o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var YV=(()=>{class e{constructor(i){this.organizationService=i}resolve(i){let o=i.parent.paramMap.get("id");return this.organizationService.getCashiers(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var r_=(()=>{class e{constructor(i){this.organizationService=i}resolve(i){let o=i.paramMap.get("id");return this.organizationService.getHoliday(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var KV=(()=>{class e{constructor(i){this.organizationService=i}resolve(i){let o=i.parent.paramMap.get("officeId");return this.organizationService.getOffice(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var JV=(()=>{class e{constructor(i){this.systemService=i}resolve(i){let o=i.parent.parent.paramMap.get("officeId"),n=i.paramMap.get("datatableName");return this.systemService.getEntityDatatable(o,n)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ci))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var ZV=(()=>{class e{constructor(i){this.systemService=i}resolve(i){return this.systemService.getEntityDatatables("m_office")}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ci))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var XV=(()=>{class e{constructor(i){this.organizationService=i}resolve(i){let o=i.paramMap.get("id");return this.organizationService.getSmsCampaign(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var l6=(()=>{class e{constructor(i){this.organizationService=i}resolve(){return this.organizationService.getFunds()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var c6=(()=>{class e{constructor(i){this.organizationService=i}resolve(i){let o=i.parent.paramMap.get("id"),n=i.parent.parent.paramMap.get("id");return this.organizationService.getCashierTransactionTemplate(n,o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var p6=(()=>{class e{constructor(i){this.organizationService=i}resolve(i){let o=i.parent.parent.paramMap.get("id");return this.organizationService.getCashierTemplate(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var m6=(()=>{class e{constructor(i){this.organizationService=i}resolve(){return this.organizationService.getHolidayTemplate()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var tz=(()=>{class e{constructor(i){this.organizationService=i}resolve(i){let o=i.paramMap.get("id");return this.organizationService.getAdhocQueryAndTemplate(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var ez=(()=>{class e{constructor(i){this.organizationService=i,this.bulkImportsArray=VD}getEntityName(i){return this.bulkImportsArray.find(n=>i===n.name).entityType}resolve(i){let o=this.getEntityName(i.params["import-name"]);return this.organizationService.getImports(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var d6=(()=>{class e{constructor(i){this.organizationService=i}resolve(){return this.organizationService.getSmsCampaignTemplate()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var iz=(()=>{class e{constructor(i){this.organizationService=i}resolve(){return this.organizationService.getEntityDataTableChecksTemplate()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var nz=(()=>{class e{constructor(i){this.organizationService=i}resolve(){return this.organizationService.getProvisioningCriteriaTemplate()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var rz=(()=>{class e{constructor(i){this.organizationService=i}resolve(i){let o=i.paramMap.get("id");return this.organizationService.getProvisioningCriteria(o,!0)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var oz=(()=>{class e{constructor(i){this.organizationService=i}resolve(){return this.organizationService.getStandingInstructionTemplate()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var az=(()=>{class e{constructor(i){this.organizationService=i}resolve(){return this.organizationService.getAdvanceSearchTemplate()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var u6=(()=>{class e{constructor(i){this.organizationService=i}resolve(i){let o=i.paramMap.get("id");return this.organizationService.getFund(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ei))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var ybi=()=>["../"],Sbi=()=>["edit"];function wbi(e,r){e&1&&(a(0,"button",9),t(1,` + `),k(2,"fa-icon",10),t(3),m(4,"translate"),s()),e&2&&(g("routerLink",ht(4,Sbi)),l(3),P(` `,d(4,2,"labels.buttons.Edit"),` `))}var f6=(()=>{class e{constructor(i){this.route=i,this.route.data.subscribe(o=>{this.fundData=o.fundData})}static{this.\u0275fac=function(o){return new(o||e)(V(Lt))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-view-fund"]],decls:40,vars:14,consts:[[1,"layout-row","align-end","gap-2px","responsive-column","container","m-b-20"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row-wrap"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],["completed","true",3,"externalId"],[1,"layout-row","layout-align-center","gap-2percent","column-on-mobile"],["type","button","mat-raised-button","","color","primary",3,"routerLink"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"]],template:function(o,n){o&1&&(a(0,"div",0),t(1,` - `),x(2,Ebi,5,5,"button",1),t(3,` + `),x(2,wbi,5,5,"button",1),t(3,` `),s(),t(4,` `),a(5,"div",2),t(6,` @@ -39923,12 +39923,12 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `,n.fundData.name,` `),l(3),P(` `,d(22,9,"labels.inputs.External Id"),` - `),l(5),Xt("externalId",n.fundData.externalId),l(6),g("routerLink",ht(13,Sbi)),l(),P(` + `),l(5),Xt("externalId",n.fundData.externalId),l(6),g("routerLink",ht(13,ybi)),l(),P(` `,d(34,11,"labels.buttons.Back"),` - `))},dependencies:[St,wt,qt,oe,me,Dt,de,Et,Gt,La],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}"]})}}return e})();var Pbi=()=>["../"];function kbi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `))},dependencies:[St,wt,qt,oe,me,Dt,de,Et,Gt,La],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}"]})}}return e})();var Ebi=()=>["../"];function Pbi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.name")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function Ibi(e,r){if(e&1&&(a(0,"button",9),t(1),m(2,"translate"),s()),e&2){let i=A();g("disabled",!i.fundForm.valid),l(),P(` + `),l(4),b(d(6,7,"labels.commons.required")))}function kbi(e,r){if(e&1&&(a(0,"button",9),t(1),m(2,"translate"),s()),e&2){let i=A();g("disabled",!i.fundForm.valid),l(),P(` `,d(2,2,"labels.buttons.Submit"),` `)}}var h6=(()=>{class e{constructor(i,o,n,c){this.organizationService=i,this.formBuilder=o,this.router=n,this.route=c,this.route.data.subscribe(u=>{this.fundData=u.fundData})}ngOnInit(){this.createFundForm()}createFundForm(){this.fundForm=this.formBuilder.group({name:[this.fundData.name,bt.required],externalId:[this.fundData.externalId]})}submit(){let i=this.fundForm.getRawValue();this.organizationService.editFund(this.fundData.id.toString(),i).subscribe(o=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(o){return new(o||e)(V(Ei),V(xe),V(te),V(Lt))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-edit-fund"]],decls:44,vars:14,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","autofocus","","formControlName","name"],[4,"ngIf"],["matInput","","autofocus","","formControlName","externalId"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(o,n){o&1&&(a(0,"div",0),t(1,` `),a(2,"mat-card"),t(3,` @@ -39938,7 +39938,7 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),a(10,"mat-form-field"),t(11,` `),a(12,"mat-label"),t(13),m(14,"translate"),s(),t(15,` `),k(16,"input",3),t(17,` - `),x(18,kbi,8,9,"mat-error",4),t(19,` + `),x(18,Pbi,8,9,"mat-error",4),t(19,` `),s(),t(20,` `),a(21,"mat-form-field"),t(22,` @@ -39950,17 +39950,17 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),a(32,"mat-card-actions",6),t(33,` `),a(34,"button",7),t(35),m(36,"translate"),s(),t(37,` - `),x(38,Ibi,3,4,"button",8),t(39,` + `),x(38,kbi,3,4,"button",8),t(39,` `),s(),t(40,` `),s(),t(41,` `),s(),t(42,` `),s(),t(43,` -`)),o&2&&(l(4),g("formGroup",n.fundForm),l(9),b(d(14,7,"labels.inputs.name")),l(5),g("ngIf",n.fundForm.controls.name.hasError("required")),l(6),b(d(25,9,"labels.inputs.External Id")),l(10),g("routerLink",ht(13,Pbi)),l(),P(` +`)),o&2&&(l(4),g("formGroup",n.fundForm),l(9),b(d(14,7,"labels.inputs.name")),l(5),g("ngIf",n.fundForm.controls.name.hasError("required")),l(6),b(d(25,9,"labels.inputs.External Id")),l(10),g("routerLink",ht(13,Ebi)),l(),P(` `,d(36,11,"labels.buttons.Cancel"),` - `),l(3),g("mifosxHasPermission","UPDATE_FUND"))},dependencies:[St,zt,wt,ge,Se,re,ue,Ie,fe,he,qt,oe,me,Ue,Ht,$t,Te,Zt,Dt,de,Et],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var Tbi=()=>["../"];function Mbi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `),l(3),g("mifosxHasPermission","UPDATE_FUND"))},dependencies:[St,zt,wt,ge,Se,re,ue,Ie,fe,he,qt,oe,me,Ue,Ht,$t,Te,Zt,Dt,de,Et],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var Ibi=()=>["../"];function Tbi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.name")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function Dbi(e,r){if(e&1&&(a(0,"button",9),t(1),m(2,"translate"),s()),e&2){let i=A();g("disabled",!i.fundForm.valid),l(),P(` + `),l(4),b(d(6,7,"labels.commons.required")))}function Mbi(e,r){if(e&1&&(a(0,"button",9),t(1),m(2,"translate"),s()),e&2){let i=A();g("disabled",!i.fundForm.valid),l(),P(` `,d(2,2,"labels.buttons.Submit"),` `)}}var g6=(()=>{class e{constructor(i,o,n,c){this.organizationService=i,this.formBuilder=o,this.router=n,this.route=c}ngOnInit(){this.createFundForm()}createFundForm(){this.fundForm=this.formBuilder.group({name:["",bt.required],externalId:[""]})}submit(){let i=this.fundForm.getRawValue();this.organizationService.createFund(i).subscribe(o=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(o){return new(o||e)(V(Ei),V(xe),V(te),V(Lt))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-create-fund"]],decls:44,vars:14,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","autofocus","","formControlName","name"],[4,"ngIf"],["matInput","","autofocus","","formControlName","externalId"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(o,n){o&1&&(a(0,"div",0),t(1,` `),a(2,"mat-card"),t(3,` @@ -39970,7 +39970,7 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),a(10,"mat-form-field"),t(11,` `),a(12,"mat-label"),t(13),m(14,"translate"),s(),t(15,` `),k(16,"input",3),t(17,` - `),x(18,Mbi,8,9,"mat-error",4),t(19,` + `),x(18,Tbi,8,9,"mat-error",4),t(19,` `),s(),t(20,` `),a(21,"mat-form-field"),t(22,` @@ -39982,16 +39982,16 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),a(32,"mat-card-actions",6),t(33,` `),a(34,"button",7),t(35),m(36,"translate"),s(),t(37,` - `),x(38,Dbi,3,4,"button",8),t(39,` + `),x(38,Mbi,3,4,"button",8),t(39,` `),s(),t(40,` `),s(),t(41,` `),s(),t(42,` `),s(),t(43,` -`)),o&2&&(l(4),g("formGroup",n.fundForm),l(9),b(d(14,7,"labels.inputs.name")),l(5),g("ngIf",n.fundForm.controls.name.hasError("required")),l(6),b(d(25,9,"labels.inputs.External Id")),l(10),g("routerLink",ht(13,Tbi)),l(),P(` +`)),o&2&&(l(4),g("formGroup",n.fundForm),l(9),b(d(14,7,"labels.inputs.name")),l(5),g("ngIf",n.fundForm.controls.name.hasError("required")),l(6),b(d(25,9,"labels.inputs.External Id")),l(10),g("routerLink",ht(13,Ibi)),l(),P(` `,d(36,11,"labels.buttons.Cancel"),` - `),l(3),g("mifosxHasPermission","CREATE_FUND"))},dependencies:[St,zt,wt,ge,Se,re,ue,Ie,fe,he,qt,oe,me,Ue,Ht,$t,Te,Zt,Dt,de,Et],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var Abi=()=>[50,100,200];function Obi(e,r){e&1&&(a(0,"div",19),t(1,` + `),l(3),g("mifosxHasPermission","CREATE_FUND"))},dependencies:[St,zt,wt,ge,Se,re,ue,Ie,fe,he,qt,oe,me,Ue,Ht,$t,Te,Zt,Dt,de,Et],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var Dbi=()=>[50,100,200];function Abi(e,r){e&1&&(a(0,"div",19),t(1,` `),k(2,"div",20),t(3,` - `),s())}function Fbi(e,r){if(e&1&&(a(0,"tr"),t(1,` + `),s())}function Obi(e,r){if(e&1&&(a(0,"tr"),t(1,` `),a(2,"td",29),t(3,` `),a(4,"b"),t(5),m(6,"translate"),s(),t(7,` `),s(),t(8,` @@ -40045,11 +40045,11 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `,d(54,25,i.details.totalFeeChargesOutstanding),` `),l(9),P("",d(63,27,"labels.inputs.Penalties Outstanding")," :"),l(5),P(` `,d(68,29,i.details.totalPenaltyChargesOutstanding),` - `),l(9),P("",d(77,31,"labels.inputs.Outstanding")," :"),l(5),b(d(82,33,i.details.totalOutstanding)),l(9),P("",d(91,35,"labels.inputs.Overpaid")," :"),l(5),b(d(96,37,i.details.totalOverpaid))}}function Bbi(e,r){if(e&1){let i=st();a(0,"div",39),t(1,` + `),l(9),P("",d(77,31,"labels.inputs.Outstanding")," :"),l(5),b(d(82,33,i.details.totalOutstanding)),l(9),P("",d(91,35,"labels.inputs.Overpaid")," :"),l(5),b(d(96,37,i.details.totalOverpaid))}}function Fbi(e,r){if(e&1){let i=st();a(0,"div",39),t(1,` `),a(2,"button",40),m(3,"translate"),q("click",function(){W(i);let n=A().$implicit,c=A(2);return Q(c.cancelPendingSale(n))}),t(4,` `),k(5,"fa-icon",41),t(6,` `),s(),t(7,` - `),s()}e&2&&(l(2),Xt("matTooltip",d(3,1,"labels.text.Cancel Pending Sale")))}function Rbi(e,r){if(e&1&&(a(0,"mat-expansion-panel",22),t(1,` + `),s()}e&2&&(l(2),Xt("matTooltip",d(3,1,"labels.text.Cancel Pending Sale")))}function Bbi(e,r){if(e&1&&(a(0,"mat-expansion-panel",22),t(1,` `),a(2,"mat-expansion-panel-header"),t(3,` `),a(4,"mat-panel-title"),t(5,` `),a(6,"table"),t(7,` @@ -40105,21 +40105,21 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),s(),t(109,` `),a(110,"td",29),t(111),m(112,"dateFormat"),s(),t(113,` `),s(),t(114,` - `),x(115,Fbi,102,39,"tr",16),t(116,` + `),x(115,Obi,102,39,"tr",16),t(116,` `),s(),t(117,` `),s(),t(118,` `),s(),t(119,` `),k(120,"mat-divider",34),t(121,` - `),x(122,Bbi,8,3,"div",35),t(123,` + `),x(122,Fbi,8,3,"div",35),t(123,` `),s()),e&2){let i=r.$implicit,o=A(2);l(12),g("ngClass",o.itemStatus(i.status)),l(5),b(i.status),l(5),b(d(23,20,"labels.inputs.Owner External Id")),l(5),Xt("externalId",i.owner.externalId),l(4),b(d(32,22,"labels.inputs.Transfer External Id")),l(5),Xt("externalId",i.transferExternalId),l(4),b(d(41,24,"labels.inputs.Effective From")),l(4),b(d(45,26,i.effectiveFrom)),l(18),P("",d(63,28,"labels.inputs.Status")," :"),l(6),g("ngClass",o.itemStatus(i.status)),l(5),b(i.status),l(7),P("",d(81,30,"labels.inputs.Owner External Id")," :"),l(6),Xt("externalId",i.owner.externalId),l(9),P("",d(96,32,"labels.inputs.Settlement Date")," :"),l(5),P(` `,d(101,34,i.settlementDate),` `),l(6),P("",d(107,36,"labels.inputs.Effective Date")," :"),l(5),P(` `,d(112,38,i.effectiveFrom),` - `),l(4),g("ngIf",i.details),l(5),g("inset",!0),l(2),g("ngIf",o.canBeCancelled(i))}}function Nbi(e,r){if(e&1&&(a(0,"mat-accordion"),t(1,` - `),x(2,Rbi,124,40,"mat-expansion-panel",21),t(3,` - `),s()),e&2){let i=A();l(2),g("ngForOf",i.searchResults)}}function Lbi(e,r){if(e&1){let i=st();a(0,"mat-paginator",42),q("page",function(n){W(i);let c=A();return Q(c.pageChanged(n))}),s()}if(e&2){let i=A();g("pageSize",i.pageSize)("pageSizeOptions",ht(3,Abi))("length",i.totalRows)}}function Vbi(e,r){e&1&&(a(0,"div",43),t(1,` + `),l(4),g("ngIf",i.details),l(5),g("inset",!0),l(2),g("ngIf",o.canBeCancelled(i))}}function Rbi(e,r){if(e&1&&(a(0,"mat-accordion"),t(1,` + `),x(2,Bbi,124,40,"mat-expansion-panel",21),t(3,` + `),s()),e&2){let i=A();l(2),g("ngForOf",i.searchResults)}}function Nbi(e,r){if(e&1){let i=st();a(0,"mat-paginator",42),q("page",function(n){W(i);let c=A();return Q(c.pageChanged(n))}),s()}if(e&2){let i=A();g("pageSize",i.pageSize)("pageSizeOptions",ht(3,Dbi))("length",i.totalRows)}}function Lbi(e,r){e&1&&(a(0,"div",43),t(1,` `),a(2,"div",44),t(3,` `),k(4,"i",45),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(5),P(` @@ -40167,21 +40167,21 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),s(),t(80,` `),a(81,"div",14),t(82,` - `),x(83,Obi,4,0,"div",15),t(84,` - `),x(85,Nbi,4,1,"mat-accordion",16),t(86,` + `),x(83,Abi,4,0,"div",15),t(84,` + `),x(85,Rbi,4,1,"mat-accordion",16),t(86,` - `),x(87,Lbi,1,4,"mat-paginator",17),t(88,` + `),x(87,Nbi,1,4,"mat-paginator",17),t(88,` `),s(),t(89,` - `),x(90,Vbi,8,3,"div",18),t(91,` + `),x(90,Lbi,8,3,"div",18),t(91,` `),s(),t(92,` `),s(),t(93,` `)}if(o&2){let c=Mt(26),u=Mt(40),h=Mt(54),_=Mt(68);l(9),b(d(10,31,"labels.text.Search by Text")),l(3),g("formControl",n.searchText),l(6),b(d(19,33,"labels.text.Effective Date From")),l(3),g("min",n.minDate)("max",n.maxDate)("matDatepicker",c)("formControl",n.effectiveFromDate),l(2),g("for",c),l(9),b(d(33,35,"labels.text.Effective Date To")),l(3),g("min",n.minDate)("max",n.maxDate)("matDatepicker",u)("formControl",n.effectiveToDate),l(2),g("for",u),l(9),b(d(47,37,"labels.text.Settlement Date From")),l(3),g("min",n.minDate)("max",n.maxDate)("matDatepicker",h)("formControl",n.settlementFromDate),l(2),g("for",h),l(9),b(d(61,39,"labels.text.Settlement Date To")),l(3),g("min",n.minDate)("max",n.maxDate)("matDatepicker",_)("formControl",n.settlementToDate),l(2),g("for",_),l(11),P(" ",d(77,41,"labels.buttons.Search"),` - `),l(7),g("ngIf",n.isLoading),l(2),g("ngIf",n.existsDataToFilter),l(2),g("ngIf",n.existsDataToFilter),l(3),g("ngIf",!n.existsDataToFilter)}},dependencies:[St,io,se,zt,wt,Se,re,er,oe,me,Ht,$t,Si,Zt,Mi,Di,Ti,Dt,Gi,Et,Gt,nl,tl,el,il,La,sn,Pi,Je,_r],styles:[".status[_ngcontent-%COMP%]{color:#000}.field-name[_ngcontent-%COMP%]{font-weight:800}.record-actions[_ngcontent-%COMP%]{margin-top:1%}.record-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-right:1%}.external-asset-transfer[_ngcontent-%COMP%]{margin-top:10px;min-height:160px}.record[_ngcontent-%COMP%] .record-actions[_ngcontent-%COMP%]{margin-top:1%}.record[_ngcontent-%COMP%] .record-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-right:1%}.record[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.record[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{line-height:30px;margin-left:2%}.loader[_ngcontent-%COMP%]{margin-bottom:39px}.sidenav[_ngcontent-%COMP%]{overflow-x:hidden}@keyframes _ngcontent-%COMP%_move{0%{left:0}16.7%{left:0}33.3%{left:560px}50%{left:980px}66.7%{left:560px}83.3%{left:0}to{left:0}}@keyframes _ngcontent-%COMP%_grow{0%{width:140px}16.7%{width:560px}33.3%{width:560px}50%{width:140px}66.7%{width:560px}83.3%{width:560px}to{width:140px}}"],data:{animation:[Zs("detailExpand",[ps("collapsed",zo({height:"0px",minHeight:"0"})),ps("expanded",zo({height:"*"})),js("expanded <=> collapsed",zs("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}})}}return e})();var zbi=[uo.withShell([{path:"organization",data:{title:"Organization",breadcrumb:"Organization"},children:[{path:"",component:JM},{path:"provisioning-criteria",data:{title:"Provisioning Criteria",breadcrumb:"Provisioning Criteria"},children:[{path:"",component:ZM,resolve:{loanProvisioningCriterias:a6}},{path:"create",data:{title:"Create Provisioning Criteria",breadcrumb:"Create Provisioning Criteria"},component:WD,resolve:{loanProvisioningCriteriaTemplate:nz}},{path:":id",data:{title:"View Provisioning Criteria",routeParamBreadcrumb:"id"},children:[{path:"",component:jD,resolve:{loanProvisioningCriteria:RV}},{path:"edit",component:YD,data:{title:"Edit Provisioning Criteria",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{loanProvisioningCriteriaAndTemplate:rz}}]}]},{path:"offices",data:{title:"Manage Offices",breadcrumb:"Manage Offices"},children:[{path:"",component:XM,resolve:{offices:Fc}},{path:"create",component:fD,data:{title:"Create Office",breadcrumb:"Create Office"},resolve:{offices:Fc}},{path:":officeId",data:{title:"View Office",breadcrumb:"officeId",routeParamBreadcrumb:"officeId"},component:SD,resolve:{officeDatatables:ZV},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:wD,data:{title:"General",breadcrumb:"General",routeParamBreadcrumb:!1},resolve:{office:KV}},{path:"datatables",children:[{path:":datatableName",component:ED,data:{title:"Data Table View",routeParamBreadcrumb:"datatableName"},resolve:{officeDatatable:JV}}]}]},{path:":officeId/edit",component:ND,data:{title:"Edit Office",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{officeTemplate:WV}}]},{path:"employees",data:{title:"Manage Employees",breadcrumb:"Manage Employees"},children:[{path:"",component:tD,resolve:{employees:NV}},{path:"create",component:eD,data:{title:"Create Employee",breadcrumb:"Create Employee"},resolve:{offices:Fc}},{path:":id",data:{title:"View Employee",routeParamBreadcrumb:"id"},children:[{path:"",component:iD,resolve:{employee:LV}},{path:"edit",component:_D,data:{title:"Edit Employee",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{employee:VV}}]}]},{path:"currencies",data:{title:"Currency Configuration",breadcrumb:"Currency Configuration"},resolve:{currencies:n6},children:[{path:"",component:nD},{path:"manage",data:{title:"Manage Currencies",breadcrumb:"Manage Currencies"},component:ID}]},{path:"sms-campaigns",data:{title:"SMS Campaigns",breadcrumb:"SMS Campaigns"},children:[{path:"",component:rD,resolve:{smsCampaigns:zV}},{path:"create",data:{title:"Create SMS Campaign",breadcrumb:"Create Campaign"},component:qD,resolve:{smsCampaignTemplate:d6}},{path:":id",data:{title:"View SMS Campaign",routeResolveBreadcrumb:["smsCampaign","campaignName"]},resolve:{smsCampaign:XV},runGuardsAndResolvers:"always",children:[{path:"",component:PD},{path:"edit",component:UD,data:{title:"Edit SMS Campaign",breadcrumb:"Edit",routeResolveBreadcrumb:!1},resolve:{smsCampaignTemplate:d6}}]}]},{path:"standing-instructions-history",component:KD,data:{title:"Standing Instructions History",breadcrumb:"Standing Instructions History"},resolve:{standingInstructionsTemplate:oz}},{path:"fund-mapping",component:JD,data:{title:"Fund Mapping",breadcrumb:"Fund Mapping"},resolve:{advanceSearchTemplate:az}},{path:"investors",component:x6,data:{title:"Investors",breadcrumb:"Investors"},resolve:{}},{path:"adhoc-query",data:{title:"Adhoc Query",breadcrumb:"Adhoc Query"},children:[{path:"",component:oD,resolve:{adhocQueries:jV}},{path:"create",component:gD,data:{title:"Create Adhoc Query",breadcrumb:"Create"},resolve:{adhocQueryTemplate:QV}},{path:":id",data:{title:"View Adhoc Query",routeParamBreadcrumb:"id"},children:[{path:"",component:aD,resolve:{adhocQuery:qV}},{path:"edit",component:RD,data:{title:"Edit Adhoc Query",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{adhocQueryAndTemplate:tz}}]}]},{path:"tellers",data:{title:"Tellers",breadcrumb:"Tellers"},children:[{path:"",component:sD,resolve:{tellers:HV}},{path:"create",component:vD,data:{title:"Create Teller",breadcrumb:"Create"},resolve:{offices:Fc}},{path:":id",data:{title:"View Teller",routeParamBreadcrumb:"id"},children:[{path:"",component:lD,resolve:{teller:r6}},{path:"edit",component:bD,data:{title:"Edit Teller",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{teller:r6,offices:Fc}},{path:"cashiers",data:{title:"Cashiers",breadcrumb:"Cashiers",routeParamBreadcrumb:!1},children:[{path:"",component:TD,resolve:{cashiersData:YV}},{path:"create",data:{title:"Cashiers",breadcrumb:"Create Cashier"},component:FD,resolve:{cashierTemplate:p6}},{path:":id",data:{title:"View Cashier",routeParamBreadcrumb:"id"},children:[{path:"",component:CD,data:{title:"View Cashier",breadcrumb:"View Cashier",routeParamBreadcrumb:!1},resolve:{cashier:s6}},{path:"edit",component:OD,data:{title:"Edit Cashier",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{cashier:s6,cashierTemplate:p6}},{path:"transactions",data:{title:"Cashier Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},component:MD,resolve:{currencies:n6}},{path:"settle",component:AD,data:{title:"Settle Cash",breadcrumb:"Settle Cash",routeParamBreadcrumb:!1},resolve:{cashierTemplate:c6}},{path:"allocate",component:DD,data:{title:"Allocate Cash",breadcrumb:"Allocate Cash",routeParamBreadcrumb:!1},resolve:{cashierTemplate:c6}}]}]}]}]},{path:"payment-types",data:{title:"Payment Types",breadcrumb:"Payment Types"},children:[{path:"",component:cD,resolve:{paymentTypes:o6}},{path:"create",component:hD,data:{title:"Create Payment Type",breadcrumb:"Create Payment Type"}},{path:":id",data:{routeParamBreadcrumb:"id",addBreadcrumbLink:!1},children:[{path:"edit",component:pD,data:{title:"Edit Payment Type",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{paymentType:o6}}]}]},{path:"password-preferences",component:mD,data:{title:"Password Preferences",breadcrumb:"Password Preferences"},resolve:{passwordPreferencesTemplate:GV}},{path:"bulkloan",component:QD,data:{title:"Bulk Loan Reassignment",breadcrumb:"Bulk Loan Reasssignment"},resolve:{offices:Fc}},{path:"entity-data-table-checks",data:{title:"Entity Data Table Checks",breadcrumb:"Entity Data Table Checks"},children:[{path:"",component:dD,resolve:{entityDataTableChecks:UV}},{path:"create",component:$D,data:{title:"Create Entity Data Table Checks",breadcrumb:"Create"},resolve:{dataTableEntity:iz}}]},{path:"working-days",component:uD,data:{title:"Working Days",breadcrumb:"Working Days"},resolve:{workingDays:$V}},{path:"manage-funds",data:{title:"Manage Funds",breadcrumb:"Manage Funds"},children:[{path:"",component:kD,resolve:{funds:l6}},{path:"create",component:g6,data:{title:"Create Fund",breadcrumb:"Create"}},{path:":id",data:{title:"View Fund",breadcrumb:"id",routeParamBreadcrumb:"id"},resolve:{fundData:u6},children:[{path:"",component:f6,resolve:{fundData:u6}},{path:"edit",component:h6,data:{title:"Edit Fund",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{fundData:u6}}]}],resolve:{funds:l6}},{path:"bulk-import",data:{title:"Bulk Import",breadcrumb:"Bulk Import"},children:[{path:"",component:LD},{path:":import-name",component:zD,data:{title:"View Bulk Import",routeParamBreadcrumb:"import-name"},resolve:{offices:Fc,imports:ez}}]},{path:"holidays",data:{title:"Manage Holidays",breadcrumb:"Manage Holidays"},children:[{path:"",component:xD,resolve:{offices:Fc}},{path:"create",component:i6,data:{title:"Create Holiday",breadcrumb:"Create"},resolve:{offices:Fc,holidayTemplate:m6}},{path:":id",data:{title:"View Holidays",routeParamBreadcrumb:"id"},children:[{path:"",component:yD,resolve:{holidays:r_}},{path:"edit",component:BD,data:{title:"Edit Holidays",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{holiday:r_,holidayTemplate:m6}}]}]}]}])],X0t=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e})}static{this.\u0275inj=un({providers:[RV,Fc,NV,LV,VV,n6,zV,XV,d6,jV,qV,HV,r6,o6,GV,UV,$V,WV,QV,tz,a6,s6,YV,r_,KV,JV,ZV,l6,c6,p6,r_,m6,ez,r_,iz,a6,nz,rz,oz,az],imports:[tr.forChild(zbi),tr]})}}return e})();var tdt=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e})}static{this.\u0275inj=un({providers:[e6,t6,ZD,XD],imports:[Yr,ya,rl,X0t,JM,ZM,XM,tD,nD,rD,oD,aD,sD,lD,cD,pD,mD,dD,uD,fD,eD,hD,iD,gD,xD,ND,_D,vD,bD,jD,CD,yD,SD,wD,ED,PD,kD,ID,TD,MD,AD,DD,OD,FD,BD,RD,LD,zD,qD,wC,wf,n_,SC,UD,GD,HD,$D,QD,WD,YD,KD,JD,i6,g6,h6,f6,x6]})}}return e})();var o_=class{constructor(r){if(this.crashes=[],this.state="initializing",this._now=Date.now,this.crashes=[],this._crashNumberLimit=typeof r.crashNumberLimit=="number"?r.crashNumberLimit:3,this._minimumNonErrorTimePeriod=typeof r.minimumNonErrorTimePeriod=="number"?r.minimumNonErrorTimePeriod:5e3,this._boundErrorHandler=i=>{let o="error"in i?i.error:i.reason;o instanceof Error&&this._handleError(o,i)},this._listeners={},!this._restart)throw new Error("The Watchdog class was split into the abstract `Watchdog` class and the `EditorWatchdog` class. Please, use `EditorWatchdog` if you have used the `Watchdog` class previously.")}destroy(){this._stopErrorHandling(),this._listeners={}}on(r,i){this._listeners[r]||(this._listeners[r]=[]),this._listeners[r].push(i)}off(r,i){this._listeners[r]=this._listeners[r].filter(o=>o!==i)}_fire(r,...i){let o=this._listeners[r]||[];for(let n of o)n.apply(this,[null,...i])}_startErrorHandling(){window.addEventListener("error",this._boundErrorHandler),window.addEventListener("unhandledrejection",this._boundErrorHandler)}_stopErrorHandling(){window.removeEventListener("error",this._boundErrorHandler),window.removeEventListener("unhandledrejection",this._boundErrorHandler)}_handleError(r,i){if(this._shouldReactToError(r)){this.crashes.push({message:r.message,stack:r.stack,filename:i instanceof ErrorEvent?i.filename:void 0,lineno:i instanceof ErrorEvent?i.lineno:void 0,colno:i instanceof ErrorEvent?i.colno:void 0,date:this._now()});let o=this._shouldRestart();this.state="crashed",this._fire("stateChange"),this._fire("error",{error:r,causesRestart:o}),o?this._restart():(this.state="crashedPermanently",this._fire("stateChange"))}}_shouldReactToError(r){return r.is&&r.is("CKEditorError")&&r.context!==void 0&&r.context!==null&&this.state==="ready"&&this._isErrorComingFromThisItem(r)}_shouldRestart(){if(this.crashes.length<=this._crashNumberLimit)return!0;let r=this.crashes[this.crashes.length-1].date,i=this.crashes[this.crashes.length-1-this._crashNumberLimit].date;return(r-i)/this._crashNumberLimit>this._minimumNonErrorTimePeriod}};function EC(e,r=new Set){let i=[e],o=new Set,n=0;for(;i.length>n;){let c=i[n++];if(!(o.has(c)||!jbi(c)||r.has(c)))if(o.add(c),Symbol.iterator in c)try{for(let u of c)i.push(u)}catch{}else for(let u in c)u!=="defaultValue"&&i.push(c[u])}return o}function jbi(e){let r=Object.prototype.toString.call(e),i=typeof e;return!(i==="number"||i==="boolean"||i==="string"||i==="symbol"||i==="function"||r==="[object Date]"||r==="[object RegExp]"||r==="[object Module]"||e===void 0||e===null||e._watchdogExcluded||e instanceof EventTarget||e instanceof Event)}function _6(e,r,i=new Set){if(e===r&&qbi(e))return!0;let o=EC(e,i),n=EC(r,i);for(let c of o)if(n.has(c))return!0;return!1}function qbi(e){return typeof e=="object"&&e!==null}var Hbi=typeof global=="object"&&global&&global.Object===Object&&global,v6=Hbi;var Gbi=typeof self=="object"&&self&&self.Object===Object&&self,Ubi=v6||Gbi||Function("return this")(),as=Ubi;var $bi=as.Symbol,gd=$bi;var edt=Object.prototype,Wbi=edt.hasOwnProperty,Qbi=edt.toString,PC=gd?gd.toStringTag:void 0;function Ybi(e){var r=Wbi.call(e,PC),i=e[PC];try{e[PC]=void 0;var o=!0}catch{}var n=Qbi.call(e);return o&&(r?e[PC]=i:delete e[PC]),n}var idt=Ybi;var Kbi=Object.prototype,Jbi=Kbi.toString;function Zbi(e){return Jbi.call(e)}var ndt=Zbi;var Xbi="[object Null]",t2i="[object Undefined]",rdt=gd?gd.toStringTag:void 0;function e2i(e){return e==null?e===void 0?t2i:Xbi:rdt&&rdt in Object(e)?idt(e):ndt(e)}var rp=e2i;function i2i(e){return e!=null&&typeof e=="object"}var Vl=i2i;var n2i="[object Symbol]";function r2i(e){return typeof e=="symbol"||Vl(e)&&rp(e)==n2i}var odt=r2i;var o2i=Array.isArray,a_=o2i;var a2i=/\s/;function s2i(e){for(var r=e.length;r--&&a2i.test(e.charAt(r)););return r}var adt=s2i;var l2i=/^\s+/;function c2i(e){return e&&e.slice(0,adt(e)+1).replace(l2i,"")}var sdt=c2i;function p2i(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}var Sl=p2i;var ldt=NaN,m2i=/^[-+]0x[0-9a-f]+$/i,d2i=/^0b[01]+$/i,u2i=/^0o[0-7]+$/i,f2i=parseInt;function h2i(e){if(typeof e=="number")return e;if(odt(e))return ldt;if(Sl(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=Sl(r)?r+"":r}if(typeof e!="string")return e===0?e:+e;e=sdt(e);var i=d2i.test(e);return i||u2i.test(e)?f2i(e.slice(2),i?2:8):m2i.test(e)?ldt:+e}var sz=h2i;var g2i="[object AsyncFunction]",x2i="[object Function]",_2i="[object GeneratorFunction]",v2i="[object Proxy]";function b2i(e){if(!Sl(e))return!1;var r=rp(e);return r==x2i||r==_2i||r==g2i||r==v2i}var b6=b2i;var C2i=as["__core-js_shared__"],C6=C2i;var cdt=function(){var e=/[^.]+$/.exec(C6&&C6.keys&&C6.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function y2i(e){return!!cdt&&cdt in e}var pdt=y2i;var S2i=Function.prototype,w2i=S2i.toString;function E2i(e){if(e!=null){try{return w2i.call(e)}catch{}try{return e+""}catch{}}return""}var xd=E2i;var P2i=/[\\^$.*+?()[\]{}|]/g,k2i=/^\[object .+?Constructor\]$/,I2i=Function.prototype,T2i=Object.prototype,M2i=I2i.toString,D2i=T2i.hasOwnProperty,A2i=RegExp("^"+M2i.call(D2i).replace(P2i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function O2i(e){if(!Sl(e)||pdt(e))return!1;var r=b6(e)?A2i:k2i;return r.test(xd(e))}var mdt=O2i;function F2i(e,r){return e?.[r]}var ddt=F2i;function B2i(e,r){var i=ddt(e,r);return mdt(i)?i:void 0}var Bc=B2i;var R2i=Bc(as,"WeakMap"),y6=R2i;var udt=Object.create,N2i=function(){function e(){}return function(r){if(!Sl(r))return{};if(udt)return udt(r);e.prototype=r;var i=new e;return e.prototype=void 0,i}}(),fdt=N2i;function L2i(e,r){var i=-1,o=e.length;for(r||(r=Array(o));++i-1&&e%1==0&&e-1&&e%1==0&&e<=K2i}var P6=J2i;function Z2i(e){return e!=null&&P6(e.length)&&!b6(e)}var k6=Z2i;var X2i=Object.prototype;function tCi(e){var r=e&&e.constructor,i=typeof r=="function"&&r.prototype||X2i;return e===i}var s_=tCi;function eCi(e,r){for(var i=-1,o=Array(e);++i-1}var jdt=_yi;function vyi(e,r){var i=this.__data__,o=Pf(i,e);return o<0?(++this.size,i.push([e,r])):i[o][1]=r,this}var qdt=vyi;function d_(e){var r=-1,i=e==null?0:e.length;for(this.clear();++r=r||mt<0||E&&vt>=c}function z(){var X=V6();if(B(X))return $(X);h=setTimeout(z,F(X))}function $(X){return h=void 0,T&&o?D(X):(o=n=void 0,u)}function tt(){h!==void 0&&clearTimeout(h),y=0,o=_=n=h=void 0}function lt(){return h===void 0?u:$(V6())}function gt(){var X=V6(),mt=B(X);if(o=arguments,n=this,_=X,mt){if(h===void 0)return M(_);if(E)return clearTimeout(h),h=setTimeout(z,r),D(_)}return h===void 0&&(h=setTimeout(z,r)),u}return gt.cancel=tt,gt.flush=lt,gt}var jut=TSi;function MSi(e){return Vl(e)&&e.nodeType===1&&!Jdt(e)}var fz=MSi;var DSi="Expected a function";function ASi(e,r,i){var o=!0,n=!0;if(typeof e!="function")throw new TypeError(DSi);return Sl(i)&&(o="leading"in i?!!i.leading:o,n="trailing"in i?!!i.trailing:n),jut(e,r,{leading:o,maxWait:r,trailing:n})}var hz=ASi;var v_=class extends o_{constructor(r,i={}){super(i),this._editor=null,this._throttledSave=hz(this._save.bind(this),typeof i.saveInterval=="number"?i.saveInterval:5e3),r&&(this._creator=(o,n)=>r.create(o,n)),this._destructor=o=>o.destroy()}get editor(){return this._editor}get _item(){return this._editor}setCreator(r){this._creator=r}setDestructor(r){this._destructor=r}_restart(){return Promise.resolve().then(()=>(this.state="initializing",this._fire("stateChange"),this._destroy())).catch(r=>{console.error("An error happened during the editor destroying.",r)}).then(()=>{if(typeof this._elementOrData=="string")return this.create(this._data,this._config,this._config.context);{let r=Object.assign({},this._config,{initialData:this._data});return this.create(this._elementOrData,r,r.context)}}).then(()=>{this._fire("restart")})}create(r=this._elementOrData,i=this._config,o){return Promise.resolve().then(()=>(super._startErrorHandling(),this._elementOrData=r,this._config=this._cloneEditorConfiguration(i)||{},this._config.context=o,this._creator(r,this._config))).then(n=>{this._editor=n,n.model.document.on("change:data",this._throttledSave),this._lastDocumentVersion=n.model.document.version,this._data=this._getData(),this.state="ready",this._fire("stateChange")})}destroy(){return Promise.resolve().then(()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy()))}_destroy(){return Promise.resolve().then(()=>{this._stopErrorHandling(),this._throttledSave.flush();let r=this._editor;return this._editor=null,r.model.document.off("change:data",this._throttledSave),this._destructor(r)})}_save(){let r=this._editor.model.document.version;try{this._data=this._getData(),this._lastDocumentVersion=r}catch(i){console.error(i,"An error happened during restoring editor data. Editor will be restored from the previously saved data.")}}_setExcludedProperties(r){this._excludedProps=r}_getData(){let r={};for(let i of this._editor.model.document.getRootNames())r[i]=this._editor.data.get({rootName:i});return r}_isErrorComingFromThisItem(r){return _6(this._editor,r.context,this._excludedProps)}_cloneEditorConfiguration(r){return uz(r,(i,o)=>{if(fz(i)||o==="context")return i})}};var tOr=Symbol("MainQueueId");function OSi(e,r){}var zl=new Array(256).fill(0).map((e,r)=>("0"+r.toString(16)).slice(-2));function FSi(){let e=Math.random()*4294967296>>>0,r=Math.random()*4294967296>>>0,i=Math.random()*4294967296>>>0,o=Math.random()*4294967296>>>0;return"e"+zl[e>>0&255]+zl[e>>8&255]+zl[e>>16&255]+zl[e>>24&255]+zl[r>>0&255]+zl[r>>8&255]+zl[r>>16&255]+zl[r>>24&255]+zl[i>>0&255]+zl[i>>8&255]+zl[i>>16&255]+zl[i>>24&255]+zl[o>>0&255]+zl[o>>8&255]+zl[o>>16&255]+zl[o>>24&255]}var gz="Lock from Angular integration (@ckeditor/ckeditor5-angular)",qut=(()=>{class e{constructor(i,o){this.config={},this.data="",this.tagName="div",this.disableTwoWayDataBinding=!1,this.ready=new $n,this.change=new $n,this.blur=new $n,this.focus=new $n,this.error=new $n,this.initiallyDisabled=!1,this.isEditorSettingData=!1,this.id=FSi(),this.ngZone=o,this.elementRef=i;let{CKEDITOR_VERSION:n}=window;if(n){let[c]=n.split(".").map(Number);c<37&&console.warn("The component requires using CKEditor 5 in version 37 or higher.")}else console.warn('Cannot find the "CKEDITOR_VERSION" in the "window" scope.')}set disabled(i){this.setDisabledState(i)}get disabled(){return this.editorInstance?this.editorInstance.isReadOnly:this.initiallyDisabled}get editorInstance(){let i=this.editorWatchdog;return this.watchdog&&(i=this.watchdog._watchdogs.get(this.id)),i?i.editor:null}ngOnChanges(i){Object.prototype.hasOwnProperty.call(i,"data")&&i.data&&!i.data.isFirstChange()&&this.writeValue(i.data.currentValue)}ngAfterViewInit(){this.attachToWatchdog()}ngOnDestroy(){return Dr(this,null,function*(){this.watchdog?yield this.watchdog.remove(this.id):this.editorWatchdog&&this.editorWatchdog.editor&&(yield this.editorWatchdog.destroy(),this.editorWatchdog=void 0)})}writeValue(i){i===null&&(i=""),this.editorInstance?(this.isEditorSettingData=!0,this.editorInstance.data.set(i),this.isEditorSettingData=!1):(this.data=i,this.ready.pipe(YU()).subscribe(o=>{o.data.set(this.data)}))}registerOnChange(i){this.cvaOnChange=i}registerOnTouched(i){this.cvaOnTouched=i}setDisabledState(i){this.editorInstance&&(i?this.editorInstance.enableReadOnlyMode(gz):this.editorInstance.disableReadOnlyMode(gz)),this.initiallyDisabled=i}attachToWatchdog(){let i=(h,_)=>this.ngZone.runOutsideAngular(()=>Dr(this,null,function*(){this.elementRef.nativeElement.appendChild(h);let y=yield this.editor.create(h,_);return this.initiallyDisabled&&y.enableReadOnlyMode(gz),this.ngZone.run(()=>{this.ready.emit(y)}),this.setUpEditorEvents(y),y})),o=h=>Dr(this,null,function*(){yield h.destroy(),this.elementRef.nativeElement.removeChild(this.editorElement)}),n=()=>{this.ngZone.run(()=>{this.error.emit()})},c=document.createElement(this.tagName),u=this.getConfig();if(this.editorElement=c,this.watchdog)this.watchdog.add({id:this.id,type:"editor",creator:i,destructor:o,sourceElementOrData:c,config:u}),this.watchdog.on("itemError",(h,{itemId:_})=>{_===this.id&&n()});else{let h=new v_(this.editor,this.editorWatchdogConfig);h.setCreator(i),h.setDestructor(o),h.on("error",n),this.editorWatchdog=h,this.editorWatchdog.create(c,u)}}getConfig(){if(this.data&&this.config.initialData)throw new Error("Editor data should be provided either using `config.initialData` or `data` properties.");let i=ye({},this.config),o=this.config.initialData||this.data;return o&&(i.initialData=o),i}setUpEditorEvents(i){let o=i.model.document,n=i.editing.view.document;o.on("change:data",c=>{this.ngZone.run(()=>{if(!this.disableTwoWayDataBinding){if(this.cvaOnChange&&!this.isEditorSettingData){let u=i.data.get();this.cvaOnChange(u)}this.change.emit({event:c,editor:i})}})}),n.on("focus",c=>{this.ngZone.run(()=>{this.focus.emit({event:c,editor:i})})}),n.on("blur",c=>{this.ngZone.run(()=>{this.cvaOnTouched&&this.cvaOnTouched(),this.blur.emit({event:c,editor:i})})})}}return e.\u0275fac=function(i){return new(i||e)(V(lb),V(Nh))},e.\u0275cmp=yt({type:e,selectors:[["ckeditor"]],inputs:{editor:"editor",config:"config",data:"data",tagName:"tagName",watchdog:"watchdog",editorWatchdogConfig:"editorWatchdogConfig",disableTwoWayDataBinding:"disableTwoWayDataBinding",disabled:"disabled"},outputs:{ready:"ready",change:"change",blur:"blur",focus:"focus",error:"error"},standalone:!1,features:[p$([{provide:F$,useExisting:JU(()=>e),multi:!0}]),Vo],decls:1,vars:0,template:function(i,o){i&1&&x(0,OSi,0,0,"ng-template")},encapsulation:2}),e})();var z6=(()=>{class e{}return e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=fn({type:e}),e.\u0275inj=un({imports:[[Qm,St]]}),e})();var RSi=()=>[10,25,50,100],NSi=()=>["create"],LSi=e=>[e];function VSi(e,r){e&1&&(a(0,"button",16),t(1,` - `),k(2,"fa-icon",17),t(3),m(4,"translate"),s()),e&2&&(g("routerLink",ht(4,NSi)),l(3),P(` + `),l(7),g("ngIf",n.isLoading),l(2),g("ngIf",n.existsDataToFilter),l(2),g("ngIf",n.existsDataToFilter),l(3),g("ngIf",!n.existsDataToFilter)}},dependencies:[St,io,se,zt,wt,Se,re,er,oe,me,Ht,$t,Si,Zt,Mi,Di,Ti,Dt,Gi,Et,Gt,nl,tl,el,il,La,sn,Pi,Je,_r],styles:[".status[_ngcontent-%COMP%]{color:#000}.field-name[_ngcontent-%COMP%]{font-weight:800}.record-actions[_ngcontent-%COMP%]{margin-top:1%}.record-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-right:1%}.external-asset-transfer[_ngcontent-%COMP%]{margin-top:10px;min-height:160px}.record[_ngcontent-%COMP%] .record-actions[_ngcontent-%COMP%]{margin-top:1%}.record[_ngcontent-%COMP%] .record-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-right:1%}.record[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.record[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{line-height:30px;margin-left:2%}.loader[_ngcontent-%COMP%]{margin-bottom:39px}.sidenav[_ngcontent-%COMP%]{overflow-x:hidden}@keyframes _ngcontent-%COMP%_move{0%{left:0}16.7%{left:0}33.3%{left:560px}50%{left:980px}66.7%{left:560px}83.3%{left:0}to{left:0}}@keyframes _ngcontent-%COMP%_grow{0%{width:140px}16.7%{width:560px}33.3%{width:560px}50%{width:140px}66.7%{width:560px}83.3%{width:560px}to{width:140px}}"],data:{animation:[Zs("detailExpand",[ps("collapsed",zo({height:"0px",minHeight:"0"})),ps("expanded",zo({height:"*"})),js("expanded <=> collapsed",zs("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}})}}return e})();var Vbi=[uo.withShell([{path:"organization",data:{title:"Organization",breadcrumb:"Organization"},children:[{path:"",component:JM},{path:"provisioning-criteria",data:{title:"Provisioning Criteria",breadcrumb:"Provisioning Criteria"},children:[{path:"",component:ZM,resolve:{loanProvisioningCriterias:a6}},{path:"create",data:{title:"Create Provisioning Criteria",breadcrumb:"Create Provisioning Criteria"},component:WD,resolve:{loanProvisioningCriteriaTemplate:nz}},{path:":id",data:{title:"View Provisioning Criteria",routeParamBreadcrumb:"id"},children:[{path:"",component:jD,resolve:{loanProvisioningCriteria:RV}},{path:"edit",component:YD,data:{title:"Edit Provisioning Criteria",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{loanProvisioningCriteriaAndTemplate:rz}}]}]},{path:"offices",data:{title:"Manage Offices",breadcrumb:"Manage Offices"},children:[{path:"",component:XM,resolve:{offices:Fc}},{path:"create",component:fD,data:{title:"Create Office",breadcrumb:"Create Office"},resolve:{offices:Fc}},{path:":officeId",data:{title:"View Office",breadcrumb:"officeId",routeParamBreadcrumb:"officeId"},component:SD,resolve:{officeDatatables:ZV},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:wD,data:{title:"General",breadcrumb:"General",routeParamBreadcrumb:!1},resolve:{office:KV}},{path:"datatables",children:[{path:":datatableName",component:ED,data:{title:"Data Table View",routeParamBreadcrumb:"datatableName"},resolve:{officeDatatable:JV}}]}]},{path:":officeId/edit",component:ND,data:{title:"Edit Office",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{officeTemplate:WV}}]},{path:"employees",data:{title:"Manage Employees",breadcrumb:"Manage Employees"},children:[{path:"",component:tD,resolve:{employees:NV}},{path:"create",component:eD,data:{title:"Create Employee",breadcrumb:"Create Employee"},resolve:{offices:Fc}},{path:":id",data:{title:"View Employee",routeParamBreadcrumb:"id"},children:[{path:"",component:iD,resolve:{employee:LV}},{path:"edit",component:_D,data:{title:"Edit Employee",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{employee:VV}}]}]},{path:"currencies",data:{title:"Currency Configuration",breadcrumb:"Currency Configuration"},resolve:{currencies:n6},children:[{path:"",component:nD},{path:"manage",data:{title:"Manage Currencies",breadcrumb:"Manage Currencies"},component:ID}]},{path:"sms-campaigns",data:{title:"SMS Campaigns",breadcrumb:"SMS Campaigns"},children:[{path:"",component:rD,resolve:{smsCampaigns:zV}},{path:"create",data:{title:"Create SMS Campaign",breadcrumb:"Create Campaign"},component:qD,resolve:{smsCampaignTemplate:d6}},{path:":id",data:{title:"View SMS Campaign",routeResolveBreadcrumb:["smsCampaign","campaignName"]},resolve:{smsCampaign:XV},runGuardsAndResolvers:"always",children:[{path:"",component:PD},{path:"edit",component:UD,data:{title:"Edit SMS Campaign",breadcrumb:"Edit",routeResolveBreadcrumb:!1},resolve:{smsCampaignTemplate:d6}}]}]},{path:"standing-instructions-history",component:KD,data:{title:"Standing Instructions History",breadcrumb:"Standing Instructions History"},resolve:{standingInstructionsTemplate:oz}},{path:"fund-mapping",component:JD,data:{title:"Fund Mapping",breadcrumb:"Fund Mapping"},resolve:{advanceSearchTemplate:az}},{path:"investors",component:x6,data:{title:"Investors",breadcrumb:"Investors"},resolve:{}},{path:"adhoc-query",data:{title:"Adhoc Query",breadcrumb:"Adhoc Query"},children:[{path:"",component:oD,resolve:{adhocQueries:jV}},{path:"create",component:gD,data:{title:"Create Adhoc Query",breadcrumb:"Create"},resolve:{adhocQueryTemplate:QV}},{path:":id",data:{title:"View Adhoc Query",routeParamBreadcrumb:"id"},children:[{path:"",component:aD,resolve:{adhocQuery:qV}},{path:"edit",component:RD,data:{title:"Edit Adhoc Query",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{adhocQueryAndTemplate:tz}}]}]},{path:"tellers",data:{title:"Tellers",breadcrumb:"Tellers"},children:[{path:"",component:sD,resolve:{tellers:HV}},{path:"create",component:vD,data:{title:"Create Teller",breadcrumb:"Create"},resolve:{offices:Fc}},{path:":id",data:{title:"View Teller",routeParamBreadcrumb:"id"},children:[{path:"",component:lD,resolve:{teller:r6}},{path:"edit",component:bD,data:{title:"Edit Teller",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{teller:r6,offices:Fc}},{path:"cashiers",data:{title:"Cashiers",breadcrumb:"Cashiers",routeParamBreadcrumb:!1},children:[{path:"",component:TD,resolve:{cashiersData:YV}},{path:"create",data:{title:"Cashiers",breadcrumb:"Create Cashier"},component:FD,resolve:{cashierTemplate:p6}},{path:":id",data:{title:"View Cashier",routeParamBreadcrumb:"id"},children:[{path:"",component:CD,data:{title:"View Cashier",breadcrumb:"View Cashier",routeParamBreadcrumb:!1},resolve:{cashier:s6}},{path:"edit",component:OD,data:{title:"Edit Cashier",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{cashier:s6,cashierTemplate:p6}},{path:"transactions",data:{title:"Cashier Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},component:MD,resolve:{currencies:n6}},{path:"settle",component:AD,data:{title:"Settle Cash",breadcrumb:"Settle Cash",routeParamBreadcrumb:!1},resolve:{cashierTemplate:c6}},{path:"allocate",component:DD,data:{title:"Allocate Cash",breadcrumb:"Allocate Cash",routeParamBreadcrumb:!1},resolve:{cashierTemplate:c6}}]}]}]}]},{path:"payment-types",data:{title:"Payment Types",breadcrumb:"Payment Types"},children:[{path:"",component:cD,resolve:{paymentTypes:o6}},{path:"create",component:hD,data:{title:"Create Payment Type",breadcrumb:"Create Payment Type"}},{path:":id",data:{routeParamBreadcrumb:"id",addBreadcrumbLink:!1},children:[{path:"edit",component:pD,data:{title:"Edit Payment Type",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{paymentType:o6}}]}]},{path:"password-preferences",component:mD,data:{title:"Password Preferences",breadcrumb:"Password Preferences"},resolve:{passwordPreferencesTemplate:GV}},{path:"bulkloan",component:QD,data:{title:"Bulk Loan Reassignment",breadcrumb:"Bulk Loan Reasssignment"},resolve:{offices:Fc}},{path:"entity-data-table-checks",data:{title:"Entity Data Table Checks",breadcrumb:"Entity Data Table Checks"},children:[{path:"",component:dD,resolve:{entityDataTableChecks:UV}},{path:"create",component:$D,data:{title:"Create Entity Data Table Checks",breadcrumb:"Create"},resolve:{dataTableEntity:iz}}]},{path:"working-days",component:uD,data:{title:"Working Days",breadcrumb:"Working Days"},resolve:{workingDays:$V}},{path:"manage-funds",data:{title:"Manage Funds",breadcrumb:"Manage Funds"},children:[{path:"",component:kD,resolve:{funds:l6}},{path:"create",component:g6,data:{title:"Create Fund",breadcrumb:"Create"}},{path:":id",data:{title:"View Fund",breadcrumb:"id",routeParamBreadcrumb:"id"},resolve:{fundData:u6},children:[{path:"",component:f6,resolve:{fundData:u6}},{path:"edit",component:h6,data:{title:"Edit Fund",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{fundData:u6}}]}],resolve:{funds:l6}},{path:"bulk-import",data:{title:"Bulk Import",breadcrumb:"Bulk Import"},children:[{path:"",component:LD},{path:":import-name",component:zD,data:{title:"View Bulk Import",routeParamBreadcrumb:"import-name"},resolve:{offices:Fc,imports:ez}}]},{path:"holidays",data:{title:"Manage Holidays",breadcrumb:"Manage Holidays"},children:[{path:"",component:xD,resolve:{offices:Fc}},{path:"create",component:i6,data:{title:"Create Holiday",breadcrumb:"Create"},resolve:{offices:Fc,holidayTemplate:m6}},{path:":id",data:{title:"View Holidays",routeParamBreadcrumb:"id"},children:[{path:"",component:yD,resolve:{holidays:r_}},{path:"edit",component:BD,data:{title:"Edit Holidays",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{holiday:r_,holidayTemplate:m6}}]}]}]}])],X0t=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e})}static{this.\u0275inj=un({providers:[RV,Fc,NV,LV,VV,n6,zV,XV,d6,jV,qV,HV,r6,o6,GV,UV,$V,WV,QV,tz,a6,s6,YV,r_,KV,JV,ZV,l6,c6,p6,r_,m6,ez,r_,iz,a6,nz,rz,oz,az],imports:[tr.forChild(Vbi),tr]})}}return e})();var tdt=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e})}static{this.\u0275inj=un({providers:[e6,t6,ZD,XD],imports:[Yr,ya,rl,X0t,JM,ZM,XM,tD,nD,rD,oD,aD,sD,lD,cD,pD,mD,dD,uD,fD,eD,hD,iD,gD,xD,ND,_D,vD,bD,jD,CD,yD,SD,wD,ED,PD,kD,ID,TD,MD,AD,DD,OD,FD,BD,RD,LD,zD,qD,wC,wf,n_,SC,UD,GD,HD,$D,QD,WD,YD,KD,JD,i6,g6,h6,f6,x6]})}}return e})();var o_=class{constructor(r){if(this.crashes=[],this.state="initializing",this._now=Date.now,this.crashes=[],this._crashNumberLimit=typeof r.crashNumberLimit=="number"?r.crashNumberLimit:3,this._minimumNonErrorTimePeriod=typeof r.minimumNonErrorTimePeriod=="number"?r.minimumNonErrorTimePeriod:5e3,this._boundErrorHandler=i=>{let o="error"in i?i.error:i.reason;o instanceof Error&&this._handleError(o,i)},this._listeners={},!this._restart)throw new Error("The Watchdog class was split into the abstract `Watchdog` class and the `EditorWatchdog` class. Please, use `EditorWatchdog` if you have used the `Watchdog` class previously.")}destroy(){this._stopErrorHandling(),this._listeners={}}on(r,i){this._listeners[r]||(this._listeners[r]=[]),this._listeners[r].push(i)}off(r,i){this._listeners[r]=this._listeners[r].filter(o=>o!==i)}_fire(r,...i){let o=this._listeners[r]||[];for(let n of o)n.apply(this,[null,...i])}_startErrorHandling(){window.addEventListener("error",this._boundErrorHandler),window.addEventListener("unhandledrejection",this._boundErrorHandler)}_stopErrorHandling(){window.removeEventListener("error",this._boundErrorHandler),window.removeEventListener("unhandledrejection",this._boundErrorHandler)}_handleError(r,i){if(this._shouldReactToError(r)){this.crashes.push({message:r.message,stack:r.stack,filename:i instanceof ErrorEvent?i.filename:void 0,lineno:i instanceof ErrorEvent?i.lineno:void 0,colno:i instanceof ErrorEvent?i.colno:void 0,date:this._now()});let o=this._shouldRestart();this.state="crashed",this._fire("stateChange"),this._fire("error",{error:r,causesRestart:o}),o?this._restart():(this.state="crashedPermanently",this._fire("stateChange"))}}_shouldReactToError(r){return r.is&&r.is("CKEditorError")&&r.context!==void 0&&r.context!==null&&this.state==="ready"&&this._isErrorComingFromThisItem(r)}_shouldRestart(){if(this.crashes.length<=this._crashNumberLimit)return!0;let r=this.crashes[this.crashes.length-1].date,i=this.crashes[this.crashes.length-1-this._crashNumberLimit].date;return(r-i)/this._crashNumberLimit>this._minimumNonErrorTimePeriod}};function EC(e,r=new Set){let i=[e],o=new Set,n=0;for(;i.length>n;){let c=i[n++];if(!(o.has(c)||!zbi(c)||r.has(c)))if(o.add(c),Symbol.iterator in c)try{for(let u of c)i.push(u)}catch{}else for(let u in c)u!=="defaultValue"&&i.push(c[u])}return o}function zbi(e){let r=Object.prototype.toString.call(e),i=typeof e;return!(i==="number"||i==="boolean"||i==="string"||i==="symbol"||i==="function"||r==="[object Date]"||r==="[object RegExp]"||r==="[object Module]"||e===void 0||e===null||e._watchdogExcluded||e instanceof EventTarget||e instanceof Event)}function _6(e,r,i=new Set){if(e===r&&jbi(e))return!0;let o=EC(e,i),n=EC(r,i);for(let c of o)if(n.has(c))return!0;return!1}function jbi(e){return typeof e=="object"&&e!==null}var qbi=typeof global=="object"&&global&&global.Object===Object&&global,v6=qbi;var Hbi=typeof self=="object"&&self&&self.Object===Object&&self,Gbi=v6||Hbi||Function("return this")(),as=Gbi;var Ubi=as.Symbol,gd=Ubi;var edt=Object.prototype,$bi=edt.hasOwnProperty,Wbi=edt.toString,PC=gd?gd.toStringTag:void 0;function Qbi(e){var r=$bi.call(e,PC),i=e[PC];try{e[PC]=void 0;var o=!0}catch{}var n=Wbi.call(e);return o&&(r?e[PC]=i:delete e[PC]),n}var idt=Qbi;var Ybi=Object.prototype,Kbi=Ybi.toString;function Jbi(e){return Kbi.call(e)}var ndt=Jbi;var Zbi="[object Null]",Xbi="[object Undefined]",rdt=gd?gd.toStringTag:void 0;function t2i(e){return e==null?e===void 0?Xbi:Zbi:rdt&&rdt in Object(e)?idt(e):ndt(e)}var rp=t2i;function e2i(e){return e!=null&&typeof e=="object"}var Vl=e2i;var i2i="[object Symbol]";function n2i(e){return typeof e=="symbol"||Vl(e)&&rp(e)==i2i}var odt=n2i;var r2i=Array.isArray,a_=r2i;var o2i=/\s/;function a2i(e){for(var r=e.length;r--&&o2i.test(e.charAt(r)););return r}var adt=a2i;var s2i=/^\s+/;function l2i(e){return e&&e.slice(0,adt(e)+1).replace(s2i,"")}var sdt=l2i;function c2i(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}var Sl=c2i;var ldt=NaN,p2i=/^[-+]0x[0-9a-f]+$/i,m2i=/^0b[01]+$/i,d2i=/^0o[0-7]+$/i,u2i=parseInt;function f2i(e){if(typeof e=="number")return e;if(odt(e))return ldt;if(Sl(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=Sl(r)?r+"":r}if(typeof e!="string")return e===0?e:+e;e=sdt(e);var i=m2i.test(e);return i||d2i.test(e)?u2i(e.slice(2),i?2:8):p2i.test(e)?ldt:+e}var sz=f2i;var h2i="[object AsyncFunction]",g2i="[object Function]",x2i="[object GeneratorFunction]",_2i="[object Proxy]";function v2i(e){if(!Sl(e))return!1;var r=rp(e);return r==g2i||r==x2i||r==h2i||r==_2i}var b6=v2i;var b2i=as["__core-js_shared__"],C6=b2i;var cdt=function(){var e=/[^.]+$/.exec(C6&&C6.keys&&C6.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function C2i(e){return!!cdt&&cdt in e}var pdt=C2i;var y2i=Function.prototype,S2i=y2i.toString;function w2i(e){if(e!=null){try{return S2i.call(e)}catch{}try{return e+""}catch{}}return""}var xd=w2i;var E2i=/[\\^$.*+?()[\]{}|]/g,P2i=/^\[object .+?Constructor\]$/,k2i=Function.prototype,I2i=Object.prototype,T2i=k2i.toString,M2i=I2i.hasOwnProperty,D2i=RegExp("^"+T2i.call(M2i).replace(E2i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function A2i(e){if(!Sl(e)||pdt(e))return!1;var r=b6(e)?D2i:P2i;return r.test(xd(e))}var mdt=A2i;function O2i(e,r){return e?.[r]}var ddt=O2i;function F2i(e,r){var i=ddt(e,r);return mdt(i)?i:void 0}var Bc=F2i;var B2i=Bc(as,"WeakMap"),y6=B2i;var udt=Object.create,R2i=function(){function e(){}return function(r){if(!Sl(r))return{};if(udt)return udt(r);e.prototype=r;var i=new e;return e.prototype=void 0,i}}(),fdt=R2i;function N2i(e,r){var i=-1,o=e.length;for(r||(r=Array(o));++i-1&&e%1==0&&e-1&&e%1==0&&e<=Y2i}var P6=K2i;function J2i(e){return e!=null&&P6(e.length)&&!b6(e)}var k6=J2i;var Z2i=Object.prototype;function X2i(e){var r=e&&e.constructor,i=typeof r=="function"&&r.prototype||Z2i;return e===i}var s_=X2i;function tCi(e,r){for(var i=-1,o=Array(e);++i-1}var jdt=xyi;function _yi(e,r){var i=this.__data__,o=Pf(i,e);return o<0?(++this.size,i.push([e,r])):i[o][1]=r,this}var qdt=_yi;function d_(e){var r=-1,i=e==null?0:e.length;for(this.clear();++r=r||mt<0||E&&vt>=c}function z(){var X=V6();if(B(X))return $(X);h=setTimeout(z,F(X))}function $(X){return h=void 0,T&&o?D(X):(o=n=void 0,u)}function tt(){h!==void 0&&clearTimeout(h),y=0,o=_=n=h=void 0}function lt(){return h===void 0?u:$(V6())}function gt(){var X=V6(),mt=B(X);if(o=arguments,n=this,_=X,mt){if(h===void 0)return M(_);if(E)return clearTimeout(h),h=setTimeout(z,r),D(_)}return h===void 0&&(h=setTimeout(z,r)),u}return gt.cancel=tt,gt.flush=lt,gt}var jut=ISi;function TSi(e){return Vl(e)&&e.nodeType===1&&!Jdt(e)}var fz=TSi;var MSi="Expected a function";function DSi(e,r,i){var o=!0,n=!0;if(typeof e!="function")throw new TypeError(MSi);return Sl(i)&&(o="leading"in i?!!i.leading:o,n="trailing"in i?!!i.trailing:n),jut(e,r,{leading:o,maxWait:r,trailing:n})}var hz=DSi;var v_=class extends o_{constructor(r,i={}){super(i),this._editor=null,this._throttledSave=hz(this._save.bind(this),typeof i.saveInterval=="number"?i.saveInterval:5e3),r&&(this._creator=(o,n)=>r.create(o,n)),this._destructor=o=>o.destroy()}get editor(){return this._editor}get _item(){return this._editor}setCreator(r){this._creator=r}setDestructor(r){this._destructor=r}_restart(){return Promise.resolve().then(()=>(this.state="initializing",this._fire("stateChange"),this._destroy())).catch(r=>{console.error("An error happened during the editor destroying.",r)}).then(()=>{if(typeof this._elementOrData=="string")return this.create(this._data,this._config,this._config.context);{let r=Object.assign({},this._config,{initialData:this._data});return this.create(this._elementOrData,r,r.context)}}).then(()=>{this._fire("restart")})}create(r=this._elementOrData,i=this._config,o){return Promise.resolve().then(()=>(super._startErrorHandling(),this._elementOrData=r,this._config=this._cloneEditorConfiguration(i)||{},this._config.context=o,this._creator(r,this._config))).then(n=>{this._editor=n,n.model.document.on("change:data",this._throttledSave),this._lastDocumentVersion=n.model.document.version,this._data=this._getData(),this.state="ready",this._fire("stateChange")})}destroy(){return Promise.resolve().then(()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy()))}_destroy(){return Promise.resolve().then(()=>{this._stopErrorHandling(),this._throttledSave.flush();let r=this._editor;return this._editor=null,r.model.document.off("change:data",this._throttledSave),this._destructor(r)})}_save(){let r=this._editor.model.document.version;try{this._data=this._getData(),this._lastDocumentVersion=r}catch(i){console.error(i,"An error happened during restoring editor data. Editor will be restored from the previously saved data.")}}_setExcludedProperties(r){this._excludedProps=r}_getData(){let r={};for(let i of this._editor.model.document.getRootNames())r[i]=this._editor.data.get({rootName:i});return r}_isErrorComingFromThisItem(r){return _6(this._editor,r.context,this._excludedProps)}_cloneEditorConfiguration(r){return uz(r,(i,o)=>{if(fz(i)||o==="context")return i})}};var X8r=Symbol("MainQueueId");function ASi(e,r){}var zl=new Array(256).fill(0).map((e,r)=>("0"+r.toString(16)).slice(-2));function OSi(){let e=Math.random()*4294967296>>>0,r=Math.random()*4294967296>>>0,i=Math.random()*4294967296>>>0,o=Math.random()*4294967296>>>0;return"e"+zl[e>>0&255]+zl[e>>8&255]+zl[e>>16&255]+zl[e>>24&255]+zl[r>>0&255]+zl[r>>8&255]+zl[r>>16&255]+zl[r>>24&255]+zl[i>>0&255]+zl[i>>8&255]+zl[i>>16&255]+zl[i>>24&255]+zl[o>>0&255]+zl[o>>8&255]+zl[o>>16&255]+zl[o>>24&255]}var gz="Lock from Angular integration (@ckeditor/ckeditor5-angular)",qut=(()=>{class e{constructor(i,o){this.config={},this.data="",this.tagName="div",this.disableTwoWayDataBinding=!1,this.ready=new $n,this.change=new $n,this.blur=new $n,this.focus=new $n,this.error=new $n,this.initiallyDisabled=!1,this.isEditorSettingData=!1,this.id=OSi(),this.ngZone=o,this.elementRef=i;let{CKEDITOR_VERSION:n}=window;if(n){let[c]=n.split(".").map(Number);c<37&&console.warn("The component requires using CKEditor 5 in version 37 or higher.")}else console.warn('Cannot find the "CKEDITOR_VERSION" in the "window" scope.')}set disabled(i){this.setDisabledState(i)}get disabled(){return this.editorInstance?this.editorInstance.isReadOnly:this.initiallyDisabled}get editorInstance(){let i=this.editorWatchdog;return this.watchdog&&(i=this.watchdog._watchdogs.get(this.id)),i?i.editor:null}ngOnChanges(i){Object.prototype.hasOwnProperty.call(i,"data")&&i.data&&!i.data.isFirstChange()&&this.writeValue(i.data.currentValue)}ngAfterViewInit(){this.attachToWatchdog()}ngOnDestroy(){return Dr(this,null,function*(){this.watchdog?yield this.watchdog.remove(this.id):this.editorWatchdog&&this.editorWatchdog.editor&&(yield this.editorWatchdog.destroy(),this.editorWatchdog=void 0)})}writeValue(i){i===null&&(i=""),this.editorInstance?(this.isEditorSettingData=!0,this.editorInstance.data.set(i),this.isEditorSettingData=!1):(this.data=i,this.ready.pipe(YU()).subscribe(o=>{o.data.set(this.data)}))}registerOnChange(i){this.cvaOnChange=i}registerOnTouched(i){this.cvaOnTouched=i}setDisabledState(i){this.editorInstance&&(i?this.editorInstance.enableReadOnlyMode(gz):this.editorInstance.disableReadOnlyMode(gz)),this.initiallyDisabled=i}attachToWatchdog(){let i=(h,_)=>this.ngZone.runOutsideAngular(()=>Dr(this,null,function*(){this.elementRef.nativeElement.appendChild(h);let y=yield this.editor.create(h,_);return this.initiallyDisabled&&y.enableReadOnlyMode(gz),this.ngZone.run(()=>{this.ready.emit(y)}),this.setUpEditorEvents(y),y})),o=h=>Dr(this,null,function*(){yield h.destroy(),this.elementRef.nativeElement.removeChild(this.editorElement)}),n=()=>{this.ngZone.run(()=>{this.error.emit()})},c=document.createElement(this.tagName),u=this.getConfig();if(this.editorElement=c,this.watchdog)this.watchdog.add({id:this.id,type:"editor",creator:i,destructor:o,sourceElementOrData:c,config:u}),this.watchdog.on("itemError",(h,{itemId:_})=>{_===this.id&&n()});else{let h=new v_(this.editor,this.editorWatchdogConfig);h.setCreator(i),h.setDestructor(o),h.on("error",n),this.editorWatchdog=h,this.editorWatchdog.create(c,u)}}getConfig(){if(this.data&&this.config.initialData)throw new Error("Editor data should be provided either using `config.initialData` or `data` properties.");let i=ye({},this.config),o=this.config.initialData||this.data;return o&&(i.initialData=o),i}setUpEditorEvents(i){let o=i.model.document,n=i.editing.view.document;o.on("change:data",c=>{this.ngZone.run(()=>{if(!this.disableTwoWayDataBinding){if(this.cvaOnChange&&!this.isEditorSettingData){let u=i.data.get();this.cvaOnChange(u)}this.change.emit({event:c,editor:i})}})}),n.on("focus",c=>{this.ngZone.run(()=>{this.focus.emit({event:c,editor:i})})}),n.on("blur",c=>{this.ngZone.run(()=>{this.cvaOnTouched&&this.cvaOnTouched(),this.blur.emit({event:c,editor:i})})})}}return e.\u0275fac=function(i){return new(i||e)(V(lb),V(Nh))},e.\u0275cmp=yt({type:e,selectors:[["ckeditor"]],inputs:{editor:"editor",config:"config",data:"data",tagName:"tagName",watchdog:"watchdog",editorWatchdogConfig:"editorWatchdogConfig",disableTwoWayDataBinding:"disableTwoWayDataBinding",disabled:"disabled"},outputs:{ready:"ready",change:"change",blur:"blur",focus:"focus",error:"error"},standalone:!1,features:[p$([{provide:F$,useExisting:JU(()=>e),multi:!0}]),Vo],decls:1,vars:0,template:function(i,o){i&1&&x(0,ASi,0,0,"ng-template")},encapsulation:2}),e})();var z6=(()=>{class e{}return e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=fn({type:e}),e.\u0275inj=un({imports:[[Qm,St]]}),e})();var BSi=()=>[10,25,50,100],RSi=()=>["create"],NSi=e=>[e];function LSi(e,r){e&1&&(a(0,"button",16),t(1,` + `),k(2,"fa-icon",17),t(3),m(4,"translate"),s()),e&2&&(g("routerLink",ht(4,RSi)),l(3),P(` `,d(4,2,"labels.buttons.Create Template"),` - `))}function zSi(e,r){e&1&&(a(0,"th",18),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Entity")))}function jSi(e,r){if(e&1&&(a(0,"td",19),t(1),s()),e&2){let i=r.$implicit;l(),b(i.entity)}}function qSi(e,r){e&1&&(a(0,"th",18),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Type")))}function HSi(e,r){if(e&1&&(a(0,"td",19),t(1),s()),e&2){let i=r.$implicit;l(),b(i.type)}}function GSi(e,r){e&1&&(a(0,"th",18),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.name")))}function USi(e,r){if(e&1&&(a(0,"td",19),t(1),s()),e&2){let i=r.$implicit;l(),b(i.name)}}function $Si(e,r){e&1&&k(0,"tr",20)}function WSi(e,r){if(e&1&&k(0,"tr",21),e&2){let i=r.$implicit;g("routerLink",Xe(1,LSi,i.id))}}var j6=(()=>{class e{constructor(i){this.route=i,this.displayedColumns=["entity","type","name"],this.route.data.subscribe(o=>{this.templatesData=o.templates})}applyFilter(i){this.dataSource.filter=i.trim().toLowerCase()}ngOnInit(){this.setTemplates()}setTemplates(){this.dataSource=new ci(this.templatesData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}static{this.\u0275fac=function(o){return new(o||e)(V(Lt))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-templates"]],viewQuery:function(o,n){if(o&1&&(Nt(Je,7),Nt($e,7)),o&2){let c;Bt(c=Rt())&&(n.paginator=c.first),Bt(c=Rt())&&(n.sort=c.first)}},decls:53,vars:9,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","entity"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","type"],["matColumnDef","name"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(o,n){o&1&&(a(0,"div",0),t(1,` - `),x(2,VSi,5,5,"button",1),t(3,` + `))}function VSi(e,r){e&1&&(a(0,"th",18),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Entity")))}function zSi(e,r){if(e&1&&(a(0,"td",19),t(1),s()),e&2){let i=r.$implicit;l(),b(i.entity)}}function jSi(e,r){e&1&&(a(0,"th",18),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Type")))}function qSi(e,r){if(e&1&&(a(0,"td",19),t(1),s()),e&2){let i=r.$implicit;l(),b(i.type)}}function HSi(e,r){e&1&&(a(0,"th",18),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.name")))}function GSi(e,r){if(e&1&&(a(0,"td",19),t(1),s()),e&2){let i=r.$implicit;l(),b(i.name)}}function USi(e,r){e&1&&k(0,"tr",20)}function $Si(e,r){if(e&1&&k(0,"tr",21),e&2){let i=r.$implicit;g("routerLink",Xe(1,NSi,i.id))}}var j6=(()=>{class e{constructor(i){this.route=i,this.displayedColumns=["entity","type","name"],this.route.data.subscribe(o=>{this.templatesData=o.templates})}applyFilter(i){this.dataSource.filter=i.trim().toLowerCase()}ngOnInit(){this.setTemplates()}setTemplates(){this.dataSource=new ci(this.templatesData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}static{this.\u0275fac=function(o){return new(o||e)(V(Lt))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-templates"]],viewQuery:function(o,n){if(o&1&&(Nt(Je,7),Nt($e,7)),o&2){let c;Bt(c=Rt())&&(n.paginator=c.first),Bt(c=Rt())&&(n.sort=c.first)}},decls:53,vars:9,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","entity"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","type"],["matColumnDef","name"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(o,n){o&1&&(a(0,"div",0),t(1,` + `),x(2,LSi,5,5,"button",1),t(3,` `),s(),t(4,` `),a(5,"div",2),t(6,` @@ -40195,37 +40195,37 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),a(19,"div",6),t(20,` `),a(21,"table",7),t(22,` `),ot(23,8),t(24,` - `),x(25,zSi,3,3,"th",9),t(26,` - `),x(27,jSi,2,1,"td",10),t(28,` + `),x(25,VSi,3,3,"th",9),t(26,` + `),x(27,zSi,2,1,"td",10),t(28,` `),at(),t(29,` `),ot(30,11),t(31,` - `),x(32,qSi,3,3,"th",9),t(33,` - `),x(34,HSi,2,1,"td",10),t(35,` + `),x(32,jSi,3,3,"th",9),t(33,` + `),x(34,qSi,2,1,"td",10),t(35,` `),at(),t(36,` `),ot(37,12),t(38,` - `),x(39,GSi,3,3,"th",9),t(40,` - `),x(41,USi,2,1,"td",10),t(42,` + `),x(39,HSi,3,3,"th",9),t(40,` + `),x(41,GSi,2,1,"td",10),t(42,` `),at(),t(43,` - `),x(44,$Si,1,0,"tr",13),t(45,` - `),x(46,WSi,1,3,"tr",14),t(47,` + `),x(44,USi,1,0,"tr",13),t(45,` + `),x(46,$Si,1,3,"tr",14),t(47,` `),s(),t(48,` `),k(49,"mat-paginator",15),t(50,` `),s(),t(51,` `),s(),t(52,` -`)),o&2&&(l(2),g("mifosxHasPermission","CREATE_TEMPLATE"),l(10),b(d(13,6,"labels.inputs.Filter")),l(9),g("dataSource",n.dataSource),l(23),g("matHeaderRowDef",n.displayedColumns),l(2),g("matRowDefColumns",n.displayedColumns),l(3),g("pageSizeOptions",ht(8,RSi)))},dependencies:[St,wt,qt,Ht,$t,Zt,Dt,de,Et,Gt,Fe,$e,Ne,Re,Le,wi,Be,Ve,ze,qe,je,He,Je],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var $p=(()=>{class e{constructor(i){this.http=i}getTemplates(){return this.http.get("/templates")}getTemplate(i){return this.http.get(`/templates/${i}`)}getCreateTemplateData(){return this.http.get("/templates/template")}getEditTemplateData(i){return this.http.get(`/templates/${i}/template`)}createTemplate(i){return this.http.post("/templates",i)}updateTemplate(i,o){return this.http.put(`/templates/${o}`,i)}deleteTemplate(i){return this.http.delete(`/templates/${i}`)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ro))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var QSi=()=>["edit"];function YSi(e,r){e&1&&(a(0,"button",8),t(1,` - `),k(2,"fa-icon",9),t(3),m(4,"translate"),s()),e&2&&(g("routerLink",ht(4,QSi)),l(3),P(` +`)),o&2&&(l(2),g("mifosxHasPermission","CREATE_TEMPLATE"),l(10),b(d(13,6,"labels.inputs.Filter")),l(9),g("dataSource",n.dataSource),l(23),g("matHeaderRowDef",n.displayedColumns),l(2),g("matRowDefColumns",n.displayedColumns),l(3),g("pageSizeOptions",ht(8,BSi)))},dependencies:[St,wt,qt,Ht,$t,Zt,Dt,de,Et,Gt,Fe,$e,Ne,Re,Le,wi,Be,Ve,ze,qe,je,He,Je],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var $p=(()=>{class e{constructor(i){this.http=i}getTemplates(){return this.http.get("/templates")}getTemplate(i){return this.http.get(`/templates/${i}`)}getCreateTemplateData(){return this.http.get("/templates/template")}getEditTemplateData(i){return this.http.get(`/templates/${i}/template`)}createTemplate(i){return this.http.post("/templates",i)}updateTemplate(i,o){return this.http.put(`/templates/${o}`,i)}deleteTemplate(i){return this.http.delete(`/templates/${i}`)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ro))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var WSi=()=>["edit"];function QSi(e,r){e&1&&(a(0,"button",8),t(1,` + `),k(2,"fa-icon",9),t(3),m(4,"translate"),s()),e&2&&(g("routerLink",ht(4,WSi)),l(3),P(` `,d(4,2,"labels.buttons.Edit"),` - `))}function KSi(e,r){if(e&1){let i=st();a(0,"button",10),q("click",function(){W(i);let n=A();return Q(n.delete())}),t(1,` + `))}function YSi(e,r){if(e&1){let i=st();a(0,"button",10),q("click",function(){W(i);let n=A();return Q(n.delete())}),t(1,` `),k(2,"fa-icon",11),t(3),m(4,"translate"),s()}e&2&&(l(3),P(` `,d(4,1,"labels.buttons.Delete"),` `))}var q6=(()=>{class e{constructor(i,o,n,c){this.route=i,this.templatesService=o,this.router=n,this.dialog=c,this.route.data.subscribe(u=>{this.templateData=u.template})}delete(){this.dialog.open(Li,{data:{deleteContext:`template ${this.templateData.id}`}}).afterClosed().subscribe(o=>{o.delete&&this.templatesService.deleteTemplate(this.templateData.id).subscribe(()=>{this.router.navigate(["/templates"])})})}static{this.\u0275fac=function(o){return new(o||e)(V(Lt),V($p),V(te),V(ni))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-view-template"]],decls:46,vars:18,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row-wrap"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],[1,"flex-50",3,"innerHTML"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"]],template:function(o,n){o&1&&(a(0,"div",0),t(1,` - `),x(2,YSi,5,5,"button",1),t(3,` + `),x(2,QSi,5,5,"button",1),t(3,` - `),x(4,KSi,5,3,"button",2),t(5,` + `),x(4,YSi,5,3,"button",2),t(5,` `),s(),t(6,` `),a(7,"div",3),t(8,` @@ -40265,24 +40265,24 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `,n.templateData.type,` `),l(3),P(` `,d(38,16,"labels.inputs.Text"),` - `),l(3),g("innerHTML",n.templateData.text,e$))},dependencies:[St,wt,qt,oe,me,Dt,de,Et,Gt],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}"]})}}return e})();var Wut=Pp(Hut());var Gut=["{{client.accountNo}}","{{client.status.value}}","{{client.fullname}}","{{client.displayName}}","{{client.officeName}}","{{#client.groups}}","{{/client.groups}}"],Uut=["{{loan.accountNo}}","{{loan.status.value}}","{{loan.loanProductId}}","{{loan.loanProductName}}","{{loan.loanProductDescription}}"],$ut=["{{loan.repaymentSchedule.loanTermInDays}}","{{loan.repaymentSchedule.totalPrincipalDisbursed}}","{{loan.repaymentSchedule.totalPrincipalExpected}}","{{loan.repaymentSchedule.totalPrincipalPaid}}","{{loan.repaymentSchedule.totalInterestCharged}}","{{loan.repaymentSchedule.totalFeeChargesCharged}}","{{loan.repaymentSchedule.totalPenaltyChargesCharged}}","{{loan.repaymentSchedule.totalWaived}}","{{loan.repaymentSchedule.totalWrittenOff}}","{{loan.repaymentSchedule.totalRepaymentExpected}}","{{loan.repaymentSchedule.totalRepayment}}","{{loan.repaymentSchedule.totalPaidInAdvance}}","{{loan.repaymentSchedule.totalPaidLate}}","{{loan.repaymentSchedule.totalOutstanding}}"];var JSi=["ckEditor"],ZSi=()=>["../"];function XSi(e,r){if(e&1&&(a(0,"mat-option",22),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` + `),l(3),g("innerHTML",n.templateData.text,e$))},dependencies:[St,wt,qt,oe,me,Dt,de,Et,Gt],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}"]})}}return e})();var Wut=Pp(Hut());var Gut=["{{client.accountNo}}","{{client.status.value}}","{{client.fullname}}","{{client.displayName}}","{{client.officeName}}","{{#client.groups}}","{{/client.groups}}"],Uut=["{{loan.accountNo}}","{{loan.status.value}}","{{loan.loanProductId}}","{{loan.loanProductName}}","{{loan.loanProductDescription}}"],$ut=["{{loan.repaymentSchedule.loanTermInDays}}","{{loan.repaymentSchedule.totalPrincipalDisbursed}}","{{loan.repaymentSchedule.totalPrincipalExpected}}","{{loan.repaymentSchedule.totalPrincipalPaid}}","{{loan.repaymentSchedule.totalInterestCharged}}","{{loan.repaymentSchedule.totalFeeChargesCharged}}","{{loan.repaymentSchedule.totalPenaltyChargesCharged}}","{{loan.repaymentSchedule.totalWaived}}","{{loan.repaymentSchedule.totalWrittenOff}}","{{loan.repaymentSchedule.totalRepaymentExpected}}","{{loan.repaymentSchedule.totalRepayment}}","{{loan.repaymentSchedule.totalPaidInAdvance}}","{{loan.repaymentSchedule.totalPaidLate}}","{{loan.repaymentSchedule.totalOutstanding}}"];var KSi=["ckEditor"],JSi=()=>["../"];function ZSi(e,r){if(e&1&&(a(0,"mat-option",22),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` `,i.name,` - `)}}function twi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `)}}function XSi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.Entity")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function ewi(e,r){if(e&1&&(a(0,"mat-option",22),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` + `),l(4),b(d(6,7,"labels.commons.required")))}function twi(e,r){if(e&1&&(a(0,"mat-option",22),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` `,i.name,` - `)}}function iwi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `)}}function ewi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.Type")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function nwi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `),l(4),b(d(6,7,"labels.commons.required")))}function iwi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.name")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function rwi(e,r){if(e&1){let i=st();a(0,"button",30),q("click",function(){W(i);let n=A(3);return Q(n.addMapper())}),t(1,` + `),l(4),b(d(6,7,"labels.commons.required")))}function nwi(e,r){if(e&1){let i=st();a(0,"button",30),q("click",function(){W(i);let n=A(3);return Q(n.addMapper())}),t(1,` `),k(2,"fa-icon",31),t(3),m(4,"translate"),s()}e&2&&(l(3),P("",d(4,1,"labels.buttons.Add"),` - `))}function owi(e,r){if(e&1){let i=st();a(0,"button",32),q("click",function(){W(i);let n=A().index,c=A(2);return Q(c.removeMapper(n))}),t(1,` + `))}function rwi(e,r){if(e&1){let i=st();a(0,"button",32),q("click",function(){W(i);let n=A().index,c=A(2);return Q(c.removeMapper(n))}),t(1,` `),k(2,"fa-icon",33),t(3),m(4,"translate"),s()}e&2&&(l(3),P("",d(4,1,"labels.buttons.Remove"),` - `))}function awi(e,r){if(e&1&&(a(0,"div",25),t(1,` + `))}function owi(e,r){if(e&1&&(a(0,"div",25),t(1,` `),a(2,"mat-form-field",5),t(3,` `),a(4,"mat-label"),t(5),m(6,"translate"),s(),t(7,` `),k(8,"input",26),t(9,` @@ -40293,47 +40293,47 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),k(17,"input",26),t(18,` `),s(),t(19,` - `),x(20,rwi,5,3,"button",28),t(21,` - `),x(22,owi,5,3,"button",29),t(23,` - `),s()),e&2){let i=r.$implicit,o=r.index;l(5),b(d(6,6,"labels.inputs.Mapper Key")),l(3),g("formControl",i.mapperskey),l(6),b(d(15,8,"labels.inputs.Mapper Value")),l(3),g("formControl",i.mappersvalue),l(3),g("ngIf",o===0),l(2),g("ngIf",o!==0)}}function swi(e,r){if(e&1&&(ot(0,23),t(1,` - `),x(2,awi,24,10,"div",24),t(3,` - `),at()),e&2){let i=A();l(2),g("ngForOf",i.mappers)("ngForTrackBy",i.trackByMapperIndex)}}function lwi(e,r){if(e&1){let i=st();a(0,"button",36),q("click",function(){let n=W(i).$implicit,c=A(2);return Q(c.addText(n))}),t(1),s()}if(e&2){let i=r.$implicit;l(),P(` + `),x(20,nwi,5,3,"button",28),t(21,` + `),x(22,rwi,5,3,"button",29),t(23,` + `),s()),e&2){let i=r.$implicit,o=r.index;l(5),b(d(6,6,"labels.inputs.Mapper Key")),l(3),g("formControl",i.mapperskey),l(6),b(d(15,8,"labels.inputs.Mapper Value")),l(3),g("formControl",i.mappersvalue),l(3),g("ngIf",o===0),l(2),g("ngIf",o!==0)}}function awi(e,r){if(e&1&&(ot(0,23),t(1,` + `),x(2,owi,24,10,"div",24),t(3,` + `),at()),e&2){let i=A();l(2),g("ngForOf",i.mappers)("ngForTrackBy",i.trackByMapperIndex)}}function swi(e,r){if(e&1){let i=st();a(0,"button",36),q("click",function(){let n=W(i).$implicit,c=A(2);return Q(c.addText(n))}),t(1),s()}if(e&2){let i=r.$implicit;l(),P(` `,i,` - `)}}function cwi(e,r){if(e&1&&(a(0,"mat-expansion-panel"),t(1,` + `)}}function lwi(e,r){if(e&1&&(a(0,"mat-expansion-panel"),t(1,` `),a(2,"mat-expansion-panel-header"),t(3,` `),a(4,"mat-panel-title"),t(5),m(6,"translate"),s(),t(7,` `),s(),t(8,` `),a(9,"div",34),t(10,` - `),x(11,lwi,2,1,"button",35),t(12,` + `),x(11,swi,2,1,"button",35),t(12,` `),s(),t(13,` `),s()),e&2){let i=A();l(5),P(` `,d(6,3,"labels.inputs.Client Parameters"),` - `),l(6),g("ngForOf",i.clientParameterLabels)("ngForTrackBy",i.trackByLabel)}}function pwi(e,r){if(e&1){let i=st();a(0,"button",36),q("click",function(){let n=W(i).$implicit,c=A(2);return Q(c.addText(n))}),t(1),s()}if(e&2){let i=r.$implicit;l(),P(` + `),l(6),g("ngForOf",i.clientParameterLabels)("ngForTrackBy",i.trackByLabel)}}function cwi(e,r){if(e&1){let i=st();a(0,"button",36),q("click",function(){let n=W(i).$implicit,c=A(2);return Q(c.addText(n))}),t(1),s()}if(e&2){let i=r.$implicit;l(),P(` `,i,` - `)}}function mwi(e,r){if(e&1&&(a(0,"mat-expansion-panel"),t(1,` + `)}}function pwi(e,r){if(e&1&&(a(0,"mat-expansion-panel"),t(1,` `),a(2,"mat-expansion-panel-header"),t(3,` `),a(4,"mat-panel-title"),t(5),m(6,"translate"),s(),t(7,` `),s(),t(8,` `),a(9,"div",34),t(10,` - `),x(11,pwi,2,1,"button",35),t(12,` + `),x(11,cwi,2,1,"button",35),t(12,` `),s(),t(13,` `),s()),e&2){let i=A();l(5),P(` `,d(6,3,"labels.inputs.Loan Parameters"),` - `),l(6),g("ngForOf",i.loanParameterLabels)("ngForTrackBy",i.trackByLabel)}}function dwi(e,r){if(e&1){let i=st();a(0,"button",36),q("click",function(){let n=W(i).$implicit,c=A(2);return Q(c.addText(n))}),t(1),s()}if(e&2){let i=r.$implicit;l(),P(` + `),l(6),g("ngForOf",i.loanParameterLabels)("ngForTrackBy",i.trackByLabel)}}function mwi(e,r){if(e&1){let i=st();a(0,"button",36),q("click",function(){let n=W(i).$implicit,c=A(2);return Q(c.addText(n))}),t(1),s()}if(e&2){let i=r.$implicit;l(),P(` `,i,` - `)}}function uwi(e,r){if(e&1&&(a(0,"mat-expansion-panel"),t(1,` + `)}}function dwi(e,r){if(e&1&&(a(0,"mat-expansion-panel"),t(1,` `),a(2,"mat-expansion-panel-header"),t(3,` `),a(4,"mat-panel-title"),t(5),m(6,"translate"),s(),t(7,` `),s(),t(8,` `),a(9,"div",34),t(10,` - `),x(11,dwi,2,1,"button",35),t(12,` + `),x(11,mwi,2,1,"button",35),t(12,` `),s(),t(13,` `),s()),e&2){let i=A();l(5),P(` `,d(6,3,"labels.inputs.Repayment Schedule Parameters"),` - `),l(6),g("ngForOf",i.repaymentParameterLabels)("ngForTrackBy",i.trackByLabel)}}var IC=(()=>{class e{constructor(i,o,n,c){this.formBuilder=i,this.route=o,this.router=n,this.templateService=c,this.Editor=Wut.default,this.mappers=[],this.showAdvanceOptions=!1,this.clientParameterLabels=Gut,this.loanParameterLabels=Uut,this.repaymentParameterLabels=$ut,this.route.data.subscribe(u=>{this.templateData=u.templateData,this.mode=u.mode,this.mode==="edit"&&(this.mappers=this.templateData.template.mappers.map(h=>({mappersorder:h.mapperorder,mapperskey:new _e(h.mapperkey),mappersvalue:new _e(h.mappervalue)})))})}ngOnInit(){this.createTemplateForm(),this.buildDependencies()}createTemplateForm(){this.mode==="create"?this.templateForm=this.formBuilder.group({entity:["",bt.required],type:["",bt.required],name:["",bt.required],text:["",bt.required]}):this.templateForm=this.formBuilder.group({entity:[this.templateData.entities.find(i=>i.name===this.templateData.template.entity).id,bt.required],type:[this.templateData.types.find(i=>i.name===this.templateData.template.type).id,bt.required],name:[this.templateData.template.name,bt.required],text:[this.templateData.template.text,bt.required]})}buildDependencies(){let i="default";this.templateForm.get("entity").valueChanges.subscribe(o=>{o===0?this.mappers.splice(0,1,{mappersorder:0,mapperskey:new _e("client"),mappersvalue:new _e("clients/{{clientId}}?tenantIdentifier="+i)}):this.mappers.splice(0,1,{mappersorder:0,mapperskey:new _e("loan"),mappersvalue:new _e("loans/{{loanId}}?associations=all&tenantIdentifier="+i)}),this.setEditorContent("")}),this.mode==="create"&&this.templateForm.get("entity").patchValue(0)}addMapper(){this.mappers.push({mappersorder:this.mappers.length,mapperskey:new _e(""),mappersvalue:new _e("")})}removeMapper(i){this.mappers.splice(i,1)}addText(i){this.ckEditor&&this.ckEditor.editorInstance&&this.ckEditor.editorInstance.model.change(o=>{let n=this.ckEditor.editorInstance.model.document.selection.getFirstPosition();o.insertText(i,n)})}getEditorContent(){return this.ckEditor&&this.ckEditor.editorInstance?this.ckEditor.editorInstance.getData():""}setEditorContent(i){return this.ckEditor&&this.ckEditor.editorInstance?this.ckEditor.editorInstance.setData(i):""}onEditorChange(i){let o=i.editor.getData();this.templateForm.get("text").setValue(o)}submit(){let i=oi(ye({},this.templateForm.value),{mappers:this.mappers.map(o=>({mappersorder:o.mappersorder,mapperskey:o.mapperskey.value,mappersvalue:o.mappersvalue.value})),text:this.getEditorContent()});this.mode==="create"?this.templateService.createTemplate(i).subscribe(o=>{this.router.navigate(["../",o.resourceId],{relativeTo:this.route})}):this.templateService.updateTemplate(i,this.templateData.template.id).subscribe(()=>{this.router.navigate(["../"],{relativeTo:this.route})})}trackByMapperIndex(i){return i}trackByLabel(i,o){return o}trackByEntityId(i,o){return o.id}trackByTypeId(i,o){return o.id}static{this.\u0275fac=function(o){return new(o||e)(V(xe),V(Lt),V(te),V($p))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-create-edit-template"]],viewQuery:function(o,n){if(o&1&&Nt(JSi,7),o&2){let c;Bt(c=Rt())&&(n.ckEditor=c.first)}},decls:108,vars:38,consts:[["ckEditor",""],[1,"container"],[1,"layout-column","gap-2percent"],[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["required","","formControlName","entity"],[3,"value",4,"ngFor","ngForOf","ngForTrackBy"],[4,"ngIf"],["required","","formControlName","type"],["matInput","","required","","formControlName","name"],["role","toggle",1,"advanced-options-wrapper"],["mat-raised-button","","color","primary",3,"click"],["role","mappers",4,"ngIf"],["role","editor",1,"editor-wrapper"],["for","ckeditor",1,"required-label","required-label-ckeditor"],[1,"required-asterisk"],[3,"change","editor","data"],["role","template-parameters"],[1,"m-b-20","layout-row","layout-xs-column","layout-align-center","gap-5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click","disabled"],[3,"value"],["role","mappers"],["class","mapper-row layout-row gap-2percent",4,"ngFor","ngForOf","ngForTrackBy"],[1,"mapper-row","layout-row","gap-2percent"],["matInput","",3,"formControl"],[1,"flex-fill","flex-38"],["class","mapper-button flex-8","mat-raised-button","","color","primary",3,"click",4,"ngIf"],["class","mapper-button flex-9","mat-raised-button","","color","primary",3,"click",4,"ngIf"],["mat-raised-button","","color","primary",1,"mapper-button","flex-8",3,"click"],["icon","plus",1,"m-r-10"],["mat-raised-button","","color","primary",1,"mapper-button","flex-9",3,"click"],["icon","minus",1,"m-r-10"],[1,"layout-row-wrap","layout-xs-column","layout-align-center"],["mat-stroked-button","","color","primary","class","parameter",3,"click",4,"ngFor","ngForOf","ngForTrackBy"],["mat-stroked-button","","color","primary",1,"parameter",3,"click"]],template:function(o,n){if(o&1){let c=st();a(0,"div",1),t(1,` + `),l(6),g("ngForOf",i.repaymentParameterLabels)("ngForTrackBy",i.trackByLabel)}}var IC=(()=>{class e{constructor(i,o,n,c){this.formBuilder=i,this.route=o,this.router=n,this.templateService=c,this.Editor=Wut.default,this.mappers=[],this.showAdvanceOptions=!1,this.clientParameterLabels=Gut,this.loanParameterLabels=Uut,this.repaymentParameterLabels=$ut,this.route.data.subscribe(u=>{this.templateData=u.templateData,this.mode=u.mode,this.mode==="edit"&&(this.mappers=this.templateData.template.mappers.map(h=>({mappersorder:h.mapperorder,mapperskey:new _e(h.mapperkey),mappersvalue:new _e(h.mappervalue)})))})}ngOnInit(){this.createTemplateForm(),this.buildDependencies()}createTemplateForm(){this.mode==="create"?this.templateForm=this.formBuilder.group({entity:["",bt.required],type:["",bt.required],name:["",bt.required],text:["",bt.required]}):this.templateForm=this.formBuilder.group({entity:[this.templateData.entities.find(i=>i.name===this.templateData.template.entity).id,bt.required],type:[this.templateData.types.find(i=>i.name===this.templateData.template.type).id,bt.required],name:[this.templateData.template.name,bt.required],text:[this.templateData.template.text,bt.required]})}buildDependencies(){let i="default";this.templateForm.get("entity").valueChanges.subscribe(o=>{o===0?this.mappers.splice(0,1,{mappersorder:0,mapperskey:new _e("client"),mappersvalue:new _e("clients/{{clientId}}?tenantIdentifier="+i)}):this.mappers.splice(0,1,{mappersorder:0,mapperskey:new _e("loan"),mappersvalue:new _e("loans/{{loanId}}?associations=all&tenantIdentifier="+i)}),this.setEditorContent("")}),this.mode==="create"&&this.templateForm.get("entity").patchValue(0)}addMapper(){this.mappers.push({mappersorder:this.mappers.length,mapperskey:new _e(""),mappersvalue:new _e("")})}removeMapper(i){this.mappers.splice(i,1)}addText(i){this.ckEditor&&this.ckEditor.editorInstance&&this.ckEditor.editorInstance.model.change(o=>{let n=this.ckEditor.editorInstance.model.document.selection.getFirstPosition();o.insertText(i,n)})}getEditorContent(){return this.ckEditor&&this.ckEditor.editorInstance?this.ckEditor.editorInstance.getData():""}setEditorContent(i){return this.ckEditor&&this.ckEditor.editorInstance?this.ckEditor.editorInstance.setData(i):""}onEditorChange(i){let o=i.editor.getData();this.templateForm.get("text").setValue(o)}submit(){let i=oi(ye({},this.templateForm.value),{mappers:this.mappers.map(o=>({mappersorder:o.mappersorder,mapperskey:o.mapperskey.value,mappersvalue:o.mappersvalue.value})),text:this.getEditorContent()});this.mode==="create"?this.templateService.createTemplate(i).subscribe(o=>{this.router.navigate(["../",o.resourceId],{relativeTo:this.route})}):this.templateService.updateTemplate(i,this.templateData.template.id).subscribe(()=>{this.router.navigate(["../"],{relativeTo:this.route})})}trackByMapperIndex(i){return i}trackByLabel(i,o){return o}trackByEntityId(i,o){return o.id}trackByTypeId(i,o){return o.id}static{this.\u0275fac=function(o){return new(o||e)(V(xe),V(Lt),V(te),V($p))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-create-edit-template"]],viewQuery:function(o,n){if(o&1&&Nt(KSi,7),o&2){let c;Bt(c=Rt())&&(n.ckEditor=c.first)}},decls:108,vars:38,consts:[["ckEditor",""],[1,"container"],[1,"layout-column","gap-2percent"],[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["required","","formControlName","entity"],[3,"value",4,"ngFor","ngForOf","ngForTrackBy"],[4,"ngIf"],["required","","formControlName","type"],["matInput","","required","","formControlName","name"],["role","toggle",1,"advanced-options-wrapper"],["mat-raised-button","","color","primary",3,"click"],["role","mappers",4,"ngIf"],["role","editor",1,"editor-wrapper"],["for","ckeditor",1,"required-label","required-label-ckeditor"],[1,"required-asterisk"],[3,"change","editor","data"],["role","template-parameters"],[1,"m-b-20","layout-row","layout-xs-column","layout-align-center","gap-5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click","disabled"],[3,"value"],["role","mappers"],["class","mapper-row layout-row gap-2percent",4,"ngFor","ngForOf","ngForTrackBy"],[1,"mapper-row","layout-row","gap-2percent"],["matInput","",3,"formControl"],[1,"flex-fill","flex-38"],["class","mapper-button flex-8","mat-raised-button","","color","primary",3,"click",4,"ngIf"],["class","mapper-button flex-9","mat-raised-button","","color","primary",3,"click",4,"ngIf"],["mat-raised-button","","color","primary",1,"mapper-button","flex-8",3,"click"],["icon","plus",1,"m-r-10"],["mat-raised-button","","color","primary",1,"mapper-button","flex-9",3,"click"],["icon","minus",1,"m-r-10"],[1,"layout-row-wrap","layout-xs-column","layout-align-center"],["mat-stroked-button","","color","primary","class","parameter",3,"click",4,"ngFor","ngForOf","ngForTrackBy"],["mat-stroked-button","","color","primary",1,"parameter",3,"click"]],template:function(o,n){if(o&1){let c=st();a(0,"div",1),t(1,` `),a(2,"mat-card",2),t(3,` `),a(4,"form",3),t(5,` `),a(6,"mat-card-content"),t(7,` @@ -40341,23 +40341,23 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),a(10,"mat-form-field",5),t(11,` `),a(12,"mat-label"),t(13),m(14,"translate"),s(),t(15,` `),a(16,"mat-select",6),t(17,` - `),x(18,XSi,2,2,"mat-option",7),t(19,` + `),x(18,ZSi,2,2,"mat-option",7),t(19,` `),s(),t(20,` - `),x(21,twi,8,9,"mat-error",8),t(22,` + `),x(21,XSi,8,9,"mat-error",8),t(22,` `),s(),t(23,` `),a(24,"mat-form-field",5),t(25,` `),a(26,"mat-label"),t(27),m(28,"translate"),s(),t(29,` `),a(30,"mat-select",9),t(31,` - `),x(32,ewi,2,2,"mat-option",7),t(33,` + `),x(32,twi,2,2,"mat-option",7),t(33,` `),s(),t(34,` - `),x(35,iwi,8,9,"mat-error",8),t(36,` + `),x(35,ewi,8,9,"mat-error",8),t(36,` `),s(),t(37,` `),a(38,"mat-form-field",5),t(39,` `),a(40,"mat-label"),t(41),m(42,"translate"),s(),t(43,` `),k(44,"input",10),t(45,` - `),x(46,nwi,8,9,"mat-error",8),t(47,` + `),x(46,iwi,8,9,"mat-error",8),t(47,` `),s(),t(48,` `),s(),t(49,` `),s(),t(50,` @@ -40368,7 +40368,7 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),a(56,"button",12),q("click",function(){return W(c),Q(n.showAdvanceOptions=!n.showAdvanceOptions)}),t(57),m(58,"translate"),s(),t(59,` `),s(),t(60,` - `),x(61,swi,4,2,"ng-container",13),t(62,` + `),x(61,awi,4,2,"ng-container",13),t(62,` `),s(),t(63,` `),a(64,"mat-card-content"),t(65,` @@ -40382,11 +40382,11 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),a(80,"mat-card-content"),t(81,` `),a(82,"div",18),t(83,` `),a(84,"mat-accordion"),t(85,` - `),x(86,cwi,14,5,"mat-expansion-panel",8),t(87,` + `),x(86,lwi,14,5,"mat-expansion-panel",8),t(87,` - `),x(88,mwi,14,5,"mat-expansion-panel",8),t(89,` + `),x(88,pwi,14,5,"mat-expansion-panel",8),t(89,` - `),x(90,uwi,14,5,"mat-expansion-panel",8),t(91,` + `),x(90,dwi,14,5,"mat-expansion-panel",8),t(91,` `),s(),t(92,` `),s(),t(93,` `),s(),t(94,` @@ -40400,9 +40400,9 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `)}o&2&&(l(4),g("formGroup",n.templateForm),l(9),b(d(14,23,"labels.inputs.Entity")),l(5),g("ngForOf",n.templateData.entities)("ngForTrackBy",n.trackByEntityId),l(3),g("ngIf",n.templateForm.controls.entity.hasError("required")),l(6),b(d(28,25,"labels.inputs.Type")),l(5),g("ngForOf",n.templateData.types)("ngForTrackBy",n.trackByTypeId),l(3),g("ngIf",n.templateForm.controls.type.hasError("required")),l(6),b(d(42,27,"labels.inputs.name")),l(5),g("ngIf",n.templateForm.controls.name.hasError("required")),l(11),P(` `,d(58,29,"labels.buttons.Advanced Options"),` `),l(4),g("ngIf",n.showAdvanceOptions),l(8),P(` - `,d(70,31,"labels.inputs.Text")," "),l(6),g("editor",n.Editor)("data",n.templateData.template==null?null:n.templateData.template.text),l(11),g("ngIf",n.templateForm.controls.entity.value===0),l(2),g("ngIf",n.templateForm.controls.entity.value===1),l(2),g("ngIf",n.templateForm.controls.entity.value===1),l(7),g("routerLink",ht(37,ZSi)),l(),b(d(99,33,"labels.buttons.Cancel")),l(3),g("disabled",!n.templateForm.valid),l(),P(` + `,d(70,31,"labels.inputs.Text")," "),l(6),g("editor",n.Editor)("data",n.templateData.template==null?null:n.templateData.template.text),l(11),g("ngIf",n.templateForm.controls.entity.value===0),l(2),g("ngIf",n.templateForm.controls.entity.value===1),l(2),g("ngIf",n.templateForm.controls.entity.value===1),l(7),g("routerLink",ht(37,JSi)),l(),b(d(99,33,"labels.buttons.Cancel")),l(3),g("disabled",!n.templateForm.valid),l(),P(` `,d(103,35,"labels.buttons.Submit"),` - `))},dependencies:[St,se,zt,wt,ge,Se,re,ue,Ie,er,fe,he,qt,oe,me,Ue,Ht,$t,Te,Zt,Oe,De,Dt,Et,Gt,z6,qut,nl,tl,el,il],styles:[".advanced-options-wrapper[_ngcontent-%COMP%]{margin-bottom:16px}.mapper-row[_ngcontent-%COMP%]{margin-top:16px;margin-bottom:8px}.mapper-row[_ngcontent-%COMP%] .mapper-button[_ngcontent-%COMP%]{margin-left:8px}.editor-wrapper[_ngcontent-%COMP%]{margin-top:16px}.editor-wrapper[_ngcontent-%COMP%] .required-label[_ngcontent-%COMP%]{display:block;margin-bottom:8px;font-size:14px;font-weight:500}.editor-wrapper[_ngcontent-%COMP%] .required-asterisk[_ngcontent-%COMP%]{color:#f44336}.editor-wrapper[_ngcontent-%COMP%] .ck-editor{margin:0}.editor-wrapper[_ngcontent-%COMP%] .ck-editor .ck-editor__main .ck-content{min-height:200px}mat-card-content[_ngcontent-%COMP%]{padding:16px}"]})}}return e})();var xz=(()=>{class e{constructor(i){this.templatesService=i}resolve(){return this.templatesService.getTemplates()}static{this.\u0275fac=function(o){return new(o||e)(Qt($p))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var _z=(()=>{class e{constructor(i){this.templatesService=i}resolve(i){let o=i.paramMap.get("id");return this.templatesService.getTemplate(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt($p))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var vz=(()=>{class e{constructor(i){this.templatesService=i}resolve(i){let o=i.paramMap.get("id");return this.templatesService.getEditTemplateData(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt($p))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var bz=(()=>{class e{constructor(i){this.templatesService=i}resolve(){return this.templatesService.getCreateTemplateData()}static{this.\u0275fac=function(o){return new(o||e)(Qt($p))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var fwi=[uo.withShell([{path:"templates",data:{title:"Templates",breadcrumb:"Templates"},children:[{path:"",component:j6,resolve:{templates:xz}},{path:"create",component:IC,data:{mode:"create",breadcrumb:"Create Template"},resolve:{templateData:bz}},{path:":id",data:{title:"View Template",routeParamBreadcrumb:"id"},children:[{path:"",component:q6,resolve:{template:_z}},{path:"edit",component:IC,data:{mode:"edit",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{templateData:vz}}]}]}])],Qut=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e})}static{this.\u0275inj=un({providers:[xz,_z,vz,bz],imports:[tr.forChild(fwi),tr]})}}return e})();var Yut=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e})}static{this.\u0275inj=un({imports:[z6,Yr,rl,Qut,j6,q6,IC]})}}return e})();var hwi=["buttonCreateUser"],gwi=["templateButtonCreateUser"],xwi=["usersTable"],_wi=["templateUsersTable"],vwi=()=>["create"],bwi=()=>[10,25,50,100],Cwi=e=>[e];function ywi(e,r){e&1&&(a(0,"th",25),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.First Name")))}function Swi(e,r){if(e&1&&(a(0,"td",26),t(1),s()),e&2){let i=r.$implicit;l(),b(i.firstname)}}function wwi(e,r){e&1&&(a(0,"th",25),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Last Name")))}function Ewi(e,r){if(e&1&&(a(0,"td",26),t(1),s()),e&2){let i=r.$implicit;l(),b(i.lastname)}}function Pwi(e,r){e&1&&(a(0,"th",25),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Email")))}function kwi(e,r){if(e&1&&(a(0,"td",26),t(1),s()),e&2){let i=r.$implicit;l(),b(i.email)}}function Iwi(e,r){e&1&&(a(0,"th",25),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Office")))}function Twi(e,r){if(e&1&&(a(0,"td",26),t(1),s()),e&2){let i=r.$implicit;l(),b(i.officeName)}}function Mwi(e,r){e&1&&k(0,"tr",27)}function Dwi(e,r){if(e&1&&k(0,"tr",28),e&2){let i=r.$implicit;g("routerLink",Xe(1,Cwi,i.id))}}function Awi(e,r){if(e&1){let i=st();t(0,` + `))},dependencies:[St,se,zt,wt,ge,Se,re,ue,Ie,er,fe,he,qt,oe,me,Ue,Ht,$t,Te,Zt,Oe,De,Dt,Et,Gt,z6,qut,nl,tl,el,il],styles:[".advanced-options-wrapper[_ngcontent-%COMP%]{margin-bottom:16px}.mapper-row[_ngcontent-%COMP%]{margin-top:16px;margin-bottom:8px}.mapper-row[_ngcontent-%COMP%] .mapper-button[_ngcontent-%COMP%]{margin-left:8px}.editor-wrapper[_ngcontent-%COMP%]{margin-top:16px}.editor-wrapper[_ngcontent-%COMP%] .required-label[_ngcontent-%COMP%]{display:block;margin-bottom:8px;font-size:14px;font-weight:500}.editor-wrapper[_ngcontent-%COMP%] .required-asterisk[_ngcontent-%COMP%]{color:#f44336}.editor-wrapper[_ngcontent-%COMP%] .ck-editor{margin:0}.editor-wrapper[_ngcontent-%COMP%] .ck-editor .ck-editor__main .ck-content{min-height:200px}mat-card-content[_ngcontent-%COMP%]{padding:16px}"]})}}return e})();var xz=(()=>{class e{constructor(i){this.templatesService=i}resolve(){return this.templatesService.getTemplates()}static{this.\u0275fac=function(o){return new(o||e)(Qt($p))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var _z=(()=>{class e{constructor(i){this.templatesService=i}resolve(i){let o=i.paramMap.get("id");return this.templatesService.getTemplate(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt($p))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var vz=(()=>{class e{constructor(i){this.templatesService=i}resolve(i){let o=i.paramMap.get("id");return this.templatesService.getEditTemplateData(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt($p))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var bz=(()=>{class e{constructor(i){this.templatesService=i}resolve(){return this.templatesService.getCreateTemplateData()}static{this.\u0275fac=function(o){return new(o||e)(Qt($p))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var uwi=[uo.withShell([{path:"templates",data:{title:"Templates",breadcrumb:"Templates"},children:[{path:"",component:j6,resolve:{templates:xz}},{path:"create",component:IC,data:{mode:"create",breadcrumb:"Create Template"},resolve:{templateData:bz}},{path:":id",data:{title:"View Template",routeParamBreadcrumb:"id"},children:[{path:"",component:q6,resolve:{template:_z}},{path:"edit",component:IC,data:{mode:"edit",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{templateData:vz}}]}]}])],Qut=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e})}static{this.\u0275inj=un({providers:[xz,_z,vz,bz],imports:[tr.forChild(uwi),tr]})}}return e})();var Yut=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e})}static{this.\u0275inj=un({imports:[z6,Yr,rl,Qut,j6,q6,IC]})}}return e})();var fwi=["buttonCreateUser"],hwi=["templateButtonCreateUser"],gwi=["usersTable"],xwi=["templateUsersTable"],_wi=()=>["create"],vwi=()=>[10,25,50,100],bwi=e=>[e];function Cwi(e,r){e&1&&(a(0,"th",25),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.First Name")))}function ywi(e,r){if(e&1&&(a(0,"td",26),t(1),s()),e&2){let i=r.$implicit;l(),b(i.firstname)}}function Swi(e,r){e&1&&(a(0,"th",25),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Last Name")))}function wwi(e,r){if(e&1&&(a(0,"td",26),t(1),s()),e&2){let i=r.$implicit;l(),b(i.lastname)}}function Ewi(e,r){e&1&&(a(0,"th",25),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Email")))}function Pwi(e,r){if(e&1&&(a(0,"td",26),t(1),s()),e&2){let i=r.$implicit;l(),b(i.email)}}function kwi(e,r){e&1&&(a(0,"th",25),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Office")))}function Iwi(e,r){if(e&1&&(a(0,"td",26),t(1),s()),e&2){let i=r.$implicit;l(),b(i.officeName)}}function Twi(e,r){e&1&&k(0,"tr",27)}function Mwi(e,r){if(e&1&&k(0,"tr",28),e&2){let i=r.$implicit;g("routerLink",Xe(1,bwi,i.id))}}function Dwi(e,r){if(e&1){let i=st();t(0,` `),a(1,"h2"),t(2),m(3,"translate"),s(),t(4,` `),a(5,"p",29),t(6),m(7,"translate"),s(),t(8,` `),a(9,"div",30),t(10,` @@ -40416,7 +40416,7 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `,d(17,11,"labels.buttons.Back"),` `),l(4),P(` `,d(21,13,"labels.buttons.Next"),` - `))}function Owi(e,r){if(e&1){let i=st();t(0,` + `))}function Awi(e,r){if(e&1){let i=st();t(0,` `),a(1,"h4"),t(2),m(3,"translate"),s(),t(4,` `),a(5,"div",30),t(6,` `),a(7,"button",31),q("click",function(){let n=W(i).popover,c=A();return n.close(),Q(c.configurationWizardService.closeConfigWizard())}),t(8),m(9,"translate"),s(),t(10,` @@ -40429,7 +40429,7 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `,d(13,8,"labels.buttons.Back"),` `),l(4),P(` `,d(17,10,"labels.buttons.Next"),` - `))}function Fwi(e,r){if(e&1){let i=st();t(0,` + `))}function Owi(e,r){if(e&1){let i=st();t(0,` `),a(1,"h4"),t(2),m(3,"translate"),s(),t(4,` `),a(5,"div",30),t(6,` `),a(7,"button",31),q("click",function(){let n=W(i).popover,c=A();return n.close(),Q(c.configurationWizardService.closeConfigWizard())}),t(8),m(9,"translate"),s(),t(10,` @@ -40442,7 +40442,7 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `,d(13,8,"labels.buttons.Back"),` `),l(4),P(` `,d(17,10,"labels.buttons.Next"),` - `))}var H6=(()=>{class e{constructor(i,o,n,c){this.route=i,this.router=o,this.configurationWizardService=n,this.popoverService=c,this.displayedColumns=["firstname","lastname","email","officeName"],this.route.data.subscribe(u=>{this.usersData=u.users})}applyFilter(i){this.dataSource.filter=i.trim().toLowerCase()}ngOnInit(){this.setUsers()}setUsers(){this.dataSource=new ci(this.usersData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}showPopover(i,o,n,c){setTimeout(()=>this.popoverService.open(i,o,n,c,{}),200)}ngAfterViewInit(){this.configurationWizardService.showUsers===!0&&setTimeout(()=>{this.showPopover(this.templateButtonCreateUser,this.buttonCreateUser.nativeElement,"bottom",!0)}),this.configurationWizardService.showUsersList===!0&&setTimeout(()=>{this.showPopover(this.templateUsersTable,this.usersTable.nativeElement,"top",!0)})}nextStep(){this.configurationWizardService.showUsers=!1,this.configurationWizardService.showUsersList=!1,this.configurationWizardService.showUsersForm=!0,this.router.navigate(["/appusers/create"])}previousStep(){this.configurationWizardService.showUsers=!1,this.configurationWizardService.showUsersList=!1,this.configurationWizardService.showRolesandPermissionList=!0,this.router.navigate(["/system/roles-and-permissions"])}static{this.\u0275fac=function(o){return new(o||e)(V(Lt),V(te),V(Sn),V(yn))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-users"]],viewQuery:function(o,n){if(o&1&&(Nt(Je,7),Nt($e,7),Nt(hwi,5),Nt(gwi,5),Nt(xwi,5),Nt(_wi,5)),o&2){let c;Bt(c=Rt())&&(n.paginator=c.first),Bt(c=Rt())&&(n.sort=c.first),Bt(c=Rt())&&(n.buttonCreateUser=c.first),Bt(c=Rt())&&(n.templateButtonCreateUser=c.first),Bt(c=Rt())&&(n.usersTable=c.first),Bt(c=Rt())&&(n.templateUsersTable=c.first)}},decls:79,vars:13,consts:[["buttonCreateUser",""],["filter",""],["usersTable",""],["templateButtonCreateUser",""],["templateFilter",""],["templateUsersTable",""],[1,"container","m-b-20","layout-row","align-end","gap-20px"],[1,"in-block"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","firstname"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","lastname"],["matColumnDef","email"],["matColumnDef","officeName"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"],[1,"mw300"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(o,n){if(o&1){let c=st();a(0,"div",6),t(1,` + `))}var H6=(()=>{class e{constructor(i,o,n,c){this.route=i,this.router=o,this.configurationWizardService=n,this.popoverService=c,this.displayedColumns=["firstname","lastname","email","officeName"],this.route.data.subscribe(u=>{this.usersData=u.users})}applyFilter(i){this.dataSource.filter=i.trim().toLowerCase()}ngOnInit(){this.setUsers()}setUsers(){this.dataSource=new ci(this.usersData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}showPopover(i,o,n,c){setTimeout(()=>this.popoverService.open(i,o,n,c,{}),200)}ngAfterViewInit(){this.configurationWizardService.showUsers===!0&&setTimeout(()=>{this.showPopover(this.templateButtonCreateUser,this.buttonCreateUser.nativeElement,"bottom",!0)}),this.configurationWizardService.showUsersList===!0&&setTimeout(()=>{this.showPopover(this.templateUsersTable,this.usersTable.nativeElement,"top",!0)})}nextStep(){this.configurationWizardService.showUsers=!1,this.configurationWizardService.showUsersList=!1,this.configurationWizardService.showUsersForm=!0,this.router.navigate(["/appusers/create"])}previousStep(){this.configurationWizardService.showUsers=!1,this.configurationWizardService.showUsersList=!1,this.configurationWizardService.showRolesandPermissionList=!0,this.router.navigate(["/system/roles-and-permissions"])}static{this.\u0275fac=function(o){return new(o||e)(V(Lt),V(te),V(Sn),V(yn))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-users"]],viewQuery:function(o,n){if(o&1&&(Nt(Je,7),Nt($e,7),Nt(fwi,5),Nt(hwi,5),Nt(gwi,5),Nt(xwi,5)),o&2){let c;Bt(c=Rt())&&(n.paginator=c.first),Bt(c=Rt())&&(n.sort=c.first),Bt(c=Rt())&&(n.buttonCreateUser=c.first),Bt(c=Rt())&&(n.templateButtonCreateUser=c.first),Bt(c=Rt())&&(n.usersTable=c.first),Bt(c=Rt())&&(n.templateUsersTable=c.first)}},decls:79,vars:13,consts:[["buttonCreateUser",""],["filter",""],["usersTable",""],["templateButtonCreateUser",""],["templateFilter",""],["templateUsersTable",""],[1,"container","m-b-20","layout-row","align-end","gap-20px"],[1,"in-block"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","firstname"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","lastname"],["matColumnDef","email"],["matColumnDef","officeName"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"],[1,"mw300"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(o,n){if(o&1){let c=st();a(0,"div",6),t(1,` `),a(2,"div",7,0),t(4,` `),a(5,"button",8),t(6,` `),k(7,"fa-icon",9),t(8),m(9,"translate"),s(),t(10,` @@ -40460,103 +40460,103 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),a(28,"div",14,2),t(30,` `),a(31,"table",15),t(32,` `),ot(33,16),t(34,` - `),x(35,ywi,3,3,"th",17),t(36,` - `),x(37,Swi,2,1,"td",18),t(38,` + `),x(35,Cwi,3,3,"th",17),t(36,` + `),x(37,ywi,2,1,"td",18),t(38,` `),at(),t(39,` `),ot(40,19),t(41,` - `),x(42,wwi,3,3,"th",17),t(43,` - `),x(44,Ewi,2,1,"td",18),t(45,` + `),x(42,Swi,3,3,"th",17),t(43,` + `),x(44,wwi,2,1,"td",18),t(45,` `),at(),t(46,` `),ot(47,20),t(48,` - `),x(49,Pwi,3,3,"th",17),t(50,` - `),x(51,kwi,2,1,"td",18),t(52,` + `),x(49,Ewi,3,3,"th",17),t(50,` + `),x(51,Pwi,2,1,"td",18),t(52,` `),at(),t(53,` `),ot(54,21),t(55,` - `),x(56,Iwi,3,3,"th",17),t(57,` - `),x(58,Twi,2,1,"td",18),t(59,` + `),x(56,kwi,3,3,"th",17),t(57,` + `),x(58,Iwi,2,1,"td",18),t(59,` `),at(),t(60,` - `),x(61,Mwi,1,0,"tr",22),t(62,` - `),x(63,Dwi,1,3,"tr",23),t(64,` + `),x(61,Twi,1,0,"tr",22),t(62,` + `),x(63,Mwi,1,3,"tr",23),t(64,` `),s(),t(65,` `),k(66,"mat-paginator",24),t(67,` `),s(),t(68,` `),s(),t(69,` -`),x(70,Awi,24,15,"ng-template",null,3,vi),t(72,` +`),x(70,Dwi,24,15,"ng-template",null,3,vi),t(72,` -`),x(73,Owi,20,12,"ng-template",null,4,vi),t(75,` +`),x(73,Awi,20,12,"ng-template",null,4,vi),t(75,` -`),x(76,Fwi,20,12,"ng-template",null,5,vi),t(78,` -`)}o&2&&(l(5),g("routerLink",ht(11,vwi)),l(3),P(` +`),x(76,Owi,20,12,"ng-template",null,5,vi),t(78,` +`)}o&2&&(l(5),g("routerLink",ht(11,_wi)),l(3),P(` `,d(9,7,"labels.buttons.Create User"),` - `),l(13),b(d(22,9,"labels.inputs.Filter")),l(10),g("dataSource",n.dataSource),l(30),g("matHeaderRowDef",n.displayedColumns),l(2),g("matRowDefColumns",n.displayedColumns),l(3),g("pageSizeOptions",ht(12,bwi)))},dependencies:[St,wt,qt,Ht,$t,Zt,Dt,Et,Gt,Fe,$e,Ne,Re,Le,wi,Be,Ve,ze,qe,je,He,Je],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var ql=(()=>{class e{constructor(i){this.http=i}getUsers(){return this.http.get("/users")}getUsersTemplate(){return this.http.get("/users/template")}createUser(i){return this.http.post("/users",i)}editUser(i,o){return this.http.put(`/users/${i}`,o)}getUser(i){return this.http.get(`/users/${i}`)}changePassword(i,o){return this.http.put(`/users/${i}`,o)}deleteUser(i){return this.http.delete(`/users/${i}`)}getStaff(i){let o=new Hn().set("officeId",i.toString()).set("status","all");return this.http.get("/staff",{params:o})}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ro))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Bwi=["userFormRef"],Rwi=["templateUserFormRef"],Nwi=()=>["../"];function Lwi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `),l(13),b(d(22,9,"labels.inputs.Filter")),l(10),g("dataSource",n.dataSource),l(30),g("matHeaderRowDef",n.displayedColumns),l(2),g("matRowDefColumns",n.displayedColumns),l(3),g("pageSizeOptions",ht(12,vwi)))},dependencies:[St,wt,qt,Ht,$t,Zt,Dt,Et,Gt,Fe,$e,Ne,Re,Le,wi,Be,Ve,ze,qe,je,He,Je],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var ql=(()=>{class e{constructor(i){this.http=i}getUsers(){return this.http.get("/users")}getUsersTemplate(){return this.http.get("/users/template")}createUser(i){return this.http.post("/users",i)}editUser(i,o){return this.http.put(`/users/${i}`,o)}getUser(i){return this.http.get(`/users/${i}`)}changePassword(i,o){return this.http.put(`/users/${i}`,o)}deleteUser(i){return this.http.delete(`/users/${i}`)}getStaff(i){let o=new Hn().set("officeId",i.toString()).set("status","all");return this.http.get("/staff",{params:o})}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ro))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Fwi=["userFormRef"],Bwi=["templateUserFormRef"],Rwi=()=>["../"];function Nwi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.Username")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function Vwi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `),l(4),b(d(6,7,"labels.commons.required")))}function Lwi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.Email")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.invalid")))}function zwi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `),l(4),b(d(6,7,"labels.commons.invalid")))}function Vwi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.Email")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function jwi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),a(3,"strong"),t(4),m(5,"translate"),s(),t(6,` + `),l(4),b(d(6,7,"labels.commons.required")))}function zwi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),a(3,"strong"),t(4),m(5,"translate"),s(),t(6,` `),s()),e&2&&(l(),P(` `,d(2,2,"labels.inputs.First Name"),` - `),l(3),b(d(5,4,"labels.commons.cannot begin with a special character or number")))}function qwi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `),l(3),b(d(5,4,"labels.commons.cannot begin with a special character or number")))}function jwi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.First Name")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function Hwi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),a(3,"strong"),t(4),m(5,"translate"),s(),t(6,` + `),l(4),b(d(6,7,"labels.commons.required")))}function qwi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),a(3,"strong"),t(4),m(5,"translate"),s(),t(6,` `),s()),e&2&&(l(),P(` `,d(2,2,"labels.inputs.Last Name"),` - `),l(3),b(d(5,4,"labels.commons.cannot begin with a special character or number")))}function Gwi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `),l(3),b(d(5,4,"labels.commons.cannot begin with a special character or number")))}function Hwi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.Last Name")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function Uwi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `),l(4),b(d(6,7,"labels.commons.required")))}function Gwi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.Password")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function $wi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),a(3,"strong"),t(4),m(5,"translate"),s(),t(6,` + `),l(4),b(d(6,7,"labels.commons.required")))}function Uwi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),a(3,"strong"),t(4),m(5,"translate"),s(),t(6,` `),s()),e&2&&(l(),P(` `,d(2,2,"labels.commons.Password should be at least"),` - `),l(3),b(d(5,4,"labels.commons.12 characters long")))}function Wwi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),a(3,"strong"),t(4),m(5,"translate"),s(),t(6,` + `),l(3),b(d(5,4,"labels.commons.12 characters long")))}function $wi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),a(3,"strong"),t(4),m(5,"translate"),s(),t(6,` `),s()),e&2&&(l(),P(` `,d(2,2,"labels.commons.Password should not be more than"),` - `),l(3),b(d(5,4,"labels.commons.50 characters long")))}function Qwi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),a(3,"strong"),t(4),m(5,"translate"),s(),t(6),m(7,"translate"),a(8,"strong"),t(9),m(10,"translate"),s(),t(11," ,"),a(12,"strong"),t(13),m(14,"translate"),s(),t(15,` + `),l(3),b(d(5,4,"labels.commons.50 characters long")))}function Wwi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),a(3,"strong"),t(4),m(5,"translate"),s(),t(6),m(7,"translate"),a(8,"strong"),t(9),m(10,"translate"),s(),t(11," ,"),a(12,"strong"),t(13),m(14,"translate"),s(),t(15,` `),s()),e&2&&(l(),P(` `,d(2,5,"labels.commons.Password should include a"),` `),l(3),b(d(5,7,"labels.commons.numeral")),l(2),P(" ",d(7,9,"labels.commons.and at"),` - `),l(3),b(d(10,11,"labels.commons.least one uppercase")),l(4),b(d(14,13,"labels.commons.lowercase and special character")))}function Ywi(e,r){if(e&1&&(a(0,"mat-form-field",5),t(1,` + `),l(3),b(d(10,11,"labels.commons.least one uppercase")),l(4),b(d(14,13,"labels.commons.lowercase and special character")))}function Qwi(e,r){if(e&1&&(a(0,"mat-form-field",5),t(1,` `),a(2,"mat-label"),t(3),m(4,"translate"),s(),t(5,` `),k(6,"input",24),t(7,` - `),x(8,Uwi,8,9,"mat-error",7),t(9,` - `),x(10,$wi,7,6,"mat-error",7),t(11,` - `),x(12,Wwi,7,6,"mat-error",7),t(13,` - `),x(14,Qwi,16,15,"mat-error",7),t(15,` - `),s()),e&2){let i=A();l(3),b(d(4,5,"labels.inputs.Password")),l(5),g("ngIf",i.userForm.controls.password.hasError("required")),l(2),g("ngIf",i.userForm.controls.password.hasError("minlength")),l(2),g("ngIf",i.userForm.controls.password.hasError("maxlength")),l(2),g("ngIf",i.userForm.controls.password.hasError("pattern")&&!(i.userForm.controls.password.hasError("minlength")||i.userForm.controls.password.hasError("maxlength")))}}function Kwi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `),x(8,Gwi,8,9,"mat-error",7),t(9,` + `),x(10,Uwi,7,6,"mat-error",7),t(11,` + `),x(12,$wi,7,6,"mat-error",7),t(13,` + `),x(14,Wwi,16,15,"mat-error",7),t(15,` + `),s()),e&2){let i=A();l(3),b(d(4,5,"labels.inputs.Password")),l(5),g("ngIf",i.userForm.controls.password.hasError("required")),l(2),g("ngIf",i.userForm.controls.password.hasError("minlength")),l(2),g("ngIf",i.userForm.controls.password.hasError("maxlength")),l(2),g("ngIf",i.userForm.controls.password.hasError("pattern")&&!(i.userForm.controls.password.hasError("minlength")||i.userForm.controls.password.hasError("maxlength")))}}function Ywi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.Password")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function Jwi(e,r){if(e&1&&(a(0,"mat-form-field",5),t(1,` + `),l(4),b(d(6,7,"labels.commons.required")))}function Kwi(e,r){if(e&1&&(a(0,"mat-form-field",5),t(1,` `),a(2,"mat-label"),t(3),m(4,"translate"),s(),t(5,` `),k(6,"input",25),t(7,` - `),x(8,Kwi,8,9,"mat-error",7),t(9,` - `),s()),e&2){let i=A();l(3),b(d(4,2,"labels.inputs.Repeat Password")),l(5),g("ngIf",i.userForm.controls.repeatPassword.hasError("required"))}}function Zwi(e,r){e&1&&(a(0,"p",26),t(1),m(2,"translate"),a(3,"strong"),t(4),m(5,"translate"),s(),t(6,` + `),x(8,Ywi,8,9,"mat-error",7),t(9,` + `),s()),e&2){let i=A();l(3),b(d(4,2,"labels.inputs.Repeat Password")),l(5),g("ngIf",i.userForm.controls.repeatPassword.hasError("required"))}}function Jwi(e,r){e&1&&(a(0,"p",26),t(1),m(2,"translate"),a(3,"strong"),t(4),m(5,"translate"),s(),t(6,` `),s()),e&2&&(l(),P(` - `,d(2,2,"labels.inputs.Passwords")," "),l(3),b(d(5,4,"labels.commons.do not match")))}function Xwi(e,r){if(e&1&&(a(0,"mat-option",27),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` + `,d(2,2,"labels.inputs.Passwords")," "),l(3),b(d(5,4,"labels.commons.do not match")))}function Zwi(e,r){if(e&1&&(a(0,"mat-option",27),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` `,i.name,` - `)}}function t4i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `)}}function Xwi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.Office")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function e4i(e,r){if(e&1&&(a(0,"mat-option",27),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` + `),l(4),b(d(6,7,"labels.commons.required")))}function t4i(e,r){if(e&1&&(a(0,"mat-option",27),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` `,i.displayName,` - `)}}function i4i(e,r){if(e&1&&(a(0,"mat-option",27),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` + `)}}function e4i(e,r){if(e&1&&(a(0,"mat-option",27),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` `,i.name,` - `)}}function n4i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),a(3,"strong"),t(4),m(5,"translate"),s(),t(6,` + `)}}function i4i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),a(3,"strong"),t(4),m(5,"translate"),s(),t(6,` `),s()),e&2&&(l(),P(` `,d(2,2,"labels.commons.At least one role"),` - `),l(3),b(d(5,4,"labels.commons.must be selected")))}function r4i(e,r){if(e&1){let i=st();t(0,` + `),l(3),b(d(5,4,"labels.commons.must be selected")))}function n4i(e,r){if(e&1){let i=st();t(0,` `),a(1,"h2"),t(2),m(3,"translate"),s(),t(4,` `),a(5,"p",28),t(6),m(7,"translate"),a(8,"a",29),t(9),m(10,"translate"),s(),t(11,` `),s(),t(12,` @@ -40576,7 +40576,7 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `,d(25,17,"labels.buttons.Back"),` `),l(4),P(` `,d(29,19,"labels.buttons.Next"),` - `))}var G6=(()=>{class e{constructor(i,o,n,c,u,h,_,y){this.formBuilder=i,this.usersService=o,this.route=n,this.router=c,this.popoverService=u,this.configurationWizardService=h,this.dialog=_,this.passwordsUtility=y,this.route.data.subscribe(C=>{this.officesData=C.usersTemplate.allowedOffices,this.rolesData=C.usersTemplate.availableRoles})}ngOnInit(){this.createUserForm(),this.setStaffData(),this.setConditionalControls()}createUserForm(){this.userForm=this.formBuilder.group({username:["",bt.required],email:["",[bt.required,bt.email]],firstname:["",[bt.required,bt.pattern("(^[A-z]).*")]],lastname:["",[bt.required,bt.pattern("(^[A-z]).*")]],sendPasswordToEmail:[!0],passwordNeverExpires:[!1],officeId:["",bt.required],staffId:[""],roles:["",bt.required]},{validator:vu})}setStaffData(){this.userForm.get("officeId").valueChanges.subscribe(i=>{this.staffData=[],this.usersService.getStaff(i).subscribe(o=>{this.staffData=o})})}setConditionalControls(){this.userForm.get("sendPasswordToEmail").valueChanges.subscribe(i=>{i?(this.userForm.removeControl("password"),this.userForm.removeControl("repeatPassword"),this.userForm.get("email").setValidators([bt.required,bt.email])):(this.userForm.addControl("password",new _e("",this.passwordsUtility.getPasswordValidators())),this.userForm.addControl("repeatPassword",new _e("",[bt.required,this.passwordsUtility.confirmPassword("password")])),this.userForm.get("email").setValidators([bt.email])),this.userForm.get("email").updateValueAndValidity()})}submit(){let i=this.userForm.value;(this.userForm.value.staffId==null||this.userForm.value.staffId==="")&&delete i.staffId,this.usersService.createUser(i).subscribe(o=>{this.configurationWizardService.showUsersForm===!0?(this.configurationWizardService.showUsersForm=!1,this.openDialog()):this.router.navigate(["../",o.resourceId],{relativeTo:this.route})})}showPopover(i,o,n,c){setTimeout(()=>this.popoverService.open(i,o,n,c,{}),200)}ngAfterViewInit(){this.configurationWizardService.showUsersForm===!0&&setTimeout(()=>{this.showPopover(this.templateUserFormRef,this.userFormRef.nativeElement,"top",!0)})}nextStep(){this.configurationWizardService.showUsersForm=!1,this.configurationWizardService.showMakerCheckerTable=!0,this.router.navigate(["/system"])}previousStep(){this.configurationWizardService.showUsersForm=!1,this.configurationWizardService.showUsersList=!0,this.router.navigate(["/appusers"])}openDialog(){this.dialog.open(ll,{data:{stepName:"user"}}).afterClosed().subscribe(o=>{o.step===1?(this.configurationWizardService.showUsersForm=!1,this.router.navigate(["../"],{relativeTo:this.route})):o.step===2?(this.configurationWizardService.showUsersForm=!0,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate(["/organization/users/create"])):o.step===3&&(this.configurationWizardService.showUsersForm=!1,this.configurationWizardService.showMakerCheckerTable=!0,this.router.navigate(["/system"]))})}static{this.\u0275fac=function(o){return new(o||e)(V(xe),V(ql),V(Lt),V(te),V(yn),V(Sn),V(ni),V(Hg))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-create-user"]],viewQuery:function(o,n){if(o&1&&(Nt(Bwi,5),Nt(Rwi,5)),o&2){let c;Bt(c=Rt())&&(n.userFormRef=c.first),Bt(c=Rt())&&(n.templateUserFormRef=c.first)}},decls:140,vars:53,consts:[["userFormRef",""],["templateUserFormRef",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","layout-lt-md-column","gap-2percent"],[1,"flex-48"],["matInput","","required","","formControlName","username"],[4,"ngIf"],["matInput","","formControlName","email",3,"required"],["matInput","","required","","formControlName","firstname"],["matInput","","required","","formControlName","lastname"],[1,"password-never-expires-wrapper","flex-48"],["labelPosition","before","formControlName","passwordNeverExpires"],[1,"send-password-to-email-wrapper","flex-48"],["labelPosition","before","formControlName","sendPasswordToEmail"],["class","flex-48",4,"ngIf"],["class","flex-98 reset-password-error",4,"ngIf"],["required","","formControlName","officeId"],[3,"value",4,"ngFor","ngForOf"],["formControlName","staffId"],["required","","formControlName","roles","multiple",""],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["matInput","","required","","type","password","formControlName","password"],["matInput","","required","","type","password","formControlName","repeatPassword"],[1,"flex-98","reset-password-error"],[3,"value"],[1,"mw400"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/67141740/Users","target","_blank"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(o,n){if(o&1){let c=st();a(0,"div",2),t(1,` + `))}var G6=(()=>{class e{constructor(i,o,n,c,u,h,_,y){this.formBuilder=i,this.usersService=o,this.route=n,this.router=c,this.popoverService=u,this.configurationWizardService=h,this.dialog=_,this.passwordsUtility=y,this.route.data.subscribe(C=>{this.officesData=C.usersTemplate.allowedOffices,this.rolesData=C.usersTemplate.availableRoles})}ngOnInit(){this.createUserForm(),this.setStaffData(),this.setConditionalControls()}createUserForm(){this.userForm=this.formBuilder.group({username:["",bt.required],email:["",[bt.required,bt.email]],firstname:["",[bt.required,bt.pattern("(^[A-z]).*")]],lastname:["",[bt.required,bt.pattern("(^[A-z]).*")]],sendPasswordToEmail:[!0],passwordNeverExpires:[!1],officeId:["",bt.required],staffId:[""],roles:["",bt.required]},{validator:vu})}setStaffData(){this.userForm.get("officeId").valueChanges.subscribe(i=>{this.staffData=[],this.usersService.getStaff(i).subscribe(o=>{this.staffData=o})})}setConditionalControls(){this.userForm.get("sendPasswordToEmail").valueChanges.subscribe(i=>{i?(this.userForm.removeControl("password"),this.userForm.removeControl("repeatPassword"),this.userForm.get("email").setValidators([bt.required,bt.email])):(this.userForm.addControl("password",new _e("",this.passwordsUtility.getPasswordValidators())),this.userForm.addControl("repeatPassword",new _e("",[bt.required,this.passwordsUtility.confirmPassword("password")])),this.userForm.get("email").setValidators([bt.email])),this.userForm.get("email").updateValueAndValidity()})}submit(){let i=this.userForm.value;(this.userForm.value.staffId==null||this.userForm.value.staffId==="")&&delete i.staffId,this.usersService.createUser(i).subscribe(o=>{this.configurationWizardService.showUsersForm===!0?(this.configurationWizardService.showUsersForm=!1,this.openDialog()):this.router.navigate(["../",o.resourceId],{relativeTo:this.route})})}showPopover(i,o,n,c){setTimeout(()=>this.popoverService.open(i,o,n,c,{}),200)}ngAfterViewInit(){this.configurationWizardService.showUsersForm===!0&&setTimeout(()=>{this.showPopover(this.templateUserFormRef,this.userFormRef.nativeElement,"top",!0)})}nextStep(){this.configurationWizardService.showUsersForm=!1,this.configurationWizardService.showMakerCheckerTable=!0,this.router.navigate(["/system"])}previousStep(){this.configurationWizardService.showUsersForm=!1,this.configurationWizardService.showUsersList=!0,this.router.navigate(["/appusers"])}openDialog(){this.dialog.open(ll,{data:{stepName:"user"}}).afterClosed().subscribe(o=>{o.step===1?(this.configurationWizardService.showUsersForm=!1,this.router.navigate(["../"],{relativeTo:this.route})):o.step===2?(this.configurationWizardService.showUsersForm=!0,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate(["/organization/users/create"])):o.step===3&&(this.configurationWizardService.showUsersForm=!1,this.configurationWizardService.showMakerCheckerTable=!0,this.router.navigate(["/system"]))})}static{this.\u0275fac=function(o){return new(o||e)(V(xe),V(ql),V(Lt),V(te),V(yn),V(Sn),V(ni),V(Hg))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-create-user"]],viewQuery:function(o,n){if(o&1&&(Nt(Fwi,5),Nt(Bwi,5)),o&2){let c;Bt(c=Rt())&&(n.userFormRef=c.first),Bt(c=Rt())&&(n.templateUserFormRef=c.first)}},decls:140,vars:53,consts:[["userFormRef",""],["templateUserFormRef",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","layout-lt-md-column","gap-2percent"],[1,"flex-48"],["matInput","","required","","formControlName","username"],[4,"ngIf"],["matInput","","formControlName","email",3,"required"],["matInput","","required","","formControlName","firstname"],["matInput","","required","","formControlName","lastname"],[1,"password-never-expires-wrapper","flex-48"],["labelPosition","before","formControlName","passwordNeverExpires"],[1,"send-password-to-email-wrapper","flex-48"],["labelPosition","before","formControlName","sendPasswordToEmail"],["class","flex-48",4,"ngIf"],["class","flex-98 reset-password-error",4,"ngIf"],["required","","formControlName","officeId"],[3,"value",4,"ngFor","ngForOf"],["formControlName","staffId"],["required","","formControlName","roles","multiple",""],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["matInput","","required","","type","password","formControlName","password"],["matInput","","required","","type","password","formControlName","repeatPassword"],[1,"flex-98","reset-password-error"],[3,"value"],[1,"mw400"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/67141740/Users","target","_blank"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(o,n){if(o&1){let c=st();a(0,"div",2),t(1,` `),a(2,"mat-card"),t(3,` `),a(4,"form",3),q("ngSubmit",function(){return W(c),Q(n.submit())}),t(5,` `),a(6,"mat-card-content"),t(7,` @@ -40584,28 +40584,28 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),a(11,"mat-form-field",5),t(12,` `),a(13,"mat-label"),t(14),m(15,"translate"),s(),t(16,` `),k(17,"input",6),t(18,` - `),x(19,Lwi,8,9,"mat-error",7),t(20,` + `),x(19,Nwi,8,9,"mat-error",7),t(20,` `),s(),t(21,` `),a(22,"mat-form-field",5),t(23,` `),a(24,"mat-label"),t(25),m(26,"translate"),s(),t(27,` `),k(28,"input",8),t(29,` - `),x(30,Vwi,8,9,"mat-error",7),t(31,` - `),x(32,zwi,8,9,"mat-error",7),t(33,` + `),x(30,Lwi,8,9,"mat-error",7),t(31,` + `),x(32,Vwi,8,9,"mat-error",7),t(33,` `),s(),t(34,` `),a(35,"mat-form-field",5),t(36,` `),a(37,"mat-label"),t(38),m(39,"translate"),s(),t(40,` `),k(41,"input",9),t(42,` - `),x(43,jwi,7,6,"mat-error",7),t(44,` - `),x(45,qwi,8,9,"mat-error",7),t(46,` + `),x(43,zwi,7,6,"mat-error",7),t(44,` + `),x(45,jwi,8,9,"mat-error",7),t(46,` `),s(),t(47,` `),a(48,"mat-form-field",5),t(49,` `),a(50,"mat-label"),t(51),m(52,"translate"),s(),t(53,` `),k(54,"input",10),t(55,` - `),x(56,Hwi,7,6,"mat-error",7),t(57,` - `),x(58,Gwi,8,9,"mat-error",7),t(59,` + `),x(56,qwi,7,6,"mat-error",7),t(57,` + `),x(58,Hwi,8,9,"mat-error",7),t(59,` `),s(),t(60,` `),a(61,"div",11),t(62,` @@ -40616,33 +40616,33 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),a(70,"mat-checkbox",14),t(71),m(72,"translate"),s(),t(73,` `),s(),t(74,` - `),x(75,Ywi,16,7,"mat-form-field",15),t(76,` + `),x(75,Qwi,16,7,"mat-form-field",15),t(76,` - `),x(77,Jwi,10,4,"mat-form-field",15),t(78,` + `),x(77,Kwi,10,4,"mat-form-field",15),t(78,` - `),x(79,Zwi,7,6,"p",16),t(80,` + `),x(79,Jwi,7,6,"p",16),t(80,` `),a(81,"mat-form-field",5),t(82,` `),a(83,"mat-label"),t(84),m(85,"translate"),s(),t(86,` `),a(87,"mat-select",17),t(88,` - `),x(89,Xwi,2,2,"mat-option",18),t(90,` + `),x(89,Zwi,2,2,"mat-option",18),t(90,` `),s(),t(91,` - `),x(92,t4i,8,9,"mat-error",7),t(93,` + `),x(92,Xwi,8,9,"mat-error",7),t(93,` `),s(),t(94,` `),a(95,"mat-form-field",5),t(96,` `),a(97,"mat-label"),t(98),m(99,"translate"),s(),t(100,` `),a(101,"mat-select",19),t(102,` - `),x(103,e4i,2,2,"mat-option",18),t(104,` + `),x(103,t4i,2,2,"mat-option",18),t(104,` `),s(),t(105,` `),s(),t(106,` `),a(107,"mat-form-field",5),t(108,` `),a(109,"mat-label"),t(110),m(111,"translate"),s(),t(112,` `),a(113,"mat-select",20),t(114,` - `),x(115,i4i,2,2,"mat-option",18),t(116,` + `),x(115,e4i,2,2,"mat-option",18),t(116,` `),s(),t(117,` - `),x(118,n4i,7,6,"mat-error",7),t(119,` + `),x(118,i4i,7,6,"mat-error",7),t(119,` `),s(),t(120,` `),s(),t(121,` `),s(),t(122,` @@ -40655,19 +40655,19 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),s(),t(135,` `),s(),t(136,` -`),x(137,r4i,32,21,"ng-template",null,1,vi),t(139,` +`),x(137,n4i,32,21,"ng-template",null,1,vi),t(139,` `)}o&2&&(l(4),g("formGroup",n.userForm),l(10),b(d(15,30,"labels.inputs.Username")),l(5),g("ngIf",n.userForm.controls.username.hasError("required")),l(6),b(d(26,32,"labels.inputs.Email")),l(3),g("required",n.userForm.controls.sendPasswordToEmail.value),l(2),g("ngIf",n.userForm.controls.email.hasError("email")),l(2),g("ngIf",n.userForm.controls.email.hasError("required")),l(6),b(d(39,34,"labels.inputs.First Name")),l(5),g("ngIf",n.userForm.controls.firstname.hasError("pattern")),l(2),g("ngIf",n.userForm.controls.firstname.hasError("required")),l(6),b(d(52,36,"labels.inputs.Last Name")),l(5),g("ngIf",n.userForm.controls.lastname.hasError("pattern")),l(2),g("ngIf",n.userForm.controls.lastname.hasError("required")),l(6),P(` `,d(65,38,"labels.inputs.Password never expires"),` `),l(7),P(` `,d(72,40,"labels.inputs.Send password to email address"),` - `),l(4),g("ngIf",!n.userForm.controls.sendPasswordToEmail.value),l(2),g("ngIf",!n.userForm.controls.sendPasswordToEmail.value),l(2),g("ngIf",(n.userForm.errors==null?null:n.userForm.errors.passwordsDoNotMatch)&&!n.userForm.controls.password.hasError("required")&&!n.userForm.controls.repeatPassword.hasError("required")),l(5),b(d(85,42,"labels.inputs.Office")),l(5),g("ngForOf",n.officesData),l(3),g("ngIf",n.userForm.controls.officeId.hasError("required")),l(6),b(d(99,44,"labels.inputs.Staff")),l(5),g("ngForOf",n.staffData),l(7),b(d(111,46,"labels.inputs.Roles")),l(5),g("ngForOf",n.rolesData),l(3),g("ngIf",n.userForm.controls.roles.hasError("required")),l(7),g("routerLink",ht(52,Nwi)),l(),P(` + `),l(4),g("ngIf",!n.userForm.controls.sendPasswordToEmail.value),l(2),g("ngIf",!n.userForm.controls.sendPasswordToEmail.value),l(2),g("ngIf",(n.userForm.errors==null?null:n.userForm.errors.passwordsDoNotMatch)&&!n.userForm.controls.password.hasError("required")&&!n.userForm.controls.repeatPassword.hasError("required")),l(5),b(d(85,42,"labels.inputs.Office")),l(5),g("ngForOf",n.officesData),l(3),g("ngIf",n.userForm.controls.officeId.hasError("required")),l(6),b(d(99,44,"labels.inputs.Staff")),l(5),g("ngForOf",n.staffData),l(7),b(d(111,46,"labels.inputs.Roles")),l(5),g("ngForOf",n.rolesData),l(3),g("ngIf",n.userForm.controls.roles.hasError("required")),l(7),g("routerLink",ht(52,Rwi)),l(),P(` `,d(127,48,"labels.buttons.Cancel"),` `),l(3),g("disabled",!n.userForm.valid),l(),P(` `,d(131,50,"labels.buttons.Submit"),` - `))},dependencies:[St,se,zt,wt,ge,Se,re,ue,Ie,fe,he,qt,oe,me,Ue,Ht,$t,Te,Zt,Oe,De,Dt,Ai,Et],styles:[".password-never-expires-wrapper[_ngcontent-%COMP%], .send-password-to-email-wrapper[_ngcontent-%COMP%]{padding:17.5px 0}.reset-password-error[_ngcontent-%COMP%]{color:#f44336;font-size:80%;margin:0}"]})}}return e})();var o4i=()=>["edit"],a4i=()=>["../"];function s4i(e,r){if(e&1&&(a(0,"div",9),t(1,` + `))},dependencies:[St,se,zt,wt,ge,Se,re,ue,Ie,fe,he,qt,oe,me,Ue,Ht,$t,Te,Zt,Oe,De,Dt,Ai,Et],styles:[".password-never-expires-wrapper[_ngcontent-%COMP%], .send-password-to-email-wrapper[_ngcontent-%COMP%]{padding:17.5px 0}.reset-password-error[_ngcontent-%COMP%]{color:#f44336;font-size:80%;margin:0}"]})}}return e})();var r4i=()=>["edit"],o4i=()=>["../"];function a4i(e,r){if(e&1&&(a(0,"div",9),t(1,` `),a(2,"div",10),t(3),m(4,"translate"),s(),t(5,` `),a(6,"div",11),t(7),s(),t(8,` - `),s()),e&2){let i=A();l(3),b(d(4,2,"labels.inputs.Email")),l(4),b(i.userData.email)}}function l4i(e,r){if(e&1&&(a(0,"span"),t(1),s()),e&2){let i=r.$implicit;l(),P(` + `),s()),e&2){let i=A();l(3),b(d(4,2,"labels.inputs.Email")),l(4),b(i.userData.email)}}function s4i(e,r){if(e&1&&(a(0,"span"),t(1),s()),e&2){let i=r.$implicit;l(),P(` `,i.name,` `)}}var U6=(()=>{class e{constructor(i,o,n,c){this.usersService=i,this.route=o,this.router=n,this.dialog=c,this.route.data.subscribe(u=>{this.userData=u.user})}delete(){this.dialog.open(Li,{data:{deleteContext:`user ${this.userData.id}`}}).afterClosed().subscribe(o=>{o.delete&&this.usersService.deleteUser(this.userData.id).subscribe(()=>{this.router.navigate(["/appusers"])})})}changeUserPassword(){this.dialog.open(yw,{width:"440px"}).afterClosed().subscribe(o=>{if(o.password&&o.repeatPassword){let n=o.password,c=o.repeatPassword,u=this.userData.firstname,h={password:n,repeatPassword:c,firstname:u};this.usersService.changePassword(this.userData.id,h).subscribe(()=>{this.router.navigate(["/appusers"])})}})}static{this.\u0275fac=function(o){return new(o||e)(V(ql),V(Lt),V(te),V(ni))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-view-user"]],decls:94,vars:37,consts:[[1,"container","m-b-20","layout-row","layout-lt-md-column","align-end","gap-2percent"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"],["mat-raised-button","","color","primary",3,"click"],["icon","cog",1,"m-r-10"],[1,"container"],[1,"content-rows"],[1,"content-row"],[1,"label"],[1,"value"],["class","content-row",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"layout-row","layout-align-center","gap-2percent","column-on-mobile","back-button-container"],["type","button","mat-raised-button","","color","primary",3,"routerLink"]],template:function(o,n){o&1&&(a(0,"div",0),t(1,` `),a(2,"button",1),t(3,` @@ -40697,7 +40697,7 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),a(55,"div",11),t(56),s(),t(57,` `),s(),t(58,` - `),x(59,s4i,9,4,"div",12),t(60,` + `),x(59,a4i,9,4,"div",12),t(60,` `),a(61,"div",9),t(62,` `),a(63,"div",10),t(64),m(65,"translate"),s(),t(66,` @@ -40707,7 +40707,7 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),a(71,"div",9),t(72,` `),a(73,"div",10),t(74),m(75,"translate"),s(),t(76,` `),a(77,"div",11),t(78,` - `),x(79,l4i,2,1,"span",13),t(80,` + `),x(79,s4i,2,1,"span",13),t(80,` `),s(),t(81,` `),s(),t(82,` `),s(),t(83,` @@ -40718,45 +40718,45 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),s(),t(91,` `),s(),t(92,` `),s(),t(93,` -`)),o&2&&(l(2),g("routerLink",ht(35,o4i)),l(3),P(` +`)),o&2&&(l(2),g("routerLink",ht(35,r4i)),l(3),P(` `,d(6,17,"labels.buttons.Edit"),` `),l(6),P(` `,d(12,19,"labels.buttons.Delete"),` `),l(6),P(` `,d(18,21,"labels.buttons.Change Password"),` - `),l(15),b(d(33,23,"labels.inputs.Login Name")),l(4),b(n.userData.username),l(6),b(d(43,25,"labels.inputs.First Name")),l(4),b(n.userData.firstname),l(6),b(d(53,27,"labels.inputs.Last Name")),l(4),b(n.userData.lastname),l(3),g("ngIf",n.userData.email),l(5),b(d(65,29,"labels.inputs.Office")),l(4),b(n.userData.officeName),l(6),b(d(75,31,"labels.inputs.Roles")),l(5),g("ngForOf",n.userData.selectedRoles),l(7),g("routerLink",ht(36,a4i)),l(),P(` + `),l(15),b(d(33,23,"labels.inputs.Login Name")),l(4),b(n.userData.username),l(6),b(d(43,25,"labels.inputs.First Name")),l(4),b(n.userData.firstname),l(6),b(d(53,27,"labels.inputs.Last Name")),l(4),b(n.userData.lastname),l(3),g("ngIf",n.userData.email),l(5),b(d(65,29,"labels.inputs.Office")),l(4),b(n.userData.officeName),l(6),b(d(75,31,"labels.inputs.Roles")),l(5),g("ngForOf",n.userData.selectedRoles),l(7),g("routerLink",ht(36,o4i)),l(),P(` `,d(88,33,"labels.buttons.Back"),` - `))},dependencies:[St,se,zt,wt,qt,oe,me,Dt,Et,Gt],styles:[".container[_ngcontent-%COMP%]{max-width:37rem;margin:0 auto;padding:1rem}.container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{margin-bottom:1rem;padding:1.5rem;box-shadow:0 2px 4px #0000001a;border:1px solid var(--border-color, #ddd);border-radius:8px;background-color:var(--card-background, #fff);transition:background-color .3s ease,border-color .3s ease}.container[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%]{display:grid;grid-template-columns:50% 50%;gap:1rem}.container[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%] .flex-50[_ngcontent-%COMP%]{padding:.5rem}.container[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%] .flex-50.mat-body-strong[_ngcontent-%COMP%]{color:var(--label-color, #555);font-weight:600}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;padding:.25rem 0;color:var(--text-color, inherit)}.container[_ngcontent-%COMP%] .content-rows[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.container[_ngcontent-%COMP%] .content-rows[_ngcontent-%COMP%] .content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;border-bottom:1px solid var(--border-color-light, #eee);padding-bottom:.5rem}.container[_ngcontent-%COMP%] .content-rows[_ngcontent-%COMP%] .content-row[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{flex:0 0 40%;font-weight:600;color:var(--label-color, #555);padding:.5rem 1rem .5rem 0}.container[_ngcontent-%COMP%] .content-rows[_ngcontent-%COMP%] .content-row[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{flex:0 0 60%;padding:.5rem 0;color:var(--text-color, inherit)}.container[_ngcontent-%COMP%] .content-rows[_ngcontent-%COMP%] .content-row[_ngcontent-%COMP%] .value[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;padding:.25rem 0}.container[_ngcontent-%COMP%] .back-button-container[_ngcontent-%COMP%]{margin-top:2rem}.container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{transition:all .2s ease}.container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{transform:translateY(-2px)}.dark-theme[_nghost-%COMP%], .dark-theme [_nghost-%COMP%]{--border-color: #444;--border-color-light: #3a3a3a;--card-background: #2d2d2d;--label-color: #b8b8b8;--text-color: #e0e0e0}.dark-theme[_nghost-%COMP%] .container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%], .dark-theme [_nghost-%COMP%] .container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{box-shadow:0 2px 4px #0000004d}"]})}}return e})();var c4i=()=>["../"];function p4i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `))},dependencies:[St,se,zt,wt,qt,oe,me,Dt,Et,Gt],styles:[".container[_ngcontent-%COMP%]{max-width:37rem;margin:0 auto;padding:1rem}.container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{margin-bottom:1rem;padding:1.5rem;box-shadow:0 2px 4px #0000001a;border:1px solid var(--border-color, #ddd);border-radius:8px;background-color:var(--card-background, #fff);transition:background-color .3s ease,border-color .3s ease}.container[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%]{display:grid;grid-template-columns:50% 50%;gap:1rem}.container[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%] .flex-50[_ngcontent-%COMP%]{padding:.5rem}.container[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%] .flex-50.mat-body-strong[_ngcontent-%COMP%]{color:var(--label-color, #555);font-weight:600}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;padding:.25rem 0;color:var(--text-color, inherit)}.container[_ngcontent-%COMP%] .content-rows[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.container[_ngcontent-%COMP%] .content-rows[_ngcontent-%COMP%] .content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;border-bottom:1px solid var(--border-color-light, #eee);padding-bottom:.5rem}.container[_ngcontent-%COMP%] .content-rows[_ngcontent-%COMP%] .content-row[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{flex:0 0 40%;font-weight:600;color:var(--label-color, #555);padding:.5rem 1rem .5rem 0}.container[_ngcontent-%COMP%] .content-rows[_ngcontent-%COMP%] .content-row[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{flex:0 0 60%;padding:.5rem 0;color:var(--text-color, inherit)}.container[_ngcontent-%COMP%] .content-rows[_ngcontent-%COMP%] .content-row[_ngcontent-%COMP%] .value[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;padding:.25rem 0}.container[_ngcontent-%COMP%] .back-button-container[_ngcontent-%COMP%]{margin-top:2rem}.container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{transition:all .2s ease}.container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{transform:translateY(-2px)}.dark-theme[_nghost-%COMP%], .dark-theme [_nghost-%COMP%]{--border-color: #444;--border-color-light: #3a3a3a;--card-background: #2d2d2d;--label-color: #b8b8b8;--text-color: #e0e0e0}.dark-theme[_nghost-%COMP%] .container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%], .dark-theme [_nghost-%COMP%] .container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{box-shadow:0 2px 4px #0000004d}"]})}}return e})();var l4i=()=>["../"];function c4i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.Username")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function m4i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `),l(4),b(d(6,7,"labels.commons.required")))}function p4i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.Email")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.invalid")))}function d4i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `),l(4),b(d(6,7,"labels.commons.invalid")))}function m4i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.Email")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function u4i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),a(3,"strong"),t(4),m(5,"translate"),s(),t(6,` + `),l(4),b(d(6,7,"labels.commons.required")))}function d4i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),a(3,"strong"),t(4),m(5,"translate"),s(),t(6,` `),s()),e&2&&(l(),P(` `,d(2,2,"labels.inputs.First Name"),` - `),l(3),b(d(5,4,"labels.commons.cannot begin with a special character or number")))}function f4i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `),l(3),b(d(5,4,"labels.commons.cannot begin with a special character or number")))}function u4i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.First Name")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function h4i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),a(3,"strong"),t(4),m(5,"translate"),s(),t(6,` + `),l(4),b(d(6,7,"labels.commons.required")))}function f4i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),a(3,"strong"),t(4),m(5,"translate"),s(),t(6,` `),s()),e&2&&(l(),P(` `,d(2,2,"labels.inputs.Last Name"),` - `),l(3),b(d(5,4,"labels.commons.cannot begin with a special character or number")))}function g4i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `),l(3),b(d(5,4,"labels.commons.cannot begin with a special character or number")))}function h4i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.Last Name")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function x4i(e,r){if(e&1&&(a(0,"mat-option",18),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` + `),l(4),b(d(6,7,"labels.commons.required")))}function g4i(e,r){if(e&1&&(a(0,"mat-option",18),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` `,i.name,` - `)}}function _4i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `)}}function x4i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.Office")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function v4i(e,r){if(e&1&&(a(0,"mat-option",18),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` + `),l(4),b(d(6,7,"labels.commons.required")))}function _4i(e,r){if(e&1&&(a(0,"mat-option",18),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` `,i.displayName,` - `)}}function b4i(e,r){if(e&1&&(a(0,"mat-option",18),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` + `)}}function v4i(e,r){if(e&1&&(a(0,"mat-option",18),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` `,i.name,` - `)}}function C4i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),a(3,"strong"),t(4),m(5,"translate"),s(),t(6,` + `)}}function b4i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),a(3,"strong"),t(4),m(5,"translate"),s(),t(6,` `),s()),e&2&&(l(),P(` `,d(2,2,"labels.commons.At least one role"),` `),l(3),b(d(5,4,"labels.commons.must be selected")))}var $6=(()=>{class e{constructor(i,o,n,c){this.formBuilder=i,this.usersService=o,this.route=n,this.router=c,this.route.data.subscribe(u=>{this.userData=u.user,this.officesData=u.usersTemplate.allowedOffices,this.rolesData=u.usersTemplate.availableRoles})}ngOnInit(){this.createEditUserForm(),this.officeChanged(this.userData.officeId)}createEditUserForm(){let i=this.userData.staff?this.userData.staff.id:null;this.editUserForm=this.formBuilder.group({username:[this.userData.username,bt.required],email:[this.userData.email,[bt.required,bt.email]],firstname:[this.userData.firstname,[bt.required,bt.pattern("(^[A-z]).*")]],lastname:[this.userData.lastname,[bt.required,bt.pattern("(^[A-z]).*")]],passwordNeverExpires:[this.userData.passwordNeverExpires],officeId:[this.userData.officeId,bt.required],staffId:[i],roles:[this.userData.selectedRoles.map(o=>o.id),bt.required]})}officeChanged(i){this.staffData=[],this.usersService.getStaff(i).subscribe(o=>{this.staffData=o})}submit(){let i=this.editUserForm.value;this.usersService.editUser(this.userData.id,i).subscribe(o=>{this.router.navigate(["../../",o.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(o){return new(o||e)(V(xe),V(ql),V(Lt),V(te))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-edit-user"]],decls:123,vars:46,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["matInput","","required","","formControlName","username"],[4,"ngIf"],["matInput","","required","","formControlName","email"],["matInput","","required","","formControlName","firstname"],["matInput","","required","","formControlName","lastname"],[1,"password-never-expires-wrapper","flex-48"],["labelPosition","before","formControlName","passwordNeverExpires"],["required","","formControlName","officeId",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],["formControlName","staffId"],["required","","formControlName","roles","multiple",""],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],[3,"value"]],template:function(o,n){o&1&&(a(0,"div",0),t(1,` @@ -40767,28 +40767,28 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),a(10,"mat-form-field",3),t(11,` `),a(12,"mat-label"),t(13),m(14,"translate"),s(),t(15,` `),k(16,"input",4),t(17,` - `),x(18,p4i,8,9,"mat-error",5),t(19,` + `),x(18,c4i,8,9,"mat-error",5),t(19,` `),s(),t(20,` `),a(21,"mat-form-field",3),t(22,` `),a(23,"mat-label"),t(24),m(25,"translate"),s(),t(26,` `),k(27,"input",6),t(28,` - `),x(29,m4i,8,9,"mat-error",5),t(30,` - `),x(31,d4i,8,9,"mat-error",5),t(32,` + `),x(29,p4i,8,9,"mat-error",5),t(30,` + `),x(31,m4i,8,9,"mat-error",5),t(32,` `),s(),t(33,` `),a(34,"mat-form-field",3),t(35,` `),a(36,"mat-label"),t(37),m(38,"translate"),s(),t(39,` `),k(40,"input",7),t(41,` - `),x(42,u4i,7,6,"mat-error",5),t(43,` - `),x(44,f4i,8,9,"mat-error",5),t(45,` + `),x(42,d4i,7,6,"mat-error",5),t(43,` + `),x(44,u4i,8,9,"mat-error",5),t(45,` `),s(),t(46,` `),a(47,"mat-form-field",3),t(48,` `),a(49,"mat-label"),t(50),m(51,"translate"),s(),t(52,` `),k(53,"input",8),t(54,` - `),x(55,h4i,7,6,"mat-error",5),t(56,` - `),x(57,g4i,8,9,"mat-error",5),t(58,` + `),x(55,f4i,7,6,"mat-error",5),t(56,` + `),x(57,h4i,8,9,"mat-error",5),t(58,` `),s(),t(59,` `),a(60,"div",9),t(61,` @@ -40798,24 +40798,24 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),a(67,"mat-form-field",3),t(68,` `),a(69,"mat-label"),t(70),m(71,"translate"),s(),t(72,` `),a(73,"mat-select",11),q("selectionChange",function(u){return n.officeChanged(u.value)}),t(74,` - `),x(75,x4i,2,2,"mat-option",12),t(76,` + `),x(75,g4i,2,2,"mat-option",12),t(76,` `),s(),t(77,` - `),x(78,_4i,8,9,"mat-error",5),t(79,` + `),x(78,x4i,8,9,"mat-error",5),t(79,` `),s(),t(80,` `),a(81,"mat-form-field",3),t(82,` `),a(83,"mat-label"),t(84),m(85,"translate"),s(),t(86,` `),a(87,"mat-select",13),t(88,` - `),x(89,v4i,2,2,"mat-option",12),t(90,` + `),x(89,_4i,2,2,"mat-option",12),t(90,` `),s(),t(91,` `),s(),t(92,` `),a(93,"mat-form-field",3),t(94,` `),a(95,"mat-label"),t(96),m(97,"translate"),s(),t(98,` `),a(99,"mat-select",14),t(100,` - `),x(101,b4i,2,2,"mat-option",12),t(102,` + `),x(101,v4i,2,2,"mat-option",12),t(102,` `),s(),t(103,` - `),x(104,C4i,7,6,"mat-error",5),t(105,` + `),x(104,b4i,7,6,"mat-error",5),t(105,` `),s(),t(106,` `),s(),t(107,` `),s(),t(108,` @@ -40829,11 +40829,11 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),s(),t(122,` `)),o&2&&(l(4),g("formGroup",n.editUserForm),l(9),b(d(14,25,"labels.inputs.Username")),l(5),g("ngIf",n.editUserForm.controls.username.hasError("required")),l(6),b(d(25,27,"labels.inputs.Email")),l(5),g("ngIf",n.editUserForm.controls.email.hasError("email")),l(2),g("ngIf",n.editUserForm.controls.email.hasError("required")),l(6),b(d(38,29,"labels.inputs.First Name")),l(5),g("ngIf",n.editUserForm.controls.firstname.hasError("pattern")),l(2),g("ngIf",n.editUserForm.controls.firstname.hasError("required")),l(6),b(d(51,31,"labels.inputs.Last Name")),l(5),g("ngIf",n.editUserForm.controls.lastname.hasError("pattern")),l(2),g("ngIf",n.editUserForm.controls.lastname.hasError("required")),l(6),P(` `,d(64,33,"labels.inputs.Password never expires"),` - `),l(7),b(d(71,35,"labels.inputs.Office")),l(5),g("ngForOf",n.officesData),l(3),g("ngIf",n.editUserForm.controls.officeId.hasError("required")),l(6),b(d(85,37,"labels.inputs.Staff")),l(5),g("ngForOf",n.staffData),l(7),b(d(97,39,"labels.inputs.Roles")),l(5),g("ngForOf",n.rolesData),l(3),g("ngIf",n.editUserForm.controls.roles.hasError("required")),l(7),g("routerLink",ht(45,c4i)),l(),P(` + `),l(7),b(d(71,35,"labels.inputs.Office")),l(5),g("ngForOf",n.officesData),l(3),g("ngIf",n.editUserForm.controls.officeId.hasError("required")),l(6),b(d(85,37,"labels.inputs.Staff")),l(5),g("ngForOf",n.staffData),l(7),b(d(97,39,"labels.inputs.Roles")),l(5),g("ngForOf",n.rolesData),l(3),g("ngIf",n.editUserForm.controls.roles.hasError("required")),l(7),g("routerLink",ht(45,l4i)),l(),P(` `,d(113,41,"labels.buttons.Cancel"),` `),l(3),g("disabled",!n.editUserForm.valid),l(),P(` `,d(117,43,"labels.buttons.Submit"),` - `))},dependencies:[St,se,zt,wt,ge,Se,re,ue,Ie,fe,he,qt,oe,me,Ue,Ht,$t,Te,Zt,Oe,De,Dt,Ai,Et],styles:[".password-never-expires-wrapper[_ngcontent-%COMP%]{padding:17.5px 0}"]})}}return e})();var Cz=(()=>{class e{constructor(i){this.usersService=i}resolve(){return this.usersService.getUsers()}static{this.\u0275fac=function(o){return new(o||e)(Qt(ql))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var TC=(()=>{class e{constructor(i){this.usersService=i}resolve(){return this.usersService.getUsersTemplate()}static{this.\u0275fac=function(o){return new(o||e)(Qt(ql))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var W6=(()=>{class e{constructor(i){this.usersService=i}resolve(i){let o=i.paramMap.get("id");return this.usersService.getUser(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(ql))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var Wp=(()=>{class e{constructor(i,o){this.http=i,this.autservice=o,this.api=Wn.OIDC.oidcApiUrl}createUser(i){return this.http.post(this.api+"authentication/user",i)}getExtraUserData(i){return this.http.get(`${this.api}authentication/user/db/${i}`)}assignRolesToUser(i,o){let n={userId:i,roleKeys:o.map(String)};return this.http.post(this.api+"authentication/user/role",n)}createUserBd(i){return this.http.post(this.api+"authentication/user/db",i)}getUsersTemplate(){return this.http.get("/users/template")}getUsers(){let i=this.autservice.getAccessToken();return sb(fetch(`${this.api}authentication/user`,{headers:{"Content-Type":"application/json",Authorization:`Bearer ${i}`}})).pipe(KO(o=>o.json()),xr(o=>{let n=[],c=o.object?.result;return Array.isArray(c)&&c.forEach(u=>{u.human&&n.push({id:u.id,firstname:u.human.profile.firstName,lastname:u.human.profile.lastName,email:u.human.email.email,officeName:"Head Office"})}),n}))}getUser(i){let o=`${this.api}authentication/user/${i}`;return sb(fetch(o,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.autservice.getAccessToken()}`}})).pipe(KO(n=>n.json()),xr(n=>n))}editUser(i){return this.http.put(this.api+"authentication/user",i)}editRoles(i){return this.http.put(this.api+"authentication/user/role",i)}editOffice(i){return this.http.put(this.api+"authentication/user/office",i)}getRoles(){return this.http.get(this.api+"authentication/role")}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ro),Qt(Va))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var yz=(()=>{class e{constructor(i){this.usersServiceZitadel=i}resolve(){return this.usersServiceZitadel.getUsers()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Wp))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var Sz=(()=>{class e{constructor(i){this.usersServiceZitadel=i}resolve(){return this.usersServiceZitadel.getUsersTemplate()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Wp))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var Q6=(()=>{class e{constructor(i){this.usersServiceZitadel=i}resolve(i){let o=i.paramMap.get("id");return this.usersServiceZitadel.getUser(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Wp))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var S4i=["paginatorUsers"],w4i=["sortUsers"],E4i=["paginatorZitadel"],P4i=["sortZitadel"],k4i=["buttonCreateUser"],I4i=["templateButtonCreateUser"],T4i=["usersTable"],M4i=["templateUsersTable"],D4i=()=>["create"],A4i=()=>[10,25,50,100],O4i=e=>[e];function F4i(e,r){e&1&&(a(0,"th",23),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.First Name")))}function B4i(e,r){if(e&1&&(a(0,"td",24),t(1),s()),e&2){let i=r.$implicit;l(),b(i.firstname)}}function R4i(e,r){e&1&&(a(0,"th",23),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Last Name")))}function N4i(e,r){if(e&1&&(a(0,"td",24),t(1),s()),e&2){let i=r.$implicit;l(),b(i.lastname)}}function L4i(e,r){e&1&&(a(0,"th",23),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Email")))}function V4i(e,r){if(e&1&&(a(0,"td",24),t(1),s()),e&2){let i=r.$implicit;l(),b(i.email)}}function z4i(e,r){e&1&&(a(0,"th",23),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Office")))}function j4i(e,r){if(e&1&&(a(0,"td",24),t(1),s()),e&2){let i=r.$implicit;l(),b(i.officeName)}}function q4i(e,r){e&1&&k(0,"tr",25)}function H4i(e,r){if(e&1&&k(0,"tr",26),e&2){let i=r.$implicit;g("routerLink",Xe(1,O4i,i.id))}}var Y6=(()=>{class e{constructor(i,o,n,c){this.route=i,this.router=o,this.configurationWizardService=n,this.popoverService=c,this.usersData=[],this.usersZitadelData=[],this.displayedColumns=["firstname","lastname","email","officeName"],this.dataSource=new ci,this.dataSourceZitadel=new ci}ngOnInit(){this.route.data.subscribe(i=>{this.usersData=i.users||[],this.usersZitadelData=i.usersZitadel||[],this.dataSource=new ci(this.usersData),this.dataSourceZitadel=new ci(this.usersZitadelData),this.dataSource.paginator=this.paginatorUsers,this.dataSource.sort=this.sortUsers,this.dataSourceZitadel.paginator=this.paginatorZitadel,this.dataSourceZitadel.sort=this.sortZitadel})}applyFilter(i){let o=i.trim().toLowerCase();this.dataSource.filter=o,this.dataSourceZitadel.filter=o}showPopover(i,o,n,c){setTimeout(()=>this.popoverService.open(i,o,n,c,{}),200)}ngAfterViewInit(){this.configurationWizardService.showUsers&&setTimeout(()=>{this.showPopover(this.templateButtonCreateUser,this.buttonCreateUser.nativeElement,"bottom",!0)}),this.configurationWizardService.showUsersList&&setTimeout(()=>{this.showPopover(this.templateUsersTable,this.usersTable.nativeElement,"top",!0)})}nextStep(){this.configurationWizardService.showUsers=!1,this.configurationWizardService.showUsersList=!1,this.configurationWizardService.showUsersForm=!0,this.router.navigate(["/appusers/create"])}previousStep(){this.configurationWizardService.showUsers=!1,this.configurationWizardService.showUsersList=!1,this.configurationWizardService.showRolesandPermissionList=!0,this.router.navigate(["/system/roles-and-permissions"])}static{this.\u0275fac=function(o){return new(o||e)(V(Lt),V(te),V(Sn),V(yn))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-users"]],viewQuery:function(o,n){if(o&1&&(Nt(S4i,7),Nt(w4i,7),Nt(E4i,7),Nt(P4i,7),Nt(k4i,5),Nt(I4i,5),Nt(T4i,5),Nt(M4i,5)),o&2){let c;Bt(c=Rt())&&(n.paginatorUsers=c.first),Bt(c=Rt())&&(n.sortUsers=c.first),Bt(c=Rt())&&(n.paginatorZitadel=c.first),Bt(c=Rt())&&(n.sortZitadel=c.first),Bt(c=Rt())&&(n.buttonCreateUser=c.first),Bt(c=Rt())&&(n.templateButtonCreateUser=c.first),Bt(c=Rt())&&(n.usersTable=c.first),Bt(c=Rt())&&(n.templateUsersTable=c.first)}},decls:75,vars:16,consts:[["buttonCreateUser",""],["filter",""],["sortUsers","matSort"],["paginatorUsers",""],[1,"container","m-b-20","layout-row","align-end","gap-20px"],[1,"in-block"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],[1,"container","container-margin"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"container","mat-elevation-z8","container-margin"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","firstname"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","lastname"],["matColumnDef","email"],["matColumnDef","officeName"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(o,n){if(o&1){let c=st();a(0,"div",4),t(1,` + `))},dependencies:[St,se,zt,wt,ge,Se,re,ue,Ie,fe,he,qt,oe,me,Ue,Ht,$t,Te,Zt,Oe,De,Dt,Ai,Et],styles:[".password-never-expires-wrapper[_ngcontent-%COMP%]{padding:17.5px 0}"]})}}return e})();var Cz=(()=>{class e{constructor(i){this.usersService=i}resolve(){return this.usersService.getUsers()}static{this.\u0275fac=function(o){return new(o||e)(Qt(ql))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var TC=(()=>{class e{constructor(i){this.usersService=i}resolve(){return this.usersService.getUsersTemplate()}static{this.\u0275fac=function(o){return new(o||e)(Qt(ql))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var W6=(()=>{class e{constructor(i){this.usersService=i}resolve(i){let o=i.paramMap.get("id");return this.usersService.getUser(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(ql))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var Wp=(()=>{class e{constructor(i,o){this.http=i,this.autservice=o,this.api=Wn.OIDC.oidcApiUrl}createUser(i){return this.http.post(this.api+"authentication/user",i)}getExtraUserData(i){return this.http.get(`${this.api}authentication/user/db/${i}`)}assignRolesToUser(i,o){let n={userId:i,roleKeys:o.map(String)};return this.http.post(this.api+"authentication/user/role",n)}createUserBd(i){return this.http.post(this.api+"authentication/user/db",i)}getUsersTemplate(){return this.http.get("/users/template")}getUsers(){let i=this.autservice.getAccessToken();return sb(fetch(`${this.api}authentication/user`,{headers:{"Content-Type":"application/json",Authorization:`Bearer ${i}`}})).pipe(KO(o=>o.json()),xr(o=>{let n=[],c=o.object?.result;return Array.isArray(c)&&c.forEach(u=>{u.human&&n.push({id:u.id,firstname:u.human.profile.firstName,lastname:u.human.profile.lastName,email:u.human.email.email,officeName:"Head Office"})}),n}))}getUser(i){let o=`${this.api}authentication/user/${i}`;return sb(fetch(o,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.autservice.getAccessToken()}`}})).pipe(KO(n=>n.json()),xr(n=>n))}editUser(i){return this.http.put(this.api+"authentication/user",i)}editRoles(i){return this.http.put(this.api+"authentication/user/role",i)}editOffice(i){return this.http.put(this.api+"authentication/user/office",i)}getRoles(){return this.http.get(this.api+"authentication/role")}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ro),Qt(Va))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var yz=(()=>{class e{constructor(i){this.usersServiceZitadel=i}resolve(){return this.usersServiceZitadel.getUsers()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Wp))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var Sz=(()=>{class e{constructor(i){this.usersServiceZitadel=i}resolve(){return this.usersServiceZitadel.getUsersTemplate()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Wp))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var Q6=(()=>{class e{constructor(i){this.usersServiceZitadel=i}resolve(i){let o=i.paramMap.get("id");return this.usersServiceZitadel.getUser(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Wp))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var y4i=["paginatorUsers"],S4i=["sortUsers"],w4i=["paginatorZitadel"],E4i=["sortZitadel"],P4i=["buttonCreateUser"],k4i=["templateButtonCreateUser"],I4i=["usersTable"],T4i=["templateUsersTable"],M4i=()=>["create"],D4i=()=>[10,25,50,100],A4i=e=>[e];function O4i(e,r){e&1&&(a(0,"th",23),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.First Name")))}function F4i(e,r){if(e&1&&(a(0,"td",24),t(1),s()),e&2){let i=r.$implicit;l(),b(i.firstname)}}function B4i(e,r){e&1&&(a(0,"th",23),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Last Name")))}function R4i(e,r){if(e&1&&(a(0,"td",24),t(1),s()),e&2){let i=r.$implicit;l(),b(i.lastname)}}function N4i(e,r){e&1&&(a(0,"th",23),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Email")))}function L4i(e,r){if(e&1&&(a(0,"td",24),t(1),s()),e&2){let i=r.$implicit;l(),b(i.email)}}function V4i(e,r){e&1&&(a(0,"th",23),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Office")))}function z4i(e,r){if(e&1&&(a(0,"td",24),t(1),s()),e&2){let i=r.$implicit;l(),b(i.officeName)}}function j4i(e,r){e&1&&k(0,"tr",25)}function q4i(e,r){if(e&1&&k(0,"tr",26),e&2){let i=r.$implicit;g("routerLink",Xe(1,A4i,i.id))}}var Y6=(()=>{class e{constructor(i,o,n,c){this.route=i,this.router=o,this.configurationWizardService=n,this.popoverService=c,this.usersData=[],this.usersZitadelData=[],this.displayedColumns=["firstname","lastname","email","officeName"],this.dataSource=new ci,this.dataSourceZitadel=new ci}ngOnInit(){this.route.data.subscribe(i=>{this.usersData=i.users||[],this.usersZitadelData=i.usersZitadel||[],this.dataSource=new ci(this.usersData),this.dataSourceZitadel=new ci(this.usersZitadelData),this.dataSource.paginator=this.paginatorUsers,this.dataSource.sort=this.sortUsers,this.dataSourceZitadel.paginator=this.paginatorZitadel,this.dataSourceZitadel.sort=this.sortZitadel})}applyFilter(i){let o=i.trim().toLowerCase();this.dataSource.filter=o,this.dataSourceZitadel.filter=o}showPopover(i,o,n,c){setTimeout(()=>this.popoverService.open(i,o,n,c,{}),200)}ngAfterViewInit(){this.configurationWizardService.showUsers&&setTimeout(()=>{this.showPopover(this.templateButtonCreateUser,this.buttonCreateUser.nativeElement,"bottom",!0)}),this.configurationWizardService.showUsersList&&setTimeout(()=>{this.showPopover(this.templateUsersTable,this.usersTable.nativeElement,"top",!0)})}nextStep(){this.configurationWizardService.showUsers=!1,this.configurationWizardService.showUsersList=!1,this.configurationWizardService.showUsersForm=!0,this.router.navigate(["/appusers/create"])}previousStep(){this.configurationWizardService.showUsers=!1,this.configurationWizardService.showUsersList=!1,this.configurationWizardService.showRolesandPermissionList=!0,this.router.navigate(["/system/roles-and-permissions"])}static{this.\u0275fac=function(o){return new(o||e)(V(Lt),V(te),V(Sn),V(yn))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-users"]],viewQuery:function(o,n){if(o&1&&(Nt(y4i,7),Nt(S4i,7),Nt(w4i,7),Nt(E4i,7),Nt(P4i,5),Nt(k4i,5),Nt(I4i,5),Nt(T4i,5)),o&2){let c;Bt(c=Rt())&&(n.paginatorUsers=c.first),Bt(c=Rt())&&(n.sortUsers=c.first),Bt(c=Rt())&&(n.paginatorZitadel=c.first),Bt(c=Rt())&&(n.sortZitadel=c.first),Bt(c=Rt())&&(n.buttonCreateUser=c.first),Bt(c=Rt())&&(n.templateButtonCreateUser=c.first),Bt(c=Rt())&&(n.usersTable=c.first),Bt(c=Rt())&&(n.templateUsersTable=c.first)}},decls:75,vars:16,consts:[["buttonCreateUser",""],["filter",""],["sortUsers","matSort"],["paginatorUsers",""],[1,"container","m-b-20","layout-row","align-end","gap-20px"],[1,"in-block"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],[1,"container","container-margin"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"container","mat-elevation-z8","container-margin"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","firstname"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","lastname"],["matColumnDef","email"],["matColumnDef","officeName"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(o,n){if(o&1){let c=st();a(0,"div",4),t(1,` `),a(2,"div",5,0),t(4,` `),a(5,"button",6),t(6,` `),k(7,"fa-icon",7),t(8),m(9,"translate"),s(),t(10,` @@ -40853,38 +40853,38 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),a(31,"h3"),t(32),m(33,"translate"),s(),t(34,` `),a(35,"table",13,2),t(37,` `),ot(38,14),t(39,` - `),x(40,F4i,3,3,"th",15),t(41,` - `),x(42,B4i,2,1,"td",16),t(43,` + `),x(40,O4i,3,3,"th",15),t(41,` + `),x(42,F4i,2,1,"td",16),t(43,` `),at(),t(44,` `),ot(45,17),t(46,` - `),x(47,R4i,3,3,"th",15),t(48,` - `),x(49,N4i,2,1,"td",16),t(50,` + `),x(47,B4i,3,3,"th",15),t(48,` + `),x(49,R4i,2,1,"td",16),t(50,` `),at(),t(51,` `),ot(52,18),t(53,` - `),x(54,L4i,3,3,"th",15),t(55,` - `),x(56,V4i,2,1,"td",16),t(57,` + `),x(54,N4i,3,3,"th",15),t(55,` + `),x(56,L4i,2,1,"td",16),t(57,` `),at(),t(58,` `),ot(59,19),t(60,` - `),x(61,z4i,3,3,"th",15),t(62,` - `),x(63,j4i,2,1,"td",16),t(64,` + `),x(61,V4i,3,3,"th",15),t(62,` + `),x(63,z4i,2,1,"td",16),t(64,` `),at(),t(65,` - `),x(66,q4i,1,0,"tr",20),t(67,` - `),x(68,H4i,1,3,"tr",21),t(69,` + `),x(66,j4i,1,0,"tr",20),t(67,` + `),x(68,q4i,1,3,"tr",21),t(69,` `),s(),t(70,` `),k(71,"mat-paginator",22,3),t(73,` `),s(),t(74,` -`)}o&2&&(l(5),g("routerLink",ht(14,D4i)),l(3),P(` +`)}o&2&&(l(5),g("routerLink",ht(14,M4i)),l(3),P(` `,d(9,8,"labels.buttons.Create User"),` - `),l(13),b(d(22,10,"labels.inputs.Filter")),l(11),b(d(33,12,"labels.heading.Users")),l(3),g("dataSource",n.dataSource),l(31),g("matHeaderRowDef",n.displayedColumns),l(2),g("matRowDefColumns",n.displayedColumns),l(3),g("pageSizeOptions",ht(15,A4i)))},dependencies:[St,wt,qt,Ht,$t,Zt,Dt,Et,xw,Gt,J$,Je,eW,$e,wi,nW,Fe,Re,ze,Ne,Be,je,Le,Ve,qe,He],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.container-margin[_ngcontent-%COMP%]{margin-top:1rem}"]})}}return e})();var G4i=e=>({minchar:e});function U4i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),s()),e&2&&(l(),P(` + `),l(13),b(d(22,10,"labels.inputs.Filter")),l(11),b(d(33,12,"labels.heading.Users")),l(3),g("dataSource",n.dataSource),l(31),g("matHeaderRowDef",n.displayedColumns),l(2),g("matRowDefColumns",n.displayedColumns),l(3),g("pageSizeOptions",ht(15,D4i)))},dependencies:[St,wt,qt,Ht,$t,Zt,Dt,Et,xw,Gt,J$,Je,eW,$e,wi,nW,Fe,Re,ze,Ne,Be,je,Le,Ve,qe,He],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.container-margin[_ngcontent-%COMP%]{margin-top:1rem}"]})}}return e})();var H4i=e=>({minchar:e});function G4i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),s()),e&2&&(l(),P(` `,d(2,1,"labels.inputs.Password Current Required"),` - `))}function $4i(e,r){if(e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),s()),e&2){let i=A();l(),P(` - `,Ye(2,1,"labels.commons.Password validation",Xe(4,G4i,i.minPasswordLength)),` - `)}}function W4i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),s()),e&2&&(l(),P(` + `))}function U4i(e,r){if(e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),s()),e&2){let i=A();l(),P(` + `,Ye(2,1,"labels.commons.Password validation",Xe(4,H4i,i.minPasswordLength)),` + `)}}function $4i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),s()),e&2&&(l(),P(` `,d(2,1,"inputs.passwordsDoNotMatch"),` `))}var Kut=(()=>{class e{constructor(i,o,n,c,u){this.dialogRef=i,this.data=o,this.formBuilder=n,this.http=c,this.translateService=u,this.minPasswordLength=Wn.minPasswordLength||12,this.api=Wn.OIDC.oidcApiUrl}ngOnInit(){this.createChangePasswordForm(),this.setupPasswordMatchValidation()}createChangePasswordForm(){this.changePasswordForm=this.formBuilder.group({currentPassword:["",bt.required],password:["",[bt.required,bt.minLength(this.minPasswordLength),bt.maxLength(50),bt.pattern(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[\W_]).+$/)]],repeatPassword:["",bt.required]},{validators:vu})}setupPasswordMatchValidation(){this.changePasswordForm.get("password")?.valueChanges.subscribe(()=>{this.changePasswordForm.get("repeatPassword")?.updateValueAndValidity()}),this.changePasswordForm.get("repeatPassword")?.setValidators([bt.required,this.matchOtherControl("password")])}matchOtherControl(i){return o=>{let n=o?.parent;if(!n)return null;let c=n.get(i);return c?o.value===c.value?null:{notequal:!0}:null}}onSubmit(){if(this.changePasswordForm.invalid)return;let i={userId:this.data.id,currentPassword:this.changePasswordForm.value.currentPassword,newPassword:{password:this.changePasswordForm.value.password,changeRequired:!1}};this.http.put(this.api+"authentication/user/password",i).subscribe({next:o=>{this.dialogRef.close(!0)},error:o=>{try{let n=JSON.parse(o.error.message);n.code===3?alert(this.translateService.instant("labels.inputs.The current password is not correct")):n.code===9?alert(this.translateService.instant("labels.inputs.New password cannot be the same as your current password")):alert("Error: "+n.message)}catch{alert(this.translateService.instant("labels.inputs.Unable to update password"))}}})}static{this.\u0275fac=function(o){return new(o||e)(V(qr),V(bo),V(xe),V(Ro),V(zi))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-change-password-dialog"]],decls:54,vars:23,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"layout-column",3,"ngSubmit","formGroup"],["appearance","fill",1,"full-width"],["matInput","","type","password","formControlName","currentPassword","required",""],[4,"ngIf"],["matInput","","type","password","formControlName","password","required",""],["matInput","","type","password","formControlName","repeatPassword","required",""],["align","center"],["mat-raised-button","","color","warn","type","button",3,"click"],["mat-raised-button","","color","primary","type","submit",3,"disabled"]],template:function(o,n){if(o&1&&(a(0,"h1",0),t(1),m(2,"translate"),s(),t(3,` @@ -40893,17 +40893,17 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),a(8,"mat-form-field",3),t(9,` `),a(10,"mat-label"),t(11),m(12,"translate"),s(),t(13,` `),k(14,"input",4),t(15,` - `),x(16,U4i,3,3,"mat-error",5),t(17,` + `),x(16,G4i,3,3,"mat-error",5),t(17,` `),s(),t(18,` `),a(19,"mat-form-field",3),t(20,` `),a(21,"mat-label"),t(22),m(23,"translate"),s(),t(24,` `),k(25,"input",6),t(26,` - `),x(27,$4i,3,6,"mat-error",5),t(28,` + `),x(27,U4i,3,6,"mat-error",5),t(28,` `),s(),t(29,` `),a(30,"mat-form-field",3),t(31,` `),a(32,"mat-label"),t(33),m(34,"translate"),s(),t(35,` `),k(36,"input",7),t(37,` - `),x(38,W4i,3,3,"mat-error",5),t(39,` + `),x(38,$4i,3,3,"mat-error",5),t(39,` `),s(),t(40,` `),a(41,"mat-dialog-actions",8),t(42,` `),a(43,"button",9),q("click",function(){return n.dialogRef.close()}),t(44),m(45,"translate"),s(),t(46,` @@ -40915,36 +40915,36 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `,d(45,19,"labels.buttons.Cancel"),` `),l(3),g("disabled",!n.changePasswordForm.valid),l(),P(` `,d(49,21,"labels.buttons.Confirm"),` - `)}},dependencies:[St,zt,wt,ge,Se,re,ue,Ie,fe,he,Ht,$t,Te,Zt,Dt,Et,Ir],styles:[".error[_ngcontent-%COMP%]{color:red}mat-dialog-content[_ngcontent-%COMP%]{min-width:240px;width:240px}"]})}}return e})();var Q4i=()=>["edit"],Y4i=()=>["../../"];function K4i(e,r){if(e&1){let i=st();a(0,"div"),t(1,` + `)}},dependencies:[St,zt,wt,ge,Se,re,ue,Ie,fe,he,Ht,$t,Te,Zt,Dt,Et,Ir],styles:[".error[_ngcontent-%COMP%]{color:red}mat-dialog-content[_ngcontent-%COMP%]{min-width:240px;width:240px}"]})}}return e})();var W4i=()=>["edit"],Q4i=()=>["../../"];function Y4i(e,r){if(e&1){let i=st();a(0,"div"),t(1,` `),a(2,"button",19),q("click",function(){W(i);let n=A();return Q(n.changeUserPassword(n.userData.id))}),t(3,` `),k(4,"fa-icon",20),t(5),m(6,"translate"),s(),t(7,` `),s()}e&2&&(l(5),P(` `,d(6,1,"labels.buttons.Change Password"),` - `))}function J4i(e,r){if(e&1){let i=st();a(0,"button",3),q("click",function(){W(i);let n=A();return Q(n.desactiveUser(n.userData.id))}),t(1,` + `))}function K4i(e,r){if(e&1){let i=st();a(0,"button",3),q("click",function(){W(i);let n=A();return Q(n.desactiveUser(n.userData.id))}),t(1,` `),k(2,"fa-icon",21),t(3),m(4,"translate"),s()}e&2&&(l(3),P(` `,d(4,1,"labels.buttons.Disable"),` - `))}function Z4i(e,r){if(e&1){let i=st();a(0,"button",19),q("click",function(){W(i);let n=A();return Q(n.activeUser(n.userData.id))}),t(1,` + `))}function J4i(e,r){if(e&1){let i=st();a(0,"button",19),q("click",function(){W(i);let n=A();return Q(n.activeUser(n.userData.id))}),t(1,` `),k(2,"fa-icon",22),t(3),m(4,"translate"),s()}e&2&&(l(3),P(` `,d(4,1,"labels.buttons.Reactivate"),` - `))}function X4i(e,r){e&1&&(a(0,"button",23),t(1,` + `))}function Z4i(e,r){e&1&&(a(0,"button",23),t(1,` `),k(2,"fa-icon",21),t(3),m(4,"translate"),s()),e&2&&(l(3),P(` `,d(4,1,"labels.buttons.Validate"),` - `))}function t5i(e,r){e&1&&(a(0,"div",12),t(1),m(2,"translate"),s()),e&2&&(l(),P(` + `))}function X4i(e,r){e&1&&(a(0,"div",12),t(1),m(2,"translate"),s()),e&2&&(l(),P(` `,d(2,1,"labels.inputs.Email"),` - `))}function e5i(e,r){if(e&1&&(a(0,"div",13),t(1),s()),e&2){let i=A();l(),P(` + `))}function t5i(e,r){if(e&1&&(a(0,"div",13),t(1),s()),e&2){let i=A();l(),P(` `,i.userData.email,` - `)}}function i5i(e,r){if(e&1&&(a(0,"span"),t(1),s()),e&2){let i=r.$implicit;l(),P(` + `)}}function e5i(e,r){if(e&1&&(a(0,"span"),t(1),s()),e&2){let i=r.$implicit;l(),P(` `,i.name,` `)}}var K6=(()=>{class e{constructor(i,o,n,c,u){this.usersService=i,this.route=o,this.router=n,this.dialog=c,this.authService=u,this.route.data.subscribe(h=>{let _=h.user.object?.result?.[0],y={id:_.id,username:_.userName,firstname:_.human?.profile?.firstName,lastname:_.human?.profile?.lastName,officeName:"Head Office",officeId:_.user_uuid??null,availableRoles:_.availableRoles??"Admin",selectedRoles:_.selectedRoles??"Admin",isSelfServiceUser:_.state};this.userData=y})}delete(){this.dialog.open(Li,{data:{deleteContext:`user ${this.userData.id}`}}).afterClosed().subscribe(o=>{o.delete&&this.authService.deletUser(this.userData.id)})}changeUserPassword(i){this.dialog.open(Kut,{width:"440px",data:{id:i}}).afterClosed().subscribe(n=>{if(n.password&&n.repeatPassword){let c=n.password,u=n.repeatPassword,h=this.userData.firstname,_={password:c,repeatPassword:u,firstname:h}}})}desactiveUser(i){this.authService.desactiveUser(i)}activeUser(i){this.authService.activeUser(i)}static{this.\u0275fac=function(o){return new(o||e)(V(Wp),V(Lt),V(te),V(ni),V(Va))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-view-user"]],decls:86,vars:39,consts:[[1,"container","m-b-20","layout-row","layout-lt-md-column","align-end","gap-2percent"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"],[4,"ngIf"],[3,"ngSwitch"],["mat-raised-button","","color","warn",3,"click",4,"ngSwitchCase"],["mat-raised-button","","color","primary",3,"click",4,"ngSwitchCase"],["mat-raised-button","","color","primary","disabled","",4,"ngSwitchDefault"],[1,"container"],[1,"layout-row-wrap"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],["class","flex-50 mat-body-strong",4,"ngIf"],["class","flex-50",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"layout-row","layout-align-center","gap-2percent","column-on-mobile"],["type","button","mat-raised-button","","color","primary",3,"routerLink"],["mat-raised-button","","color","primary",3,"click"],["icon","cog",1,"m-r-10"],["icon","ban",1,"m-r-10"],["icon","check",1,"m-r-10"],["mat-raised-button","","color","primary","disabled",""]],template:function(o,n){o&1&&(a(0,"div",0),t(1,` `),a(2,"button",1),t(3,` `),k(4,"fa-icon",2),t(5),m(6,"translate"),s(),t(7,` `),a(8,"button",3),q("click",function(){return n.delete()}),t(9,` `),k(10,"fa-icon",4),t(11),m(12,"translate"),s(),t(13,` - `),x(14,K4i,8,3,"div",5),t(15,` + `),x(14,Y4i,8,3,"div",5),t(15,` `),a(16,"div",6),t(17,` - `),x(18,J4i,5,3,"button",7),t(19,` - `),x(20,Z4i,5,3,"button",8),t(21,` - `),x(22,X4i,5,3,"button",9),t(23,` + `),x(18,K4i,5,3,"button",7),t(19,` + `),x(20,J4i,5,3,"button",8),t(21,` + `),x(22,Z4i,5,3,"button",9),t(23,` `),s(),t(24,` `),s(),t(25,` @@ -40964,9 +40964,9 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),a(52,"div",13),t(53),s(),t(54,` - `),x(55,t5i,3,3,"div",14),t(56,` + `),x(55,X4i,3,3,"div",14),t(56,` - `),x(57,e5i,2,1,"div",15),t(58,` + `),x(57,t5i,2,1,"div",15),t(58,` `),a(59,"div",12),t(60),m(61,"translate"),s(),t(62,` @@ -40975,7 +40975,7 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),a(66,"div",12),t(67),m(68,"translate"),s(),t(69,` `),a(70,"div",13),t(71,` - `),x(72,i5i,2,1,"span",16),t(73,` + `),x(72,e5i,2,1,"span",16),t(73,` `),s(),t(74,` `),s(),t(75,` @@ -40985,7 +40985,7 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),s(),t(83,` `),s(),t(84,` `),s(),t(85,` -`)),o&2&&(l(2),g("routerLink",ht(37,Q4i)),l(3),P(` +`)),o&2&&(l(2),g("routerLink",ht(37,W4i)),l(3),P(` `,d(6,21,"labels.buttons.Edit"),` `),l(6),P(` `,d(12,23,"labels.buttons.Delete"),` @@ -41007,55 +41007,55 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `,n.userData.officeName,` `),l(3),P(` `,d(68,33,"labels.inputs.Roles"),` - `),l(5),g("ngForOf",n.userData.selectedRoles),l(6),g("routerLink",ht(38,Y4i)),l(),P(` + `),l(5),g("ngForOf",n.userData.selectedRoles),l(6),g("routerLink",ht(38,Q4i)),l(),P(` `,d(80,35,"labels.buttons.Back"),` - `))},dependencies:[St,se,zt,Ra,Na,u$,wt,qt,oe,me,Dt,Et,xw,Gt],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block}"]})}}return e})();var J6=[{code:"+376",key:"AD"},{code:"+971",key:"AE"},{code:"+93",key:"AF"},{code:"+355",key:"AL"},{code:"+374",key:"AM"},{code:"+244",key:"AO"},{code:"+54",key:"AR"},{code:"+43",key:"AT"},{code:"+61",key:"AU"},{code:"+994",key:"AZ"},{code:"+387",key:"BA"},{code:"+880",key:"BD"},{code:"+32",key:"BE"},{code:"+359",key:"BG"},{code:"+226",key:"BF"},{code:"+257",key:"BI"},{code:"+973",key:"BH"},{code:"+591",key:"BO"},{code:"+55",key:"BR"},{code:"+375",key:"BY"},{code:"+1",key:"CA"},{code:"+237",key:"CM"},{code:"+56",key:"CL"},{code:"+86",key:"CN"},{code:"+57",key:"CO"},{code:"+506",key:"CR"},{code:"+53",key:"CU"},{code:"+357",key:"CY"},{code:"+420",key:"CZ"},{code:"+49",key:"DE"},{code:"+45",key:"DK"},{code:"+213",key:"DZ"},{code:"+20",key:"EG"},{code:"+503",key:"SV"},{code:"+372",key:"EE"},{code:"+34",key:"ES"},{code:"+251",key:"ET"},{code:"+358",key:"FI"},{code:"+33",key:"FR"},{code:"+44",key:"GB"},{code:"+995",key:"GE"},{code:"+233",key:"GH"},{code:"+30",key:"GR"},{code:"+502",key:"GT"},{code:"+504",key:"HN"},{code:"+385",key:"HR"},{code:"+36",key:"HU"},{code:"+62",key:"ID"},{code:"+91",key:"IN"},{code:"+353",key:"IE"},{code:"+972",key:"IL"},{code:"+964",key:"IQ"},{code:"+98",key:"IR"},{code:"+354",key:"IS"},{code:"+39",key:"IT"},{code:"+81",key:"JP"},{code:"+962",key:"JO"},{code:"+254",key:"KE"},{code:"+996",key:"KG"},{code:"+855",key:"KH"},{code:"+82",key:"KR"},{code:"+965",key:"KW"},{code:"+371",key:"LV"},{code:"+961",key:"LB"},{code:"+94",key:"LK"},{code:"+370",key:"LT"},{code:"+352",key:"LU"},{code:"+218",key:"LY"},{code:"+212",key:"MA"},{code:"+377",key:"MC"},{code:"+373",key:"MD"},{code:"+389",key:"MK"},{code:"+976",key:"MN"},{code:"+52",key:"MX"},{code:"+60",key:"MY"},{code:"+258",key:"MZ"},{code:"+234",key:"NG"},{code:"+505",key:"NI"},{code:"+31",key:"NL"},{code:"+47",key:"NO"},{code:"+977",key:"NP"},{code:"+64",key:"NZ"},{code:"+507",key:"PA"},{code:"+92",key:"PK"},{code:"+595",key:"PY"},{code:"+51",key:"PE"},{code:"+63",key:"PH"},{code:"+48",key:"PL"},{code:"+351",key:"PT"},{code:"+974",key:"QA"},{code:"+40",key:"RO"},{code:"+381",key:"RS"},{code:"+7",key:"RU"},{code:"+966",key:"SA"},{code:"+221",key:"SN"},{code:"+46",key:"SE"},{code:"+65",key:"SG"},{code:"+421",key:"SK"},{code:"+386",key:"SI"},{code:"+503",key:"SV"},{code:"+27",key:"ZA"},{code:"+41",key:"CH"},{code:"+886",key:"TW"},{code:"+66",key:"TH"},{code:"+90",key:"TR"},{code:"+380",key:"UA"},{code:"+256",key:"UG"},{code:"+1",key:"US"},{code:"+598",key:"UY"},{code:"+998",key:"UZ"},{code:"+58",key:"VE"},{code:"+84",key:"VN"},{code:"+967",key:"YE"},{code:"+260",key:"ZM"},{code:"+263",key:"ZW"}];var Z6=[{code:"de",key:"de-DE",name:"German"},{code:"en",key:"en-US",name:"English"},{code:"es",key:"es-MX",name:"Espa\xF1ol"},{code:"fr",key:"fr-FR",name:"French"},{code:"it",key:"it-IT",name:"Italian"},{code:"ko",key:"ko-KO",name:"\uD55C\uAD6D\uC5B4"},{code:"pt",key:"pt-PT",name:"Portuguese"}];var n5i=["userFormRef"],r5i=["templateUserFormRef"],o5i=()=>["../"];function a5i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `))},dependencies:[St,se,zt,Ra,Na,u$,wt,qt,oe,me,Dt,Et,xw,Gt],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block}"]})}}return e})();var J6=[{code:"+376",key:"AD"},{code:"+971",key:"AE"},{code:"+93",key:"AF"},{code:"+355",key:"AL"},{code:"+374",key:"AM"},{code:"+244",key:"AO"},{code:"+54",key:"AR"},{code:"+43",key:"AT"},{code:"+61",key:"AU"},{code:"+994",key:"AZ"},{code:"+387",key:"BA"},{code:"+880",key:"BD"},{code:"+32",key:"BE"},{code:"+359",key:"BG"},{code:"+226",key:"BF"},{code:"+257",key:"BI"},{code:"+973",key:"BH"},{code:"+591",key:"BO"},{code:"+55",key:"BR"},{code:"+375",key:"BY"},{code:"+1",key:"CA"},{code:"+237",key:"CM"},{code:"+56",key:"CL"},{code:"+86",key:"CN"},{code:"+57",key:"CO"},{code:"+506",key:"CR"},{code:"+53",key:"CU"},{code:"+357",key:"CY"},{code:"+420",key:"CZ"},{code:"+49",key:"DE"},{code:"+45",key:"DK"},{code:"+213",key:"DZ"},{code:"+20",key:"EG"},{code:"+503",key:"SV"},{code:"+372",key:"EE"},{code:"+34",key:"ES"},{code:"+251",key:"ET"},{code:"+358",key:"FI"},{code:"+33",key:"FR"},{code:"+44",key:"GB"},{code:"+995",key:"GE"},{code:"+233",key:"GH"},{code:"+30",key:"GR"},{code:"+502",key:"GT"},{code:"+504",key:"HN"},{code:"+385",key:"HR"},{code:"+36",key:"HU"},{code:"+62",key:"ID"},{code:"+91",key:"IN"},{code:"+353",key:"IE"},{code:"+972",key:"IL"},{code:"+964",key:"IQ"},{code:"+98",key:"IR"},{code:"+354",key:"IS"},{code:"+39",key:"IT"},{code:"+81",key:"JP"},{code:"+962",key:"JO"},{code:"+254",key:"KE"},{code:"+996",key:"KG"},{code:"+855",key:"KH"},{code:"+82",key:"KR"},{code:"+965",key:"KW"},{code:"+371",key:"LV"},{code:"+961",key:"LB"},{code:"+94",key:"LK"},{code:"+370",key:"LT"},{code:"+352",key:"LU"},{code:"+218",key:"LY"},{code:"+212",key:"MA"},{code:"+377",key:"MC"},{code:"+373",key:"MD"},{code:"+389",key:"MK"},{code:"+976",key:"MN"},{code:"+52",key:"MX"},{code:"+60",key:"MY"},{code:"+258",key:"MZ"},{code:"+234",key:"NG"},{code:"+505",key:"NI"},{code:"+31",key:"NL"},{code:"+47",key:"NO"},{code:"+977",key:"NP"},{code:"+64",key:"NZ"},{code:"+507",key:"PA"},{code:"+92",key:"PK"},{code:"+595",key:"PY"},{code:"+51",key:"PE"},{code:"+63",key:"PH"},{code:"+48",key:"PL"},{code:"+351",key:"PT"},{code:"+974",key:"QA"},{code:"+40",key:"RO"},{code:"+381",key:"RS"},{code:"+7",key:"RU"},{code:"+966",key:"SA"},{code:"+221",key:"SN"},{code:"+46",key:"SE"},{code:"+65",key:"SG"},{code:"+421",key:"SK"},{code:"+386",key:"SI"},{code:"+503",key:"SV"},{code:"+27",key:"ZA"},{code:"+41",key:"CH"},{code:"+886",key:"TW"},{code:"+66",key:"TH"},{code:"+90",key:"TR"},{code:"+380",key:"UA"},{code:"+256",key:"UG"},{code:"+1",key:"US"},{code:"+598",key:"UY"},{code:"+998",key:"UZ"},{code:"+58",key:"VE"},{code:"+84",key:"VN"},{code:"+967",key:"YE"},{code:"+260",key:"ZM"},{code:"+263",key:"ZW"}];var Z6=[{code:"de",key:"de-DE",name:"German"},{code:"en",key:"en-US",name:"English"},{code:"es",key:"es-MX",name:"Espa\xF1ol"},{code:"fr",key:"fr-FR",name:"French"},{code:"it",key:"it-IT",name:"Italian"},{code:"ko",key:"ko-KO",name:"\uD55C\uAD6D\uC5B4"},{code:"pt",key:"pt-PT",name:"Portuguese"}];var i5i=["userFormRef"],n5i=["templateUserFormRef"],r5i=()=>["../"];function o5i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.Username")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function s5i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `),l(4),b(d(6,7,"labels.commons.required")))}function a5i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.Email")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.invalid")))}function l5i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `),l(4),b(d(6,7,"labels.commons.invalid")))}function s5i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.Email")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function c5i(e,r){if(e&1&&(a(0,"mat-option",29),t(1),m(2,"translate"),s()),e&2){let i=r.$implicit;g("value",i.code),l(),P(` + `),l(4),b(d(6,7,"labels.commons.required")))}function l5i(e,r){if(e&1&&(a(0,"mat-option",29),t(1),m(2,"translate"),s()),e&2){let i=r.$implicit;g("value",i.code),l(),P(` `,d(2,2,"languages."+i.key),` - `)}}function p5i(e,r){if(e&1&&(a(0,"mat-option",29),t(1),m(2,"translate"),s()),e&2){let i=r.$implicit;g("value",i.code),l(),_t(` + `)}}function c5i(e,r){if(e&1&&(a(0,"mat-option",29),t(1),m(2,"translate"),s()),e&2){let i=r.$implicit;g("value",i.code),l(),_t(` `,d(2,3,"countries."+i.key)," (",i.code,`) - `)}}function m5i(e,r){if(e&1&&(a(0,"mat-option",29),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` + `)}}function p5i(e,r){if(e&1&&(a(0,"mat-option",29),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` `,i.name,` - `)}}function d5i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `)}}function m5i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.Office")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function u5i(e,r){if(e&1&&(a(0,"mat-option",29),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` + `),l(4),b(d(6,7,"labels.commons.required")))}function d5i(e,r){if(e&1&&(a(0,"mat-option",29),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` `,i.displayName,` - `)}}function f5i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `)}}function u5i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.Password")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function h5i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),a(3,"strong"),t(4),m(5,"translate"),s(),t(6,` + `),l(4),b(d(6,7,"labels.commons.required")))}function f5i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),a(3,"strong"),t(4),m(5,"translate"),s(),t(6,` `),s()),e&2&&(l(),P(` `,d(2,2,"labels.commons.Password should be at least"),` - `),l(3),b(d(5,4,"labels.commons.12 characters long")))}function g5i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),a(3,"strong"),t(4),m(5,"translate"),s(),t(6,` + `),l(3),b(d(5,4,"labels.commons.12 characters long")))}function h5i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),a(3,"strong"),t(4),m(5,"translate"),s(),t(6,` `),s()),e&2&&(l(),P(` `,d(2,2,"labels.commons.Password should not be more than"),` - `),l(3),b(d(5,4,"labels.commons.50 characters long")))}function x5i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),a(3,"strong"),t(4),m(5,"translate"),s(),t(6),m(7,"translate"),a(8,"strong"),t(9),m(10,"translate"),s(),t(11,`, + `),l(3),b(d(5,4,"labels.commons.50 characters long")))}function g5i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),a(3,"strong"),t(4),m(5,"translate"),s(),t(6),m(7,"translate"),a(8,"strong"),t(9),m(10,"translate"),s(),t(11,`, `),a(12,"strong"),t(13),m(14,"translate"),s(),t(15,` `),s()),e&2&&(l(),P(` `,d(2,5,"labels.commons.Password should include a"),` `),l(3),b(d(5,7,"labels.commons.numeral")),l(2),P(` `,d(7,9,"labels.commons.and at"),` - `),l(3),b(d(10,11,"labels.commons.least one uppercase")),l(4),b(d(14,13,"labels.commons.lowercase and special character")))}function _5i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `),l(3),b(d(10,11,"labels.commons.least one uppercase")),l(4),b(d(14,13,"labels.commons.lowercase and special character")))}function x5i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.Password")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function v5i(e,r){e&1&&(a(0,"p",30),t(1),m(2,"translate"),a(3,"strong"),t(4),m(5,"translate"),s(),t(6,` + `),l(4),b(d(6,7,"labels.commons.required")))}function _5i(e,r){e&1&&(a(0,"p",30),t(1),m(2,"translate"),a(3,"strong"),t(4),m(5,"translate"),s(),t(6,` `),s()),e&2&&(l(),P(` `,d(2,2,"labels.inputs.Passwords"),` - `),l(3),b(d(5,4,"labels.commons.do not match")))}function b5i(e,r){if(e&1&&(a(0,"mat-option",29),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` + `),l(3),b(d(5,4,"labels.commons.do not match")))}function v5i(e,r){if(e&1&&(a(0,"mat-option",29),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` `,i.name,` - `)}}function C5i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),a(3,"strong"),t(4),m(5,"translate"),s(),t(6,` + `)}}function b5i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),a(3,"strong"),t(4),m(5,"translate"),s(),t(6,` `),s()),e&2&&(l(),P(` `,d(2,2,"labels.commons.At least one role"),` - `),l(3),b(d(5,4,"labels.commons.must be selected")))}function y5i(e,r){if(e&1){let i=st();t(0,` + `),l(3),b(d(5,4,"labels.commons.must be selected")))}function C5i(e,r){if(e&1){let i=st();t(0,` `),a(1,"h2"),t(2),m(3,"translate"),s(),t(4,` `),a(5,"p",31),t(6),m(7,"translate"),a(8,"a",32),t(9),m(10,"translate"),s(),t(11,` `),s(),t(12,` @@ -41075,7 +41075,7 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `,d(25,17,"labels.buttons.Back"),` `),l(4),P(` `,d(29,19,"labels.buttons.Next"),` - `))}var X6=(()=>{class e{constructor(i,o,n,c,u,h,_,y,C){this.formBuilder=i,this.usersService=o,this.usersService2=n,this.route=c,this.router=u,this.popoverService=h,this.configurationWizardService=_,this.dialog=y,this.passwordsUtility=C,this.countryCodes=J6,this.languageCodes=Z6,this.route.data.subscribe(E=>{this.officesData=E.usersTemplate.allowedOffices,this.rolesData=E.usersTemplate.availableRoles})}ngOnInit(){this.createUserForm(),this.setStaffData(),this.setConditionalControls()}createUserForm(){this.userForm=this.formBuilder.group({username:["",bt.required],email:["",[bt.required,bt.email]],firstName:["",bt.required],lastName:["",bt.required],preferredLanguage:["",bt.required],gender:["",bt.required],countryCode:["+1",bt.required],phoneNumber:["",[bt.required,bt.pattern(/^[0-9]{7,15}$/)]],password:["",[bt.required,bt.minLength(12),bt.maxLength(50),bt.pattern(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[\W_]).+$/)]],repeatPassword:["",bt.required],roles:["",bt.required],officeId:["",bt.required],staffId:[""]},{validators:vu})}setStaffData(){this.userForm.get("officeId").valueChanges.subscribe(i=>{this.staffData=[],this.usersService2.getStaff(i).subscribe(o=>{this.staffData=o})})}setConditionalControls(){this.userForm.get("sendPasswordToEmail").valueChanges.subscribe(i=>{let o=this.userForm.get("password"),n=this.userForm.get("repeatPassword");i?(o.disable(),n.disable(),this.userForm.get("email")?.setValidators([bt.required,bt.email])):(o.enable(),n.enable(),this.userForm.get("email")?.setValidators([bt.email])),this.userForm.get("email")?.updateValueAndValidity()})}submit(){let i=this.userForm.value,o=`${i.countryCode}${i.phoneNumber}`,n=`${i.repeatPassword}`,c=`${i.firstName}`,u=`${i.lastName}`,h=`${i.username}`,_=oi(ye({},i),{phone:o,password:n,givenName:c,familyName:u,nickName:h,displayName:`${i.firstName} ${i.lastName}`}),y={officeId:i.officeId,staffId:i.staffId},C=this.userForm.get("roles")?.value;delete _.officeId,delete _.staffId,delete _.roles,delete _.countryCode,delete _.phoneNumber,delete _.repeatPassword,delete _.firstName,delete _.lastName,this.usersService.createUser(_).subscribe(E=>{let T=E.object?.userId;if(T){let D={id:T,officeId:y.officeId,staffId:y.staffId,username:_.nickName,firstname:_.givenName,lastname:_.familyName,roleIds:C||[]};this.usersService.createUserBd(D).subscribe(M=>{C?.length>0?this.usersService.assignRolesToUser(T,C).subscribe(()=>{this.configurationWizardService.showUsersForm===!0?(this.configurationWizardService.showUsersForm=!1,this.openDialog()):this.router.navigate(["/appusers"])},F=>{console.error("Failed to assign roles to user:",F)}):console.warn("No roles were selected for this user.")},M=>{console.error("Failed to create user record in database:",M)})}else console.error("User creation failed: userId not returned by API.")})}showPopover(i,o,n,c){setTimeout(()=>this.popoverService.open(i,o,n,c,{}),200)}ngAfterViewInit(){this.configurationWizardService.showUsersForm===!0&&setTimeout(()=>{this.showPopover(this.templateUserFormRef,this.userFormRef.nativeElement,"top",!0)})}nextStep(){this.configurationWizardService.showUsersForm=!1,this.configurationWizardService.showMakerCheckerTable=!0,this.router.navigate(["/system"])}previousStep(){this.configurationWizardService.showUsersForm=!1,this.configurationWizardService.showUsersList=!0,this.router.navigate(["/appusers"])}openDialog(){this.dialog.open(ll,{data:{stepName:"user"}}).afterClosed().subscribe(o=>{o.step===1?(this.configurationWizardService.showUsersForm=!1,this.router.navigate(["../"],{relativeTo:this.route})):o.step===2?(this.configurationWizardService.showUsersForm=!0,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate(["/organization/users/create"])):o.step===3&&(this.configurationWizardService.showUsersForm=!1,this.configurationWizardService.showMakerCheckerTable=!0,this.router.navigate(["/system"]))})}static{this.\u0275fac=function(o){return new(o||e)(V(xe),V(Wp),V(ql),V(Lt),V(te),V(yn),V(Sn),V(ni),V(Hg))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-create-user"]],viewQuery:function(o,n){if(o&1&&(Nt(n5i,5),Nt(r5i,5)),o&2){let c;Bt(c=Rt())&&(n.userFormRef=c.first),Bt(c=Rt())&&(n.templateUserFormRef=c.first)}},decls:210,vars:74,consts:[["templateUserFormRef",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","layout-lt-md-column","gap-2percent"],[1,"flex-48"],["matInput","","required","","formControlName","username"],[4,"ngIf"],["matInput","","required","","formControlName","email"],["matInput","","formControlName","firstName","required",""],["matInput","","formControlName","lastName","required",""],["formControlName","preferredLanguage","required",""],[3,"value",4,"ngFor","ngForOf"],["formControlName","gender","required",""],["value","GENDER_MALE"],["value","GENDER_FEMALE"],["value","GENDER_OTHER"],[1,"flex","items-center","gap-2"],["formControlName","countryCode","required",""],["matInput","","formControlName","phoneNumber","required","","maxlength","12","minlength","4"],[1,"flex-20"],["required","","formControlName","officeId"],["formControlName","staffId"],["matInput","","type","password","formControlName","password","required",""],["matInput","","type","password","formControlName","repeatPassword","required",""],["class","flex-98 reset-password-error",4,"ngIf"],["formControlName","roles","required","","multiple",""],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],[3,"value"],[1,"flex-98","reset-password-error"],[1,"mw400"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/67141740/Users","target","_blank"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(o,n){if(o&1){let c=st();a(0,"div",1),t(1,` + `))}var X6=(()=>{class e{constructor(i,o,n,c,u,h,_,y,C){this.formBuilder=i,this.usersService=o,this.usersService2=n,this.route=c,this.router=u,this.popoverService=h,this.configurationWizardService=_,this.dialog=y,this.passwordsUtility=C,this.countryCodes=J6,this.languageCodes=Z6,this.route.data.subscribe(E=>{this.officesData=E.usersTemplate.allowedOffices,this.rolesData=E.usersTemplate.availableRoles})}ngOnInit(){this.createUserForm(),this.setStaffData(),this.setConditionalControls()}createUserForm(){this.userForm=this.formBuilder.group({username:["",bt.required],email:["",[bt.required,bt.email]],firstName:["",bt.required],lastName:["",bt.required],preferredLanguage:["",bt.required],gender:["",bt.required],countryCode:["+1",bt.required],phoneNumber:["",[bt.required,bt.pattern(/^[0-9]{7,15}$/)]],password:["",[bt.required,bt.minLength(12),bt.maxLength(50),bt.pattern(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[\W_]).+$/)]],repeatPassword:["",bt.required],roles:["",bt.required],officeId:["",bt.required],staffId:[""]},{validators:vu})}setStaffData(){this.userForm.get("officeId").valueChanges.subscribe(i=>{this.staffData=[],this.usersService2.getStaff(i).subscribe(o=>{this.staffData=o})})}setConditionalControls(){this.userForm.get("sendPasswordToEmail").valueChanges.subscribe(i=>{let o=this.userForm.get("password"),n=this.userForm.get("repeatPassword");i?(o.disable(),n.disable(),this.userForm.get("email")?.setValidators([bt.required,bt.email])):(o.enable(),n.enable(),this.userForm.get("email")?.setValidators([bt.email])),this.userForm.get("email")?.updateValueAndValidity()})}submit(){let i=this.userForm.value,o=`${i.countryCode}${i.phoneNumber}`,n=`${i.repeatPassword}`,c=`${i.firstName}`,u=`${i.lastName}`,h=`${i.username}`,_=oi(ye({},i),{phone:o,password:n,givenName:c,familyName:u,nickName:h,displayName:`${i.firstName} ${i.lastName}`}),y={officeId:i.officeId,staffId:i.staffId},C=this.userForm.get("roles")?.value;delete _.officeId,delete _.staffId,delete _.roles,delete _.countryCode,delete _.phoneNumber,delete _.repeatPassword,delete _.firstName,delete _.lastName,this.usersService.createUser(_).subscribe(E=>{let T=E.object?.userId;if(T){let D={id:T,officeId:y.officeId,staffId:y.staffId,username:_.nickName,firstname:_.givenName,lastname:_.familyName,roleIds:C||[]};this.usersService.createUserBd(D).subscribe(M=>{C?.length>0?this.usersService.assignRolesToUser(T,C).subscribe(()=>{this.configurationWizardService.showUsersForm===!0?(this.configurationWizardService.showUsersForm=!1,this.openDialog()):this.router.navigate(["/appusers"])},F=>{console.error("Failed to assign roles to user:",F)}):console.warn("No roles were selected for this user.")},M=>{console.error("Failed to create user record in database:",M)})}else console.error("User creation failed: userId not returned by API.")})}showPopover(i,o,n,c){setTimeout(()=>this.popoverService.open(i,o,n,c,{}),200)}ngAfterViewInit(){this.configurationWizardService.showUsersForm===!0&&setTimeout(()=>{this.showPopover(this.templateUserFormRef,this.userFormRef.nativeElement,"top",!0)})}nextStep(){this.configurationWizardService.showUsersForm=!1,this.configurationWizardService.showMakerCheckerTable=!0,this.router.navigate(["/system"])}previousStep(){this.configurationWizardService.showUsersForm=!1,this.configurationWizardService.showUsersList=!0,this.router.navigate(["/appusers"])}openDialog(){this.dialog.open(ll,{data:{stepName:"user"}}).afterClosed().subscribe(o=>{o.step===1?(this.configurationWizardService.showUsersForm=!1,this.router.navigate(["../"],{relativeTo:this.route})):o.step===2?(this.configurationWizardService.showUsersForm=!0,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate(["/organization/users/create"])):o.step===3&&(this.configurationWizardService.showUsersForm=!1,this.configurationWizardService.showMakerCheckerTable=!0,this.router.navigate(["/system"]))})}static{this.\u0275fac=function(o){return new(o||e)(V(xe),V(Wp),V(ql),V(Lt),V(te),V(yn),V(Sn),V(ni),V(Hg))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-create-user"]],viewQuery:function(o,n){if(o&1&&(Nt(i5i,5),Nt(n5i,5)),o&2){let c;Bt(c=Rt())&&(n.userFormRef=c.first),Bt(c=Rt())&&(n.templateUserFormRef=c.first)}},decls:210,vars:74,consts:[["templateUserFormRef",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","layout-lt-md-column","gap-2percent"],[1,"flex-48"],["matInput","","required","","formControlName","username"],[4,"ngIf"],["matInput","","required","","formControlName","email"],["matInput","","formControlName","firstName","required",""],["matInput","","formControlName","lastName","required",""],["formControlName","preferredLanguage","required",""],[3,"value",4,"ngFor","ngForOf"],["formControlName","gender","required",""],["value","GENDER_MALE"],["value","GENDER_FEMALE"],["value","GENDER_OTHER"],[1,"flex","items-center","gap-2"],["formControlName","countryCode","required",""],["matInput","","formControlName","phoneNumber","required","","maxlength","12","minlength","4"],[1,"flex-20"],["required","","formControlName","officeId"],["formControlName","staffId"],["matInput","","type","password","formControlName","password","required",""],["matInput","","type","password","formControlName","repeatPassword","required",""],["class","flex-98 reset-password-error",4,"ngIf"],["formControlName","roles","required","","multiple",""],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],[3,"value"],[1,"flex-98","reset-password-error"],[1,"mw400"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/67141740/Users","target","_blank"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(o,n){if(o&1){let c=st();a(0,"div",1),t(1,` `),a(2,"mat-card"),t(3,` `),a(4,"form",2),q("ngSubmit",function(){return W(c),Q(n.submit())}),t(5,` `),a(6,"mat-card-content"),t(7,` @@ -41084,15 +41084,15 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),a(11,"mat-form-field",4),t(12,` `),a(13,"mat-label"),t(14),m(15,"translate"),s(),t(16,` `),k(17,"input",5),t(18,` - `),x(19,a5i,8,9,"mat-error",6),t(20,` + `),x(19,o5i,8,9,"mat-error",6),t(20,` `),s(),t(21,` `),t(22,` `),a(23,"mat-form-field",4),t(24,` `),a(25,"mat-label"),t(26),m(27,"translate"),s(),t(28,` `),k(29,"input",7),t(30,` - `),x(31,s5i,8,9,"mat-error",6),t(32,` - `),x(33,l5i,8,9,"mat-error",6),t(34,` + `),x(31,a5i,8,9,"mat-error",6),t(32,` + `),x(33,s5i,8,9,"mat-error",6),t(34,` `),s(),t(35,` `),t(36,` @@ -41111,7 +41111,7 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),a(57,"mat-form-field",4),t(58,` `),a(59,"mat-label"),t(60),m(61,"translate"),s(),t(62,` `),a(63,"mat-select",10),t(64,` - `),x(65,c5i,3,4,"mat-option",11),t(66,` + `),x(65,l5i,3,4,"mat-option",11),t(66,` `),s(),t(67,` `),s(),t(68,` `),t(69,` @@ -41129,7 +41129,7 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),a(95,"mat-form-field",4),t(96,` `),a(97,"mat-label"),t(98),m(99,"translate"),s(),t(100,` `),a(101,"mat-select",17),t(102,` - `),x(103,p5i,3,5,"mat-option",11),t(104,` + `),x(103,c5i,3,5,"mat-option",11),t(104,` `),s(),t(105,` `),s(),t(106,` @@ -41142,15 +41142,15 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),a(117,"mat-form-field",19),t(118,` `),a(119,"mat-label"),t(120),m(121,"translate"),s(),t(122,` `),a(123,"mat-select",20),t(124,` - `),x(125,m5i,2,2,"mat-option",11),t(126,` + `),x(125,p5i,2,2,"mat-option",11),t(126,` `),s(),t(127,` - `),x(128,d5i,8,9,"mat-error",6),t(129,` + `),x(128,m5i,8,9,"mat-error",6),t(129,` `),s(),t(130,` `),a(131,"mat-form-field",19),t(132,` `),a(133,"mat-label"),t(134),m(135,"translate"),s(),t(136,` `),a(137,"mat-select",21),t(138,` - `),x(139,u5i,2,2,"mat-option",11),t(140,` + `),x(139,d5i,2,2,"mat-option",11),t(140,` `),s(),t(141,` `),s(),t(142,` @@ -41158,29 +41158,29 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),a(144,"mat-form-field",4),t(145,` `),a(146,"mat-label"),t(147),m(148,"translate"),s(),t(149,` `),k(150,"input",22),t(151,` - `),x(152,f5i,8,9,"mat-error",6),t(153,` - `),x(154,h5i,7,6,"mat-error",6),t(155,` - `),x(156,g5i,7,6,"mat-error",6),t(157,` - `),x(158,x5i,16,15,"mat-error",6),t(159,` + `),x(152,u5i,8,9,"mat-error",6),t(153,` + `),x(154,f5i,7,6,"mat-error",6),t(155,` + `),x(156,h5i,7,6,"mat-error",6),t(157,` + `),x(158,g5i,16,15,"mat-error",6),t(159,` `),s(),t(160,` `),t(161,` `),a(162,"mat-form-field",4),t(163,` `),a(164,"mat-label"),t(165),m(166,"translate"),s(),t(167,` `),k(168,"input",23),t(169,` - `),x(170,_5i,8,9,"mat-error",6),t(171,` + `),x(170,x5i,8,9,"mat-error",6),t(171,` `),s(),t(172,` `),t(173,` - `),x(174,v5i,7,6,"p",24),t(175,` + `),x(174,_5i,7,6,"p",24),t(175,` `),t(176,` `),a(177,"mat-form-field",19),t(178,` `),a(179,"mat-label"),t(180),m(181,"translate"),s(),t(182,` `),a(183,"mat-select",25),t(184,` - `),x(185,b5i,2,2,"mat-option",11),t(186,` + `),x(185,v5i,2,2,"mat-option",11),t(186,` `),s(),t(187,` - `),x(188,C5i,7,6,"mat-error",6),t(189,` + `),x(188,b5i,7,6,"mat-error",6),t(189,` `),s(),t(190,` `),s(),t(191,` `),s(),t(192,` @@ -41193,76 +41193,76 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),s(),t(205,` `),s(),t(206,` -`),x(207,y5i,32,21,"ng-template",null,0,vi),t(209,` -`)}if(o&2){let c,u,h,_,y,C;l(4),g("formGroup",n.userForm),l(10),b(d(15,37,"labels.inputs.Username")),l(5),g("ngIf",n.userForm.controls.username.hasError("required")),l(7),b(d(27,39,"labels.inputs.Email")),l(5),g("ngIf",n.userForm.controls.email.hasError("email")),l(2),g("ngIf",n.userForm.controls.email.hasError("required")),l(7),b(d(41,41,"labels.inputs.First Name")),l(10),b(d(51,43,"labels.inputs.Last Name")),l(10),b(d(61,45,"labels.inputs.Language")),l(5),g("ngForOf",n.languageCodes),l(8),b(d(74,47,"labels.inputs.Gender")),l(6),b(d(80,49,"labels.catalogs.male")),l(4),b(d(84,51,"labels.catalogs.female")),l(4),b(d(88,53,"labels.catalogs.other")),l(11),b(d(99,55,"labels.inputs.Code")),l(5),g("ngForOf",n.countryCodes),l(7),b(d(111,57,"labels.inputs.Phone Number")),l(10),b(d(121,59,"labels.inputs.Office")),l(5),g("ngForOf",n.officesData),l(3),g("ngIf",n.userForm.controls.officeId.hasError("required")),l(6),b(d(135,61,"labels.inputs.Staff")),l(5),g("ngForOf",n.staffData),l(8),b(d(148,63,"labels.inputs.Password")),l(5),g("ngIf",(c=n.userForm.get("password"))==null?null:c.hasError("required")),l(2),g("ngIf",(u=n.userForm.get("password"))==null?null:u.hasError("minlength")),l(2),g("ngIf",(h=n.userForm.get("password"))==null?null:h.hasError("maxlength")),l(2),g("ngIf",((_=n.userForm.get("password"))==null?null:_.hasError("pattern"))&&!((_=n.userForm.get("password"))!=null&&_.hasError("minlength"))&&!((_=n.userForm.get("password"))!=null&&_.hasError("maxlength"))),l(7),b(d(166,65,"labels.inputs.Repeat Password")),l(5),g("ngIf",(y=n.userForm.get("repeatPassword"))==null?null:y.hasError("required")),l(4),g("ngIf",(n.userForm.errors==null?null:n.userForm.errors.passwordsDoNotMatch)&&!((C=n.userForm.get("password"))!=null&&C.hasError("required"))&&!((C=n.userForm.get("repeatPassword"))!=null&&C.hasError("required"))),l(6),b(d(181,67,"labels.inputs.Roles")),l(5),g("ngForOf",n.rolesData),l(3),g("ngIf",n.userForm.controls.roles.hasError("required")),l(7),g("routerLink",ht(73,o5i)),l(),P(` +`),x(207,C5i,32,21,"ng-template",null,0,vi),t(209,` +`)}if(o&2){let c,u,h,_,y,C;l(4),g("formGroup",n.userForm),l(10),b(d(15,37,"labels.inputs.Username")),l(5),g("ngIf",n.userForm.controls.username.hasError("required")),l(7),b(d(27,39,"labels.inputs.Email")),l(5),g("ngIf",n.userForm.controls.email.hasError("email")),l(2),g("ngIf",n.userForm.controls.email.hasError("required")),l(7),b(d(41,41,"labels.inputs.First Name")),l(10),b(d(51,43,"labels.inputs.Last Name")),l(10),b(d(61,45,"labels.inputs.Language")),l(5),g("ngForOf",n.languageCodes),l(8),b(d(74,47,"labels.inputs.Gender")),l(6),b(d(80,49,"labels.catalogs.male")),l(4),b(d(84,51,"labels.catalogs.female")),l(4),b(d(88,53,"labels.catalogs.other")),l(11),b(d(99,55,"labels.inputs.Code")),l(5),g("ngForOf",n.countryCodes),l(7),b(d(111,57,"labels.inputs.Phone Number")),l(10),b(d(121,59,"labels.inputs.Office")),l(5),g("ngForOf",n.officesData),l(3),g("ngIf",n.userForm.controls.officeId.hasError("required")),l(6),b(d(135,61,"labels.inputs.Staff")),l(5),g("ngForOf",n.staffData),l(8),b(d(148,63,"labels.inputs.Password")),l(5),g("ngIf",(c=n.userForm.get("password"))==null?null:c.hasError("required")),l(2),g("ngIf",(u=n.userForm.get("password"))==null?null:u.hasError("minlength")),l(2),g("ngIf",(h=n.userForm.get("password"))==null?null:h.hasError("maxlength")),l(2),g("ngIf",((_=n.userForm.get("password"))==null?null:_.hasError("pattern"))&&!((_=n.userForm.get("password"))!=null&&_.hasError("minlength"))&&!((_=n.userForm.get("password"))!=null&&_.hasError("maxlength"))),l(7),b(d(166,65,"labels.inputs.Repeat Password")),l(5),g("ngIf",(y=n.userForm.get("repeatPassword"))==null?null:y.hasError("required")),l(4),g("ngIf",(n.userForm.errors==null?null:n.userForm.errors.passwordsDoNotMatch)&&!((C=n.userForm.get("password"))!=null&&C.hasError("required"))&&!((C=n.userForm.get("repeatPassword"))!=null&&C.hasError("required"))),l(6),b(d(181,67,"labels.inputs.Roles")),l(5),g("ngForOf",n.rolesData),l(3),g("ngIf",n.userForm.controls.roles.hasError("required")),l(7),g("routerLink",ht(73,r5i)),l(),P(` `,d(197,69,"labels.buttons.Cancel"),` `),l(3),g("disabled",n.userForm.invalid),l(),P(` `,d(201,71,"labels.buttons.Submit"),` - `)}},dependencies:[St,se,zt,wt,ge,Se,re,ue,Ie,gw,ns,fe,he,qt,oe,me,Ue,Ht,$t,Te,Zt,Oe,De,Dt,Et],styles:[".password-never-expires-wrapper[_ngcontent-%COMP%], .send-password-to-email-wrapper[_ngcontent-%COMP%]{padding:17.5px 0}.reset-password-error[_ngcontent-%COMP%]{color:#f44336;font-size:80%;margin:0}"]})}}return e})();var S5i=()=>["../"];function w5i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `)}},dependencies:[St,se,zt,wt,ge,Se,re,ue,Ie,gw,ns,fe,he,qt,oe,me,Ue,Ht,$t,Te,Zt,Oe,De,Dt,Et],styles:[".password-never-expires-wrapper[_ngcontent-%COMP%], .send-password-to-email-wrapper[_ngcontent-%COMP%]{padding:17.5px 0}.reset-password-error[_ngcontent-%COMP%]{color:#f44336;font-size:80%;margin:0}"]})}}return e})();var y5i=()=>["../"];function S5i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.Username")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function E5i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `),l(4),b(d(6,7,"labels.commons.required")))}function w5i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.Email")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.invalid")))}function P5i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `),l(4),b(d(6,7,"labels.commons.invalid")))}function E5i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.Email")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function k5i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),a(3,"strong"),t(4),m(5,"translate"),s(),t(6,` + `),l(4),b(d(6,7,"labels.commons.required")))}function P5i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),a(3,"strong"),t(4),m(5,"translate"),s(),t(6,` `),s()),e&2&&(l(),P(` `,d(2,2,"labels.inputs.First Name"),` - `),l(3),b(d(5,4,"labels.commons.cannot begin with a special character or number")))}function I5i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `),l(3),b(d(5,4,"labels.commons.cannot begin with a special character or number")))}function k5i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.First Name")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function T5i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),a(3,"strong"),t(4),m(5,"translate"),s(),t(6,` + `),l(4),b(d(6,7,"labels.commons.required")))}function I5i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),a(3,"strong"),t(4),m(5,"translate"),s(),t(6,` `),s()),e&2&&(l(),P(` `,d(2,2,"labels.inputs.Last Name"),` - `),l(3),b(d(5,4,"labels.commons.cannot begin with a special character or number")))}function M5i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `),l(3),b(d(5,4,"labels.commons.cannot begin with a special character or number")))}function T5i(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.Last Name")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function D5i(e,r){if(e&1&&(a(0,"mat-option",26),t(1),m(2,"translate"),s()),e&2){let i=r.$implicit;g("value",i.code),l(),_t(` + `),l(4),b(d(6,7,"labels.commons.required")))}function M5i(e,r){if(e&1&&(a(0,"mat-option",26),t(1),m(2,"translate"),s()),e&2){let i=r.$implicit;g("value",i.code),l(),_t(` `,d(2,3,"countries."+i.key)," (",i.code,`) - `)}}function A5i(e,r){if(e&1&&(a(0,"mat-option",26),t(1),m(2,"translate"),s()),e&2){let i=r.$implicit;g("value",i.code),l(),P(` + `)}}function D5i(e,r){if(e&1&&(a(0,"mat-option",26),t(1),m(2,"translate"),s()),e&2){let i=r.$implicit;g("value",i.code),l(),P(` `,d(2,2,"languages."+i.key),` + `)}}function A5i(e,r){if(e&1&&(a(0,"mat-option",26),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` + `,i.name,` `)}}function O5i(e,r){if(e&1&&(a(0,"mat-option",26),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` - `,i.name,` - `)}}function F5i(e,r){if(e&1&&(a(0,"mat-option",26),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` `,i.displayName,` - `)}}function B5i(e,r){if(e&1&&(a(0,"mat-option",26),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` + `)}}function F5i(e,r){if(e&1&&(a(0,"mat-option",26),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` `,i.name,` - `)}}function R5i(e,r){if(e&1){let i=st();a(0,"form",2),q("ngSubmit",function(){W(i);let n=A();return Q(n.submit())}),t(1,` + `)}}function B5i(e,r){if(e&1){let i=st();a(0,"form",2),q("ngSubmit",function(){W(i);let n=A();return Q(n.submit())}),t(1,` `),a(2,"mat-card-content"),t(3,` `),a(4,"div",3),t(5,` `),a(6,"mat-form-field",4),t(7,` `),a(8,"mat-label"),t(9),m(10,"translate"),s(),t(11,` `),k(12,"input",5),t(13,` - `),x(14,w5i,8,9,"mat-error",6),t(15,` + `),x(14,S5i,8,9,"mat-error",6),t(15,` `),s(),t(16,` `),a(17,"mat-form-field",4),t(18,` `),a(19,"mat-label"),t(20),m(21,"translate"),s(),t(22,` `),k(23,"input",7),t(24,` - `),x(25,E5i,8,9,"mat-error",6),t(26,` - `),x(27,P5i,8,9,"mat-error",6),t(28,` + `),x(25,w5i,8,9,"mat-error",6),t(26,` + `),x(27,E5i,8,9,"mat-error",6),t(28,` `),s(),t(29,` `),a(30,"mat-form-field",4),t(31,` `),a(32,"mat-label"),t(33),m(34,"translate"),s(),t(35,` `),k(36,"input",8),t(37,` - `),x(38,k5i,7,6,"mat-error",6),t(39,` - `),x(40,I5i,8,9,"mat-error",6),t(41,` + `),x(38,P5i,7,6,"mat-error",6),t(39,` + `),x(40,k5i,8,9,"mat-error",6),t(41,` `),s(),t(42,` `),a(43,"mat-form-field",4),t(44,` `),a(45,"mat-label"),t(46),m(47,"translate"),s(),t(48,` `),k(49,"input",9),t(50,` - `),x(51,T5i,7,6,"mat-error",6),t(52,` - `),x(53,M5i,8,9,"mat-error",6),t(54,` + `),x(51,I5i,7,6,"mat-error",6),t(52,` + `),x(53,T5i,8,9,"mat-error",6),t(54,` `),s(),t(55,` `),a(56,"mat-form-field",10),t(57,` `),a(58,"mat-label"),t(59),m(60,"translate"),s(),t(61,` `),a(62,"mat-select",11),t(63,` - `),x(64,D5i,3,5,"mat-option",12),t(65,` + `),x(64,M5i,3,5,"mat-option",12),t(65,` `),s(),t(66,` `),s(),t(67,` @@ -41283,28 +41283,28 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),a(99,"mat-form-field",4),t(100,` `),a(101,"mat-label"),t(102),m(103,"translate"),s(),t(104,` `),a(105,"mat-select",19),t(106,` - `),x(107,A5i,3,4,"mat-option",12),t(108,` + `),x(107,D5i,3,4,"mat-option",12),t(108,` `),s(),t(109,` `),s(),t(110,` `),a(111,"mat-form-field",4),t(112,` `),a(113,"mat-label"),t(114),m(115,"translate"),s(),t(116,` `),a(117,"mat-select",20),q("selectionChange",function(n){W(i);let c=A();return Q(c.officeChanged(n.value))}),t(118,` - `),x(119,O5i,2,2,"mat-option",12),t(120,` + `),x(119,A5i,2,2,"mat-option",12),t(120,` `),s(),t(121,` `),s(),t(122,` `),a(123,"mat-form-field",4),t(124,` `),a(125,"mat-label"),t(126),m(127,"translate"),s(),t(128,` `),a(129,"mat-select",21),t(130,` - `),x(131,F5i,2,2,"mat-option",12),t(132,` + `),x(131,O5i,2,2,"mat-option",12),t(132,` `),s(),t(133,` `),s(),t(134,` `),a(135,"mat-form-field",4),t(136,` `),a(137,"mat-label"),t(138),m(139,"translate"),s(),t(140,` `),a(141,"mat-select",22),t(142,` - `),x(143,B5i,2,2,"mat-option",12),t(144,` + `),x(143,F5i,2,2,"mat-option",12),t(144,` `),s(),t(145,` `),s(),t(146,` @@ -41314,16 +41314,16 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),s(),t(157,` `),s(),t(158,` `),s(),t(159,` - `),s()}if(e&2){let i=A();g("formGroup",i.editUserForm),l(9),b(d(10,30,"labels.inputs.Username")),l(5),g("ngIf",i.editUserForm.controls.username.hasError("required")),l(6),b(d(21,32,"labels.inputs.Email")),l(5),g("ngIf",i.editUserForm.controls.email.hasError("email")),l(2),g("ngIf",i.editUserForm.controls.email.hasError("required")),l(6),b(d(34,34,"labels.inputs.First Name")),l(5),g("ngIf",i.editUserForm.controls.firstname.hasError("pattern")),l(2),g("ngIf",i.editUserForm.controls.firstname.hasError("required")),l(6),b(d(47,36,"labels.inputs.Last Name")),l(5),g("ngIf",i.editUserForm.controls.lastname.hasError("pattern")),l(2),g("ngIf",i.editUserForm.controls.lastname.hasError("required")),l(6),b(d(60,38,"labels.inputs.Code")),l(5),g("ngForOf",i.countryCodes),l(7),b(d(72,40,"labels.inputs.Phone Number")),l(9),b(d(81,42,"labels.inputs.Gender")),l(6),b(d(87,44,"labels.catalogs.male")),l(4),b(d(91,46,"labels.catalogs.female")),l(4),b(d(95,48,"labels.catalogs.other")),l(8),b(d(103,50,"labels.inputs.Language")),l(5),g("ngForOf",i.languageCodes),l(7),b(d(115,52,"labels.inputs.Office")),l(5),g("ngForOf",i.officesData),l(7),b(d(127,54,"labels.inputs.Staff")),l(5),g("ngForOf",i.staffData),l(7),b(d(139,56,"labels.inputs.Roles")),l(5),g("ngForOf",i.rolesData),l(6),g("routerLink",ht(62,S5i)),l(),P(` + `),s()}if(e&2){let i=A();g("formGroup",i.editUserForm),l(9),b(d(10,30,"labels.inputs.Username")),l(5),g("ngIf",i.editUserForm.controls.username.hasError("required")),l(6),b(d(21,32,"labels.inputs.Email")),l(5),g("ngIf",i.editUserForm.controls.email.hasError("email")),l(2),g("ngIf",i.editUserForm.controls.email.hasError("required")),l(6),b(d(34,34,"labels.inputs.First Name")),l(5),g("ngIf",i.editUserForm.controls.firstname.hasError("pattern")),l(2),g("ngIf",i.editUserForm.controls.firstname.hasError("required")),l(6),b(d(47,36,"labels.inputs.Last Name")),l(5),g("ngIf",i.editUserForm.controls.lastname.hasError("pattern")),l(2),g("ngIf",i.editUserForm.controls.lastname.hasError("required")),l(6),b(d(60,38,"labels.inputs.Code")),l(5),g("ngForOf",i.countryCodes),l(7),b(d(72,40,"labels.inputs.Phone Number")),l(9),b(d(81,42,"labels.inputs.Gender")),l(6),b(d(87,44,"labels.catalogs.male")),l(4),b(d(91,46,"labels.catalogs.female")),l(4),b(d(95,48,"labels.catalogs.other")),l(8),b(d(103,50,"labels.inputs.Language")),l(5),g("ngForOf",i.languageCodes),l(7),b(d(115,52,"labels.inputs.Office")),l(5),g("ngForOf",i.officesData),l(7),b(d(127,54,"labels.inputs.Staff")),l(5),g("ngForOf",i.staffData),l(7),b(d(139,56,"labels.inputs.Roles")),l(5),g("ngForOf",i.rolesData),l(6),g("routerLink",ht(62,y5i)),l(),P(` `,d(151,58,"labels.buttons.Cancel"),` `),l(4),P(` `,d(155,60,"labels.buttons.Submit"),` `)}}var tA=(()=>{class e{constructor(i,o,n,c,u){this.formBuilder=i,this.UsersServiceZitadel=o,this.UsersService=n,this.route=c,this.router=u,this.countryCodes=J6,this.languageCodes=Z6,this.route.data.subscribe(h=>{let _=h.user;this.userData=_.object?.result?.[0]||{},this.officesData=h.usersTemplate.allowedOffices,this.rolesData=h.usersTemplate.availableRoles,this.UsersServiceZitadel.getExtraUserData(this.userData.id).subscribe(y=>{let C=y.object;this.userData=oi(ye({},this.userData),{userName:C.username_zitadel,officeId:C.office_id,staffId:C.staff_id,selectedRoles:C.roles||[]}),this.createEditUserForm(),this.officeChanged(this.userData.officeId),this.UsersServiceZitadel.getRoles().subscribe(E=>{let T=E.object?.result||[];this.rolesData=T.map(D=>({id:D.key,name:D.displayName}))})})})}ngOnInit(){}createEditUserForm(){let i=this.userData?.human?.profile??{},o=this.userData?.human?.email?.email||"",n=this.userData?.human?.phone?.phone||"",u="+1",h=n,_=i?.gender&&i.gender!==""?i.gender:"GENDER_MALE",y=i.preferredLanguage||"es";for(let C of this.countryCodes)if(n.startsWith(C.code)){u=C.code,h=n.replace(C.code,"");break}this.editUserForm=this.formBuilder.group({username:[this.userData.userName,bt.required],email:[o,[bt.required,bt.email]],firstname:[i.firstName||"",[bt.required,bt.pattern("(^[A-z]).*")]],lastname:[i.lastName||"",[bt.required,bt.pattern("(^[A-z]).*")]],countryCode:[u,bt.required],phoneNumber:[h,bt.required],gender:[_,bt.required],preferredLanguage:[y,bt.required],officeId:[this.userData.officeId,bt.required],staffId:[this.userData.staffId||null],roles:[this.userData.selectedRoles.map(C=>C.id.toString()),bt.required]})}officeChanged(i){if(!i){console.warn("No officeId provided to load staff.");return}this.staffData=[],this.UsersService.getStaff(i).subscribe(o=>{this.staffData=o})}submit(){let i=this.editUserForm.value,o=`${i.countryCode}${i.phoneNumber}`,n={userId:this.userData.id,email:{email:i.email,isVerified:!0},phone:{phone:o,isVerified:!0},profile:{username:i.username,givenName:i.firstname,familyName:i.lastname,displayName:`${i.firstname} ${i.lastname}`,nickName:i.firstname,preferredLanguage:i.preferredLanguage,gender:i.gender}},c={userId:this.userData.id,roleKeys:this.editUserForm.value.roles},u={userId:this.userData.id,officeId:i.officeId,staffId:i.staffId};this.UsersServiceZitadel.editUser(n).subscribe(),this.UsersServiceZitadel.editRoles(c).subscribe(),this.UsersServiceZitadel.editOffice(u).subscribe(h=>{this.router.navigate(["/appusers"])})}static{this.\u0275fac=function(o){return new(o||e)(V(xe),V(Wp),V(ql),V(Lt),V(te))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-edit-user"]],decls:8,vars:1,consts:[[1,"container"],[3,"formGroup","ngSubmit",4,"ngIf"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["matInput","","required","","formControlName","username","readonline",""],[4,"ngIf"],["matInput","","required","","formControlName","email"],["matInput","","required","","formControlName","firstname"],["matInput","","required","","formControlName","lastname"],[1,"flex-20"],["formControlName","countryCode","required",""],[3,"value",4,"ngFor","ngForOf"],[1,"flex-75"],["matInput","","formControlName","phoneNumber","required","","maxlength","12","minlength","4"],["formControlName","gender","required",""],["value","GENDER_MALE"],["value","GENDER_FEMALE"],["value","GENDER_OTHER"],["formControlName","preferredLanguage","required",""],["required","","formControlName","officeId",3,"selectionChange"],["formControlName","staffId"],["formControlName","roles","multiple",""],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary"],[3,"value"]],template:function(o,n){o&1&&(a(0,"div",0),t(1,` `),a(2,"mat-card"),t(3,` - `),x(4,R5i,160,63,"form",1),t(5,` + `),x(4,B5i,160,63,"form",1),t(5,` `),s(),t(6,` `),s(),t(7,` -`)),o&2&&(l(4),g("ngIf",n.editUserForm))},dependencies:[St,se,zt,wt,ge,Se,re,ue,Ie,gw,ns,fe,he,qt,oe,me,Ue,Ht,$t,Te,Zt,Oe,De,Dt,Et],styles:[".password-never-expires-wrapper[_ngcontent-%COMP%]{padding:17.5px 0}"]})}}return e})();var N5i=[{path:"",component:H6,resolve:{users:Cz}},{path:"create",component:G6,data:{title:"Create User",breadcrumb:"Create User"},resolve:{usersTemplate:TC}},{path:":id",data:{title:"View User",routeParamBreadcrumb:"id"},children:[{path:"",component:U6,resolve:{user:W6}},{path:"edit",component:$6,data:{title:"Edit User",breadcrumb:"Edit",routeResolveBreadcrumb:!1},resolve:{user:W6,usersTemplate:TC}}]}],L5i=[{path:"",component:Y6,resolve:{users:yz}},{path:"create",component:X6,data:{title:"Create User",breadcrumb:"Create User"},resolve:{usersTemplate:TC}},{path:":id",data:{title:"View User",routeParamBreadcrumb:"id"},children:[{path:"",component:K6,resolve:{user:Q6}},{path:"edit",component:tA,data:{title:"Edit User",breadcrumb:"Edit",routeResolveBreadcrumb:!1},resolve:{user:Q6,usersTemplate:Sz}}]}],V5i=Wn.OIDC.oidcServerEnabled?L5i:N5i,z5i=[uo.withShell([{path:"appusers",data:{title:"Users",breadcrumb:"Users"},children:V5i}])],Jut=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e})}static{this.\u0275inj=un({providers:[Cz,TC,W6,yz,Q6,Sz],imports:[tr.forChild(z5i),tr]})}}return e})();var Zut=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e})}static{this.\u0275inj=un({imports:[Yr,Jut,H6,G6,U6,$6,Y6,K6,tA,X6]})}}return e})();var j5i=()=>[10,25,50,100],q5i=e=>["/reports","run",e],H5i=(e,r)=>({type:e,id:r});function G5i(e,r){e&1&&(a(0,"th",14),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.name")))}function U5i(e,r){if(e&1&&(a(0,"td",15),t(1),s()),e&2){let i=r.$implicit;l(),b(i.reportName)}}function $5i(e,r){e&1&&(a(0,"th",14),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Type")))}function W5i(e,r){if(e&1&&(a(0,"td",15),t(1),m(2,"translate"),s()),e&2){let i=r.$implicit;l(),b(d(2,1,"labels.text."+i.reportType))}}function Q5i(e,r){e&1&&(a(0,"th",14),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Category")))}function Y5i(e,r){if(e&1&&(a(0,"td",15),t(1),m(2,"translate"),s()),e&2){let i=r.$implicit;l(),b(d(2,1,"labels.text."+i.reportCategory))}}function K5i(e,r){e&1&&k(0,"tr",16)}function J5i(e,r){if(e&1&&k(0,"tr",17),e&2){let i=r.$implicit;g("routerLink",Xe(2,q5i,i.reportName))("queryParams",vs(4,H5i,i.reportType,i.id))}}var MC=(()=>{class e{constructor(i,o){this.route=i,this.router=o,this.displayedColumns=["reportName","reportType","reportCategory"],this.dataSource=new ci,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.route.data.subscribe(n=>{this.reportsData=n.reports}),this.filter=this.route.snapshot.params.filter}ngOnInit(){this.setReports(),this.filterReportsByCategory()}applyFilter(i){i.length?(this.setCustomFilterPredicate(),this.dataSource.filter=i.trim().toLowerCase()):this.filterReportsByCategory()}setReports(){this.dataSource=new ci(this.reportsData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}filterReportsByCategory(){this.dataSource.filterPredicate=(i,o)=>i.reportCategory===o,this.dataSource.filter=this.filter}setCustomFilterPredicate(){this.dataSource.filterPredicate=(i,o)=>{let n=Object.keys(i).reduce(function(u,h){return u+i[h]+"\u25EC"},"").toLowerCase(),c=o.trim().toLowerCase();return this.filter?n.indexOf(c)!==-1&&i.reportCategory===this.filter:n.indexOf(c)!==-1}}static{this.\u0275fac=function(o){return new(o||e)(V(Lt),V(te))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-reports"]],viewQuery:function(o,n){if(o&1&&(Nt(Je,7),Nt($e,7)),o&2){let c;Bt(c=Rt())&&(n.paginator=c.first),Bt(c=Rt())&&(n.sort=c.first)}},decls:48,vars:8,consts:[[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","reportName"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","reportType"],["matColumnDef","reportCategory"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink","queryParams",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink","queryParams"]],template:function(o,n){o&1&&(a(0,"div",0),t(1,` +`)),o&2&&(l(4),g("ngIf",n.editUserForm))},dependencies:[St,se,zt,wt,ge,Se,re,ue,Ie,gw,ns,fe,he,qt,oe,me,Ue,Ht,$t,Te,Zt,Oe,De,Dt,Et],styles:[".password-never-expires-wrapper[_ngcontent-%COMP%]{padding:17.5px 0}"]})}}return e})();var R5i=[{path:"",component:H6,resolve:{users:Cz}},{path:"create",component:G6,data:{title:"Create User",breadcrumb:"Create User"},resolve:{usersTemplate:TC}},{path:":id",data:{title:"View User",routeParamBreadcrumb:"id"},children:[{path:"",component:U6,resolve:{user:W6}},{path:"edit",component:$6,data:{title:"Edit User",breadcrumb:"Edit",routeResolveBreadcrumb:!1},resolve:{user:W6,usersTemplate:TC}}]}],N5i=[{path:"",component:Y6,resolve:{users:yz}},{path:"create",component:X6,data:{title:"Create User",breadcrumb:"Create User"},resolve:{usersTemplate:TC}},{path:":id",data:{title:"View User",routeParamBreadcrumb:"id"},children:[{path:"",component:K6,resolve:{user:Q6}},{path:"edit",component:tA,data:{title:"Edit User",breadcrumb:"Edit",routeResolveBreadcrumb:!1},resolve:{user:Q6,usersTemplate:Sz}}]}],L5i=Wn.OIDC.oidcServerEnabled?N5i:R5i,V5i=[uo.withShell([{path:"appusers",data:{title:"Users",breadcrumb:"Users"},children:L5i}])],Jut=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e})}static{this.\u0275inj=un({providers:[Cz,TC,W6,yz,Q6,Sz],imports:[tr.forChild(V5i),tr]})}}return e})();var Zut=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e})}static{this.\u0275inj=un({imports:[Yr,Jut,H6,G6,U6,$6,Y6,K6,tA,X6]})}}return e})();var z5i=()=>[10,25,50,100],j5i=e=>["/reports","run",e],q5i=(e,r)=>({type:e,id:r});function H5i(e,r){e&1&&(a(0,"th",14),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.name")))}function G5i(e,r){if(e&1&&(a(0,"td",15),t(1),s()),e&2){let i=r.$implicit;l(),b(i.reportName)}}function U5i(e,r){e&1&&(a(0,"th",14),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Type")))}function $5i(e,r){if(e&1&&(a(0,"td",15),t(1),m(2,"translate"),s()),e&2){let i=r.$implicit;l(),b(d(2,1,"labels.text."+i.reportType))}}function W5i(e,r){e&1&&(a(0,"th",14),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Category")))}function Q5i(e,r){if(e&1&&(a(0,"td",15),t(1),m(2,"translate"),s()),e&2){let i=r.$implicit;l(),b(d(2,1,"labels.text."+i.reportCategory))}}function Y5i(e,r){e&1&&k(0,"tr",16)}function K5i(e,r){if(e&1&&k(0,"tr",17),e&2){let i=r.$implicit;g("routerLink",Xe(2,j5i,i.reportName))("queryParams",vs(4,q5i,i.reportType,i.id))}}var MC=(()=>{class e{constructor(i,o){this.route=i,this.router=o,this.displayedColumns=["reportName","reportType","reportCategory"],this.dataSource=new ci,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.route.data.subscribe(n=>{this.reportsData=n.reports}),this.filter=this.route.snapshot.params.filter}ngOnInit(){this.setReports(),this.filterReportsByCategory()}applyFilter(i){i.length?(this.setCustomFilterPredicate(),this.dataSource.filter=i.trim().toLowerCase()):this.filterReportsByCategory()}setReports(){this.dataSource=new ci(this.reportsData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}filterReportsByCategory(){this.dataSource.filterPredicate=(i,o)=>i.reportCategory===o,this.dataSource.filter=this.filter}setCustomFilterPredicate(){this.dataSource.filterPredicate=(i,o)=>{let n=Object.keys(i).reduce(function(u,h){return u+i[h]+"\u25EC"},"").toLowerCase(),c=o.trim().toLowerCase();return this.filter?n.indexOf(c)!==-1&&i.reportCategory===this.filter:n.indexOf(c)!==-1}}static{this.\u0275fac=function(o){return new(o||e)(V(Lt),V(te))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-reports"]],viewQuery:function(o,n){if(o&1&&(Nt(Je,7),Nt($e,7)),o&2){let c;Bt(c=Rt())&&(n.paginator=c.first),Bt(c=Rt())&&(n.sort=c.first)}},decls:48,vars:8,consts:[[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","reportName"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","reportType"],["matColumnDef","reportCategory"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink","queryParams",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink","queryParams"]],template:function(o,n){o&1&&(a(0,"div",0),t(1,` `),a(2,"div",1),t(3,` `),a(4,"mat-form-field",2),t(5,` `),a(6,"mat-label"),t(7),m(8,"translate"),s(),t(9,` @@ -41334,50 +41334,50 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),a(14,"div",4),t(15,` `),a(16,"table",5),t(17,` `),ot(18,6),t(19,` - `),x(20,G5i,3,3,"th",7),t(21,` - `),x(22,U5i,2,1,"td",8),t(23,` + `),x(20,H5i,3,3,"th",7),t(21,` + `),x(22,G5i,2,1,"td",8),t(23,` `),at(),t(24,` `),ot(25,9),t(26,` - `),x(27,$5i,3,3,"th",7),t(28,` - `),x(29,W5i,3,3,"td",8),t(30,` + `),x(27,U5i,3,3,"th",7),t(28,` + `),x(29,$5i,3,3,"td",8),t(30,` `),at(),t(31,` `),ot(32,10),t(33,` - `),x(34,Q5i,3,3,"th",7),t(35,` - `),x(36,Y5i,3,3,"td",8),t(37,` + `),x(34,W5i,3,3,"th",7),t(35,` + `),x(36,Q5i,3,3,"td",8),t(37,` `),at(),t(38,` - `),x(39,K5i,1,0,"tr",11),t(40,` - `),x(41,J5i,1,7,"tr",12),t(42,` + `),x(39,Y5i,1,0,"tr",11),t(40,` + `),x(41,K5i,1,7,"tr",12),t(42,` `),s(),t(43,` `),k(44,"mat-paginator",13),t(45,` `),s(),t(46,` `),s(),t(47,` -`)),o&2&&(l(7),b(d(8,5,"labels.inputs.Filter")),l(9),g("dataSource",n.dataSource),l(23),g("matHeaderRowDef",n.displayedColumns),l(2),g("matRowDefColumns",n.displayedColumns),l(3),g("pageSizeOptions",ht(7,j5i)))},dependencies:[St,wt,qt,Ht,$t,Zt,Et,Fe,$e,Ne,Re,Le,wi,Be,Ve,ze,qe,je,He,Je],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var eft=Pp(Ez());var tft=Pp(Ez());var Z5i=()=>[100,200,300],X5i=()=>["../.."];function tEi(e,r){if(e&1){let i=st();a(0,"div",15),t(1,` +`)),o&2&&(l(7),b(d(8,5,"labels.inputs.Filter")),l(9),g("dataSource",n.dataSource),l(23),g("matHeaderRowDef",n.displayedColumns),l(2),g("matRowDefColumns",n.displayedColumns),l(3),g("pageSizeOptions",ht(7,z5i)))},dependencies:[St,wt,qt,Ht,$t,Zt,Et,Fe,$e,Ne,Re,Le,wi,Be,Ve,ze,qe,je,He,Je],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var eft=Pp(Ez());var tft=Pp(Ez());var J5i=()=>[100,200,300],Z5i=()=>["../.."];function X5i(e,r){if(e&1){let i=st();a(0,"div",15),t(1,` `),a(2,"button",16),m(3,"translate"),q("click",function(){W(i);let n=A(2);return Q(n.exportFile())}),t(4),m(5,"translate"),s(),t(6,` `),a(7,"button",16),m(8,"translate"),q("click",function(){W(i);let n=A(2);return Q(n.exportToXLS())}),t(9),m(10,"translate"),s(),t(11,` `),s()}if(e&2){let i=A(2);l(2),Xt("matToolTip",d(3,6,"labels.text.Export the data to CSV file")),g("disabled",i.notExistsReportData),l(2),P(` `,d(5,8,"labels.buttons.Export CSV"),` `),l(3),Xt("matToolTip",d(8,10,"labels.text.Export the data to XLS file")),g("disabled",i.notExistsReportData),l(2),P(` `,d(10,12,"labels.buttons.Export XLS"),` - `)}}function eEi(e,r){if(e&1&&(a(0,"th",20),t(1),s()),e&2){let i=A().$implicit;l(),b(i)}}function iEi(e,r){if(e&1&&(a(0,"span"),t(1),s()),e&2){let i=A().$implicit,o=A().index,n=A(2);l(),b(n.toDecimal(i.row[o]))}}function nEi(e,r){if(e&1&&(a(0,"span"),t(1),s()),e&2){let i=A().$implicit,o=A().index;l(),b(i.row[o])}}function rEi(e,r){if(e&1&&(a(0,"td",21),t(1,` - `),x(2,iEi,2,1,"span",1),t(3,` - `),x(4,nEi,2,1,"span",1),t(5,` - `),s()),e&2){let i=A().index,o=A(2);l(2),g("ngIf",o.isDecimal(i)),l(2),g("ngIf",!o.isDecimal(i))}}function oEi(e,r){if(e&1&&(a(0,"div"),t(1,` + `)}}function tEi(e,r){if(e&1&&(a(0,"th",20),t(1),s()),e&2){let i=A().$implicit;l(),b(i)}}function eEi(e,r){if(e&1&&(a(0,"span"),t(1),s()),e&2){let i=A().$implicit,o=A().index,n=A(2);l(),b(n.toDecimal(i.row[o]))}}function iEi(e,r){if(e&1&&(a(0,"span"),t(1),s()),e&2){let i=A().$implicit,o=A().index;l(),b(i.row[o])}}function nEi(e,r){if(e&1&&(a(0,"td",21),t(1,` + `),x(2,eEi,2,1,"span",1),t(3,` + `),x(4,iEi,2,1,"span",1),t(5,` + `),s()),e&2){let i=A().index,o=A(2);l(2),g("ngIf",o.isDecimal(i)),l(2),g("ngIf",!o.isDecimal(i))}}function rEi(e,r){if(e&1&&(a(0,"div"),t(1,` `),ot(2,17),t(3,` - `),x(4,eEi,2,1,"th",18),t(5,` - `),x(6,rEi,6,2,"td",19),t(7,` + `),x(4,tEi,2,1,"th",18),t(5,` + `),x(6,nEi,6,2,"td",19),t(7,` `),at(),t(8,` - `),s()),e&2){let i=r.$implicit;l(2),g("matColumnDef",i)}}function aEi(e,r){e&1&&k(0,"tr",22)}function sEi(e,r){e&1&&k(0,"tr",23)}function lEi(e,r){if(e&1&&(a(0,"div"),t(1,` - `),x(2,tEi,12,14,"div",5),t(3,` + `),s()),e&2){let i=r.$implicit;l(2),g("matColumnDef",i)}}function oEi(e,r){e&1&&k(0,"tr",22)}function aEi(e,r){e&1&&k(0,"tr",23)}function sEi(e,r){if(e&1&&(a(0,"div"),t(1,` + `),x(2,X5i,12,14,"div",5),t(3,` `),a(4,"div",6),t(5,` `),a(6,"table",7),t(7,` - `),x(8,oEi,9,1,"div",8),t(9,` - `),x(10,aEi,1,0,"tr",9),t(11,` - `),x(12,sEi,1,0,"tr",10),t(13,` + `),x(8,rEi,9,1,"div",8),t(9,` + `),x(10,oEi,1,0,"tr",9),t(11,` + `),x(12,aEi,1,0,"tr",10),t(13,` `),s(),t(14,` `),k(15,"mat-paginator",11),t(16,` `),s(),t(17,` @@ -41386,30 +41386,30 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),a(20,"div",13),t(21,` `),k(22,"i",14),t(23),m(24,"translate"),s(),t(25,` `),s(),t(26,` - `),s()),e&2){let i=A();l(2),g("ngIf",i.dataObject.report.type==="Table"),l(2),g("hidden",i.notExistsReportData),l(2),g("dataSource",i.dataSource),l(2),g("ngForOf",i.displayedColumns),l(2),g("matHeaderRowDef",i.displayedColumns),l(2),g("matRowDefColumns",i.displayedColumns),l(3),g("pageSizeOptions",ht(11,Z5i)),l(3),g("hidden",!i.notExistsReportData),l(5),P(` + `),s()),e&2){let i=A();l(2),g("ngIf",i.dataObject.report.type==="Table"),l(2),g("hidden",i.notExistsReportData),l(2),g("dataSource",i.dataSource),l(2),g("ngForOf",i.displayedColumns),l(2),g("matHeaderRowDef",i.displayedColumns),l(2),g("matRowDefColumns",i.displayedColumns),l(3),g("pageSizeOptions",ht(11,J5i)),l(3),g("hidden",!i.notExistsReportData),l(5),P(` `,d(24,9,"labels.text.No report data was generated"),` - `)}}function cEi(e,r){e&1&&(a(0,"div",24),t(1,` + `)}}function lEi(e,r){e&1&&(a(0,"div",24),t(1,` `),a(2,"div",13),t(3,` `),k(4,"i",14),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(5),P(` `,d(6,1,"labels.text.The report request"),` - `))}function pEi(e,r){e&1&&(a(0,"div",25),t(1,` + `))}function cEi(e,r){e&1&&(a(0,"div",25),t(1,` `),k(2,"div",26),t(3,` - `),s())}function mEi(e,r){e&1&&(a(0,"div",27),t(1,` + `),s())}function pEi(e,r){e&1&&(a(0,"div",27),t(1,` `),a(2,"button",28),t(3,` `),k(4,"fa-icon",29),t(5),m(6,"translate"),s(),t(7,` - `),s()),e&2&&(l(2),g("routerLink",ht(4,X5i)),l(3),P("",d(6,2,"labels.buttons.Back"),` + `),s()),e&2&&(l(2),g("routerLink",ht(4,Z5i)),l(3),P("",d(6,2,"labels.buttons.Back"),` `))}var eA=(()=>{class e{constructor(i,o,n,c){this.reportsService=i,this.dialog=o,this.decimalPipe=n,this.progressBarService=c,this.displayedColumns=[],this.dataSource=new ci,this.columnTypes=[],this.hideOutput=!0,this.notExistsReportData=!1,this.toBeExportedToRepo=!1}ngOnChanges(){this.hideOutput=!0,this.columnTypes=[],this.displayedColumns=[],this.getRunReportData()}getRunReportData(){let i=this.dataObject.formData.exportS3;this.reportsService.getRunReportData(this.dataObject.report.name,this.dataObject.formData).subscribe(o=>{this.toBeExportedToRepo=i,this.toBeExportedToRepo||(this.csvData=o.data,this.notExistsReportData=o.data.length===0,this.setOutputTable(o.data),o.columnHeaders.forEach(n=>{this.columnTypes.push(n.columnDisplayType),this.displayedColumns.push(n.columnName)})),this.hideOutput=!1,this.progressBarService.decrease()})}setOutputTable(i){this.dataSource=new ci(i),setTimeout(()=>{this.dataSource.paginator=this.paginator})}exportFile(){let i=[{name:"Comma (,)",char:","},{name:"Colon (:)",char:":"},{name:"SemiColon (;)",char:";"},{name:"Pipe (|)",char:"|"},{name:"Space ( )",char:" "}],o=`${this.dataObject.report.name}.csv`,n=[new hn({controlName:"delimiter",label:"Delimiter",value:Wn.defaultCharDelimiter,options:{label:"name",value:"char",data:i},required:!0,order:1}),new Xn({controlName:"fileName",label:"File Name",value:o,type:"text",required:!0,order:2})],c={title:"Export data to File",layout:{addButtonText:"Export to File"},formfields:n};this.dialog.open(Fn,{data:c}).afterClosed().subscribe(h=>{h.data&&this.downloadCSV(h.data.value.fileName,h.data.value.delimiter)})}exportToXLS(){let i=`${this.dataObject.report.name}.xlsx`,o=this.csvData.map(u=>{let h={};for(let _=0;_{c.addRow(this.displayedColumns.map(h=>u[h]))}),n.xlsx.writeBuffer().then(u=>{let h=new Blob([u],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),_=URL.createObjectURL(h),y=document.createElement("a");y.href=_,y.download="filename.xlsx",y.click(),URL.revokeObjectURL(_)})}downloadCSV(i,o){let n=this.displayedColumns,c=this.csvData.map(h=>h.row.join(o));c.unshift(`data:text/csv;charset=utf-8,${n.join(o)}`),c=c.join(`\r `);let u=document.createElement("a");u.setAttribute("href",encodeURI(c)),u.setAttribute("download",i),document.body.appendChild(u),u.click(),document.body.removeChild(u)}toDecimal(i){let o=this.dataObject.decimalChoice;return this.decimalPipe.transform(i,`1.${o}-${o}`)}isDecimal(i){return this.columnTypes[i]==="DECIMAL"}static{this.\u0275fac=function(o){return new(o||e)(V(Ts),V(ni),V(eu),V(i0))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-table-and-sms"]],viewQuery:function(o,n){if(o&1&&Nt(Je,5),o&2){let c;Bt(c=Rt())&&(n.paginator=c.first)}},inputs:{dataObject:"dataObject"},features:[Vo],decls:11,vars:4,consts:[[1,"container"],[4,"ngIf"],["class","alert",4,"ngIf"],["class","loader",4,"ngIf"],["class","back-button",4,"ngIf"],["class","m-b-10 gap-45px","align","end",4,"ngIf"],[1,"table-output",3,"hidden"],["id","report-table","mat-table","",3,"dataSource"],[4,"ngFor","ngForOf"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],[1,"alert",3,"hidden"],[1,"message"],[1,"fa","fa-exclamation-circle","alert-check"],["align","end",1,"m-b-10","gap-45px"],["mat-raised-button","","color","primary",3,"click","disabled","matToolTip"],[3,"matColumnDef"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row"],[1,"alert"],[1,"loader"],[1,"loading"],[1,"back-button"],["type","button","color","primary","mat-raised-button","",3,"routerLink"],["icon","arrow-left",1,"m-r-10"]],template:function(o,n){o&1&&(a(0,"div",0),t(1,` - `),x(2,lEi,27,12,"div",1),t(3,` + `),x(2,sEi,27,12,"div",1),t(3,` - `),x(4,cEi,8,3,"div",2),t(5,` + `),x(4,lEi,8,3,"div",2),t(5,` - `),x(6,pEi,4,0,"div",3),t(7,` + `),x(6,cEi,4,0,"div",3),t(7,` - `),x(8,mEi,8,5,"div",4),t(9,` + `),x(8,pEi,8,5,"div",4),t(9,` `),s(),t(10,` -`)),o&2&&(l(2),g("ngIf",!n.hideOutput&&!n.toBeExportedToRepo),l(2),g("ngIf",!n.hideOutput&&n.toBeExportedToRepo),l(2),g("ngIf",n.hideOutput),l(2),g("ngIf",!n.hideOutput))},dependencies:[St,se,zt,wt,qt,Dt,Et,Fe,Ne,Re,Le,Be,Ve,ze,qe,je,He,Je,Gt],styles:[".table-output[_ngcontent-%COMP%]{overflow:auto}.select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.mat-header-cell[_ngcontent-%COMP%], .mat-cell[_ngcontent-%COMP%]{min-width:150px;margin-left:5px;margin-right:5px}.back-button[_ngcontent-%COMP%]{text-align:center;margin-top:25px;max-height:2%;margin-bottom:2%}.loader[_ngcontent-%COMP%]{margin-bottom:39px;overflow:auto}.sidenav[_ngcontent-%COMP%]{overflow-x:hidden}@keyframes _ngcontent-%COMP%_move{0%{left:0}16.7%{left:0}33.3%{left:560px}50%{left:980px}66.7%{left:560px}83.3%{left:0}to{left:0}}@keyframes _ngcontent-%COMP%_grow{0%{width:140px}16.7%{width:560px}33.3%{width:560px}50%{width:140px}66.7%{width:560px}83.3%{width:560px}to{width:140px}}"]})}}return e})();var dEi=e=>({display:e}),iA=(()=>{class e{constructor(i){this.reportsService=i,this.hideOutput=!0}ngOnChanges(){this.getRunReportData()}getRunReportData(){this.reportsService.getChartRunReportData(this.dataObject.report.name,this.dataObject.formData).subscribe(i=>{this.inputData=i,this.setPieChart(this.inputData),this.hideOutput=!1})}setPieChart(i){this.chart&&this.chart.destroy(),this.chart=new td("output",{type:"pie",data:{labels:i.keys,datasets:[{label:i.valuesLabel,data:i.values,backgroundColor:this.randomColorArray(i.values.length)}]},options:{title:{display:!0,text:i.keysLabel}}})}setBarChart(i){this.chart&&this.chart.destroy(),this.chart=new td("output",{type:"bar",data:{labels:i.keys,datasets:[{label:i.valuesLabel,data:i.values,backgroundColor:this.randomColorArray(i.values.length)}]},options:{legend:{display:!1},scales:{xAxes:[{scaleLabel:{display:!0,labelString:i.keysLabel},ticks:{beginAtZero:!0}}]}}})}randomColorArray(i){let o=[];for(;i--;){let n=this.randomColor();o.push(n)}return o}randomColor(){let i=Math.floor(Math.random()*255),o=Math.floor(Math.random()*255),n=Math.floor(Math.random()*255);return`rgb(${i},${o},${n},0.6)`}static{this.\u0275fac=function(o){return new(o||e)(V(Ts))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-chart"]],inputs:{dataObject:"dataObject"},features:[Vo],decls:19,vars:9,consts:[[1,"m-b-20","layout-align-end"],["aria-label","Select Chart Type"],["value","Bar",3,"click"],["value","Pie",3,"click"],[3,"ngStyle"],["id","output"]],template:function(o,n){o&1&&(a(0,"div",0),t(1,` +`)),o&2&&(l(2),g("ngIf",!n.hideOutput&&!n.toBeExportedToRepo),l(2),g("ngIf",!n.hideOutput&&n.toBeExportedToRepo),l(2),g("ngIf",n.hideOutput),l(2),g("ngIf",!n.hideOutput))},dependencies:[St,se,zt,wt,qt,Dt,Et,Fe,Ne,Re,Le,Be,Ve,ze,qe,je,He,Je,Gt],styles:[".table-output[_ngcontent-%COMP%]{overflow:auto}.select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.mat-header-cell[_ngcontent-%COMP%], .mat-cell[_ngcontent-%COMP%]{min-width:150px;margin-left:5px;margin-right:5px}.back-button[_ngcontent-%COMP%]{text-align:center;margin-top:25px;max-height:2%;margin-bottom:2%}.loader[_ngcontent-%COMP%]{margin-bottom:39px;overflow:auto}.sidenav[_ngcontent-%COMP%]{overflow-x:hidden}@keyframes _ngcontent-%COMP%_move{0%{left:0}16.7%{left:0}33.3%{left:560px}50%{left:980px}66.7%{left:560px}83.3%{left:0}to{left:0}}@keyframes _ngcontent-%COMP%_grow{0%{width:140px}16.7%{width:560px}33.3%{width:560px}50%{width:140px}66.7%{width:560px}83.3%{width:560px}to{width:140px}}"]})}}return e})();var mEi=e=>({display:e}),iA=(()=>{class e{constructor(i){this.reportsService=i,this.hideOutput=!0}ngOnChanges(){this.getRunReportData()}getRunReportData(){this.reportsService.getChartRunReportData(this.dataObject.report.name,this.dataObject.formData).subscribe(i=>{this.inputData=i,this.setPieChart(this.inputData),this.hideOutput=!1})}setPieChart(i){this.chart&&this.chart.destroy(),this.chart=new td("output",{type:"pie",data:{labels:i.keys,datasets:[{label:i.valuesLabel,data:i.values,backgroundColor:this.randomColorArray(i.values.length)}]},options:{title:{display:!0,text:i.keysLabel}}})}setBarChart(i){this.chart&&this.chart.destroy(),this.chart=new td("output",{type:"bar",data:{labels:i.keys,datasets:[{label:i.valuesLabel,data:i.values,backgroundColor:this.randomColorArray(i.values.length)}]},options:{legend:{display:!1},scales:{xAxes:[{scaleLabel:{display:!0,labelString:i.keysLabel},ticks:{beginAtZero:!0}}]}}})}randomColorArray(i){let o=[];for(;i--;){let n=this.randomColor();o.push(n)}return o}randomColor(){let i=Math.floor(Math.random()*255),o=Math.floor(Math.random()*255),n=Math.floor(Math.random()*255);return`rgb(${i},${o},${n},0.6)`}static{this.\u0275fac=function(o){return new(o||e)(V(Ts))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-chart"]],inputs:{dataObject:"dataObject"},features:[Vo],decls:19,vars:9,consts:[[1,"m-b-20","layout-align-end"],["aria-label","Select Chart Type"],["value","Bar",3,"click"],["value","Pie",3,"click"],[3,"ngStyle"],["id","output"]],template:function(o,n){o&1&&(a(0,"div",0),t(1,` `),a(2,"mat-button-toggle-group",1),t(3,` `),a(4,"mat-button-toggle",2),q("click",function(){return n.setBarChart(n.inputData)}),t(5),m(6,"translate"),s(),t(7,` `),a(8,"mat-button-toggle",3),q("click",function(){return n.setPieChart(n.inputData)}),t(9),m(10,"translate"),s(),t(11,` @@ -41419,64 +41419,64 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),a(14,"div",4),t(15,` `),k(16,"canvas",5),t(17,` `),s(),t(18,` -`)),o&2&&(l(5),b(d(6,3,"labels.buttons.Bar Chart")),l(4),b(d(10,5,"labels.buttons.Pie Chart")),l(5),g("ngStyle",Xe(7,dEi,n.hideOutput?"none":"block")))},dependencies:[St,Ip,wt,Et,cu,pu],encapsulation:2})}}return e})();function uEi(e,r){if(e&1&&k(0,"iframe",1),e&2){let i=A();g("src",i.pentahoUrl,tw)}}var nA=(()=>{class e{constructor(i,o,n,c){this.sanitizer=i,this.reportsService=o,this.settingsService=n,this.progressBarService=c,this.hideOutput=!0}ngOnChanges(){this.hideOutput=!0,this.getRunReportData()}getRunReportData(){this.reportsService.getPentahoRunReportData(this.dataObject.report.name,this.dataObject.formData,"default",this.settingsService.language.code,this.settingsService.dateFormat).subscribe(i=>{let o=i.headers.get("Content-Type"),n=new Blob([i.body],{type:o}),c=URL.createObjectURL(n);this.pentahoUrl=this.sanitizer.bypassSecurityTrustResourceUrl(c),this.hideOutput=!1,this.progressBarService.decrease()})}static{this.\u0275fac=function(o){return new(o||e)(V(Wm),V(Ts),V(We),V(i0))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-pentaho"]],inputs:{dataObject:"dataObject"},features:[Vo],decls:2,vars:1,consts:[["frameborder","0","width","100%","height","750px;",3,"src",4,"ngIf"],["frameborder","0","width","100%","height","750px;",3,"src"]],template:function(o,n){o&1&&(x(0,uEi,1,1,"iframe",0),t(1,` -`)),o&2&&g("ngIf",!n.hideOutput)},dependencies:[St,zt,wt],encapsulation:2})}}return e})();var fEi=()=>["/reports"];function hEi(e,r){if(e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),a(3,"strong"),t(4),m(5,"translate"),s(),t(6,` +`)),o&2&&(l(5),b(d(6,3,"labels.buttons.Bar Chart")),l(4),b(d(10,5,"labels.buttons.Pie Chart")),l(5),g("ngStyle",Xe(7,mEi,n.hideOutput?"none":"block")))},dependencies:[St,Ip,wt,Et,cu,pu],encapsulation:2})}}return e})();function dEi(e,r){if(e&1&&k(0,"iframe",1),e&2){let i=A();g("src",i.pentahoUrl,tw)}}var nA=(()=>{class e{constructor(i,o,n,c){this.sanitizer=i,this.reportsService=o,this.settingsService=n,this.progressBarService=c,this.hideOutput=!0}ngOnChanges(){this.hideOutput=!0,this.getRunReportData()}getRunReportData(){this.reportsService.getPentahoRunReportData(this.dataObject.report.name,this.dataObject.formData,"default",this.settingsService.language.code,this.settingsService.dateFormat).subscribe(i=>{let o=i.headers.get("Content-Type"),n=new Blob([i.body],{type:o}),c=URL.createObjectURL(n);this.pentahoUrl=this.sanitizer.bypassSecurityTrustResourceUrl(c),this.hideOutput=!1,this.progressBarService.decrease()})}static{this.\u0275fac=function(o){return new(o||e)(V(Wm),V(Ts),V(We),V(i0))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-pentaho"]],inputs:{dataObject:"dataObject"},features:[Vo],decls:2,vars:1,consts:[["frameborder","0","width","100%","height","750px;",3,"src",4,"ngIf"],["frameborder","0","width","100%","height","750px;",3,"src"]],template:function(o,n){o&1&&(x(0,dEi,1,1,"iframe",0),t(1,` +`)),o&2&&g("ngIf",!n.hideOutput)},dependencies:[St,zt,wt],encapsulation:2})}}return e})();var uEi=()=>["/reports"];function fEi(e,r){if(e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),a(3,"strong"),t(4),m(5,"translate"),s(),t(6,` `),s()),e&2){let i=A(3).$implicit;l(),_t(` `,i.label," ",d(2,3,"labels.commons.is"),` - `),l(3),b(d(5,5,"labels.commons.required"))}}function gEi(e,r){if(e&1&&(a(0,"mat-form-field",7),t(1,` + `),l(3),b(d(5,5,"labels.commons.required"))}}function hEi(e,r){if(e&1&&(a(0,"mat-form-field",7),t(1,` `),a(2,"mat-label"),t(3),s(),t(4,` `),k(5,"input",26),t(6,` - `),x(7,hEi,7,7,"mat-error",2),t(8,` - `),s()),e&2){let i=A(2).$implicit,o=A(2);l(3),b(i.label),l(2),g("formControlName",i.name),l(2),g("ngIf",o.reportForm.controls[i.name].hasError("required"))}}function xEi(e,r){if(e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),a(3,"strong"),t(4),m(5,"translate"),s(),t(6,` + `),x(7,fEi,7,7,"mat-error",2),t(8,` + `),s()),e&2){let i=A(2).$implicit,o=A(2);l(3),b(i.label),l(2),g("formControlName",i.name),l(2),g("ngIf",o.reportForm.controls[i.name].hasError("required"))}}function gEi(e,r){if(e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),a(3,"strong"),t(4),m(5,"translate"),s(),t(6,` `),s()),e&2){let i=A(3).$implicit;l(),_t(` `,i.label," ",d(2,3,"labels.commons.is"),` - `),l(3),b(d(5,5,"labels.commons.required"))}}function _Ei(e,r){if(e&1){let i=st();a(0,"mat-form-field",27),q("click",function(){W(i);let n=Mt(10);return Q(n.open())}),t(1,` + `),l(3),b(d(5,5,"labels.commons.required"))}}function xEi(e,r){if(e&1){let i=st();a(0,"mat-form-field",27),q("click",function(){W(i);let n=Mt(10);return Q(n.open())}),t(1,` `),a(2,"mat-label"),t(3),s(),t(4,` `),k(5,"input",28),t(6,` `),k(7,"mat-datepicker-toggle",29),t(8,` `),k(9,"mat-datepicker",null,0),t(11,` - `),x(12,xEi,7,7,"mat-error",2),t(13,` - `),s()}if(e&2){let i=Mt(10),o=A(2).$implicit,n=A(2);l(3),b(o.label),l(2),g("min",n.minDate)("max",n.maxDate)("matDatepicker",i)("formControlName",o.name),l(2),g("for",i),l(5),g("ngIf",n.reportForm.controls[o.name].hasError("required"))}}function vEi(e,r){if(e&1&&(a(0,"mat-option",32),t(1),s()),e&2){let i=r.$implicit;g("value",i),l(),P(` + `),x(12,gEi,7,7,"mat-error",2),t(13,` + `),s()}if(e&2){let i=Mt(10),o=A(2).$implicit,n=A(2);l(3),b(o.label),l(2),g("min",n.minDate)("max",n.maxDate)("matDatepicker",i)("formControlName",o.name),l(2),g("for",i),l(5),g("ngIf",n.reportForm.controls[o.name].hasError("required"))}}function _Ei(e,r){if(e&1&&(a(0,"mat-option",32),t(1),s()),e&2){let i=r.$implicit;g("value",i),l(),P(` `,i.name,` - `)}}function bEi(e,r){if(e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),a(3,"strong"),t(4),m(5,"translate"),s(),t(6,` + `)}}function vEi(e,r){if(e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),a(3,"strong"),t(4),m(5,"translate"),s(),t(6,` `),s()),e&2){let i=A(3).$implicit;l(),_t(` `,i.label," ",d(2,3,"labels.commons.is"),` - `),l(3),b(d(5,5,"labels.commons.required"))}}function CEi(e,r){if(e&1&&(a(0,"mat-form-field",7),t(1,` + `),l(3),b(d(5,5,"labels.commons.required"))}}function bEi(e,r){if(e&1&&(a(0,"mat-form-field",7),t(1,` `),a(2,"mat-label"),t(3),s(),t(4,` `),a(5,"mat-select",30),t(6,` - `),x(7,vEi,2,2,"mat-option",31),t(8,` + `),x(7,_Ei,2,2,"mat-option",31),t(8,` `),s(),t(9,` - `),x(10,bEi,7,7,"mat-error",2),t(11,` - `),s()),e&2){let i=A(2).$implicit,o=A(2);l(3),b(i.label),l(2),g("formControlName",i.name),l(2),g("ngForOf",i.selectOptions),l(3),g("ngIf",o.reportForm.controls[i.name].hasError("required"))}}function yEi(e,r){e&1&&(ot(0,23),t(1,` - `),x(2,gEi,9,3,"mat-form-field",24),t(3,` + `),x(10,vEi,7,7,"mat-error",2),t(11,` + `),s()),e&2){let i=A(2).$implicit,o=A(2);l(3),b(i.label),l(2),g("formControlName",i.name),l(2),g("ngForOf",i.selectOptions),l(3),g("ngIf",o.reportForm.controls[i.name].hasError("required"))}}function CEi(e,r){e&1&&(ot(0,23),t(1,` + `),x(2,hEi,9,3,"mat-form-field",24),t(3,` - `),x(4,_Ei,14,7,"mat-form-field",25),t(5,` + `),x(4,xEi,14,7,"mat-form-field",25),t(5,` - `),x(6,CEi,12,4,"mat-form-field",24),t(7,` - `),at()),e&2&&(l(2),g("ngSwitchCase","text"),l(2),g("ngSwitchCase","date"),l(2),g("ngSwitchCase","select"))}function SEi(e,r){if(e&1&&(ot(0,21),t(1,` - `),x(2,yEi,8,3,"ng-container",22),t(3,` - `),at()),e&2){let i=r.$implicit,o=A(2);g("ngSwitch",i.displayType),l(2),g("ngIf",o.reportForm.contains(i.name))}}function wEi(e,r){if(e&1&&(a(0,"mat-option",32),t(1),m(2,"translate"),s()),e&2){let i=r.$implicit;g("value",i.value),l(),P(` + `),x(6,bEi,12,4,"mat-form-field",24),t(7,` + `),at()),e&2&&(l(2),g("ngSwitchCase","text"),l(2),g("ngSwitchCase","date"),l(2),g("ngSwitchCase","select"))}function yEi(e,r){if(e&1&&(ot(0,21),t(1,` + `),x(2,CEi,8,3,"ng-container",22),t(3,` + `),at()),e&2){let i=r.$implicit,o=A(2);g("ngSwitch",i.displayType),l(2),g("ngIf",o.reportForm.contains(i.name))}}function SEi(e,r){if(e&1&&(a(0,"mat-option",32),t(1),m(2,"translate"),s()),e&2){let i=r.$implicit;g("value",i.value),l(),P(` `,d(2,2,"labels.inputs."+i.name),` - `)}}function EEi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `)}}function wEi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.text.Report Output Type")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function PEi(e,r){if(e&1&&(a(0,"mat-form-field",7),t(1,` + `),l(4),b(d(6,7,"labels.commons.required")))}function EEi(e,r){if(e&1&&(a(0,"mat-form-field",7),t(1,` `),a(2,"mat-label"),t(3),m(4,"translate"),s(),t(5,` `),a(6,"mat-select",33),t(7,` - `),x(8,wEi,3,4,"mat-option",31),t(9,` + `),x(8,SEi,3,4,"mat-option",31),t(9,` `),s(),t(10,` - `),x(11,EEi,8,9,"mat-error",2),t(12,` - `),s()),e&2){let i=A(2);l(3),b(d(4,3,"labels.inputs.Output Type")),l(5),g("ngForOf",i.outputTypeOptions),l(3),g("ngIf",i.reportForm.controls.outputType.hasError("required"))}}function kEi(e,r){if(e&1&&(a(0,"div",34),t(1,` + `),x(11,wEi,8,9,"mat-error",2),t(12,` + `),s()),e&2){let i=A(2);l(3),b(d(4,3,"labels.inputs.Output Type")),l(5),g("ngForOf",i.outputTypeOptions),l(3),g("ngIf",i.reportForm.controls.outputType.hasError("required"))}}function PEi(e,r){if(e&1&&(a(0,"div",34),t(1,` `),a(2,"mat-checkbox",35),t(3),m(4,"translate"),s(),t(5,` `),s()),e&2){let i=A(2);l(3),_t(` `,d(4,2,"labels.text.Export output data to S3 repository")," [",i.exportToS3Repository,`] - `)}}function IEi(e,r){if(e&1){let i=st();a(0,"button",36),q("click",function(n){W(i);let c=A(2);return Q(c.runReportAndExport(n))}),t(1,` + `)}}function kEi(e,r){if(e&1){let i=st();a(0,"button",36),q("click",function(n){W(i);let c=A(2);return Q(c.runReportAndExport(n))}),t(1,` `),k(2,"fa-icon",37),t(3),m(4,"translate"),s()}if(e&2){let i=A(2);g("disabled",!i.reportForm.valid||i.isProcessing),l(3),P(` `,d(4,2,"labels.buttons.Run and Download Report"),` - `)}}function TEi(e,r){if(e&1){let i=st();a(0,"mat-card"),t(1,` + `)}}function IEi(e,r){if(e&1){let i=st();a(0,"mat-card"),t(1,` `),a(2,"form",4),t(3,` `),a(4,"mat-card-content",5),t(5,` - `),x(6,SEi,4,2,"ng-container",6),t(7,` + `),x(6,yEi,4,2,"ng-container",6),t(7,` `),a(8,"mat-form-field",7),t(9,` `),a(10,"mat-label"),t(11),m(12,"translate"),s(),t(13,` @@ -41489,96 +41489,96 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),s(),t(31,` `),s(),t(32,` - `),x(33,PEi,13,5,"mat-form-field",14),t(34,` + `),x(33,EEi,13,5,"mat-form-field",14),t(34,` - `),x(35,kEi,6,4,"div",15),t(36,` + `),x(35,PEi,6,4,"div",15),t(36,` `),s(),t(37,` `),a(38,"mat-card-actions",16),t(39,` `),a(40,"button",17),t(41),m(42,"translate"),s(),t(43,` `),a(44,"button",18),q("click",function(){W(i);let n=A();return Q(n.run())}),t(45,` `),k(46,"fa-icon",19),t(47),m(48,"translate"),s(),t(49,` - `),x(50,IEi,5,4,"button",20),t(51,` + `),x(50,kEi,5,4,"button",20),t(51,` `),s(),t(52,` `),s(),t(53,` - `),s()}if(e&2){let i=A();l(2),g("formGroup",i.reportForm),l(4),g("ngForOf",i.paramData),l(5),b(d(12,11,"labels.inputs.Decimal Places")),l(3),g("formControl",i.decimalChoice),l(19),g("ngIf",i.isPentahoReport()),l(2),g("ngIf",i.exportToS3Allowed),l(5),g("routerLink",ht(17,fEi)),l(),P(` + `),s()}if(e&2){let i=A();l(2),g("formGroup",i.reportForm),l(4),g("ngForOf",i.paramData),l(5),b(d(12,11,"labels.inputs.Decimal Places")),l(3),g("formControl",i.decimalChoice),l(19),g("ngIf",i.isPentahoReport()),l(2),g("ngIf",i.exportToS3Allowed),l(5),g("routerLink",ht(17,uEi)),l(),P(` `,d(42,13,"labels.buttons.Cancel"),` `),l(3),g("disabled",!i.reportForm.valid||i.isProcessing),l(3),P(` `,d(48,15,"labels.buttons.Run Report"),` - `),l(3),g("ngIf",i.isTableReport())}}function MEi(e,r){if(e&1&&k(0,"mifosx-table-and-sms",42),e&2){let i=A(2);g("dataObject",i.dataObject)}}function DEi(e,r){if(e&1&&k(0,"mifosx-chart",42),e&2){let i=A(2);g("dataObject",i.dataObject)}}function AEi(e,r){if(e&1&&k(0,"mifosx-pentaho",42),e&2){let i=A(2);g("dataObject",i.dataObject)}}function OEi(e,r){if(e&1){let i=st();a(0,"div",38),t(1,` + `),l(3),g("ngIf",i.isTableReport())}}function TEi(e,r){if(e&1&&k(0,"mifosx-table-and-sms",42),e&2){let i=A(2);g("dataObject",i.dataObject)}}function MEi(e,r){if(e&1&&k(0,"mifosx-chart",42),e&2){let i=A(2);g("dataObject",i.dataObject)}}function DEi(e,r){if(e&1&&k(0,"mifosx-pentaho",42),e&2){let i=A(2);g("dataObject",i.dataObject)}}function AEi(e,r){if(e&1){let i=st();a(0,"div",38),t(1,` `),a(2,"mat-card"),t(3,` `),a(4,"div",39),t(5,` `),a(6,"button",40),q("click",function(){W(i);let n=A();return Q(n.isCollapsed=!1)}),t(7),m(8,"translate"),s(),t(9,` `),s(),t(10,` `),a(11,"div"),t(12,` - `),x(13,MEi,1,1,"mifosx-table-and-sms",41),t(14,` - `),x(15,DEi,1,1,"mifosx-chart",41),t(16,` - `),x(17,AEi,1,1,"mifosx-pentaho",41),t(18,` + `),x(13,TEi,1,1,"mifosx-table-and-sms",41),t(14,` + `),x(15,MEi,1,1,"mifosx-chart",41),t(16,` + `),x(17,DEi,1,1,"mifosx-pentaho",41),t(18,` `),s(),t(19,` `),s(),t(20,` `),s()}if(e&2){let i=A();l(7),P(` `,d(8,4,"labels.buttons.Parameters"),` `),l(6),g("ngIf",!i.hideTable),l(2),g("ngIf",!i.hideChart),l(2),g("ngIf",!i.hidePentaho)}}var rA=(()=>{class e{constructor(i,o,n,c,u){this.route=i,this.reportsService=o,this.settingsService=n,this.alertService=c,this.dateUtils=u,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.report={},this.paramData=[],this.parentParameters=[],this.pentahoReportParameters=[],this.reportForm=new pm({}),this.decimalChoice=new _e,this.isCollapsed=!1,this.hideTable=!0,this.hideChart=!0,this.hidePentaho=!0,this.reportUsesDates=!1,this.exportToS3Allowed=!1,this.outputTypeOptions=[],this.isProcessing=!1,this.report.name=this.route.snapshot.params.name,this.route.queryParams.subscribe(h=>{this.report.type=h.type,this.report.id=h.id}),this.route.data.subscribe(h=>{if(this.paramData=h.reportParameters,this.isTableReport()){let _=h.configurations.globalConfiguration.find(C=>C.name==="amazon-s3"),y=h.configurations.globalConfiguration.find(C=>C.name==="report-export-s3-folder-name");_&&_.enabled&&y&&y.enabled&&y.stringValue&&(this.exportToS3Allowed=!0,this.exportToS3Repository=y.stringValue)}})}isTableReport(){return this.report.type==="Table"}isPentahoReport(){return this.report.type==="Pentaho"}ngOnInit(){this.maxDate=this.settingsService.maxAllowedDate,this.createRunReportForm()}createRunReportForm(){this.paramData.forEach(i=>{if(!i.parentParameterName)this.reportForm.addControl(i.name,new _e("",bt.required)),i.displayType==="select"&&this.fetchSelectOptions(i,i.name);else{let o=this.paramData.find(n=>n.name===i.parentParameterName);o!=null&&(o.childParameters.push(i),this.updateParentParameters(o))}}),this.isPentahoReport()&&(this.reportForm.addControl("outputType",new _e("",bt.required)),this.outputTypeOptions=[{name:"PDF format",value:"PDF"},{name:"Normal format",value:"HTML"},{name:"Excel format",value:"XLS"},{name:"Excel 2007 format",value:"XLSX"},{name:"CSV format",value:"CSV"}],this.mapPentahoParams()),this.exportToS3Allowed&&this.reportForm.addControl("exportOutputToS3",new _e(!1)),this.decimalChoice.patchValue("0"),this.setChildControls()}updateParentParameters(i){let o=this.parentParameters.map(n=>n.name);if(!o.includes(i.name))this.parentParameters.push(i);else{let n=o.indexOf(i.name);this.parentParameters[n]=i}}mapPentahoParams(){this.reportsService.getPentahoParams(this.report.id).subscribe(i=>{i.forEach(o=>{let n=this.paramData.find(c=>c.name===o.parameterName);n.pentahoName=`R_${o.reportParameterName}`})})}setChildControls(){this.parentParameters.forEach(i=>{this.reportForm.get(i.name).valueChanges.subscribe(o=>{i.childParameters.forEach(n=>{if(n.displayType==="none"?this.reportForm.addControl(n.name,new _e(n.defaultVal)):this.reportForm.addControl(n.name,new _e("",bt.required)),n.displayType==="select"){let c=`${n.name}?${i.inputName}=${o.id}`;this.fetchSelectOptions(n,c)}})})})}fetchSelectOptions(i,o){this.reportsService.getSelectOptions(o).subscribe(n=>{i.selectOptions=n,i.selectAll==="Y"&&i.selectOptions.push({id:"-1",name:"All"})})}formatUserResponse(i){let o={},n;this.reportToBeExportedInRepository=!1;for(let[c,u]of Object.entries(i)){if(c==="outputType"){o["output-type"]=u;continue}else if(c==="exportOutputToS3"){this.reportToBeExportedInRepository=u;continue}let h=this.paramData.find(_=>_.name===c);switch(n=this.isPentahoReport()?h.pentahoName:h.inputName,h.displayType){case"text":o[n]=u;break;case"select":o[n]=u.id;break;case"date":this.isTableReport()?o[n]=this.dateUtils.formatDate(u,_i.DEFAULT_DATEFORMAT):o[n]=this.dateUtils.formatDate(u,this.settingsService.dateFormat),this.reportUsesDates=!0;break;case"none":o[n]=u;break}}return o}run(){this.isCollapsed=!0;let i=this.formatUserResponse(this.reportForm.value),o=ye({},i);if(this.reportUsesDates){let n=this.settingsService.dateFormat;this.isTableReport()&&(n=_i.DEFAULT_DATEFORMAT),o=oi(ye({},i),{locale:this.settingsService.language.code,dateFormat:n})}switch(this.reportToBeExportedInRepository&&(o.exportS3=!0),this.dataObject={formData:o,report:this.report,decimalChoice:this.decimalChoice.value},this.report.type){case"SMS":case"Table":this.hideTable=!1;break;case"Chart":this.hideChart=!1;break;case"Pentaho":this.hidePentaho=!1;break}}runReportAndExport(i){i.stopPropagation(),this.isProcessing=!0;let o=this.formatUserResponse(this.reportForm.value),n=this.report.name,c=oi(ye({},o),{decimalChoice:this.decimalChoice.value});this.reportsService.getRunReportData(n,c).subscribe(u=>{if(u.data.length>0){this.alertService.alert({type:"Report generation",message:`Report: ${n} data generated`});let h=[];u.columnHeaders.forEach(_=>{h.push(_.columnName)}),this.exportToXLS(n,u.data,h)}else this.alertService.alert({type:"Report generation",message:`Report: ${n} without data generated`});this.isProcessing=!1})}exportToXLS(i,o,n){return Dr(this,null,function*(){let c=`${i}.xlsx`,u=o.map(D=>{let M={};for(let F=0;F{_.addRow(n.map(M=>D[M]))});let y=yield h.xlsx.writeBuffer(),C=new Blob([y],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),E=URL.createObjectURL(C),T=document.createElement("a");T.href=E,T.download=c,document.body.appendChild(T),T.click(),setTimeout(()=>{document.body.removeChild(T),URL.revokeObjectURL(E)},0)})}static{this.\u0275fac=function(o){return new(o||e)(V(Lt),V(Ts),V(We),V(Dl),V(_i))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-run-report"]],decls:7,vars:2,consts:[["runReportDatePicker",""],[1,"container","input"],[4,"ngIf"],["class","container output",4,"ngIf"],[3,"formGroup"],[1,"form-grid"],[3,"ngSwitch",4,"ngFor","ngForOf"],[1,"form-field"],[3,"formControl"],["value","0"],["value","1"],["value","2"],["value","3"],["value","4"],["class","form-field",4,"ngIf"],["class","flex-98",4,"ngIf"],[1,"layout-row","align-between","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary","id","runreport",3,"click","disabled"],["icon","file-export",1,"m-r-10"],["mat-raised-button","","color","primary",3,"disabled","click",4,"ngIf"],[3,"ngSwitch"],["class","test",4,"ngIf"],[1,"test"],["class","form-field",4,"ngSwitchCase"],["class","form-field",3,"click",4,"ngSwitchCase"],["matInput","","required","",3,"formControlName"],[1,"form-field",3,"click"],["matInput","","required","",3,"min","max","matDatepicker","formControlName"],["matSuffix","",3,"for"],["required","",3,"formControlName"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["required","","formControlName","outputType"],[1,"flex-98"],["labelPosition","after","formControlName","exportOutputToS3"],["mat-raised-button","","color","primary",3,"click","disabled"],["icon","download",1,"m-r-10"],[1,"container","output"],[1,"m-b-20"],["mat-raised-button","","color","primary",3,"click"],[3,"dataObject",4,"ngIf"],[3,"dataObject"]],template:function(o,n){o&1&&(a(0,"div",1),t(1,` - `),x(2,TEi,54,18,"mat-card",2),t(3,` + `),x(2,IEi,54,18,"mat-card",2),t(3,` `),s(),t(4,` -`),x(5,OEi,21,6,"div",3),t(6,` -`)),o&2&&(l(2),g("ngIf",!n.isCollapsed),l(3),g("ngIf",n.isCollapsed))},dependencies:[St,se,zt,Ra,Na,wt,ge,Se,re,ue,Ie,er,fe,he,qt,oe,me,Ue,Ht,$t,Te,Si,Zt,Oe,De,Mi,Di,Ti,Dt,Ai,Et,Gt,eA,iA,nA],styles:[".input[_ngcontent-%COMP%]{max-width:37rem}.form-grid[_ngcontent-%COMP%]{display:flex;flex-direction:column}.form-field[_ngcontent-%COMP%]{width:100%}"]})}}return e})();var Pz=(()=>{class e{constructor(i){this.reportsService=i}resolve(){return this.reportsService.getReports()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ts))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var kz=(()=>{class e{constructor(i){this.reportsService=i}resolve(i){return this.reportsService.getReportParams(i.params.name)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ts))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var FEi=[uo.withShell([{path:"reports",data:{title:"Reports",breadcrumb:"Reports"},resolve:{reports:Pz},children:[{path:"",component:MC},{path:":filter",data:{routeParamBreadcrumb:"filter"},component:MC},{path:"run/:name",data:{title:"Reports",routeParamBreadcrumb:"name"},component:rA,resolve:{reportParameters:kz,configurations:yu}}]}])],ift=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e})}static{this.\u0275inj=un({providers:[Pz,kz,vx],imports:[tr.forChild(FEi),tr]})}}return e})();var nft=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e})}static{this.\u0275inj=un({providers:[eu],imports:[Yr,ift,MC,rA,eA,iA,nA]})}}return e})();var BEi=()=>[10,25,50,100],REi=()=>["CLIENT","GROUP","CENTER"];function NEi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"error.Searched query resulted more than 200 records")))}function LEi(e,r){e&1&&(a(0,"th",17),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Entity Type")))}function VEi(e,r){if(e&1&&(a(0,"td",18),t(1),s()),e&2){let i=r.$implicit;l(),b(i.entityType)}}function zEi(e,r){e&1&&(a(0,"th",17),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Entity Name")))}function jEi(e,r){if(e&1&&(a(0,"td",18),t(1),s()),e&2){let i=r.$implicit;l(),b(i.entityName)}}function qEi(e,r){e&1&&(a(0,"th",17),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Account No")))}function HEi(e,r){if(e&1&&(a(0,"td",18),t(1,` +`),x(5,AEi,21,6,"div",3),t(6,` +`)),o&2&&(l(2),g("ngIf",!n.isCollapsed),l(3),g("ngIf",n.isCollapsed))},dependencies:[St,se,zt,Ra,Na,wt,ge,Se,re,ue,Ie,er,fe,he,qt,oe,me,Ue,Ht,$t,Te,Si,Zt,Oe,De,Mi,Di,Ti,Dt,Ai,Et,Gt,eA,iA,nA],styles:[".input[_ngcontent-%COMP%]{max-width:37rem}.form-grid[_ngcontent-%COMP%]{display:flex;flex-direction:column}.form-field[_ngcontent-%COMP%]{width:100%}"]})}}return e})();var Pz=(()=>{class e{constructor(i){this.reportsService=i}resolve(){return this.reportsService.getReports()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ts))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var kz=(()=>{class e{constructor(i){this.reportsService=i}resolve(i){return this.reportsService.getReportParams(i.params.name)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ts))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var OEi=[uo.withShell([{path:"reports",data:{title:"Reports",breadcrumb:"Reports"},resolve:{reports:Pz},children:[{path:"",component:MC},{path:":filter",data:{routeParamBreadcrumb:"filter"},component:MC},{path:"run/:name",data:{title:"Reports",routeParamBreadcrumb:"name"},component:rA,resolve:{reportParameters:kz,configurations:yu}}]}])],ift=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e})}static{this.\u0275inj=un({providers:[Pz,kz,vx],imports:[tr.forChild(OEi),tr]})}}return e})();var nft=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e})}static{this.\u0275inj=un({providers:[eu],imports:[Yr,ift,MC,rA,eA,iA,nA]})}}return e})();var FEi=()=>[10,25,50,100],BEi=()=>["CLIENT","GROUP","CENTER"];function REi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"error.Searched query resulted more than 200 records")))}function NEi(e,r){e&1&&(a(0,"th",17),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Entity Type")))}function LEi(e,r){if(e&1&&(a(0,"td",18),t(1),s()),e&2){let i=r.$implicit;l(),b(i.entityType)}}function VEi(e,r){e&1&&(a(0,"th",17),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Entity Name")))}function zEi(e,r){if(e&1&&(a(0,"td",18),t(1),s()),e&2){let i=r.$implicit;l(),b(i.entityName)}}function jEi(e,r){e&1&&(a(0,"th",17),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Account No")))}function qEi(e,r){if(e&1&&(a(0,"td",18),t(1,` `),k(2,"mifosx-account-number",19),t(3,` - `),s()),e&2){let i=r.$implicit;l(2),Xt("accountNo",i.entityAccountNo)}}function GEi(e,r){e&1&&(a(0,"th",17),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.External Id")))}function UEi(e,r){if(e&1&&(a(0,"td",18),t(1,` + `),s()),e&2){let i=r.$implicit;l(2),Xt("accountNo",i.entityAccountNo)}}function HEi(e,r){e&1&&(a(0,"th",17),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.External Id")))}function GEi(e,r){if(e&1&&(a(0,"td",18),t(1,` `),k(2,"mifosx-external-identifier",20),t(3,` - `),s()),e&2){let i=r.$implicit;l(2),Xt("externalId",i.entityExternalId)}}function $Ei(e,r){e&1&&(a(0,"th",17),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Parent Type")))}function WEi(e,r){if(e&1&&(a(0,"td",18),t(1),s()),e&2){let i=r.$implicit;l(),P(` - `,ht(1,REi).includes(i.entityType)?"Office":"Client",` - `)}}function QEi(e,r){e&1&&(a(0,"th",17),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Parent Name")))}function YEi(e,r){if(e&1&&(a(0,"td",18),t(1),s()),e&2){let i=r.$implicit;l(),b(i.parentName)}}function KEi(e,r){e&1&&(a(0,"th",17),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Details")))}function JEi(e,r){if(e&1){let i=st();a(0,"td",18),t(1,` + `),s()),e&2){let i=r.$implicit;l(2),Xt("externalId",i.entityExternalId)}}function UEi(e,r){e&1&&(a(0,"th",17),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Parent Type")))}function $Ei(e,r){if(e&1&&(a(0,"td",18),t(1),s()),e&2){let i=r.$implicit;l(),P(` + `,ht(1,BEi).includes(i.entityType)?"Office":"Client",` + `)}}function WEi(e,r){e&1&&(a(0,"th",17),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Parent Name")))}function QEi(e,r){if(e&1&&(a(0,"td",18),t(1),s()),e&2){let i=r.$implicit;l(),b(i.parentName)}}function YEi(e,r){e&1&&(a(0,"th",17),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Details")))}function KEi(e,r){if(e&1){let i=st();a(0,"td",18),t(1,` `),a(2,"button",21),m(3,"translate"),q("click",function(){let n=W(i).$implicit,c=A(2);return Q(c.navigate(n))}),t(4,` `),k(5,"fa-icon",22),t(6,` `),s(),t(7,` - `),s()}e&2&&(l(2),Xt("matTooltip",d(3,1,"tooltips.View Entity")))}function ZEi(e,r){e&1&&k(0,"tr",23)}function XEi(e,r){e&1&&k(0,"tr",24)}function tPi(e,r){if(e&1&&(a(0,"mat-card",2),t(1,` - `),x(2,NEi,3,3,"mat-error",3),t(3,` + `),s()}e&2&&(l(2),Xt("matTooltip",d(3,1,"tooltips.View Entity")))}function JEi(e,r){e&1&&k(0,"tr",23)}function ZEi(e,r){e&1&&k(0,"tr",24)}function XEi(e,r){if(e&1&&(a(0,"mat-card",2),t(1,` + `),x(2,REi,3,3,"mat-error",3),t(3,` `),a(4,"table",4),t(5,` `),ot(6,5),t(7,` - `),x(8,LEi,3,3,"th",6),t(9,` - `),x(10,VEi,2,1,"td",7),t(11,` + `),x(8,NEi,3,3,"th",6),t(9,` + `),x(10,LEi,2,1,"td",7),t(11,` `),at(),t(12,` `),ot(13,8),t(14,` - `),x(15,zEi,3,3,"th",6),t(16,` - `),x(17,jEi,2,1,"td",7),t(18,` + `),x(15,VEi,3,3,"th",6),t(16,` + `),x(17,zEi,2,1,"td",7),t(18,` `),at(),t(19,` `),ot(20,9),t(21,` - `),x(22,qEi,3,3,"th",6),t(23,` - `),x(24,HEi,4,1,"td",7),t(25,` + `),x(22,jEi,3,3,"th",6),t(23,` + `),x(24,qEi,4,1,"td",7),t(25,` `),at(),t(26,` `),ot(27,10),t(28,` - `),x(29,GEi,3,3,"th",6),t(30,` - `),x(31,UEi,4,1,"td",7),t(32,` + `),x(29,HEi,3,3,"th",6),t(30,` + `),x(31,GEi,4,1,"td",7),t(32,` `),at(),t(33,` `),ot(34,11),t(35,` - `),x(36,$Ei,3,3,"th",6),t(37,` - `),x(38,WEi,2,2,"td",7),t(39,` + `),x(36,UEi,3,3,"th",6),t(37,` + `),x(38,$Ei,2,2,"td",7),t(39,` `),at(),t(40,` `),ot(41,12),t(42,` - `),x(43,QEi,3,3,"th",6),t(44,` - `),x(45,YEi,2,1,"td",7),t(46,` + `),x(43,WEi,3,3,"th",6),t(44,` + `),x(45,QEi,2,1,"td",7),t(46,` `),at(),t(47,` `),ot(48,13),t(49,` - `),x(50,KEi,3,3,"th",6),t(51,` - `),x(52,JEi,8,3,"td",7),t(53,` + `),x(50,YEi,3,3,"th",6),t(51,` + `),x(52,KEi,8,3,"td",7),t(53,` `),at(),t(54,` - `),x(55,ZEi,1,0,"tr",14),t(56,` - `),x(57,XEi,1,0,"tr",15),t(58,` + `),x(55,JEi,1,0,"tr",14),t(56,` + `),x(57,ZEi,1,0,"tr",15),t(58,` `),s(),t(59,` `),k(60,"mat-paginator",16),t(61,` - `),s()),e&2){let i=A();l(2),g("ngIf",i.overload),l(2),g("dataSource",i.dataSource),l(51),g("matHeaderRowDef",i.displayedColumns),l(2),g("matRowDefColumns",i.displayedColumns),l(3),g("pageSizeOptions",ht(5,BEi))}}function ePi(e,r){e&1&&(a(0,"mat-card",2),t(1,` + `),s()),e&2){let i=A();l(2),g("ngIf",i.overload),l(2),g("dataSource",i.dataSource),l(51),g("matHeaderRowDef",i.displayedColumns),l(2),g("matRowDefColumns",i.displayedColumns),l(3),g("pageSizeOptions",ht(5,FEi))}}function tPi(e,r){e&1&&(a(0,"mat-card",2),t(1,` `),a(2,"div",25),t(3,` `),a(4,"div",26),t(5,` `),k(6,"i",27),t(7),m(8,"translate"),s(),t(9,` @@ -41586,64 +41586,64 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),s()),e&2&&(l(7),P(` `,d(8,1,"labels.text.No data found"),` `))}var oA=(()=>{class e{constructor(i,o){this.route=i,this.router=o,this.displayedColumns=["entityType","entityName","entityAccount","externalId","parentType","parentName","details"],this.hasResults=!1,this.route.data.subscribe(n=>{this.dataSource=new ci(n.searchResults),this.dataSource.paginator=this.paginator,this.hasResults=n.searchResults.length>0,this.overload=n.searchResults.length>200,this.overload&&(this.dataSource=new ci(n.searchResults.slice(0,200)))})}navigate(i){switch(i.entityType){case"CLIENT":this.router.navigate(["clients",i.entityId,"general"]);break;case"CLIENTIDENTIFIER":this.router.navigate(["clients",i.parentId,"general"]);break;case"CENTER":this.router.navigate(["centers",i.entityId]);break;case"GROUP":this.router.navigate(["groups",i.entityId]);break;case"SHARE":this.router.navigate(["clients",i.parentId,"shares-accounts",i.entityId]);break;case"SAVING":i.subEntityType==="depositAccountType.recurringDeposit"?this.router.navigate(["clients",i.parentId,"recurring-deposits-accounts",i.entityId,"transactions"]):i.subEntityType==="depositAccountType.fixedDeposit"?this.router.navigate(["clients",i.parentId,"fixed-deposits-accounts",i.entityId,"transactions"]):i.subEntityType==="depositAccountType.savingsDeposit"&&this.router.navigate(["clients",i.parentId,"savings-accounts",i.entityId,"transactions"]);break;case"LOAN":this.router.navigate(["clients",i.parentId,"loans-accounts",i.entityId,"general"]);break}}static{this.\u0275fac=function(o){return new(o||e)(V(Lt),V(te))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-search-page"]],viewQuery:function(o,n){if(o&1&&Nt(Je,7),o&2){let c;Bt(c=Rt())&&(n.paginator=c.first)}},decls:7,vars:2,consts:[[1,"container"],["class","layout-column gap-2percent",4,"ngIf"],[1,"layout-column","gap-2percent"],[4,"ngIf"],["mat-table","",3,"dataSource"],["matColumnDef","entityType"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","class","view-details",4,"matCellDef"],["matColumnDef","entityName"],["matColumnDef","entityAccount"],["matColumnDef","externalId"],["matColumnDef","parentType"],["matColumnDef","parentName"],["matColumnDef","details"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell",""],["mat-cell","",1,"view-details"],["display","left",3,"accountNo"],[3,"externalId"],["mat-icon-button","","matTooltipPosition","right",3,"click","matTooltip"],["icon","eye","size","lg"],["mat-header-row",""],["mat-row",""],[1,"alert"],[1,"message"],[1,"fa","fa-exclamation-circle","alert-check"]],template:function(o,n){o&1&&(a(0,"div",0),t(1,` - `),x(2,tPi,62,6,"mat-card",1),t(3,` + `),x(2,XEi,62,6,"mat-card",1),t(3,` - `),x(4,ePi,11,3,"mat-card",1),t(5,` + `),x(4,tPi,11,3,"mat-card",1),t(5,` `),s(),t(6,` -`)),o&2&&(l(2),g("ngIf",n.hasResults),l(2),g("ngIf",!n.hasResults))},dependencies:[St,zt,wt,oe,Te,Et,Fe,Ne,Re,Le,Be,Ve,t0,La,Hi,Pi,Gt,ze,qe,je,He,Je],encapsulation:2})}}return e})();var rft=(()=>{class e{constructor(i){this.http=i}getSearchResults(i,o){let n=new Hn().set("exactMatch","false").set("query",i).set("resource",o);return this.http.get("/search",{params:n})}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ro))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Iz=(()=>{class e{constructor(i){this.searchService=i}resolve(i){let o=i.queryParams.query,n=i.queryParams.resource;return this.searchService.getSearchResults(o,n)}static{this.\u0275fac=function(o){return new(o||e)(Qt(rft))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var nPi=[uo.withShell([{path:"search",component:oA,data:{title:"Search",breadcrumb:"Search"},runGuardsAndResolvers:"paramsOrQueryParamsChange",resolve:{searchResults:Iz}}])],oft=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e})}static{this.\u0275inj=un({providers:[Iz],imports:[tr.forChild(nPi),tr]})}}return e})();var aft=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e})}static{this.\u0275inj=un({imports:[Yr,ya,oft,oA]})}}return e})();var rPi=()=>[10,25,50,100],oPi=(e,r)=>[e,r];function aPi(e,r){e&1&&(a(0,"th",11),t(1),m(2,"translate"),s()),e&2&&(l(),P(` +`)),o&2&&(l(2),g("ngIf",n.hasResults),l(2),g("ngIf",!n.hasResults))},dependencies:[St,zt,wt,oe,Te,Et,Fe,Ne,Re,Le,Be,Ve,t0,La,Hi,Pi,Gt,ze,qe,je,He,Je],encapsulation:2})}}return e})();var rft=(()=>{class e{constructor(i){this.http=i}getSearchResults(i,o){let n=new Hn().set("exactMatch","false").set("query",i).set("resource",o);return this.http.get("/search",{params:n})}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ro))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Iz=(()=>{class e{constructor(i){this.searchService=i}resolve(i){let o=i.queryParams.query,n=i.queryParams.resource;return this.searchService.getSearchResults(o,n)}static{this.\u0275fac=function(o){return new(o||e)(Qt(rft))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var iPi=[uo.withShell([{path:"search",component:oA,data:{title:"Search",breadcrumb:"Search"},runGuardsAndResolvers:"paramsOrQueryParamsChange",resolve:{searchResults:Iz}}])],oft=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e})}static{this.\u0275inj=un({providers:[Iz],imports:[tr.forChild(iPi),tr]})}}return e})();var aft=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e})}static{this.\u0275inj=un({imports:[Yr,ya,oft,oA]})}}return e})();var nPi=()=>[10,25,50,100],rPi=(e,r)=>[e,r];function oPi(e,r){e&1&&(a(0,"th",11),t(1),m(2,"translate"),s()),e&2&&(l(),P(` `,d(2,1,"labels.inputs.Notification"),` - `))}function sPi(e,r){if(e&1&&(a(0,"td",12),t(1),s()),e&2){let i=r.$implicit;l(),P(` + `))}function aPi(e,r){if(e&1&&(a(0,"td",12),t(1),s()),e&2){let i=r.$implicit;l(),P(` `,i.content,` - `)}}function lPi(e,r){e&1&&(a(0,"th",11),t(1),m(2,"translate"),s()),e&2&&(l(),P(` + `)}}function sPi(e,r){e&1&&(a(0,"th",11),t(1),m(2,"translate"),s()),e&2&&(l(),P(` `,d(2,1,"labels.inputs.Created At"),` - `))}function cPi(e,r){if(e&1&&(a(0,"td",12),t(1),s()),e&2){let i=r.$implicit;l(),P(` + `))}function lPi(e,r){if(e&1&&(a(0,"td",12),t(1),s()),e&2){let i=r.$implicit;l(),P(` `,i.createdAt,` - `)}}function pPi(e,r){e&1&&k(0,"tr",13)}function mPi(e,r){if(e&1&&k(0,"tr",14),e&2){let i=r.$implicit,o=A();g("routerLink",vs(1,oPi,o.routeMap[i.objectType],i.objectId))}}function dPi(e,r){if(e&1&&(a(0,"tr"),t(1,` + `)}}function cPi(e,r){e&1&&k(0,"tr",13)}function pPi(e,r){if(e&1&&k(0,"tr",14),e&2){let i=r.$implicit,o=A();g("routerLink",vs(1,rPi,o.routeMap[i.objectType],i.objectId))}}function mPi(e,r){if(e&1&&(a(0,"tr"),t(1,` `),a(2,"td"),t(3,"You don't have any notifications"),s(),t(4,` `),s()),e&2){let i=A();l(2),kr("colspan",i.displayedColumns.length)}}var aA=(()=>{class e{constructor(i){this.route=i,this.displayedColumns=["notification","createdAt"],this.routeMap={client:"/clients/",group:"/groups/",loan:"/loans-accounts/",center:"/centers/",shareAccount:"/shares-accounts/",fixedDeposit:"/fixed-deposits-accounts/",recurringDepositAccount:"/recurring-deposits-accounts/",savingsAccount:"/savings-accounts/",shareProduct:"/products/share-products/",loanProduct:"/products/loan-products/"},this.route.data.subscribe(o=>{this.notificationsData=o.notifications.pageItems})}ngOnInit(){this.setNotifications()}setNotifications(){this.dataSource=new ci(this.notificationsData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}static{this.\u0275fac=function(o){return new(o||e)(V(Lt))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-notifications-page"]],viewQuery:function(o,n){if(o&1&&(Nt(Je,7),Nt($e,7)),o&2){let c;Bt(c=Rt())&&(n.paginator=c.first),Bt(c=Rt())&&(n.sort=c.first)}},decls:31,vars:5,consts:[[1,"container"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","notification"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","createdAt"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],[4,"matNoDataRow"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(o,n){o&1&&(a(0,"div",0),t(1,` `),a(2,"div",1),t(3,` `),a(4,"table",2),t(5,` `),ot(6,3),t(7,` - `),x(8,aPi,3,3,"th",4),t(9,` - `),x(10,sPi,2,1,"td",5),t(11,` + `),x(8,oPi,3,3,"th",4),t(9,` + `),x(10,aPi,2,1,"td",5),t(11,` `),at(),t(12,` `),ot(13,6),t(14,` - `),x(15,lPi,3,3,"th",4),t(16,` - `),x(17,cPi,2,1,"td",5),t(18,` + `),x(15,sPi,3,3,"th",4),t(16,` + `),x(17,lPi,2,1,"td",5),t(18,` `),at(),t(19,` - `),x(20,pPi,1,0,"tr",7),t(21,` - `),x(22,mPi,1,4,"tr",8),t(23,` - `),x(24,dPi,5,1,"tr",9),t(25,` + `),x(20,cPi,1,0,"tr",7),t(21,` + `),x(22,pPi,1,4,"tr",8),t(23,` + `),x(24,mPi,5,1,"tr",9),t(25,` `),s(),t(26,` `),k(27,"mat-paginator",10),t(28,` `),s(),t(29,` `),s(),t(30,` -`)),o&2&&(l(4),g("dataSource",n.dataSource),l(16),g("matHeaderRowDef",n.displayedColumns),l(2),g("matRowDefColumns",n.displayedColumns),l(5),g("pageSizeOptions",ht(4,rPi)))},dependencies:[St,wt,qt,Et,Fe,$e,Ne,Re,Le,wi,Be,Ve,ze,qe,je,He,iW,Je],styles:[".select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var Tz=(()=>{class e{constructor(i){this.notificationsService=i}resolve(){return this.notificationsService.getNotifications(!0,50)}static{this.\u0275fac=function(o){return new(o||e)(Qt(G$))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var uPi=[uo.withShell([{path:"notifications",component:aA,data:{title:"Notifications",breadcrumb:"Notifications"},resolve:{notifications:Tz}}])],sft=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e})}static{this.\u0275inj=un({providers:[Tz],imports:[tr.forChild(uPi),tr]})}}return e})();var lft=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e})}static{this.\u0275inj=un({imports:[Yr,ya,sft,aA]})}}return e})();var sA=(()=>{class e{constructor(i){this.http=i}retrieveCollectionSheetData(i){let o=new Hn().set("command","generateCollectionSheet");return this.http.post("/collectionsheet",i,{params:o})}generateCollectionSheetData(i,o){let n=new Hn().set("command","generateCollectionSheet");return this.http.post(`/centers/${i}`,o,{params:n})}executeSaveCollectionSheet(i){let o=new Hn().set("command","saveCollectionSheet");return this.http.post("/collectionsheet",i,{params:o})}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ro))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var pft=()=>["../"],mft=()=>[10,25,50,100];function fPi(e,r){e&1&&(a(0,"div",19),t(1,` +`)),o&2&&(l(4),g("dataSource",n.dataSource),l(16),g("matHeaderRowDef",n.displayedColumns),l(2),g("matRowDefColumns",n.displayedColumns),l(5),g("pageSizeOptions",ht(4,nPi)))},dependencies:[St,wt,qt,Et,Fe,$e,Ne,Re,Le,wi,Be,Ve,ze,qe,je,He,iW,Je],styles:[".select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var Tz=(()=>{class e{constructor(i){this.notificationsService=i}resolve(){return this.notificationsService.getNotifications(!0,50)}static{this.\u0275fac=function(o){return new(o||e)(Qt(G$))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var dPi=[uo.withShell([{path:"notifications",component:aA,data:{title:"Notifications",breadcrumb:"Notifications"},resolve:{notifications:Tz}}])],sft=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e})}static{this.\u0275inj=un({providers:[Tz],imports:[tr.forChild(dPi),tr]})}}return e})();var lft=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e})}static{this.\u0275inj=un({imports:[Yr,ya,sft,aA]})}}return e})();var sA=(()=>{class e{constructor(i){this.http=i}retrieveCollectionSheetData(i){let o=new Hn().set("command","generateCollectionSheet");return this.http.post("/collectionsheet",i,{params:o})}generateCollectionSheetData(i,o){let n=new Hn().set("command","generateCollectionSheet");return this.http.post(`/centers/${i}`,o,{params:n})}executeSaveCollectionSheet(i){let o=new Hn().set("command","saveCollectionSheet");return this.http.post("/collectionsheet",i,{params:o})}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ro))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var pft=()=>["../"],mft=()=>[10,25,50,100];function uPi(e,r){e&1&&(a(0,"div",19),t(1,` `),a(2,"div",20),t(3,` `),k(4,"i",21),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(5),P(` `,d(6,1,"labels.text.No repayments and disbursal"),` - `))}function hPi(e,r){if(e&1&&(a(0,"mat-option",22),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` + `))}function fPi(e,r){if(e&1&&(a(0,"mat-option",22),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` `,i.name,` - `)}}function gPi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `)}}function hPi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.Branch Office")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function xPi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `),l(4),b(d(6,7,"labels.commons.required")))}function gPi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.Repayment Date")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function _Pi(e,r){if(e&1&&(a(0,"mat-option",22),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` + `),l(4),b(d(6,7,"labels.commons.required")))}function xPi(e,r){if(e&1&&(a(0,"mat-option",22),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` `,i.displayName,` - `)}}function vPi(e,r){if(e&1){let i=st();a(0,"mat-card",3),t(1,` - `),x(2,fPi,8,3,"div",4),t(3,` + `)}}function _Pi(e,r){if(e&1){let i=st();a(0,"mat-card",3),t(1,` + `),x(2,uPi,8,3,"div",4),t(3,` `),a(4,"form",5),q("ngSubmit",function(){W(i);let n=A();return Q(n.previewCollectionSheet())}),t(5,` `),a(6,"div",6),t(7,` `),a(8,"mat-form-field",7),t(9,` `),a(10,"mat-label"),t(11),m(12,"translate"),s(),t(13,` `),a(14,"mat-select",8),t(15,` - `),x(16,hPi,2,2,"mat-option",9),t(17,` + `),x(16,fPi,2,2,"mat-option",9),t(17,` `),s(),t(18,` - `),x(19,gPi,8,9,"mat-error",10),t(20,` + `),x(19,hPi,8,9,"mat-error",10),t(20,` `),s(),t(21,` `),a(22,"mat-form-field",11),q("click",function(){W(i);let n=Mt(33);return Q(n.open())}),t(23,` @@ -41651,13 +41651,13 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),k(28,"input",12),t(29,` `),k(30,"mat-datepicker-toggle",13),t(31,` `),k(32,"mat-datepicker",null,0),t(34,` - `),x(35,xPi,8,9,"mat-error",10),t(36,` + `),x(35,gPi,8,9,"mat-error",10),t(36,` `),s(),t(37,` `),a(38,"mat-form-field",7),t(39,` `),a(40,"mat-label"),t(41),m(42,"translate"),s(),t(43,` `),a(44,"mat-select",14),t(45,` - `),x(46,_Pi,2,2,"mat-option",9),t(47,` + `),x(46,xPi,2,2,"mat-option",9),t(47,` `),s(),t(48,` `),s(),t(49,` `),s(),t(50,` @@ -41669,103 +41669,103 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),s(),t(63,` `),s(),t(64,` `),s()}if(e&2){let i=Mt(33),o=A();l(2),g("ngIf",o.noData),l(2),g("formGroup",o.collectionSheetForm),l(7),b(d(12,17,"labels.inputs.Branch Office")),l(5),g("ngForOf",o.officesData),l(3),g("ngIf",o.collectionSheetForm.controls.officeId.hasError("required")),l(6),b(d(26,19,"labels.inputs.Repayment Date")),l(3),g("min",o.minDate)("max",o.maxDate)("matDatepicker",i),l(2),g("for",i),l(5),g("ngIf",o.collectionSheetForm.controls.transactionDate.hasError("required")),l(6),b(d(42,21,"labels.inputs.Staff")),l(5),g("ngForOf",o.loanOfficerData),l(7),g("routerLink",ht(27,pft)),l(),b(d(55,23,"labels.buttons.Cancel")),l(3),g("disabled",!o.collectionSheetForm.valid),l(3),P(" ",d(61,25,"labels.buttons.Collection Sheet"),` - `)}}function bPi(e,r){e&1&&(a(0,"th",38),t(1),m(2,"translate"),s()),e&2&&(l(),P("",d(2,1,"labels.inputs.Loan Account")," #"))}function CPi(e,r){if(e&1&&(a(0,"td",39),t(1),s()),e&2){let i=r.$implicit;l(),b(i.accountId)}}function yPi(e,r){e&1&&(a(0,"th",38),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Product Name")))}function SPi(e,r){if(e&1&&(a(0,"td",39),t(1),s()),e&2){let i=r.$implicit;l(),_t("",i.productShortName,"(",i.productId,")")}}function wPi(e,r){e&1&&(a(0,"th",38),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Client Name")))}function EPi(e,r){if(e&1&&(a(0,"td",39),t(1),s()),e&2){let i=r.$implicit;l(),_t("",i.clientName,"(",i.clientId,")")}}function PPi(e,r){e&1&&(a(0,"th",38),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Total Due")))}function kPi(e,r){if(e&1&&(a(0,"td",39),t(1),s()),e&2){let i=r.$implicit;l(),b(i.totalDue)}}function IPi(e,r){e&1&&(a(0,"th",38),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Charges")))}function TPi(e,r){if(e&1&&(a(0,"td",39),t(1),s()),e&2){let i=r.$implicit;l(),b(i.feeDue)}}function MPi(e,r){e&1&&(a(0,"th",38),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Actions")))}function DPi(e,r){if(e&1){let i=st();a(0,"td",39),t(1,` + `)}}function vPi(e,r){e&1&&(a(0,"th",38),t(1),m(2,"translate"),s()),e&2&&(l(),P("",d(2,1,"labels.inputs.Loan Account")," #"))}function bPi(e,r){if(e&1&&(a(0,"td",39),t(1),s()),e&2){let i=r.$implicit;l(),b(i.accountId)}}function CPi(e,r){e&1&&(a(0,"th",38),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Product Name")))}function yPi(e,r){if(e&1&&(a(0,"td",39),t(1),s()),e&2){let i=r.$implicit;l(),_t("",i.productShortName,"(",i.productId,")")}}function SPi(e,r){e&1&&(a(0,"th",38),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Client Name")))}function wPi(e,r){if(e&1&&(a(0,"td",39),t(1),s()),e&2){let i=r.$implicit;l(),_t("",i.clientName,"(",i.clientId,")")}}function EPi(e,r){e&1&&(a(0,"th",38),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Total Due")))}function PPi(e,r){if(e&1&&(a(0,"td",39),t(1),s()),e&2){let i=r.$implicit;l(),b(i.totalDue)}}function kPi(e,r){e&1&&(a(0,"th",38),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Charges")))}function IPi(e,r){if(e&1&&(a(0,"td",39),t(1),s()),e&2){let i=r.$implicit;l(),b(i.feeDue)}}function TPi(e,r){e&1&&(a(0,"th",38),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Actions")))}function MPi(e,r){if(e&1){let i=st();a(0,"td",39),t(1,` `),a(2,"button",24),q("click",function(){let n=W(i),c=n.$implicit,u=n.index,h=A(3);return Q(h.showAndStorePaymentDetails("loans/accounts",c,u))}),t(3),m(4,"translate"),s(),t(5,` `),s()}e&2&&(l(3),P(` `,d(4,1,"labels.buttons.Add Payment"),` - `))}function APi(e,r){e&1&&k(0,"tr",40)}function OPi(e,r){e&1&&k(0,"tr",41)}function FPi(e,r){if(e&1&&(ot(0),t(1,` + `))}function DPi(e,r){e&1&&k(0,"tr",40)}function APi(e,r){e&1&&k(0,"tr",41)}function OPi(e,r){if(e&1&&(ot(0),t(1,` `),a(2,"h2",25),t(3),m(4,"translate"),s(),t(5,` `),a(6,"table",26),t(7,` `),ot(8,27),t(9,` - `),x(10,bPi,3,3,"th",28),t(11,` - `),x(12,CPi,2,1,"td",29),t(13,` + `),x(10,vPi,3,3,"th",28),t(11,` + `),x(12,bPi,2,1,"td",29),t(13,` `),at(),t(14,` `),ot(15,30),t(16,` - `),x(17,yPi,3,3,"th",28),t(18,` - `),x(19,SPi,2,2,"td",29),t(20,` + `),x(17,CPi,3,3,"th",28),t(18,` + `),x(19,yPi,2,2,"td",29),t(20,` `),at(),t(21,` `),ot(22,31),t(23,` - `),x(24,wPi,3,3,"th",28),t(25,` - `),x(26,EPi,2,2,"td",29),t(27,` + `),x(24,SPi,3,3,"th",28),t(25,` + `),x(26,wPi,2,2,"td",29),t(27,` `),at(),t(28,` `),ot(29,32),t(30,` - `),x(31,PPi,3,3,"th",28),t(32,` - `),x(33,kPi,2,1,"td",29),t(34,` + `),x(31,EPi,3,3,"th",28),t(32,` + `),x(33,PPi,2,1,"td",29),t(34,` `),at(),t(35,` `),ot(36,33),t(37,` - `),x(38,IPi,3,3,"th",28),t(39,` - `),x(40,TPi,2,1,"td",29),t(41,` + `),x(38,kPi,3,3,"th",28),t(39,` + `),x(40,IPi,2,1,"td",29),t(41,` `),at(),t(42,` `),ot(43,34),t(44,` - `),x(45,MPi,3,3,"th",28),t(46,` - `),x(47,DPi,6,3,"td",29),t(48,` + `),x(45,TPi,3,3,"th",28),t(46,` + `),x(47,MPi,6,3,"td",29),t(48,` `),at(),t(49,` - `),x(50,APi,1,0,"tr",35),t(51,` - `),x(52,OPi,1,0,"tr",36),t(53,` + `),x(50,DPi,1,0,"tr",35),t(51,` + `),x(52,APi,1,0,"tr",36),t(53,` `),s(),t(54,` `),k(55,"mat-paginator",37),t(56,` - `),at()),e&2){let i=A(2);l(3),b(d(4,5,"labels.heading.Due Collections")),l(3),g("dataSource",i.loansDataSource),l(44),g("matHeaderRowDef",i.loansDisplayedColumns),l(2),g("matRowDefColumns",i.loansDisplayedColumns),l(3),g("pageSizeOptions",ht(7,mft))}}function BPi(e,r){e&1&&(a(0,"th",38),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Deposit Account")))}function RPi(e,r){if(e&1&&(a(0,"td",39),t(1),s()),e&2){let i=r.$implicit;l(),b(i.depositAccountType)}}function NPi(e,r){e&1&&(a(0,"th",38),t(1),m(2,"translate"),s()),e&2&&(l(),P(` + `),at()),e&2){let i=A(2);l(3),b(d(4,5,"labels.heading.Due Collections")),l(3),g("dataSource",i.loansDataSource),l(44),g("matHeaderRowDef",i.loansDisplayedColumns),l(2),g("matRowDefColumns",i.loansDisplayedColumns),l(3),g("pageSizeOptions",ht(7,mft))}}function FPi(e,r){e&1&&(a(0,"th",38),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Deposit Account")))}function BPi(e,r){if(e&1&&(a(0,"td",39),t(1),s()),e&2){let i=r.$implicit;l(),b(i.depositAccountType)}}function RPi(e,r){e&1&&(a(0,"th",38),t(1),m(2,"translate"),s()),e&2&&(l(),P(` `,d(2,1,"labels.inputs.Savings Account"),` # - `))}function LPi(e,r){if(e&1&&(a(0,"td",39),t(1),s()),e&2){let i=r.$implicit;l(),b(i.accountId)}}function VPi(e,r){e&1&&(a(0,"th",38),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Product Name")))}function zPi(e,r){if(e&1&&(a(0,"td",39),t(1),s()),e&2){let i=r.$implicit;l(),_t("",i.productName,"(",i.productId,")")}}function jPi(e,r){e&1&&(a(0,"th",38),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Client Name")))}function qPi(e,r){if(e&1&&(a(0,"td",39),t(1),s()),e&2){let i=r.$implicit;l(),_t("",i.clientName,"(",i.clientId,")")}}function HPi(e,r){e&1&&(a(0,"th",38),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Total Due")))}function GPi(e,r){if(e&1&&(a(0,"td",39),t(1),s()),e&2){let i=r.$implicit;l(),b(i.dueAmount)}}function UPi(e,r){e&1&&(a(0,"th",38),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Actions")))}function $Pi(e,r){if(e&1){let i=st();a(0,"td",39),t(1,` + `))}function NPi(e,r){if(e&1&&(a(0,"td",39),t(1),s()),e&2){let i=r.$implicit;l(),b(i.accountId)}}function LPi(e,r){e&1&&(a(0,"th",38),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Product Name")))}function VPi(e,r){if(e&1&&(a(0,"td",39),t(1),s()),e&2){let i=r.$implicit;l(),_t("",i.productName,"(",i.productId,")")}}function zPi(e,r){e&1&&(a(0,"th",38),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Client Name")))}function jPi(e,r){if(e&1&&(a(0,"td",39),t(1),s()),e&2){let i=r.$implicit;l(),_t("",i.clientName,"(",i.clientId,")")}}function qPi(e,r){e&1&&(a(0,"th",38),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Total Due")))}function HPi(e,r){if(e&1&&(a(0,"td",39),t(1),s()),e&2){let i=r.$implicit;l(),b(i.dueAmount)}}function GPi(e,r){e&1&&(a(0,"th",38),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Actions")))}function UPi(e,r){if(e&1){let i=st();a(0,"td",39),t(1,` `),a(2,"button",24),q("click",function(){let n=W(i),c=n.$implicit,u=n.index,h=A(3);return Q(h.showAndStorePaymentDetails("savings",c,u))}),t(3),m(4,"translate"),s(),t(5,` `),s()}e&2&&(l(3),P(` `,d(4,1,"labels.buttons.Add Payment"),` - `))}function WPi(e,r){e&1&&k(0,"tr",40)}function QPi(e,r){e&1&&k(0,"tr",41)}function YPi(e,r){if(e&1&&(ot(0),t(1,` + `))}function $Pi(e,r){e&1&&k(0,"tr",40)}function WPi(e,r){e&1&&k(0,"tr",41)}function QPi(e,r){if(e&1&&(ot(0),t(1,` `),a(2,"h2",25),t(3),m(4,"translate"),s(),t(5,` `),a(6,"table",26),t(7,` `),ot(8,42),t(9,` - `),x(10,BPi,3,3,"th",28),t(11,` - `),x(12,RPi,2,1,"td",29),t(13,` + `),x(10,FPi,3,3,"th",28),t(11,` + `),x(12,BPi,2,1,"td",29),t(13,` `),at(),t(14,` `),ot(15,43),t(16,` - `),x(17,NPi,3,3,"th",28),t(18,` - `),x(19,LPi,2,1,"td",29),t(20,` + `),x(17,RPi,3,3,"th",28),t(18,` + `),x(19,NPi,2,1,"td",29),t(20,` `),at(),t(21,` `),ot(22,30),t(23,` - `),x(24,VPi,3,3,"th",28),t(25,` - `),x(26,zPi,2,2,"td",29),t(27,` + `),x(24,LPi,3,3,"th",28),t(25,` + `),x(26,VPi,2,2,"td",29),t(27,` `),at(),t(28,` `),ot(29,31),t(30,` - `),x(31,jPi,3,3,"th",28),t(32,` - `),x(33,qPi,2,2,"td",29),t(34,` + `),x(31,zPi,3,3,"th",28),t(32,` + `),x(33,jPi,2,2,"td",29),t(34,` `),at(),t(35,` `),ot(36,32),t(37,` - `),x(38,HPi,3,3,"th",28),t(39,` - `),x(40,GPi,2,1,"td",29),t(41,` + `),x(38,qPi,3,3,"th",28),t(39,` + `),x(40,HPi,2,1,"td",29),t(41,` `),at(),t(42,` `),ot(43,34),t(44,` - `),x(45,UPi,3,3,"th",28),t(46,` - `),x(47,$Pi,6,3,"td",29),t(48,` + `),x(45,GPi,3,3,"th",28),t(46,` + `),x(47,UPi,6,3,"td",29),t(48,` `),at(),t(49,` - `),x(50,WPi,1,0,"tr",35),t(51,` - `),x(52,QPi,1,0,"tr",36),t(53,` + `),x(50,$Pi,1,0,"tr",35),t(51,` + `),x(52,WPi,1,0,"tr",36),t(53,` `),s(),t(54,` `),k(55,"mat-paginator",37),t(56,` - `),at()),e&2){let i=A(2);l(3),b(d(4,5,"labels.inputs.Due Savings Collections")),l(3),g("dataSource",i.savingsDataSource),l(44),g("matHeaderRowDef",i.savingsDisplayedColumns),l(2),g("matRowDefColumns",i.savingsDisplayedColumns),l(3),g("pageSizeOptions",ht(7,mft))}}function KPi(e,r){if(e&1){let i=st();a(0,"div",3),t(1,` + `),at()),e&2){let i=A(2);l(3),b(d(4,5,"labels.inputs.Due Savings Collections")),l(3),g("dataSource",i.savingsDataSource),l(44),g("matHeaderRowDef",i.savingsDisplayedColumns),l(2),g("matRowDefColumns",i.savingsDisplayedColumns),l(3),g("pageSizeOptions",ht(7,mft))}}function YPi(e,r){if(e&1){let i=st();a(0,"div",3),t(1,` `),a(2,"mat-card"),t(3,` `),a(4,"div",23),t(5,` `),a(6,"button",24),q("click",function(){W(i);let n=A();return Q(n.isCollapsed=!1)}),t(7),m(8,"translate"),s(),t(9,` `),s(),t(10,` - `),x(11,FPi,57,8,"ng-container",10),t(12,` + `),x(11,OPi,57,8,"ng-container",10),t(12,` - `),x(13,YPi,57,8,"ng-container",10),t(14,` + `),x(13,QPi,57,8,"ng-container",10),t(14,` `),a(15,"mat-card-actions",15),t(16,` `),a(17,"button",16),t(18),m(19,"translate"),s(),t(20,` @@ -41776,45 +41776,45 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `,d(8,6,"labels.buttons.Parameters"),` `),l(4),g("ngIf",i.loansDataSource),l(2),g("ngIf",i.savingsDataSource),l(4),g("routerLink",ht(12,pft)),l(),P(` `,d(19,8,"labels.buttons.Cancel"),` - `),l(4),b(d(23,10,"labels.buttons.Submit"))}}var lA=(()=>{class e{constructor(i,o,n,c,u,h,_,y){this.formBuilder=i,this.collectionsService=o,this.organizationService=n,this.route=c,this.dateUtils=u,this.dialog=h,this.router=_,this.settingsService=y,this.loanOfficerData=[],this.loansData=[],this.savingsData=[],this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.isCollapsed=!1,this.bulkDisbursementTransactionsData={},this.bulkRepaymentTransactions=[],this.bulkSavingsDueTransactions=[],this.noData=!1,this.loansDisplayedColumns=["loanAccount","productName","clientName","totalDue","charges","actions"],this.savingsDisplayedColumns=["depositAccount","savingsAccountNo","productName","clientName","totalDue","actions"],this.route.data.subscribe(C=>{this.officesData=C.officesData})}ngOnInit(){this.maxDate=this.settingsService.businessDate,localStorage.getItem("Success")&&(localStorage.removeItem("Success"),this.Success=!0,setTimeout(()=>{this.Success=!1},3e3)),this.createCollectionSheetForm(),this.buildDependencies()}createCollectionSheetForm(){this.collectionSheetForm=this.formBuilder.group({officeId:["",bt.required],transactionDate:[new Date,bt.required],staffId:[""]})}buildDependencies(){this.collectionSheetForm.get("officeId").valueChanges.subscribe(i=>{this.organizationService.getStaffs(i).subscribe(o=>{this.loanOfficerData=o})})}organizeData(i){i.clients.forEach(o=>{o.loans&&o.loans.forEach(n=>{let c=oi(ye({},n),{clientName:o.clientName,clientId:o.clientId});this.loansData.push(c)}),o.savings&&o.savings.forEach(n=>{let c=oi(ye({},n),{clientName:o.clientName,clientId:o.clientId});this.savingsData.push(c)})}),this.loansData.length>0&&(this.loansDataSource=new ci(this.loansData),this.loansDataSource.paginator=this.paginator,this.loansDataSource.sort=this.sort),this.savingsData.length>0&&(this.savingsDataSource=new ci(this.savingsData),this.savingsDataSource.paginator=this.paginator,this.savingsDataSource.sort=this.sort)}getLoanTotalDueAmount(i){let o=i.totalDue,n=i.chargesDue;return isNaN(o)&&(o=0),isNaN(n)&&(n=0),Math.ceil((Number(o)+Number(n))*100)/100}showAndStorePaymentDetails(i,o,n){let c=[new hn({controlName:"paymentTypeId",label:"Payment Type",options:{label:"name",value:"id",data:this.collectionSheetData.paymentTypeOptions},required:!1}),new Xn({controlName:"accountNumber",label:"Account #",type:"number",required:!1}),new Xn({controlName:"checkNumber",label:"Cheque #",type:"number",required:!1}),new Xn({controlName:"routingCode",label:"Routing Code",type:"text",required:!1}),new Xn({controlName:"receiptNumber",label:"Receipt #",type:"number",required:!1}),new Xn({controlName:"bankNumber",label:"Bank #",type:"number",required:!1})],u={title:`Payment for ${i==="loans"?"Loan":"Saving"} Id ${i==="loans"?o.loanId:o.savingsId}`,layout:{addButtonText:"Confirm"},formfields:c};this.dialog.open(Fn,{data:u}).afterClosed().subscribe(_=>{if(_.data)if(i==="loans"){let y=this.getLoanTotalDueAmount(o),C={loanId:o.loanId,transactionAmount:y};_.data.value.paymentTypeId!==""&&(C.paymentTypeId=_.data.value.paymentTypeId,C.accountNumber=_.data.value.accountNumber,C.checkNumber=_.data.value.checkNumber,C.routingCode=_.data.value.routingCode,C.receiptNumber=_.data.value.receiptNumber,C.bankNumber=_.data.value.bankNumber),this.bulkRepaymentTransactions.push(C)}else{let y=o.dueAmount;isNaN(y)&&(y=0);let C={savingsId:o.savingsId,transactionAmount:y,depositAccountType:o.depositAccountType==="Saving Deposit"?100:o.depositAccountType==="Recurring Deposit"?300:400};_.data.paymentTypeId!==""&&(C.paymentTypeId=_.data.paymentTypeId,C.accountNumber=_.data.accountNumber,C.checkNumber=_.data.checkNumber,C.routingCode=_.data.routingCode,C.receiptNumber=_.data.receiptNumber,C.bankNumber=_.data.bankNumber),C.transactionAmount>0&&this.bulkSavingsDueTransactions.push(C)}})}previewCollectionSheet(){let i=this.settingsService.language.code,o=this.settingsService.dateFormat,n=oi(ye({},this.collectionSheetForm.value),{transactionDate:this.dateUtils.formatDate(this.collectionSheetForm.value.transactionDate,o),dateFormat:o,locale:i});n.staffId===""&&delete n.staffId,this.collectionsService.retrieveCollectionSheetData(n).subscribe(c=>{c.clients.length>0?(this.collectionSheetData=c,this.organizeData(c),this.isCollapsed=!0):(this.noData=!0,setTimeout(()=>{this.noData=!1},3e3))})}submit(){let i=this.settingsService.language.code,o=this.settingsService.dateFormat;this.bulkDisbursementTransactionsData.bulkRepaymentTransactions=this.bulkRepaymentTransactions,this.bulkDisbursementTransactionsData.bulkSavingsDueTransactions=this.bulkSavingsDueTransactions;let n={dateFormat:o,locale:i,actualDisbursementDate:this.dateUtils.formatDate(this.collectionSheetForm.value.transactionDate,o),transactionDate:this.dateUtils.formatDate(this.collectionSheetForm.value.transactionDate,o),bulkDisbursementTransactions:this.bulkDisbursementTransactionsData};this.collectionsService.executeSaveCollectionSheet(n).subscribe(()=>{this.reload(),localStorage.setItem("Success","true")})}reload(){let i=this.router.url;this.router.navigateByUrl("/collections",{skipLocationChange:!0}).then(()=>this.router.navigate([i]))}static{this.\u0275fac=function(o){return new(o||e)(V(xe),V(sA),V(Ei),V(Lt),V(_i),V(ni),V(te),V(We))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-individual-collection-sheet"]],viewQuery:function(o,n){if(o&1&&(Nt(Je,5,!0),Nt($e,5,!0)),o&2){let c;Bt(c=Rt())&&(n.paginator=c.first),Bt(c=Rt())&&(n.sort=c.first)}},decls:7,vars:2,consts:[["transactionDatePicker",""],["class","container",4,"ngIf"],[1,"showcollectionsheet"],[1,"container"],["class","alert",4,"ngIf"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2percent","responsive-column","align-start-center"],[1,"flex-98"],["formControlName","officeId","required",""],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"flex-98",3,"click"],["matInput","","required","","formControlName","transactionDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["formControlName","staffId"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["icon","search",1,"m-r-10"],[1,"alert"],[1,"message"],[1,"fa","fa-exclamation-circle","alert-check"],[3,"value"],[1,"m-b-20"],["mat-raised-button","","color","primary",3,"click"],[1,"mat-h2"],["mat-table","","matSort","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","loanAccount"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","productName"],["matColumnDef","clientName"],["matColumnDef","totalDue"],["matColumnDef","charges"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],["matColumnDef","depositAccount"],["matColumnDef","savingsAccountNo"]],template:function(o,n){o&1&&(x(0,vPi,65,28,"mat-card",1),t(1,` + `),l(4),b(d(23,10,"labels.buttons.Submit"))}}var lA=(()=>{class e{constructor(i,o,n,c,u,h,_,y){this.formBuilder=i,this.collectionsService=o,this.organizationService=n,this.route=c,this.dateUtils=u,this.dialog=h,this.router=_,this.settingsService=y,this.loanOfficerData=[],this.loansData=[],this.savingsData=[],this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.isCollapsed=!1,this.bulkDisbursementTransactionsData={},this.bulkRepaymentTransactions=[],this.bulkSavingsDueTransactions=[],this.noData=!1,this.loansDisplayedColumns=["loanAccount","productName","clientName","totalDue","charges","actions"],this.savingsDisplayedColumns=["depositAccount","savingsAccountNo","productName","clientName","totalDue","actions"],this.route.data.subscribe(C=>{this.officesData=C.officesData})}ngOnInit(){this.maxDate=this.settingsService.businessDate,localStorage.getItem("Success")&&(localStorage.removeItem("Success"),this.Success=!0,setTimeout(()=>{this.Success=!1},3e3)),this.createCollectionSheetForm(),this.buildDependencies()}createCollectionSheetForm(){this.collectionSheetForm=this.formBuilder.group({officeId:["",bt.required],transactionDate:[new Date,bt.required],staffId:[""]})}buildDependencies(){this.collectionSheetForm.get("officeId").valueChanges.subscribe(i=>{this.organizationService.getStaffs(i).subscribe(o=>{this.loanOfficerData=o})})}organizeData(i){i.clients.forEach(o=>{o.loans&&o.loans.forEach(n=>{let c=oi(ye({},n),{clientName:o.clientName,clientId:o.clientId});this.loansData.push(c)}),o.savings&&o.savings.forEach(n=>{let c=oi(ye({},n),{clientName:o.clientName,clientId:o.clientId});this.savingsData.push(c)})}),this.loansData.length>0&&(this.loansDataSource=new ci(this.loansData),this.loansDataSource.paginator=this.paginator,this.loansDataSource.sort=this.sort),this.savingsData.length>0&&(this.savingsDataSource=new ci(this.savingsData),this.savingsDataSource.paginator=this.paginator,this.savingsDataSource.sort=this.sort)}getLoanTotalDueAmount(i){let o=i.totalDue,n=i.chargesDue;return isNaN(o)&&(o=0),isNaN(n)&&(n=0),Math.ceil((Number(o)+Number(n))*100)/100}showAndStorePaymentDetails(i,o,n){let c=[new hn({controlName:"paymentTypeId",label:"Payment Type",options:{label:"name",value:"id",data:this.collectionSheetData.paymentTypeOptions},required:!1}),new Xn({controlName:"accountNumber",label:"Account #",type:"number",required:!1}),new Xn({controlName:"checkNumber",label:"Cheque #",type:"number",required:!1}),new Xn({controlName:"routingCode",label:"Routing Code",type:"text",required:!1}),new Xn({controlName:"receiptNumber",label:"Receipt #",type:"number",required:!1}),new Xn({controlName:"bankNumber",label:"Bank #",type:"number",required:!1})],u={title:`Payment for ${i==="loans"?"Loan":"Saving"} Id ${i==="loans"?o.loanId:o.savingsId}`,layout:{addButtonText:"Confirm"},formfields:c};this.dialog.open(Fn,{data:u}).afterClosed().subscribe(_=>{if(_.data)if(i==="loans"){let y=this.getLoanTotalDueAmount(o),C={loanId:o.loanId,transactionAmount:y};_.data.value.paymentTypeId!==""&&(C.paymentTypeId=_.data.value.paymentTypeId,C.accountNumber=_.data.value.accountNumber,C.checkNumber=_.data.value.checkNumber,C.routingCode=_.data.value.routingCode,C.receiptNumber=_.data.value.receiptNumber,C.bankNumber=_.data.value.bankNumber),this.bulkRepaymentTransactions.push(C)}else{let y=o.dueAmount;isNaN(y)&&(y=0);let C={savingsId:o.savingsId,transactionAmount:y,depositAccountType:o.depositAccountType==="Saving Deposit"?100:o.depositAccountType==="Recurring Deposit"?300:400};_.data.paymentTypeId!==""&&(C.paymentTypeId=_.data.paymentTypeId,C.accountNumber=_.data.accountNumber,C.checkNumber=_.data.checkNumber,C.routingCode=_.data.routingCode,C.receiptNumber=_.data.receiptNumber,C.bankNumber=_.data.bankNumber),C.transactionAmount>0&&this.bulkSavingsDueTransactions.push(C)}})}previewCollectionSheet(){let i=this.settingsService.language.code,o=this.settingsService.dateFormat,n=oi(ye({},this.collectionSheetForm.value),{transactionDate:this.dateUtils.formatDate(this.collectionSheetForm.value.transactionDate,o),dateFormat:o,locale:i});n.staffId===""&&delete n.staffId,this.collectionsService.retrieveCollectionSheetData(n).subscribe(c=>{c.clients.length>0?(this.collectionSheetData=c,this.organizeData(c),this.isCollapsed=!0):(this.noData=!0,setTimeout(()=>{this.noData=!1},3e3))})}submit(){let i=this.settingsService.language.code,o=this.settingsService.dateFormat;this.bulkDisbursementTransactionsData.bulkRepaymentTransactions=this.bulkRepaymentTransactions,this.bulkDisbursementTransactionsData.bulkSavingsDueTransactions=this.bulkSavingsDueTransactions;let n={dateFormat:o,locale:i,actualDisbursementDate:this.dateUtils.formatDate(this.collectionSheetForm.value.transactionDate,o),transactionDate:this.dateUtils.formatDate(this.collectionSheetForm.value.transactionDate,o),bulkDisbursementTransactions:this.bulkDisbursementTransactionsData};this.collectionsService.executeSaveCollectionSheet(n).subscribe(()=>{this.reload(),localStorage.setItem("Success","true")})}reload(){let i=this.router.url;this.router.navigateByUrl("/collections",{skipLocationChange:!0}).then(()=>this.router.navigate([i]))}static{this.\u0275fac=function(o){return new(o||e)(V(xe),V(sA),V(Ei),V(Lt),V(_i),V(ni),V(te),V(We))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-individual-collection-sheet"]],viewQuery:function(o,n){if(o&1&&(Nt(Je,5,!0),Nt($e,5,!0)),o&2){let c;Bt(c=Rt())&&(n.paginator=c.first),Bt(c=Rt())&&(n.sort=c.first)}},decls:7,vars:2,consts:[["transactionDatePicker",""],["class","container",4,"ngIf"],[1,"showcollectionsheet"],[1,"container"],["class","alert",4,"ngIf"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2percent","responsive-column","align-start-center"],[1,"flex-98"],["formControlName","officeId","required",""],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"flex-98",3,"click"],["matInput","","required","","formControlName","transactionDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["formControlName","staffId"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["icon","search",1,"m-r-10"],[1,"alert"],[1,"message"],[1,"fa","fa-exclamation-circle","alert-check"],[3,"value"],[1,"m-b-20"],["mat-raised-button","","color","primary",3,"click"],[1,"mat-h2"],["mat-table","","matSort","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","loanAccount"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","productName"],["matColumnDef","clientName"],["matColumnDef","totalDue"],["matColumnDef","charges"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],["matColumnDef","depositAccount"],["matColumnDef","savingsAccountNo"]],template:function(o,n){o&1&&(x(0,_Pi,65,28,"mat-card",1),t(1,` `),a(2,"div",2),t(3,` - `),x(4,KPi,27,13,"div",1),t(5,` + `),x(4,YPi,27,13,"div",1),t(5,` `),s(),t(6,` -`)),o&2&&(g("ngIf",!n.isCollapsed),l(4),g("ngIf",n.isCollapsed))},dependencies:[St,se,zt,wt,ge,Se,re,ue,Ie,fe,he,qt,oe,Ue,Ht,$t,Te,Si,Zt,Oe,De,Mi,Di,Ti,Dt,Et,Gt,Fe,$e,Ne,Re,Le,wi,Be,Ve,ze,qe,je,He,Je],styles:[".container[_ngcontent-%COMP%]{max-width:37em;padding:20px}.container[_ngcontent-%COMP%] .margin-v[_ngcontent-%COMP%]{margin:1em 0}.container[_ngcontent-%COMP%] .margin-b[_ngcontent-%COMP%]{margin:0 0 1em}.container[_ngcontent-%COMP%] .margin-t[_ngcontent-%COMP%]{margin-top:1em}.container[_ngcontent-%COMP%] .m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.container[_ngcontent-%COMP%] .m-r-10[_ngcontent-%COMP%]{margin-right:10px}.container[_ngcontent-%COMP%] .mat-form-field.mat-form-field .mat-form-field-underline{background-color:#0000006b}.container[_ngcontent-%COMP%] .mat-mdc-form-field.mat-mdc-form-field .mat-mdc-form-field-bottom-align:before{border-bottom-color:#0000006b}.container[_ngcontent-%COMP%] .mat-mdc-form-field.mat-mdc-form-field .mdc-line-ripple:before, .container[_ngcontent-%COMP%] .mat-mdc-form-field.mat-mdc-form-field .mdc-line-ripple:after{border-bottom-color:#0000006b}.showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%]{max-width:73rem}.showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{padding:24px;border-radius:8px;box-shadow:0 2px 10px #00000014}.showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .m-b-20[_ngcontent-%COMP%]{margin-bottom:20px;padding:10px 0;display:flex;align-items:center}.showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .m-b-20[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{min-width:120px;font-weight:500;box-shadow:0 2px 4px #0000001a;transition:all .3s ease}.showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .m-b-20[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{box-shadow:0 4px 8px #00000026;transform:translateY(-2px)}.showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] h2.mat-h2[_ngcontent-%COMP%]{margin-bottom:20px;font-weight:500;color:#000000de;border-bottom:1px solid rgba(0,0,0,.12);padding-bottom:10px}.showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] table.mat-elevation-z1[_ngcontent-%COMP%]{width:100%;margin-bottom:24px;box-shadow:none;border:1px solid rgba(0,0,0,.12)}.showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] table.mat-elevation-z1[_ngcontent-%COMP%] th.mat-header-cell[_ngcontent-%COMP%]{font-weight:500;color:#000000de;background-color:#0000000a}.showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] table.mat-elevation-z1[_ngcontent-%COMP%] td.mat-cell[_ngcontent-%COMP%], .showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] table.mat-elevation-z1[_ngcontent-%COMP%] th.mat-header-cell[_ngcontent-%COMP%]{padding:12px 16px}.showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] table.mat-elevation-z1[_ngcontent-%COMP%] tr.mat-row[_ngcontent-%COMP%]:hover{background-color:#00000005}.dark-theme[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .mat-form-field.mat-form-field .mat-form-field-underline{background-color:#ffffffb3}.dark-theme[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .mat-mdc-form-field.mat-mdc-form-field .mat-mdc-form-field-bottom-align:before{border-bottom-color:#ffffffb3}.dark-theme[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .mat-mdc-form-field.mat-mdc-form-field .mdc-line-ripple:before, .dark-theme[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .mat-mdc-form-field.mat-mdc-form-field .mdc-line-ripple:after{border-bottom-color:#ffffffb3}.dark-theme[_ngcontent-%COMP%] .showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{background-color:#424242}.dark-theme[_ngcontent-%COMP%] .showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .m-b-20[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{box-shadow:0 2px 4px #0000004d}.dark-theme[_ngcontent-%COMP%] .showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] h2.mat-h2[_ngcontent-%COMP%]{color:#ffffffde;border-bottom-color:#ffffff1f}.dark-theme[_ngcontent-%COMP%] .showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] table.mat-elevation-z1[_ngcontent-%COMP%]{border-color:#ffffff1f}.dark-theme[_ngcontent-%COMP%] .showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] table.mat-elevation-z1[_ngcontent-%COMP%] th.mat-header-cell[_ngcontent-%COMP%]{color:#ffffffde;background-color:#ffffff1a}.dark-theme[_ngcontent-%COMP%] .showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] table.mat-elevation-z1[_ngcontent-%COMP%] tr.mat-row[_ngcontent-%COMP%]:hover{background-color:#ffffff0d}.alert[_ngcontent-%COMP%]{background-color:#fdecea;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#f44336;margin-right:2px}"]})}}return e})();var JPi=()=>["../"];function ZPi(e,r){if(e&1&&(a(0,"mat-option",14),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` +`)),o&2&&(g("ngIf",!n.isCollapsed),l(4),g("ngIf",n.isCollapsed))},dependencies:[St,se,zt,wt,ge,Se,re,ue,Ie,fe,he,qt,oe,Ue,Ht,$t,Te,Si,Zt,Oe,De,Mi,Di,Ti,Dt,Et,Gt,Fe,$e,Ne,Re,Le,wi,Be,Ve,ze,qe,je,He,Je],styles:[".container[_ngcontent-%COMP%]{max-width:37em;padding:20px}.container[_ngcontent-%COMP%] .margin-v[_ngcontent-%COMP%]{margin:1em 0}.container[_ngcontent-%COMP%] .margin-b[_ngcontent-%COMP%]{margin:0 0 1em}.container[_ngcontent-%COMP%] .margin-t[_ngcontent-%COMP%]{margin-top:1em}.container[_ngcontent-%COMP%] .m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.container[_ngcontent-%COMP%] .m-r-10[_ngcontent-%COMP%]{margin-right:10px}.container[_ngcontent-%COMP%] .mat-form-field.mat-form-field .mat-form-field-underline{background-color:#0000006b}.container[_ngcontent-%COMP%] .mat-mdc-form-field.mat-mdc-form-field .mat-mdc-form-field-bottom-align:before{border-bottom-color:#0000006b}.container[_ngcontent-%COMP%] .mat-mdc-form-field.mat-mdc-form-field .mdc-line-ripple:before, .container[_ngcontent-%COMP%] .mat-mdc-form-field.mat-mdc-form-field .mdc-line-ripple:after{border-bottom-color:#0000006b}.showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%]{max-width:73rem}.showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{padding:24px;border-radius:8px;box-shadow:0 2px 10px #00000014}.showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .m-b-20[_ngcontent-%COMP%]{margin-bottom:20px;padding:10px 0;display:flex;align-items:center}.showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .m-b-20[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{min-width:120px;font-weight:500;box-shadow:0 2px 4px #0000001a;transition:all .3s ease}.showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .m-b-20[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{box-shadow:0 4px 8px #00000026;transform:translateY(-2px)}.showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] h2.mat-h2[_ngcontent-%COMP%]{margin-bottom:20px;font-weight:500;color:#000000de;border-bottom:1px solid rgba(0,0,0,.12);padding-bottom:10px}.showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] table.mat-elevation-z1[_ngcontent-%COMP%]{width:100%;margin-bottom:24px;box-shadow:none;border:1px solid rgba(0,0,0,.12)}.showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] table.mat-elevation-z1[_ngcontent-%COMP%] th.mat-header-cell[_ngcontent-%COMP%]{font-weight:500;color:#000000de;background-color:#0000000a}.showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] table.mat-elevation-z1[_ngcontent-%COMP%] td.mat-cell[_ngcontent-%COMP%], .showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] table.mat-elevation-z1[_ngcontent-%COMP%] th.mat-header-cell[_ngcontent-%COMP%]{padding:12px 16px}.showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] table.mat-elevation-z1[_ngcontent-%COMP%] tr.mat-row[_ngcontent-%COMP%]:hover{background-color:#00000005}.dark-theme[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .mat-form-field.mat-form-field .mat-form-field-underline{background-color:#ffffffb3}.dark-theme[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .mat-mdc-form-field.mat-mdc-form-field .mat-mdc-form-field-bottom-align:before{border-bottom-color:#ffffffb3}.dark-theme[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .mat-mdc-form-field.mat-mdc-form-field .mdc-line-ripple:before, .dark-theme[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .mat-mdc-form-field.mat-mdc-form-field .mdc-line-ripple:after{border-bottom-color:#ffffffb3}.dark-theme[_ngcontent-%COMP%] .showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{background-color:#424242}.dark-theme[_ngcontent-%COMP%] .showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .m-b-20[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{box-shadow:0 2px 4px #0000004d}.dark-theme[_ngcontent-%COMP%] .showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] h2.mat-h2[_ngcontent-%COMP%]{color:#ffffffde;border-bottom-color:#ffffff1f}.dark-theme[_ngcontent-%COMP%] .showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] table.mat-elevation-z1[_ngcontent-%COMP%]{border-color:#ffffff1f}.dark-theme[_ngcontent-%COMP%] .showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] table.mat-elevation-z1[_ngcontent-%COMP%] th.mat-header-cell[_ngcontent-%COMP%]{color:#ffffffde;background-color:#ffffff1a}.dark-theme[_ngcontent-%COMP%] .showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] table.mat-elevation-z1[_ngcontent-%COMP%] tr.mat-row[_ngcontent-%COMP%]:hover{background-color:#ffffff0d}.alert[_ngcontent-%COMP%]{background-color:#fdecea;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#f44336;margin-right:2px}"]})}}return e})();var KPi=()=>["../"];function JPi(e,r){if(e&1&&(a(0,"mat-option",14),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` `,i.name,` - `)}}function XPi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `)}}function ZPi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.Branch Office")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function tki(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` + `),l(4),b(d(6,7,"labels.commons.required")))}function XPi(e,r){e&1&&(a(0,"mat-error"),t(1),m(2,"translate"),m(3,"translate"),a(4,"strong"),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(),_t(` `,d(2,3,"labels.inputs.Meeting Date")," ",d(3,5,"labels.commons.is"),` - `),l(4),b(d(6,7,"labels.commons.required")))}function eki(e,r){if(e&1){let i=st();a(0,"mat-form-field",15),q("click",function(){W(i);let n=Mt(11);return Q(n.open())}),t(1,` + `),l(4),b(d(6,7,"labels.commons.required")))}function tki(e,r){if(e&1){let i=st();a(0,"mat-form-field",15),q("click",function(){W(i);let n=Mt(11);return Q(n.open())}),t(1,` `),a(2,"mat-label"),t(3),m(4,"translate"),s(),t(5,` `),k(6,"input",16),t(7,` `),k(8,"mat-datepicker-toggle",17),t(9,` `),k(10,"mat-datepicker",null,0),t(12,` - `),x(13,tki,8,9,"mat-error",7),t(14,` - `),s()}if(e&2){let i=Mt(11),o=A();l(3),b(d(4,6,"labels.inputs.Meeting Date")),l(3),g("min",o.minDate)("max",o.maxDate)("matDatepicker",i),l(2),g("for",i),l(5),g("ngIf",o.collectionSheetForm.controls.meetingDate.hasError("required"))}}function iki(e,r){if(e&1&&(a(0,"mat-option",14),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` + `),x(13,XPi,8,9,"mat-error",7),t(14,` + `),s()}if(e&2){let i=Mt(11),o=A();l(3),b(d(4,6,"labels.inputs.Meeting Date")),l(3),g("min",o.minDate)("max",o.maxDate)("matDatepicker",i),l(2),g("for",i),l(5),g("ngIf",o.collectionSheetForm.controls.meetingDate.hasError("required"))}}function eki(e,r){if(e&1&&(a(0,"mat-option",14),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` `,i.displayName,` - `)}}function nki(e,r){if(e&1&&(a(0,"mat-form-field",4),t(1,` + `)}}function iki(e,r){if(e&1&&(a(0,"mat-form-field",4),t(1,` `),a(2,"mat-label"),t(3),m(4,"translate"),s(),t(5,` `),a(6,"mat-select",18),t(7,` - `),x(8,iki,2,2,"mat-option",6),t(9,` + `),x(8,eki,2,2,"mat-option",6),t(9,` `),s(),t(10,` - `),s()),e&2){let i=A();l(3),b(d(4,2,"labels.inputs.Staff")),l(5),g("ngForOf",i.loanOfficerData)}}function rki(e,r){if(e&1&&(a(0,"mat-option",14),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` + `),s()),e&2){let i=A();l(3),b(d(4,2,"labels.inputs.Staff")),l(5),g("ngForOf",i.loanOfficerData)}}function nki(e,r){if(e&1&&(a(0,"mat-option",14),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` `,i.name,` - `)}}function oki(e,r){if(e&1&&(a(0,"mat-form-field",4),t(1,` + `)}}function rki(e,r){if(e&1&&(a(0,"mat-form-field",4),t(1,` `),a(2,"mat-label"),t(3),m(4,"translate"),s(),t(5,` `),a(6,"mat-select",19),t(7,` - `),x(8,rki,2,2,"mat-option",6),t(9,` + `),x(8,nki,2,2,"mat-option",6),t(9,` `),s(),t(10,` - `),s()),e&2){let i=A();l(3),b(d(4,2,"labels.inputs.Group")),l(5),g("ngForOf",i.groupsData)}}function aki(e,r){if(e&1&&(a(0,"mat-option",14),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` + `),s()),e&2){let i=A();l(3),b(d(4,2,"labels.inputs.Group")),l(5),g("ngForOf",i.groupsData)}}function oki(e,r){if(e&1&&(a(0,"mat-option",14),t(1),s()),e&2){let i=r.$implicit;g("value",i.id),l(),P(` `,i.name,` - `)}}function ski(e,r){if(e&1&&(a(0,"mat-form-field",4),t(1,` + `)}}function aki(e,r){if(e&1&&(a(0,"mat-form-field",4),t(1,` `),a(2,"mat-label"),t(3),m(4,"translate"),s(),t(5,` `),a(6,"mat-select",20),t(7,` - `),x(8,aki,2,2,"mat-option",6),t(9,` + `),x(8,oki,2,2,"mat-option",6),t(9,` `),s(),t(10,` `),s()),e&2){let i=A();l(3),b(d(4,2,"labels.inputs.Center")),l(5),g("ngForOf",i.centersData)}}var dft=(()=>{class e{constructor(i,o,n,c,u,h,_,y){this.formBuilder=i,this.centerService=o,this.collectionsService=n,this.organizationService=c,this.router=u,this.route=h,this.settingsService=_,this.dateUtils=y,this.groupsData=[],this.centersData=[],this.loanOfficerData=[],this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.officeId=null,this.meetingFallCenters=null,this.route.data.subscribe(C=>{this.officesData=C.officesData})}ngOnInit(){this.maxDate=this.settingsService.maxFutureDate,this.createCollectionSheetForm(),this.buildDependencies()}createCollectionSheetForm(){this.collectionSheetForm=this.formBuilder.group({officeId:["",bt.required],meetingDate:[new Date,bt.required],staffId:["",bt.required],groupId:[""],centerId:[""]})}buildDependencies(){this.collectionSheetForm.get("officeId").valueChanges.subscribe(i=>{this.officeId=i,this.organizationService.getStaffs(i).subscribe(o=>{this.loanOfficerData=o}),this.organizationService.getCenters(i).subscribe(o=>{this.centersData=o}),this.organizationService.getGroups(i).subscribe(o=>{this.groupsData=o})})}previewCollectionSheet(){let i=this.settingsService.dateFormat,o=this.settingsService.language.code,n=this.collectionSheetForm.value.staffId,c=this.dateUtils.formatDate(this.collectionSheetForm.value.meetingDate,i);this.centerService.getAllMeetingFallCenters(this.officeId,n,c,i,o).subscribe(u=>{if(u.length>0){this.meetingFallCenters=u[0].meetingFallCenters;let h={calendarId:this.meetingFallCenters[0].collectionMeetingCalendar.calendarInstanceId,transactionDate:c,locale:o,dateFormat:i};this.collectionsService.generateCollectionSheetData(this.meetingFallCenters[0].id,h).subscribe(_=>{console.log(_)})}})}static{this.\u0275fac=function(o){return new(o||e)(V(xe),V(Nr),V(sA),V(Ei),V(te),V(Lt),V(We),V(_i))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-collection-sheet"]],decls:44,vars:19,consts:[["meetingDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2percent","responsive-column","align-start-center"],[1,"flex-98"],["formControlName","officeId","required",""],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["class","flex-98",3,"click",4,"ngIf"],["class","flex-98",4,"ngIf"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["icon","download",1,"m-r-10"],[3,"value"],[1,"flex-98",3,"click"],["matInput","","required","","formControlName","meetingDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["formControlName","staffId"],["formControlName","groupId"],["formControlName","centerId"]],template:function(o,n){o&1&&(a(0,"mat-card",1),t(1,` `),a(2,"form",2),q("ngSubmit",function(){return n.previewCollectionSheet()}),t(3,` @@ -41822,18 +41822,18 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),a(6,"mat-form-field",4),t(7,` `),a(8,"mat-label"),t(9),m(10,"translate"),s(),t(11,` `),a(12,"mat-select",5),t(13,` - `),x(14,ZPi,2,2,"mat-option",6),t(15,` + `),x(14,JPi,2,2,"mat-option",6),t(15,` `),s(),t(16,` - `),x(17,XPi,8,9,"mat-error",7),t(18,` + `),x(17,ZPi,8,9,"mat-error",7),t(18,` `),s(),t(19,` - `),x(20,eki,15,8,"mat-form-field",8),t(21,` + `),x(20,tki,15,8,"mat-form-field",8),t(21,` - `),x(22,nki,11,4,"mat-form-field",9),t(23,` + `),x(22,iki,11,4,"mat-form-field",9),t(23,` - `),x(24,oki,11,4,"mat-form-field",9),t(25,` + `),x(24,rki,11,4,"mat-form-field",9),t(25,` - `),x(26,ski,11,4,"mat-form-field",9),t(27,` + `),x(26,aki,11,4,"mat-form-field",9),t(27,` `),s(),t(28,` `),a(29,"mat-card-actions",10),t(30,` @@ -41843,17 +41843,17 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),s(),t(41,` `),s(),t(42,` `),s(),t(43,` -`)),o&2&&(l(2),g("formGroup",n.collectionSheetForm),l(7),b(d(10,12,"labels.inputs.Branch Office")),l(5),g("ngForOf",n.officesData),l(3),g("ngIf",n.collectionSheetForm.controls.officeId.hasError("required")),l(3),g("ngIf",n.officeId!==null),l(2),g("ngIf",n.officeId!==null),l(2),g("ngIf",n.officeId!==null),l(2),g("ngIf",n.officeId!==null),l(5),g("routerLink",ht(18,JPi)),l(),b(d(33,14,"labels.buttons.Cancel")),l(3),g("disabled",!n.collectionSheetForm.valid),l(3),P(` +`)),o&2&&(l(2),g("formGroup",n.collectionSheetForm),l(7),b(d(10,12,"labels.inputs.Branch Office")),l(5),g("ngForOf",n.officesData),l(3),g("ngIf",n.collectionSheetForm.controls.officeId.hasError("required")),l(3),g("ngIf",n.officeId!==null),l(2),g("ngIf",n.officeId!==null),l(2),g("ngIf",n.officeId!==null),l(2),g("ngIf",n.officeId!==null),l(5),g("routerLink",ht(18,KPi)),l(),b(d(33,14,"labels.buttons.Cancel")),l(3),g("disabled",!n.collectionSheetForm.valid),l(3),P(` `,d(39,16,"labels.buttons.Productive Collection Sheet"),` - `))},dependencies:[St,se,zt,wt,ge,Se,re,ue,Ie,fe,he,qt,oe,Ue,Ht,$t,Te,Si,Zt,Oe,De,Mi,Di,Ti,Dt,Et,Gt],styles:[".container[_ngcontent-%COMP%]{max-width:37em}.container[_ngcontent-%COMP%] .margin-v[_ngcontent-%COMP%]{margin:1em 0}.container[_ngcontent-%COMP%] .margin-b[_ngcontent-%COMP%]{margin:0 0 1em}.container[_ngcontent-%COMP%] .margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();var lki=[uo.withShell([{path:"collections",children:[{path:"individual-collection-sheet",data:{title:"Individual Collection Sheet",breadcrumb:"Individual Collection Sheet",routeParamBreadcrumb:!1},component:lA,resolve:{officesData:Fc}},{path:"collection-sheet",data:{title:"Collection Sheet",breadcrumb:"Collection Sheet",routeParamBreadcrumb:!1},component:dft,resolve:{officesData:Fc}}]}])],uft=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e})}static{this.\u0275inj=un({imports:[tr.forChild(lki),tr]})}}return e})();var fft=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e})}static{this.\u0275inj=un({imports:[Yr,ya,uft,lA]})}}return e})();var cki=()=>["/system","roles-and-permissions"];function pki(e,r){e&1&&(a(0,"th",16),t(1),m(2,"translate"),s()),e&2&&(l(),P(` + `))},dependencies:[St,se,zt,wt,ge,Se,re,ue,Ie,fe,he,qt,oe,Ue,Ht,$t,Te,Si,Zt,Oe,De,Mi,Di,Ti,Dt,Et,Gt],styles:[".container[_ngcontent-%COMP%]{max-width:37em}.container[_ngcontent-%COMP%] .margin-v[_ngcontent-%COMP%]{margin:1em 0}.container[_ngcontent-%COMP%] .margin-b[_ngcontent-%COMP%]{margin:0 0 1em}.container[_ngcontent-%COMP%] .margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();var ski=[uo.withShell([{path:"collections",children:[{path:"individual-collection-sheet",data:{title:"Individual Collection Sheet",breadcrumb:"Individual Collection Sheet",routeParamBreadcrumb:!1},component:lA,resolve:{officesData:Fc}},{path:"collection-sheet",data:{title:"Collection Sheet",breadcrumb:"Collection Sheet",routeParamBreadcrumb:!1},component:dft,resolve:{officesData:Fc}}]}])],uft=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e})}static{this.\u0275inj=un({imports:[tr.forChild(ski),tr]})}}return e})();var fft=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e})}static{this.\u0275inj=un({imports:[Yr,ya,uft,lA]})}}return e})();var lki=()=>["/system","roles-and-permissions"];function cki(e,r){e&1&&(a(0,"th",16),t(1),m(2,"translate"),s()),e&2&&(l(),P(` `,d(2,1,"labels.inputs.Role"),` - `))}function mki(e,r){if(e&1&&(a(0,"td",17),t(1),s()),e&2){let i=r.$implicit;l(),P(` + `))}function pki(e,r){if(e&1&&(a(0,"td",17),t(1),s()),e&2){let i=r.$implicit;l(),P(` `,i.name,` - `)}}function dki(e,r){e&1&&(a(0,"th",16),t(1),m(2,"translate"),s()),e&2&&(l(),P(` + `)}}function mki(e,r){e&1&&(a(0,"th",16),t(1),m(2,"translate"),s()),e&2&&(l(),P(` `,d(2,1,"labels.inputs.Description"),` - `))}function uki(e,r){if(e&1&&(a(0,"td",17),t(1),s()),e&2){let i=r.$implicit;l(),P(` + `))}function dki(e,r){if(e&1&&(a(0,"td",17),t(1),s()),e&2){let i=r.$implicit;l(),P(` `,i.description,` - `)}}function fki(e,r){e&1&&k(0,"tr",18)}function hki(e,r){e&1&&k(0,"tr",19)}var cA=(()=>{class e{constructor(i,o,n,c){this.authenticationService=i,this.settingsService=o,this.router=n,this.dialog=c,this.language="English",this.dataSource=new ci,this.displayedColumns=["role","description"],this.profileData=i.getCredentials()}ngOnInit(){this.dataSource=new ci(this.profileData.roles)}changeUserPassword(){this.dialog.open(yw,{width:"400px",height:"300px"}).afterClosed().subscribe(o=>{if(o.password&&o.repeatPassword){let n=o.password,c=o.repeatPassword,u={password:n,repeatPassword:c};this.authenticationService.changePassword(this.profileData.userId,u).subscribe(()=>{this.router.navigate(["/home"])})}})}get tenantIdentifier(){return this.settingsService.tenantIdentifier||"default"}static{this.\u0275fac=function(o){return new(o||e)(V(Wo),V(We),V(te),V(ni))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-profile"]],decls:108,vars:35,consts:[[1,"container","m-b-10","layout-row","layout-lt-md-column","align-end","gap-1percent"],["mat-raised-button","","color","primary",1,"m-r-10",3,"routerLink"],["icon","check",1,"m-r-10"],["mat-raised-button","","color","primary",1,"m-r-10",3,"click"],["icon","cog",1,"m-r-10"],[1,"container","layout-column","gap-1percent"],[1,"layout-row-wrap"],[1,"info-box"],[1,"header"],["mat-table","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","role"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(o,n){o&1&&(a(0,"div",0),t(1,` + `)}}function uki(e,r){e&1&&k(0,"tr",18)}function fki(e,r){e&1&&k(0,"tr",19)}var cA=(()=>{class e{constructor(i,o,n,c){this.authenticationService=i,this.settingsService=o,this.router=n,this.dialog=c,this.language="English",this.dataSource=new ci,this.displayedColumns=["role","description"],this.profileData=i.getCredentials()}ngOnInit(){this.dataSource=new ci(this.profileData.roles)}changeUserPassword(){this.dialog.open(yw,{width:"400px",height:"300px"}).afterClosed().subscribe(o=>{if(o.password&&o.repeatPassword){let n=o.password,c=o.repeatPassword,u={password:n,repeatPassword:c};this.authenticationService.changePassword(this.profileData.userId,u).subscribe(()=>{this.router.navigate(["/home"])})}})}get tenantIdentifier(){return this.settingsService.tenantIdentifier||"default"}static{this.\u0275fac=function(o){return new(o||e)(V(Wo),V(We),V(te),V(ni))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-profile"]],decls:108,vars:35,consts:[[1,"container","m-b-10","layout-row","layout-lt-md-column","align-end","gap-1percent"],["mat-raised-button","","color","primary",1,"m-r-10",3,"routerLink"],["icon","check",1,"m-r-10"],["mat-raised-button","","color","primary",1,"m-r-10",3,"click"],["icon","cog",1,"m-r-10"],[1,"container","layout-column","gap-1percent"],[1,"layout-row-wrap"],[1,"info-box"],[1,"header"],["mat-table","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","role"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(o,n){o&1&&(a(0,"div",0),t(1,` `),a(2,"button",1),t(3,` `),k(4,"fa-icon",2),t(5),m(6,"translate"),s(),t(7,` `),a(8,"button",3),q("click",function(){return n.changeUserPassword()}),t(9,` @@ -41891,19 +41891,19 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),a(83,"mat-card"),t(84,` `),a(85,"table",9),t(86,` `),ot(87,10),t(88,` - `),x(89,pki,3,3,"th",11),t(90,` - `),x(91,mki,2,1,"td",12),t(92,` + `),x(89,cki,3,3,"th",11),t(90,` + `),x(91,pki,2,1,"td",12),t(92,` `),at(),t(93,` `),ot(94,13),t(95,` - `),x(96,dki,3,3,"th",11),t(97,` - `),x(98,uki,2,1,"td",12),t(99,` + `),x(96,mki,3,3,"th",11),t(97,` + `),x(98,dki,2,1,"td",12),t(99,` `),at(),t(100,` - `),x(101,fki,1,0,"tr",14),t(102,` - `),x(103,hki,1,0,"tr",15),t(104,` + `),x(101,uki,1,0,"tr",14),t(102,` + `),x(103,fki,1,0,"tr",15),t(104,` `),s(),t(105,` `),s(),t(106,` `),s(),t(107,` -`)),o&2&&(l(2),g("routerLink",ht(34,cki)),l(3),P(` +`)),o&2&&(l(2),g("routerLink",ht(34,lki)),l(3),P(` `,d(6,18,"labels.buttons.Permissions"),` `),l(6),P(` `,d(12,20,"labels.buttons.Change Password"),` @@ -41931,25 +41931,25 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `,d(75,32,"labels.inputs.Language"),` `),l(4),P(` `,n.language,` - `),l(7),g("dataSource",n.dataSource),l(16),g("matHeaderRowDef",n.displayedColumns),l(2),g("matRowDefColumns",n.displayedColumns))},dependencies:[St,wt,qt,oe,Dt,Et,Gt,Fe,Ne,Re,Le,Be,Ve,ze,qe,je,He],styles:[".container[_ngcontent-%COMP%]{max-width:37rem;padding:1rem}.container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{margin-bottom:1rem;padding:1.5rem;box-shadow:0 2px 4px #0000001a;border:1px solid var(--border-color, #ddd);border-radius:6px;background-color:var(--card-background, #fff);transition:background-color .3s ease,border-color .3s ease}.container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%]{display:grid;grid-template-columns:50% 50%;gap:1rem}.container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%] .info-box[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:.75rem;border:1px solid var(--border-color, #ddd);border-radius:6px;background-color:var(--info-box-background, #fff);transition:background-color .3s ease}.container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%] .info-box[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{font-weight:600;margin-bottom:.5rem;font-size:1.1rem;color:var(--header-color, inherit)}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word;color:var(--text-color, inherit)}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div.header[_ngcontent-%COMP%]{font-weight:600;margin-bottom:.5rem;font-size:1.1rem;color:var(--header-color, inherit)}.container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%;margin-top:1rem;border-collapse:collapse}.container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:600;text-align:left;color:var(--table-header-color, inherit);background-color:var(--table-header-bg, transparent)}.container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.75rem;border:1px solid var(--border-color, #ddd);color:var(--text-color, inherit)}.container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover{background-color:var(--table-hover-bg, #f9f9f9)}.container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-top:1px solid var(--border-color, rgba(0, 0, 0, .12))}th.mat-header-cell[_ngcontent-%COMP%]:not(:first-of-type), td.mat-cell[_ngcontent-%COMP%]:not(:first-of-type){border-left:1px solid var(--border-color, rgba(0, 0, 0, .12))}.mat-elevation-z1[_ngcontent-%COMP%]{margin:.5rem 0;box-shadow:0 1px 3px var(--elevation-shadow, rgba(0, 0, 0, .12));border-radius:6px}.dark-theme[_nghost-%COMP%], .dark-theme [_nghost-%COMP%]{--border-color: #444;--card-background: #2d2d2d;--info-box-background: #383838;--header-color: #e0e0e0;--text-color: #d0d0d0;--table-header-bg: #333;--table-header-color: #e0e0e0;--table-hover-bg: #3a3a3a;--elevation-shadow: rgb(0 0 0 / 30%)}.dark-theme[_nghost-%COMP%] .container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%], .dark-theme [_nghost-%COMP%] .container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{box-shadow:0 2px 4px #0000004d}.dark-theme[_nghost-%COMP%] .container[_ngcontent-%COMP%] table[_ngcontent-%COMP%], .dark-theme [_nghost-%COMP%] .container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{box-shadow:0 1px 3px #0000004d}"]})}}return e})();var gki=[uo.withShell([{path:"profile",component:cA,data:{title:"Profile",breadcrumb:"Profile"}}])],hft=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e})}static{this.\u0275inj=un({imports:[tr.forChild(gki),tr]})}}return e})();var gft=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e})}static{this.\u0275inj=un({imports:[Yr,hft,cA]})}}return e})();var xki=()=>["./checker-inbox"],_ki=()=>["./client-approval"],vki=()=>["./loan-approval"],bki=()=>["./loan-disbursal"],Cki=()=>["./reschedule-loan"];function yki(e,r){if(e&1&&(a(0,"a",10,1),t(2),m(3,"translate"),s()),e&2){let i=Mt(1);g("routerLink",ht(5,xki))("active",i.isActive),l(2),P(` + `),l(7),g("dataSource",n.dataSource),l(16),g("matHeaderRowDef",n.displayedColumns),l(2),g("matRowDefColumns",n.displayedColumns))},dependencies:[St,wt,qt,oe,Dt,Et,Gt,Fe,Ne,Re,Le,Be,Ve,ze,qe,je,He],styles:[".container[_ngcontent-%COMP%]{max-width:37rem;padding:1rem}.container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{margin-bottom:1rem;padding:1.5rem;box-shadow:0 2px 4px #0000001a;border:1px solid var(--border-color, #ddd);border-radius:6px;background-color:var(--card-background, #fff);transition:background-color .3s ease,border-color .3s ease}.container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%]{display:grid;grid-template-columns:50% 50%;gap:1rem}.container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%] .info-box[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:.75rem;border:1px solid var(--border-color, #ddd);border-radius:6px;background-color:var(--info-box-background, #fff);transition:background-color .3s ease}.container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%] .info-box[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{font-weight:600;margin-bottom:.5rem;font-size:1.1rem;color:var(--header-color, inherit)}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word;color:var(--text-color, inherit)}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div.header[_ngcontent-%COMP%]{font-weight:600;margin-bottom:.5rem;font-size:1.1rem;color:var(--header-color, inherit)}.container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%;margin-top:1rem;border-collapse:collapse}.container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:600;text-align:left;color:var(--table-header-color, inherit);background-color:var(--table-header-bg, transparent)}.container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.75rem;border:1px solid var(--border-color, #ddd);color:var(--text-color, inherit)}.container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover{background-color:var(--table-hover-bg, #f9f9f9)}.container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-top:1px solid var(--border-color, rgba(0, 0, 0, .12))}th.mat-header-cell[_ngcontent-%COMP%]:not(:first-of-type), td.mat-cell[_ngcontent-%COMP%]:not(:first-of-type){border-left:1px solid var(--border-color, rgba(0, 0, 0, .12))}.mat-elevation-z1[_ngcontent-%COMP%]{margin:.5rem 0;box-shadow:0 1px 3px var(--elevation-shadow, rgba(0, 0, 0, .12));border-radius:6px}.dark-theme[_nghost-%COMP%], .dark-theme [_nghost-%COMP%]{--border-color: #444;--card-background: #2d2d2d;--info-box-background: #383838;--header-color: #e0e0e0;--text-color: #d0d0d0;--table-header-bg: #333;--table-header-color: #e0e0e0;--table-hover-bg: #3a3a3a;--elevation-shadow: rgb(0 0 0 / 30%)}.dark-theme[_nghost-%COMP%] .container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%], .dark-theme [_nghost-%COMP%] .container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{box-shadow:0 2px 4px #0000004d}.dark-theme[_nghost-%COMP%] .container[_ngcontent-%COMP%] table[_ngcontent-%COMP%], .dark-theme [_nghost-%COMP%] .container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{box-shadow:0 1px 3px #0000004d}"]})}}return e})();var hki=[uo.withShell([{path:"profile",component:cA,data:{title:"Profile",breadcrumb:"Profile"}}])],hft=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e})}static{this.\u0275inj=un({imports:[tr.forChild(hki),tr]})}}return e})();var gft=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e})}static{this.\u0275inj=un({imports:[Yr,hft,cA]})}}return e})();var gki=()=>["./checker-inbox"],xki=()=>["./client-approval"],_ki=()=>["./loan-approval"],vki=()=>["./loan-disbursal"],bki=()=>["./reschedule-loan"];function Cki(e,r){if(e&1&&(a(0,"a",10,1),t(2),m(3,"translate"),s()),e&2){let i=Mt(1);g("routerLink",ht(5,gki))("active",i.isActive),l(2),P(` `,d(3,3,"labels.inputs.Checker Inbox"),` - `)}}function Ski(e,r){if(e&1&&(a(0,"a",10,2),t(2),m(3,"translate"),s()),e&2){let i=Mt(1);g("routerLink",ht(5,_ki))("active",i.isActive),l(2),P(` + `)}}function yki(e,r){if(e&1&&(a(0,"a",10,2),t(2),m(3,"translate"),s()),e&2){let i=Mt(1);g("routerLink",ht(5,xki))("active",i.isActive),l(2),P(` `,d(3,3,"labels.inputs.Client Approval"),` - `)}}function wki(e,r){if(e&1&&(a(0,"a",10,3),t(2),m(3,"translate"),s()),e&2){let i=Mt(1);g("routerLink",ht(5,vki))("active",i.isActive),l(2),P(` + `)}}function Ski(e,r){if(e&1&&(a(0,"a",10,3),t(2),m(3,"translate"),s()),e&2){let i=Mt(1);g("routerLink",ht(5,_ki))("active",i.isActive),l(2),P(` `,d(3,3,"labels.inputs.Loan Approval"),` - `)}}function Eki(e,r){if(e&1&&(a(0,"a",10,4),t(2),m(3,"translate"),s()),e&2){let i=Mt(1);g("routerLink",ht(5,bki))("active",i.isActive),l(2),P(` + `)}}function wki(e,r){if(e&1&&(a(0,"a",10,4),t(2),m(3,"translate"),s()),e&2){let i=Mt(1);g("routerLink",ht(5,vki))("active",i.isActive),l(2),P(` `,d(3,3,"labels.inputs.Loan Disbursal"),` - `)}}function Pki(e,r){if(e&1&&(a(0,"a",10,5),t(2),m(3,"translate"),s()),e&2){let i=Mt(1);g("routerLink",ht(5,Cki))("active",i.isActive),l(2),P(` + `)}}function Eki(e,r){if(e&1&&(a(0,"a",10,5),t(2),m(3,"translate"),s()),e&2){let i=Mt(1);g("routerLink",ht(5,bki))("active",i.isActive),l(2),P(` `,d(3,3,"labels.inputs.Reschedule Loan"),` `)}}var pA=(()=>{class e{constructor(){}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-checker-inbox-and-tasks"]],decls:28,vars:6,consts:[["tabPanel",""],["checkerInbox","routerLinkActive"],["clientApproval","routerLinkActive"],["loanApproval","routerLinkActive"],["loanDisbursal","routerLinkActive"],["rescheduleLoan","routerLinkActive"],[1,"container"],[1,"tasks-card"],["mat-tab-nav-bar","",1,"navigation-tabs",3,"tabPanel"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"mifosxHasPermission"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active"]],template:function(o,n){if(o&1&&(a(0,"div",6),t(1,` `),a(2,"mat-card",7),t(3,` `),a(4,"mat-card-content"),t(5,` `),a(6,"nav",8),t(7,` - `),x(8,yki,4,6,"a",9),t(9,` - `),x(10,Ski,4,6,"a",9),t(11,` - `),x(12,wki,4,6,"a",9),t(13,` - `),x(14,Eki,4,6,"a",9),t(15,` - `),x(16,Pki,4,6,"a",9),t(17,` + `),x(8,Cki,4,6,"a",9),t(9,` + `),x(10,yki,4,6,"a",9),t(11,` + `),x(12,Ski,4,6,"a",9),t(13,` + `),x(14,wki,4,6,"a",9),t(15,` + `),x(16,Eki,4,6,"a",9),t(17,` `),s(),t(18,` `),a(19,"mat-tab-nav-panel",null,0),t(21,` @@ -41958,60 +41958,60 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),s(),t(25,` `),s(),t(26,` `),s(),t(27,` -`)),o&2){let c=Mt(20);l(6),g("tabPanel",c),l(2),g("mifosxHasPermission","ALL_FUNCTIONS_READ"),l(2),g("mifosxHasPermission","READ_CLIENT"),l(2),g("mifosxHasPermission","READ_LOAN"),l(2),g("mifosxHasPermission","READ_LOAN"),l(2),g("mifosxHasPermission","RESCHEDULE_LOAN")}},dependencies:[St,wt,qt,oe,me,de,Et,Es,Ps,es,ks,fa],encapsulation:2})}}return e})();var kki=e=>[e,"view"];function Iki(e,r){if(e&1&&(a(0,"mat-option",29),t(1),s()),e&2){let i=r.$implicit;g("value",i),l(),P(` +`)),o&2){let c=Mt(20);l(6),g("tabPanel",c),l(2),g("mifosxHasPermission","ALL_FUNCTIONS_READ"),l(2),g("mifosxHasPermission","READ_CLIENT"),l(2),g("mifosxHasPermission","READ_LOAN"),l(2),g("mifosxHasPermission","READ_LOAN"),l(2),g("mifosxHasPermission","RESCHEDULE_LOAN")}},dependencies:[St,wt,qt,oe,me,de,Et,Es,Ps,es,ks,fa],encapsulation:2})}}return e})();var Pki=e=>[e,"view"];function kki(e,r){if(e&1&&(a(0,"mat-option",29),t(1),s()),e&2){let i=r.$implicit;g("value",i),l(),P(` `,i,` - `)}}function Tki(e,r){if(e&1&&(a(0,"mat-option",29),t(1),s()),e&2){let i=r.$implicit;g("value",i),l(),P(` + `)}}function Iki(e,r){if(e&1&&(a(0,"mat-option",29),t(1),s()),e&2){let i=r.$implicit;g("value",i),l(),P(` `,i,` - `)}}function Mki(e,r){if(e&1){let i=st();a(0,"th",42),t(1,` + `)}}function Tki(e,r){if(e&1){let i=st();a(0,"th",42),t(1,` `),a(2,"mat-checkbox",43),q("change",function(n){W(i);let c=A(3);return Q(n?c.masterToggle():null)}),t(3,` `),s(),t(4,` - `),s()}if(e&2){let i=A(3);l(2),g("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())("aria-label",i.checkboxLabel())}}function Dki(e,r){if(e&1){let i=st();a(0,"td",44),t(1,` + `),s()}if(e&2){let i=A(3);l(2),g("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())("aria-label",i.checkboxLabel())}}function Mki(e,r){if(e&1){let i=st();a(0,"td",44),t(1,` `),a(2,"mat-checkbox",45),q("click",function(n){return W(i),Q(n.stopPropagation())})("change",function(n){let c=W(i).$implicit,u=A(3);return Q(n?u.selection.toggle(c):null)}),t(3,` `),s(),t(4,` - `),s()}if(e&2){let i=r.$implicit,o=A(3);l(2),g("checked",o.selection.isSelected(i))("aria-label",o.checkboxLabel(i))}}function Aki(e,r){e&1&&(a(0,"th",42),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.ID")))}function Oki(e,r){if(e&1&&(a(0,"td",44),t(1),s()),e&2){let i=r.$implicit;l(),b(i.id)}}function Fki(e,r){e&1&&(a(0,"th",42),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Made on Date")))}function Bki(e,r){if(e&1&&(a(0,"td",44),t(1),m(2,"dateFormat"),s()),e&2){let i=r.$implicit;l(),b(d(2,1,i.madeOnDate))}}function Rki(e,r){e&1&&(a(0,"th",42),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Status")))}function Nki(e,r){if(e&1&&(a(0,"td",44),t(1),s()),e&2){let i=r.$implicit;l(),b(i.processingResult)}}function Lki(e,r){e&1&&(a(0,"th",42),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.User")))}function Vki(e,r){if(e&1&&(a(0,"td",44),t(1),s()),e&2){let i=r.$implicit;l(),b(i.maker)}}function zki(e,r){e&1&&(a(0,"th",42),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Action")))}function jki(e,r){if(e&1&&(a(0,"td",44),t(1),s()),e&2){let i=r.$implicit;l(),b(i.actionName)}}function qki(e,r){e&1&&(a(0,"th",42),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Entity")))}function Hki(e,r){if(e&1&&(a(0,"td",44),t(1),s()),e&2){let i=r.$implicit;l(),b(i.entityName)}}function Gki(e,r){e&1&&k(0,"tr",46)}function Uki(e,r){if(e&1&&k(0,"tr",47),e&2){let i=r.$implicit;g("routerLink",Xe(1,kki,i.id))}}function $ki(e,r){if(e&1&&(a(0,"table",30),t(1,` + `),s()}if(e&2){let i=r.$implicit,o=A(3);l(2),g("checked",o.selection.isSelected(i))("aria-label",o.checkboxLabel(i))}}function Dki(e,r){e&1&&(a(0,"th",42),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.ID")))}function Aki(e,r){if(e&1&&(a(0,"td",44),t(1),s()),e&2){let i=r.$implicit;l(),b(i.id)}}function Oki(e,r){e&1&&(a(0,"th",42),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Made on Date")))}function Fki(e,r){if(e&1&&(a(0,"td",44),t(1),m(2,"dateFormat"),s()),e&2){let i=r.$implicit;l(),b(d(2,1,i.madeOnDate))}}function Bki(e,r){e&1&&(a(0,"th",42),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Status")))}function Rki(e,r){if(e&1&&(a(0,"td",44),t(1),s()),e&2){let i=r.$implicit;l(),b(i.processingResult)}}function Nki(e,r){e&1&&(a(0,"th",42),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.User")))}function Lki(e,r){if(e&1&&(a(0,"td",44),t(1),s()),e&2){let i=r.$implicit;l(),b(i.maker)}}function Vki(e,r){e&1&&(a(0,"th",42),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Action")))}function zki(e,r){if(e&1&&(a(0,"td",44),t(1),s()),e&2){let i=r.$implicit;l(),b(i.actionName)}}function jki(e,r){e&1&&(a(0,"th",42),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Entity")))}function qki(e,r){if(e&1&&(a(0,"td",44),t(1),s()),e&2){let i=r.$implicit;l(),b(i.entityName)}}function Hki(e,r){e&1&&k(0,"tr",46)}function Gki(e,r){if(e&1&&k(0,"tr",47),e&2){let i=r.$implicit;g("routerLink",Xe(1,Pki,i.id))}}function Uki(e,r){if(e&1&&(a(0,"table",30),t(1,` `),ot(2,31),t(3,` - `),x(4,Mki,5,3,"th",32),t(5,` - `),x(6,Dki,5,2,"td",33),t(7,` + `),x(4,Tki,5,3,"th",32),t(5,` + `),x(6,Mki,5,2,"td",33),t(7,` `),at(),t(8,` `),ot(9,34),t(10,` - `),x(11,Aki,3,3,"th",32),t(12,` - `),x(13,Oki,2,1,"td",33),t(14,` + `),x(11,Dki,3,3,"th",32),t(12,` + `),x(13,Aki,2,1,"td",33),t(14,` `),at(),t(15,` `),ot(16,35),t(17,` - `),x(18,Fki,3,3,"th",32),t(19,` - `),x(20,Bki,3,3,"td",33),t(21,` + `),x(18,Oki,3,3,"th",32),t(19,` + `),x(20,Fki,3,3,"td",33),t(21,` `),at(),t(22,` `),ot(23,36),t(24,` - `),x(25,Rki,3,3,"th",32),t(26,` - `),x(27,Nki,2,1,"td",33),t(28,` + `),x(25,Bki,3,3,"th",32),t(26,` + `),x(27,Rki,2,1,"td",33),t(28,` `),at(),t(29,` `),ot(30,37),t(31,` - `),x(32,Lki,3,3,"th",32),t(33,` - `),x(34,Vki,2,1,"td",33),t(35,` + `),x(32,Nki,3,3,"th",32),t(33,` + `),x(34,Lki,2,1,"td",33),t(35,` `),at(),t(36,` `),ot(37,38),t(38,` - `),x(39,zki,3,3,"th",32),t(40,` - `),x(41,jki,2,1,"td",33),t(42,` + `),x(39,Vki,3,3,"th",32),t(40,` + `),x(41,zki,2,1,"td",33),t(42,` `),at(),t(43,` `),ot(44,39),t(45,` - `),x(46,qki,3,3,"th",32),t(47,` - `),x(48,Hki,2,1,"td",33),t(49,` + `),x(46,jki,3,3,"th",32),t(47,` + `),x(48,qki,2,1,"td",33),t(49,` `),at(),t(50,` - `),x(51,Gki,1,0,"tr",40),t(52,` - `),x(53,Uki,1,3,"tr",41),t(54,` - `),s()),e&2){let i=A(2);g("dataSource",i.dataSource),l(51),g("matHeaderRowDef",i.displayedColumns),l(2),g("matRowDefColumns",i.displayedColumns)}}function Wki(e,r){e&1&&(a(0,"div",48),t(1,` + `),x(51,Hki,1,0,"tr",40),t(52,` + `),x(53,Gki,1,3,"tr",41),t(54,` + `),s()),e&2){let i=A(2);g("dataSource",i.dataSource),l(51),g("matHeaderRowDef",i.displayedColumns),l(2),g("matRowDefColumns",i.displayedColumns)}}function $ki(e,r){e&1&&(a(0,"div",48),t(1,` `),a(2,"div",49),t(3,` `),k(4,"i",50),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(5),P(` `,d(6,1,"labels.text.No checker inbox data available for this search"),` - `))}function Qki(e,r){if(e&1){let i=st();a(0,"div",4),t(1,` + `))}function Wki(e,r){if(e&1){let i=st();a(0,"div",4),t(1,` `),a(2,"div",5),t(3,` `),a(4,"div",6),t(5,` `),a(6,"mat-form-field",7),t(7,` @@ -42047,14 +42047,14 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),a(67,"mat-form-field",22),t(68,` `),a(69,"mat-label"),t(70),m(71,"translate"),s(),t(72,` `),a(73,"mat-select",23),t(74,` - `),x(75,Iki,2,2,"mat-option",24),t(76,` + `),x(75,kki,2,2,"mat-option",24),t(76,` `),s(),t(77,` `),s(),t(78,` `),a(79,"mat-form-field",22),t(80,` `),a(81,"mat-label"),t(82),m(83,"translate"),s(),t(84,` `),a(85,"mat-select",25),t(86,` - `),x(87,Tki,2,2,"mat-option",24),t(88,` + `),x(87,Iki,2,2,"mat-option",24),t(88,` `),s(),t(89,` `),s(),t(90,` @@ -42067,66 +42067,66 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),s(),t(104,` `),s(),t(105,` - `),x(106,$ki,55,3,"table",28),t(107,` + `),x(106,Uki,55,3,"table",28),t(107,` - `),x(108,Wki,8,3,"div",3),t(109,` + `),x(108,$ki,8,3,"div",3),t(109,` `),s()}if(e&2){let i=Mt(50),o=Mt(64),n=A();l(8),Xt("placeholder",d(9,23,"labels.text.Search by user")),l(10),P("",d(19,25,"labels.buttons.Approve"),` `),l(6),P("",d(25,27,"labels.buttons.Delete"),` `),l(6),P("",d(31,29,"labels.buttons.Reject"),` `),l(5),g("formGroup",n.makerCheckerSearchForm),l(7),b(d(43,31,"labels.inputs.From Date")),l(3),g("min",n.minDate)("max",n.maxDate)("matDatepicker",i),l(2),g("for",i),l(9),b(d(57,33,"labels.inputs.To Date")),l(3),g("min",n.minDate)("max",n.maxDate)("matDatepicker",o),l(2),g("for",o),l(9),b(d(71,35,"labels.inputs.Action")),l(5),g("ngForOf",n.makerCheckerTemplate.actionNames),l(7),b(d(83,37,"labels.inputs.Entity")),l(5),g("ngForOf",n.makerCheckerTemplate.entityNames),l(7),b(d(95,39,"labels.inputs.Resource ID")),l(7),P(` `,d(102,41,"labels.buttons.Search"),` - `),l(5),g("ngIf",!n.noSearchedData),l(2),g("ngIf",n.noSearchedData)}}function Yki(e,r){e&1&&(a(0,"div",48),t(1,` + `),l(5),g("ngIf",!n.noSearchedData),l(2),g("ngIf",n.noSearchedData)}}function Qki(e,r){e&1&&(a(0,"div",48),t(1,` `),a(2,"div",49),t(3,` `),k(4,"i",50),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(5),P(` `,d(6,1,"labels.text.No checker inbox data available for this account"),` - `))}var mA=(()=>{class e{constructor(i,o,n,c,u,h,_,y){this.route=i,this.dialog=o,this.dateUtils=n,this.router=c,this.translateService=u,this.tasksService=h,this.settingsService=_,this.formBuilder=y,this.noSearchedData=!1,this.checkerData=!1,this.minDate=new Date(2e3,0,1),this.maxDate=new Date(2100,0,1),this.displayedColumns=["select","id","madeOnDate","status","user","action","entity"],this.route.data.subscribe(C=>{this.searchData=C.makerCheckerResource,this.searchData.length>0&&(this.checkerData=!0),this.makerCheckerTemplate=C.makerCheckerTemplate,this.dataSource=new ci(this.searchData),this.selection=new qs(!0,[])})}ngOnInit(){this.createMakerCheckerSearchForm()}createMakerCheckerSearchForm(){this.makerCheckerSearchForm=this.formBuilder.group({makerDateTimeFrom:[""],makerDateTimeto:[""],actionName:[""],entityName:[""],resourceId:[""]})}search(){let i=this.settingsService.dateFormat,o=oi(ye({},this.makerCheckerSearchForm.value),{makerDateTimeFrom:this.dateUtils.formatDate(this.makerCheckerSearchForm.value.makerDateTimeFrom,i),makerDateTimeto:this.dateUtils.formatDate(this.makerCheckerSearchForm.value.makerDateTimeto,i)});this.tasksService.getMakerCheckerData(o).subscribe(n=>{this.searchData=n,this.searchData.length===0?this.noSearchedData=!0:this.noSearchedData=!1,this.dataSource=new ci(this.searchData),this.selection=new qs(!0,[])})}isAllSelected(){let i=this.selection.selected.length,o=this.dataSource.data.length;return i===o}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(i=>this.selection.select(i))}checkboxLabel(i){return i?`${this.selection.isSelected(i)?"deselect":"select"} row ${i.position+1}`:`${this.isAllSelected()?"select":"deselect"} all`}approveChecker(){this.dialog.open(Xs,{data:{heading:this.translateService.instant("labels.heading.Approve Checker"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want to approve checker")}}).afterClosed().subscribe(o=>{o.confirm&&this.bulkCheckerApproveorReject("approve")})}rejectChecker(){this.dialog.open(Xs,{data:{heading:this.translateService.instant("labels.heading.Reject Checker"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want to reject checker")}}).afterClosed().subscribe(o=>{o.confirm&&this.bulkCheckerApproveorReject("reject")})}deleteChecker(){this.dialog.open(Xs,{data:{heading:this.translateService.instant("labels.heading.Delete Checker"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want to delete checker")}}).afterClosed().subscribe(o=>{o.confirm&&this.bulkDeleteChecker()})}bulkCheckerApproveorReject(i){let o=this.selection.selected.length,n=this.selection.selected,c=0;n.forEach(u=>{this.tasksService.executeMakerCheckerAction(u.id,i).subscribe(h=>{c++,o===c&&this.reload()})})}bulkDeleteChecker(){let i=this.selection.selected.length,o=this.selection.selected,n=0;o.forEach(c=>{this.tasksService.deleteMakerChecker(c.id).subscribe(u=>{n++,i===n&&this.reload()})})}applyFilter(i=""){this.dataSource.filter=i.trim().toLowerCase()}reload(){let i=this.router.url;this.router.navigateByUrl("/checker-inbox-and-tasks",{skipLocationChange:!0}).then(()=>this.router.navigate([i]))}static{this.\u0275fac=function(o){return new(o||e)(V(Lt),V(ni),V(_i),V(te),V(zi),V(Ko),V(We),V(xe))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-checker-inbox"]],decls:4,vars:2,consts:[["makerDateTimeFromPicker",""],["makerDateTimetoPicker",""],["class","tab-container mat-typography",4,"ngIf"],["class","alert",4,"ngIf"],[1,"tab-container","mat-typography"],[1,"layout-row","align-start-center"],[1,"search-box","flex-40"],[1,"flex-fill","flex-90"],["matInput","",3,"keyup","placeholder"],[1,"flex-60","gap-8px"],["mat-raised-button","","color","success",3,"click"],["icon","check",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"],["mat-raised-button","","color","reject",3,"click"],["icon","times",1,"m-r-10"],[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-fill","flex-31",3,"click"],["matInput","","formControlName","makerDateTimeFrom",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","makerDateTimeto",3,"min","max","matDatepicker"],[1,"flex-31"],["formControlName","actionName"],[3,"value",4,"ngFor","ngForOf"],["formControlName","entityName"],["matInput","","formControlName","resourceId"],["mat-raised-button","","color","primary","id","search-button",3,"click"],["mat-table","",3,"dataSource",4,"ngIf"],[3,"value"],["mat-table","",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","id"],["matColumnDef","madeOnDate"],["matColumnDef","status"],["matColumnDef","user"],["matColumnDef","action"],["matColumnDef","entity"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],[3,"change","checked","indeterminate","aria-label"],["mat-cell",""],[3,"click","change","checked","aria-label"],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"],[1,"alert"],[1,"message"],[1,"fa","fa-exclamation-circle","alert-check","fa-2x"]],template:function(o,n){o&1&&(x(0,Qki,110,43,"div",2),t(1,` + `))}var mA=(()=>{class e{constructor(i,o,n,c,u,h,_,y){this.route=i,this.dialog=o,this.dateUtils=n,this.router=c,this.translateService=u,this.tasksService=h,this.settingsService=_,this.formBuilder=y,this.noSearchedData=!1,this.checkerData=!1,this.minDate=new Date(2e3,0,1),this.maxDate=new Date(2100,0,1),this.displayedColumns=["select","id","madeOnDate","status","user","action","entity"],this.route.data.subscribe(C=>{this.searchData=C.makerCheckerResource,this.searchData.length>0&&(this.checkerData=!0),this.makerCheckerTemplate=C.makerCheckerTemplate,this.dataSource=new ci(this.searchData),this.selection=new qs(!0,[])})}ngOnInit(){this.createMakerCheckerSearchForm()}createMakerCheckerSearchForm(){this.makerCheckerSearchForm=this.formBuilder.group({makerDateTimeFrom:[""],makerDateTimeto:[""],actionName:[""],entityName:[""],resourceId:[""]})}search(){let i=this.settingsService.dateFormat,o=oi(ye({},this.makerCheckerSearchForm.value),{makerDateTimeFrom:this.dateUtils.formatDate(this.makerCheckerSearchForm.value.makerDateTimeFrom,i),makerDateTimeto:this.dateUtils.formatDate(this.makerCheckerSearchForm.value.makerDateTimeto,i)});this.tasksService.getMakerCheckerData(o).subscribe(n=>{this.searchData=n,this.searchData.length===0?this.noSearchedData=!0:this.noSearchedData=!1,this.dataSource=new ci(this.searchData),this.selection=new qs(!0,[])})}isAllSelected(){let i=this.selection.selected.length,o=this.dataSource.data.length;return i===o}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(i=>this.selection.select(i))}checkboxLabel(i){return i?`${this.selection.isSelected(i)?"deselect":"select"} row ${i.position+1}`:`${this.isAllSelected()?"select":"deselect"} all`}approveChecker(){this.dialog.open(Xs,{data:{heading:this.translateService.instant("labels.heading.Approve Checker"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want to approve checker")}}).afterClosed().subscribe(o=>{o.confirm&&this.bulkCheckerApproveorReject("approve")})}rejectChecker(){this.dialog.open(Xs,{data:{heading:this.translateService.instant("labels.heading.Reject Checker"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want to reject checker")}}).afterClosed().subscribe(o=>{o.confirm&&this.bulkCheckerApproveorReject("reject")})}deleteChecker(){this.dialog.open(Xs,{data:{heading:this.translateService.instant("labels.heading.Delete Checker"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want to delete checker")}}).afterClosed().subscribe(o=>{o.confirm&&this.bulkDeleteChecker()})}bulkCheckerApproveorReject(i){let o=this.selection.selected.length,n=this.selection.selected,c=0;n.forEach(u=>{this.tasksService.executeMakerCheckerAction(u.id,i).subscribe(h=>{c++,o===c&&this.reload()})})}bulkDeleteChecker(){let i=this.selection.selected.length,o=this.selection.selected,n=0;o.forEach(c=>{this.tasksService.deleteMakerChecker(c.id).subscribe(u=>{n++,i===n&&this.reload()})})}applyFilter(i=""){this.dataSource.filter=i.trim().toLowerCase()}reload(){let i=this.router.url;this.router.navigateByUrl("/checker-inbox-and-tasks",{skipLocationChange:!0}).then(()=>this.router.navigate([i]))}static{this.\u0275fac=function(o){return new(o||e)(V(Lt),V(ni),V(_i),V(te),V(zi),V(Ko),V(We),V(xe))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-checker-inbox"]],decls:4,vars:2,consts:[["makerDateTimeFromPicker",""],["makerDateTimetoPicker",""],["class","tab-container mat-typography",4,"ngIf"],["class","alert",4,"ngIf"],[1,"tab-container","mat-typography"],[1,"layout-row","align-start-center"],[1,"search-box","flex-40"],[1,"flex-fill","flex-90"],["matInput","",3,"keyup","placeholder"],[1,"flex-60","gap-8px"],["mat-raised-button","","color","success",3,"click"],["icon","check",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"],["mat-raised-button","","color","reject",3,"click"],["icon","times",1,"m-r-10"],[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-fill","flex-31",3,"click"],["matInput","","formControlName","makerDateTimeFrom",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","makerDateTimeto",3,"min","max","matDatepicker"],[1,"flex-31"],["formControlName","actionName"],[3,"value",4,"ngFor","ngForOf"],["formControlName","entityName"],["matInput","","formControlName","resourceId"],["mat-raised-button","","color","primary","id","search-button",3,"click"],["mat-table","",3,"dataSource",4,"ngIf"],[3,"value"],["mat-table","",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","id"],["matColumnDef","madeOnDate"],["matColumnDef","status"],["matColumnDef","user"],["matColumnDef","action"],["matColumnDef","entity"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],[3,"change","checked","indeterminate","aria-label"],["mat-cell",""],[3,"click","change","checked","aria-label"],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"],[1,"alert"],[1,"message"],[1,"fa","fa-exclamation-circle","alert-check","fa-2x"]],template:function(o,n){o&1&&(x(0,Wki,110,43,"div",2),t(1,` -`),x(2,Yki,8,3,"div",3),t(3,` -`)),o&2&&(g("ngIf",n.checkerData),l(2),g("ngIf",!n.checkerData))},dependencies:[St,se,zt,wt,ge,Se,re,ue,fe,he,qt,Ht,$t,Si,Zt,Oe,De,Mi,Di,Ti,Dt,Ai,Gi,Et,Gt,Fe,Ne,Re,Le,Be,Ve,ze,qe,je,He],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] .mat-raised-button.mat-success[_ngcontent-%COMP%]{color:#fff;background-color:#008000ab}.tab-container[_ngcontent-%COMP%] .mat-raised-button.mat-reject[_ngcontent-%COMP%]{color:#fff;background-color:#ffca00}.tab-container[_ngcontent-%COMP%] #search-button[_ngcontent-%COMP%]{height:2.5rem;margin-top:1rem}.tab-container[_ngcontent-%COMP%] .view-details[_ngcontent-%COMP%], .tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr.select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem}"]})}}return e})();var dA=Pp(Uh());var Mz=e=>["../../clients",e];function Kki(e,r){if(e&1){let i=st();a(0,"button",10),q("click",function(){W(i);let n=A(2);return Q(n.approveClients())}),t(1,` +`),x(2,Qki,8,3,"div",3),t(3,` +`)),o&2&&(g("ngIf",n.checkerData),l(2),g("ngIf",!n.checkerData))},dependencies:[St,se,zt,wt,ge,Se,re,ue,fe,he,qt,Ht,$t,Si,Zt,Oe,De,Mi,Di,Ti,Dt,Ai,Gi,Et,Gt,Fe,Ne,Re,Le,Be,Ve,ze,qe,je,He],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] .mat-raised-button.mat-success[_ngcontent-%COMP%]{color:#fff;background-color:#008000ab}.tab-container[_ngcontent-%COMP%] .mat-raised-button.mat-reject[_ngcontent-%COMP%]{color:#fff;background-color:#ffca00}.tab-container[_ngcontent-%COMP%] #search-button[_ngcontent-%COMP%]{height:2.5rem;margin-top:1rem}.tab-container[_ngcontent-%COMP%] .view-details[_ngcontent-%COMP%], .tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr.select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem}"]})}}return e})();var dA=Pp(Uh());var Mz=e=>["../../clients",e];function Yki(e,r){if(e&1){let i=st();a(0,"button",10),q("click",function(){W(i);let n=A(2);return Q(n.approveClients())}),t(1,` `),k(2,"fa-icon",11),t(3),m(4,"translate"),s()}e&2&&(l(3),P("",d(4,1,"labels.buttons.Approve"),` - `))}function Jki(e,r){if(e&1){let i=st();a(0,"th",23),t(1,` + `))}function Kki(e,r){if(e&1){let i=st();a(0,"th",23),t(1,` `),a(2,"mat-checkbox",24),q("change",function(n){W(i);let c=A(2).$implicit,u=A(2);return Q(n?u.masterToggle(c.value):null)}),t(3,` `),s(),t(4,` - `),s()}if(e&2){let i=A(2).$implicit,o=A(2);l(2),g("checked",o.selection.hasValue()&&o.isAllSelected(i.value))("indeterminate",o.selection.hasValue()&&!o.isAllSelected(i.value))("aria-label",o.checkboxLabel(i.value))}}function Zki(e,r){if(e&1){let i=st();a(0,"td",25),t(1,` + `),s()}if(e&2){let i=A(2).$implicit,o=A(2);l(2),g("checked",o.selection.hasValue()&&o.isAllSelected(i.value))("indeterminate",o.selection.hasValue()&&!o.isAllSelected(i.value))("aria-label",o.checkboxLabel(i.value))}}function Jki(e,r){if(e&1){let i=st();a(0,"td",25),t(1,` `),a(2,"mat-checkbox",26),q("click",function(n){return W(i),Q(n.stopPropagation())})("change",function(n){let c=W(i).$implicit,u=A(4);return Q(n?u.selection.toggle(c):null)}),t(3,` `),s(),t(4,` - `),s()}if(e&2){let i=r.$implicit,o=A(4);l(2),g("checked",o.selection.isSelected(i))("aria-label",o.checkboxLabel(i))}}function Xki(e,r){e&1&&(a(0,"th",23),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.name")))}function tIi(e,r){if(e&1&&(a(0,"td",27),t(1),s()),e&2){let i=r.$implicit;g("routerLink",Xe(2,Mz,i.id)),l(),P(` + `),s()}if(e&2){let i=r.$implicit,o=A(4);l(2),g("checked",o.selection.isSelected(i))("aria-label",o.checkboxLabel(i))}}function Zki(e,r){e&1&&(a(0,"th",23),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.name")))}function Xki(e,r){if(e&1&&(a(0,"td",27),t(1),s()),e&2){let i=r.$implicit;g("routerLink",Xe(2,Mz,i.id)),l(),P(` `,i.displayName,` - `)}}function eIi(e,r){e&1&&(a(0,"th",23),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Account Number")))}function iIi(e,r){if(e&1&&(a(0,"td",27),t(1),s()),e&2){let i=r.$implicit;g("routerLink",Xe(2,Mz,i.id)),l(),P(` + `)}}function tIi(e,r){e&1&&(a(0,"th",23),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Account Number")))}function eIi(e,r){if(e&1&&(a(0,"td",27),t(1),s()),e&2){let i=r.$implicit;g("routerLink",Xe(2,Mz,i.id)),l(),P(` `,i.accountNo,` - `)}}function nIi(e,r){e&1&&(a(0,"th",23),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Staff")))}function rIi(e,r){if(e&1&&(a(0,"td",27),t(1),s()),e&2){let i=r.$implicit;g("routerLink",Xe(2,Mz,i.id)),l(),P(` + `)}}function iIi(e,r){e&1&&(a(0,"th",23),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Staff")))}function nIi(e,r){if(e&1&&(a(0,"td",27),t(1),s()),e&2){let i=r.$implicit;g("routerLink",Xe(2,Mz,i.id)),l(),P(` `,i.staffName,` - `)}}function oIi(e,r){e&1&&k(0,"tr",28)}function aIi(e,r){if(e&1){let i=st();a(0,"tr",29),q("click",function(){let n=W(i).$implicit,c=A(4);return Q(c.selection.toggle(n))}),s()}}function sIi(e,r){if(e&1&&(ot(0),t(1,` + `)}}function rIi(e,r){e&1&&k(0,"tr",28)}function oIi(e,r){if(e&1){let i=st();a(0,"tr",29),q("click",function(){let n=W(i).$implicit,c=A(4);return Q(c.selection.toggle(n))}),s()}}function aIi(e,r){if(e&1&&(ot(0),t(1,` `),a(2,"table",13),m(3,"accountsFilter"),t(4,` `),ot(5,14),t(6,` - `),x(7,Jki,5,3,"th",15),t(8,` - `),x(9,Zki,5,2,"td",16),t(10,` + `),x(7,Kki,5,3,"th",15),t(8,` + `),x(9,Jki,5,2,"td",16),t(10,` `),at(),t(11,` `),ot(12,17),t(13,` - `),x(14,Xki,3,3,"th",15),t(15,` - `),x(16,tIi,2,4,"td",18),t(17,` + `),x(14,Zki,3,3,"th",15),t(15,` + `),x(16,Xki,2,4,"td",18),t(17,` `),at(),t(18,` `),ot(19,19),t(20,` - `),x(21,eIi,3,3,"th",15),t(22,` - `),x(23,iIi,2,4,"td",18),t(24,` + `),x(21,tIi,3,3,"th",15),t(22,` + `),x(23,eIi,2,4,"td",18),t(24,` `),at(),t(25,` `),ot(26,20),t(27,` - `),x(28,nIi,3,3,"th",15),t(29,` - `),x(30,rIi,2,4,"td",18),t(31,` + `),x(28,iIi,3,3,"th",15),t(29,` + `),x(30,nIi,2,4,"td",18),t(31,` `),at(),t(32,` - `),x(33,oIi,1,0,"tr",21),t(34,` - `),x(35,aIi,1,0,"tr",22),t(36,` + `),x(33,rIi,1,0,"tr",21),t(34,` + `),x(35,oIi,1,0,"tr",22),t(36,` `),s(),t(37,` - `),at()),e&2){let i=A().$implicit,o=A(2);l(2),g("dataSource",Ye(3,3,i.value,"clientApproval")),l(31),g("matHeaderRowDef",o.displayedColumns),l(2),g("matRowDefColumns",o.displayedColumns)}}function lIi(e,r){if(e&1&&(ot(0),t(1,` + `),at()),e&2){let i=A().$implicit,o=A(2);l(2),g("dataSource",Ye(3,3,i.value,"clientApproval")),l(31),g("matHeaderRowDef",o.displayedColumns),l(2),g("matRowDefColumns",o.displayedColumns)}}function sIi(e,r){if(e&1&&(ot(0),t(1,` `),a(2,"h3"),t(3),s(),t(4,` - `),x(5,sIi,38,6,"ng-container",12),t(6,` - `),at()),e&2){let i=r.$implicit;l(3),b(i.key),l(2),g("ngIf",i.value.length>0)}}function cIi(e,r){if(e&1){let i=st();a(0,"div",2),t(1,` + `),x(5,aIi,38,6,"ng-container",12),t(6,` + `),at()),e&2){let i=r.$implicit;l(3),b(i.key),l(2),g("ngIf",i.value.length>0)}}function lIi(e,r){if(e&1){let i=st();a(0,"div",2),t(1,` `),a(2,"div",3),t(3,` `),a(4,"div",4),t(5,` `),a(6,"mat-form-field",5),t(7,` @@ -42134,66 +42134,66 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),s(),t(11,` `),s(),t(12,` `),a(13,"div",7),t(14,` - `),x(15,Kki,5,3,"button",8),t(16,` + `),x(15,Yki,5,3,"button",8),t(16,` `),s(),t(17,` `),s(),t(18,` - `),x(19,lIi,7,2,"ng-container",9),m(20,"keyvalue"),t(21,` -`),s()}if(e&2){let i=A();l(8),Xt("placeholder",d(9,3,"labels.text.Filter by name")),l(7),g("mifosxHasPermission","ACTIVATE_CLIENT"),l(4),g("ngForOf",d(20,5,i.groupedClients))}}function pIi(e,r){e&1&&(a(0,"div",30),t(1,` + `),x(19,sIi,7,2,"ng-container",9),m(20,"keyvalue"),t(21,` +`),s()}if(e&2){let i=A();l(8),Xt("placeholder",d(9,3,"labels.text.Filter by name")),l(7),g("mifosxHasPermission","ACTIVATE_CLIENT"),l(4),g("ngForOf",d(20,5,i.groupedClients))}}function cIi(e,r){e&1&&(a(0,"div",30),t(1,` `),a(2,"div",31),t(3,` `),k(4,"i",32),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(5),P(` `,d(6,1,"labels.text.No pending loans for approval"),` - `))}var uA=(()=>{class e{constructor(i,o,n,c,u,h){this.route=i,this.dialog=o,this.dateUtils=n,this.router=c,this.settingsService=u,this.tasksService=h,this.showData=!1,this.displayedColumns=["select","name","accountNumber","staff"],this.route.data.subscribe(_=>{this.groupedClients=dA.groupBy(_.groupedClientData.pageItems,"officeName"),Object.keys(this.groupedClients).length&&(this.showData=!0),this.dataSource=new ci(_.groupedClientData.pageItems),this.selection=new qs(!0,[])})}isAllSelected(i){if(i){let o=this.selection.selected;return dA.difference(i,o).length===0}}masterToggle(i){i&&(this.isAllSelected(i)?i.forEach(o=>this.selection.deselect(o)):i.forEach(o=>this.selection.select(o)))}checkboxLabel(i){return i?`${this.selection.isSelected(i)?"deselect":"select"} row ${i.position+1}`:`${this.isAllSelected(i)?"select":"deselect"} all`}approveClients(){let i=[new Is({controlName:"actDate",label:"Date",value:new Date,type:"datetime-local",required:!0})],o={title:"Enter Clients Activation Date",layout:{addButtonText:"Confirm"},formfields:i};this.dialog.open(Fn,{data:o}).afterClosed().subscribe(c=>{c.data&&this.bulkClientApproval(c.data)})}bulkClientApproval(i){let o=this.settingsService.dateFormat,n=this.dateUtils.formatDate(i.value.actDate,o),c=this.settingsService.language.code,u={dateFormat:o,activationDate:n,locale:c},h=this.selection.selected.length,_=this.selection.selected,y=0;this.batchRequests=[];let C=1;_.forEach(E=>{let T="clients/"+E.id+"?command=activate",D=JSON.stringify(u),M={requestId:C++,relativeUrl:T,method:"POST",body:D};this.batchRequests.push(M)}),this.tasksService.submitBatchData(this.batchRequests).subscribe(E=>{E.forEach(T=>{(T.statusCode="200")&&(y++,T.body=JSON.parse(T.body),h===y&&this.reload())})})}applyFilter(i=""){this.dataSource.filter=i.trim().toLowerCase()}reload(){let i=this.router.url;this.router.navigateByUrl("/checker-inbox-and-tasks",{skipLocationChange:!0}).then(()=>this.router.navigate([i]))}static{this.\u0275fac=function(o){return new(o||e)(V(Lt),V(ni),V(_i),V(te),V(We),V(Ko))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-client-approval"]],decls:4,vars:2,consts:[["class","tab-container mat-typography",4,"ngIf"],["class","alert",4,"ngIf"],[1,"tab-container","mat-typography"],[1,"layout-row","align-start-center"],[1,"search-box","flex-40"],[1,"flex-fill","flex-90"],["matInput","",3,"keyup","placeholder"],[1,"flex-60"],["mat-raised-button","","color","success",3,"click",4,"mifosxHasPermission"],[4,"ngFor","ngForOf"],["mat-raised-button","","color","success",3,"click"],["icon","check",1,"m-r-10"],[4,"ngIf"],["mat-table","",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","","class","view-details",3,"routerLink",4,"matCellDef"],["matColumnDef","accountNumber"],["matColumnDef","staff"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"click",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],[3,"change","checked","indeterminate","aria-label"],["mat-cell",""],[3,"click","change","checked","aria-label"],["mat-cell","",1,"view-details",3,"routerLink"],["mat-header-row",""],["mat-row","",3,"click"],[1,"alert"],[1,"message"],[1,"fa","fa-exclamation-circle","alert-check"]],template:function(o,n){o&1&&(x(0,cIi,22,7,"div",0),t(1,` + `))}var uA=(()=>{class e{constructor(i,o,n,c,u,h){this.route=i,this.dialog=o,this.dateUtils=n,this.router=c,this.settingsService=u,this.tasksService=h,this.showData=!1,this.displayedColumns=["select","name","accountNumber","staff"],this.route.data.subscribe(_=>{this.groupedClients=dA.groupBy(_.groupedClientData.pageItems,"officeName"),Object.keys(this.groupedClients).length&&(this.showData=!0),this.dataSource=new ci(_.groupedClientData.pageItems),this.selection=new qs(!0,[])})}isAllSelected(i){if(i){let o=this.selection.selected;return dA.difference(i,o).length===0}}masterToggle(i){i&&(this.isAllSelected(i)?i.forEach(o=>this.selection.deselect(o)):i.forEach(o=>this.selection.select(o)))}checkboxLabel(i){return i?`${this.selection.isSelected(i)?"deselect":"select"} row ${i.position+1}`:`${this.isAllSelected(i)?"select":"deselect"} all`}approveClients(){let i=[new Is({controlName:"actDate",label:"Date",value:new Date,type:"datetime-local",required:!0})],o={title:"Enter Clients Activation Date",layout:{addButtonText:"Confirm"},formfields:i};this.dialog.open(Fn,{data:o}).afterClosed().subscribe(c=>{c.data&&this.bulkClientApproval(c.data)})}bulkClientApproval(i){let o=this.settingsService.dateFormat,n=this.dateUtils.formatDate(i.value.actDate,o),c=this.settingsService.language.code,u={dateFormat:o,activationDate:n,locale:c},h=this.selection.selected.length,_=this.selection.selected,y=0;this.batchRequests=[];let C=1;_.forEach(E=>{let T="clients/"+E.id+"?command=activate",D=JSON.stringify(u),M={requestId:C++,relativeUrl:T,method:"POST",body:D};this.batchRequests.push(M)}),this.tasksService.submitBatchData(this.batchRequests).subscribe(E=>{E.forEach(T=>{(T.statusCode="200")&&(y++,T.body=JSON.parse(T.body),h===y&&this.reload())})})}applyFilter(i=""){this.dataSource.filter=i.trim().toLowerCase()}reload(){let i=this.router.url;this.router.navigateByUrl("/checker-inbox-and-tasks",{skipLocationChange:!0}).then(()=>this.router.navigate([i]))}static{this.\u0275fac=function(o){return new(o||e)(V(Lt),V(ni),V(_i),V(te),V(We),V(Ko))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-client-approval"]],decls:4,vars:2,consts:[["class","tab-container mat-typography",4,"ngIf"],["class","alert",4,"ngIf"],[1,"tab-container","mat-typography"],[1,"layout-row","align-start-center"],[1,"search-box","flex-40"],[1,"flex-fill","flex-90"],["matInput","",3,"keyup","placeholder"],[1,"flex-60"],["mat-raised-button","","color","success",3,"click",4,"mifosxHasPermission"],[4,"ngFor","ngForOf"],["mat-raised-button","","color","success",3,"click"],["icon","check",1,"m-r-10"],[4,"ngIf"],["mat-table","",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","","class","view-details",3,"routerLink",4,"matCellDef"],["matColumnDef","accountNumber"],["matColumnDef","staff"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"click",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],[3,"change","checked","indeterminate","aria-label"],["mat-cell",""],[3,"click","change","checked","aria-label"],["mat-cell","",1,"view-details",3,"routerLink"],["mat-header-row",""],["mat-row","",3,"click"],[1,"alert"],[1,"message"],[1,"fa","fa-exclamation-circle","alert-check"]],template:function(o,n){o&1&&(x(0,lIi,22,7,"div",0),t(1,` -`),x(2,pIi,8,3,"div",1),t(3,` -`)),o&2&&(g("ngIf",n.showData),l(2),g("ngIf",!n.showData))},dependencies:[St,se,zt,rw,wt,qt,Ht,Zt,Dt,Ai,de,Et,Gt,Fe,Ne,Re,Le,Be,Ve,ze,qe,je,He,Mp],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] .mat-raised-button.mat-success[_ngcontent-%COMP%]{color:#fff;background-color:#008000ab}.tab-container[_ngcontent-%COMP%] .view-details[_ngcontent-%COMP%]{cursor:pointer}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem}"]})}}return e})();var xft=Pp(Uh());var mIi=e=>["../../clients",e,"general"],dIi=e=>["../../clients",e,"loans-accounts","loan.id"];function uIi(e,r){if(e&1){let i=st();a(0,"button",10),q("click",function(){W(i);let n=A(2);return Q(n.approveLoan())}),t(1,` +`),x(2,cIi,8,3,"div",1),t(3,` +`)),o&2&&(g("ngIf",n.showData),l(2),g("ngIf",!n.showData))},dependencies:[St,se,zt,rw,wt,qt,Ht,Zt,Dt,Ai,de,Et,Gt,Fe,Ne,Re,Le,Be,Ve,ze,qe,je,He,Mp],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] .mat-raised-button.mat-success[_ngcontent-%COMP%]{color:#fff;background-color:#008000ab}.tab-container[_ngcontent-%COMP%] .view-details[_ngcontent-%COMP%]{cursor:pointer}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem}"]})}}return e})();var xft=Pp(Uh());var pIi=e=>["../../clients",e,"general"],mIi=e=>["../../clients",e,"loans-accounts","loan.id"];function dIi(e,r){if(e&1){let i=st();a(0,"button",10),q("click",function(){W(i);let n=A(2);return Q(n.approveLoan())}),t(1,` `),k(2,"fa-icon",11),t(3),m(4,"translate"),s()}e&2&&(l(3),P("",d(4,1,"labels.buttons.Approve"),` - `))}function fIi(e,r){if(e&1){let i=st();a(0,"th",25),t(1,` + `))}function uIi(e,r){if(e&1){let i=st();a(0,"th",25),t(1,` `),a(2,"mat-checkbox",26),q("change",function(n){W(i);let c=A(2).$implicit,u=A(2);return Q(n?u.masterToggle(c.loans):null)}),t(3,` `),s(),t(4,` - `),s()}if(e&2){let i=A(2).$implicit,o=A(2);l(2),g("checked",o.selection.hasValue()&&o.isAllSelected(i.loans))("indeterminate",o.selection.hasValue()&&!o.isAllSelected(i.loans))("aria-label",o.checkboxLabel(i.loans))}}function hIi(e,r){if(e&1){let i=st();a(0,"td",27),t(1,` + `),s()}if(e&2){let i=A(2).$implicit,o=A(2);l(2),g("checked",o.selection.hasValue()&&o.isAllSelected(i.loans))("indeterminate",o.selection.hasValue()&&!o.isAllSelected(i.loans))("aria-label",o.checkboxLabel(i.loans))}}function fIi(e,r){if(e&1){let i=st();a(0,"td",27),t(1,` `),a(2,"mat-checkbox",28),q("click",function(n){return W(i),Q(n.stopPropagation())})("change",function(n){let c=W(i).$implicit,u=A(4);return Q(n?u.selection.toggle(c):null)}),t(3,` `),s(),t(4,` - `),s()}if(e&2){let i=r.$implicit,o=A(4);l(2),g("checked",o.selection.isSelected(i))("aria-label",o.checkboxLabel(i))}}function gIi(e,r){e&1&&(a(0,"th",25),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Client")))}function xIi(e,r){if(e&1&&(a(0,"td",29),t(1),s()),e&2){let i=r.$implicit;g("routerLink",Xe(2,mIi,i.clientId)),l(),P(` + `),s()}if(e&2){let i=r.$implicit,o=A(4);l(2),g("checked",o.selection.isSelected(i))("aria-label",o.checkboxLabel(i))}}function hIi(e,r){e&1&&(a(0,"th",25),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Client")))}function gIi(e,r){if(e&1&&(a(0,"td",29),t(1),s()),e&2){let i=r.$implicit;g("routerLink",Xe(2,pIi,i.clientId)),l(),P(` `,i.clientName,` - `)}}function _Ii(e,r){e&1&&(a(0,"th",25),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Loan")))}function vIi(e,r){if(e&1&&(a(0,"td",29),t(1),s()),e&2){let i=r.$implicit;g("routerLink",Xe(3,dIi,i.clientId)),l(),_t(` + `)}}function xIi(e,r){e&1&&(a(0,"th",25),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Loan")))}function _Ii(e,r){if(e&1&&(a(0,"td",29),t(1),s()),e&2){let i=r.$implicit;g("routerLink",Xe(3,mIi,i.clientId)),l(),_t(` `,i.loanProductName,"(",i.accountNo,`) - `)}}function bIi(e,r){e&1&&(a(0,"th",25),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Amount")))}function CIi(e,r){if(e&1&&(a(0,"td",27),t(1),m(2,"formatNumber"),s()),e&2){let i=r.$implicit;l(),b(d(2,1,i.principal))}}function yIi(e,r){e&1&&(a(0,"th",25),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Loan Purpose")))}function SIi(e,r){if(e&1&&(a(0,"td",27),t(1),s()),e&2){let i=r.$implicit;l(),b(i.loanPurposeName)}}function wIi(e,r){e&1&&k(0,"tr",30)}function EIi(e,r){if(e&1){let i=st();a(0,"tr",31),q("click",function(){let n=W(i).$implicit,c=A(4);return Q(c.selection.toggle(n))}),s()}}function PIi(e,r){if(e&1&&(ot(0),t(1,` + `)}}function vIi(e,r){e&1&&(a(0,"th",25),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Amount")))}function bIi(e,r){if(e&1&&(a(0,"td",27),t(1),m(2,"formatNumber"),s()),e&2){let i=r.$implicit;l(),b(d(2,1,i.principal))}}function CIi(e,r){e&1&&(a(0,"th",25),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Loan Purpose")))}function yIi(e,r){if(e&1&&(a(0,"td",27),t(1),s()),e&2){let i=r.$implicit;l(),b(i.loanPurposeName)}}function SIi(e,r){e&1&&k(0,"tr",30)}function wIi(e,r){if(e&1){let i=st();a(0,"tr",31),q("click",function(){let n=W(i).$implicit,c=A(4);return Q(c.selection.toggle(n))}),s()}}function EIi(e,r){if(e&1&&(ot(0),t(1,` `),a(2,"table",14),t(3,` `),ot(4,15),t(5,` - `),x(6,fIi,5,3,"th",16),t(7,` - `),x(8,hIi,5,2,"td",17),t(9,` + `),x(6,uIi,5,3,"th",16),t(7,` + `),x(8,fIi,5,2,"td",17),t(9,` `),at(),t(10,` `),ot(11,18),t(12,` - `),x(13,gIi,3,3,"th",16),t(14,` - `),x(15,xIi,2,4,"td",19),t(16,` + `),x(13,hIi,3,3,"th",16),t(14,` + `),x(15,gIi,2,4,"td",19),t(16,` `),at(),t(17,` `),ot(18,20),t(19,` - `),x(20,_Ii,3,3,"th",16),t(21,` - `),x(22,vIi,2,5,"td",19),t(23,` + `),x(20,xIi,3,3,"th",16),t(21,` + `),x(22,_Ii,2,5,"td",19),t(23,` `),at(),t(24,` `),ot(25,21),t(26,` - `),x(27,bIi,3,3,"th",16),t(28,` - `),x(29,CIi,3,3,"td",17),t(30,` + `),x(27,vIi,3,3,"th",16),t(28,` + `),x(29,bIi,3,3,"td",17),t(30,` `),at(),t(31,` `),ot(32,22),t(33,` - `),x(34,yIi,3,3,"th",16),t(35,` - `),x(36,SIi,2,1,"td",17),t(37,` + `),x(34,CIi,3,3,"th",16),t(35,` + `),x(36,yIi,2,1,"td",17),t(37,` `),at(),t(38,` - `),x(39,wIi,1,0,"tr",23),t(40,` - `),x(41,EIi,1,0,"tr",24),t(42,` + `),x(39,SIi,1,0,"tr",23),t(40,` + `),x(41,wIi,1,0,"tr",24),t(42,` `),s(),t(43,` - `),at()),e&2){let i=A().$implicit,o=A(2);l(2),g("dataSource",i.loans),l(37),g("matHeaderRowDef",o.displayedColumns),l(2),g("matRowDefColumns",o.displayedColumns)}}function kIi(e,r){if(e&1&&(ot(0),t(1,` + `),at()),e&2){let i=A().$implicit,o=A(2);l(2),g("dataSource",i.loans),l(37),g("matHeaderRowDef",o.displayedColumns),l(2),g("matRowDefColumns",o.displayedColumns)}}function PIi(e,r){if(e&1&&(ot(0),t(1,` `),a(2,"h3",12),t(3),s(),t(4,` - `),x(5,PIi,44,3,"ng-container",13),t(6,` - `),at()),e&2){let i=r.$implicit;l(3),b(i.name),l(2),g("ngIf",i.loans.length>0)}}function IIi(e,r){if(e&1){let i=st();a(0,"div",2),t(1,` + `),x(5,EIi,44,3,"ng-container",13),t(6,` + `),at()),e&2){let i=r.$implicit;l(3),b(i.name),l(2),g("ngIf",i.loans.length>0)}}function kIi(e,r){if(e&1){let i=st();a(0,"div",2),t(1,` `),a(2,"div",3),t(3,` `),a(4,"div",4),t(5,` `),a(6,"mat-form-field",5),t(7,` @@ -42201,34 +42201,34 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),s(),t(11,` `),s(),t(12,` `),a(13,"div",7),t(14,` - `),x(15,uIi,5,3,"button",8),t(16,` + `),x(15,dIi,5,3,"button",8),t(16,` `),s(),t(17,` `),s(),t(18,` - `),x(19,kIi,7,2,"ng-container",9),t(20,` -`),s()}if(e&2){let i=A();l(8),Xt("placeholder",d(9,3,"labels.text.Filter by name")),l(7),g("mifosxHasPermission","APPROVE_LOAN"),l(4),g("ngForOf",i.officesArray)}}function TIi(e,r){e&1&&(a(0,"div",32),t(1,` + `),x(19,PIi,7,2,"ng-container",9),t(20,` +`),s()}if(e&2){let i=A();l(8),Xt("placeholder",d(9,3,"labels.text.Filter by name")),l(7),g("mifosxHasPermission","APPROVE_LOAN"),l(4),g("ngForOf",i.officesArray)}}function IIi(e,r){e&1&&(a(0,"div",32),t(1,` `),a(2,"div",33),t(3,` `),k(4,"i",34),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(5),P(` `,d(6,1,"labels.text.No pending loans for approval"),` - `))}var fA=(()=>{class e{constructor(i,o,n,c,u,h,_){this.route=i,this.dialog=o,this.dateUtils=n,this.router=c,this.translateService=u,this.settingsService=h,this.tasksService=_,this.showData=!1,this.idToNodeMap={},this.displayedColumns=["select","clientName","loan","amount","loanPurpose"],this.route.data.subscribe(y=>{this.offices=y.officesData,this.loans=y.loansData.pageItems,this.setOfficeData()})}setOfficeData(){this.offices.forEach(o=>{o.loans=[],this.idToNodeMap[o.id]=o}),this.loans.forEach(o=>{if(o.status.pendingApproval){let n;o.clientOfficeId?n=this.idToNodeMap[o.clientOfficeId]:o.group?.officeId&&(n=this.idToNodeMap[o.group.officeId]),n&&n.loans.push(o)}});let i=[];this.offices.forEach(o=>{o.loans&&o.loans.length>0&&(this.showData=!0,i.push(o))}),this.officesArray=i,this.dataSource=new ci(this.officesArray),this.selection=new qs(!0,[])}isAllSelected(i){if(i){let o=this.selection.selected;return xft.difference(i,o).length===0}}masterToggle(i){i&&(this.isAllSelected(i)?i.forEach(o=>this.selection.deselect(o)):i.forEach(o=>this.selection.select(o)))}checkboxLabel(i){return i?`${this.selection.isSelected(i)?"deselect":"select"} row ${i.position+1}`:`${this.isAllSelected(i)?"select":"deselect"} all`}approveLoan(){this.dialog.open(Xs,{data:{heading:this.translateService.instant("labels.heading.Approve Loan"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want to Approve Loan")}}).afterClosed().subscribe(o=>{o.confirm&&this.bulkLoanApproval()})}bulkLoanApproval(){let i=this.settingsService.dateFormat,o=this.dateUtils.formatDate(new Date,i),n=this.settingsService.language.code,c={dateFormat:i,approvedOnDate:o,locale:n},u=this.selection.selected.length,h=this.selection.selected,_=0;this.batchRequests=[];let y=1;h.forEach(C=>{let E="loans/"+C.id+"?command=approve",T=JSON.stringify(c),D={requestId:y++,relativeUrl:E,method:"POST",body:T};this.batchRequests.push(D)}),this.tasksService.submitBatchData(this.batchRequests).subscribe(C=>{C.forEach(E=>{(E.statusCode="200")&&(_++,E.body=JSON.parse(E.body),u===_&&this.loanResource())}),this.reload()})}applyFilter(i=""){this.dataSource.filter=i.trim().toLowerCase()}loanResource(){this.tasksService.getAllLoansToBeApproved().subscribe(i=>{this.loans=i.pageItems,this.loans=this.loans.filter(o=>o.status.waitingForDisbursal===!0),this.dataSource=new ci(this.loans),this.selection=new qs(!0,[])})}reload(){let i=this.router.url;this.router.navigateByUrl("/checker-inbox-and-tasks",{skipLocationChange:!0}).then(()=>this.router.navigate([i]))}static{this.\u0275fac=function(o){return new(o||e)(V(Lt),V(ni),V(_i),V(te),V(zi),V(We),V(Ko))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-loan-approval"]],decls:4,vars:2,consts:[["class","tab-container mat-typography",4,"ngIf"],["class","alert",4,"ngIf"],[1,"tab-container","mat-typography"],[1,"layout-row","align-start-center"],[1,"search-box","flex-40"],[1,"flex-fill","flex-90"],["matInput","",3,"keyup","placeholder"],[1,"flex-60"],["mat-raised-button","","color","success",3,"click",4,"mifosxHasPermission"],[4,"ngFor","ngForOf"],["mat-raised-button","","color","success",3,"click"],["icon","check",1,"m-r-10"],[1,"mat-h3"],[4,"ngIf"],["mat-table","",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","clientName"],["mat-cell","","class","view-details",3,"routerLink",4,"matCellDef"],["matColumnDef","loan"],["matColumnDef","amount"],["matColumnDef","loanPurpose"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"click",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],[3,"change","checked","indeterminate","aria-label"],["mat-cell",""],[3,"click","change","checked","aria-label"],["mat-cell","",1,"view-details",3,"routerLink"],["mat-header-row",""],["mat-row","",3,"click"],[1,"alert"],[1,"message"],[1,"fa","fa-exclamation-circle","alert-check"]],template:function(o,n){o&1&&(x(0,IIi,21,5,"div",0),t(1,` + `))}var fA=(()=>{class e{constructor(i,o,n,c,u,h,_){this.route=i,this.dialog=o,this.dateUtils=n,this.router=c,this.translateService=u,this.settingsService=h,this.tasksService=_,this.showData=!1,this.idToNodeMap={},this.displayedColumns=["select","clientName","loan","amount","loanPurpose"],this.route.data.subscribe(y=>{this.offices=y.officesData,this.loans=y.loansData.pageItems,this.setOfficeData()})}setOfficeData(){this.offices.forEach(o=>{o.loans=[],this.idToNodeMap[o.id]=o}),this.loans.forEach(o=>{if(o.status.pendingApproval){let n;o.clientOfficeId?n=this.idToNodeMap[o.clientOfficeId]:o.group?.officeId&&(n=this.idToNodeMap[o.group.officeId]),n&&n.loans.push(o)}});let i=[];this.offices.forEach(o=>{o.loans&&o.loans.length>0&&(this.showData=!0,i.push(o))}),this.officesArray=i,this.dataSource=new ci(this.officesArray),this.selection=new qs(!0,[])}isAllSelected(i){if(i){let o=this.selection.selected;return xft.difference(i,o).length===0}}masterToggle(i){i&&(this.isAllSelected(i)?i.forEach(o=>this.selection.deselect(o)):i.forEach(o=>this.selection.select(o)))}checkboxLabel(i){return i?`${this.selection.isSelected(i)?"deselect":"select"} row ${i.position+1}`:`${this.isAllSelected(i)?"select":"deselect"} all`}approveLoan(){this.dialog.open(Xs,{data:{heading:this.translateService.instant("labels.heading.Approve Loan"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want to Approve Loan")}}).afterClosed().subscribe(o=>{o.confirm&&this.bulkLoanApproval()})}bulkLoanApproval(){let i=this.settingsService.dateFormat,o=this.dateUtils.formatDate(new Date,i),n=this.settingsService.language.code,c={dateFormat:i,approvedOnDate:o,locale:n},u=this.selection.selected.length,h=this.selection.selected,_=0;this.batchRequests=[];let y=1;h.forEach(C=>{let E="loans/"+C.id+"?command=approve",T=JSON.stringify(c),D={requestId:y++,relativeUrl:E,method:"POST",body:T};this.batchRequests.push(D)}),this.tasksService.submitBatchData(this.batchRequests).subscribe(C=>{C.forEach(E=>{(E.statusCode="200")&&(_++,E.body=JSON.parse(E.body),u===_&&this.loanResource())}),this.reload()})}applyFilter(i=""){this.dataSource.filter=i.trim().toLowerCase()}loanResource(){this.tasksService.getAllLoansToBeApproved().subscribe(i=>{this.loans=i.pageItems,this.loans=this.loans.filter(o=>o.status.waitingForDisbursal===!0),this.dataSource=new ci(this.loans),this.selection=new qs(!0,[])})}reload(){let i=this.router.url;this.router.navigateByUrl("/checker-inbox-and-tasks",{skipLocationChange:!0}).then(()=>this.router.navigate([i]))}static{this.\u0275fac=function(o){return new(o||e)(V(Lt),V(ni),V(_i),V(te),V(zi),V(We),V(Ko))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-loan-approval"]],decls:4,vars:2,consts:[["class","tab-container mat-typography",4,"ngIf"],["class","alert",4,"ngIf"],[1,"tab-container","mat-typography"],[1,"layout-row","align-start-center"],[1,"search-box","flex-40"],[1,"flex-fill","flex-90"],["matInput","",3,"keyup","placeholder"],[1,"flex-60"],["mat-raised-button","","color","success",3,"click",4,"mifosxHasPermission"],[4,"ngFor","ngForOf"],["mat-raised-button","","color","success",3,"click"],["icon","check",1,"m-r-10"],[1,"mat-h3"],[4,"ngIf"],["mat-table","",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","clientName"],["mat-cell","","class","view-details",3,"routerLink",4,"matCellDef"],["matColumnDef","loan"],["matColumnDef","amount"],["matColumnDef","loanPurpose"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"click",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],[3,"change","checked","indeterminate","aria-label"],["mat-cell",""],[3,"click","change","checked","aria-label"],["mat-cell","",1,"view-details",3,"routerLink"],["mat-header-row",""],["mat-row","",3,"click"],[1,"alert"],[1,"message"],[1,"fa","fa-exclamation-circle","alert-check"]],template:function(o,n){o&1&&(x(0,kIi,21,5,"div",0),t(1,` -`),x(2,TIi,8,3,"div",1),t(3,` -`)),o&2&&(g("ngIf",n.showData),l(2),g("ngIf",!n.showData))},dependencies:[St,se,zt,wt,qt,Ht,Zt,Dt,Ai,de,Et,Gt,Fe,Ne,Re,Le,Be,Ve,ze,qe,je,He,_r],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] .mat-raised-button.mat-success[_ngcontent-%COMP%]{color:#fff;background-color:#008000ab}.tab-container[_ngcontent-%COMP%] .view-details[_ngcontent-%COMP%]{cursor:pointer}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem}"]})}}return e})();var MIi=e=>["../../clients",e,"general"],_ft=(e,r)=>["../../clients",e,"loans-accounts",r,"general"];function DIi(e,r){if(e&1){let i=st();a(0,"button",20),q("click",function(){W(i);let n=A(2);return Q(n.disburseLoan())}),t(1,` +`),x(2,IIi,8,3,"div",1),t(3,` +`)),o&2&&(g("ngIf",n.showData),l(2),g("ngIf",!n.showData))},dependencies:[St,se,zt,wt,qt,Ht,Zt,Dt,Ai,de,Et,Gt,Fe,Ne,Re,Le,Be,Ve,ze,qe,je,He,_r],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] .mat-raised-button.mat-success[_ngcontent-%COMP%]{color:#fff;background-color:#008000ab}.tab-container[_ngcontent-%COMP%] .view-details[_ngcontent-%COMP%]{cursor:pointer}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem}"]})}}return e})();var TIi=e=>["../../clients",e,"general"],_ft=(e,r)=>["../../clients",e,"loans-accounts",r,"general"];function MIi(e,r){if(e&1){let i=st();a(0,"button",20),q("click",function(){W(i);let n=A(2);return Q(n.disburseLoan())}),t(1,` `),k(2,"fa-icon",21),t(3),m(4,"translate"),s()}e&2&&(l(3),P("",d(4,1,"labels.menus.Disburse"),` - `))}function AIi(e,r){if(e&1){let i=st();a(0,"th",22),t(1,` + `))}function DIi(e,r){if(e&1){let i=st();a(0,"th",22),t(1,` `),a(2,"mat-checkbox",23),q("change",function(n){W(i);let c=A(2);return Q(n?c.masterToggle():null)}),t(3,` `),s(),t(4,` - `),s()}if(e&2){let i=A(2);l(2),g("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())("aria-label",i.checkboxLabel())}}function OIi(e,r){if(e&1){let i=st();a(0,"td",24),t(1,` + `),s()}if(e&2){let i=A(2);l(2),g("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())("aria-label",i.checkboxLabel())}}function AIi(e,r){if(e&1){let i=st();a(0,"td",24),t(1,` `),a(2,"mat-checkbox",25),q("click",function(n){return W(i),Q(n.stopPropagation())})("change",function(n){let c=W(i).$implicit,u=A(2);return Q(n?u.selection.toggle(c):null)}),t(3,` `),s(),t(4,` - `),s()}if(e&2){let i=r.$implicit,o=A(2);l(2),g("checked",o.selection.isSelected(i))("aria-label",o.checkboxLabel(i))}}function FIi(e,r){e&1&&(a(0,"th",22),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Client Name")))}function BIi(e,r){if(e&1&&(a(0,"td",26),t(1),s()),e&2){let i=r.$implicit;g("routerLink",Xe(2,MIi,i.clientId)),l(),P(` + `),s()}if(e&2){let i=r.$implicit,o=A(2);l(2),g("checked",o.selection.isSelected(i))("aria-label",o.checkboxLabel(i))}}function OIi(e,r){e&1&&(a(0,"th",22),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Client Name")))}function FIi(e,r){if(e&1&&(a(0,"td",26),t(1),s()),e&2){let i=r.$implicit;g("routerLink",Xe(2,TIi,i.clientId)),l(),P(` `,i.clientName,` - `)}}function RIi(e,r){e&1&&(a(0,"th",22),t(1),m(2,"translate"),s()),e&2&&(l(),P("",d(2,1,"labels.inputs.Loan Account"),"#"))}function NIi(e,r){if(e&1&&(a(0,"td",26),t(1),s()),e&2){let i=r.$implicit;g("routerLink",vs(2,_ft,i.clientId,i.id)),l(),P(` + `)}}function BIi(e,r){e&1&&(a(0,"th",22),t(1),m(2,"translate"),s()),e&2&&(l(),P("",d(2,1,"labels.inputs.Loan Account"),"#"))}function RIi(e,r){if(e&1&&(a(0,"td",26),t(1),s()),e&2){let i=r.$implicit;g("routerLink",vs(2,_ft,i.clientId,i.id)),l(),P(` `,i.accountNo,` - `)}}function LIi(e,r){e&1&&(a(0,"th",22),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Loan Product")))}function VIi(e,r){if(e&1&&(a(0,"td",26),t(1),s()),e&2){let i=r.$implicit;g("routerLink",vs(2,_ft,i.clientId,i.id)),l(),P(` + `)}}function NIi(e,r){e&1&&(a(0,"th",22),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Loan Product")))}function LIi(e,r){if(e&1&&(a(0,"td",26),t(1),s()),e&2){let i=r.$implicit;g("routerLink",vs(2,_ft,i.clientId,i.id)),l(),P(` `,i.loanProductName,` - `)}}function zIi(e,r){e&1&&(a(0,"th",22),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Principal")))}function jIi(e,r){if(e&1&&(a(0,"td",24),t(1),m(2,"formatNumber"),s()),e&2){let i=r.$implicit;l(),b(d(2,1,i.principal))}}function qIi(e,r){e&1&&k(0,"tr",27)}function HIi(e,r){if(e&1){let i=st();a(0,"tr",28),q("click",function(){let n=W(i).$implicit,c=A(2);return Q(c.selection.toggle(n))}),s()}}function GIi(e,r){if(e&1){let i=st();a(0,"div",2),t(1,` + `)}}function VIi(e,r){e&1&&(a(0,"th",22),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Principal")))}function zIi(e,r){if(e&1&&(a(0,"td",24),t(1),m(2,"formatNumber"),s()),e&2){let i=r.$implicit;l(),b(d(2,1,i.principal))}}function jIi(e,r){e&1&&k(0,"tr",27)}function qIi(e,r){if(e&1){let i=st();a(0,"tr",28),q("click",function(){let n=W(i).$implicit,c=A(2);return Q(c.selection.toggle(n))}),s()}}function HIi(e,r){if(e&1){let i=st();a(0,"div",2),t(1,` `),a(2,"div",3),t(3,` `),a(4,"div",4),t(5,` `),a(6,"mat-form-field",5),t(7,` @@ -42236,62 +42236,62 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),s(),t(11,` `),s(),t(12,` `),a(13,"div",7),t(14,` - `),x(15,DIi,5,3,"button",8),t(16,` + `),x(15,MIi,5,3,"button",8),t(16,` `),s(),t(17,` `),s(),t(18,` `),a(19,"table",9),t(20,` `),ot(21,10),t(22,` - `),x(23,AIi,5,3,"th",11),t(24,` - `),x(25,OIi,5,2,"td",12),t(26,` + `),x(23,DIi,5,3,"th",11),t(24,` + `),x(25,AIi,5,2,"td",12),t(26,` `),at(),t(27,` `),ot(28,13),t(29,` - `),x(30,FIi,3,3,"th",11),t(31,` - `),x(32,BIi,2,4,"td",14),t(33,` + `),x(30,OIi,3,3,"th",11),t(31,` + `),x(32,FIi,2,4,"td",14),t(33,` `),at(),t(34,` `),ot(35,15),t(36,` - `),x(37,RIi,3,3,"th",11),t(38,` - `),x(39,NIi,2,5,"td",14),t(40,` + `),x(37,BIi,3,3,"th",11),t(38,` + `),x(39,RIi,2,5,"td",14),t(40,` `),at(),t(41,` `),ot(42,16),t(43,` - `),x(44,LIi,3,3,"th",11),t(45,` - `),x(46,VIi,2,5,"td",14),t(47,` + `),x(44,NIi,3,3,"th",11),t(45,` + `),x(46,LIi,2,5,"td",14),t(47,` `),at(),t(48,` `),ot(49,17),t(50,` - `),x(51,zIi,3,3,"th",11),t(52,` - `),x(53,jIi,3,3,"td",12),t(54,` + `),x(51,VIi,3,3,"th",11),t(52,` + `),x(53,zIi,3,3,"td",12),t(54,` `),at(),t(55,` - `),x(56,qIi,1,0,"tr",18),t(57,` - `),x(58,HIi,1,0,"tr",19),t(59,` + `),x(56,jIi,1,0,"tr",18),t(57,` + `),x(58,qIi,1,0,"tr",19),t(59,` `),s(),t(60,` -`),s()}if(e&2){let i=A();l(8),Xt("placeholder",d(9,5,"labels.text.Filter by name")),l(7),g("mifosxHasPermission","APPROVE_LOAN"),l(4),g("dataSource",i.dataSource),l(37),g("matHeaderRowDef",i.displayedColumns),l(2),g("matRowDefColumns",i.displayedColumns)}}function UIi(e,r){e&1&&(a(0,"div",29),t(1,` +`),s()}if(e&2){let i=A();l(8),Xt("placeholder",d(9,5,"labels.text.Filter by name")),l(7),g("mifosxHasPermission","APPROVE_LOAN"),l(4),g("dataSource",i.dataSource),l(37),g("matHeaderRowDef",i.displayedColumns),l(2),g("matRowDefColumns",i.displayedColumns)}}function GIi(e,r){e&1&&(a(0,"div",29),t(1,` `),a(2,"div",30),t(3,` `),k(4,"i",31),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(5),P(` `,d(6,1,"labels.text.No pending loan available for disbursal"),` - `))}var hA=(()=>{class e{constructor(i,o,n,c,u,h){this.route=i,this.dialog=o,this.dateUtils=n,this.settingsService=c,this.translateService=u,this.tasksService=h,this.displayedColumns=["select","client","loanAccountNumber","loanProduct","principal"],this.route.data.subscribe(_=>{this.loans=_.loansData.pageItems,this.loans=this.loans.filter(y=>y.status.waitingForDisbursal===!0),this.dataSource=new ci(this.loans),this.selection=new qs(!0,[])})}isAllSelected(){let i=this.selection.selected.length,o=this.dataSource.data.length;return i===o}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(i=>this.selection.select(i))}checkboxLabel(i){return i?`${this.selection.isSelected(i)?"deselect":"select"} row ${i.position+1}`:`${this.isAllSelected()?"select":"deselect"} all`}disburseLoan(){this.dialog.open(Xs,{data:{heading:this.translateService.instant("labels.heading.Loan Disbursal"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want to Disburse Loan")}}).afterClosed().subscribe(o=>{o.confirm&&this.bulkLoanDisbursal()})}bulkLoanDisbursal(){let i=this.settingsService.dateFormat,o=this.dateUtils.formatDate(new Date,i),n=this.settingsService.language.code,c={dateFormat:i,approvedOnDate:o,locale:n},u=this.selection.selected.length,h=this.selection.selected,_=0;this.batchRequests=[];let y=1;h.forEach(C=>{let E="loans/"+C.id+"?command=disburse",T=JSON.stringify(c),D={requestId:y++,relativeUrl:E,method:"POST",body:T};this.batchRequests.push(D)}),this.tasksService.submitBatchData(this.batchRequests).subscribe(C=>{C.forEach(E=>{(E.statusCode="200")&&(_++,E.body=JSON.parse(E.body),u===_&&this.loanResource())})})}loanResource(){this.tasksService.getAllLoansToBeDisbursed().subscribe(i=>{this.loans=i.pageItems,this.loans=this.loans.filter(o=>o.status.waitingForDisbursal===!0),this.dataSource=new ci(this.loans),this.selection=new qs(!0,[])})}applyFilter(i=""){this.dataSource.filter=i.trim().toLowerCase()}static{this.\u0275fac=function(o){return new(o||e)(V(Lt),V(ni),V(_i),V(We),V(zi),V(Ko))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-loan-disbursal"]],decls:4,vars:2,consts:[["class","tab-container mat-typography",4,"ngIf"],["class","alert",4,"ngIf"],[1,"tab-container","mat-typography"],[1,"layout-row","align-start-center"],[1,"search-box","flex-40"],[1,"flex-fill","flex-90"],["matInput","",3,"keyup","placeholder"],[1,"flex-60"],["mat-raised-button","","color","success",3,"click",4,"mifosxHasPermission"],["mat-table","",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","client"],["mat-cell","","class","view-details",3,"routerLink",4,"matCellDef"],["matColumnDef","loanAccountNumber"],["matColumnDef","loanProduct"],["matColumnDef","principal"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"click",4,"matRowDef","matRowDefColumns"],["mat-raised-button","","color","success",3,"click"],["icon","check",1,"m-r-10"],["mat-header-cell",""],[3,"change","checked","indeterminate","aria-label"],["mat-cell",""],[3,"click","change","checked","aria-label"],["mat-cell","",1,"view-details",3,"routerLink"],["mat-header-row",""],["mat-row","",3,"click"],[1,"alert"],[1,"message"],[1,"fa","fa-exclamation-circle","alert-check"]],template:function(o,n){o&1&&(x(0,GIi,61,7,"div",0),t(1,` + `))}var hA=(()=>{class e{constructor(i,o,n,c,u,h){this.route=i,this.dialog=o,this.dateUtils=n,this.settingsService=c,this.translateService=u,this.tasksService=h,this.displayedColumns=["select","client","loanAccountNumber","loanProduct","principal"],this.route.data.subscribe(_=>{this.loans=_.loansData.pageItems,this.loans=this.loans.filter(y=>y.status.waitingForDisbursal===!0),this.dataSource=new ci(this.loans),this.selection=new qs(!0,[])})}isAllSelected(){let i=this.selection.selected.length,o=this.dataSource.data.length;return i===o}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(i=>this.selection.select(i))}checkboxLabel(i){return i?`${this.selection.isSelected(i)?"deselect":"select"} row ${i.position+1}`:`${this.isAllSelected()?"select":"deselect"} all`}disburseLoan(){this.dialog.open(Xs,{data:{heading:this.translateService.instant("labels.heading.Loan Disbursal"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want to Disburse Loan")}}).afterClosed().subscribe(o=>{o.confirm&&this.bulkLoanDisbursal()})}bulkLoanDisbursal(){let i=this.settingsService.dateFormat,o=this.dateUtils.formatDate(new Date,i),n=this.settingsService.language.code,c={dateFormat:i,approvedOnDate:o,locale:n},u=this.selection.selected.length,h=this.selection.selected,_=0;this.batchRequests=[];let y=1;h.forEach(C=>{let E="loans/"+C.id+"?command=disburse",T=JSON.stringify(c),D={requestId:y++,relativeUrl:E,method:"POST",body:T};this.batchRequests.push(D)}),this.tasksService.submitBatchData(this.batchRequests).subscribe(C=>{C.forEach(E=>{(E.statusCode="200")&&(_++,E.body=JSON.parse(E.body),u===_&&this.loanResource())})})}loanResource(){this.tasksService.getAllLoansToBeDisbursed().subscribe(i=>{this.loans=i.pageItems,this.loans=this.loans.filter(o=>o.status.waitingForDisbursal===!0),this.dataSource=new ci(this.loans),this.selection=new qs(!0,[])})}applyFilter(i=""){this.dataSource.filter=i.trim().toLowerCase()}static{this.\u0275fac=function(o){return new(o||e)(V(Lt),V(ni),V(_i),V(We),V(zi),V(Ko))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-loan-disbursal"]],decls:4,vars:2,consts:[["class","tab-container mat-typography",4,"ngIf"],["class","alert",4,"ngIf"],[1,"tab-container","mat-typography"],[1,"layout-row","align-start-center"],[1,"search-box","flex-40"],[1,"flex-fill","flex-90"],["matInput","",3,"keyup","placeholder"],[1,"flex-60"],["mat-raised-button","","color","success",3,"click",4,"mifosxHasPermission"],["mat-table","",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","client"],["mat-cell","","class","view-details",3,"routerLink",4,"matCellDef"],["matColumnDef","loanAccountNumber"],["matColumnDef","loanProduct"],["matColumnDef","principal"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"click",4,"matRowDef","matRowDefColumns"],["mat-raised-button","","color","success",3,"click"],["icon","check",1,"m-r-10"],["mat-header-cell",""],[3,"change","checked","indeterminate","aria-label"],["mat-cell",""],[3,"click","change","checked","aria-label"],["mat-cell","",1,"view-details",3,"routerLink"],["mat-header-row",""],["mat-row","",3,"click"],[1,"alert"],[1,"message"],[1,"fa","fa-exclamation-circle","alert-check"]],template:function(o,n){o&1&&(x(0,HIi,61,7,"div",0),t(1,` -`),x(2,UIi,8,3,"div",1),t(3,` -`)),o&2&&(g("ngIf",n.loans&&n.loans.length>0),l(2),g("ngIf",n.loans.length===0))},dependencies:[St,zt,wt,qt,Ht,Zt,Dt,Ai,de,Et,Gt,Fe,Ne,Re,Le,Be,Ve,ze,qe,je,He,_r],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] .mat-raised-button.mat-success[_ngcontent-%COMP%]{color:#fff;background-color:#008000ab}.tab-container[_ngcontent-%COMP%] .view-details[_ngcontent-%COMP%]{cursor:pointer}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem}"]})}}return e})();var $Ii=e=>["../../clients",e,"general"],WIi=(e,r)=>["../../clients",e,"loans",r,"general"];function QIi(e,r){if(e&1){let i=st();a(0,"button",22),q("click",function(){W(i);let n=A(2);return Q(n.bulkLoanReschedule("Approve"))}),t(1,` +`),x(2,GIi,8,3,"div",1),t(3,` +`)),o&2&&(g("ngIf",n.loans&&n.loans.length>0),l(2),g("ngIf",n.loans.length===0))},dependencies:[St,zt,wt,qt,Ht,Zt,Dt,Ai,de,Et,Gt,Fe,Ne,Re,Le,Be,Ve,ze,qe,je,He,_r],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] .mat-raised-button.mat-success[_ngcontent-%COMP%]{color:#fff;background-color:#008000ab}.tab-container[_ngcontent-%COMP%] .view-details[_ngcontent-%COMP%]{cursor:pointer}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem}"]})}}return e})();var UIi=e=>["../../clients",e,"general"],$Ii=(e,r)=>["../../clients",e,"loans",r,"general"];function WIi(e,r){if(e&1){let i=st();a(0,"button",22),q("click",function(){W(i);let n=A(2);return Q(n.bulkLoanReschedule("Approve"))}),t(1,` `),k(2,"fa-icon",23),t(3),m(4,"translate"),s()}e&2&&(l(3),P("",d(4,1,"labels.buttons.Approve"),` - `))}function YIi(e,r){if(e&1){let i=st();a(0,"button",24),q("click",function(){W(i);let n=A(2);return Q(n.bulkLoanReschedule("Reject"))}),t(1,` + `))}function QIi(e,r){if(e&1){let i=st();a(0,"button",24),q("click",function(){W(i);let n=A(2);return Q(n.bulkLoanReschedule("Reject"))}),t(1,` `),k(2,"fa-icon",25),t(3),m(4,"translate"),s()}e&2&&(l(3),P("",d(4,1,"labels.buttons.Reject"),` - `))}function KIi(e,r){if(e&1){let i=st();a(0,"th",26),t(1,` + `))}function YIi(e,r){if(e&1){let i=st();a(0,"th",26),t(1,` `),a(2,"mat-checkbox",27),q("change",function(n){W(i);let c=A(2);return Q(n?c.masterToggle():null)}),t(3,` `),s(),t(4,` - `),s()}if(e&2){let i=A(2);l(2),g("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())("aria-label",i.checkboxLabel())}}function JIi(e,r){if(e&1){let i=st();a(0,"td",28),t(1,` + `),s()}if(e&2){let i=A(2);l(2),g("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())("aria-label",i.checkboxLabel())}}function KIi(e,r){if(e&1){let i=st();a(0,"td",28),t(1,` `),a(2,"mat-checkbox",29),q("click",function(n){return W(i),Q(n.stopPropagation())})("change",function(n){let c=W(i).$implicit,u=A(2);return Q(n?u.selection.toggle(c):null)}),t(3,` `),s(),t(4,` - `),s()}if(e&2){let i=r.$implicit,o=A(2);l(2),g("checked",o.selection.isSelected(i))("aria-label",o.checkboxLabel(i))}}function ZIi(e,r){e&1&&(a(0,"th",26),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Client")))}function XIi(e,r){if(e&1&&(a(0,"td",30),t(1),s()),e&2){let i=r.$implicit;g("routerLink",Xe(2,$Ii,i.clientId)),l(),P(` + `),s()}if(e&2){let i=r.$implicit,o=A(2);l(2),g("checked",o.selection.isSelected(i))("aria-label",o.checkboxLabel(i))}}function JIi(e,r){e&1&&(a(0,"th",26),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Client")))}function ZIi(e,r){if(e&1&&(a(0,"td",30),t(1),s()),e&2){let i=r.$implicit;g("routerLink",Xe(2,UIi,i.clientId)),l(),P(` `,i.clientName,` - `)}}function tTi(e,r){e&1&&(a(0,"th",26),t(1),m(2,"translate"),s()),e&2&&(l(),P("",d(2,1,"labels.inputs.Reschedule Request"),"#"))}function eTi(e,r){if(e&1&&(a(0,"td",28),t(1),s()),e&2){let i=r.$implicit;l(),b(i.id)}}function iTi(e,r){e&1&&(a(0,"th",26),t(1),m(2,"translate"),s()),e&2&&(l(),P("",d(2,1,"labels.inputs.Loan Account"),"#"))}function nTi(e,r){if(e&1&&(a(0,"td",30),t(1),s()),e&2){let i=r.$implicit;g("routerLink",vs(2,WIi,i.clientId,i.loanId)),l(),P(` + `)}}function XIi(e,r){e&1&&(a(0,"th",26),t(1),m(2,"translate"),s()),e&2&&(l(),P("",d(2,1,"labels.inputs.Reschedule Request"),"#"))}function tTi(e,r){if(e&1&&(a(0,"td",28),t(1),s()),e&2){let i=r.$implicit;l(),b(i.id)}}function eTi(e,r){e&1&&(a(0,"th",26),t(1),m(2,"translate"),s()),e&2&&(l(),P("",d(2,1,"labels.inputs.Loan Account"),"#"))}function iTi(e,r){if(e&1&&(a(0,"td",30),t(1),s()),e&2){let i=r.$implicit;g("routerLink",vs(2,$Ii,i.clientId,i.loanId)),l(),P(` `,i.loanAccountNumber,` - `)}}function rTi(e,r){e&1&&(a(0,"th",26),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Reschedule Form")))}function oTi(e,r){if(e&1&&(a(0,"td",28),t(1),m(2,"dateFormat"),s()),e&2){let i=r.$implicit;l(),b(d(2,1,i.rescheduleFromDate))}}function aTi(e,r){e&1&&(a(0,"th",26),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Reschedule Reason")))}function sTi(e,r){if(e&1&&(a(0,"td",28),t(1),s()),e&2){let i=r.$implicit;l(),b(i.rescheduleReasonCodeValue.name)}}function lTi(e,r){e&1&&k(0,"tr",31)}function cTi(e,r){if(e&1){let i=st();a(0,"tr",32),q("click",function(){let n=W(i).$implicit,c=A(2);return Q(c.selection.toggle(n))}),s()}}function pTi(e,r){if(e&1){let i=st();a(0,"div",2),t(1,` + `)}}function nTi(e,r){e&1&&(a(0,"th",26),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Reschedule Form")))}function rTi(e,r){if(e&1&&(a(0,"td",28),t(1),m(2,"dateFormat"),s()),e&2){let i=r.$implicit;l(),b(d(2,1,i.rescheduleFromDate))}}function oTi(e,r){e&1&&(a(0,"th",26),t(1),m(2,"translate"),s()),e&2&&(l(),b(d(2,1,"labels.inputs.Reschedule Reason")))}function aTi(e,r){if(e&1&&(a(0,"td",28),t(1),s()),e&2){let i=r.$implicit;l(),b(i.rescheduleReasonCodeValue.name)}}function sTi(e,r){e&1&&k(0,"tr",31)}function lTi(e,r){if(e&1){let i=st();a(0,"tr",32),q("click",function(){let n=W(i).$implicit,c=A(2);return Q(c.selection.toggle(n))}),s()}}function cTi(e,r){if(e&1){let i=st();a(0,"div",2),t(1,` `),a(2,"div",3),t(3,` `),a(4,"div",4),t(5,` `),a(6,"mat-form-field",5),t(7,` @@ -42299,76 +42299,76 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),s(),t(11,` `),s(),t(12,` `),a(13,"div",7),t(14,` - `),x(15,QIi,5,3,"button",8),t(16,` - `),x(17,YIi,5,3,"button",9),t(18,` + `),x(15,WIi,5,3,"button",8),t(16,` + `),x(17,QIi,5,3,"button",9),t(18,` `),s(),t(19,` `),s(),t(20,` `),a(21,"table",10),t(22,` `),ot(23,11),t(24,` - `),x(25,KIi,5,3,"th",12),t(26,` - `),x(27,JIi,5,2,"td",13),t(28,` + `),x(25,YIi,5,3,"th",12),t(26,` + `),x(27,KIi,5,2,"td",13),t(28,` `),at(),t(29,` `),ot(30,14),t(31,` - `),x(32,ZIi,3,3,"th",12),t(33,` - `),x(34,XIi,2,4,"td",15),t(35,` + `),x(32,JIi,3,3,"th",12),t(33,` + `),x(34,ZIi,2,4,"td",15),t(35,` `),at(),t(36,` `),ot(37,16),t(38,` - `),x(39,tTi,3,3,"th",12),t(40,` - `),x(41,eTi,2,1,"td",13),t(42,` + `),x(39,XIi,3,3,"th",12),t(40,` + `),x(41,tTi,2,1,"td",13),t(42,` `),at(),t(43,` `),ot(44,17),t(45,` - `),x(46,iTi,3,3,"th",12),t(47,` - `),x(48,nTi,2,5,"td",15),t(49,` + `),x(46,eTi,3,3,"th",12),t(47,` + `),x(48,iTi,2,5,"td",15),t(49,` `),at(),t(50,` `),ot(51,18),t(52,` - `),x(53,rTi,3,3,"th",12),t(54,` - `),x(55,oTi,3,3,"td",13),t(56,` + `),x(53,nTi,3,3,"th",12),t(54,` + `),x(55,rTi,3,3,"td",13),t(56,` `),at(),t(57,` `),ot(58,19),t(59,` - `),x(60,aTi,3,3,"th",12),t(61,` - `),x(62,sTi,2,1,"td",13),t(63,` + `),x(60,oTi,3,3,"th",12),t(61,` + `),x(62,aTi,2,1,"td",13),t(63,` `),at(),t(64,` - `),x(65,lTi,1,0,"tr",20),t(66,` - `),x(67,cTi,1,0,"tr",21),t(68,` + `),x(65,sTi,1,0,"tr",20),t(66,` + `),x(67,lTi,1,0,"tr",21),t(68,` `),s(),t(69,` -`),s()}if(e&2){let i=A();l(8),Xt("placeholder",d(9,6,"labels.text.Filter by name")),l(7),g("mifosxHasPermission","APPROVE_LOANRESCHEDULE"),l(2),g("mifosxHasPermission","APPROVE_LOANRESCHEDULE"),l(4),g("dataSource",i.dataSource),l(44),g("matHeaderRowDef",i.displayedColumns),l(2),g("matRowDefColumns",i.displayedColumns)}}function mTi(e,r){e&1&&(a(0,"div",33),t(1,` +`),s()}if(e&2){let i=A();l(8),Xt("placeholder",d(9,6,"labels.text.Filter by name")),l(7),g("mifosxHasPermission","APPROVE_LOANRESCHEDULE"),l(2),g("mifosxHasPermission","APPROVE_LOANRESCHEDULE"),l(4),g("dataSource",i.dataSource),l(44),g("matHeaderRowDef",i.displayedColumns),l(2),g("matRowDefColumns",i.displayedColumns)}}function pTi(e,r){e&1&&(a(0,"div",33),t(1,` `),a(2,"div",34),t(3,` `),k(4,"i",35),t(5),m(6,"translate"),s(),t(7,` `),s()),e&2&&(l(5),P(` `,d(6,1,"labels.text.No pending rescheduled loan available for this account"),` - `))}var gA=(()=>{class e{constructor(i,o,n,c,u,h,_){this.route=i,this.dialog=o,this.dateUtils=n,this.router=c,this.settingsService=u,this.translateService=h,this.tasksService=_,this.displayedColumns=["select","client","rescheduleRequestNo","loanAccountNo","rescheduleForm","rescheduleReason"],this.route.data.subscribe(y=>{this.loans=y.recheduleLoansData,this.dataSource=new ci(this.loans),this.selection=new qs(!0,[])})}isAllSelected(){let i=this.selection.selected.length,o=this.dataSource.data.length;return i===o}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(i=>this.selection.select(i))}checkboxLabel(i){return i?`${this.selection.isSelected(i)?"deselect":"select"} row ${i.position+1}`:`${this.isAllSelected()?"select":"deselect"} all`}bulkLoanReschedule(i){this.dialog.open(Xs,{data:{heading:this.translateService.instant("labels.heading.Reschedule Loan"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want to")+i+this.translateService.instant("labels.dialogContext.the Reschedule Loan")}}).afterClosed().subscribe(n=>{n.confirm&&this.bulkLoanRescheduleRequest(i.toLowerCase())})}bulkLoanRescheduleRequest(i){let o=this.settingsService.dateFormat,n=this.dateUtils.formatDate(this.settingsService.businessDate,o),c=this.settingsService.language.code,u={dateFormat:o,locale:c};i==="approve"?u.approvedOnDate=n:u.rejectedOnDate=n;let h=this.selection.selected;this.batchRequests=[];let _=1;h.forEach(y=>{let C="rescheduleloans/"+y.id+"?command="+i,E=JSON.stringify(u),T={requestId:_++,relativeUrl:C,method:"POST",body:E};this.batchRequests.push(T)}),this.tasksService.submitBatchData(this.batchRequests).subscribe(y=>{this.reload()})}applyFilter(i=""){this.dataSource.filter=i.trim().toLowerCase()}reload(){let i=this.router.url;this.router.navigateByUrl("/checker-inbox-and-tasks",{skipLocationChange:!0}).then(()=>this.router.navigate([i]))}static{this.\u0275fac=function(o){return new(o||e)(V(Lt),V(ni),V(_i),V(te),V(We),V(zi),V(Ko))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-reschedule-loan"]],decls:4,vars:2,consts:[["class","tab-container mat-typography",4,"ngIf"],["class","alert",4,"ngIf"],[1,"tab-container","mat-typography"],[1,"layout-row","align-start-center"],[1,"search-box","flex-40"],[1,"flex-90"],["matInput","",3,"keyup","placeholder"],[1,"flex-60"],["mat-raised-button","","color","success",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","reject",3,"click",4,"mifosxHasPermission"],["mat-table","",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","client"],["mat-cell","","class","view-details",3,"routerLink",4,"matCellDef"],["matColumnDef","rescheduleRequestNo"],["matColumnDef","loanAccountNo"],["matColumnDef","rescheduleForm"],["matColumnDef","rescheduleReason"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"click",4,"matRowDef","matRowDefColumns"],["mat-raised-button","","color","success",3,"click"],["icon","check",1,"m-r-10"],["mat-raised-button","","color","reject",3,"click"],["icon","times",1,"m-r-10"],["mat-header-cell",""],[3,"change","checked","indeterminate","aria-label"],["mat-cell",""],[3,"click","change","checked","aria-label"],["mat-cell","",1,"view-details",3,"routerLink"],["mat-header-row",""],["mat-row","",3,"click"],[1,"alert"],[1,"message"],[1,"fa","fa-exclamation-circle","alert-check"]],template:function(o,n){o&1&&(x(0,pTi,70,8,"div",0),t(1,` + `))}var gA=(()=>{class e{constructor(i,o,n,c,u,h,_){this.route=i,this.dialog=o,this.dateUtils=n,this.router=c,this.settingsService=u,this.translateService=h,this.tasksService=_,this.displayedColumns=["select","client","rescheduleRequestNo","loanAccountNo","rescheduleForm","rescheduleReason"],this.route.data.subscribe(y=>{this.loans=y.recheduleLoansData,this.dataSource=new ci(this.loans),this.selection=new qs(!0,[])})}isAllSelected(){let i=this.selection.selected.length,o=this.dataSource.data.length;return i===o}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(i=>this.selection.select(i))}checkboxLabel(i){return i?`${this.selection.isSelected(i)?"deselect":"select"} row ${i.position+1}`:`${this.isAllSelected()?"select":"deselect"} all`}bulkLoanReschedule(i){this.dialog.open(Xs,{data:{heading:this.translateService.instant("labels.heading.Reschedule Loan"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want to")+i+this.translateService.instant("labels.dialogContext.the Reschedule Loan")}}).afterClosed().subscribe(n=>{n.confirm&&this.bulkLoanRescheduleRequest(i.toLowerCase())})}bulkLoanRescheduleRequest(i){let o=this.settingsService.dateFormat,n=this.dateUtils.formatDate(this.settingsService.businessDate,o),c=this.settingsService.language.code,u={dateFormat:o,locale:c};i==="approve"?u.approvedOnDate=n:u.rejectedOnDate=n;let h=this.selection.selected;this.batchRequests=[];let _=1;h.forEach(y=>{let C="rescheduleloans/"+y.id+"?command="+i,E=JSON.stringify(u),T={requestId:_++,relativeUrl:C,method:"POST",body:E};this.batchRequests.push(T)}),this.tasksService.submitBatchData(this.batchRequests).subscribe(y=>{this.reload()})}applyFilter(i=""){this.dataSource.filter=i.trim().toLowerCase()}reload(){let i=this.router.url;this.router.navigateByUrl("/checker-inbox-and-tasks",{skipLocationChange:!0}).then(()=>this.router.navigate([i]))}static{this.\u0275fac=function(o){return new(o||e)(V(Lt),V(ni),V(_i),V(te),V(We),V(zi),V(Ko))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-reschedule-loan"]],decls:4,vars:2,consts:[["class","tab-container mat-typography",4,"ngIf"],["class","alert",4,"ngIf"],[1,"tab-container","mat-typography"],[1,"layout-row","align-start-center"],[1,"search-box","flex-40"],[1,"flex-90"],["matInput","",3,"keyup","placeholder"],[1,"flex-60"],["mat-raised-button","","color","success",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","reject",3,"click",4,"mifosxHasPermission"],["mat-table","",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","client"],["mat-cell","","class","view-details",3,"routerLink",4,"matCellDef"],["matColumnDef","rescheduleRequestNo"],["matColumnDef","loanAccountNo"],["matColumnDef","rescheduleForm"],["matColumnDef","rescheduleReason"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"click",4,"matRowDef","matRowDefColumns"],["mat-raised-button","","color","success",3,"click"],["icon","check",1,"m-r-10"],["mat-raised-button","","color","reject",3,"click"],["icon","times",1,"m-r-10"],["mat-header-cell",""],[3,"change","checked","indeterminate","aria-label"],["mat-cell",""],[3,"click","change","checked","aria-label"],["mat-cell","",1,"view-details",3,"routerLink"],["mat-header-row",""],["mat-row","",3,"click"],[1,"alert"],[1,"message"],[1,"fa","fa-exclamation-circle","alert-check"]],template:function(o,n){o&1&&(x(0,cTi,70,8,"div",0),t(1,` -`),x(2,mTi,8,3,"div",1),t(3,` -`)),o&2&&(g("ngIf",n.loans&&n.loans.length>0),l(2),g("ngIf",n.loans.length===0))},dependencies:[St,zt,wt,qt,Ht,Zt,Dt,Ai,Gi,de,Et,Gt,Fe,Ne,Re,Le,Be,Ve,ze,qe,je,He],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] .mat-raised-button.mat-success[_ngcontent-%COMP%]{color:#fff;background-color:#008000ab}.tab-container[_ngcontent-%COMP%] .view-details[_ngcontent-%COMP%]{cursor:pointer}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem}"]})}}return e})();var vft=Pp(Uh());function dTi(e,r){if(e&1&&(a(0,"div",12),t(1,` +`),x(2,pTi,8,3,"div",1),t(3,` +`)),o&2&&(g("ngIf",n.loans&&n.loans.length>0),l(2),g("ngIf",n.loans.length===0))},dependencies:[St,zt,wt,qt,Ht,Zt,Dt,Ai,Gi,de,Et,Gt,Fe,Ne,Re,Le,Be,Ve,ze,qe,je,He],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] .mat-raised-button.mat-success[_ngcontent-%COMP%]{color:#fff;background-color:#008000ab}.tab-container[_ngcontent-%COMP%] .view-details[_ngcontent-%COMP%]{cursor:pointer}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem}"]})}}return e})();var vft=Pp(Uh());function mTi(e,r){if(e&1&&(a(0,"div",12),t(1,` `),a(2,"span",13),t(3),m(4,"translate"),s(),t(5,` `),a(6,"span",14),t(7),s(),t(8,` - `),s()),e&2){let i=A();l(3),P("",d(4,2,"labels.inputs.Resource ID"),":"),l(4),b(i.checkerInboxDetail.resourceId)}}function uTi(e,r){if(e&1&&(a(0,"div",12),t(1,` + `),s()),e&2){let i=A();l(3),P("",d(4,2,"labels.inputs.Resource ID"),":"),l(4),b(i.checkerInboxDetail.resourceId)}}function dTi(e,r){if(e&1&&(a(0,"div",12),t(1,` `),a(2,"span",13),t(3),m(4,"translate"),s(),t(5,` `),a(6,"span",14),t(7),s(),t(8,` - `),s()),e&2){let i=A();l(3),P("",d(4,2,"labels.inputs.Office"),":"),l(4),b(i.checkerInboxDetail.officeName)}}function fTi(e,r){if(e&1&&(a(0,"div",12),t(1,` + `),s()),e&2){let i=A();l(3),P("",d(4,2,"labels.inputs.Office"),":"),l(4),b(i.checkerInboxDetail.officeName)}}function uTi(e,r){if(e&1&&(a(0,"div",12),t(1,` `),a(2,"span",13),t(3),m(4,"translate"),s(),t(5,` `),a(6,"span",14),t(7),s(),t(8,` - `),s()),e&2){let i=A();l(3),P("",d(4,2,"labels.inputs.Savings Account Number"),":"),l(4),b(i.checkerInboxDetail.savingsAccountNo)}}function hTi(e,r){if(e&1&&(a(0,"div",12),t(1,` + `),s()),e&2){let i=A();l(3),P("",d(4,2,"labels.inputs.Savings Account Number"),":"),l(4),b(i.checkerInboxDetail.savingsAccountNo)}}function fTi(e,r){if(e&1&&(a(0,"div",12),t(1,` `),a(2,"span",13),t(3),s(),t(4,` `),a(5,"span",14),t(6),s(),t(7,` - `),s()),e&2){let i=A();l(3),P(" ",i.checkerInboxDetail.groupLevelName,""),l(3),b(i.checkerInboxDetail.groupName)}}function gTi(e,r){if(e&1&&(ot(0),t(1,` + `),s()),e&2){let i=A();l(3),P(" ",i.checkerInboxDetail.groupLevelName,""),l(3),b(i.checkerInboxDetail.groupName)}}function hTi(e,r){if(e&1&&(ot(0),t(1,` `),a(2,"div",12),t(3,` `),a(4,"span",13),t(5),s(),t(6,` `),a(7,"span",14),t(8),s(),t(9,` `),s(),t(10,` - `),at()),e&2){let i=r.$implicit;l(5),P("",i.key,":"),l(3),b(i.value)}}function xTi(e,r){if(e&1&&(ot(0),t(1,` + `),at()),e&2){let i=r.$implicit;l(5),P("",i.key,":"),l(3),b(i.value)}}function gTi(e,r){if(e&1&&(ot(0),t(1,` `),a(2,"h3",11),t(3),m(4,"translate"),s(),t(5,` `),k(6,"mat-divider",10),t(7,` - `),x(8,gTi,11,2,"ng-container",17),m(9,"keyvalue"),t(10,` + `),x(8,hTi,11,2,"ng-container",17),m(9,"keyvalue"),t(10,` `),at()),e&2){let i=A();l(3),b(d(4,3,"labels.heading.Command")),l(3),g("inset",!0),l(2),g("ngForOf",d(9,5,i.jsondata))}}var xA=(()=>{class e{constructor(i,o,n,c,u){this.route=i,this.dialog=o,this.router=n,this.translateService=c,this.tasksService=u,this.displayJSONData=!1,this.route.data.subscribe(h=>{this.checkerInboxDetail=h.checkerInboxDetail,this.jsondata=D$(this.checkerInboxDetail.commandAsJson,{}),this.displayJSONData=!vft.isEmpty(this.jsondata)})}approveChecker(){this.dialog.open(Xs,{data:{heading:this.translateService.instant("labels.heading.Approve Checker"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want to approve checker")}}).afterClosed().subscribe(o=>{o.confirm&&this.tasksService.executeMakerCheckerAction(this.checkerInboxDetail.id,"approve").subscribe(n=>{this.router.navigate(["../../"],{relativeTo:this.route})})})}rejectChecker(){this.dialog.open(Xs,{data:{heading:this.translateService.instant("labels.heading.Reject Checker"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want to reject checker")}}).afterClosed().subscribe(o=>{o.confirm&&this.tasksService.executeMakerCheckerAction(this.checkerInboxDetail.id,"reject").subscribe(n=>{this.router.navigate(["../../"],{relativeTo:this.route})})})}deleteChecker(){this.dialog.open(Xs,{data:{heading:this.translateService.instant("labels.heading.Delete Checker"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want to delete checker")}}).afterClosed().subscribe(o=>{o.confirm&&this.tasksService.deleteMakerChecker(this.checkerInboxDetail.id).subscribe(n=>{this.router.navigate(["../../"],{relativeTo:this.route})})})}static{this.\u0275fac=function(o){return new(o||e)(V(Lt),V(ni),V(te),V(zi),V(Ko))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-view-checker-inbox"]],decls:116,vars:48,consts:[[1,"layout-row","align-end","gap-1percent","layout-lt-md-column","container","m-b-20"],["mat-raised-button","","color","success",3,"click"],["icon","check",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"],["mat-raised-button","","color","reject",3,"click"],["icon","times",1,"m-r-10"],[1,"container"],[1,"layout-row-wrap","responsive-column"],[1,"mat-h2","flex-fill"],[3,"inset"],[1,"mat-h3","flex-fill"],[1,"flex-fill"],[1,"flex-40"],[1,"flex-60"],["class","flex-fill",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"]],template:function(o,n){o&1&&(a(0,"div",0),t(1,` `),a(2,"button",1),q("click",function(){return n.approveChecker()}),t(3,` `),k(4,"fa-icon",2),t(5),m(6,"translate"),s(),t(7,` @@ -42415,20 +42415,20 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `),a(87,"span",14),t(88),s(),t(89,` `),s(),t(90,` - `),x(91,dTi,9,4,"div",15),t(92,` + `),x(91,mTi,9,4,"div",15),t(92,` `),a(93,"div",12),t(94,` `),a(95,"span",13),t(96),m(97,"translate"),s(),t(98,` `),a(99,"span",14),t(100),m(101,"dateFormat"),s(),t(102,` `),s(),t(103,` - `),x(104,uTi,9,4,"div",15),t(105,` + `),x(104,dTi,9,4,"div",15),t(105,` - `),x(106,fTi,9,4,"div",15),t(107,` + `),x(106,uTi,9,4,"div",15),t(107,` - `),x(108,hTi,8,2,"div",15),t(109,` + `),x(108,fTi,8,2,"div",15),t(109,` - `),x(110,xTi,11,7,"ng-container",16),t(111,` + `),x(110,gTi,11,7,"ng-container",16),t(111,` `),s(),t(112,` `),s(),t(113,` `),s(),t(114,` @@ -42436,10 +42436,10 @@ use chrome, FireFox or Internet Explorer 11`)}var u=e("safe-buffer"),h=e("random `)),o&2&&(l(5),P("",d(6,24,"labels.buttons.Approve"),` `),l(6),P("",d(12,26,"labels.buttons.Delete"),` `),l(6),P("",d(18,28,"labels.buttons.Reject"),` - `),l(13),b(d(31,30,"labels.heading.View Checker Inbox")),l(3),g("inset",!0),l(3),b(d(37,32,"labels.heading.Details")),l(3),g("inset",!0),l(5),P("",d(45,34,"labels.inputs.ID"),":"),l(4),b(n.checkerInboxDetail.id),l(6),P("",d(55,36,"labels.inputs.Status"),":"),l(4),b(n.checkerInboxDetail.processingResult),l(6),P("",d(65,38,"labels.inputs.User"),":"),l(4),b(n.checkerInboxDetail.maker),l(6),P("",d(75,40,"labels.inputs.Action"),":"),l(4),b(n.checkerInboxDetail.actionName),l(6),P("",d(85,42,"labels.inputs.Entity"),":"),l(4),b(n.checkerInboxDetail.entityName),l(3),g("ngIf",n.checkerInboxDetail.resourceId),l(5),P("",d(97,44,"labels.inputs.Date"),":"),l(4),b(d(101,46,n.checkerInboxDetail.madeOnDate)),l(4),g("ngIf",n.checkerInboxDetail.officeName),l(2),g("ngIf",n.checkerInboxDetail.savingsAccountNo),l(2),g("ngIf",n.checkerInboxDetail.groupLevelName),l(2),g("ngIf",n.displayJSONData))},dependencies:[St,se,zt,rw,wt,oe,me,Dt,Gi,Et,Gt,sn],styles:[".mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:0;font-weight:500}span[_ngcontent-%COMP%]{margin:.5em 0}.margin-t[_ngcontent-%COMP%]{margin-top:1em}mat-divider[_ngcontent-%COMP%]{margin:0 0 .5em}.mat-raised-button.mat-success[_ngcontent-%COMP%]{color:#fff;background-color:#008000ab}.mat-raised-button.mat-reject[_ngcontent-%COMP%]{color:#fff;background-color:#ffca00}"]})}}return e})();var Dz=(()=>{class e{constructor(i){this.tasksService=i}resolve(){return this.tasksService.getMakerCheckerData()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ko))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var Az=(()=>{class e{constructor(i){this.tasksService=i}resolve(){return this.tasksService.getGroupedClientsData()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ko))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var Oz=(()=>{class e{constructor(i){this.tasksService=i}resolve(){return this.tasksService.getAllOffices()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ko))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var Fz=(()=>{class e{constructor(i){this.tasksService=i}resolve(){return this.tasksService.getAllLoansToBeApproved()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ko))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var Bz=(()=>{class e{constructor(i){this.tasksService=i}resolve(){return this.tasksService.getAllLoansToBeDisbursed()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ko))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var Rz=(()=>{class e{constructor(i){this.tasksService=i}resolve(){return this.tasksService.getPendingRescheduleLoans()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ko))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var Nz=(()=>{class e{constructor(i){this.tasksService=i}resolve(){return this.tasksService.getMakerCheckerTemplate()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ko))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var Lz=(()=>{class e{constructor(i){this.tasksService=i}resolve(i){let o=i.paramMap.get("id");return this.tasksService.getCheckerInboxDetail(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ko))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var _Ti=[uo.withShell([{path:"checker-inbox-and-tasks",component:pA,data:{title:"Checker Inbox & Tasks",breadcrumb:"Checker Inbox & Tasks"},children:[{path:"checker-inbox",component:mA,data:{title:"Checker Inbox"},resolve:{makerCheckerResource:Dz,makerCheckerTemplate:Nz}},{path:"client-approval",component:uA,data:{title:"Client Approval"},resolve:{groupedClientData:Az}},{path:"loan-approval",component:fA,data:{title:"Laon Approval"},resolve:{officesData:Oz,loansData:Fz}},{path:"loan-disbursal",component:hA,data:{title:"Loan Disbursal"},resolve:{loansData:Bz}},{path:"reschedule-loan",component:gA,data:{title:"Reschedule Loan"},resolve:{recheduleLoansData:Rz}}]},{path:"checker-inbox-and-tasks/checker-inbox",children:[{path:":id/view",component:xA,data:{title:"View Checker Inbox Component",routeParamBreadcrumb:"clientId"},resolve:{checkerInboxDetail:Lz}}]}])],bft=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e})}static{this.\u0275inj=un({providers:[Dz,Az,Oz,Fz,Bz,Rz,Nz,Lz],imports:[tr.forChild(_Ti),tr]})}}return e})();var Cft=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e})}static{this.\u0275inj=un({imports:[Yr,bft,rl,ya,pA,mA,uA,fA,hA,gA,xA]})}}return e})();var yft=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e})}static{this.\u0275inj=un({imports:[Yr,St,I$,dw,hw,c4,m4,ll,Fp,nk]})}}return e})();var Sft=(()=>{class e{constructor(i,o){this.route=i,this.authService=o}ngOnInit(){let i=localStorage.getItem("auth_code");if(i){let o=localStorage.getItem("code_verifier");this.authService.exchangeCodeForTokens(i,o)}}static{this.\u0275fac=function(o){return new(o||e)(V(Lt),V(Va))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-callback"]],decls:11,vars:0,consts:[[1,"loader-wrapper"],[1,"bottom","triangle"],[1,"top","triangle"],[1,"left","triangle"],[1,"right","triangle"]],template:function(o,n){o&1&&(a(0,"div",0),t(1,` + `),l(13),b(d(31,30,"labels.heading.View Checker Inbox")),l(3),g("inset",!0),l(3),b(d(37,32,"labels.heading.Details")),l(3),g("inset",!0),l(5),P("",d(45,34,"labels.inputs.ID"),":"),l(4),b(n.checkerInboxDetail.id),l(6),P("",d(55,36,"labels.inputs.Status"),":"),l(4),b(n.checkerInboxDetail.processingResult),l(6),P("",d(65,38,"labels.inputs.User"),":"),l(4),b(n.checkerInboxDetail.maker),l(6),P("",d(75,40,"labels.inputs.Action"),":"),l(4),b(n.checkerInboxDetail.actionName),l(6),P("",d(85,42,"labels.inputs.Entity"),":"),l(4),b(n.checkerInboxDetail.entityName),l(3),g("ngIf",n.checkerInboxDetail.resourceId),l(5),P("",d(97,44,"labels.inputs.Date"),":"),l(4),b(d(101,46,n.checkerInboxDetail.madeOnDate)),l(4),g("ngIf",n.checkerInboxDetail.officeName),l(2),g("ngIf",n.checkerInboxDetail.savingsAccountNo),l(2),g("ngIf",n.checkerInboxDetail.groupLevelName),l(2),g("ngIf",n.displayJSONData))},dependencies:[St,se,zt,rw,wt,oe,me,Dt,Gi,Et,Gt,sn],styles:[".mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:0;font-weight:500}span[_ngcontent-%COMP%]{margin:.5em 0}.margin-t[_ngcontent-%COMP%]{margin-top:1em}mat-divider[_ngcontent-%COMP%]{margin:0 0 .5em}.mat-raised-button.mat-success[_ngcontent-%COMP%]{color:#fff;background-color:#008000ab}.mat-raised-button.mat-reject[_ngcontent-%COMP%]{color:#fff;background-color:#ffca00}"]})}}return e})();var Dz=(()=>{class e{constructor(i){this.tasksService=i}resolve(){return this.tasksService.getMakerCheckerData()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ko))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var Az=(()=>{class e{constructor(i){this.tasksService=i}resolve(){return this.tasksService.getGroupedClientsData()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ko))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var Oz=(()=>{class e{constructor(i){this.tasksService=i}resolve(){return this.tasksService.getAllOffices()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ko))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var Fz=(()=>{class e{constructor(i){this.tasksService=i}resolve(){return this.tasksService.getAllLoansToBeApproved()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ko))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var Bz=(()=>{class e{constructor(i){this.tasksService=i}resolve(){return this.tasksService.getAllLoansToBeDisbursed()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ko))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var Rz=(()=>{class e{constructor(i){this.tasksService=i}resolve(){return this.tasksService.getPendingRescheduleLoans()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ko))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var Nz=(()=>{class e{constructor(i){this.tasksService=i}resolve(){return this.tasksService.getMakerCheckerTemplate()}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ko))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var Lz=(()=>{class e{constructor(i){this.tasksService=i}resolve(i){let o=i.paramMap.get("id");return this.tasksService.getCheckerInboxDetail(o)}static{this.\u0275fac=function(o){return new(o||e)(Qt(Ko))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var xTi=[uo.withShell([{path:"checker-inbox-and-tasks",component:pA,data:{title:"Checker Inbox & Tasks",breadcrumb:"Checker Inbox & Tasks"},children:[{path:"checker-inbox",component:mA,data:{title:"Checker Inbox"},resolve:{makerCheckerResource:Dz,makerCheckerTemplate:Nz}},{path:"client-approval",component:uA,data:{title:"Client Approval"},resolve:{groupedClientData:Az}},{path:"loan-approval",component:fA,data:{title:"Laon Approval"},resolve:{officesData:Oz,loansData:Fz}},{path:"loan-disbursal",component:hA,data:{title:"Loan Disbursal"},resolve:{loansData:Bz}},{path:"reschedule-loan",component:gA,data:{title:"Reschedule Loan"},resolve:{recheduleLoansData:Rz}}]},{path:"checker-inbox-and-tasks/checker-inbox",children:[{path:":id/view",component:xA,data:{title:"View Checker Inbox Component",routeParamBreadcrumb:"clientId"},resolve:{checkerInboxDetail:Lz}}]}])],bft=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e})}static{this.\u0275inj=un({providers:[Dz,Az,Oz,Fz,Bz,Rz,Nz,Lz],imports:[tr.forChild(xTi),tr]})}}return e})();var Cft=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e})}static{this.\u0275inj=un({imports:[Yr,bft,rl,ya,pA,mA,uA,fA,hA,gA,xA]})}}return e})();var yft=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e})}static{this.\u0275inj=un({imports:[Yr,St,I$,dw,hw,c4,m4,ll,Fp,nk]})}}return e})();var Sft=(()=>{class e{constructor(i,o){this.route=i,this.authService=o}ngOnInit(){let i=localStorage.getItem("auth_code");if(i){let o=localStorage.getItem("code_verifier");this.authService.exchangeCodeForTokens(i,o)}}static{this.\u0275fac=function(o){return new(o||e)(V(Lt),V(Va))}}static{this.\u0275cmp=yt({type:e,selectors:[["mifosx-callback"]],decls:11,vars:0,consts:[[1,"loader-wrapper"],[1,"bottom","triangle"],[1,"top","triangle"],[1,"left","triangle"],[1,"right","triangle"]],template:function(o,n){o&1&&(a(0,"div",0),t(1,` `),k(2,"div",1),t(3,` `),k(4,"div",2),t(5,` `),k(6,"div",3),t(7,` `),k(8,"div",4),t(9,` `),s(),t(10,` -`))},encapsulation:2})}}return e})();var vTi=[{path:"callback",component:Sft},{path:"**",component:r4}],wft=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e})}static{this.\u0275inj=un({imports:[tr.forRoot(vTi,{useHash:!0}),tr]})}}return e})();var Eft=(()=>{class e{http;prefix;suffix;constructor(i,o="/assets/i18n/",n=".json"){this.http=i,this.prefix=o,this.suffix=n}getTranslation(i){return this.http.get(`${this.prefix}${i}${this.suffix}`)}static \u0275fac=function(o){return new(o||e)(Qt(Ro),Qt(String),Qt(String))};static \u0275prov=Wt({token:e,factory:e.\u0275fac})}return e})();var Pft=(()=>{class e{constructor(i){this.authService=i,this.environment=Wn,this.FINERACT_PLATFORM_TENANT_IDENTIFIER=Wn.fineractPlatformTenantId}intercept(i,o){let n=this.authService.getAccessToken(),c={"Fineract-Platform-TenantId":this.FINERACT_PLATFORM_TENANT_IDENTIFIER,"Content-Type":i.headers.get("Content-Type")||"application/json"},h=["/auth/test","/health"].some(y=>i.url.includes(y));n&&!h&&(c.Authorization=`Bearer ${n}`);let _=i.clone({setHeaders:c});return o.handle(_).pipe(KS(y=>y instanceof b$&&y.status===401&&!h?sb(this.handle401Error(_,o)):GU(()=>y)))}handle401Error(i,o){return Dr(this,null,function*(){try{yield this.authService.refreshToken();let n=this.authService.getAccessToken();if(n){let c=i.clone({setHeaders:{Authorization:`Bearer ${n}`,"Fineract-Platform-TenantId":this.FINERACT_PLATFORM_TENANT_IDENTIFIER,"Content-Type":i.headers.get("Content-Type")||"application/json"}});return o.handle(c).toPromise()}else throw new Error("No new access token obtained after refresh")}catch(n){throw console.error("Error in handle401Error, forcing logout"),n}})}static{this.\u0275fac=function(o){return new(o||e)(Qt(Va))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var Vz=class{handle(r){return r.key.replace("labels.catalogs.","")}};var kft=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e,bootstrap:[MQ]})}static{this.\u0275inj=un({providers:[nw,Va,{provide:iu,useClass:Wn.OIDC.oidcServerEnabled?Pft:mb,multi:!0}],imports:[nu.forRoot({loader:{provide:T$,useFactory:(i,o)=>{let n=new Ro(i);return new Eft(n,"/assets/translations/",".json")},deps:[v$,d$]},missingTranslationHandler:{provide:M$,useClass:Vz}}),ow,i4,dw,jQ,VK,qK,gft,GK,QK,yJ,nft,PJ,MJ,$J,C0t,A0t,tdt,Yut,Zut,lft,aft,fft,Cft,yft,wft,r4]})}}return e})();Wn.production&&void 0;_$().bootstrapModule(kft).catch(e=>console.log(e)); +`))},encapsulation:2})}}return e})();var _Ti=[{path:"callback",component:Sft},{path:"**",component:r4}],wft=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e})}static{this.\u0275inj=un({imports:[tr.forRoot(_Ti,{useHash:!0}),tr]})}}return e})();var Eft=(()=>{class e{http;prefix;suffix;constructor(i,o="/assets/i18n/",n=".json"){this.http=i,this.prefix=o,this.suffix=n}getTranslation(i){return this.http.get(`${this.prefix}${i}${this.suffix}`)}static \u0275fac=function(o){return new(o||e)(Qt(Ro),Qt(String),Qt(String))};static \u0275prov=Wt({token:e,factory:e.\u0275fac})}return e})();var Pft=(()=>{class e{constructor(i){this.authService=i,this.environment=Wn,this.FINERACT_PLATFORM_TENANT_IDENTIFIER=Wn.fineractPlatformTenantId}intercept(i,o){let n=this.authService.getAccessToken(),c={"Fineract-Platform-TenantId":this.FINERACT_PLATFORM_TENANT_IDENTIFIER,"Content-Type":i.headers.get("Content-Type")||"application/json"},h=["/auth/test","/health"].some(y=>i.url.includes(y));n&&!h&&(c.Authorization=`Bearer ${n}`);let _=i.clone({setHeaders:c});return o.handle(_).pipe(KS(y=>y instanceof b$&&y.status===401&&!h?sb(this.handle401Error(_,o)):GU(()=>y)))}handle401Error(i,o){return Dr(this,null,function*(){try{yield this.authService.refreshToken();let n=this.authService.getAccessToken();if(n){let c=i.clone({setHeaders:{Authorization:`Bearer ${n}`,"Fineract-Platform-TenantId":this.FINERACT_PLATFORM_TENANT_IDENTIFIER,"Content-Type":i.headers.get("Content-Type")||"application/json"}});return o.handle(c).toPromise()}else throw new Error("No new access token obtained after refresh")}catch(n){throw console.error("Error in handle401Error, forcing logout"),n}})}static{this.\u0275fac=function(o){return new(o||e)(Qt(Va))}}static{this.\u0275prov=Wt({token:e,factory:e.\u0275fac})}}return e})();var Vz=class{handle(r){return r.key.replace("labels.catalogs.","")}};var kft=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=fn({type:e,bootstrap:[MQ]})}static{this.\u0275inj=un({providers:[nw,Va,{provide:iu,useClass:Wn.OIDC.oidcServerEnabled?Pft:mb,multi:!0}],imports:[nu.forRoot({loader:{provide:T$,useFactory:(i,o)=>{let n=new Ro(i);return new Eft(n,"/assets/translations/",".json")},deps:[v$,d$]},missingTranslationHandler:{provide:M$,useClass:Vz}}),ow,i4,dw,jQ,VK,qK,gft,GK,QK,yJ,nft,PJ,MJ,$J,C0t,A0t,tdt,Yut,Zut,lft,aft,fft,Cft,yft,wft,r4]})}}return e})();Wn.production&&void 0;_$().bootstrapModule(kft).catch(e=>console.log(e)); diff --git a/browser/recurring-deposits.module-XCGNYUI2.js b/browser/recurring-deposits.module-2RUP7WIB.js similarity index 99% rename from browser/recurring-deposits.module-XCGNYUI2.js rename to browser/recurring-deposits.module-2RUP7WIB.js index a361f7e8e..65f5525d3 100644 --- a/browser/recurring-deposits.module-XCGNYUI2.js +++ b/browser/recurring-deposits.module-2RUP7WIB.js @@ -1,4 +1,4 @@ -import{a as Tn,b as Mn}from"./chunk-CP3ZQJ5C.js";import{a as mi}from"./chunk-5I7WSU35.js";import{$a as Nn,$b as Ie,$d as We,Ad as _t,Ba as St,Bb as kn,Bd as Ct,Ca as Pt,Cd as Ue,Ce as Jn,Da as Tt,Dc as Q,Dd as Rt,E as It,Ea as R,Ec as U,Ed as Ft,F as Ve,Fa as t,Fd as pe,Ga as u,Gf as ni,H as yt,Ha as x,Ia as M,Ic as ct,Id as ut,J as Zt,Ja as oe,Jb as Me,Jc as q,K as S,Kb as ye,Kc as Y,L as P,Lc as nt,Ld as fe,Le as Ke,Lf as ii,Mb as re,Md as ce,Me as Xn,Mf as Yt,Nb as ae,Nf as ri,Ob as Ae,Oc as J,Of as Ze,Pa as L,Pe as Qe,Pf as ai,Q as qe,Qa as xe,Qc as it,Qd as He,Qe as Ye,Rc as Ee,Re as Je,Sa as o,Sc as zn,Se as Xe,Ta as c,Tb as k,Tc as rt,Td as $e,Te as ne,Tf as le,Ua as w,Ub as Vn,Ud as Le,Ue as Qt,Vd as ze,Ve as Bt,W as Bn,Wa as G,Wb as H,Wc as at,Wd as se,We as Nt,Xb as z,Xe as kt,Yb as qn,Yf as oi,Zb as Pn,Zc as st,Ze as Vt,Zf as tn,_ as a,_e as qt,_f as Re,ab as be,ac as V,af as jt,bb as Mt,bd as ot,bf as Gt,bg as pi,ca as C,cb as F,da as A,db as Se,dd as O,df as Ut,ea as je,ed as W,ef as Ht,fd as Wn,gd as Kn,gf as $t,gg as ci,ha as m,hd as lt,ia as ve,ig as si,ja as d,jd as gt,jf as _e,kb as Pe,kd as Qn,lc as jn,mc as Gn,md as Yn,na as n,nc as ee,nd as X,oa as i,ob as Ge,oc as Un,od as mt,of as Zn,pa as f,pb as Te,pc as Hn,pf as ti,qa as D,qb as I,qc as $n,qf as ei,qg as we,ra as v,rc as Ln,rd as xt,rg as li,sd as Z,ta as y,td as Kt,ua as b,ud as dt,va as _,vc as Oe,vd as Ot,wc as E,xd as Et,ya as bt,yb as te,zd as ft}from"./chunk-KX2ZKPHO.js";import{a as B,b as K}from"./chunk-O7S4L63H.js";var N=(()=>{class e{constructor(r){this.http=r}getRecurringDepositsAccountData(r){let l=new te().set("associations","all");return this.http.get(`/recurringdepositaccounts/${r}`,{params:l})}getStandingInstructions(r,l,p,g,h){let T=new te().set("clientId",r).set("clientName",l).set("fromAccountId",p).set("fromAccountType","2").set("locale",g).set("dateFormat",h);return this.http.get("/standinginstructions",{params:T})}getRecurringDepositsAccountTemplate(r,l){let p=new te().set("clientId",r);return p=l?p.set("productId",l):p,this.http.get("/recurringdepositaccounts/template",{params:p})}createRecurringDepositAccount(r){return this.http.post("/recurringdepositaccounts",r)}executeRecurringDepositsAccountCommand(r,l,p){let g=new te().set("command",l);return l==="deposit"||l==="withdrawal"?this.http.post(`/recurringdepositaccounts/${r}/transactions`,p,{params:g}):this.http.post(`/recurringdepositaccounts/${r}`,p,{params:g})}deleteRecurringDepositsAccount(r){return this.http.delete(`/recurringdepositaccounts/${r}`)}getRecurringDepositsAccountAndTemplate(r){let l=new te().set("associations","charges").set("template","true");return this.http.get(`/recurringdepositaccounts/${r}`,{params:l})}updateRecurringDepositAccount(r,l){return this.http.put(`/recurringdepositaccounts/${r}`,l)}getRecurringDepositAccountActionResource(r,l){let p=new te().set("command",l);return this.http.get(`/recurringdepositaccounts/${r}/template`,{params:p})}getRecurringDepositAccountTransactionTemplateResource(r,l){let p=new te().set("command",l);return this.http.get(`/recurringdepositaccounts/${r}/transactions/template`,{params:p})}getRecurringDepositsAccountTransaction(r,l){return this.http.get(`/recurringdepositaccounts/${r}/transactions/${l}`)}getRecurringDepositsAccountTransactionTemplate(r,l){let p=new te().set("template","true");return this.http.get(`/recurringdepositaccounts/${r}/transactions/${l}`,{params:p})}executeRecurringDepositsAccountTransactionsCommand(r,l,p,g){let h=new te().set("command",l);return this.http.post(`/recurringdepositaccounts/${r}/transactions/${g}`,p,{params:h})}static{this.\u0275fac=function(l){return new(l||e)(yt(kn))}}static{this.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var en=class{constructor(s){this.setOptions(s),this.setButtons(s)}get singleButtons(){return this.buttonsArray}get options(){return this.optionArray}setButtons(s){switch(s){case"Active":this.buttonsArray=[{name:"Deposit",icon:"fa fa-arrow-up",taskPermissionName:"DEPOSIT_RECURRINGDEPOSITACCOUNT"},{name:"Withdrawal",icon:"fa fa-arrow-down",taskPermissionName:"WITHDRAWAL_RECURRINGDEPOSITACCOUNT"},{name:"Premature Close",icon:"fa fa-arrow-left",taskPermissionName:"PREMATURECLOSE_RECURRINGDEPOSITACCOUNT"},{name:"Calculate Interest",icon:"fa fa-calculator",taskPermissionName:"CALCULATEINTEREST_RECURRINGDEPOSITACCOUNT"},{name:"Undo Activation",icon:"fa fa-undo",taskPermissionName:"UNDO_ACTIVATE_RECURRINGDEPOSITACCOUNT"}];break;case"Submitted and pending approval":this.buttonsArray=[{name:"Modify Application",icon:"fa fa-edit",taskPermissionName:"UPDATE_RECURRINGDEPOSITACCOUNT"},{name:"Approve",icon:"fa fa-check",taskPermissionName:"APPROVE_RECURRINGDEPOSITACCOUNT"}];break;case"Approved":this.buttonsArray=[{name:"Undo Approval",icon:"fa fa-undo",taskPermissionName:"APPROVALUNDO_RECURRINGDEPOSITACCOUNT"},{name:"Activate",icon:"fa fa-check",taskPermissionName:"ACTIVATE_RECURRINGDEPOSITACCOUNT"}];break;case"Matured":this.buttonsArray=[{name:"Close",icon:"fa fa-arrow-right",taskPermissionName:"CLOSE_RECURRINGDEPOSITACCOUNT"},{name:"Calculate Interest",icon:"fa fa-calculator",taskPermissionName:"CALCULATEINTEREST_RECURRINGDEPOSITACCOUNT"},{name:"Post Interest",icon:"fa fa-money",taskPermissionName:"POSTINTEREST_RECURRINGDEPOSITACCOUNT"}];break;default:this.buttonsArray=[]}}setOptions(s){switch(s){case"Active":this.optionArray=[{name:"Post Interest",icon:"table",taskPermissionName:"POSTINTEREST_RECURRINGDEPOSITACCOUNT"},{name:"Add Charge",icon:"plus",taskPermissionName:"POSTINTEREST_RECURRINGDEPOSITACCOUNT"}];break;case"Submitted and pending approval":this.optionArray=[{name:"Reject",icon:"ban",taskPermissionName:"REJECT_RECURRINGDEPOSITACCOUNT"},{name:"Withdrawn by Client",icon:"arrow-down",taskPermissionName:"WITHDRAW_RECURRINGDEPOSITACCOUNT"},{name:"Add Charge",icon:"plus",taskPermissionName:"ADDCHARGE_RECURRINGDEPOSITACCOUNT"},{name:"Delete",icon:"trash",taskPermissionName:"DELETE_RECURRINGDEPOSITACCOUNT"}];break;case"Matured":this.optionArray=[{name:"Add Charge",icon:"plus",taskPermissionName:"ADDCHARGE_RECURRINGDEPOSITACCOUNT"}];break;case"Approved":default:this.optionArray=[]}}addOption(s){this.optionArray.push(s)}addButton(s){this.buttonsArray.push(s)}};var xi=()=>({confirm:!0}),Jt=(()=>{class e{constructor(r,l){this.dialogRef=r,this.data=l}static{this.\u0275fac=function(l){return new(l||e)(C(jn),C(Gn))}}static{this.\u0275cmp=A({type:e,selectors:[["mifosx-recurring-deposit-confirmation-action"]],decls:20,vars:10,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","warn",3,"mat-dialog-close"]],template:function(l,p){l&1&&(n(0,"h1",0),t(1),i(),t(2,` +import{a as Tn,b as Mn}from"./chunk-R2LWMVHI.js";import{a as mi}from"./chunk-7XDYUJUV.js";import{$a as Nn,$b as Ie,$d as We,Ad as _t,Ba as St,Bb as kn,Bd as Ct,Ca as Pt,Cd as Ue,Ce as Jn,Da as Tt,Dc as Q,Dd as Rt,E as It,Ea as R,Ec as U,Ed as Ft,F as Ve,Fa as t,Fd as pe,Ga as u,Gf as ni,H as yt,Ha as x,Ia as M,Ic as ct,Id as ut,J as Zt,Ja as oe,Jb as Me,Jc as q,K as S,Kb as ye,Kc as Y,L as P,Lc as nt,Ld as fe,Le as Ke,Lf as ii,Mb as re,Md as ce,Me as Xn,Mf as Yt,Nb as ae,Nf as ri,Ob as Ae,Oc as J,Of as Ze,Pa as L,Pe as Qe,Pf as ai,Q as qe,Qa as xe,Qc as it,Qd as He,Qe as Ye,Rc as Ee,Re as Je,Sa as o,Sc as zn,Se as Xe,Ta as c,Tb as k,Tc as rt,Td as $e,Te as ne,Tf as le,Ua as w,Ub as Vn,Ud as Le,Ue as Qt,Vd as ze,Ve as Bt,W as Bn,Wa as G,Wb as H,Wc as at,Wd as se,We as Nt,Xb as z,Xe as kt,Yb as qn,Yf as oi,Zb as Pn,Zc as st,Ze as Vt,Zf as tn,_ as a,_e as qt,_f as Re,ab as be,ac as V,af as jt,bb as Mt,bd as ot,bf as Gt,bg as pi,ca as C,cb as F,da as A,db as Se,dd as O,df as Ut,ea as je,ed as W,ef as Ht,fd as Wn,gd as Kn,gf as $t,gg as ci,ha as m,hd as lt,ia as ve,ig as si,ja as d,jd as gt,jf as _e,kb as Pe,kd as Qn,lc as jn,mc as Gn,md as Yn,na as n,nc as ee,nd as X,oa as i,ob as Ge,oc as Un,od as mt,of as Zn,pa as f,pb as Te,pc as Hn,pf as ti,qa as D,qb as I,qc as $n,qf as ei,qg as we,ra as v,rc as Ln,rd as xt,rg as li,sd as Z,ta as y,td as Kt,ua as b,ud as dt,va as _,vc as Oe,vd as Ot,wc as E,xd as Et,ya as bt,yb as te,zd as ft}from"./chunk-2BUEM4AN.js";import{a as B,b as K}from"./chunk-O7S4L63H.js";var N=(()=>{class e{constructor(r){this.http=r}getRecurringDepositsAccountData(r){let l=new te().set("associations","all");return this.http.get(`/recurringdepositaccounts/${r}`,{params:l})}getStandingInstructions(r,l,p,g,h){let T=new te().set("clientId",r).set("clientName",l).set("fromAccountId",p).set("fromAccountType","2").set("locale",g).set("dateFormat",h);return this.http.get("/standinginstructions",{params:T})}getRecurringDepositsAccountTemplate(r,l){let p=new te().set("clientId",r);return p=l?p.set("productId",l):p,this.http.get("/recurringdepositaccounts/template",{params:p})}createRecurringDepositAccount(r){return this.http.post("/recurringdepositaccounts",r)}executeRecurringDepositsAccountCommand(r,l,p){let g=new te().set("command",l);return l==="deposit"||l==="withdrawal"?this.http.post(`/recurringdepositaccounts/${r}/transactions`,p,{params:g}):this.http.post(`/recurringdepositaccounts/${r}`,p,{params:g})}deleteRecurringDepositsAccount(r){return this.http.delete(`/recurringdepositaccounts/${r}`)}getRecurringDepositsAccountAndTemplate(r){let l=new te().set("associations","charges").set("template","true");return this.http.get(`/recurringdepositaccounts/${r}`,{params:l})}updateRecurringDepositAccount(r,l){return this.http.put(`/recurringdepositaccounts/${r}`,l)}getRecurringDepositAccountActionResource(r,l){let p=new te().set("command",l);return this.http.get(`/recurringdepositaccounts/${r}/template`,{params:p})}getRecurringDepositAccountTransactionTemplateResource(r,l){let p=new te().set("command",l);return this.http.get(`/recurringdepositaccounts/${r}/transactions/template`,{params:p})}getRecurringDepositsAccountTransaction(r,l){return this.http.get(`/recurringdepositaccounts/${r}/transactions/${l}`)}getRecurringDepositsAccountTransactionTemplate(r,l){let p=new te().set("template","true");return this.http.get(`/recurringdepositaccounts/${r}/transactions/${l}`,{params:p})}executeRecurringDepositsAccountTransactionsCommand(r,l,p,g){let h=new te().set("command",l);return this.http.post(`/recurringdepositaccounts/${r}/transactions/${g}`,p,{params:h})}static{this.\u0275fac=function(l){return new(l||e)(yt(kn))}}static{this.\u0275prov=It({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var en=class{constructor(s){this.setOptions(s),this.setButtons(s)}get singleButtons(){return this.buttonsArray}get options(){return this.optionArray}setButtons(s){switch(s){case"Active":this.buttonsArray=[{name:"Deposit",icon:"fa fa-arrow-up",taskPermissionName:"DEPOSIT_RECURRINGDEPOSITACCOUNT"},{name:"Withdrawal",icon:"fa fa-arrow-down",taskPermissionName:"WITHDRAWAL_RECURRINGDEPOSITACCOUNT"},{name:"Premature Close",icon:"fa fa-arrow-left",taskPermissionName:"PREMATURECLOSE_RECURRINGDEPOSITACCOUNT"},{name:"Calculate Interest",icon:"fa fa-calculator",taskPermissionName:"CALCULATEINTEREST_RECURRINGDEPOSITACCOUNT"},{name:"Undo Activation",icon:"fa fa-undo",taskPermissionName:"UNDO_ACTIVATE_RECURRINGDEPOSITACCOUNT"}];break;case"Submitted and pending approval":this.buttonsArray=[{name:"Modify Application",icon:"fa fa-edit",taskPermissionName:"UPDATE_RECURRINGDEPOSITACCOUNT"},{name:"Approve",icon:"fa fa-check",taskPermissionName:"APPROVE_RECURRINGDEPOSITACCOUNT"}];break;case"Approved":this.buttonsArray=[{name:"Undo Approval",icon:"fa fa-undo",taskPermissionName:"APPROVALUNDO_RECURRINGDEPOSITACCOUNT"},{name:"Activate",icon:"fa fa-check",taskPermissionName:"ACTIVATE_RECURRINGDEPOSITACCOUNT"}];break;case"Matured":this.buttonsArray=[{name:"Close",icon:"fa fa-arrow-right",taskPermissionName:"CLOSE_RECURRINGDEPOSITACCOUNT"},{name:"Calculate Interest",icon:"fa fa-calculator",taskPermissionName:"CALCULATEINTEREST_RECURRINGDEPOSITACCOUNT"},{name:"Post Interest",icon:"fa fa-money",taskPermissionName:"POSTINTEREST_RECURRINGDEPOSITACCOUNT"}];break;default:this.buttonsArray=[]}}setOptions(s){switch(s){case"Active":this.optionArray=[{name:"Post Interest",icon:"table",taskPermissionName:"POSTINTEREST_RECURRINGDEPOSITACCOUNT"},{name:"Add Charge",icon:"plus",taskPermissionName:"POSTINTEREST_RECURRINGDEPOSITACCOUNT"}];break;case"Submitted and pending approval":this.optionArray=[{name:"Reject",icon:"ban",taskPermissionName:"REJECT_RECURRINGDEPOSITACCOUNT"},{name:"Withdrawn by Client",icon:"arrow-down",taskPermissionName:"WITHDRAW_RECURRINGDEPOSITACCOUNT"},{name:"Add Charge",icon:"plus",taskPermissionName:"ADDCHARGE_RECURRINGDEPOSITACCOUNT"},{name:"Delete",icon:"trash",taskPermissionName:"DELETE_RECURRINGDEPOSITACCOUNT"}];break;case"Matured":this.optionArray=[{name:"Add Charge",icon:"plus",taskPermissionName:"ADDCHARGE_RECURRINGDEPOSITACCOUNT"}];break;case"Approved":default:this.optionArray=[]}}addOption(s){this.optionArray.push(s)}addButton(s){this.buttonsArray.push(s)}};var xi=()=>({confirm:!0}),Jt=(()=>{class e{constructor(r,l){this.dialogRef=r,this.data=l}static{this.\u0275fac=function(l){return new(l||e)(C(jn),C(Gn))}}static{this.\u0275cmp=A({type:e,selectors:[["mifosx-recurring-deposit-confirmation-action"]],decls:20,vars:10,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","warn",3,"mat-dialog-close"]],template:function(l,p){l&1&&(n(0,"h1",0),t(1),i(),t(2,` `),n(3,"div",1),t(4,` `),n(5,"p"),t(6),i(),t(7,` `),i(),t(8,` @@ -2477,4 +2477,4 @@ import{a as Tn,b as Mn}from"./chunk-CP3ZQJ5C.js";import{a as mi}from"./chunk-5I7 `),m(15,Es,68,30,"div",1),t(16,` `),i(),t(17,` -`)),l&2&&(a(2),d("ngIf",!p.recurringDepositsAccountData.status.rejected&&!p.recurringDepositsAccountData.status.submittedAndPendingApproval),a(2),d("ngIf",!p.recurringDepositsAccountData.status.rejected&&!p.recurringDepositsAccountData.status.submittedAndPendingApproval),a(2),d("ngIf",p.recurringDepositsAccountData.status.rejected||p.recurringDepositsAccountData.status.submittedAndPendingApproval),a(2),d("ngIf",p.recurringDepositsAccountData.status.rejected||p.recurringDepositsAccountData.status.submittedAndPendingApproval),a(5),d("ngIf",!p.recurringDepositsAccountData.status.rejected&&!p.recurringDepositsAccountData.status.submittedAndPendingApproval),a(2),d("ngIf",p.recurringDepositsAccountData.status.rejected||p.recurringDepositsAccountData.status.submittedAndPendingApproval))},dependencies:[I,F,Ge,Te,O,Rt,E,Ft,ni,Yt],styles:[".recurring-deposits-account-tables[_ngcontent-%COMP%]{padding:1%}"]})}}return e})();var Rs=[{path:"",data:{title:"Recurring Deposits",breadcrumb:"Recurring Deposits",routeParamBreadcrumb:!1},children:[{path:"create-recurring-deposits-account",data:{title:"Create Recurring Deposits Account",breadcrumb:"Create Recurring Deposits Account"},component:sn,resolve:{recurringDepositsAccountTemplate:On}},{path:":recurringDepositAccountId",data:{title:"RecurringDeposit Account View",routeParamBreadcrumb:"recurringDepositAccountId"},children:[{path:"",component:nn,resolve:{recurringDepositsAccountData:In,savingsDatatables:Mn},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:Sn,data:{title:"Recurring Deposit Account Details",breadcrumb:"General",routeParamBreadcrumb:!1}},{path:"interest-rate-chart",component:rn,data:{title:"Recurring Deposit Account Interest Rate Chart",breadcrumb:"Interest Rate Chart",routeParamBreadcrumb:!1}},{path:"transactions",component:an,data:{title:"Recurring Deposit Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1}},{path:"charges",component:pn,data:{title:"Recurring Deposit Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1}},{path:"standing-instructions-tab",component:on,data:{title:"Recurring Deposit Account Standing Instructions",breadcrumb:"Standing Instructions",routeParamBreadcrumb:!1}},{path:"datatables",children:[{path:":datatableName",component:cn,data:{title:"View Data Table",routeParamBreadcrumb:"datatableName"},resolve:{savingsDatatable:Tn}}]}]},{path:"edit-recurring-deposit-account",data:{title:"Edit Recurring Deposit Account",breadcrumb:"Edit",routeParamBreadcrumb:!1},component:bn,resolve:{recurringDepositsAccountAndTemplate:Rn}},{path:"transactions",data:{title:"Recurring Deposits Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},children:[{path:"",redirectTo:"../transactions",pathMatch:"prefix"},{path:":id",data:{routeParamBreadcrumb:"id"},children:[{path:"",component:Dn,resolve:{recurringDepositsAccountTransaction:wn}},{path:"edit",component:vn,resolve:{recurringDepositsAccountTransactionTemplate:Fn}}]}]},{path:"actions/:name",data:{title:"Recurring Deposits Account Actions",routeParamBreadcrumb:"name"},component:hn,resolve:{recurringDepositsAccountActionData:En}}]},{path:":recurringDepositAccountId/transfer-funds",loadChildren:()=>import("./account-transfers.module-3MJMMBU5.js").then(e=>e.AccountTransfersModule)}]},{path:"",data:{title:"All Recurring Deposits",breadcrumb:"Recurring Deposits",routeParamBreadcrumb:!1},children:[{path:":recurringDepositAccountId",data:{title:"RecurringDeposit Account View",routeParamBreadcrumb:"recurringDepositAccountId"},children:[{path:"standing-instructions",loadChildren:()=>import("./account-transfers.module-3MJMMBU5.js").then(e=>e.AccountTransfersModule)}]}]}],ui=(()=>{class e{static{this.\u0275fac=function(l){return new(l||e)}}static{this.\u0275mod=je({type:e})}static{this.\u0275inj=Ve({providers:[di,In,Tn,Mn,On,En,Rn,wn,Fn],imports:[Pn.forChild(Rs),Pn]})}}return e})();var Lf=(()=>{class e{static{this.\u0275fac=function(l){return new(l||e)}}static{this.\u0275mod=je({type:e})}static{this.\u0275inj=Ve({imports:[li,ai,oi,ui,nn,rn,an,on,pn,cn,sn,me,de,ue,Be,ge,Ne,hn,ln,mn,dn,un,gn,xn,Jt,bn,fn,_n,Cn,Dn,vn,Sn]})}}return e})();export{Lf as RecurringDepositsModule}; +`)),l&2&&(a(2),d("ngIf",!p.recurringDepositsAccountData.status.rejected&&!p.recurringDepositsAccountData.status.submittedAndPendingApproval),a(2),d("ngIf",!p.recurringDepositsAccountData.status.rejected&&!p.recurringDepositsAccountData.status.submittedAndPendingApproval),a(2),d("ngIf",p.recurringDepositsAccountData.status.rejected||p.recurringDepositsAccountData.status.submittedAndPendingApproval),a(2),d("ngIf",p.recurringDepositsAccountData.status.rejected||p.recurringDepositsAccountData.status.submittedAndPendingApproval),a(5),d("ngIf",!p.recurringDepositsAccountData.status.rejected&&!p.recurringDepositsAccountData.status.submittedAndPendingApproval),a(2),d("ngIf",p.recurringDepositsAccountData.status.rejected||p.recurringDepositsAccountData.status.submittedAndPendingApproval))},dependencies:[I,F,Ge,Te,O,Rt,E,Ft,ni,Yt],styles:[".recurring-deposits-account-tables[_ngcontent-%COMP%]{padding:1%}"]})}}return e})();var Rs=[{path:"",data:{title:"Recurring Deposits",breadcrumb:"Recurring Deposits",routeParamBreadcrumb:!1},children:[{path:"create-recurring-deposits-account",data:{title:"Create Recurring Deposits Account",breadcrumb:"Create Recurring Deposits Account"},component:sn,resolve:{recurringDepositsAccountTemplate:On}},{path:":recurringDepositAccountId",data:{title:"RecurringDeposit Account View",routeParamBreadcrumb:"recurringDepositAccountId"},children:[{path:"",component:nn,resolve:{recurringDepositsAccountData:In,savingsDatatables:Mn},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:Sn,data:{title:"Recurring Deposit Account Details",breadcrumb:"General",routeParamBreadcrumb:!1}},{path:"interest-rate-chart",component:rn,data:{title:"Recurring Deposit Account Interest Rate Chart",breadcrumb:"Interest Rate Chart",routeParamBreadcrumb:!1}},{path:"transactions",component:an,data:{title:"Recurring Deposit Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1}},{path:"charges",component:pn,data:{title:"Recurring Deposit Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1}},{path:"standing-instructions-tab",component:on,data:{title:"Recurring Deposit Account Standing Instructions",breadcrumb:"Standing Instructions",routeParamBreadcrumb:!1}},{path:"datatables",children:[{path:":datatableName",component:cn,data:{title:"View Data Table",routeParamBreadcrumb:"datatableName"},resolve:{savingsDatatable:Tn}}]}]},{path:"edit-recurring-deposit-account",data:{title:"Edit Recurring Deposit Account",breadcrumb:"Edit",routeParamBreadcrumb:!1},component:bn,resolve:{recurringDepositsAccountAndTemplate:Rn}},{path:"transactions",data:{title:"Recurring Deposits Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},children:[{path:"",redirectTo:"../transactions",pathMatch:"prefix"},{path:":id",data:{routeParamBreadcrumb:"id"},children:[{path:"",component:Dn,resolve:{recurringDepositsAccountTransaction:wn}},{path:"edit",component:vn,resolve:{recurringDepositsAccountTransactionTemplate:Fn}}]}]},{path:"actions/:name",data:{title:"Recurring Deposits Account Actions",routeParamBreadcrumb:"name"},component:hn,resolve:{recurringDepositsAccountActionData:En}}]},{path:":recurringDepositAccountId/transfer-funds",loadChildren:()=>import("./account-transfers.module-DO6BMPA2.js").then(e=>e.AccountTransfersModule)}]},{path:"",data:{title:"All Recurring Deposits",breadcrumb:"Recurring Deposits",routeParamBreadcrumb:!1},children:[{path:":recurringDepositAccountId",data:{title:"RecurringDeposit Account View",routeParamBreadcrumb:"recurringDepositAccountId"},children:[{path:"standing-instructions",loadChildren:()=>import("./account-transfers.module-DO6BMPA2.js").then(e=>e.AccountTransfersModule)}]}]}],ui=(()=>{class e{static{this.\u0275fac=function(l){return new(l||e)}}static{this.\u0275mod=je({type:e})}static{this.\u0275inj=Ve({providers:[di,In,Tn,Mn,On,En,Rn,wn,Fn],imports:[Pn.forChild(Rs),Pn]})}}return e})();var Lf=(()=>{class e{static{this.\u0275fac=function(l){return new(l||e)}}static{this.\u0275mod=je({type:e})}static{this.\u0275inj=Ve({imports:[li,ai,oi,ui,nn,rn,an,on,pn,cn,sn,me,de,ue,Be,ge,Ne,hn,ln,mn,dn,un,gn,xn,Jt,bn,fn,_n,Cn,Dn,vn,Sn]})}}return e})();export{Lf as RecurringDepositsModule}; diff --git a/browser/savings.module-6DKAYMO6.js b/browser/savings.module-MJKP5CF4.js similarity index 99% rename from browser/savings.module-6DKAYMO6.js rename to browser/savings.module-MJKP5CF4.js index 69c719069..a0bef106d 100644 --- a/browser/savings.module-6DKAYMO6.js +++ b/browser/savings.module-MJKP5CF4.js @@ -1,4 +1,4 @@ -import{a as He}from"./chunk-EIMWP6JY.js";import{a as gn,b as oi,c as Ui,d as qi}from"./chunk-3XID6S56.js";import{a as Ge}from"./chunk-2GVR7HS2.js";import{a as ri,b as si}from"./chunk-CP3ZQJ5C.js";import{a as Gi}from"./chunk-5I7WSU35.js";import{$b as De,$d as sn,Ad as _t,Ba as Pt,Bd as Ct,Ca as yt,Cd as xe,Ce as we,Da as Ot,Dc as z,Dd as Rt,E as Tt,Ea as D,Ec as j,Ed as Vt,F as We,Fa as t,Fd as Lt,Ga as u,Gb as Je,Gc as bi,Gf as Ve,H as Mt,Ha as v,Ia as R,Ic as nt,Id as bt,If as Ei,J as Oe,Ja as Ie,Jc as U,K as S,Kc as K,L as M,La as Zn,Lc as it,Ld as le,Le as Fe,Lf as wi,Ma as ti,Md as _e,Me as ai,Mf as de,Na as ei,Ne as Di,Nf as pn,Oc as ft,Of as dn,Pa as B,Pc as Si,Pd as Oi,Pe as ke,Pf as Fi,Q as Qe,Qa as Nt,Qc as at,Qd as nn,Qe as Be,Rc as oe,Re as Ne,Sa as c,Sc as Mi,Se as Re,Ta as m,Tb as F,Tc as ot,Td as an,Te as he,Tf as I,Ua as St,Ub as Xe,Ud as on,Ue as pe,Uf as ki,Va as hi,Vd as rn,Ve as Ut,W as Ci,Wa as et,Wb as q,Wc as rt,Wd as Ce,We as qt,Wf as Bi,X as Ke,Xa as ni,Xb as G,Xe as Ht,Yb as Ze,Yf as Ni,Zb as ii,Zc as pt,Ze as zt,Zf as Le,_ as o,_e as $t,_f as ue,ab as ge,ac as k,af as Wt,bb as It,bd as st,bf as Qt,bg as un,ca as x,cb as N,cd as Ai,da as A,dd as P,de as Ii,df as Kt,ea as Ye,ed as J,ef as Yt,fd as en,gd as Ti,gf as Jt,gg as Ri,ha as d,hd as ct,ig as Vi,ja as l,jd as ht,jf as Zt,kd as Pi,lc as te,m as _i,mc as Ee,md as yi,na as i,nc as Et,nd as X,oa as a,oc as ee,od as dt,of as cn,pa as f,pb as fe,pc as ne,pf as mn,pg as Li,qa as E,qb as T,qc as ie,qf as ln,qg as je,ra as w,rc as ae,rd as vt,rg as ji,sd as Z,ta as y,td as re,ua as h,ud as mt,va as C,vc as ve,vd as wt,wc as O,xd as Ft,ya as gt,yc as tn,zd as xt}from"./chunk-KX2ZKPHO.js";import{a as L,b as Q}from"./chunk-O7S4L63H.js";var Ki=()=>({confirm:!0}),fn=(()=>{class e{constructor(n){this.dialogRef=n}static{this.\u0275fac=function(s){return new(s||e)(x(te))}}static{this.\u0275cmp=A({type:e,selectors:[["mifosx-calculate-interest-dialog"]],decls:22,vars:14,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(s,r){s&1&&(i(0,"h1",0),t(1),c(2,"translate"),a(),t(3,` +import{a as He}from"./chunk-VYSWMZL6.js";import{a as gn,b as oi,c as Ui,d as qi}from"./chunk-JRMODJLE.js";import{a as Ge}from"./chunk-NQ7FRJVX.js";import{a as ri,b as si}from"./chunk-R2LWMVHI.js";import{a as Gi}from"./chunk-7XDYUJUV.js";import{$b as De,$d as sn,Ad as _t,Ba as Pt,Bd as Ct,Ca as yt,Cd as xe,Ce as we,Da as Ot,Dc as z,Dd as Rt,E as Tt,Ea as D,Ec as j,Ed as Vt,F as We,Fa as t,Fd as Lt,Ga as u,Gb as Je,Gc as bi,Gf as Ve,H as Mt,Ha as v,Ia as R,Ic as nt,Id as bt,If as Ei,J as Oe,Ja as Ie,Jc as U,K as S,Kc as K,L as M,La as Zn,Lc as it,Ld as le,Le as Fe,Lf as wi,Ma as ti,Md as _e,Me as ai,Mf as de,Na as ei,Ne as Di,Nf as pn,Oc as ft,Of as dn,Pa as B,Pc as Si,Pd as Oi,Pe as ke,Pf as Fi,Q as Qe,Qa as Nt,Qc as at,Qd as nn,Qe as Be,Rc as oe,Re as Ne,Sa as c,Sc as Mi,Se as Re,Ta as m,Tb as F,Tc as ot,Td as an,Te as he,Tf as I,Ua as St,Ub as Xe,Ud as on,Ue as pe,Uf as ki,Va as hi,Vd as rn,Ve as Ut,W as Ci,Wa as et,Wb as q,Wc as rt,Wd as Ce,We as qt,Wf as Bi,X as Ke,Xa as ni,Xb as G,Xe as Ht,Yb as Ze,Yf as Ni,Zb as ii,Zc as pt,Ze as zt,Zf as Le,_ as o,_e as $t,_f as ue,ab as ge,ac as k,af as Wt,bb as It,bd as st,bf as Qt,bg as un,ca as x,cb as N,cd as Ai,da as A,dd as P,de as Ii,df as Kt,ea as Ye,ed as J,ef as Yt,fd as en,gd as Ti,gf as Jt,gg as Ri,ha as d,hd as ct,ig as Vi,ja as l,jd as ht,jf as Zt,kd as Pi,lc as te,m as _i,mc as Ee,md as yi,na as i,nc as Et,nd as X,oa as a,oc as ee,od as dt,of as cn,pa as f,pb as fe,pc as ne,pf as mn,pg as Li,qa as E,qb as T,qc as ie,qf as ln,qg as je,ra as w,rc as ae,rd as vt,rg as ji,sd as Z,ta as y,td as re,ua as h,ud as mt,va as C,vc as ve,vd as wt,wc as O,xd as Ft,ya as gt,yc as tn,zd as xt}from"./chunk-2BUEM4AN.js";import{a as L,b as Q}from"./chunk-O7S4L63H.js";var Ki=()=>({confirm:!0}),fn=(()=>{class e{constructor(n){this.dialogRef=n}static{this.\u0275fac=function(s){return new(s||e)(x(te))}}static{this.\u0275cmp=A({type:e,selectors:[["mifosx-calculate-interest-dialog"]],decls:22,vars:14,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(s,r){s&1&&(i(0,"h1",0),t(1),c(2,"translate"),a(),t(3,` `),i(4,"div",1),t(5,` `),i(6,"p"),t(7),c(8,"translate"),a(),t(9,` `),a(),t(10,` @@ -2459,5 +2459,5 @@ import{a as He}from"./chunk-EIMWP6JY.js";import{a as gn,b as oi,c as Ui,d as qi} `),a()),e&2){let n=D(7),s=D(15),r=C();o(4),l("ngIf",!r.savingsAccountData.status.rejected&&!r.savingsAccountData.status.submittedAndPendingApproval)("ngIfElse",n),o(5),l("ngIf",!r.savingsAccountData.status.rejected&&!r.savingsAccountData.status.submittedAndPendingApproval),o(3),l("ngIf",r.isActive)("ngIfElse",s)}}var Xn=(()=>{class e{constructor(n,s){this.route=n,this.router=s,this.isLoading=!0,this.isActive=!1,this.route.parent.parent.data.subscribe(r=>{this.savingsAccountData=r.savingsAccountData,this.currency=this.savingsAccountData.currency,this.isLoading=!1;let g=this.savingsAccountData.status.value;this.isActive=g==="Active"}),this.router.url.includes("clients")?this.entityType="Client":this.router.url.includes("groups")?this.entityType="Group":this.router.url.includes("centers")&&(this.entityType="Center")}static{this.\u0275fac=function(s){return new(s||e)(x(F),x(q))}}static{this.\u0275cmp=A({type:e,selectors:[["mifosx-general-tab"]],decls:4,vars:2,consts:[["alternateDetails",""],["alternateSummary",""],["class","loader",4,"ngIf"],["class","savings-account-tables layout-row gap-2percent",4,"ngIf"],[1,"loader"],[1,"loading"],[1,"savings-account-tables","layout-row","gap-2percent"],[1,"flex-49","layout-column","gap-4percent"],[4,"ngIf","ngIfElse"],[4,"ngIf"],["class","flex-49",4,"ngIf","ngIfElse"],[1,"table-headers"],[1,"r-amount"],[3,"externalId"],[1,"flex-49"],[4,"mifosxHasPermission"]],template:function(s,r){s&1&&(d(0,Il,4,0,"div",2),t(1,` `),d(2,g0,17,5,"div",3),t(3,` -`)),s&2&&(l("ngIf",r.isLoading),o(2),l("ngIf",!r.isLoading))},dependencies:[T,N,fe,P,Rt,Lt,O,Vt,Ve,de,dn],styles:[".loader[_ngcontent-%COMP%]{margin-bottom:39px;overflow:auto}.sidenav[_ngcontent-%COMP%]{overflow-x:hidden}@keyframes _ngcontent-%COMP%_move{0%{left:0}16.7%{left:0}33.3%{left:640px}50%{left:1120px}66.7%{left:640px}83.3%{left:0}to{left:0}}@keyframes _ngcontent-%COMP%_grow{0%{width:160px}16.7%{width:640px}33.3%{width:640px}50%{width:160px}66.7%{width:640px}83.3%{width:640px}to{width:160px}}.general-tab-container[_ngcontent-%COMP%]{padding:16px 20px;width:100%;box-sizing:border-box;position:relative;background-color:var(--background-color, #f8f9fa);color:var(--text-color, #333);transition:background-color .3s ease,color .3s ease}.general-tab-container[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%]{margin-bottom:24px;padding:16px 0;position:relative;border-bottom:1px solid var(--border-color, #e9ecef)}.general-tab-container[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%] .header-title[_ngcontent-%COMP%]{font-size:1.75rem;font-weight:600;margin:0 0 8px;line-height:1.2;color:var(--primary-color, #007bff);position:relative}.general-tab-container[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%] .header-subtitle[_ngcontent-%COMP%]{font-size:.95rem;margin:0;line-height:1.4;color:var(--text-secondary, #6c757d);position:relative}.general-tab-container[_ngcontent-%COMP%] .content-wrapper[_ngcontent-%COMP%]{position:relative;width:100%}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%]{background:var(--card-background, #fff);border-radius:8px;box-shadow:0 2px 4px #0000001a;overflow:hidden;position:relative;width:100%;max-width:600px;transition:box-shadow .3s ease,background-color .3s ease}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%]{padding:16px 20px;background:var(--card-header-bg, #f8f9fa);border-bottom:1px solid var(--border-color, #e9ecef);position:relative}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;font-size:1.1rem;font-weight:600;line-height:1.3;color:var(--text-color, #333)}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%]{padding:20px;position:relative}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .info-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:baseline;padding:10px 0;border-bottom:1px solid var(--border-light, #f1f3f4);position:relative;min-height:24px}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .info-row[_ngcontent-%COMP%]:last-child{border-bottom:none}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .info-row[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-weight:500;color:var(--text-secondary, #6c757d);flex:0 0 auto;margin-right:16px;white-space:nowrap;line-height:1.4}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .info-row[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{font-weight:600;color:var(--text-color, #333);text-align:right;flex:1 1 auto;line-height:1.4}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .info-row[_ngcontent-%COMP%] .value.currency[_ngcontent-%COMP%]{color:var(--success-color, #28a745);font-size:1.05rem}[data-theme=dark][_ngcontent-%COMP%] .general-tab-container[_ngcontent-%COMP%], .dark-theme[_ngcontent-%COMP%] .general-tab-container[_ngcontent-%COMP%]{--background-color: #1a1a1a;--text-color: #e9ecef;--text-secondary: #adb5bd;--primary-color: #4dabf7;--card-background: #2d3748;--card-header-bg: #374151;--border-color: #4a5568;--border-light: #2d3748;--success-color: #68d391}@media (width <= 768px){.general-tab-container[_ngcontent-%COMP%]{padding:12px 16px}.general-tab-container[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%]{margin-bottom:20px;padding:12px 0}.general-tab-container[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%] .header-title[_ngcontent-%COMP%]{font-size:1.5rem}.general-tab-container[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%] .header-subtitle[_ngcontent-%COMP%]{font-size:.9rem}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%]{padding:14px 16px}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%]{padding:16px}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .info-row[_ngcontent-%COMP%]{padding:8px 0}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .info-row[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{margin-right:12px}}"]})}}return e})();var f0=[{path:"",data:{title:"All Savings",breadcrumb:"Savings",routeParamBreadcrumb:!1,addBreadcrumbLink:!1},children:[{path:"create",data:{title:"Create Savings Account",breadcrumb:"Create Savings Account"},component:Vn,resolve:{savingsAccountTemplate:Wn}},{path:":savingAccountId",data:{title:"Saving Account View",routeParamBreadcrumb:"savingAccountId"},component:_n,resolve:{savingsAccountData:He,savingsDatatables:si},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",data:{title:"Savings Account Details",breadcrumb:"General",routeParamBreadcrumb:!1},children:[{path:"",component:Xn}]},{path:"transactions",data:{title:"Savings Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},children:[{path:"",component:Cn},{path:"export",component:qn}]},{path:"charges",component:Bn,data:{title:"Savings Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1}},{path:"standing-instructions",component:Nn,data:{title:"Savings Account SIH",breadcrumb:"Standing Instructions",routeParamBreadcrumb:!1}},{path:"notes",component:Kn,data:{title:"Savings Account Notes",breadcrumb:"Notes",routeParamBreadcrumb:!1},resolve:{savingAccountNotes:Hi}},{path:"documents",component:Qn,data:{title:"Savings Account Documents",breadcrumb:"Documents",routeParamBreadcrumb:!1},resolve:{savingsDocuments:zi}},{path:"datatables",children:[{path:":datatableName",component:Rn,data:{title:"View Data Table",routeParamBreadcrumb:"datatableName"},resolve:{savingsDatatable:ri}}]}]},{path:":savingAccountId/edit",data:{title:"Edit Savings Account",breadcrumb:"Edit",routeParamBreadcrumb:!1},component:Ln,resolve:{savingsAccountAndTemplate:pi}},{path:":savingAccountId/transactions/:id",data:{title:"Savings Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},children:[{path:"",component:jn,resolve:{transactionDatatables:li},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:Jn,resolve:{savingsAccountTransaction:di}},{path:"datatables",children:[{path:":datatableName",component:hn,data:{title:"View Data table",routeParamBreadcrumb:"datatableName"},resolve:{transactionDatatable:mi}}]}]},{path:"edit",component:Hn,data:{breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{savingsAccountTransactionTemplate:vi}},{path:"reciept",component:Un,data:{breadcrumb:"Reciept",routeParamBreadcrumb:!1},resolve:{savingsTransactionReciept:fi}}]},{path:":savingAccountId/charges",data:{title:"Savings Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1},children:[{path:"",redirectTo:"../charges",pathMatch:"prefix"},{path:":id",data:{routeParamBreadcrumb:"id"},component:Gn,resolve:{savingsAccountData:He,savingsAccountCharge:ui}}]},{path:":savingAccountId/actions/:name",data:{title:"Savings Account Actions",breadcrumb:"Savings Account Actions",routeParamBreadcrumb:"name"},component:kn,resolve:{savingsAccountActionData:gi}},{path:":savingAccountId/transfer-funds",loadChildren:()=>import("./account-transfers.module-3MJMMBU5.js").then(e=>e.AccountTransfersModule)},{path:"gsim-account",children:[{path:"create",data:{title:"Create GSIM Application",breadcrumb:"Create GSIM Application"},component:zn,resolve:{groupsData:qi,savingsAccountTemplate:Wn}},{path:":savingAccountId",data:{title:"GSIM Account View",routeParamBreadcrumb:"savingAccountId"},children:[{path:"",component:$n,resolve:{gsimData:xi,savingAccountData:He,groupsData:oi}}]}]}]}],$i=(()=>{class e{static{this.\u0275fac=function(s){return new(s||e)}}static{this.\u0275mod=Ye({type:e})}static{this.\u0275inj=We({providers:[He,si,ri,mi,li,Wn,pi,di,ui,gi,fi,vi,Ui,oi,xi],imports:[ii.forChild(f0),ii]})}}return e})();var Wi=(()=>{class e{constructor(){}static{this.\u0275fac=function(s){return new(s||e)}}static{this.\u0275cmp=A({type:e,selectors:[["mifosx-savings-transaction-datatable-tab"]],decls:4,vars:3,template:function(s,r){s&1&&(i(0,"p"),t(1),c(2,"translate"),a(),t(3,` +`)),s&2&&(l("ngIf",r.isLoading),o(2),l("ngIf",!r.isLoading))},dependencies:[T,N,fe,P,Rt,Lt,O,Vt,Ve,de,dn],styles:[".loader[_ngcontent-%COMP%]{margin-bottom:39px;overflow:auto}.sidenav[_ngcontent-%COMP%]{overflow-x:hidden}@keyframes _ngcontent-%COMP%_move{0%{left:0}16.7%{left:0}33.3%{left:640px}50%{left:1120px}66.7%{left:640px}83.3%{left:0}to{left:0}}@keyframes _ngcontent-%COMP%_grow{0%{width:160px}16.7%{width:640px}33.3%{width:640px}50%{width:160px}66.7%{width:640px}83.3%{width:640px}to{width:160px}}.general-tab-container[_ngcontent-%COMP%]{padding:16px 20px;width:100%;box-sizing:border-box;position:relative;background-color:var(--background-color, #f8f9fa);color:var(--text-color, #333);transition:background-color .3s ease,color .3s ease}.general-tab-container[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%]{margin-bottom:24px;padding:16px 0;position:relative;border-bottom:1px solid var(--border-color, #e9ecef)}.general-tab-container[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%] .header-title[_ngcontent-%COMP%]{font-size:1.75rem;font-weight:600;margin:0 0 8px;line-height:1.2;color:var(--primary-color, #007bff);position:relative}.general-tab-container[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%] .header-subtitle[_ngcontent-%COMP%]{font-size:.95rem;margin:0;line-height:1.4;color:var(--text-secondary, #6c757d);position:relative}.general-tab-container[_ngcontent-%COMP%] .content-wrapper[_ngcontent-%COMP%]{position:relative;width:100%}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%]{background:var(--card-background, #fff);border-radius:8px;box-shadow:0 2px 4px #0000001a;overflow:hidden;position:relative;width:100%;max-width:600px;transition:box-shadow .3s ease,background-color .3s ease}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%]{padding:16px 20px;background:var(--card-header-bg, #f8f9fa);border-bottom:1px solid var(--border-color, #e9ecef);position:relative}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;font-size:1.1rem;font-weight:600;line-height:1.3;color:var(--text-color, #333)}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%]{padding:20px;position:relative}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .info-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:baseline;padding:10px 0;border-bottom:1px solid var(--border-light, #f1f3f4);position:relative;min-height:24px}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .info-row[_ngcontent-%COMP%]:last-child{border-bottom:none}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .info-row[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-weight:500;color:var(--text-secondary, #6c757d);flex:0 0 auto;margin-right:16px;white-space:nowrap;line-height:1.4}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .info-row[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{font-weight:600;color:var(--text-color, #333);text-align:right;flex:1 1 auto;line-height:1.4}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .info-row[_ngcontent-%COMP%] .value.currency[_ngcontent-%COMP%]{color:var(--success-color, #28a745);font-size:1.05rem}[data-theme=dark][_ngcontent-%COMP%] .general-tab-container[_ngcontent-%COMP%], .dark-theme[_ngcontent-%COMP%] .general-tab-container[_ngcontent-%COMP%]{--background-color: #1a1a1a;--text-color: #e9ecef;--text-secondary: #adb5bd;--primary-color: #4dabf7;--card-background: #2d3748;--card-header-bg: #374151;--border-color: #4a5568;--border-light: #2d3748;--success-color: #68d391}@media (width <= 768px){.general-tab-container[_ngcontent-%COMP%]{padding:12px 16px}.general-tab-container[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%]{margin-bottom:20px;padding:12px 0}.general-tab-container[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%] .header-title[_ngcontent-%COMP%]{font-size:1.5rem}.general-tab-container[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%] .header-subtitle[_ngcontent-%COMP%]{font-size:.9rem}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%]{padding:14px 16px}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%]{padding:16px}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .info-row[_ngcontent-%COMP%]{padding:8px 0}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .info-row[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{margin-right:12px}}"]})}}return e})();var f0=[{path:"",data:{title:"All Savings",breadcrumb:"Savings",routeParamBreadcrumb:!1,addBreadcrumbLink:!1},children:[{path:"create",data:{title:"Create Savings Account",breadcrumb:"Create Savings Account"},component:Vn,resolve:{savingsAccountTemplate:Wn}},{path:":savingAccountId",data:{title:"Saving Account View",routeParamBreadcrumb:"savingAccountId"},component:_n,resolve:{savingsAccountData:He,savingsDatatables:si},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",data:{title:"Savings Account Details",breadcrumb:"General",routeParamBreadcrumb:!1},children:[{path:"",component:Xn}]},{path:"transactions",data:{title:"Savings Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},children:[{path:"",component:Cn},{path:"export",component:qn}]},{path:"charges",component:Bn,data:{title:"Savings Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1}},{path:"standing-instructions",component:Nn,data:{title:"Savings Account SIH",breadcrumb:"Standing Instructions",routeParamBreadcrumb:!1}},{path:"notes",component:Kn,data:{title:"Savings Account Notes",breadcrumb:"Notes",routeParamBreadcrumb:!1},resolve:{savingAccountNotes:Hi}},{path:"documents",component:Qn,data:{title:"Savings Account Documents",breadcrumb:"Documents",routeParamBreadcrumb:!1},resolve:{savingsDocuments:zi}},{path:"datatables",children:[{path:":datatableName",component:Rn,data:{title:"View Data Table",routeParamBreadcrumb:"datatableName"},resolve:{savingsDatatable:ri}}]}]},{path:":savingAccountId/edit",data:{title:"Edit Savings Account",breadcrumb:"Edit",routeParamBreadcrumb:!1},component:Ln,resolve:{savingsAccountAndTemplate:pi}},{path:":savingAccountId/transactions/:id",data:{title:"Savings Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},children:[{path:"",component:jn,resolve:{transactionDatatables:li},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:Jn,resolve:{savingsAccountTransaction:di}},{path:"datatables",children:[{path:":datatableName",component:hn,data:{title:"View Data table",routeParamBreadcrumb:"datatableName"},resolve:{transactionDatatable:mi}}]}]},{path:"edit",component:Hn,data:{breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{savingsAccountTransactionTemplate:vi}},{path:"reciept",component:Un,data:{breadcrumb:"Reciept",routeParamBreadcrumb:!1},resolve:{savingsTransactionReciept:fi}}]},{path:":savingAccountId/charges",data:{title:"Savings Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1},children:[{path:"",redirectTo:"../charges",pathMatch:"prefix"},{path:":id",data:{routeParamBreadcrumb:"id"},component:Gn,resolve:{savingsAccountData:He,savingsAccountCharge:ui}}]},{path:":savingAccountId/actions/:name",data:{title:"Savings Account Actions",breadcrumb:"Savings Account Actions",routeParamBreadcrumb:"name"},component:kn,resolve:{savingsAccountActionData:gi}},{path:":savingAccountId/transfer-funds",loadChildren:()=>import("./account-transfers.module-DO6BMPA2.js").then(e=>e.AccountTransfersModule)},{path:"gsim-account",children:[{path:"create",data:{title:"Create GSIM Application",breadcrumb:"Create GSIM Application"},component:zn,resolve:{groupsData:qi,savingsAccountTemplate:Wn}},{path:":savingAccountId",data:{title:"GSIM Account View",routeParamBreadcrumb:"savingAccountId"},children:[{path:"",component:$n,resolve:{gsimData:xi,savingAccountData:He,groupsData:oi}}]}]}]}],$i=(()=>{class e{static{this.\u0275fac=function(s){return new(s||e)}}static{this.\u0275mod=Ye({type:e})}static{this.\u0275inj=We({providers:[He,si,ri,mi,li,Wn,pi,di,ui,gi,fi,vi,Ui,oi,xi],imports:[ii.forChild(f0),ii]})}}return e})();var Wi=(()=>{class e{constructor(){}static{this.\u0275fac=function(s){return new(s||e)}}static{this.\u0275cmp=A({type:e,selectors:[["mifosx-savings-transaction-datatable-tab"]],decls:4,vars:3,template:function(s,r){s&1&&(i(0,"p"),t(1),c(2,"translate"),a(),t(3,` `)),s&2&&(o(),v("",m(2,1,"labels.heading.savings-transaction-datatable-tab works"),"!"))},dependencies:[T,P,O],encapsulation:2})}}return e})();var hh=(()=>{class e{static{this.\u0275fac=function(s){return new(s||e)}}static{this.\u0275mod=Ye({type:e})}static{this.\u0275inj=We({imports:[ji,Fi,Ni,$i,kn,Dn,Cn,_n,Bn,Nn,Rn,Vn,se,me,ce,Me,Ln,bn,Sn,Mn,An,Tn,Pn,yn,fn,vn,jn,Ge,Gn,Ue,qe,On,In,En,ze,Un,qn,Hn,wn,$n,zn,Fn,Yn,Qn,Kn,hn,Jn,Wi,Xn,$e]})}}return e})();export{hh as SavingsModule}; diff --git a/browser/shares.module-6BWWOTIG.js b/browser/shares.module-BZ36OCHH.js similarity index 99% rename from browser/shares.module-6BWWOTIG.js rename to browser/shares.module-BZ36OCHH.js index f33bd8f91..24913234c 100644 --- a/browser/shares.module-6BWWOTIG.js +++ b/browser/shares.module-BZ36OCHH.js @@ -1,4 +1,4 @@ -import{$b as St,$d as yi,Ad as ve,Ba as te,Bb as ci,Bd as _e,Ca as ie,Cd as Ci,Ce as at,Da as ne,Dc as re,Dd as Be,E as Ne,Ea as R,Ec as q,Ed as je,F as dt,Fa as e,Fd as Dt,Ga as u,Gf as wt,H as Oe,Ha as S,Ia as P,Ic as oe,Id as be,If as Pi,J as ut,Jc as $,K as y,Kc as se,L as I,Lc as W,Ld as Ai,Lf as wi,Md as Tt,Me as rt,Mf as st,Nc as ui,Ne as yt,Nf as mt,Of as Ri,Pa as N,Pe as It,Pf as Fi,Q as ht,Qa as si,Qc as Y,Qd as gi,Qe as Et,Rc as hi,Re as Mt,Sa as m,Se as Pt,Ta as c,Tb as F,Tc as me,Td as bi,Te as ot,Ua as ae,Ub as pi,Ud as Di,Ue,Va as mi,Vd as Ti,Ve as De,Wa as Ce,Wb as z,Wc as ce,Wd as Le,We as Te,Xb as K,Xe as ye,Yb as li,Yf as Bi,Zb as ni,Zc as pe,Ze as Ie,_ as a,_e as Ee,_f as ki,ab as Ze,ac as k,af as Me,bb as qe,bd as le,bf as Pe,ca as x,cb as j,cd as fi,da as b,dd as T,df as we,ea as ft,ed as de,ef as Re,fd as xi,gd as Si,gf as Fe,gg as Rt,ha as l,hd as ue,ja as d,jd as ge,jf as Ve,kd as vi,lc as vt,mc as _t,md as _i,na as i,nc as He,nd as J,oa as n,oc as Ct,od as he,of as Ii,pa as f,pb as et,pc as At,pf as Ei,pg as Ni,qa as C,qb as D,qc as gt,qf as Mi,ra as A,rc as bt,rd as fe,rg as Oi,sd as X,ta as w,td as tt,ua as g,ud as xe,va as _,vc as di,vd as it,wc as E,xd as nt,ya as H,yb as xt,zd as Se}from"./chunk-KX2ZKPHO.js";import{a as V,b as Q}from"./chunk-O7S4L63H.js";var B=(()=>{class t{constructor(r){this.http=r}getSharesAccountData(r,s){let o=new xt().set("template",s.toString());return this.http.get(`/accounts/share/${r}`,{params:o})}getSharesAccountTemplate(r,s){let o=new xt().set("clientId",r);return o=s?o.set("productId",s):o,this.http.get("/accounts/share/template",{params:o})}createSharesAccount(r){return this.http.post("/accounts/share",r)}updateSharesAccount(r,s){return this.http.put(`/accounts/share/${r}`,s)}deleteSharesAccount(r){return this.http.delete(`/accounts/share/${r}`)}executeSharesAccountCommand(r,s,o){let h=new xt().set("command",s);return this.http.post(`/accounts/share/${r}`,o,{params:h})}static{this.\u0275fac=function(s){return new(s||t)(Oe(ci))}}static{this.\u0275prov=Ne({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ft=class{constructor(p){this.setOptions(p),this.setButtons(p)}get singleButtons(){return this.buttonsArray}get options(){return this.optionArray}setButtons(p){switch(p){case"Active":this.buttonsArray=[{name:"Apply Additional Shares",icon:"arrow-right",taskPermissionName:"APPLYADDITIONAL_SHAREACCOUNT"},{name:"Approve Additional Shares",icon:"arrow-right",taskPermissionName:"APPROVEADDITIONAL_SHAREACCOUNT"},{name:"Reject Additional Shares",icon:"arrow-left",taskPermissionName:"REJECTADDITIONAL_SHAREACCOUNT"},{name:"Redeem Shares",icon:"arrow-left",taskPermissionName:"WITHDRAW_SAVINGSACCOUNT"}];break;case"Submitted and pending approval":this.buttonsArray=[{name:"Modify Application",icon:"pencil",taskPermissionName:"UPDATE_SHAREACCOUNT"},{name:"Approve",icon:"check",taskPermissionName:"APPROVE_SHAREACCOUNT"}];break;case"Approved":this.buttonsArray=[{name:"Undo Approval",icon:"undo",taskPermissionName:"APPROVALUNDO_SHAREACCOUNT"},{name:"Activate",icon:"check",taskPermissionName:"ACTIVATE_SHAREACCOUNT"}];break;default:this.buttonsArray=[]}}setOptions(p){switch(p){case"Active":this.optionArray=[{name:"Close",taskPermissionName:"CLOSE_SHAREACCOUNT"}];break;case"Submitted and pending approval":this.optionArray=[{name:"Reject",taskPermissionName:"REJECT_SHAREACCOUNT"},{name:"Delete",taskPermissionName:"DELETE_SHAREACCOUNT"}];break;case"Approved":default:this.optionArray=[]}}addOption(p){this.optionArray.push(p)}removeButton(p){let s=this.buttonsArray.map(o=>o.name).indexOf(p);this.buttonsArray.splice(s,1)}};var Li=()=>["./general"],Ui=()=>["./transactions"],$i=()=>["./charges"],Gi=()=>["./dividends"];function zi(t,p){if(t&1&&(i(0,"span",31),e(1,` +import{$b as St,$d as yi,Ad as ve,Ba as te,Bb as ci,Bd as _e,Ca as ie,Cd as Ci,Ce as at,Da as ne,Dc as re,Dd as Be,E as Ne,Ea as R,Ec as q,Ed as je,F as dt,Fa as e,Fd as Dt,Ga as u,Gf as wt,H as Oe,Ha as S,Ia as P,Ic as oe,Id as be,If as Pi,J as ut,Jc as $,K as y,Kc as se,L as I,Lc as W,Ld as Ai,Lf as wi,Md as Tt,Me as rt,Mf as st,Nc as ui,Ne as yt,Nf as mt,Of as Ri,Pa as N,Pe as It,Pf as Fi,Q as ht,Qa as si,Qc as Y,Qd as gi,Qe as Et,Rc as hi,Re as Mt,Sa as m,Se as Pt,Ta as c,Tb as F,Tc as me,Td as bi,Te as ot,Ua as ae,Ub as pi,Ud as Di,Ue,Va as mi,Vd as Ti,Ve as De,Wa as Ce,Wb as z,Wc as ce,Wd as Le,We as Te,Xb as K,Xe as ye,Yb as li,Yf as Bi,Zb as ni,Zc as pe,Ze as Ie,_ as a,_e as Ee,_f as ki,ab as Ze,ac as k,af as Me,bb as qe,bd as le,bf as Pe,ca as x,cb as j,cd as fi,da as b,dd as T,df as we,ea as ft,ed as de,ef as Re,fd as xi,gd as Si,gf as Fe,gg as Rt,ha as l,hd as ue,ja as d,jd as ge,jf as Ve,kd as vi,lc as vt,mc as _t,md as _i,na as i,nc as He,nd as J,oa as n,oc as Ct,od as he,of as Ii,pa as f,pb as et,pc as At,pf as Ei,pg as Ni,qa as C,qb as D,qc as gt,qf as Mi,ra as A,rc as bt,rd as fe,rg as Oi,sd as X,ta as w,td as tt,ua as g,ud as xe,va as _,vc as di,vd as it,wc as E,xd as nt,ya as H,yb as xt,zd as Se}from"./chunk-2BUEM4AN.js";import{a as V,b as Q}from"./chunk-O7S4L63H.js";var B=(()=>{class t{constructor(r){this.http=r}getSharesAccountData(r,s){let o=new xt().set("template",s.toString());return this.http.get(`/accounts/share/${r}`,{params:o})}getSharesAccountTemplate(r,s){let o=new xt().set("clientId",r);return o=s?o.set("productId",s):o,this.http.get("/accounts/share/template",{params:o})}createSharesAccount(r){return this.http.post("/accounts/share",r)}updateSharesAccount(r,s){return this.http.put(`/accounts/share/${r}`,s)}deleteSharesAccount(r){return this.http.delete(`/accounts/share/${r}`)}executeSharesAccountCommand(r,s,o){let h=new xt().set("command",s);return this.http.post(`/accounts/share/${r}`,o,{params:h})}static{this.\u0275fac=function(s){return new(s||t)(Oe(ci))}}static{this.\u0275prov=Ne({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ft=class{constructor(p){this.setOptions(p),this.setButtons(p)}get singleButtons(){return this.buttonsArray}get options(){return this.optionArray}setButtons(p){switch(p){case"Active":this.buttonsArray=[{name:"Apply Additional Shares",icon:"arrow-right",taskPermissionName:"APPLYADDITIONAL_SHAREACCOUNT"},{name:"Approve Additional Shares",icon:"arrow-right",taskPermissionName:"APPROVEADDITIONAL_SHAREACCOUNT"},{name:"Reject Additional Shares",icon:"arrow-left",taskPermissionName:"REJECTADDITIONAL_SHAREACCOUNT"},{name:"Redeem Shares",icon:"arrow-left",taskPermissionName:"WITHDRAW_SAVINGSACCOUNT"}];break;case"Submitted and pending approval":this.buttonsArray=[{name:"Modify Application",icon:"pencil",taskPermissionName:"UPDATE_SHAREACCOUNT"},{name:"Approve",icon:"check",taskPermissionName:"APPROVE_SHAREACCOUNT"}];break;case"Approved":this.buttonsArray=[{name:"Undo Approval",icon:"undo",taskPermissionName:"APPROVALUNDO_SHAREACCOUNT"},{name:"Activate",icon:"check",taskPermissionName:"ACTIVATE_SHAREACCOUNT"}];break;default:this.buttonsArray=[]}}setOptions(p){switch(p){case"Active":this.optionArray=[{name:"Close",taskPermissionName:"CLOSE_SHAREACCOUNT"}];break;case"Submitted and pending approval":this.optionArray=[{name:"Reject",taskPermissionName:"REJECT_SHAREACCOUNT"},{name:"Delete",taskPermissionName:"DELETE_SHAREACCOUNT"}];break;case"Approved":default:this.optionArray=[]}}addOption(p){this.optionArray.push(p)}removeButton(p){let s=this.buttonsArray.map(o=>o.name).indexOf(p);this.buttonsArray.splice(s,1)}};var Li=()=>["./general"],Ui=()=>["./transactions"],$i=()=>["./charges"],Gi=()=>["./dividends"];function zi(t,p){if(t&1&&(i(0,"span",31),e(1,` `),f(2,"mifosx-account-number",32),e(3,` `),n()),t&2){let r=_();a(2),H("accountNo",r.sharesAccountData.clientAccountNo)}}function Qi(t,p){if(t&1&&(i(0,"tr"),e(1,` `),i(2,"td"),e(3),m(4,"translate"),n(),e(5,`