-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain-TUKRPVG2.js
1 lines (1 loc) · 116 KB
/
main-TUKRPVG2.js
1
import{$ as dt,A as $t,Aa as R,B as ze,Ba as _i,C as I,Ca as vi,D as Ve,Da as bi,E as Q,Ea as Ci,F as Gt,Fa as Jt,G as ne,Ga as en,H as ie,Ha as Ei,I as zt,Ia as Si,J as ni,Ja as wi,K as qt,Ka as Ke,L as ii,La as Mi,M as ri,Ma as Di,N as Ht,Na as Ai,O as qe,Oa as Ti,P as Wt,Pa as Pi,Q as Kt,Qa as tn,R as si,Ra as Oi,S as Qt,Sa as Vi,T as oi,U as Yt,Ua as Fi,V as M,Va as Ne,W as D,X as ai,Y as He,Z as ut,_ as de,a as U,aa as li,b as Ae,ba as ci,c as Wn,ca as ui,d as Kn,da as H,e as Qn,ea as di,f as ct,fa as Zt,g as Yn,ga as Fe,h as te,ha as ke,i as Zn,ia as Ie,j as jt,ja as m,k as Xn,ka as _,l as Bt,la as P,m as Ut,ma as re,n as Te,na as hi,o as Pe,oa as A,p as ye,pa as se,q as Jn,qa as fi,r as ei,ra as pi,s as $e,sa as Xt,t as ti,ta as mi,u as C,ua as gi,v as Ge,va as yi,w as ce,wa as w,x as Oe,xa as ve,y as ue,ya as oe,z as _e,za as We}from"./chunk-QYCHM37Z.js";var b=function(i){return i[i.State=0]="State",i[i.Transition=1]="Transition",i[i.Sequence=2]="Sequence",i[i.Group=3]="Group",i[i.Animate=4]="Animate",i[i.Keyframes=5]="Keyframes",i[i.Style=6]="Style",i[i.Trigger=7]="Trigger",i[i.Reference=8]="Reference",i[i.AnimateChild=9]="AnimateChild",i[i.AnimateRef=10]="AnimateRef",i[i.Query=11]="Query",i[i.Stagger=12]="Stagger",i}(b||{}),J="*";function ki(i,e=null){return{type:b.Sequence,steps:i,options:e}}function nn(i){return{type:b.Style,styles:i,offset:null}}var he=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=>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(n=>n()),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,n=0,r=0,s=this.players.length;s==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++t==s&&this._onFinish()}),o.onDestroy(()=>{++n==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(n=>{let r=n.totalTime?Math.min(1,t/n.totalTime):1;n.setPosition(r)})}getPosition(){let e=this.players.reduce((t,n)=>t===null||n.totalTime>t.totalTime?n: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(n=>n()),t.length=0}},ht="!";function Ii(i){return new C(3e3,!1)}function Zr(){return new C(3100,!1)}function Xr(){return new C(3101,!1)}function Jr(i){return new C(3001,!1)}function es(i){return new C(3003,!1)}function ts(i){return new C(3004,!1)}function ns(i,e){return new C(3005,!1)}function is(){return new C(3006,!1)}function rs(){return new C(3007,!1)}function ss(i,e){return new C(3008,!1)}function os(i){return new C(3002,!1)}function as(i,e,t,n,r){return new C(3010,!1)}function ls(){return new C(3011,!1)}function cs(){return new C(3012,!1)}function us(){return new C(3200,!1)}function ds(){return new C(3202,!1)}function hs(){return new C(3013,!1)}function fs(i){return new C(3014,!1)}function ps(i){return new C(3015,!1)}function ms(i){return new C(3016,!1)}function gs(i,e){return new C(3404,!1)}function ys(i){return new C(3502,!1)}function _s(i){return new C(3503,!1)}function vs(){return new C(3300,!1)}function bs(i){return new C(3504,!1)}function Cs(i){return new C(3301,!1)}function Es(i,e){return new C(3302,!1)}function Ss(i){return new C(3303,!1)}function ws(i,e){return new C(3400,!1)}function Ms(i){return new C(3401,!1)}function Ds(i){return new C(3402,!1)}function As(i,e){return new C(3505,!1)}function fe(i){switch(i.length){case 0:return new he;case 1:return i[0];default:return new Qe(i)}}function Ki(i,e,t=new Map,n=new Map){let r=[],s=[],o=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),u=c==o,d=u&&a||new Map;l.forEach((E,v)=>{let f=v,y=E;if(v!=="offset")switch(f=i.normalizePropertyName(f,r),y){case ht:y=t.get(v);break;case J:y=n.get(v);break;default:y=i.normalizeStyleValue(v,f,y,r);break}d.set(f,y)}),u||s.push(d),a=d,o=c}),r.length)throw ys(r);return s}function Dn(i,e,t,n){switch(e){case"start":i.onStart(()=>n(t&&rn(t,"start",i)));break;case"done":i.onDone(()=>n(t&&rn(t,"done",i)));break;case"destroy":i.onDestroy(()=>n(t&&rn(t,"destroy",i)));break}}function rn(i,e,t){let n=t.totalTime,r=!!t.disabled,s=An(i.element,i.triggerName,i.fromState,i.toState,e||i.phaseName,n??i.totalTime,r),o=i._data;return o!=null&&(s._data=o),s}function An(i,e,t,n,r="",s=0,o){return{element:i,triggerName:e,fromState:t,toState:n,phaseName:r,totalTime:s,disabled:!!o}}function z(i,e,t){let n=i.get(e);return n||i.set(e,n=t),n}function Ni(i){let e=i.indexOf(":"),t=i.substring(1,e),n=i.slice(e+1);return[t,n]}var Ts=typeof document>"u"?null:document.documentElement;function Tn(i){let e=i.parentNode||i.host||null;return e===Ts?null:e}function Ps(i){return i.substring(1,6)=="ebkit"}var be=null,xi=!1;function Os(i){be||(be=Vs()||{},xi=be.style?"WebkitAppearance"in be.style:!1);let e=!0;return be.style&&!Ps(i)&&(e=i in be.style,!e&&xi&&(e="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in be.style)),e}function Vs(){return typeof document<"u"?document.body:null}function Qi(i,e){for(;e;){if(e===i)return!0;e=Tn(e)}return!1}function Yi(i,e,t){if(t)return Array.from(i.querySelectorAll(e));let n=i.querySelector(e);return n?[n]:[]}var Pn=(()=>{let e=class e{validateStyleProperty(n){return Os(n)}matchesElement(n,r){return!1}containsElement(n,r){return Qi(n,r)}getParentElement(n){return Tn(n)}query(n,r,s){return Yi(n,r,s)}computeStyle(n,r,s){return s||""}animate(n,r,s,o,a,l=[],c){return new he(s,o)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=ce({token:e,factory:e.\u0275fac});let i=e;return i})(),kn=class kn{};kn.NOOP=new Pn;var Se=kn,we=class{};var Fs=1e3,Zi="{{",ks="}}",Xi="ng-enter",un="ng-leave",ft="ng-trigger",_t=".ng-trigger",Ri="ng-animating",dn=".ng-animating";function ae(i){if(typeof i=="number")return i;let e=i.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:hn(parseFloat(e[1]),e[2])}function hn(i,e){switch(e){case"s":return i*Fs;default:return i}}function vt(i,e,t){return i.hasOwnProperty("duration")?i:Is(i,e,t)}function Is(i,e,t){let n=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,r,s=0,o="";if(typeof i=="string"){let a=i.match(n);if(a===null)return e.push(Ii(i)),{duration:0,delay:0,easing:""};r=hn(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(s=hn(parseFloat(l),a[4]));let c=a[5];c&&(o=c)}else r=i;if(!t){let a=!1,l=e.length;r<0&&(e.push(Zr()),a=!0),s<0&&(e.push(Xr()),a=!0),a&&e.splice(l,0,Ii(i))}return{duration:r,delay:s,easing:o}}function Ns(i){return i.length?i[0]instanceof Map?i:i.map(e=>new Map(Object.entries(e))):[]}function ee(i,e,t){e.forEach((n,r)=>{let s=On(r);t&&!t.has(r)&&t.set(r,i.style[s]),i.style[s]=n})}function Ee(i,e){e.forEach((t,n)=>{let r=On(n);i.style[r]=""})}function Ye(i){return Array.isArray(i)?i.length==1?i[0]:ki(i):i}function xs(i,e,t){let n=e.params||{},r=Ji(i);r.length&&r.forEach(s=>{n.hasOwnProperty(s)||t.push(Jr(s))})}var fn=new RegExp(`${Zi}\\s*(.+?)\\s*${ks}`,"g");function Ji(i){let e=[];if(typeof i=="string"){let t;for(;t=fn.exec(i);)e.push(t[1]);fn.lastIndex=0}return e}function Xe(i,e,t){let n=`${i}`,r=n.replace(fn,(s,o)=>{let a=e[o];return a==null&&(t.push(es(o)),a=""),a.toString()});return r==n?i:r}var Rs=/-+([a-z0-9])/g;function On(i){return i.replace(Rs,(...e)=>e[1].toUpperCase())}function Ls(i,e){return i===0||e===0}function js(i,e,t){if(t.size&&e.length){let n=e[0],r=[];if(t.forEach((s,o)=>{n.has(o)||r.push(o),n.set(o,s)}),r.length)for(let s=1;s<e.length;s++){let o=e[s];r.forEach(a=>o.set(a,Vn(i,a)))}}return e}function G(i,e,t){switch(e.type){case b.Trigger:return i.visitTrigger(e,t);case b.State:return i.visitState(e,t);case b.Transition:return i.visitTransition(e,t);case b.Sequence:return i.visitSequence(e,t);case b.Group:return i.visitGroup(e,t);case b.Animate:return i.visitAnimate(e,t);case b.Keyframes:return i.visitKeyframes(e,t);case b.Style:return i.visitStyle(e,t);case b.Reference:return i.visitReference(e,t);case b.AnimateChild:return i.visitAnimateChild(e,t);case b.AnimateRef:return i.visitAnimateRef(e,t);case b.Query:return i.visitQuery(e,t);case b.Stagger:return i.visitStagger(e,t);default:throw ts(e.type)}}function Vn(i,e){return window.getComputedStyle(i)[e]}var Bs=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"]),bt=class extends we{normalizePropertyName(e,t){return On(e)}normalizeStyleValue(e,t,n,r){let s="",o=n.toString().trim();if(Bs.has(t)&&n!==0&&n!=="0")if(typeof n=="number")s="px";else{let a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&r.push(ns(e,n))}return o+s}};var Ct="*";function Us(i,e){let t=[];return typeof i=="string"?i.split(/\s*,\s*/).forEach(n=>$s(n,t,e)):t.push(i),t}function $s(i,e,t){if(i[0]==":"){let l=Gs(i,t);if(typeof l=="function"){e.push(l);return}i=l}let n=i.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return t.push(ps(i)),e;let r=n[1],s=n[2],o=n[3];e.push(Li(r,o));let a=r==Ct&&o==Ct;s[0]=="<"&&!a&&e.push(Li(o,r))}function Gs(i,e){switch(i){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,n)=>parseFloat(n)>parseFloat(t);case":decrement":return(t,n)=>parseFloat(n)<parseFloat(t);default:return e.push(ms(i)),"* => *"}}var pt=new Set(["true","1"]),mt=new Set(["false","0"]);function Li(i,e){let t=pt.has(i)||mt.has(i),n=pt.has(e)||mt.has(e);return(r,s)=>{let o=i==Ct||i==r,a=e==Ct||e==s;return!o&&t&&typeof r=="boolean"&&(o=r?pt.has(i):mt.has(i)),!a&&n&&typeof s=="boolean"&&(a=s?pt.has(e):mt.has(e)),o&&a}}var er=":self",zs=new RegExp(`s*${er}s*,?`,"g");function tr(i,e,t,n){return new pn(i).build(e,t,n)}var ji="",pn=class{constructor(e){this._driver=e}build(e,t,n){let r=new mn(t);return this._resetContextStyleTimingState(r),G(this,Ye(e),r)}_resetContextStyleTimingState(e){e.currentQuerySelector=ji,e.collectedStyles=new Map,e.collectedStyles.set(ji,new Map),e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,r=t.depCount=0,s=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(is()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==b.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,s.push(this.visitState(l,t))}),l.name=c}else if(a.type==b.Transition){let l=this.visitTransition(a,t);n+=l.queryCount,r+=l.depCount,o.push(l)}else t.errors.push(rs())}),{type:b.Trigger,name:e.name,states:s,transitions:o,queryCount:n,depCount:r,options:null}}visitState(e,t){let n=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(n.containsDynamicStyles){let s=new Set,o=r||{};n.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{Ji(l).forEach(c=>{o.hasOwnProperty(c)||s.add(c)})})}),s.size&&t.errors.push(ss(e.name,[...s.values()]))}return{type:b.State,name:e.name,style:n,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let n=G(this,Ye(e.animation),t),r=Us(e.expr,t.errors);return{type:b.Transition,matchers:r,animation:n,queryCount:t.queryCount,depCount:t.depCount,options:Ce(e.options)}}visitSequence(e,t){return{type:b.Sequence,steps:e.steps.map(n=>G(this,n,t)),options:Ce(e.options)}}visitGroup(e,t){let n=t.currentTime,r=0,s=e.steps.map(o=>{t.currentTime=n;let a=G(this,o,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:b.Group,steps:s,options:Ce(e.options)}}visitAnimate(e,t){let n=Ks(e.timings,t.errors);t.currentAnimateTimings=n;let r,s=e.styles?e.styles:nn({});if(s.type==b.Keyframes)r=this.visitKeyframes(s,t);else{let o=e.styles,a=!1;if(!o){a=!0;let c={};n.easing&&(c.easing=n.easing),o=nn(c)}t.currentTime+=n.duration+n.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,r=l}return t.currentAnimateTimings=null,{type:b.Animate,timings:n,style:r,options:null}}visitStyle(e,t){let n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){let n=[],r=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of r)typeof a=="string"?a===J?n.push(a):t.errors.push(os(a)):n.push(new Map(Object.entries(a)));let s=!1,o=null;return n.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(Zi)>=0){s=!0;break}}}),{type:b.Style,styles:n,easing:o,offset:e.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(e,t){let n=t.currentAnimateTimings,r=t.currentTime,s=t.currentTime;n&&s>0&&(s-=n.duration+n.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let c=t.collectedStyles.get(t.currentQuerySelector),u=c.get(l),d=!0;u&&(s!=r&&s>=u.startTime&&r<=u.endTime&&(t.errors.push(as(l,u.startTime,u.endTime,s,r)),d=!1),s=u.startTime),d&&c.set(l,{startTime:s,endTime:r}),t.options&&xs(a,t.options,t.errors)})})}visitKeyframes(e,t){let n={type:b.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(ls()),n;let r=1,s=0,o=[],a=!1,l=!1,c=0,u=e.steps.map(V=>{let F=this._makeStyleAst(V,t),L=F.offset!=null?F.offset:Ws(F.styles),N=0;return L!=null&&(s++,N=F.offset=L),l=l||N<0||N>1,a=a||N<c,c=N,o.push(N),F});l&&t.errors.push(cs()),a&&t.errors.push(us());let d=e.steps.length,E=0;s>0&&s<d?t.errors.push(ds()):s==0&&(E=r/(d-1));let v=d-1,f=t.currentTime,y=t.currentAnimateTimings,T=y.duration;return u.forEach((V,F)=>{let L=E>0?F==v?1:E*F:o[F],N=L*T;t.currentTime=f+y.delay+N,y.duration=N,this._validateStyleAst(V,t),V.offset=L,n.styles.push(V)}),n}visitReference(e,t){return{type:b.Reference,animation:G(this,Ye(e.animation),t),options:Ce(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:b.AnimateChild,options:Ce(e.options)}}visitAnimateRef(e,t){return{type:b.AnimateRef,animation:this.visitReference(e.animation,t),options:Ce(e.options)}}visitQuery(e,t){let n=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;let[s,o]=qs(e.selector);t.currentQuerySelector=n.length?n+" "+s:s,z(t.collectedStyles,t.currentQuerySelector,new Map);let a=G(this,Ye(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:b.Query,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:Ce(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(hs());let n=e.timings==="full"?{duration:0,delay:0,easing:"full"}:vt(e.timings,t.errors,!0);return{type:b.Stagger,animation:G(this,Ye(e.animation),t),timings:n,options:null}}};function qs(i){let e=!!i.split(/\s*,\s*/).find(t=>t==er);return e&&(i=i.replace(zs,"")),i=i.replace(/@\*/g,_t).replace(/@\w+/g,t=>_t+"-"+t.slice(1)).replace(/:animating/g,dn),[i,e]}function Hs(i){return i?U({},i):null}var mn=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 Ws(i){if(typeof i=="string")return null;let e=null;if(Array.isArray(i))i.forEach(t=>{if(t instanceof Map&&t.has("offset")){let n=t;e=parseFloat(n.get("offset")),n.delete("offset")}});else if(i instanceof Map&&i.has("offset")){let t=i;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function Ks(i,e){if(i.hasOwnProperty("duration"))return i;if(typeof i=="number"){let s=vt(i,e).duration;return sn(s,0,"")}let t=i;if(t.split(/\s+/).some(s=>s.charAt(0)=="{"&&s.charAt(1)=="{")){let s=sn(0,0,"");return s.dynamic=!0,s.strValue=t,s}let r=vt(t,e);return sn(r.duration,r.delay,r.easing)}function Ce(i){return i?(i=U({},i),i.params&&(i.params=Hs(i.params))):i={},i}function sn(i,e,t){return{duration:i,delay:e,easing:t}}function Fn(i,e,t,n,r,s,o=null,a=!1){return{type:1,element:i,keyframes:e,preStyleProps:t,postStyleProps:n,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}var Je=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},Qs=1,Ys=":enter",Zs=new RegExp(Ys,"g"),Xs=":leave",Js=new RegExp(Xs,"g");function nr(i,e,t,n,r,s=new Map,o=new Map,a,l,c=[]){return new gn().buildKeyframes(i,e,t,n,r,s,o,a,l,c)}var gn=class{buildKeyframes(e,t,n,r,s,o,a,l,c,u=[]){c=c||new Je;let d=new yn(e,t,c,r,s,u,[]);d.options=l;let E=l.delay?ae(l.delay):0;d.currentTimeline.delayNextStep(E),d.currentTimeline.setStyles([o],null,d.errors,l),G(this,n,d);let v=d.timelines.filter(f=>f.containsAnimation());if(v.length&&a.size){let f;for(let y=v.length-1;y>=0;y--){let T=v[y];if(T.element===t){f=T;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,d.errors,l)}return v.length?v.map(f=>f.buildKeyframes()):[Fn(t,[],[],[],0,E,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let n=t.subInstructions.get(t.element);if(n){let r=t.createSubContext(e.options),s=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);s!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){let n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,n),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,n){for(let r of e){let s=r?.delay;if(s){let o=typeof s=="number"?s:ae(Xe(s,r?.params??{},t.errors));n.delayNextStep(o)}}}_visitSubInstructions(e,t,n){let s=t.currentTimeline.currentTime,o=n.duration!=null?ae(n.duration):null,a=n.delay!=null?ae(n.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),G(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let n=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==b.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Et);let o=ae(s.delay);r.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>G(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let n=[],r=t.currentTimeline.currentTime,s=e.options&&e.options.delay?ae(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);s&&a.delayNextStep(s),G(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),n.push(a.currentTimeline)}),n.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(r),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let n=e.strValue,r=t.params?Xe(n,t.params,t.errors):n;return vt(r,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let n=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),r.snapshotCurrentStyles());let s=e.style;s.type==b.Keyframes?this.visitKeyframes(s,t):(t.incrementTime(n.duration),this.visitStyle(s,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let n=t.currentTimeline,r=t.currentAnimateTimings;!r&&n.hasCurrentStyleProperties()&&n.forwardFrame();let s=r&&r.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(s):n.setStyles(e.styles,s,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let n=t.currentAnimateTimings,r=t.currentTimeline.duration,s=n.duration,a=t.createSubContext().currentTimeline;a.easing=n.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 n=t.currentTimeline.currentTime,r=e.options||{},s=r.delay?ae(r.delay):0;s&&(t.previousNode.type===b.Style||n==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Et);let o=n,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,u)=>{t.currentQueryIndex=u;let d=t.createSubContext(e.options,c);s&&d.delayNextStep(s),c===t.element&&(l=d.currentTimeline),G(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe();let E=d.currentTimeline.currentTime;o=Math.max(o,E)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let n=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=n.currentStaggerTime;break}let u=t.currentTimeline;l&&u.delayNextStep(l);let d=u.currentTime;G(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=r.currentTime-d+(r.startTime-n.currentTimeline.startTime)}},Et={},yn=class i{constructor(e,t,n,r,s,o,a,l){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Et,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new St(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let n=e,r=this.options;n.duration!=null&&(r.duration=ae(n.duration)),n.delay!=null&&(r.delay=ae(n.delay));let s=n.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=Xe(s[a],o,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let n=e.params={};Object.keys(t).forEach(r=>{n[r]=t[r]})}}return e}createSubContext(e=null,t,n){let r=t||this.element,s=new i(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||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=Et,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){let r={duration:t??e.duration,delay:this.currentTimeline.currentTime+(n??0)+e.delay,easing:""},s=new _n(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,n,r,s,o){let a=[];if(r&&a.push(this.element),e.length>0){e=e.replace(Zs,"."+this._enterClassName),e=e.replace(Js,"."+this._leaveClassName);let l=n!=1,c=this._driver.query(this.element,e,l);n!==0&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),a.push(...c)}return!s&&a.length==0&&o.push(fs(t)),a}},St=class i{constructor(e,t,n,r){this._driver=e,this.element=t,this.startTime=n,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 i(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+=Qs,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,n]of this._globalTimelineStyles)this._backFill.set(t,n||J),this._currentKeyframe.set(t,J);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,r){t&&this._previousKeyframe.set("easing",t);let s=r&&r.params||{},o=eo(e,this._globalTimelineStyles);for(let[a,l]of o){let c=Xe(l,s,n);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??J),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,n)=>{let r=this._styleSummary.get(n);(!r||t.time>r.time)&&this._updateStyle(n,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,n=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((u,d)=>{u===ht?e.add(d):u===J&&t.add(d)}),n||c.set("offset",l/this.duration),r.push(c)});let s=[...e.values()],o=[...t.values()];if(n){let a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return Fn(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}},_n=class extends St{constructor(e,t,n,r,s,o,a=!1){super(e,t,o.delay),this.keyframes=n,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:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){let s=[],o=n+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",Bi(a)),s.push(c);let u=e.length-1;for(let d=1;d<=u;d++){let E=new Map(e[d]),v=E.get("offset"),f=t+v*n;E.set("offset",Bi(f/o)),s.push(E)}n=o,t=0,r="",e=s}return Fn(this.element,e,this.preStyleProps,this.postStyleProps,n,t,r,!0)}};function Bi(i,e=3){let t=Math.pow(10,e-1);return Math.round(i*t)/t}function eo(i,e){let t=new Map,n;return i.forEach(r=>{if(r==="*"){n??=e.keys();for(let s of n)t.set(s,J)}else for(let[s,o]of r)t.set(s,o)}),t}function Ui(i,e,t,n,r,s,o,a,l,c,u,d,E){return{type:0,element:i,triggerName:e,isRemovalTransition:r,fromState:t,fromStyles:s,toState:n,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:E}}var on={},wt=class{constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,r){return to(this.ast.matchers,e,t,n,r)}buildStyles(e,t,n){let r=this._stateStyles.get("*");return e!==void 0&&(r=this._stateStyles.get(e?.toString())||r),r?r.buildStyles(t,n):new Map}build(e,t,n,r,s,o,a,l,c,u){let d=[],E=this.ast.options&&this.ast.options.params||on,v=a&&a.params||on,f=this.buildStyles(n,v,d),y=l&&l.params||on,T=this.buildStyles(r,y,d),V=new Set,F=new Map,L=new Map,N=r==="void",Me={params:ir(y,E),delay:this.ast.options?.delay},Z=u?[]:nr(e,t,this.ast.animation,s,o,f,T,Me,c,d),j=0;return Z.forEach(B=>{j=Math.max(B.duration+B.delay,j)}),d.length?Ui(t,this._triggerName,n,r,N,f,T,[],[],F,L,j,d):(Z.forEach(B=>{let pe=B.element,De=z(F,pe,new Set);B.preStyleProps.forEach(me=>De.add(me));let Gn=z(L,pe,new Set);B.postStyleProps.forEach(me=>Gn.add(me)),pe!==t&&V.add(pe)}),Ui(t,this._triggerName,n,r,N,f,T,Z,[...V.values()],F,L,j))}};function to(i,e,t,n,r){return i.some(s=>s(e,t,n,r))}function ir(i,e){let t=U({},e);return Object.entries(i).forEach(([n,r])=>{r!=null&&(t[n]=r)}),t}var vn=class{constructor(e,t,n){this.styles=e,this.defaultParams=t,this.normalizer=n}buildStyles(e,t){let n=new Map,r=ir(e,this.defaultParams);return this.styles.styles.forEach(s=>{typeof s!="string"&&s.forEach((o,a)=>{o&&(o=Xe(o,r,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),n.set(a,o)})}),n}};function no(i,e,t){return new bn(i,e,t)}var bn=class{constructor(e,t,n){this.name=e,this.ast=t,this._normalizer=n,this.transitionFactories=[],this.states=new Map,t.states.forEach(r=>{let s=r.options&&r.options.params||{};this.states.set(r.name,new vn(r.style,s,n))}),$i(this.states,"true","1"),$i(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new wt(e,r,this.states))}),this.fallbackTransition=io(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,r){return this.transitionFactories.find(o=>o.match(e,t,n,r))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}};function io(i,e,t){let n=[(o,a)=>!0],r={type:b.Sequence,steps:[],options:null},s={type:b.Transition,animation:r,matchers:n,options:null,queryCount:0,depCount:0};return new wt(i,s,e)}function $i(i,e,t){i.has(e)?i.has(t)||i.set(t,i.get(e)):i.has(t)&&i.set(e,i.get(t))}var ro=new Je,Cn=class{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){let n=[],r=[],s=tr(this._driver,t,n,r);if(n.length)throw _s(n);r.length&&void 0,this._animations.set(e,s)}_buildPlayer(e,t,n){let r=e.element,s=Ki(this._normalizer,e.keyframes,t,n);return this._driver.animate(r,s,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){let r=[],s=this._animations.get(e),o,a=new Map;if(s?(o=nr(this._driver,t,s,Xi,un,new Map,new Map,n,ro,r),o.forEach(u=>{let d=z(a,u.element,new Map);u.postStyleProps.forEach(E=>d.set(E,null))})):(r.push(vs()),o=[]),r.length)throw bs(r);a.forEach((u,d)=>{u.forEach((E,v)=>{u.set(v,this._driver.computeStyle(d,v,J))})});let l=o.map(u=>{let d=a.get(u.element);return this._buildPlayer(u,new Map,d)}),c=fe(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 n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw Cs(e);return t}listen(e,t,n,r){let s=An(t,"","","");return Dn(this._getPlayer(e),n,s,r),()=>{}}command(e,t,n,r){if(n=="register"){this.register(e,r[0]);return}if(n=="create"){let o=r[0]||{};this.create(e,t,o);return}let s=this._getPlayer(e);switch(n){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}}},Gi="ng-animate-queued",so=".ng-animate-queued",an="ng-animate-disabled",oo=".ng-animate-disabled",ao="ng-star-inserted",lo=".ng-star-inserted",co=[],rr={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},uo={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Y="__ng_removed",et=class{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let n=e&&e.hasOwnProperty("value"),r=n?e.value:e;if(this.value=fo(r),n){let s=e,{value:o}=s,a=Wn(s,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let n=this.options.params;Object.keys(t).forEach(r=>{n[r]==null&&(n[r]=t[r])})}}},Ze="void",ln=new et(Ze),En=class{constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,W(t,this._hostClassName)}listen(e,t,n,r){if(!this._triggers.has(t))throw Es(n,t);if(n==null||n.length==0)throw Ss(t);if(!po(n))throw ws(n,t);let s=z(this._elementListeners,e,[]),o={name:t,phase:n,callback:r};s.push(o);let a=z(this._engine.statesByElement,e,new Map);return a.has(t)||(W(e,ft),W(e,ft+"-"+t),a.set(t,ln)),()=>{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 Ms(e);return t}trigger(e,t,n,r=!0){let s=this._getTrigger(t),o=new tt(this.id,t,e),a=this._engine.statesByElement.get(e);a||(W(e,ft),W(e,ft+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),c=new et(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=ln),!(c.value===Ze)&&l.value===c.value){if(!yo(l.params,c.params)){let y=[],T=s.matchStyles(l.value,l.params,y),V=s.matchStyles(c.value,c.params,y);y.length?this._engine.reportError(y):this._engine.afterFlush(()=>{Ee(e,T),ee(e,V)})}return}let E=z(this._engine.playersByElement,e,[]);E.forEach(y=>{y.namespaceId==this.id&&y.triggerName==t&&y.queued&&y.destroy()});let v=s.matchTransition(l.value,c.value,e,c.params),f=!1;if(!v){if(!r)return;v=s.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:v,fromState:l,toState:c,player:o,isFallbackTransition:f}),f||(W(e,Gi),o.onStart(()=>{xe(e,Gi)})),o.onDone(()=>{let y=this.players.indexOf(o);y>=0&&this.players.splice(y,1);let T=this._engine.playersByElement.get(e);if(T){let V=T.indexOf(o);V>=0&&T.splice(V,1)}}),this.players.push(o),E.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,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(n=>n.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let n=this._engine.driver.query(e,_t,!0);n.forEach(r=>{if(r[Y])return;let s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,t,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,t,n,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 u=this.trigger(e,c,Ze,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),n&&fe(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(t&&n){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=n.get(o)||ln,u=new et(Ze),d=new tt(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(e,t){let n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let r=!1;if(n.totalAnimations){let s=n.players.length?n.playersByQueriedElement.get(e):[];if(s&&s.length)r=!0;else{let o=e;for(;o=o.parentNode;)if(n.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)n.markElementAsRemoved(this.id,e,!1,t);else{let s=e[Y];(!s||s===rr)&&(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}}insertNode(e,t){W(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(n=>{let r=n.player;if(r.destroyed)return;let s=n.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==n.triggerName){let l=An(s,n.triggerName,n.fromState.value,n.toState.value);l._data=e,Dn(n.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(n)}),this._queue=[],t.sort((n,r)=>{let s=n.transition.ast.depCount,o=r.transition.ast.depCount;return s==0||o==0?s-o:this._engine.driver.containsElement(n.element,r.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Sn=class{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,n,r){this.bodyNode=e,this.driver=t,this._normalizer=n,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(n=>{n.queued&&e.push(n)})}),e}createNamespace(e,t){let n=new En(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){let n=this._namespaceList,r=this.namespacesByHostElement;if(n.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){let l=r.get(a);if(l){let c=n.indexOf(l);n.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||n.unshift(e)}else n.push(e);return r.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let r=this._namespaceLookup[e];r&&r.register(t,n)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(e);this.namespacesByHostElement.delete(n.hostElement);let r=this._namespaceList.indexOf(n);r>=0&&this._namespaceList.splice(r,1),n.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,n=this.statesByElement.get(e);if(n){for(let r of n.values())if(r.namespaceId){let s=this._fetchNamespace(r.namespaceId);s&&t.add(s)}}return t}trigger(e,t,n,r){if(gt(t)){let s=this._fetchNamespace(e);if(s)return s.trigger(t,n,r),!0}return!1}insertNode(e,t,n,r){if(!gt(t))return;let s=t[Y];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,n)}r&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),W(e,an)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),xe(e,an))}removeNode(e,t,n){if(gt(t)){this.scheduler?.notify();let r=e?this._fetchNamespace(e):null;r?r.removeNode(t,n):this.markElementAsRemoved(e,t,!1,n);let s=this.namespacesByHostElement.get(t);s&&s.id!==e&&s.removeNode(t,n)}else this._onRemovalComplete(t,n)}markElementAsRemoved(e,t,n,r,s){this.collectedLeaveElements.push(t),t[Y]={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:s}}listen(e,t,n,r,s){return gt(t)?this._fetchNamespace(e).listen(t,n,r,s):()=>{}}_buildInstruction(e,t,n,r,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,r,e.fromState.options,e.toState.options,t,s)}destroyInnerAnimations(e){let t=this.driver.query(e,_t,!0);t.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,dn,!0),t.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return fe(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[Y];if(t&&t.setForRemoval){if(e[Y]=rr,t.namespaceId){this.destroyInnerAnimations(e);let n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(an)&&this.markElementAsDisabled(e,!1),this.driver.query(e,oo,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,r)=>this._balanceNamespaceList(n,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++){let r=this.collectedEnterElements[n];W(r,ao)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let n=[];try{t=this._flushAnimations(n,e)}finally{for(let r=0;r<n.length;r++)n[r]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++){let r=this.collectedLeaveElements[n];this.processLeaveNode(r)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(n=>n()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],t.length?fe(t).onDone(()=>{n.forEach(r=>r())}):n.forEach(r=>r())}}reportError(e){throw Ds(e)}_flushAnimations(e,t){let n=new Je,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(h=>{u.add(h);let p=this.driver.query(h,so,!0);for(let g=0;g<p.length;g++)u.add(p[g])});let d=this.bodyNode,E=Array.from(this.statesByElement.keys()),v=Hi(E,this.collectedEnterElements),f=new Map,y=0;v.forEach((h,p)=>{let g=Xi+y++;f.set(p,g),h.forEach(S=>W(S,g))});let T=[],V=new Set,F=new Set;for(let h=0;h<this.collectedLeaveElements.length;h++){let p=this.collectedLeaveElements[h],g=p[Y];g&&g.setForRemoval&&(T.push(p),V.add(p),g.hasAnimation?this.driver.query(p,lo,!0).forEach(S=>V.add(S)):F.add(p))}let L=new Map,N=Hi(E,Array.from(V));N.forEach((h,p)=>{let g=un+y++;L.set(p,g),h.forEach(S=>W(S,g))}),e.push(()=>{v.forEach((h,p)=>{let g=f.get(p);h.forEach(S=>xe(S,g))}),N.forEach((h,p)=>{let g=L.get(p);h.forEach(S=>xe(S,g))}),T.forEach(h=>{this.processLeaveNode(h)})});let Me=[],Z=[];for(let h=this._namespaceList.length-1;h>=0;h--)this._namespaceList[h].drainQueuedTransitions(t).forEach(g=>{let S=g.player,k=g.element;if(Me.push(S),this.collectedEnterElements.length){let x=k[Y];if(x&&x.setForMove){if(x.previousTriggersValues&&x.previousTriggersValues.has(g.triggerName)){let ge=x.previousTriggersValues.get(g.triggerName),q=this.statesByElement.get(g.element);if(q&&q.has(g.triggerName)){let lt=q.get(g.triggerName);lt.value=ge,q.set(g.triggerName,lt)}}S.destroy();return}}let X=!d||!this.driver.containsElement(d,k),$=L.get(k),le=f.get(k),O=this._buildInstruction(g,n,le,$,X);if(O.errors&&O.errors.length){Z.push(O);return}if(X){S.onStart(()=>Ee(k,O.fromStyles)),S.onDestroy(()=>ee(k,O.toStyles)),r.push(S);return}if(g.isFallbackTransition){S.onStart(()=>Ee(k,O.fromStyles)),S.onDestroy(()=>ee(k,O.toStyles)),r.push(S);return}let Hn=[];O.timelines.forEach(x=>{x.stretchStartingKeyframe=!0,this.disabledNodes.has(x.element)||Hn.push(x)}),O.timelines=Hn,n.append(k,O.timelines);let Yr={instruction:O,player:S,element:k};o.push(Yr),O.queriedElements.forEach(x=>z(a,x,[]).push(S)),O.preStyleProps.forEach((x,ge)=>{if(x.size){let q=l.get(ge);q||l.set(ge,q=new Set),x.forEach((lt,Lt)=>q.add(Lt))}}),O.postStyleProps.forEach((x,ge)=>{let q=c.get(ge);q||c.set(ge,q=new Set),x.forEach((lt,Lt)=>q.add(Lt))})});if(Z.length){let h=[];Z.forEach(p=>{h.push(As(p.triggerName,p.errors))}),Me.forEach(p=>p.destroy()),this.reportError(h)}let j=new Map,B=new Map;o.forEach(h=>{let p=h.element;n.has(p)&&(B.set(p,p),this._beforeAnimationBuild(h.player.namespaceId,h.instruction,j))}),r.forEach(h=>{let p=h.element;this._getPreviousPlayers(p,!1,h.namespaceId,h.triggerName,null).forEach(S=>{z(j,p,[]).push(S),S.destroy()})});let pe=T.filter(h=>Wi(h,l,c)),De=new Map;qi(De,this.driver,F,c,J).forEach(h=>{Wi(h,l,c)&&pe.push(h)});let me=new Map;v.forEach((h,p)=>{qi(me,this.driver,new Set(h),l,ht)}),pe.forEach(h=>{let p=De.get(h),g=me.get(h);De.set(h,new Map([...p?.entries()??[],...g?.entries()??[]]))});let Rt=[],zn=[],qn={};o.forEach(h=>{let{element:p,player:g,instruction:S}=h;if(n.has(p)){if(u.has(p)){g.onDestroy(()=>ee(p,S.toStyles)),g.disabled=!0,g.overrideTotalTime(S.totalTime),r.push(g);return}let k=qn;if(B.size>1){let $=p,le=[];for(;$=$.parentNode;){let O=B.get($);if(O){k=O;break}le.push($)}le.forEach(O=>B.set(O,k))}let X=this._buildAnimation(g.namespaceId,S,j,s,me,De);if(g.setRealPlayer(X),k===qn)Rt.push(g);else{let $=this.playersByElement.get(k);$&&$.length&&(g.parentPlayer=fe($)),r.push(g)}}else Ee(p,S.fromStyles),g.onDestroy(()=>ee(p,S.toStyles)),zn.push(g),u.has(p)&&r.push(g)}),zn.forEach(h=>{let p=s.get(h.element);if(p&&p.length){let g=fe(p);h.setRealPlayer(g)}}),r.forEach(h=>{h.parentPlayer?h.syncPlayerEvents(h.parentPlayer):h.destroy()});for(let h=0;h<T.length;h++){let p=T[h],g=p[Y];if(xe(p,un),g&&g.hasAnimation)continue;let S=[];if(a.size){let X=a.get(p);X&&X.length&&S.push(...X);let $=this.driver.query(p,dn,!0);for(let le=0;le<$.length;le++){let O=a.get($[le]);O&&O.length&&S.push(...O)}}let k=S.filter(X=>!X.destroyed);k.length?mo(this,p,k):this.processLeaveNode(p)}return T.length=0,Rt.forEach(h=>{this.players.push(h),h.onDone(()=>{h.destroy();let p=this.players.indexOf(h);this.players.splice(p,1)}),h.play()}),Rt}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,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==Ze;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||o.push(c)})}}return(n||r)&&(o=o.filter(a=>!(n&&n!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(e,t,n){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,u=c!==s,d=z(n,c,[]);this._getPreviousPlayers(c,u,o,a,t.toState).forEach(v=>{let f=v.getRealPlayer();f.beforeDestroy&&f.beforeDestroy(),v.destroy(),d.push(v)})}Ee(s,t.fromStyles)}_buildAnimation(e,t,n,r,s,o){let a=t.triggerName,l=t.element,c=[],u=new Set,d=new Set,E=t.timelines.map(f=>{let y=f.element;u.add(y);let T=y[Y];if(T&&T.removedBeforeQueried)return new he(f.duration,f.delay);let V=y!==l,F=go((n.get(y)||co).map(j=>j.getRealPlayer())).filter(j=>{let B=j;return B.element?B.element===y:!1}),L=s.get(y),N=o.get(y),Me=Ki(this._normalizer,f.keyframes,L,N),Z=this._buildPlayer(f,Me,F);if(f.subTimeline&&r&&d.add(y),V){let j=new tt(e,a,y);j.setRealPlayer(Z),c.push(j)}return Z});c.forEach(f=>{z(this.playersByQueriedElement,f.element,[]).push(f),f.onDone(()=>ho(this.playersByQueriedElement,f.element,f))}),u.forEach(f=>W(f,Ri));let v=fe(E);return v.onDestroy(()=>{u.forEach(f=>xe(f,Ri)),ee(l,t.toStyles)}),d.forEach(f=>{z(r,f,[]).push(v)}),v}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new he(e.duration,e.delay)}},tt=class{constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new he,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,n)=>{t.forEach(r=>Dn(e,n,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){z(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 ho(i,e,t){let n=i.get(e);if(n){if(n.length){let r=n.indexOf(t);n.splice(r,1)}n.length==0&&i.delete(e)}return n}function fo(i){return i??null}function gt(i){return i&&i.nodeType===1}function po(i){return i=="start"||i=="done"}function zi(i,e){let t=i.style.display;return i.style.display=e??"none",t}function qi(i,e,t,n,r){let s=[];t.forEach(l=>s.push(zi(l)));let o=[];n.forEach((l,c)=>{let u=new Map;l.forEach(d=>{let E=e.computeStyle(c,d,r);u.set(d,E),(!E||E.length==0)&&(c[Y]=uo,o.push(c))}),i.set(c,u)});let a=0;return t.forEach(l=>zi(l,s[a++])),o}function Hi(i,e){let t=new Map;if(i.forEach(a=>t.set(a,[])),e.length==0)return t;let n=1,r=new Set(e),s=new Map;function o(a){if(!a)return n;let l=s.get(a);if(l)return l;let c=a.parentNode;return t.has(c)?l=c:r.has(c)?l=n:l=o(c),s.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==n&&t.get(l).push(a)}),t}function W(i,e){i.classList?.add(e)}function xe(i,e){i.classList?.remove(e)}function mo(i,e,t){fe(t).onDone(()=>i.processLeaveNode(e))}function go(i){let e=[];return sr(i,e),e}function sr(i,e){for(let t=0;t<i.length;t++){let n=i[t];n instanceof Qe?sr(n.players,e):e.push(n)}}function yo(i,e){let t=Object.keys(i),n=Object.keys(e);if(t.length!=n.length)return!1;for(let r=0;r<t.length;r++){let s=t[r];if(!e.hasOwnProperty(s)||i[s]!==e[s])return!1}return!0}function Wi(i,e,t){let n=t.get(i);if(!n)return!1;let r=e.get(i);return r?n.forEach(s=>r.add(s)):e.set(i,n),t.delete(i),!0}var Le=class{constructor(e,t,n,r){this._driver=t,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(s,o)=>{},this._transitionEngine=new Sn(e.body,t,n,r),this._timelineEngine=new Cn(e.body,t,n),this._transitionEngine.onRemovalComplete=(s,o)=>this.onRemovalComplete(s,o)}registerTrigger(e,t,n,r,s){let o=e+"-"+r,a=this._triggerCache[o];if(!a){let l=[],c=[],u=tr(this._driver,s,l,c);if(l.length)throw gs(r,l);c.length&&void 0,a=no(r,u,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,n,r){this._transitionEngine.insertNode(e,t,n,r)}onRemove(e,t,n){this._transitionEngine.removeNode(e,t,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,r){if(n.charAt(0)=="@"){let[s,o]=Ni(n),a=r;this._timelineEngine.command(s,t,o,a)}else this._transitionEngine.trigger(e,t,n,r)}listen(e,t,n,r,s){if(n.charAt(0)=="@"){let[o,a]=Ni(n);return this._timelineEngine.listen(o,t,a,s)}return this._transitionEngine.listen(e,t,n,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 _o(i,e){let t=null,n=null;return Array.isArray(e)&&e.length?(t=cn(e[0]),e.length>1&&(n=cn(e[e.length-1]))):e instanceof Map&&(t=cn(e)),t||n?new wn(i,t,n):null}var Re=class Re{constructor(e,t,n){this._element=e,this._startStyles=t,this._endStyles=n,this._state=0;let r=Re.initialStylesByElement.get(e);r||Re.initialStylesByElement.set(e,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&ee(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ee(this._element,this._initialStyles),this._endStyles&&(ee(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Re.initialStylesByElement.delete(this._element),this._startStyles&&(Ee(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ee(this._element,this._endStyles),this._endStyles=null),ee(this._element,this._initialStyles),this._state=3)}};Re.initialStylesByElement=new WeakMap;var wn=Re;function cn(i){let e=null;return i.forEach((t,n)=>{vo(n)&&(e=e||new Map,e.set(n,t))}),e}function vo(i){return i==="display"||i==="position"}var Mt=class{constructor(e,t,n,r){this.element=e,this.keyframes=t,this.options=n,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=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(n=>{t.push(Object.fromEntries(n))}),t}_triggerWebAnimation(e,t,n){return e.animate(this._convertKeyframesToObject(t),n)}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((n,r)=>{r!=="offset"&&e.set(r,this._finished?n:Vn(this.element,r))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0}},Dt=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}matchesElement(e,t){return!1}containsElement(e,t){return Qi(e,t)}getParentElement(e){return Tn(e)}query(e,t,n){return Yi(e,t,n)}computeStyle(e,t,n){return Vn(e,t)}animate(e,t,n,r,s,o=[]){let a=r==0?"both":"forwards",l={duration:n,delay:r,fill:a};s&&(l.easing=s);let c=new Map,u=o.filter(v=>v instanceof Mt);Ls(n,r)&&u.forEach(v=>{v.currentSnapshot.forEach((f,y)=>c.set(y,f))});let d=Ns(t).map(v=>new Map(v));d=js(e,d,c);let E=_o(e,d);return new Mt(e,d,l,E)}};var yt="@",or="@.disabled",At=class{constructor(e,t,n,r){this.namespaceId=e,this.delegate=t,this.engine=n,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,n,r=!0){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,r)}removeChild(e,t,n){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,n,r){this.delegate.setAttribute(e,t,n,r)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,r){this.delegate.setStyle(e,t,n,r)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){t.charAt(0)==yt&&t==or?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,n){return this.delegate.listen(e,t,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},Mn=class extends At{constructor(e,t,n,r,s){super(t,n,r,s),this.factory=e,this.namespaceId=t}setProperty(e,t,n){t.charAt(0)==yt?t.charAt(1)=="."&&t==or?(n=n===void 0?!0:!!n,this.disableAnimations(e,n)):this.engine.process(this.namespaceId,e,t.slice(1),n):this.delegate.setProperty(e,t,n)}listen(e,t,n){if(t.charAt(0)==yt){let r=bo(e),s=t.slice(1),o="";return s.charAt(0)!=yt&&([s,o]=Co(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,n,a)})}return this.delegate.listen(e,t,n)}};function bo(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i}}function Co(i){let e=i.indexOf("."),t=i.substring(0,e),n=i.slice(e+1);return[t,n]}var Tt=class{constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,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 n="",r=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let c=this._rendererCache,u=c.get(r);if(!u){let d=()=>c.delete(r);u=new At(n,r,this.engine,d),c.set(r,u)}return u}let s=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(s,o,e,c.name,c)};return t.data.animation.forEach(a),new Mn(this,o,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,n){if(e>=0&&e<this._microtaskId){this._zone.run(()=>t(n));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,n])}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 So=(()=>{let e=class e extends Le{constructor(n,r,s){super(n,r,s,$t(si,{optional:!0}))}ngOnDestroy(){this.flush()}};e.\u0275fac=function(r){return new(r||e)(_e(Ei),_e(Se),_e(we))},e.\u0275prov=ce({token:e,factory:e.\u0275fac});let i=e;return i})();function wo(){return new bt}function Mo(i,e,t){return new Tt(i,e,t)}var ar=[{provide:we,useFactory:wo},{provide:Le,useClass:So},{provide:oi,useFactory:Mo,deps:[Ti,Le,ut]}],Do=[{provide:Se,useFactory:()=>new Dt},{provide:Wt,useValue:"BrowserAnimations"},...ar],ka=[{provide:Se,useClass:Pn},{provide:Wt,useValue:"NoopAnimations"},...ar];function lr(){return[...Do]}var Ao=i=>({bold:i});function To(i,e){if(i&1){let t=re();m(0,"a",5),A("click",function(){let s=ne(t).$implicit,o=se();return ie(o.onCallClick(s.replace(" ","")))}),m(1,"p",7),P(2,"i",6),m(3,"span",8),w(4),_()()()}if(i&2){let t=e.$implicit,n=e.$index;Xt("href","tel:",t.replace(" ",""),"",Kt),M(),H("ngClass",_i(3,Ao,n===0)),M(3),ve(t)}}var ur=(()=>{let e=class e{constructor(n){this.analyticsService=n}onCallClick(n){n===""?this.analyticsService.trackEvent("DEFAULT_PHONE_CLICK","User clicked on the phone number","User Interaction"):this.analyticsService.trackEvent("PHONE_"+n,"User clicked on the phone number","User Interaction")}};e.\u0275fac=function(r){return new(r||e)(D(Ne))},e.\u0275cmp=I({type:e,selectors:[["app-branch-item"]],inputs:{branch:"branch"},standalone:!0,features:[R],decls:20,vars:5,consts:[[1,"branch-container"],[1,"responsive-map-container"],["width","600","height","450","loading","lazy","allowfullscreen","","src","https://www.google.com/maps/embed/v1/place?key=AIzaSyDKG-BYqM6v4bUabFlIa1JrTH-Q1xFSWg8&q=\u062C\u064A\u0644\u0627\u062A\u064A+\u0628\u064A\u0648\u0645\u064A","title","\u062C\u064A\u0644\u0627\u062A\u064A \u0628\u064A\u0648\u0645\u064A",2,"border","0"],["dir","auto",1,"branch-data"],["dir","auto"],[1,"remove-link-style",3,"href","click"],[1,"fas","fa-phone-alt"],["dir","rtl",1,"phone-number",3,"ngClass"],["dir","ltr"],["class","remove-link-style",3,"href"]],template:function(r,s){r&1&&(m(0,"div",0)(1,"div",1),P(2,"iframe",2),_(),m(3,"div",3)(4,"h3",4),w(5),_(),m(6,"p",4),w(7),_(),m(8,"p",4),w(9),_(),ke(10,To,5,5,"a",9,Fe),m(12,"p",4)(13,"strong"),w(14,"\u0645\u0641\u062A\u0648\u062D \u0645\u0646: "),_(),w(15),_(),m(16,"a",5),A("click",function(){return s.onCallClick("")}),m(17,"button"),w(18," \u0627\u062A\u0635\u0644 \u0627\u0644\u0622\u0646 "),P(19,"i",6),_()()()()),r&2&&(M(5),ve(s.branch.name),M(2),ve(s.branch.address),M(2),ve(s.branch.location),M(),Ie(s.branch.phoneNumbers),M(5),oe(" ",s.branch.openingHours," "),M(),Xt("href","tel:",s.branch.phoneNumbers[0].replace(" ",""),"",Kt))},dependencies:[Si],styles:["[_ngcontent-%COMP%]:root{--bg-color: $bg-color;--light-blue: $light-blue;--primary: $primary;--dark: $dark;--green: $green;--teal: $teal}.branch-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;align-items:flex-start;padding:20px;background-color:#fff;border-radius:10px;box-shadow:0 0 10px #0000001a}.branch-container[_ngcontent-%COMP%] .responsive-map-container[_ngcontent-%COMP%]{position:relative;overflow:hidden;padding-top:337.5px;max-height:400px;height:100%;width:100%;max-width:600px}.branch-container[_ngcontent-%COMP%] .responsive-map-container[_ngcontent-%COMP%] iframe[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;max-height:400px;border:0}.branch-container[_ngcontent-%COMP%] .branch-data[_ngcontent-%COMP%]{flex:1;padding:20px 0;min-width:280px}.branch-container[_ngcontent-%COMP%] .branch-data[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:1.5em;margin-bottom:10px}.branch-container[_ngcontent-%COMP%] .branch-data[_ngcontent-%COMP%] .phone-number[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px}.branch-container[_ngcontent-%COMP%] .branch-data[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#42495b;border-radius:10px;border:none;color:#fff;padding:7px 50px;text-align:center;text-decoration:none;display:flex;align-items:center;gap:10px;font-weight:600;cursor:pointer;margin-top:20px}.branch-container[_ngcontent-%COMP%] .branch-data[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:#2d313d}@media (max-width: 900px){.branch-container[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch}.branch-container[_ngcontent-%COMP%] .responsive-map-container[_ngcontent-%COMP%]{max-width:100%;max-height:none}.branch-container[_ngcontent-%COMP%] .branch-data[_ngcontent-%COMP%]{min-width:100%}}"]});let i=e;return i})();var vr=(()=>{let e=class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=s=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}};e.\u0275fac=function(r){return new(r||e)(D(Yt),D(Qt))},e.\u0275dir=Q({type:e});let i=e;return i})(),Po=(()=>{let e=class e extends vr{};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=qt(e)))(s||e)}})(),e.\u0275dir=Q({type:e,features:[de]});let i=e;return i})(),br=new ue("NgValueAccessor");var Oo={provide:br,useExisting:Ge(()=>Nt),multi:!0};function Vo(){let i=en()?en().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}var Fo=new ue("CompositionEventMode"),Nt=(()=>{let e=class e extends vr{constructor(n,r,s){super(n,r),this._compositionMode=s,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!Vo())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}};e.\u0275fac=function(r){return new(r||e)(D(Yt),D(Qt),D(Fo,8))},e.\u0275dir=Q({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,s){r&1&&A("input",function(a){return s._handleInput(a.target.value)})("blur",function(){return s.onTouched()})("compositionstart",function(){return s._compositionStart()})("compositionend",function(a){return s._compositionEnd(a.target.value)})},features:[We([Oo]),de]});let i=e;return i})();function ko(i){return i==null||(typeof i=="string"||Array.isArray(i))&&i.length===0}var Nn=new ue("NgValidators"),Cr=new ue("NgAsyncValidators");function Io(i){return ko(i.value)?{required:!0}:null}function dr(i){return null}function Er(i){return i!=null}function Sr(i){return hi(i)?Qn(i):i}function wr(i){let e={};return i.forEach(t=>{e=t!=null?U(U({},e),t):e}),Object.keys(e).length===0?null:e}function Mr(i,e){return e.map(t=>t(i))}function No(i){return!i.validate}function Dr(i){return i.map(e=>No(e)?e:t=>e.validate(t))}function xo(i){if(!i)return null;let e=i.filter(Er);return e.length==0?null:function(t){return wr(Mr(t,e))}}function xn(i){return i!=null?xo(Dr(i)):null}function Ro(i){if(!i)return null;let e=i.filter(Er);return e.length==0?null:function(t){let n=Mr(t,e).map(Sr);return Xn(n).pipe(te(wr))}}function Rn(i){return i!=null?Ro(Dr(i)):null}function hr(i,e){return i===null?[e]:Array.isArray(i)?[...i,e]:[i,e]}function Lo(i){return i._rawValidators}function jo(i){return i._rawAsyncValidators}function In(i){return i?Array.isArray(i)?i:[i]:[]}function Ot(i,e){return Array.isArray(i)?i.includes(e):i===e}function fr(i,e){let t=In(e);return In(i).forEach(r=>{Ot(t,r)||t.push(r)}),t}function pr(i,e){return In(e).filter(t=>!Ot(i,t))}var Vt=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=xn(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Rn(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,t){return this.control?this.control.hasError(e,t):!1}getError(e,t){return this.control?this.control.getError(e,t):null}},Be=class extends Vt{get formDirective(){return null}get path(){return null}},st=class extends Vt{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Ft=class{constructor(e){this._cd=e}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}},Bo={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},Ja=Ae(U({},Bo),{"[class.ng-submitted]":"isSubmitted"}),Ar=(()=>{let e=class e extends Ft{constructor(n){super(n)}};e.\u0275fac=function(r){return new(r||e)(D(st,2))},e.\u0275dir=Q({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,s){r&2&&Zt("ng-untouched",s.isUntouched)("ng-touched",s.isTouched)("ng-pristine",s.isPristine)("ng-dirty",s.isDirty)("ng-valid",s.isValid)("ng-invalid",s.isInvalid)("ng-pending",s.isPending)},features:[de]});let i=e;return i})(),Tr=(()=>{let e=class e extends Ft{constructor(n){super(n)}};e.\u0275fac=function(r){return new(r||e)(D(Be,10))},e.\u0275dir=Q({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,s){r&2&&Zt("ng-untouched",s.isUntouched)("ng-touched",s.isTouched)("ng-pristine",s.isPristine)("ng-dirty",s.isDirty)("ng-valid",s.isValid)("ng-invalid",s.isInvalid)("ng-pending",s.isPending)("ng-submitted",s.isSubmitted)},features:[de]});let i=e;return i})();var nt="VALID",Pt="INVALID",je="PENDING",it="DISABLED";function Pr(i){return(xt(i)?i.validators:i)||null}function Uo(i){return Array.isArray(i)?xn(i):i||null}function Or(i,e){return(xt(e)?e.asyncValidators:i)||null}function $o(i){return Array.isArray(i)?Rn(i):i||null}function xt(i){return i!=null&&!Array.isArray(i)&&typeof i=="object"}function Go(i,e,t){let n=i.controls;if(!(e?Object.keys(n):n).length)throw new C(1e3,"");if(!n[t])throw new C(1001,"")}function zo(i,e,t){i._forEachChild((n,r)=>{if(t[r]===void 0)throw new C(1002,"")})}var kt=class{constructor(e,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===nt}get invalid(){return this.status===Pt}get pending(){return this.status==je}get disabled(){return this.status===it}get enabled(){return this.status!==it}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(fr(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(fr(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(pr(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(pr(e,this._rawAsyncValidators))}hasValidator(e){return Ot(this._rawValidators,e)}hasAsyncValidator(e){return Ot(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=je,e.emitEvent!==!1&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){let t=this._parentMarkedDirty(e.onlySelf);this.status=it,this.errors=null,this._forEachChild(n=>{n.disable(Ae(U({},e),{onlySelf:!0}))}),this._updateValue(),e.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Ae(U({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(n=>n(!0))}enable(e={}){let t=this._parentMarkedDirty(e.onlySelf);this.status=nt,this._forEachChild(n=>{n.enable(Ae(U({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Ae(U({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===nt||this.status===je)&&this._runAsyncValidator(e.emitEvent)),e.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?it:nt}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=je,this._hasOwnPendingAsyncValidator=!0;let t=Sr(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(t.emitEvent!==!1)}get(e){let t=e;return t==null||(Array.isArray(t)||(t=t.split(".")),t.length===0)?null:t.reduce((n,r)=>n&&n._find(r),this)}getError(e,t){let n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new He,this.statusChanges=new He}_calculateStatus(){return this._allControlsDisabled()?it:this.errors?Pt:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(je)?je:this._anyControlsHaveStatus(Pt)?Pt:nt}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){xt(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let t=this._parent&&this._parent.dirty;return!e&&!!t&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=Uo(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=$o(this._rawAsyncValidators)}},It=class extends kt{constructor(e,t,n){super(Pr(t),Or(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t,n={}){this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(e,t,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){zo(this,!0,e),Object.keys(e).forEach(n=>{Go(this,!0,n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){e!=null&&(Object.keys(e).forEach(n=>{let r=this.controls[n];r&&r.patchValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e={},t={}){this._forEachChild((n,r)=>{n.reset(e?e[r]:null,{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,n)=>(e[n]=t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(t,n)=>n._syncPendingControls()?!0:t);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(t=>{let n=this.controls[t];n&&e(n,t)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[t,n]of Object.entries(this.controls))if(this.contains(t)&&e(n))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(t,n,r)=>((n.enabled||this.disabled)&&(t[r]=n.value),t))}_reduceChildren(e,t){let n=e;return this._forEachChild((r,s)=>{n=t(n,r,s)}),n}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var Ln=new ue("CallSetDisabledState",{providedIn:"root",factory:()=>jn}),jn="always";function qo(i,e){return[...e.path,i]}function Vr(i,e,t=jn){Fr(i,e),e.valueAccessor.writeValue(i.value),(i.disabled||t==="always")&&e.valueAccessor.setDisabledState?.(i.disabled),Wo(i,e),Qo(i,e),Ko(i,e),Ho(i,e)}function mr(i,e){i.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function Ho(i,e){if(e.valueAccessor.setDisabledState){let t=n=>{e.valueAccessor.setDisabledState(n)};i.registerOnDisabledChange(t),e._registerOnDestroy(()=>{i._unregisterOnDisabledChange(t)})}}function Fr(i,e){let t=Lo(i);e.validator!==null?i.setValidators(hr(t,e.validator)):typeof t=="function"&&i.setValidators([t]);let n=jo(i);e.asyncValidator!==null?i.setAsyncValidators(hr(n,e.asyncValidator)):typeof n=="function"&&i.setAsyncValidators([n]);let r=()=>i.updateValueAndValidity();mr(e._rawValidators,r),mr(e._rawAsyncValidators,r)}function Wo(i,e){e.valueAccessor.registerOnChange(t=>{i._pendingValue=t,i._pendingChange=!0,i._pendingDirty=!0,i.updateOn==="change"&&kr(i,e)})}function Ko(i,e){e.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,i.updateOn==="blur"&&i._pendingChange&&kr(i,e),i.updateOn!=="submit"&&i.markAsTouched()})}function kr(i,e){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function Qo(i,e){let t=(n,r)=>{e.valueAccessor.writeValue(n),r&&e.viewToModelUpdate(n)};i.registerOnChange(t),e._registerOnDestroy(()=>{i._unregisterOnChange(t)})}function Yo(i,e){i==null,Fr(i,e)}function Zo(i,e){if(!i.hasOwnProperty("model"))return!1;let t=i.model;return t.isFirstChange()?!0:!Object.is(e,t.currentValue)}function Xo(i){return Object.getPrototypeOf(i.constructor)===Po}function Jo(i,e){i._syncPendingControls(),e.forEach(t=>{let n=t.control;n.updateOn==="submit"&&n._pendingChange&&(t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function ea(i,e){if(!e)return null;Array.isArray(e);let t,n,r;return e.forEach(s=>{s.constructor===Nt?t=s:Xo(s)?n=s:r=s}),r||n||t||null}var ta={provide:Be,useExisting:Ge(()=>Bn)},rt=Promise.resolve(),Bn=(()=>{let e=class e extends Be{constructor(n,r,s){super(),this.callSetDisabledState=s,this.submitted=!1,this._directives=new Set,this.ngSubmit=new He,this.form=new It({},xn(n),Rn(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){rt.then(()=>{let r=this._findContainer(n.path);n.control=r.registerControl(n.name,n.control),Vr(n.control,n,this.callSetDisabledState),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){rt.then(()=>{let r=this._findContainer(n.path);r&&r.removeControl(n.name),this._directives.delete(n)})}addFormGroup(n){rt.then(()=>{let r=this._findContainer(n.path),s=new It({});Yo(s,n),r.registerControl(n.name,s),s.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){rt.then(()=>{let r=this._findContainer(n.path);r&&r.removeControl(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,r){rt.then(()=>{this.form.get(n.path).setValue(r)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submitted=!0,Jo(this.form,this._directives),this.ngSubmit.emit(n),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submitted=!1}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(n){return n.pop(),n.length?this.form.get(n):this.form}};e.\u0275fac=function(r){return new(r||e)(D(Nn,10),D(Cr,10),D(Ln,8))},e.\u0275dir=Q({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(r,s){r&1&&A("submit",function(a){return s.onSubmit(a)})("reset",function(){return s.onReset()})},inputs:{options:[ze.None,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[We([ta]),de]});let i=e;return i})();function gr(i,e){let t=i.indexOf(e);t>-1&&i.splice(t,1)}function yr(i){return typeof i=="object"&&i!==null&&Object.keys(i).length===2&&"value"in i&&"disabled"in i}var na=class extends kt{constructor(e=null,t,n){super(Pr(t),Or(n,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),xt(t)&&(t.nonNullable||t.initialValueIsDefault)&&(yr(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&t.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,t.emitViewToModelChange!==!1)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=this.defaultValue,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){gr(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){gr(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){yr(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var ia={provide:st,useExisting:Ge(()=>Un)},_r=Promise.resolve(),Un=(()=>{let e=class e extends st{constructor(n,r,s,o,a,l){super(),this._changeDetectorRef=a,this.callSetDisabledState=l,this.control=new na,this._registered=!1,this.name="",this.update=new He,this._parent=n,this._setValidators(r),this._setAsyncValidators(s),this.valueAccessor=ea(this,o)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),Zo(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){Vr(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){_r.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,s=r!==0&&Jt(r);_r.then(()=>{s&&!this.control.disabled?this.control.disable():!s&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?qo(n,this._parent):[n]}};e.\u0275fac=function(r){return new(r||e)(D(Be,9),D(Nn,10),D(Cr,10),D(br,10),D(ai,8),D(Ln,8))},e.\u0275dir=Q({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[ze.None,"disabled","isDisabled"],model:[ze.None,"ngModel","model"],options:[ze.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[We([ia]),de,Gt]});let i=e;return i})(),Ir=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=Q({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let i=e;return i})();var ra=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Ve({type:e}),e.\u0275inj=Oe({});let i=e;return i})();var sa=(()=>{let e=class e{constructor(){this._validator=dr}ngOnChanges(n){if(this.inputName in n){let r=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):dr,this._onChange&&this._onChange()}}validate(n){return this._validator(n)}registerOnValidatorChange(n){this._onChange=n}enabled(n){return n!=null}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=Q({type:e,features:[Gt]});let i=e;return i})();var oa={provide:Nn,useExisting:Ge(()=>$n),multi:!0};var $n=(()=>{let e=class e extends sa{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=Jt,this.createValidator=n=>Io}enabled(n){return n}};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=qt(e)))(s||e)}})(),e.\u0275dir=Q({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(r,s){r&2&&ui("required",s._enabled?"":null)},inputs:{required:"required"},features:[We([oa]),de]});let i=e;return i})();var aa=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Ve({type:e}),e.\u0275inj=Oe({imports:[ra]});let i=e;return i})();var Nr=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:Ln,useValue:n.callSetDisabledState??jn}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Ve({type:e}),e.\u0275inj=Oe({imports:[aa]});let i=e;return i})();function ca(i,e){if(i&1){let t=re();m(0,"div",12),w(1),m(2,"button",13),A("click",function(){ne(t);let r=se();return ie(r.displaySuccessAlert=!1)}),m(3,"span",14),w(4,"\xD7"),_()()()}if(i&2){let t=se();M(),oe(" ",t.successMessage," ")}}function ua(i,e){if(i&1){let t=re();m(0,"div",15),w(1),m(2,"button",13),A("click",function(){ne(t);let r=se();return ie(r.displayDangerAlert=!1)}),m(3,"span",14),w(4,"\xD7"),_()()()}if(i&2){let t=se();M(),oe(" ",t.errorMessage," ")}}var xr=(()=>{let e=class e{constructor(){this.name="",this.email="",this.message="",this.successMessage="",this.errorMessage="",this.displaySuccessAlert=!1,this.displayDangerAlert=!1}submit(){if(this.name==""||this.email==""||this.message==""){this.showFormError("\u0628\u0631\u062C\u0627\u0621 \u0645\u0644\u0621 \u062C\u0645\u064A\u0639 \u0627\u0644\u062D\u0642\u0648\u0644");return}if(!this.isMail(this.email)){this.showFormError("\u0627\u0644\u0631\u062C\u0627\u0621 \u0625\u062F\u062E\u0627\u0644 \u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A \u0635\u062D\u064A\u062D");return}let n=new URLSearchParams({"entry.1748222099":this.name,"entry.336933390":this.email,"entry.1510931726":this.message}).toString();fetch("https://docs.google.com/forms/d/e/1FAIpQLScyd6q7o1QXhZqm49fkmzyfO6aWZCInulNDkQ4h8-AXWyBsZA/formResponse?"+n,{method:"POST",mode:"no-cors",redirect:"follow",referrer:"no-referrer"}).then(()=>{this.showFormSuccess("\u062A\u0645 \u0625\u0631\u0633\u0627\u0644 \u0631\u0633\u0627\u0644\u062A\u0643 \u0628\u0646\u062C\u0627\u062D"),this.name="",this.email="",this.message=""}).catch(()=>{this.showFormError("\u062D\u062F\u062B \u062E\u0637\u0623 \u0623\u062B\u0646\u0627\u0621 \u0625\u0631\u0633\u0627\u0644 \u0631\u0633\u0627\u0644\u062A\u0643\u060C \u064A\u0631\u062C\u0649 \u0627\u0644\u0645\u062D\u0627\u0648\u0644\u0629 \u0645\u0631\u0629 \u0623\u062E\u0631\u0649")})}showFormSuccess(n){this.displayDangerAlert=!1,this.displaySuccessAlert=!0,this.successMessage=n}showFormError(n){this.displaySuccessAlert=!1,this.displayDangerAlert=!0,this.errorMessage=n}isMail(n){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=I({type:e,selectors:[["app-contact"]],standalone:!0,features:[R],decls:24,vars:5,consts:[["dir","rtl",3,"ngSubmit"],["class","alert alert-success","role","alert",4,"ngIf"],["class","alert alert-danger","role","alert",4,"ngIf"],[1,"form-group"],["for","name"],[1,"required-star"],["type","text","id","name","name","name","required","",1,"form-control",3,"ngModel","ngModelChange"],["for","email"],["type","email","id","email","name","email","required","",1,"form-control",3,"ngModel","ngModelChange"],["for","message"],["id","message","name","message","dir","auto","rows","6","required","",1,"form-control",3,"ngModel","ngModelChange"],["type","submit",1,"submit-button"],["role","alert",1,"alert","alert-success"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],["role","alert",1,"alert","alert-danger"]],template:function(r,s){r&1&&(m(0,"form",0),A("ngSubmit",function(){return s.submit()}),dt(1,ca,5,1,"div",1)(2,ua,5,1,"div",2),m(3,"div",3)(4,"label",4),w(5," \u0627\u0644\u0627\u0633\u0645"),m(6,"span",5),w(7," *"),_()(),m(8,"input",6),A("ngModelChange",function(a){return s.name=a}),_()(),m(9,"div",3)(10,"label",7),w(11," \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A"),m(12,"span",5),w(13," *"),_()(),m(14,"input",8),A("ngModelChange",function(a){return s.email=a}),_()(),m(15,"div",3)(16,"label",9),w(17," \u0627\u0644\u0631\u0633\u0627\u0644\u0629"),m(18,"span",5),w(19," *"),_()(),m(20,"textarea",10),A("ngModelChange",function(a){return s.message=a}),_()(),m(21,"div")(22,"button",11),w(23,"\u0625\u0631\u0633\u0627\u0644"),_()()()),r&2&&(M(),H("ngIf",s.displaySuccessAlert),M(),H("ngIf",s.displayDangerAlert),M(6),H("ngModel",s.name),M(6),H("ngModel",s.email),M(6),H("ngModel",s.message))},dependencies:[Nr,Ir,Nt,Ar,Tr,$n,Un,Bn,wi],styles:["[_ngcontent-%COMP%]:root{--bg-color: $bg-color;--light-blue: $light-blue;--primary: $primary;--dark: $dark;--green: $green;--teal: $teal}form[_ngcontent-%COMP%]{border-top:2px solid #5ea4f3;background-color:#fff;max-width:500px;margin:auto;padding:40px;box-shadow:0 2px 10px #00000013}@media (max-width: 400px){form[_ngcontent-%COMP%]{padding:20px}}form[_ngcontent-%COMP%] .submit-button[_ngcontent-%COMP%]{background-color:#5296cf;border-radius:10px;border:none;color:#fff;padding:10px 50px;text-align:center;text-decoration:none;font-size:1.2em;font-weight:600;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:12px;width:100%}form[_ngcontent-%COMP%] .submit-button[_ngcontent-%COMP%]:hover{background-color:#347dba}.alert[_ngcontent-%COMP%]{cursor:pointer;position:relative;padding:.75rem 1.25rem;margin-bottom:1rem;border:1px solid transparent;border-radius:.25rem;transition:opacity .15s linear;padding-inline-start:40px}.alert-danger[_ngcontent-%COMP%]{color:#721c24;background-color:#f8d7da;border-color:#f5c6cb}.alert-success[_ngcontent-%COMP%]{color:#155724;background-color:#d4edda;border-color:#c3e6cb}.alert[_ngcontent-%COMP%] button.close[_ngcontent-%COMP%]{cursor:pointer;background-color:transparent;border:0;position:absolute;top:0;right:0;padding:.75rem 1.25rem;color:inherit}.required-star[_ngcontent-%COMP%]{color:red}.form-group[_ngcontent-%COMP%]{margin-bottom:1rem}.form-group[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:600}.form-control[_ngcontent-%COMP%]{display:block;width:100%;padding:.375rem .75rem;font-size:1rem;line-height:1.5;color:#495057;background-color:#fff;background-clip:padding-box;border:1px solid #ced4da;border-radius:.25rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}.form-control[_ngcontent-%COMP%]:focus{color:#495057;background-color:#fff;border-color:#80bdff;outline:0;box-shadow:0 0 0 .2rem #007bff40}.btn-block[_ngcontent-%COMP%]{display:block;width:100%}"]});let i=e;return i})();var Rr=(()=>{let e=class e{constructor(){this.currentYear=new Date().getFullYear()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=I({type:e,selectors:[["app-footer"]],standalone:!0,features:[R],decls:3,vars:1,template:function(r,s){r&1&&(m(0,"footer")(1,"span"),w(2),_()()),r&2&&(M(2),oe("Copyright \xA9 Bayoumi Gelato ",s.currentYear,""))},styles:["[_ngcontent-%COMP%]:root{--bg-color: $bg-color;--light-blue: $light-blue;--primary: $primary;--dark: $dark;--green: $green;--teal: $teal}footer[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;background-color:#42495b;color:#fff;padding:15px}"]});let i=e;return i})();var Lr=(()=>{let e=class e{constructor(n){this.analyticsService=n}onWhatsappClick(){this.analyticsService.trackEvent("HERO_WHATSAPP_CLICK","User clicked on the WhatsApp button","User Interaction")}onSocialMediaClick(n){this.analyticsService.trackEvent(n.toUpperCase()+"_CLICK",`User clicked on the ${n} button`,"User Interaction")}};e.\u0275fac=function(r){return new(r||e)(D(Ne))},e.\u0275cmp=I({type:e,selectors:[["app-hero-banner"]],standalone:!0,features:[R],decls:22,vars:0,consts:[["id","header"],[1,"header-image"],["src","assets/images/header-side-graphic.svg","alt","Ice cream image",1,"side-image"],["dir","auto",1,"header-content"],[1,"header-title"],[1,"header-subtitle"],["href","https://wa.me/+201558556223","target","_blank","rel","noopener",1,"remove-link-style",3,"click"],[1,"fab","fa-whatsapp"],[1,"social-links"],["target","_blank","href","mailto:bayoumi.icecream@gmail.com","aria-label","Email",3,"click"],[1,"fa","fa-envelope"],["target","_blank","href","https://www.instagram.com/bayoumiicecream/","aria-label","Instagram",3,"click"],[1,"fab","fa-fw","fa-instagram"],["target","_blank","href","https://www.linkedin.com/company/bayoumi/","aria-label","Linkedin",3,"click"],[1,"fab","fa-fw","fa-linkedin-in"],["target","_blank","href","https://www.facebook.com/Bayoumi.Official/","aria-label","Facebook",3,"click"],[1,"fab","fa-fw","fa-facebook-f"]],template:function(r,s){r&1&&(m(0,"header",0)(1,"div",1),P(2,"img",2),_(),m(3,"div",3)(4,"span",4),w(5," \u062C\u064A\u0644\u0627\u062A\u064A \u0637\u0628\u064A\u0639\u064A \u0645\u0639 \u0643\u0631\u064A\u0645\u0629 \u0628\u064A\u0648\u0645\u064A "),_(),m(6,"span",5),w(7," \u062A\u062C\u0631\u0628\u0629 \u0645\u0630\u0627\u0642 \u0627\u0633\u062A\u062B\u0646\u0627\u0626\u064A\u0629 \u0641\u064A \u0643\u0644 \u0645\u0639\u0644\u0642\u0629 "),_(),m(8,"div")(9,"a",6),A("click",function(){return s.onWhatsappClick()}),m(10,"button"),w(11," \u0623\u0631\u0633\u0644 \u0644\u0646\u0627 \u0639\u0644\u0649 \u0627\u0644\u0648\u0627\u062A\u0633\u0627\u0628 "),P(12,"i",7),_()()()()(),m(13,"div",8)(14,"a",9),A("click",function(){return s.onSocialMediaClick("email")}),P(15,"i",10),_(),m(16,"a",11),A("click",function(){return s.onSocialMediaClick("instagram")}),P(17,"i",12),_(),m(18,"a",13),A("click",function(){return s.onSocialMediaClick("linkedin")}),P(19,"i",14),_(),m(20,"a",15),A("click",function(){return s.onSocialMediaClick("facebook")}),P(21,"i",16),_()())},styles:["[_ngcontent-%COMP%]:root{--bg-color: $bg-color;--light-blue: $light-blue;--primary: $primary;--dark: $dark;--green: $green;--teal: $teal}header[_ngcontent-%COMP%]{padding-top:54px;display:flex;flex-direction:row;justify-content:center}header[_ngcontent-%COMP%] .header-image[_ngcontent-%COMP%]{width:100%;max-width:600px}header[_ngcontent-%COMP%] .header-image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;flex:1;padding:20px 50px}header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%] .header-title[_ngcontent-%COMP%], header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%] .header-subtitle[_ngcontent-%COMP%]{padding:5px 0}header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%] .header-title[_ngcontent-%COMP%]{font-size:3.5em;font-weight:600}header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%] .header-subtitle[_ngcontent-%COMP%]{font-size:1.5em;font-weight:500}header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#5296cf;border-radius:10px;border:none;color:#fff;text-align:center;text-decoration:none;font-size:1.2em;font-weight:600;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:12px;margin-top:40px;padding:10px 20px;background-color:#25d366}header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:#347dba}header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:#1da851}@media (max-width: 690px){header[_ngcontent-%COMP%]{padding-top:60px}}@media (max-width: 900px){header[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center}header[_ngcontent-%COMP%] .header-image[_ngcontent-%COMP%]{max-width:100%}header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%]{padding:20px}header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%] .header-title[_ngcontent-%COMP%]{font-size:2.5em}header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%] .header-subtitle[_ngcontent-%COMP%]{font-size:1.2em}}.social-links[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-start;padding:20px}.social-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:0 10px;color:#5296cf;font-size:1.5em;transition:transform .2s ease,color .2s ease}.social-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#33485d;transform:scale(1.5)}"]});let i=e;return i})();var da=["navItem"];function ha(i,e){if(i&1){let t=re();zt(),ni(),m(0,"li",8,9),A("click",function(){let s=ne(t).$implicit;return ie(s.action())}),w(2),_()}if(i&2){let t=e.$implicit;M(2),oe(" ",t.name," ")}}var jr=(()=>{let e=class e{constructor(n){this.platformId=n,this.isNavMenuOpen=!1,this.menuItems=[{path:"",name:"\u0627\u0644\u0631\u0626\u064A\u0633\u064A\u0629",action:()=>this.navigateToHome()},{path:"branches",name:"\u0627\u0644\u0641\u0631\u0648\u0639",action:()=>this.navigateToBranches()},{path:"contact",name:"\u0627\u062A\u0635\u0644 \u0628\u0646\u0627",action:()=>this.navigateToContact()}]}navigateToHome(){console.log("home"),this.navigate("home")}navigateToStory(){this.navigate("story")}navigateToProducts(){this.navigate("products")}navigateToBranches(){this.navigate("branches")}navigateToContact(){this.navigate("contact")}navigate(n){if(Ke(this.platformId)){console.log(n);let r=document.getElementById(n);r&&r.scrollIntoView({behavior:"smooth"})}}onOpenNavMenu(){this.isNavMenuOpen?(this.navItems.forEach(n=>{n.nativeElement.classList.remove("active")}),this.isNavMenuOpen=!1):(this.navItems.forEach(n=>{n.nativeElement.classList.add("active")}),this.isNavMenuOpen=!0)}};e.\u0275fac=function(r){return new(r||e)(D(qe))},e.\u0275cmp=I({type:e,selectors:[["app-navbar"]],viewQuery:function(r,s){if(r&1&&mi(da,5),r&2){let o;gi(o=yi())&&(s.navItems=o)}},standalone:!0,features:[R],decls:11,vars:0,consts:[["dir","rtl",1,"navbar"],[1,"navbar-logo",3,"click"],["src","assets/images/logo-ar_188x120.png","alt","logo"],[1,"navbar-toggle",3,"click"],["viewBox","0 0 100 80","width","40","height","30",2,"fill","#33485d"],["width","100","height","15"],["y","30","width","100","height","15"],["y","60","width","100","height","15"],[1,"navbar-links",3,"click"],["navItem",""],["class","navbar-links"]],template:function(r,s){r&1&&(m(0,"nav",0)(1,"ul")(2,"li",1),A("click",function(){return s.navigateToHome()}),P(3,"img",2),_(),m(4,"li",3),A("click",function(){return s.onOpenNavMenu()}),zt(),m(5,"svg",4),P(6,"rect",5)(7,"rect",6)(8,"rect",7),_()(),ke(9,ha,3,1,"li",10,Fe),_()()),r&2&&(M(9),Ie(s.menuItems))},styles:["[_ngcontent-%COMP%]:root{--bg-color: $bg-color;--light-blue: $light-blue;--primary: $primary;--dark: $dark;--green: $green;--teal: $teal}.navbar[_ngcontent-%COMP%]{position:fixed;width:100%;top:0;box-shadow:1px 2px 3px #00000042;z-index:1000}.navbar[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{display:flex;width:100%;align-items:center;background-color:#f5f7fe;color:#000;gap:5px;padding:5px 30px 5px 10px}.navbar[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{align-self:center;list-style-type:none;-webkit-user-select:none;user-select:none}.navbar[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none;color:#fff}.navbar-logo[_ngcontent-%COMP%]{flex:1;font-size:2rem;font-weight:700;-webkit-user-select:none;user-select:none;cursor:pointer}.navbar-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{position:absolute;z-index:999999;right:10px;top:10px;height:80px}.navbar-logo[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:2rem}.navbar-toggle[_ngcontent-%COMP%]{display:none;cursor:pointer}.navbar-links[_ngcontent-%COMP%]{padding:7px 20px;cursor:pointer;transition:all ease .3s;border-radius:10px;font-weight:600}.selected-navbar-link[_ngcontent-%COMP%], .navbar-links[_ngcontent-%COMP%]:hover{background-color:#5296cf;color:#fff}.navbar-img[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:30px;height:30px}.navbar-img[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:30px}@media (max-width: 690px){.navbar[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{flex-wrap:wrap;padding:15px 20px;gap:10px}.navbar-toggle[_ngcontent-%COMP%]{display:flex}.navbar-links[_ngcontent-%COMP%]{display:none;width:100%;text-align:center}.active[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}}"]});let i=e;return i})();var fa=["*"],Br=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=I({type:e,selectors:[["app-home-section"]],inputs:{backgroundColor:"backgroundColor",title:"title"},standalone:!0,features:[R],ngContentSelectors:fa,decls:6,vars:3,consts:[[1,"section-title"],[1,"star-line"],["src","assets/images/star-line.svg","alt","Star-Line","loading","lazy","width","200","height","20"]],template:function(r,s){r&1&&(fi(),m(0,"section")(1,"h2",0),w(2),_(),m(3,"div",1),P(4,"img",2),_(),pi(5),_()),r&2&&(di("background-color",s.backgroundColor),M(2),ve(s.title))},styles:["[_ngcontent-%COMP%]:root{--bg-color: $bg-color;--light-blue: $light-blue;--primary: $primary;--dark: $dark;--green: $green;--teal: $teal}section[_ngcontent-%COMP%]{background-color:#f5f7fe;color:#33485d;padding:60px 30px 50px}section[_ngcontent-%COMP%] .section-title[_ngcontent-%COMP%]{font-size:2rem;text-align:center}.star-line[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%;margin-bottom:30px}.star-line[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:200px}"]});let i=e;return i})();function pa(i,e){if(i&1&&P(0,"app-branch-item",4),i&2){let t=e.$implicit;H("branch",t)}}function ma(i,e){if(i&1){let t=re();m(0,"a",5),A("click",function(){ne(t);let r=se();return ie(r.onWhatsappClick())}),P(1,"i",6),_()}}var Ur=(()=>{let e=class e{constructor(n){this.analyticsService=n,this.branchesList=[{name:"\u0645\u062D\u0631\u0645 \u0628\u0643",address:"\u0661\u0665 \u0634\u0627\u0631\u0639 \u0646\u0635\u0631 \u0627\u062D\u0645\u062F \u0632\u0643\u064A\u060C \u0645\u062D\u0631\u0645 \u0628\u0643",location:"\u0627\u0644\u0625\u0633\u0643\u0646\u062F\u0631\u064A\u0629\u060C \u0645\u0635\u0631",locationUrl:"https://goo.gl/maps/8q3XhYg5uV3bqQyj6",phoneNumbers:["0155 855 6223","03 4956900","03 3934631"],openingHours:"\u0669 \u0635\u0628\u0627\u062D\u0627 \u062D\u062A\u0649 1 \u0628\u0639\u062F \u0645\u0646\u062A\u0635\u0641 \u0627\u0644\u0644\u064A\u0644"}]}ngOnInit(){this.analyticsService.trackEvent("HOME_PAGE_VISIT","User visited the home page","User Interaction")}onWhatsappClick(){this.analyticsService.trackEvent("FLOAT_WHATSAPP_CLICK","User clicked on the WhatsApp button","User Interaction")}};e.\u0275fac=function(r){return new(r||e)(D(Ne))},e.\u0275cmp=I({type:e,selectors:[["app-home"]],standalone:!0,features:[R],decls:12,vars:2,consts:[["id","home"],["id","branches",3,"title"],["branchesSection",""],["id","contact",3,"title"],[3,"branch"],["href","https://wa.me/+201558556223","target","_blank","rel","noopener","aria-label","whatsapp",1,"whatsapp-float",3,"click"],[1,"fab","fa-whatsapp","whatsapp-icon"]],template:function(r,s){r&1&&(P(0,"app-navbar",0)(1,"app-hero-banner"),m(2,"app-home-section",1,2),ke(4,pa,1,1,"app-branch-item",4,Fe),_(),m(6,"app-home-section",3),P(7,"app-contact"),_(),P(8,"app-footer"),dt(9,ma,2,0),li(10,9),ci(2)),r&2&&(M(2),H("title","\u0627\u0644\u0641\u0631\u0648\u0639"),M(2),Ie(s.branchesList),M(2),H("title","\u062A\u0648\u0627\u0635\u0644 \u0645\u0639\u0646\u0627"))},dependencies:[jr,Lr,Rr,ur,Br,xr],styles:[".whatsapp-float[_ngcontent-%COMP%]{position:fixed;width:60px;height:60px;bottom:40px;right:40px;background-color:#25d366;color:#fff;border-radius:50px;text-align:center;font-size:30px;box-shadow:0 0 7px 2px #0003;z-index:100}.whatsapp-icon[_ngcontent-%COMP%]{margin-top:16px}"]});let i=e;return i})();var $r=(()=>{let e=class e{constructor(){}ngOnInit(){window.location.href="assets/menu.png"}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=I({type:e,selectors:[["app-menu-redirect"]],decls:0,vars:0,template:function(r,s){},encapsulation:2});let i=e;return i})();var Gr=[{path:"",component:Ur},{path:"menu",component:$r},{path:"not-found",loadComponent:()=>import("./chunk-IS5W763I.js").then(i=>i.NotFoundComponent)},{path:"**",redirectTo:"/not-found"}];var at="Service workers are disabled or not supported by this browser";function ga(i){return jt(()=>Yn(new Error(i)))}var Ue=class{constructor(e){if(this.serviceWorker=e,!e)this.worker=this.events=this.registration=ga(at);else{let n=Bt(e,"controllerchange").pipe(te(()=>e.controller)),r=jt(()=>ct(e.controller)),s=Zn(r,n);this.worker=s.pipe(Pe(u=>!!u)),this.registration=this.worker.pipe($e(()=>e.getRegistration()));let c=Bt(e,"message").pipe(te(u=>u.data)).pipe(Pe(u=>u&&u.type)).pipe(ei());c.connect(),this.events=c}}postMessage(e,t){return this.worker.pipe(ye(1),ti(n=>{n.postMessage(U({action:e},t))})).toPromise().then(()=>{})}postMessageWithOperation(e,t,n){let r=this.waitForOperationCompleted(n),s=this.postMessage(e,t);return Promise.all([s,r]).then(([,o])=>o)}generateNonce(){return Math.round(Math.random()*1e7)}eventsOfType(e){let t;return typeof e=="string"?t=n=>n.type===e:t=n=>e.includes(n.type),this.events.pipe(Pe(t))}nextEventOfType(e){return this.eventsOfType(e).pipe(ye(1))}waitForOperationCompleted(e){return this.eventsOfType("OPERATION_COMPLETED").pipe(Pe(t=>t.nonce===e),ye(1),te(t=>{if(t.result!==void 0)return t.result;throw new Error(t.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}},ya=(()=>{let e=class e{get isEnabled(){return this.sw.isEnabled}constructor(n){if(this.sw=n,this.pushManager=null,this.subscriptionChanges=new Kn,!n.isEnabled){this.messages=Te,this.notificationClicks=Te,this.subscription=Te;return}this.messages=this.sw.eventsOfType("PUSH").pipe(te(s=>s.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe(te(s=>s.data)),this.pushManager=this.sw.registration.pipe(te(s=>s.pushManager));let r=this.pushManager.pipe($e(s=>s.getSubscription()));this.subscription=Ut(r,this.subscriptionChanges)}requestSubscription(n){if(!this.sw.isEnabled||this.pushManager===null)return Promise.reject(new Error(at));let r={userVisibleOnly:!0},s=this.decodeBase64(n.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),o=new Uint8Array(new ArrayBuffer(s.length));for(let a=0;a<s.length;a++)o[a]=s.charCodeAt(a);return r.applicationServerKey=o,this.pushManager.pipe($e(a=>a.subscribe(r)),ye(1)).toPromise().then(a=>(this.subscriptionChanges.next(a),a))}unsubscribe(){if(!this.sw.isEnabled)return Promise.reject(new Error(at));let n=r=>{if(r===null)throw new Error("Not subscribed to push notifications.");return r.unsubscribe().then(s=>{if(!s)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})};return this.subscription.pipe(ye(1),$e(n)).toPromise()}decodeBase64(n){return atob(n)}};e.\u0275fac=function(r){return new(r||e)(_e(Ue))},e.\u0275prov=ce({token:e,factory:e.\u0275fac});let i=e;return i})(),_a=(()=>{let e=class e{get isEnabled(){return this.sw.isEnabled}constructor(n){if(this.sw=n,!n.isEnabled){this.versionUpdates=Te,this.unrecoverable=Te;return}this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(at));let n=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:n},n)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(at));let n=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:n},n)}};e.\u0275fac=function(r){return new(r||e)(_e(Ue))},e.\u0275prov=ce({token:e,factory:e.\u0275fac});let i=e;return i})();var zr=new ue("NGSW_REGISTER_SCRIPT");function va(i,e,t,n){return()=>{if(!(Ke(n)&&"serviceWorker"in navigator&&t.enabled!==!1))return;navigator.serviceWorker.addEventListener("controllerchange",()=>{navigator.serviceWorker.controller!==null&&navigator.serviceWorker.controller.postMessage({action:"INITIALIZE"})});let r;if(typeof t.registrationStrategy=="function")r=t.registrationStrategy();else{let[o,...a]=(t.registrationStrategy||"registerWhenStable:30000").split(":");switch(o){case"registerImmediately":r=ct(null);break;case"registerWithDelay":r=qr(+a[0]||0);break;case"registerWhenStable":r=a[0]?Ut(Hr(i),qr(+a[0])):Hr(i);break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${t.registrationStrategy}`)}}i.get(ut).runOutsideAngular(()=>r.pipe(ye(1)).subscribe(()=>navigator.serviceWorker.register(e,{scope:t.scope}).catch(o=>console.error("Service worker registration failed with:",o))))}}function qr(i){return ct(null).pipe(Jn(i))}function Hr(i){return i.get(bi).isStable.pipe(Pe(t=>t))}function ba(i,e){return new Ue(Ke(e)&&i.enabled!==!1?navigator.serviceWorker:void 0)}var ot=class{};function Wr(i,e={}){return ii([ya,_a,{provide:zr,useValue:i},{provide:ot,useValue:e},{provide:Ue,useFactory:ba,deps:[ot,qe]},{provide:vi,useFactory:va,deps:[Ht,zr,ot,qe],multi:!0}])}var Kr={providers:[ri(tn),Fi(Gr),lr(),Mi(Di(),Ai()),Wr("ngsw-worker.js",{enabled:!Ci(),registrationStrategy:"registerWhenStable:30000"}),Oi()]};var Qr=(()=>{let e=class e{constructor(){this.title="bayoumi-gelato"}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=I({type:e,selectors:[["app-root"]],standalone:!0,features:[R],decls:1,vars:0,template:function(r,s){r&1&&P(0,"router-outlet")},dependencies:[Vi]});let i=e;return i})();Pi(Qr,Kr).catch(i=>console.error(i));