PageSourceSearch

https://grand-sorbet-95e490.netlify.app/main-DTHWXFXV.js

js grand-sorbet-95e490.netlify.app collected 2026-10-03 10:50:30 UTC 92,603 bytes, 1 lines download raw bytes

1import{a as en}from"./chunk-HX5TRP3I.js";import{a as it}from"./chunk-7PH67YE4.js";import{a as Zi,b as Ji}from"./chunk-XIS7GP2Z.js";import{a as tt}from"./chunk-6U46FWTK.js";import{a as Ui,b as Hi,c as Wi,d as Gi,f as Xi}from"./chunk-52ZSRIDL.js";import{a as Yi}from"./chunk-7JXJ2CJ4.js";import{b as Qi,d as Ki,g as ji,w as Oe}from"./chunk-P7I4KP6M.js";import{a as Re}from"./chunk-7GZFVIA5.js";import{c as Fi,d as Oi,e as Ri,f as Li,g as zi,l as Bi,m as et,n as Ie,o as qi,p as Vi,q as $i,r as Fe}from"./chunk-OF7FCF5J.js";import{d as Ze,k as Je,l as me,m as re,n as De,r as Ii,t as W}from"./chunk-5EX2TRXF.js";import{$ as Pe,Bb as xi,Cb as Pi,D as hi,Da as Et,Db as ki,Fa as Be,Fb as $,Gb as Ai,Ha as gi,Hb as Mi,I as mi,Ia as yi,Ib as Ni,J as di,Jb as Me,Ka as v,Kb as H,La as B,Lb as ce,Mb as Ne,Nb as Di,Oa as _i,Pa as vi,Ra as Si,Sa as Xe,T as P,W as xe,_a as N,a as Ge,aa as Ye,c as li,cb as C,eb as bi,fa as V,gb as h,hb as u,ib as E,j as ci,ja as pi,jb as ke,k as ui,ka as fi,kb as Ae,lb as J,ob as k,pa as F,pb as D,qa as O,qb as Tt,sb as wi,tb as Ei,ub as Ti,vb as Ct,wb as f,xb as le,yb as j,zb as Ci}from"./chunk-VGAOJ7HO.js";var tn=[{path:"",loadComponent:()=>import("./chunk-RYRBYD5A.js").then(n=>n.HomeComponent)},{path:"shop",loadComponent:()=>import("./chunk-OLJXXMAO.js").then(n=>n.ShopComponent)},{path:"experience",loadComponent:()=>import("./chunk-AYQWUNBE.js").then(n=>n.ExperienceComponent)},{path:"product/:id/:variantId",loadComponent:()=>import("./chunk-LBLOOYZP.js").then(n=>n.ProductDetailComponent)},{path:"product/:id",loadComponent:()=>import("./chunk-LBLOOYZP.js").then(n=>n.ProductDetailComponent)},{path:"checkout",loadComponent:()=>import("./chunk-E6KGTZGX.js").then(n=>n.CheckoutComponent)},{path:"collections/:category",loadComponent:()=>import("./chunk-UBD2OCOE.js").then(n=>n.CategoriesComponent)},{path:"profile",loadComponent:()=>import("./chunk-Z7QS27EC.js").then(n=>n.ProfileComponent)},{path:"order-confirmation/:transactionId",loadComponent:()=>import("./chunk-JQGGSQH2.js").then(n=>n.OrderConfirmationComponent)},{path:"payment-success",loadComponent:()=>import("./chunk-WVIXO3DN.js").then(n=>n.PaymentSuccessComponent)},{path:"payment-failure",loadComponent:()=>import("./chunk-BKDHXISO.js").then(n=>n.PaymentFailureComponent)},{path:"payment-pending/:id",loadComponent:()=>import("./chunk-AQSVGGO3.js").then(n=>n.PaymentPendingComponent)},{path:"order-confirmation",loadComponent:()=>import("./chunk-JQGGSQH2.js").then(n=>n.OrderConfirmationComponent)},{path:"wishlist",loadComponent:()=>import("./chunk-7LLAI2WB.js").then(n=>n.WishlistComponent)},{path:"order-detail/:id",loadComponent:()=>import("./chunk-KR7LPXBK.js").then(n=>n.OrderDetailComponent)},{path:"track-order",loadComponent:()=>import("./chunk-AOWMDTLX.js").then(n=>n.TrackOrderComponent)},{path:"login",loadComponent:()=>import("./chunk-TTYX2THY.js").then(n=>n.LoginComponent)},{path:"register",loadComponent:()=>import("./chunk-NVUZVAZO.js").then(n=>n.RegisterComponent)},{path:"reset-password",loadComponent:()=>import("./chunk-KFQOFFEV.js").then(n=>n.ResetPasswordComponent)},{path:"forgot-password",loadComponent:()=>import("./chunk-TNGUR5ZU.js").then(n=>n.ForgotPasswordComponent)},{path:"faq",loadComponent:()=>import("./chunk-K5W7FG2O.js").then(n=>n.FaqComponent)},{path:"terms-conditions",loadComponent:()=>import("./chunk-QG3G3BXD.js").then(n=>n.TermsConditionsComponent)},{path:"privacy-policy",loadComponent:()=>import("./chunk-IEERXG6C.js").then(n=>n.PrivacyPolicyComponent)},{path:"return-policy",loadComponent:()=>import("./chunk-F7DIV24F.js").then(n=>n.ReturnPolicyComponent)},{path:"shipping-policy",loadComponent:()=>import("./chunk-OZD5V3YH.js").then(n=>n.ShippingPolicyComponent)},{path:"about-us",loadComponent:()=>import("./chunk-KAL6NSVV.js").then(n=>n.AboutUsComponent)},{path:"contact",loadComponent:()=>import("./chunk-UDP67YR7.js").then(n=>n.ContactUsComponent)},{path:"auth/callback",loadComponent:()=>import("./chunk-45AK2H7H.js").then(n=>n.AuthCallbackComponent)}];var w=function(n){return n[n.State=0]="State",n[n.Transition=1]="Transition",n[n.Sequence=2]="Sequence",n[n.Group=3]="Group",n[n.Animate=4]="Animate",n[n.Keyframes=5]="Keyframes",n[n.Style=6]="Style",n[n.Trigger=7]="Trigger",n[n.Reference=8]="Reference",n[n.AnimateChild=9]="AnimateChild",n[n.AnimateRef=10]="AnimateRef",n[n.Query=11]="Query",n[n.Stagger=12]="Stagger",n}(w||{}),se="*";function nn(n,e){return{type:w.Trigger,name:n,definitions:e,options:{}}}function xt(n,e=null){return{type:w.Animate,styles:e,timings:n}}function rn(n,e=null){return{type:w.Sequence,steps:n,options:e}}function _e(n){return{type:w.Style,styles:n,offset:null}}function Pt(n,e,t=null){return{type:w.Transition,expr:n,animation:e,options:t}}var de=class{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e
vendor: 4,657 bytes, line 1
1=>e()),this._onDoneFns=[])}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)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}},qe=class{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,i=0,r=0,s=this.players.length;s==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++t==s&&this._onFinish()}),o.onDestroy(()=>{++i==s&&this._onDestroy()}),o.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let t=e*this.totalTime;this.players.forEach(i=>{let r=i.totalTime?Math.min(1,t/i.totalTime):1;i.setPosition(r)})}getPosition(){let e=this.players.reduce((t,i)=>t===null||i.totalTime>t.totalTime?i:t,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}},nt="!";function sn(n){return new P(3e3,!1)}function Wn(){return new P(3100,!1)}function Gn(){return new P(3101,!1)}function Yn(n){return new P(3001,!1)}function Xn(n){return new P(3003,!1)}function Zn(n){return new P(3004,!1)}function Jn(n,e){return new P(3005,!1)}function er(){return new P(3006,!1)}function tr(){return new P(3007,!1)}function ir(n,e){return new P(3008,!1)}function nr(n){return new P(3002,!1)}function rr(n,e,t,i,r){return new P(3010,!1)}function sr(){return new P(3011,!1)}function or(){return new P(3012,!1)}function ar(){return new P(3200,!1)}function lr(){return new P(3202,!1)}function cr(){return new P(3013,!1)}function ur(n){return new P(3014,!1)}function hr(n){return new P(3015,!1)}function mr(n){return new P(3016,!1)}function dr(n,e){return new P(3404,!1)}function pr(n){return new P(3502,!1)}function fr(n){return new P(3503,!1)}function gr(){return new P(3300,!1)}function yr(n){return new P(3504,!1)}function _r(n){return new P(3301,!1)}function vr(n,e){return new P(3302,!1)}function Sr(n){return new P(3303,!1)}function br(n,e){return new P(3400,!1)}function wr(n){return new P(3401,!1)}function Er(n){return new P(3402,!1)}function Tr(n,e){return new P(3505,!1)}function pe(n){switch(n.length){case 0:return new de;case 1:return n[0];default:return new qe(n)}}function vn(n,e,t=new Map,i=new Map){let r=[],s=[],o=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),d=c==o,m=d&&a||new Map;l.forEach((T,b)=>{let g=b,S=T;if(b!=="offset")switch(g=n.normalizePropertyName(g,r),S){case nt:S=t.get(b);break;case se:S=i.get(b);break;default:S=n.normalizeStyleValue(b,g,S,r);break}m.set(g,S)}),d||s.push(m),a=m,o=c}),r.length)throw pr(r);return s}function Yt(n,e,t,i){switch(e){case"start":n.onStart(()=>i(t&&kt(t,"start",n)));break;case"done":n.onDone(()=>i(t&&kt(t,"done",n)));break;
1case"destroy":n.onDestroy(()=>i(t&&kt(t,"destroy",n)));break}}function kt(n,e,t){let i=t.totalTime,r=!!t.disabled,s=Xt(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,i??n.totalTime,r),o=n._data;return o!=null&&(s._data=o),s}function Xt(n,e,t,i,r="",s=0,o){return{element:n,triggerName:e,fromState:t,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function X(n,e,t){let i=n.get(e);return i||n.set(e,i=t),i}function on(n){let e=n.indexOf(":"),t=n.substring(1,e),i=n.slice(e+1);return[t,i]}var Cr=typeof document>"u"?null:document.documentElement;function Zt(n){let e=n.parentNode||n.host||null;return e===Cr?null:e}function xr(n){return n.substring(1,6)=="ebkit"}var ve=null,an=!1;function Pr(n){ve||(ve=kr()||{},an=ve.style?"WebkitAppearance"in ve.style:!1);let e=!0;return ve.style&&!xr(n)&&(e=n in ve.style,!e&&an&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in ve.style)),e}function kr(){return typeof document<"u"?document.body:null}function Sn(n,e){for(;e;){if(e===n)return!0;e=Zt(e)}return!1}function bn(n,e,t){if(t)return Array.from(n.querySelectorAll(e));let i=n.querySelector(e);return i?[i]:[]}var Jt=(()=>{class n{validateStyleProperty(t){return Pr(t)}matchesElement(t,i){return!1}containsElement(t,i){return Sn(t,i)}getParentElement(t){return Zt(t)}query(t,i,r){return bn(t,i,r)}computeStyle(t,i,r){return r||""}animate(t,i,r,s,o,a=[],l){return new de(r,s)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=xe({token:n,factory:n.\u0275fac})}}return n})(),we=class{static{this.NOOP=new Jt}},Ee=class{};var Ar=1e3,wn="{{",Mr="}}",En="ng-enter",Ft="ng-leave",rt="ng-trigger",ct=".ng-trigger",ln="ng-animating",Ot=".ng-animating";function ue(n){if(typeof n=="number")return n;let e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Rt(parseFloat(e[1]),e[2])}function Rt(n,e){switch(e){case"s":return n*Ar;default:return n}}function ut(n,e,t){return n.hasOwnProperty("duration")?n:Nr(n,e,t)}function Nr(n,e,t){let i=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,r,s=0,o="";if(typeof n=="string"){let a=n.match(i);if(a===null)return e.push(sn(n)),{duration:0,delay:0,easing:""};r=Rt(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(s=Rt(parseFloat(l),a[4]));let c=a[5];c&&(o=c)}else r=n;if(!t){let a=!1,l=e.length;r<0&&(e.push(Wn()),a=!0),s<0&&(e.push(Gn()),a=!0),a&&e.splice(l,0,sn(n))}return{duration:r,delay:s,easing:o}}function Dr(n){return n.length?n[0]instanceof Map?n:n.map(e=>new Map(Object.entries(e))):[]}function oe(n,e,t){e.forEach((i,r)=>{let s=ei(r);t&&!t.has(r)&&t.set(r,n.style[s]),n.style[s]=i})}function be(n,e){e.forEach((t,i)=>{let r=ei(i);n.style[r]=""})}function Ve(n){return Array.isArray(n)?n.length==1?n[0]:rn(n):n}function Ir(n,e,t){let i=e.params||{},r=Tn(n);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||t.push(Yn(s))})}var Lt=new RegExp(`${wn}\\s*(.+?)\\s*${Mr}`,"g");function Tn(n){let e=[];
vendor: 43,500 bytes, line 1
1if(typeof n=="string"){let t;for(;t=Lt.exec(n);)e.push(t[1]);Lt.lastIndex=0}return e}function Qe(n,e,t){let i=`${n}`,r=i.replace(Lt,(s,o)=>{let a=e[o];return a==null&&(t.push(Xn(o)),a=""),a.toString()});return r==i?n:r}var Fr=/-+([a-z0-9])/g;function ei(n){return n.replace(Fr,(...e)=>e[1].toUpperCase())}function Or(n,e){return n===0||e===0}function Rr(n,e,t){if(t.size&&e.length){let i=e[0],r=[];if(t.forEach((s,o)=>{i.has(o)||r.push(o),i.set(o,s)}),r.length)for(let s=1;s<e.length;s++){let o=e[s];r.forEach(a=>o.set(a,ti(n,a)))}}return e}function Y(n,e,t){switch(e.type){case w.Trigger:return n.visitTrigger(e,t);case w.State:return n.visitState(e,t);case w.Transition:return n.visitTransition(e,t);case w.Sequence:return n.visitSequence(e,t);case w.Group:return n.visitGroup(e,t);case w.Animate:return n.visitAnimate(e,t);case w.Keyframes:return n.visitKeyframes(e,t);case w.Style:return n.visitStyle(e,t);case w.Reference:return n.visitReference(e,t);case w.AnimateChild:return n.visitAnimateChild(e,t);case w.AnimateRef:return n.visitAnimateRef(e,t);case w.Query:return n.visitQuery(e,t);case w.Stagger:return n.visitStagger(e,t);default:throw Zn(e.type)}}function ti(n,e){return window.getComputedStyle(n)[e]}var Lr=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"]),ht=class extends Ee{normalizePropertyName(e,t){return ei(e)}normalizeStyleValue(e,t,i,r){let s="",o=i.toString().trim();if(Lr.has(t)&&i!==0&&i!=="0")if(typeof i=="number")s="px";else{let a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&r.push(Jn(e,i))}return o+s}};var mt="*";function zr(n,e){let t=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(i=>Br(i,t,e)):t.push(n),t}function Br(n,e,t){if(n[0]==":"){let l=qr(n,t);if(typeof l=="function"){e.push(l);return}n=l}let i=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(i==null||i.length<4)return t.push(hr(n)),e;let r=i[1],s=i[2],o=i[3];e.push(cn(r,o));let a=r==mt&&o==mt;s[0]=="<"&&!a&&e.push(cn(o,r))}function qr(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,i)=>parseFloat(i)>parseFloat(t);case":decrement":return(t,i)=>parseFloat(i)<parseFloat(t);default:return e.push(mr(n)),"* => *"}}var st=new Set(["true","1"]),ot=new Set(["false","0"]);function cn(n,e){let t=st.has(n)||ot.has(n),i=st.has(e)||ot.has(e);return(r,s)=>{let o=n==mt||n==r,a=e==mt||e==s;return!o&&t&&typeof r=="boolean"&&(o=r?st.has(n):ot.has(n)),!a&&i&&typeof s=="boolean"&&(a=s?st.has(e):ot.has(e)),o&&a}}var Cn=":self",Vr=new RegExp(`s*${Cn}s*,?`,"g");function xn(n,e,t,i){return new zt(n).build(e,t,i)}var un="",zt=class{constructor(e){this._driver=e}build(e,t,i){let r=new Bt(t);return this._resetContextStyleTimingState(r),Y(this,Ve(e),r)}_resetContextStyleTimingState(e){e.currentQuerySelector=un,e.collectedStyles=new Map,e.collectedStyles.set(un,new Map),e.currentTime=0}visitTrigger(e,t){let i=t.queryCount=0,r=t.depCount=0,s=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(er()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==w.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,s.push(this.visitState(l,t))}),l.name=c}else if(a.type==w.Transition){let l=this.visitTransition(a,t);i+=l.queryCount,r+=l.depCount,o.push(l)}else t.errors.push(tr())}),{type:w.Trigger,name:e.name,states:s,transitions:o,queryCount:i,depCount:r,options:null}}visitState(e,t){let i=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(i.containsDynamicStyles){let s=new Set,o=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{Tn(l).forEach(c=>{o.hasOwnProperty(c)||s.add(c)})})}),s.size&&t.errors.push(ir(e.name,[...s.values()]))}return{type:w.State,name:e.name,style:i,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let i=Y(this,Ve(e.animation),t),r=zr(e.expr,t.errors);return{type:w.Transition,matchers:r,animation:i,queryCount:t.queryCount,depCount:t.depCount,options:Se(e.options)}}visitSequence(e,t){return{type:w.Sequence,steps:e.steps.map(i=>Y(this,i,t)),options:Se(e.options)}}visitGroup(e,t){let i=t.currentTime,r=0,s=e.steps.map(o=>{t.currentTime=i;let a=Y(this,o,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:w.Group,steps:s,options:Se(e.options)}}visitAnimate(e,t){let i=jr(e.timings,t.errors);t.currentAnimateTimings=i;let r,s=e.styles?e.styles:_e({});if(s.type==w.Keyframes)r=this.visitKeyframes(s,t);else{let o=e.styles,a=!1;if(!o){a=!0;let c={};i.easing&&(c.easing=i.easing),o=_e(c)}t.currentTime+=i.duration+i.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,r=l}return t.currentAnimateTimings=null,{type:w.Animate,timings:i,style:r,options:null}}visitStyle(e,t){let i=this._makeStyleAst(e,t);return this._validateStyleAst(i,t),i}_makeStyleAst(e,t){let i=[],r=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of r)typeof a=="string"?a===se?i.push(a):t.errors.push(nr(a)):i.push(new Map(Object.entries(a)));let s=!1,o=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!s)){for(let l of a.values())if(l.toString().indexOf(wn)>=0){s=!0;break}}}),{type:w.Style,styles:i,easing:o,offset:e.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(e,t){let i=t.currentAnimateTimings,r=t.currentTime,s=t.currentTime;i&&s>0&&(s-=i.duration+i.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let c=t.collectedStyles.get(t.currentQuerySelector),d=c.get(l),m=!0;d&&(s!=r&&s>=d.startTime&&r<=d.endTime&&(t.errors.push(rr(l,d.startTime,d.endTime,s,r)),m=!1),s=d.startTime),m&&c.set(l,{startTime:s,endTime:r}),t.options&&Ir(a,t.options,t.errors)})})}visitKeyframes(e,t){let i={type:w.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(sr()),i;let r=1,s=0,o=[],a=!1,l=!1,c=0,d=e.steps.map(I=>{let R=this._makeStyleAst(I,t),Q=R.offset!=null?R.offset:Kr(R.styles),z=0;return Q!=null&&(s++,z=R.offset=Q),l=l||z<0||z>1,a=a||z<c,c=z,o.push(z),R});l&&t.errors.push(or()),a&&t.errors.push(ar());let m=e.steps.length,T=0;s>0&&s<m?t.errors.push(lr()):s==0&&(T=r/(m-1));let b=m-1,g=t.currentTime,S=t.currentAnimateTimings,A=S.duration;return d.forEach((I,R)=>{let Q=T>0?R==b?1:T*R:o[R],z=Q*A;t.currentTime=g+S.delay+z,S.duration=z,this._validateStyleAst(I,t),I.offset=Q,i.styles.push(I)}),i}visitReference(e,t){return{type:w.Reference,animation:Y(this,Ve(e.animation),t),options:Se(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:w.AnimateChild,options:Se(e.options)}}visitAnimateRef(e,t){return{type:w.AnimateRef,animation:this.visitReference(e.animation,t),options:Se(e.options)}}visitQuery(e,t){let i=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;let[s,o]=$r(e.selector);t.currentQuerySelector=i.length?i+" "+s:s,X(t.collectedStyles,t.currentQuerySelector,new Map);let a=Y(this,Ve(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:w.Query,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:Se(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(cr());let i=e.timings==="full"?{duration:0,delay:0,easing:"full"}:ut(e.timings,t.errors,!0);return{type:w.Stagger,animation:Y(this,Ve(e.animation),t),timings:i,options:null}}};function $r(n){let e=!!n.split(/\s*,\s*/).find(t=>t==Cn);return e&&(n=n.replace(Vr,"")),n=n.replace(/@\*/g,ct).replace(/@\w+/g,t=>ct+"-"+t.slice(1)).replace(/:animating/g,Ot),[n,e]}function Qr(n){return n?Ge({},n):null}var Bt=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function Kr(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 i=t;e=parseFloat(i.get("offset")),i.delete("offset")}});else if(n instanceof Map&&n.has("offset")){let t=n;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function jr(n,e){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let s=ut(n,e).duration;return At(s,0,"")}let t=n;if(t.split(/\s+/).some(s=>s.charAt(0)=="{"&&s.charAt(1)=="{")){let s=At(0,0,"");return s.dynamic=!0,s.strValue=t,s}let r=ut(t,e);return At(r.duration,r.delay,r.easing)}function Se(n){return n?(n=Ge({},n),n.params&&(n.params=Qr(n.params))):n={},n}function At(n,e,t){return{duration:n,delay:e,easing:t}}function ii(n,e,t,i,r,s,o=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}var Ke=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let i=this._map.get(e);i||this._map.set(e,i=[]),i.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},Ur=1,Hr=":enter",Wr=new RegExp(Hr,"g"),Gr=":leave",Yr=new RegExp(Gr,"g");function Pn(n,e,t,i,r,s=new Map,o=new Map,a,l,c=[]){return new qt().buildKeyframes(n,e,t,i,r,s,o,a,l,c)}var qt=class{buildKeyframes(e,t,i,r,s,o,a,l,c,d=[]){c=c||new Ke;let m=new Vt(e,t,c,r,s,d,[]);m.options=l;let T=l.delay?ue(l.delay):0;m.currentTimeline.delayNextStep(T),m.currentTimeline.setStyles([o],null,m.errors,l),Y(this,i,m);let b=m.timelines.filter(g=>g.containsAnimation());if(b.length&&a.size){let g;for(let S=b.length-1;S>=0;S--){let A=b[S];if(A.element===t){g=A;break}}g&&!g.allowOnlyTimelineStyles()&&g.setStyles([a],null,m.errors,l)}return b.length?b.map(g=>g.buildKeyframes()):[ii(t,[],[],[],0,T,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let i=t.subInstructions.get(t.element);if(i){let r=t.createSubContext(e.options),s=t.currentTimeline.currentTime,o=this._visitSubInstructions(i,r,r.options);s!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){let i=t.createSubContext(e.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,i),this.visitReference(e.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,i){for(let r of e){let s=r?.delay;if(s){let o=typeof s=="number"?s:ue(Qe(s,r?.params??{},t.errors));i.delayNextStep(o)}}}_visitSubInstructions(e,t,i){let s=t.currentTimeline.currentTime,o=i.duration!=null?ue(i.duration):null,a=i.delay!=null?ue(i.delay):null;return o!==0&&e.forEach(l=>{let c=t.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(e,t){t.updateOptions(e.options,!0),Y(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let i=t.subContextCount,r=t,s=e.options;if(s&&(s.params||s.delay)&&(r=t.createSubContext(s),r.transformIntoNewTimeline(),s.delay!=null)){r.previousNode.type==w.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=dt);let o=ue(s.delay);r.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>Y(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let i=[],r=t.currentTimeline.currentTime,s=e.options&&e.options.delay?ue(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);s&&a.delayNextStep(s),Y(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(r),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let i=e.strValue,r=t.params?Qe(i,t.params,t.errors):i;return ut(r,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let i=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),r.snapshotCurrentStyles());let s=e.style;s.type==w.Keyframes?this.visitKeyframes(s,t):(t.incrementTime(i.duration),this.visitStyle(s,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let i=t.currentTimeline,r=t.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();let s=r&&r.easing||e.easing;e.isEmptyStep?i.applyEmptyStep(s):i.setStyles(e.styles,s,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let i=t.currentAnimateTimings,r=t.currentTimeline.duration,s=i.duration,a=t.createSubContext().currentTimeline;a.easing=i.easing,e.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*s),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(r+s),t.previousNode=e}visitQuery(e,t){let i=t.currentTimeline.currentTime,r=e.options||{},s=r.delay?ue(r.delay):0;s&&(t.previousNode.type===w.Style||i==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=dt);let o=i,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,d)=>{t.currentQueryIndex=d;let m=t.createSubContext(e.options,c);s&&m.delayNextStep(s),c===t.element&&(l=m.currentTimeline),Y(this,e.animation,m),m.currentTimeline.applyStylesToKeyframe();let T=m.currentTimeline.currentTime;o=Math.max(o,T)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let i=t.parentContext,r=t.currentTimeline,s=e.timings,o=Math.abs(s.duration),a=o*(t.currentQueryTotal-1),l=o*t.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime;break}let d=t.currentTimeline;l&&d.delayNextStep(l);let m=d.currentTime;Y(this,e.animation,t),t.previousNode=e,i.currentStaggerTime=r.currentTime-m+(r.startTime-i.currentTimeline.startTime)}},dt={},Vt=class n{constructor(e,t,i,r,s,o,a,l){this._driver=e,this.element=t,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=dt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new pt(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let i=e,r=this.options;i.duration!=null&&(r.duration=ue(i.duration)),i.delay!=null&&(r.delay=ue(i.delay));let s=i.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=Qe(s[a],o,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let i=e.params={};Object.keys(t).forEach(r=>{i[r]=t[r]})}}return e}createSubContext(e=null,t,i){let r=t||this.element,s=new n(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(e){return this.previousNode=dt,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,i){let r={duration:t??e.duration,delay:this.currentTimeline.currentTime+(i??0)+e.delay,easing:""},s=new $t(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,i,r,s,o){let a=[];if(r&&a.push(this.element),e.length>0){e=e.replace(Wr,"."+this._enterClassName),e=e.replace(Yr,"."+this._leaveClassName);let l=i!=1,c=this._driver.query(this.element,e,l);i!==0&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!s&&a.length==0&&o.push(ur(t)),a}},pt=class n{constructor(e,t,i,r){this._driver=e,this.element=t,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(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+=Ur,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,i]of this._globalTimelineStyles)this._backFill.set(t,i||se),this._currentKeyframe.set(t,se);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,i,r){t&&this._previousKeyframe.set("easing",t);let s=r&&r.params||{},o=Xr(e,this._globalTimelineStyles);for(let[a,l]of o){let c=Qe(l,s,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??se),this._updateStyle(a,c)}}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,i)=>{let r=this._styleSummary.get(i);(!r||t.time>r.time)&&this._updateStyle(i,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,i=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((d,m)=>{d===nt?e.add(m):d===se&&t.add(m)}),i||c.set("offset",l/this.duration),r.push(c)});let s=[...e.values()],o=[...t.values()];if(i){let a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return ii(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}},$t=class extends pt{constructor(e,t,i,r,s,o,a=!1){super(e,t,o.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){let s=[],o=i+t,a=t/o,l=new Map(e[0]);l.set("offset",0),s.push(l);let c=new Map(e[0]);c.set("offset",hn(a)),s.push(c);let d=e.length-1;for(let m=1;m<=d;m++){let T=new Map(e[m]),b=T.get("offset"),g=t+b*i;T.set("offset",hn(g/o)),s.push(T)}i=o,t=0,r="",e=s}return ii(this.element,e,this.preStyleProps,this.postStyleProps,i,t,r,!0)}};function hn(n,e=3){let t=Math.pow(10,e-1);return Math.round(n*t)/t}function Xr(n,e){let t=new Map,i;return n.forEach(r=>{if(r==="*"){i??=e.keys();for(let s of i)t.set(s,se)}else for(let[s,o]of r)t.set(s,o)}),t}function mn(n,e,t,i,r,s,o,a,l,c,d,m,T){return{type:0,element:n,triggerName:e,isRemovalTransition:r,fromState:t,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:m,errors:T}}var Mt={},ft=class{constructor(e,t,i){this._triggerName=e,this.ast=t,this._stateStyles=i}match(e,t,i,r){return Zr(this.ast.matchers,e,t,i,r)}buildStyles(e,t,i){let r=this._stateStyles.get("*");return e!==void 0&&(r=this._stateStyles.get(e?.toString())||r),r?r.buildStyles(t,i):new Map}build(e,t,i,r,s,o,a,l,c,d){let m=[],T=this.ast.options&&this.ast.options.params||Mt,b=a&&a.params||Mt,g=this.buildStyles(i,b,m),S=l&&l.params||Mt,A=this.buildStyles(r,S,m),I=new Set,R=new Map,Q=new Map,z=r==="void",Te={params:kn(S,T),delay:this.ast.options?.delay},ie=d?[]:Pn(e,t,this.ast.animation,s,o,g,A,Te,c,m),K=0;return ie.forEach(U=>{K=Math.max(U.duration+U.delay,K)}),m.length?mn(t,this._triggerName,i,r,z,g,A,[],[],R,Q,K,m):(ie.forEach(U=>{let fe=U.element,Ce=X(R,fe,new Set);U.preStyleProps.forEach(ge=>Ce.add(ge));let ri=X(Q,fe,new Set);U.postStyleProps.forEach(ge=>ri.add(ge)),fe!==t&&I.add(fe)}),mn(t,this._triggerName,i,r,z,g,A,ie,[...I.values()],R,Q,K))}};function Zr(n,e,t,i,r){return n.some(s=>s(e,t,i,r))}function kn(n,e){let t=Ge({},e);return Object.entries(n).forEach(([i,r])=>{r!=null&&(t[i]=r)}),t}var Qt=class{constructor(e,t,i){this.styles=e,this.defaultParams=t,this.normalizer=i}buildStyles(e,t){let i=new Map,r=kn(e,this.defaultParams);return this.styles.styles.forEach(s=>{typeof s!="string"&&s.forEach((o,a)=>{o&&(o=Qe(o,r,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),i.set(a,o)})}),i}};function Jr(n,e,t){return new Kt(n,e,t)}var Kt=class{constructor(e,t,i){this.name=e,this.ast=t,this._normalizer=i,this.transitionFactories=[],this.states=new Map,t.states.forEach(r=>{let s=r.options&&r.options.params||{};this.states.set(r.name,new Qt(r.style,s,i))}),dn(this.states,"true","1"),dn(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new ft(e,r,this.states))}),this.fallbackTransition=es(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,i,r){return this.transitionFactories.find(o=>o.match(e,t,i,r))||null}matchStyles(e,t,i){return this.fallbackTransition.buildStyles(e,t,i)}};function es(n,e,t){let i=[(o,a)=>!0],r={type:w.Sequence,steps:[],options:null},s={type:w.Transition,animation:r,matchers:i,options:null,queryCount:0,depCount:0};return new ft(n,s,e)}function dn(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 ts=new Ke,jt=class{constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){let i=[],r=[],s=xn(this._driver,t,i,r);if(i.length)throw fr(i);r.length&&void 0,this._animations.set(e,s)}_buildPlayer(e,t,i){let r=e.element,s=vn(this._normalizer,e.keyframes,t,i);return this._driver.animate(r,s,e.duration,e.delay,e.easing,[],!0)}create(e,t,i={}){let r=[],s=this._animations.get(e),o,a=new Map;if(s?(o=Pn(this._driver,t,s,En,Ft,new Map,new Map,i,ts,r),o.forEach(d=>{let m=X(a,d.element,new Map);d.postStyleProps.forEach(T=>m.set(T,null))})):(r.push(gr()),o=[]),r.length)throw yr(r);a.forEach((d,m)=>{d.forEach((T,b)=>{d.set(b,this._driver.computeStyle(m,b,se))})});let l=o.map(d=>{let m=a.get(d.element);return this._buildPlayer(d,new Map,m)}),c=pe(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let i=this.players.indexOf(t);i>=0&&this.players.splice(i,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw _r(e);return t}listen(e,t,i,r){let s=Xt(t,"","","");return Yt(this._getPlayer(e),i,s,r),()=>{}}command(e,t,i,r){if(i=="register"){this.register(e,r[0]);return}if(i=="create"){let o=r[0]||{};this.create(e,t,o);return}let s=this._getPlayer(e);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e);break}}},pn="ng-animate-queued",is=".ng-animate-queued",Nt="ng-animate-disabled",ns=".ng-animate-disabled",rs="ng-star-inserted",ss=".ng-star-inserted",os=[],An={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},as={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},te="__ng_removed",je=class{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let i=e&&e.hasOwnProperty("value"),r=i?e.value:e;if(this.value=cs(r),i){let s=e,{value:o}=s,a=li(s,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let i=this.options.params;Object.keys(t).forEach(r=>{i[r]==null&&(i[r]=t[r])})}}},$e="void",Dt=new je($e),Ut=class{constructor(e,t,i){this.id=e,this.hostElement=t,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,ee(t,this._hostClassName)}listen(e,t,i,r){if(!this._triggers.has(t))throw vr(i,t);if(i==null||i.length==0)throw Sr(t);if(!us(i))throw br(i,t);let s=X(this._elementListeners,e,[]),o={name:t,phase:i,callback:r};s.push(o);let a=X(this._engine.statesByElement,e,new Map);return a.has(t)||(ee(e,rt),ee(e,rt+"-"+t),a.set(t,Dt)),()=>{this._engine.afterFlush(()=>{let l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers.has(t)||a.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 wr(e);return t}trigger(e,t,i,r=!0){let s=this._getTrigger(t),o=new Ue(this.id,t,e),a=this._engine.statesByElement.get(e);a||(ee(e,rt),ee(e,rt+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),c=new je(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=Dt),!(c.value===$e)&&l.value===c.value){if(!ds(l.params,c.params)){let S=[],A=s.matchStyles(l.value,l.params,S),I=s.matchStyles(c.value,c.params,S);S.length?this._engine.reportError(S):this._engine.afterFlush(()=>{be(e,A),oe(e,I)})}return}let T=X(this._engine.playersByElement,e,[]);T.forEach(S=>{S.namespaceId==this.id&&S.triggerName==t&&S.queued&&S.destroy()});let b=s.matchTransition(l.value,c.value,e,c.params),g=!1;if(!b){if(!r)return;b=s.fallbackTransition,g=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:b,fromState:l,toState:c,player:o,isFallbackTransition:g}),g||(ee(e,pn),o.onStart(()=>{Le(e,pn)})),o.onDone(()=>{let S=this.players.indexOf(o);S>=0&&this.players.splice(S,1);let A=this._engine.playersByElement.get(e);if(A){let I=A.indexOf(o);I>=0&&A.splice(I,1)}}),this.players.push(o),T.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,i)=>{this._elementListeners.set(i,t.filter(r=>r.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(i=>i.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let i=this._engine.driver.query(e,ct,!0);i.forEach(r=>{if(r[te])return;let s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,t,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,t,i,r){let s=this._engine.statesByElement.get(e),o=new Map;if(s){let a=[];if(s.forEach((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){let d=this.trigger(e,c,$e,r);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),i&&pe(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(t&&i){let r=new Set;t.forEach(s=>{let o=s.name;if(r.has(o))return;r.add(o);let l=this._triggers.get(o).fallbackTransition,c=i.get(o)||Dt,d=new je($e),m=new Ue(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:d,player:m,isFallbackTransition:!0})})}}removeNode(e,t){let i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let r=!1;if(i.totalAnimations){let s=i.players.length?i.playersByQueriedElement.get(e):[];if(s&&s.length)r=!0;else{let o=e;for(;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)i.markElementAsRemoved(this.id,e,!1,t);else{let s=e[te];(!s||s===An)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}insertNode(e,t){ee(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(i=>{let r=i.player;if(r.destroyed)return;let s=i.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==i.triggerName){let l=Xt(s,i.triggerName,i.fromState.value,i.toState.value);l._data=e,Yt(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(i)}),this._queue=[],t.sort((i,r)=>{let s=i.transition.ast.depCount,o=r.transition.ast.depCount;return s==0||o==0?s-o:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Ht=class{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,i,r){this.bodyNode=e,this.driver=t,this._normalizer=i,this.scheduler=r,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(s,o)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(i=>{i.queued&&e.push(i)})}),e}createNamespace(e,t){let i=new Ut(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(i,t):(this.newHostElements.set(t,i),this.collectEnterElement(t)),this._namespaceLookup[e]=i}_balanceNamespaceList(e,t){let i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){let l=r.get(a);if(l){let c=i.indexOf(l);i.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||i.unshift(e)}else i.push(e);return r.set(t,e),e}register(e,t){let i=this._namespaceLookup[e];return i||(i=this.createNamespace(e,t)),i}registerTrigger(e,t,i){let r=this._namespaceLookup[e];r&&r.register(t,i)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let i=this._fetchNamespace(e);this.namespacesByHostElement.delete(i.hostElement);let r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1),i.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,i=this.statesByElement.get(e);if(i){for(let r of i.values())if(r.namespaceId){let s=this._fetchNamespace(r.namespaceId);s&&t.add(s)}}return t}trigger(e,t,i,r){if(at(t)){let s=this._fetchNamespace(e);if(s)return s.trigger(t,i,r),!0}return!1}insertNode(e,t,i,r){if(!at(t))return;let s=t[te];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;let o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(t,i)}r&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),ee(e,Nt)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Le(e,Nt))}removeNode(e,t,i){if(at(t)){this.scheduler?.notify();let r=e?this._fetchNamespace(e):null;r?r.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i);let s=this.namespacesByHostElement.get(t);s&&s.id!==e&&s.removeNode(t,i)}else this._onRemovalComplete(t,i)}markElementAsRemoved(e,t,i,r,s){this.collectedLeaveElements.push(t),t[te]={namespaceId:e,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:s}}listen(e,t,i,r,s){return at(t)?this._fetchNamespace(e).listen(t,i,r,s):()=>{}}_buildInstruction(e,t,i,r,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,i,r,e.fromState.options,e.toState.options,t,s)}destroyInnerAnimations(e){let t=this.driver.query(e,ct,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,Ot,!0),t.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return pe(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[te];if(t&&t.setForRemoval){if(e[te]=An,t.namespaceId){this.destroyInnerAnimations(e);let i=this._fetchNamespace(t.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(Nt)&&this.markElementAsDisabled(e,!1),this.driver.query(e,ns,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++){let r=this.collectedEnterElements[i];ee(r,rs)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let i=[];try{t=this._flushAnimations(i,e)}finally{for(let r=0;r<i.length;r++)i[r]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++){let r=this.collectedLeaveElements[i];this.processLeaveNode(r)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){let i=this._whenQuietFns;this._whenQuietFns=[],t.length?pe(t).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(e){throw Er(e)}_flushAnimations(e,t){let i=new Ke,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(p=>{d.add(p);let y=this.driver.query(p,is,!0);for(let _=0;_<y.length;_++)d.add(y[_])});let m=this.bodyNode,T=Array.from(this.statesByElement.keys()),b=yn(T,this.collectedEnterElements),g=new Map,S=0;b.forEach((p,y)=>{let _=En+S++;g.set(y,_),p.forEach(x=>ee(x,_))});let A=[],I=new Set,R=new Set;for(let p=0;p<this.collectedLeaveElements.length;p++){let y=this.collectedLeaveElements[p],_=y[te];_&&_.setForRemoval&&(A.push(y),I.add(y),_.hasAnimation?this.driver.query(y,ss,!0).forEach(x=>I.add(x)):R.add(y))}let Q=new Map,z=yn(T,Array.from(I));z.forEach((p,y)=>{let _=Ft+S++;Q.set(y,_),p.forEach(x=>ee(x,_))}),e.push(()=>{b.forEach((p,y)=>{let _=g.get(y);p.forEach(x=>Le(x,_))}),z.forEach((p,y)=>{let _=Q.get(y);p.forEach(x=>Le(x,_))}),A.forEach(p=>{this.processLeaveNode(p)})});let Te=[],ie=[];for(let p=this._namespaceList.length-1;p>=0;p--)this._namespaceList[p].drainQueuedTransitions(t).forEach(_=>{let x=_.player,L=_.element;if(Te.push(x),this.collectedEnterElements.length){let q=L[te];if(q&&q.setForMove){if(q.previousTriggersValues&&q.previousTriggersValues.has(_.triggerName)){let ye=q.previousTriggersValues.get(_.triggerName),Z=this.statesByElement.get(_.element);if(Z&&Z.has(_.triggerName)){let We=Z.get(_.triggerName);We.value=ye,Z.set(_.triggerName,We)}}x.destroy();return}}let ne=!m||!this.driver.containsElement(m,L),G=Q.get(L),he=g.get(L),M=this._buildInstruction(_,i,he,G,ne);if(M.errors&&M.errors.length){ie.push(M);return}if(ne){x.onStart(()=>be(L,M.fromStyles)),x.onDestroy(()=>oe(L,M.toStyles)),r.push(x);return}if(_.isFallbackTransition){x.onStart(()=>be(L,M.fromStyles)),x.onDestroy(()=>oe(L,M.toStyles)),r.push(x);return}let ai=[];M.timelines.forEach(q=>{q.stretchStartingKeyframe=!0,this.disabledNodes.has(q.element)||ai.push(q)}),M.timelines=ai,i.append(L,M.timelines);let Hn={instruction:M,player:x,element:L};o.push(Hn),M.queriedElements.forEach(q=>X(a,q,[]).push(x)),M.preStyleProps.forEach((q,ye)=>{if(q.size){let Z=l.get(ye);Z||l.set(ye,Z=new Set),q.forEach((We,wt)=>Z.add(wt))}}),M.postStyleProps.forEach((q,ye)=>{let Z=c.get(ye);Z||c.set(ye,Z=new Set),q.forEach((We,wt)=>Z.add(wt))})});if(ie.length){let p=[];ie.forEach(y=>{p.push(Tr(y.triggerName,y.errors))}),Te.forEach(y=>y.destroy()),this.reportError(p)}let K=new Map,U=new Map;o.forEach(p=>{let y=p.element;i.has(y)&&(U.set(y,y),this._beforeAnimationBuild(p.player.namespaceId,p.instruction,K))}),r.forEach(p=>{let y=p.element;this._getPreviousPlayers(y,!1,p.namespaceId,p.triggerName,null).forEach(x=>{X(K,y,[]).push(x),x.destroy()})});let fe=A.filter(p=>_n(p,l,c)),Ce=new Map;gn(Ce,this.driver,R,c,se).forEach(p=>{_n(p,l,c)&&fe.push(p)});let ge=new Map;b.forEach((p,y)=>{gn(ge,this.driver,new Set(p),l,nt)}),fe.forEach(p=>{let y=Ce.get(p),_=ge.get(p);Ce.set(p,new Map([...y?.entries()??[],..._?.entries()??[]]))});let bt=[],si=[],oi={};o.forEach(p=>{let{element:y,player:_,instruction:x}=p;if(i.has(y)){if(d.has(y)){_.onDestroy(()=>oe(y,x.toStyles)),_.disabled=!0,_.overrideTotalTime(x.totalTime),r.push(_);return}let L=oi;if(U.size>1){let G=y,he=[];for(;G=G.parentNode;){let M=U.get(G);if(M){L=M;break}he.push(G)}he.forEach(M=>U.set(M,L))}let ne=this._buildAnimation(_.namespaceId,x,K,s,ge,Ce);if(_.setRealPlayer(ne),L===oi)bt.push(_);else{let G=this.playersByElement.get(L);G&&G.length&&(_.parentPlayer=pe(G)),r.push(_)}}else be(y,x.fromStyles),_.onDestroy(()=>oe(y,x.toStyles)),si.push(_),d.has(y)&&r.push(_)}),si.forEach(p=>{let y=s.get(p.element);if(y&&y.length){let _=pe(y);p.setRealPlayer(_)}}),r.forEach(p=>{p.parentPlayer?p.syncPlayerEvents(p.parentPlayer):p.destroy()});for(let p=0;p<A.length;p++){let y=A[p],_=y[te];if(Le(y,Ft),_&&_.hasAnimation)continue;let x=[];if(a.size){let ne=a.get(y);ne&&ne.length&&x.push(...ne);let G=this.driver.query(y,Ot,!0);for(let he=0;he<G.length;he++){let M=a.get(G[he]);M&&M.length&&x.push(...M)}}let L=x.filter(ne=>!ne.destroyed);L.length?hs(this,y,L):this.processLeaveNode(y)}return A.length=0,bt.forEach(p=>{this.players.push(p),p.onDone(()=>{p.destroy();let y=this.players.indexOf(p);this.players.splice(y,1)}),p.play()}),bt}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,i,r,s){let o=[];if(t){let a=this.playersByQueriedElement.get(e);a&&(o=a)}else{let a=this.playersByElement.get(e);if(a){let l=!s||s==$e;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||o.push(c)})}}return(i||r)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(e,t,i){let r=t.triggerName,s=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:r;for(let l of t.timelines){let c=l.element,d=c!==s,m=X(i,c,[]);this._getPreviousPlayers(c,d,o,a,t.toState).forEach(b=>{let g=b.getRealPlayer();g.beforeDestroy&&g.beforeDestroy(),b.destroy(),m.push(b)})}be(s,t.fromStyles)}_buildAnimation(e,t,i,r,s,o){let a=t.triggerName,l=t.element,c=[],d=new Set,m=new Set,T=t.timelines.map(g=>{let S=g.element;d.add(S);let A=S[te];if(A&&A.removedBeforeQueried)return new de(g.duration,g.delay);let I=S!==l,R=ms((i.get(S)||os).map(K=>K.getRealPlayer())).filter(K=>{let U=K;return U.element?U.element===S:!1}),Q=s.get(S),z=o.get(S),Te=vn(this._normalizer,g.keyframes,Q,z),ie=this._buildPlayer(g,Te,R);if(g.subTimeline&&r&&m.add(S),I){let K=new Ue(e,a,S);K.setRealPlayer(ie),c.push(K)}return ie});c.forEach(g=>{X(this.playersByQueriedElement,g.element,[]).push(g),g.onDone(()=>ls(this.playersByQueriedElement,g.element,g))}),d.forEach(g=>ee(g,ln));let b=pe(T);return b.onDestroy(()=>{d.forEach(g=>Le(g,ln)),oe(l,t.toStyles)}),m.forEach(g=>{X(r,g,[]).push(b)}),b}_buildPlayer(e,t,i){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,i):new de(e.duration,e.delay)}},Ue=class{constructor(e,t,i){this.namespaceId=e,this.triggerName=t,this.element=i,this._player=new de,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,i)=>{t.forEach(r=>Yt(e,i,void 0,r))}),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){X(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 ls(n,e,t){let i=n.get(e);if(i){if(i.length){let r=i.indexOf(t);i.splice(r,1)}i.length==0&&n.delete(e)}return i}function cs(n){return n??null}function at(n){return n&&n.nodeType===1}function us(n){return n=="start"||n=="done"}function fn(n,e){let t=n.style.display;return n.style.display=e??"none",t}function gn(n,e,t,i,r){let s=[];t.forEach(l=>s.push(fn(l)));let o=[];
1i.forEach((l,c)=>{let d=new Map;l.forEach(m=>{let T=e.computeStyle(c,m,r);d.set(m,T),(!T||T.length==0)&&(c[te]=as,o.push(c))}),n.set(c,d)});let a=0;return t.forEach(l=>fn(l,s[a++])),o}function yn(n,e){let t=new Map;if(n.forEach(a=>t.set(a,[])),e.length==0)return t;let i=1,r=new Set(e),s=new Map;function o(a){if(!a)return i;let l=s.get(a);if(l)return l;let c=a.parentNode;return t.has(c)?l=c:r.has(c)?l=i:l=o(c),s.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==i&&t.get(l).push(a)}),t}function ee(n,e){n.classList?.add(e)}function Le(n,e){n.classList?.remove(e)}function hs(n,e,t){pe(t).onDone(()=>n.processLeaveNode(e))}function ms(n){let e=[];return Mn(n,e),e}function Mn(n,e){for(let t=0;t<n.length;t++){let i=n[t];i instanceof qe?Mn(i.players,e):e.push(i)}}function ds(n,e){let t=Object.keys(n),i=Object.keys(e);if(t.length!=i.length)return!1;for(let r=0;r<t.length;r++){let s=t[r];if(!e.hasOwnProperty(s)||n[s]!==e[s])return!1}return!0}function _n(n,e,t){let i=t.get(n);if(!i)return!1;let r=e.get(n);return r?i.forEach(s=>r.add(s)):e.set(n,i),t.delete(n),!0}var ze=class{constructor(e,t,i,r){this._driver=t,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(s,o)=>{},this._transitionEngine=new Ht(e.body,t,i,r),this._timelineEngine=new jt(e.body,t,i),this._transitionEngine.onRemovalComplete=(s,o)=>this.onRemovalComplete(s,o)}registerTrigger(e,t,i,r,s){let o=e+"-"+r,a=this._triggerCache[o];if(!a){let l=[],c=[],d=xn(this._driver,s,l,c);if(l.length)throw dr(r,l);c.length&&void 0,a=Jr(r,d,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,r,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,i,r){this._transitionEngine.insertNode(e,t,i,r)}onRemove(e,t,i){this._transitionEngine.removeNode(e,t,i)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,i,r){if(i.charAt(0)=="@"){let[s,o]=on(i),a=r;this._timelineEngine.command(s,t,o,a)}else this._transitionEngine.trigger(e,t,i,r)}listen(e,t,i,r,s){if(i.charAt(0)=="@"){let[o,a]=on(i);return this._timelineEngine.listen(o,t,a,s)}return this._transitionEngine.listen(e,t,i,r,s)}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 ps(n,e){let t=null,i=null;return Array.isArray(e)&&e.length?(t=It(e[0]),e.length>1&&(i=It(e[e.length-1]))):e instanceof Map&&(t=It(e)),t||i?new Wt(n,t,i):null}var Wt=class n{static{this.initialStylesByElement=new WeakMap}constructor(e,t,i){this._element=e,this._startStyles=t,this._endStyles=i,this._state=0;let r=n.initialStylesByElement.get(e);r||n.initialStylesByElement.set(e,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&oe(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(oe(this._element,this._initialStyles),this._endStyles&&(oe(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(be(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(be(this._element,this._endStyles),this._endStyles=null),oe(this._element,this._initialStyles),this._state=3)}};function It(n){let e=null;return n.forEach((t,i)=>{fs(i)&&(e=e||new Map,e.set(i,t))}),e}function fs(n){return n==="display"||n==="position"}var gt=class{constructor(e,t,i,r){this.element=e,this.keyframes=t,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e
1=>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(i=>{t.push(Object.fromEntries(i))}),t}_triggerWebAnimation(e,t,i){return e.animate(this._convertKeyframesToObject(t),i)}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((i,r)=>{r!=="offset"&&e.set(r,this._finished?i:ti(this.element,r))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}},yt=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}matchesElement(e,t){return!1}containsElement(e,t){return Sn(e,t)}getParentElement(e){return Zt(e)}query(e,t,i){return bn(e,t,i)}computeStyle(e,t,i){return ti(e,t)}animate(e,t,i,r,s,o=[]){let a=r==0?"both":"forwards",l={duration:i,delay:r,fill:a};s&&(l.easing=s);let c=new Map,d=o.filter(b=>b instanceof gt);Or(i,r)&&d.forEach(b=>{b.currentSnapshot.forEach((g,S)=>c.set(S,g))});let m=Dr(t).map(b=>new Map(b));m=Rr(e,m,c);let T=ps(e,m);return new gt(e,m,l,T)}};var lt="@",Nn="@.disabled",_t=class{constructor(e,t,i,r){this.namespaceId=e,this.delegate=t,this.engine=i,this._onDestroy=r,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,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,i,r=!0){this.delegate.insertBefore(e,t,i),this.engine.onInsert(this.namespaceId,t,e,r)}removeChild(e,t,i){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,i,r){this.delegate.setAttribute(e,t,i,r)}removeAttribute(e,t,i){this.delegate.removeAttribute(e,t,i)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,i,r){this.delegate.setStyle(e,t,i,r)}removeStyle(e,t,i){this.delegate.removeStyle(e,t,i)}setProperty(e,t,i){t.charAt(0)==lt&&t==Nn?this.disableAnimations(e,!!i):this.delegate.setProperty(e,t,i)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,i){return this.delegate.listen(e,t,i)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},Gt=class extends _t{constructor(e,t,i,r,s){super(t,i,r,s),this.factory=e,this.namespaceId=t}setProperty(e,t,i){t.charAt(0)==lt?t.charAt(1)=="."&&t==Nn?(i=i===void 0?!0:!!i,this.disableAnimations(e,i)):this.engine.process(this.namespaceId,e,t.slice(1),i):this.delegate.setProperty(e,t,i)}listen(e,t,i){if(t.charAt(0)==lt){let r=gs(e),s=t.slice(1),o="";return s.charAt(0)!=lt&&([s,o]=ys(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,i,a)})}return this.delegate.listen(e,t,i)}};function gs(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function ys(n){let e=n.indexOf("."),t=n.substring(0,e),i=n.slice(e+1);return[t,i]}var vt=class{constructor(e,t,i){this.delegate=e,this.engine=t,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(r,s)=>{let o=s?.parentNode(r);o&&s.removeChild(o,r)}}createRenderer(e,t){let i="",r=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let c=this._rendererCache,d=c.get(r);if(!d){let m=()=>c.delete(r);d=new _t(i,r,this.engine,m),c.set(r,d)}return d}let s=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=c=>
1{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(s,o,e,c.name,c)};return t.data.animation.forEach(a),new Gt(this,o,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,i){if(e>=0&&e<this._microtaskId){this._zone.run(()=>t(i));return}let r=this._animationCallbacksBuffer;r.length==0&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(s=>{let[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),r.push([t,i])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var vs=(()=>{class n extends ze{constructor(t,i,r){super(t,i,r,Ye(_i,{optional:!0}))}ngOnDestroy(){this.flush()}static{this.\u0275fac=function(i){return new(i||n)(Pe(Ze),Pe(we),Pe(Ee))}}static{this.\u0275prov=xe({token:n,factory:n.\u0275fac})}}return n})();function Ss(){return new ht}function bs(n,e,t){return new vt(n,e,t)}var Dn=[{provide:Ee,useFactory:Ss},{provide:ze,useClass:vs},{provide:vi,useFactory:bs,deps:[Li,ze,Xe]}],ws=[{provide:we,useFactory:()=>new yt},{provide:Et,useValue:"BrowserAnimations"},...Dn],fo=[{provide:we,useClass:Jt},{provide:Et,useValue:"NoopAnimations"},...Dn];function In(){return Si("NgEagerAnimations"),[...ws]}var Fn=(n,e)=>{console.log("[INTERCEPTOR] Called for:",n.url);let t=n.clone({withCredentials:!0});return e(t)};var St=(()=>{class n{constructor(t){this.ngZone=t,this.loadingSubject=new ui(!1),this.loading$=this.loadingSubject.asObservable(),this.activeRequests=0}show(){this.activeRequests++,this.updateLoadingState(!0)}hide(){this.activeRequests--,this.activeRequests<=0&&(this.activeRequests=0,this.updateLoadingState(!1))}updateLoadingState(t){this.ngZone.run(()=>{this.loadingSubject.next(t)})}static{this.\u0275fac=function(i){return new(i||n)(Pe(Xe))}}static{this.\u0275prov=xe({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var On=(n,e)=>{let t=Ye(St);return t.show(),e(n).pipe(di(()=>{t.hide()}))};function Rn(){return pi([fi(Wi),{provide:Ui,useValue:Re.recaptchaSiteKey}])}var Ln={providers:[Rn(),qi(tn,Vi({scrollPositionRestoration:"top"}),$i()),Fi(Oi([Fn,On]),Ri()),In(),Ji(Re.gaMeasurementId),Zi()]};var Cs=n=>["/product",n];function xs(n,e){n&1&&(h(0,"div",16),f(1," Your cart is empty "),u())}function Ps(n,e){if(n&1&&(h(0,"span"),f(1),u()),n&2){let t=D().$implicit;v(),Ci("",t.categoryId===7?"Size":"Variants",": ",t.size.size,"")}}function ks(n,e){if(n&1&&(ke(0),h(1,"p",31),f(2),H(3,"number"),u(),h(4,"p",32),f(5),H(6,"number"),u(),h(7,"p",33),f(8),H(9,"number"),u(),Ae()),n&2){let t=D().$implicit;
1v(2),j("\u20B9",Ne(3,3,t.price*t.quantity,"1.2-2"),""),v(3),j("\u20B9",Ne(6,6,t.originalPrice*t.quantity,"1.2-2"),""),v(3),j("Save \u20B9",Ne(9,9,(t.originalPrice-t.price)*t.quantity,"1.2-2"),"")}}function As(n,e){if(n&1&&(ke(0),h(1,"p",10),f(2),H(3,"number"),u(),Ae()),n&2){let t=D().$implicit;v(2),j("\u20B9",Ne(3,1,t.price*t.quantity,"1.2-2"),"")}}function Ms(n,e){if(n&1){let t=J();h(0,"div",17),E(1,"img",18),h(2,"div",19)(3,"a",20),f(4),u(),h(5,"p",21),N(6,Ps,2,2,"span",7),u(),h(7,"div",22)(8,"div",23)(9,"button",24),k("click",function(){let r=F(t).$implicit,s=D(2);return O(s.updateQuantity(r,r.quantity-1))}),E(10,"i",25),u(),h(11,"span"),f(12),u(),h(13,"button",26),k("click",function(){let r=F(t).$implicit,s=D(2);return O(s.updateQuantity(r,r.quantity+1))}),E(14,"i",27),u()(),h(15,"button",28),k("click",function(){let r=F(t).$implicit,s=D(2);return O(s.removeFromCart(r))}),E(16,"i",29),u()()(),h(17,"div",30),N(18,ks,10,12,"ng-container",7)(19,As,4,4,"ng-container",7),u()()}if(n&2){let t=e.$implicit;v(),C("src",t.mainImageLink.imageLink,Be)("alt",t.mainImageLink.imageName),v(2),C("routerLink",Mi(9,Cs,t.productId)),v(),le(t.productName),v(2),C("ngIf",t.size),v(3),C("disabled",t.quantity<=1),v(3),le(t.quantity),v(6),C("ngIf",t.originalPrice),v(),C("ngIf",!t.originalPrice)}}function Ns(n,e){if(n&1&&(ke(0),N(1,xs,2,0,"div",14)(2,Ms,20,11,"div",15),Ae()),n&2){let t=e.ngIf;v(),C("ngIf",t.length===0),v(),C("ngForOf",t)}}var zn=(()=>{class n{constructor(t){this.cartService=t,this.cartItems$=this.cartService.cartItems$,this.cartTotal$=this.cartService.cartTotal$,this.isOpen=!1}updateQuantity(t,i){i>=1&&this.cartService.updateQuantity(t,i)}removeFromCart(t){this.cartService.removeFromCart(t)}close(){this.isOpen=!1}open(){this.isOpen=!0}static{this.\u0275fac=function(i){return new(i||n)(B(it))}}static{this.\u0275cmp=V({type:n,selectors:[["app-cart"]],standalone:!0,features:[$],decls:22,vars:13,consts:[[1,"fixed","right-0","top-0","h-full","w-96","bg-white","shadow-lg","transform","transition-transform","duration-300","z-20"],[1,"h-full","flex","flex-col"],[1,"p-4","border-b","flex","justify-between","items-center"],[1,"text-xl","font-bold"],[1,"text-gray-500","hover:text-gray-700",3,"click"],[1,"fas","fa-times"],[1,"flex-1","overflow-y-auto","p-4"],[4,"ngIf"],[1,"p-4","border-t"],[1,"flex","justify-between","mb-4"],[1,"font-semibold"],[1,"font-bold"],["routerLink","/checkout",1,"w-full","btn-primary","mb-2",3,"click"],[1,"w-full","btn-secondary",3,"click"],["class","text-center text-gray-500 mt-8",4,"ngIf"],["class","flex gap-4 mb-4 pb-4 border-b",4,"ngFor","ngForOf"],[1,"text-center","text-gray-500","mt-8"],[1,"flex","gap-4","mb-4","pb-4","border-b"],[1,"w-20","h-20","object-cover","rounded",3,"src","alt"],[1,"flex-1"],[1,"font-semibold",3,"routerLink"],[1,"text-sm","text-gray-600","mb-2"],[1,"flex","justify-between","items-center"],[1,"flex","items-center","gap-2"],[1,"px-2","py-1","border","rounded",3,"click","disabled"],[1,"fas","fa-minus"],[1,"px-2","py-1","border","rounded",3,"click"],[1,"fas","fa-plus"],[1,"text-red-500","hover:text-red-700",3,"click"],[1,"fas","fa-trash"],[1,"text-right"],[1,"font-semibold","text-primary"],[1,"text-sm","text-gray-400","line-through"],[1,"text-xs","text-green-600"]],template:function(i,r){i&1&&(h(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2",3),f(4,"Your Cart"),u(),h(5,"button",4),k("click",function(){return r.close()}),E(6,"i",5),u()(),h(7,"div",6),N(8,Ns,3,2,"ng-container",7),H(9,"async"),u(),h(10,"div",8)(11,"div",9)(12,"span",10),f(13,"Subtotal:"),u(),h(14,"span",11),f(15),H(16,"async"),H(17,"number"),u()(),h(18,"button",12),k("click",function(){return r.close()}),f(19," Proceed to Checkout "),u(),h(20,"button",13),k("click",function(){return r.close()}),f(21," Continue Shopping "),u()()()()),i&2&&(bi("translate-x-0",r.isOpen)("translate-x-full",!r.isOpen),v(8),C("ngIf",ce(9,6,r.cartItems$)),v(7),j("\u20B9",
1Ne(17,10,ce(16,8,r.cartTotal$),"1.2-2"),""))},dependencies:[W,me,re,De,Ii,Oe,Fe,Ie]})}}return n})();function Is(n,e){if(n&1&&(h(0,"span",11),f(1),u()),n&2){let t=D().$implicit;v(),j(" (",t.variantName,") ")}}function Fs(n,e){if(n&1){let t=J();h(0,"li",8),k("click",function(){let r=F(t).$implicit,s=D(2);return O(s.selectResult(r))}),h(1,"span",9),f(2),u(),N(3,Is,2,1,"span",10),u()}if(n&2){let t=e.$implicit;v(2),le(t.name),v(),C("ngIf",t.variantName)}}function Os(n,e){if(n&1&&(h(0,"ul",6),N(1,Fs,4,2,"li",7),u()),n&2){let t=D();v(),C("ngForOf",t.results)}}var Bn=(()=>{class n{constructor(t,i){this.searchService=t,this.router=i,this.searchQuery="",this.results=[],this.searchSubject=new ci,this.searchSubject.pipe(hi(300),mi()).subscribe(r=>{if(r.trim().length===0){this.results=[];return}this.searchService.searchProducts(r).subscribe({next:s=>this.results=s,error:s=>console.error("Search error:",s)})})}onSearch(){this.searchSubject.next(this.searchQuery)}selectResult(t){if(t.productVariantId){let i=t.productId,r=t.productVariantId;this.router.navigate(["/product",i,r])}else this.router.navigate(["/product",t.productId]);this.results=[],this.searchQuery=""}static{this.\u0275fac=function(i){return new(i||n)(B(tt),B(et))}}static{this.\u0275cmp=V({type:n,selectors:[["app-navbar-search"]],standalone:!0,features:[$],decls:6,vars:2,consts:[[1,"hidden","md:block","flex-1","max-w-xl","mx-8","relative"],[1,"relative"],["type","text","placeholder","Search products...",1,"w-full","px-4","py-2","rounded-full","border","focus:outline-none","focus:border-primary",3,"ngModelChange","input","ngModel"],[1,"absolute","right-3","top-2"],[1,"fas","fa-search","text-gray-400"],["class","absolute mt-2 w-full bg-white border border-gray-200 rounded-lg shadow-lg z-50",4,"ngIf"],[1,"absolute","mt-2","w-full","bg-white","border","border-gray-200","rounded-lg","shadow-lg","z-50"],["class","px-4 py-2 hover:bg-gray-100 cursor-pointer",3,"click",4,"ngFor","ngForOf"],[1,"px-4","py-2","hover:bg-gray-100","cursor-pointer",3,"click"],[1,"font-medium"],["class","text-sm italic text-gray-500",4,"ngIf"],[1,"text-sm","italic","text-gray-500"]],template:function(i,r){i&1&&(h(0,"div",0)(1,"div",1)(2,"input",2),ki("ngModelChange",function(o){return Pi(r.searchQuery,o)||(r.searchQuery=o),o}),k("input",function(){return r.onSearch()}),u(),h(3,"button",3),E(4,"i",4),u()(),N(5,Os,2,1,"ul",5),u()),i&2&&(v(2),xi("ngModel",r.searchQuery),v(3),C("ngIf",r.results.length>0))},dependencies:[W,me,re,Oe,Qi,Ki,ji],styles:["ul[_ngcontent-%COMP%]{max-height:250px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#d1d5db transparent}"]})}}return n})();var Rs=["dropdownContainer"],Ls=(n,e)=>({"opacity-100 scale-100 pointer-events-auto visible":n,"opacity-0 scale-95 pointer-events-none invisible":e}),zs=()=>({tab:"orders"});function Bs(n,e){if(n&1&&(h(0,"a",25),f(1),u()),n&2){let t=e.$implicit;Tt("href",t.link,Be),v(),le(t.name)}}function qs(n,e){if(n&1){let t=J();ke(0),h(1,"div",26),f(2),u(),h(3,"a",27),k("click",function(){F(t);let r=D();return O(r.showDropdown=!1)}),E(4,"i",28),f(5,"Profile "),u(),h(6,"a",29),k("click",function(){F(t);let r=D();return O(r.showDropdown=!1)}),E(7,"i",30),f(8,"Orders "),u(),h(9,"button",31),k("click",function(){F(t);let r=D();return O(r.logout())}),E(10,"i",32),f(11,"Logout "),u(),Ae()}if(n&2){let t=e.ngIf;v(2),j(" Hello, ",t.name," "),v(4),C("queryParams",Ai(2,zs))}}function Vs(n,e){if(n&1){let t=J();h(0,"a",33),k("click",function(){F(t);let r=D();return O(r.showDropdown=!1)}),E(1,"i",34),f(2,"Login "),u(),h(3,"a",35),k("click",function(){F(t);let r=D();return O(r.showDropdown=!1)}),E(4,"i",36),f(5,"Register "),u()}}function $s(n,e){if(n&1&&(h(0,"span",37),f(1),u()),n&2){let t=e.ngIf;v(),j(" ",t," ")}}function Qs(n,e){if(n&1&&(h(0,"span",37),f(1),u()),n&2){let t=e.ngIf;v(),j(" ",t," ")}}function Ks(n,e){if(n&1&&(h(0,"a",25),f(1),u()),n&2){let t=e.$implicit;Tt("href",t.link,Be),v(),j(" ",t.name," ")}}function js(n,e){if(n&1&&(h(0,"nav",38),N(1,Ks,2,2,"a",11),u()),n&2){let t=D();v(),C("ngForOf",t.menuList)}}var qn=(()=>{class n{constructor(t,i,r,s,o){this.cartService=t,this.wishlistService=i,this.authService=r,this.router=s,this.productApiService=o,this.menuList=[{name:"Home",link:"/"},{name:"Shop",link:"/shop"},{name:"Experience",link:"/experience"},{name:"About Us",link:"/about-us"}],this.cartCount$=this.cartService.cartCount$,this.wishlistCount$=this.wishlistService.wishlistCount$,this.currentUser$=this.authService.currentUser$,this.showDropdown=!1,this.searchQuery="",this.isMobileMenuOpen=!1}clickout(t){this.showDropdown&&this.dropdownContainer&&!this.dropdownContainer.nativeElement.contains(t.target)&&(this.showDropdown=!1)}toggleDropdown(){this.showDropdown=!this.showDropdown}toggleMobileMenu(){this.isMobileMenuOpen=!this.isMobileMenuOpen}logout(){this.showDropdown=!1,this.authService.logout().subscribe({next:t=>{this.authService.setCurrentUser(null),this.router.navigate(["/"]),this.cartService.clearCart(),this.wishlistService.clearWishlist()}})}onSearch(){this.searchQuery.trim()&&(this.productApiService.searchProducts(this.searchQuery.trim()).subscribe({next:t=>{},error:t=>{console.error("Search Error:",t)}}),this.searchQuery="",this.isMobileMenuOpen=!1)}static{this.\u0275fac=function(i){return new(i||n)(B(it),B(en),B(Xi),B(et),B(tt))}}static{this.\u0275cmp=V({type:n,selectors:[["app-header"]],viewQuery:function(i,r){if(i&1&&wi(Rs,5),i&2){let s;Ei(s=Ti())&&(r.dropdownContainer=s.first)}},hostBindings:function(i,r){i&1&&k("click",function(o){return r.clickout(o)},!1,yi)},standalone:!0,features:[$],decls:34,vars:17,consts:[["dropdownContainer",""],["loginLinks",""],["cart",""],[1,"bg-white","shadow-md","fixed","w-full","top-0","z-20"],[1,"container","mx-auto","px-4"],[1,"flex","items-center","justify-between","h-20"],[1,"flex-shrink-0"],[1,"text-2xl","font-bold","text-primary","cursor-pointer",3,"routerLink"],[1,"hidden","md:block","flex-1","max-w-xl","mx-8"],[1,"relative"],[1,"hidden","md:flex","space-x-6"],["class","text-gray-700 hover:text-primary",3,"href",4,"ngFor","ngForOf"],[1,"flex","items-center","space-x-4"],[1,"text-gray-700","hover:text-primary","p-2",3,"click"],[1,"fas","fa-user"],[1,"absolute","right-0","mt-2","w-48","bg-white","rounded-md","shadow-lg","py-1","transition-all","duration-200","ease-in-out","transform","origin-top-right",3,"ngClass"],[4,"ngIf","ngIfElse"],["routerLink","/wishlist",1,"text-gray-700","hover:text-primary","relative"],[1,"fas","fa-heart"],["class","absolute -top-2 -right-2 bg-primary text-white rounded-full w-5 h-5 text-xs flex items-center justify-center",4,"ngIf"],[1,"text-gray-700","hover:text-primary","relative",3,"click"],[1,"fas","fa-shopping-cart"],[1,"md:hidden","text-gray-700",3,"click"],[1,"fas","fa-bars","text-2xl"],["class","absolute top-20 left-0 w-full bg-white shadow-md p-4 flex flex-col space-y-4 md:hidden",4,"ngIf"],[1,"text-gray-700","hover:text-primary",3,"href"],[1,"px-4","py-2","text-sm","text-gray-700","border-b"],["routerLink","/profile",1,"block","px-4","py-2","text-sm","text-gray-700","hover:bg-gray-100",3,"click"],[1,"fas","fa-user-circle","mr-2"],["routerLink","/profile",1,"block","px-4","py-2","text-sm","text-gray-700","hover:bg-gray-100",3,"click","queryParams"],[1,"fas","fa-box","mr-2"],[1,"w-full","text-left","px-4","py-2","text-sm","text-gray-700","hover:bg-gray-100",3,"click"],[1,"fas","fa-sign-out-alt","mr-2"],["routerLink","/login",1,"block","px-4","py-2","text-sm","text-gray-700","hover:bg-gray-100",3,"click"],[1,"fas","fa-sign-in-alt","mr-2"],["routerLink","/register",1,"block","px-4","py-2","text-sm","text-gray-700","hover:bg-gray-100",3,"click"],[1,"fas","fa-user-plus","mr-2"],[1,"absolute","-top-2","-right-2","bg-primary","text-white","rounded-full","w-5","h-5","text-xs","flex","items-center","justify-center"],[1,"absolute","top-20","left-0","w-full","bg-white","shadow-md","p-4","flex","flex-col","space-y-4","md:hidden"]],template:function(i,r){if(i&1){let s=J();h(0,"header",3)(1,"div",4)(2,"div",5)(3,"div",6)(4,"span",7),f(5,"ACU"),u()(),h(6,"div",8)(7,"div",9),E(8,"app-navbar-search"),u()(),h(9,"nav",10),N(10,Bs,2,2,"a",11),u(),h(11,"div",12)(12,"div",9,0)(14,"button",13),k("click",function(){return F(s),O(r.toggleDropdown())}),E(15,"i",14),u(),h(16,"div",15),N(17,qs,12,3,"ng-container",16),H(18,"async"),N(19,Vs,6,0,"ng-template",null,1,Di),u()(),h(21,"button",17),E(22,"i",18),N(23,$s,2,1,"span",19),H(24,"async"),u(),h(25,"button",20),k("click",function(){F(s);let a=Ct(33);return O(a.open())}),E(26,"i",21),N(27,Qs,2,1,"span",19),H(28,"async"),u()(),h(29,"button",22),k("click",function(){return F(s),O(r.toggleMobileMenu())}),E(30,"i",23),u()()(),N(31,js,2,1,"nav",24),u(),E(32,"app-cart",null,2)}if(i&2){let s=Ct(20);v(4),C("routerLink","/"),v(6),C("ngForOf",r.menuList),v(6),C("ngClass",Ni(14,Ls,r.showDropdown,!r.showDropdown)),v(),C("ngIf",ce(18,8,r.currentUser$))("ngIfElse",s),v(6),C("ngIf",ce(24,10,r.wishlistCount$)),v(4),C("ngIf",ce(28,12,r.cartCount$)),v(4),C("ngIf",r.isMobileMenuOpen)}},dependencies:[W,Je,me,re,De,Fe,Ie,zn,Oe,Bn]})}}return n})();var Vn=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=V({type:n,selectors:[["app-footer"]],standalone:!0,features:[$],decls:78,vars:0,consts:[[1,"bg-gray-800","text-white","pt-16","pb-8"],[1,"container"],[1,"grid","grid-cols-1","md:grid-cols-4","gap-8","mb-8"],[1,"text-xl","font-bold","mb-4"],[1,"space-y-2"],["routerLink","/about-us",1,"hover:text-primary"],["routerLink","/track-order",1,"hover:text-primary"],["routerLink","/contact",1,"hover:text-primary"],["routerLink","/faq",1,"hover:text-primary"],["routerLink","/terms-conditions",1,"hover:text-primary"],["routerLink","/privacy-policy",1,"hover:text-primary"],["routerLink","/return-policy",1,"hover:text-primary"],["routerLink","/shipping-policy",1,"hover:text-primary"],["routerLink","/collections/personalized-dolls",1,"hover:text-primary"],["routerLink","/collections/home-decor",1,"hover:text-primary"],["routerLink","/collections/ahirus-stationery",1,"hover:text-primary"],["routerLink","/collections/invites-sketches",1,"hover:text-primary"],[1,"flex","space-x-4","mb-4"],["href","https://www.facebook.com/AshwiniAbhangDoodles?mibextid=2JQ9oc","target","_blank","rel","noopener noreferrer",1,"hover:text-primary"],[1,"fab","fa-facebook-f"],["href","https://www.instagram.com/ashwiniabhang/?igshid=ZDdkNTZiNTM%3D","target","_blank","rel","noopener noreferrer",1,"hover:text-primary"],[1,"fab","fa-instagram"],["href","https://www.linkedin.com/company/aadoodles/","target","_blank","rel","noopener noreferrer",1,"hover:text-primary"],[1,"fab","fa-linkedin-in"],["href","https://x.com/AshwiniAbhang?t=vptlpKJhXNQ9rvEJiiwtpw&s=09","target","_blank","rel","noopener noreferrer",1,"hover:text-primary"],[1,"fab","fa-twitter"],["href","https://www.franklywearing.com/creator/acu-aadoodles-ashwiniabhang","target","_blank","rel","noopener noreferrer",1,"hover:text-primary"],[1,"fa-solid","fa-shirt"],[1,"text-sm"],[1,"border-t","border-gray-700","pt-8","text-center","text-sm"],[1,"recaptcha-legal-text"],["href","https://policies.google.com/privacy","target","_blank"],["href","https://policies.google.com/terms","target","_blank"]],template:function(i,r){i&1&&(h(0,"footer",0)(1,"div",1)(2,"div",2)(3,"div")(4,"h3",3),f(5,"Quick Links"),u(),h(6,"ul",4)(7,"li")(8,"a",5),f(9,"About Us"),u()(),h(10,"li")(11,"a",6),f(12,"Track Order"),u()(),h(13,"li")(14,"a",7),f(15,"Contact Us"),u()(),h(16,"li")(17,"a",8),f(18,"FAQs"),u()()()(),h(19,"div")(20,"h3",3),f(21,"Customer Service"),u(),h(22,"ul",4)(23,"li")(24,"a",9),f(25,"Terms & Conditions"),u()(),h(26,"li")(27,"a",10),f(28,"Privacy Policy"),u()(),h(29,"li")(30,"a",11),f(31,"Return Policy"),u()(),h(32,"li")(33,"a",12),f(34,"Shipping Policy"),u()()()(),h(35,"div")(36,"h3",3),f(37,"Categories"),u(),h(38,"ul",4)(39,"li")(40,"a",13),f(41,"Personalized Dolls"),u()(),h(42,"li")(43,"a",14),f(44,"Home Decor"),u()(),h(45,"li")(46,"a",15),f(47,"Ahiru's Stationery"),u()(),h(48,"li")(49,"a",16),f(50,"Invites & Sketches"),u()()()(),h(51,"div")(52,"h3",3),f(53,"Connect With Us"),u(),h(54,"div",17)(55,"a",18),E(56,"i",19),u(),h(57,"a",20),E(58,"i",21),u(),h(59,"a",22),E(60,"i",23),u(),h(61,"a",24),E(62,"i",25),u(),h(63,"a",26),E(64,"i",27),u()(),h(65,"p",28),f(66,"Follow us on social media for updates and inspiration"),u()()(),h(67,"div",29)(68,"p"),f(69," Ahiru's Creative Universe. All rights reserved."),u(),h(70,"div",30),f(71," This site is protected by reCAPTCHA and the Google "),h(72,"a",31),f(73,"Privacy Policy"),u(),f(74," and "),h(75,"a",32),f(76,"Terms of Service"),u(),f(77," apply. "),u()()()())},dependencies:[W,Fe,Ie],styles:[".recaptcha-legal-text[_ngcontent-%COMP%]{font-size:10px;color:#999;text-align:center;margin-top:10px}"]})}}return n})();function Us(n,e){if(n&1){let t=J();h(0,"button",1),k("click",function(){F(t);let r=D();return O(r.scrollToTop())}),E(1,"i",2),u()}}var $n=(()=>{class n{constructor(t){this.document=t,this.showButton=!1}onWindowScroll(){window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop>300?this.showButton=!0:this.showButton&&(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop<300)&&(this.showButton=!1)}scrollToTop(){window.scrollTo({top:0,behavior:"smooth"})}static{this.\u0275fac=function(i){return new(i||n)(B(Ze))}}static{this.\u0275cmp=V({type:n,selectors:[["app-scroll-to-top"]],hostBindings:function(i,r){i&1&&k("scroll",function(){return r.onWindowScroll()},!1,gi)},standalone:!0,features:[$],decls:1,vars:1,consts:[["class","fixed bottom-8 right-8 bg-primary text-white w-12 h-12 rounded-full shadow-lg hover:bg-primary-dark transition-all duration-300 z-50 flex items-center justify-center hover-lift animate-fade-in","aria-label","Scroll to top",3,"click",4,"ngIf"],["aria-label","Scroll to top",1,"fixed","bottom-8","right-8","bg-primary","text-white","w-12","h-12","rounded-full","shadow-lg","hover:bg-primary-dark","transition-all","duration-300","z-50","flex","items-center","justify-center","hover-lift","animate-fade-in",3,"click"],[1,"fas","fa-arrow-up"]],template:function(i,r){i&1&&N(0,Us,2,0,"button",0),i&2&&C("ngIf",r.showButton)},dependencies:[W,re],styles:["[_nghost-%COMP%]{display:block}"]})}}return n})();var Hs=(n,e,t,i)=>({"bg-green-100 border-green-200":n,"bg-red-100 border-red-200":e,"bg-blue-100 border-blue-200":t,"bg-yellow-100 border-yellow-200":i}),Ws=(n,e,t,i)=>({"fa-check-circle text-green-600":n,"fa-exclamation-circle text-red-600":e,"fa-info-circle text-blue-600":t,"fa-exclamation-triangle text-yellow-600":i}),Qn=(n,e,t,i)=>({"text-green-800":n,"text-red-800":e,"text-blue-800":t,"text-yellow-800":i}),Gs=(n,e,t,i)=>({"text-green-900":n,"text-red-900":e,"text-blue-900":t,"text-yellow-900":i});function Ys(n,e){if(n&1){let t=J();h(0,"div",2)(1,"div",3),E(2,"i",4),u(),h(3,"div",5)(4,"h4",6),f(5),u(),h(6,"p",7),f(7),u(
1)(),h(8,"button",8),k("click",function(){let r=F(t).$implicit,s=D();return O(s.remove(r.id))}),E(9,"i",9),u()()}if(n&2){let t=e.$implicit;C("@toastAnimation",void 0)("ngClass",Me(8,Hs,t.type==="success",t.type==="error",t.type==="info",t.type==="warning")),v(2),C("ngClass",Me(13,Ws,t.type==="success",t.type==="error",t.type==="info",t.type==="warning")),v(2),C("ngClass",Me(18,Qn,t.type==="success",t.type==="error",t.type==="info",t.type==="warning")),v(),j(" ",t.type," "),v(),C("ngClass",Me(23,Gs,t.type==="success",t.type==="error",t.type==="info",t.type==="warning")),v(),le(t.message),v(),C("ngClass",Me(28,Qn,t.type==="success",t.type==="error",t.type==="info",t.type==="warning"))}}var Kn=(()=>{class n{constructor(t){this.notificationService=t,this.notifications=[]}ngOnInit(){this.notificationService.notifications$.subscribe(t=>{this.notifications=t})}remove(t){this.notificationService.remove(t)}static{this.\u0275fac=function(i){return new(i||n)(B(Yi))}}static{this.\u0275cmp=V({type:n,selectors:[["app-notification"]],standalone:!0,features:[$],decls:2,vars:1,consts:[[1,"fixed","top-24","right-5","z-50","flex","flex-col","gap-3","pointer-events-none"],["class","pointer-events-auto min-w-[300px] max-w-sm w-full shadow-lg rounded-lg border overflow-hidden flex transform transition-all duration-300 hover:shadow-xl hover:scale-105",3,"ngClass",4,"ngFor","ngForOf"],[1,"pointer-events-auto","min-w-[300px]","max-w-sm","w-full","shadow-lg","rounded-lg","border","overflow-hidden","flex","transform","transition-all","duration-300","hover:shadow-xl","hover:scale-105",3,"ngClass"],[1,"flex","items-center","justify-center","w-12","bg-white","bg-opacity-25"],[1,"fas","text-xl",3,"ngClass"],[1,"flex-1","p-3"],[1,"font-bold","text-sm","uppercase","tracking-wide","mb-1",3,"ngClass"],[1,"text-sm","leading-snug","font-medium",3,"ngClass"],[1,"px-3","flex","items-center","justify-center","transition-colors","bg-transparent","hover:bg-black","hover:bg-opacity-5",3,"click","ngClass"],[1,"fas","fa-times"]],template:function(i,r){i&1&&(h(0,"div",0),N(1,Ys,10,33,"div",1),u()),i&2&&(v(),C("ngForOf",r.notifications))},dependencies:[W,Je,me],data:{animation:[nn("toastAnimation",[Pt(":enter",[_e({transform:"translateX(100%)",opacity:0}),xt("300ms ease-out",_e({transform:"translateX(0)",opacity:1}))]),Pt(":leave",[xt("200ms ease-in",_e({transform:"translateX(100%)",opacity:0}))])])]}})}}return n})();function Xs(n,e){n&1&&(h(0,"div",1)(1,"div",2)(2,"div",3),E(3,"div",4)(4,"div",4)(5,"div",4),u(),h(6,"p",5),f(7,"Loading..."),u()()())}var jn=(()=>{class n{constructor(t){this.loadingService=t}static{this.\u0275fac=function(i){return new(i||n)(B(St))}}static{this.\u0275cmp=V({type:n,selectors:[["app-loader"]],standalone:!0,features:[$],decls:2,vars:3,consts:[["class","loader-overlay fade-in",4,"ngIf"],[1,"loader-overlay","fade-in"],[1,"loader-container"],[1,"artist-loader"],[1,"brush-stroke"],[1,"loading-text"]],template:function(i,r){i&1&&(N(0,Xs,8,0,"div",0),H(1,"async")),i&2&&C("ngIf",ce(1,1,r.loadingService.loading$))},dependencies:[W,re,De],styles:[".loader-overlay[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:#ffffffb3;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);z-index:9999;display:flex;justify-content:center;align-items:center;flex-direction:column}.loader-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:1.5rem}.artist-loader[_ngcontent-%COMP%]{position:relative;width:60px;height:60px}.brush-stroke[_ngcontent-%COMP%]{position:absolute;width:100%;height:100%;border-radius:50%;border:3px solid transparent;border-top-color:#b45050;animation:_ngcontent-%COMP%_spin 1.5s linear infinite}.brush-stroke[_ngcontent-%COMP%]:nth-child(2){width:80%;height:80%;top:10%;left:10%;border-top-color:#ead2c0;animation:_ngcontent-%COMP%_spin 2s linear infinite reverse}.brush-stroke[_ngcontent-%COMP%]:nth-child(3){width:60%;height:60%;top:20%;left:20%;border-top-color:#b45050;animation:_ngcontent-%COMP%_spin 2.5s linear infinite;opacity:.6}.loading-text[_ngcontent-%COMP%]{font-family:Outfit,sans-serif;color:#555;font-size:1.1rem;letter-spacing:1px;font-weight:500;animation:_ngcontent-%COMP%_pulse 2s ease-in-out infinite}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes _ngcontent-%COMP%_pulse{0%,to{opacity:.6}50%{opacity:1}}.fade-in[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_fadeIn .3s ease-out forwards}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0}
1to{opacity:1}}"]})}}return n})();var Un=(()=>{class n{constructor(){this.title="EcoStore"}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=V({type:n,selectors:[["app-root"]],standalone:!0,features:[$],decls:7,vars:0,consts:[[1,"min-h-screen"]],template:function(i,r){i&1&&(E(0,"app-loader")(1,"app-notification")(2,"app-header"),h(3,"main",0),E(4,"router-outlet"),u(),E(5,"app-scroll-to-top")(6,"app-footer"))},dependencies:[Bi,qn,Vn,Hi,Gi,$n,Kn,jn],encapsulation:2})}}return n})();Re.production&&(window.console.log=()=>{},window.console.debug=()=>{},window.console.info=()=>{});zi(Un,Ln).catch(n=>console.error(n));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.