marketplacepos 3.9.7 → 3.10.0

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.
Files changed (120) hide show
  1. package/Marketplace/3rdpartylicenses.txt +37 -37
  2. package/Marketplace/chunk-2WK2VI24.js +1 -0
  3. package/Marketplace/{chunk-G4XG7N2M.js → chunk-32LBRSCJ.js} +4 -4
  4. package/Marketplace/chunk-35L7AOGR.js +1 -0
  5. package/Marketplace/chunk-3KM6M3SV.js +1 -0
  6. package/Marketplace/chunk-3SVOLAII.js +1 -0
  7. package/Marketplace/chunk-4HJGWXQ3.js +1 -0
  8. package/Marketplace/{chunk-Z6VJNXH5.js → chunk-4PF4YRRT.js} +1 -1
  9. package/Marketplace/chunk-6D7NMKRE.js +1 -0
  10. package/Marketplace/chunk-6NPWPFG3.js +2 -0
  11. package/Marketplace/chunk-7KXQRJHI.js +1 -0
  12. package/Marketplace/chunk-7MM3ONJ5.js +1 -0
  13. package/Marketplace/chunk-7RTQ2IDL.js +1 -0
  14. package/Marketplace/chunk-BLMEJMMZ.js +1 -0
  15. package/Marketplace/chunk-ECAAF5I6.js +1 -0
  16. package/Marketplace/{chunk-IKKEE3ZC.js → chunk-FA44W5LU.js} +2 -2
  17. package/Marketplace/chunk-FBXFQ4G2.js +39 -0
  18. package/Marketplace/chunk-FDI2UIO2.js +1 -0
  19. package/Marketplace/chunk-GR5OKYJS.js +1 -0
  20. package/Marketplace/chunk-HT7RDS3I.js +1 -0
  21. package/Marketplace/chunk-I5POPG3M.js +1 -0
  22. package/Marketplace/chunk-JYZZ37SG.js +1 -0
  23. package/Marketplace/chunk-KB7PR6DP.js +1 -0
  24. package/Marketplace/{chunk-OJIY47SY.js → chunk-KPPQNI2R.js} +1 -1
  25. package/Marketplace/chunk-L6CJT6UC.js +1 -0
  26. package/Marketplace/chunk-L7Q6GF26.js +1 -0
  27. package/Marketplace/chunk-LAEELPPC.js +1 -0
  28. package/Marketplace/chunk-LBQ2LOYA.js +1 -0
  29. package/Marketplace/chunk-NJM2XHQY.js +1 -0
  30. package/Marketplace/chunk-NN3SPEH5.js +1 -0
  31. package/Marketplace/chunk-O3IHPLVP.js +1 -0
  32. package/Marketplace/chunk-ORA63EP5.js +1 -0
  33. package/Marketplace/chunk-OV2NRCQ5.js +1 -0
  34. package/Marketplace/chunk-OZKNF6S2.js +1 -0
  35. package/Marketplace/chunk-P3IVG6BD.js +1 -0
  36. package/Marketplace/chunk-PNLW4YVH.js +1 -0
  37. package/Marketplace/chunk-POSHHHMT.js +1 -0
  38. package/Marketplace/{chunk-SXTJAABI.js → chunk-PZX3AESM.js} +2 -2
  39. package/Marketplace/chunk-QTQ6GNKJ.js +5 -0
  40. package/Marketplace/{chunk-3E3AJFQR.js → chunk-RUB4SQ54.js} +2 -2
  41. package/Marketplace/{chunk-KX4RY3YM.js → chunk-SHX3JAGT.js} +1 -1
  42. package/Marketplace/chunk-SOPDRQWM.js +2 -0
  43. package/Marketplace/chunk-SQGOM2WU.js +1 -0
  44. package/Marketplace/chunk-SQR4ZRTF.js +2 -0
  45. package/Marketplace/chunk-SUMLYFC7.js +1 -0
  46. package/Marketplace/{chunk-MHU6SJ5A.js → chunk-TBOHCD6E.js} +1 -1
  47. package/Marketplace/chunk-ULR2QT4D.js +2 -0
  48. package/Marketplace/chunk-UW4B35JC.js +1 -0
  49. package/Marketplace/chunk-VCLTTDX7.js +1 -0
  50. package/Marketplace/chunk-WCQU2HIE.js +3 -0
  51. package/Marketplace/chunk-WKDJS327.js +1 -0
  52. package/Marketplace/chunk-WOHUGR5B.js +1 -0
  53. package/Marketplace/chunk-XDU5GZAR.js +4 -0
  54. package/Marketplace/chunk-XLZ3ZJTK.js +1 -0
  55. package/Marketplace/chunk-YGL3QYTJ.js +1 -0
  56. package/Marketplace/chunk-YILL4GKX.js +5 -0
  57. package/Marketplace/chunk-ZMC2DAP2.js +1 -0
  58. package/Marketplace/chunk-ZRFFM47Q.js +1 -0
  59. package/Marketplace/index.html +2 -2
  60. package/Marketplace/main-525IC5TZ.js +1 -0
  61. package/Marketplace/styles-SUQABHBL.css +1 -0
  62. package/package.json +1 -1
  63. package/Marketplace/chunk-2IJJWAYN.js +0 -1
  64. package/Marketplace/chunk-2MVWDXPG.js +0 -3
  65. package/Marketplace/chunk-3CMEFVHV.js +0 -1
  66. package/Marketplace/chunk-5MP2C2GN.js +0 -1
  67. package/Marketplace/chunk-5OQFKOT3.js +0 -1
  68. package/Marketplace/chunk-6LY5BIL3.js +0 -1
  69. package/Marketplace/chunk-7XM22FKG.js +0 -1
  70. package/Marketplace/chunk-BHWMGQZN.js +0 -1
  71. package/Marketplace/chunk-BUDL76ZU.js +0 -1
  72. package/Marketplace/chunk-CC6GVMJK.js +0 -1
  73. package/Marketplace/chunk-COBXXWMY.js +0 -1
  74. package/Marketplace/chunk-CUSPCEJT.js +0 -4
  75. package/Marketplace/chunk-DSWUPDVF.js +0 -1
  76. package/Marketplace/chunk-DUJ654ZX.js +0 -1
  77. package/Marketplace/chunk-EJ5KL5JT.js +0 -1
  78. package/Marketplace/chunk-FAU3DFPX.js +0 -1
  79. package/Marketplace/chunk-FRAPCUOC.js +0 -1
  80. package/Marketplace/chunk-G3L2MSRM.js +0 -1
  81. package/Marketplace/chunk-GZ6EJLC2.js +0 -1
  82. package/Marketplace/chunk-HNVCUZMB.js +0 -1
  83. package/Marketplace/chunk-HSB44YON.js +0 -1
  84. package/Marketplace/chunk-HSQYSU2F.js +0 -5
  85. package/Marketplace/chunk-IPUL4A72.js +0 -39
  86. package/Marketplace/chunk-IU36UM4K.js +0 -1
  87. package/Marketplace/chunk-JH5HJCDZ.js +0 -1
  88. package/Marketplace/chunk-KQDNRM3M.js +0 -1
  89. package/Marketplace/chunk-KXVR2ZP3.js +0 -1
  90. package/Marketplace/chunk-L346FFAX.js +0 -1
  91. package/Marketplace/chunk-LJORI5SH.js +0 -1
  92. package/Marketplace/chunk-M2RVZO2N.js +0 -2
  93. package/Marketplace/chunk-MGEKJ45C.js +0 -1
  94. package/Marketplace/chunk-MNZYX56J.js +0 -1
  95. package/Marketplace/chunk-NBQR434T.js +0 -2
  96. package/Marketplace/chunk-O42LRLFS.js +0 -1
  97. package/Marketplace/chunk-OIOMVXRX.js +0 -1
  98. package/Marketplace/chunk-QGIVCWJ5.js +0 -1
  99. package/Marketplace/chunk-QWWXJFHN.js +0 -1
  100. package/Marketplace/chunk-RNVH2THT.js +0 -1
  101. package/Marketplace/chunk-SLBGML3Y.js +0 -1
  102. package/Marketplace/chunk-TH7T5L4B.js +0 -1
  103. package/Marketplace/chunk-VFADXTL7.js +0 -1
  104. package/Marketplace/chunk-VOTVGH4Q.js +0 -1
  105. package/Marketplace/chunk-VWZWQO2U.js +0 -1
  106. package/Marketplace/chunk-VZL6YUAQ.js +0 -1
  107. package/Marketplace/chunk-W3OMCM7Z.js +0 -1
  108. package/Marketplace/chunk-W7B34I4A.js +0 -1
  109. package/Marketplace/chunk-WFFW6WSV.js +0 -1
  110. package/Marketplace/chunk-WY3SS6E7.js +0 -2
  111. package/Marketplace/chunk-X42AN3JK.js +0 -2
  112. package/Marketplace/chunk-X4C725KJ.js +0 -5
  113. package/Marketplace/chunk-XC4T4XXY.js +0 -1
  114. package/Marketplace/chunk-YZMKXH5W.js +0 -1
  115. package/Marketplace/main-U2MNCBIN.js +0 -1
  116. package/Marketplace/styles-AQQ2FNHV.css +0 -1
  117. /package/Marketplace/{chunk-WDTFLB3R.js → chunk-4RJDBICZ.js} +0 -0
  118. /package/Marketplace/{chunk-KO2R4FW6.js → chunk-OOD7TLAL.js} +0 -0
  119. /package/Marketplace/{chunk-YQZUILJJ.js → chunk-ZKZWHDGN.js} +0 -0
  120. /package/Marketplace/{polyfills-OTWIPYTS.js → polyfills-ZMM4NOHE.js} +0 -0
@@ -1 +0,0 @@
1
- import{a as b}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-SLBGML3Y.js";import{a as h,b as P}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-5MP2C2GN.js";import{a as C}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-BUDL76ZU.js";import{b as O}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-2IJJWAYN.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-HSB44YON.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-MHU6SJ5A.js";import{c as M}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-LJORI5SH.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-W7B34I4A.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-OJIY47SY.js";import{d as s}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-X42AN3JK.js";import{a as p}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-HNVCUZMB.js";import{C as u,r as f}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-NBQR434T.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-DSWUPDVF.js";import{u as g}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-DUJ654ZX.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-L346FFAX.js";import{$a as c,Ic as l,Mc as m,aa as e,ea as d,fa as r,gc as i}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-IKKEE3ZC.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-YQZUILJJ.js";var _=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=d({type:t,selectors:[["app-products"]],decls:1,vars:0,template:function(n,v){n&1&&c(0,"router-outlet")},dependencies:[l],styles:[".badge-pill[_ngcontent-%COMP%]{padding-bottom:16px!important}.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{background:#dfeffc;border:1px solid #dfeffc}.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]{visibility:hidden;position:absolute;left:0;top:0}.rad-btn[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:3px;margin-right:10px;cursor:pointer;padding:10px;margin-bottom:10px;color:#000;width:80px;text-align:center}.modal-dialog[_ngcontent-%COMP%]{max-width:30%!important}.product[_ngcontent-%COMP%]{height:100%!important}.row[_ngcontent-%COMP%]{margin-left:0;margin-right:0}ul[_ngcontent-%COMP%]{list-style-type:none}.link[_ngcontent-%COMP%]{color:#0202ab;cursor:pointer}.px-1[_ngcontent-%COMP%]{padding-left:5px!important}.sku[_ngcontent-%COMP%]{color:#696969;font-style:italic}.badge-pill[_ngcontent-%COMP%]{height:16px}.itemTitle[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.no-title[_ngcontent-%COMP%]{margin-top:.33em;margin-bottom:.33rem}.mb-upload[_ngcontent-%COMP%]{padding-bottom:.625rem}.my-1rem[_ngcontent-%COMP%]{margin-bottom:1rem!important;margin-top:1rem!important}.pr-rem[_ngcontent-%COMP%]{padding-right:.6rem}.text-larger[_ngcontent-%COMP%]{font-size:larger}.bg-lightpink[_ngcontent-%COMP%]{background-color:#f9dede}.bottom-buttons[_ngcontent-%COMP%]{margin-left:97px}@media (min-width: 1200px){.max-w-xl[_ngcontent-%COMP%]{max-width:205px}}.navbar-toggler[_ngcontent-%COMP%]:focus{box-shadow:none!important}"]});let o=t;return o})();var y=[{path:"",component:_,children:[{path:"",redirectTo:"status",pathMatch:"full"},{path:"status",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-KXVR2ZP3.js").then(o=>o.StatusModule),canActivate:[p]},{path:"download",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-X4C725KJ.js").then(o=>o.DownloadModule),canActivate:[p]}]}],w=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=r({type:t}),t.\u0275inj=e({imports:[i,m.forChild(y)]});let o=t;return o})();var W=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=r({type:t}),t.\u0275inj=e({imports:[i,g,m,w,f,u,s,O,C,M,h,P,b]});let o=t;return o})();export{W as ProductModule};
@@ -1 +0,0 @@
1
- import{a as R}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-MHU6SJ5A.js";import{q as N,r as z}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-NBQR434T.js";import{u as F}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-DUJ654ZX.js";import{c as V}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-L346FFAX.js";import{$a as m,$b as B,Fa as i,Ga as T,Ja as w,Mb as I,Na as Z,Oa as c,Ua as s,Yb as O,Za as a,_a as l,_b as U,ab as x,bb as v,db as C,ea as k,gc as D,hb as f,ja as _,jb as p,jc as $,ka as h,mb as j,ob as P,pb as g,qb as b,rb as S,sb as L,ub as M,wb as y,za as u}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-IKKEE3ZC.js";function q(e,o){if(e&1){let t=C();x(0),a(1,"img",19),f("click",function(n){_(t);let d=p();return h(d.openBiggerPicture(n))}),l(),v()}if(e&2){let t=p();i(1),c("src",t.image,u)}}function G(e,o){e&1&&m(0,"img",20)}function Q(e,o){if(e&1&&(x(0),a(1,"span",24)(2,"a",25),m(3,"i",26),l()(),v()),e&2){let t=p(2);i(2),c("href",t.redirectUrl,u)}}function X(e,o){if(e&1&&(a(0,"div",21),m(1,"i",22),a(2,"span"),g(3),l(),s(4,Q,4,1,"ng-container",23),l()),e&2){let t=p();i(3),b(t.code),i(1),c("ngIf",t.code!=="SKU not assigned"&&t.showRedirectIcon)}}function Y(e,o){if(e&1){let t=C();a(0,"div",27),f("click",function(){_(t);let n=p();return h(n.onEventDesc())}),m(1,"i",28),a(2,"span"),g(3),l()()}if(e&2){let t=p();i(3),b(t.description)}}function ee(e,o){if(e&1){let t=C();a(0,"div",29)(1,"input",30),f("change",function(n){_(t);let d=p();return h(d.onCheck(n.target.checked))}),l()()}}function te(e,o){if(e&1){let t=C();a(0,"button",31),f("click",function(){_(t);let n=p();return h(n.onDownload())}),m(1,"i",32),g(2," Download "),l()}}function ne(e,o){if(e&1){let t=C();a(0,"button",31),f("click",function(){_(t);let n=p();return h(n.onUpload())}),m(1,"i",33),g(2," Upload "),l()}}function ie(e,o){if(e&1){let t=C();a(0,"button",34),f("click",function(){_(t);let n=p();return h(n.onScan())}),m(1,"i",35),g(2," Scan "),l()}}var oe=e=>({"me-3":e});function re(e,o){if(e&1&&(x(0),a(1,"a",37),m(2,"img",38),l(),v()),e&2){let t=o.$implicit,r=o.index,n=p(2);i(1),j("href",t.Url,u),i(1),c("ngClass",y(4,oe,r!=n.channels.length-1))("src",n.getChannelLogo(t),u)("matTooltip",t.Title?t.Title:t.Name)}}function ae(e,o){if(e&1&&(x(0),s(1,re,3,6,"ng-container",36),v()),e&2){let t=p();i(1),c("ngForOf",t.channels)}}var ce=e=>({"border-bottom pb-2":e});function le(e,o){if(e&1&&(a(0,"li")(1,"div",42)(2,"div",43)(3,"a",37),m(4,"img",44),a(5,"span",45),g(6),l()()()()()),e&2){let t=o.$implicit,r=o.index,n=p(2);i(2),c("ngClass",y(4,ce,r!=n.channels.length-1)),i(1),c("href",t.Url,u),i(1),c("src",n.getChannelLogo(t),u),i(2),b(t.Title)}}function de(e,o){if(e&1&&(a(0,"div",39)(1,"button",40),g(2),l(),a(3,"ul",41),s(4,le,7,6,"li",36),l()()),e&2){let t=p();i(2),S(" ",t.channels.length," CHANNELS "),i(2),c("ngForOf",t.channels)}}var Se=(()=>{let o=class o{constructor(r){this.biggerPictureService=r,this.uploadButton=!1,this.scanButton=!1,this.showCheckBox=!1,this.downloadButton=!1,this.hasZoom=!0,this.showRedirectIcon=!0,this.onUploadEvent=new w,this.onScanEvent=new w,this.checkBoxChange=new w,this.onDescEvent=new w,this.onDownloadEvent=new w}ngAfterContentInit(){this.initRedirectUrl()}initRedirectUrl(){let r=localStorage.getItem("Authorization"),n=JSON.parse(r)?.Host;this.redirectUrl=`https://${n}/menu/Products/Catalog/Products/Info?ID=${this.productId}`}onUpload(){this.onUploadEvent.emit()}onScan(){this.onScanEvent.emit()}onCheck(r){this.checkBoxChange.emit(r)}onEventDesc(){this.onDescEvent.emit()}onDownload(){this.onDownloadEvent.emit()}getChannelLogo(r){return V.getChannelLogoByTypeId(r.TypeID)}openBiggerPicture(r){this.biggerPictureService.openBiggerPicture(r,this.imageForZoom)}};o.\u0275fac=function(n){return new(n||o)(T(R))},o.\u0275cmp=k({type:o,selectors:[["app-product-card"]],inputs:{productId:"productId",uploadButton:"uploadButton",scanButton:"scanButton",showCheckBox:"showCheckBox",downloadButton:"downloadButton",image:"image",title:"title",code:"code",description:"description",channels:"channels",check:"check",imageForZoom:"imageForZoom",hasZoom:"hasZoom",showRedirectIcon:"showRedirectIcon"},outputs:{onUploadEvent:"onUpload",onScanEvent:"onScan",checkBoxChange:"onCheckBoxChange",onDescEvent:"onDescEvent",onDownloadEvent:"onDownload"},standalone:!0,features:[M],decls:26,vars:11,consts:[[1,"card",2,"margin-bottom","0px"],[1,"card-body","py-6"],[1,"row"],[1,"col-4"],[1,"productUpload_defaultSize","me-2","image-upload"],[1,"imgContainer"],[4,"ngIf","ngIfElse"],["elsePic",""],[1,"col-7","d-inline-block","justify-content-between","gx-0",2,"padding-left","0px"],[1,"itemTitle","cursor-pointer",3,"click"],["class","description cursor-pointer",4,"ngIf"],["class","description cursor-pointer",3,"click",4,"ngIf"],[1,"col-1","gx-0","d-flex","justify-content-center"],[1,"text-end"],["class","text-end gx-0",4,"ngIf"],[1,"card-footer","d-flex","justify-content-between","py-5","bg-footer","align-items-center",2,"border-top","0.1px solid rgb(220 220 220)"],["class","fs-6 btn btn-light btn-sm me-3",3,"click",4,"ngIf"],["class","fs-6 btn btn-light btn-sm",3,"click",4,"ngIf"],["DROPDOWN",""],[1,"rounded","imgUpload","float-left",3,"src","click"],["src","https://res.cloudinary.com/pos/image/upload/w_110/POS/Images/Icon/products_thumb.png",1,"rounded","float-left","imgUpload"],[1,"description","cursor-pointer"],[1,"fa","fa-barcode","me-2"],[4,"ngIf"],[1,"ms-2"],["target","_blank",2,"color","#0976b4",3,"href"],[1,"fas","fa-external-link-alt"],[1,"description","cursor-pointer",3,"click"],[1,"fa","fa-tag","me-2"],[1,"text-end","gx-0"],["type","checkbox",3,"change"],[1,"fs-6","btn","btn-light","btn-sm","me-3",3,"click"],["aria-hidden","true",1,"fa","fa-download"],["aria-hidden","true",1,"fa","fa-upload"],[1,"fs-6","btn","btn-light","btn-sm",3,"click"],[1,"fa","fa-spinner"],[4,"ngFor","ngForOf"],["target","_blank",3,"href"],["alt","",1,"img-logo",3,"ngClass","src","matTooltip"],[1,"dropdown"],["type","button","id","dropdownMenuButton1","data-bs-toggle","dropdown","aria-expanded","false",1,"btn","fs-6","btn-sm","btn-light","dropdown-toggle"],[1,"dropdown-menu"],[1,"dropdown-item","py-2",2,"cursor","pointer"],[3,"ngClass"],[1,"img-logo",3,"src"],[1,"ms-4"]],template:function(n,d){if(n&1&&(a(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),s(6,q,2,1,"ng-container",6)(7,G,1,0,"ng-template",null,7,I),l()()(),a(9,"div",8)(10,"h4",9),f("click",function(){return d.onEventDesc()}),g(11),l(),s(12,X,5,2,"div",10)(13,Y,4,1,"div",11),l(),a(14,"div",12)(15,"div",13),s(16,ee,2,0,"div",14),l()()()(),a(17,"div",15)(18,"div"),s(19,te,3,0,"button",16)(20,ne,3,0,"button",16)(21,ie,3,0,"button",17),l(),a(22,"div"),s(23,ae,2,1,"ng-container",6)(24,de,5,2,"ng-template",null,18,I),l()()()),n&2){let E=P(8),A=P(25);i(6),c("ngIf",d.image)("ngIfElse",E),i(5),S(" ",d.title," "),i(1),c("ngIf",d.code),i(1),c("ngIf",d.description),i(3),c("ngIf",d.showCheckBox),i(3),c("ngIf",d.downloadButton),i(1),c("ngIf",d.uploadButton),i(1),c("ngIf",d.scanButton),i(2),c("ngIf",d.channels.length<4)("ngIfElse",A)}},dependencies:[D,O,U,B,F,z,N],styles:[".img-logo[_ngcontent-%COMP%]{height:24px;width:24px}.itemTitle[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;max-width:100%}.bg-footer[_ngcontent-%COMP%]{background-color:#ededed69}.description[_ngcontent-%COMP%]{font-weight:300;margin-left:2px}.productUpload_defaultSize[_ngcontent-%COMP%]{max-width:100px!important;max-height:100px!important;width:auto!important;height:auto!important}.image-upload[_ngcontent-%COMP%]{position:relative}.imgContainer[_ngcontent-%COMP%]{width:100%;height:100px}.imgUpload[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:scale-down;cursor:pointer}.dropdown[_ngcontent-%COMP%] .dropdown-menu.show[_ngcontent-%COMP%]{top:unset!important}"]});let e=o;return e})();function pe(e,o){if(e&1){let t=C();x(0),a(1,"img",14),f("click",function(n){_(t);let d=p();return h(d.onZoomImage(n))}),l(),v()}if(e&2){let t=p();i(1),c("ngSrc",t.image)("fill",!0)}}function me(e,o){e&1&&m(0,"img",15),e&2&&c("fill",!0)}function se(e,o){if(e&1&&(a(0,"div",16),m(1,"i",17),a(2,"span"),g(3),l()()),e&2){let t=p();i(3),b(t.code)}}var ge=e=>({"border-bottom":e});function ue(e,o){if(e&1&&(x(0),a(1,"div",27)(2,"div",28),g(3),l(),a(4,"div")(5,"a",29),m(6,"i",30),l()()(),v()),e&2){let t=o.$implicit,r=o.index,n=p().$implicit;i(1),c("ngClass",y(4,ge,r!==(n==null?null:n.Variants.length)-1)),i(2),L(" ",t.ProductName," - ",t.Name," "),i(2),c("href",t.URL,u)}}var fe=e=>({"border-bottom-0":e});function _e(e,o){if(e&1&&(a(0,"div",18)(1,"h2",19)(2,"button",20)(3,"div",21),m(4,"img",22),a(5,"span",23),g(6),l()()()(),a(7,"div",24)(8,"div",25),s(9,ue,7,6,"ng-container",26),l()()()),e&2){let t=o.$implicit,r=o.index,n=p();c("ngClass",y(10,fe,n.channels.length-1==r)),i(1),c("id","heading"+r+n.code+n.id),i(1),Z("data-bs-target","#collapse"+r+n.code+n.id)("aria-controls","#collapse"+r+n.code+n.id),i(2),c("src",n.getChannelLogo(t.TypeID),u),i(1),c("matTooltip",(t==null||t.ChannelName==null?null:t.ChannelName.length)>30?t.ChannelName:""),i(1),b(t.ChannelName),i(1),c("id","collapse"+r+n.code+n.id),Z("aria-labelledby","heading"+r+n.code+n.id),i(2),c("ngForOf",t.Variants)}}var Oe=(()=>{let o=class o{constructor(r){this.biggerPictureService=r}getChannelLogo(r){return V.getChannelLogoByTypeId(r)}onZoomImage(r){this.biggerPictureService.openBiggerPicture(r,this.imageForZoom)}};o.\u0275fac=function(n){return new(n||o)(T(R))},o.\u0275cmp=k({type:o,selectors:[["app-duplicate-product-card"]],inputs:{image:"image",imageForZoom:"imageForZoom",title:"title",code:"code",channels:"channels",id:"id"},standalone:!0,features:[M],decls:16,vars:5,consts:[[1,"card"],[1,"card-body","py-6"],[1,"row"],[1,"col-4"],[1,"productUpload_defaultSize","me-2","image-upload"],[1,"imgContainer"],[4,"ngIf","ngIfElse"],["elsePic",""],[1,"col-8","d-inline-block","justify-content-between","gx-0",2,"padding-left","0px"],[1,"itemTitle"],["class","description",4,"ngIf"],[1,"card-footer",2,"padding-left","0px","padding-right","0px"],["id","accordionParent",1,"accordion","accordion-flush"],["class","accordion-item border-start-0 border-end-0",3,"ngClass",4,"ngFor","ngForOf"],[1,"rounded","imgUpload","float-left","cursor-pointer",3,"ngSrc","fill","click"],["ngSrc","//res.cloudinary.com/pos/image/upload/w_110/POS/Images/Icon/products_thumb.png",1,"rounded","float-left","imgUpload",3,"fill"],[1,"description"],[1,"fa","fa-barcode","me-2"],[1,"accordion-item","border-start-0","border-end-0",3,"ngClass"],[1,"accordion-header",3,"id"],["type","button","data-bs-toggle","collapse","aria-expanded","true",1,"accordion-button","collapsed",2,"height","40px"],[1,"d-flex","align-items-center","justify-content-start","w-100"],["alt","",1,"channel-logo",3,"src"],[1,"fs-4","ps-4","text-ellipsis",2,"max-width","13vw",3,"matTooltip"],["data-bs-parent","#accordionParent",1,"accordion-collapse","collapse",3,"id"],[1,"accordion-body",2,"padding-top","0px","padding-bottom","0px"],[4,"ngFor","ngForOf"],[1,"d-flex","justify-content-between","align-items-center","py-4",3,"ngClass"],[1,"text-ellipsis"],["target","_blank",1,"text-secondary",3,"href"],[1,"fa","fa-external-link-alt"]],template:function(n,d){if(n&1&&(a(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),s(6,pe,2,2,"ng-container",6)(7,me,1,1,"ng-template",null,7,I),l()()(),a(9,"div",8)(10,"h4",9),g(11),l(),s(12,se,4,1,"div",10),l()()(),a(13,"div",11)(14,"div",12),s(15,_e,10,12,"div",13),l()()()),n&2){let E=P(8);i(6),c("ngIf",d.image)("ngIfElse",E),i(5),S(" ",d.title," "),i(1),c("ngIf",d.code),i(3),c("ngForOf",d.channels)}},dependencies:[D,O,U,B,F,z,N,$],styles:[`.productUpload_defaultSize[_ngcontent-%COMP%]{max-width:100px!important;max-height:100px!important;width:auto!important;height:auto!important}.image-upload[_ngcontent-%COMP%]{position:relative}.imgContainer[_ngcontent-%COMP%]{width:100%;height:100px}.imgUpload[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:scale-down}.channel-logo[_ngcontent-%COMP%]{width:18px;height:18px}.accordion-button[_ngcontent-%COMP%]{background-color:#ededed69!important}.accordion-button[_ngcontent-%COMP%]:not(.collapsed){background-color:#ededed69!important;color:#333}.accordion-button[_ngcontent-%COMP%]:after{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333333'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e")}.accordion-button[_ngcontent-%COMP%]:focus{box-shadow:none!important}.card[_ngcontent-%COMP%]{margin-bottom:0!important}`]});let e=o;return e})();export{Se as a,Oe as b};
@@ -1 +0,0 @@
1
- import{C as st,H as ct,I as dt,J as ht,K as R,P as lt,a as P,t as nt}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-DSWUPDVF.js";import{b as g,c as at}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-L346FFAX.js";import{$ as F,$a as w,A as j,Ac as c,Ba as K,Bc as rt,Cc as ot,Fa as m,Ga as d,Ia as W,Ja as q,La as E,Na as H,Oa as p,Qa as O,Ua as G,Va as J,Za as _,_a as S,aa as D,ba as B,c as M,db as Q,ea as C,fa as A,ga as Y,gc as it,hb as N,ia as L,ja as T,jb as y,ka as k,kb as X,lb as Z,pa as z,pb as tt,qa as U,qb as et,tc as u,uc as h,xc as a,yc as s,za as $,zc as b}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-IKKEE3ZC.js";var ut=["mat-sort-header",""];function gt(r,e){if(r&1){let n=Q();_(0,"div",3),N("@arrowPosition.start",function(){T(n);let i=y();return k(i._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){T(n);let i=y();return k(i._disableViewStateAnimation=!1)}),w(1,"div",4),_(2,"div",5),w(3,"div",6)(4,"div",7)(5,"div",8),S()()}if(r&2){let n=y();p("@arrowOpacity",n._getArrowViewState())("@arrowPosition",n._getArrowViewState())("@allowChildren",n._getArrowDirectionState()),m(2),p("@indicator",n._getArrowDirectionState()),m(1),p("@leftPointer",n._getArrowDirectionState()),m(1),p("@rightPointer",n._getArrowDirectionState())}}var St=["*"];var ft=new B("MAT_SORT_DEFAULT_OPTIONS"),vt=lt(R(class{})),wt=(()=>{let e=class e extends vt{get direction(){return this._direction}set direction(t){this._direction=t}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=P(t)}constructor(t){super(),this._defaultOptions=t,this.sortables=new Map,this._stateChanges=new M,this.start="asc",this._direction="",this.sortChange=new q}register(t){this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){if(!t)return"";let i=t?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,o=bt(t.start||this.start,i),l=o.indexOf(this.direction)+1;return l>=o.length&&(l=0),o[l]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}};e.\u0275fac=function(i){return new(i||e)(d(ft,8))},e.\u0275dir=Y({type:e,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[E,L]});let r=e;return r})();function bt(r,e){let n=["asc","desc"];return r=="desc"&&n.reverse(),e||n.push(""),n}var f=dt.ENTERING+" "+ct.STANDARD_CURVE,v={indicator:u("indicator",[s("active-asc, asc",a({transform:"translateY(0px)"})),s("active-desc, desc",a({transform:"translateY(10px)"})),c("active-asc <=> active-desc",h(f))]),leftPointer:u("leftPointer",[s("active-asc, asc",a({transform:"rotate(-45deg)"})),s("active-desc, desc",a({transform:"rotate(45deg)"})),c("active-asc <=> active-desc",h(f))]),rightPointer:u("rightPointer",[s("active-asc, asc",a({transform:"rotate(45deg)"})),s("active-desc, desc",a({transform:"rotate(-45deg)"})),c("active-asc <=> active-desc",h(f))]),arrowOpacity:u("arrowOpacity",[s("desc-to-active, asc-to-active, active",a({opacity:1})),s("desc-to-hint, asc-to-hint, hint",a({opacity:.54})),s("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",a({opacity:0})),c("* => asc, * => desc, * => active, * => hint, * => void",h("0ms")),c("* <=> *",h(f))]),arrowPosition:u("arrowPosition",[c("* => desc-to-hint, * => desc-to-active",h(f,b([a({transform:"translateY(-25%)"}),a({transform:"translateY(0)"})]))),c("* => hint-to-desc, * => active-to-desc",h(f,b([a({transform:"translateY(0)"}),a({transform:"translateY(25%)"})]))),c("* => asc-to-hint, * => asc-to-active",h(f,b([a({transform:"translateY(25%)"}),a({transform:"translateY(0)"})]))),c("* => hint-to-asc, * => active-to-asc",h(f,b([a({transform:"translateY(0)"}),a({transform:"translateY(-25%)"})]))),s("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",a({transform:"translateY(0)"})),s("hint-to-desc, active-to-desc, desc",a({transform:"translateY(-25%)"})),s("hint-to-asc, active-to-asc, asc",a({transform:"translateY(25%)"}))]),allowChildren:u("allowChildren",[c("* <=> *",[ot("@*",rt(),{optional:!0})])])},I=(()=>{let e=class e{constructor(){this.changes=new M}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})();function Dt(r){return r||new I}var Ct={provide:I,deps:[[new z,new U,I]],useFactory:Dt},At=R(class{}),Lt=(()=>{let e=class e extends At{get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(t){this._updateSortActionDescription(t)}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=P(t)}constructor(t,i,o,l,x,pt,_t,V){super(),this._intl=t,this._changeDetectorRef=i,this._sort=o,this._columnDef=l,this._focusMonitor=x,this._elementRef=pt,this._ariaDescriber=_t,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",V?.arrowPosition&&(this.arrowPosition=V?.arrowPosition),this._handleStateChanges()}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{let i=!!t;i!==this._showIndicatorHint&&(this._setIndicatorHintVisible(i),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._showIndicatorHint?this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"hint"}):this._setAnimationTransitionState({fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(t){this._viewState=t||{},this._disableViewStateAnimation&&(this._viewState={toState:t.toState})}_toggleOnInteraction(){this._sort.sort(this),(this._viewState.toState==="hint"||this._viewState.toState==="active")&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(t){!this._isDisabled()&&(t.keyCode===32||t.keyCode===13)&&(t.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){let t=this._viewState.fromState;return(t?`${t}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?this._sort.direction=="asc"?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(t){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,t)),this._sortActionDescription=t}_handleStateChanges(){this._rerenderSubscription=j(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),(this._viewState.toState==="hint"||this._viewState.toState==="active")&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&this._viewState.toState==="active"&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}};e.\u0275fac=function(i){return new(i||e)(d(I),d(W),d(wt,8),d("MAT_SORT_HEADER_COLUMN_DEF",8),d(st),d(K),d(nt,8),d(ft,8))},e.\u0275cmp=C({type:e,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(i,o){i&1&&N("click",function(){return o._handleClick()})("keydown",function(x){return o._handleKeydown(x)})("mouseenter",function(){return o._setIndicatorHintVisible(!0)})("mouseleave",function(){return o._setIndicatorHintVisible(!1)}),i&2&&(H("aria-sort",o._getAriaSortAttribute()),O("mat-sort-header-disabled",o._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[E],attrs:ut,ngContentSelectors:St,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(i,o){i&1&&(X(),_(0,"div",0)(1,"div",1),Z(2),S(),G(3,gt,6,6,"div",2),S()),i&2&&(O("mat-sort-header-sorted",o._isSorted())("mat-sort-header-position-before",o.arrowPosition==="before"),H("tabindex",o._isDisabled()?null:0)("role",o._isDisabled()?null:"button"),m(3),J(3,o._renderArrow()?3:-1))},styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;color:var(--mat-sort-arrow-color);opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[v.indicator,v.leftPointer,v.rightPointer,v.arrowOpacity,v.arrowPosition,v.allowChildren]},changeDetection:0});let r=e;return r})(),zt=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=A({type:e}),e.\u0275inj=D({providers:[Ct],imports:[ht]});let r=e;return r})();var Gt=(()=>{let e=class e{set typeId(t){this.channelLogo=at.getChannelLogoByTypeId(t),this.initChannelName(t)}constructor(){}initChannelName(t){switch(t){case g.Tokopedia:this.channelName="Tokopedia";break;case g.Tiktok:this.channelName="Tiktok";break;case g.WooCommerce:this.channelName="WooCommerce";break;case g.ShopeeV2:this.channelName="Shopee";break;case g.Lazada:this.channelName="Lazada";break;case g.KalCare:this.channelName="Kalcare";break}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=C({type:e,selectors:[["app-channel-logo"]],inputs:{typeId:"typeId"},decls:4,vars:2,consts:[[1,"d-flex","align-items-center"],[2,"width","20px",3,"src"],[1,"ms-3","fw-normal"]],template:function(i,o){i&1&&(_(0,"div",0),w(1,"img",1),_(2,"span",2),tt(3),S()()),i&2&&(m(1),p("src",o.channelLogo,$),m(2),et(o.channelName))}});let r=e;return r})();var te=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=A({type:e}),e.\u0275inj=D({imports:[it]});let r=e;return r})();export{wt as a,Lt as b,zt as c,Gt as d,te as e};
@@ -1 +0,0 @@
1
- import{a as j,b as G}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-LJORI5SH.js";import{a as z}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-W7B34I4A.js";import{g as H}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-OJIY47SY.js";import{A as B,q as A,s as V,t as R,z as L}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-NBQR434T.js";import{_ as k}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-DSWUPDVF.js";import{h as N,k as F}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-DUJ654ZX.js";import{b as d,c as h}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-L346FFAX.js";import{$a as D,$b as P,Db as O,Fa as n,Fb as w,Ga as _,Jc as x,Oa as o,Ua as v,Za as l,_a as s,_b as E,db as y,dc as U,ea as b,hb as u,ja as C,jb as c,ka as g,pb as p,qb as M,rb as T,za as I}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-IKKEE3ZC.js";function W(r,m){if(r&1&&(l(0,"mat-option",9)(1,"div",10),D(2,"img",11),l(3,"span"),p(4),s()()()),r&2){let t=m.$implicit;o("value",t.ID)("disabled",t.disabled),n(1),o("matTooltip",t.disabled?"Single Product Scan disabled for this type of Channel":null),n(1),o("src",t.Img,I),n(2),M(t.Name)}}function J(r,m){if(r&1){let t=y();l(0,"div",12)(1,"label",13),p(2,"Scan Type"),s(),l(3,"mat-radio-group",14),u("ngModelChange",function(a){C(t);let e=c();return g(e.filter.ScanFull=a)}),l(4,"mat-radio-button",15),p(5," Full (Include Inactive Products) "),s(),l(6,"mat-radio-button",16),p(7," Active "),s()()()}if(r&2){let t=c();n(3),o("ngModel",t.filter.ScanFull),n(1),o("value",!0),n(2),o("value",!1)}}function K(r,m){if(r&1){let t=y();l(0,"div",17)(1,"label",3),p(2),O(3,"date"),s(),l(4,"mat-radio-group",18),u("ngModelChange",function(a){C(t);let e=c();return g(e.filter.UpdatedProduct=a)}),l(5,"mat-radio-button",19),p(6," Scan All Products "),s(),l(7,"mat-radio-button",20),p(8),s()()()}if(r&2){let t=c();n(2),T(" Last Scan: ",w(3,6,t.selectedChannel.LastSync,"dd MMMM yyyy HH:mm")," "),n(2),o("ngModel",t.filter.UpdatedProduct),n(1),o("value",!1),n(2),o("value",!0)("matTooltip",t.selectedChannel.TypeID==t.channelType.Tokopedia?"Use Tokopedia URL for mapping SKU between POS and Tokopedia":"Scan only products that have been updated since the last channel scan"),n(1),T(" ",t.selectedChannel.TypeID==t.channelType.Tokopedia?"Product Download By URL":"Scan Updated Products"," ")}}function $(r,m){if(r&1){let t=y();l(0,"div",17)(1,"label",3),p(2," Scan Option "),s(),l(3,"mat-radio-group",21),u("ngModelChange",function(a){C(t);let e=c();return g(e.filter.Async=a)}),l(4,"mat-radio-button",22),p(5," Asynchronous (Get Notified when Complete) "),s(),l(6,"mat-radio-button",23),p(7," Synchronous (Wait until Complete) "),s()()()}if(r&2){let t=c();n(3),o("ngModel",t.filter.Async),n(1),o("value",!0),n(2),o("value",!1)}}var pe=(()=>{let m=class m{constructor(i,a,e){this.dialogRef=i,this.data=a,this.router=e,this.channelType=d,this.disabledChannelOption=!1,this.filter={ChannelID:h.GuidEMpty,ScanFull:!0,UpdatedProduct:!1,Async:!1},this.isSingleChannel=h.IsNotEmpty(a.isSingleChannel)?this.data.isSingleChannel:!1,this.disabledChannelOption=h.IsEmpty(a.disabledChannelOption)?!1:this.data.disabledChannelOption}ngOnInit(){this.initChannelOptions(),this.initFilter(),this.onSelectChannel(this.data?.filter?.ChannelID),this.initModalConfig()}initModalConfig(){this.modalConfig=new L,this.modalConfig.title="Scan Marketplace",this.modalConfig.bodyScrollable=!0}initFilter(){this.filter.ChannelID=this.data?.filter?.ChannelID,this.filter.ScanFull=!1}initChannelOptions(){this.channelOptions=JSON.parse(JSON.stringify(this.data.channelOptions)),this.isSingleChannel&&(this.channelOptions=this.channelOptions.map(i=>(i.disabled=!0,(i.TypeID==d.Tiktok||i.TypeID==d.Tokopedia||i.TypeID==d.Lazada||i.TypeID==d.WooCommerce)&&(i.disabled=!1),i)).sort(i=>i.disabled?1:-1))}onSelectChannel(i){let a=this.filterChannelById(i);this.selectedChannel=a,this.filter.Async=!0,this.iniHasScanUpdate(),this.setDefaultConfigUpdate()}setDefaultConfigUpdate(){this.filter.UpdatedProduct=!1,this.selectedChannel&&h.IsNotEmpty(this.selectedChannel.LastSync)&&(this.selectedChannel.TypeID==d.ShopeeV2||this.selectedChannel.TypeID==d.Tiktok||this.selectedChannel.TypeID==d.Lazada)&&(this.filter.UpdatedProduct=!0)}iniHasScanUpdate(){this.selectedChannel?.TypeID!=d.WooCommerce&&this.selectedChannel?.TypeID!=d.KalCare&&this.selectedChannel?.TypeID!=d.None&&h.IsNotEmpty(this.selectedChannel?.LastSync)&&!this.isSingleChannel?this.hasScanUpdate=!0:this.hasScanUpdate=!1}filterChannelById(i){let a;return this.channelOptions&&(a=this.channelOptions.find(e=>e.ID==i)),a}submit(){this.selectedChannel.TypeID==d.Tokopedia&&this.filter.UpdatedProduct?this.router.navigate(["/menu/products/download/by-url"]).then(()=>{this.dialogRef.close()}):(this.beforeSubmit(),this.dialogRef.close(this.filter))}beforeSubmit(){this.filter.UpdatedProduct&&(this.filter.Async=!1)}isNotEmpty(i){return h.IsNotEmpty(i)}onClose(){this.dialogRef.close()}};m.\u0275fac=function(a){return new(a||m)(_(V),_(R),_(x))},m.\u0275cmp=b({type:m,selectors:[["app-scan-dialog"]],decls:11,vars:8,consts:[[3,"dynamicValidated","config","onOk","onClose","onCancel"],["content",""],[1,"mx-4"],[1,"mb-2","fw-bold"],["appearance","outline",1,"w-100"],["name","channelid","placeholder","Channel",1,"mat-select-channel",3,"disabled","ngModel","ngModelChange"],["class","channel-option",3,"value","disabled",4,"ngFor","ngForOf"],["class","mt-4",4,"ngIf"],["class","mt-8",4,"ngIf"],[1,"channel-option",3,"value","disabled"],["matTooltipPosition","above","matTooltipClass","custom-width-tooltip",3,"matTooltip"],[2,"width","18px","margin-right","10px",3,"src"],[1,"mt-4"],[1,"mb-2","fw-bold","mt-3"],["name","scanType",1,"form-control","h-100","round",3,"ngModel","ngModelChange"],["matTooltipClass","custom-width-tooltip","matTooltipPosition","above","matTooltip","Full Scan Product",1,"me-5",3,"value"],["matTooltipClass","custom-width-tooltip","matTooltipPosition","above","matTooltip","Only Active Product",1,"me-5",3,"value"],[1,"mt-8"],["name","ScanFull",1,"form-control","h-100","round",2,"line-height","2",3,"ngModel","ngModelChange"],["matTooltipClass","custom-width-tooltip","matTooltipPosition","above","matTooltip","Scan product from beginning ( use this if you haven't scanned at all)",1,"me-5",3,"value"],["matTooltipClass","custom-width-tooltip","matTooltipPosition","above",1,"me-5",3,"value","matTooltip"],["name","Async",1,"form-control","h-100","round",2,"line-height","2",3,"ngModel","ngModelChange"],["matTooltipClass","custom-width-tooltip","matTooltip","Scan is running in the background, status will be visible in the notification menu","matTooltipPosition","above",1,"me-5",3,"value"],[1,"me-5",3,"value"]],template:function(a,e){a&1&&(l(0,"modal-material",0),u("onOk",function(){return e.submit()})("onClose",function(){return e.onClose()})("onCancel",function(){return e.onClose()}),l(1,"div",1)(2,"div",2)(3,"label",3),p(4,"Select a Channel"),s(),l(5,"mat-form-field",4)(6,"mat-select",5),u("ngModelChange",function(S){return e.filter.ChannelID=S})("ngModelChange",function(S){return e.onSelectChannel(S)}),v(7,W,5,5,"mat-option",6),s()(),v(8,J,8,3,"div",7)(9,K,9,9,"div",8)(10,$,8,3,"div",8),s()()()),a&2&&(o("dynamicValidated",e.isNotEmpty(e.filter.ChannelID))("config",e.modalConfig),n(6),o("disabled",e.disabledChannelOption)("ngModel",e.filter.ChannelID),n(1),o("ngForOf",e.channelOptions),n(1),o("ngIf",!e.isSingleChannel&&e.isNotEmpty(e.filter.ChannelID)),n(1),o("ngIf",e.hasScanUpdate),n(1),o("ngIf",!(e.filter!=null&&e.filter.UpdatedProduct)&&!e.isSingleChannel&&e.isNotEmpty(e.filter.ChannelID)))},dependencies:[E,P,N,F,j,G,H,z,k,A,B,U],encapsulation:2});let r=m;return r})();export{pe as a};
@@ -1 +0,0 @@
1
- import{$a as m,Fa as a,Oa as s,Za as i,_a as c,ea as o,pb as p,ub as d,za as r}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-IKKEE3ZC.js";var y=(()=>{let t=class t{constructor(){this.emptyStateImg="https://res.cloudinary.com/pos/image/upload/v1683772105/icons/marketplace_icons/emptyrecord.svg"}ngOnInit(){}};t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o({type:t,selectors:[["app-empty-state"]],standalone:!0,features:[d],decls:4,vars:1,consts:[["alt","",2,"width","225px",3,"src"],[1,"text-center","fs-2","text-secondary","mt-4"]],template:function(e,f){e&1&&(i(0,"div"),m(1,"img",0),i(2,"div",1),p(3," No records found "),c()()),e&2&&(a(1),s("src",f.emptyStateImg,r))}});let n=t;return n})();export{y as a};
@@ -1 +0,0 @@
1
- import{b as ee}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-FRAPCUOC.js";import{f as z}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-CUSPCEJT.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-VOTVGH4Q.js";import{b as k,e as R}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-RNVH2THT.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-KX4RY3YM.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-YZMKXH5W.js";import{c as Z}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-LJORI5SH.js";import{a as G,c as W,d as q}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-X42AN3JK.js";import{B as X,C as Y,q as J,r as Q}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-NBQR434T.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-DSWUPDVF.js";import{h as $,k as H,u as A}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-DUJ654ZX.js";import{b,c as B}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-L346FFAX.js";import{$a as E,$b as K,Db as U,Eb as F,Fa as c,Ga as g,Mc as v,Oa as m,Q as L,Ua as f,X as y,Za as o,_a as a,_b as j,aa as d,ab as O,bb as w,cc as V,db as D,ea as N,fa as h,gc as C,hb as p,ja as x,jb as u,ka as T,pb as s,q as M,qb as S,rb as P,za as I}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-IKKEE3ZC.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-YQZUILJJ.js";function re(n,t){if(n&1&&(o(0,"span",13),E(1,"img",14),a(),o(2,"span"),s(3),a()),n&2){let l=t.item;c(1),m("src",l.logo,I),c(2),P(" ",l.Name," ")}}function ae(n,t){if(n&1){let l=D();O(0),o(1,"ng-select",16),p("ngModelChange",function(i){x(l);let r=u().$implicit;return T(r.ProductSKU=i)}),a(),w()}if(n&2){let l=t.ngIf,e=u().$implicit;c(1),m("ngModel",e.ProductSKU)("items",l)}}function se(n,t){if(n&1&&(o(0,"tr")(1,"td"),s(2),a(),o(3,"td"),s(4),a(),o(5,"td"),s(6),a(),o(7,"td"),f(8,ae,2,2,"ng-container",15),U(9,"async"),a()()),n&2){let l=t.$implicit,e=u();c(2),S(l.Name),c(2),S(l.Service),c(2),S(l.TypeString),c(2),m("ngIf",F(9,4,e.logisticOptions$))}}var ie=(()=>{let t=class t{constructor(e,i,r){this.http=e,this.toastr=i,this.authService=r,this.filter={ChannelID:""},this.logisticServiceOptions=[],this.channelOptions=this.authService.getChannels(),this.initUnsupportedChannel(),this.initLoader()}initUnsupportedChannel(){let e=[b.WooCommerce,b.Lazada,b.Shopify];this.channelOptions=this.channelOptions.map(i=>(e.forEach(r=>{i.TypeID===r&&(i.disabled=!0)}),i))}initLoader(){this.http.post("/api/Logistic/Load",{}).subscribe(e=>{this.filter=e.Filter,this.channelName=this.channelOptions[0].Name,this.initLogisticServiceOptions(),this.getLogisticService()})}initLogisticServiceOptions(){this.logisticOptions$=this.http.get("/api/Logistic/OptionLogisticsService").pipe(L(1),y(e=>{this.logisticServiceOptions=e}))}Validate(){for(let e of this.logisticServices)this.datasource.find(r=>r.ProductSKU==e.ProductSKU&&r.Name==e.Name)===void 0&&(e.IsChange=!0);return Promise.resolve(this.logisticServices)}submitLogistics(){this.Validate().then(e=>{this.http.post("/api/Logistic/Submit",this.logisticServices).subscribe(i=>{this.toastr.success("Success","Update Complete!",{timeOut:5e3,enableHtml:!0}),this.getLogisticService()})})}getLogisticService(){this.datasource=[],this.http.post("/api/Logistic/Get",this.filter).pipe(M(e=>e.map(i=>(i.ProductSKU=B.IsEmpty(i.ProductSKU)?null:i.ProductSKU,i)))).subscribe(e=>{this.iniTitle(),this.logisticServices=e,this.datasource=structuredClone(e)})}iniTitle(){let e=this.channelOptions.find(i=>i.ID==this.filter.ChannelID);this.channelName=e?e.Name:null}};t.\u0275fac=function(i){return new(i||t)(g(R),g(k),g(z))},t.\u0275cmp=N({type:t,selectors:[["app-logistic"]],decls:28,vars:6,consts:[["hideSearchBox","true","searchBoxPlaceHolder","Enter Number...",3,"headerTitle","hideSearchDropdown","onSubmit"],[1,"mb-2","fw-bold"],["appendTo","body","bindLabel","Name","bindValue","ID","placeholder","Select Channel",1,"center-text",3,"clearable","items","ngModel","ngModelChange"],["ng-option-tmp",""],["role","button","data-toggle","tooltip","data-placement","top","matTooltip","enter Logistic for recorded",1,"btn","btn-success","btn-fill","btn-lg","text-white",3,"click"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"table","table-hover"],[1,"sticky-top-thead"],[1,"table-light"],[4,"ngFor","ngForOf"],[1,"me-2"],["alt","",2,"width","18px",3,"src"],[4,"ngIf"],["placeholder","Logistic Service Code","bindLabel","Name","bindValue","Code",1,"w-75",3,"ngModel","items","ngModelChange"]],template:function(i,r){i&1&&(o(0,"mainpanel",0),p("onSubmit",function(){return r.getLogisticService()}),o(1,"filters")(2,"div")(3,"label",1),s(4,"Select a Channel"),a(),o(5,"ng-select",2),p("ngModelChange",function(oe){return r.filter.ChannelID=oe}),f(6,re,4,2,"ng-template",3),a()()(),o(7,"actions")(8,"a",4),p("click",function(){return r.submitLogistics()}),s(9,"Submit"),a()(),o(10,"content")(11,"div",5)(12,"div",6)(13,"div",7)(14,"div",8)(15,"table",9)(16,"thead",10)(17,"tr",11)(18,"th"),s(19,"Logistic"),a(),o(20,"th"),s(21,"Service"),a(),o(22,"th"),s(23,"Type"),a(),o(24,"th"),s(25,"Logistic Service"),a()()(),o(26,"tbody"),f(27,se,10,6,"tr",12),a()()()()()()()()),i&2&&(m("headerTitle","Logistic Courier - "+r.channelName)("hideSearchDropdown",!1),c(5),m("clearable",!1)("items",r.channelOptions)("ngModel",r.filter.ChannelID),c(22),m("ngForOf",r.logisticServices))},dependencies:[j,K,$,H,X,W,G,J,V]});let n=t;return n})();var le=[{path:"",component:ie}],ne=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=h({type:t}),t.\u0275inj=d({imports:[C,v.forChild(le)]});let n=t;return n})();var je=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=h({type:t}),t.\u0275inj=d({imports:[C,v,ne,A,Y,q,ee,Z,Q]});let n=t;return n})();export{je as LogisticModule};
@@ -1 +0,0 @@
1
- import{$a as c,$b as y,Db as d,Eb as u,Fa as n,Ja as s,Oa as p,Ua as v,Za as a,_a as l,db as _,ea as P,fc as N,gc as T,hb as m,ja as C,jb as g,ka as b,pb as o,qb as k,rb as w,sb as x,ub as S}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-IKKEE3ZC.js";function E(t,i){if(t&1){let f=_();a(0,"span",10),m("click",function(){C(f);let r=g();return b(r.onShowTotal())}),a(1,"i",11),o(2,"?"),l()()}}function z(t,i){if(t&1&&(a(0,"span"),o(1),d(2,"number"),l()),t&2){let f=g();n(1),k(u(2,1,f.paginationTotal))}}var O=(()=>{let i=class i{constructor(){this.next=new s,this.filterChange=new s,this.previous=new s,this.total=new s,this.hasClicked=!1}onShowTotal(){this.total.emit()}onPreviousPage(){this.filter.PageNumber=this.filter.PageNumber-1,this.filterChange.emit(this.filter),this.previous.emit()}onNextPage(){this.filter.PageNumber=this.filter.PageNumber+1,this.filterChange.emit(this.filter),this.next.emit()}};i.\u0275fac=function(r){return new(r||i)},i.\u0275cmp=P({type:i,selectors:[["app-custom-paginator"]],inputs:{filter:"filter",paginationTotal:"paginationTotal",totaldata:"totaldata",hasClicked:"hasClicked"},outputs:{next:"next",filterChange:"filterChange",previous:"previous",total:"total"},standalone:!0,features:[S],decls:16,vars:11,consts:[[1,"d-flex","justify-content-between","mt-5"],[1,"me-auto","d-sm-block","collapse","mt-3"],[1,"font-weight-bold","font-italic","hidden-xxs"],["style","cursor: pointer",3,"click",4,"ngIf"],[4,"ngIf"],[1,"btn-group"],["role","button","title","Load all products",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"hidden","click"],[1,"fas","fa-arrow-left"],["role","button","title","Load more for 20 products",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"hidden","click"],[1,"fas","fa-arrow-right"],[2,"cursor","pointer",3,"click"],["title","Retreive rows count",1,"border","p-3"]],template:function(r,e){r&1&&(a(0,"div",0)(1,"div",1)(2,"div",2),o(3),d(4,"number"),d(5,"number"),v(6,E,3,0,"span",3)(7,z,3,3,"span",4),o(8),l()(),a(9,"div",5)(10,"a",6),m("click",function(){return e.onPreviousPage()}),c(11,"i",7),o(12," Prev"),l(),a(13,"a",8),m("click",function(){return e.onNextPage()}),c(14,"i",9),o(15," Next"),l()()()),r&2&&(n(3),x(" Showing ",u(4,7,e.filter.PageSize*(e.filter.PageNumber-1)+1)," - ",u(5,9,e.filter.PageSize*(e.filter.PageNumber-1)+e.totaldata)," of "),n(3),p("ngIf",!e.hasClicked),n(1),p("ngIf",e.hasClicked),n(1),w(" records ~ ",e.filter.PageNumber," Page "),n(2),p("hidden",e.filter.PageNumber==1),n(3),p("hidden",e.filter.PageSize*(e.filter.PageNumber-1)+e.totaldata==e.paginationTotal||e.totaldata<e.filter.PageSize))},dependencies:[T,y,N]});let t=i;return t})();export{O as a};
@@ -1 +0,0 @@
1
- import{d as Z,e as $,h as C}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-OJIY47SY.js";import{J as M,O as q,U,a as _,e as b,h as p,i as w,j as z}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-DSWUPDVF.js";import{e as P,g as O,j as B,n as V}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-DUJ654ZX.js";import{$ as A,Ba as x,Ga as r,Ka as f,La as N,Na as L,Qa as D,aa as u,ba as T,c as d,ca as y,eb as j,fa as m,ga as E,hb as I,ia as S,j as F,tb as k}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-IKKEE3ZC.js";var K=z({passive:!0}),G=(()=>{let i=class i{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return F;let t=b(e),s=this._monitoredElements.get(t);if(s)return s.subject;let o=new d,a="cdk-text-field-autofilled",c=l=>{l.animationName==="cdk-text-field-autofill-start"&&!t.classList.contains(a)?(t.classList.add(a),this._ngZone.run(()=>o.next({target:l.target,isAutofilled:!0}))):l.animationName==="cdk-text-field-autofill-end"&&t.classList.contains(a)&&(t.classList.remove(a),this._ngZone.run(()=>o.next({target:l.target,isAutofilled:!1})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",c,K),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:o,unlisten:()=>{t.removeEventListener("animationstart",c,K)}}),o}stopMonitoring(e){let t=b(e),s=this._monitoredElements.get(t);s&&(s.unlisten(),s.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}};i.\u0275fac=function(t){return new(t||i)(y(p),y(f))},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"});let n=i;return n})();var W=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=m({type:i}),i.\u0275inj=u({});let n=i;return n})();var ie=new T("MAT_INPUT_VALUE_ACCESSOR"),se=["button","checkbox","file","hidden","image","radio","range","reset","submit"],ne=0,re=q(class{constructor(n,i,Y,e){this._defaultErrorStateMatcher=n,this._parentForm=i,this._parentFormGroup=Y,this.ngControl=e,this.stateChanges=new d}}),He=(()=>{let i=class i extends re{get disabled(){return this._disabled}set disabled(e){this._disabled=_(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(P.required)??!1}set required(e){this._required=_(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&w().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=_(e)}constructor(e,t,s,o,a,c,l,X,J,R){super(c,o,a,s),this._elementRef=e,this._platform=t,this._autofillMonitor=X,this._formField=R,this._uid=`mat-input-${ne++}`,this.focused=!1,this.stateChanges=new d,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(v=>w().has(v)),this._iOSKeyupListener=v=>{let h=v.target;!h.value&&h.selectionStart===0&&h.selectionEnd===0&&(h.setSelectionRange(1,1),h.setSelectionRange(0,0))};let g=this._elementRef.nativeElement,H=g.nodeName.toLowerCase();this._inputValueAccessor=l||g,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&J.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect=H==="select",this._isTextarea=H==="textarea",this._isInFormField=!!R,this._isNativeSelect&&(this.controlType=g.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==null&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){let e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){let e=this._getPlaceholder();if(e!==this._previousPlaceholder){let t=this._elementRef.nativeElement;this._previousPlaceholder=e,e?t.setAttribute("placeholder",e):t.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){se.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}else return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}};i.\u0275fac=function(t){return new(t||i)(r(x),r(p),r(O,10),r(B,8),r(V,8),r(U),r(ie,10),r(G),r(f),r($,8))},i.\u0275dir=E({type:i,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(t,s){t&1&&I("focus",function(){return s._focusChanged(!0)})("blur",function(){return s._focusChanged(!1)})("input",function(){return s._onInput()}),t&2&&(j("id",s.id)("disabled",s.disabled)("required",s.required),L("name",s.name||null)("readonly",s.readonly&&!s._isNativeSelect||null)("aria-invalid",s.empty&&s.required?null:s.errorState)("aria-required",s.required)("id",s.id),D("mat-input-server",s._isServer)("mat-mdc-form-field-textarea-control",s._isInFormField&&s._isTextarea)("mat-mdc-form-field-input-control",s._isInFormField)("mdc-text-field__input",s._isInFormField)("mat-mdc-native-select-inline",s._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[k([{provide:Z,useExisting:i}]),N,S]});let n=i;return n})(),Fe=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=m({type:i}),i.\u0275inj=u({imports:[M,C,C,W,M]});let n=i;return n})();export{ie as a,He as b,Fe as c};
@@ -1 +0,0 @@
1
- import{a as P}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-MGEKJ45C.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-RNVH2THT.js";import{B as C,C as B}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-NBQR434T.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-DSWUPDVF.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-DUJ654ZX.js";import{$b as x,Db as s,Eb as m,Fa as a,Fb as v,Ga as c,Hc as M,Kc as L,Mc as A,Oa as u,Q as f,Ua as g,Za as t,_a as i,cc as E,dc as _,ea as h,ec as D,fc as R,gc as b,pb as n,q as y,qb as p,rb as S,ub as I}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-IKKEE3ZC.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-YQZUILJJ.js";function j(d,l){if(d&1&&(t(0,"div",3)(1,"div",4)(2,"div",5)(3,"div",6)(4,"div",7)(5,"h5"),n(6,"General"),i()(),t(7,"div",8)(8,"div",9)(9,"div",10)(10,"div",11)(11,"label"),n(12,"Created"),i(),t(13,"div")(14,"span"),n(15),s(16,"date"),i()()()(),t(17,"div",10)(18,"div",11)(19,"label"),n(20,"Duration"),i(),t(21,"div")(22,"span"),n(23),s(24,"number"),i()()()(),t(25,"div",10)(26,"div",11)(27,"label"),n(28,"Response Code"),i(),t(29,"div")(30,"span"),n(31),i()()()()()()()()(),t(32,"div",4)(33,"div",10)(34,"div",6)(35,"div",7)(36,"h5"),n(37,"Request"),i()(),t(38,"div",8)(39,"div",12)(40,"div",13)(41,"pre"),n(42),s(43,"json"),i()()()()()(),t(44,"div",10)(45,"div",6)(46,"div",7)(47,"h5"),n(48,"Response"),i()(),t(49,"div",8)(50,"div",14)(51,"div",13)(52,"pre"),n(53),s(54,"json"),i()()()()()()()()),d&2){let e=l.ngIf;a(15),p(v(16,5,e==null?null:e._source["@timestamp"],"dd MMM yyyy HH:mm:ss")),a(8),S("",v(24,8,e==null?null:e.DurationInSecond,"1.1-1")," s"),a(8),p(e==null||e._source==null||e._source.log==null?null:e._source.log.respCode),a(11),p(m(43,11,e==null||e._source==null||e._source.log==null?null:e._source.log.req)),a(11),p(m(54,13,e==null||e._source==null||e._source.log==null?null:e._source.log.res))}}var J=(()=>{let l=class l{constructor(r,o){this.inventoryAsyncServiceLog=r,this.activatedRoute=o}ngOnInit(){let r=this.activatedRoute.snapshot.queryParams;this.initInventoryLog(r?.ID)}initInventoryLog(r){this.inventoryLog$=this.inventoryAsyncServiceLog.getInventoryAsyncLogDetail(r).pipe(y(o=>(o.hits[0].DurationInSecond=parseInt(o.hits[0]._source?.Duration)/1e3,o?.hits[0])),f(1))}};l.\u0275fac=function(o){return new(o||l)(c(P),c(M))},l.\u0275cmp=h({type:l,selectors:[["app-inventory-async-detail"]],standalone:!0,features:[I],decls:7,vars:6,consts:[[3,"headerTitle","hideSearchBox","hideSearchDropdown"],["role","button","routerLink","/menu/log/inventory-async",1,"btn","btn-secondary","btn-fill","btn-lg","me-3"],["class","container-fluid mt-3",4,"ngIf"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-12"],[1,"card"],[1,"card-header"],[1,"card-body"],[1,"row","mt-7"],[1,"col-sm-6"],[1,"info-label-group"],[1,"col-sm-12"],[1,"form-group"],[1,"col-sm-12","mt-2"]],template:function(o,w){o&1&&(t(0,"mainpanel",0)(1,"actions")(2,"a",1),n(3,"Back"),i()(),t(4,"content"),g(5,j,55,15,"div",2),s(6,"async"),i()()),o&2&&(u("headerTitle","Sync Inventory Async")("hideSearchBox",!0)("hideSearchDropdown",!0),a(5),u("ngIf",m(6,4,w.inventoryLog$)))},dependencies:[b,x,E,D,R,_,B,C,A,L]});let d=l;return d})();export{J as InventoryAsyncDetailComponent};
@@ -1,4 +0,0 @@
1
- import{a as Fe}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-VOTVGH4Q.js";import{e as Ne}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-RNVH2THT.js";import{a as $e,b as ue,c as He,d as We,e as de,f as Ke,g as he,h as ze,i as q,j as pe,k as I}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-KX4RY3YM.js";import{a as Ue}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-YZMKXH5W.js";import{b as le,c as U}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-L346FFAX.js";import{$ as E,A as Pe,B as De,I as ie,Jc as Le,Ka as $,N as xe,Nb as Re,Ob as je,Q as se,Sb as ce,T as x,U as ae,X as z,aa as N,b as g,ba as y,c as X,ca as h,fa as F,g as Ie,gc as Oe,h as Te,hc as Me,ic as Be,k as M,l as B,m as _,n as K,pa as _e,q as P,r as Ce,ua as L}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-IKKEE3ZC.js";import{a as oe,h as b}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-YQZUILJJ.js";var qe={production:!0,version:"3.9.6",firebaseConfig:{apiKey:"AIzaSyDnnitFXpM8TglWKNpzu4ChgF98n25Rgvw",authDomain:"auth.dealpos.com",projectId:"devops-signin",storageBucket:"devops-signin.appspot.com",messagingSenderId:"412465165194",appId:"1:412465165194:web:03d806f6b6ab6f8b460e73",measurementId:"G-MNDBRJ5XZD"},news:"https://changelog.dealpos.app/umbraco/delivery/api/v1/content?fetch=children:omni&sort=sortOrder:asc"};var pt="firebase",ft="10.7.1";q(pt,ft,"app");var G=new Re("ANGULARFIRE2_VERSION");var gt=(r,i)=>{let t=i?[i]:ze(),e=[];return t.forEach(n=>{n.container.getProvider(r).instances.forEach(s=>{e.includes(s)||e.push(s)})}),e},V=class{constructor(){return gt(mt)}},mt="app-check";function fe(){}var Y=class{zone;delegate;constructor(i,t=Te){this.zone=i,this.delegate=t}now(){return this.delegate.now()}schedule(i,t,e){let n=this.zone,o=function(s){n.runGuarded(()=>{i.apply(this,[s])})};return this.delegate.schedule(o,t,e)}},ge=class{zone;task=null;constructor(i){this.zone=i}call(i,t){let e=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",fe,{},fe,fe)),t.pipe(z({next:e,complete:e,error:e})).subscribe(i).add(e)}unscheduleTask(){setTimeout(()=>{this.task!=null&&this.task.state==="scheduled"&&(this.task.invoke(),this.task=null)},10)}},Ve=(()=>{class r{ngZone;outsideAngular;insideAngular;constructor(t){this.ngZone=t,this.outsideAngular=t.runOutsideAngular(()=>new Y(Zone.current)),this.insideAngular=t.run(()=>new Y(Zone.current,Ie)),globalThis.\u0275AngularFireScheduler||=this}static \u0275fac=function(e){return new(e||r)(h($))};static \u0275prov=E({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();function At(){let r=globalThis.\u0275AngularFireScheduler;if(!r)throw new Error(`Either AngularFireModule has not been provided in your AppModule (this can be done manually or implictly using
2
- provideFirebaseApp) or you're calling an AngularFire method outside of an NgModule (which is not supported).`);return r}function Ge(r){return wt(At())(r)}function wt(r){return function(t){return t=t.lift(new ge(r.ngZone)),t.pipe(B(r.outsideAngular),M(r.insideAngular))}}var kt="firebase",St="10.7.1";I.registerVersion(kt,St,"app-compat");var bt=["ngOnDestroy"],Ze=(r,i,t,e={})=>new Proxy(r,{get:(n,o)=>t.runOutsideAngular(()=>{if(r[o])return e?.spy?.get&&e.spy.get(o,r[o]),r[o];if(bt.indexOf(o)>-1)return()=>{};let s=i.toPromise().then(a=>{let c=a?.[o];return typeof c=="function"?c.bind(a):c?.then?c.then(l=>t.run(()=>l)):t.run(()=>c)});return new Proxy(()=>{},{get:(a,c)=>s[c],apply:(a,c,l)=>s.then(d=>{let u=d?.(...l);return e?.spy?.apply&&e.spy.apply(o,l,u),u})})})});var Q=class{constructor(i){return i}},ee=new y("angularfire2.app.options"),te=new y("angularfire2.app.name");function me(r,i,t){let e=typeof t=="string"&&t||"[DEFAULT]",n=typeof t=="object"&&t||{};n.name=n.name||e;let s=I.apps.filter(a=>a&&a.name===n.name)[0]||i.runOutsideAngular(()=>I.initializeApp(r,n));try{if(JSON.stringify(r)!==JSON.stringify(s.options)){let a=!!module.hot;Et("error",`${s.name} Firebase App already initialized with different options${a?", you may need to reload as Firebase is not HMR aware.":"."}`)}}catch{}return new Q(s)}var Et=(r,...i)=>{ce()&&typeof console<"u"&&console[r](...i)},yt={provide:Q,useFactory:me,deps:[ee,$,[new _e,te]]},_n=(()=>{class r{static initializeApp(t,e){return{ngModule:r,providers:[{provide:ee,useValue:t},{provide:te,useValue:e}]}}constructor(t){I.registerVersion("angularfire",G.full,"core"),I.registerVersion("angularfire",G.full,"app-compat"),I.registerVersion("angular",je.full,t.toString())}static \u0275fac=function(e){return new(e||r)(h(L))};static \u0275mod=F({type:r});static \u0275inj=N({providers:[yt]})}return r})();function Xe(r,i,t,e,n){let[,o,s]=globalThis.\u0275AngularfireInstanceCache.find(a=>a[0]===r)||[];if(o)return It(n,s)||(Je("error",`${i} was already initialized on the ${t} Firebase App with different settings.${Tt?" You may need to reload as Firebase is not HMR aware.":""}`),Je("warn",{is:n,was:s})),o;{let a=e();return globalThis.\u0275AngularfireInstanceCache.push([r,a,n]),a}}function It(r,i){try{return r.toString()===i.toString()}catch{return r===i}}var Tt=typeof module<"u"&&!!module.hot,Je=(r,...i)=>{ce()&&typeof console<"u"&&console[r](...i)};globalThis.\u0275AngularfireInstanceCache||=[];var Ct=new Map,Pt={activated:!1,tokenObservers:[]},Dt={initialized:!1,enabled:!1};function T(r){return Ct.get(r)||Object.assign({},Pt)}function nt(){return Dt}var xt="https://content-firebaseappcheck.googleapis.com/v1";var _t="exchangeDebugToken",Ye={OFFSET_DURATION:5*60*1e3,RETRIAL_MIN_WAIT:30*1e3,RETRIAL_MAX_WAIT:16*60*1e3},zn=24*60*60*1e3;var we=class{constructor(i,t,e,n,o){if(this.operation=i,this.retryPolicy=t,this.getWaitDuration=e,this.lowerBound=n,this.upperBound=o,this.pending=null,this.nextErrorWaitInterval=n,n>o)throw new Error("Proactive refresh lower bound greater than upper bound!")}start(){this.nextErrorWaitInterval=this.lowerBound,this.process(!0).catch(()=>{})}stop(){this.pending&&(this.pending.reject("cancelled"),this.pending=null)}isRunning(){return!!this.pending}process(i){return b(this,null,function*(){this.stop();try{this.pending=new ue,this.pending.promise.catch(t=>{}),yield Rt(this.getNextRun(i)),this.pending.resolve(),yield this.pending.promise,this.pending=new ue,this.pending.promise.catch(t=>{}),yield this.operation(),this.pending.resolve(),yield this.pending.promise,this.process(!0).catch(()=>{})}catch(t){this.retryPolicy(t)?this.process(!1).catch(()=>{}):this.stop()}})}getNextRun(i){if(i)return this.nextErrorWaitInterval=this.lowerBound,this.getWaitDuration();{let t=this.nextErrorWaitInterval;return this.nextErrorWaitInterval*=2,this.nextErrorWaitInterval>this.upperBound&&(this.nextErrorWaitInterval=this.upperBound),t}}};function Rt(r){return new Promise(i=>{setTimeout(i,r)})}var jt={"already-initialized":"You have already called initializeAppCheck() for FirebaseApp {$appName} with different options. To avoid this error, call initializeAppCheck() with the same options as when it was originally called. This will return the already initialized instance.","use-before-activation":"App Check is being used before initializeAppCheck() is called for FirebaseApp {$appName}. Call initializeAppCheck() before instantiating other Firebase services.","fetch-network-error":"Fetch failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.","fetch-parse-error":"Fetch client could not parse response. Original error: {$originalErrorMessage}.","fetch-status-error":"Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.","storage-open":"Error thrown when opening storage. Original error: {$originalErrorMessage}.","storage-get":"Error thrown when reading from storage. Original error: {$originalErrorMessage}.","storage-set":"Error thrown when writing to storage. Original error: {$originalErrorMessage}.","recaptcha-error":"ReCAPTCHA error.",throttled:"Requests throttled due to {$httpStatus} error. Attempts allowed again after {$time}"},R=new We("appCheck","AppCheck",jt);function rt(r){if(!T(r).activated)throw R.create("use-before-activation",{appName:r.name})}function ot(e,n){return b(this,arguments,function*({url:r,body:i},t){let o={"Content-Type":"application/json"},s=t.getImmediate({optional:!0});if(s){let f=yield s.getHeartbeatsHeader();f&&(o["X-Firebase-Client"]=f)}let a={method:"POST",body:JSON.stringify(i),headers:o},c;try{c=yield fetch(r,a)}catch(f){throw R.create("fetch-network-error",{originalErrorMessage:f?.message})}if(c.status!==200)throw R.create("fetch-status-error",{httpStatus:c.status});let l;try{l=yield c.json()}catch(f){throw R.create("fetch-parse-error",{originalErrorMessage:f?.message})}let d=l.ttl.match(/^([\d.]+)(s)$/);if(!d||!d[2]||isNaN(Number(d[1])))throw R.create("fetch-parse-error",{originalErrorMessage:`ttl field (timeToLive) is not in standard Protobuf Duration format: ${l.ttl}`});let u=Number(d[1])*1e3,p=Date.now();return{token:l.token,expireTimeMillis:p+u,issuedAtTimeMillis:p}})}function it(r,i){let{projectId:t,appId:e,apiKey:n}=r.options;return{url:`${xt}/projects/${t}/apps/${e}:${_t}?key=${n}`,body:{debug_token:i}}}var Ot="firebase-app-check-database",Mt=1,ve="firebase-app-check-store";var ne=null;function Bt(){return ne||(ne=new Promise((r,i)=>{try{let t=indexedDB.open(Ot,Mt);t.onsuccess=e=>{r(e.target.result)},t.onerror=e=>{var n;i(R.create("storage-open",{originalErrorMessage:(n=e.target.error)===null||n===void 0?void 0:n.message}))},t.onupgradeneeded=e=>{let n=e.target.result;switch(e.oldVersion){case 0:n.createObjectStore(ve,{keyPath:"compositeKey"})}}}catch(t){i(R.create("storage-open",{originalErrorMessage:t?.message}))}}),ne)}function Nt(r,i){return Ft(Lt(r),i)}function Ft(r,i){return b(this,null,function*(){let e=(yield Bt()).transaction(ve,"readwrite"),o=e.objectStore(ve).put({compositeKey:r,value:i});return new Promise((s,a)=>{o.onsuccess=c=>{s()},e.onerror=c=>{var l;a(R.create("storage-set",{originalErrorMessage:(l=c.target.error)===null||l===void 0?void 0:l.message}))}})})}function Lt(r){return`${r.options.appId}-${r.name}`}var ke=new Ke("@firebase/app-check");function Ae(r,i){return He()?Nt(r,i).catch(t=>{ke.warn(`Failed to write token to IndexedDB. Error: ${t}`)}):Promise.resolve()}function st(){return nt().enabled}function at(){return b(this,null,function*(){let r=nt();if(r.enabled&&r.token)return r.token.promise;throw Error(`
3
- Can't get debug token in production mode.
4
- `)})}var $t={error:"UNKNOWN_ERROR"};function Ht(r){return $e.encodeString(JSON.stringify(r),!1)}function Se(r,i=!1){return b(this,null,function*(){let t=r.app;rt(t);let e=T(t),n=e.token,o;if(n&&!J(n)&&(e.token=void 0,n=void 0),!n){let c=yield e.cachedTokenPromise;c&&(J(c)?n=c:yield Ae(t,void 0))}if(!i&&n&&J(n))return{token:n.token};let s=!1;if(st()){e.exchangeTokenPromise||(e.exchangeTokenPromise=ot(it(t,yield at()),r.heartbeatServiceProvider).finally(()=>{e.exchangeTokenPromise=void 0}),s=!0);let c=yield e.exchangeTokenPromise;return yield Ae(t,c),e.token=c,{token:c.token}}try{e.exchangeTokenPromise||(e.exchangeTokenPromise=e.provider.getToken().finally(()=>{e.exchangeTokenPromise=void 0}),s=!0),n=yield T(t).exchangeTokenPromise}catch(c){c.code==="appCheck/throttled"?ke.warn(c.message):ke.error(c),o=c}let a;return n?o?J(n)?a={token:n.token,internalError:o}:a=et(o):(a={token:n.token},e.token=n,yield Ae(t,n)):a=et(o),s&&Ut(t,a),a})}function Wt(r){return b(this,null,function*(){let i=r.app;rt(i);let{provider:t}=T(i);if(st()){let e=yield at(),{token:n}=yield ot(it(i,e),r.heartbeatServiceProvider);return{token:n}}else{let{token:e}=yield t.getToken();return{token:e}}})}function Kt(r,i,t,e){let{app:n}=r,o=T(n),s={next:t,error:e,type:i};if(o.tokenObservers=[...o.tokenObservers,s],o.token&&J(o.token)){let a=o.token;Promise.resolve().then(()=>{t({token:a.token}),Qe(r)}).catch(()=>{})}o.cachedTokenPromise.then(()=>Qe(r))}function ct(r,i){let t=T(r),e=t.tokenObservers.filter(n=>n.next!==i);e.length===0&&t.tokenRefresher&&t.tokenRefresher.isRunning()&&t.tokenRefresher.stop(),t.tokenObservers=e}function Qe(r){let{app:i}=r,t=T(i),e=t.tokenRefresher;e||(e=zt(r),t.tokenRefresher=e),!e.isRunning()&&t.isTokenAutoRefreshEnabled&&e.start()}function zt(r){let{app:i}=r;return new we(()=>b(this,null,function*(){let t=T(i),e;if(t.token?e=yield Se(r,!0):e=yield Se(r),e.error)throw e.error;if(e.internalError)throw e.internalError}),()=>!0,()=>{let t=T(i);if(t.token){let e=t.token.issuedAtTimeMillis+(t.token.expireTimeMillis-t.token.issuedAtTimeMillis)*.5+3e5,n=t.token.expireTimeMillis-5*60*1e3;return e=Math.min(e,n),Math.max(0,e-Date.now())}else return 0},Ye.RETRIAL_MIN_WAIT,Ye.RETRIAL_MAX_WAIT)}function Ut(r,i){let t=T(r).tokenObservers;for(let e of t)try{e.type==="EXTERNAL"&&i.error!=null?e.error(i.error):e.next(i)}catch{}}function J(r){return r.expireTimeMillis-Date.now()>0}function et(r){return{token:Ht($t),error:r}}var be=class{constructor(i,t){this.app=i,this.heartbeatServiceProvider=t}_delete(){let{tokenObservers:i}=T(this.app);for(let t of i)ct(this.app,t.next);return Promise.resolve()}};function qt(r,i){return new be(r,i)}function Vt(r){return{getToken:i=>Se(r,i),getLimitedUseToken:()=>Wt(r),addTokenListener:i=>Kt(r,"INTERNAL",i),removeTokenListener:i=>ct(r.app,i)}}var Gt="@firebase/app-check",Jt="0.8.1";var Zt="app-check",tt="app-check-internal";function Xt(){he(new de(Zt,r=>{let i=r.getProvider("app").getImmediate(),t=r.getProvider("heartbeat");return qt(i,t)},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((r,i,t)=>{r.getProvider(tt).initialize()})),he(new de(tt,r=>{let i=r.getProvider("app-check").getImmediate();return Vt(i)},"PUBLIC").setInstantiationMode("EXPLICIT")),q(Gt,Jt)}Xt();var Yt=["localhost","0.0.0.0","127.0.0.1"],nr=typeof window<"u"&&Yt.includes(window.location.hostname);var en=new y("angularfire2.auth.use-emulator"),tn=new y("angularfire2.auth.settings"),nn=new y("angularfire2.auth.tenant-id"),rn=new y("angularfire2.auth.langugage-code"),on=new y("angularfire2.auth.use-device-language"),sn=new y("angularfire.auth.persistence"),an=(r,i,t,e,n,o,s,a)=>Xe(`${r.name}.auth`,"AngularFireAuth",r.name,()=>{let c=i.runOutsideAngular(()=>r.auth());if(t&&c.useEmulator(...t),e&&(c.tenantId=e),c.languageCode=n,o&&c.useDeviceLanguage(),s)for(let[l,d]of Object.entries(s))c.settings[l]=d;return a&&c.setPersistence(a),c},[t,e,n,o,s,a]),Ee=(()=>{class r{authState;idToken;user;idTokenResult;credential;constructor(t,e,n,o,s,a,c,l,d,u,p,f){let W=new X,j=K(void 0).pipe(M(s.outsideAngular),x(()=>o.runOutsideAngular(()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-G3L2MSRM.js"))),P(()=>me(t,o,e)),P(C=>an(C,o,a,l,d,u,c,p)),se({bufferSize:1,refCount:!1}));if(Be(n))this.authState=this.user=this.idToken=this.idTokenResult=this.credential=K(null);else{j.pipe(xe()).subscribe();let C=j.pipe(x(A=>A.getRedirectResult().then(D=>D,()=>null)),Ge,se({bufferSize:1,refCount:!1})),Z=j.pipe(x(A=>new g(D=>({unsubscribe:o.runOutsideAngular(()=>A.onAuthStateChanged(O=>D.next(O),O=>D.error(O),()=>D.complete()))})))),re=j.pipe(x(A=>new g(D=>({unsubscribe:o.runOutsideAngular(()=>A.onIdTokenChanged(O=>D.next(O),O=>D.error(O),()=>D.complete()))}))));this.authState=C.pipe(ae(Z),B(s.outsideAngular),M(s.insideAngular)),this.user=C.pipe(ae(re),B(s.outsideAngular),M(s.insideAngular)),this.idToken=this.user.pipe(x(A=>A?_(A.getIdToken()):K(null))),this.idTokenResult=this.user.pipe(x(A=>A?_(A.getIdTokenResult()):K(null))),this.credential=Pe(C,W,this.authState.pipe(De(A=>!A))).pipe(P(A=>A?.user?A:null),B(s.outsideAngular),M(s.insideAngular))}return Ze(this,j,o,{spy:{apply:(C,Z,re)=>{(C.startsWith("signIn")||C.startsWith("createUser"))&&re.then(A=>W.next(A))}}})}static \u0275fac=function(e){return new(e||r)(h(ee),h(te,8),h(L),h($),h(Ve),h(en,8),h(tn,8),h(nn,8),h(rn,8),h(on,8),h(sn,8),h(V,8))};static \u0275prov=E({token:r,factory:r.\u0275fac,providedIn:"any"})}return r})(),wr=(()=>{class r{constructor(){I.registerVersion("angularfire",G.full,"auth-compat")}static \u0275fac=function(e){return new(e||r)};static \u0275mod=F({type:r});static \u0275inj=N({providers:[Ee]})}return r})();function m(r,i,t,e){return new Promise((n,o)=>{r||o("IndexedDB not available");let s=r.open(i,t),a;s.onsuccess=c=>{a=s.result,n(a)},s.onerror=c=>{o(`IndexedDB error: ${s.error}`)},typeof e=="function"&&(s.onupgradeneeded=c=>{e(c,a)})})}function lt(r,i,t,e,n){if(!r)return;let o=r.open(i,t);o.onupgradeneeded=s=>{let a=s.target.result;e.forEach(l=>{if(!a.objectStoreNames.contains(l.store)){let d=a.createObjectStore(l.store,l.storeConfig);l.storeSchema.forEach(u=>{d.createIndex(u.name,u.keypath,u.options)})}});let c=n&&n();c&&Object.keys(c).map(l=>parseInt(l,10)).filter(l=>l>s.oldVersion).sort((l,d)=>l-d).forEach(l=>{c[l](a,o.transaction)}),a.close()},o.onsuccess=s=>{s.target.result.close()}}function ln(r,i,t){if(!r||!i||!t)throw Error('Params: "dbName", "version", "storeName" are mandatory.');return new g(e=>{try{let n=i+1,o=indexedDB.open(r,n);o.onupgradeneeded=s=>{let a=s.target.result;a.deleteObjectStore(t),a.close(),console.log("onupgradeneeded"),e.next(!0),e.complete()},o.onerror=s=>e.error(s)}catch(n){e.error(n)}})}function un(r,i){return r.objectStoreNames.contains(i)}function S(r,i,t){r||t("You need to use the openDatabase function to create a database before you query it!"),un(r,i)||t(`objectStore does not exists: ${i}`)}function v(r,i){let t=r.transaction(i.storeName,i.dbMode);return t.onerror=i.error,t.onabort=i.abort,t}function k(r,i,t,e){return{storeName:i,dbMode:r,error:n=>{t(n)},abort:n=>{t(n)}}}var w=function(r){return r.readonly="readonly",r.readwrite="readwrite",r}(w||{}),ut=new y(null),ye=(()=>{class r{constructor(t,e){if(this.dbConfig=t,this.platformId=e,!t.name)throw new Error("NgxIndexedDB: Please, provide the dbName in the configuration");if(!t.version)throw new Error("NgxIndexedDB: Please, provide the db version in the configuration");this.isBrowser=Me(this.platformId),this.isBrowser&&(this.indexedDB=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB,lt(this.indexedDB,t.name,t.version,t.objectStoresMeta,t.migrationFactory),m(this.indexedDB,t.name).then(n=>{n.version!==t.version&&(this.dbConfig.version=n.version)}))}createObjectStore(t,e){let n=[t];lt(this.indexedDB,this.dbConfig.name,++this.dbConfig.version,n,e)}add(t,e,n){return new g(o=>{m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(s=>{let c=v(s,k(w.readwrite,t,d=>o.error(d))).objectStore(t),l=n?c.add(e,n):c.add(e);l.onsuccess=d=>b(this,null,function*(){let u=d.target.result,p=c.get(u);p.onsuccess=f=>{o.next(f.target.result),o.complete()}})}).catch(s=>o.error(s))})}bulkAdd(t,e){let n=new Promise((o,s)=>{m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(a=>{let l=v(a,k(w.readwrite,t,o,s)).objectStore(t),d=e.map(u=>new Promise((p,f)=>{let W=u.key;delete u.key;let j=W?l.add(u,W):l.add(u);j.onsuccess=C=>{let Z=C.target.result;p(Z)}}));o(Promise.all(d))}).catch(a=>s(a))});return _(n)}bulkDelete(t,e){let n=e.map(o=>new Promise((s,a)=>{m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(c=>{let l=v(c,k(w.readwrite,t,a,s));l.objectStore(t).delete(o),l.oncomplete=()=>{this.getAll(t).pipe(ie(1)).subscribe(u=>{s(u)})}}).catch(c=>a(c))}));return _(Promise.all(n))}getByKey(t,e){return new g(n=>{m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(o=>{let c=v(o,k(w.readonly,t,n.error)).objectStore(t).get(e);c.onsuccess=l=>{n.next(l.target.result),n.complete()},c.onerror=l=>{n.error(l)}}).catch(o=>n.error(o))})}bulkGet(t,e){let n=e.map(o=>this.getByKey(t,o));return new g(o=>{Ce(n).subscribe(s=>{o.next(s),o.complete()})})}getByID(t,e){return new g(n=>{m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(o=>{S(o,t,l=>n.error(l));let c=v(o,k(w.readonly,t,n.error,n.next)).objectStore(t).get(e);c.onsuccess=l=>{n.next(l.target.result)}}).catch(o=>n.error(o))})}getByIndex(t,e,n){return new g(o=>{m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(s=>{S(s,t,u=>o.error(u));let d=v(s,k(w.readonly,t,o.error)).objectStore(t).index(e).get(n);d.onsuccess=u=>{o.next(u.target.result),o.complete()}}).catch(s=>o.error(s))})}getAll(t){return new g(e=>{m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(n=>{S(n,t,c=>e.error(c));let a=v(n,k(w.readonly,t,e.error,e.next)).objectStore(t).getAll();a.onerror=c=>{e.error(c)},a.onsuccess=({target:{result:c}})=>{e.next(c),e.complete()}}).catch(n=>e.error(n))})}update(t,e){return new g(n=>{m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(o=>{S(o,t,l=>n.error(l));let a=v(o,k(w.readwrite,t,l=>n.error(l))).objectStore(t),c=a.put(e);c.onsuccess=l=>b(this,null,function*(){let d=l.target.result,u=a.get(d);u.onsuccess=p=>{n.next(p.target.result),n.complete()}})}).catch(o=>n.error(o))})}delete(t,e){return new g(n=>{m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(o=>{S(o,t,c=>n.error(c));let s=v(o,k(w.readwrite,t,c=>n.error(c)));s.objectStore(t).delete(e),s.oncomplete=()=>{this.getAll(t).pipe(ie(1)).subscribe(c=>{n.next(c),n.complete()})}}).catch(o=>n.error(o))})}deleteByKey(t,e){return new g(n=>{m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(o=>{S(o,t,c=>n.error(c));let s=v(o,k(w.readwrite,t,c=>n.error(c))),a=s.objectStore(t);s.oncomplete=()=>{n.next(!0),n.complete()},a.delete(e)}).catch(o=>n.error(o))})}clear(t){return new g(e=>{m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(n=>{S(n,t,a=>e.error(a));let o=v(n,k(w.readwrite,t,a=>e.error(a)));o.objectStore(t).clear(),o.oncomplete=()=>{e.next(!0),e.complete()}}).catch(n=>e.error(n))})}deleteDatabase(){return new g(t=>{m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(e=>b(this,null,function*(){yield e.close();let n=this.indexedDB.deleteDatabase(this.dbConfig.name);n.onsuccess=()=>{t.next(!0),t.complete()},n.onerror=o=>t.error(o),n.onblocked=()=>{throw new Error("Unable to delete database because it's blocked")}})).catch(e=>t.error(e))})}openCursor(t,e){return new g(n=>{m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(o=>{S(o,t,l=>n.error(l));let a=v(o,k(w.readonly,t,n.error)).objectStore(t),c=e===void 0?a.openCursor():a.openCursor(e);c.onsuccess=l=>{n.next(l),n.complete()}}).catch(o=>n.error(o))})}openCursorByIndex(t,e,n,o=w.readonly){let s=new X;return m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(a=>{S(a,t,p=>{s.error(p)});let u=v(a,k(o,t,p=>{s.error(p)},()=>{s.next()})).objectStore(t).index(e).openCursor(n);u.onsuccess=p=>{s.next(p)}}).catch(a=>s.error(a)),s}getAllByIndex(t,e,n){let o=[];return new g(s=>{m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(a=>{S(a,t,p=>s.error(p));let u=v(a,k(w.readonly,t,s.error)).objectStore(t).index(e).openCursor(n);u.onsuccess=p=>{let f=p.target.result;f?(o.push(f.value),f.continue()):(s.next(o),s.complete())}}).catch(a=>s.error(a))})}getAllKeysByIndex(t,e,n){let o=[];return new g(s=>{m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(a=>{S(a,t,p=>s.error(p));let u=v(a,k(w.readonly,t,s.error)).objectStore(t).index(e).openKeyCursor(n);u.onsuccess=p=>{let f=p.target.result;f?(o.push({primaryKey:f.primaryKey,key:f.key}),f.continue()):(s.next(o),s.complete())}}).catch(a=>s.error(a))})}count(t,e){return new g(n=>{m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(o=>{S(o,t,l=>n.error(l));let c=v(o,k(w.readonly,t,n.error)).objectStore(t).count(e);c.onerror=l=>n.error(l),c.onsuccess=l=>{n.next(l.target.result),n.complete()}}).catch(o=>n.error(o))})}countByIndex(t,e,n){return new g(o=>{m(this.indexedDB,this.dbConfig.name,this.dbConfig.version).then(s=>{S(s,t,u=>o.error(u));let d=v(s,k(w.readonly,t,o.error)).objectStore(t).index(e).count(n);d.onerror=u=>o.error(u),d.onsuccess=u=>{o.next(u.target.result),o.complete()}}).catch(s=>o.error(s))})}deleteObjectStore(t){return ln(this.dbConfig.name,++this.dbConfig.version,t)}}return r.\u0275fac=function(t){return new(t||r)(h(ut),h(L))},r.\u0275prov=E({token:r,factory:r.\u0275fac}),r})(),Tr=(()=>{class r{static forRoot(t){return{ngModule:r,providers:[ye,{provide:ut,useValue:t}]}}}return r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=F({type:r}),r.\u0275inj=N({imports:[[Oe]]}),r})();var dt=(()=>{let i=class i{constructor(e){this.db=e,this.DATABASE="Categories"}saveCategoriesByChannelType(e,n){let o=this.getKey(n);return this.db.add(this.DATABASE,e,o).pipe(P(s=>e))}getCategoriesByChannelType(e){let n=this.getKey(e);return this.db.getByKey(this.DATABASE,n)}getKey(e){let n="";switch(e){case le.Lazada:n="Lazada";break;case le.Tokopedia:n="Tokopedia";break}return n}clearDatabase(){this.db.clear(this.DATABASE)}getHostName(){let e=localStorage.getItem("Authorization");return this.hostName=JSON.parse(e)?.Host,this.hostName}};i.\u0275fac=function(n){return new(n||i)(h(ye))},i.\u0275prov=E({token:i,factory:i.\u0275fac,providedIn:"root"});let r=i;return r})();var ht=(()=>{let i=class i{constructor(){}inititalizeIntercom(){let e=this.getFromLocalStorage();e?.Enabled&&window.Intercom("boot",{app_id:"xv1oomgl",name:e.Name,email:e.Email,created_at:e.Created,user_hash:e.Hash})}shutdown(){this.getFromLocalStorage()?.Enabled&&(window.Intercom("shutdown"),this.clearStorage())}clearStorage(){localStorage.removeItem("Intercom")}updateLocalStorage(e){let n={Enabled:!0};e&&(n=oe(oe({},n),e)),localStorage.setItem("Intercom",JSON.stringify(n))}getFromLocalStorage(){let e=localStorage.getItem("Intercom");return JSON.parse(e)}hideLauncher(){let e=this.getFromLocalStorage();e?.Enabled&&(window.Intercom("update",{app_id:"xv1oomgl",hide_default_launcher:!0}),e.hide_default_launcher=!0,this.updateLocalStorage(e))}showLauncher(){let e=this.getFromLocalStorage();e?.Enabled&&(window.Intercom("update",{app_id:"xv1oomgl",hide_default_launcher:!1}),e.hide_default_launcher=!1,this.updateLocalStorage(e))}isHideLauncher(){let e=this.getFromLocalStorage();return U.IsEmpty(e?.hide_default_launcher)?!1:e?.hide_default_launcher}};i.\u0275fac=function(n){return new(n||i)},i.\u0275prov=E({token:i,factory:i.\u0275fac,providedIn:"root"});let r=i;return r})();var bi=(()=>{let i=class i{constructor(e,n,o,s,a,c,l){this.httpService=e,this.tokenDecodeService=n,this.afAuth=o,this.ngxPermission=s,this.localDataService=a,this.router=c,this.intercomService=l,this.channels=[]}login(e){return this.httpService.post("/api/token/Login",e).pipe(z(n=>{this.setLocalStorage(n,e.Host,e.Username),this.loadPermissions()}))}getNews(){return this.httpService.get(qe.news).pipe(P(e=>e?.items?.map(n=>n?.properties)))}loginWithGoogle(e,n){e.preventDefault();let o=new pe;return o.setCustomParameters({prompt:"select_account"}),_(this.afAuth.signInWithPopup(o)).pipe(P(s=>s.credential),P(s=>s.idToken),x(s=>this.httpService.post("/api/token/LoginWithSocialProvider",JSON.stringify({IDToken:s,Host:n}))),z(s=>{this.setLocalStorage(s,n,null),this.loadPermissions()}))}setLocalStorage(e,n,o){localStorage.setItem("user",JSON.stringify(e)),localStorage.setItem("Authorization",JSON.stringify({Host:n,username:o})),localStorage.setItem("channels",JSON.stringify(e.Channels)),this.intercomService.updateLocalStorage(e.IntercomWidget),this.intercomService.inititalizeIntercom()}loadPermissions(){this.ngxPermission.loadPermissions([]);let e=localStorage.getItem("user");if(U.IsNotEmpty(e)){let n=this.tokenDecodeService.GetRoles();this.ngxPermission.loadPermissions(n)}}getChannels(){let e=JSON.parse(JSON.stringify(this.channels));if(this.channels.length===0){let n=localStorage.getItem("channels");n?(this.channels=JSON.parse(n),e=JSON.parse(JSON.stringify(this.channels))):(this.channels=[],e=[])}return e=this.setChannelLogo(e),e}setChannelLogo(e){return e=e.map(n=>(n.logo=U.getChannelLogoByTypeId(n.TypeID),n)),e}logout(){this.clearLocalStorage(),this.ngxPermission.flushPermissions()}isActiveToken(){let e=JSON.parse(window.localStorage.getItem("user")),n=new Date;if(e!=null){let o=new Date(e.Token.expiredAt);return n<o?!0:(this.clearLocalStorage(),!1)}else return!1}getDomain(){if(!this.domain){let e=localStorage.getItem("Authorization");this.domain="https://"+JSON.parse(e).Host}return this.domain}clearLocalStorage(){this.domain=null,this.channels=[],localStorage.removeItem("channels"),localStorage.removeItem("user"),this.intercomService.shutdown(),this.localDataService.clearDatabase(),this.router.navigate([""])}};i.\u0275fac=function(n){return new(n||i)(h(Ne),h(Fe),h(Ee),h(Ue),h(dt),h(Le),h(ht))},i.\u0275prov=E({token:i,factory:i.\u0275fac,providedIn:"root"});let r=i;return r})();export{qe as a,_n as b,wr as c,Tr as d,dt as e,bi as f};
@@ -1 +0,0 @@
1
- import{$ as w,$a as Ze,B as ji,Ba as H,Ca as qi,Dc as ve,Ec as Pt,Fa as ke,Fc as Je,Ga as M,Gb as Ot,H as $e,I as We,Ia as Hi,Ib as Ji,Ja as be,Jb as es,K as Bi,Ka as j,Lb as ts,Ma as Ce,Na as Dt,Oa as Qe,Qa as Ge,Qb as is,R as qe,Rb as ss,S as Ui,Tb as Ne,Ua as Mt,V as He,Va as Ye,Wb as L,X as zi,Za as kt,_ as E,_a as Ct,a as Ri,aa as C,b as Ve,ba as x,c as q,ca as y,d as Pi,da as U,ea as It,eb as Qi,fa as N,ga as ce,hb as Gi,hc as ns,ia as Ki,jb as Xe,kb as Yi,lb as Nt,n as Fi,nc as rs,pb as Zi,pc as os,q as Me,r as Li,rb as Xi,sc as Z,ta as Vi,u as xi,ua as $i,va as ie,wa as Wi,wc as as,xc as Rt}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-IKKEE3ZC.js";import{a as R,b as Oi}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.9.7/Marketplace/chunk-YQZUILJJ.js";var Lt;try{Lt=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Lt=!1}var $=(()=>{let e=class e{constructor(t){this._platformId=t,this.isBrowser=this._platformId?ns(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||Lt)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}};e.\u0275fac=function(s){return new(s||e)(y($i))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var Ee,ls=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function wa(){if(Ee)return Ee;if(typeof document!="object"||!document)return Ee=new Set(ls),Ee;let n=document.createElement("input");return Ee=new Set(ls.filter(e=>(n.setAttribute("type",e),n.type===e))),Ee}var Oe;function gn(){if(Oe==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Oe=!0}))}finally{Oe=Oe||!1}return Oe}function Te(n){return gn()?n:!!n.capture}var de;function Sa(){if(de==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return de=!1,de;if("scrollBehavior"in document.documentElement.style)de=!0;else{let n=Element.prototype.scrollTo;n?de=!/\{\s*\[native code\]\s*\}/.test(n.toString()):de=!1}}return de}var Ft;function _n(){if(Ft==null){let n=typeof document<"u"?document.head:null;Ft=!!(n&&(n.createShadowRoot||n.attachShadow))}return Ft}function cs(n){if(_n()){let e=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function ds(){let n=typeof document<"u"&&document?document.activeElement:null;for(;n&&n.shadowRoot;){let e=n.shadowRoot.activeElement;if(e===n)break;n=e}return n}function re(n){return n.composedPath?n.composedPath()[0]:n.target}function hs(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function et(n,...e){return e.length?e.some(i=>n[i]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}function jt(n){return n!=null&&`${n}`!="false"}function us(n,e=0){return yn(n)?Number(n):e}function yn(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}function Bt(n){return Array.isArray(n)?n:[n]}function Da(n){return n==null?"":typeof n=="string"?n:`${n}px`}function ue(n){return n instanceof H?n.nativeElement:n}function Ma(n,e=/\s+/){let i=[];if(n!=null){let t=Array.isArray(n)?n:`${n}`.split(e);for(let s of t){let r=`${s}`.trim();r&&i.push(r)}}return i}var bn=(()=>{let e=class e{create(t){return typeof MutationObserver>"u"?null:new MutationObserver(t)}};e.\u0275fac=function(s){return new(s||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var ms=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=N({type:e}),e.\u0275inj=C({providers:[bn]});let n=e;return n})();var fs=new Set,me,vn=(()=>{let e=class e{constructor(t,s){this._platform=t,this._nonce=s,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Tn}matchMedia(t){return(this._platform.WEBKIT||this._platform.BLINK)&&En(t,this._nonce),this._matchMedia(t)}};e.\u0275fac=function(s){return new(s||e)(y($),y(Wi,8))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function En(n,e){if(!fs.has(n))try{me||(me=document.createElement("style"),e&&(me.nonce=e),me.setAttribute("type","text/css"),document.head.appendChild(me)),me.sheet&&(me.sheet.insertRule(`@media ${n} {body{ }}`,0),fs.add(n))}catch(i){console.error(i)}}function Tn(n){return{matches:n==="all"||n==="",media:n,addListener:()=>{},removeListener:()=>{}}}var gs=(()=>{let e=class e{constructor(t,s){this._mediaMatcher=t,this._zone=s,this._queries=new Map,this._destroySubject=new q}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return ps(Bt(t)).some(r=>this._registerQuery(r).mql.matches)}observe(t){let r=ps(Bt(t)).map(a=>this._registerQuery(a).observable),o=Li(r);return o=xi(o.pipe(We(1)),o.pipe(qe(1),$e(0))),o.pipe(Me(a=>{let l={matches:!1,breakpoints:{}};return a.forEach(({matches:c,query:d})=>{l.matches=l.matches||c,l.breakpoints[d]=c}),l}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);let s=this._mediaMatcher.matchMedia(t),o={observable:new Ve(a=>{let l=c=>this._zone.run(()=>a.next(c));return s.addListener(l),()=>{s.removeListener(l)}}).pipe(Ui(s),Me(({matches:a})=>({query:t,matches:a})),He(this._destroySubject)),mql:s};return this._queries.set(t,o),o}};e.\u0275fac=function(s){return new(s||e)(y(vn),y(j))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function ps(n){return n.map(e=>e.split(",")).reduce((e,i)=>e.concat(i)).map(e=>e.trim())}var ws=" ";function zn(n,e,i){let t=st(n,e);t.some(s=>s.trim()==i.trim())||(t.push(i.trim()),n.setAttribute(e,t.join(ws)))}function Kn(n,e,i){let s=st(n,e).filter(r=>r!=i.trim());s.length?n.setAttribute(e,s.join(ws)):n.removeAttribute(e)}function st(n,e){return(n.getAttribute(e)||"").match(/\S+/g)||[]}var Ss="cdk-describedby-message",tt="cdk-describedby-host",Kt=0,il=(()=>{let e=class e{constructor(t,s){this._platform=s,this._messageRegistry=new Map,this._messagesContainer=null,this._id=`${Kt++}`,this._document=t,this._id=U(Vi)+"-"+Kt++}describe(t,s,r){if(!this._canBeDescribed(t,s))return;let o=Ut(s,r);typeof s!="string"?(_s(s,this._id),this._messageRegistry.set(o,{messageElement:s,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(s,r),this._isElementDescribedByMessage(t,o)||this._addMessageReference(t,o)}removeDescription(t,s,r){if(!s||!this._isElementNode(t))return;let o=Ut(s,r);if(this._isElementDescribedByMessage(t,o)&&this._removeMessageReference(t,o),typeof s=="string"){let a=this._messageRegistry.get(o);a&&a.referenceCount===0&&this._deleteMessageElement(o)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let t=this._document.querySelectorAll(`[${tt}="${this._id}"]`);for(let s=0;s<t.length;s++)this._removeCdkDescribedByReferenceIds(t[s]),t[s].removeAttribute(tt);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(t,s){let r=this._document.createElement("div");_s(r,this._id),r.textContent=t,s&&r.setAttribute("role",s),this._createMessagesContainer(),this._messagesContainer.appendChild(r),this._messageRegistry.set(Ut(t,s),{messageElement:r,referenceCount:0})}_deleteMessageElement(t){this._messageRegistry.get(t)?.messageElement?.remove(),this._messageRegistry.delete(t)}_createMessagesContainer(){if(this._messagesContainer)return;let t="cdk-describedby-message-container",s=this._document.querySelectorAll(`.${t}[platform="server"]`);for(let o=0;o<s.length;o++)s[o].remove();let r=this._document.createElement("div");r.style.visibility="hidden",r.classList.add(t),r.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&r.setAttribute("platform","server"),this._document.body.appendChild(r),this._messagesContainer=r}_removeCdkDescribedByReferenceIds(t){let s=st(t,"aria-describedby").filter(r=>r.indexOf(Ss)!=0);t.setAttribute("aria-describedby",s.join(" "))}_addMessageReference(t,s){let r=this._messageRegistry.get(s);zn(t,"aria-describedby",r.messageElement.id),t.setAttribute(tt,this._id),r.referenceCount++}_removeMessageReference(t,s){let r=this._messageRegistry.get(s);r.referenceCount--,Kn(t,"aria-describedby",r.messageElement.id),t.removeAttribute(tt)}_isElementDescribedByMessage(t,s){let r=st(t,"aria-describedby"),o=this._messageRegistry.get(s),a=o&&o.messageElement.id;return!!a&&r.indexOf(a)!=-1}_canBeDescribed(t,s){if(!this._isElementNode(t))return!1;if(s&&typeof s=="object")return!0;let r=s==null?"":`${s}`.trim(),o=t.getAttribute("aria-label");return r?!o||o.trim()!==r:!1}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}};e.\u0275fac=function(s){return new(s||e)(y(L),y($))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function Ut(n,e){return typeof n=="string"?`${e||""}/${n}`:n}function _s(n,e){n.id||(n.id=`${Ss}-${e}-${Kt++}`)}var nt=class{constructor(e){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new q,this._typeaheadSubscription=Ri.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=i=>i.disabled,this._pressedLetters=[],this.tabOut=new q,this.change=new q,e instanceof Ot&&(this._itemChangesSubscription=e.changes.subscribe(i=>{if(this._activeItem){let s=i.toArray().indexOf(this._activeItem);s>-1&&s!==this._activeItemIndex&&(this._activeItemIndex=s)}}))}skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(zi(i=>this._pressedLetters.push(i)),$e(e),ji(()=>this._pressedLetters.length>0),Me(()=>this._pressedLetters.join(""))).subscribe(i=>{let t=this._getItemsArray();for(let s=1;s<t.length+1;s++){let r=(this._activeItemIndex+s)%t.length,o=t[r];if(!this._skipPredicateFn(o)&&o.getLabel().toUpperCase().trim().indexOf(i)===0){this.setActiveItem(r);break}}this._pressedLetters=[]}),this}cancelTypeahead(){return this._pressedLetters=[],this}withHomeAndEnd(e=!0){return this._homeAndEnd=e,this}withPageUpDown(e=!0,i=10){return this._pageUpAndDown={enabled:e,delta:i},this}setActiveItem(e){let i=this._activeItem;this.updateActiveItem(e),this._activeItem!==i&&this.change.next(this._activeItemIndex)}onKeydown(e){let i=e.keyCode,s=["altKey","ctrlKey","metaKey","shiftKey"].every(r=>!e[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(i){case 9:this.tabOut.next();return;case 40:if(this._vertical&&s){this.setNextItemActive();break}else return;case 38:if(this._vertical&&s){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&s){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&s){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&s){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&s){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&s){let r=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&s){let r=this._activeItemIndex+this._pageUpAndDown.delta,o=this._getItemsArray().length;this._setActiveItemByIndex(r<o?r:o-1,-1);break}else return;default:(s||et(e,"shiftKey"))&&(e.key&&e.key.length===1?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(i>=65&&i<=90||i>=48&&i<=57)&&this._letterKeyStream.next(String.fromCharCode(i)));return}this._pressedLetters=[],e.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(e){let i=this._getItemsArray(),t=typeof e=="number"?e:i.indexOf(e),s=i[t];this._activeItem=s??null,this._activeItemIndex=t}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){let i=this._getItemsArray();for(let t=1;t<=i.length;t++){let s=(this._activeItemIndex+e*t+i.length)%i.length,r=i[s];if(!this._skipPredicateFn(r)){this.setActiveItem(s);return}}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,i){let t=this._getItemsArray();if(t[e]){for(;this._skipPredicateFn(t[e]);)if(e+=i,!t[e])return;this.setActiveItem(e)}}_getItemsArray(){return this._items instanceof Ot?this._items.toArray():this._items}},ys=class extends nt{setActiveItem(e){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(e),this.activeItem&&this.activeItem.setActiveStyles()}},bs=class extends nt{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin)}};var Vn=(()=>{let e=class e{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return Wn(t)&&getComputedStyle(t).visibility==="visible"}isTabbable(t){if(!this._platform.isBrowser)return!1;let s=$n(Jn(t));if(s&&(vs(s)===-1||!this.isVisible(s)))return!1;let r=t.nodeName.toLowerCase(),o=vs(t);return t.hasAttribute("contenteditable")?o!==-1:r==="iframe"||r==="object"||this._platform.WEBKIT&&this._platform.IOS&&!Zn(t)?!1:r==="audio"?t.hasAttribute("controls")?o!==-1:!1:r==="video"?o===-1?!1:o!==null?!0:this._platform.FIREFOX||t.hasAttribute("controls"):t.tabIndex>=0}isFocusable(t,s){return Xn(t)&&!this.isDisabled(t)&&(s?.ignoreVisibility||this.isVisible(t))}};e.\u0275fac=function(s){return new(s||e)(y($))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function $n(n){try{return n.frameElement}catch{return null}}function Wn(n){return!!(n.offsetWidth||n.offsetHeight||typeof n.getClientRects=="function"&&n.getClientRects().length)}function qn(n){let e=n.nodeName.toLowerCase();return e==="input"||e==="select"||e==="button"||e==="textarea"}function Hn(n){return Gn(n)&&n.type=="hidden"}function Qn(n){return Yn(n)&&n.hasAttribute("href")}function Gn(n){return n.nodeName.toLowerCase()=="input"}function Yn(n){return n.nodeName.toLowerCase()=="a"}function As(n){if(!n.hasAttribute("tabindex")||n.tabIndex===void 0)return!1;let e=n.getAttribute("tabindex");return!!(e&&!isNaN(parseInt(e,10)))}function vs(n){if(!As(n))return null;let e=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}function Zn(n){let e=n.nodeName.toLowerCase(),i=e==="input"&&n.type;return i==="text"||i==="password"||e==="select"||e==="textarea"}function Xn(n){return Hn(n)?!1:qn(n)||Qn(n)||n.hasAttribute("contenteditable")||As(n)}function Jn(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}var Vt=class{get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}constructor(e,i,t,s,r=!1){this._element=e,this._checker=i,this._ngZone=t,this._document=s,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,r||this.attachAnchors()}destroy(){let e=this._startAnchor,i=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.remove()),i&&(i.removeEventListener("focus",this.endAnchorListener),i.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(e){return new Promise(i=>{this._executeOnStable(()=>i(this.focusInitialElement(e)))})}focusFirstTabbableElementWhenReady(e){return new Promise(i=>{this._executeOnStable(()=>i(this.focusFirstTabbableElement(e)))})}focusLastTabbableElementWhenReady(e){return new Promise(i=>{this._executeOnStable(()=>i(this.focusLastTabbableElement(e)))})}_getRegionBoundary(e){let i=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);return e=="start"?i.length?i[0]:this._getFirstTabbableElement(this._element):i.length?i[i.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(e){let i=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(i){if(!this._checker.isFocusable(i)){let t=this._getFirstTabbableElement(i);return t?.focus(e),!!t}return i.focus(e),!0}return this.focusFirstTabbableElement(e)}focusFirstTabbableElement(e){let i=this._getRegionBoundary("start");return i&&i.focus(e),!!i}focusLastTabbableElement(e){let i=this._getRegionBoundary("end");return i&&i.focus(e),!!i}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let i=e.children;for(let t=0;t<i.length;t++){let s=i[t].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(i[t]):null;if(s)return s}return null}_getLastTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let i=e.children;for(let t=i.length-1;t>=0;t--){let s=i[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(i[t]):null;if(s)return s}return null}_createAnchor(){let e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,i){e?i.setAttribute("tabindex","0"):i.removeAttribute("tabindex")}toggleAnchors(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_executeOnStable(e){this._ngZone.isStable?e():this._ngZone.onStable.pipe(We(1)).subscribe(e)}},er=(()=>{let e=class e{constructor(t,s,r){this._checker=t,this._ngZone=s,this._document=r}create(t,s=!1){return new Vt(t,this._checker,this._ngZone,this._document,s)}};e.\u0275fac=function(s){return new(s||e)(y(Vn),y(j),y(L))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),sl=(()=>{let e=class e{get enabled(){return this.focusTrap.enabled}set enabled(t){this.focusTrap.enabled=t}constructor(t,s,r){this._elementRef=t,this._focusTrapFactory=s,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(t){let s=t.autoCapture;s&&!s.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=ds(),this.focusTrap.focusInitialElementWhenReady()}};e.\u0275fac=function(s){return new(s||e)(M(H),M(er),M(L))},e.\u0275dir=ce({type:e,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled",Ne],autoCapture:["cdkTrapFocusAutoCapture","autoCapture",Ne]},exportAs:["cdkTrapFocus"],features:[Ce,Ki]});let n=e;return n})();function $t(n){return n.buttons===0||n.detail===0}function Wt(n){let e=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!!e&&e.identifier===-1&&(e.radiusX==null||e.radiusX===1)&&(e.radiusY==null||e.radiusY===1)}var tr=new x("cdk-input-modality-detector-options"),ir={ignoreKeys:[18,17,224,91,16]},Is=650,we=Te({passive:!0,capture:!0}),sr=(()=>{let e=class e{get mostRecentModality(){return this._modality.value}constructor(t,s,r,o){this._platform=t,this._mostRecentTarget=null,this._modality=new Pi(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(l=>l===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=re(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs<Is||(this._modality.next($t(a)?"keyboard":"mouse"),this._mostRecentTarget=re(a))},this._onTouchstart=a=>{if(Wt(a)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=re(a)},this._options=R(R({},ir),o),this.modalityDetected=this._modality.pipe(qe(1)),this.modalityChanged=this.modalityDetected.pipe(Bi()),t.isBrowser&&s.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,we),r.addEventListener("mousedown",this._onMousedown,we),r.addEventListener("touchstart",this._onTouchstart,we)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,we),document.removeEventListener("mousedown",this._onMousedown,we),document.removeEventListener("touchstart",this._onTouchstart,we))}};e.\u0275fac=function(s){return new(s||e)(y($),y(j),y(L),y(tr,8))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),nr=new x("liveAnnouncerElement",{providedIn:"root",factory:rr});function rr(){return null}var or=new x("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),ar=0,nl=(()=>{let e=class e{constructor(t,s,r,o){this._ngZone=s,this._defaultOptions=o,this._document=r,this._liveElement=t||this._createLiveElement()}announce(t,...s){let r=this._defaultOptions,o,a;return s.length===1&&typeof s[0]=="number"?a=s[0]:[o,a]=s,this.clear(),clearTimeout(this._previousTimeout),o||(o=r&&r.politeness?r.politeness:"polite"),a==null&&r&&(a=r.duration),this._liveElement.setAttribute("aria-live",o),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(l=>this._currentResolve=l)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let t="cdk-live-announcer-element",s=this._document.getElementsByClassName(t),r=this._document.createElement("div");for(let o=0;o<s.length;o++)s[o].remove();return r.classList.add(t),r.classList.add("cdk-visually-hidden"),r.setAttribute("aria-atomic","true"),r.setAttribute("aria-live","polite"),r.id=`cdk-live-announcer-${ar++}`,this._document.body.appendChild(r),r}_exposeAnnouncerToModals(t){let s=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let r=0;r<s.length;r++){let o=s[r],a=o.getAttribute("aria-owns");a?a.indexOf(t)===-1&&o.setAttribute("aria-owns",a+" "+t):o.setAttribute("aria-owns",t)}}};e.\u0275fac=function(s){return new(s||e)(y(nr,8),y(j),y(L),y(or,8))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var lr=new x("cdk-focus-monitor-default-options"),it=Te({passive:!0,capture:!0}),cr=(()=>{let e=class e{constructor(t,s,r,o,a){this._ngZone=t,this._platform=s,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new q,this._rootNodeFocusAndBlurListener=l=>{let c=re(l);for(let d=c;d;d=d.parentElement)l.type==="focus"?this._onFocus(l,d):this._onBlur(l,d)},this._document=o,this._detectionMode=a?.detectionMode||0}monitor(t,s=!1){let r=ue(t);if(!this._platform.isBrowser||r.nodeType!==1)return Fi();let o=cs(r)||this._getDocument(),a=this._elementInfo.get(r);if(a)return s&&(a.checkChildren=!0),a.subject;let l={checkChildren:s,subject:new q,rootNode:o};return this._elementInfo.set(r,l),this._registerGlobalListeners(l),l.subject}stopMonitoring(t){let s=ue(t),r=this._elementInfo.get(s);r&&(r.subject.complete(),this._setClasses(s),this._elementInfo.delete(s),this._removeGlobalListeners(r))}focusVia(t,s,r){let o=ue(t),a=this._getDocument().activeElement;o===a?this._getClosestElementsInfo(o).forEach(([l,c])=>this._originChanged(l,s,c)):(this._setOrigin(s),typeof o.focus=="function"&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((t,s)=>this.stopMonitoring(s))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:t&&this._isLastInteractionFromInputLabel(t)?"mouse":"program"}_shouldBeAttributedToTouch(t){return this._detectionMode===1||!!t?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(t,s){t.classList.toggle("cdk-focused",!!s),t.classList.toggle("cdk-touch-focused",s==="touch"),t.classList.toggle("cdk-keyboard-focused",s==="keyboard"),t.classList.toggle("cdk-mouse-focused",s==="mouse"),t.classList.toggle("cdk-program-focused",s==="program")}_setOrigin(t,s=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=t,this._originFromTouchInteraction=t==="touch"&&s,this._detectionMode===0){clearTimeout(this._originTimeoutId);let r=this._originFromTouchInteraction?Is:1;this._originTimeoutId=setTimeout(()=>this._origin=null,r)}})}_onFocus(t,s){let r=this._elementInfo.get(s),o=re(t);!r||!r.checkChildren&&s!==o||this._originChanged(s,this._getFocusOrigin(o),r)}_onBlur(t,s){let r=this._elementInfo.get(s);!r||r.checkChildren&&t.relatedTarget instanceof Node&&s.contains(t.relatedTarget)||(this._setClasses(s),this._emitOrigin(r,null))}_emitOrigin(t,s){t.subject.observers.length&&this._ngZone.run(()=>t.subject.next(s))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;let s=t.rootNode,r=this._rootNodeFocusListenerCount.get(s)||0;r||this._ngZone.runOutsideAngular(()=>{s.addEventListener("focus",this._rootNodeFocusAndBlurListener,it),s.addEventListener("blur",this._rootNodeFocusAndBlurListener,it)}),this._rootNodeFocusListenerCount.set(s,r+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(He(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(t){let s=t.rootNode;if(this._rootNodeFocusListenerCount.has(s)){let r=this._rootNodeFocusListenerCount.get(s);r>1?this._rootNodeFocusListenerCount.set(s,r-1):(s.removeEventListener("focus",this._rootNodeFocusAndBlurListener,it),s.removeEventListener("blur",this._rootNodeFocusAndBlurListener,it),this._rootNodeFocusListenerCount.delete(s))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,s,r){this._setClasses(t,s),this._emitOrigin(r,s),this._lastFocusOrigin=s}_getClosestElementsInfo(t){let s=[];return this._elementInfo.forEach((r,o)=>{(o===t||r.checkChildren&&o.contains(t))&&s.push([o,r])}),s}_isLastInteractionFromInputLabel(t){let{_mostRecentTarget:s,mostRecentModality:r}=this._inputModalityDetector;if(r!=="mouse"||!s||s===t||t.nodeName!=="INPUT"&&t.nodeName!=="TEXTAREA"||t.disabled)return!1;let o=t.labels;if(o){for(let a=0;a<o.length;a++)if(o[a].contains(s))return!0}return!1}};e.\u0275fac=function(s){return new(s||e)(y(j),y($),y(sr),y(L,8),y(lr,8))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),rl=(()=>{let e=class e{constructor(t,s){this._elementRef=t,this._focusMonitor=s,this._focusOrigin=null,this.cdkFocusChange=new be}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,t.nodeType===1&&t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(s=>{this._focusOrigin=s,this.cdkFocusChange.emit(s)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}};e.\u0275fac=function(s){return new(s||e)(M(H),M(cr))},e.\u0275dir=ce({type:e,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]});let n=e;return n})(),Es="cdk-high-contrast-black-on-white",Ts="cdk-high-contrast-white-on-black",zt="cdk-high-contrast-active",qt=(()=>{let e=class e{constructor(t,s){this._platform=t,this._document=s,this._breakpointSubscription=U(gs).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;let t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);let s=this._document.defaultView||window,r=s&&s.getComputedStyle?s.getComputedStyle(t):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(t.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let t=this._document.body.classList;t.remove(zt,Es,Ts),this._hasCheckedHighContrastMode=!0;let s=this.getHighContrastMode();s===1?t.add(zt,Es):s===2&&t.add(zt,Ts)}}};e.\u0275fac=function(s){return new(s||e)(y($),y(L))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),ol=(()=>{let e=class e{constructor(t){t._applyBodyHighContrastModeCssClasses()}};e.\u0275fac=function(s){return new(s||e)(y(qt))},e.\u0275mod=N({type:e}),e.\u0275inj=C({imports:[ms]});let n=e;return n})();var ur=new x("cdk-dir-doc",{providedIn:"root",factory:mr});function mr(){return U(L)}var fr=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function pr(n){let e=n?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?fr.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var _l=(()=>{let e=class e{constructor(t){if(this.value="ltr",this.change=new be,t){let s=t.body?t.body.dir:null,r=t.documentElement?t.documentElement.dir:null;this.value=pr(s||r||"ltr")}}ngOnDestroy(){this.change.complete()}};e.\u0275fac=function(s){return new(s||e)(y(ur,8))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var Ht=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=N({type:e}),e.\u0275inj=C({});let n=e;return n})();function Ds(n){return new E(3e3,!1)}function gr(){return new E(3100,!1)}function _r(){return new E(3101,!1)}function yr(n){return new E(3001,!1)}function br(n){return new E(3003,!1)}function vr(n){return new E(3004,!1)}function Er(n,e){return new E(3005,!1)}function Tr(){return new E(3006,!1)}function wr(){return new E(3007,!1)}function Sr(n,e){return new E(3008,!1)}function Ar(n){return new E(3002,!1)}function Ir(n,e,i,t,s){return new E(3010,!1)}function Dr(){return new E(3011,!1)}function Mr(){return new E(3012,!1)}function kr(){return new E(3200,!1)}function Cr(){return new E(3202,!1)}function Nr(){return new E(3013,!1)}function Or(n){return new E(3014,!1)}function Rr(n){return new E(3015,!1)}function Pr(n){return new E(3016,!1)}function Fr(n,e){return new E(3404,!1)}function Lr(n){return new E(3502,!1)}function xr(n){return new E(3503,!1)}function jr(){return new E(3300,!1)}function Br(n){return new E(3504,!1)}function Ur(n){return new E(3301,!1)}function zr(n,e){return new E(3302,!1)}function Kr(n){return new E(3303,!1)}function Vr(n,e){return new E(3400,!1)}function $r(n){return new E(3401,!1)}function Wr(n){return new E(3402,!1)}function qr(n,e){return new E(3505,!1)}function oe(n){switch(n.length){case 0:return new ve;case 1:return n[0];default:return new Pt(n)}}function zs(n,e,i=new Map,t=new Map){let s=[],r=[],o=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),d=c==o,h=d&&a||new Map;l.forEach((b,_)=>{let m=_,f=b;if(_!=="offset")switch(m=n.normalizePropertyName(m,s),f){case Je:f=i.get(_);break;case Z:f=t.get(_);break;default:f=n.normalizeStyleValue(_,m,f,s);break}h.set(m,f)}),d||r.push(h),a=h,o=c}),s.length)throw Lr(s);return r}function pi(n,e,i,t){switch(e){case"start":n.onStart(()=>t(i&&Qt(i,"start",n)));break;case"done":n.onDone(()=>t(i&&Qt(i,"done",n)));break;case"destroy":n.onDestroy(()=>t(i&&Qt(i,"destroy",n)));break}}function Qt(n,e,i){let t=i.totalTime,s=!!i.disabled,r=gi(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,t??n.totalTime,s),o=n._data;return o!=null&&(r._data=o),r}function gi(n,e,i,t,s="",r=0,o){return{element:n,triggerName:e,fromState:i,toState:t,phaseName:s,totalTime:r,disabled:!!o}}function K(n,e,i){let t=n.get(e);return t||n.set(e,t=i),t}function Ms(n){let e=n.indexOf(":"),i=n.substring(1,e),t=n.slice(e+1);return[i,t]}var Hr=(()=>typeof document>"u"?null:document.documentElement)();function _i(n){let e=n.parentNode||n.host||null;return e===Hr?null:e}function Qr(n){return n.substring(1,6)=="ebkit"}var fe=null,ks=!1;function Gr(n){fe||(fe=Yr()||{},ks=fe.style?"WebkitAppearance"in fe.style:!1);let e=!0;return fe.style&&!Qr(n)&&(e=n in fe.style,!e&&ks&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in fe.style)),e}function Yr(){return typeof document<"u"?document.body:null}function Ks(n,e){for(;e;){if(e===n)return!0;e=_i(e)}return!1}function Vs(n,e,i){if(i)return Array.from(n.querySelectorAll(e));let t=n.querySelector(e);return t?[t]:[]}var yi=(()=>{let e=class e{validateStyleProperty(t){return Gr(t)}matchesElement(t,s){return!1}containsElement(t,s){return Ks(t,s)}getParentElement(t){return _i(t)}query(t,s,r){return Vs(t,s,r)}computeStyle(t,s,r){return r||""}animate(t,s,r,o,a,l=[],c){return new ve(r,o)}};e.\u0275fac=function(s){return new(s||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac});let n=e;return n})(),Be=(()=>{let e=class e{};e.NOOP=new yi;let n=e;return n})(),_e=class{};var Zr=1e3,$s="{{",Xr="}}",Ws="ng-enter",ei="ng-leave",rt="ng-trigger",dt=".ng-trigger",Cs="ng-animating",ti=".ng-animating";function se(n){if(typeof n=="number")return n;let e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:ii(parseFloat(e[1]),e[2])}function ii(n,e){switch(e){case"s":return n*Zr;default:return n}}function ht(n,e,i){return n.hasOwnProperty("duration")?n:Jr(n,e,i)}function Jr(n,e,i){let t=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,s,r=0,o="";if(typeof n=="string"){let a=n.match(t);if(a===null)return e.push(Ds(n)),{duration:0,delay:0,easing:""};s=ii(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(r=ii(parseFloat(l),a[4]));let c=a[5];c&&(o=c)}else s=n;if(!i){let a=!1,l=e.length;s<0&&(e.push(gr()),a=!0),r<0&&(e.push(_r()),a=!0),a&&e.splice(l,0,Ds(n))}return{duration:s,delay:r,easing:o}}function Ue(n,e={}){return Object.keys(n).forEach(i=>{e[i]=n[i]}),e}function qs(n){let e=new Map;return Object.keys(n).forEach(i=>{let t=n[i];e.set(i,t)}),e}function eo(n){return n.length?n[0]instanceof Map?n:n.map(e=>qs(e)):[]}function Ae(n,e=new Map,i){if(i)for(let[t,s]of i)e.set(t,s);for(let[t,s]of n)e.set(t,s);return e}function X(n,e,i){e.forEach((t,s)=>{let r=bi(s);i&&!i.has(s)&&i.set(s,n.style[r]),n.style[r]=t})}function ge(n,e){e.forEach((i,t)=>{let s=bi(t);n.style[s]=""})}function Re(n){return Array.isArray(n)?n.length==1?n[0]:as(n):n}function to(n,e,i){let t=e.params||{},s=Hs(n);s.length&&s.forEach(r=>{t.hasOwnProperty(r)||i.push(yr(r))})}var si=new RegExp(`${$s}\\s*(.+?)\\s*${Xr}`,"g");function Hs(n){let e=[];if(typeof n=="string"){let i;for(;i=si.exec(n);)e.push(i[1]);si.lastIndex=0}return e}function Fe(n,e,i){let t=n.toString(),s=t.replace(si,(r,o)=>{let a=e[o];return a==null&&(i.push(br(o)),a=""),a.toString()});return s==t?n:s}function ut(n){let e=[],i=n.next();for(;!i.done;)e.push(i.value),i=n.next();return e}var io=/-+([a-z0-9])/g;function bi(n){return n.replace(io,(...e)=>e[1].toUpperCase())}function so(n,e){return n===0||e===0}function no(n,e,i){if(i.size&&e.length){let t=e[0],s=[];if(i.forEach((r,o)=>{t.has(o)||s.push(o),t.set(o,r)}),s.length)for(let r=1;r<e.length;r++){let o=e[r];s.forEach(a=>o.set(a,Qs(n,a)))}}return e}function z(n,e,i){switch(e.type){case 7:return n.visitTrigger(e,i);case 0:return n.visitState(e,i);case 1:return n.visitTransition(e,i);case 2:return n.visitSequence(e,i);case 3:return n.visitGroup(e,i);case 4:return n.visitAnimate(e,i);case 5:return n.visitKeyframes(e,i);case 6:return n.visitStyle(e,i);case 8:return n.visitReference(e,i);case 9:return n.visitAnimateChild(e,i);case 10:return n.visitAnimateRef(e,i);case 11:return n.visitQuery(e,i);case 12:return n.visitStagger(e,i);default:throw vr(e.type)}}function Qs(n,e){return window.getComputedStyle(n)[e]}var ro=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),mt=class extends _e{normalizePropertyName(e,i){return bi(e)}normalizeStyleValue(e,i,t,s){let r="",o=t.toString().trim();if(ro.has(i)&&t!==0&&t!=="0")if(typeof t=="number")r="px";else{let a=t.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&s.push(Er(e,t))}return o+r}};var ft="*";function oo(n,e){let i=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(t=>ao(t,i,e)):i.push(n),i}function ao(n,e,i){if(n[0]==":"){let l=lo(n,i);if(typeof l=="function"){e.push(l);return}n=l}let t=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(t==null||t.length<4)return i.push(Rr(n)),e;let s=t[1],r=t[2],o=t[3];e.push(Ns(s,o));let a=s==ft&&o==ft;r[0]=="<"&&!a&&e.push(Ns(o,s))}function lo(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(i,t)=>parseFloat(t)>parseFloat(i);case":decrement":return(i,t)=>parseFloat(t)<parseFloat(i);default:return e.push(Pr(n)),"* => *"}}var ot=new Set(["true","1"]),at=new Set(["false","0"]);function Ns(n,e){let i=ot.has(n)||at.has(n),t=ot.has(e)||at.has(e);return(s,r)=>{let o=n==ft||n==s,a=e==ft||e==r;return!o&&i&&typeof s=="boolean"&&(o=s?ot.has(n):at.has(n)),!a&&t&&typeof r=="boolean"&&(a=r?ot.has(e):at.has(e)),o&&a}}var Gs=":self",co=new RegExp(`s*${Gs}s*,?`,"g");function Ys(n,e,i,t){return new ni(n).build(e,i,t)}var Os="",ni=class{constructor(e){this._driver=e}build(e,i,t){let s=new ri(i);return this._resetContextStyleTimingState(s),z(this,Re(e),s)}_resetContextStyleTimingState(e){e.currentQuerySelector=Os,e.collectedStyles=new Map,e.collectedStyles.set(Os,new Map),e.currentTime=0}visitTrigger(e,i){let t=i.queryCount=0,s=i.depCount=0,r=[],o=[];return e.name.charAt(0)=="@"&&i.errors.push(Tr()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(i),a.type==0){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,r.push(this.visitState(l,i))}),l.name=c}else if(a.type==1){let l=this.visitTransition(a,i);t+=l.queryCount,s+=l.depCount,o.push(l)}else i.errors.push(wr())}),{type:7,name:e.name,states:r,transitions:o,queryCount:t,depCount:s,options:null}}visitState(e,i){let t=this.visitStyle(e.styles,i),s=e.options&&e.options.params||null;if(t.containsDynamicStyles){let r=new Set,o=s||{};if(t.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{Hs(l).forEach(c=>{o.hasOwnProperty(c)||r.add(c)})})}),r.size){let a=ut(r.values());i.errors.push(Sr(e.name,a))}}return{type:0,name:e.name,style:t,options:s?{params:s}:null}}visitTransition(e,i){i.queryCount=0,i.depCount=0;let t=z(this,Re(e.animation),i);return{type:1,matchers:oo(e.expr,i.errors),animation:t,queryCount:i.queryCount,depCount:i.depCount,options:pe(e.options)}}visitSequence(e,i){return{type:2,steps:e.steps.map(t=>z(this,t,i)),options:pe(e.options)}}visitGroup(e,i){let t=i.currentTime,s=0,r=e.steps.map(o=>{i.currentTime=t;let a=z(this,o,i);return s=Math.max(s,i.currentTime),a});return i.currentTime=s,{type:3,steps:r,options:pe(e.options)}}visitAnimate(e,i){let t=fo(e.timings,i.errors);i.currentAnimateTimings=t;let s,r=e.styles?e.styles:Rt({});if(r.type==5)s=this.visitKeyframes(r,i);else{let o=e.styles,a=!1;if(!o){a=!0;let c={};t.easing&&(c.easing=t.easing),o=Rt(c)}i.currentTime+=t.duration+t.delay;let l=this.visitStyle(o,i);l.isEmptyStep=a,s=l}return i.currentAnimateTimings=null,{type:4,timings:t,style:s,options:null}}visitStyle(e,i){let t=this._makeStyleAst(e,i);return this._validateStyleAst(t,i),t}_makeStyleAst(e,i){let t=[],s=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of s)typeof a=="string"?a===Z?t.push(a):i.errors.push(Ar(a)):t.push(qs(a));let r=!1,o=null;return t.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!r)){for(let l of a.values())if(l.toString().indexOf($s)>=0){r=!0;break}}}),{type:6,styles:t,easing:o,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,i){let t=i.currentAnimateTimings,s=i.currentTime,r=i.currentTime;t&&r>0&&(r-=t.duration+t.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let c=i.collectedStyles.get(i.currentQuerySelector),d=c.get(l),h=!0;d&&(r!=s&&r>=d.startTime&&s<=d.endTime&&(i.errors.push(Ir(l,d.startTime,d.endTime,r,s)),h=!1),r=d.startTime),h&&c.set(l,{startTime:r,endTime:s}),i.options&&to(a,i.options,i.errors)})})}visitKeyframes(e,i){let t={type:5,styles:[],options:null};if(!i.currentAnimateTimings)return i.errors.push(Dr()),t;let s=1,r=0,o=[],a=!1,l=!1,c=0,d=e.steps.map(A=>{let I=this._makeStyleAst(A,i),P=I.offset!=null?I.offset:mo(I.styles),k=0;return P!=null&&(r++,k=I.offset=P),l=l||k<0||k>1,a=a||k<c,c=k,o.push(k),I});l&&i.errors.push(Mr()),a&&i.errors.push(kr());let h=e.steps.length,b=0;r>0&&r<h?i.errors.push(Cr()):r==0&&(b=s/(h-1));let _=h-1,m=i.currentTime,f=i.currentAnimateTimings,T=f.duration;return d.forEach((A,I)=>{let P=b>0?I==_?1:b*I:o[I],k=P*T;i.currentTime=m+f.delay+k,f.duration=k,this._validateStyleAst(A,i),A.offset=P,t.styles.push(A)}),t}visitReference(e,i){return{type:8,animation:z(this,Re(e.animation),i),options:pe(e.options)}}visitAnimateChild(e,i){return i.depCount++,{type:9,options:pe(e.options)}}visitAnimateRef(e,i){return{type:10,animation:this.visitReference(e.animation,i),options:pe(e.options)}}visitQuery(e,i){let t=i.currentQuerySelector,s=e.options||{};i.queryCount++,i.currentQuery=e;let[r,o]=ho(e.selector);i.currentQuerySelector=t.length?t+" "+r:r,K(i.collectedStyles,i.currentQuerySelector,new Map);let a=z(this,Re(e.animation),i);return i.currentQuery=null,i.currentQuerySelector=t,{type:11,selector:r,limit:s.limit||0,optional:!!s.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:pe(e.options)}}visitStagger(e,i){i.currentQuery||i.errors.push(Nr());let t=e.timings==="full"?{duration:0,delay:0,easing:"full"}:ht(e.timings,i.errors,!0);return{type:12,animation:z(this,Re(e.animation),i),timings:t,options:null}}};function ho(n){let e=!!n.split(/\s*,\s*/).find(i=>i==Gs);return e&&(n=n.replace(co,"")),n=n.replace(/@\*/g,dt).replace(/@\w+/g,i=>dt+"-"+i.slice(1)).replace(/:animating/g,ti),[n,e]}function uo(n){return n?Ue(n):null}var ri=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function mo(n){if(typeof n=="string")return null;let e=null;if(Array.isArray(n))n.forEach(i=>{if(i instanceof Map&&i.has("offset")){let t=i;e=parseFloat(t.get("offset")),t.delete("offset")}});else if(n instanceof Map&&n.has("offset")){let i=n;e=parseFloat(i.get("offset")),i.delete("offset")}return e}function fo(n,e){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let r=ht(n,e).duration;return Gt(r,0,"")}let i=n;if(i.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=Gt(0,0,"");return r.dynamic=!0,r.strValue=i,r}let s=ht(i,e);return Gt(s.duration,s.delay,s.easing)}function pe(n){return n?(n=Ue(n),n.params&&(n.params=uo(n.params))):n={},n}function Gt(n,e,i){return{duration:n,delay:e,easing:i}}function vi(n,e,i,t,s,r,o=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:i,postStyleProps:t,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}var Le=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,i){let t=this._map.get(e);t||this._map.set(e,t=[]),t.push(...i)}has(e){return this._map.has(e)}clear(){this._map.clear()}},po=1,go=":enter",_o=new RegExp(go,"g"),yo=":leave",bo=new RegExp(yo,"g");function Zs(n,e,i,t,s,r=new Map,o=new Map,a,l,c=[]){return new oi().buildKeyframes(n,e,i,t,s,r,o,a,l,c)}var oi=class{buildKeyframes(e,i,t,s,r,o,a,l,c,d=[]){c=c||new Le;let h=new ai(e,i,c,s,r,d,[]);h.options=l;let b=l.delay?se(l.delay):0;h.currentTimeline.delayNextStep(b),h.currentTimeline.setStyles([o],null,h.errors,l),z(this,t,h);let _=h.timelines.filter(m=>m.containsAnimation());if(_.length&&a.size){let m;for(let f=_.length-1;f>=0;f--){let T=_[f];if(T.element===i){m=T;break}}m&&!m.allowOnlyTimelineStyles()&&m.setStyles([a],null,h.errors,l)}return _.length?_.map(m=>m.buildKeyframes()):[vi(i,[],[],[],0,b,"",!1)]}visitTrigger(e,i){}visitState(e,i){}visitTransition(e,i){}visitAnimateChild(e,i){let t=i.subInstructions.get(i.element);if(t){let s=i.createSubContext(e.options),r=i.currentTimeline.currentTime,o=this._visitSubInstructions(t,s,s.options);r!=o&&i.transformIntoNewTimeline(o)}i.previousNode=e}visitAnimateRef(e,i){let t=i.createSubContext(e.options);t.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],i,t),this.visitReference(e.animation,t),i.transformIntoNewTimeline(t.currentTimeline.currentTime),i.previousNode=e}_applyAnimationRefDelays(e,i,t){for(let s of e){let r=s?.delay;if(r){let o=typeof r=="number"?r:se(Fe(r,s?.params??{},i.errors));t.delayNextStep(o)}}}_visitSubInstructions(e,i,t){let r=i.currentTimeline.currentTime,o=t.duration!=null?se(t.duration):null,a=t.delay!=null?se(t.delay):null;return o!==0&&e.forEach(l=>{let c=i.appendInstructionToTimeline(l,o,a);r=Math.max(r,c.duration+c.delay)}),r}visitReference(e,i){i.updateOptions(e.options,!0),z(this,e.animation,i),i.previousNode=e}visitSequence(e,i){let t=i.subContextCount,s=i,r=e.options;if(r&&(r.params||r.delay)&&(s=i.createSubContext(r),s.transformIntoNewTimeline(),r.delay!=null)){s.previousNode.type==6&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=pt);let o=se(r.delay);s.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>z(this,o,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>t&&s.transformIntoNewTimeline()),i.previousNode=e}visitGroup(e,i){let t=[],s=i.currentTimeline.currentTime,r=e.options&&e.options.delay?se(e.options.delay):0;e.steps.forEach(o=>{let a=i.createSubContext(e.options);r&&a.delayNextStep(r),z(this,o,a),s=Math.max(s,a.currentTimeline.currentTime),t.push(a.currentTimeline)}),t.forEach(o=>i.currentTimeline.mergeTimelineCollectedStyles(o)),i.transformIntoNewTimeline(s),i.previousNode=e}_visitTiming(e,i){if(e.dynamic){let t=e.strValue,s=i.params?Fe(t,i.params,i.errors):t;return ht(s,i.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,i){let t=i.currentAnimateTimings=this._visitTiming(e.timings,i),s=i.currentTimeline;t.delay&&(i.incrementTime(t.delay),s.snapshotCurrentStyles());let r=e.style;r.type==5?this.visitKeyframes(r,i):(i.incrementTime(t.duration),this.visitStyle(r,i),s.applyStylesToKeyframe()),i.currentAnimateTimings=null,i.previousNode=e}visitStyle(e,i){let t=i.currentTimeline,s=i.currentAnimateTimings;!s&&t.hasCurrentStyleProperties()&&t.forwardFrame();let r=s&&s.easing||e.easing;e.isEmptyStep?t.applyEmptyStep(r):t.setStyles(e.styles,r,i.errors,i.options),i.previousNode=e}visitKeyframes(e,i){let t=i.currentAnimateTimings,s=i.currentTimeline.duration,r=t.duration,a=i.createSubContext().currentTimeline;a.easing=t.easing,e.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*r),a.setStyles(l.styles,l.easing,i.errors,i.options),a.applyStylesToKeyframe()}),i.currentTimeline.mergeTimelineCollectedStyles(a),i.transformIntoNewTimeline(s+r),i.previousNode=e}visitQuery(e,i){let t=i.currentTimeline.currentTime,s=e.options||{},r=s.delay?se(s.delay):0;r&&(i.previousNode.type===6||t==0&&i.currentTimeline.hasCurrentStyleProperties())&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=pt);let o=t,a=i.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!s.optional,i.errors);i.currentQueryTotal=a.length;let l=null;a.forEach((c,d)=>{i.currentQueryIndex=d;let h=i.createSubContext(e.options,c);r&&h.delayNextStep(r),c===i.element&&(l=h.currentTimeline),z(this,e.animation,h),h.currentTimeline.applyStylesToKeyframe();let b=h.currentTimeline.currentTime;o=Math.max(o,b)}),i.currentQueryIndex=0,i.currentQueryTotal=0,i.transformIntoNewTimeline(o),l&&(i.currentTimeline.mergeTimelineCollectedStyles(l),i.currentTimeline.snapshotCurrentStyles()),i.previousNode=e}visitStagger(e,i){let t=i.parentContext,s=i.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(i.currentQueryTotal-1),l=o*i.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=a-l;break;case"full":l=t.currentStaggerTime;break}let d=i.currentTimeline;l&&d.delayNextStep(l);let h=d.currentTime;z(this,e.animation,i),i.previousNode=e,t.currentStaggerTime=s.currentTime-h+(s.startTime-t.currentTimeline.startTime)}},pt={},ai=class n{constructor(e,i,t,s,r,o,a,l){this._driver=e,this.element=i,this.subInstructions=t,this._enterClassName=s,this._leaveClassName=r,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=pt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new gt(this._driver,i,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,i){if(!e)return;let t=e,s=this.options;t.duration!=null&&(s.duration=se(t.duration)),t.delay!=null&&(s.delay=se(t.delay));let r=t.params;if(r){let o=s.params;o||(o=this.options.params={}),Object.keys(r).forEach(a=>{(!i||!o.hasOwnProperty(a))&&(o[a]=Fe(r[a],o,this.errors))})}}_copyOptions(){let e={};if(this.options){let i=this.options.params;if(i){let t=e.params={};Object.keys(i).forEach(s=>{t[s]=i[s]})}}return e}createSubContext(e=null,i,t){let s=i||this.element,r=new n(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,t||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=pt,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,i,t){let s={duration:i??e.duration,delay:this.currentTimeline.currentTime+(t??0)+e.delay,easing:""},r=new li(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,s,e.stretchStartingKeyframe);return this.timelines.push(r),s}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,i,t,s,r,o){let a=[];if(s&&a.push(this.element),e.length>0){e=e.replace(_o,"."+this._enterClassName),e=e.replace(bo,"."+this._leaveClassName);let l=t!=1,c=this._driver.query(this.element,e,l);t!==0&&(c=t<0?c.slice(c.length+t,c.length):c.slice(0,t)),a.push(...c)}return!r&&a.length==0&&o.push(Or(i)),a}},gt=class n{constructor(e,i,t,s){this._driver=e,this.element=i,this.startTime=t,this._elementTimelineStylesLookup=s,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(i),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(i,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let i=this._keyframes.size===1&&this._pendingStyles.size;this.duration||i?(this.forwardTime(this.currentTime+e),i&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,i){return this.applyStylesToKeyframe(),new n(this._driver,e,i||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=po,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,i){this._localTimelineStyles.set(e,i),this._globalTimelineStyles.set(e,i),this._styleSummary.set(e,{time:this.currentTime,value:i})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[i,t]of this._globalTimelineStyles)this._backFill.set(i,t||Z),this._currentKeyframe.set(i,Z);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,i,t,s){i&&this._previousKeyframe.set("easing",i);let r=s&&s.params||{},o=vo(e,this._globalTimelineStyles);for(let[a,l]of o){let c=Fe(l,r,t);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Z),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,i)=>{this._currentKeyframe.set(i,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,i)=>{this._currentKeyframe.has(i)||this._currentKeyframe.set(i,e)}))}snapshotCurrentStyles(){for(let[e,i]of this._localTimelineStyles)this._pendingStyles.set(e,i),this._updateStyle(e,i)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let i in this._currentKeyframe)e.push(i);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((i,t)=>{let s=this._styleSummary.get(t);(!s||i.time>s.time)&&this._updateStyle(t,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,i=new Set,t=this._keyframes.size===1&&this.duration===0,s=[];this._keyframes.forEach((a,l)=>{let c=Ae(a,new Map,this._backFill);c.forEach((d,h)=>{d===Je?e.add(h):d===Z&&i.add(h)}),t||c.set("offset",l/this.duration),s.push(c)});let r=e.size?ut(e.values()):[],o=i.size?ut(i.values()):[];if(t){let a=s[0],l=new Map(a);a.set("offset",0),l.set("offset",1),s=[a,l]}return vi(this.element,s,r,o,this.duration,this.startTime,this.easing,!1)}},li=class extends gt{constructor(e,i,t,s,r,o,a=!1){super(e,i,o.delay),this.keyframes=t,this.preStyleProps=s,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:i,duration:t,easing:s}=this.timings;if(this._stretchStartingKeyframe&&i){let r=[],o=t+i,a=i/o,l=Ae(e[0]);l.set("offset",0),r.push(l);let c=Ae(e[0]);c.set("offset",Rs(a)),r.push(c);let d=e.length-1;for(let h=1;h<=d;h++){let b=Ae(e[h]),_=b.get("offset"),m=i+_*t;b.set("offset",Rs(m/o)),r.push(b)}t=o,i=0,s="",e=r}return vi(this.element,e,this.preStyleProps,this.postStyleProps,t,i,s,!0)}};function Rs(n,e=3){let i=Math.pow(10,e-1);return Math.round(n*i)/i}function vo(n,e){let i=new Map,t;return n.forEach(s=>{if(s==="*"){t=t||e.keys();for(let r of t)i.set(r,Z)}else Ae(s,i)}),i}function Ps(n,e,i,t,s,r,o,a,l,c,d,h,b){return{type:0,element:n,triggerName:e,isRemovalTransition:s,fromState:i,fromStyles:r,toState:t,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:h,errors:b}}var Yt={},_t=class{constructor(e,i,t){this._triggerName=e,this.ast=i,this._stateStyles=t}match(e,i,t,s){return Eo(this.ast.matchers,e,i,t,s)}buildStyles(e,i,t){let s=this._stateStyles.get("*");return e!==void 0&&(s=this._stateStyles.get(e?.toString())||s),s?s.buildStyles(i,t):new Map}build(e,i,t,s,r,o,a,l,c,d){let h=[],b=this.ast.options&&this.ast.options.params||Yt,_=a&&a.params||Yt,m=this.buildStyles(t,_,h),f=l&&l.params||Yt,T=this.buildStyles(s,f,h),A=new Set,I=new Map,P=new Map,k=s==="void",ye={params:To(f,b),delay:this.ast.options?.delay},G=d?[]:Zs(e,i,this.ast.animation,r,o,m,T,ye,c,h),F=0;if(G.forEach(ee=>{F=Math.max(ee.duration+ee.delay,F)}),h.length)return Ps(i,this._triggerName,t,s,k,m,T,[],[],I,P,F,h);G.forEach(ee=>{let te=ee.element,Mi=K(I,te,new Set);ee.preStyleProps.forEach(ae=>Mi.add(ae));let De=K(P,te,new Set);ee.postStyleProps.forEach(ae=>De.add(ae)),te!==i&&A.add(te)});let J=ut(A.values());return Ps(i,this._triggerName,t,s,k,m,T,G,J,I,P,F)}};function Eo(n,e,i,t,s){return n.some(r=>r(e,i,t,s))}function To(n,e){let i=Ue(e);for(let t in n)n.hasOwnProperty(t)&&n[t]!=null&&(i[t]=n[t]);return i}var ci=class{constructor(e,i,t){this.styles=e,this.defaultParams=i,this.normalizer=t}buildStyles(e,i){let t=new Map,s=Ue(this.defaultParams);return Object.keys(e).forEach(r=>{let o=e[r];o!==null&&(s[r]=o)}),this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((o,a)=>{o&&(o=Fe(o,s,i));let l=this.normalizer.normalizePropertyName(a,i);o=this.normalizer.normalizeStyleValue(a,l,o,i),t.set(a,o)})}),t}};function wo(n,e,i){return new di(n,e,i)}var di=class{constructor(e,i,t){this.name=e,this.ast=i,this._normalizer=t,this.transitionFactories=[],this.states=new Map,i.states.forEach(s=>{let r=s.options&&s.options.params||{};this.states.set(s.name,new ci(s.style,r,t))}),Fs(this.states,"true","1"),Fs(this.states,"false","0"),i.transitions.forEach(s=>{this.transitionFactories.push(new _t(e,s,this.states))}),this.fallbackTransition=So(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,i,t,s){return this.transitionFactories.find(o=>o.match(e,i,t,s))||null}matchStyles(e,i,t){return this.fallbackTransition.buildStyles(e,i,t)}};function So(n,e,i){let r={type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0};return new _t(n,r,e)}function Fs(n,e,i){n.has(e)?n.has(i)||n.set(i,n.get(e)):n.has(i)&&n.set(e,n.get(i))}var Ao=new Le,hi=class{constructor(e,i,t){this.bodyNode=e,this._driver=i,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,i){let t=[],s=[],r=Ys(this._driver,i,t,s);if(t.length)throw xr(t);s.length&&void 0,this._animations.set(e,r)}_buildPlayer(e,i,t){let s=e.element,r=zs(this._normalizer,e.keyframes,i,t);return this._driver.animate(s,r,e.duration,e.delay,e.easing,[],!0)}create(e,i,t={}){let s=[],r=this._animations.get(e),o,a=new Map;if(r?(o=Zs(this._driver,i,r,Ws,ei,new Map,new Map,t,Ao,s),o.forEach(d=>{let h=K(a,d.element,new Map);d.postStyleProps.forEach(b=>h.set(b,null))})):(s.push(jr()),o=[]),s.length)throw Br(s);a.forEach((d,h)=>{d.forEach((b,_)=>{d.set(_,this._driver.computeStyle(h,_,Z))})});let l=o.map(d=>{let h=a.get(d.element);return this._buildPlayer(d,new Map,h)}),c=oe(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let i=this._getPlayer(e);i.destroy(),this._playersById.delete(e);let t=this.players.indexOf(i);t>=0&&this.players.splice(t,1)}_getPlayer(e){let i=this._playersById.get(e);if(!i)throw Ur(e);return i}listen(e,i,t,s){let r=gi(i,"","","");return pi(this._getPlayer(e),t,r,s),()=>{}}command(e,i,t,s){if(t=="register"){this.register(e,s[0]);return}if(t=="create"){let o=s[0]||{};this.create(e,i,o);return}let r=this._getPlayer(e);switch(t){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(e);break}}},Ls="ng-animate-queued",Io=".ng-animate-queued",Zt="ng-animate-disabled",Do=".ng-animate-disabled",Mo="ng-star-inserted",ko=".ng-star-inserted",Co=[],Xs={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},No={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Q="__ng_removed",xe=class{get params(){return this.options.params}constructor(e,i=""){this.namespaceId=i;let t=e&&e.hasOwnProperty("value"),s=t?e.value:e;if(this.value=Ro(s),t){let r=Ue(e);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let i=e.params;if(i){let t=this.options.params;Object.keys(i).forEach(s=>{t[s]==null&&(t[s]=i[s])})}}},Pe="void",Xt=new xe(Pe),ui=class{constructor(e,i,t){this.id=e,this.hostElement=i,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,W(i,this._hostClassName)}listen(e,i,t,s){if(!this._triggers.has(i))throw zr(t,i);if(t==null||t.length==0)throw Kr(i);if(!Po(t))throw Vr(t,i);let r=K(this._elementListeners,e,[]),o={name:i,phase:t,callback:s};r.push(o);let a=K(this._engine.statesByElement,e,new Map);return a.has(i)||(W(e,rt),W(e,rt+"-"+i),a.set(i,Xt)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(o);l>=0&&r.splice(l,1),this._triggers.has(i)||a.delete(i)})}}register(e,i){return this._triggers.has(e)?!1:(this._triggers.set(e,i),!0)}_getTrigger(e){let i=this._triggers.get(e);if(!i)throw $r(e);return i}trigger(e,i,t,s=!0){let r=this._getTrigger(i),o=new je(this.id,i,e),a=this._engine.statesByElement.get(e);a||(W(e,rt),W(e,rt+"-"+i),this._engine.statesByElement.set(e,a=new Map));let l=a.get(i),c=new xe(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(i,c),l||(l=Xt),!(c.value===Pe)&&l.value===c.value){if(!xo(l.params,c.params)){let f=[],T=r.matchStyles(l.value,l.params,f),A=r.matchStyles(c.value,c.params,f);f.length?this._engine.reportError(f):this._engine.afterFlush(()=>{ge(e,T),X(e,A)})}return}let b=K(this._engine.playersByElement,e,[]);b.forEach(f=>{f.namespaceId==this.id&&f.triggerName==i&&f.queued&&f.destroy()});let _=r.matchTransition(l.value,c.value,e,c.params),m=!1;if(!_){if(!s)return;_=r.fallbackTransition,m=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:i,transition:_,fromState:l,toState:c,player:o,isFallbackTransition:m}),m||(W(e,Ls),o.onStart(()=>{Se(e,Ls)})),o.onDone(()=>{let f=this.players.indexOf(o);f>=0&&this.players.splice(f,1);let T=this._engine.playersByElement.get(e);if(T){let A=T.indexOf(o);A>=0&&T.splice(A,1)}}),this.players.push(o),b.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(i=>i.delete(e)),this._elementListeners.forEach((i,t)=>{this._elementListeners.set(t,i.filter(s=>s.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let i=this._engine.playersByElement.get(e);i&&(i.forEach(t=>t.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,i){let t=this._engine.driver.query(e,dt,!0);t.forEach(s=>{if(s[Q])return;let r=this._engine.fetchNamespacesByElement(s);r.size?r.forEach(o=>o.triggerLeaveAnimation(s,i,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(e,i,t,s){let r=this._engine.statesByElement.get(e),o=new Map;if(r){let a=[];if(r.forEach((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){let d=this.trigger(e,c,Pe,s);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,i,o),t&&oe(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let i=this._elementListeners.get(e),t=this._engine.statesByElement.get(e);if(i&&t){let s=new Set;i.forEach(r=>{let o=r.name;if(s.has(o))return;s.add(o);let l=this._triggers.get(o).fallbackTransition,c=t.get(o)||Xt,d=new xe(Pe),h=new je(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:d,player:h,isFallbackTransition:!0})})}}removeNode(e,i){let t=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,i),this.triggerLeaveAnimation(e,i,!0))return;let s=!1;if(t.totalAnimations){let r=t.players.length?t.playersByQueriedElement.get(e):[];if(r&&r.length)s=!0;else{let o=e;for(;o=o.parentNode;)if(t.statesByElement.get(o)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(e),s)t.markElementAsRemoved(this.id,e,!1,i);else{let r=e[Q];(!r||r===Xs)&&(t.afterFlush(()=>this.clearElementCache(e)),t.destroyInnerAnimations(e),t._onRemovalComplete(e,i))}}insertNode(e,i){W(e,this._hostClassName)}drainQueuedTransitions(e){let i=[];return this._queue.forEach(t=>{let s=t.player;if(s.destroyed)return;let r=t.element,o=this._elementListeners.get(r);o&&o.forEach(a=>{if(a.name==t.triggerName){let l=gi(r,t.triggerName,t.fromState.value,t.toState.value);l._data=e,pi(t.player,a.phase,l,a.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):i.push(t)}),this._queue=[],i.sort((t,s)=>{let r=t.transition.ast.depCount,o=s.transition.ast.depCount;return r==0||o==0?r-o:this._engine.driver.containsElement(t.element,s.element)?1:-1})}destroy(e){this.players.forEach(i=>i.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},mi=class{_onRemovalComplete(e,i){this.onRemovalComplete(e,i)}constructor(e,i,t){this.bodyNode=e,this.driver=i,this._normalizer=t,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(s,r)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(i=>{i.players.forEach(t=>{t.queued&&e.push(t)})}),e}createNamespace(e,i){let t=new ui(e,i,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,i)?this._balanceNamespaceList(t,i):(this.newHostElements.set(i,t),this.collectEnterElement(i)),this._namespaceLookup[e]=t}_balanceNamespaceList(e,i){let t=this._namespaceList,s=this.namespacesByHostElement;if(t.length-1>=0){let o=!1,a=this.driver.getParentElement(i);for(;a;){let l=s.get(a);if(l){let c=t.indexOf(l);t.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||t.unshift(e)}else t.push(e);return s.set(i,e),e}register(e,i){let t=this._namespaceLookup[e];return t||(t=this.createNamespace(e,i)),t}registerTrigger(e,i,t){let s=this._namespaceLookup[e];s&&s.register(i,t)&&this.totalAnimations++}destroy(e,i){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let t=this._fetchNamespace(e);this.namespacesByHostElement.delete(t.hostElement);let s=this._namespaceList.indexOf(t);s>=0&&this._namespaceList.splice(s,1),t.destroy(i),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let i=new Set,t=this.statesByElement.get(e);if(t){for(let s of t.values())if(s.namespaceId){let r=this._fetchNamespace(s.namespaceId);r&&i.add(r)}}return i}trigger(e,i,t,s){if(lt(i)){let r=this._fetchNamespace(e);if(r)return r.trigger(i,t,s),!0}return!1}insertNode(e,i,t,s){if(!lt(i))return;let r=i[Q];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let o=this.collectedLeaveElements.indexOf(i);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(i,t)}s&&this.collectEnterElement(i)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,i){i?this.disabledNodes.has(e)||(this.disabledNodes.add(e),W(e,Zt)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Se(e,Zt))}removeNode(e,i,t){if(lt(i)){let s=e?this._fetchNamespace(e):null;s?s.removeNode(i,t):this.markElementAsRemoved(e,i,!1,t);let r=this.namespacesByHostElement.get(i);r&&r.id!==e&&r.removeNode(i,t)}else this._onRemovalComplete(i,t)}markElementAsRemoved(e,i,t,s,r){this.collectedLeaveElements.push(i),i[Q]={namespaceId:e,setForRemoval:s,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,i,t,s,r){return lt(i)?this._fetchNamespace(e).listen(i,t,s,r):()=>{}}_buildInstruction(e,i,t,s,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,t,s,e.fromState.options,e.toState.options,i,r)}destroyInnerAnimations(e){let i=this.driver.query(e,dt,!0);i.forEach(t=>this.destroyActiveAnimationsForElement(t)),this.playersByQueriedElement.size!=0&&(i=this.driver.query(e,ti,!0),i.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(e){let i=this.playersByElement.get(e);i&&i.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(e){let i=this.playersByQueriedElement.get(e);i&&i.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return oe(this.players).onDone(()=>e());e()})}processLeaveNode(e){let i=e[Q];if(i&&i.setForRemoval){if(e[Q]=Xs,i.namespaceId){this.destroyInnerAnimations(e);let t=this._fetchNamespace(i.namespaceId);t&&t.clearElementCache(e)}this._onRemovalComplete(e,i.setForRemoval)}e.classList?.contains(Zt)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Do,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(e=-1){let i=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,s)=>this._balanceNamespaceList(t,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;t<this.collectedEnterElements.length;t++){let s=this.collectedEnterElements[t];W(s,Mo)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let t=[];try{i=this._flushAnimations(t,e)}finally{for(let s=0;s<t.length;s++)t[s]()}}else for(let t=0;t<this.collectedLeaveElements.length;t++){let s=this.collectedLeaveElements[t];this.processLeaveNode(s)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(t=>t()),this._flushFns=[],this._whenQuietFns.length){let t=this._whenQuietFns;this._whenQuietFns=[],i.length?oe(i).onDone(()=>{t.forEach(s=>s())}):t.forEach(s=>s())}}reportError(e){throw Wr(e)}_flushAnimations(e,i){let t=new Le,s=[],r=new Map,o=[],a=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(u=>{d.add(u);let p=this.driver.query(u,Io,!0);for(let g=0;g<p.length;g++)d.add(p[g])});let h=this.bodyNode,b=Array.from(this.statesByElement.keys()),_=Bs(b,this.collectedEnterElements),m=new Map,f=0;_.forEach((u,p)=>{let g=Ws+f++;m.set(p,g),u.forEach(v=>W(v,g))});let T=[],A=new Set,I=new Set;for(let u=0;u<this.collectedLeaveElements.length;u++){let p=this.collectedLeaveElements[u],g=p[Q];g&&g.setForRemoval&&(T.push(p),A.add(p),g.hasAnimation?this.driver.query(p,ko,!0).forEach(v=>A.add(v)):I.add(p))}let P=new Map,k=Bs(b,Array.from(A));k.forEach((u,p)=>{let g=ei+f++;P.set(p,g),u.forEach(v=>W(v,g))}),e.push(()=>{_.forEach((u,p)=>{let g=m.get(p);u.forEach(v=>Se(v,g))}),k.forEach((u,p)=>{let g=P.get(p);u.forEach(v=>Se(v,g))}),T.forEach(u=>{this.processLeaveNode(u)})});let ye=[],G=[];for(let u=this._namespaceList.length-1;u>=0;u--)this._namespaceList[u].drainQueuedTransitions(i).forEach(g=>{let v=g.player,D=g.element;if(ye.push(v),this.collectedEnterElements.length){let O=D[Q];if(O&&O.setForMove){if(O.previousTriggersValues&&O.previousTriggersValues.has(g.triggerName)){let le=O.previousTriggersValues.get(g.triggerName),V=this.statesByElement.get(g.element);if(V&&V.has(g.triggerName)){let Ke=V.get(g.triggerName);Ke.value=le,V.set(g.triggerName,Ke)}}v.destroy();return}}let Y=!h||!this.driver.containsElement(h,D),B=P.get(D),ne=m.get(D),S=this._buildInstruction(g,t,ne,B,Y);if(S.errors&&S.errors.length){G.push(S);return}if(Y){v.onStart(()=>ge(D,S.fromStyles)),v.onDestroy(()=>X(D,S.toStyles)),s.push(v);return}if(g.isFallbackTransition){v.onStart(()=>ge(D,S.fromStyles)),v.onDestroy(()=>X(D,S.toStyles)),s.push(v);return}let Ni=[];S.timelines.forEach(O=>{O.stretchStartingKeyframe=!0,this.disabledNodes.has(O.element)||Ni.push(O)}),S.timelines=Ni,t.append(D,S.timelines);let pn={instruction:S,player:v,element:D};o.push(pn),S.queriedElements.forEach(O=>K(a,O,[]).push(v)),S.preStyleProps.forEach((O,le)=>{if(O.size){let V=l.get(le);V||l.set(le,V=new Set),O.forEach((Ke,At)=>V.add(At))}}),S.postStyleProps.forEach((O,le)=>{let V=c.get(le);V||c.set(le,V=new Set),O.forEach((Ke,At)=>V.add(At))})});if(G.length){let u=[];G.forEach(p=>{u.push(qr(p.triggerName,p.errors))}),ye.forEach(p=>p.destroy()),this.reportError(u)}let F=new Map,J=new Map;o.forEach(u=>{let p=u.element;t.has(p)&&(J.set(p,p),this._beforeAnimationBuild(u.player.namespaceId,u.instruction,F))}),s.forEach(u=>{let p=u.element;this._getPreviousPlayers(p,!1,u.namespaceId,u.triggerName,null).forEach(v=>{K(F,p,[]).push(v),v.destroy()})});let ee=T.filter(u=>Us(u,l,c)),te=new Map;js(te,this.driver,I,c,Z).forEach(u=>{Us(u,l,c)&&ee.push(u)});let De=new Map;_.forEach((u,p)=>{js(De,this.driver,new Set(u),l,Je)}),ee.forEach(u=>{let p=te.get(u),g=De.get(u);te.set(u,new Map([...p?.entries()??[],...g?.entries()??[]]))});let ae=[],ki=[],Ci={};o.forEach(u=>{let{element:p,player:g,instruction:v}=u;if(t.has(p)){if(d.has(p)){g.onDestroy(()=>X(p,v.toStyles)),g.disabled=!0,g.overrideTotalTime(v.totalTime),s.push(g);return}let D=Ci;if(J.size>1){let B=p,ne=[];for(;B=B.parentNode;){let S=J.get(B);if(S){D=S;break}ne.push(B)}ne.forEach(S=>J.set(S,D))}let Y=this._buildAnimation(g.namespaceId,v,F,r,De,te);if(g.setRealPlayer(Y),D===Ci)ae.push(g);else{let B=this.playersByElement.get(D);B&&B.length&&(g.parentPlayer=oe(B)),s.push(g)}}else ge(p,v.fromStyles),g.onDestroy(()=>X(p,v.toStyles)),ki.push(g),d.has(p)&&s.push(g)}),ki.forEach(u=>{let p=r.get(u.element);if(p&&p.length){let g=oe(p);u.setRealPlayer(g)}}),s.forEach(u=>{u.parentPlayer?u.syncPlayerEvents(u.parentPlayer):u.destroy()});for(let u=0;u<T.length;u++){let p=T[u],g=p[Q];if(Se(p,ei),g&&g.hasAnimation)continue;let v=[];if(a.size){let Y=a.get(p);Y&&Y.length&&v.push(...Y);let B=this.driver.query(p,ti,!0);for(let ne=0;ne<B.length;ne++){let S=a.get(B[ne]);S&&S.length&&v.push(...S)}}let D=v.filter(Y=>!Y.destroyed);D.length?Fo(this,p,D):this.processLeaveNode(p)}return T.length=0,ae.forEach(u=>{this.players.push(u),u.onDone(()=>{u.destroy();let p=this.players.indexOf(u);this.players.splice(p,1)}),u.play()}),ae}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,i,t,s,r){let o=[];if(i){let a=this.playersByQueriedElement.get(e);a&&(o=a)}else{let a=this.playersByElement.get(e);if(a){let l=!r||r==Pe;a.forEach(c=>{c.queued||!l&&c.triggerName!=s||o.push(c)})}}return(t||s)&&(o=o.filter(a=>!(t&&t!=a.namespaceId||s&&s!=a.triggerName))),o}_beforeAnimationBuild(e,i,t){let s=i.triggerName,r=i.element,o=i.isRemovalTransition?void 0:e,a=i.isRemovalTransition?void 0:s;for(let l of i.timelines){let c=l.element,d=c!==r,h=K(t,c,[]);this._getPreviousPlayers(c,d,o,a,i.toState).forEach(_=>{let m=_.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),_.destroy(),h.push(_)})}ge(r,i.fromStyles)}_buildAnimation(e,i,t,s,r,o){let a=i.triggerName,l=i.element,c=[],d=new Set,h=new Set,b=i.timelines.map(m=>{let f=m.element;d.add(f);let T=f[Q];if(T&&T.removedBeforeQueried)return new ve(m.duration,m.delay);let A=f!==l,I=Lo((t.get(f)||Co).map(F=>F.getRealPlayer())).filter(F=>{let J=F;return J.element?J.element===f:!1}),P=r.get(f),k=o.get(f),ye=zs(this._normalizer,m.keyframes,P,k),G=this._buildPlayer(m,ye,I);if(m.subTimeline&&s&&h.add(f),A){let F=new je(e,a,f);F.setRealPlayer(G),c.push(F)}return G});c.forEach(m=>{K(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>Oo(this.playersByQueriedElement,m.element,m))}),d.forEach(m=>W(m,Cs));let _=oe(b);return _.onDestroy(()=>{d.forEach(m=>Se(m,Cs)),X(l,i.toStyles)}),h.forEach(m=>{K(s,m,[]).push(_)}),_}_buildPlayer(e,i,t){return i.length>0?this.driver.animate(e.element,i,e.duration,e.delay,e.easing,t):new ve(e.duration,e.delay)}},je=class{constructor(e,i,t){this.namespaceId=e,this.triggerName=i,this.element=t,this._player=new ve,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((i,t)=>{i.forEach(s=>pi(e,t,void 0,s))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let i=this._player;i.triggerCallback&&e.onStart(()=>i.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,i){K(this._queuedCallbacks,e,[]).push(i)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let i=this._player;i.triggerCallback&&i.triggerCallback(e)}};function Oo(n,e,i){let t=n.get(e);if(t){if(t.length){let s=t.indexOf(i);t.splice(s,1)}t.length==0&&n.delete(e)}return t}function Ro(n){return n??null}function lt(n){return n&&n.nodeType===1}function Po(n){return n=="start"||n=="done"}function xs(n,e){let i=n.style.display;return n.style.display=e??"none",i}function js(n,e,i,t,s){let r=[];i.forEach(l=>r.push(xs(l)));let o=[];t.forEach((l,c)=>{let d=new Map;l.forEach(h=>{let b=e.computeStyle(c,h,s);d.set(h,b),(!b||b.length==0)&&(c[Q]=No,o.push(c))}),n.set(c,d)});let a=0;return i.forEach(l=>xs(l,r[a++])),o}function Bs(n,e){let i=new Map;if(n.forEach(a=>i.set(a,[])),e.length==0)return i;let t=1,s=new Set(e),r=new Map;function o(a){if(!a)return t;let l=r.get(a);if(l)return l;let c=a.parentNode;return i.has(c)?l=c:s.has(c)?l=t:l=o(c),r.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==t&&i.get(l).push(a)}),i}function W(n,e){n.classList?.add(e)}function Se(n,e){n.classList?.remove(e)}function Fo(n,e,i){oe(i).onDone(()=>n.processLeaveNode(e))}function Lo(n){let e=[];return Js(n,e),e}function Js(n,e){for(let i=0;i<n.length;i++){let t=n[i];t instanceof Pt?Js(t.players,e):e.push(t)}}function xo(n,e){let i=Object.keys(n),t=Object.keys(e);if(i.length!=t.length)return!1;for(let s=0;s<i.length;s++){let r=i[s];if(!e.hasOwnProperty(r)||n[r]!==e[r])return!1}return!0}function Us(n,e,i){let t=i.get(n);if(!t)return!1;let s=e.get(n);return s?t.forEach(r=>s.add(r)):e.set(n,t),i.delete(n),!0}var Ie=class{constructor(e,i,t){this._driver=i,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(s,r)=>{},this._transitionEngine=new mi(e.body,i,t),this._timelineEngine=new hi(e.body,i,t),this._transitionEngine.onRemovalComplete=(s,r)=>this.onRemovalComplete(s,r)}registerTrigger(e,i,t,s,r){let o=e+"-"+s,a=this._triggerCache[o];if(!a){let l=[],c=[],d=Ys(this._driver,r,l,c);if(l.length)throw Fr(s,l);c.length&&void 0,a=wo(s,d,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(i,s,a)}register(e,i){this._transitionEngine.register(e,i)}destroy(e,i){this._transitionEngine.destroy(e,i)}onInsert(e,i,t,s){this._transitionEngine.insertNode(e,i,t,s)}onRemove(e,i,t){this._transitionEngine.removeNode(e,i,t)}disableAnimations(e,i){this._transitionEngine.markElementAsDisabled(e,i)}process(e,i,t,s){if(t.charAt(0)=="@"){let[r,o]=Ms(t),a=s;this._timelineEngine.command(r,i,o,a)}else this._transitionEngine.trigger(e,i,t,s)}listen(e,i,t,s,r){if(t.charAt(0)=="@"){let[o,a]=Ms(t);return this._timelineEngine.listen(o,i,a,r)}return this._transitionEngine.listen(e,i,t,s,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function jo(n,e){let i=null,t=null;return Array.isArray(e)&&e.length?(i=Jt(e[0]),e.length>1&&(t=Jt(e[e.length-1]))):e instanceof Map&&(i=Jt(e)),i||t?new Bo(n,i,t):null}var Bo=(()=>{let e=class e{constructor(t,s,r){this._element=t,this._startStyles=s,this._endStyles=r,this._state=0;let o=e.initialStylesByElement.get(t);o||e.initialStylesByElement.set(t,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&X(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(X(this._element,this._initialStyles),this._endStyles&&(X(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(ge(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ge(this._element,this._endStyles),this._endStyles=null),X(this._element,this._initialStyles),this._state=3)}};e.initialStylesByElement=new WeakMap;let n=e;return n})();function Jt(n){let e=null;return n.forEach((i,t)=>{Uo(t)&&(e=e||new Map,e.set(t,i))}),e}function Uo(n){return n==="display"||n==="position"}var yt=class{constructor(e,i,t,s){this.element=e,this.keyframes=i,this.options=t,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=t.duration,this._delay=t.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let i=()=>this._onFinish();this.domPlayer.addEventListener("finish",i),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",i)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let i=[];return e.forEach(t=>{i.push(Object.fromEntries(t))}),i}_triggerWebAnimation(e,i,t){return e.animate(this._convertKeyframesToObject(i),t)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,s)=>{s!=="offset"&&e.set(s,this._finished?t:Qs(this.element,s))}),this.currentSnapshot=e}triggerCallback(e){let i=e==="start"?this._onStartFns:this._onDoneFns;i.forEach(t=>t()),i.length=0}},bt=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}matchesElement(e,i){return!1}containsElement(e,i){return Ks(e,i)}getParentElement(e){return _i(e)}query(e,i,t){return Vs(e,i,t)}computeStyle(e,i,t){return window.getComputedStyle(e)[i]}animate(e,i,t,s,r,o=[]){let a=s==0?"both":"forwards",l={duration:t,delay:s,fill:a};r&&(l.easing=r);let c=new Map,d=o.filter(_=>_ instanceof yt);so(t,s)&&d.forEach(_=>{_.currentSnapshot.forEach((m,f)=>c.set(f,m))});let h=eo(i).map(_=>Ae(_));h=no(e,h,c);let b=jo(e,h);return new yt(e,h,l,b)}};var ct="@",en="@.disabled",vt=class{constructor(e,i,t,s){this.namespaceId=e,this.delegate=i,this.engine=t,this._onDestroy=s,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,i){return this.delegate.createElement(e,i)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,i){this.delegate.appendChild(e,i),this.engine.onInsert(this.namespaceId,i,e,!1)}insertBefore(e,i,t,s=!0){this.delegate.insertBefore(e,i,t),this.engine.onInsert(this.namespaceId,i,e,s)}removeChild(e,i,t){this.engine.onRemove(this.namespaceId,i,this.delegate)}selectRootElement(e,i){return this.delegate.selectRootElement(e,i)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,i,t,s){this.delegate.setAttribute(e,i,t,s)}removeAttribute(e,i,t){this.delegate.removeAttribute(e,i,t)}addClass(e,i){this.delegate.addClass(e,i)}removeClass(e,i){this.delegate.removeClass(e,i)}setStyle(e,i,t,s){this.delegate.setStyle(e,i,t,s)}removeStyle(e,i,t){this.delegate.removeStyle(e,i,t)}setProperty(e,i,t){i.charAt(0)==ct&&i==en?this.disableAnimations(e,!!t):this.delegate.setProperty(e,i,t)}setValue(e,i){this.delegate.setValue(e,i)}listen(e,i,t){return this.delegate.listen(e,i,t)}disableAnimations(e,i){this.engine.disableAnimations(e,i)}},fi=class extends vt{constructor(e,i,t,s,r){super(i,t,s,r),this.factory=e,this.namespaceId=i}setProperty(e,i,t){i.charAt(0)==ct?i.charAt(1)=="."&&i==en?(t=t===void 0?!0:!!t,this.disableAnimations(e,t)):this.engine.process(this.namespaceId,e,i.slice(1),t):this.delegate.setProperty(e,i,t)}listen(e,i,t){if(i.charAt(0)==ct){let s=zo(e),r=i.slice(1),o="";return r.charAt(0)!=ct&&([r,o]=Ko(r)),this.engine.listen(this.namespaceId,s,r,o,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,t,a)})}return this.delegate.listen(e,i,t)}};function zo(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function Ko(n){let e=n.indexOf("."),i=n.substring(0,e),t=n.slice(e+1);return[i,t]}var Et=class{constructor(e,i,t){this.delegate=e,this.engine=i,this._zone=t,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,i.onRemovalComplete=(s,r)=>{let o=r?.parentNode(s);o&&r.removeChild(o,s)}}createRenderer(e,i){let t="",s=this.delegate.createRenderer(e,i);if(!e||!i?.data?.animation){let c=this._rendererCache,d=c.get(s);if(!d){let h=()=>c.delete(s);d=new vt(t,s,this.engine,h),c.set(s,d)}return d}let r=i.id,o=i.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(r,o,e,c.name,c)};return i.data.animation.forEach(a),new fi(this,o,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,t){if(e>=0&&e<this._microtaskId){this._zone.run(()=>i(t));return}let s=this._animationCallbacksBuffer;s.length==0&&queueMicrotask(()=>{this._zone.run(()=>{s.forEach(r=>{let[o,a]=r;o(a)}),this._animationCallbacksBuffer=[]})}),s.push([i,t])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var $o=(()=>{let e=class e extends Ie{constructor(t,s,r,o){super(t,s,r)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(s){return new(s||e)(y(L),y(Be),y(_e),y(is))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let n=e;return n})();function Wo(){return new mt}function qo(n,e,i){return new Et(n,e,i)}var sn=[{provide:_e,useFactory:Wo},{provide:Ie,useClass:$o},{provide:qi,useFactory:qo,deps:[rs,Ie,j]}],tn=[{provide:Be,useFactory:()=>new bt},{provide:ie,useValue:"BrowserAnimations"},...sn],Ho=[{provide:Be,useClass:yi},{provide:ie,useValue:"NoopAnimations"},...sn],kl=(()=>{let e=class e{static withConfig(t){return{ngModule:e,providers:t.disableAnimations?Ho:tn}}};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=N({type:e}),e.\u0275inj=C({providers:tn,imports:[os]});let n=e;return n})();var Yo=["text"];function Zo(n,e){if(n&1&&Ze(0,"mat-pseudo-checkbox",6),n&2){let i=Xe();Qe("disabled",i.disabled)("state",i.selected?"checked":"unchecked")}}function Xo(n,e){if(n&1&&Ze(0,"mat-pseudo-checkbox",7),n&2){let i=Xe();Qe("disabled",i.disabled)}}function Jo(n,e){if(n&1&&(kt(0,"span",8),Zi(1),Ct()),n&2){let i=Xe();ke(1),Xi("(",i.group.label,")")}}var ea=[[["mat-icon"]],"*"],ta=["mat-icon","*"];var Jl=(()=>{let e=class e{};e.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",e.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",e.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",e.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)";let n=e;return n})(),ec=(()=>{let e=class e{};e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms";let n=e;return n})();function ia(){return!0}var sa=new x("mat-sanity-checks",{providedIn:"root",factory:ia}),wt=(()=>{let e=class e{constructor(t,s,r){this._sanityChecks=s,this._document=r,this._hasDoneGlobalChecks=!1,t._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(t){return hs()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[t]}};e.\u0275fac=function(s){return new(s||e)(y(qt),y(sa,8),y(L))},e.\u0275mod=N({type:e}),e.\u0275inj=C({imports:[Ht,Ht]});let n=e;return n})();function tc(n){return class extends n{get disabled(){return this._disabled}set disabled(e){this._disabled=jt(e)}constructor(...e){super(...e),this._disabled=!1}}}function ic(n,e){return class extends n{get color(){return this._color}set color(i){let t=i||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),t&&this._elementRef.nativeElement.classList.add(`mat-${t}`),this._color=t)}constructor(...i){super(...i),this.defaultColor=e,this.color=e}}}function sc(n){return class extends n{get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=jt(e)}constructor(...e){super(...e),this._disableRipple=!1}}}function nc(n,e=0){return class extends n{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(i){this._tabIndex=i!=null?us(i):this.defaultTabIndex}constructor(...i){super(...i),this._tabIndex=e,this.defaultTabIndex=e}}}function rc(n){return class extends n{updateErrorState(){let e=this.errorState,i=this._parentFormGroup||this._parentForm,t=this.errorStateMatcher||this._defaultErrorStateMatcher,s=this.ngControl?this.ngControl.control:null,r=t.isErrorState(s,i);r!==e&&(this.errorState=r,this.stateChanges.next())}constructor(...e){super(...e),this.errorState=!1}}}function oc(n){return class extends n{constructor(...e){super(...e),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new Ve(i=>{this._isInitialized?this._notifySubscriber(i):this._pendingSubscribers.push(i)})}_markInitialized(){this._isInitialized,this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(e){e.next(),e.complete()}}}var nn=new x("MAT_DATE_LOCALE",{providedIn:"root",factory:na});function na(){return U(ss)}var St=class{constructor(){this._localeChanges=new q,this.localeChanges=this._localeChanges}getValidDateOrNull(e){return this.isDateInstance(e)&&this.isValid(e)?e:null}deserialize(e){return e==null||this.isDateInstance(e)&&this.isValid(e)?e:this.invalid()}setLocale(e){this.locale=e,this._localeChanges.next()}compareDate(e,i){return this.getYear(e)-this.getYear(i)||this.getMonth(e)-this.getMonth(i)||this.getDate(e)-this.getDate(i)}sameDate(e,i){if(e&&i){let t=this.isValid(e),s=this.isValid(i);return t&&s?!this.compareDate(e,i):t==s}return e==i}clampDate(e,i,t){return i&&this.compareDate(e,i)<0?i:t&&this.compareDate(e,t)>0?t:e}},ra=new x("mat-date-formats"),oa=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Ei(n,e){let i=Array(n);for(let t=0;t<n;t++)i[t]=e(t);return i}var aa=(()=>{let e=class e extends St{constructor(t){super(),this.useUtcForDisplay=!1,this._matDateLocale=U(nn,{optional:!0}),t!==void 0&&(this._matDateLocale=t),super.setLocale(this._matDateLocale)}getYear(t){return t.getFullYear()}getMonth(t){return t.getMonth()}getDate(t){return t.getDate()}getDayOfWeek(t){return t.getDay()}getMonthNames(t){let s=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return Ei(12,r=>this._format(s,new Date(2017,r,1)))}getDateNames(){let t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Ei(31,s=>this._format(t,new Date(2017,0,s+1)))}getDayOfWeekNames(t){let s=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return Ei(7,r=>this._format(s,new Date(2017,0,r+1)))}getYearName(t){let s=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(s,t)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))}clone(t){return new Date(t.getTime())}createDate(t,s,r){let o=this._createDateWithOverflow(t,s,r);return o.getMonth()!=s,o}today(){return new Date}parse(t,s){return typeof t=="number"?new Date(t):t?new Date(Date.parse(t)):null}format(t,s){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");let r=new Intl.DateTimeFormat(this.locale,Oi(R({},s),{timeZone:"utc"}));return this._format(r,t)}addCalendarYears(t,s){return this.addCalendarMonths(t,s*12)}addCalendarMonths(t,s){let r=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+s,this.getDate(t));return this.getMonth(r)!=((this.getMonth(t)+s)%12+12)%12&&(r=this._createDateWithOverflow(this.getYear(r),this.getMonth(r),0)),r}addCalendarDays(t,s){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+s)}toIso8601(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}deserialize(t){if(typeof t=="string"){if(!t)return null;if(oa.test(t)){let s=new Date(t);if(this.isValid(s))return s}}return super.deserialize(t)}isDateInstance(t){return t instanceof Date}isValid(t){return!isNaN(t.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(t,s,r){let o=new Date;return o.setFullYear(t,s,r),o.setHours(0,0,0,0),o}_2digit(t){return("00"+t).slice(-2)}_format(t,s){let r=new Date;return r.setUTCFullYear(s.getFullYear(),s.getMonth(),s.getDate()),r.setUTCHours(s.getHours(),s.getMinutes(),s.getSeconds(),s.getMilliseconds()),t.format(r)}};e.\u0275fac=function(s){return new(s||e)(y(nn,8))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let n=e;return n})(),la={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}},ca=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=N({type:e}),e.\u0275inj=C({providers:[{provide:St,useClass:aa}]});let n=e;return n})(),ac=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=N({type:e}),e.\u0275inj=C({providers:[{provide:ra,useValue:la}],imports:[ca]});let n=e;return n})();var lc=(()=>{let e=class e{isErrorState(t,s){return!!(t&&t.invalid&&(t.touched||s&&s.submitted))}};e.\u0275fac=function(s){return new(s||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var Si=class{constructor(e,i,t,s=!1){this._renderer=e,this.element=i,this.config=t,this._animationForciblyDisabledThroughCss=s,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}},rn=Te({passive:!0,capture:!0}),Ai=class{constructor(){this._events=new Map,this._delegateEventHandler=e=>{let i=re(e);i&&this._events.get(e.type)?.forEach((t,s)=>{(s===i||s.contains(i))&&t.forEach(r=>r.handleEvent(e))})}}addHandler(e,i,t,s){let r=this._events.get(i);if(r){let o=r.get(t);o?o.add(s):r.set(t,new Set([s]))}else this._events.set(i,new Map([[t,new Set([s])]])),e.runOutsideAngular(()=>{document.addEventListener(i,this._delegateEventHandler,rn)})}removeHandler(e,i,t){let s=this._events.get(e);if(!s)return;let r=s.get(i);r&&(r.delete(t),r.size===0&&s.delete(i),s.size===0&&(this._events.delete(e),document.removeEventListener(e,this._delegateEventHandler,rn)))}},on={enterDuration:225,exitDuration:150},da=800,an=Te({passive:!0,capture:!0}),ln=["mousedown","touchstart"],cn=["mouseup","mouseleave","touchend","touchcancel"],ze=class ze{constructor(e,i,t,s){this._target=e,this._ngZone=i,this._platform=s,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,s.isBrowser&&(this._containerElement=ue(t))}fadeInRipple(e,i,t={}){let s=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=R(R({},on),t.animation);t.centered&&(e=s.left+s.width/2,i=s.top+s.height/2);let o=t.radius||ha(e,i,s),a=e-s.left,l=i-s.top,c=r.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=`${a-o}px`,d.style.top=`${l-o}px`,d.style.height=`${o*2}px`,d.style.width=`${o*2}px`,t.color!=null&&(d.style.backgroundColor=t.color),d.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(d);let h=window.getComputedStyle(d),b=h.transitionProperty,_=h.transitionDuration,m=b==="none"||_==="0s"||_==="0s, 0s"||s.width===0&&s.height===0,f=new Si(this,d,t,m);d.style.transform="scale3d(1, 1, 1)",f.state=0,t.persistent||(this._mostRecentTransientRipple=f);let T=null;return!m&&(c||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let A=()=>this._finishRippleTransition(f),I=()=>this._destroyRipple(f);d.addEventListener("transitionend",A),d.addEventListener("transitioncancel",I),T={onTransitionEnd:A,onTransitionCancel:I}}),this._activeRipples.set(f,T),(m||!c)&&this._finishRippleTransition(f),f}fadeOutRipple(e){if(e.state===2||e.state===3)return;let i=e.element,t=R(R({},on),e.config.animation);i.style.transitionDuration=`${t.exitDuration}ms`,i.style.opacity="0",e.state=2,(e._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(e)}fadeOutAll(){this._getActiveRipples().forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){let i=ue(e);!this._platform.isBrowser||!i||i===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=i,ln.forEach(t=>{ze._eventManager.addHandler(this._ngZone,t,i,this)}))}handleEvent(e){e.type==="mousedown"?this._onMousedown(e):e.type==="touchstart"?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{cn.forEach(i=>{this._triggerElement.addEventListener(i,this,an)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(e){e.state===0?this._startFadeOutTransition(e):e.state===2&&this._destroyRipple(e)}_startFadeOutTransition(e){let i=e===this._mostRecentTransientRipple,{persistent:t}=e.config;e.state=1,!t&&(!i||!this._isPointerDown)&&e.fadeOut()}_destroyRipple(e){let i=this._activeRipples.get(e)??null;this._activeRipples.delete(e),this._activeRipples.size||(this._containerRect=null),e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),e.state=3,i!==null&&(e.element.removeEventListener("transitionend",i.onTransitionEnd),e.element.removeEventListener("transitioncancel",i.onTransitionCancel)),e.element.remove()}_onMousedown(e){let i=$t(e),t=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+da;!this._target.rippleDisabled&&!i&&!t&&(this._isPointerDown=!0,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig))}_onTouchStart(e){if(!this._target.rippleDisabled&&!Wt(e)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;let i=e.changedTouches;if(i)for(let t=0;t<i.length;t++)this.fadeInRipple(i[t].clientX,i[t].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(e=>{let i=e.state===1||e.config.terminateOnPointerUp&&e.state===0;!e.config.persistent&&i&&e.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let e=this._triggerElement;e&&(ln.forEach(i=>ze._eventManager.removeHandler(i,e,this)),this._pointerUpEventsRegistered&&cn.forEach(i=>e.removeEventListener(i,this,an)))}};ze._eventManager=new Ai;var Ii=ze;function ha(n,e,i){let t=Math.max(Math.abs(n-i.left),Math.abs(n-i.right)),s=Math.max(Math.abs(e-i.top),Math.abs(e-i.bottom));return Math.sqrt(t*t+s*s)}var mn=new x("mat-ripple-global-options"),fn=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}constructor(t,s,r,o,a){this._elementRef=t,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new Ii(this,s,t,r)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:R(R(R({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,s=0,r){return typeof t=="number"?this._rippleRenderer.fadeInRipple(t,s,R(R({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,R(R({},this.rippleConfig),t))}};e.\u0275fac=function(s){return new(s||e)(M(H),M(j),M($),M(mn,8),M(ie,8))},e.\u0275dir=ce({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(s,r){s&2&&Ge("mat-ripple-unbounded",r.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]});let n=e;return n})(),ua=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=N({type:e}),e.\u0275inj=C({imports:[wt,wt]});let n=e;return n})(),ma=(()=>{let e=class e{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1,this.appearance="full"}};e.\u0275fac=function(s){return new(s||e)(M(ie,8))},e.\u0275cmp=It({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(s,r){s&2&&Ge("mat-pseudo-checkbox-indeterminate",r.state==="indeterminate")("mat-pseudo-checkbox-checked",r.state==="checked")("mat-pseudo-checkbox-disabled",r.disabled)("mat-pseudo-checkbox-minimal",r.appearance==="minimal")("mat-pseudo-checkbox-full",r.appearance==="full")("_mat-animation-noopable",r._animationMode==="NoopAnimations")},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(s,r){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color);border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color);border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0});let n=e;return n})(),fa=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=N({type:e}),e.\u0275inj=C({imports:[wt]});let n=e;return n})(),pa=new x("MAT_OPTION_PARENT_COMPONENT");var ga=new x("MatOptgroup");var _a=0,Di=class{constructor(e,i=!1){this.source=e,this.isUserInput=i}},cc=(()=>{let e=class e{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=t}get disableRipple(){return!!(this._parent&&this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}constructor(t,s,r,o){this._element=t,this._changeDetectorRef=s,this._parent=r,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id=`mat-option-${_a++}`,this.onSelectionChange=new be,this._stateChanges=new q}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(t=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),t&&this._emitSelectionChangeEvent())}deselect(t=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),t&&this._emitSelectionChangeEvent())}focus(t,s){let r=this._getHostElement();typeof r.focus=="function"&&r.focus(s)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){(t.keyCode===13||t.keyCode===32)&&!et(t)&&(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=t)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new Di(this,t))}};e.\u0275fac=function(s){return new(s||e)(M(H),M(Hi),M(pa,8),M(ga,8))},e.\u0275cmp=It({type:e,selectors:[["mat-option"]],viewQuery:function(s,r){if(s&1&&es(Yo,7),s&2){let o;Ji(o=ts())&&(r._text=o.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(s,r){s&1&&Gi("click",function(){return r._selectViaInteraction()})("keydown",function(a){return r._handleKeydown(a)}),s&2&&(Qi("id",r.id),Dt("aria-selected",r.selected)("aria-disabled",r.disabled.toString()),Ge("mdc-list-item--selected",r.selected)("mat-mdc-option-multiple",r.multiple)("mat-mdc-option-active",r.active)("mdc-list-item--disabled",r.disabled))},inputs:{value:"value",id:"id",disabled:["disabled","disabled",Ne]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],features:[Ce],ngContentSelectors:ta,decls:8,vars:5,consts:[["class","mat-mdc-option-pseudo-checkbox","aria-hidden","true",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["text",""],["class","mat-mdc-option-pseudo-checkbox","state","checked","aria-hidden","true","appearance","minimal",3,"disabled"],["class","cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"]],template:function(s,r){s&1&&(Yi(ea),Mt(0,Zo,1,2,"mat-pseudo-checkbox",0),Nt(1),kt(2,"span",1,2),Nt(4,1),Ct(),Mt(5,Xo,1,1,"mat-pseudo-checkbox",3)(6,Jo,2,1,"span",4),Ze(7,"div",5)),s&2&&(Ye(0,r.multiple?0:-1),ke(5),Ye(5,!r.multiple&&r.selected&&!r.hideSingleSelectionIndicator?5:-1),ke(1),Ye(6,r.group&&r.group._inert?6:-1),ke(1),Qe("matRippleTrigger",r._getHostElement())("matRippleDisabled",r.disabled||r.disableRipple))},dependencies:[fn,ma],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let n=e;return n})();function dc(n,e,i){if(i.length){let t=e.toArray(),s=i.toArray(),r=0;for(let o=0;o<n+1;o++)t[o].group&&t[o].group===s[r]&&r++;return r}return 0}function hc(n,e,i,t){return n<i?n:n+e>i+t?Math.max(0,n-t+e):i}var uc=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=N({type:e}),e.\u0275inj=C({imports:[ua,wt,fa]});let n=e;return n})(),dn={capture:!0},hn=["focus","click","mouseenter","touchstart"],Ti="mat-ripple-loader-uninitialized",wi="mat-ripple-loader-class-name",un="mat-ripple-loader-centered",Tt="mat-ripple-loader-disabled",mc=(()=>{let e=class e{constructor(){this._document=U(L,{optional:!0}),this._animationMode=U(ie,{optional:!0}),this._globalRippleOptions=U(mn,{optional:!0}),this._platform=U($),this._ngZone=U(j),this._hosts=new Map,this._onInteraction=t=>{if(!(t.target instanceof HTMLElement))return;let r=t.target.closest(`[${Ti}]`);r&&this._createRipple(r)},this._ngZone.runOutsideAngular(()=>{for(let t of hn)this._document?.addEventListener(t,this._onInteraction,dn)})}ngOnDestroy(){let t=this._hosts.keys();for(let s of t)this.destroyRipple(s);for(let s of hn)this._document?.removeEventListener(s,this._onInteraction,dn)}configureRipple(t,s){t.setAttribute(Ti,""),(s.className||!t.hasAttribute(wi))&&t.setAttribute(wi,s.className||""),s.centered&&t.setAttribute(un,""),s.disabled&&t.setAttribute(Tt,"")}getRipple(t){return this._hosts.get(t)||this._createRipple(t)}setDisabled(t,s){let r=this._hosts.get(t);if(r){r.disabled=s;return}s?t.setAttribute(Tt,""):t.removeAttribute(Tt)}_createRipple(t){if(!this._document)return;let s=this._hosts.get(t);if(s)return s;t.querySelector(".mat-ripple")?.remove();let r=this._document.createElement("span");r.classList.add("mat-ripple",t.getAttribute(wi)),t.append(r);let o=new fn(new H(r),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return o._isInitialized=!0,o.trigger=t,o.centered=t.hasAttribute(un),o.disabled=t.hasAttribute(Tt),this.attachRipple(t,o),o}attachRipple(t,s){t.removeAttribute(Ti),this._hosts.set(t,s)}destroyRipple(t){let s=this._hosts.get(t);s&&(s.ngOnDestroy(),this._hosts.delete(t))}};e.\u0275fac=function(s){return new(s||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();export{jt as a,us as b,Bt as c,Da as d,ue as e,Ma as f,et as g,$ as h,wa as i,Te as j,Sa as k,cs as l,ds as m,re as n,hs as o,kl as p,ms as q,zn as r,Kn as s,il as t,ys as u,bs as v,Vn as w,er as x,sl as y,$t as z,Wt as A,nl as B,cr as C,rl as D,ol as E,_l as F,Ht as G,Jl as H,ec as I,wt as J,tc as K,ic as L,sc as M,nc as N,rc as O,oc as P,nn as Q,St as R,ra as S,ac as T,lc as U,mn as V,fn as W,ua as X,pa as Y,ga as Z,cc as _,dc as $,hc as aa,uc as ba,mc as ca};