receiptfeedback 1.1.0 → 1.1.2

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.
@@ -0,0 +1 @@
1
+ import{a as I,b as X,c as Z}from"./chunk-7RY3M6BF.js";import{A as W,C as G,D as J,E as K,e as H,w as Y,y as q}from"./chunk-SSCNVGQR.js";import{j as N,k as B,l as z,m as S,n as U}from"./chunk-VRDQHJMC.js";import{$a as F,Ab as u,Bb as O,Fb as y,Gb as s,Ib as c,Jb as M,Kb as l,Lb as L,Mb as j,Nb as f,Ob as C,P as E,Pa as k,Pb as $,Qa as o,Qb as Q,T as V,Wa as b,X as A,aa as w,cb as D,eb as g,ha as v,ia as h,qb as m,sb as P,wb as i,xb as r,y as T,yb as d,zb as x}from"./chunk-X4JT4KX5.js";var te=(()=>{class t{transform(e,n,a="Name"){return n===void 0?e:typeof n=="number"?e.filter(_=>_[a]==n):e.filter(_=>_[a].toString().toLowerCase().indexOf(n.toLowerCase())!==-1)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=D({name:"filter",type:t,pure:!0})}}return t})();var ne=(()=>{class t{constructor(e,n,a){this.httpClient=e,this.encodeService=n,this.toastr=a}getReceipt(){let e=this.encodeService.host,n=this.encodeService.invoiceId;return this.httpClient.post(`${K.production?"https":"http"}://${e}/api/app/invoice/print`,{ID:n}).pipe(T(a=>(a.totalChange=this.calculateChange(),a)))}calculateChange(){return 0}static{this.\u0275fac=function(n){return new(n||t)(w(H),w(I),w(Y))}}static{this.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function ae(t,p){t&1&&(i(0,"div",2),d(1,"div",3),i(2,"div",4)(3,"div",5),d(4,"div",6)(5,"div",7),r(),i(6,"div",5),d(7,"div",8)(8,"div",9),r(),i(9,"div",5),d(10,"div",10)(11,"div",11),r(),i(12,"div",5),d(13,"div",6)(14,"div",12),r(),i(15,"div",5),d(16,"div",8)(17,"div",7),r(),i(18,"div",5),d(19,"div",13)(20,"div",14),r()(),d(21,"hr",15),i(22,"div",16),d(23,"div",17)(24,"div",18),r()())}function ce(t,p){if(t&1&&(i(0,"div",24)(1,"div",25),d(2,"img",26),i(3,"div",27)(4,"p",28),c(5),r(),i(6,"p",29),c(7),r()()(),i(8,"div")(9,"p",30),c(10),r(),i(11,"p",30),c(12),r()()()),t&2){let e=s(2);o(2),m("src",e.template.Logo,k),o(3),l(" ",e.template.Name," "),o(2),l(" ",e.template.Field," "),o(3),l(" #",e.receipt.Number," "),o(2),l(" ",e.receipt.Date," ")}}function me(t,p){if(t&1){let e=O();i(0,"div",31)(1,"p",32),c(2," Rate your experience "),r(),i(3,"div",33)(4,"star-rating",34),y("starClickChange",function(a){v(e);let _=s(2);return h(_.onRatingChange(a))}),r()()()}if(t&2){let e=s(2);o(4),m("starType","svg")("rating",e.starRate)}}function pe(t,p){if(t&1){let e=O();i(0,"div",35)(1,"p",36),c(2," My Experience "),i(3,"button",37),y("click",function(){v(e);let a=s(2);return h(a.currentViewState="receipt")}),d(4,"i",38),c(5,"Invoice Detail "),r()(),i(6,"div",33)(7,"star-rating",34),y("starClickChange",function(a){v(e);let _=s(2);return h(_.onRatingChange(a))}),r()()()}if(t&2){let e=s(2);o(7),m("starType","svg")("rating",e.starRate)}}function se(t,p){if(t&1&&(x(0),i(1,"span",55),c(2),f(3,"number"),r(),u()),t&2){let e=s(2).$implicit;o(2),l(" ","-"+C(3,1,e.Discount)+"%"," ")}}function le(t,p){if(t&1&&(x(0),i(1,"span",55),c(2),f(3,"number"),r(),u()),t&2){let e=s(2).$implicit;o(2),l(" ","-"+C(3,1,e.DiscountAmount)," ")}}function de(t,p){if(t&1&&(i(0,"p",51),c(1),f(2,"number"),i(3,"span",54),c(4),f(5,"number"),r(),g(6,se,4,3,"ng-container",1)(7,le,4,3,"ng-container",1),r()),t&2){let e=s().$implicit;o(),L(" ",$(2,6,e.Quantity,"1.0-4")," ",e.UOMName," ",e.UnitQuantity!=0&&e.UnitQuantity!=1?" x "+e.UnitQuantity:""," \xD7 "),o(3),l(" ",C(5,9,e.Price),""),o(2),m("ngIf",e.Discount>0),o(),m("ngIf",e.DiscountAmount>0)}}function _e(t,p){if(t&1&&(i(0,"div",48)(1,"div",49)(2,"p",50),c(3),r(),i(4,"p",51),c(5),r(),g(6,de,8,11,"p",52),r(),i(7,"div",53)(8,"p",50),c(9),f(10,"number"),r()()()),t&2){let e=p.$implicit,n=p.index;P("border-t-1",n!=0)("pt-4",n!=0),o(3),M(e.Name),o(2),M(e.Code),o(),m("ngIf",e.Quantity!=0&&e.Quantity!=1),o(3),l(" ",C(10,8,(1-e.Discount/100)*e.Price*e.Quantity*e.UnitQuantity-e.DiscountAmount*e.Quantity)," ")}}function ge(t,p){if(t&1&&(i(0,"span")(1,"span"),c(2),r()()),t&2){let e=s().$implicit;o(2),M(e.Label)}}function fe(t,p){if(t&1&&(x(0),i(1,"p",56),c(2),g(3,ge,3,1,"span",1),r(),i(4,"p",57),c(5),r(),i(6,"p",57),c(7),f(8,"number"),r(),u()),t&2){let e=p.$implicit,n=p.index,a=s(3);o(),P("text-red-500",e.Amount<0),o(),l(" ",n==0?a.totalItemsLabel:""," "),o(),m("ngIf",n!=0),o(),P("text-red-500",e.Amount<0),o(),l(" : ",e.CurrencySymbol," "),o(),P("text-red-500",e.Amount<0),o(),l(" ",C(8,10,e.Amount)," ")}}function xe(t,p){if(t&1&&(i(0,"span"),c(1),r()),t&2){let e=s().$implicit;o(),l("",e.Code," :")}}function ue(t,p){if(t&1&&(i(0,"span"),c(1),r()),t&2){let e=s().$implicit;o(),l("",e.Note," :")}}function Ce(t,p){if(t&1&&(x(0,33),i(1,"div",58)(2,"span"),c(3),r(),g(4,xe,2,1,"span",1)(5,ue,2,1,"span",1),r(),i(6,"p",59),c(7),r(),i(8,"p",59),c(9),f(10,"number"),r(),u()),t&2){let e=p.$implicit,n=s(3);o(3),M(e.MethodName),o(),m("ngIf",e.Code),o(),m("ngIf",e.Note),o(2),l(" : ",n.amountSummary[0]==null?null:n.amountSummary[0].CurrencySymbol," "),o(2),l(" ",C(10,5,e.PaidAmount)," ")}}function be(t,p){if(t&1&&(x(0),i(1,"div",39)(2,"div",40),c(3,"NAME"),r(),i(4,"div",41),c(5,"PRICE"),r()(),i(6,"div",42),g(7,_e,11,10,"div",43),r(),i(8,"div",44),c(9," DETAIL PAYMENT "),r(),i(10,"div",45),g(11,fe,9,12,"ng-container",46),f(12,"filter"),g(13,Ce,11,7,"ng-container",47),r(),u()),t&2){let e=s(2);o(7),m("ngForOf",e.receipt.Variants),o(4),m("ngForOf",Q(12,3,e.amountSummary,1,"Type")),o(2),m("ngForOf",e.receipt.Payments)}}function ve(t,p){if(t&1){let e=O();x(0),i(1,"app-feedback",60),y("onCompleteSubmitFeedback",function(){v(e);let a=s(2);return h(a.onSubmitFeedback())}),r(),u()}if(t&2){let e=s(2);o(),m("starRate",e.starRate)}}function he(t,p){if(t&1){let e=O();i(0,"div",61),d(1,"img",62),i(2,"h1",63),c(3," Thank You for Your Feedback! "),r(),i(4,"p",64),c(5," We appreciate your feedback -- It helps us serve you better next time. "),d(6,"br"),i(7,"button",65),y("click",function(){v(e);let a=s(2);return h(a.currentViewState="receipt")}),c(8," Back to Invoice "),r()()()}if(t&2){let e=s(2);o(),m("src",e.template.Logo,k)}}function ye(t,p){if(t&1&&(x(0),i(1,"div",19),g(2,ce,13,5,"div",20)(3,me,5,2,"div",21)(4,pe,8,2,"div",22)(5,be,14,7,"ng-container",1)(6,ve,2,1,"ng-container",1)(7,he,9,1,"div",23),r(),u()),t&2){let e=s();o(2),m("ngIf",e.currentViewState=="receipt"||e.currentViewState=="feedback"),o(),m("ngIf",e.currentViewState=="receipt"),o(),m("ngIf",e.currentViewState=="feedback"),o(),m("ngIf",e.currentViewState=="receipt"),o(),m("ngIf",e.currentViewState=="feedback"),o(),m("ngIf",e.currentViewState=="complete")}}var Le=(()=>{class t{constructor(e,n,a,_,R,ie){this.receiptService=e,this.activatedRoute=n,this.route=a,this.encodeService=_,this.decimalPipe=R,this.feedbackService=ie,this.currentViewState="receipt",this.isLoading=!0,this.hasCustomerData=!1,this.totalVariantsQty=0}ngOnInit(){this.getQueryParams()}getQueryParams(){let e=this.activatedRoute.snapshot.queryParams,n=e.feel;n&&(this.currentViewState="feedback",n=="happy"?this.starRate=5:n=="sad"?this.starRate=1:this.starRate=3),console.log(e.Data),e.Data?(this.encodeService.encodeQueryParam(e.Data),this.feedback$=this.feedbackService.getInitPage().pipe(E(1)),this.initPrint()):this.route.navigate(["not-found"])}initPrint(){this.print$=this.receiptService.getReceipt().pipe(V(e=>{this.isLoading=!1,this.receipt=e.Invoice,this.template=e.Template,this.amountSummary=e.AmountSummary.filter(n=>n.Label!="Change"&&n.Label!=null),this.hasCustomerData=Object.keys(this.receipt.Customer).length>0,this.paymentChange=this.filterAmountSummaryByName(e.AmountSummary,"Change")[0],this.generateTotalItemsLabel(),this.calculateRemainingPayment()}),E(1))}filterAmountSummaryByName(e,n){return e.filter(a=>a.Label===n)}redirectToFeedback(e){setTimeout(()=>{let n=this.encodeService.base64Params;this.route.navigate(["feedback"],{queryParams:{Data:n,feel:e}})},700)}generateTotalItemsLabel(){let e=0,n=this.receipt.Variants.length;for(let R of this.receipt.Variants)e+=R.Quantity;let a=e>1?"s":"",_=this.decimalPipe.transform(e,"1.0-4").toString();this.totalItemsLabel=`Total (Item${a}: ${n}, Qty: ${_})`}calculateRemainingPayment(){let e=0;this.receipt.Payments.forEach(a=>{e+=a.Amount});let n=this.receipt.FinalAmount;this.remainingPayment=n-e}onRatingChange(e){this.starRate=e.rating,this.currentViewState="feedback"}onSubmitFeedback(){console.log("complete"),this.currentViewState="complete"}static{this.\u0275fac=function(n){return new(n||t)(b(ne),b(q),b(W),b(I),b(S),b(X))}}static{this.\u0275cmp=F({type:t,selectors:[["app-receipt"]],features:[j([S])],decls:3,vars:4,consts:[["class","md:w-[380px] h-[600px] p-4 mx-auto bg-white flex flex-col",4,"ngIf"],[4,"ngIf"],[1,"md:w-[380px]","h-[600px]","p-4","mx-auto","bg-white","flex","flex-col"],[1,"h-6","w-32","bg-gray-200","rounded","animate-pulse","mb-4"],[1,"flex-1","space-y-4","overflow-hidden"],[1,"flex","justify-between"],[1,"h-4","w-24","bg-gray-200","rounded","animate-pulse"],[1,"h-4","w-12","bg-gray-200","rounded","animate-pulse"],[1,"h-4","w-28","bg-gray-200","rounded","animate-pulse"],[1,"h-4","w-10","bg-gray-200","rounded","animate-pulse"],[1,"h-4","w-20","bg-gray-200","rounded","animate-pulse"],[1,"h-4","w-16","bg-gray-200","rounded","animate-pulse"],[1,"h-4","w-14","bg-gray-200","rounded","animate-pulse"],[1,"h-4","w-26","bg-gray-200","rounded","animate-pulse"],[1,"h-4","w-18","bg-gray-200","rounded","animate-pulse"],[1,"my-4","border-gray-300"],[1,"flex","justify-between","font-semibold"],[1,"h-6","w-20","bg-gray-200","rounded","animate-pulse"],[1,"h-6","w-16","bg-gray-200","rounded","animate-pulse"],[1,"bg-white","p-5","md:w-[360px]","rounded-lg","mx-auto"],["class","flex justify-between items-center",4,"ngIf"],["class","text-center mt-4 border-b-1 border-t-1 py-5 border-gray-300",4,"ngIf"],["class","text-left mt-4 border-b-1 border-t-1 py-5 border-gray-300",4,"ngIf"],["class","flex items-center flex-col pt-[50px]",4,"ngIf"],[1,"flex","justify-between","items-center"],[1,"flex","items-center","gap-x-2"],["alt","Logo",1,"w-10",3,"src"],[1,"flex","flex-col"],[1,"text-base","font-semibold","line-clamp-1",2,"font-family","'Open Sans', sans-serif"],[1,"text-xs","line-clamp-1",2,"font-family","'Open Sans', sans-serif"],[1,"text-sm","text-right",2,"font-family","'Open Sans', sans-serif"],[1,"text-center","mt-4","border-b-1","border-t-1","py-5","border-gray-300"],[1,"font-medium","text-lg",2,"font-family","'Roboto', sans-serif"],[1,"mt-5"],["size","large",3,"starClickChange","starType","rating"],[1,"text-left","mt-4","border-b-1","border-t-1","py-5","border-gray-300"],[1,"font-medium","text-base",2,"font-family","'Roboto', sans-serif"],[1,"text-sm","bg-white","text-[#1269cf]","font-semibold","py-1","px-1","border","border-[#1269cf]","hover:bg-[#1269cf]","hover:text-white","rounded",3,"click"],[1,"fas","fa-angle-left","mr-2","cursor-pointer"],[1,"grid","grid-cols-2",2,"font-family","'Open Sans', sans-serif"],[1,"mt-2","text-sm","font-semibold"],[1,"mt-2","text-sm","font-semibold","text-end"],[1,"mt-2","space-y-3","text-sm"],["class","grid grid-cols-3 border-gray-300",3,"border-t-1","pt-4",4,"ngFor","ngForOf"],[1,"text-sm","font-semibold","pt-3","pb-3","mt-2","border-t-1","border-gray-300",2,"font-family","'Open Sans', sans-serif"],[1,"grid","grid-cols-[55%_10%_35%]","gap-y-1",2,"font-family","'Roboto', sans-serif"],[4,"ngFor","ngForOf"],["class","mt-5",4,"ngFor","ngForOf"],[1,"grid","grid-cols-3","border-gray-300"],[1,"prod-info","col-span-2","flex","flex-col","justify-center",2,"font-family","'Roboto', sans-serif"],[1,"font-normal"],[1,"text-gray-400","text-xs"],["class","text-gray-400 text-xs",4,"ngIf"],[1,"price-info","text-end",2,"font-family","'Roboto', sans-serif"],[1,"italic",2,"font-family","'Roboto', sans-serif"],[1,"font-bold","text-red-500","text-xs",2,"font-family","'Roboto', sans-serif"],[1,"font-medium","text-sm","text-left","d-block",2,"font-family","'Roboto', sans-serif"],[1,"text-right","text-sm",2,"font-family","'Roboto', sans-serif"],[1,"font-semibold","mt-2","text-left","flex","flex-col","pt-3","pb-3","mt-2","border-t-1","border-gray-300",2,"font-family","'Roboto', sans-serif"],[1,"font-semibold","text-right","pt-3","pb-3","mt-2","border-t-1","border-gray-300"],[3,"onCompleteSubmitFeedback","starRate"],[1,"flex","items-center","flex-col","pt-[50px]"],["alt","Logo",1,"w-60","h-60",3,"src"],[1,"font-bold",2,"font-family","'Open Sans', sans-serif"],[1,"text-sm","text-center","mt-2",2,"font-family","'Open Sans', sans-serif"],[1,"text-sm","bg-[#0d77bb]","text-white","font-semibold","py-2","px-2","border","border-[#1269cf]","hover:bg-[#0d5bb5]","hover:text-white","rounded",2,"margin-top","20px",3,"click"]],template:function(n,a){n&1&&(g(0,ae,25,0,"div",0)(1,ye,8,6,"ng-container",1),f(2,"async")),n&2&&(m("ngIf",a.isLoading),o(),m("ngIf",C(2,2,a.print$)))},dependencies:[U,N,B,z,S,te,J,G,Z],styles:[".invoice_mini[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%]{width:264px;margin:auto;padding:0 4px;color:#000;font-family:Arial!important}.invoice_mini[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-family:Arial!important}.invoice_mini[_ngcontent-%COMP%] .text-danger[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .text-danger[_ngcontent-%COMP%]{color:red!important}.invoice_mini[_ngcontent-%COMP%] .border-y[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .border-y[_ngcontent-%COMP%]{padding:5px 0;border-top:1px solid #888}.invoice_mini[_ngcontent-%COMP%] .cartAmount[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .cartAmount[_ngcontent-%COMP%]{border-top:1px solid #888;border-bottom:1px solid #888}.invoice_mini[_ngcontent-%COMP%] .rightAuto[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .rightAuto[_ngcontent-%COMP%]{margin:0 0 0 auto}.invoice_mini[_ngcontent-%COMP%] span.point[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] span.point[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 auto!important;padding:0!important}.invoice_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%]{font-size:11px!important}.invoice_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-size:.4375rem;padding:.4375rem}.invoice_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] > p[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{margin:0 auto!important;padding:0!important}.invoice_mini.lx300[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .sales_order_mini.lx300[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:220px}.box[_ngcontent-%COMP%]{position:relative}.ribbon[_ngcontent-%COMP%]{width:170px;height:140px;overflow:hidden;position:absolute}.ribbon[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{position:absolute;display:block;width:204px;padding:42px 31px;background-color:#3498db;box-shadow:0 5px 10px #0000001a;color:#fff;text-shadow:0 1px 1px rgba(0,0,0,.2);text-transform:uppercase;text-align:center;font-size:9px;line-height:17px}.ribbon-content[_ngcontent-%COMP%]{top:-10px;left:-45px}div.ribbon-content[_ngcontent-%COMP%]{right:47px;top:47px;transform:rotate(-45deg)}.invoice_mini.lx300[_ngcontent-%COMP%], .sales_order_mini.lx300[_ngcontent-%COMP%], .packingslip_container.lx300[_ngcontent-%COMP%]{margin:0 0 0 20px!important;width:520px!important;letter-spacing:3px!important}.invoice_mini.lx300[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .sales_order_mini.lx300[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .packingslip_container.lx300[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{letter-spacing:8px!important}@media print{print-mode[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0px}.ribbon[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{background-color:none!important;color:#000;opacity:.7;border-style:dotted none}.ribbon[_ngcontent-%COMP%] .ribbon-content[_ngcontent-%COMP%]:after, .ribbon[_ngcontent-%COMP%] .ribbon-content[_ngcontent-%COMP%]:before{display:none}.sales_order_mini[_ngcontent-%COMP%] > .invoiceHeader[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{font-family:Arial,Helvetica,sans-serif!important}.toast[_ngcontent-%COMP%]{display:none!important}}.feedback-icon[_ngcontent-%COMP%]{cursor:pointer;font-size:80px} .disabled .star{opacity:1!important}"]})}}return t})();export{Le as ReceiptComponent};
@@ -333,10 +333,10 @@
333
333
  <meta name="theme-color" content="#1976d2">
334
334
  <meta name="theme-color" content="#1976d2">
335
335
  <noscript></noscript>
336
- <style>@layer theme{:root{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-500:oklch(.637 .237 25.331);--color-gray-200:oklch(.928 .006 264.531);--color-gray-300:oklch(.872 .01 258.338);--color-gray-400:oklch(.707 .022 261.325);--color-gray-500:oklch(.551 .027 264.364);--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-lg:.5rem;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--default-font-family:var(--font-sans);--default-font-feature-settings:var(--font-sans--font-feature-settings);--default-font-variation-settings:var( --font-sans--font-variation-settings );--default-mono-font-family:var(--font-mono);--default-mono-font-feature-settings:var( --font-mono--font-feature-settings );--default-mono-font-variation-settings:var( --font-mono--font-variation-settings )}}@layer base{*,:after,:before{box-sizing:border-box;margin:0;padding:0;border:0 solid}html{line-height:1.5;-webkit-text-size-adjust:100%;tab-size:4;font-family:var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings, normal);font-variation-settings:var(--default-font-variation-settings, normal);-webkit-tap-highlight-color:transparent}body{line-height:inherit}}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0;}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid;}@property --tw-leading{syntax:"*";inherits:false;}@property --tw-font-weight{syntax:"*";inherits:false;}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000;}@property --tw-shadow-color{syntax:"*";inherits:false;}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000;}@property --tw-inset-shadow-color{syntax:"*";inherits:false;}@property --tw-ring-color{syntax:"*";inherits:false;}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000;}@property --tw-inset-ring-color{syntax:"*";inherits:false;}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000;}@property --tw-ring-inset{syntax:"*";inherits:false;}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0px;}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff;}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000;}@property --tw-blur{syntax:"*";inherits:false;}@property --tw-brightness{syntax:"*";inherits:false;}@property --tw-contrast{syntax:"*";inherits:false;}@property --tw-grayscale{syntax:"*";inherits:false;}@property --tw-hue-rotate{syntax:"*";inherits:false;}@property --tw-invert{syntax:"*";inherits:false;}@property --tw-opacity{syntax:"*";inherits:false;}@property --tw-saturate{syntax:"*";inherits:false;}@property --tw-sepia{syntax:"*";inherits:false;}@property --tw-drop-shadow{syntax:"*";inherits:false;}</style><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/receiptfeedback@1.1.0/browser/styles-MCE2BTCI.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/receiptfeedback@1.1.0/browser/styles-MCE2BTCI.css"></noscript></head>
336
+ <style>@layer theme{:root{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-500:oklch(.637 .237 25.331);--color-gray-200:oklch(.928 .006 264.531);--color-gray-300:oklch(.872 .01 258.338);--color-gray-400:oklch(.707 .022 261.325);--color-gray-500:oklch(.551 .027 264.364);--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-lg:.5rem;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--default-font-family:var(--font-sans);--default-font-feature-settings:var(--font-sans--font-feature-settings);--default-font-variation-settings:var( --font-sans--font-variation-settings );--default-mono-font-family:var(--font-mono);--default-mono-font-feature-settings:var( --font-mono--font-feature-settings );--default-mono-font-variation-settings:var( --font-mono--font-variation-settings )}}@layer base{*,:after,:before{box-sizing:border-box;margin:0;padding:0;border:0 solid}html{line-height:1.5;-webkit-text-size-adjust:100%;tab-size:4;font-family:var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings, normal);font-variation-settings:var(--default-font-variation-settings, normal);-webkit-tap-highlight-color:transparent}body{line-height:inherit}}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0;}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid;}@property --tw-leading{syntax:"*";inherits:false;}@property --tw-font-weight{syntax:"*";inherits:false;}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000;}@property --tw-shadow-color{syntax:"*";inherits:false;}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000;}@property --tw-inset-shadow-color{syntax:"*";inherits:false;}@property --tw-ring-color{syntax:"*";inherits:false;}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000;}@property --tw-inset-ring-color{syntax:"*";inherits:false;}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000;}@property --tw-ring-inset{syntax:"*";inherits:false;}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0px;}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff;}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000;}@property --tw-blur{syntax:"*";inherits:false;}@property --tw-brightness{syntax:"*";inherits:false;}@property --tw-contrast{syntax:"*";inherits:false;}@property --tw-grayscale{syntax:"*";inherits:false;}@property --tw-hue-rotate{syntax:"*";inherits:false;}@property --tw-invert{syntax:"*";inherits:false;}@property --tw-opacity{syntax:"*";inherits:false;}@property --tw-saturate{syntax:"*";inherits:false;}@property --tw-sepia{syntax:"*";inherits:false;}@property --tw-drop-shadow{syntax:"*";inherits:false;}</style><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/receiptfeedback@1.1.2/browser/styles-MCE2BTCI.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/receiptfeedback@1.1.2/browser/styles-MCE2BTCI.css"></noscript></head>
337
337
 
338
338
  <body>
339
339
  <app-root></app-root>
340
340
  <noscript>Please enable JavaScript to continue using this application.</noscript>
341
- <link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/receiptfeedback@1.1.0/browser/chunk-SSCNVGQR.js"><link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/receiptfeedback@1.1.0/browser/chunk-VRDQHJMC.js"><link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/receiptfeedback@1.1.0/browser/chunk-X4JT4KX5.js"><script src="https://cdn.jsdelivr.net/npm/receiptfeedback@1.1.0/browser/polyfills-EONH2QZO.js" type="module"></script><script src="https://cdn.jsdelivr.net/npm/receiptfeedback@1.1.0/browser/main-NICZBFJN.js" type="module"></script></body>
341
+ <link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/receiptfeedback@1.1.2/browser/chunk-SSCNVGQR.js"><link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/receiptfeedback@1.1.2/browser/chunk-VRDQHJMC.js"><link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/receiptfeedback@1.1.2/browser/chunk-X4JT4KX5.js"><script src="https://cdn.jsdelivr.net/npm/receiptfeedback@1.1.2/browser/polyfills-EONH2QZO.js" type="module"></script><script src="https://cdn.jsdelivr.net/npm/receiptfeedback@1.1.2/browser/main-KWCKBTQT.js" type="module"></script></body>
342
342
  </html>
@@ -1 +1 @@
1
- import{A as Ht,B as He,D as Yt,E as Xt,a as zt,b as Kt,c as ve,f as qt,g as Bt,h as Qt,n as Vt,o as $t,p as S,q as z,r as jt,s as We,t as Y,u as Te,v as ce,w as Ut,x as Gt,z as Wt}from"./chunk-SSCNVGQR.js";import{a as Lt}from"./chunk-VRDQHJMC.js";import{$a as Ft,G as Dt,U as v,Ua as Ot,X as se,Y as ie,a as Ee,aa as ne,ab as re,ba as kt,c as Mt,pa as Rt,u as Ct,yb as It,za as Ge}from"./chunk-X4JT4KX5.js";var be=(()=>{class n{constructor(){}static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275cmp=Ft({type:n,selectors:[["app-root"]],standalone:!1,decls:1,vars:0,template:function(s,i){s&1&&It(0,"router-outlet")},dependencies:[Wt],encapsulation:2})}}return n})();var xt=(n,e)=>{let t=kt(Ht),s=n.queryParams.Data,i=n.queryParams.feel;return console.log(s),s?(t.navigate(["/","receipt"],{queryParams:{Data:s,feel:i}}),!1):!0};var ei=[{path:"",component:be,children:[{path:"",canActivate:[xt],loadComponent:()=>import("./chunk-HIZQS6KQ.js").then(n=>n.CompanyProfileComponent)},{path:"receipt",loadComponent:()=>import("./chunk-ZI32KZ2M.js").then(n=>n.ReceiptComponent)},{path:"feedback",loadComponent:()=>import("./chunk-WP6V36IL.js").then(n=>n.FeedbackComponent)},{path:"not-found",loadComponent:()=>import("./chunk-2SNGER6Z.js").then(n=>n.NotFoundComponent)}]}],Zt=(()=>{class n{static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275mod=re({type:n})}static{this.\u0275inj=ie({imports:[He.forRoot(ei),He]})}}return n})();function Jt(n){return new v(3e3,!1)}function ti(){return new v(3100,!1)}function si(){return new v(3101,!1)}function ii(n){return new v(3001,!1)}function ni(n){return new v(3003,!1)}function ri(n){return new v(3004,!1)}function ts(n,e){return new v(3005,!1)}function ss(){return new v(3006,!1)}function is(){return new v(3007,!1)}function ns(n,e){return new v(3008,!1)}function rs(n){return new v(3002,!1)}function as(n,e,t,s,i){return new v(3010,!1)}function os(){return new v(3011,!1)}function ls(){return new v(3012,!1)}function us(){return new v(3200,!1)}function cs(){return new v(3202,!1)}function hs(){return new v(3013,!1)}function ds(n){return new v(3014,!1)}function ms(n){return new v(3015,!1)}function fs(n){return new v(3016,!1)}function ps(n,e){return new v(3404,!1)}function ai(n){return new v(3502,!1)}function gs(n){return new v(3503,!1)}function ys(){return new v(3300,!1)}function _s(n){return new v(3504,!1)}function Ss(n){return new v(3301,!1)}function Es(n,e){return new v(3302,!1)}function vs(n){return new v(3303,!1)}function Ts(n,e){return new v(3400,!1)}function bs(n){return new v(3401,!1)}function ws(n){return new v(3402,!1)}function As(n,e){return new v(3505,!1)}function $(n){switch(n.length){case 0:return new Y;case 1:return n[0];default:return new Te(n)}}function Ze(n,e,t=new Map,s=new Map){let i=[],r=[],a=-1,o=null;if(e.forEach(l=>{let u=l.get("offset"),h=u==a,c=h&&o||new Map;l.forEach((_,y)=>{let m=y,g=_;if(y!=="offset")switch(m=n.normalizePropertyName(m,i),g){case ce:g=t.get(y);break;case z:g=s.get(y);break;default:g=n.normalizeStyleValue(y,m,g,i);break}c.set(m,g)}),h||r.push(c),o=c,a=u}),i.length)throw ai(i);return r}function we(n,e,t,s){switch(e){case"start":n.onStart(()=>s(t&&Ye(t,"start",n)));break;case"done":n.onDone(()=>s(t&&Ye(t,"done",n)));break;case"destroy":n.onDestroy(()=>s(t&&Ye(t,"destroy",n)));break}}function Ye(n,e,t){let s=t.totalTime,i=!!t.disabled,r=Ae(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,s??n.totalTime,i),a=n._data;return a!=null&&(r._data=a),r}function Ae(n,e,t,s,i="",r=0,a){return{element:n,triggerName:e,fromState:t,toState:s,phaseName:i,totalTime:r,disabled:!!a}}function R(n,e,t){let s=n.get(e);return s||n.set(e,s=t),s}function Je(n){let e=n.indexOf(":"),t=n.substring(1,e),s=n.slice(e+1);return[t,s]}var oi=typeof document>"u"?null:document.documentElement;function Pe(n){let e=n.parentNode||n.host||null;return e===oi?null:e}function li(n){return n.substring(1,6)=="ebkit"}var X=null,es=!1;function Ps(n){X||(X=ui()||{},es=X.style?"WebkitAppearance"in X.style:!1);let e=!0;return X.style&&!li(n)&&(e=n in X.style,!e&&es&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in X.style)),e}function ui(){return typeof document<"u"?document.body:null}function et(n,e){for(;e;){if(e===n)return!0;e=Pe(e)}return!1}function tt(n,e,t){if(t)return Array.from(n.querySelectorAll(e));let s=n.querySelector(e);return s?[s]:[]}var ci=1e3,st="{{",hi="}}",it="ng-enter",Ne="ng-leave",de="ng-trigger",me=".ng-trigger",nt="ng-animating",Me=".ng-animating";function V(n){if(typeof n=="number")return n;let e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Xe(parseFloat(e[1]),e[2])}function Xe(n,e){switch(e){case"s":return n*ci;default:return n}}function fe(n,e,t){return n.hasOwnProperty("duration")?n:di(n,e,t)}function di(n,e,t){let s=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,i,r=0,a="";if(typeof n=="string"){let o=n.match(s);if(o===null)return e.push(Jt(n)),{duration:0,delay:0,easing:""};i=Xe(parseFloat(o[1]),o[2]);let l=o[3];l!=null&&(r=Xe(parseFloat(l),o[4]));let u=o[5];u&&(a=u)}else i=n;if(!t){let o=!1,l=e.length;i<0&&(e.push(ti()),o=!0),r<0&&(e.push(si()),o=!0),o&&e.splice(l,0,Jt(n))}return{duration:i,delay:r,easing:a}}function Ns(n){return n.length?n[0]instanceof Map?n:n.map(e=>new Map(Object.entries(e))):[]}function K(n,e,t){e.forEach((s,i)=>{let r=Ce(i);t&&!t.has(i)&&t.set(i,n.style[r]),n.style[r]=s})}function U(n,e){e.forEach((t,s)=>{let i=Ce(s);n.style[i]=""})}function ae(n){return Array.isArray(n)?n.length==1?n[0]:jt(n):n}function Ms(n,e,t){let s=e.params||{},i=rt(n);i.length&&i.forEach(r=>{s.hasOwnProperty(r)||t.push(ii(r))})}var xe=new RegExp(`${st}\\s*(.+?)\\s*${hi}`,"g");function rt(n){let e=[];if(typeof n=="string"){let t;for(;t=xe.exec(n);)e.push(t[1]);xe.lastIndex=0}return e}function oe(n,e,t){let s=`${n}`,i=s.replace(xe,(r,a)=>{let o=e[a];return o==null&&(t.push(ni(a)),o=""),o.toString()});return i==s?n:i}var mi=/-+([a-z0-9])/g;function Ce(n){return n.replace(mi,(...e)=>e[1].toUpperCase())}function Cs(n,e){return n===0||e===0}function Ds(n,e,t){if(t.size&&e.length){let s=e[0],i=[];if(t.forEach((r,a)=>{s.has(a)||i.push(a),s.set(a,r)}),i.length)for(let r=1;r<e.length;r++){let a=e[r];i.forEach(o=>a.set(o,De(n,o)))}}return e}function O(n,e,t){switch(e.type){case S.Trigger:return n.visitTrigger(e,t);case S.State:return n.visitState(e,t);case S.Transition:return n.visitTransition(e,t);case S.Sequence:return n.visitSequence(e,t);case S.Group:return n.visitGroup(e,t);case S.Animate:return n.visitAnimate(e,t);case S.Keyframes:return n.visitKeyframes(e,t);case S.Style:return n.visitStyle(e,t);case S.Reference:return n.visitReference(e,t);case S.AnimateChild:return n.visitAnimateChild(e,t);case S.AnimateRef:return n.visitAnimateRef(e,t);case S.Query:return n.visitQuery(e,t);case S.Stagger:return n.visitStagger(e,t);default:throw ri(e.type)}}function De(n,e){return window.getComputedStyle(n)[e]}var Tt=(()=>{class n{validateStyleProperty(t){return Ps(t)}containsElement(t,s){return et(t,s)}getParentElement(t){return Pe(t)}query(t,s,i){return tt(t,s,i)}computeStyle(t,s,i){return i||""}animate(t,s,i,r,a,o=[],l){return new Y(i,r)}static \u0275fac=function(s){return new(s||n)};static \u0275prov=se({token:n,factory:n.\u0275fac})}return n})(),Z=class{static NOOP=new Tt},J=class{};var fi=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"]),Ie=class extends J{normalizePropertyName(e,t){return Ce(e)}normalizeStyleValue(e,t,s,i){let r="",a=s.toString().trim();if(fi.has(t)&&s!==0&&s!=="0")if(typeof s=="number")r="px";else{let o=s.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&o[1].length==0&&i.push(ts(e,s))}return a+r}};var Le="*";function pi(n,e){let t=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(s=>gi(s,t,e)):t.push(n),t}function gi(n,e,t){if(n[0]==":"){let l=yi(n,t);if(typeof l=="function"){e.push(l);return}n=l}let s=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(s==null||s.length<4)return t.push(ms(n)),e;let i=s[1],r=s[2],a=s[3];e.push(ks(i,a));let o=i==Le&&a==Le;r[0]=="<"&&!o&&e.push(ks(a,i))}function yi(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,s)=>parseFloat(s)>parseFloat(t);case":decrement":return(t,s)=>parseFloat(s)<parseFloat(t);default:return e.push(fs(n)),"* => *"}}var ke=new Set(["true","1"]),Re=new Set(["false","0"]);function ks(n,e){let t=ke.has(n)||Re.has(n),s=ke.has(e)||Re.has(e);return(i,r)=>{let a=n==Le||n==i,o=e==Le||e==r;return!a&&t&&typeof i=="boolean"&&(a=i?ke.has(n):Re.has(n)),!o&&s&&typeof r=="boolean"&&(o=r?ke.has(e):Re.has(e)),a&&o}}var Qs=":self",_i=new RegExp(`s*${Qs}s*,?`,"g");function Vs(n,e,t,s){return new ht(n).build(e,t,s)}var Rs="",ht=class{_driver;constructor(e){this._driver=e}build(e,t,s){let i=new dt(t);return this._resetContextStyleTimingState(i),O(this,ae(e),i)}_resetContextStyleTimingState(e){e.currentQuerySelector=Rs,e.collectedStyles=new Map,e.collectedStyles.set(Rs,new Map),e.currentTime=0}visitTrigger(e,t){let s=t.queryCount=0,i=t.depCount=0,r=[],a=[];return e.name.charAt(0)=="@"&&t.errors.push(ss()),e.definitions.forEach(o=>{if(this._resetContextStyleTimingState(t),o.type==S.State){let l=o,u=l.name;u.toString().split(/\s*,\s*/).forEach(h=>{l.name=h,r.push(this.visitState(l,t))}),l.name=u}else if(o.type==S.Transition){let l=this.visitTransition(o,t);s+=l.queryCount,i+=l.depCount,a.push(l)}else t.errors.push(is())}),{type:S.Trigger,name:e.name,states:r,transitions:a,queryCount:s,depCount:i,options:null}}visitState(e,t){let s=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(s.containsDynamicStyles){let r=new Set,a=i||{};s.styles.forEach(o=>{o instanceof Map&&o.forEach(l=>{rt(l).forEach(u=>{a.hasOwnProperty(u)||r.add(u)})})}),r.size&&t.errors.push(ns(e.name,[...r.values()]))}return{type:S.State,name:e.name,style:s,options:i?{params:i}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let s=O(this,ae(e.animation),t),i=pi(e.expr,t.errors);return{type:S.Transition,matchers:i,animation:s,queryCount:t.queryCount,depCount:t.depCount,options:x(e.options)}}visitSequence(e,t){return{type:S.Sequence,steps:e.steps.map(s=>O(this,s,t)),options:x(e.options)}}visitGroup(e,t){let s=t.currentTime,i=0,r=e.steps.map(a=>{t.currentTime=s;let o=O(this,a,t);return i=Math.max(i,t.currentTime),o});return t.currentTime=i,{type:S.Group,steps:r,options:x(e.options)}}visitAnimate(e,t){let s=Ti(e.timings,t.errors);t.currentAnimateTimings=s;let i,r=e.styles?e.styles:We({});if(r.type==S.Keyframes)i=this.visitKeyframes(r,t);else{let a=e.styles,o=!1;if(!a){o=!0;let u={};s.easing&&(u.easing=s.easing),a=We(u)}t.currentTime+=s.duration+s.delay;let l=this.visitStyle(a,t);l.isEmptyStep=o,i=l}return t.currentAnimateTimings=null,{type:S.Animate,timings:s,style:i,options:null}}visitStyle(e,t){let s=this._makeStyleAst(e,t);return this._validateStyleAst(s,t),s}_makeStyleAst(e,t){let s=[],i=Array.isArray(e.styles)?e.styles:[e.styles];for(let o of i)typeof o=="string"?o===z?s.push(o):t.errors.push(rs(o)):s.push(new Map(Object.entries(o)));let r=!1,a=null;return s.forEach(o=>{if(o instanceof Map&&(o.has("easing")&&(a=o.get("easing"),o.delete("easing")),!r)){for(let l of o.values())if(l.toString().indexOf(st)>=0){r=!0;break}}}),{type:S.Style,styles:s,easing:a,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let s=t.currentAnimateTimings,i=t.currentTime,r=t.currentTime;s&&r>0&&(r-=s.duration+s.delay),e.styles.forEach(a=>{typeof a!="string"&&a.forEach((o,l)=>{let u=t.collectedStyles.get(t.currentQuerySelector),h=u.get(l),c=!0;h&&(r!=i&&r>=h.startTime&&i<=h.endTime&&(t.errors.push(as(l,h.startTime,h.endTime,r,i)),c=!1),r=h.startTime),c&&u.set(l,{startTime:r,endTime:i}),t.options&&Ms(o,t.options,t.errors)})})}visitKeyframes(e,t){let s={type:S.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(os()),s;let i=1,r=0,a=[],o=!1,l=!1,u=0,h=e.steps.map(w=>{let A=this._makeStyleAst(w,t),C=A.offset!=null?A.offset:vi(A.styles),N=0;return C!=null&&(r++,N=A.offset=C),l=l||N<0||N>1,o=o||N<u,u=N,a.push(N),A});l&&t.errors.push(ls()),o&&t.errors.push(us());let c=e.steps.length,_=0;r>0&&r<c?t.errors.push(cs()):r==0&&(_=i/(c-1));let y=c-1,m=t.currentTime,g=t.currentAnimateTimings,T=g.duration;return h.forEach((w,A)=>{let C=_>0?A==y?1:_*A:a[A],N=C*T;t.currentTime=m+g.delay+N,g.duration=N,this._validateStyleAst(w,t),w.offset=C,s.styles.push(w)}),s}visitReference(e,t){return{type:S.Reference,animation:O(this,ae(e.animation),t),options:x(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:S.AnimateChild,options:x(e.options)}}visitAnimateRef(e,t){return{type:S.AnimateRef,animation:this.visitReference(e.animation,t),options:x(e.options)}}visitQuery(e,t){let s=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;let[r,a]=Si(e.selector);t.currentQuerySelector=s.length?s+" "+r:r,R(t.collectedStyles,t.currentQuerySelector,new Map);let o=O(this,ae(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=s,{type:S.Query,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:a,animation:o,originalSelector:e.selector,options:x(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(hs());let s=e.timings==="full"?{duration:0,delay:0,easing:"full"}:fe(e.timings,t.errors,!0);return{type:S.Stagger,animation:O(this,ae(e.animation),t),timings:s,options:null}}};function Si(n){let e=!!n.split(/\s*,\s*/).find(t=>t==Qs);return e&&(n=n.replace(_i,"")),n=n.replace(/@\*/g,me).replace(/@\w+/g,t=>me+"-"+t.slice(1)).replace(/:animating/g,Me),[n,e]}function Ei(n){return n?Ee({},n):null}var dt=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(e){this.errors=e}};function vi(n){if(typeof n=="string")return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(t instanceof Map&&t.has("offset")){let s=t;e=parseFloat(s.get("offset")),s.delete("offset")}});else if(n instanceof Map&&n.has("offset")){let t=n;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function Ti(n,e){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let r=fe(n,e).duration;return at(r,0,"")}let t=n;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=at(0,0,"");return r.dynamic=!0,r.strValue=t,r}let i=fe(t,e);return at(i.duration,i.delay,i.easing)}function x(n){return n?(n=Ee({},n),n.params&&(n.params=Ei(n.params))):n={},n}function at(n,e,t){return{duration:n,delay:e,easing:t}}function bt(n,e,t,s,i,r,a=null,o=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:s,duration:i,delay:r,totalTime:i+r,easing:a,subTimeline:o}}var ge=class{_map=new Map;get(e){return this._map.get(e)||[]}append(e,t){let s=this._map.get(e);s||this._map.set(e,s=[]),s.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},bi=1,wi=":enter",Ai=new RegExp(wi,"g"),Pi=":leave",Ni=new RegExp(Pi,"g");function $s(n,e,t,s,i,r=new Map,a=new Map,o,l,u=[]){return new mt().buildKeyframes(n,e,t,s,i,r,a,o,l,u)}var mt=class{buildKeyframes(e,t,s,i,r,a,o,l,u,h=[]){u=u||new ge;let c=new ft(e,t,u,i,r,h,[]);c.options=l;let _=l.delay?V(l.delay):0;c.currentTimeline.delayNextStep(_),c.currentTimeline.setStyles([a],null,c.errors,l),O(this,s,c);let y=c.timelines.filter(m=>m.containsAnimation());if(y.length&&o.size){let m;for(let g=y.length-1;g>=0;g--){let T=y[g];if(T.element===t){m=T;break}}m&&!m.allowOnlyTimelineStyles()&&m.setStyles([o],null,c.errors,l)}return y.length?y.map(m=>m.buildKeyframes()):[bt(t,[],[],[],0,_,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let s=t.subInstructions.get(t.element);if(s){let i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,a=this._visitSubInstructions(s,i,i.options);r!=a&&t.transformIntoNewTimeline(a)}t.previousNode=e}visitAnimateRef(e,t){let s=t.createSubContext(e.options);s.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,s),this.visitReference(e.animation,s),t.transformIntoNewTimeline(s.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,s){for(let i of e){let r=i?.delay;if(r){let a=typeof r=="number"?r:V(oe(r,i?.params??{},t.errors));s.delayNextStep(a)}}}_visitSubInstructions(e,t,s){let r=t.currentTimeline.currentTime,a=s.duration!=null?V(s.duration):null,o=s.delay!=null?V(s.delay):null;return a!==0&&e.forEach(l=>{let u=t.appendInstructionToTimeline(l,a,o);r=Math.max(r,u.duration+u.delay)}),r}visitReference(e,t){t.updateOptions(e.options,!0),O(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let s=t.subContextCount,i=t,r=e.options;if(r&&(r.params||r.delay)&&(i=t.createSubContext(r),i.transformIntoNewTimeline(),r.delay!=null)){i.previousNode.type==S.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=ze);let a=V(r.delay);i.delayNextStep(a)}e.steps.length&&(e.steps.forEach(a=>O(this,a,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>s&&i.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let s=[],i=t.currentTimeline.currentTime,r=e.options&&e.options.delay?V(e.options.delay):0;e.steps.forEach(a=>{let o=t.createSubContext(e.options);r&&o.delayNextStep(r),O(this,a,o),i=Math.max(i,o.currentTimeline.currentTime),s.push(o.currentTimeline)}),s.forEach(a=>t.currentTimeline.mergeTimelineCollectedStyles(a)),t.transformIntoNewTimeline(i),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let s=e.strValue,i=t.params?oe(s,t.params,t.errors):s;return fe(i,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let s=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;s.delay&&(t.incrementTime(s.delay),i.snapshotCurrentStyles());let r=e.style;r.type==S.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(s.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let s=t.currentTimeline,i=t.currentAnimateTimings;!i&&s.hasCurrentStyleProperties()&&s.forwardFrame();let r=i&&i.easing||e.easing;e.isEmptyStep?s.applyEmptyStep(r):s.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let s=t.currentAnimateTimings,i=t.currentTimeline.duration,r=s.duration,o=t.createSubContext().currentTimeline;o.easing=s.easing,e.styles.forEach(l=>{let u=l.offset||0;o.forwardTime(u*r),o.setStyles(l.styles,l.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(i+r),t.previousNode=e}visitQuery(e,t){let s=t.currentTimeline.currentTime,i=e.options||{},r=i.delay?V(i.delay):0;r&&(t.previousNode.type===S.Style||s==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=ze);let a=s,o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=o.length;let l=null;o.forEach((u,h)=>{t.currentQueryIndex=h;let c=t.createSubContext(e.options,u);r&&c.delayNextStep(r),u===t.element&&(l=c.currentTimeline),O(this,e.animation,c),c.currentTimeline.applyStylesToKeyframe();let _=c.currentTimeline.currentTime;a=Math.max(a,_)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let s=t.parentContext,i=t.currentTimeline,r=e.timings,a=Math.abs(r.duration),o=a*(t.currentQueryTotal-1),l=a*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=o-l;break;case"full":l=s.currentStaggerTime;break}let h=t.currentTimeline;l&&h.delayNextStep(l);let c=h.currentTime;O(this,e.animation,t),t.previousNode=e,s.currentStaggerTime=i.currentTime-c+(i.startTime-s.currentTimeline.startTime)}},ze={},ft=class n{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=ze;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(e,t,s,i,r,a,o,l){this._driver=e,this.element=t,this.subInstructions=s,this._enterClassName=i,this._leaveClassName=r,this.errors=a,this.timelines=o,this.currentTimeline=l||new Ke(this._driver,t,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let s=e,i=this.options;s.duration!=null&&(i.duration=V(s.duration)),s.delay!=null&&(i.delay=V(s.delay));let r=s.params;if(r){let a=i.params;a||(a=this.options.params={}),Object.keys(r).forEach(o=>{(!t||!a.hasOwnProperty(o))&&(a[o]=oe(r[o],a,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let s=e.params={};Object.keys(t).forEach(i=>{s[i]=t[i]})}}return e}createSubContext(e=null,t,s){let i=t||this.element,r=new n(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,s||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=ze,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,s){let i={duration:t??e.duration,delay:this.currentTimeline.currentTime+(s??0)+e.delay,easing:""},r=new pt(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,s,i,r,a){let o=[];if(i&&o.push(this.element),e.length>0){e=e.replace(Ai,"."+this._enterClassName),e=e.replace(Ni,"."+this._leaveClassName);let l=s!=1,u=this._driver.query(this.element,e,l);s!==0&&(u=s<0?u.slice(u.length+s,u.length):u.slice(0,s)),o.push(...u)}return!r&&o.length==0&&a.push(ds(t)),o}},Ke=class n{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(e,t,s,i){this._driver=e,this.element=t,this.startTime=s,this._elementTimelineStylesLookup=i,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,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 t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new n(this._driver,e,t||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+=bi,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,s]of this._globalTimelineStyles)this._backFill.set(t,s||z),this._currentKeyframe.set(t,z);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,s,i){t&&this._previousKeyframe.set("easing",t);let r=i&&i.params||{},a=Mi(e,this._globalTimelineStyles);for(let[o,l]of a){let u=oe(l,r,s);this._pendingStyles.set(o,u),this._localTimelineStyles.has(o)||this._backFill.set(o,this._globalTimelineStyles.get(o)??z),this._updateStyle(o,u)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,s)=>{let i=this._styleSummary.get(s);(!i||t.time>i.time)&&this._updateStyle(s,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,s=this._keyframes.size===1&&this.duration===0,i=[];this._keyframes.forEach((o,l)=>{let u=new Map([...this._backFill,...o]);u.forEach((h,c)=>{h===ce?e.add(c):h===z&&t.add(c)}),s||u.set("offset",l/this.duration),i.push(u)});let r=[...e.values()],a=[...t.values()];if(s){let o=i[0],l=new Map(o);o.set("offset",0),l.set("offset",1),i=[o,l]}return bt(this.element,i,r,a,this.duration,this.startTime,this.easing,!1)}},pt=class extends Ke{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(e,t,s,i,r,a,o=!1){super(e,t,a.delay),this.keyframes=s,this.preStyleProps=i,this.postStyleProps=r,this._stretchStartingKeyframe=o,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:s,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){let r=[],a=s+t,o=t/a,l=new Map(e[0]);l.set("offset",0),r.push(l);let u=new Map(e[0]);u.set("offset",Os(o)),r.push(u);let h=e.length-1;for(let c=1;c<=h;c++){let _=new Map(e[c]),y=_.get("offset"),m=t+y*s;_.set("offset",Os(m/a)),r.push(_)}s=a,t=0,i="",e=r}return bt(this.element,e,this.preStyleProps,this.postStyleProps,s,t,i,!0)}};function Os(n,e=3){let t=Math.pow(10,e-1);return Math.round(n*t)/t}function Mi(n,e){let t=new Map,s;return n.forEach(i=>{if(i==="*"){s??=e.keys();for(let r of s)t.set(r,z)}else for(let[r,a]of i)t.set(r,a)}),t}function Fs(n,e,t,s,i,r,a,o,l,u,h,c,_){return{type:0,element:n,triggerName:e,isRemovalTransition:i,fromState:t,fromStyles:r,toState:s,toStyles:a,timelines:o,queriedElements:l,preStyleProps:u,postStyleProps:h,totalTime:c,errors:_}}var ot={},qe=class{_triggerName;ast;_stateStyles;constructor(e,t,s){this._triggerName=e,this.ast=t,this._stateStyles=s}match(e,t,s,i){return Ci(this.ast.matchers,e,t,s,i)}buildStyles(e,t,s){let i=this._stateStyles.get("*");return e!==void 0&&(i=this._stateStyles.get(e?.toString())||i),i?i.buildStyles(t,s):new Map}build(e,t,s,i,r,a,o,l,u,h){let c=[],_=this.ast.options&&this.ast.options.params||ot,y=o&&o.params||ot,m=this.buildStyles(s,y,c),g=l&&l.params||ot,T=this.buildStyles(i,g,c),w=new Set,A=new Map,C=new Map,N=i==="void",ee={params:js(g,_),delay:this.ast.options?.delay},B=h?[]:$s(e,t,this.ast.animation,r,a,m,T,ee,u,c),D=0;return B.forEach(k=>{D=Math.max(k.duration+k.delay,D)}),c.length?Fs(t,this._triggerName,s,i,N,m,T,[],[],A,C,D,c):(B.forEach(k=>{let G=k.element,te=R(A,G,new Set);k.preStyleProps.forEach(W=>te.add(W));let wt=R(C,G,new Set);k.postStyleProps.forEach(W=>wt.add(W)),G!==t&&w.add(G)}),Fs(t,this._triggerName,s,i,N,m,T,B,[...w.values()],A,C,D))}};function Ci(n,e,t,s,i){return n.some(r=>r(e,t,s,i))}function js(n,e){let t=Ee({},e);return Object.entries(n).forEach(([s,i])=>{i!=null&&(t[s]=i)}),t}var gt=class{styles;defaultParams;normalizer;constructor(e,t,s){this.styles=e,this.defaultParams=t,this.normalizer=s}buildStyles(e,t){let s=new Map,i=js(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((a,o)=>{a&&(a=oe(a,i,t));let l=this.normalizer.normalizePropertyName(o,t);a=this.normalizer.normalizeStyleValue(o,l,a,t),s.set(o,a)})}),s}};function Di(n,e,t){return new yt(n,e,t)}var yt=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(e,t,s){this.name=e,this.ast=t,this._normalizer=s,t.states.forEach(i=>{let r=i.options&&i.options.params||{};this.states.set(i.name,new gt(i.style,r,s))}),Is(this.states,"true","1"),Is(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new qe(e,i,this.states))}),this.fallbackTransition=ki(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,s,i){return this.transitionFactories.find(a=>a.match(e,t,s,i))||null}matchStyles(e,t,s){return this.fallbackTransition.buildStyles(e,t,s)}};function ki(n,e,t){let s=[(a,o)=>!0],i={type:S.Sequence,steps:[],options:null},r={type:S.Transition,animation:i,matchers:s,options:null,queryCount:0,depCount:0};return new qe(n,r,e)}function Is(n,e,t){n.has(e)?n.has(t)||n.set(t,n.get(e)):n.has(t)&&n.set(e,n.get(t))}var Ri=new ge,_t=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(e,t,s){this.bodyNode=e,this._driver=t,this._normalizer=s}register(e,t){let s=[],i=[],r=Vs(this._driver,t,s,i);if(s.length)throw gs(s);this._animations.set(e,r)}_buildPlayer(e,t,s){let i=e.element,r=Ze(this._normalizer,e.keyframes,t,s);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,s={}){let i=[],r=this._animations.get(e),a,o=new Map;if(r?(a=$s(this._driver,t,r,it,Ne,new Map,new Map,s,Ri,i),a.forEach(h=>{let c=R(o,h.element,new Map);h.postStyleProps.forEach(_=>c.set(_,null))})):(i.push(ys()),a=[]),i.length)throw _s(i);o.forEach((h,c)=>{h.forEach((_,y)=>{h.set(y,this._driver.computeStyle(c,y,z))})});let l=a.map(h=>{let c=o.get(h.element);return this._buildPlayer(h,new Map,c)}),u=$(l);return this._playersById.set(e,u),u.onDestroy(()=>this.destroy(e)),this.players.push(u),u}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let s=this.players.indexOf(t);s>=0&&this.players.splice(s,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw Ss(e);return t}listen(e,t,s,i){let r=Ae(t,"","","");return we(this._getPlayer(e),s,r,i),()=>{}}command(e,t,s,i){if(s=="register"){this.register(e,i[0]);return}if(s=="create"){let a=i[0]||{};this.create(e,t,a);return}let r=this._getPlayer(e);switch(s){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(i[0]));break;case"destroy":this.destroy(e);break}}},Ls="ng-animate-queued",Oi=".ng-animate-queued",lt="ng-animate-disabled",Fi=".ng-animate-disabled",Ii="ng-star-inserted",Li=".ng-star-inserted",zi=[],Us={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ki={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},q="__ng_removed",ye=class{namespaceId;value;options;get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let s=e&&e.hasOwnProperty("value"),i=s?e.value:e;if(this.value=Bi(i),s){let r=e,{value:a}=r,o=Mt(r,["value"]);this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let s=this.options.params;Object.keys(t).forEach(i=>{s[i]==null&&(s[i]=t[i])})}}},pe="void",ut=new ye(pe),St=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(e,t,s){this.id=e,this.hostElement=t,this._engine=s,this._hostClassName="ng-tns-"+e,L(t,this._hostClassName)}listen(e,t,s,i){if(!this._triggers.has(t))throw Es(s,t);if(s==null||s.length==0)throw vs(t);if(!Qi(s))throw Ts(s,t);let r=R(this._elementListeners,e,[]),a={name:t,phase:s,callback:i};r.push(a);let o=R(this._engine.statesByElement,e,new Map);return o.has(t)||(L(e,de),L(e,de+"-"+t),o.set(t,ut)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(a);l>=0&&r.splice(l,1),this._triggers.has(t)||o.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw bs(e);return t}trigger(e,t,s,i=!0){let r=this._getTrigger(t),a=new _e(this.id,t,e),o=this._engine.statesByElement.get(e);o||(L(e,de),L(e,de+"-"+t),this._engine.statesByElement.set(e,o=new Map));let l=o.get(t),u=new ye(s,this.id);if(!(s&&s.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),o.set(t,u),l||(l=ut),!(u.value===pe)&&l.value===u.value){if(!ji(l.params,u.params)){let g=[],T=r.matchStyles(l.value,l.params,g),w=r.matchStyles(u.value,u.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{U(e,T),K(e,w)})}return}let _=R(this._engine.playersByElement,e,[]);_.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy()});let y=r.matchTransition(l.value,u.value,e,u.params),m=!1;if(!y){if(!i)return;y=r.fallbackTransition,m=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:y,fromState:l,toState:u,player:a,isFallbackTransition:m}),m||(L(e,Ls),a.onStart(()=>{le(e,Ls)})),a.onDone(()=>{let g=this.players.indexOf(a);g>=0&&this.players.splice(g,1);let T=this._engine.playersByElement.get(e);if(T){let w=T.indexOf(a);w>=0&&T.splice(w,1)}}),this.players.push(a),_.push(a),a}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,s)=>{this._elementListeners.set(s,t.filter(i=>i.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(s=>s.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let s=this._engine.driver.query(e,me,!0);s.forEach(i=>{if(i[q])return;let r=this._engine.fetchNamespacesByElement(i);r.size?r.forEach(a=>a.triggerLeaveAnimation(i,t,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>s.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(e,t,s,i){let r=this._engine.statesByElement.get(e),a=new Map;if(r){let o=[];if(r.forEach((l,u)=>{if(a.set(u,l.value),this._triggers.has(u)){let h=this.trigger(e,u,pe,i);h&&o.push(h)}}),o.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,a),s&&$(o).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),s=this._engine.statesByElement.get(e);if(t&&s){let i=new Set;t.forEach(r=>{let a=r.name;if(i.has(a))return;i.add(a);let l=this._triggers.get(a).fallbackTransition,u=s.get(a)||ut,h=new ye(pe),c=new _e(this.id,a,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:a,transition:l,fromState:u,toState:h,player:c,isFallbackTransition:!0})})}}removeNode(e,t){let s=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let i=!1;if(s.totalAnimations){let r=s.players.length?s.playersByQueriedElement.get(e):[];if(r&&r.length)i=!0;else{let a=e;for(;a=a.parentNode;)if(s.statesByElement.get(a)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(e),i)s.markElementAsRemoved(this.id,e,!1,t);else{let r=e[q];(!r||r===Us)&&(s.afterFlush(()=>this.clearElementCache(e)),s.destroyInnerAnimations(e),s._onRemovalComplete(e,t))}}insertNode(e,t){L(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(s=>{let i=s.player;if(i.destroyed)return;let r=s.element,a=this._elementListeners.get(r);a&&a.forEach(o=>{if(o.name==s.triggerName){let l=Ae(r,s.triggerName,s.fromState.value,s.toState.value);l._data=e,we(s.player,o.phase,l,o.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(s)}),this._queue=[],t.sort((s,i)=>{let r=s.transition.ast.depCount,a=i.transition.ast.depCount;return r==0||a==0?r-a:this._engine.driver.containsElement(s.element,i.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Et=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(e,t)=>{};_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,s){this.bodyNode=e,this.driver=t,this._normalizer=s}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(s=>{s.queued&&e.push(s)})}),e}createNamespace(e,t){let s=new St(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(s,t):(this.newHostElements.set(t,s),this.collectEnterElement(t)),this._namespaceLookup[e]=s}_balanceNamespaceList(e,t){let s=this._namespaceList,i=this.namespacesByHostElement;if(s.length-1>=0){let a=!1,o=this.driver.getParentElement(t);for(;o;){let l=i.get(o);if(l){let u=s.indexOf(l);s.splice(u+1,0,e),a=!0;break}o=this.driver.getParentElement(o)}a||s.unshift(e)}else s.push(e);return i.set(t,e),e}register(e,t){let s=this._namespaceLookup[e];return s||(s=this.createNamespace(e,t)),s}registerTrigger(e,t,s){let i=this._namespaceLookup[e];i&&i.register(t,s)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let s=this._fetchNamespace(e);this.namespacesByHostElement.delete(s.hostElement);let i=this._namespaceList.indexOf(s);i>=0&&this._namespaceList.splice(i,1),s.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,s=this.statesByElement.get(e);if(s){for(let i of s.values())if(i.namespaceId){let r=this._fetchNamespace(i.namespaceId);r&&t.add(r)}}return t}trigger(e,t,s,i){if(Oe(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,s,i),!0}return!1}insertNode(e,t,s,i){if(!Oe(t))return;let r=t[q];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let a=this.collectedLeaveElements.indexOf(t);a>=0&&this.collectedLeaveElements.splice(a,1)}if(e){let a=this._fetchNamespace(e);a&&a.insertNode(t,s)}i&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),L(e,lt)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),le(e,lt))}removeNode(e,t,s){if(Oe(t)){let i=e?this._fetchNamespace(e):null;i?i.removeNode(t,s):this.markElementAsRemoved(e,t,!1,s);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,s)}else this._onRemovalComplete(t,s)}markElementAsRemoved(e,t,s,i,r){this.collectedLeaveElements.push(t),t[q]={namespaceId:e,setForRemoval:i,hasAnimation:s,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,t,s,i,r){return Oe(t)?this._fetchNamespace(e).listen(t,s,i,r):()=>{}}_buildInstruction(e,t,s,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,s,i,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,me,!0);t.forEach(s=>this.destroyActiveAnimationsForElement(s)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,Me,!0),t.forEach(s=>this.finishActiveQueriedAnimationOnElement(s)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(s=>{s.queued?s.markedForDestroy=!0:s.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(s=>s.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return $(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[q];if(t&&t.setForRemoval){if(e[q]=Us,t.namespaceId){this.destroyInnerAnimations(e);let s=this._fetchNamespace(t.namespaceId);s&&s.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(lt)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Fi,!0).forEach(s=>{this.markElementAsDisabled(s,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((s,i)=>this._balanceNamespaceList(s,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let s=0;s<this.collectedEnterElements.length;s++){let i=this.collectedEnterElements[s];L(i,Ii)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let s=[];try{t=this._flushAnimations(s,e)}finally{for(let i=0;i<s.length;i++)s[i]()}}else for(let s=0;s<this.collectedLeaveElements.length;s++){let i=this.collectedLeaveElements[s];this.processLeaveNode(i)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(s=>s()),this._flushFns=[],this._whenQuietFns.length){let s=this._whenQuietFns;this._whenQuietFns=[],t.length?$(t).onDone(()=>{s.forEach(i=>i())}):s.forEach(i=>i())}}reportError(e){throw ws(e)}_flushAnimations(e,t){let s=new ge,i=[],r=new Map,a=[],o=new Map,l=new Map,u=new Map,h=new Set;this.disabledNodes.forEach(d=>{h.add(d);let f=this.driver.query(d,Oi,!0);for(let p=0;p<f.length;p++)h.add(f[p])});let c=this.bodyNode,_=Array.from(this.statesByElement.keys()),y=qs(_,this.collectedEnterElements),m=new Map,g=0;y.forEach((d,f)=>{let p=it+g++;m.set(f,p),d.forEach(E=>L(E,p))});let T=[],w=new Set,A=new Set;for(let d=0;d<this.collectedLeaveElements.length;d++){let f=this.collectedLeaveElements[d],p=f[q];p&&p.setForRemoval&&(T.push(f),w.add(f),p.hasAnimation?this.driver.query(f,Li,!0).forEach(E=>w.add(E)):A.add(f))}let C=new Map,N=qs(_,Array.from(w));N.forEach((d,f)=>{let p=Ne+g++;C.set(f,p),d.forEach(E=>L(E,p))}),e.push(()=>{y.forEach((d,f)=>{let p=m.get(f);d.forEach(E=>le(E,p))}),N.forEach((d,f)=>{let p=C.get(f);d.forEach(E=>le(E,p))}),T.forEach(d=>{this.processLeaveNode(d)})});let ee=[],B=[];for(let d=this._namespaceList.length-1;d>=0;d--)this._namespaceList[d].drainQueuedTransitions(t).forEach(p=>{let E=p.player,P=p.element;if(ee.push(E),this.collectedEnterElements.length){let M=P[q];if(M&&M.setForMove){if(M.previousTriggersValues&&M.previousTriggersValues.has(p.triggerName)){let H=M.previousTriggersValues.get(p.triggerName),I=this.statesByElement.get(p.element);if(I&&I.has(p.triggerName)){let Se=I.get(p.triggerName);Se.value=H,I.set(p.triggerName,Se)}}E.destroy();return}}let Q=!c||!this.driver.containsElement(c,P),F=C.get(P),j=m.get(P),b=this._buildInstruction(p,s,j,F,Q);if(b.errors&&b.errors.length){B.push(b);return}if(Q){E.onStart(()=>U(P,b.fromStyles)),E.onDestroy(()=>K(P,b.toStyles)),i.push(E);return}if(p.isFallbackTransition){E.onStart(()=>U(P,b.fromStyles)),E.onDestroy(()=>K(P,b.toStyles)),i.push(E);return}let Nt=[];b.timelines.forEach(M=>{M.stretchStartingKeyframe=!0,this.disabledNodes.has(M.element)||Nt.push(M)}),b.timelines=Nt,s.append(P,b.timelines);let Js={instruction:b,player:E,element:P};a.push(Js),b.queriedElements.forEach(M=>R(o,M,[]).push(E)),b.preStyleProps.forEach((M,H)=>{if(M.size){let I=l.get(H);I||l.set(H,I=new Set),M.forEach((Se,Ue)=>I.add(Ue))}}),b.postStyleProps.forEach((M,H)=>{let I=u.get(H);I||u.set(H,I=new Set),M.forEach((Se,Ue)=>I.add(Ue))})});if(B.length){let d=[];B.forEach(f=>{d.push(As(f.triggerName,f.errors))}),ee.forEach(f=>f.destroy()),this.reportError(d)}let D=new Map,k=new Map;a.forEach(d=>{let f=d.element;s.has(f)&&(k.set(f,f),this._beforeAnimationBuild(d.player.namespaceId,d.instruction,D))}),i.forEach(d=>{let f=d.element;this._getPreviousPlayers(f,!1,d.namespaceId,d.triggerName,null).forEach(E=>{R(D,f,[]).push(E),E.destroy()})});let G=T.filter(d=>Bs(d,l,u)),te=new Map;Ks(te,this.driver,A,u,z).forEach(d=>{Bs(d,l,u)&&G.push(d)});let W=new Map;y.forEach((d,f)=>{Ks(W,this.driver,new Set(d),l,ce)}),G.forEach(d=>{let f=te.get(d),p=W.get(d);te.set(d,new Map([...f?.entries()??[],...p?.entries()??[]]))});let je=[],At=[],Pt={};a.forEach(d=>{let{element:f,player:p,instruction:E}=d;if(s.has(f)){if(h.has(f)){p.onDestroy(()=>K(f,E.toStyles)),p.disabled=!0,p.overrideTotalTime(E.totalTime),i.push(p);return}let P=Pt;if(k.size>1){let F=f,j=[];for(;F=F.parentNode;){let b=k.get(F);if(b){P=b;break}j.push(F)}j.forEach(b=>k.set(b,P))}let Q=this._buildAnimation(p.namespaceId,E,D,r,W,te);if(p.setRealPlayer(Q),P===Pt)je.push(p);else{let F=this.playersByElement.get(P);F&&F.length&&(p.parentPlayer=$(F)),i.push(p)}}else U(f,E.fromStyles),p.onDestroy(()=>K(f,E.toStyles)),At.push(p),h.has(f)&&i.push(p)}),At.forEach(d=>{let f=r.get(d.element);if(f&&f.length){let p=$(f);d.setRealPlayer(p)}}),i.forEach(d=>{d.parentPlayer?d.syncPlayerEvents(d.parentPlayer):d.destroy()});for(let d=0;d<T.length;d++){let f=T[d],p=f[q];if(le(f,Ne),p&&p.hasAnimation)continue;let E=[];if(o.size){let Q=o.get(f);Q&&Q.length&&E.push(...Q);let F=this.driver.query(f,Me,!0);for(let j=0;j<F.length;j++){let b=o.get(F[j]);b&&b.length&&E.push(...b)}}let P=E.filter(Q=>!Q.destroyed);P.length?Vi(this,f,P):this.processLeaveNode(f)}return T.length=0,je.forEach(d=>{this.players.push(d),d.onDone(()=>{d.destroy();let f=this.players.indexOf(d);this.players.splice(f,1)}),d.play()}),je}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,s,i,r){let a=[];if(t){let o=this.playersByQueriedElement.get(e);o&&(a=o)}else{let o=this.playersByElement.get(e);if(o){let l=!r||r==pe;o.forEach(u=>{u.queued||!l&&u.triggerName!=i||a.push(u)})}}return(s||i)&&(a=a.filter(o=>!(s&&s!=o.namespaceId||i&&i!=o.triggerName))),a}_beforeAnimationBuild(e,t,s){let i=t.triggerName,r=t.element,a=t.isRemovalTransition?void 0:e,o=t.isRemovalTransition?void 0:i;for(let l of t.timelines){let u=l.element,h=u!==r,c=R(s,u,[]);this._getPreviousPlayers(u,h,a,o,t.toState).forEach(y=>{let m=y.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),y.destroy(),c.push(y)})}U(r,t.fromStyles)}_buildAnimation(e,t,s,i,r,a){let o=t.triggerName,l=t.element,u=[],h=new Set,c=new Set,_=t.timelines.map(m=>{let g=m.element;h.add(g);let T=g[q];if(T&&T.removedBeforeQueried)return new Y(m.duration,m.delay);let w=g!==l,A=$i((s.get(g)||zi).map(D=>D.getRealPlayer())).filter(D=>{let k=D;return k.element?k.element===g:!1}),C=r.get(g),N=a.get(g),ee=Ze(this._normalizer,m.keyframes,C,N),B=this._buildPlayer(m,ee,A);if(m.subTimeline&&i&&c.add(g),w){let D=new _e(e,o,g);D.setRealPlayer(B),u.push(D)}return B});u.forEach(m=>{R(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>qi(this.playersByQueriedElement,m.element,m))}),h.forEach(m=>L(m,nt));let y=$(_);return y.onDestroy(()=>{h.forEach(m=>le(m,nt)),K(l,t.toStyles)}),c.forEach(m=>{R(i,m,[]).push(y)}),y}_buildPlayer(e,t,s){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,s):new Y(e.duration,e.delay)}},_e=class{namespaceId;triggerName;element;_player=new Y;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(e,t,s){this.namespaceId=e,this.triggerName=t,this.element=s}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,s)=>{t.forEach(i=>we(e,s,void 0,i))}),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 t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){R(this._queuedCallbacks,e,[]).push(t)}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 t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function qi(n,e,t){let s=n.get(e);if(s){if(s.length){let i=s.indexOf(t);s.splice(i,1)}s.length==0&&n.delete(e)}return s}function Bi(n){return n??null}function Oe(n){return n&&n.nodeType===1}function Qi(n){return n=="start"||n=="done"}function zs(n,e){let t=n.style.display;return n.style.display=e??"none",t}function Ks(n,e,t,s,i){let r=[];t.forEach(l=>r.push(zs(l)));let a=[];s.forEach((l,u)=>{let h=new Map;l.forEach(c=>{let _=e.computeStyle(u,c,i);h.set(c,_),(!_||_.length==0)&&(u[q]=Ki,a.push(u))}),n.set(u,h)});let o=0;return t.forEach(l=>zs(l,r[o++])),a}function qs(n,e){let t=new Map;if(n.forEach(o=>t.set(o,[])),e.length==0)return t;let s=1,i=new Set(e),r=new Map;function a(o){if(!o)return s;let l=r.get(o);if(l)return l;let u=o.parentNode;return t.has(u)?l=u:i.has(u)?l=s:l=a(u),r.set(o,l),l}return e.forEach(o=>{let l=a(o);l!==s&&t.get(l).push(o)}),t}function L(n,e){n.classList?.add(e)}function le(n,e){n.classList?.remove(e)}function Vi(n,e,t){$(t).onDone(()=>n.processLeaveNode(e))}function $i(n){let e=[];return Gs(n,e),e}function Gs(n,e){for(let t=0;t<n.length;t++){let s=n[t];s instanceof Te?Gs(s.players,e):e.push(s)}}function ji(n,e){let t=Object.keys(n),s=Object.keys(e);if(t.length!=s.length)return!1;for(let i=0;i<t.length;i++){let r=t[i];if(!e.hasOwnProperty(r)||n[r]!==e[r])return!1}return!0}function Bs(n,e,t){let s=t.get(n);if(!s)return!1;let i=e.get(n);return i?s.forEach(r=>i.add(r)):e.set(n,s),t.delete(n),!0}var ue=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,t)=>{};constructor(e,t,s){this._driver=t,this._normalizer=s,this._transitionEngine=new Et(e.body,t,s),this._timelineEngine=new _t(e.body,t,s),this._transitionEngine.onRemovalComplete=(i,r)=>this.onRemovalComplete(i,r)}registerTrigger(e,t,s,i,r){let a=e+"-"+i,o=this._triggerCache[a];if(!o){let l=[],u=[],h=Vs(this._driver,r,l,u);if(l.length)throw ps(i,l);o=Di(i,h,this._normalizer),this._triggerCache[a]=o}this._transitionEngine.registerTrigger(t,i,o)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,s,i){this._transitionEngine.insertNode(e,t,s,i)}onRemove(e,t,s){this._transitionEngine.removeNode(e,t,s)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,s,i){if(s.charAt(0)=="@"){let[r,a]=Je(s),o=i;this._timelineEngine.command(r,t,a,o)}else this._transitionEngine.trigger(e,t,s,i)}listen(e,t,s,i,r){if(s.charAt(0)=="@"){let[a,o]=Je(s);return this._timelineEngine.listen(a,t,o,r)}return this._transitionEngine.listen(e,t,s,i,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 Ui(n,e){let t=null,s=null;return Array.isArray(e)&&e.length?(t=ct(e[0]),e.length>1&&(s=ct(e[e.length-1]))):e instanceof Map&&(t=ct(e)),t||s?new Gi(n,t,s):null}var Gi=(()=>{class n{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(t,s,i){this._element=t,this._startStyles=s,this._endStyles=i;let r=n.initialStylesByElement.get(t);r||n.initialStylesByElement.set(t,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&K(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(K(this._element,this._initialStyles),this._endStyles&&(K(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(U(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(U(this._element,this._endStyles),this._endStyles=null),K(this._element,this._initialStyles),this._state=3)}}return n})();function ct(n){let e=null;return n.forEach((t,s)=>{Wi(s)&&(e=e||new Map,e.set(s,t))}),e}function Wi(n){return n==="display"||n==="position"}var Be=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(e,t,s,i){this.element=e,this.keyframes=t,this.options=s,this._specialStyles=i,this._duration=s.duration,this._delay=s.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 t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(s=>{t.push(Object.fromEntries(s))}),t}_triggerWebAnimation(e,t,s){return e.animate(this._convertKeyframesToObject(t),s)}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((s,i)=>{i!=="offset"&&e.set(i,this._finished?s:De(this.element,i))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0}},Qe=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return et(e,t)}getParentElement(e){return Pe(e)}query(e,t,s){return tt(e,t,s)}computeStyle(e,t,s){return De(e,t)}animate(e,t,s,i,r,a=[]){let o=i==0?"both":"forwards",l={duration:s,delay:i,fill:o};r&&(l.easing=r);let u=new Map,h=a.filter(y=>y instanceof Be);Cs(s,i)&&h.forEach(y=>{y.currentSnapshot.forEach((m,g)=>u.set(g,m))});let c=Ns(t).map(y=>new Map(y));c=Ds(e,c,u);let _=Ui(e,c);return new Be(e,c,l,_)}};var Fe="@",Ws="@.disabled",Ve=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(e,t,s,i){this.namespaceId=e,this.delegate=t,this.engine=s,this._onDestroy=i}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,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,s,i=!0){this.delegate.insertBefore(e,t,s),this.engine.onInsert(this.namespaceId,t,e,i)}removeChild(e,t,s){this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,s,i){this.delegate.setAttribute(e,t,s,i)}removeAttribute(e,t,s){this.delegate.removeAttribute(e,t,s)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,s,i){this.delegate.setStyle(e,t,s,i)}removeStyle(e,t,s){this.delegate.removeStyle(e,t,s)}setProperty(e,t,s){t.charAt(0)==Fe&&t==Ws?this.disableAnimations(e,!!s):this.delegate.setProperty(e,t,s)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,s,i){return this.delegate.listen(e,t,s,i)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},vt=class extends Ve{factory;constructor(e,t,s,i,r){super(t,s,i,r),this.factory=e,this.namespaceId=t}setProperty(e,t,s){t.charAt(0)==Fe?t.charAt(1)=="."&&t==Ws?(s=s===void 0?!0:!!s,this.disableAnimations(e,s)):this.engine.process(this.namespaceId,e,t.slice(1),s):this.delegate.setProperty(e,t,s)}listen(e,t,s,i){if(t.charAt(0)==Fe){let r=Hi(e),a=t.slice(1),o="";return a.charAt(0)!=Fe&&([a,o]=Yi(a)),this.engine.listen(this.namespaceId,r,a,o,l=>{let u=l._data||-1;this.factory.scheduleListenerCallback(u,s,l)})}return this.delegate.listen(e,t,s,i)}};function Hi(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function Yi(n){let e=n.indexOf("."),t=n.substring(0,e),s=n.slice(e+1);return[t,s]}var $e=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(e,t,s){this.delegate=e,this.engine=t,this._zone=s,t.onRemovalComplete=(i,r)=>{r?.removeChild(null,i)}}createRenderer(e,t){let s="",i=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let u=this._rendererCache,h=u.get(i);if(!h){let c=()=>u.delete(i);h=new Ve(s,i,this.engine,c),u.set(i,h)}return h}let r=t.id,a=t.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);let o=u=>{Array.isArray(u)?u.forEach(o):this.engine.registerTrigger(r,a,e,u.name,u)};return t.data.animation.forEach(o),new vt(this,a,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,s){if(e>=0&&e<this._microtaskId){this._zone.run(()=>t(s));return}let i=this._animationCallbacksBuffer;i.length==0&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(r=>{let[a,o]=r;a(o)}),this._animationCallbacksBuffer=[]})}),i.push([t,s])}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()}componentReplaced(e){this.engine.flush(),this.delegate.componentReplaced?.(e)}};var xi=(()=>{class n extends ue{constructor(t,s,i){super(t,s,i)}ngOnDestroy(){this.flush()}static \u0275fac=function(s){return new(s||n)(ne(Lt),ne(Z),ne(J))};static \u0275prov=se({token:n,factory:n.\u0275fac})}return n})();function Zi(){return new Ie}function Ji(n,e,t){return new $e(n,e,t)}var Ys=[{provide:J,useFactory:Zi},{provide:ue,useClass:xi},{provide:Ot,useFactory:Ji,deps:[zt,ue,Rt]}],en=[{provide:Z,useClass:Tt},{provide:Ge,useValue:"NoopAnimations"},...Ys],Hs=[{provide:Z,useFactory:()=>new Qe},{provide:Ge,useFactory:()=>"BrowserAnimations"},...Ys],Xs=(()=>{class n{static withConfig(t){return{ngModule:n,providers:t.disableAnimations?en:Hs}}static \u0275fac=function(s){return new(s||n)};static \u0275mod=re({type:n});static \u0275inj=ie({providers:Hs,imports:[ve]})}return n})();var xs=(()=>{class n{constructor(t){this.toastr=t}intercept(t,s){return s.handle(t).pipe(Dt(i=>{let r="";return i.error instanceof ErrorEvent?(console.log("This is client side error"),r=`Error: ${i.error.message}`,this.toastr.error(r,"Error")):(console.log("This is server side error"),r=`Error Code: ${i.status}, Message: ${i.message}`,this.toastr.error(r,"Error")),Ct(()=>r)}))}static{this.\u0275fac=function(s){return new(s||n)(ne(Ut))}}static{this.\u0275prov=se({token:n,factory:n.\u0275fac})}}return n})();var Zs=(()=>{class n{static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275mod=re({type:n,bootstrap:[be]})}static{this.\u0275inj=ie({providers:[{provide:qt,useClass:xs,multi:!0},Bt(Qt())],imports:[ve,Zt,Vt,$t,Xs,Yt.forRoot(),Gt.forRoot()]})}}return n})();Xt.production&&void 0;Kt().bootstrapModule(Zs).catch(n=>console.error(n));
1
+ import{A as Ht,B as He,D as Yt,E as Xt,a as zt,b as Kt,c as ve,f as qt,g as Bt,h as Qt,n as Vt,o as $t,p as S,q as z,r as jt,s as We,t as Y,u as Te,v as ce,w as Ut,x as Gt,z as Wt}from"./chunk-SSCNVGQR.js";import{a as Lt}from"./chunk-VRDQHJMC.js";import{$a as Ft,G as Dt,U as v,Ua as Ot,X as se,Y as ie,a as Ee,aa as ne,ab as re,ba as kt,c as Mt,pa as Rt,u as Ct,yb as It,za as Ge}from"./chunk-X4JT4KX5.js";var be=(()=>{class n{constructor(){}static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275cmp=Ft({type:n,selectors:[["app-root"]],standalone:!1,decls:1,vars:0,template:function(s,i){s&1&&It(0,"router-outlet")},dependencies:[Wt],encapsulation:2})}}return n})();var xt=(n,e)=>{let t=kt(Ht),s=n.queryParams.Data,i=n.queryParams.feel;return console.log(s),s?(t.navigate(["/","receipt"],{queryParams:{Data:s,feel:i}}),!1):!0};var ei=[{path:"",component:be,children:[{path:"",canActivate:[xt],loadComponent:()=>import("./chunk-HIZQS6KQ.js").then(n=>n.CompanyProfileComponent)},{path:"receipt",loadComponent:()=>import("./chunk-4EBVPFNG.js").then(n=>n.ReceiptComponent)},{path:"feedback",loadComponent:()=>import("./chunk-WP6V36IL.js").then(n=>n.FeedbackComponent)},{path:"not-found",loadComponent:()=>import("./chunk-2SNGER6Z.js").then(n=>n.NotFoundComponent)}]}],Zt=(()=>{class n{static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275mod=re({type:n})}static{this.\u0275inj=ie({imports:[He.forRoot(ei),He]})}}return n})();function Jt(n){return new v(3e3,!1)}function ti(){return new v(3100,!1)}function si(){return new v(3101,!1)}function ii(n){return new v(3001,!1)}function ni(n){return new v(3003,!1)}function ri(n){return new v(3004,!1)}function ts(n,e){return new v(3005,!1)}function ss(){return new v(3006,!1)}function is(){return new v(3007,!1)}function ns(n,e){return new v(3008,!1)}function rs(n){return new v(3002,!1)}function as(n,e,t,s,i){return new v(3010,!1)}function os(){return new v(3011,!1)}function ls(){return new v(3012,!1)}function us(){return new v(3200,!1)}function cs(){return new v(3202,!1)}function hs(){return new v(3013,!1)}function ds(n){return new v(3014,!1)}function ms(n){return new v(3015,!1)}function fs(n){return new v(3016,!1)}function ps(n,e){return new v(3404,!1)}function ai(n){return new v(3502,!1)}function gs(n){return new v(3503,!1)}function ys(){return new v(3300,!1)}function _s(n){return new v(3504,!1)}function Ss(n){return new v(3301,!1)}function Es(n,e){return new v(3302,!1)}function vs(n){return new v(3303,!1)}function Ts(n,e){return new v(3400,!1)}function bs(n){return new v(3401,!1)}function ws(n){return new v(3402,!1)}function As(n,e){return new v(3505,!1)}function $(n){switch(n.length){case 0:return new Y;case 1:return n[0];default:return new Te(n)}}function Ze(n,e,t=new Map,s=new Map){let i=[],r=[],a=-1,o=null;if(e.forEach(l=>{let u=l.get("offset"),h=u==a,c=h&&o||new Map;l.forEach((_,y)=>{let m=y,g=_;if(y!=="offset")switch(m=n.normalizePropertyName(m,i),g){case ce:g=t.get(y);break;case z:g=s.get(y);break;default:g=n.normalizeStyleValue(y,m,g,i);break}c.set(m,g)}),h||r.push(c),o=c,a=u}),i.length)throw ai(i);return r}function we(n,e,t,s){switch(e){case"start":n.onStart(()=>s(t&&Ye(t,"start",n)));break;case"done":n.onDone(()=>s(t&&Ye(t,"done",n)));break;case"destroy":n.onDestroy(()=>s(t&&Ye(t,"destroy",n)));break}}function Ye(n,e,t){let s=t.totalTime,i=!!t.disabled,r=Ae(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,s??n.totalTime,i),a=n._data;return a!=null&&(r._data=a),r}function Ae(n,e,t,s,i="",r=0,a){return{element:n,triggerName:e,fromState:t,toState:s,phaseName:i,totalTime:r,disabled:!!a}}function R(n,e,t){let s=n.get(e);return s||n.set(e,s=t),s}function Je(n){let e=n.indexOf(":"),t=n.substring(1,e),s=n.slice(e+1);return[t,s]}var oi=typeof document>"u"?null:document.documentElement;function Pe(n){let e=n.parentNode||n.host||null;return e===oi?null:e}function li(n){return n.substring(1,6)=="ebkit"}var X=null,es=!1;function Ps(n){X||(X=ui()||{},es=X.style?"WebkitAppearance"in X.style:!1);let e=!0;return X.style&&!li(n)&&(e=n in X.style,!e&&es&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in X.style)),e}function ui(){return typeof document<"u"?document.body:null}function et(n,e){for(;e;){if(e===n)return!0;e=Pe(e)}return!1}function tt(n,e,t){if(t)return Array.from(n.querySelectorAll(e));let s=n.querySelector(e);return s?[s]:[]}var ci=1e3,st="{{",hi="}}",it="ng-enter",Ne="ng-leave",de="ng-trigger",me=".ng-trigger",nt="ng-animating",Me=".ng-animating";function V(n){if(typeof n=="number")return n;let e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Xe(parseFloat(e[1]),e[2])}function Xe(n,e){switch(e){case"s":return n*ci;default:return n}}function fe(n,e,t){return n.hasOwnProperty("duration")?n:di(n,e,t)}function di(n,e,t){let s=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,i,r=0,a="";if(typeof n=="string"){let o=n.match(s);if(o===null)return e.push(Jt(n)),{duration:0,delay:0,easing:""};i=Xe(parseFloat(o[1]),o[2]);let l=o[3];l!=null&&(r=Xe(parseFloat(l),o[4]));let u=o[5];u&&(a=u)}else i=n;if(!t){let o=!1,l=e.length;i<0&&(e.push(ti()),o=!0),r<0&&(e.push(si()),o=!0),o&&e.splice(l,0,Jt(n))}return{duration:i,delay:r,easing:a}}function Ns(n){return n.length?n[0]instanceof Map?n:n.map(e=>new Map(Object.entries(e))):[]}function K(n,e,t){e.forEach((s,i)=>{let r=Ce(i);t&&!t.has(i)&&t.set(i,n.style[r]),n.style[r]=s})}function U(n,e){e.forEach((t,s)=>{let i=Ce(s);n.style[i]=""})}function ae(n){return Array.isArray(n)?n.length==1?n[0]:jt(n):n}function Ms(n,e,t){let s=e.params||{},i=rt(n);i.length&&i.forEach(r=>{s.hasOwnProperty(r)||t.push(ii(r))})}var xe=new RegExp(`${st}\\s*(.+?)\\s*${hi}`,"g");function rt(n){let e=[];if(typeof n=="string"){let t;for(;t=xe.exec(n);)e.push(t[1]);xe.lastIndex=0}return e}function oe(n,e,t){let s=`${n}`,i=s.replace(xe,(r,a)=>{let o=e[a];return o==null&&(t.push(ni(a)),o=""),o.toString()});return i==s?n:i}var mi=/-+([a-z0-9])/g;function Ce(n){return n.replace(mi,(...e)=>e[1].toUpperCase())}function Cs(n,e){return n===0||e===0}function Ds(n,e,t){if(t.size&&e.length){let s=e[0],i=[];if(t.forEach((r,a)=>{s.has(a)||i.push(a),s.set(a,r)}),i.length)for(let r=1;r<e.length;r++){let a=e[r];i.forEach(o=>a.set(o,De(n,o)))}}return e}function O(n,e,t){switch(e.type){case S.Trigger:return n.visitTrigger(e,t);case S.State:return n.visitState(e,t);case S.Transition:return n.visitTransition(e,t);case S.Sequence:return n.visitSequence(e,t);case S.Group:return n.visitGroup(e,t);case S.Animate:return n.visitAnimate(e,t);case S.Keyframes:return n.visitKeyframes(e,t);case S.Style:return n.visitStyle(e,t);case S.Reference:return n.visitReference(e,t);case S.AnimateChild:return n.visitAnimateChild(e,t);case S.AnimateRef:return n.visitAnimateRef(e,t);case S.Query:return n.visitQuery(e,t);case S.Stagger:return n.visitStagger(e,t);default:throw ri(e.type)}}function De(n,e){return window.getComputedStyle(n)[e]}var Tt=(()=>{class n{validateStyleProperty(t){return Ps(t)}containsElement(t,s){return et(t,s)}getParentElement(t){return Pe(t)}query(t,s,i){return tt(t,s,i)}computeStyle(t,s,i){return i||""}animate(t,s,i,r,a,o=[],l){return new Y(i,r)}static \u0275fac=function(s){return new(s||n)};static \u0275prov=se({token:n,factory:n.\u0275fac})}return n})(),Z=class{static NOOP=new Tt},J=class{};var fi=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"]),Ie=class extends J{normalizePropertyName(e,t){return Ce(e)}normalizeStyleValue(e,t,s,i){let r="",a=s.toString().trim();if(fi.has(t)&&s!==0&&s!=="0")if(typeof s=="number")r="px";else{let o=s.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&o[1].length==0&&i.push(ts(e,s))}return a+r}};var Le="*";function pi(n,e){let t=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(s=>gi(s,t,e)):t.push(n),t}function gi(n,e,t){if(n[0]==":"){let l=yi(n,t);if(typeof l=="function"){e.push(l);return}n=l}let s=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(s==null||s.length<4)return t.push(ms(n)),e;let i=s[1],r=s[2],a=s[3];e.push(ks(i,a));let o=i==Le&&a==Le;r[0]=="<"&&!o&&e.push(ks(a,i))}function yi(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,s)=>parseFloat(s)>parseFloat(t);case":decrement":return(t,s)=>parseFloat(s)<parseFloat(t);default:return e.push(fs(n)),"* => *"}}var ke=new Set(["true","1"]),Re=new Set(["false","0"]);function ks(n,e){let t=ke.has(n)||Re.has(n),s=ke.has(e)||Re.has(e);return(i,r)=>{let a=n==Le||n==i,o=e==Le||e==r;return!a&&t&&typeof i=="boolean"&&(a=i?ke.has(n):Re.has(n)),!o&&s&&typeof r=="boolean"&&(o=r?ke.has(e):Re.has(e)),a&&o}}var Qs=":self",_i=new RegExp(`s*${Qs}s*,?`,"g");function Vs(n,e,t,s){return new ht(n).build(e,t,s)}var Rs="",ht=class{_driver;constructor(e){this._driver=e}build(e,t,s){let i=new dt(t);return this._resetContextStyleTimingState(i),O(this,ae(e),i)}_resetContextStyleTimingState(e){e.currentQuerySelector=Rs,e.collectedStyles=new Map,e.collectedStyles.set(Rs,new Map),e.currentTime=0}visitTrigger(e,t){let s=t.queryCount=0,i=t.depCount=0,r=[],a=[];return e.name.charAt(0)=="@"&&t.errors.push(ss()),e.definitions.forEach(o=>{if(this._resetContextStyleTimingState(t),o.type==S.State){let l=o,u=l.name;u.toString().split(/\s*,\s*/).forEach(h=>{l.name=h,r.push(this.visitState(l,t))}),l.name=u}else if(o.type==S.Transition){let l=this.visitTransition(o,t);s+=l.queryCount,i+=l.depCount,a.push(l)}else t.errors.push(is())}),{type:S.Trigger,name:e.name,states:r,transitions:a,queryCount:s,depCount:i,options:null}}visitState(e,t){let s=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(s.containsDynamicStyles){let r=new Set,a=i||{};s.styles.forEach(o=>{o instanceof Map&&o.forEach(l=>{rt(l).forEach(u=>{a.hasOwnProperty(u)||r.add(u)})})}),r.size&&t.errors.push(ns(e.name,[...r.values()]))}return{type:S.State,name:e.name,style:s,options:i?{params:i}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let s=O(this,ae(e.animation),t),i=pi(e.expr,t.errors);return{type:S.Transition,matchers:i,animation:s,queryCount:t.queryCount,depCount:t.depCount,options:x(e.options)}}visitSequence(e,t){return{type:S.Sequence,steps:e.steps.map(s=>O(this,s,t)),options:x(e.options)}}visitGroup(e,t){let s=t.currentTime,i=0,r=e.steps.map(a=>{t.currentTime=s;let o=O(this,a,t);return i=Math.max(i,t.currentTime),o});return t.currentTime=i,{type:S.Group,steps:r,options:x(e.options)}}visitAnimate(e,t){let s=Ti(e.timings,t.errors);t.currentAnimateTimings=s;let i,r=e.styles?e.styles:We({});if(r.type==S.Keyframes)i=this.visitKeyframes(r,t);else{let a=e.styles,o=!1;if(!a){o=!0;let u={};s.easing&&(u.easing=s.easing),a=We(u)}t.currentTime+=s.duration+s.delay;let l=this.visitStyle(a,t);l.isEmptyStep=o,i=l}return t.currentAnimateTimings=null,{type:S.Animate,timings:s,style:i,options:null}}visitStyle(e,t){let s=this._makeStyleAst(e,t);return this._validateStyleAst(s,t),s}_makeStyleAst(e,t){let s=[],i=Array.isArray(e.styles)?e.styles:[e.styles];for(let o of i)typeof o=="string"?o===z?s.push(o):t.errors.push(rs(o)):s.push(new Map(Object.entries(o)));let r=!1,a=null;return s.forEach(o=>{if(o instanceof Map&&(o.has("easing")&&(a=o.get("easing"),o.delete("easing")),!r)){for(let l of o.values())if(l.toString().indexOf(st)>=0){r=!0;break}}}),{type:S.Style,styles:s,easing:a,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let s=t.currentAnimateTimings,i=t.currentTime,r=t.currentTime;s&&r>0&&(r-=s.duration+s.delay),e.styles.forEach(a=>{typeof a!="string"&&a.forEach((o,l)=>{let u=t.collectedStyles.get(t.currentQuerySelector),h=u.get(l),c=!0;h&&(r!=i&&r>=h.startTime&&i<=h.endTime&&(t.errors.push(as(l,h.startTime,h.endTime,r,i)),c=!1),r=h.startTime),c&&u.set(l,{startTime:r,endTime:i}),t.options&&Ms(o,t.options,t.errors)})})}visitKeyframes(e,t){let s={type:S.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(os()),s;let i=1,r=0,a=[],o=!1,l=!1,u=0,h=e.steps.map(w=>{let A=this._makeStyleAst(w,t),C=A.offset!=null?A.offset:vi(A.styles),N=0;return C!=null&&(r++,N=A.offset=C),l=l||N<0||N>1,o=o||N<u,u=N,a.push(N),A});l&&t.errors.push(ls()),o&&t.errors.push(us());let c=e.steps.length,_=0;r>0&&r<c?t.errors.push(cs()):r==0&&(_=i/(c-1));let y=c-1,m=t.currentTime,g=t.currentAnimateTimings,T=g.duration;return h.forEach((w,A)=>{let C=_>0?A==y?1:_*A:a[A],N=C*T;t.currentTime=m+g.delay+N,g.duration=N,this._validateStyleAst(w,t),w.offset=C,s.styles.push(w)}),s}visitReference(e,t){return{type:S.Reference,animation:O(this,ae(e.animation),t),options:x(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:S.AnimateChild,options:x(e.options)}}visitAnimateRef(e,t){return{type:S.AnimateRef,animation:this.visitReference(e.animation,t),options:x(e.options)}}visitQuery(e,t){let s=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;let[r,a]=Si(e.selector);t.currentQuerySelector=s.length?s+" "+r:r,R(t.collectedStyles,t.currentQuerySelector,new Map);let o=O(this,ae(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=s,{type:S.Query,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:a,animation:o,originalSelector:e.selector,options:x(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(hs());let s=e.timings==="full"?{duration:0,delay:0,easing:"full"}:fe(e.timings,t.errors,!0);return{type:S.Stagger,animation:O(this,ae(e.animation),t),timings:s,options:null}}};function Si(n){let e=!!n.split(/\s*,\s*/).find(t=>t==Qs);return e&&(n=n.replace(_i,"")),n=n.replace(/@\*/g,me).replace(/@\w+/g,t=>me+"-"+t.slice(1)).replace(/:animating/g,Me),[n,e]}function Ei(n){return n?Ee({},n):null}var dt=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(e){this.errors=e}};function vi(n){if(typeof n=="string")return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(t instanceof Map&&t.has("offset")){let s=t;e=parseFloat(s.get("offset")),s.delete("offset")}});else if(n instanceof Map&&n.has("offset")){let t=n;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function Ti(n,e){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let r=fe(n,e).duration;return at(r,0,"")}let t=n;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=at(0,0,"");return r.dynamic=!0,r.strValue=t,r}let i=fe(t,e);return at(i.duration,i.delay,i.easing)}function x(n){return n?(n=Ee({},n),n.params&&(n.params=Ei(n.params))):n={},n}function at(n,e,t){return{duration:n,delay:e,easing:t}}function bt(n,e,t,s,i,r,a=null,o=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:s,duration:i,delay:r,totalTime:i+r,easing:a,subTimeline:o}}var ge=class{_map=new Map;get(e){return this._map.get(e)||[]}append(e,t){let s=this._map.get(e);s||this._map.set(e,s=[]),s.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},bi=1,wi=":enter",Ai=new RegExp(wi,"g"),Pi=":leave",Ni=new RegExp(Pi,"g");function $s(n,e,t,s,i,r=new Map,a=new Map,o,l,u=[]){return new mt().buildKeyframes(n,e,t,s,i,r,a,o,l,u)}var mt=class{buildKeyframes(e,t,s,i,r,a,o,l,u,h=[]){u=u||new ge;let c=new ft(e,t,u,i,r,h,[]);c.options=l;let _=l.delay?V(l.delay):0;c.currentTimeline.delayNextStep(_),c.currentTimeline.setStyles([a],null,c.errors,l),O(this,s,c);let y=c.timelines.filter(m=>m.containsAnimation());if(y.length&&o.size){let m;for(let g=y.length-1;g>=0;g--){let T=y[g];if(T.element===t){m=T;break}}m&&!m.allowOnlyTimelineStyles()&&m.setStyles([o],null,c.errors,l)}return y.length?y.map(m=>m.buildKeyframes()):[bt(t,[],[],[],0,_,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let s=t.subInstructions.get(t.element);if(s){let i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,a=this._visitSubInstructions(s,i,i.options);r!=a&&t.transformIntoNewTimeline(a)}t.previousNode=e}visitAnimateRef(e,t){let s=t.createSubContext(e.options);s.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,s),this.visitReference(e.animation,s),t.transformIntoNewTimeline(s.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,s){for(let i of e){let r=i?.delay;if(r){let a=typeof r=="number"?r:V(oe(r,i?.params??{},t.errors));s.delayNextStep(a)}}}_visitSubInstructions(e,t,s){let r=t.currentTimeline.currentTime,a=s.duration!=null?V(s.duration):null,o=s.delay!=null?V(s.delay):null;return a!==0&&e.forEach(l=>{let u=t.appendInstructionToTimeline(l,a,o);r=Math.max(r,u.duration+u.delay)}),r}visitReference(e,t){t.updateOptions(e.options,!0),O(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let s=t.subContextCount,i=t,r=e.options;if(r&&(r.params||r.delay)&&(i=t.createSubContext(r),i.transformIntoNewTimeline(),r.delay!=null)){i.previousNode.type==S.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=ze);let a=V(r.delay);i.delayNextStep(a)}e.steps.length&&(e.steps.forEach(a=>O(this,a,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>s&&i.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let s=[],i=t.currentTimeline.currentTime,r=e.options&&e.options.delay?V(e.options.delay):0;e.steps.forEach(a=>{let o=t.createSubContext(e.options);r&&o.delayNextStep(r),O(this,a,o),i=Math.max(i,o.currentTimeline.currentTime),s.push(o.currentTimeline)}),s.forEach(a=>t.currentTimeline.mergeTimelineCollectedStyles(a)),t.transformIntoNewTimeline(i),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let s=e.strValue,i=t.params?oe(s,t.params,t.errors):s;return fe(i,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let s=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;s.delay&&(t.incrementTime(s.delay),i.snapshotCurrentStyles());let r=e.style;r.type==S.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(s.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let s=t.currentTimeline,i=t.currentAnimateTimings;!i&&s.hasCurrentStyleProperties()&&s.forwardFrame();let r=i&&i.easing||e.easing;e.isEmptyStep?s.applyEmptyStep(r):s.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let s=t.currentAnimateTimings,i=t.currentTimeline.duration,r=s.duration,o=t.createSubContext().currentTimeline;o.easing=s.easing,e.styles.forEach(l=>{let u=l.offset||0;o.forwardTime(u*r),o.setStyles(l.styles,l.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(i+r),t.previousNode=e}visitQuery(e,t){let s=t.currentTimeline.currentTime,i=e.options||{},r=i.delay?V(i.delay):0;r&&(t.previousNode.type===S.Style||s==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=ze);let a=s,o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=o.length;let l=null;o.forEach((u,h)=>{t.currentQueryIndex=h;let c=t.createSubContext(e.options,u);r&&c.delayNextStep(r),u===t.element&&(l=c.currentTimeline),O(this,e.animation,c),c.currentTimeline.applyStylesToKeyframe();let _=c.currentTimeline.currentTime;a=Math.max(a,_)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let s=t.parentContext,i=t.currentTimeline,r=e.timings,a=Math.abs(r.duration),o=a*(t.currentQueryTotal-1),l=a*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=o-l;break;case"full":l=s.currentStaggerTime;break}let h=t.currentTimeline;l&&h.delayNextStep(l);let c=h.currentTime;O(this,e.animation,t),t.previousNode=e,s.currentStaggerTime=i.currentTime-c+(i.startTime-s.currentTimeline.startTime)}},ze={},ft=class n{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=ze;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(e,t,s,i,r,a,o,l){this._driver=e,this.element=t,this.subInstructions=s,this._enterClassName=i,this._leaveClassName=r,this.errors=a,this.timelines=o,this.currentTimeline=l||new Ke(this._driver,t,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let s=e,i=this.options;s.duration!=null&&(i.duration=V(s.duration)),s.delay!=null&&(i.delay=V(s.delay));let r=s.params;if(r){let a=i.params;a||(a=this.options.params={}),Object.keys(r).forEach(o=>{(!t||!a.hasOwnProperty(o))&&(a[o]=oe(r[o],a,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let s=e.params={};Object.keys(t).forEach(i=>{s[i]=t[i]})}}return e}createSubContext(e=null,t,s){let i=t||this.element,r=new n(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,s||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=ze,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,s){let i={duration:t??e.duration,delay:this.currentTimeline.currentTime+(s??0)+e.delay,easing:""},r=new pt(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,s,i,r,a){let o=[];if(i&&o.push(this.element),e.length>0){e=e.replace(Ai,"."+this._enterClassName),e=e.replace(Ni,"."+this._leaveClassName);let l=s!=1,u=this._driver.query(this.element,e,l);s!==0&&(u=s<0?u.slice(u.length+s,u.length):u.slice(0,s)),o.push(...u)}return!r&&o.length==0&&a.push(ds(t)),o}},Ke=class n{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(e,t,s,i){this._driver=e,this.element=t,this.startTime=s,this._elementTimelineStylesLookup=i,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,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 t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new n(this._driver,e,t||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+=bi,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,s]of this._globalTimelineStyles)this._backFill.set(t,s||z),this._currentKeyframe.set(t,z);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,s,i){t&&this._previousKeyframe.set("easing",t);let r=i&&i.params||{},a=Mi(e,this._globalTimelineStyles);for(let[o,l]of a){let u=oe(l,r,s);this._pendingStyles.set(o,u),this._localTimelineStyles.has(o)||this._backFill.set(o,this._globalTimelineStyles.get(o)??z),this._updateStyle(o,u)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,s)=>{let i=this._styleSummary.get(s);(!i||t.time>i.time)&&this._updateStyle(s,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,s=this._keyframes.size===1&&this.duration===0,i=[];this._keyframes.forEach((o,l)=>{let u=new Map([...this._backFill,...o]);u.forEach((h,c)=>{h===ce?e.add(c):h===z&&t.add(c)}),s||u.set("offset",l/this.duration),i.push(u)});let r=[...e.values()],a=[...t.values()];if(s){let o=i[0],l=new Map(o);o.set("offset",0),l.set("offset",1),i=[o,l]}return bt(this.element,i,r,a,this.duration,this.startTime,this.easing,!1)}},pt=class extends Ke{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(e,t,s,i,r,a,o=!1){super(e,t,a.delay),this.keyframes=s,this.preStyleProps=i,this.postStyleProps=r,this._stretchStartingKeyframe=o,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:s,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){let r=[],a=s+t,o=t/a,l=new Map(e[0]);l.set("offset",0),r.push(l);let u=new Map(e[0]);u.set("offset",Os(o)),r.push(u);let h=e.length-1;for(let c=1;c<=h;c++){let _=new Map(e[c]),y=_.get("offset"),m=t+y*s;_.set("offset",Os(m/a)),r.push(_)}s=a,t=0,i="",e=r}return bt(this.element,e,this.preStyleProps,this.postStyleProps,s,t,i,!0)}};function Os(n,e=3){let t=Math.pow(10,e-1);return Math.round(n*t)/t}function Mi(n,e){let t=new Map,s;return n.forEach(i=>{if(i==="*"){s??=e.keys();for(let r of s)t.set(r,z)}else for(let[r,a]of i)t.set(r,a)}),t}function Fs(n,e,t,s,i,r,a,o,l,u,h,c,_){return{type:0,element:n,triggerName:e,isRemovalTransition:i,fromState:t,fromStyles:r,toState:s,toStyles:a,timelines:o,queriedElements:l,preStyleProps:u,postStyleProps:h,totalTime:c,errors:_}}var ot={},qe=class{_triggerName;ast;_stateStyles;constructor(e,t,s){this._triggerName=e,this.ast=t,this._stateStyles=s}match(e,t,s,i){return Ci(this.ast.matchers,e,t,s,i)}buildStyles(e,t,s){let i=this._stateStyles.get("*");return e!==void 0&&(i=this._stateStyles.get(e?.toString())||i),i?i.buildStyles(t,s):new Map}build(e,t,s,i,r,a,o,l,u,h){let c=[],_=this.ast.options&&this.ast.options.params||ot,y=o&&o.params||ot,m=this.buildStyles(s,y,c),g=l&&l.params||ot,T=this.buildStyles(i,g,c),w=new Set,A=new Map,C=new Map,N=i==="void",ee={params:js(g,_),delay:this.ast.options?.delay},B=h?[]:$s(e,t,this.ast.animation,r,a,m,T,ee,u,c),D=0;return B.forEach(k=>{D=Math.max(k.duration+k.delay,D)}),c.length?Fs(t,this._triggerName,s,i,N,m,T,[],[],A,C,D,c):(B.forEach(k=>{let G=k.element,te=R(A,G,new Set);k.preStyleProps.forEach(W=>te.add(W));let wt=R(C,G,new Set);k.postStyleProps.forEach(W=>wt.add(W)),G!==t&&w.add(G)}),Fs(t,this._triggerName,s,i,N,m,T,B,[...w.values()],A,C,D))}};function Ci(n,e,t,s,i){return n.some(r=>r(e,t,s,i))}function js(n,e){let t=Ee({},e);return Object.entries(n).forEach(([s,i])=>{i!=null&&(t[s]=i)}),t}var gt=class{styles;defaultParams;normalizer;constructor(e,t,s){this.styles=e,this.defaultParams=t,this.normalizer=s}buildStyles(e,t){let s=new Map,i=js(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((a,o)=>{a&&(a=oe(a,i,t));let l=this.normalizer.normalizePropertyName(o,t);a=this.normalizer.normalizeStyleValue(o,l,a,t),s.set(o,a)})}),s}};function Di(n,e,t){return new yt(n,e,t)}var yt=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(e,t,s){this.name=e,this.ast=t,this._normalizer=s,t.states.forEach(i=>{let r=i.options&&i.options.params||{};this.states.set(i.name,new gt(i.style,r,s))}),Is(this.states,"true","1"),Is(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new qe(e,i,this.states))}),this.fallbackTransition=ki(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,s,i){return this.transitionFactories.find(a=>a.match(e,t,s,i))||null}matchStyles(e,t,s){return this.fallbackTransition.buildStyles(e,t,s)}};function ki(n,e,t){let s=[(a,o)=>!0],i={type:S.Sequence,steps:[],options:null},r={type:S.Transition,animation:i,matchers:s,options:null,queryCount:0,depCount:0};return new qe(n,r,e)}function Is(n,e,t){n.has(e)?n.has(t)||n.set(t,n.get(e)):n.has(t)&&n.set(e,n.get(t))}var Ri=new ge,_t=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(e,t,s){this.bodyNode=e,this._driver=t,this._normalizer=s}register(e,t){let s=[],i=[],r=Vs(this._driver,t,s,i);if(s.length)throw gs(s);this._animations.set(e,r)}_buildPlayer(e,t,s){let i=e.element,r=Ze(this._normalizer,e.keyframes,t,s);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,s={}){let i=[],r=this._animations.get(e),a,o=new Map;if(r?(a=$s(this._driver,t,r,it,Ne,new Map,new Map,s,Ri,i),a.forEach(h=>{let c=R(o,h.element,new Map);h.postStyleProps.forEach(_=>c.set(_,null))})):(i.push(ys()),a=[]),i.length)throw _s(i);o.forEach((h,c)=>{h.forEach((_,y)=>{h.set(y,this._driver.computeStyle(c,y,z))})});let l=a.map(h=>{let c=o.get(h.element);return this._buildPlayer(h,new Map,c)}),u=$(l);return this._playersById.set(e,u),u.onDestroy(()=>this.destroy(e)),this.players.push(u),u}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let s=this.players.indexOf(t);s>=0&&this.players.splice(s,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw Ss(e);return t}listen(e,t,s,i){let r=Ae(t,"","","");return we(this._getPlayer(e),s,r,i),()=>{}}command(e,t,s,i){if(s=="register"){this.register(e,i[0]);return}if(s=="create"){let a=i[0]||{};this.create(e,t,a);return}let r=this._getPlayer(e);switch(s){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(i[0]));break;case"destroy":this.destroy(e);break}}},Ls="ng-animate-queued",Oi=".ng-animate-queued",lt="ng-animate-disabled",Fi=".ng-animate-disabled",Ii="ng-star-inserted",Li=".ng-star-inserted",zi=[],Us={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ki={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},q="__ng_removed",ye=class{namespaceId;value;options;get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let s=e&&e.hasOwnProperty("value"),i=s?e.value:e;if(this.value=Bi(i),s){let r=e,{value:a}=r,o=Mt(r,["value"]);this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let s=this.options.params;Object.keys(t).forEach(i=>{s[i]==null&&(s[i]=t[i])})}}},pe="void",ut=new ye(pe),St=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(e,t,s){this.id=e,this.hostElement=t,this._engine=s,this._hostClassName="ng-tns-"+e,L(t,this._hostClassName)}listen(e,t,s,i){if(!this._triggers.has(t))throw Es(s,t);if(s==null||s.length==0)throw vs(t);if(!Qi(s))throw Ts(s,t);let r=R(this._elementListeners,e,[]),a={name:t,phase:s,callback:i};r.push(a);let o=R(this._engine.statesByElement,e,new Map);return o.has(t)||(L(e,de),L(e,de+"-"+t),o.set(t,ut)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(a);l>=0&&r.splice(l,1),this._triggers.has(t)||o.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw bs(e);return t}trigger(e,t,s,i=!0){let r=this._getTrigger(t),a=new _e(this.id,t,e),o=this._engine.statesByElement.get(e);o||(L(e,de),L(e,de+"-"+t),this._engine.statesByElement.set(e,o=new Map));let l=o.get(t),u=new ye(s,this.id);if(!(s&&s.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),o.set(t,u),l||(l=ut),!(u.value===pe)&&l.value===u.value){if(!ji(l.params,u.params)){let g=[],T=r.matchStyles(l.value,l.params,g),w=r.matchStyles(u.value,u.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{U(e,T),K(e,w)})}return}let _=R(this._engine.playersByElement,e,[]);_.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy()});let y=r.matchTransition(l.value,u.value,e,u.params),m=!1;if(!y){if(!i)return;y=r.fallbackTransition,m=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:y,fromState:l,toState:u,player:a,isFallbackTransition:m}),m||(L(e,Ls),a.onStart(()=>{le(e,Ls)})),a.onDone(()=>{let g=this.players.indexOf(a);g>=0&&this.players.splice(g,1);let T=this._engine.playersByElement.get(e);if(T){let w=T.indexOf(a);w>=0&&T.splice(w,1)}}),this.players.push(a),_.push(a),a}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,s)=>{this._elementListeners.set(s,t.filter(i=>i.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(s=>s.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let s=this._engine.driver.query(e,me,!0);s.forEach(i=>{if(i[q])return;let r=this._engine.fetchNamespacesByElement(i);r.size?r.forEach(a=>a.triggerLeaveAnimation(i,t,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>s.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(e,t,s,i){let r=this._engine.statesByElement.get(e),a=new Map;if(r){let o=[];if(r.forEach((l,u)=>{if(a.set(u,l.value),this._triggers.has(u)){let h=this.trigger(e,u,pe,i);h&&o.push(h)}}),o.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,a),s&&$(o).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),s=this._engine.statesByElement.get(e);if(t&&s){let i=new Set;t.forEach(r=>{let a=r.name;if(i.has(a))return;i.add(a);let l=this._triggers.get(a).fallbackTransition,u=s.get(a)||ut,h=new ye(pe),c=new _e(this.id,a,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:a,transition:l,fromState:u,toState:h,player:c,isFallbackTransition:!0})})}}removeNode(e,t){let s=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let i=!1;if(s.totalAnimations){let r=s.players.length?s.playersByQueriedElement.get(e):[];if(r&&r.length)i=!0;else{let a=e;for(;a=a.parentNode;)if(s.statesByElement.get(a)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(e),i)s.markElementAsRemoved(this.id,e,!1,t);else{let r=e[q];(!r||r===Us)&&(s.afterFlush(()=>this.clearElementCache(e)),s.destroyInnerAnimations(e),s._onRemovalComplete(e,t))}}insertNode(e,t){L(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(s=>{let i=s.player;if(i.destroyed)return;let r=s.element,a=this._elementListeners.get(r);a&&a.forEach(o=>{if(o.name==s.triggerName){let l=Ae(r,s.triggerName,s.fromState.value,s.toState.value);l._data=e,we(s.player,o.phase,l,o.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(s)}),this._queue=[],t.sort((s,i)=>{let r=s.transition.ast.depCount,a=i.transition.ast.depCount;return r==0||a==0?r-a:this._engine.driver.containsElement(s.element,i.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Et=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(e,t)=>{};_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,s){this.bodyNode=e,this.driver=t,this._normalizer=s}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(s=>{s.queued&&e.push(s)})}),e}createNamespace(e,t){let s=new St(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(s,t):(this.newHostElements.set(t,s),this.collectEnterElement(t)),this._namespaceLookup[e]=s}_balanceNamespaceList(e,t){let s=this._namespaceList,i=this.namespacesByHostElement;if(s.length-1>=0){let a=!1,o=this.driver.getParentElement(t);for(;o;){let l=i.get(o);if(l){let u=s.indexOf(l);s.splice(u+1,0,e),a=!0;break}o=this.driver.getParentElement(o)}a||s.unshift(e)}else s.push(e);return i.set(t,e),e}register(e,t){let s=this._namespaceLookup[e];return s||(s=this.createNamespace(e,t)),s}registerTrigger(e,t,s){let i=this._namespaceLookup[e];i&&i.register(t,s)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let s=this._fetchNamespace(e);this.namespacesByHostElement.delete(s.hostElement);let i=this._namespaceList.indexOf(s);i>=0&&this._namespaceList.splice(i,1),s.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,s=this.statesByElement.get(e);if(s){for(let i of s.values())if(i.namespaceId){let r=this._fetchNamespace(i.namespaceId);r&&t.add(r)}}return t}trigger(e,t,s,i){if(Oe(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,s,i),!0}return!1}insertNode(e,t,s,i){if(!Oe(t))return;let r=t[q];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let a=this.collectedLeaveElements.indexOf(t);a>=0&&this.collectedLeaveElements.splice(a,1)}if(e){let a=this._fetchNamespace(e);a&&a.insertNode(t,s)}i&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),L(e,lt)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),le(e,lt))}removeNode(e,t,s){if(Oe(t)){let i=e?this._fetchNamespace(e):null;i?i.removeNode(t,s):this.markElementAsRemoved(e,t,!1,s);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,s)}else this._onRemovalComplete(t,s)}markElementAsRemoved(e,t,s,i,r){this.collectedLeaveElements.push(t),t[q]={namespaceId:e,setForRemoval:i,hasAnimation:s,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,t,s,i,r){return Oe(t)?this._fetchNamespace(e).listen(t,s,i,r):()=>{}}_buildInstruction(e,t,s,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,s,i,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,me,!0);t.forEach(s=>this.destroyActiveAnimationsForElement(s)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,Me,!0),t.forEach(s=>this.finishActiveQueriedAnimationOnElement(s)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(s=>{s.queued?s.markedForDestroy=!0:s.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(s=>s.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return $(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[q];if(t&&t.setForRemoval){if(e[q]=Us,t.namespaceId){this.destroyInnerAnimations(e);let s=this._fetchNamespace(t.namespaceId);s&&s.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(lt)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Fi,!0).forEach(s=>{this.markElementAsDisabled(s,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((s,i)=>this._balanceNamespaceList(s,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let s=0;s<this.collectedEnterElements.length;s++){let i=this.collectedEnterElements[s];L(i,Ii)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let s=[];try{t=this._flushAnimations(s,e)}finally{for(let i=0;i<s.length;i++)s[i]()}}else for(let s=0;s<this.collectedLeaveElements.length;s++){let i=this.collectedLeaveElements[s];this.processLeaveNode(i)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(s=>s()),this._flushFns=[],this._whenQuietFns.length){let s=this._whenQuietFns;this._whenQuietFns=[],t.length?$(t).onDone(()=>{s.forEach(i=>i())}):s.forEach(i=>i())}}reportError(e){throw ws(e)}_flushAnimations(e,t){let s=new ge,i=[],r=new Map,a=[],o=new Map,l=new Map,u=new Map,h=new Set;this.disabledNodes.forEach(d=>{h.add(d);let f=this.driver.query(d,Oi,!0);for(let p=0;p<f.length;p++)h.add(f[p])});let c=this.bodyNode,_=Array.from(this.statesByElement.keys()),y=qs(_,this.collectedEnterElements),m=new Map,g=0;y.forEach((d,f)=>{let p=it+g++;m.set(f,p),d.forEach(E=>L(E,p))});let T=[],w=new Set,A=new Set;for(let d=0;d<this.collectedLeaveElements.length;d++){let f=this.collectedLeaveElements[d],p=f[q];p&&p.setForRemoval&&(T.push(f),w.add(f),p.hasAnimation?this.driver.query(f,Li,!0).forEach(E=>w.add(E)):A.add(f))}let C=new Map,N=qs(_,Array.from(w));N.forEach((d,f)=>{let p=Ne+g++;C.set(f,p),d.forEach(E=>L(E,p))}),e.push(()=>{y.forEach((d,f)=>{let p=m.get(f);d.forEach(E=>le(E,p))}),N.forEach((d,f)=>{let p=C.get(f);d.forEach(E=>le(E,p))}),T.forEach(d=>{this.processLeaveNode(d)})});let ee=[],B=[];for(let d=this._namespaceList.length-1;d>=0;d--)this._namespaceList[d].drainQueuedTransitions(t).forEach(p=>{let E=p.player,P=p.element;if(ee.push(E),this.collectedEnterElements.length){let M=P[q];if(M&&M.setForMove){if(M.previousTriggersValues&&M.previousTriggersValues.has(p.triggerName)){let H=M.previousTriggersValues.get(p.triggerName),I=this.statesByElement.get(p.element);if(I&&I.has(p.triggerName)){let Se=I.get(p.triggerName);Se.value=H,I.set(p.triggerName,Se)}}E.destroy();return}}let Q=!c||!this.driver.containsElement(c,P),F=C.get(P),j=m.get(P),b=this._buildInstruction(p,s,j,F,Q);if(b.errors&&b.errors.length){B.push(b);return}if(Q){E.onStart(()=>U(P,b.fromStyles)),E.onDestroy(()=>K(P,b.toStyles)),i.push(E);return}if(p.isFallbackTransition){E.onStart(()=>U(P,b.fromStyles)),E.onDestroy(()=>K(P,b.toStyles)),i.push(E);return}let Nt=[];b.timelines.forEach(M=>{M.stretchStartingKeyframe=!0,this.disabledNodes.has(M.element)||Nt.push(M)}),b.timelines=Nt,s.append(P,b.timelines);let Js={instruction:b,player:E,element:P};a.push(Js),b.queriedElements.forEach(M=>R(o,M,[]).push(E)),b.preStyleProps.forEach((M,H)=>{if(M.size){let I=l.get(H);I||l.set(H,I=new Set),M.forEach((Se,Ue)=>I.add(Ue))}}),b.postStyleProps.forEach((M,H)=>{let I=u.get(H);I||u.set(H,I=new Set),M.forEach((Se,Ue)=>I.add(Ue))})});if(B.length){let d=[];B.forEach(f=>{d.push(As(f.triggerName,f.errors))}),ee.forEach(f=>f.destroy()),this.reportError(d)}let D=new Map,k=new Map;a.forEach(d=>{let f=d.element;s.has(f)&&(k.set(f,f),this._beforeAnimationBuild(d.player.namespaceId,d.instruction,D))}),i.forEach(d=>{let f=d.element;this._getPreviousPlayers(f,!1,d.namespaceId,d.triggerName,null).forEach(E=>{R(D,f,[]).push(E),E.destroy()})});let G=T.filter(d=>Bs(d,l,u)),te=new Map;Ks(te,this.driver,A,u,z).forEach(d=>{Bs(d,l,u)&&G.push(d)});let W=new Map;y.forEach((d,f)=>{Ks(W,this.driver,new Set(d),l,ce)}),G.forEach(d=>{let f=te.get(d),p=W.get(d);te.set(d,new Map([...f?.entries()??[],...p?.entries()??[]]))});let je=[],At=[],Pt={};a.forEach(d=>{let{element:f,player:p,instruction:E}=d;if(s.has(f)){if(h.has(f)){p.onDestroy(()=>K(f,E.toStyles)),p.disabled=!0,p.overrideTotalTime(E.totalTime),i.push(p);return}let P=Pt;if(k.size>1){let F=f,j=[];for(;F=F.parentNode;){let b=k.get(F);if(b){P=b;break}j.push(F)}j.forEach(b=>k.set(b,P))}let Q=this._buildAnimation(p.namespaceId,E,D,r,W,te);if(p.setRealPlayer(Q),P===Pt)je.push(p);else{let F=this.playersByElement.get(P);F&&F.length&&(p.parentPlayer=$(F)),i.push(p)}}else U(f,E.fromStyles),p.onDestroy(()=>K(f,E.toStyles)),At.push(p),h.has(f)&&i.push(p)}),At.forEach(d=>{let f=r.get(d.element);if(f&&f.length){let p=$(f);d.setRealPlayer(p)}}),i.forEach(d=>{d.parentPlayer?d.syncPlayerEvents(d.parentPlayer):d.destroy()});for(let d=0;d<T.length;d++){let f=T[d],p=f[q];if(le(f,Ne),p&&p.hasAnimation)continue;let E=[];if(o.size){let Q=o.get(f);Q&&Q.length&&E.push(...Q);let F=this.driver.query(f,Me,!0);for(let j=0;j<F.length;j++){let b=o.get(F[j]);b&&b.length&&E.push(...b)}}let P=E.filter(Q=>!Q.destroyed);P.length?Vi(this,f,P):this.processLeaveNode(f)}return T.length=0,je.forEach(d=>{this.players.push(d),d.onDone(()=>{d.destroy();let f=this.players.indexOf(d);this.players.splice(f,1)}),d.play()}),je}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,s,i,r){let a=[];if(t){let o=this.playersByQueriedElement.get(e);o&&(a=o)}else{let o=this.playersByElement.get(e);if(o){let l=!r||r==pe;o.forEach(u=>{u.queued||!l&&u.triggerName!=i||a.push(u)})}}return(s||i)&&(a=a.filter(o=>!(s&&s!=o.namespaceId||i&&i!=o.triggerName))),a}_beforeAnimationBuild(e,t,s){let i=t.triggerName,r=t.element,a=t.isRemovalTransition?void 0:e,o=t.isRemovalTransition?void 0:i;for(let l of t.timelines){let u=l.element,h=u!==r,c=R(s,u,[]);this._getPreviousPlayers(u,h,a,o,t.toState).forEach(y=>{let m=y.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),y.destroy(),c.push(y)})}U(r,t.fromStyles)}_buildAnimation(e,t,s,i,r,a){let o=t.triggerName,l=t.element,u=[],h=new Set,c=new Set,_=t.timelines.map(m=>{let g=m.element;h.add(g);let T=g[q];if(T&&T.removedBeforeQueried)return new Y(m.duration,m.delay);let w=g!==l,A=$i((s.get(g)||zi).map(D=>D.getRealPlayer())).filter(D=>{let k=D;return k.element?k.element===g:!1}),C=r.get(g),N=a.get(g),ee=Ze(this._normalizer,m.keyframes,C,N),B=this._buildPlayer(m,ee,A);if(m.subTimeline&&i&&c.add(g),w){let D=new _e(e,o,g);D.setRealPlayer(B),u.push(D)}return B});u.forEach(m=>{R(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>qi(this.playersByQueriedElement,m.element,m))}),h.forEach(m=>L(m,nt));let y=$(_);return y.onDestroy(()=>{h.forEach(m=>le(m,nt)),K(l,t.toStyles)}),c.forEach(m=>{R(i,m,[]).push(y)}),y}_buildPlayer(e,t,s){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,s):new Y(e.duration,e.delay)}},_e=class{namespaceId;triggerName;element;_player=new Y;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(e,t,s){this.namespaceId=e,this.triggerName=t,this.element=s}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,s)=>{t.forEach(i=>we(e,s,void 0,i))}),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 t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){R(this._queuedCallbacks,e,[]).push(t)}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 t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function qi(n,e,t){let s=n.get(e);if(s){if(s.length){let i=s.indexOf(t);s.splice(i,1)}s.length==0&&n.delete(e)}return s}function Bi(n){return n??null}function Oe(n){return n&&n.nodeType===1}function Qi(n){return n=="start"||n=="done"}function zs(n,e){let t=n.style.display;return n.style.display=e??"none",t}function Ks(n,e,t,s,i){let r=[];t.forEach(l=>r.push(zs(l)));let a=[];s.forEach((l,u)=>{let h=new Map;l.forEach(c=>{let _=e.computeStyle(u,c,i);h.set(c,_),(!_||_.length==0)&&(u[q]=Ki,a.push(u))}),n.set(u,h)});let o=0;return t.forEach(l=>zs(l,r[o++])),a}function qs(n,e){let t=new Map;if(n.forEach(o=>t.set(o,[])),e.length==0)return t;let s=1,i=new Set(e),r=new Map;function a(o){if(!o)return s;let l=r.get(o);if(l)return l;let u=o.parentNode;return t.has(u)?l=u:i.has(u)?l=s:l=a(u),r.set(o,l),l}return e.forEach(o=>{let l=a(o);l!==s&&t.get(l).push(o)}),t}function L(n,e){n.classList?.add(e)}function le(n,e){n.classList?.remove(e)}function Vi(n,e,t){$(t).onDone(()=>n.processLeaveNode(e))}function $i(n){let e=[];return Gs(n,e),e}function Gs(n,e){for(let t=0;t<n.length;t++){let s=n[t];s instanceof Te?Gs(s.players,e):e.push(s)}}function ji(n,e){let t=Object.keys(n),s=Object.keys(e);if(t.length!=s.length)return!1;for(let i=0;i<t.length;i++){let r=t[i];if(!e.hasOwnProperty(r)||n[r]!==e[r])return!1}return!0}function Bs(n,e,t){let s=t.get(n);if(!s)return!1;let i=e.get(n);return i?s.forEach(r=>i.add(r)):e.set(n,s),t.delete(n),!0}var ue=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,t)=>{};constructor(e,t,s){this._driver=t,this._normalizer=s,this._transitionEngine=new Et(e.body,t,s),this._timelineEngine=new _t(e.body,t,s),this._transitionEngine.onRemovalComplete=(i,r)=>this.onRemovalComplete(i,r)}registerTrigger(e,t,s,i,r){let a=e+"-"+i,o=this._triggerCache[a];if(!o){let l=[],u=[],h=Vs(this._driver,r,l,u);if(l.length)throw ps(i,l);o=Di(i,h,this._normalizer),this._triggerCache[a]=o}this._transitionEngine.registerTrigger(t,i,o)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,s,i){this._transitionEngine.insertNode(e,t,s,i)}onRemove(e,t,s){this._transitionEngine.removeNode(e,t,s)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,s,i){if(s.charAt(0)=="@"){let[r,a]=Je(s),o=i;this._timelineEngine.command(r,t,a,o)}else this._transitionEngine.trigger(e,t,s,i)}listen(e,t,s,i,r){if(s.charAt(0)=="@"){let[a,o]=Je(s);return this._timelineEngine.listen(a,t,o,r)}return this._transitionEngine.listen(e,t,s,i,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 Ui(n,e){let t=null,s=null;return Array.isArray(e)&&e.length?(t=ct(e[0]),e.length>1&&(s=ct(e[e.length-1]))):e instanceof Map&&(t=ct(e)),t||s?new Gi(n,t,s):null}var Gi=(()=>{class n{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(t,s,i){this._element=t,this._startStyles=s,this._endStyles=i;let r=n.initialStylesByElement.get(t);r||n.initialStylesByElement.set(t,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&K(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(K(this._element,this._initialStyles),this._endStyles&&(K(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(U(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(U(this._element,this._endStyles),this._endStyles=null),K(this._element,this._initialStyles),this._state=3)}}return n})();function ct(n){let e=null;return n.forEach((t,s)=>{Wi(s)&&(e=e||new Map,e.set(s,t))}),e}function Wi(n){return n==="display"||n==="position"}var Be=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(e,t,s,i){this.element=e,this.keyframes=t,this.options=s,this._specialStyles=i,this._duration=s.duration,this._delay=s.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 t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(s=>{t.push(Object.fromEntries(s))}),t}_triggerWebAnimation(e,t,s){return e.animate(this._convertKeyframesToObject(t),s)}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((s,i)=>{i!=="offset"&&e.set(i,this._finished?s:De(this.element,i))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0}},Qe=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return et(e,t)}getParentElement(e){return Pe(e)}query(e,t,s){return tt(e,t,s)}computeStyle(e,t,s){return De(e,t)}animate(e,t,s,i,r,a=[]){let o=i==0?"both":"forwards",l={duration:s,delay:i,fill:o};r&&(l.easing=r);let u=new Map,h=a.filter(y=>y instanceof Be);Cs(s,i)&&h.forEach(y=>{y.currentSnapshot.forEach((m,g)=>u.set(g,m))});let c=Ns(t).map(y=>new Map(y));c=Ds(e,c,u);let _=Ui(e,c);return new Be(e,c,l,_)}};var Fe="@",Ws="@.disabled",Ve=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(e,t,s,i){this.namespaceId=e,this.delegate=t,this.engine=s,this._onDestroy=i}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,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,s,i=!0){this.delegate.insertBefore(e,t,s),this.engine.onInsert(this.namespaceId,t,e,i)}removeChild(e,t,s){this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,s,i){this.delegate.setAttribute(e,t,s,i)}removeAttribute(e,t,s){this.delegate.removeAttribute(e,t,s)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,s,i){this.delegate.setStyle(e,t,s,i)}removeStyle(e,t,s){this.delegate.removeStyle(e,t,s)}setProperty(e,t,s){t.charAt(0)==Fe&&t==Ws?this.disableAnimations(e,!!s):this.delegate.setProperty(e,t,s)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,s,i){return this.delegate.listen(e,t,s,i)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},vt=class extends Ve{factory;constructor(e,t,s,i,r){super(t,s,i,r),this.factory=e,this.namespaceId=t}setProperty(e,t,s){t.charAt(0)==Fe?t.charAt(1)=="."&&t==Ws?(s=s===void 0?!0:!!s,this.disableAnimations(e,s)):this.engine.process(this.namespaceId,e,t.slice(1),s):this.delegate.setProperty(e,t,s)}listen(e,t,s,i){if(t.charAt(0)==Fe){let r=Hi(e),a=t.slice(1),o="";return a.charAt(0)!=Fe&&([a,o]=Yi(a)),this.engine.listen(this.namespaceId,r,a,o,l=>{let u=l._data||-1;this.factory.scheduleListenerCallback(u,s,l)})}return this.delegate.listen(e,t,s,i)}};function Hi(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function Yi(n){let e=n.indexOf("."),t=n.substring(0,e),s=n.slice(e+1);return[t,s]}var $e=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(e,t,s){this.delegate=e,this.engine=t,this._zone=s,t.onRemovalComplete=(i,r)=>{r?.removeChild(null,i)}}createRenderer(e,t){let s="",i=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let u=this._rendererCache,h=u.get(i);if(!h){let c=()=>u.delete(i);h=new Ve(s,i,this.engine,c),u.set(i,h)}return h}let r=t.id,a=t.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);let o=u=>{Array.isArray(u)?u.forEach(o):this.engine.registerTrigger(r,a,e,u.name,u)};return t.data.animation.forEach(o),new vt(this,a,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,s){if(e>=0&&e<this._microtaskId){this._zone.run(()=>t(s));return}let i=this._animationCallbacksBuffer;i.length==0&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(r=>{let[a,o]=r;a(o)}),this._animationCallbacksBuffer=[]})}),i.push([t,s])}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()}componentReplaced(e){this.engine.flush(),this.delegate.componentReplaced?.(e)}};var xi=(()=>{class n extends ue{constructor(t,s,i){super(t,s,i)}ngOnDestroy(){this.flush()}static \u0275fac=function(s){return new(s||n)(ne(Lt),ne(Z),ne(J))};static \u0275prov=se({token:n,factory:n.\u0275fac})}return n})();function Zi(){return new Ie}function Ji(n,e,t){return new $e(n,e,t)}var Ys=[{provide:J,useFactory:Zi},{provide:ue,useClass:xi},{provide:Ot,useFactory:Ji,deps:[zt,ue,Rt]}],en=[{provide:Z,useClass:Tt},{provide:Ge,useValue:"NoopAnimations"},...Ys],Hs=[{provide:Z,useFactory:()=>new Qe},{provide:Ge,useFactory:()=>"BrowserAnimations"},...Ys],Xs=(()=>{class n{static withConfig(t){return{ngModule:n,providers:t.disableAnimations?en:Hs}}static \u0275fac=function(s){return new(s||n)};static \u0275mod=re({type:n});static \u0275inj=ie({providers:Hs,imports:[ve]})}return n})();var xs=(()=>{class n{constructor(t){this.toastr=t}intercept(t,s){return s.handle(t).pipe(Dt(i=>{let r="";return i.error instanceof ErrorEvent?(console.log("This is client side error"),r=`Error: ${i.error.message}`,this.toastr.error(r,"Error")):(console.log("This is server side error"),r=`Error Code: ${i.status}, Message: ${i.message}`,this.toastr.error(r,"Error")),Ct(()=>r)}))}static{this.\u0275fac=function(s){return new(s||n)(ne(Ut))}}static{this.\u0275prov=se({token:n,factory:n.\u0275fac})}}return n})();var Zs=(()=>{class n{static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275mod=re({type:n,bootstrap:[be]})}static{this.\u0275inj=ie({providers:[{provide:qt,useClass:xs,multi:!0},Bt(Qt())],imports:[ve,Zt,Vt,$t,Xs,Yt.forRoot(),Gt.forRoot()]})}}return n})();Xt.production&&void 0;Kt().bootstrapModule(Zs).catch(n=>console.error(n));
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"receiptfeedback","version":"1.1.0"}
1
+ {"name":"receiptfeedback","version":"1.1.2"}
@@ -1 +0,0 @@
1
- import{a as I,b as X,c as Z}from"./chunk-7RY3M6BF.js";import{A as W,C as G,D as J,E as K,e as H,w as Y,y as q}from"./chunk-SSCNVGQR.js";import{j as Q,k as B,l as z,m as S,n as U}from"./chunk-VRDQHJMC.js";import{$a as F,Ab as u,Bb as O,Fb as y,Gb as s,Ib as c,Jb as M,Kb as l,Lb as L,Mb as j,Nb as f,Ob as C,P as E,Pa as k,Pb as $,Qa as o,Qb as N,T as V,Wa as b,X as A,aa as w,cb as D,eb as g,ha as v,ia as h,qb as m,sb as P,wb as i,xb as r,y as T,yb as d,zb as x}from"./chunk-X4JT4KX5.js";var te=(()=>{class t{transform(e,n,a="Name"){return n===void 0?e:typeof n=="number"?e.filter(_=>_[a]==n):e.filter(_=>_[a].toString().toLowerCase().indexOf(n.toLowerCase())!==-1)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=D({name:"filter",type:t,pure:!0})}}return t})();var ne=(()=>{class t{constructor(e,n,a){this.httpClient=e,this.encodeService=n,this.toastr=a}getReceipt(){let e=this.encodeService.host,n=this.encodeService.invoiceId;return this.httpClient.post(`${K.production?"https":"http"}://${e}/api/app/invoice/print`,{ID:n}).pipe(T(a=>(a.totalChange=this.calculateChange(),a)))}calculateChange(){return 0}static{this.\u0275fac=function(n){return new(n||t)(w(H),w(I),w(Y))}}static{this.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function ae(t,p){t&1&&(i(0,"div",2),d(1,"div",3),i(2,"div",4)(3,"div",5),d(4,"div",6)(5,"div",7),r(),i(6,"div",5),d(7,"div",8)(8,"div",9),r(),i(9,"div",5),d(10,"div",10)(11,"div",11),r(),i(12,"div",5),d(13,"div",6)(14,"div",12),r(),i(15,"div",5),d(16,"div",8)(17,"div",7),r(),i(18,"div",5),d(19,"div",13)(20,"div",14),r()(),d(21,"hr",15),i(22,"div",16),d(23,"div",17)(24,"div",18),r()())}function ce(t,p){if(t&1&&(i(0,"div",24)(1,"div",25),d(2,"img",26),i(3,"div",27)(4,"p",28),c(5),r(),i(6,"p",29),c(7),r()()(),i(8,"div")(9,"p",30),c(10),r(),i(11,"p",30),c(12),r()()()),t&2){let e=s(2);o(2),m("src",e.template.Logo,k),o(3),l(" ",e.template.Name," "),o(2),l(" ",e.template.Field," "),o(3),l(" #",e.receipt.Number," "),o(2),l(" ",e.receipt.Date," ")}}function me(t,p){if(t&1){let e=O();i(0,"div",31)(1,"p",32),c(2," Rate your experience "),r(),i(3,"div",33)(4,"star-rating",34),y("starClickChange",function(a){v(e);let _=s(2);return h(_.onRatingChange(a))}),r()()()}if(t&2){let e=s(2);o(4),m("starType","svg")("rating",e.starRate)}}function pe(t,p){if(t&1){let e=O();i(0,"div",35)(1,"p",36),c(2," My Experience "),i(3,"button",37),y("click",function(){v(e);let a=s(2);return h(a.currentViewState="receipt")}),d(4,"i",38),c(5,"Invoice Detail "),r()(),i(6,"div",33)(7,"star-rating",34),y("starClickChange",function(a){v(e);let _=s(2);return h(_.onRatingChange(a))}),r()()()}if(t&2){let e=s(2);o(7),m("starType","svg")("rating",e.starRate)}}function se(t,p){if(t&1&&(x(0),i(1,"span",55),c(2),f(3,"number"),r(),u()),t&2){let e=s(2).$implicit;o(2),l(" ","-"+C(3,1,e.Discount)+"%"," ")}}function le(t,p){if(t&1&&(x(0),i(1,"span",55),c(2),f(3,"number"),r(),u()),t&2){let e=s(2).$implicit;o(2),l(" ","-"+C(3,1,e.DiscountAmount)," ")}}function de(t,p){if(t&1&&(i(0,"p",51),c(1),f(2,"number"),i(3,"span",54),c(4),f(5,"number"),r(),g(6,se,4,3,"ng-container",1)(7,le,4,3,"ng-container",1),r()),t&2){let e=s().$implicit;o(),L(" ",$(2,6,e.Quantity,"1.0-4")," ",e.UOMName," ",e.UnitQuantity!=1?" x "+e.UnitQuantity:""," \xD7 "),o(3),l(" ",C(5,9,e.Price),""),o(2),m("ngIf",e.Discount>0),o(),m("ngIf",e.DiscountAmount>0)}}function _e(t,p){if(t&1&&(i(0,"div",48)(1,"div",49)(2,"p",50),c(3),r(),i(4,"p",51),c(5),r(),g(6,de,8,11,"p",52),r(),i(7,"div",53)(8,"p",50),c(9),f(10,"number"),r()()()),t&2){let e=p.$implicit,n=p.index;P("border-t-1",n!=0)("pt-4",n!=0),o(3),M(e.Name),o(2),M(e.Code),o(),m("ngIf",e.Quantity>1),o(3),l(" ",C(10,8,(1-e.Discount/100)*e.Price*e.Quantity*e.UnitQuantity-e.DiscountAmount*e.Quantity)," ")}}function ge(t,p){if(t&1&&(i(0,"span")(1,"span"),c(2),r()()),t&2){let e=s().$implicit;o(2),M(e.Label)}}function fe(t,p){if(t&1&&(x(0),i(1,"p",56),c(2),g(3,ge,3,1,"span",1),r(),i(4,"p",57),c(5),r(),i(6,"p",57),c(7),f(8,"number"),r(),u()),t&2){let e=p.$implicit,n=p.index,a=s(3);o(),P("text-red-500",e.Amount<0),o(),l(" ",n==0?a.totalItemsLabel:""," "),o(),m("ngIf",n!=0),o(),P("text-red-500",e.Amount<0),o(),l(" : ",e.CurrencySymbol," "),o(),P("text-red-500",e.Amount<0),o(),l(" ",C(8,10,e.Amount)," ")}}function xe(t,p){if(t&1&&(i(0,"span"),c(1),r()),t&2){let e=s().$implicit;o(),l("",e.Code," :")}}function ue(t,p){if(t&1&&(i(0,"span"),c(1),r()),t&2){let e=s().$implicit;o(),l("",e.Note," :")}}function Ce(t,p){if(t&1&&(x(0,33),i(1,"div",58)(2,"span"),c(3),r(),g(4,xe,2,1,"span",1)(5,ue,2,1,"span",1),r(),i(6,"p",59),c(7),r(),i(8,"p",59),c(9),f(10,"number"),r(),u()),t&2){let e=p.$implicit,n=s(3);o(3),M(e.MethodName),o(),m("ngIf",e.Code),o(),m("ngIf",e.Note),o(2),l(" : ",n.amountSummary[0]==null?null:n.amountSummary[0].CurrencySymbol," "),o(2),l(" ",C(10,5,e.PaidAmount)," ")}}function be(t,p){if(t&1&&(x(0),i(1,"div",39)(2,"div",40),c(3,"NAME"),r(),i(4,"div",41),c(5,"PRICE"),r()(),i(6,"div",42),g(7,_e,11,10,"div",43),r(),i(8,"div",44),c(9," DETAIL PAYMENT "),r(),i(10,"div",45),g(11,fe,9,12,"ng-container",46),f(12,"filter"),g(13,Ce,11,7,"ng-container",47),r(),u()),t&2){let e=s(2);o(7),m("ngForOf",e.receipt.Variants),o(4),m("ngForOf",N(12,3,e.amountSummary,1,"Type")),o(2),m("ngForOf",e.receipt.Payments)}}function ve(t,p){if(t&1){let e=O();x(0),i(1,"app-feedback",60),y("onCompleteSubmitFeedback",function(){v(e);let a=s(2);return h(a.onSubmitFeedback())}),r(),u()}if(t&2){let e=s(2);o(),m("starRate",e.starRate)}}function he(t,p){if(t&1){let e=O();i(0,"div",61),d(1,"img",62),i(2,"h1",63),c(3," Thank You for Your Feedback! "),r(),i(4,"p",64),c(5," We appreciate your feedback -- It helps us serve you better next time. "),d(6,"br"),i(7,"button",65),y("click",function(){v(e);let a=s(2);return h(a.currentViewState="receipt")}),c(8," Back to Invoice "),r()()()}if(t&2){let e=s(2);o(),m("src",e.template.Logo,k)}}function ye(t,p){if(t&1&&(x(0),i(1,"div",19),g(2,ce,13,5,"div",20)(3,me,5,2,"div",21)(4,pe,8,2,"div",22)(5,be,14,7,"ng-container",1)(6,ve,2,1,"ng-container",1)(7,he,9,1,"div",23),r(),u()),t&2){let e=s();o(2),m("ngIf",e.currentViewState=="receipt"||e.currentViewState=="feedback"),o(),m("ngIf",e.currentViewState=="receipt"),o(),m("ngIf",e.currentViewState=="feedback"),o(),m("ngIf",e.currentViewState=="receipt"),o(),m("ngIf",e.currentViewState=="feedback"),o(),m("ngIf",e.currentViewState=="complete")}}var Le=(()=>{class t{constructor(e,n,a,_,R,ie){this.receiptService=e,this.activatedRoute=n,this.route=a,this.encodeService=_,this.decimalPipe=R,this.feedbackService=ie,this.currentViewState="receipt",this.isLoading=!0,this.hasCustomerData=!1,this.totalVariantsQty=0}ngOnInit(){this.getQueryParams()}getQueryParams(){let e=this.activatedRoute.snapshot.queryParams,n=e.feel;n&&(this.currentViewState="feedback",n=="happy"?this.starRate=5:n=="sad"?this.starRate=1:this.starRate=3),console.log(e.Data),e.Data?(this.encodeService.encodeQueryParam(e.Data),this.feedback$=this.feedbackService.getInitPage().pipe(E(1)),this.initPrint()):this.route.navigate(["not-found"])}initPrint(){this.print$=this.receiptService.getReceipt().pipe(V(e=>{this.isLoading=!1,this.receipt=e.Invoice,this.template=e.Template,this.amountSummary=e.AmountSummary.filter(n=>n.Label!="Change"&&n.Label!=null),this.hasCustomerData=Object.keys(this.receipt.Customer).length>0,this.paymentChange=this.filterAmountSummaryByName(e.AmountSummary,"Change")[0],this.generateTotalItemsLabel(),this.calculateRemainingPayment()}),E(1))}filterAmountSummaryByName(e,n){return e.filter(a=>a.Label===n)}redirectToFeedback(e){setTimeout(()=>{let n=this.encodeService.base64Params;this.route.navigate(["feedback"],{queryParams:{Data:n,feel:e}})},700)}generateTotalItemsLabel(){let e=0,n=this.receipt.Variants.length;for(let R of this.receipt.Variants)e+=R.Quantity;let a=e>1?"s":"",_=this.decimalPipe.transform(e,"1.0-4").toString();this.totalItemsLabel=`Total (Item${a}: ${n}, Qty: ${_})`}calculateRemainingPayment(){let e=0;this.receipt.Payments.forEach(a=>{e+=a.Amount});let n=this.receipt.FinalAmount;this.remainingPayment=n-e}onRatingChange(e){this.starRate=e.rating,this.currentViewState="feedback"}onSubmitFeedback(){console.log("complete"),this.currentViewState="complete"}static{this.\u0275fac=function(n){return new(n||t)(b(ne),b(q),b(W),b(I),b(S),b(X))}}static{this.\u0275cmp=F({type:t,selectors:[["app-receipt"]],features:[j([S])],decls:3,vars:4,consts:[["class","md:w-[380px] h-[600px] p-4 mx-auto bg-white flex flex-col",4,"ngIf"],[4,"ngIf"],[1,"md:w-[380px]","h-[600px]","p-4","mx-auto","bg-white","flex","flex-col"],[1,"h-6","w-32","bg-gray-200","rounded","animate-pulse","mb-4"],[1,"flex-1","space-y-4","overflow-hidden"],[1,"flex","justify-between"],[1,"h-4","w-24","bg-gray-200","rounded","animate-pulse"],[1,"h-4","w-12","bg-gray-200","rounded","animate-pulse"],[1,"h-4","w-28","bg-gray-200","rounded","animate-pulse"],[1,"h-4","w-10","bg-gray-200","rounded","animate-pulse"],[1,"h-4","w-20","bg-gray-200","rounded","animate-pulse"],[1,"h-4","w-16","bg-gray-200","rounded","animate-pulse"],[1,"h-4","w-14","bg-gray-200","rounded","animate-pulse"],[1,"h-4","w-26","bg-gray-200","rounded","animate-pulse"],[1,"h-4","w-18","bg-gray-200","rounded","animate-pulse"],[1,"my-4","border-gray-300"],[1,"flex","justify-between","font-semibold"],[1,"h-6","w-20","bg-gray-200","rounded","animate-pulse"],[1,"h-6","w-16","bg-gray-200","rounded","animate-pulse"],[1,"bg-white","p-5","md:w-[360px]","rounded-lg","mx-auto"],["class","flex justify-between items-center",4,"ngIf"],["class","text-center mt-4 border-b-1 border-t-1 py-5 border-gray-300",4,"ngIf"],["class","text-left mt-4 border-b-1 border-t-1 py-5 border-gray-300",4,"ngIf"],["class","flex items-center flex-col pt-[50px]",4,"ngIf"],[1,"flex","justify-between","items-center"],[1,"flex","items-center","gap-x-2"],["alt","Logo",1,"w-10",3,"src"],[1,"flex","flex-col"],[1,"text-base","font-semibold","line-clamp-1",2,"font-family","'Open Sans', sans-serif"],[1,"text-xs","line-clamp-1",2,"font-family","'Open Sans', sans-serif"],[1,"text-sm","text-right",2,"font-family","'Open Sans', sans-serif"],[1,"text-center","mt-4","border-b-1","border-t-1","py-5","border-gray-300"],[1,"font-medium","text-lg",2,"font-family","'Roboto', sans-serif"],[1,"mt-5"],["size","large",3,"starClickChange","starType","rating"],[1,"text-left","mt-4","border-b-1","border-t-1","py-5","border-gray-300"],[1,"font-medium","text-base",2,"font-family","'Roboto', sans-serif"],[1,"text-sm","bg-white","text-[#1269cf]","font-semibold","py-1","px-1","border","border-[#1269cf]","hover:bg-[#1269cf]","hover:text-white","rounded",3,"click"],[1,"fas","fa-angle-left","mr-2","cursor-pointer"],[1,"grid","grid-cols-2",2,"font-family","'Open Sans', sans-serif"],[1,"mt-2","text-sm","font-semibold"],[1,"mt-2","text-sm","font-semibold","text-end"],[1,"mt-2","space-y-3","text-sm"],["class","grid grid-cols-3 border-gray-300",3,"border-t-1","pt-4",4,"ngFor","ngForOf"],[1,"text-sm","font-semibold","pt-3","pb-3","mt-2","border-t-1","border-gray-300",2,"font-family","'Open Sans', sans-serif"],[1,"grid","grid-cols-[55%_10%_35%]","gap-y-1",2,"font-family","'Roboto', sans-serif"],[4,"ngFor","ngForOf"],["class","mt-5",4,"ngFor","ngForOf"],[1,"grid","grid-cols-3","border-gray-300"],[1,"prod-info","col-span-2","flex","flex-col","justify-center",2,"font-family","'Roboto', sans-serif"],[1,"font-normal"],[1,"text-gray-400","text-xs"],["class","text-gray-400 text-xs",4,"ngIf"],[1,"price-info","text-end",2,"font-family","'Roboto', sans-serif"],[1,"italic",2,"font-family","'Roboto', sans-serif"],[1,"font-bold","text-red-500","text-xs",2,"font-family","'Roboto', sans-serif"],[1,"font-medium","text-sm","text-left","d-block",2,"font-family","'Roboto', sans-serif"],[1,"text-right","text-sm",2,"font-family","'Roboto', sans-serif"],[1,"font-semibold","mt-2","text-left","flex","flex-col","pt-3","pb-3","mt-2","border-t-1","border-gray-300",2,"font-family","'Roboto', sans-serif"],[1,"font-semibold","text-right","pt-3","pb-3","mt-2","border-t-1","border-gray-300"],[3,"onCompleteSubmitFeedback","starRate"],[1,"flex","items-center","flex-col","pt-[50px]"],["alt","Logo",1,"w-60","h-60",3,"src"],[1,"font-bold",2,"font-family","'Open Sans', sans-serif"],[1,"text-sm","text-center","mt-2",2,"font-family","'Open Sans', sans-serif"],[1,"text-sm","bg-[#0d77bb]","text-white","font-semibold","py-2","px-2","border","border-[#1269cf]","hover:bg-[#0d5bb5]","hover:text-white","rounded",2,"margin-top","20px",3,"click"]],template:function(n,a){n&1&&(g(0,ae,25,0,"div",0)(1,ye,8,6,"ng-container",1),f(2,"async")),n&2&&(m("ngIf",a.isLoading),o(),m("ngIf",C(2,2,a.print$)))},dependencies:[U,Q,B,z,S,te,J,G,Z],styles:[".invoice_mini[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%]{width:264px;margin:auto;padding:0 4px;color:#000;font-family:Arial!important}.invoice_mini[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-family:Arial!important}.invoice_mini[_ngcontent-%COMP%] .text-danger[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .text-danger[_ngcontent-%COMP%]{color:red!important}.invoice_mini[_ngcontent-%COMP%] .border-y[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .border-y[_ngcontent-%COMP%]{padding:5px 0;border-top:1px solid #888}.invoice_mini[_ngcontent-%COMP%] .cartAmount[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .cartAmount[_ngcontent-%COMP%]{border-top:1px solid #888;border-bottom:1px solid #888}.invoice_mini[_ngcontent-%COMP%] .rightAuto[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .rightAuto[_ngcontent-%COMP%]{margin:0 0 0 auto}.invoice_mini[_ngcontent-%COMP%] span.point[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] span.point[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 auto!important;padding:0!important}.invoice_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%]{font-size:11px!important}.invoice_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-size:.4375rem;padding:.4375rem}.invoice_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] > p[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{margin:0 auto!important;padding:0!important}.invoice_mini.lx300[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .sales_order_mini.lx300[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:220px}.box[_ngcontent-%COMP%]{position:relative}.ribbon[_ngcontent-%COMP%]{width:170px;height:140px;overflow:hidden;position:absolute}.ribbon[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{position:absolute;display:block;width:204px;padding:42px 31px;background-color:#3498db;box-shadow:0 5px 10px #0000001a;color:#fff;text-shadow:0 1px 1px rgba(0,0,0,.2);text-transform:uppercase;text-align:center;font-size:9px;line-height:17px}.ribbon-content[_ngcontent-%COMP%]{top:-10px;left:-45px}div.ribbon-content[_ngcontent-%COMP%]{right:47px;top:47px;transform:rotate(-45deg)}.invoice_mini.lx300[_ngcontent-%COMP%], .sales_order_mini.lx300[_ngcontent-%COMP%], .packingslip_container.lx300[_ngcontent-%COMP%]{margin:0 0 0 20px!important;width:520px!important;letter-spacing:3px!important}.invoice_mini.lx300[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .sales_order_mini.lx300[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .packingslip_container.lx300[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{letter-spacing:8px!important}@media print{print-mode[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0px}.ribbon[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{background-color:none!important;color:#000;opacity:.7;border-style:dotted none}.ribbon[_ngcontent-%COMP%] .ribbon-content[_ngcontent-%COMP%]:after, .ribbon[_ngcontent-%COMP%] .ribbon-content[_ngcontent-%COMP%]:before{display:none}.sales_order_mini[_ngcontent-%COMP%] > .invoiceHeader[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{font-family:Arial,Helvetica,sans-serif!important}.toast[_ngcontent-%COMP%]{display:none!important}}.feedback-icon[_ngcontent-%COMP%]{cursor:pointer;font-size:80px} .disabled .star{opacity:1!important}"]})}}return t})();export{Le as ReceiptComponent};