dealposbooks 1.9.3 → 1.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/3rdpartylicenses.txt +29 -29
- package/assets/scss/components/_navbar.scss +2 -2
- package/assets/scss/layouts/_sidebar.scss +1 -2
- package/assets/scss/style.scss +6 -0
- package/{chunk-4CUA33JH.js → chunk-25XKSUYX.js} +1 -1
- package/chunk-2TUOAI22.js +1 -0
- package/chunk-3IHOEH5O.js +1 -0
- package/chunk-3VC2KAML.js +1 -0
- package/{chunk-5QVQY32E.js → chunk-4FK4QI2U.js} +1 -1
- package/{chunk-A47VRZZB.js → chunk-4J3EFT67.js} +1 -1
- package/{chunk-ZPTNYW2S.js → chunk-56MVOUHH.js} +1 -1
- package/{chunk-LFDCJISD.js → chunk-5OU7ECCN.js} +1 -1
- package/{chunk-7KQDKLO4.js → chunk-5OXHRN43.js} +2 -2
- package/{chunk-3XLREP6U.js → chunk-5QMHSLSU.js} +1 -1
- package/{chunk-FUCSF42O.js → chunk-6J5S4UPN.js} +1 -1
- package/chunk-7GT5MR57.js +1 -0
- package/{chunk-J6H3BBKP.js → chunk-7LCGNNCW.js} +1 -1
- package/chunk-7NXTCJMX.js +1 -0
- package/{chunk-OCIKQOWD.js → chunk-7PDAUPWN.js} +2 -2
- package/{chunk-5AITWOQZ.js → chunk-7TKATLB4.js} +1 -1
- package/{chunk-3ENMEUVK.js → chunk-7XAJOA36.js} +1 -1
- package/chunk-A3NY5EYN.js +1 -0
- package/chunk-AH5PA2TO.js +1 -0
- package/{chunk-H4V6YZX2.js → chunk-AM66YD6C.js} +1 -1
- package/{chunk-DNSQSWOS.js → chunk-B4COOFJS.js} +1 -1
- package/{chunk-OAD4GTH6.js → chunk-BGDKOH3U.js} +1 -1
- package/chunk-BJGK47CG.js +1 -0
- package/chunk-BWS6U7BM.js +193 -0
- package/chunk-D5AXB5DE.js +7 -0
- package/chunk-D5RQBZNF.js +1 -0
- package/{chunk-CSQ4MHL2.js → chunk-DELPZQZH.js} +3 -3
- package/{chunk-PRRU3DEZ.js → chunk-DJUGUNXR.js} +1 -1
- package/chunk-DSFIM36S.js +1 -0
- package/chunk-EHCALTHK.js +1 -0
- package/{chunk-7U2I35GP.js → chunk-F7TF7ASR.js} +1 -1
- package/{chunk-X4EHZEMZ.js → chunk-FCGAJLPQ.js} +1 -1
- package/{chunk-WAJWW3TC.js → chunk-FUGCJNGU.js} +11 -11
- package/{chunk-QIXIZZPY.js → chunk-GMLRRSMP.js} +1 -1
- package/chunk-HDO45X7Q.js +1 -0
- package/{chunk-RANHETC3.js → chunk-HPKZYS2A.js} +1 -1
- package/chunk-IACJNRVA.js +25 -0
- package/chunk-IQZ2MKLS.js +1 -0
- package/{chunk-Q5BXN24W.js → chunk-ITIRJVUS.js} +1 -1
- package/chunk-IXPPR5MV.js +1 -0
- package/chunk-J3B5HVW4.js +1 -0
- package/chunk-JQ4DHNFQ.js +67 -0
- package/{chunk-PJKHUCJX.js → chunk-JRYP3YPK.js} +1 -1
- package/chunk-KQAMA66M.js +2 -0
- package/{chunk-ZB6TB7JI.js → chunk-L6VKOTIV.js} +2 -2
- package/chunk-LATJGOV3.js +185 -0
- package/chunk-LLV6TGMT.js +1 -0
- package/chunk-MNCUT4L4.js +1 -0
- package/chunk-NBRL2K4H.js +1 -0
- package/chunk-NDOZ5YES.js +1 -0
- package/{chunk-WM3NKRKN.js → chunk-NL5IYBHF.js} +1 -1
- package/{chunk-ZUALJ33O.js → chunk-R6HGHSPM.js} +1 -1
- package/chunk-SCEMI63T.js +1 -0
- package/chunk-SDTMCYSJ.js +1 -0
- package/{chunk-SGXU6X3O.js → chunk-T2A6NORZ.js} +1 -1
- package/chunk-TDX2HSWE.js +1 -0
- package/chunk-UHVZAFKN.js +1 -0
- package/{chunk-GY53MWXH.js → chunk-UMYCPFK5.js} +19 -19
- package/{chunk-YWYF6P7O.js → chunk-UOAJWMSO.js} +1 -1
- package/{chunk-TNWHAKS6.js → chunk-UZCNPNT7.js} +1 -1
- package/{chunk-JG5HGOEX.js → chunk-VF7TG32T.js} +1 -1
- package/chunk-VI3AV775.js +1 -0
- package/chunk-VK5TK23W.js +7 -0
- package/{chunk-O2GA6PH7.js → chunk-VKO43FOT.js} +1 -1
- package/chunk-VNHXLUHA.js +1 -0
- package/{chunk-DIX7J6JH.js → chunk-W6UD5NO5.js} +1 -1
- package/chunk-WUGCCSIP.js +1 -0
- package/chunk-X234EQET.js +129 -0
- package/{chunk-6NCHCAKY.js → chunk-X3FQFXUZ.js} +1 -1
- package/{chunk-33XUIS57.js → chunk-XEATX3IC.js} +1 -1
- package/chunk-XJ5BSLZV.js +1 -0
- package/{chunk-V3B32QFK.js → chunk-XMZ7ADZB.js} +1 -1
- package/chunk-YAKYBQQ6.js +1 -0
- package/{chunk-TDDTBHQE.js → chunk-YQRWSN5V.js} +1 -1
- package/{chunk-ACQX2T2H.js → chunk-ZKXT6RSI.js} +1 -1
- package/index.html +2 -2
- package/main-VQYYYR67.js +1 -0
- package/package.json +1 -1
- package/{styles-7FHABE27.css → styles-IDKYTRGA.css} +1 -1
- package/chunk-2US5D2LY.js +0 -1
- package/chunk-353U23ZQ.js +0 -1
- package/chunk-3B65XZ6E.js +0 -1
- package/chunk-3CEJ67I5.js +0 -1
- package/chunk-3E2EKFPH.js +0 -1
- package/chunk-3H5KBX4R.js +0 -1
- package/chunk-4NSHHAXV.js +0 -1
- package/chunk-6DPW74DP.js +0 -1
- package/chunk-7G6KXHQB.js +0 -1
- package/chunk-7U2775BI.js +0 -1
- package/chunk-AG7353CN.js +0 -1
- package/chunk-AI6YS6T2.js +0 -1
- package/chunk-ANMXAMBL.js +0 -1
- package/chunk-ARSLNNKY.js +0 -7
- package/chunk-AT7II4DO.js +0 -7
- package/chunk-BCXNVGDH.js +0 -193
- package/chunk-BJNN42CI.js +0 -1
- package/chunk-DG6ETDOW.js +0 -1
- package/chunk-DMVAXVYQ.js +0 -1
- package/chunk-F3PEWQT7.js +0 -1
- package/chunk-FTVGAWDW.js +0 -1
- package/chunk-FXUC6M2U.js +0 -1
- package/chunk-GCGWIESO.js +0 -1
- package/chunk-IHJLTHHQ.js +0 -1
- package/chunk-LNRTAR2V.js +0 -1
- package/chunk-LWKS2JEV.js +0 -1
- package/chunk-N2XLL6HJ.js +0 -33
- package/chunk-NM37SDQJ.js +0 -1
- package/chunk-NN6GSTBJ.js +0 -1
- package/chunk-PZBZVQUY.js +0 -67
- package/chunk-Q2IWISMY.js +0 -1
- package/chunk-RQEEJGOE.js +0 -1
- package/chunk-TPGKCMVN.js +0 -1
- package/chunk-TYETQJ2X.js +0 -2
- package/chunk-U5LD55IP.js +0 -1
- package/chunk-U6SRN7P3.js +0 -1
- package/chunk-VBCJCAMN.js +0 -1
- package/chunk-W76GKZZU.js +0 -1
- package/chunk-X5SV4H5B.js +0 -1
- package/chunk-YYUWLV5N.js +0 -1
- package/main-L6WVDQUB.js +0 -1
package/chunk-NM37SDQJ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as Ce}from"./chunk-4CUA33JH.js";import{a as F,b as A}from"./chunk-ZPTNYW2S.js";import{h as z,j as he,k as xe,l as L}from"./chunk-GY53MWXH.js";import"./chunk-6NCHCAKY.js";import"./chunk-5AITWOQZ.js";import"./chunk-ACQX2T2H.js";import{c as H,d as O}from"./chunk-JG5HGOEX.js";import{b as ge}from"./chunk-7U2I35GP.js";import{g as j}from"./chunk-ZB6TB7JI.js";import"./chunk-7KQDKLO4.js";import{a as E,b as se,c as de,d as ue,e as fe,f as _e}from"./chunk-H4V6YZX2.js";import{C as N,D as V,u as me}from"./chunk-WAJWW3TC.js";import{z as ce}from"./chunk-U6SRN7P3.js";import"./chunk-TPGKCMVN.js";import"./chunk-BCXNVGDH.js";import{a as le,d as pe}from"./chunk-U5LD55IP.js";import"./chunk-F2X3VGZZ.js";import{d as ae,f as oe,q as ie,x as re}from"./chunk-TYETQJ2X.js";import{m as te,r as ne,s as J,t as B}from"./chunk-353U23ZQ.js";import{$b as v,Ac as Z,Bb as S,Ga as G,J as q,Jc as C,Kc as T,Lb as w,Lc as ee,Mc as f,Ob as P,Vb as o,Wb as i,X as Q,Xb as I,Yc as b,Z as W,ba as X,c as M,ec as R,fc as d,gb as c,ha as _,pa as h,qa as x,qc as r,rc as u,s as K,uc as D,vb as k,yc as Y,zc as y}from"./chunk-ARSLNNKY.js";import{a as m,b as s}from"./chunk-YQFG5XE2.js";var U=(()=>{class t{constructor(){this.httpService=_(pe)}getGenerateCoa(e){let n={params:new ae().set("PageNumber",e.PageNumber).set("RowCount",e.RowCount)};return this.httpService.get(void 0,"api/Tools/GetListCOA",n)}updateCOABalance(e={}){return this.httpService.put(void 0,"api/Tools/UpdateCOABalance",void 0,e)}getUnbalanceJournal(e){return this.httpService.get(void 0,"api/Tools/UnbalanceJurnal/"+e.PageNumber+"/"+e.RowCount)}updateUnbalanceJournal(e){let a={ListID:e};return this.httpService.put(void 0,"api/Tools/RegenerateUnBalanceJournal",a)}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ue=()=>({height:"calc(100vh - 70px)"}),ye=()=>({"min-width":"50rem"});function Me(t,l){if(t&1){let e=v();o(0,"p-button",7),R("onClick",function(){h(e);let n=d();return x(n.updateCoaBalance())}),i()}}function ke(t,l){t&1&&(o(0,"tr")(1,"th"),r(2,"Code"),i(),o(3,"th"),r(4,"Name"),i(),o(5,"th"),r(6,"Outlet"),i(),o(7,"th"),r(8,"COA Balance"),i(),o(9,"th"),r(10,"Correct Balance"),i()())}function Pe(t,l){if(t&1&&(o(0,"tr")(1,"td"),r(2),i(),o(3,"td"),r(4),i(),o(5,"td"),r(6),i(),o(7,"td"),r(8),C(9,"number"),i(),o(10,"td"),r(11),C(12,"number"),i()()),t&2){let e=l.$implicit;c(2),u(e.Code),c(2),u(e.Name),c(2),u(e.OutletName),c(2),u(T(9,5,e.Balance)),c(3),u(T(12,7,e.CorrectBalance))}}function Ie(t,l){if(t&1&&(o(0,"div",9)(1,"p",10),r(2),i()()),t&2){let e=d(2);c(2),D(" Showing ",e.startIndex()," to ",e.endIndex()," of ",e.coaData().count," entries ")}}function De(t,l){t&1&&(o(0,"tr")(1,"td",11)(2,"span"),r(3,"No records found."),i()()())}function Je(t,l){if(t&1){let e=v();o(0,"p-panel")(1,"p-table",8),R("onPage",function(n){h(e);let p=d();return x(p.onPageChange(n))}),S(2,ke,11,0,"ng-template",null,2,f)(4,Pe,13,9,"ng-template",null,3,f)(6,Ie,3,3,"ng-template",null,4,f)(8,De,4,0,"ng-template",null,5,f),i()()}if(t&2){let e=d();P(y(10,Ue)),c(),w("paginator",!0)("lazy",!0)("totalRecords",e.coaData().count)("scrollable",!0)("scrollHeight","calc(100vh - 142px)")("rows",e.pagination().RowCount)("value",e.coaData().data)("tableStyle",y(11,ye))}}var Se=(()=>{class t{constructor(){this.pagination=G({PageNumber:1,RowCount:20}),this.coaService=_(U),this.toastrService=_(le),this.coaData=G(null),this.fetchCoaData=F(M(q(e=>this.coaService.getGenerateCoa(e).pipe(A({next:a=>this.coaData.set(a),error:a=>console.error(a)}))))),this.startIndex=b(()=>this.pagination()?(this.pagination().PageNumber-1)*this.pagination().RowCount+1:0),this.endIndex=b(()=>this.pagination()?Math.min(this.pagination().PageNumber*this.pagination().RowCount,this.coaData()?.count||0):0)}ngOnInit(){this.fetchCoaData(this.pagination)}onPageChange(e){this.pagination.update(a=>s(m({},a),{PageNumber:Math.floor(e.first/e.rows)+1}))}updateCoaBalance(){this.coaService.updateCOABalance({observe:"response"}).pipe(W(e=>{e instanceof oe&&this.toastrService.success(e.body?.message,"Success")})).subscribe()}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=k({type:t,selectors:[["app-tools-update-coa"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["body",""],["paginatorleft",""],["emptymessage",""],["pageTitle","Generate COA"],["label","Update",3,"onClick"],[3,"onPage","paginator","lazy","totalRecords","scrollable","scrollHeight","rows","value","tableStyle"],[1,"flex","align-items-center","custom-font-footer",2,"height","100%"],[1,"m-0"],["colspan","5"]],template:function(a,n){a&1&&(o(0,"app-main-panel",6),S(1,Me,1,0,"ng-template",null,0,f)(3,Je,10,12,"ng-template",null,1,f),i())},dependencies:[j,L,z,ge,B,J,V,N,O,H],styles:["[_nghost-%COMP%]{display:block} .p-card{height:100%} .p-card .p-card-body{height:inherit} .p-card .p-card-body .p-card-content{height:inherit} .p-paginator .p-paginator-pages .p-paginator-page{font-size:14px}.custom-font-footer[_ngcontent-%COMP%]{font-size:.875rem}"],changeDetection:0})}}return t})();var Be={data:{count:0,data:[]},filter:{PageNumber:1,RowCount:20}},$=se(_e(Be),de(t=>({first:b(()=>(t.filter().PageNumber-1)*t.filter().RowCount+1),end:b(()=>Math.min(t.filter().PageNumber*t.filter().RowCount,t.data().count)),selectedItems:b(()=>t.data().data.filter(l=>l.checked)),hasCheckedRows:b(()=>t.data().data.some(l=>l.checked))})),fe(t=>{let l=_(U);return{updateFilter(a){E(t,n=>s(m({},n),{filter:m(m({},n.filter),a)}))},onRowSelect(a){E(t,n=>{let p=n.data.data.map(g=>g.Code===a.Code?s(m({},g),{checked:!0}):g);return s(m({},n),{data:s(m({},n.data),{data:p})})})},onRowUnselect(a){E(t,n=>{let p=n.data.data.map(g=>g.Code===a.Code?s(m({},g),{checked:!1}):g);return s(m({},n),{data:s(m({},n.data),{data:p})})})},onHeaderCheckboxToggle(a){E(t,n=>{let p=n.data.data.map(g=>s(m({},g),{checked:a}));return s(m({},n),{data:s(m({},n.data),{data:p})})})},loadData:F(M(Q(a=>l.getUnbalanceJournal(a).pipe(K(n=>s(m({},n),{data:n.data.map(p=>s(m({},p),{checked:!1}))})),A({next:n=>{E(t,p=>s(m({},p),{data:n}))},error:n=>{console.error("Error loading unbalance journal data:",n)}})))))}}),ue(t=>({onInit:()=>{t.loadData(t.filter)}})));var Ne=()=>({height:"calc(100vh - 70px)"}),Ve=t=>["/journal/journal-entry",t];function He(t,l){if(t&1){let e=v();o(0,"div",8),I(1,"p-button",9),o(2,"p-button",10),R("onClick",function(){h(e);let n=d(2);return x(n.regenerateUnbalanceJournal())}),r(3,"Regenerate"),i()()}}function Oe(t,l){if(t&1&&S(0,He,4,0,"div",7),t&2){let e=d();w("ngIf",e.store.hasCheckedRows())}}function je(t,l){t&1&&(o(0,"tr")(1,"th",12),I(2,"p-tableHeaderCheckbox"),i(),o(3,"th"),r(4,"Date"),i(),o(5,"th"),r(6,"Number"),i(),o(7,"th",13),r(8,"Debit SUM"),i(),o(9,"th",13),r(10,"Credit SUM"),i(),o(11,"th",13),r(12,"Difference"),i(),o(13,"th"),r(14,"Reference"),i(),o(15,"th"),r(16,"Outlet"),i()())}function Fe(t,l){if(t&1&&(o(0,"tr")(1,"td"),I(2,"p-tableCheckbox",14),i(),o(3,"td"),r(4),C(5,"date"),i(),o(6,"td")(7,"a",15),r(8),i()(),o(9,"td",13),r(10),C(11,"number"),i(),o(12,"td",13),r(13),C(14,"number"),i(),o(15,"td",13),r(16),C(17,"number"),i(),o(18,"td"),r(19),i(),o(20,"td"),r(21),i()()),t&2){let e=l.$implicit;c(2),w("value",e),c(2),u(ee(5,9,e.date,"dd MMM yyyy")),c(3),w("routerLink",Z(18,Ve,e.id)),c(),u(e.number),c(2),u(T(11,12,e.debitSum)),c(3),u(T(14,14,e.creditSum)),c(3),u(T(17,16,e.differences)),c(3),u(e.referenceText),c(2),u(e.outletName)}}function Ae(t,l){if(t&1&&r(0),t&2){let e=d(2);D(" Showing ",e.store.first()," to ",e.store.end()," of ",e.store.data().count," entries ")}}function ze(t,l){t&1&&(o(0,"tr")(1,"td",16)(2,"span"),r(3,"No records found."),i()()())}function Le(t,l){if(t&1){let e=v();o(0,"p-panel")(1,"p-table",11),R("onPage",function(n){h(e);let p=d();return x(p.onPageChange(n))})("onRowSelect",function(n){h(e);let p=d();return x(p.onRowSelect(n))})("onRowUnselect",function(n){h(e);let p=d();return x(p.onRowUnselect(n))})("onHeaderCheckboxToggle",function(n){h(e);let p=d();return x(p.onHeaderCheckboxToggle(n))}),S(2,je,17,0,"ng-template",null,2,f)(4,Fe,22,20,"ng-template",null,3,f)(6,Ae,1,3,"ng-template",null,4,f)(8,ze,4,0,"ng-template",null,5,f),i()()}if(t&2){let e=d();P(y(9,Ne)),c(),w("value",e.store.data().data)("scrollable",!0)("lazy",!0)("scrollHeight","calc(100vh - 142px)")("paginator",!0)("rows",e.store.filter().RowCount)("totalRecords",e.store.data().count)}}var we=(()=>{class t{constructor(){this.store=_($),this.toolsService=_(U)}onPageChange(e){console.log("Page changed:",e);let a=e.first/e.rows;this.store.updateFilter({PageNumber:a+1})}onRowSelect(e){this.store.onRowSelect(e.data)}onRowUnselect(e){if(Array.isArray(e.data)){e.data.forEach(a=>{this.store.onRowUnselect(a)});return}else this.store.onRowUnselect(e.data)}onHeaderCheckboxToggle(e){this.store.onHeaderCheckboxToggle(e.checked)}regenerateUnbalanceJournal(){let a=this.store.selectedItems().filter(n=>n.checked==!0).map(n=>n.id);this.toolsService.updateUnbalanceJournal(a).subscribe()}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=k({type:t,selectors:[["app-unbalance-journal"]],features:[Y([$])],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["body",""],["paginatorleft",""],["emptymessage",""],["pageTitle","Unbalance Journal"],["class","d-flex gap-2",4,"ngIf"],[1,"d-flex","gap-2"],["icon","fa-solid fa-trash","label","Delete","variant","outlined","severity","danger"],[3,"onClick"],["paginatorStyleClass","d-flex justify-content-end","dataKey","id",3,"onPage","onRowSelect","onRowUnselect","onHeaderCheckboxToggle","value","scrollable","lazy","scrollHeight","paginator","rows","totalRecords"],[2,"width","4rem"],[1,"text-end"],[3,"value"],["target","_blank",1,"link","link-primary",3,"routerLink"],["colspan","6"]],template:function(a,n){a&1&&(o(0,"app-main-panel",6),S(1,Oe,1,1,"ng-template",null,0,f)(3,Le,10,10,"ng-template",null,1,f),i())},dependencies:[j,L,z,he,xe,Ce,me,B,te,J,ne,ce,V,N,O,H,re,ie],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Ot=[{path:"",redirectTo:"generate-coa",pathMatch:"full"},{path:"generate-coa",component:Se},{path:"unbalance-journal",component:we}];export{Ot as TOOLS_ROUTES};
|
package/chunk-NN6GSTBJ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as F}from"./chunk-2US5D2LY.js";import{c as z,d as h}from"./chunk-PZBZVQUY.js";import{c as G,d as C}from"./chunk-JG5HGOEX.js";import{a as L,b as M}from"./chunk-7U2I35GP.js";import{g as H}from"./chunk-ZB6TB7JI.js";import"./chunk-7KQDKLO4.js";import"./chunk-H4V6YZX2.js";import{D as _}from"./chunk-WAJWW3TC.js";import"./chunk-U6SRN7P3.js";import"./chunk-TPGKCMVN.js";import"./chunk-BCXNVGDH.js";import{a as N}from"./chunk-U5LD55IP.js";import"./chunk-F2X3VGZZ.js";import"./chunk-TYETQJ2X.js";import{p as D,t as x}from"./chunk-353U23ZQ.js";import{$b as R,Bb as f,Da as u,Jc as k,Kc as B,Lb as g,Mc as m,Ob as y,V as $,Vb as n,Wb as o,X as j,Xb as c,ec as S,fc as r,gb as a,h as J,ha as w,pa as T,qa as b,qc as l,ra as I,rc as V,s as v,sa as O,sc as P,vb as d,yc as A,zc as E}from"./chunk-ARSLNNKY.js";import"./chunk-YQFG5XE2.js";function U(t,s){t&1&&(n(0,"div",5)(1,"div",6),c(2,"i",7),o()())}function W(t,s){if(t&1&&(n(0,"div",8),l(1),o()),t&2){let e=r();a(),P(" ",e.migrationCount()," ")}}function X(t,s){if(t&1&&(n(0,"div",9),l(1),o()),t&2){let e=r();a(),P(" ",e.migrationTitle()," ")}}function Y(t,s){if(t&1&&(n(0,"div",10)(1,"div",11),l(2),o()()),t&2){let e=r();a(2),V(e.migrationPlace())}}var q=(()=>{class t{constructor(){this.migrationTitle=u(),this.migrationCount=u(),this.migrationPlace=u()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=d({type:t,selectors:[["app-migration-cards"]],inputs:{migrationTitle:[1,"migrationTitle"],migrationCount:[1,"migrationCount"],migrationPlace:[1,"migrationPlace"]},decls:9,vars:0,consts:[["header",""],["title",""],["subtitle",""],["footer",""],[1,"text-center","flex","flex-column","justify-content-center","align-items-center","card-shadow","responsive-card"],[1,"d-flex","justify-content-center"],[1,"d-flex","justify-content-center","align-items-center","mt-4",2,"width","60px","height","60px","background-color","#e0f0ff","border-radius","50%"],[1,"icon","fa-file-lines","fa-light",2,"font-size","25px","color","#007bff"],[1,"mt-5","display-5","fw-bold"],[1,"text-sm","text-secondary"],[1,"flex","mt-5"],[1,"p-6","fs-7","fw-bold"]],template:function(i,p){i&1&&(n(0,"p-card",4),f(1,U,3,0,"ng-template",null,0,m)(3,W,2,1,"ng-template",null,1,m)(5,X,2,1,"ng-template",null,2,m)(7,Y,3,1,"ng-template",null,3,m),o())},dependencies:[x,M,L,_,h,C],styles:["[_nghost-%COMP%] .p-card{box-shadow:0 4px 20px #0000001a!important;width:350px!important;height:400px!important}@media (max-width: 768px){[_nghost-%COMP%] .p-card{width:100%!important;height:auto!important}}@media (max-width: 1200px){[_nghost-%COMP%] .p-card{width:300px!important;height:350px!important}}@media (max-width: 1500px){[_nghost-%COMP%] .p-card{width:300px!important;height:320px!important}}"]})}}return t})();var K=()=>({height:"calc(100vh - 100px)"});function Z(t,s){if(t&1){let e=R();n(0,"div",3)(1,"button",4),S("click",function(){T(e);let p=r();return b(p.onFormat())}),l(2,"Format"),o(),n(3,"button",5),S("click",function(){T(e);let p=r();return b(p.onMigrate())}),l(4,"Migrate"),o()()}}function tt(t,s){if(t&1&&(n(0,"p-scroll-panel")(1,"p-panel")(2,"div",6),c(3,"app-migration-cards",7),k(4,"async"),I(),n(5,"svg",8),c(6,"path",9),o(),O(),c(7,"app-migration-cards",10),k(8,"async"),o()()()),t&2){let e=r();y(E(12,K)),a(),y(E(13,K)),a(2),g("migrationCount",B(4,8,e.countInPOS$))("migrationTitle",e.pageTitle),a(4),g("migrationCount",B(8,10,e.countInBooks$))("migrationTitle",e.pageTitle)}}var Pt=(()=>{class t{constructor(){this.migrateService=w(F),this.refresh$=new J(void 0),this.toastr=w(N),this.pageTitle="Chart of Accounts"}ngOnInit(){let e=this.refresh$.pipe(j(()=>this.migrateService.getManualJournalCount()),$(1));this.countInPOS$=e.pipe(v(i=>Number(i.pos))),this.countInBooks$=e.pipe(v(i=>Number(i.books)))}onMigrate(){this.migrateService.migrateManualJournal().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Migration Successful")})}onFormat(){window.confirm("Are you sure you want to format this data? This action cannot be undone.")&&this.migrateService.formatManualJournal().subscribe(i=>{this.refresh$.next(),this.toastr.success(i.message,"Format Successful")})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=d({type:t,selectors:[["app-manual-journal"]],features:[A([F])],decls:5,vars:1,consts:[["actionButton",""],["content",""],[3,"pageTitle"],[1,"d-flex","gap-2"],[1,"btn","btn-danger",3,"click"],[1,"btn","btn-success",3,"click"],[1,"flex","gap-30","flex-wrap",2,"display","flex","justify-content","center","align-items","center","gap","1rem","margin-top","40px"],["migrationPlace","Accounting",3,"migrationCount","migrationTitle"],["width","40","height","40","viewBox","0 0 24 24","fill","none"],["d","M8 5l8 7-8 7","stroke","#007bff","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["migrationPlace","Books",3,"migrationCount","migrationTitle"]],template:function(i,p){i&1&&(n(0,"app-main-panel",2),f(1,Z,5,0,"ng-template",null,0,m)(3,tt,9,14,"ng-template",null,1,m),o()),i&2&&g("pageTitle",p.pageTitle)},dependencies:[H,x,D,M,_,h,z,C,G,q],encapsulation:2})}}return t})();export{Pt as ManualJournalComponent};
|
package/chunk-PZBZVQUY.js
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import{a as J}from"./chunk-TPGKCMVN.js";import{b as d,ca as K,d as f,ka as Z,la as B,ta as G,w as O}from"./chunk-BCXNVGDH.js";import{j as $,n as q,o as W,t as N,w as j}from"./chunk-353U23ZQ.js";import{$b as R,Aa as k,Bb as Y,Kb as m,Lb as V,Pb as x,Qb as P,Vb as v,Wb as g,Wc as U,_b as z,ba as S,ca as E,ec as y,gb as u,gc as I,ha as _,hc as H,jc as L,kc as b,lc as h,mc as p,pa as s,qa as a,ta as C,vb as F,wb as A,yc as Q,zb as X}from"./chunk-ARSLNNKY.js";var ee=["content"],oe=["container"],re=["xBar"],le=["yBar"],se=["*"];function ae(t,ie){t&1&&H(0)}function ce(t,ie){t&1&&z(0)}var ue=({dt:t})=>`
|
|
2
|
-
.p-scrollpanel-content-container {
|
|
3
|
-
overflow: hidden;
|
|
4
|
-
width: 100%;
|
|
5
|
-
height: 100%;
|
|
6
|
-
position: relative;
|
|
7
|
-
z-index: 1;
|
|
8
|
-
float: left;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.p-scrollpanel-content {
|
|
12
|
-
height: calc(100% + calc(2 * ${t("scrollpanel.bar.size")}));
|
|
13
|
-
width: calc(100% + calc(2 * ${t("scrollpanel.bar.size")}));
|
|
14
|
-
padding-inline: 0 calc(2 * ${t("scrollpanel.bar.size")});
|
|
15
|
-
padding-block: 0 calc(2 * ${t("scrollpanel.bar.size")});
|
|
16
|
-
position: relative;
|
|
17
|
-
overflow: auto;
|
|
18
|
-
box-sizing: border-box;
|
|
19
|
-
scrollbar-width: none;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.p-scrollpanel-content::-webkit-scrollbar {
|
|
23
|
-
display: none;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.p-scrollpanel-bar {
|
|
27
|
-
position: relative;
|
|
28
|
-
border-radius: ${t("scrollpanel.bar.border.radius")};
|
|
29
|
-
z-index: 2;
|
|
30
|
-
cursor: pointer;
|
|
31
|
-
opacity: 0;
|
|
32
|
-
outline-color: transparent;
|
|
33
|
-
transition: outline-color ${t("scrollpanel.transition.duration")};
|
|
34
|
-
background: ${t("scrollpanel.bar.background")};
|
|
35
|
-
border: 0 none;
|
|
36
|
-
transition: outline-color ${t("scrollpanel.transition.duration")}, opacity ${t("scrollpanel.transition.duration")};
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.p-scrollpanel-bar:focus-visible {
|
|
40
|
-
box-shadow: ${t("scrollpanel.bar.focus.ring.shadow")};
|
|
41
|
-
outline: ${t("scrollpanel.barfocus.ring.width")} ${t("scrollpanel.bar.focus.ring.style")} ${t("scrollpanel.bar.focus.ring.color")};
|
|
42
|
-
outline-offset: ${t("scrollpanel.barfocus.ring.offset")};
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.p-scrollpanel-bar-y {
|
|
46
|
-
width: ${t("scrollpanel.bar.size")};
|
|
47
|
-
top: 0;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.p-scrollpanel-bar-x {
|
|
51
|
-
height: ${t("scrollpanel.bar.size")};
|
|
52
|
-
bottom: 0;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.p-scrollpanel-hidden {
|
|
56
|
-
visibility: hidden;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.p-scrollpanel:hover .p-scrollpanel-bar,
|
|
60
|
-
.p-scrollpanel:active .p-scrollpanel-bar {
|
|
61
|
-
opacity: 1;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.p-scrollpanel-grabbed {
|
|
65
|
-
user-select: none;
|
|
66
|
-
}
|
|
67
|
-
`,he={root:"p-scrollpanel p-component",contentContainer:"p-scrollpanel-content-container",content:"p-scrollpanel-content",barX:"p-scrollpanel-bar p-scrollpanel-bar-x",barY:"p-scrollpanel-bar p-scrollpanel-bar-y"},te=(()=>{class t extends G{name="scrollpanel";theme=ue;classes=he;static \u0275fac=(()=>{let e;return function(i){return(e||(e=C(t)))(i||t)}})();static \u0275prov=S({token:t,factory:t.\u0275fac})}return t})(),pe=function(t){return t.root="p-scrollpanel",t.contentContainer="p-scrollpanel-content-container",t.content="p-scrollpanel-content",t.barX="p-scrollpanel-bar-x",t.barY="p-scrollpanel-bar-y",t}(pe||{}),de=(()=>{class t extends J{style;styleClass;step=5;containerViewChild;contentViewChild;xBarViewChild;yBarViewChild;contentTemplate;templates;_contentTemplate;scrollYRatio;scrollXRatio;timeoutFrame=e=>setTimeout(e,0);initialized=!1;lastPageY;lastPageX;isXBarClicked=!1;isYBarClicked=!1;lastScrollLeft=0;lastScrollTop=0;orientation="vertical";timer;contentId;windowResizeListener;contentScrollListener;mouseEnterListener;xBarMouseDownListener;yBarMouseDownListener;documentMouseMoveListener;documentMouseUpListener;_componentStyle=_(te);zone=_(k);ngOnInit(){super.ngOnInit(),this.contentId=K("pn_id_")+"_content"}ngAfterViewInit(){super.ngAfterViewInit(),j(this.platformId)&&this.zone.runOutsideAngular(()=>{this.moveBar(),this.moveBar=this.moveBar.bind(this),this.onXBarMouseDown=this.onXBarMouseDown.bind(this),this.onYBarMouseDown=this.onYBarMouseDown.bind(this),this.onDocumentMouseMove=this.onDocumentMouseMove.bind(this),this.onDocumentMouseUp=this.onDocumentMouseUp.bind(this),this.windowResizeListener=this.renderer.listen(window,"resize",this.moveBar),this.contentScrollListener=this.renderer.listen(this.contentViewChild.nativeElement,"scroll",this.moveBar),this.mouseEnterListener=this.renderer.listen(this.contentViewChild.nativeElement,"mouseenter",this.moveBar),this.xBarMouseDownListener=this.renderer.listen(this.xBarViewChild.nativeElement,"mousedown",this.onXBarMouseDown),this.yBarMouseDownListener=this.renderer.listen(this.yBarViewChild.nativeElement,"mousedown",this.onYBarMouseDown),this.calculateContainerHeight(),this.initialized=!0})}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":this._contentTemplate=e.template;break;default:this._contentTemplate=e.template;break}})}calculateContainerHeight(){let e=this.containerViewChild.nativeElement,n=this.contentViewChild.nativeElement,i=this.xBarViewChild.nativeElement,o=this.document.defaultView,r=o.getComputedStyle(e),l=o.getComputedStyle(i),c=O(e)-parseInt(l.height,10);r["max-height"]!="none"&&c==0&&(n.offsetHeight+parseInt(l.height,10)>parseInt(r["max-height"],10)?e.style.height=r["max-height"]:e.style.height=n.offsetHeight+parseFloat(r.paddingTop)+parseFloat(r.paddingBottom)+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth)+"px")}moveBar(){let e=this.containerViewChild.nativeElement,n=this.contentViewChild.nativeElement,i=this.xBarViewChild.nativeElement,o=n.scrollWidth,r=n.clientWidth,l=(e.clientHeight-i.clientHeight)*-1;this.scrollXRatio=r/o;let c=this.yBarViewChild.nativeElement,D=n.scrollHeight,T=n.clientHeight,ne=(e.clientWidth-c.clientWidth)*-1;this.scrollYRatio=T/D,this.requestAnimationFrame(()=>{if(this.scrollXRatio>=1)i.setAttribute("data-p-scrollpanel-hidden","true"),d(i,"p-scrollpanel-hidden");else{i.setAttribute("data-p-scrollpanel-hidden","false"),f(i,"p-scrollpanel-hidden");let w=Math.max(this.scrollXRatio*100,10),M=Math.abs(n.scrollLeft*(100-w)/(o-r));i.style.cssText="width:"+w+"%; inset-inline-start:"+M+"%;bottom:"+l+"px;"}if(this.scrollYRatio>=1)c.setAttribute("data-p-scrollpanel-hidden","true"),d(c,"p-scrollpanel-hidden");else{c.setAttribute("data-p-scrollpanel-hidden","false"),f(c,"p-scrollpanel-hidden");let w=Math.max(this.scrollYRatio*100,10),M=n.scrollTop*(100-w)/(D-T);c.style.cssText="height:"+w+"%; top: calc("+M+"% - "+i.clientHeight+"px); inset-inline-end:"+ne+"px;"}}),this.cd.markForCheck()}onScroll(e){this.lastScrollLeft!==e.target.scrollLeft?(this.lastScrollLeft=e.target.scrollLeft,this.orientation="horizontal"):this.lastScrollTop!==e.target.scrollTop&&(this.lastScrollTop=e.target.scrollTop,this.orientation="vertical"),this.moveBar()}onKeyDown(e){if(this.orientation==="vertical")switch(e.code){case"ArrowDown":{this.setTimer("scrollTop",this.step),e.preventDefault();break}case"ArrowUp":{this.setTimer("scrollTop",this.step*-1),e.preventDefault();break}case"ArrowLeft":case"ArrowRight":{e.preventDefault();break}default:break}else if(this.orientation==="horizontal")switch(e.code){case"ArrowRight":{this.setTimer("scrollLeft",this.step),e.preventDefault();break}case"ArrowLeft":{this.setTimer("scrollLeft",this.step*-1),e.preventDefault();break}case"ArrowDown":case"ArrowUp":{e.preventDefault();break}default:break}}onKeyUp(){this.clearTimer()}repeat(e,n){this.contentViewChild.nativeElement[e]+=n,this.moveBar()}setTimer(e,n){this.clearTimer(),this.timer=setTimeout(()=>{this.repeat(e,n)},40)}clearTimer(){this.timer&&clearTimeout(this.timer)}bindDocumentMouseListeners(){this.documentMouseMoveListener||(this.documentMouseMoveListener=e=>{this.onDocumentMouseMove(e)},this.document.addEventListener("mousemove",this.documentMouseMoveListener)),this.documentMouseUpListener||(this.documentMouseUpListener=e=>{this.onDocumentMouseUp(e)},this.document.addEventListener("mouseup",this.documentMouseUpListener))}unbindDocumentMouseListeners(){this.documentMouseMoveListener&&(this.document.removeEventListener("mousemove",this.documentMouseMoveListener),this.documentMouseMoveListener=null),this.documentMouseUpListener&&(document.removeEventListener("mouseup",this.documentMouseUpListener),this.documentMouseUpListener=null)}onYBarMouseDown(e){this.isYBarClicked=!0,this.yBarViewChild.nativeElement.focus(),this.lastPageY=e.pageY,this.yBarViewChild.nativeElement.setAttribute("data-p-scrollpanel-grabbed","true"),d(this.yBarViewChild.nativeElement,"p-scrollpanel-grabbed"),this.document.body.setAttribute("data-p-scrollpanel-grabbed","true"),d(this.document.body,"p-scrollpanel-grabbed"),this.bindDocumentMouseListeners(),e.preventDefault()}onXBarMouseDown(e){this.isXBarClicked=!0,this.xBarViewChild.nativeElement.focus(),this.lastPageX=e.pageX,this.xBarViewChild.nativeElement.setAttribute("data-p-scrollpanel-grabbed","false"),d(this.xBarViewChild.nativeElement,"p-scrollpanel-grabbed"),this.document.body.setAttribute("data-p-scrollpanel-grabbed","false"),d(this.document.body,"p-scrollpanel-grabbed"),this.bindDocumentMouseListeners(),e.preventDefault()}onDocumentMouseMove(e){this.isXBarClicked?this.onMouseMoveForXBar(e):this.isYBarClicked?this.onMouseMoveForYBar(e):(this.onMouseMoveForXBar(e),this.onMouseMoveForYBar(e))}onMouseMoveForXBar(e){let n=e.pageX-this.lastPageX;this.lastPageX=e.pageX,this.requestAnimationFrame(()=>{this.contentViewChild.nativeElement.scrollLeft+=n/this.scrollXRatio})}onMouseMoveForYBar(e){let n=e.pageY-this.lastPageY;this.lastPageY=e.pageY,this.requestAnimationFrame(()=>{this.contentViewChild.nativeElement.scrollTop+=n/this.scrollYRatio})}scrollTop(e){let n=this.contentViewChild.nativeElement.scrollHeight-this.contentViewChild.nativeElement.clientHeight;e=e>n?n:e>0?e:0,this.contentViewChild.nativeElement.scrollTop=e}onFocus(e){this.xBarViewChild.nativeElement.isSameNode(e.target)?this.orientation="horizontal":this.yBarViewChild.nativeElement.isSameNode(e.target)&&(this.orientation="vertical")}onBlur(){this.orientation==="horizontal"&&(this.orientation="vertical")}onDocumentMouseUp(e){this.yBarViewChild.nativeElement.setAttribute("data-p-scrollpanel-grabbed","false"),f(this.yBarViewChild.nativeElement,"p-scrollpanel-grabbed"),this.xBarViewChild.nativeElement.setAttribute("data-p-scrollpanel-grabbed","false"),f(this.xBarViewChild.nativeElement,"p-scrollpanel-grabbed"),this.document.body.setAttribute("data-p-scrollpanel-grabbed","false"),f(this.document.body,"p-scrollpanel-grabbed"),this.unbindDocumentMouseListeners(),this.isXBarClicked=!1,this.isYBarClicked=!1}requestAnimationFrame(e){(window.requestAnimationFrame||this.timeoutFrame)(e)}unbindListeners(){this.windowResizeListener&&(this.windowResizeListener(),this.windowResizeListener=null),this.contentScrollListener&&(this.contentScrollListener(),this.contentScrollListener=null),this.mouseEnterListener&&(this.mouseEnterListener(),this.mouseEnterListener=null),this.xBarMouseDownListener&&(this.xBarMouseDownListener(),this.xBarMouseDownListener=null),this.yBarMouseDownListener&&(this.yBarMouseDownListener(),this.yBarMouseDownListener=null)}ngOnDestroy(){this.initialized&&this.unbindListeners()}refresh(){this.moveBar()}static \u0275fac=(()=>{let e;return function(i){return(e||(e=C(t)))(i||t)}})();static \u0275cmp=F({type:t,selectors:[["p-scroll-panel"],["p-scrollPanel"],["p-scrollpanel"]],contentQueries:function(n,i,o){if(n&1&&(L(o,ee,4),L(o,Z,4)),n&2){let r;h(r=p())&&(i.contentTemplate=r.first),h(r=p())&&(i.templates=r)}},viewQuery:function(n,i){if(n&1&&(b(oe,5),b(ee,5),b(re,5),b(le,5)),n&2){let o;h(o=p())&&(i.containerViewChild=o.first),h(o=p())&&(i.contentViewChild=o.first),h(o=p())&&(i.xBarViewChild=o.first),h(o=p())&&(i.yBarViewChild=o.first)}},inputs:{style:"style",styleClass:"styleClass",step:[2,"step","step",U]},features:[Q([te]),X],ngContentSelectors:se,decls:11,vars:17,consts:[["container",""],["content",""],["xBar",""],["yBar",""],[3,"ngClass","ngStyle"],[1,"p-scrollpanel-content-container"],[1,"p-scrollpanel-content",3,"mouseenter","scroll"],[4,"ngTemplateOutlet"],["tabindex","0","role","scrollbar",1,"p-scrollpanel-bar","p-scrollpanel-bar-x",3,"mousedown","keydown","keyup","focus","blur"],["tabindex","0","role","scrollbar",1,"p-scrollpanel-bar","p-scrollpanel-bar-y",3,"mousedown","keydown","keyup","focus"]],template:function(n,i){if(n&1){let o=R();I(),v(0,"div",4,0)(2,"div",5)(3,"div",6,1),y("mouseenter",function(){return s(o),a(i.moveBar())})("scroll",function(l){return s(o),a(i.onScroll(l))}),Y(5,ae,1,0)(6,ce,1,0,"ng-container",7),g()(),v(7,"div",8,2),y("mousedown",function(l){return s(o),a(i.onXBarMouseDown(l))})("keydown",function(l){return s(o),a(i.onKeyDown(l))})("keyup",function(){return s(o),a(i.onKeyUp())})("focus",function(l){return s(o),a(i.onFocus(l))})("blur",function(){return s(o),a(i.onBlur())}),g(),v(9,"div",9,3),y("mousedown",function(l){return s(o),a(i.onYBarMouseDown(l))})("keydown",function(l){return s(o),a(i.onKeyDown(l))})("keyup",function(){return s(o),a(i.onKeyUp())})("focus",function(l){return s(o),a(i.onFocus(l))}),g()()}n&2&&(x(i.styleClass),V("ngClass","p-scrollpanel p-component")("ngStyle",i.style),m("data-pc-name","scrollpanel"),u(2),m("data-pc-section","wrapper"),u(),m("data-pc-section","content"),u(2),P(!i.contentTemplate&&!i._contentTemplate?5:-1),u(),V("ngTemplateOutlet",i.contentTemplate||i._contentTemplate),u(),m("aria-orientation","horizontal")("aria-valuenow",i.lastScrollLeft)("data-pc-section","barx")("aria-controls",i.contentId),u(2),m("aria-orientation","vertical")("aria-valuenow",i.lastScrollTop)("data-pc-section","bary")("aria-controls",i.contentId))},dependencies:[N,$,W,q,B],encapsulation:2,changeDetection:0})}return t})(),ke=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=A({type:t});static \u0275inj=E({imports:[de,B,B]})}return t})();export{te as a,pe as b,de as c,ke as d};
|
package/chunk-Q2IWISMY.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as l}from"./chunk-2US5D2LY.js";import{g as C}from"./chunk-ZB6TB7JI.js";import"./chunk-7KQDKLO4.js";import"./chunk-H4V6YZX2.js";import"./chunk-WAJWW3TC.js";import"./chunk-U6SRN7P3.js";import"./chunk-TPGKCMVN.js";import"./chunk-BCXNVGDH.js";import{a as x}from"./chunk-U5LD55IP.js";import"./chunk-F2X3VGZZ.js";import"./chunk-TYETQJ2X.js";import{t as v}from"./chunk-353U23ZQ.js";import{$b as g,Bb as u,Mc as c,Vb as n,Wb as r,ec as d,fc as _,ha as o,pa as f,qa as s,qc as a,vb as p,yc as O}from"./chunk-ARSLNNKY.js";import"./chunk-YQFG5XE2.js";function W(t,h){if(t&1){let e=g();n(0,"div",3)(1,"button",4),d("click",function(){f(e);let m=_();return s(m.migrateWriteoffOutlet())}),a(2," Migrate Write Off Outlet "),r()()}}function S(t,h){t&1&&(n(0,"div",5),a(1," reserved for future User Interface (UI) enhancements "),r())}var V=(()=>{class t{constructor(){this.migrateService=o(l),this.toastr=o(x)}migrateWriteoffOutlet(){this.migrateService.migrateWriteOffOutlet().subscribe(e=>{this.toastr.success(e.message,"Migration Successful")})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=p({type:t,selectors:[["app-writeoff-outlet"]],features:[O([l])],decls:5,vars:0,consts:[["actionButton",""],["content",""],["pageTitle","Write Off Account"],[1,"d-flex","gap-2"],[1,"btn","btn-success",3,"click"],[1,"container","d-flex","justify-content-center","align-items-center",2,"height","100vh"]],template:function(i,m){i&1&&(n(0,"app-main-panel",2),u(1,W,3,0,"ng-template",null,0,c)(3,S,2,0,"ng-template",null,1,c),r())},dependencies:[C,v],encapsulation:2})}}return t})();export{V as WriteOffOutletComponent};
|
package/chunk-RQEEJGOE.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as v,b as A}from"./chunk-ZPTNYW2S.js";import{h as V,l as W}from"./chunk-GY53MWXH.js";import"./chunk-6NCHCAKY.js";import"./chunk-5AITWOQZ.js";import"./chunk-ACQX2T2H.js";import{c as j,d as G}from"./chunk-JG5HGOEX.js";import{b as Q}from"./chunk-7U2I35GP.js";import{g as J}from"./chunk-ZB6TB7JI.js";import"./chunk-7KQDKLO4.js";import{a as S,b as H,c as K,d as U,e as q,f as $,g as z}from"./chunk-H4V6YZX2.js";import"./chunk-WAJWW3TC.js";import{y as N}from"./chunk-U6SRN7P3.js";import"./chunk-TPGKCMVN.js";import"./chunk-BCXNVGDH.js";import{d as O}from"./chunk-U5LD55IP.js";import"./chunk-F2X3VGZZ.js";import{q as R,x as F}from"./chunk-TYETQJ2X.js";import{s as I,t as L}from"./chunk-353U23ZQ.js";import{Ac as x,Bb as C,Jc as k,Kc as B,Lb as m,Mc as c,Ob as b,Vb as n,Wb as a,X as u,Xb as M,Yc as D,ba as y,c as h,fc as _,gb as l,ha as p,qc as i,rc as s,sc as T,vb as P,yc as w,zc as g}from"./chunk-ARSLNNKY.js";import{a as d,b as f}from"./chunk-YQFG5XE2.js";var X=(()=>{class t{constructor(){this.httpService=p(O)}fetchCashAndBankLoader(){return this.httpService.get("","api/CashAndBankLoader/GetCashAndBank")}fetchCashAndBankData(){return this.httpService.get("","api/CashAndBank/GetCashAndBank")}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=y({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var et={data:[],filter:[],options:{hasGeneralLedger:!1}},E=H(z("cash-bank-store"),$(et),K(t=>({totalBalance:D(()=>t.data().reduce((o,e)=>o+e.balance,0))})),q(t=>{let o=p(X);return{loadCashAndBankLoader:v(h(u(()=>o.fetchCashAndBankLoader().pipe(A({next:e=>{console.log("response",e),S(t,r=>f(d({},r),{options:e.options}))},error:e=>{console.log("error",e)}}))))),loadCashAndBankData:v(h(u(()=>o.fetchCashAndBankData().pipe(A({next:e=>{console.log("response",e),S(t,r=>f(d({},r),{data:e}))},error:e=>{console.log("error",e)}})))))}}),U({onInit(t){t.loadCashAndBankLoader(),t.loadCashAndBankData()}}));var nt=["class","page"],at=()=>({height:"calc(100vh - 70px)"}),ot=t=>[t],it=()=>["/report/general-ledger"],rt=t=>({id:t});function lt(t,o){t&1&&(n(0,"tr")(1,"th"),i(2,"Code"),a(),n(3,"th"),i(4,"Name"),a(),n(5,"th",7),i(6,"Balance"),a()())}function pt(t,o){if(t&1&&(n(0,"tr")(1,"td"),i(2),a(),n(3,"td")(4,"a",8),i(5),a()(),n(6,"td",7)(7,"a",9),i(8),k(9,"number"),a()()()),t&2){let e=o.$implicit;l(2),s(e.code),l(2),m("routerLink",x(8,ot,"/chart-of-account/account/"+e.accountID)),l(),s(e.name),l(2),m("routerLink",g(10,it))("queryParams",x(11,rt,e.accountID)),l(),s(B(9,6,e.balance))}}function ct(t,o){if(t&1&&(n(0,"tr"),M(1,"td"),n(2,"td",10),i(3,"Total"),a(),n(4,"td",11),i(5),k(6,"number"),a()()),t&2){let e=_(2);l(5),T(" ",B(6,1,e.store.totalBalance())," ")}}function mt(t,o){t&1&&(n(0,"tr")(1,"td",12)(2,"span"),i(3,"No records found."),a()()())}function st(t,o){if(t&1&&(n(0,"p-panel")(1,"p-table",6),C(2,lt,7,0,"ng-template",null,1,c)(4,pt,10,13,"ng-template",null,2,c)(6,ct,7,3,"ng-template",null,3,c)(8,mt,4,0,"ng-template",null,4,c),a()()),t&2){let e=_();b(g(3,at)),l(),m("value",e.store.data())}}var Y=(()=>{class t{constructor(){this.store=p(E),this.routeInfo=Z}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-cash-bank",8,"page"]],features:[w([E])],attrs:nt,decls:3,vars:0,consts:[["content",""],["header",""],["body",""],["footer",""],["emptymessage",""],["pageTitle","Cash and Bank"],[3,"value"],[1,"text-end"],[1,"link","link-primary",3,"routerLink"],[1,"link","link-primary",3,"routerLink","queryParams"],[1,"fw-bold"],[1,"text-end","fw-bold"],["colspan","3"]],template:function(r,dt){r&1&&(n(0,"app-main-panel",5),C(1,st,10,4,"ng-template",null,0,c),a())},dependencies:[L,I,J,N,W,V,Q,F,R,G,j],styles:[".card[_ngcontent-%COMP%]{height:calc(100vh - 120px)}.card[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:inherit;overflow-y:auto}"],changeDetection:0})}}return t})();var qt=[{path:"",component:Y,children:[]}],Z={path:"cash-of-account",title:"COA",iconName:"fa fa-calculator",class:"",label:"",labelClass:"",extralink:!1,submenu:[]};export{qt as CASH_BANK_ROUTES,Z as CASH_BANK_ROUTE_PAGE};
|
package/chunk-TPGKCMVN.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Z as v,ca as L,pa as m,ra as a,sa as l,ta as r,ua as O}from"./chunk-BCXNVGDH.js";import{a as C,x as _}from"./chunk-353U23ZQ.js";import{Ea as p,Ka as S,Qc as b,ba as h,ha as i,lb as f,oa as c,ta as d,va as y,xb as u,yc as g}from"./chunk-ARSLNNKY.js";import{a as n}from"./chunk-YQFG5XE2.js";var T=(()=>{class o extends r{name="common";static \u0275fac=(()=>{let e;return function(s){return(e||(e=d(o)))(s||o)}})();static \u0275prov=h({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),B=(()=>{class o{document=i(C);platformId=i(S);el=i(p);injector=i(y);cd=i(b);renderer=i(f);config=i(O);baseComponentStyle=i(T);baseStyle=i(r);scopedStyleEl;rootEl;dt;get styleOptions(){return{nonce:this.config?.csp().nonce}}get _name(){return this.constructor.name.replace(/^_/,"").toLowerCase()}get componentStyle(){return this._componentStyle}attrSelector=L("pc");themeChangeListeners=[];_getHostInstance(e){if(e)return e?this.hostName?e.name===this.hostName?e:this._getHostInstance(e.parentInstance):e.parentInstance:void 0}_getOptionValue(e,t="",s={}){return v(e,t,s)}ngOnInit(){this.document&&this._loadStyles()}ngAfterViewInit(){this.rootEl=this.el?.nativeElement,this.rootEl&&this.rootEl?.setAttribute(this.attrSelector,"")}ngOnChanges(e){if(this.document&&!_(this.platformId)){let{dt:t}=e;t&&t.currentValue&&(this._loadScopedThemeStyles(t.currentValue),this._themeChangeListener(()=>this._loadScopedThemeStyles(t.currentValue)))}}ngOnDestroy(){this._unloadScopedThemeStyles(),this.themeChangeListeners.forEach(e=>m.off("theme:change",e))}_loadStyles(){let e=()=>{l.isStyleNameLoaded("base")||(this.baseStyle.loadGlobalCSS(this.styleOptions),l.setLoadedStyleName("base")),this._loadThemeStyles()};e(),this._themeChangeListener(()=>e())}_loadCoreStyles(){!l.isStyleNameLoaded("base")&&this._name&&(this.baseComponentStyle.loadCSS(this.styleOptions),this.componentStyle&&this.componentStyle?.loadCSS(this.styleOptions),l.setLoadedStyleName(this.componentStyle?.name))}_loadThemeStyles(){if(!a.isStyleNameLoaded("common")){let{primitive:e,semantic:t,global:s,style:I}=this.componentStyle?.getCommonTheme?.()||{};this.baseStyle.load(e?.css,n({name:"primitive-variables"},this.styleOptions)),this.baseStyle.load(t?.css,n({name:"semantic-variables"},this.styleOptions)),this.baseStyle.load(s?.css,n({name:"global-variables"},this.styleOptions)),this.baseStyle.loadGlobalTheme(n({name:"global-style"},this.styleOptions),I),a.setLoadedStyleName("common")}if(!a.isStyleNameLoaded(this.componentStyle?.name)&&this.componentStyle?.name){let{css:e,style:t}=this.componentStyle?.getComponentTheme?.()||{};this.componentStyle?.load(e,n({name:`${this.componentStyle?.name}-variables`},this.styleOptions)),this.componentStyle?.loadTheme(n({name:`${this.componentStyle?.name}-style`},this.styleOptions),t),a.setLoadedStyleName(this.componentStyle?.name)}if(!a.isStyleNameLoaded("layer-order")){let e=this.componentStyle?.getLayerOrderThemeCSS?.();this.baseStyle.load(e,n({name:"layer-order",first:!0},this.styleOptions)),a.setLoadedStyleName("layer-order")}this.dt&&(this._loadScopedThemeStyles(this.dt),this._themeChangeListener(()=>this._loadScopedThemeStyles(this.dt)))}_loadScopedThemeStyles(e){let{css:t}=this.componentStyle?.getPresetTheme?.(e,`[${this.attrSelector}]`)||{},s=this.componentStyle?.load(t,n({name:`${this.attrSelector}-${this.componentStyle?.name}`},this.styleOptions));this.scopedStyleEl=s?.el}_unloadScopedThemeStyles(){this.scopedStyleEl?.remove()}_themeChangeListener(e=()=>{}){l.clearLoadedStyleNames(),m.on("theme:change",e),this.themeChangeListeners.push(e)}cx(e,t){let s=this.parent?this.parent.componentStyle?.classes?.[e]:this.componentStyle?.classes?.[e];return typeof s=="function"?s({instance:this}):typeof s=="string"?s:e}sx(e){let t=this.componentStyle?.inlineStyles?.[e];return typeof t=="function"?t({instance:this}):typeof t=="string"?t:n({},t)}get parent(){return this.parentInstance}static \u0275fac=function(t){return new(t||o)};static \u0275dir=u({type:o,inputs:{dt:"dt"},features:[g([T,r]),c]})}return o})();export{B as a};
|
package/chunk-TYETQJ2X.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as _,b as nt,c as Si,d as Ti,e as Ei,f as it,g as bi,h as De,i as Ci,u as Lt,v as Ii,x as jr,y as jt,z as Fr}from"./chunk-353U23ZQ.js";import{$ as y,$a as ni,$c as wi,Aa as B,Ba as _r,Cb as kr,D as G,Da as Hn,Db as li,Ea as Pr,Fb as Lr,Gb as tt,Ha as Gn,Hb as rt,I as ne,Ia as Nr,J as ee,Ja as Wn,Ka as Ye,Kb as di,M as Ir,Ma as Ur,N as Ee,Na as Xn,Nc as vi,Oa as Jn,Pa as Nt,Q as be,Qc as xt,R as ie,Ra as Yn,S as Mr,Sa as Ze,T as jn,Ta as Me,Tc as yi,U as Fn,Ua as Ae,Uc as Ri,Va as Zn,Vc as kt,W as $n,Wa as Kn,X as x,Xa as Qn,Xb as hi,Y as zn,Ya as ei,Z as D,Za as ti,_a as ri,a as Pn,ab as fe,ba as v,c as Nn,ca as Xe,d as Un,da as Bn,db as ii,e as Er,ea as C,ec as fi,f as br,fa as Ar,g as K,ga as g,h as $,ha as d,hb as Ke,ia as Ce,jc as pi,k as Q,ka as Vn,kb as oi,l as O,la as oe,lb as xr,lc as gi,m as f,ma as z,mb as V,mc as mi,n as Ge,nb as si,o as xn,oa as Je,ob as ai,p as kn,s as E,sb as ci,t as _t,ta as Dr,u as N,ua as qn,ub as Ut,v as We,va as Ie,vb as ui,w as Ln,wa as Or,wb as Qe,x as Cr,xb as et,ya as Pt,za as he}from"./chunk-ARSLNNKY.js";import{a as h,b as P,c as _n}from"./chunk-YQFG5XE2.js";var zt=new C(""),Vr=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,n){this._zone=n,e.forEach(i=>{i.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,n,i,o){return this._findPluginFor(n).addEventListener(e,n,i,o)}getZone(){return this._zone}_findPluginFor(e){let n=this._eventNameToPlugin.get(e);if(n)return n;if(n=this._plugins.find(o=>o.supports(e)),!n)throw new y(5101,!1);return this._eventNameToPlugin.set(e,n),n}static \u0275fac=function(n){return new(n||t)(g(zt),g(B))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),ot=class{_doc;constructor(r){this._doc=r}manager},Ft="ng-app-id";function Mi(t){for(let r of t)r.remove()}function Ai(t,r){let e=r.createElement("style");return e.textContent=t,e}function Ko(t,r,e,n){let i=t.head?.querySelectorAll(`style[${Ft}="${r}"],link[${Ft}="${r}"]`);if(i)for(let o of i)o.removeAttribute(Ft),o instanceof HTMLLinkElement?n.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&e.set(o.textContent,{usage:0,elements:[o]})}function zr(t,r){let e=r.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var qr=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(e,n,i,o={}){this.doc=e,this.appId=n,this.nonce=i,this.isServer=jr(o),Ko(e,n,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,n){for(let i of e)this.addUsage(i,this.inline,Ai);n?.forEach(i=>this.addUsage(i,this.external,zr))}removeStyles(e,n){for(let i of e)this.removeUsage(i,this.inline);n?.forEach(i=>this.removeUsage(i,this.external))}addUsage(e,n,i){let o=n.get(e);o?o.usage++:n.set(e,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,i(e,this.doc)))})}removeUsage(e,n){let i=n.get(e);i&&(i.usage--,i.usage<=0&&(Mi(i.elements),n.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])Mi(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[n,{elements:i}]of this.inline)i.push(this.addElement(e,Ai(n,this.doc)));for(let[n,{elements:i}]of this.external)i.push(this.addElement(e,zr(n,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,n){return this.nonce&&n.setAttribute("nonce",this.nonce),this.isServer&&n.setAttribute(Ft,this.appId),e.appendChild(n)}static \u0275fac=function(n){return new(n||t)(g(_),g(Nr),g(Ur,8),g(Ye))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),$r={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"},Hr=/%COMP%/g;var Oi="%COMP%",Qo=`_nghost-${Oi}`,es=`_ngcontent-${Oi}`,ts=!0,rs=new C("",{providedIn:"root",factory:()=>ts});function ns(t){return es.replace(Hr,t)}function is(t){return Qo.replace(Hr,t)}function _i(t,r){return r.map(e=>e.replace(Hr,t))}var Gr=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,n,i,o,s,a,c,u=null,l=null){this.eventManager=e,this.sharedStylesHost=n,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=u,this.tracingService=l,this.platformIsServer=jr(a),this.defaultRenderer=new st(e,s,c,this.platformIsServer,this.tracingService)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;this.platformIsServer&&n.encapsulation===Ze.ShadowDom&&(n=P(h({},n),{encapsulation:Ze.Emulated}));let i=this.getOrCreateRenderer(e,n);return i instanceof $t?i.applyToHost(e):i instanceof at&&i.applyStyles(),i}getOrCreateRenderer(e,n){let i=this.rendererByCompId,o=i.get(n.id);if(!o){let s=this.doc,a=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,m=this.platformIsServer,w=this.tracingService;switch(n.encapsulation){case Ze.Emulated:o=new $t(c,u,n,this.appId,l,s,a,m,w);break;case Ze.ShadowDom:return new Br(c,u,e,n,s,a,this.nonce,m,w);default:o=new at(c,u,n,l,s,a,m,w);break}i.set(n.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(n){return new(n||t)(g(Vr),g(qr),g(Nr),g(rs),g(_),g(Ye),g(B),g(Ur),g(Jn,8))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),st=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(r,e,n,i,o){this.eventManager=r,this.doc=e,this.ngZone=n,this.platformIsServer=i,this.tracingService=o}destroy(){}destroyNode=null;createElement(r,e){return e?this.doc.createElementNS($r[e]||e,r):this.doc.createElement(r)}createComment(r){return this.doc.createComment(r)}createText(r){return this.doc.createTextNode(r)}appendChild(r,e){(Di(r)?r.content:r).appendChild(e)}insertBefore(r,e,n){r&&(Di(r)?r.content:r).insertBefore(e,n)}removeChild(r,e){e.remove()}selectRootElement(r,e){let n=typeof r=="string"?this.doc.querySelector(r):r;if(!n)throw new y(-5104,!1);return e||(n.textContent=""),n}parentNode(r){return r.parentNode}nextSibling(r){return r.nextSibling}setAttribute(r,e,n,i){if(i){e=i+":"+e;let o=$r[i];o?r.setAttributeNS(o,e,n):r.setAttribute(e,n)}else r.setAttribute(e,n)}removeAttribute(r,e,n){if(n){let i=$r[n];i?r.removeAttributeNS(i,e):r.removeAttribute(`${n}:${e}`)}else r.removeAttribute(e)}addClass(r,e){r.classList.add(e)}removeClass(r,e){r.classList.remove(e)}setStyle(r,e,n,i){i&(Ke.DashCase|Ke.Important)?r.style.setProperty(e,n,i&Ke.Important?"important":""):r.style[e]=n}removeStyle(r,e,n){n&Ke.DashCase?r.style.removeProperty(e):r.style[e]=""}setProperty(r,e,n){r!=null&&(r[e]=n)}setValue(r,e){r.nodeValue=e}listen(r,e,n,i){if(typeof r=="string"&&(r=nt().getGlobalEventTarget(this.doc,r),!r))throw new y(5102,!1);let o=this.decoratePreventDefault(n);return this.tracingService?.wrapEventListener&&(o=this.tracingService.wrapEventListener(r,e,o)),this.eventManager.addEventListener(r,e,o,i)}decoratePreventDefault(r){return e=>{if(e==="__ngUnwrap__")return r;(this.platformIsServer?this.ngZone.runGuarded(()=>r(e)):r(e))===!1&&e.preventDefault()}}};function Di(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Br=class extends st{sharedStylesHost;hostEl;shadowRoot;constructor(r,e,n,i,o,s,a,c,u){super(r,o,s,c,u),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=i.styles;l=_i(i.id,l);for(let w of l){let S=document.createElement("style");a&&S.setAttribute("nonce",a),S.textContent=w,this.shadowRoot.appendChild(S)}let m=i.getExternalStyles?.();if(m)for(let w of m){let S=zr(w,o);a&&S.setAttribute("nonce",a),this.shadowRoot.appendChild(S)}}nodeOrShadowRoot(r){return r===this.hostEl?this.shadowRoot:r}appendChild(r,e){return super.appendChild(this.nodeOrShadowRoot(r),e)}insertBefore(r,e,n){return super.insertBefore(this.nodeOrShadowRoot(r),e,n)}removeChild(r,e){return super.removeChild(null,e)}parentNode(r){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(r)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},at=class extends st{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(r,e,n,i,o,s,a,c,u){super(r,o,s,a,c),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=i;let l=n.styles;this.styles=u?_i(u,l):l,this.styleUrls=n.getExternalStyles?.(u)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},$t=class extends at{contentAttr;hostAttr;constructor(r,e,n,i,o,s,a,c,u){let l=i+"-"+n.id;super(r,e,n,o,s,a,c,u,l),this.contentAttr=ns(l),this.hostAttr=is(l)}applyToHost(r){this.applyStyles(),this.setAttribute(r,this.hostAttr,"")}createElement(r,e){let n=super.createElement(r,e);return super.setAttribute(n,this.contentAttr,""),n}};var Bt=class t extends Ti{supportsDOMEvents=!0;static makeCurrent(){Si(new t)}onAndCancel(r,e,n,i){return r.addEventListener(e,n,i),()=>{r.removeEventListener(e,n,i)}}dispatchEvent(r,e){r.dispatchEvent(e)}remove(r){r.remove()}createElement(r,e){return e=e||this.getDefaultDocument(),e.createElement(r)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(r){return r.nodeType===Node.ELEMENT_NODE}isShadowRoot(r){return r instanceof DocumentFragment}getGlobalEventTarget(r,e){return e==="window"?window:e==="document"?r:e==="body"?r.body:null}getBaseHref(r){let e=ss();return e==null?null:as(e)}resetBaseElement(){ut=null}getUserAgent(){return window.navigator.userAgent}getCookie(r){return Lt(document.cookie,r)}},ut=null;function ss(){return ut=ut||document.head.querySelector("base"),ut?ut.getAttribute("href"):null}function as(t){return new URL(t,document.baseURI).pathname}var cs=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||t)};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),Ni=(()=>{class t extends ot{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,i,o){return e.addEventListener(n,i,o),()=>this.removeEventListener(e,n,i,o)}removeEventListener(e,n,i,o){return e.removeEventListener(n,i,o)}static \u0275fac=function(n){return new(n||t)(g(_))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),Pi=["alt","control","meta","shift"],us={"\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"},ls={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},Ui=(()=>{class t extends ot{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,n,i,o){let s=t.parseEventName(n),a=t.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>nt().onAndCancel(e,s.domEventName,a,o))}static parseEventName(e){let n=e.toLowerCase().split("."),i=n.shift();if(n.length===0||!(i==="keydown"||i==="keyup"))return null;let o=t._normalizeKey(n.pop()),s="",a=n.indexOf("code");if(a>-1&&(n.splice(a,1),s="code."),Pi.forEach(u=>{let l=n.indexOf(u);l>-1&&(n.splice(l,1),s+=u+".")}),s+=o,n.length!=0||o.length===0)return null;let c={};return c.domEventName=i,c.fullKey=s,c}static matchEventFullKeyCode(e,n){let i=us[e.key]||e.key,o="";return n.indexOf("code.")>-1&&(i=e.code,o="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),Pi.forEach(s=>{if(s!==i){let a=ls[s];a(e)&&(o+=s+".")}}),o+=i,o===n)}static eventCallback(e,n,i){return o=>{t.matchEventFullKeyCode(o,e)&&i.runGuarded(()=>n(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(n){return new(n||t)(g(_))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})();function ds(t,r){return yi(h({rootComponent:t},hs(r)))}function hs(t){return{appProviders:[...vs,...t?.providers??[]],platformProviders:ms}}function fs(){Bt.makeCurrent()}function ps(){return new _r}function gs(){return Gn(document),document}var ms=[{provide:Ye,useValue:Ii},{provide:Wn,useValue:fs,multi:!0},{provide:_,useFactory:gs}];var vs=[{provide:Vn,useValue:"root"},{provide:_r,useFactory:ps},{provide:zt,useClass:Ni,multi:!0,deps:[_]},{provide:zt,useClass:Ui,multi:!0,deps:[_]},Gr,qr,Vr,{provide:oi,useExisting:Gr},{provide:jt,useClass:cs},[]];var _e=class{},lt=class{},re=class t{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(r){r?typeof r=="string"?this.lazyInit=()=>{this.headers=new Map,r.split(`
|
|
2
|
-
`).forEach(e=>{let n=e.indexOf(":");if(n>0){let i=e.slice(0,n),o=e.slice(n+1).trim();this.addHeaderEntry(i,o)}})}:typeof Headers<"u"&&r instanceof Headers?(this.headers=new Map,r.forEach((e,n)=>{this.addHeaderEntry(n,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(r).forEach(([e,n])=>{this.setHeaderEntries(e,n)})}:this.headers=new Map}has(r){return this.init(),this.headers.has(r.toLowerCase())}get(r){this.init();let e=this.headers.get(r.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(r){return this.init(),this.headers.get(r.toLowerCase())||null}append(r,e){return this.clone({name:r,value:e,op:"a"})}set(r,e){return this.clone({name:r,value:e,op:"s"})}delete(r,e){return this.clone({name:r,value:e,op:"d"})}maybeSetNormalizedName(r,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,r)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(r=>this.applyUpdate(r)),this.lazyUpdate=null))}copyFrom(r){r.init(),Array.from(r.headers.keys()).forEach(e=>{this.headers.set(e,r.headers.get(e)),this.normalizedNames.set(e,r.normalizedNames.get(e))})}clone(r){let e=new t;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([r]),e}applyUpdate(r){let e=r.name.toLowerCase();switch(r.op){case"a":case"s":let n=r.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(r.name,e);let i=(r.op==="a"?this.headers.get(e):void 0)||[];i.push(...n),this.headers.set(e,i);break;case"d":let o=r.value;if(!o)this.headers.delete(e),this.normalizedNames.delete(e);else{let s=this.headers.get(e);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}break}}addHeaderEntry(r,e){let n=r.toLowerCase();this.maybeSetNormalizedName(r,n),this.headers.has(n)?this.headers.get(n).push(e):this.headers.set(n,[e])}setHeaderEntries(r,e){let n=(Array.isArray(e)?e:[e]).map(o=>o.toString()),i=r.toLowerCase();this.headers.set(i,n),this.maybeSetNormalizedName(r,i)}forEach(r){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>r(this.normalizedNames.get(e),this.headers.get(e)))}};var qt=class{encodeKey(r){return xi(r)}encodeValue(r){return xi(r)}decodeKey(r){return decodeURIComponent(r)}decodeValue(r){return decodeURIComponent(r)}};function ys(t,r){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,a]=o==-1?[r.decodeKey(i),""]:[r.decodeKey(i.slice(0,o)),r.decodeValue(i.slice(o+1))],c=e.get(s)||[];c.push(a),e.set(s,c)}),e}var Rs=/%(\d[a-f0-9])/gi,ws={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function xi(t){return encodeURIComponent(t).replace(Rs,(r,e)=>ws[e]??r)}function Vt(t){return`${t}`}var te=class t{map;encoder;updates=null;cloneFrom=null;constructor(r={}){if(this.encoder=r.encoder||new qt,r.fromString){if(r.fromObject)throw new y(2805,!1);this.map=ys(r.fromString,this.encoder)}else r.fromObject?(this.map=new Map,Object.keys(r.fromObject).forEach(e=>{let n=r.fromObject[e],i=Array.isArray(n)?n.map(Vt):[Vt(n)];this.map.set(e,i)})):this.map=null}has(r){return this.init(),this.map.has(r)}get(r){this.init();let e=this.map.get(r);return e?e[0]:null}getAll(r){return this.init(),this.map.get(r)||null}keys(){return this.init(),Array.from(this.map.keys())}append(r,e){return this.clone({param:r,value:e,op:"a"})}appendAll(r){let e=[];return Object.keys(r).forEach(n=>{let i=r[n];Array.isArray(i)?i.forEach(o=>{e.push({param:n,value:o,op:"a"})}):e.push({param:n,value:i,op:"a"})}),this.clone(e)}set(r,e){return this.clone({param:r,value:e,op:"s"})}delete(r,e){return this.clone({param:r,value:e,op:"d"})}toString(){return this.init(),this.keys().map(r=>{let e=this.encoder.encodeKey(r);return this.map.get(r).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(r=>r!=="").join("&")}clone(r){let e=new t({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(r),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(r=>this.map.set(r,this.cloneFrom.map.get(r))),this.updates.forEach(r=>{switch(r.op){case"a":case"s":let e=(r.op==="a"?this.map.get(r.param):void 0)||[];e.push(Vt(r.value)),this.map.set(r.param,e);break;case"d":if(r.value!==void 0){let n=this.map.get(r.param)||[],i=n.indexOf(Vt(r.value));i!==-1&&n.splice(i,1),n.length>0?this.map.set(r.param,n):this.map.delete(r.param)}else{this.map.delete(r.param);break}}}),this.cloneFrom=this.updates=null)}};var Ht=class{map=new Map;set(r,e){return this.map.set(r,e),this}get(r){return this.map.has(r)||this.map.set(r,r.defaultValue()),this.map.get(r)}delete(r){return this.map.delete(r),this}has(r){return this.map.has(r)}keys(){return this.map.keys()}};function Ss(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function ki(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function Li(t){return typeof Blob<"u"&&t instanceof Blob}function ji(t){return typeof FormData<"u"&&t instanceof FormData}function Ts(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var Fi="Content-Type",$i="Accept",zi="X-Request-URL",Bi="text/plain",Vi="application/json",Es=`${Vi}, ${Bi}, */*`,Oe=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(r,e,n,i){this.url=e,this.method=r.toUpperCase();let o;if(Ss(this.method)||i?(this.body=n!==void 0?n:null,o=i):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new re,this.context??=new Ht,!this.params)this.params=new te,this.urlWithParams=e;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=e;else{let a=e.indexOf("?"),c=a===-1?"?":a<e.length-1?"&":"";this.urlWithParams=e+c+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||ki(this.body)||Li(this.body)||ji(this.body)||Ts(this.body)?this.body:this.body instanceof te?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||ji(this.body)?null:Li(this.body)?this.body.type||null:ki(this.body)?null:typeof this.body=="string"?Bi:this.body instanceof te?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Vi:null}clone(r={}){let e=r.method||this.method,n=r.url||this.url,i=r.responseType||this.responseType,o=r.transferCache??this.transferCache,s=r.body!==void 0?r.body:this.body,a=r.withCredentials??this.withCredentials,c=r.reportProgress??this.reportProgress,u=r.headers||this.headers,l=r.params||this.params,m=r.context??this.context;return r.setHeaders!==void 0&&(u=Object.keys(r.setHeaders).reduce((w,S)=>w.set(S,r.setHeaders[S]),u)),r.setParams&&(l=Object.keys(r.setParams).reduce((w,S)=>w.set(S,r.setParams[S]),l)),new t(e,n,s,{params:l,headers:u,context:m,reportProgress:c,responseType:i,withCredentials:a,transferCache:o})}},pe=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}(pe||{}),Pe=class{headers;status;statusText;url;ok;type;constructor(r,e=200,n="OK"){this.headers=r.headers||new re,this.status=r.status!==void 0?r.status:e,this.statusText=r.statusText||n,this.url=r.url||null,this.ok=this.status>=200&&this.status<300}},Gt=class t extends Pe{constructor(r={}){super(r)}type=pe.ResponseHeader;clone(r={}){return new t({headers:r.headers||this.headers,status:r.status!==void 0?r.status:this.status,statusText:r.statusText||this.statusText,url:r.url||this.url||void 0})}},ge=class t extends Pe{body;constructor(r={}){super(r),this.body=r.body!==void 0?r.body:null}type=pe.Response;clone(r={}){return new t({body:r.body!==void 0?r.body:this.body,headers:r.headers||this.headers,status:r.status!==void 0?r.status:this.status,statusText:r.statusText||this.statusText,url:r.url||this.url||void 0})}},dt=class extends Pe{name="HttpErrorResponse";message;error;ok=!1;constructor(r){super(r,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${r.url||"(unknown url)"}`:this.message=`Http failure response for ${r.url||"(unknown url)"}: ${r.status} ${r.statusText}`,this.error=r.error||null}},bs=200,Cs=204;function Wr(t,r){return{body:r,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 qi=(()=>{class t{handler;constructor(e){this.handler=e}request(e,n,i={}){let o;if(e instanceof Oe)o=e;else{let c;i.headers instanceof re?c=i.headers:c=new re(i.headers);let u;i.params&&(i.params instanceof te?u=i.params:u=new te({fromObject:i.params})),o=new Oe(e,n,i.body!==void 0?i.body:null,{headers:c,context:i.context,params:u,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache})}let s=f(o).pipe(ee(c=>this.handler.handle(c)));if(e instanceof Oe||i.observe==="events")return s;let a=s.pipe(G(c=>c instanceof ge));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(E(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new y(2806,!1);return c.body}));case"blob":return a.pipe(E(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new y(2807,!1);return c.body}));case"text":return a.pipe(E(c=>{if(c.body!==null&&typeof c.body!="string")throw new y(2808,!1);return c.body}));case"json":default:return a.pipe(E(c=>c.body))}case"response":return a;default:throw new y(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 te().append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,i={}){return this.request("PATCH",e,Wr(i,n))}post(e,n,i={}){return this.request("POST",e,Wr(i,n))}put(e,n,i={}){return this.request("PUT",e,Wr(i,n))}static \u0275fac=function(n){return new(n||t)(g(_e))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})();var Is=new C("");function Ms(t,r){return r(t)}function As(t,r,e){return(n,i)=>z(e,()=>r(n,o=>t(o,i)))}var Jr=new C(""),Yr=new C(""),Hi=new C("",{providedIn:"root",factory:()=>!0});var Wt=(()=>{class t extends _e{backend;injector;chain=null;pendingTasks=d(Pt);contributeToStability=d(Hi);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(Jr),...this.injector.get(Yr,[])]));this.chain=n.reduceRight((i,o)=>As(i,o,this.injector),Ms)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(e,i=>this.backend.handle(i)).pipe(be(()=>this.pendingTasks.remove(n)))}else return this.chain(e,n=>this.backend.handle(n))}static \u0275fac=function(n){return new(n||t)(g(lt),g(oe))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})();var Ds=/^\)\]\}',?\n/,Os=RegExp(`^${zi}:`,"m");function _s(t){return"responseURL"in t&&t.responseURL?t.responseURL:Os.test(t.getAllResponseHeaders())?t.getResponseHeader(zi):null}var Xr=(()=>{class t{xhrFactory;constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new y(-2800,!1);let n=this.xhrFactory;return(n.\u0275loadImpl?O(n.\u0275loadImpl()):f(null)).pipe(x(()=>new Un(o=>{let s=n.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((R,T)=>s.setRequestHeader(R,T.join(","))),e.headers.has($i)||s.setRequestHeader($i,Es),!e.headers.has(Fi)){let R=e.detectContentTypeHeader();R!==null&&s.setRequestHeader(Fi,R)}if(e.responseType){let R=e.responseType.toLowerCase();s.responseType=R!=="json"?R:"text"}let a=e.serializeBody(),c=null,u=()=>{if(c!==null)return c;let R=s.statusText||"OK",T=new re(s.getAllResponseHeaders()),F=_s(s)||e.url;return c=new Gt({headers:T,status:s.status,statusText:R,url:F}),c},l=()=>{let{headers:R,status:T,statusText:F,url:Te}=u(),I=null;T!==Cs&&(I=typeof s.response>"u"?s.responseText:s.response),T===0&&(T=I?bs:0);let He=T>=200&&T<300;if(e.responseType==="json"&&typeof I=="string"){let Yo=I;I=I.replace(Ds,"");try{I=I!==""?JSON.parse(I):null}catch(Zo){I=Yo,He&&(He=!1,I={error:Zo,text:I})}}He?(o.next(new ge({body:I,headers:R,status:T,statusText:F,url:Te||void 0})),o.complete()):o.error(new dt({error:I,headers:R,status:T,statusText:F,url:Te||void 0}))},m=R=>{let{url:T}=u(),F=new dt({error:R,status:s.status||0,statusText:s.statusText||"Unknown Error",url:T||void 0});o.error(F)},w=!1,S=R=>{w||(o.next(u()),w=!0);let T={type:pe.DownloadProgress,loaded:R.loaded};R.lengthComputable&&(T.total=R.total),e.responseType==="text"&&s.responseText&&(T.partialText=s.responseText),o.next(T)},M=R=>{let T={type:pe.UploadProgress,loaded:R.loaded};R.lengthComputable&&(T.total=R.total),o.next(T)};return s.addEventListener("load",l),s.addEventListener("error",m),s.addEventListener("timeout",m),s.addEventListener("abort",m),e.reportProgress&&(s.addEventListener("progress",S),a!==null&&s.upload&&s.upload.addEventListener("progress",M)),s.send(a),o.next({type:pe.Sent}),()=>{s.removeEventListener("error",m),s.removeEventListener("abort",m),s.removeEventListener("load",l),s.removeEventListener("timeout",m),e.reportProgress&&(s.removeEventListener("progress",S),a!==null&&s.upload&&s.upload.removeEventListener("progress",M)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(n){return new(n||t)(g(jt))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),Gi=new C(""),Ps="XSRF-TOKEN",Ns=new C("",{providedIn:"root",factory:()=>Ps}),Us="X-XSRF-TOKEN",xs=new C("",{providedIn:"root",factory:()=>Us}),ht=class{},ks=(()=>{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=Lt(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(n){return new(n||t)(g(_),g(Ns))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})();function Ls(t,r){let e=t.url.toLowerCase();if(!d(Gi)||t.method==="GET"||t.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return r(t);let n=d(ht).getToken(),i=d(xs);return n!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,n)})),r(t)}var Zr=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}(Zr||{});function js(t,r){return{\u0275kind:t,\u0275providers:r}}function Fs(...t){let r=[qi,Xr,Wt,{provide:_e,useExisting:Wt},{provide:lt,useFactory:()=>d(Is,{optional:!0})??d(Xr)},{provide:Jr,useValue:Ls,multi:!0},{provide:Gi,useValue:!0},{provide:ht,useClass:ks}];for(let e of t)r.push(...e.\u0275providers);return Ce(r)}function $s(t){return js(Zr.Interceptors,t.map(r=>({provide:Jr,useValue:r,multi:!0})))}var Bs=new C(""),Vs="b",qs="h",Hs="s",Gs="st",Ws="u",Xs="rt",Kr=new C(""),Js=["GET","HEAD"];function Ys(t,r){let w=d(Kr),{isCacheActive:e}=w,n=_n(w,["isCacheActive"]),{transferCache:i,method:o}=t;if(!e||i===!1||o==="POST"&&!n.includePostRequests&&!i||o!=="POST"&&!Js.includes(o)||!n.includeRequestsWithAuthHeaders&&Zs(t)||n.filter?.(t)===!1)return r(t);let s=d(Xn);if(d(Bs,{optional:!0}))throw new y(2803,!1);let c=t.url,u=Ks(t,c),l=s.get(u,null),m=n.includeHeaders;if(typeof i=="object"&&i.includeHeaders&&(m=i.includeHeaders),l){let{[Vs]:S,[Xs]:M,[qs]:R,[Hs]:T,[Gs]:F,[Ws]:Te}=l,I=S;switch(M){case"arraybuffer":I=new TextEncoder().encode(S).buffer;break;case"blob":I=new Blob([S]);break}let He=new re(R);return f(new ge({body:I,headers:He,status:T,statusText:F,url:Te}))}return r(t).pipe(D(S=>{S instanceof ge}))}function Zs(t){return t.headers.has("authorization")||t.headers.has("proxy-authorization")}function Wi(t){return[...t.keys()].sort().map(r=>`${r}=${t.getAll(r)}`).join("&")}function Ks(t,r){let{params:e,method:n,responseType:i}=t,o=Wi(e),s=t.serializeBody();s instanceof URLSearchParams?s=Wi(s):typeof s!="string"&&(s="");let a=[n,i,r,s,o].join("|"),c=Qs(a);return c}function Qs(t){let r=0;for(let e of t)r=Math.imul(31,r)+e.charCodeAt(0)<<0;return r+=2147483648,r.toString()}function Xi(t){return[{provide:Kr,useFactory:()=>(Nt("NgHttpTransferCache"),h({isCacheActive:!0},t))},{provide:Yr,useValue:Ys,multi:!0},{provide:tt,multi:!0,useFactory:()=>{let r=d(rt),e=d(Kr);return()=>{r.whenStable().then(()=>{e.isCacheActive=!1})}}}]}var Ji=(()=>{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)(g(_))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var ta=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=v({token:t,factory:function(n){let i=null;return n?i=new(n||t):i=g(ra),i},providedIn:"root"})}return t})(),ra=(()=>{class t extends ta{_doc;constructor(e){super(),this._doc=e}sanitize(e,n){if(n==null)return null;switch(e){case fe.NONE:return n;case fe.HTML:return Ae(n,"HTML")?Me(n):ni(this._doc,String(n)).toString();case fe.STYLE:return Ae(n,"Style")?Me(n):n;case fe.SCRIPT:if(Ae(n,"Script"))return Me(n);throw new y(5200,!1);case fe.URL:return Ae(n,"URL")?Me(n):ri(String(n));case fe.RESOURCE_URL:if(Ae(n,"ResourceURL"))return Me(n);throw new y(5201,!1);default:throw new y(5202,!1)}}bypassSecurityTrustHtml(e){return Zn(e)}bypassSecurityTrustStyle(e){return Kn(e)}bypassSecurityTrustScript(e){return Qn(e)}bypassSecurityTrustUrl(e){return ei(e)}bypassSecurityTrustResourceUrl(e){return ti(e)}static \u0275fac=function(n){return new(n||t)(g(_))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Qr=function(t){return t[t.NoHttpTransferCache=0]="NoHttpTransferCache",t[t.HttpTransferCacheOptions=1]="HttpTransferCacheOptions",t[t.I18nSupport=2]="I18nSupport",t[t.EventReplay=3]="EventReplay",t[t.IncrementalHydration=4]="IncrementalHydration",t}(Qr||{});function Tl(...t){let r=[],e=new Set;for(let{\u0275providers:i,\u0275kind:o}of t)e.add(o),i.length&&r.push(i);let n=e.has(Qr.HttpTransferCacheOptions);return Ce([[],Ri(),e.has(Qr.NoHttpTransferCache)||n?[]:Xi({}),r])}var p="primary",Ct=Symbol("RouteTitle"),on=class{params;constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){let e=this.params[r];return Array.isArray(e)?e[0]:e}return null}getAll(r){if(this.has(r)){let e=this.params[r];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function ye(t){return new on(t)}function no(t,r,e){let n=e.path.split("/");if(n.length>t.length||e.pathMatch==="full"&&(r.hasChildren()||n.length<t.length))return null;let i={};for(let o=0;o<n.length;o++){let s=n[o],a=t[o];if(s[0]===":")i[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:t.slice(0,n.length),posParams:i}}function ia(t,r){if(t.length!==r.length)return!1;for(let e=0;e<t.length;++e)if(!W(t[e],r[e]))return!1;return!0}function W(t,r){let e=t?sn(t):void 0,n=r?sn(r):void 0;if(!e||!n||e.length!=n.length)return!1;let i;for(let o=0;o<e.length;o++)if(i=e[o],!io(t[i],r[i]))return!1;return!0}function sn(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function io(t,r){if(Array.isArray(t)&&Array.isArray(r)){if(t.length!==r.length)return!1;let e=[...t].sort(),n=[...r].sort();return e.every((i,o)=>n[o]===i)}else return t===r}function oo(t){return t.length>0?t[t.length-1]:null}function le(t){return xn(t)?t:li(t)?O(Promise.resolve(t)):f(t)}var oa={exact:ao,subset:co},so={exact:sa,subset:aa,ignored:()=>!0};function Yi(t,r,e){return oa[e.paths](t.root,r.root,e.matrixParams)&&so[e.queryParams](t.queryParams,r.queryParams)&&!(e.fragment==="exact"&&t.fragment!==r.fragment)}function sa(t,r){return W(t,r)}function ao(t,r,e){if(!me(t.segments,r.segments)||!Yt(t.segments,r.segments,e)||t.numberOfChildren!==r.numberOfChildren)return!1;for(let n in r.children)if(!t.children[n]||!ao(t.children[n],r.children[n],e))return!1;return!0}function aa(t,r){return Object.keys(r).length<=Object.keys(t).length&&Object.keys(r).every(e=>io(t[e],r[e]))}function co(t,r,e){return uo(t,r,r.segments,e)}function uo(t,r,e,n){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!me(i,e)||r.hasChildren()||!Yt(i,e,n))}else if(t.segments.length===e.length){if(!me(t.segments,e)||!Yt(t.segments,e,n))return!1;for(let i in r.children)if(!t.children[i]||!co(t.children[i],r.children[i],n))return!1;return!0}else{let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!me(t.segments,i)||!Yt(t.segments,i,n)||!t.children[p]?!1:uo(t.children[p],r,o,n)}}function Yt(t,r,e){return r.every((n,i)=>so[e](t[i].parameters,n.parameters))}var J=class{root;queryParams;fragment;_queryParamMap;constructor(r=new b([],{}),e={},n=null){this.root=r,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap??=ye(this.queryParams),this._queryParamMap}toString(){return la.serialize(this)}},b=class{segments;children;parent=null;constructor(r,e){this.segments=r,this.children=e,Object.values(e).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Zt(this)}},se=class{path;parameters;_parameterMap;constructor(r,e){this.path=r,this.parameters=e}get parameterMap(){return this._parameterMap??=ye(this.parameters),this._parameterMap}toString(){return ho(this)}};function ca(t,r){return me(t,r)&&t.every((e,n)=>W(e.parameters,r[n].parameters))}function me(t,r){return t.length!==r.length?!1:t.every((e,n)=>e.path===r[n].path)}function ua(t,r){let e=[];return Object.entries(t.children).forEach(([n,i])=>{n===p&&(e=e.concat(r(i,n)))}),Object.entries(t.children).forEach(([n,i])=>{n!==p&&(e=e.concat(r(i,n)))}),e}var de=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=v({token:t,factory:()=>new ae,providedIn:"root"})}return t})(),ae=class{parse(r){let e=new cn(r);return new J(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(r){let e=`/${ft(r.root,!0)}`,n=fa(r.queryParams),i=typeof r.fragment=="string"?`#${da(r.fragment)}`:"";return`${e}${n}${i}`}},la=new ae;function Zt(t){return t.segments.map(r=>ho(r)).join("/")}function ft(t,r){if(!t.hasChildren())return Zt(t);if(r){let e=t.children[p]?ft(t.children[p],!1):"",n=[];return Object.entries(t.children).forEach(([i,o])=>{i!==p&&n.push(`${i}:${ft(o,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}else{let e=ua(t,(n,i)=>i===p?[ft(t.children[p],!1)]:[`${i}:${ft(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[p]!=null?`${Zt(t)}/${e[0]}`:`${Zt(t)}/(${e.join("//")})`}}function lo(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Xt(t){return lo(t).replace(/%3B/gi,";")}function da(t){return encodeURI(t)}function an(t){return lo(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Kt(t){return decodeURIComponent(t)}function Zi(t){return Kt(t.replace(/\+/g,"%20"))}function ho(t){return`${an(t.path)}${ha(t.parameters)}`}function ha(t){return Object.entries(t).map(([r,e])=>`;${an(r)}=${an(e)}`).join("")}function fa(t){let r=Object.entries(t).map(([e,n])=>Array.isArray(n)?n.map(i=>`${Xt(e)}=${Xt(i)}`).join("&"):`${Xt(e)}=${Xt(n)}`).filter(e=>e);return r.length?`?${r.join("&")}`:""}var pa=/^[^\/()?;#]+/;function en(t){let r=t.match(pa);return r?r[0]:""}var ga=/^[^\/()?;=#]+/;function ma(t){let r=t.match(ga);return r?r[0]:""}var va=/^[^=?&#]+/;function ya(t){let r=t.match(va);return r?r[0]:""}var Ra=/^[^&#]+/;function wa(t){let r=t.match(Ra);return r?r[0]:""}var cn=class{url;remaining;constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new b([],{}):new b([],this.parseChildren())}parseQueryParams(){let r={};if(this.consumeOptional("?"))do this.parseQueryParam(r);while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let r=[];for(this.peekStartsWith("(")||r.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),r.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(r.length>0||Object.keys(e).length>0)&&(n[p]=new b(r,e)),n}parseSegment(){let r=en(this.remaining);if(r===""&&this.peekStartsWith(";"))throw new y(4009,!1);return this.capture(r),new se(Kt(r),this.parseMatrixParams())}parseMatrixParams(){let r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){let e=ma(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let i=en(this.remaining);i&&(n=i,this.capture(n))}r[Kt(e)]=Kt(n)}parseQueryParam(r){let e=ya(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let s=wa(this.remaining);s&&(n=s,this.capture(n))}let i=Zi(e),o=Zi(n);if(r.hasOwnProperty(i)){let s=r[i];Array.isArray(s)||(s=[s],r[i]=s),s.push(o)}else r[i]=o}parseParens(r){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=en(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new y(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):r&&(o=p);let s=this.parseChildren();e[o]=Object.keys(s).length===1?s[p]:new b([],s),this.consumeOptional("//")}return e}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return this.peekStartsWith(r)?(this.remaining=this.remaining.substring(r.length),!0):!1}capture(r){if(!this.consumeOptional(r))throw new y(4011,!1)}};function fo(t){return t.segments.length>0?new b([],{[p]:t}):t}function po(t){let r={};for(let[n,i]of Object.entries(t.children)){let o=po(i);if(n===p&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))r[s]=a;else(o.segments.length>0||o.hasChildren())&&(r[n]=o)}let e=new b(t.segments,r);return Sa(e)}function Sa(t){if(t.numberOfChildren===1&&t.children[p]){let r=t.children[p];return new b(t.segments.concat(r.segments),r.children)}return t}function ce(t){return t instanceof J}function go(t,r,e=null,n=null){let i=mo(t);return vo(i,r,e,n)}function mo(t){let r;function e(o){let s={};for(let c of o.children){let u=e(c);s[c.outlet]=u}let a=new b(o.url,s);return o===t&&(r=a),a}let n=e(t.root),i=fo(n);return r??i}function vo(t,r,e,n){let i=t;for(;i.parent;)i=i.parent;if(r.length===0)return tn(i,i,i,e,n);let o=Ta(r);if(o.toRoot())return tn(i,i,new b([],{}),e,n);let s=Ea(o,i,t),a=s.processChildren?gt(s.segmentGroup,s.index,o.commands):Ro(s.segmentGroup,s.index,o.commands);return tn(i,s.segmentGroup,a,e,n)}function er(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function vt(t){return typeof t=="object"&&t!=null&&t.outlets}function tn(t,r,e,n,i){let o={};n&&Object.entries(n).forEach(([c,u])=>{o[c]=Array.isArray(u)?u.map(l=>`${l}`):`${u}`});let s;t===r?s=e:s=yo(t,r,e);let a=fo(po(s));return new J(a,o,i)}function yo(t,r,e){let n={};return Object.entries(t.children).forEach(([i,o])=>{o===r?n[i]=e:n[i]=yo(o,r,e)}),new b(t.segments,n)}var tr=class{isAbsolute;numberOfDoubleDots;commands;constructor(r,e,n){if(this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=n,r&&n.length>0&&er(n[0]))throw new y(4003,!1);let i=n.find(vt);if(i&&i!==oo(n))throw new y(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Ta(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new tr(!0,0,t);let r=0,e=!1,n=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?e=!0:a===".."?r++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new tr(e,r,n)}var xe=class{segmentGroup;processChildren;index;constructor(r,e,n){this.segmentGroup=r,this.processChildren=e,this.index=n}};function Ea(t,r,e){if(t.isAbsolute)return new xe(r,!0,0);if(!e)return new xe(r,!1,NaN);if(e.parent===null)return new xe(e,!0,0);let n=er(t.commands[0])?0:1,i=e.segments.length-1+n;return ba(e,i,t.numberOfDoubleDots)}function ba(t,r,e){let n=t,i=r,o=e;for(;o>i;){if(o-=i,n=n.parent,!n)throw new y(4005,!1);i=n.segments.length}return new xe(n,!1,i-o)}function Ca(t){return vt(t[0])?t[0].outlets:{[p]:t}}function Ro(t,r,e){if(t??=new b([],{}),t.segments.length===0&&t.hasChildren())return gt(t,r,e);let n=Ia(t,r,e),i=e.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){let o=new b(t.segments.slice(0,n.pathIndex),{});return o.children[p]=new b(t.segments.slice(n.pathIndex),t.children),gt(o,0,i)}else return n.match&&i.length===0?new b(t.segments,{}):n.match&&!t.hasChildren()?un(t,r,e):n.match?gt(t,0,i):un(t,r,e)}function gt(t,r,e){if(e.length===0)return new b(t.segments,{});{let n=Ca(e),i={};if(Object.keys(n).some(o=>o!==p)&&t.children[p]&&t.numberOfChildren===1&&t.children[p].segments.length===0){let o=gt(t.children[p],r,e);return new b(t.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=Ro(t.children[o],r,s))}),Object.entries(t.children).forEach(([o,s])=>{n[o]===void 0&&(i[o]=s)}),new b(t.segments,i)}}function Ia(t,r,e){let n=0,i=r,o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(n>=e.length)return o;let s=t.segments[i],a=e[n];if(vt(a))break;let c=`${a}`,u=n<e.length-1?e[n+1]:null;if(i>0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!Qi(c,u,s))return o;n+=2}else{if(!Qi(c,{},s))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function un(t,r,e){let n=t.segments.slice(0,r),i=0;for(;i<e.length;){let o=e[i];if(vt(o)){let c=Ma(o.outlets);return new b(n,c)}if(i===0&&er(e[0])){let c=t.segments[r];n.push(new se(c.path,Ki(e[0]))),i++;continue}let s=vt(o)?o.outlets[p]:`${o}`,a=i<e.length-1?e[i+1]:null;s&&a&&er(a)?(n.push(new se(s,Ki(a))),i+=2):(n.push(new se(s,{})),i++)}return new b(n,{})}function Ma(t){let r={};return Object.entries(t).forEach(([e,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(r[e]=un(new b([],{}),0,n))}),r}function Ki(t){let r={};return Object.entries(t).forEach(([e,n])=>r[e]=`${n}`),r}function Qi(t,r,e){return t==e.path&&W(r,e.parameters)}var Qt="imperative",A=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(A||{}),L=class{id;url;constructor(r,e){this.id=r,this.url=e}},ue=class extends L{type=A.NavigationStart;navigationTrigger;restoredState;constructor(r,e,n="imperative",i=null){super(r,e),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},j=class extends L{urlAfterRedirects;type=A.NavigationEnd;constructor(r,e,n){super(r,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},U=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(U||{}),Le=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Le||{}),X=class extends L{reason;code;type=A.NavigationCancel;constructor(r,e,n,i){super(r,e),this.reason=n,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Y=class extends L{reason;code;type=A.NavigationSkipped;constructor(r,e,n,i){super(r,e),this.reason=n,this.code=i}},je=class extends L{error;target;type=A.NavigationError;constructor(r,e,n,i){super(r,e),this.error=n,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},yt=class extends L{urlAfterRedirects;state;type=A.RoutesRecognized;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},rr=class extends L{urlAfterRedirects;state;type=A.GuardsCheckStart;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},nr=class extends L{urlAfterRedirects;state;shouldActivate;type=A.GuardsCheckEnd;constructor(r,e,n,i,o){super(r,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},ir=class extends L{urlAfterRedirects;state;type=A.ResolveStart;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},or=class extends L{urlAfterRedirects;state;type=A.ResolveEnd;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},sr=class{route;type=A.RouteConfigLoadStart;constructor(r){this.route=r}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},ar=class{route;type=A.RouteConfigLoadEnd;constructor(r){this.route=r}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},cr=class{snapshot;type=A.ChildActivationStart;constructor(r){this.snapshot=r}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ur=class{snapshot;type=A.ChildActivationEnd;constructor(r){this.snapshot=r}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},lr=class{snapshot;type=A.ActivationStart;constructor(r){this.snapshot=r}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},dr=class{snapshot;type=A.ActivationEnd;constructor(r){this.snapshot=r}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Fe=class{routerEvent;position;anchor;type=A.Scroll;constructor(r,e,n){this.routerEvent=r,this.position=e,this.anchor=n}toString(){let r=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${r}')`}},Rt=class{},$e=class{url;navigationBehaviorOptions;constructor(r,e){this.url=r,this.navigationBehaviorOptions=e}};function Aa(t,r){return t.providers&&!t._injector&&(t._injector=Ut(t.providers,r,`Route: ${t.path}`)),t._injector??r}function q(t){return t.outlet||p}function Da(t,r){let e=t.filter(n=>q(n)===r);return e.push(...t.filter(n=>q(n)!==r)),e}function It(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let r=t.parent;r;r=r.parent){let e=r.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var hr=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return It(this.route?.snapshot)??this.rootInjector}constructor(r){this.rootInjector=r,this.children=new Re(this.rootInjector)}},Re=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,n){let i=this.getOrCreateContext(e);i.outlet=n,this.contexts.set(e,i)}onChildOutletDestroyed(e){let n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new hr(this.rootInjector),this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(n){return new(n||t)(g(oe))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),fr=class{_root;constructor(r){this._root=r}get root(){return this._root.value}parent(r){let e=this.pathFromRoot(r);return e.length>1?e[e.length-2]:null}children(r){let e=ln(r,this._root);return e?e.children.map(n=>n.value):[]}firstChild(r){let e=ln(r,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(r){let e=dn(r,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==r)}pathFromRoot(r){return dn(r,this._root).map(e=>e.value)}};function ln(t,r){if(t===r.value)return r;for(let e of r.children){let n=ln(t,e);if(n)return n}return null}function dn(t,r){if(t===r.value)return[r];for(let e of r.children){let n=dn(t,e);if(n.length)return n.unshift(r),n}return[]}var k=class{value;children;constructor(r,e){this.value=r,this.children=e}toString(){return`TreeNode(${this.value})`}};function Ue(t){let r={};return t&&t.children.forEach(e=>r[e.value.outlet]=e),r}var wt=class extends fr{snapshot;constructor(r,e){super(r),this.snapshot=e,Rn(this,r)}toString(){return this.snapshot.toString()}};function wo(t){let r=Oa(t),e=new $([new se("",{})]),n=new $({}),i=new $({}),o=new $({}),s=new $(""),a=new Z(e,n,o,s,i,p,t,r.root);return a.snapshot=r.root,new wt(new k(a,[]),r)}function Oa(t){let r={},e={},n={},i="",o=new ve([],r,n,i,e,p,t,null,{});return new St("",new k(o,[]))}var Z=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(r,e,n,i,o,s,a,c){this.urlSubject=r,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(E(u=>u[Ct]))??f(void 0),this.url=r,this.params=e,this.queryParams=n,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(E(r=>ye(r))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(E(r=>ye(r))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function pr(t,r,e="emptyOnly"){let n,{routeConfig:i}=t;return r!==null&&(e==="always"||i?.path===""||!r.component&&!r.routeConfig?.loadComponent)?n={params:h(h({},r.params),t.params),data:h(h({},r.data),t.data),resolve:h(h(h(h({},t.data),r.data),i?.data),t._resolvedData)}:n={params:h({},t.params),data:h({},t.data),resolve:h(h({},t.data),t._resolvedData??{})},i&&To(i)&&(n.resolve[Ct]=i.title),n}var ve=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[Ct]}constructor(r,e,n,i,o,s,a,c,u){this.url=r,this.params=e,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=ye(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ye(this.queryParams),this._queryParamMap}toString(){let r=this.url.map(n=>n.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${r}', path:'${e}')`}},St=class extends fr{url;constructor(r,e){super(e),this.url=r,Rn(this,e)}toString(){return So(this._root)}};function Rn(t,r){r.value._routerState=t,r.children.forEach(e=>Rn(t,e))}function So(t){let r=t.children.length>0?` { ${t.children.map(So).join(", ")} } `:"";return`${t.value}${r}`}function rn(t){if(t.snapshot){let r=t.snapshot,e=t._futureSnapshot;t.snapshot=e,W(r.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),r.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),W(r.params,e.params)||t.paramsSubject.next(e.params),ia(r.url,e.url)||t.urlSubject.next(e.url),W(r.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function hn(t,r){let e=W(t.params,r.params)&&ca(t.url,r.url),n=!t.parent!=!r.parent;return e&&!n&&(!t.parent||hn(t.parent,r.parent))}function To(t){return typeof t.title=="string"||t.title===null}var Eo=new C(""),wn=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=p;activateEvents=new he;deactivateEvents=new he;attachEvents=new he;detachEvents=new he;routerOutletData=Hn(void 0);parentContexts=d(Re);location=d(ai);changeDetector=d(xt);inputBinder=d(Mt,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:n,previousValue:i}=e.name;if(n)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new y(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new y(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new y(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,n){this.activated=e,this._activatedRoute=n,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,n){if(this.isActivated)throw new y(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new fn(e,a,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:c,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=et({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Je]})}return t})(),fn=class{route;childContexts;parent;outletData;constructor(r,e,n,i){this.route=r,this.childContexts=e,this.parent=n,this.outletData=i}get(r,e){return r===Z?this.route:r===Re?this.childContexts:r===Eo?this.outletData:this.parent.get(r,e)}},Mt=new C(""),Sn=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:n}=e,i=_t([n.queryParams,n.params,n.data]).pipe(x(([o,s,a],c)=>(a=h(h(h({},o),s),a),c===0?f(a):Promise.resolve(a)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(e);return}let s=wi(n.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:a}of s.inputs)e.activatedComponentRef.setInput(a,o[a])});this.outletDataSubscriptions.set(e,i)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),Tn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=ui({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(n,i){n&1&&hi(0,"router-outlet")},dependencies:[wn],encapsulation:2})}return t})();function En(t){let r=t.children&&t.children.map(En),e=r?P(h({},t),{children:r}):h({},t);return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==p&&(e.component=Tn),e}function _a(t,r,e){let n=Tt(t,r._root,e?e._root:void 0);return new wt(n,r)}function Tt(t,r,e){if(e&&t.shouldReuseRoute(r.value,e.value.snapshot)){let n=e.value;n._futureSnapshot=r.value;let i=Pa(t,r,e);return new k(n,i)}else{if(t.shouldAttach(r.value)){let o=t.retrieve(r.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=r.value,s.children=r.children.map(a=>Tt(t,a)),s}}let n=Na(r.value),i=r.children.map(o=>Tt(t,o));return new k(n,i)}}function Pa(t,r,e){return r.children.map(n=>{for(let i of e.children)if(t.shouldReuseRoute(n.value,i.value.snapshot))return Tt(t,n,i);return Tt(t,n)})}function Na(t){return new Z(new $(t.url),new $(t.params),new $(t.queryParams),new $(t.fragment),new $(t.data),t.outlet,t.component,t)}var ze=class{redirectTo;navigationBehaviorOptions;constructor(r,e){this.redirectTo=r,this.navigationBehaviorOptions=e}},bo="ngNavigationCancelingError";function gr(t,r){let{redirectTo:e,navigationBehaviorOptions:n}=ce(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,i=Co(!1,U.Redirect);return i.url=e,i.navigationBehaviorOptions=n,i}function Co(t,r){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[bo]=!0,e.cancellationCode=r,e}function Ua(t){return Io(t)&&ce(t.url)}function Io(t){return!!t&&t[bo]}var xa=(t,r,e,n)=>E(i=>(new pn(r,i.targetRouterState,i.currentRouterState,e,n).activate(t),i)),pn=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(r,e,n,i,o){this.routeReuseStrategy=r,this.futureState=e,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=o}activate(r){let e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,r),rn(this.futureState.root),this.activateChildRoutes(e,n,r)}deactivateChildRoutes(r,e,n){let i=Ue(e);r.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],n),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(r,e,n){let i=r.value,o=e?e.value:null;if(i===o)if(i.component){let s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(r,e,s.children)}else this.deactivateChildRoutes(r,e,n);else o&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(r,e){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,e):this.deactivateRouteAndOutlet(r,e)}detachAndStoreRouteSubtree(r,e){let n=e.getContext(r.value.outlet),i=n&&r.value.component?n.children:e,o=Ue(r);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:s,route:r,contexts:a})}}deactivateRouteAndOutlet(r,e){let n=e.getContext(r.value.outlet),i=n&&r.value.component?n.children:e,o=Ue(r);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(r,e,n){let i=Ue(e);r.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],n),this.forwardEvent(new dr(o.value.snapshot))}),r.children.length&&this.forwardEvent(new ur(r.value.snapshot))}activateRoutes(r,e,n){let i=r.value,o=e?e.value:null;if(rn(i),i===o)if(i.component){let s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(r,e,s.children)}else this.activateChildRoutes(r,e,n);else if(i.component){let s=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),rn(a.route.value),this.activateChildRoutes(r,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(r,null,s.children)}else this.activateChildRoutes(r,null,n)}},mr=class{path;route;constructor(r){this.path=r,this.route=this.path[this.path.length-1]}},ke=class{component;route;constructor(r,e){this.component=r,this.route=e}};function ka(t,r,e){let n=t._root,i=r?r._root:null;return pt(n,i,e,[n.value])}function La(t){let r=t.routeConfig?t.routeConfig.canActivateChild:null;return!r||r.length===0?null:{node:t,guards:r}}function Ve(t,r){let e=Symbol(),n=r.get(t,e);return n===e?typeof t=="function"&&!Bn(t)?t:r.get(t):n}function pt(t,r,e,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=Ue(r);return t.children.forEach(s=>{ja(s,o[s.value.outlet],e,n.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>mt(a,e.getContext(s),i)),i}function ja(t,r,e,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=r?r.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=Fa(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new mr(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?pt(t,r,a?a.children:null,n,i):pt(t,r,e,n,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new ke(a.outlet.component,s))}else s&&mt(r,a,i),i.canActivateChecks.push(new mr(n)),o.component?pt(t,null,a?a.children:null,n,i):pt(t,null,e,n,i);return i}function Fa(t,r,e){if(typeof e=="function")return e(t,r);switch(e){case"pathParamsChange":return!me(t.url,r.url);case"pathParamsOrQueryParamsChange":return!me(t.url,r.url)||!W(t.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!hn(t,r)||!W(t.queryParams,r.queryParams);case"paramsChange":default:return!hn(t,r)}}function mt(t,r,e){let n=Ue(t),i=t.value;Object.entries(n).forEach(([o,s])=>{i.component?r?mt(s,r.children.getContext(o),e):mt(s,null,e):mt(s,r,e)}),i.component?r&&r.outlet&&r.outlet.isActivated?e.canDeactivateChecks.push(new ke(r.outlet.component,i)):e.canDeactivateChecks.push(new ke(null,i)):e.canDeactivateChecks.push(new ke(null,i))}function At(t){return typeof t=="function"}function $a(t){return typeof t=="boolean"}function za(t){return t&&At(t.canLoad)}function Ba(t){return t&&At(t.canActivate)}function Va(t){return t&&At(t.canActivateChild)}function qa(t){return t&&At(t.canDeactivate)}function Ha(t){return t&&At(t.canMatch)}function Mo(t){return t instanceof kn||t?.name==="EmptyError"}var Jt=Symbol("INITIAL_VALUE");function Be(){return x(t=>_t(t.map(r=>r.pipe(Ee(1),$n(Jt)))).pipe(E(r=>{for(let e of r)if(e!==!0){if(e===Jt)return Jt;if(e===!1||Ga(e))return e}return!0}),G(r=>r!==Jt),Ee(1)))}function Ga(t){return ce(t)||t instanceof ze}function Wa(t,r){return N(e=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?f(P(h({},e),{guardsResult:!0})):Xa(s,n,i,t).pipe(N(a=>a&&$a(a)?Ja(n,o,t,r):f(a)),E(a=>P(h({},e),{guardsResult:a})))})}function Xa(t,r,e,n){return O(t).pipe(N(i=>ec(i.component,i.route,e,r,n)),ie(i=>i!==!0,!0))}function Ja(t,r,e,n){return O(r).pipe(ee(i=>Ln(Za(i.route.parent,n),Ya(i.route,n),Qa(t,i.path,e),Ka(t,i.route,e))),ie(i=>i!==!0,!0))}function Ya(t,r){return t!==null&&r&&r(new lr(t)),f(!0)}function Za(t,r){return t!==null&&r&&r(new cr(t)),f(!0)}function Ka(t,r,e){let n=r.routeConfig?r.routeConfig.canActivate:null;if(!n||n.length===0)return f(!0);let i=n.map(o=>Cr(()=>{let s=It(r)??e,a=Ve(o,s),c=Ba(a)?a.canActivate(r,t):z(s,()=>a(r,t));return le(c).pipe(ie())}));return f(i).pipe(Be())}function Qa(t,r,e){let n=r[r.length-1],o=r.slice(0,r.length-1).reverse().map(s=>La(s)).filter(s=>s!==null).map(s=>Cr(()=>{let a=s.guards.map(c=>{let u=It(s.node)??e,l=Ve(c,u),m=Va(l)?l.canActivateChild(n,t):z(u,()=>l(n,t));return le(m).pipe(ie())});return f(a).pipe(Be())}));return f(o).pipe(Be())}function ec(t,r,e,n,i){let o=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!o||o.length===0)return f(!0);let s=o.map(a=>{let c=It(r)??i,u=Ve(a,c),l=qa(u)?u.canDeactivate(t,r,e,n):z(c,()=>u(t,r,e,n));return le(l).pipe(ie())});return f(s).pipe(Be())}function tc(t,r,e,n){let i=r.canLoad;if(i===void 0||i.length===0)return f(!0);let o=i.map(s=>{let a=Ve(s,t),c=za(a)?a.canLoad(r,e):z(t,()=>a(r,e));return le(c)});return f(o).pipe(Be(),Ao(n))}function Ao(t){return Nn(D(r=>{if(typeof r!="boolean")throw gr(t,r)}),E(r=>r===!0))}function rc(t,r,e,n){let i=r.canMatch;if(!i||i.length===0)return f(!0);let o=i.map(s=>{let a=Ve(s,t),c=Ha(a)?a.canMatch(r,e):z(t,()=>a(r,e));return le(c)});return f(o).pipe(Be(),Ao(n))}var Et=class{segmentGroup;constructor(r){this.segmentGroup=r||null}},bt=class extends Error{urlTree;constructor(r){super(),this.urlTree=r}};function Ne(t){return Ge(new Et(t))}function nc(t){return Ge(new y(4e3,!1))}function ic(t){return Ge(Co(!1,U.GuardRejected))}var gn=class{urlSerializer;urlTree;constructor(r,e){this.urlSerializer=r,this.urlTree=e}lineralizeSegments(r,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return f(n);if(i.numberOfChildren>1||!i.children[p])return nc(`${r.redirectTo}`);i=i.children[p]}}applyRedirectCommands(r,e,n,i,o){if(typeof e!="string"){let a=e,{queryParams:c,fragment:u,routeConfig:l,url:m,outlet:w,params:S,data:M,title:R}=i,T=z(o,()=>a({params:S,data:M,queryParams:c,fragment:u,routeConfig:l,url:m,outlet:w,title:R}));if(T instanceof J)throw new bt(T);e=T}let s=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),r,n);if(e[0]==="/")throw new bt(s);return s}applyRedirectCreateUrlTree(r,e,n,i){let o=this.createSegmentGroup(r,e.root,n,i);return new J(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(r,e){let n={};return Object.entries(r).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);n[i]=e[a]}else n[i]=o}),n}createSegmentGroup(r,e,n,i){let o=this.createSegments(r,e.segments,n,i),s={};return Object.entries(e.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(r,c,n,i)}),new b(o,s)}createSegments(r,e,n,i){return e.map(o=>o.path[0]===":"?this.findPosParam(r,o,i):this.findOrReturn(o,n))}findPosParam(r,e,n){let i=n[e.path.substring(1)];if(!i)throw new y(4001,!1);return i}findOrReturn(r,e){let n=0;for(let i of e){if(i.path===r.path)return e.splice(n),i;n++}return r}},mn={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function oc(t,r,e,n,i){let o=Do(t,r,e);return o.matched?(n=Aa(r,n),rc(n,r,e,i).pipe(E(s=>s===!0?o:h({},mn)))):f(o)}function Do(t,r,e){if(r.path==="**")return sc(e);if(r.path==="")return r.pathMatch==="full"&&(t.hasChildren()||e.length>0)?h({},mn):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(r.matcher||no)(e,t,r);if(!i)return h({},mn);let o={};Object.entries(i.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=i.consumed.length>0?h(h({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function sc(t){return{matched:!0,parameters:t.length>0?oo(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function eo(t,r,e,n){return e.length>0&&uc(t,e,n)?{segmentGroup:new b(r,cc(n,new b(e,t.children))),slicedSegments:[]}:e.length===0&&lc(t,e,n)?{segmentGroup:new b(t.segments,ac(t,e,n,t.children)),slicedSegments:e}:{segmentGroup:new b(t.segments,t.children),slicedSegments:e}}function ac(t,r,e,n){let i={};for(let o of e)if(yr(t,r,o)&&!n[q(o)]){let s=new b([],{});i[q(o)]=s}return h(h({},n),i)}function cc(t,r){let e={};e[p]=r;for(let n of t)if(n.path===""&&q(n)!==p){let i=new b([],{});e[q(n)]=i}return e}function uc(t,r,e){return e.some(n=>yr(t,r,n)&&q(n)!==p)}function lc(t,r,e){return e.some(n=>yr(t,r,n))}function yr(t,r,e){return(t.hasChildren()||r.length>0)&&e.pathMatch==="full"?!1:e.path===""}function dc(t,r,e){return r.length===0&&!t.children[e]}var vn=class{};function hc(t,r,e,n,i,o,s="emptyOnly"){return new yn(t,r,e,n,i,s,o).recognize()}var fc=31,yn=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(r,e,n,i,o,s,a){this.injector=r,this.configLoader=e,this.rootComponentType=n,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new gn(this.urlSerializer,this.urlTree)}noMatchError(r){return new y(4002,`'${r.segmentGroup}'`)}recognize(){let r=eo(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(r).pipe(E(({children:e,rootSnapshot:n})=>{let i=new k(n,e),o=new St("",i),s=go(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(r){let e=new ve([],Object.freeze({}),Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),p,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,r,p,e).pipe(E(n=>({children:n,rootSnapshot:e})),ne(n=>{if(n instanceof bt)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof Et?this.noMatchError(n):n}))}processSegmentGroup(r,e,n,i,o){return n.segments.length===0&&n.hasChildren()?this.processChildren(r,e,n,o):this.processSegment(r,e,n,n.segments,i,!0,o).pipe(E(s=>s instanceof k?[s]:[]))}processChildren(r,e,n,i){let o=[];for(let s of Object.keys(n.children))s==="primary"?o.unshift(s):o.push(s);return O(o).pipe(ee(s=>{let a=n.children[s],c=Da(e,s);return this.processSegmentGroup(r,c,a,s,i)}),Fn((s,a)=>(s.push(...a),s)),Ir(null),jn(),N(s=>{if(s===null)return Ne(n);let a=Oo(s);return pc(a),f(a)}))}processSegment(r,e,n,i,o,s,a){return O(e).pipe(ee(c=>this.processSegmentAgainstRoute(c._injector??r,e,c,n,i,o,s,a).pipe(ne(u=>{if(u instanceof Et)return f(null);throw u}))),ie(c=>!!c),ne(c=>{if(Mo(c))return dc(n,i,o)?f(new vn):Ne(n);throw c}))}processSegmentAgainstRoute(r,e,n,i,o,s,a,c){return q(n)!==s&&(s===p||!yr(i,o,n))?Ne(i):n.redirectTo===void 0?this.matchSegmentAgainstRoute(r,i,n,o,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(r,i,e,n,o,s,c):Ne(i)}expandSegmentAgainstRouteUsingRedirect(r,e,n,i,o,s,a){let{matched:c,parameters:u,consumedSegments:l,positionalParamSegments:m,remainingSegments:w}=Do(e,i,o);if(!c)return Ne(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>fc&&(this.allowRedirects=!1));let S=new ve(o,u,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,to(i),q(i),i.component??i._loadedComponent??null,i,ro(i)),M=pr(S,a,this.paramsInheritanceStrategy);S.params=Object.freeze(M.params),S.data=Object.freeze(M.data);let R=this.applyRedirects.applyRedirectCommands(l,i.redirectTo,m,S,r);return this.applyRedirects.lineralizeSegments(i,R).pipe(N(T=>this.processSegment(r,n,e,T.concat(w),s,!1,a)))}matchSegmentAgainstRoute(r,e,n,i,o,s){let a=oc(e,n,i,r,this.urlSerializer);return n.path==="**"&&(e.children={}),a.pipe(x(c=>c.matched?(r=n._injector??r,this.getChildConfig(r,n,i).pipe(x(({routes:u})=>{let l=n._loadedInjector??r,{parameters:m,consumedSegments:w,remainingSegments:S}=c,M=new ve(w,m,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,to(n),q(n),n.component??n._loadedComponent??null,n,ro(n)),R=pr(M,s,this.paramsInheritanceStrategy);M.params=Object.freeze(R.params),M.data=Object.freeze(R.data);let{segmentGroup:T,slicedSegments:F}=eo(e,w,S,u);if(F.length===0&&T.hasChildren())return this.processChildren(l,u,T,M).pipe(E(I=>new k(M,I)));if(u.length===0&&F.length===0)return f(new k(M,[]));let Te=q(n)===o;return this.processSegment(l,u,T,F,Te?p:o,!0,M).pipe(E(I=>new k(M,I instanceof k?[I]:[])))}))):Ne(e)))}getChildConfig(r,e,n){return e.children?f({routes:e.children,injector:r}):e.loadChildren?e._loadedRoutes!==void 0?f({routes:e._loadedRoutes,injector:e._loadedInjector}):tc(r,e,n,this.urlSerializer).pipe(N(i=>i?this.configLoader.loadChildren(r,e).pipe(D(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):ic(e))):f({routes:[],injector:r})}};function pc(t){t.sort((r,e)=>r.value.outlet===p?-1:e.value.outlet===p?1:r.value.outlet.localeCompare(e.value.outlet))}function gc(t){let r=t.value.routeConfig;return r&&r.path===""}function Oo(t){let r=[],e=new Set;for(let n of t){if(!gc(n)){r.push(n);continue}let i=r.find(o=>n.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...n.children),e.add(i)):r.push(n)}for(let n of e){let i=Oo(n.children);r.push(new k(n.value,i))}return r.filter(n=>!e.has(n))}function to(t){return t.data||{}}function ro(t){return t.resolve||{}}function mc(t,r,e,n,i,o){return N(s=>hc(t,r,e,n,s.extractedUrl,i,o).pipe(E(({state:a,tree:c})=>P(h({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function vc(t,r){return N(e=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=e;if(!i.length)return f(e);let o=new Set(i.map(c=>c.route)),s=new Set;for(let c of o)if(!s.has(c))for(let u of _o(c))s.add(u);let a=0;return O(s).pipe(ee(c=>o.has(c)?yc(c,n,t,r):(c.data=pr(c,c.parent,t).resolve,f(void 0))),D(()=>a++),Mr(1),N(c=>a===s.size?f(e):Q))})}function _o(t){let r=t.children.map(e=>_o(e)).flat();return[t,...r]}function yc(t,r,e,n){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!To(i)&&(o[Ct]=i.title),Rc(o,t,r,n).pipe(E(s=>(t._resolvedData=s,t.data=pr(t,t.parent,e).resolve,null)))}function Rc(t,r,e,n){let i=sn(t);if(i.length===0)return f({});let o={};return O(i).pipe(N(s=>wc(t[s],r,e,n).pipe(ie(),D(a=>{if(a instanceof ze)throw gr(new ae,a);o[s]=a}))),Mr(1),E(()=>o),ne(s=>Mo(s)?Q:Ge(s)))}function wc(t,r,e,n){let i=It(r)??n,o=Ve(t,i),s=o.resolve?o.resolve(r,e):z(i,()=>o(r,e));return le(s)}function nn(t){return x(r=>{let e=t(r);return e?O(e).pipe(E(()=>r)):f(r)})}var bn=(()=>{class t{buildTitle(e){let n,i=e.root;for(;i!==void 0;)n=this.getResolvedTitleForRoute(i)??n,i=i.children.find(o=>o.outlet===p);return n}getResolvedTitleForRoute(e){return e.data[Ct]}static \u0275fac=function(n){return new(n||t)};static \u0275prov=v({token:t,factory:()=>d(Po),providedIn:"root"})}return t})(),Po=(()=>{class t extends bn{title;constructor(e){super(),this.title=e}updateTitle(e){let n=this.buildTitle(e);n!==void 0&&this.title.setTitle(n)}static \u0275fac=function(n){return new(n||t)(g(Ji))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),we=new C("",{providedIn:"root",factory:()=>({})}),Se=new C(""),Rr=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=d(vi);loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return f(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let n=le(e.loadComponent()).pipe(E(Uo),D(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),be(()=>{this.componentLoaders.delete(e)})),i=new br(n,()=>new K).pipe(Er());return this.componentLoaders.set(e,i),i}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return f({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let o=No(n,this.compiler,e,this.onLoadEndListener).pipe(be(()=>{this.childrenLoaders.delete(n)})),s=new br(o,()=>new K).pipe(Er());return this.childrenLoaders.set(n,s),s}static \u0275fac=function(n){return new(n||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function No(t,r,e,n){return le(t.loadChildren()).pipe(E(Uo),N(i=>i instanceof ci||Array.isArray(i)?f(i):O(r.compileModuleAsync(i))),E(i=>{n&&n(t);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(e).injector,s=o.get(Se,[],{optional:!0,self:!0}).flat()),{routes:s.map(En),injector:o}}))}function Sc(t){return t&&typeof t=="object"&&"default"in t}function Uo(t){return Sc(t)?t.default:t}var wr=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=v({token:t,factory:()=>d(Tc),providedIn:"root"})}return t})(),Tc=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}static \u0275fac=function(n){return new(n||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Cn=new C(""),In=new C("");function xo(t,r,e){let n=t.get(In),i=t.get(_);return t.get(B).runOutsideAngular(()=>{if(!i.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(u=>setTimeout(u));let o,s=new Promise(u=>{o=u}),a=i.startViewTransition(()=>(o(),Ec(t))),{onViewTransitionCreated:c}=n;return c&&z(t,()=>c({transition:a,from:r,to:e})),s})}function Ec(t){return new Promise(r=>{Yn({read:()=>setTimeout(r)},{injector:t})})}var Mn=new C(""),Dt=(()=>{class t{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new K;transitionAbortSubject=new K;configLoader=d(Rr);environmentInjector=d(oe);destroyRef=d(Or);urlSerializer=d(de);rootContexts=d(Re);location=d(De);inputBindingEnabled=d(Mt,{optional:!0})!==null;titleStrategy=d(bn);options=d(we,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=d(wr);createViewTransition=d(Cn,{optional:!0});navigationErrorHandler=d(Mn,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>f(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new sr(i)),n=i=>this.events.next(new ar(i));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let n=++this.navigationId;this.transitions?.next(P(h({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:n}))}setupNavigations(e){return this.transitions=new $(null),this.transitions.pipe(G(n=>n!==null),x(n=>{let i=!1,o=!1;return f(n).pipe(x(s=>{if(this.navigationId>n.id)return this.cancelNavigationTransition(n,"",U.SupersededByNewNavigation),Q;this.currentTransition=n,this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,targetBrowserUrl:typeof s.extras.browserUrl=="string"?this.urlSerializer.parse(s.extras.browserUrl):s.extras.browserUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?P(h({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let a=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),c=s.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!a&&c!=="reload"){let u="";return this.events.next(new Y(s.id,this.urlSerializer.serialize(s.rawUrl),u,Le.IgnoredSameUrlNavigation)),s.resolve(!1),Q}if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return f(s).pipe(x(u=>(this.events.next(new ue(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),u.id!==this.navigationId?Q:Promise.resolve(u))),mc(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),D(u=>{n.targetSnapshot=u.targetSnapshot,n.urlAfterRedirects=u.urlAfterRedirects,this.currentNavigation=P(h({},this.currentNavigation),{finalUrl:u.urlAfterRedirects});let l=new yt(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}));if(a&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){let{id:u,extractedUrl:l,source:m,restoredState:w,extras:S}=s,M=new ue(u,this.urlSerializer.serialize(l),m,w);this.events.next(M);let R=wo(this.rootComponentType).snapshot;return this.currentTransition=n=P(h({},s),{targetSnapshot:R,urlAfterRedirects:l,extras:P(h({},S),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=l,f(n)}else{let u="";return this.events.next(new Y(s.id,this.urlSerializer.serialize(s.extractedUrl),u,Le.IgnoredByUrlHandlingStrategy)),s.resolve(!1),Q}}),D(s=>{let a=new rr(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),E(s=>(this.currentTransition=n=P(h({},s),{guards:ka(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),n)),Wa(this.environmentInjector,s=>this.events.next(s)),D(s=>{if(n.guardsResult=s.guardsResult,s.guardsResult&&typeof s.guardsResult!="boolean")throw gr(this.urlSerializer,s.guardsResult);let a=new nr(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),G(s=>s.guardsResult?!0:(this.cancelNavigationTransition(s,"",U.GuardRejected),!1)),nn(s=>{if(s.guards.canActivateChecks.length!==0)return f(s).pipe(D(a=>{let c=new ir(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(c)}),x(a=>{let c=!1;return f(a).pipe(vc(this.paramsInheritanceStrategy,this.environmentInjector),D({next:()=>c=!0,complete:()=>{c||this.cancelNavigationTransition(a,"",U.NoDataFromResolver)}}))}),D(a=>{let c=new or(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(c)}))}),nn(s=>{let a=c=>{let u=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(c.routeConfig).pipe(D(l=>{c.component=l}),E(()=>{})));for(let l of c.children)u.push(...a(l));return u};return _t(a(s.targetSnapshot.root)).pipe(Ir(null),Ee(1))}),nn(()=>this.afterPreactivation()),x(()=>{let{currentSnapshot:s,targetSnapshot:a}=n,c=this.createViewTransition?.(this.environmentInjector,s.root,a.root);return c?O(c).pipe(E(()=>n)):f(n)}),E(s=>{let a=_a(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return this.currentTransition=n=P(h({},s),{targetRouterState:a}),this.currentNavigation.targetRouterState=a,n}),D(()=>{this.events.next(new Rt)}),xa(this.rootContexts,e.routeReuseStrategy,s=>this.events.next(s),this.inputBindingEnabled),Ee(1),D({next:s=>{i=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new j(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),this.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{i=!0}}),zn(this.transitionAbortSubject.pipe(D(s=>{throw s}))),be(()=>{!i&&!o&&this.cancelNavigationTransition(n,"",U.SupersededByNewNavigation),this.currentTransition?.id===n.id&&(this.currentNavigation=null,this.currentTransition=null)}),ne(s=>{if(this.destroyed)return n.resolve(!1),Q;if(o=!0,Io(s))this.events.next(new X(n.id,this.urlSerializer.serialize(n.extractedUrl),s.message,s.cancellationCode)),Ua(s)?this.events.next(new $e(s.url,s.navigationBehaviorOptions)):n.resolve(!1);else{let a=new je(n.id,this.urlSerializer.serialize(n.extractedUrl),s,n.targetSnapshot??void 0);try{let c=z(this.environmentInjector,()=>this.navigationErrorHandler?.(a));if(c instanceof ze){let{message:u,cancellationCode:l}=gr(this.urlSerializer,c);this.events.next(new X(n.id,this.urlSerializer.serialize(n.extractedUrl),u,l)),this.events.next(new $e(c.redirectTo,c.navigationBehaviorOptions))}else throw this.events.next(a),s}catch(c){this.options.resolveNavigationPromiseOnError?n.resolve(!1):n.reject(c)}}return Q}))}))}cancelNavigationTransition(e,n,i){let o=new X(e.id,this.urlSerializer.serialize(e.extractedUrl),n,i);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==n?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(n){return new(n||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function bc(t){return t!==Qt}var ko=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=v({token:t,factory:()=>d(Cc),providedIn:"root"})}return t})(),vr=class{shouldDetach(r){return!1}store(r,e){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,e){return r.routeConfig===e.routeConfig}},Cc=(()=>{class t extends vr{static \u0275fac=(()=>{let e;return function(i){return(e||(e=Dr(t)))(i||t)}})();static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Lo=(()=>{class t{urlSerializer=d(de);options=d(we,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=d(De);urlHandlingStrategy=d(wr);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new J;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:n,targetBrowserUrl:i}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,n):n,s=i??o;return s instanceof J?this.urlSerializer.serialize(s):s}commitTransition({targetRouterState:e,finalUrl:n,initialUrl:i}){n&&e?(this.currentUrlTree=n,this.rawUrlTree=this.urlHandlingStrategy.merge(n,i),this.routerState=e):this.rawUrlTree=i}routerState=wo(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=v({token:t,factory:()=>d(Ic),providedIn:"root"})}return t})(),Ic=(()=>{class t extends Lo{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(n=>{n.type==="popstate"&&setTimeout(()=>{e(n.url,n.state,"popstate")})})}handleRouterEvent(e,n){e instanceof ue?this.updateStateMemento():e instanceof Y?this.commitTransition(n):e instanceof yt?this.urlUpdateStrategy==="eager"&&(n.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof Rt?(this.commitTransition(n),this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof X&&(e.code===U.GuardRejected||e.code===U.NoDataFromResolver)?this.restoreHistory(n):e instanceof je?this.restoreHistory(n,!0):e instanceof j&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:n,id:i}){let{replaceUrl:o,state:s}=n;if(this.location.isCurrentPathEqualTo(e)||o){let a=this.browserPageId,c=h(h({},s),this.generateNgRouterState(i,a));this.location.replaceState(e,"",c)}else{let a=h(h({},s),this.generateNgRouterState(i,this.browserPageId+1));this.location.go(e,"",a)}}restoreHistory(e,n=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,n){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:n}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=Dr(t)))(i||t)}})();static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Sr(t,r){t.events.pipe(G(e=>e instanceof j||e instanceof X||e instanceof je||e instanceof Y),E(e=>e instanceof j||e instanceof Y?0:(e instanceof X?e.code===U.Redirect||e.code===U.SupersededByNewNavigation:!1)?2:1),G(e=>e!==2),Ee(1)).subscribe(()=>{r()})}var Mc={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Ac={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},H=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=d(kr);stateManager=d(Lo);options=d(we,{optional:!0})||{};pendingTasks=d(Pt);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=d(Dt);urlSerializer=d(de);location=d(De);urlHandlingStrategy=d(wr);_events=new K;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=d(ko);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=d(Se,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!d(Mt,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new Pn;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(n=>{try{let i=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(n,o),n instanceof X&&n.code!==U.Redirect&&n.code!==U.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof j)this.navigated=!0;else if(n instanceof $e){let s=n.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(n.url,i.currentRawUrl),c=h({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||bc(i.source)},s);this.scheduleNavigation(a,Qt,null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}Oc(n)&&this._events.next(n)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Qt,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,n,i)=>{this.navigateToSyncWithBrowser(e,i,n)})}navigateToSyncWithBrowser(e,n,i){let o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){let c=h({},i);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(o.state=c)}let a=this.parseUrl(e);this.scheduleNavigation(a,n,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(En),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,n={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:c}=n,u=c?this.currentUrlTree.fragment:s,l=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":l=h(h({},this.currentUrlTree.queryParams),o);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=o||null}l!==null&&(l=this.removeEmptyProps(l));let m;try{let w=i?i.snapshot:this.routerState.snapshot.root;m=mo(w)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),m=this.currentUrlTree.root}return vo(m,e,l,u??null)}navigateByUrl(e,n={skipLocationChange:!1}){let i=ce(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Qt,null,n)}navigate(e,n={skipLocationChange:!1}){return Dc(e),this.navigateByUrl(this.createUrlTree(e,n),n)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,n){let i;if(n===!0?i=h({},Mc):n===!1?i=h({},Ac):i=n,ce(e))return Yi(this.currentUrlTree,e,i);let o=this.parseUrl(e);return Yi(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((n,[i,o])=>(o!=null&&(n[i]=o),n),{})}scheduleNavigation(e,n,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,c,u;s?(a=s.resolve,c=s.reject,u=s.promise):u=new Promise((m,w)=>{a=m,c=w});let l=this.pendingTasks.add();return Sr(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(l))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(m=>Promise.reject(m))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Dc(t){for(let r=0;r<t.length;r++)if(t[r]==null)throw new y(4008,!1)}function Oc(t){return!(t instanceof Rt)&&!(t instanceof $e)}var Tr=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new K;constructor(e,n,i,o,s,a){this.router=e,this.route=n,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=a;let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=e.events.subscribe(u=>{u instanceof j&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(ce(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,n,i,o,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(e!==0||n||i||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,c),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.href=e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;let n=this.href===null?null:ii(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(e,n){let i=this.renderer,o=this.el.nativeElement;n!==null?i.setAttribute(o,e,n):i.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:ce(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(n){return new(n||t)(V(H),V(Z),qn("tabindex"),V(xr),V(Pr),V(it))};static \u0275dir=et({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,i){n&1&&fi("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),n&2&&di("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",kt],skipLocationChange:[2,"skipLocationChange","skipLocationChange",kt],replaceUrl:[2,"replaceUrl","replaceUrl",kt],routerLink:"routerLink"},features:[Je]})}return t})(),_c=(()=>{class t{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new he;constructor(e,n,i,o,s){this.router=e,this.element=n,this.renderer=i,this.cdr=o,this.link=s,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof j&&this.update()})}ngAfterContentInit(){f(this.links.changes,f(null)).pipe(We()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(n=>!!n).map(n=>n.onChanges);this.linkInputChangesSubscription=O(e).pipe(We()).subscribe(n=>{this._isActive!==this.isLinkActive(this.router)(n)&&this.update()})}set routerLinkActive(e){let n=Array.isArray(e)?e:e.split(" ");this.classes=n.filter(i=>!!i)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(n=>{e?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let n=Pc(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>{let o=i.urlTree;return o?e.isActive(o,n):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(n){return new(n||t)(V(H),V(Pr),V(xr),V(xt),V(Tr,8))};static \u0275dir=et({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(n,i,o){if(n&1&&pi(o,Tr,5),n&2){let s;gi(s=mi())&&(i.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Je]})}return t})();function Pc(t){return!!t.paths}var Ot=class{},Nc=(()=>{class t{preload(e,n){return n().pipe(ne(()=>f(null)))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var jo=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,n,i,o){this.router=e,this.injector=n,this.preloadingStrategy=i,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(G(e=>e instanceof j),ee(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,n){let i=[];for(let o of n){o.providers&&!o._injector&&(o._injector=Ut(o.providers,e,`Route: ${o.path}`));let s=o._injector??e,a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(a,o.children??o._loadedRoutes))}return O(i).pipe(We())}preloadConfig(e,n){return this.preloadingStrategy.preload(n,()=>{let i;n.loadChildren&&n.canLoad===void 0?i=this.loader.loadChildren(e,n):i=f(null);let o=i.pipe(N(s=>s===null?f(void 0):(n._loadedRoutes=s.routes,n._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));if(n.loadComponent&&!n._loadedComponent){let s=this.loader.loadComponent(n);return O([o,s]).pipe(We())}else return o})}static \u0275fac=function(n){return new(n||t)(g(H),g(oe),g(Ot),g(Rr))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Dn=new C(""),Fo=(()=>{class t{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(e,n,i,o,s={}){this.urlSerializer=e,this.transitions=n,this.viewportScroller=i,this.zone=o,this.options=s,s.scrollPositionRestoration||="disabled",s.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof ue?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof j?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof Y&&e.code===Le.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Fe&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,n){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Fe(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,n))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(n){si()};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})();function Uc(t,...r){return Ce([{provide:Se,multi:!0,useValue:t},[],{provide:Z,useFactory:$o,deps:[H]},{provide:tt,multi:!0,useFactory:zo},r.map(e=>e.\u0275providers)])}function $o(t){return t.routerState.root}function qe(t,r){return{\u0275kind:t,\u0275providers:r}}function xc(t={}){return qe(4,[{provide:Dn,useFactory:()=>{let e=d(Fr),n=d(B),i=d(Dt),o=d(de);return new Fo(o,i,e,n,t)}}])}function zo(){let t=d(Ie);return r=>{let e=t.get(rt);if(r!==e.components[0])return;let n=t.get(H),i=t.get(Bo);t.get(On)===1&&n.initialNavigation(),t.get(Ho,null,Ar.Optional)?.setUpPreloading(),t.get(Dn,null,Ar.Optional)?.init(),n.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Bo=new C("",{factory:()=>new K}),On=new C("",{providedIn:"root",factory:()=>1});function Vo(){let t=[{provide:On,useValue:0},Lr(()=>{let r=d(Ie);return r.get(Ei,Promise.resolve()).then(()=>new Promise(n=>{let i=r.get(H),o=r.get(Bo);Sr(i,()=>{n(!0)}),r.get(Dt).afterPreactivation=()=>(n(!0),o.closed?f(void 0):o),i.initialNavigation()}))})];return qe(2,t)}function qo(){let t=[Lr(()=>{d(H).setUpLocationChangeListener()}),{provide:On,useValue:2}];return qe(3,t)}var Ho=new C("");function Go(t){return qe(0,[{provide:Ho,useExisting:jo},{provide:Ot,useExisting:t}])}function Wo(){return qe(8,[Sn,{provide:Mt,useExisting:Sn}])}function Xo(t){Nt("NgRouterViewTransitions");let r=[{provide:Cn,useValue:xo},{provide:In,useValue:h({skipNextTransition:!!t?.skipInitialTransition},t)}];return qe(9,r)}var Jo=[De,{provide:de,useClass:ae},H,Re,{provide:Z,useFactory:$o,deps:[H]},Rr,[]],kc=(()=>{class t{constructor(){}static forRoot(e,n){return{ngModule:t,providers:[Jo,[],{provide:Se,multi:!0,useValue:e},[],n?.errorHandler?{provide:Mn,useValue:n.errorHandler}:[],{provide:we,useValue:n||{}},n?.useHash?jc():Fc(),Lc(),n?.preloadingStrategy?Go(n.preloadingStrategy).\u0275providers:[],n?.initialNavigation?$c(n):[],n?.bindToComponentInputs?Wo().\u0275providers:[],n?.enableViewTransitions?Xo().\u0275providers:[],zc()]}}static forChild(e){return{ngModule:t,providers:[{provide:Se,multi:!0,useValue:e}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=Qe({type:t});static \u0275inj=Xe({})}return t})();function Lc(){return{provide:Dn,useFactory:()=>{let t=d(Fr),r=d(B),e=d(we),n=d(Dt),i=d(de);return e.scrollOffset&&t.setOffset(e.scrollOffset),new Fo(i,n,t,r,e)}}}function jc(){return{provide:it,useClass:Ci}}function Fc(){return{provide:it,useClass:bi}}function $c(t){return[t.initialNavigation==="disabled"?qo().\u0275providers:[],t.initialNavigation==="enabledBlocking"?Vo().\u0275providers:[]]}var An=new C("");function zc(){return[{provide:An,useFactory:zo},{provide:tt,multi:!0,useExisting:An}]}export{Gr as a,ds as b,re as c,te as d,pe as e,ge as f,dt as g,qi as h,Fs as i,$s as j,Ji as k,ta as l,Tl as m,Z as n,wn as o,H as p,Tr as q,_c as r,Nc as s,Uc as t,xc as u,Go as v,Wo as w,kc as x};
|
package/chunk-U5LD55IP.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as et,d as V,f as j,g as N,h as $}from"./chunk-F2X3VGZZ.js";import{g as gt,h as _t,l as Tt}from"./chunk-TYETQJ2X.js";import{a as X,m as tt}from"./chunk-353U23ZQ.js";import{$b as W,Aa as U,Bb as O,Ga as A,Hb as k,I as D,Kb as R,Lb as c,Mb as E,Pb as m,Vb as d,Wb as f,Xb as M,Yb as K,Z as P,Zb as Q,ab as pt,ba as b,bb as Y,bc as vt,ca as ut,ea as dt,ec as H,fc as u,g,ga as C,gb as a,ha as p,ia as ht,jb as mt,mb as T,n as lt,pa as z,qa as G,qc as v,r as x,s as B,sc as y,va as F,vb as J,wb as ft}from"./chunk-ARSLNNKY.js";import{a as r,b as h}from"./chunk-YQFG5XE2.js";var yt=["toast-component",""];function At(s,n){if(s&1){let t=W();d(0,"button",5),H("click",function(){z(t);let i=u();return G(i.remove())}),d(1,"span",6),v(2,"\xD7"),f()()}}function Ot(s,n){if(s&1&&(K(0),v(1),Q()),s&2){let t=u(2);a(),y("[",t.duplicatesCount+1,"]")}}function Rt(s,n){if(s&1&&(d(0,"div"),v(1),O(2,Ot,2,1,"ng-container",4),f()),s&2){let t=u();m(t.options.titleClass),R("aria-label",t.title),a(),y(" ",t.title," "),a(),c("ngIf",t.duplicatesCount)}}function Et(s,n){if(s&1&&M(0,"div",7),s&2){let t=u();m(t.options.messageClass),c("innerHTML",t.message,Y)}}function Mt(s,n){if(s&1&&(d(0,"div",8),v(1),f()),s&2){let t=u();m(t.options.messageClass),R("aria-label",t.message),a(),y(" ",t.message," ")}}function Ht(s,n){if(s&1&&(d(0,"div"),M(1,"div",9),f()),s&2){let t=u();a(),E("width",t.width()+"%")}}function jt(s,n){if(s&1){let t=W();d(0,"button",5),H("click",function(){z(t);let i=u();return G(i.remove())}),d(1,"span",6),v(2,"\xD7"),f()()}}function Nt(s,n){if(s&1&&(K(0),v(1),Q()),s&2){let t=u(2);a(),y("[",t.duplicatesCount+1,"]")}}function St(s,n){if(s&1&&(d(0,"div"),v(1),O(2,Nt,2,1,"ng-container",4),f()),s&2){let t=u();m(t.options.titleClass),R("aria-label",t.title),a(),y(" ",t.title," "),a(),c("ngIf",t.duplicatesCount)}}function Bt(s,n){if(s&1&&M(0,"div",7),s&2){let t=u();m(t.options.messageClass),c("innerHTML",t.message,Y)}}function Pt(s,n){if(s&1&&(d(0,"div",8),v(1),f()),s&2){let t=u();m(t.options.messageClass),R("aria-label",t.message),a(),y(" ",t.message," ")}}function Ft(s,n){if(s&1&&(d(0,"div"),M(1,"div",9),f()),s&2){let t=u();a(),E("width",t.width()+"%")}}var it=class{_attachedHost;component;viewContainerRef;injector;constructor(n,t){this.component=n,this.injector=t}attach(n,t){return this._attachedHost=n,n.attach(this,t)}detach(){let n=this._attachedHost;if(n)return this._attachedHost=void 0,n.detach()}get isAttached(){return this._attachedHost!=null}setAttachedHost(n){this._attachedHost=n}},st=class{_attachedPortal;_disposeFn;attach(n,t){return this._attachedPortal=n,this.attachComponentPortal(n,t)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(n){this._disposeFn=n}},nt=class{_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new g;_activate=new g;_manualClose=new g;_resetTimeout=new g;_countDuplicate=new g;constructor(n){this._overlayRef=n}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(n,t){n&&this._resetTimeout.next(),t&&this._countDuplicate.next(++this.duplicatesCount)}},I=class{toastId;config;message;title;toastType;toastRef;_onTap=new g;_onAction=new g;constructor(n,t,e,i,o,l){this.toastId=n,this.config=t,this.message=e,this.title=i,this.toastType=o,this.toastRef=l,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(n){this._onAction.next(n)}onAction(){return this._onAction.asObservable()}},bt={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing"},Ct=new dt("ToastConfig"),ot=class extends st{_hostDomElement;_componentFactoryResolver;_appRef;constructor(n,t,e){super(),this._hostDomElement=n,this._componentFactoryResolver=t,this._appRef=e}attachComponentPortal(n,t){let e=this._componentFactoryResolver.resolveComponentFactory(n.component),i;return i=e.create(n.injector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()}),t?this._hostDomElement.insertBefore(this._getComponentRootNode(i),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(i)),i}_getComponentRootNode(n){return n.hostView.rootNodes[0]}},kt=(()=>{class s{_document=p(X);_containerElement;ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let t=this._document.createElement("div");t.classList.add("overlay-container"),t.setAttribute("aria-live","polite"),this._document.body.appendChild(t),this._containerElement=t}static \u0275fac=function(e){return new(e||s)};static \u0275prov=b({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),at=class{_portalHost;constructor(n){this._portalHost=n}attach(n,t=!0){return this._portalHost.attach(n,t)}detach(){return this._portalHost.detach()}},Vt=(()=>{class s{_overlayContainer=p(kt);_componentFactoryResolver=p(mt);_appRef=p(k);_document=p(X);_paneElements=new Map;create(t,e){return this._createOverlayRef(this.getPaneElement(t,e))}getPaneElement(t="",e){return this._paneElements.get(e)||this._paneElements.set(e,{}),this._paneElements.get(e)[t]||(this._paneElements.get(e)[t]=this._createPaneElement(t,e)),this._paneElements.get(e)[t]}_createPaneElement(t,e){let i=this._document.createElement("div");return i.id="toast-container",i.classList.add(t),i.classList.add("toast-container"),e?e.getContainerElement().appendChild(i):this._overlayContainer.getContainerElement().appendChild(i),i}_createPortalHost(t){return new ot(t,this._componentFactoryResolver,this._appRef)}_createOverlayRef(t){return new at(this._createPortalHost(t))}static \u0275fac=function(e){return new(e||s)};static \u0275prov=b({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),L=(()=>{class s{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(t,e,i,o,l){this.overlay=e,this._injector=i,this.sanitizer=o,this.ngZone=l,this.toastrConfig=r(r({},t.default),t.config),t.config.iconClasses&&(this.toastrConfig.iconClasses=r(r({},t.default.iconClasses),t.config.iconClasses))}show(t,e,i={},o=""){return this._preBuildNotification(o,t,e,this.applyConfig(i))}success(t,e,i={}){let o=this.toastrConfig.iconClasses.success||"";return this._preBuildNotification(o,t,e,this.applyConfig(i))}error(t,e,i={}){let o=this.toastrConfig.iconClasses.error||"";return this._preBuildNotification(o,t,e,this.applyConfig(i))}info(t,e,i={}){let o=this.toastrConfig.iconClasses.info||"";return this._preBuildNotification(o,t,e,this.applyConfig(i))}warning(t,e,i={}){let o=this.toastrConfig.iconClasses.warning||"";return this._preBuildNotification(o,t,e,this.applyConfig(i))}clear(t){for(let e of this.toasts)if(t!==void 0){if(e.toastId===t){e.toastRef.manualClose();return}}else e.toastRef.manualClose()}remove(t){let e=this._findToast(t);if(!e||(e.activeToast.toastRef.close(),this.toasts.splice(e.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){let i=this.toasts[this.currentlyActive].toastRef;i.isInactive()||(this.currentlyActive=this.currentlyActive+1,i.activate())}return!0}findDuplicate(t="",e="",i,o){let{includeTitleDuplicates:l}=this.toastrConfig;for(let _ of this.toasts){let S=l&&_.title===t;if((!l||S)&&_.message===e)return _.toastRef.onDuplicate(i,o),_}return null}applyConfig(t={}){return r(r({},this.toastrConfig),t)}_findToast(t){for(let e=0;e<this.toasts.length;e++)if(this.toasts[e].toastId===t)return{index:e,activeToast:this.toasts[e]};return null}_preBuildNotification(t,e,i,o){return o.onActivateTick?this.ngZone.run(()=>this._buildNotification(t,e,i,o)):this._buildNotification(t,e,i,o)}_buildNotification(t,e,i,o){if(!o.toastComponent)throw new Error("toastComponent required");let l=this.findDuplicate(i,e,this.toastrConfig.resetTimeoutOnDuplicate&&o.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&i||e)&&this.toastrConfig.preventDuplicates&&l!==null)return l;this.previousToastMessage=e;let _=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(_=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));let S=this.overlay.create(o.positionClass,this.overlayContainer);this.index=this.index+1;let rt=e;e&&o.enableHtml&&(rt=this.sanitizer.sanitize(pt.HTML,e));let w=new nt(S),Z=new I(this.index,o,rt,i,t,w),It=[{provide:I,useValue:Z}],wt=F.create({providers:It,parent:this._injector}),xt=new it(o.toastComponent,wt),ct=S.attach(xt,o.newestOnTop);w.componentInstance=ct.instance;let q={toastId:this.index,title:i||"",message:e||"",toastRef:w,onShown:w.afterActivate(),onHidden:w.afterClosed(),onTap:Z.onTap(),onAction:Z.onAction(),portal:ct};return _||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{q.toastRef.activate()})),this.toasts.push(q),q}static \u0275fac=function(e){return new(e||s)(C(Ct),C(Vt),C(F),C(Tt),C(U))};static \u0275prov=b({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),$t=(()=>{class s{toastrService;toastPackage;ngZone;message;title;options;duplicatesCount;originalTimeout;width=A(-1);toastClasses="";state;get _state(){return this.state()}get displayStyle(){if(this.state().value==="inactive")return"none"}timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(t,e,i){this.toastrService=t,this.toastPackage=e,this.ngZone=i,this.message=e.message,this.title=e.title,this.options=e.config,this.originalTimeout=e.config.timeOut,this.toastClasses=`${e.toastType} ${e.config.toastClass}`,this.sub=e.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=e.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=e.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=e.toastRef.countDuplicate().subscribe(o=>{this.duplicatesCount=o}),this.state=A({value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state.update(t=>h(r({},t),{value:"active"})),!(this.options.disableTimeOut===!0||this.options.disableTimeOut==="timeOut")&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=new Date().getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(this.width()===0||this.width()===100||!this.options.timeOut)return;let t=new Date().getTime(),e=this.hideTime-t;this.width.set(e/this.options.timeOut*100),this.options.progressAnimation==="increasing"&&this.width.update(i=>100-i),this.width()<=0&&this.width.set(0),this.width()>=100&&this.width.set(100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state.update(t=>h(r({},t),{value:"active"})),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){this.state().value!=="removed"&&(clearTimeout(this.timeout),this.state.update(t=>h(r({},t),{value:"removed"})),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){this.state().value!=="removed"&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){this.state().value!=="removed"&&this.options.disableTimeOut!=="extendedTimeOut"&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width.set(0))}delayedHideToast(){this.options.disableTimeOut===!0||this.options.disableTimeOut==="extendedTimeOut"||this.options.extendedTimeOut===0||this.state().value==="removed"||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(t,e){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(t),e)):this.timeout=setTimeout(()=>t(),e)}outsideInterval(t,e){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(t),e)):this.intervalId=setInterval(()=>t(),e)}runInsideAngular(t){this.ngZone?this.ngZone.run(()=>t()):t()}static \u0275fac=function(e){return new(e||s)(T(L),T(I),T(U))};static \u0275cmp=J({type:s,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(e,i){e&1&&H("click",function(){return i.tapToast()})("mouseenter",function(){return i.stickAround()})("mouseleave",function(){return i.delayedHideToast()}),e&2&&(vt("@flyInOut",i._state),m(i.toastClasses),E("display",i.displayStyle))},attrs:yt,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(e,i){e&1&&O(0,At,3,0,"button",0)(1,Rt,3,5,"div",1)(2,Et,1,3,"div",2)(3,Mt,2,4,"div",3)(4,Ht,2,2,"div",4),e&2&&(c("ngIf",i.options.closeButton),a(),c("ngIf",i.title),a(),c("ngIf",i.message&&i.options.enableHtml),a(),c("ngIf",i.message&&!i.options.enableHtml),a(),c("ngIf",i.options.progressBar))},dependencies:[tt],encapsulation:2,data:{animation:[et("flyInOut",[N("inactive",j({opacity:0})),N("active",j({opacity:1})),N("removed",j({opacity:0})),$("inactive => active",V("{{ easeTime }}ms {{ easing }}")),$("active => removed",V("{{ easeTime }}ms {{ easing }}"))])]},changeDetection:0})}return s})(),Lt=h(r({},bt),{toastComponent:$t}),Zt=(s={})=>ht([{provide:Ct,useValue:{default:Lt,config:s}}]),ye=(()=>{class s{static forRoot(t={}){return{ngModule:s,providers:[Zt(t)]}}static \u0275fac=function(e){return new(e||s)};static \u0275mod=ft({type:s});static \u0275inj=ut({})}return s})();var qt=(()=>{class s{toastrService;toastPackage;appRef;message;title;options;duplicatesCount;originalTimeout;width=A(-1);toastClasses="";get displayStyle(){return this.state()==="inactive"?"none":null}state=A("inactive");timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(t,e,i){this.toastrService=t,this.toastPackage=e,this.appRef=i,this.message=e.message,this.title=e.title,this.options=e.config,this.originalTimeout=e.config.timeOut,this.toastClasses=`${e.toastType} ${e.config.toastClass}`,this.sub=e.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=e.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=e.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=e.toastRef.countDuplicate().subscribe(o=>{this.duplicatesCount=o})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state.set("active"),!(this.options.disableTimeOut===!0||this.options.disableTimeOut==="timeOut")&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=new Date().getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(this.width()===0||this.width()===100||!this.options.timeOut)return;let t=new Date().getTime(),e=this.hideTime-t;this.width.set(e/this.options.timeOut*100),this.options.progressAnimation==="increasing"&&this.width.update(i=>100-i),this.width()<=0&&this.width.set(0),this.width()>=100&&this.width.set(100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state.set("active"),this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=new Date().getTime()+(this.originalTimeout||0),this.width.set(-1),this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){this.state()!=="removed"&&(clearTimeout(this.timeout),this.state.set("removed"),this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){this.state()!=="removed"&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){this.state()!=="removed"&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width.set(0))}delayedHideToast(){this.options.disableTimeOut===!0||this.options.disableTimeOut==="extendedTimeOut"||this.options.extendedTimeOut===0||this.state()==="removed"||(this.timeout=setTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}static \u0275fac=function(e){return new(e||s)(T(L),T(I),T(k))};static \u0275cmp=J({type:s,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(e,i){e&1&&H("click",function(){return i.tapToast()})("mouseenter",function(){return i.stickAround()})("mouseleave",function(){return i.delayedHideToast()}),e&2&&(m(i.toastClasses),E("display",i.displayStyle))},attrs:yt,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(e,i){e&1&&O(0,jt,3,0,"button",0)(1,St,3,5,"div",1)(2,Bt,1,3,"div",2)(3,Pt,2,4,"div",3)(4,Ft,2,2,"div",4),e&2&&(c("ngIf",i.options.closeButton),a(),c("ngIf",i.title),a(),c("ngIf",i.message&&i.options.enableHtml),a(),c("ngIf",i.message&&!i.options.enableHtml),a(),c("ngIf",i.options.progressBar))},dependencies:[tt],encapsulation:2,changeDetection:0})}return s})(),be=h(r({},bt),{toastComponent:qt});var Re=(()=>{class s{constructor(){this.httpClient=p(_t),this.toastr=p(L),this.requestTimeout=1e4}get(t="",e,i={}){return this.httpClient.get(`${t}${e}`,i).pipe(x(this.requestTimeout),D(this.handleError.bind(this)))}post(t="",e,i,o={}){return this.httpClient.post(`${t}${e}`,i,r({observe:"response"},o)).pipe(x(this.requestTimeout),P(this.handleResponse.bind(this)),B(l=>l.body),D(this.handleError.bind(this)))}put(t="",e,i,o={}){return this.httpClient.put(`${t}${e}`,i,h(r({},o),{observe:"response"})).pipe(x(this.requestTimeout),P(this.handleResponse.bind(this)),B(l=>l.body),D(this.handleError.bind(this)))}delete(t="",e,i={}){return this.httpClient.delete(`${t}${e}`,h(r({},i),{observe:"response"})).pipe(x(this.requestTimeout),P(this.handleResponse.bind(this)),B(o=>o.body),D(this.handleError.bind(this)))}handleResponse(t){if(t.status===200&&t.body){let e=t.body.message;e&&this.toastr.success(e,"Success")}}handleError(t){let e={header:"API Error",message:"An unknown error occurred"};if(t instanceof gt)switch(t.status){case 0:e.message="CORS error: Request blocked or server not responding with proper CORS headers",e.header="CORS Error";break;case 504:e.message=t.statusText||"Gateway Timeout",e.header=`API Error: ${t.status}`;break;default:e.header=`API Error: ${t.status}`,e.message=t.error&&(t.error.Message||t.error.message||t.error.error)||t.message}return this.toastr.error(e.message,e.header),lt(()=>e)}static{this.\u0275fac=function(e){return new(e||s)}}static{this.\u0275prov=b({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();export{L as a,Zt as b,ye as c,Re as d};
|