@letscooee/web-sdk 14.3.0 → 14.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { _ as v$1, n as s, $ as U, a0 as q$1, a1 as Sr$1, a2 as m$1, r, a3 as vs$1, a4 as ve$2, a5 as pi, a6 as Nn$3, a7 as bi$1, a8 as ii$2, a9 as _e$3, aa as Fs$1, ab as Ps$1, ac as Se$2, ad as ye$3, Y as Y$1, ae as fn$3, af as fe$2, c as Hi$1, ag as le$2, E as he$3, ah as ae$2, I as Ir$1, ai as ge$3, aj as he$4, M as M$3, p as On$3, q as Sn$3, N as Nn$4, ak as gn$3, al as In$2, am as Pr$1, an as ne$2, t, ao as Mi$1, ap as Oe$1, aq as gr$1, ar as Re$2, as as Fe$3, at as Pe$2, au as Ee$2, av as $n$3, k as ke$2, aw as We$3, ax as Je$2, ay as Ae$3, d as ce$3, s as se$2, az as oe$2 } from './main.min.js';
1
+ import { _ as v$1, o as s, $ as U, a0 as q$1, a1 as Sr$1, a2 as m$1, r, a3 as vs$1, a4 as ve$2, a5 as pi, a6 as Nn$3, a7 as bi$1, a8 as ii$2, a9 as _e$3, aa as Fs$1, ab as Ps$1, ac as Se$2, ad as ye$3, Y as Y$1, ae as fn$3, af as fe$2, c as Hi$1, ag as le$2, E as he$3, ah as ae$2, I as Ir$1, ai as ge$3, aj as he$4, M as M$3, S as Sn$3, q as On$3, N as Nn$4, ak as gn$3, al as In$2, am as Pr$1, an as ne$2, t, ao as Vi$1, ap as Se$3, aq as gr$1, ar as Re$2, as as Fe$3, at as Pe$2, au as Ee$2, av as $n$3, k as ke$2, aw as We$3, ax as Je$2, ay as Ae$3, d as ce$3, s as se$2, az as oe$2 } from './main.min.js';
2
2
 
3
3
  var Y=null,_r=false,mi=1,P$1=Symbol(`SIGNAL`);function v(e){let t=Y;return Y=e,t}function Tr(){return Y}var et$2={version:0,lastCleanEpoch:0,dirty:false,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:false,consumerAllowSignalWrites:false,consumerIsAlwaysLive:false,kind:`unknown`,producerMustRecompute:()=>false,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function tt$2(e){if(_r)throw new Error(``);if(Y===null)return;Y.consumerOnSignalRead(e);let t=Y.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=Y.recomputing;if(r&&(n=t!==void 0?t.nextProducer:Y.producers,n!==void 0&&n.producer===e)){Y.producersTail=n,n.lastReadVersion=e.version;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===Y&&(!r||th(o,Y)))return;let i=qt$1(Y),s={producer:e,consumer:Y,nextProducer:n,prevConsumer:o,lastReadVersion:e.version,nextConsumer:void 0};Y.producersTail=s,t!==void 0?t.nextProducer=s:Y.producers=s,i&&Fc(e,s);}function xc(){mi++;}function yt$3(e){if(!(qt$1(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===mi)){if(!e.producerMustRecompute(e)&&!wn$2(e)){Wt$1(e);return}e.producerRecomputeValue(e),Wt$1(e);}}function yi(e){if(e.consumers===void 0)return;let t=_r;_r=true;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||eh(r);}}finally{_r=t;}}function Di$1(){return Y?.consumerAllowSignalWrites!==false}function eh(e){e.dirty=true,yi(e),e.consumerMarkedDirty?.(e);}function Wt$1(e){e.dirty=false,e.lastCleanEpoch=mi;}function nt$1(e){return e&&Oc(e),v(e)}function Oc(e){e.producersTail=void 0,e.recomputing=true;}function Dt$1(e,t){v(t),e&&kc(e);}function kc(e){e.recomputing=false;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(qt$1(e))do n=vi(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0;}}function wn$2(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(yt$3(n),r!==n.version))return true}return false}function vt$3(e){if(qt$1(e)){let t=e.producers;for(;t!==void 0;)t=vi(t);}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0;}function Fc(e,t){let n=e.consumersTail,r=qt$1(e);if(n!==void 0?(t.nextConsumer=n.nextConsumer,n.nextConsumer=t):(t.nextConsumer=void 0,e.consumers=t),t.prevConsumer=n,e.consumersTail=t,!r)for(let o=e.producers;o!==void 0;o=o.nextProducer)Fc(o.producer,o);}function vi(e){let t=e.producer,n=e.nextProducer,r=e.nextConsumer,o=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,r!==void 0?r.prevConsumer=o:t.consumersTail=o,o!==void 0)o.nextConsumer=r;else if(t.consumers=r,!qt$1(t)){let i=t.producers;for(;i!==void 0;)i=vi(i);}return n}function qt$1(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function th(e,t){let n=t.producersTail;if(n!==void 0){let r=t.producers;do{if(r===e)return true;if(r===n)break;r=r.nextProducer;}while(r!==void 0)}return false}function Tn$2(e,t){return Object.is(e,t)}function Sn$2(e,t){let n=Object.create(nh);n.computation=e;let r=()=>{if(yt$3(n),tt$2(n),n.value===Ae$2)throw n.error;return n.value};return r[P$1]=n,r}var Xe$2=Symbol(`UNSET`),mt$2=Symbol(`COMPUTING`),Ae$2=Symbol(`ERRORED`),nh=s(r({},et$2),{value:Xe$2,dirty:true,error:null,equal:Tn$2,kind:`computed`,producerMustRecompute(e){return e.value===Xe$2||e.value===mt$2},producerRecomputeValue(e){if(e.value===mt$2)throw new Error(``);let t=e.value;e.value=mt$2;let n=nt$1(e),r,o=false;try{r=e.computation(),v(null),o=t!==Xe$2&&t!==Ae$2&&r!==Ae$2&&e.equal(t,r);}catch(i){r=Ae$2,e.error=i;}finally{Dt$1(e,n);}if(o){e.value=t;return}e.value=r,e.version++;}});function rh(){throw new Error}var Lc=rh;function Pc(e){Lc(e);}function Ei(e){Lc=e;}function Ci(e,t){let n=Object.create(Mr);n.value=e;let r=()=>jc(n);return r[P$1]=n,[r,s=>rt(n,s),s=>Sr(n,s)]}function jc(e){return tt$2(e),e.value}function rt(e,t){Di$1()||Pc(e),e.equal(e.value,t)||(e.value=t,ih(e));}function Sr(e,t){Di$1()||Pc(e),rt(e,t(e.value));}var Mr=s(r({},et$2),{equal:Tn$2,value:void 0,kind:`signal`});function ih(e){e.version++,xc(),yi(e);}var Ii$1=s(r({},et$2),{consumerIsAlwaysLive:true,consumerAllowSignalWrites:true,dirty:true,kind:`effect`});function wi(e){if(e.dirty=false,e.version>0&&!wn$2(e))return;e.version++;let t=nt$1(e);try{e.cleanup(),e.fn();}finally{Dt$1(e,t);}}var _i;function br(){return _i}function Re$1(e){let t=_i;return _i=e,t}var Bc=Symbol(`NotFound`);function Zt$1(e){return e===Bc||e?.name===`ɵNotFound`}function Ti(e,t,n){let r=Object.create(sh);r.source=e,r.computation=t,n!=null&&(r.equal=n);let i=()=>{if(yt$3(r),tt$2(r),r.value===Ae$2)throw r.error;return r.value};return i[P$1]=r,i}function Vc(e,t){yt$3(e),rt(e,t),Wt$1(e);}function Hc(e,t){if(yt$3(e),e.value===Ae$2)throw e.error;Sr(e,t),Wt$1(e);}var sh=s(r({},et$2),{value:Xe$2,dirty:true,error:null,equal:Tn$2,kind:`linkedSignal`,producerMustRecompute(e){return e.value===Xe$2||e.value===mt$2},producerRecomputeValue(e){if(e.value===mt$2)throw new Error(``);let t=e.value;e.value=mt$2;let n=nt$1(e),r;try{let o=e.source(),i=t===Xe$2||t===Ae$2?void 0:{source:e.sourceValue,value:t};r=e.computation(o,i),e.sourceValue=o;}catch(o){r=Ae$2,e.error=o;}finally{Dt$1(e,n);}if(t!==Xe$2&&r!==Ae$2&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++;}});var Fr=`https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss`,m=class extends Error{code;constructor(t,n){super(_t$2(t,n)),this.code=t;}};function ah(e){return `NG0${Math.abs(e)}`}function _t$2(e,t){return `${ah(e)}${t?`: `+t:``}`}var de$2=globalThis;function A$1(e){for(let t in e)if(e[t]===A$1)return t;throw Error(``)}function Wc(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n]);}function Lr(e){if(typeof e==`string`)return e;if(Array.isArray(e))return `[${e.map(Lr).join(`, `)}]`;if(e==null)return ``+e;let t=e.overriddenName||e.name;if(t)return `${t}`;let n=e.toString();if(n==null)return ``+n;let r=n.indexOf(`
4
4
  `);return r>=0?n.slice(0,r):n}function Pr(e,t){return e?t?`${e} ${t}`:e:t||``}var ch=A$1({__forward_ref__:A$1});function On$2(e){return e.__forward_ref__=On$2,e}function z(e){return ji(e)?e():e}function ji(e){return typeof e==`function`&&e.hasOwnProperty(ch)&&e.__forward_ref__===On$2}function C(e){return {token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Tt$2(e){return {providers:e.providers||[],imports:e.imports||[]}}function jr(e){return uh(e,Br)}function uh(e,t){return e.hasOwnProperty(t)&&e[t]||null}function lh(e){return (e?.[Br]??null)||null}function Mi(e){return e&&e.hasOwnProperty(Ar)?e[Ar]:null}var Br=A$1({ɵprov:A$1}),Ar=A$1({ɵinj:A$1}),I$1=class I{_desc;ngMetadataName=`InjectionToken`;ɵprov;constructor(t,n){this._desc=t,this.ɵprov=void 0,typeof n==`number`?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.ɵprov=C({token:this,providedIn:n.providedIn||`root`,factory:n.factory}));}get multi(){return this}toString(){return `InjectionToken ${this._desc}`}};function Bi(e){return e&&!!e.ɵproviders}var Vi=A$1({ɵcmp:A$1}),Hi=A$1({ɵdir:A$1}),$i=A$1({ɵpipe:A$1});var bn$2=A$1({ɵfac:A$1}),St$2=A$1({__NG_ELEMENT_ID__:A$1}),$c=A$1({__NG_ENV_ID__:A$1});function ct(e){return Ui(e),e[Vi]||null}function Vr(e){return Ui(e),e[Hi]||null}function qc(e){return Ui(e),e[$i]||null}function Ui(e,t){if(e==null)throw new m(-919,false)}function Qt$1(e){return typeof e==`string`?e:e==null?``:String(e)}var Zc=A$1({ngErrorCode:A$1}),dh=A$1({ngErrorMessage:A$1});A$1({ngTokenPath:A$1});function zi(e,t){return Yc(``,-200)}function Hr(e,t){throw new m(-201,false)}function Yc(e,t,n){let r=new m(t,e);return r[Zc]=t,r[dh]=e,r}function ph(e){return e[Zc]}var bi;function Qc(){return bi}function J(e){let t=bi;return bi=e,t}function Gi(e,t,n){let r=jr(e);if(r&&r.providedIn==`root`)return r.value===void 0?r.value=r.factory():r.value;if(n&8)return null;if(t!==void 0)return t;Hr();}var Et$2={},gh=`__NG_DI_FLAG__`,Ni=class{injector;constructor(t){this.injector=t;}retrieve(t,n){let r=Ct$2(n)||0;try{return this.injector.get(t,r&8?null:Et$2,r)}catch(o){if(Zt$1(o))return o;throw o}}};function mh(e,t=0){let n=br();if(n===void 0)throw new m(-203,false);if(n===null)return Gi(e,void 0,t);{let r=yh(t),o=n.retrieve(e,r);if(Zt$1(o)){if(r.optional)return null;throw o}return o}}function T$1(e,t=0){return (Qc()||mh)(z(e),t)}function g(e,t){return T$1(e,Ct$2(t))}function Ct$2(e){return typeof e>`u`||typeof e==`number`?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function yh(e){return {optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function Ai(e){let t=[];for(let n=0;n<e.length;n++){let r=z(e[n]);if(Array.isArray(r)){if(r.length===0)throw new m(900,false);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=Dh(a);typeof c==`number`?c===-1?o=a.token:i|=c:o=a;}t.push(T$1(o,i));}else t.push(T$1(r));}return t}function Dh(e){return e[gh]}function ot$2(e,t){return e.hasOwnProperty(bn$2)?e[bn$2]:null}function Kc(e,t,n){if(e.length!==t.length)return false;for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(n&&(o=n(o),i=n(i)),i!==o)return false}return true}function Jc(e){return e.flat(Number.POSITIVE_INFINITY)}function $r(e,t){e.forEach(n=>Array.isArray(n)?$r(n,t):t(n));}function Wi(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n);}function kn$2(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Xc(e,t){let n=[];for(let r=0;r<e;r++)n.push(t);return n}function eu(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else {for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=r;}}function Fn$2(e,t,n){let r=Kt$1(e,t);return r>=0?e[r|1]=n:(r=~r,eu(e,r,t,n)),r}function Ur(e,t){let n=Kt$1(e,t);if(n>=0)return e[n|1]}function Kt$1(e,t){return vh(e,t,1)}function vh(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1;}return ~(o<<n)}var Ee$1={},Q=[],Jt=new I$1(``),Ln$2=new I$1(``,-1),qi=new I$1(``),Nn$2=class Nn{get(t,n=Et$2){if(n===Et$2){let o=Yc(``,-201);throw o.name=`ɵNotFound`,o}return n}};function zr(e){return {ɵproviders:e}}function tu(...e){return {ɵproviders:Zi(true,e),ɵfromNgModule:true}}function Zi(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s);};return $r(t,s=>{let a=s;Rr(a,i,[],r)&&(o||=[],o.push(a));}),o!==void 0&&nu(o,i),n}function nu(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];Yi(o,i=>{t(i,r);});}}function Rr(e,t,n,r){if(e=z(e),!e)return false;let o=null,i=Mi(e),s=!i&&ct(e);if(!i&&!s){let c=e.ngModule;if(i=Mi(c),i)o=c;else return false}else {if(s&&!s.standalone)return false;o=e;}let a=r.has(o);if(s){if(a)return false;if(r.add(o),s.dependencies){let c=typeof s.dependencies==`function`?s.dependencies():s.dependencies;for(let u of c)Rr(u,t,n,r);}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;$r(i.imports,l=>{Rr(l,t,n,r)&&(u||=[],u.push(l));}),u!==void 0&&nu(u,t);}if(!a){let u=ot$2(o)||(()=>new o);t({provide:o,useFactory:u,deps:Q},o),t({provide:qi,useValue:o,multi:true},o),t({provide:Jt,useValue:()=>T$1(o),multi:true},o);}let c=i.providers;if(c!=null&&!a){let u=e;Yi(c,l=>{t(l,u);});}}else return false;return o!==e&&e.providers!==void 0}function Yi(e,t){for(let n of e)Bi(n)&&(n=n.ɵproviders),Array.isArray(n)?Yi(n,t):t(n);}var Eh=A$1({provide:String,useValue:A$1});function ru(e){return e!==null&&typeof e==`object`&&Eh in e}function Ch(e){return !!(e&&e.useExisting)}function Ih(e){return !!(e&&e.useFactory)}function It$2(e){return typeof e==`function`}function ou(e){return !!e.useClass}var Pn$2=new I$1(``),Nr={},Uc={},Si;function Xt$1(){return Si===void 0&&(Si=new Nn$2),Si}var re$1=class re{},wt$2=class wt extends re$1{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=false;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,xi(t,s=>this.processProvider(s)),this.records.set(Ln$2,Yt$1(void 0,this)),o.has(`environment`)&&this.records.set(re$1,Yt$1(void 0,this));let i=this.records.get(Pn$2);i!=null&&typeof i.value==`string`&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(qi,Q,{self:true}));}retrieve(t,n){let r=Ct$2(n)||0;try{return this.get(t,Et$2,r)}catch(o){if(Zt$1(o))return o;throw o}}destroy(){Mn$2(this),this._destroyed=true;let t=v(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r();}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),v(t);}}onDestroy(t){return Mn$2(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Mn$2(this);let n=Re$1(this),r=J(void 0);try{return t()}finally{Re$1(n),J(r);}}get(t,n=Et$2,r){if(Mn$2(this),t.hasOwnProperty($c))return t[$c](this);let o=Ct$2(r),s=Re$1(this),a=J(void 0);try{if(!(o&4)){let u=this.records.get(t);if(u===void 0){let l=Mh(t)&&jr(t);l&&this.injectableDefInScope(l)?u=Yt$1(Ri(t),Nr):u=null,this.records.set(t,u);}if(u!=null)return this.hydrate(t,u,o)}let c=o&2?Xt$1():this.parent;return n=o&8&&n===Et$2?null:n,c.get(t,n)}catch(c){let u=ph(c);throw u===-200||u===-201?new m(u,null):c}finally{J(a),Re$1(s);}}resolveInjectorInitializers(){let t=v(null),n=Re$1(this),r=J(void 0);try{let i=this.get(Jt,Q,{self:!0});for(let s of i)s();}finally{Re$1(n),J(r),v(t);}}toString(){return `R3Injector[...]`}processProvider(t){t=z(t);let n=It$2(t)?t:z(t&&t.provide),r=_h(t);if(!It$2(t)&&t.multi===true){let o=this.records.get(n);o||(o=Yt$1(void 0,Nr,true),o.factory=()=>Ai(o.multi),this.records.set(n,o)),n=t,o.multi.push(t);}this.records.set(n,r);}hydrate(t,n,r){let o=v(null);try{if(n.value===Uc)throw zi(``);return n.value===Nr&&(n.value=Uc,n.value=n.factory(void 0,r)),typeof n.value==`object`&&n.value&&Sh(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{v(o);}}injectableDefInScope(t){if(!t.providedIn)return false;let n=z(t.providedIn);return typeof n==`string`?n===`any`||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1);}};function Ri(e){let t=jr(e),n=t!==null?t.factory:ot$2(e);if(n!==null)return n;if(e instanceof I$1)throw new m(-204,false);if(e instanceof Function)return wh(e);throw new m(-204,false)}function wh(e){if(e.length>0)throw new m(-204,false);let n=lh(e);return n!==null?()=>n.factory(e):()=>new e}function _h(e){if(ru(e))return Yt$1(void 0,e.useValue);return Yt$1(Qi(e),Nr)}function Qi(e,t,n){let r;if(It$2(e)){let o=z(e);return ot$2(o)||Ri(o)}else if(ru(e))r=()=>z(e.useValue);else if(Ih(e))r=()=>e.useFactory(...Ai(e.deps||[]));else if(Ch(e))r=(o,i)=>T$1(z(e.useExisting),i!==void 0&&i&8?8:void 0);else {let o=z(e&&(e.useClass||e.provide));if(Th(e))r=()=>new o(...Ai(e.deps));else return ot$2(o)||Ri(o)}return r}function Mn$2(e){if(e.destroyed)throw new m(-205,false)}function Yt$1(e,t,n=false){return {factory:e,value:t,multi:n?[]:void 0}}function Th(e){return !!e.deps}function Sh(e){return e!==null&&typeof e==`object`&&typeof e.ngOnDestroy==`function`}function Mh(e){return typeof e==`function`||typeof e==`object`&&e.ngMetadataName===`InjectionToken`}function xi(e,t){for(let n of e)Array.isArray(n)?xi(n,t):n&&Bi(n)?xi(n.ɵproviders,t):t(n);}function Gr(e,t){let n;e instanceof wt$2?(Mn$2(e),n=e):n=new Ni(e);let o=Re$1(n),i=J(void 0);try{return t()}finally{Re$1(o),J(i);}}function iu(){return Qc()!==void 0||br()!=null}var Ce$1=0,y=1,E$1=2,G=3,fe$1=4,ee$1=5,Mt$2=6,en$1=7,j$1=8,Ue$1=9,xe$1=10,b$1=11,tn$1=12,Ki=13,bt$2=14,te=15,ut$3=16,Nt$2=17,Oe=18,ke$1=19,Ji=20,$e=21,Wr=22,it$2=23,se$1=24,At$2=25,Fe$2=26,R=27,su=1,Xi=6,lt$1=7,jn$2=8,Rt$2=9,L$1=10;function Le$1(e){return Array.isArray(e)&&typeof e[su]==`object`}function pe$1(e){return Array.isArray(e)&&e[su]===true}function es(e){return (e.flags&4)!==0}function Pe$1(e){return e.componentOffset>-1}function nn$1(e){return (e.flags&1)===1}function Ie$1(e){return !!e.template}function rn$2(e){return (e[E$1]&512)!==0}function xt$1(e){return (e[E$1]&256)===256}var ts=`svg`,au=`math`;function he$2(e){for(;Array.isArray(e);)e=e[Ce$1];return e}function ns(e,t){return he$2(t[e])}function ge$2(e,t){return he$2(t[e.index])}function Bn$2(e,t){return e.data[t]}function Vn$2(e,t){return e[t]}function Hn$2(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r;}function ae$1(e,t){let n=t[e];return Le$1(n)?n:n[Ce$1]}function cu(e){return (e[E$1]&4)===4}function qr(e){return (e[E$1]&128)===128}function uu(e){return pe$1(e[G])}function me$1(e,t){return t==null?null:e[t]}function rs(e){e[Nt$2]=0;}function Zr(e){e[E$1]&1024||(e[E$1]|=1024,qr(e)&&Ot$2(e));}function lu(e,t){for(;e>0;)t=t[bt$2],e--;return t}function on$1(e){return !!(e[E$1]&9216||e[se$1]?.dirty)}function Yr(e){e[xe$1].changeDetectionScheduler?.notify(8),e[E$1]&64&&(e[E$1]|=1024),on$1(e)&&Ot$2(e);}function Ot$2(e){e[xe$1].changeDetectionScheduler?.notify(0);let t=st(e);for(;t!==null&&!(t[E$1]&8192||(t[E$1]|=8192,!qr(t)));)t=st(t);}function os(e,t){if(xt$1(e))throw new m(911,false);e[$e]===null&&(e[$e]=[]),e[$e].push(t);}function du(e,t){if(e[$e]===null)return;let n=e[$e].indexOf(t);n!==-1&&e[$e].splice(n,1);}function st(e){let t=e[G];return pe$1(t)?t[G]:t}function is(e){return e[en$1]??=[]}function ss(e){return e.cleanup??=[]}function fu(e,t,n,r){let o=is(t);o.push(n),e.firstCreatePass&&ss(e).push(r,o.length-1);}var w$1={lFrame:_u(null),bindingsEnabled:true,skipHydrationRootTNode:null};var Oi=false;function pu(){return w$1.lFrame.elementDepthCount}function hu(){w$1.lFrame.elementDepthCount++;}function as(){w$1.lFrame.elementDepthCount--;}function Qr(){return w$1.bindingsEnabled}function cs(){return w$1.skipHydrationRootTNode!==null}function us(e){return w$1.skipHydrationRootTNode===e}function ls(){w$1.skipHydrationRootTNode=null;}function D(){return w$1.lFrame.lView}function O$1(){return w$1.lFrame.tView}function gu(e){return w$1.lFrame.contextLView=e,e[j$1]}function mu(e){return w$1.lFrame.contextLView=null,e}function q(){let e=ds();for(;e!==null&&e.type===64;)e=e.parent;return e}function ds(){return w$1.lFrame.currentTNode}function yu(){let e=w$1.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function kt$2(e,t){let n=w$1.lFrame;n.currentTNode=e,n.isParent=t;}function fs(){return w$1.lFrame.isParent}function ps(){w$1.lFrame.isParent=false;}function hs(){return w$1.lFrame.contextLView}function gs(){return Oi}function An$2(e){let t=Oi;return Oi=e,t}function $n$2(){let e=w$1.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Du(e){return w$1.lFrame.bindingIndex=e}function je$1(){return w$1.lFrame.bindingIndex++}function ms(e){let t=w$1.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function vu(){return w$1.lFrame.inI18n}function Eu(e,t){let n=w$1.lFrame;n.bindingIndex=n.bindingRootIndex=e,Kr(t);}function Cu(){return w$1.lFrame.currentDirectiveIndex}function Kr(e){w$1.lFrame.currentDirectiveIndex=e;}function Iu(e){let t=w$1.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Jr(){return w$1.lFrame.currentQueryIndex}function Un$2(e){w$1.lFrame.currentQueryIndex=e;}function bh(e){let t=e[y];return t.type===2?t.declTNode:t.type===1?e[ee$1]:null}function ys(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=bh(i),o===null||(i=i[bt$2],o.type&10))break;if(o===null)return false;t=o,e=i;}let r=w$1.lFrame=wu();return r.currentTNode=t,r.lView=e,true}function Xr(e){let t=wu(),n=e[y];w$1.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=false;}function wu(){let e=w$1.lFrame,t=e===null?null:e.child;return t===null?_u(e):t}function _u(e){let t={currentTNode:null,isParent:true,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:false};return e!==null&&(e.child=t),t}function Tu(){let e=w$1.lFrame;return w$1.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Ds=Tu;function eo$1(){let e=Tu();e.isParent=true,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0;}function Su(e){return (w$1.lFrame.contextLView=lu(e,w$1.lFrame.contextLView))[j$1]}function Be$1(){return w$1.lFrame.selectedIndex}function dt$2(e){w$1.lFrame.selectedIndex=e;}function sn$2(){let e=w$1.lFrame;return Bn$2(e.tView,e.selectedIndex)}function Mu(){w$1.lFrame.currentNamespace=ts;}function bu(){Nh();}function Nh(){w$1.lFrame.currentNamespace=null;}function Nu(){return w$1.lFrame.currentNamespace}var Au=true;function to$1(){return Au}function zn$2(e){Au=e;}function ki$1(e,t=null,n=null,r){let o=Ru(e,t,n);return o.resolveInjectorInitializers(),o}function Ru(e,t=null,n=null,r,o=new Set){return new wt$2([n||Q,tu(e)],t||Xt$1(),null,o)}var Z=class e{static THROW_IF_NOT_FOUND=Et$2;static NULL=new Nn$2;static create(t,n){if(Array.isArray(t))return ki$1({name:``},n,t);{let r=t.name??``;return ki$1({name:r},t.parent,t.providers)}}static ɵprov=C({token:e,providedIn:`any`,factory:()=>T$1(Ln$2)});static __NG_ELEMENT_ID__=-1},B$1=new I$1(``),ze=(()=>{class e{static __NG_ELEMENT_ID__=Ah;static __NG_ENV_ID__=n=>n}return e})(),xr=class extends ze{_lView;constructor(t){super(),this._lView=t;}get destroyed(){return xt$1(this._lView)}onDestroy(t){let n=this._lView;return os(n,t),()=>du(n,t)}};function Ah(){return new xr(D())}var xu=false,Ou=new I$1(``),an$2=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=false;pendingTask=new Sr$1(false);debugTaskTracker=g(Ou,{optional:true});get hasPendingTasks(){return this.destroyed?false:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new m$1(n=>{n.next(false),n.complete();}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(true);let n=this.taskId++;return this.pendingTasks.add(n),this.debugTaskTracker?.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.debugTaskTracker?.remove(n),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(false);}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(false),this.destroyed=true,this.pendingTask.unsubscribe();}static ɵprov=C({token:e,providedIn:`root`,factory:()=>new e})}return e})(),Fi=class extends U{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=false){super(),this.__isAsync=t,iu()&&(this.destroyRef=g(ze,{optional:true})??void 0,this.pendingTasks=g(an$2,{optional:true})??void 0);}emit(t){let n=v(null);try{super.next(t);}finally{v(n);}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t==`object`){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c);}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof v$1&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{t(n);}finally{r!==void 0&&this.pendingTasks?.remove(r);}});}}},ve$1=Fi;function Or(...e){}function vs(e){let t,n;function r(){e=Or;try{n!==void 0&&typeof cancelAnimationFrame==`function`&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t);}catch{}}return t=setTimeout(()=>{e(),r();}),typeof requestAnimationFrame==`function`&&(n=requestAnimationFrame(()=>{e(),r();})),()=>r()}function ku(e){return queueMicrotask(()=>e()),()=>{e=Or;}}var Es=`isAngularZone`,Rn$2=Es+`_ID`,Rh=0,X=class e{hasPendingMacrotasks=false;hasPendingMicrotasks=false;isStable=true;onUnstable=new ve$1(false);onMicrotaskEmpty=new ve$1(false);onStable=new ve$1(false);onError=new ve$1(false);constructor(t){let{enableLongStackTrace:n=false,shouldCoalesceEventChangeDetection:r=false,shouldCoalesceRunChangeDetection:o=false,scheduleInRootZone:i=xu}=t;if(typeof Zone>`u`)throw new m(908,false);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=false,s.scheduleInRootZone=i,kh(s);}static isInAngularZone(){return typeof Zone<`u`&&Zone.current.get(Es)===true}static assertInAngularZone(){if(!e.isInAngularZone())throw new m(909,false)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new m(909,false)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask(`NgZoneEvent: `+o,t,xh,Or,Or);try{return i.runTask(s,n,r)}finally{i.cancelTask(s);}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},xh={};function Cs(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null);}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null));}finally{e.isStable=true;}}}function Oh(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=true;function t(){vs(()=>{e.callbackScheduled=false,Li(e),e.isCheckStableRunning=true,Cs(e),e.isCheckStableRunning=false;});}e.scheduleInRootZone?Zone.root.run(()=>{t();}):e._outer.run(()=>{t();}),Li(e);}function kh(e){let t=()=>{Oh(e);},n=Rh++;e._inner=e._inner.fork({name:`angular`,properties:{[Es]:true,[Rn$2]:n,[Rn$2+n]:true},onInvokeTask:(r,o,i,s,a,c)=>{if(Fh(c))return r.invokeTask(i,s,a,c);try{return zc(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type===`eventTask`||e.shouldCoalesceRunChangeDetection)&&t(),Gc(e);}},onInvoke:(r,o,i,s,a,c,u)=>{try{return zc(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Lh(c)&&t(),Gc(e);}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change==`microTask`?(e._hasPendingMicrotasks=s.microTask,Li(e),Cs(e)):s.change==`macroTask`&&(e.hasPendingMacrotasks=s.macroTask));},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),false)});}function Li(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===true?e.hasPendingMicrotasks=true:e.hasPendingMicrotasks=false;}function zc(e){e._nesting++,e.isStable&&(e.isStable=false,e.onUnstable.emit(null));}function Gc(e){e._nesting--,Cs(e);}var xn$2=class xn{hasPendingMicrotasks=false;hasPendingMacrotasks=false;isStable=true;onUnstable=new ve$1;onMicrotaskEmpty=new ve$1;onStable=new ve$1;onError=new ve$1;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function Fh(e){return Fu(e,`__ignore_ng_zone__`)}function Lh(e){return Fu(e,`__scheduler_tick__`)}function Fu(e,t){return !Array.isArray(e)||e.length!==1?false:e[0]?.data?.[t]===true}var le$1=class le{_console=console;handleError(t){this._console.error(`ERROR`,t);}},Ft$2=new I$1(``,{factory:()=>{let e=g(X),t=g(re$1),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(le$1),n.handleError(r));});}}}),Lu={provide:Jt,useValue:()=>{g(le$1,{optional:true});},multi:true};function Lt$2(e,t){let[n,r,o]=Ci(e),i=n;i[P$1];return i.set=r,i.update=o,i.asReadonly=Gn$2.bind(i),i}function Gn$2(){let e=this[P$1];if(e.readonlyFn===void 0){let t=()=>this();t[P$1]=e,e.readonlyFn=t;}return e.readonlyFn}var Wn$2=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r;}static __NG_ELEMENT_ID__=Ph}return e})();function Ph(){return new Wn$2(D(),q())}var at=class{},qn$2=new I$1(``,{factory:()=>true});var Is=new I$1(``);var no$1=(()=>{class e{static ɵprov=C({token:e,providedIn:`root`,factory:()=>new Pi$1})}return e})(),Pi$1=class Pi{dirtyEffectCount=0;queues=new Map;add(t){this.enqueue(t),this.schedule(t);}schedule(t){t.dirty&&this.dirtyEffectCount++;}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),t.dirty&&this.dirtyEffectCount--);}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||r.add(t);}flush(){for(;this.dirtyEffectCount>0;){let t=false;for(let[n,r]of this.queues)n===null?t||=this.flushQueue(r):t||=n.run(()=>this.flushQueue(r));t||(this.dirtyEffectCount=0);}}flushQueue(t){let n=false;for(let r of t)r.dirty&&(this.dirtyEffectCount--,n=true,r.run());return n}},kr=class{[P$1];constructor(t){this[P$1]=t;}destroy(){this[P$1].destroy();}};function ws(e,t){let n=g(Z),r=n.get(ze),o,i=n.get(Wn$2,null,{optional:true}),s=n.get(at);return i!==null?(o=Vh(i.view,s,e),r instanceof xr&&r._lView===i.view&&(r=null)):o=Hh(e,n.get(no$1),s),o.injector=n,r!==null&&(o.onDestroyFns=[r.onDestroy(()=>o.destroy())]),new kr(o)}var Pu=s(r({},Ii$1),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let e=An$2(false);try{wi(this);}finally{An$2(e);}},cleanup(){if(!this.cleanupFns?.length)return;let e=v(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()();}finally{this.cleanupFns=[],v(e);}}}),jh=s(r({},Pu),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12);},destroy(){if(vt$3(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.scheduler.remove(this);}}),Bh=s(r({},Pu),{consumerMarkedDirty(){this.view[E$1]|=8192,Ot$2(this.view),this.notifier.notify(13);},destroy(){if(vt$3(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.view[it$2]?.delete(this);}});function Vh(e,t,n){let r=Object.create(Bh);return r.view=e,r.zone=typeof Zone<`u`?Zone.current:null,r.notifier=t,r.fn=ju(r,n),e[it$2]??=new Set,e[it$2].add(r),r.consumerMarkedDirty(r),r}function Hh(e,t,n){let r=Object.create(jh);return r.fn=ju(r,e),r.scheduler=t,r.notifier=n,r.zone=typeof Zone<`u`?Zone.current:null,r.scheduler.add(r),r.notifier.notify(12),r}function ju(e,t){return ()=>{t(n=>(e.cleanupFns??=[]).push(n));}}function or(e){return {toString:e}.toString()}function Xh(e){return typeof e==`function`}function Il(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r;}var po$1=class po{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r;}isFirstChange(){return this.firstChange}},Mo=(()=>{let e=()=>wl;return e.ngInherit=true,e})();function wl(e){return e.type.prototype.ngOnChanges&&(e.setInput=tg),eg}function eg(){let e=Tl(this),t=e?.current;if(t){let n=e.previous;if(n===Ee$1)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t);}}function tg(e,t,n,r,o){let i=this.declaredInputs[r],s=Tl(e)||ng(e,{previous:Ee$1,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new po$1(u&&u.currentValue,n,c===Ee$1),Il(e,t,o,n);}var _l=`__ngSimpleChanges__`;function Tl(e){return e[_l]||null}function ng(e,t){return e[_l]=t}var Bu=[];var M$2=function(e,t=null,n){for(let r=0;r<Bu.length;r++){let o=Bu[r];o(e,t,n);}},S=(function(e){return e[e.TemplateCreateStart=0]=`TemplateCreateStart`,e[e.TemplateCreateEnd=1]=`TemplateCreateEnd`,e[e.TemplateUpdateStart=2]=`TemplateUpdateStart`,e[e.TemplateUpdateEnd=3]=`TemplateUpdateEnd`,e[e.LifecycleHookStart=4]=`LifecycleHookStart`,e[e.LifecycleHookEnd=5]=`LifecycleHookEnd`,e[e.OutputStart=6]=`OutputStart`,e[e.OutputEnd=7]=`OutputEnd`,e[e.BootstrapApplicationStart=8]=`BootstrapApplicationStart`,e[e.BootstrapApplicationEnd=9]=`BootstrapApplicationEnd`,e[e.BootstrapComponentStart=10]=`BootstrapComponentStart`,e[e.BootstrapComponentEnd=11]=`BootstrapComponentEnd`,e[e.ChangeDetectionStart=12]=`ChangeDetectionStart`,e[e.ChangeDetectionEnd=13]=`ChangeDetectionEnd`,e[e.ChangeDetectionSyncStart=14]=`ChangeDetectionSyncStart`,e[e.ChangeDetectionSyncEnd=15]=`ChangeDetectionSyncEnd`,e[e.AfterRenderHooksStart=16]=`AfterRenderHooksStart`,e[e.AfterRenderHooksEnd=17]=`AfterRenderHooksEnd`,e[e.ComponentStart=18]=`ComponentStart`,e[e.ComponentEnd=19]=`ComponentEnd`,e[e.DeferBlockStateStart=20]=`DeferBlockStateStart`,e[e.DeferBlockStateEnd=21]=`DeferBlockStateEnd`,e[e.DynamicComponentStart=22]=`DynamicComponentStart`,e[e.DynamicComponentEnd=23]=`DynamicComponentEnd`,e[e.HostBindingsUpdateStart=24]=`HostBindingsUpdateStart`,e[e.HostBindingsUpdateEnd=25]=`HostBindingsUpdateEnd`,e})(S||{});function rg(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=wl(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s);}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i));}function Sl(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:u,ngOnDestroy:l}=e.data[n].type.prototype;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),u&&((e.viewHooks??=[]).push(n,u),(e.viewCheckHooks??=[]).push(n,u)),l!=null&&(e.destroyHooks??=[]).push(n,l);}}function ao$1(e,t,n){Ml(e,t,3,n);}function co$1(e,t,n,r){(e[E$1]&3)===n&&Ml(e,t,n,r);}function _s(e,t){let n=e[E$1];(n&3)===t&&(n&=16383,n+=1,e[E$1]=n);}function Ml(e,t,n,r){let o=r!==void 0?e[Nt$2]&65535:0,i=r??-1,s=t.length-1,a=0;for(let c=o;c<s;c++)if(typeof t[c+1]==`number`){if(a=t[c],r!=null&&a>=r)break}else t[c]<0&&(e[Nt$2]+=65536),(a<i||i==-1)&&(og(e,n,t,c),e[Nt$2]=(e[Nt$2]&4294901760)+c+2),c++;}function Vu(e,t){M$2(S.LifecycleHookStart,e,t);let n=v(null);try{t.call(e);}finally{v(n),M$2(S.LifecycleHookEnd,e,t);}}function og(e,t,n,r){let o=n[r]<0,i=n[r+1],a=e[o?-n[r]:n[r]];o?e[E$1]>>14<e[Nt$2]>>16&&(e[E$1]&3)===t&&(e[E$1]+=16384,Vu(a,i)):Vu(a,i);}var un$2=-1,jt$1=class jt{factory;name;injectImpl;resolving=false;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r,o){this.factory=t,this.name=o,this.canSeeViewProviders=n,this.injectImpl=r;}};function ig(e){return (e.flags&8)!==0}function sg(e){return (e.flags&16)!==0}function ag(e,t,n){let r=0;for(;r<n.length;){let o=n[r];if(typeof o==`number`){if(o!==0)break;r++;let i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i);}else {let i=o,s=n[++r];ug(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++;}}return r}function cg(e){return e===3||e===4||e===6}function ug(e){return e.charCodeAt(0)===64}function ln$2(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else {let n=-1;for(let r=0;r<t.length;r++){let o=t[r];typeof o==`number`?n=o:n===0||(n===-1||n===2?Hu(e,n,o,null,t[++r]):Hu(e,n,o,null,null));}}return e}function Hu(e,t,n,r,o){let i=0,s=e.length;if(t===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a==`number`){if(a===t){s=-1;break}else if(a>t){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a==`number`)break;if(a===n){o!==null&&(e[i+1]=o);return}i++,o!==null&&i++;}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),o!==null&&e.splice(i++,0,o);}function bl(e){return e!==un$2}function ho(e){return e&32767}function lg(e){return e>>16}function go$1(e,t){let n=lg(e),r=t;for(;n>0;)r=r[bt$2],n--;return r}var Fs=true;function mo$1(e){let t=Fs;return Fs=e,t}var Nl=255,Al=5,fg=0,Ve$1={};function pg(e,t,n){let r;typeof n==`string`?r=n.charCodeAt(0)||0:n.hasOwnProperty(St$2)&&(r=n[St$2]),r??=n[St$2]=fg++;let o=r&Nl,i=1<<o;t.data[e+(o>>Al)]|=i;}function yo(e,t){let n=Rl(e,t);if(n!==-1)return n;let r=t[y];r.firstCreatePass&&(e.injectorIndex=t.length,Ts(r.data,e),Ts(t,null),Ts(r.blueprint,null));let o=Ea(e,t),i=e.injectorIndex;if(bl(o)){let s=ho(o),a=go$1(o,t),c=a[y].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u];}return t[i+8]=o,i}function Ts(e,t){e.push(0,0,0,0,0,0,0,0,t);}function Rl(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Ea(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=Pl(o),r===null)return un$2;if(n++,o=o[bt$2],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return un$2}function Ls(e,t,n){pg(e,t,n);}function xl(e,t,n){if(n&8||e!==void 0)return e;Hr();}function Ol(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[Ue$1],i=J(void 0);try{return o?o.get(t,r,n&8):Gi(t,r,n&8)}finally{J(i);}}return xl(r,t,n)}function kl(e,t,n,r=0,o){if(e!==null){if(t[E$1]&2048&&!(r&2)){let s=yg(e,t,n,r,Ve$1);if(s!==Ve$1)return s}let i=Fl(e,t,n,r,Ve$1);if(i!==Ve$1)return i}return Ol(t,n,r,o)}function Fl(e,t,n,r,o){let i=gg(n);if(typeof i==`function`){if(!ys(t,e,r))return r&1?xl(o,n,r):Ol(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))Hr(n);else return s}finally{Ds();}}else if(typeof i==`number`){let s=null,a=Rl(e,t),c=un$2,u=r&1?t[te][ee$1]:null;for((a===-1||r&4)&&(c=a===-1?Ea(e,t):t[a+8],c===un$2||!Uu(r,false)?a=-1:(s=t[y],a=ho(c),t=go$1(c,t)));a!==-1;){let l=t[y];if($u(i,a,l.data)){let d=hg(a,t,n,s,r,u);if(d!==Ve$1)return d}c=t[a+8],c!==un$2&&Uu(r,t[y].data[a+8]===u)&&$u(i,a,t)?(s=l,a=ho(c),t=go$1(c,t)):a=-1;}}return o}function hg(e,t,n,r,o,i){let s=t[y],a=s.data[e+8],l=uo$1(a,s,n,r==null?Pe$1(a)&&Fs:r!=s&&(a.type&3)!==0,o&1&&i===a);return l!==null?Kn$2(t,s,l,a,o):Ve$1}function uo$1(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,u=e.directiveEnd,l=i>>20,d=r?a:a+l,p=o?a+l:u;for(let f=d;f<p;f++){let h=s[f];if(f<c&&n===h||f>=c&&h.type===n)return f}if(o){let f=s[c];if(f&&Ie$1(f)&&f.type===n)return c}return null}function Kn$2(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof jt$1){let a=i;if(a.resolving)throw zi();let c=mo$1(a.canSeeViewProviders);a.resolving=true;s[n].type||s[n];let d=a.injectImpl?J(a.injectImpl):null;ys(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&rg(n,s[n],t);}finally{d!==null&&J(d),mo$1(c),a.resolving=false,Ds();}}return i}function gg(e){if(typeof e==`string`)return e.charCodeAt(0)||0;let t=e.hasOwnProperty(St$2)?e[St$2]:void 0;return typeof t==`number`?t>=0?t&Nl:mg:t}function $u(e,t,n){let r=1<<e;return !!(n[t+(e>>Al)]&r)}function Uu(e,t){return !(e&2)&&!(e&1&&t)}var Pt$2=class Pt{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n;}get(t,n,r){return kl(this._tNode,this._lView,t,Ct$2(r),n)}};function mg(){return new Pt$2(q(),D())}function Ll(e){return or(()=>{let t=e.prototype.constructor,n=t[bn$2]||Ps(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[bn$2]||Ps(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o);}return i=>new i})}function Ps(e){return ji(e)?()=>{let t=Ps(z(e));return t&&t()}:ot$2(e)}function yg(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[E$1]&2048&&!rn$2(s);){let a=Fl(i,s,n,r|2,Ve$1);if(a!==Ve$1)return a;let c=i.parent;if(!c){let u=s[Ji];if(u){let l=u.get(n,Ve$1,r&-5);if(l!==Ve$1)return l}c=Pl(s),s=s[bt$2];}i=c;}return o}function Pl(e){let t=e[y],n=t.type;return n===2?t.declTNode:n===1?e[ee$1]:null}function Dg(){return mn$2(q(),D())}function mn$2(e,t){return new Se$1(ge$2(e,t))}var Se$1=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n;}static __NG_ELEMENT_ID__=Dg}return e})();function jl(e){return e instanceof Se$1?e.nativeElement:e}function vg(){return this._results[Symbol.iterator]()}var Do=class{_emitDistinctChangesOnly;dirty=true;_onDirty=void 0;_results=[];_changesDetected=false;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new U}constructor(t=false){this._emitDistinctChangesOnly=t;}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t);}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=false;let r=Jc(t);(this._changesDetected=!Kc(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0]);}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this);}onDirty(t){this._onDirty=t;}setDirty(){this.dirty=true,this._onDirty?.();}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe());}[Symbol.iterator]=vg};function Bl(e){return (e.flags&128)===128}var Ca=(function(e){return e[e.OnPush=0]=`OnPush`,e[e.Eager=1]=`Eager`,e[e.Default=1]=`Default`,e})(Ca||{}),Vl=new Map,Eg=0;function Cg(){return Eg++}function Ig(e){Vl.set(e[ke$1],e);}function js(e){Vl.delete(e[ke$1]);}var zu=`__ngContext__`;function dn$2(e,t){Le$1(t)?(e[zu]=t[ke$1],Ig(t)):e[zu]=t;}function Hl(e){return Ul(e[tn$1])}function $l(e){return Ul(e[fe$1])}function Ul(e){for(;e!==null&&!pe$1(e);)e=e[fe$1];return e}var Bs;function Ia(e){Bs=e;}function zl(){if(Bs!==void 0)return Bs;if(typeof document<`u`)return document;throw new m(210,false)}var yn$2=new I$1(``,{factory:()=>wg}),wg=`ng`;var bo=new I$1(``),Ht$1=new I$1(``,{providedIn:`platform`,factory:()=>`unknown`}),_g=new I$1(``),No=new I$1(``,{factory:()=>g(B$1).body?.querySelector(`[ngCspNonce]`)?.getAttribute(`ngCspNonce`)||null});var Gl=`r`;var Wl=`di`;var ql=false,Zl=new I$1(``,{factory:()=>ql});function Ao(e){return (e.flags&32)===32}var Mg=()=>null;function Yl(e,t,n=false){return Mg()}function Ql(e,t){let n=e.contentQueries;if(n!==null){let r=v(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=e.data[s];Un$2(i),a.contentQueries(2,t[s],s);}}}finally{v(r);}}}function Vs(e,t,n){Un$2(0);let r=v(null);try{t(e,n);}finally{v(r);}}function wa(e,t,n){if(es(t)){let r=v(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;s<i;s++){let a=e.data[s];if(a.contentQueries){let c=n[s];a.contentQueries(1,c,s);}}}finally{v(r);}}}var _e$2=(function(e){return e[e.Emulated=0]=`Emulated`,e[e.None=2]=`None`,e[e.ShadowDom=3]=`ShadowDom`,e[e.ExperimentalIsolatedShadowDom=4]=`ExperimentalIsolatedShadowDom`,e})(_e$2||{});var ro$1;function bg(){if(ro$1===void 0&&(ro$1=null,de$2.trustedTypes))try{ro$1=de$2.trustedTypes.createPolicy(`angular`,{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e});}catch{}return ro$1}function Ro$1(e){return bg()?.createHTML(e)||e}var oo$1;function Ng(){if(oo$1===void 0&&(oo$1=null,de$2.trustedTypes))try{oo$1=de$2.trustedTypes.createPolicy(`angular#unsafe-bypass`,{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e});}catch{}return oo$1}function Gu(e){return Ng()?.createHTML(e)||e}var Ge$2=class Ge{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t;}toString(){return `SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Fr})`}},Hs=class extends Ge$2{getTypeName(){return `HTML`}},$s=class extends Ge$2{getTypeName(){return `Style`}},Us=class extends Ge$2{getTypeName(){return `Script`}},zs=class extends Ge$2{getTypeName(){return `URL`}},Gs=class extends Ge$2{getTypeName(){return `ResourceURL`}};function ye$2(e){return e instanceof Ge$2?e.changingThisBreaksApplicationSecurity:e}function qe(e,t){let n=Kl(e);if(n!=null&&n!==t){if(n===`ResourceURL`&&t===`URL`)return true;throw new Error(`Required a safe ${t}, got a ${n} (see ${Fr})`)}return n===t}function Kl(e){return e instanceof Ge$2&&e.getTypeName()||null}function _a(e){return new Hs(e)}function Ta(e){return new $s(e)}function Sa(e){return new Us(e)}function Ma(e){return new zs(e)}function ba(e){return new Gs(e)}function Ag(e){let t=new qs(e);return Rg()?new Ws(t):t}var Ws=class{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t;}getInertBodyElement(t){t=`<body><remove></remove>`+t;try{let n=new window.DOMParser().parseFromString(Ro$1(t),`text/html`).body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}},qs=class{defaultDoc;inertDocument;constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument(`sanitization-inert`);}getInertBodyElement(t){let n=this.inertDocument.createElement(`template`);return n.innerHTML=Ro$1(t),n}};function Rg(){try{return !!new window.DOMParser().parseFromString(Ro$1(``),`text/html`)}catch{return false}}var xg=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function ir(e){return e=String(e),e.match(xg)?e:`unsafe:`+e}function Ze$1(e){let t={};for(let n of e.split(`,`))t[n]=true;return t}function sr(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=true);return t}var Jl=Ze$1(`area,br,col,hr,img,wbr`),Xl=Ze$1(`colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr`),ed=Ze$1(`rp,rt`),Og=sr(ed,Xl),Wu=sr(Jl,sr(Xl,Ze$1(`address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul`)),sr(ed,Ze$1(`a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video`)),Og),td=Ze$1(`background,cite,href,itemtype,longdesc,poster,src,xlink:href`),jg=sr(td,Ze$1(`abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width`),Ze$1(`aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext`)),Bg=Ze$1(`script,style,template`),Zs=class{sanitizedSomething=false;buf=[];sanitizeChildren(t){let n=t.firstChild,r=true,o=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=true,r&&n.firstChild){o.push(n),n=$g(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=Hg(n);if(i){n=i;break}n=o.pop();}}return this.buf.join(``)}startElement(t){let n=qu(t).toLowerCase();if(!Wu.hasOwnProperty(n))return this.sanitizedSomething=true,!Bg.hasOwnProperty(n);this.buf.push(`<`),this.buf.push(n);let r=t.attributes;for(let o=0;o<r.length;o++){let i=r.item(o),s=i.name,a=s.toLowerCase();if(!jg.hasOwnProperty(a)){this.sanitizedSomething=true;continue}let c=i.value;td[a]&&(c=ir(c)),this.buf.push(` `,s,`="`,Zu(c),`"`);}return this.buf.push(`>`),true}endElement(t){let n=qu(t).toLowerCase();Wu.hasOwnProperty(n)&&!Jl.hasOwnProperty(n)&&(this.buf.push(`</`),this.buf.push(n),this.buf.push(`>`));}chars(t){this.buf.push(Zu(t));}};function Vg(e,t){return (e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function Hg(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw nd(t);return t}function $g(e){let t=e.firstChild;if(t&&Vg(e,t))throw nd(t);return t}function qu(e){let t=e.nodeName;return typeof t==`string`?t:`FORM`}function nd(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var Ug=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,zg=/([^\#-~ |!])/g;function Zu(e){return e.replace(/&/g,`&amp;`).replace(Ug,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return `&#`+((n-55296)*1024+(r-56320)+65536)+`;`}).replace(zg,function(t){return `&#`+t.charCodeAt(0)+`;`}).replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}var io$1;function xo(e,t){let n=null;try{io$1=io$1||Ag(e);let r=t?String(t):``;n=io$1.getInertBodyElement(r);let o=5,i=r;do{if(o===0)throw new Error(`Failed to sanitize html because the input is unstable`);o--,r=i,i=n.innerHTML,n=io$1.getInertBodyElement(r);}while(r!==i);return Ro$1(new Zs().sanitizeChildren(Yu(n)||n))}finally{if(n){let r=Yu(n)||n;for(;r.firstChild;)r.firstChild.remove();}}}function Yu(e){return `content`in e&&Gg(e)?e.content:null}function Gg(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName===`TEMPLATE`}var Wg=/^>|^->|<!--|-->|--!>|<!-$/g,qg=/(<|>)/g,Zg=`​$1​`;function Yg(e){return e.replace(Wg,t=>t.replace(qg,Zg))}function Qg(e,t){return e.createText(t)}function Kg(e,t,n){e.setValue(t,n);}function Jg(e,t){return e.createComment(Yg(t))}function rd(e,t,n){return e.createElement(t,n)}function vo$1(e,t,n,r,o){e.insertBefore(t,n,r,o);}function od(e,t,n){e.appendChild(t,n);}function Qu(e,t,n,r,o){r!==null?vo$1(e,t,n,r,o):od(e,t,n);}function id(e,t,n,r){e.removeChild(null,t,n,r);}function Xg(e,t,n){e.setAttribute(t,`style`,n);}function em(e,t,n){n===``?e.removeAttribute(t,`class`):e.setAttribute(t,`class`,n);}function sd(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&ag(e,t,r),o!==null&&em(e,t,o),i!==null&&Xg(e,t,i);}var Me$1=(function(e){return e[e.NONE=0]=`NONE`,e[e.HTML=1]=`HTML`,e[e.STYLE=2]=`STYLE`,e[e.SCRIPT=3]=`SCRIPT`,e[e.URL=4]=`URL`,e[e.RESOURCE_URL=5]=`RESOURCE_URL`,e})(Me$1||{});function tm(e){let t=ad();return t?Gu(t.sanitize(Me$1.HTML,e)||``):qe(e,`HTML`)?Gu(ye$2(e)):xo(zl(),Qt$1(e))}function nm(e){let t=ad();return t?t.sanitize(Me$1.URL,e)||``:qe(e,`URL`)?ye$2(e):ir(Qt$1(e))}function ad(){let e=D();return e&&e[xe$1].sanitizer}function rm(e){return e.ownerDocument.defaultView}function om(e){return e.ownerDocument}function im(e,t,n){let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1;}}var cd=`ng-template`;function sm(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]==`string`;o+=2)if(t[o]===`class`&&im(t[o+1].toLowerCase(),n,0)!==-1)return true}else if(Na(e))return false;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&typeof(i=t[o])==`string`;)if(i.toLowerCase()===n)return true}return false}function Na(e){return e.type===4&&e.value!==cd}function am(e,t,n){return t===(e.type===4&&!n?cd:e.value)}function cm(e,t,n){let r=4,o=e.attrs,i=o!==null?dm(o):0,s=false;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c==`number`){if(!s&&!we$1(r)&&!we$1(c))return false;if(s&&we$1(c))continue;s=false,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==``&&!am(e,c,n)||c===``&&t.length===1){if(we$1(r))return false;s=true;}}else if(r&8){if(o===null||!sm(e,o,c,n)){if(we$1(r))return false;s=true;}}else {let u=t[++a],l=um(c,o,Na(e),n);if(l===-1){if(we$1(r))return false;s=true;continue}if(u!==``){let d;if(l>i?d=``:d=o[l+1].toLowerCase(),r&2&&u!==d){if(we$1(r))return false;s=true;}}}}return we$1(r)||s}function we$1(e){return (e&1)===0}function um(e,t,n,r){if(t===null)return -1;let o=0;if(r||!n){let i=false;for(;o<t.length;){let s=t[o];if(s===e)return o;if(s===3||s===6)i=true;else if(s===1||s===2){let a=t[++o];for(;typeof a==`string`;)a=t[++o];continue}else {if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2;}return -1}else return fm(t,e)}function ud(e,t,n=false){for(let r=0;r<t.length;r++)if(cm(e,t[r],n))return true;return false}function lm(e){let t=e.attrs;if(t!=null){let n=t.indexOf(5);if((n&1)===0)return t[n+1]}return null}function dm(e){for(let t=0;t<e.length;t++){let n=e[t];if(cg(n))return t}return e.length}function fm(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r==`number`)return -1;if(r===t)return n;n++;}return -1}function pm(e,t){e:for(let n=0;n<t.length;n++){let r=t[n];if(e.length===r.length){for(let o=0;o<e.length;o++)if(e[o]!==r[o])continue e;return true}}return false}function Ku(e,t){return e?`:not(`+t.trim()+`)`:t}function hm(e){let t=e[0],n=1,r=2,o=``,i=false;for(;n<e.length;){let s=e[n];if(typeof s==`string`)if(r&2){let a=e[++n];o+=`[`+s+(a.length>0?`="`+a+`"`:``)+`]`;}else r&8?o+=`.`+s:r&4&&(o+=` `+s);else o!==``&&!we$1(s)&&(t+=Ku(i,o),o=``),r=s,i=i||!we$1(r);n++;}return o!==``&&(t+=Ku(i,o)),t}function gm(e){return e.map(hm).join(`,`)}function mm(e){let t=[],n=[],r=1,o=2;for(;r<e.length;){let i=e[r];if(typeof i==`string`)o===2?i!==``&&t.push(i,e[++r]):o===8&&n.push(i);else {if(!we$1(o))break;o=i;}r++;}return n.length&&t.push(1,...n),t}var ce$2={};function Aa(e,t,n,r,o,i,s,a,c,u,l){let d=R+r,p=d+o,f=ym(d,p),h=typeof u==`function`?u():u;return f[y]={type:e,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:t,data:f.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:p,hostBindingOpCodes:null,firstCreatePass:true,firstUpdatePass:true,staticViewQueries:false,staticContentQueries:false,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof i==`function`?i():i,pipeRegistry:typeof s==`function`?s():s,firstChild:null,schemas:c,consts:h,incompleteFirstPass:false,ssrId:l}}function ym(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:ce$2);return n}function Dm(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Aa(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Ra(e,t,n,r,o,i,s,a,c,u,l){let d=t.blueprint.slice();return d[Ce$1]=o,d[E$1]=r|1228,(u!==null||e&&e[E$1]&2048)&&(d[E$1]|=2048),rs(d),d[G]=d[bt$2]=e,d[j$1]=n,d[xe$1]=s||e&&e[xe$1],d[b$1]=a||e&&e[b$1],d[Ue$1]=c||e&&e[Ue$1]||null,d[ee$1]=i,d[ke$1]=Cg(),d[Mt$2]=l,d[Ji]=u,d[te]=t.type==2?e[te]:d,d}function vm(e,t,n){let r=ge$2(t,e),o=Dm(n),i=e[xe$1].rendererFactory,s=xa(e,Ra(e,o,null,ld(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function ld(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function dd(e,t,n,r){if(n===0)return -1;let o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function xa(e,t){return e[tn$1]?e[Ki][fe$1]=t:e[tn$1]=t,e[Ki]=t,t}function fd(e=1){pd(O$1(),D(),Be$1()+e);}function pd(e,t,n,r){if((t[E$1]&3)===3){let i=e.preOrderCheckHooks;i!==null&&ao$1(t,i,n);}else {let i=e.preOrderHooks;i!==null&&co$1(t,i,0,n);}dt$2(n);}var Oo=(function(e){return e[e.None=0]=`None`,e[e.SignalBased=1]=`SignalBased`,e[e.HasDecoratorInputTransform=2]=`HasDecoratorInputTransform`,e})(Oo||{});function Ys(e,t,n,r){let o=v(null);try{let[i,s,a]=e.inputs[n],c=null;(s&Oo.SignalBased)!==0&&(c=t[i][P$1]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,c,r,n,i):Il(t,c,i,r);}finally{v(o);}}var Te$1=(function(e){return e[e.Important=1]=`Important`,e[e.DashCase=2]=`DashCase`,e})(Te$1||{}),Em;function Oa(e,t){return Em(e,t)}typeof document<`u`&&document?.documentElement?.getAnimations;var Qs=new WeakMap;function Cm(e,t){let n=Qs.get(e);if(!n||n.length===0)return;let r=t.parentNode,o=t.previousSibling;for(let i=n.length-1;i>=0;i--){let s=n[i],a=s.parentNode;(o&&s===o||a&&r&&a!==r)&&(n.splice(i,1),s.dispatchEvent(new CustomEvent(`animationend`,{detail:{cancel:true}})),s.parentNode?.removeChild(s));}}function Im(e,t){let n=Qs.get(e);n?n.includes(t)||n.push(t):Qs.set(e,[t]);}var ft$3=new Set,ko=(function(e){return e[e.CHANGE_DETECTION=0]=`CHANGE_DETECTION`,e[e.AFTER_NEXT_RENDER=1]=`AFTER_NEXT_RENDER`,e})(ko||{}),$t$1=new I$1(``),Ju=new Set;function Ye$2(e){Ju.has(e)||(Ju.add(e),performance?.mark?.(`mark_feature_usage`,{detail:{feature:e}}));}var ka=(()=>{class e{impl=null;execute(){this.impl?.execute();}static ɵprov=C({token:e,providedIn:`root`,factory:()=>new e})}return e})(),hd=[0,1,2,3],gd=(()=>{class e{ngZone=g(X);scheduler=g(at);errorHandler=g(le$1,{optional:true});sequences=new Set;deferredRegistrations=new Set;executing=false;constructor(){g($t$1,{optional:true});}execute(){let n=this.sequences.size>0;n&&M$2(S.AfterRenderHooksStart),this.executing=true;for(let r of hd)for(let o of this.sequences)if(!(o.erroredOrDestroyed||!o.hooks[r]))try{o.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let i=o.hooks[r];return i(o.pipelinedValue)},o.snapshot));}catch(i){o.erroredOrDestroyed=true,this.errorHandler?.handleError(i);}this.executing=false;for(let r of this.sequences)r.afterRun(),r.once&&(this.sequences.delete(r),r.destroy());for(let r of this.deferredRegistrations)this.sequences.add(r);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),n&&M$2(S.AfterRenderHooksEnd);}register(n){let{view:r}=n;r!==void 0?((r[At$2]??=[]).push(n),Ot$2(r),r[E$1]|=8192):this.executing?this.deferredRegistrations.add(n):this.addSequence(n);}addSequence(n){this.sequences.add(n),this.scheduler.notify(7);}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=true,n.pipelinedValue=void 0,n.once=true):(this.sequences.delete(n),this.deferredRegistrations.delete(n));}maybeTrace(n,r){return r?r.run(ko.AFTER_NEXT_RENDER,n):n()}static ɵprov=C({token:e,providedIn:`root`,factory:()=>new e})}return e})(),Eo=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=false;pipelinedValue=void 0;unregisterOnDestroy;constructor(t,n,r,o,i,s=null){this.impl=t,this.hooks=n,this.view=r,this.once=o,this.snapshot=s,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy());}afterRun(){this.erroredOrDestroyed=false,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null;}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let t=this.view?.[At$2];t&&(this.view[At$2]=t.filter(n=>n!==this));}};function md(e,t){let n=t?.injector??g(Z);return Ye$2(`NgAfterNextRender`),_m(e,n,t,true)}function wm(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function _m(e,t,n,r){let o=t.get(ka);o.impl??=t.get(gd);let i=t.get($t$1,null,{optional:true}),s=n?.manualCleanup!==true?t.get(ze):null,a=t.get(Wn$2,null,{optional:true}),c=new Eo(o.impl,wm(e),a?.view,r,s,i?.snapshot(null));return o.impl.register(c),c}var yd=new I$1(``,{factory:()=>{let e=g(re$1),t=new Set;return e.onDestroy(()=>t.clear()),{queue:t,isScheduled:false,scheduler:null,injector:e}}});function Dd(e,t,n){let r=e.get(yd);if(Array.isArray(t))for(let o of t)r.queue.add(o),n?.detachedLeaveAnimationFns?.push(o);else r.queue.add(t),n?.detachedLeaveAnimationFns?.push(t);r.scheduler&&r.scheduler(e);}function Tm(e,t){let n=e.get(yd);if(t.detachedLeaveAnimationFns){for(let r of t.detachedLeaveAnimationFns)n.queue.delete(r);t.detachedLeaveAnimationFns=void 0;}}function Sm(e,t){for(let[n,r]of t)Dd(e,r.animateFns);}function Xu(e,t,n,r){let o=e?.[Fe$2]?.enter;t!==null&&o&&o.has(n.index)&&Sm(r,o);}function el(e,t,n,r){try{n.get(Ln$2);}catch{return r(false)}let o=e?.[Fe$2],i=Mm(e,t,o);if(i.size===0){let s=false;if(e){let a=[];Fo(e,t,a),s=a.length>0;}if(!s)return r(false)}e&&ft$3.add(e[ke$1]),Dd(n,()=>bm(e,t,o||void 0,i,r),o||void 0);}function Mm(e,t,n){let r=new Map,o=n?.leave;if(o&&o.has(t.index)&&r.set(t.index,o.get(t.index)),e&&o)for(let[i,s]of o){if(r.has(i))continue;let c=e[y].data[i].parent;for(;c;){if(c===t){r.set(i,s);break}c=c.parent;}}return r}function bm(e,t,n,r,o){let i=[];if(n&&n.leave)for(let[s]of r){if(!n.leave.has(s))continue;let a=n.leave.get(s);for(let c of a.animateFns){let{promise:u}=c();i.push(u);}n.detachedLeaveAnimationFns=void 0;}if(e&&Fo(e,t,i),i.length>0){let s=n||e?.[Fe$2];if(s){let a=s.running;a&&i.push(a),s.running=Promise.allSettled(i),Nm(e,s.running,o);}else Promise.allSettled(i).then(()=>{e&&ft$3.delete(e[ke$1]),o(true);});}else e&&ft$3.delete(e[ke$1]),o(false);}function Fo(e,t,n){if(Pe$1(t))tl(ae$1(t.index,e),n);else if(t.type&12){let o=e[t.index];if(pe$1(o))for(let i=L$1;i<o.length;i++){let s=o[i];tl(s,n);}}let r=t.child;for(;r;)Fo(e,r,n),r=r.next;}function tl(e,t){let n=e[Fe$2];if(n&&n.leave)for(let o of n.leave.values())for(let i of o.animateFns){let{promise:s}=i();t.push(s);}let r=e[y].firstChild;for(;r;)Fo(e,r,t),r=r.next;}function Nm(e,t,n){t.then(()=>{e[Fe$2]?.running===t&&(e[Fe$2].running=void 0,ft$3.delete(e[ke$1])),n(true);});}function cn$2(e,t,n,r,o,i,s,a){if(o!=null){let c,u=false;pe$1(o)?c=o:Le$1(o)&&(u=true,o=o[Ce$1]);let l=he$2(o);e===0&&r!==null?(Xu(a,r,i,n),s==null?od(t,r,l):vo$1(t,r,l,s||null,true)):e===1&&r!==null?(Xu(a,r,i,n),vo$1(t,r,l,s||null,true),Cm(i,l)):e===2?(a?.[Fe$2]?.leave?.has(i.index)&&Im(i,l),el(a,i,n,d=>{id(t,l,u,d);})):e===3&&el(a,i,n,()=>{t.destroyNode(l);}),c!=null&&Bm(t,e,n,c,i,r,s);}}function Am(e,t){vd(e,t),t[Ce$1]=null,t[ee$1]=null;}function Rm(e,t,n,r,o,i){r[Ce$1]=o,r[ee$1]=t,Po(e,r,n,1,o,i);}function vd(e,t){t[xe$1].changeDetectionScheduler?.notify(9),Po(e,t,t[b$1],2,null,null);}function xm(e){let t=e[tn$1];if(!t)return Ss(e[y],e);for(;t;){let n=null;if(Le$1(t))n=t[tn$1];else {let r=t[L$1];r&&(n=r);}if(!n){for(;t&&!t[fe$1]&&t!==e;)Le$1(t)&&Ss(t[y],t),t=t[G];t===null&&(t=e),Le$1(t)&&Ss(t[y],t),n=t&&t[fe$1];}t=n;}}function Fa(e,t){let n=e[Rt$2],r=n.indexOf(t);n.splice(r,1);}function Lo(e,t){if(xt$1(t))return;let n=t[b$1];n.destroyNode&&Po(e,t,n,3,null,null),xm(t);}function Ss(e,t){if(xt$1(t))return;let n=v(null);try{t[E$1]&=-129,t[E$1]|=256,t[se$1]&&vt$3(t[se$1]),km(e,t),Om(e,t),t[y].type===1&&t[b$1].destroy();let r=t[ut$3];if(r!==null&&pe$1(t[G])){r!==t[G]&&Fa(r,t);let o=t[Oe];o!==null&&o.detachView(e);}js(t);}finally{v(n);}}function Om(e,t){let n=e.cleanup,r=t[en$1];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]==`string`){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2;}else {let a=r[n[s+1]];n[s].call(a);}r!==null&&(t[en$1]=null);let o=t[$e];if(o!==null){t[$e]=null;for(let s=0;s<o.length;s++){let a=o[s];a();}}let i=t[it$2];if(i!==null){t[it$2]=null;for(let s of i)s.destroy();}}function km(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=t[n[r]];if(!(o instanceof jt$1)){let i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],c=i[s+1];M$2(S.LifecycleHookStart,a,c);try{c.call(a);}finally{M$2(S.LifecycleHookEnd,a,c);}}else {M$2(S.LifecycleHookStart,o,i);try{i.call(o);}finally{M$2(S.LifecycleHookEnd,o,i);}}}}}function Ed(e,t,n){return Fm(e,t.parent,n)}function Fm(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[Ce$1];if(Pe$1(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===_e$2.None||o===_e$2.Emulated)return null}return ge$2(r,n)}function Cd(e,t,n){return Pm(e,t,n)}function Lm(e,t,n){return e.type&40?ge$2(e,n):null}var Pm=Lm;function La(e,t,n,r){let o=Ed(e,r,t),i=t[b$1],a=Cd(r.parent||t[ee$1],r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)Qu(i,o,n[c],a,false);else Qu(i,o,n,a,false);}function Yn$2(e,t){if(t!==null){let n=t.type;if(n&3)return ge$2(t,e);if(n&4)return Ks(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return Yn$2(e,r);{let o=e[t.index];return pe$1(o)?Ks(-1,o):he$2(o)}}else {if(n&128)return Yn$2(e,t.next);if(n&32)return Oa(t,e)()||he$2(e[t.index]);{let r=Id(e,t);if(r!==null){if(Array.isArray(r))return r[0];return Yn$2(st(e[te]),r)}else return Yn$2(e,t.next)}}}return null}function Id(e,t){if(t!==null){let r=e[te][ee$1],o=t.projection;return r.projection[o]}return null}function Ks(e,t){let n=L$1+e+1;if(n<t.length){let r=t[n],o=r[y].firstChild;if(o!==null)return Yn$2(r,o)}return t[lt$1]}function Pa(e,t,n,r,o,i,s){for(;n!=null;){let a=r[Ue$1];if(n.type===128){n=n.next;continue}let c=r[n.index],u=n.type;if(s&&t===0&&(c&&dn$2(he$2(c),r),n.flags|=2),!Ao(n))if(u&8)Pa(e,t,n.child,r,o,i,false),cn$2(t,e,a,o,c,n,i,r);else if(u&32){let l=Oa(n,r),d;for(;d=l();)cn$2(t,e,a,o,d,n,i,r);cn$2(t,e,a,o,c,n,i,r);}else u&16?wd(e,t,r,n,o,i):cn$2(t,e,a,o,c,n,i,r);n=s?n.projectionNext:n.next;}}function Po(e,t,n,r,o,i){Pa(n,r,e.firstChild,t,o,i,false);}function jm(e,t,n){let r=t[b$1];wd(r,0,t,n,Ed(e,n,t),Cd(n.parent||t[ee$1],n,t));}function wd(e,t,n,r,o,i){let s=n[te],c=s[ee$1].projection[r.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++){let l=c[u];cn$2(t,e,n[Ue$1],o,l,r,i,n);}else {let u=c,l=s[G];Bl(r)&&(u.flags|=128),Pa(e,t,u,l,o,i,true);}}function Bm(e,t,n,r,o,i,s){let a=r[lt$1];a!==he$2(r)&&cn$2(t,e,n,i,a,o,s);for(let u=L$1;u<r.length;u++){let l=r[u];Po(l[y],l,e,t,i,a);}}function Vm(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else {let i=r.indexOf(`-`)===-1?void 0:Te$1.DashCase;o==null?e.removeStyle(n,r,i):(typeof o==`string`&&o.endsWith(`!important`)&&(o=o.slice(0,-10),i|=Te$1.Important),e.setStyle(n,r,o,i));}}function _d(e,t,n,r,o){let i=Be$1(),s=r&2;try{dt$2(-1),s&&t.length>R&&pd(e,t,R,!1);M$2(s?S.TemplateUpdateStart:S.TemplateCreateStart,o,n),n(r,o);}finally{dt$2(i);M$2(s?S.TemplateUpdateEnd:S.TemplateCreateEnd,o,n);}}function jo(e,t,n){Gm(e,t,n),(n.flags&64)===64&&Wm(e,t,n);}function Dn$2(e,t,n=ge$2){let r=t.localNames;if(r!==null){let o=t.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(t,e):e[s];e[o++]=a;}}}function Hm(e,t,n,r){let i=r.get(Zl,ql)||n===_e$2.ShadowDom||n===_e$2.ExperimentalIsolatedShadowDom,s=e.selectRootElement(t,i);return s}function zm(e){return e===`class`?`className`:e===`for`?`htmlFor`:e===`formaction`?`formAction`:e===`innerHtml`?`innerHTML`:e===`readonly`?`readOnly`:e===`tabindex`?`tabIndex`:e}function Td(e,t,n,r,o,i){let s=t[y];if(Ho(e,s,t,n,r)){Pe$1(e)&&Md(t,e.index);return}e.type&3&&(n=zm(n)),Sd(e,t,n,r,o,i);}function Sd(e,t,n,r,o,i){if(e.type&3){let s=ge$2(e,t);r=i!=null?i(r,e.value||``,n):r,o.setProperty(s,n,r);}else e.type&12;}function Md(e,t){let n=ae$1(t,e);n[E$1]&16||(n[E$1]|=64);}function Gm(e,t,n){let r=n.directiveStart,o=n.directiveEnd;Pe$1(n)&&vm(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||yo(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=Kn$2(t,e,s,n);if(dn$2(c,t),i!==null&&Ym(t,s-r,c,a,n,i),Ie$1(a)){let u=ae$1(n.index,t);u[j$1]=Kn$2(t,e,s,n);}}}function Wm(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=Cu();try{dt$2(i);for(let a=r;a<o;a++){let c=e.data[a],u=t[a];Kr(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&qm(c,u);}}finally{dt$2(-1),Kr(s);}}function qm(e,t){e.hostBindings!==null&&e.hostBindings(1,t);}function ja(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];ud(t,i.selectors,false)&&(r??=[],Ie$1(i)?r.unshift(i):r.push(i));}return r}function Zm(e,t,n,r,o,i){let s=ge$2(e,t);bd(t[b$1],s,i,e.value,n,r,o);}function bd(e,t,n,r,o,i,s){if(i==null)e.removeAttribute(t,o,n);else {let a=s==null?Qt$1(i):s(i,r||``,o);e.setAttribute(t,o,a,n);}}function Ym(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],u=s[a+1];Ys(r,n,c,u);}}function Bo(e,t,n,r,o){let i=R+n,s=t[y],a=o(s,t,e,r,n);t[i]=a,kt$2(e,true);let c=e.type===2;return c?(sd(t[b$1],a,e),(pu()===0||nn$1(e))&&dn$2(a,t),hu()):dn$2(a,t),to$1()&&(!c||!Ao(e))&&La(s,t,a,e),e}function Vo(e){let t=e;return fs()?ps():(t=t.parent,kt$2(t,false)),t}function Qm(e,t){let n=e[Ue$1];if(!n)return;let r;try{r=n.get(Ft$2,null);}catch{r=null;}r?.(t);}function Ho(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=false;if(s)for(let c=0;c<s.length;c+=2){let u=s[c],l=s[c+1],d=t.data[u];Ys(d,n[u],l,o),a=true;}if(i)for(let c of i){let u=n[c],l=t.data[c];Ys(l,u,r,o),a=true;}return a}function Km(e,t){let n=ae$1(t,e),r=n[y];Jm(r,n);let o=n[Ce$1];o!==null&&n[Mt$2]===null&&(n[Mt$2]=Yl(o,n[Ue$1])),M$2(S.ComponentStart);try{Ba(r,n,n[j$1]);}finally{M$2(S.ComponentEnd,n[j$1]);}}function Jm(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n]);}function Ba(e,t,n){Xr(t);try{let r=e.viewQuery;r!==null&&Vs(1,r,n);let o=e.template;o!==null&&_d(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[Oe]?.finishViewCreation(e),e.staticContentQueries&&Ql(e,t),e.staticViewQueries&&Vs(2,e.viewQuery,n);let i=e.components;i!==null&&Xm(t,i);}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=true,e.firstCreatePass=false),r}finally{t[E$1]&=-5,eo$1();}}function Xm(e,t){for(let n=0;n<t.length;n++)Km(e,t[n]);}function ar(e,t,n,r){let o=v(null);try{let i=t.tView,c=Ra(e,i,n,e[E$1]&4096?4096:16,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null);c[ut$3]=e[t.index];let l=e[Oe];return l!==null&&(c[Oe]=l.createEmbeddedView(i)),Ba(i,c,n),c}finally{v(o);}}function fn$2(e,t){return !t||t.firstChild===null||Bl(e)}function Jn$2(e,t,n,r,o=false){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=t[n.index];i!==null&&r.push(he$2(i)),pe$1(i)&&Nd(i,r);let s=n.type;if(s&8)Jn$2(e,t,n.child,r);else if(s&32){let a=Oa(n,t),c;for(;c=a();)r.push(c);}else if(s&16){let a=Id(t,n);if(Array.isArray(a))r.push(...a);else {let c=st(t[te]);Jn$2(c[y],c,a,r,true);}}n=o?n.projectionNext:n.next;}return r}function Nd(e,t){for(let n=L$1;n<e.length;n++){let r=e[n],o=r[y].firstChild;o!==null&&Jn$2(r[y],r,o,t);}e[lt$1]!==e[Ce$1]&&t.push(e[lt$1]);}function Ad(e){if(e[At$2]!==null){for(let t of e[At$2])t.impl.addSequence(t);e[At$2].length=0;}}var Rd=[];function ey(e){return e[se$1]??ty(e)}function ty(e){let t=Rd.pop()??Object.create(ry);return t.lView=e,t}function ny(e){e.lView[se$1]!==e&&(e.lView=null,Rd.push(e));}var ry=s(r({},et$2),{consumerIsAlwaysLive:true,kind:`template`,consumerMarkedDirty:e=>{Ot$2(e.lView);},consumerOnSignalRead(){this.lView[se$1]=this;}});function oy(e){let t=e[se$1]??Object.create(iy);return t.lView=e,t}var iy=s(r({},et$2),{consumerIsAlwaysLive:true,kind:`template`,consumerMarkedDirty:e=>{let t=st(e.lView);for(;t&&!xd(t[y]);)t=st(t);t&&Zr(t);},consumerOnSignalRead(){this.lView[se$1]=this;}});function xd(e){return e.type!==2}function Od(e){if(e[it$2]===null)return;let t=true;for(;t;){let n=false;for(let r of e[it$2])r.dirty&&(n=true,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[E$1]&8192);}}var sy=100;function kd(e,t=0){let r=e[xe$1].rendererFactory;r.begin?.();try{ay(e,t);}finally{r.end?.();}}function ay(e,t){let n=gs();try{An$2(!0),Js(e,t);let r=0;for(;on$1(e);){if(r===sy)throw new m(103,!1);r++,Js(e,1);}}finally{An$2(n);}}function cy(e,t,n,r){if(xt$1(t))return;let o=t[E$1];Xr(t);let a=true,c=null,u=null;xd(e)?(u=ey(t),c=nt$1(u)):Tr()===null?(a=false,u=oy(t),c=nt$1(u)):t[se$1]&&(vt$3(t[se$1]),t[se$1]=null);try{rs(t),Du(e.bindingStartIndex),n!==null&&_d(e,t,n,2,r);let l=(o&3)===3;if(l){let f=e.preOrderCheckHooks;f!==null&&ao$1(t,f,null);}else {let f=e.preOrderHooks;f!==null&&co$1(t,f,0,null),_s(t,0);}if(uy(t),Od(t),Fd(t,0),e.contentQueries!==null&&Ql(e,t),true)if(l){let f=e.contentCheckHooks;f!==null&&ao$1(t,f);}else {let f=e.contentHooks;f!==null&&co$1(t,f,1),_s(t,1);}dy(e,t);let d=e.components;d!==null&&Pd(t,d,0);let p=e.viewQuery;if(p!==null&&Vs(2,p,r),true)if(l){let f=e.viewCheckHooks;f!==null&&ao$1(t,f);}else {let f=e.viewHooks;f!==null&&co$1(t,f,2),_s(t,2);}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Wr]){for(let f of t[Wr])f();t[Wr]=null;}Ad(t),t[E$1]&=-73;}catch(l){throw Ot$2(t),l}finally{u!==null&&(Dt$1(u,c),a&&ny(u)),eo$1();}}function Fd(e,t){for(let n=Hl(e);n!==null;n=$l(n))for(let r=L$1;r<n.length;r++){let o=n[r];Ld(o,t);}}function uy(e){for(let t=Hl(e);t!==null;t=$l(t)){if(!(t[E$1]&2))continue;let n=t[Rt$2];for(let r=0;r<n.length;r++){let o=n[r];Zr(o);}}}function ly(e,t,n){M$2(S.ComponentStart);let r=ae$1(t,e);try{Ld(r,n);}finally{M$2(S.ComponentEnd,r[j$1]);}}function Ld(e,t){qr(e)&&Js(e,t);}function Js(e,t){let r=e[y],o=e[E$1],i=e[se$1],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&wn$2(i)),s||=false,i&&(i.dirty=false),e[E$1]&=-9217,s)cy(r,e,r.template,e[j$1]);else if(o&8192){let a=v(null);try{Od(e),Fd(e,1);let c=r.components;c!==null&&Pd(e,c,1),Ad(e);}finally{v(a);}}}function Pd(e,t,n){for(let r=0;r<t.length;r++)ly(e,t[r],n);}function dy(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let o=n[r];if(o<0)dt$2(~o);else {let i=o,s=n[++r],a=n[++r];Eu(s,i);let c=t[i];M$2(S.HostBindingsUpdateStart,c);try{a(2,c);}finally{M$2(S.HostBindingsUpdateEnd,c);}}}}finally{dt$2(-1);}}function Va(e,t){let n=gs()?64:1088;for(e[xe$1].changeDetectionScheduler?.notify(t);e;){e[E$1]|=n;let r=st(e);if(rn$2(e)&&!r)return e;e=r;}return null}function jd(e,t,n,r){return [e,true,0,t,null,r,null,n,null,null]}function Bd(e,t){let n=L$1+t;if(n<e.length)return e[n]}function cr(e,t,n,r=true){let o=t[y];if(fy(o,t,e,n),r){let s=Ks(n,e),a=t[b$1],c=a.parentNode(e[lt$1]);c!==null&&Rm(o,e[ee$1],a,t,c,s);}let i=t[Mt$2];i!==null&&i.firstChild!==null&&(i.firstChild=null);}function Vd(e,t){let n=Xn$2(e,t);return n!==void 0&&Lo(n[y],n),n}function Xn$2(e,t){if(e.length<=L$1)return;let n=L$1+t,r=e[n];if(r){let o=r[ut$3];o!==null&&o!==e&&Fa(o,r),t>0&&(e[n-1][fe$1]=r[fe$1]);let i=kn$2(e,L$1+t);Am(r[y],r);let s=i[Oe];s!==null&&s.detachView(i[y]),r[G]=null,r[fe$1]=null,r[E$1]&=-129;}return r}function fy(e,t,n,r){let o=L$1+r,i=n.length;r>0&&(n[o-1][fe$1]=t),r<i-L$1?(t[fe$1]=n[o],Wi(n,L$1+r,t)):(n.push(t),t[fe$1]=null),t[G]=n;let s=t[ut$3];s!==null&&n!==s&&Hd(s,t);let a=t[Oe];a!==null&&a.insertView(e),Yr(t),t[E$1]|=128;}function Hd(e,t){let n=e[Rt$2],r=t[G];if(Le$1(r))e[E$1]|=2;else {let o=r[G][te];t[te]!==o&&(e[E$1]|=2);}n===null?e[Rt$2]=[t]:n.push(t);}var pt$2=class pt{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=false;exhaustive;get rootNodes(){let t=this._lView,n=t[y];return Jn$2(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n;}get context(){return this._lView[j$1]}set context(t){this._lView[j$1]=t;}get destroyed(){return xt$1(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[G];if(pe$1(t)){let n=t[jn$2],r=n?n.indexOf(this):-1;r>-1&&(Xn$2(t,r),kn$2(n,r));}this._attachedToViewContainer=false;}Lo(this._lView[y],this._lView);}onDestroy(t){os(this._lView,t);}markForCheck(){Va(this._cdRefInjectingView||this._lView,4);}detach(){this._lView[E$1]&=-129;}reattach(){Yr(this._lView),this._lView[E$1]|=128;}detectChanges(){this._lView[E$1]|=1024,kd(this._lView);}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new m(902,false);this._attachedToViewContainer=true;}detachFromAppRef(){this._appRef=null;let t=rn$2(this._lView),n=this._lView[ut$3];n!==null&&!t&&Fa(n,this._lView),vd(this._lView[y],this._lView);}attachToAppRef(t){if(this._attachedToViewContainer)throw new m(902,false);this._appRef=t;let n=rn$2(this._lView),r=this._lView[ut$3];r!==null&&!n&&Hd(r,this._lView),Yr(this._lView);}};function py(e){return on$1(e._lView)||!!(e._lView[E$1]&64)}function hy(e){Zr(e._lView);}var Bt$2=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=gy;constructor(n,r,o){this._declarationLView=n,this._declarationTContainer=r,this.elementRef=o;}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,r){return this.createEmbeddedViewImpl(n,r)}createEmbeddedViewImpl(n,r,o){return new pt$2(ar(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:o}))}}return e})();function gy(){return $o(q(),D())}function $o(e,t){return e.type&4?new Bt$2(t,e,mn$2(e,t)):null}function Ut$1(e,t,n,r,o){let i=e.data[t];if(i===null)i=my(e,t,n,r,o),vu()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=yu();i.injectorIndex=s===null?-1:s.injectorIndex;}return kt$2(i,true),i}function my(e,t,n,r,o){let i=ds(),s=fs(),a=s?i:i&&i.parent,c=e.data[t]=Dy(e,a,n,t,r,o);return yy(e,c,i,s),c}function yy(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n));}function Dy(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return cs()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,controlDirectiveIndex:-1,customControlIndex:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function vy(e){let t=e[Xi]??[],r=e[G][b$1],o=[];for(let i of t)i.data[Wl]!==void 0?o.push(i):Ey(i,r);e[Xi]=o;}function Ey(e,t){let n=0,r=e.firstChild;if(r){let o=e.data[Gl];for(;n<o;){let i=r.nextSibling;id(t,r,false),r=i,n++;}}}var Cy=()=>null,Iy=()=>null;function Co(e,t){return Cy()}function $d(e,t,n){return Iy()}var Ud=class{},Uo=class{},Xs=class{resolveComponentFactory(t){throw new m(917,false)}},zo=class{static NULL=new Xs},We$2=class We{},ur=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>wy()}return e})();function wy(){let e=D(),n=ae$1(q().index,e);return (Le$1(n)?n:e)[b$1]}var zd=(()=>{class e{static ɵprov=C({token:e,providedIn:`root`,factory:()=>null})}return e})();var lo$1={},ea=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n;}get(t,n,r){let o=this.injector.get(t,lo$1,r);return o!==lo$1||n===lo$1?o:this.parentInjector.get(t,n,r)}};function Io(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a==`number`)i=a;else if(i==1)o=Pr(o,a);else if(i==2){let c=a,u=t[++s];r=Pr(r,c+`: `+u+`;`);}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o;}function ne$1(e,t=0){let n=D();if(n===null)return T$1(e,t);return kl(q(),n,z(e),t)}function Gd(e,t,n,r,o){let i=r===null?null:{"":-1},s=o(e,n);if(s!==null){let a=s,c=null,u=null;for(let l of s)if(l.resolveHostDirectives!==null){[a,c,u]=l.resolveHostDirectives(s);break}Sy(e,t,n,a,i,c,u);}i!==null&&r!==null&&_y(n,r,i);}function _y(e,t,n){let r=e.localNames=[];for(let o=0;o<t.length;o+=2){let i=n[t[o+1]];if(i==null)throw new m(-301,false);r.push(t[o],i);}}function Ty(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index);}function Sy(e,t,n,r,o,i,s){let a=r.length,c=null;for(let p=0;p<a;p++){let f=r[p];c===null&&Ie$1(f)&&(c=f,Ty(e,n,p)),Ls(yo(n,t),e,f.type);}xy(n,e.data.length,a),c?.viewProvidersResolver&&c.viewProvidersResolver(c);for(let p=0;p<a;p++){let f=r[p];f.providersResolver&&f.providersResolver(f);}let u=false,l=false,d=dd(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let p=0;p<a;p++){let f=r[p];if(n.mergedAttrs=ln$2(n.mergedAttrs,f.hostAttrs),by(e,n,t,d,f),Ry(d,f,o),s!==null&&s.has(f)){let[_,N]=s.get(f);n.directiveToIndex.set(f.type,[d,_+n.directiveStart,N+n.directiveStart]);}else (i===null||!i.has(f))&&n.directiveToIndex.set(f.type,d);f.contentQueries!==null&&(n.flags|=4),(f.hostBindings!==null||f.hostAttrs!==null||f.hostVars!==0)&&(n.flags|=64);let h=f.type.prototype;!u&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),u=true),!l&&(h.ngOnChanges||h.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),l=true),d++;}My(e,n,i);}function My(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))rl(0,t,o,r),rl(1,t,o,r),il(t,r,false);else {let i=n.get(o);ol(0,t,i,r),ol(1,t,i,r),il(t,r,true);}}}function rl(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[i]??=[],s[i].push(r),Wd(t,i);}}function ol(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s=o[i],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),Wd(t,s);}}function Wd(e,t){t===`class`?e.flags|=8:t===`style`&&(e.flags|=16);}function il(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||Na(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let c=r[a];if(c===0){a+=4;continue}else if(c===5){a+=2;continue}else if(typeof c==`number`)break;if(!n&&o.hasOwnProperty(c)){let u=o[c];for(let l of u)if(l===t){s??=[],s.push(c,r[a+1]);break}}else if(n&&i.hasOwnProperty(c)){let u=i[c];for(let l=0;l<u.length;l+=2)if(u[l]===t){s??=[],s.push(u[l+1],r[a+1]);break}}a+=2;}e.initialInputs??=[],e.initialInputs.push(s);}function by(e,t,n,r,o){e.data[r]=o;let s=new jt$1(o.factory||(o.factory=ot$2(o.type)),Ie$1(o),ne$1,null);e.blueprint[r]=s,n[r]=s,Ny(e,t,r,dd(e,n,o.hostVars,ce$2),o);}function Ny(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;Ay(s)!=a&&s.push(a),s.push(n,r,i);}}function Ay(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n==`number`&&n<0)return n}return 0}function Ry(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Ie$1(t)&&(n[``]=e);}}function xy(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t;}function Ha(e,t,n,r,o,i,s,a){let c=t[y],u=c.consts,d=Ut$1(c,e,n,r,me$1(u,s));return Gd(c,t,d,me$1(u,a),o),d.mergedAttrs=ln$2(d.mergedAttrs,d.attrs),d.attrs!==null&&Io(d,d.attrs,false),d.mergedAttrs!==null&&Io(d,d.mergedAttrs,true),c.queries!==null&&c.queries.elementStart(c,d),d}function $a(e,t){Sl(e,t),es(t)&&e.queries.elementEnd(t);}function qd(e,t,n,r,o,i){let s=t.consts,c=Ut$1(t,e,n,r,me$1(s,o));if(c.mergedAttrs=ln$2(c.mergedAttrs,c.attrs),i!=null){let u=me$1(s,i);c.localNames=[];for(let l=0;l<u.length;l+=2)c.localNames.push(u[l],-1);}return c.attrs!==null&&Io(c,c.attrs,false),c.mergedAttrs!==null&&Io(c,c.mergedAttrs,true),t.queries!==null&&t.queries.elementStart(t,c),c}function Ua(e){return e!==null&&(typeof e==`function`||typeof e==`object`)}function Zd(e,t,n){return e[t]=n}function oe$1(e,t,n){if(n===ce$2)return false;let r=e[t];return Object.is(r,n)?false:(e[t]=n,true)}function Oy(e,t,n,r){let o=oe$1(e,t,n);return oe$1(e,t+1,r)||o}function fo$1(e,t,n){return function r(o){Va(Pe$1(e)?ae$1(e.index,t):t,5);let s=t[j$1],a=sl(t,s,n,o),c=r.__ngNextListenerFn__;for(;c;)a=sl(t,s,c,o)&&a,c=c.__ngNextListenerFn__;return a}}function sl(e,t,n,r){let o=v(null);try{return M$2(S.OutputStart,t,n),n(r)!==!1}catch(i){return Qm(e,i),false}finally{M$2(S.OutputEnd,t,n),v(o);}}function Yd(e,t,n,r,o,i,s,a){let c=nn$1(e),u=false,l=null;if(!r&&c&&(l=Fy(t,n,i,e.index)),l!==null){let d=l.__ngLastListenerFn__||l;d.__ngNextListenerFn__=s,l.__ngLastListenerFn__=s,u=true;}else {let d=ge$2(e,n),p=r?r(d):d;let f=o.listen(p,i,a);if(!ky(i))Qd(r?_=>r(he$2(_[e.index])):e.index,t,n,i,a,f,false);}return u}function ky(e){return e.startsWith(`animation`)||e.startsWith(`transition`)}function Fy(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;i<o.length-1;i+=2){let s=o[i];if(s===n&&o[i+1]===r){let a=t[en$1],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s==`string`&&(i+=2);}return null}function Qd(e,t,n,r,o,i,s){let a=t.firstCreatePass?ss(t):null,c=is(n),u=c.length;c.push(o,i),a&&a.push(r,e,u,(u+1)*(s?-1:1));}function al(e,t,n,r,o,i){let s=t[n],a=t[y],d=s[a.data[n].outputs[r]].subscribe(i);Qd(e.index,a,t,o,i,d,true);}var ta=Symbol(`BINDING`);var na=class extends zo{ngModule;constructor(t){super(),this.ngModule=t;}resolveComponentFactory(t){return new pn$2(ct(t),this.ngModule)}};function Ly(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&Oo.SignalBased)!==0};return o&&(i.transform=o),i})}function Py(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function jy(e,t,n){let r=t instanceof re$1?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new ea(n,r):n}function By(e){let t=e.get(We$2,null);if(t===null)throw new m(407,false);return {rendererFactory:t,sanitizer:e.get(zd,null),changeDetectionScheduler:e.get(at,null),ngReflect:false}}function Vy(e,t){let n=Kd(e);return rd(t,n,n===`svg`?ts:n===`math`?au:null)}function Kd(e){return (e.selectors[0][0]||`div`).toLowerCase()}var pn$2=class pn extends Uo{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=Ly(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=Py(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=gm(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n;}create(t,n,r,o,i,s){M$2(S.DynamicComponentStart);let a=v(null);try{let c=this.componentDef,u=Hy(r,c,s,i),l=jy(c,o||this.ngModule,t),d=By(l),p=d.rendererFactory.createRenderer(null,c),f=r?Hm(p,r,c.encapsulation,l):Vy(c,p),h=s?.some(cl)||i?.some(F=>typeof F!=`function`&&F.bindings.some(cl)),_=Ra(null,u,null,512|ld(c),null,null,d,p,l,null,Yl(f,l,!0));_[R]=f,Xr(_);let N=null;try{let F=Ha(R,_,2,`#host`,()=>u.directiveRegistry,!0,0);sd(p,f,F),dn$2(f,_),jo(u,_,F),wa(u,F,_),$a(u,F),n!==void 0&&Uy(F,this.ngContentSelectors,n),N=ae$1(F.index,_),_[j$1]=N[j$1],Ba(u,_,null);}catch(F){throw N!==null&&js(N),js(_),F}finally{M$2(S.DynamicComponentEnd),eo$1();}return new wo(this.componentType,_,!!h)}finally{v(a);}}};function Hy(e,t,n,r){let o=e?[`ng-version`,`21.2.0`]:mm(t.selectors[0]),i=null,s=null,a=0;if(n)for(let l of n)a+=l[ta].requiredVars,l.create&&(l.targetIdx=0,(i??=[]).push(l)),l.update&&(l.targetIdx=0,(s??=[]).push(l));if(r)for(let l=0;l<r.length;l++){let d=r[l];if(typeof d!=`function`)for(let p of d.bindings){a+=p[ta].requiredVars;let f=l+1;p.create&&(p.targetIdx=f,(i??=[]).push(p)),p.update&&(p.targetIdx=f,(s??=[]).push(p));}}let c=[t];if(r)for(let l of r){let p=Vr(typeof l==`function`?l:l.type);c.push(p);}return Aa(0,null,$y(i,s),1,a,c,null,null,null,[o],null)}function $y(e,t){return !e&&!t?null:n=>{if(n&1&&e)for(let r of e)r.create();if(n&2&&t)for(let r of t)r.update();}}function cl(e){let t=e[ta].kind;return t===`input`||t===`twoWay`}var wo=class extends Ud{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=Bn$2(n[y],R),this.location=mn$2(this._tNode,n),this.instance=ae$1(this._tNode.index,n)[j$1],this.hostView=this.changeDetectorRef=new pt$2(n,void 0),this.componentType=t;}setInput(t,n){this._hasInputBindings;let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView;Ho(r,o[y],o,t,n);this.previousInputValues.set(t,n);Va(ae$1(r.index,o),1);}get injector(){return new Pt$2(this._tNode,this._rootLView)}destroy(){this.hostView.destroy();}onDestroy(t){this.hostView.onDestroy(t);}};function Uy(e,t,n){let r=e.projection=[];for(let o=0;o<t.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null);}}var zt$2=(()=>{class e{static __NG_ELEMENT_ID__=zy}return e})();function zy(){return Xd(q(),D())}var Gy=zt$2,Jd=class extends Gy{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r;}get element(){return mn$2(this._hostTNode,this._hostLView)}get injector(){return new Pt$2(this._hostTNode,this._hostLView)}get parentInjector(){let t=Ea(this._hostTNode,this._hostLView);if(bl(t)){let n=go$1(t,this._hostLView),r=ho(t),o=n[y].data[r+8];return new Pt$2(o,n)}else return new Pt$2(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1);}get(t){let n=ul(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-L$1}createEmbeddedView(t,n,r){let o,i;typeof r==`number`?o=r:r!=null&&(o=r.index,i=r.injector);let s=Co(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,fn$2(this._hostTNode,s)),a}createComponent(t,n,r,o,i,s,a){let c=t&&!Xh(t),u;if(c)u=n;else {let N=n||{};u=N.index,r=N.injector,o=N.projectableNodes,i=N.environmentInjector||N.ngModuleRef,s=N.directives,a=N.bindings;}let l=c?t:new pn$2(ct(t)),d=r||this.parentInjector;if(!i&&l.ngModule==null){let F=(c?d:this.parentInjector).get(re$1,null);F&&(i=F);}let p=ct(l.componentType??{}),f=Co(this._lContainer,p?.id??null),h=null,_=l.create(d,o,h,i,s,a);return this.insertImpl(_.hostView,u,fn$2(this._hostTNode,f)),_}insert(t,n){return this.insertImpl(t,n,true)}insertImpl(t,n,r){let o=t._lView;if(uu(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else {let c=o[G],u=new Jd(c,c[ee$1],c[G]);u.detach(u.indexOf(t));}}let i=this._adjustIndex(n),s=this._lContainer;return cr(s,o,i,r),t.attachToViewContainerRef(),Wi(Ms(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=ul(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Xn$2(this._lContainer,n);r&&(kn$2(Ms(this._lContainer),n),Lo(r[y],r));}detach(t){let n=this._adjustIndex(t,-1),r=Xn$2(this._lContainer,n);return r&&kn$2(Ms(this._lContainer),n)!=null?new pt$2(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function ul(e){return e[jn$2]}function Ms(e){return e[jn$2]||(e[jn$2]=[])}function Xd(e,t){let n,r=t[e.index];return pe$1(r)?n=r:(n=jd(r,t,null,e),t[e.index]=n,xa(t,n)),qy(n,t,e,r),new Jd(n,e,t)}function Wy(e,t){let n=e[b$1],r=n.createComment(``),o=ge$2(t,e);return vo$1(n,n.parentNode(o),r,n.nextSibling(o),false),r}var qy=Qy;function Qy(e,t,n,r){if(e[lt$1])return;let o;n.type&8?o=he$2(r):o=Wy(t,n),e[lt$1]=o;}var ra=class e{queryList;matches=null;constructor(t){this.queryList=t;}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty();}},oa=class e{queries;constructor(t=[]){this.queries=t;}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i<r;i++){let s=n.getByIndex(i),a=this.queries[s.indexInDeclarationView];o.push(a.clone());}return new e(o)}return null}insertView(t){this.dirtyQueriesWithMatches(t);}detachView(t){this.dirtyQueriesWithMatches(t);}finishViewCreation(t){this.dirtyQueriesWithMatches(t);}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)Ga(t,n).matches!==null&&this.queries[n].setDirty();}},ia=class{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t==`string`?this.predicate=nD(t):this.predicate=t;}},sa=class e{queries;constructor(t=[]){this.queries=t;}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n);}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t);}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){let o=n!==null?n.length:0,i=this.getByIndex(r).embeddedTView(t,o);i&&(i.indexInDeclarationView=r,n!==null?n.push(i):n=[i]);}return n!==null?new e(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n);}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t);}},aa=class e{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=false;_declarationNodeIndex;_appliesToNextNode=true;constructor(t,n=-1){this.metadata=t,this._declarationNodeIndex=n;}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n);}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=false);}template(t,n){this.elementStart(t,n);}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=true,this.addMatch(-t.index,n),new e(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=t.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){let i=r[o];this.matchTNodeWithReadOption(t,n,Ky(n,i)),this.matchTNodeWithReadOption(t,n,uo$1(n,t,i,false,false));}else r===Bt$2?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,uo$1(n,t,r,false,false));}matchTNodeWithReadOption(t,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===Se$1||o===zt$2||o===Bt$2&&n.type&4)this.addMatch(n.index,-2);else {let i=uo$1(n,t,o,false,false);i!==null&&this.addMatch(n.index,i);}else this.addMatch(n.index,r);}}addMatch(t,n){this.matches===null?this.matches=[t,n]:this.matches.push(t,n);}};function Ky(e,t){let n=e.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1]}return null}function Jy(e,t){return e.type&11?mn$2(e,t):e.type&4?$o(e,t):null}function Xy(e,t,n,r){return n===-1?Jy(t,e):n===-2?eD(e,t,r):Kn$2(e,e[y],n,t)}function eD(e,t,n){if(n===Se$1)return mn$2(t,e);if(n===Bt$2)return $o(t,e);if(n===zt$2)return Xd(t,e)}function ef(e,t,n,r){let o=t[Oe].queries[r];if(o.matches===null){let i=e.data,s=n.matches,a=[];for(let c=0;s!==null&&c<s.length;c+=2){let u=s[c];if(u<0)a.push(null);else {let l=i[u];a.push(Xy(t,l,s[c+1],n.metadata.read));}}o.matches=a;}return o.matches}function ca(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=ef(e,t,o,n);for(let a=0;a<i.length;a+=2){let c=i[a];if(c>0)r.push(s[a/2]);else {let u=i[a+1],l=t[-c];for(let d=L$1;d<l.length;d++){let p=l[d];p[ut$3]===p[G]&&ca(p[y],p,u,r);}if(l[Rt$2]!==null){let d=l[Rt$2];for(let p=0;p<d.length;p++){let f=d[p];ca(f[y],f,u,r);}}}}}return r}function za(e,t){return e[Oe].queries[t].queryList}function tD(e,t,n){let r=new Do((n&4)===4);return fu(e,t,r,r.destroy),(t[Oe]??=new oa).queries.push(new ra(r))-1}function tf(e,t,n){let r=O$1();return r.firstCreatePass&&(rD(r,new ia(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=true)),tD(r,D(),t)}function nD(e){return e.split(`,`).map(t=>t.trim())}function rD(e,t,n){e.queries===null&&(e.queries=new sa),e.queries.track(new aa(t,n));}function Ga(e,t){return e.queries.getByIndex(t)}function nf(e,t){let n=e[y],r=Ga(n,t);return r.crossesNgTemplate?ca(n,e,t,[]):ef(n,e,r,t)}function rf(e,t,n){let r,o=Sn$2(()=>{r._dirtyCounter();let i=iD(r,e);if(t&&i===void 0)throw new m(-951,false);return i});return r=o[P$1],r._dirtyCounter=Lt$2(0),r._flatValue=void 0,o}function of(e){return rf(true,false)}function sf(e){return rf(true,true)}function oD(e,t){let n=e[P$1];n._lView=D(),n._queryIndex=t,n._queryList=za(n._lView,t),n._queryList.onDirty(()=>n._dirtyCounter.update(r=>r+1));}function iD(e,t){let n=e._lView,r=e._queryIndex;if(n===void 0||r===void 0||n[E$1]&4)return t?void 0:Q;let o=za(n,r),i=nf(n,r);return o.reset(i,jl),t?o.first:o._changesDetected||e._flatValue===void 0?e._flatValue=o.toArray():e._flatValue}var er=class{};var tr=class extends er{injector;componentFactoryResolver=new na(this);instance=null;constructor(t){super();let n=new wt$2([...t.providers,{provide:er,useValue:this},{provide:zo,useValue:this.componentFactoryResolver}],t.parent||Xt$1(),t.debugName,new Set([`environment`]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers();}destroy(){this.injector.destroy();}onDestroy(t){this.injector.onDestroy(t);}};function af(e,t,n=null){return new tr({providers:e,parent:t,debugName:n,runEnvironmentInitializers:true}).injector}var sD=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n;}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=Zi(false,n.type),o=r.length>0?af([r],this._injector,``):null;this.cachedInjectors.set(n,o);}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy();}finally{this.cachedInjectors.clear();}}static ɵprov=C({token:e,providedIn:`environment`,factory:()=>new e(T$1(re$1))})}return e})();function cf(e){return or(()=>{let t=uf(e),n=s(r({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Ca.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(sD).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??false,data:e.data||{},encapsulation:e.encapsulation||_e$2.Emulated,styles:e.styles||Q,_:null,schemas:e.schemas||null,tView:null,id:``});t.standalone&&Ye$2(`NgStandalone`),lf(n);let r$1=e.dependencies;return n.directiveDefs=ll(r$1,aD),n.pipeDefs=ll(r$1,qc),n.id=lD(n),n})}function aD(e){return ct(e)||Vr(e)}function vn$2(e){return or(()=>({type:e.type,bootstrap:e.bootstrap||Q,declarations:e.declarations||Q,imports:e.imports||Q,exports:e.exports||Q,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function cD(e,t){if(e==null)return Ee$1;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a,c;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,c=o[3]||null):(i=o,s=o,a=Oo.None,c=null),n[i]=[r,a,c],t[i]=s;}return n}function uD(e){if(e==null)return Ee$1;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function En$2(e){return or(()=>{let t=uf(e);return lf(t),t})}function Go(e){return {type:e.type,name:e.name,factory:null,pure:e.pure!==false,standalone:e.standalone??true,onDestroy:e.type.prototype.ngOnDestroy||null}}function uf(e){let t={};return {type:e.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||Ee$1,exportAs:e.exportAs||null,standalone:e.standalone??true,signals:e.signals===true,selectors:e.selectors||Q,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,inputs:cD(e.inputs,t),outputs:uD(e.outputs),debugInfo:null}}function lf(e){e.features?.forEach(t=>t(e));}function ll(e,t){return e?()=>{let n=typeof e==`function`?e():e,r=[];for(let o of n){let i=t(o);i!==null&&r.push(i);}return r}:null}function lD(e){let t=0,n=typeof e.consts==`function`?``:e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join(`|`))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,`c`+t}function dD(e){let t=n=>{let r=Array.isArray(e);n.hostDirectives===null?(n.resolveHostDirectives=fD,n.hostDirectives=r?e.map(ua):[e]):r?n.hostDirectives.unshift(...e.map(ua)):n.hostDirectives.unshift(e);};return t.ngInherit=true,t}function fD(e){let t=[],n=false,r=null,o=null;for(let i=0;i<e.length;i++){let s=e[i];if(s.hostDirectives!==null){let a=t.length;r??=new Map,o??=new Map,df(s,t,r),o.set(s,[a,t.length-1]);}i===0&&Ie$1(s)&&(n=true,t.push(s));}for(let i=n?1:0;i<e.length;i++)t.push(e[i]);return [t,r,o]}function df(e,t,n){if(e.hostDirectives!==null)for(let r of e.hostDirectives)if(typeof r==`function`){let o=r();for(let i of o)dl(ua(i),t,n);}else dl(r,t,n);}function dl(e,t,n){let r=Vr(e.directive);pD(r.declaredInputs,e.inputs),df(r,t,n),n.set(r,e),t.push(r);}function ua(e){return typeof e==`function`?{directive:z(e),inputs:Ee$1,outputs:Ee$1}:{directive:z(e.directive),inputs:fl(e.inputs),outputs:fl(e.outputs)}}function fl(e){if(e===void 0||e.length===0)return Ee$1;let t={};for(let n=0;n<e.length;n+=2)t[e[n]]=e[n+1];return t}function pD(e,t){for(let n in t)if(t.hasOwnProperty(n)){let r=t[n];e[r]=e[n];}}function hD(e){return Object.getPrototypeOf(e.prototype).constructor}function Wa(e){let t=hD(e.type),n=true,r=[e];for(;t;){let o;if(Ie$1(e))o=t.ɵcmp||t.ɵdir;else {if(t.ɵcmp)throw new m(903,false);o=t.ɵdir;}if(o){if(n){r.push(o);let s=e;s.inputs=bs(e.inputs),s.declaredInputs=bs(e.declaredInputs),s.outputs=bs(e.outputs);let a=o.hostBindings;a&&vD(e,a);let c=o.viewQuery,u=o.contentQueries;if(c&&yD(e,c),u&&DD(e,u),gD(e,o),Wc(e.outputs,o.outputs),Ie$1(o)&&o.data.animation){let l=e.data;l.animation=(l.animation||[]).concat(o.data.animation);}}let i=o.features;if(i)for(let s=0;s<i.length;s++){let a=i[s];a&&a.ngInherit&&a(e),a===Wa&&(n=false);}}t=Object.getPrototypeOf(t);}mD(r);}function gD(e,t){for(let n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;let r=t.inputs[n];r!==void 0&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n]);}}function mD(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=ln$2(o.hostAttrs,n=ln$2(n,o.hostAttrs));}}function bs(e){return e===Ee$1?{}:e===Q?[]:e}function yD(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o);}:e.viewQuery=t;}function DD(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i);}:e.contentQueries=t;}function vD(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o);}:e.hostBindings=t;}function ff(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=ln$2(e.mergedAttrs,e.attrs);let l=e.tView=Aa(2,e,o,i,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,e),l.queries=n.queries.embeddedTView(e));}a&&(e.flags|=a),kt$2(e,false);let c=CD(n,t);to$1()&&La(n,t,c,e),dn$2(c,t);let u=jd(c,t,c,e);t[r+R]=u,xa(t,u);}function ED(e,t,n,r,o,i,s,a,c,u,l){let d=n+R,p;return t.firstCreatePass?(p=Ut$1(t,d,4,s||null,a||null),Gd(t,e,p,me$1(t.consts,u),ja),Sl(t,p)):p=t.data[d],ff(p,e,t,n,r,o,i,c),nn$1(p)&&jo(t,e,p),u!=null&&Dn$2(e,p,l),p}function nr(e,t,n,r,o,i,s,a,c,u,l){let d=n+R,p;if(t.firstCreatePass){if(p=Ut$1(t,d,4,s||null,a||null),u!=null){let f=me$1(t.consts,u);p.localNames=[];for(let h=0;h<f.length;h+=2)p.localNames.push(f[h],-1);}}else p=t.data[d];return ff(p,e,t,n,r,o,i,c),u!=null&&Dn$2(e,p,l),p}function pf(e,t,n,r,o,i,s,a){let c=D(),u=O$1();return ED(c,u,e,t,n,r,o,me$1(u.consts,i),void 0,s,a),pf}var CD=ID;function ID(e,t,n,r){return zn$2(true),t[b$1].createComment(``)}function qa(e){return typeof e==`function`&&e[P$1]!==void 0}function Za(e){return qa(e)&&typeof e.set==`function`}var Ya=new I$1(``);function Wo(e){return !!e&&typeof e.then==`function`}function Qa(e){return !!e&&typeof e.subscribe==`function`}var hf=new I$1(``);var Ka=(()=>{class e{resolve;reject;initialized=false;done=false;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r;});appInits=g(hf,{optional:true})??[];injector=g(Z);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Gr(this.injector,o);if(Wo(i))n.push(i);else if(Qa(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c});});n.push(s);}}let r=()=>{this.done=true,this.resolve();};Promise.all(n).then(()=>{r();}).catch(o=>{this.reject(o);}),n.length===0&&r(),this.initialized=true;}static ɵfac=function(r){return new(r||e)};static ɵprov=C({token:e,factory:e.ɵfac,providedIn:`root`})}return e})(),gf=new I$1(``);function mf(){Ei(()=>{throw new m(600,``)});}function yf(e){return e.isBoundToModule}var wD=10;var ht$1=(()=>{class e{_runningTick=false;_destroyed=false;_destroyListeners=[];_views=[];internalErrorHandler=g(Ft$2);afterRenderManager=g(ka);zonelessEnabled=g(qn$2);rootEffectScheduler=g(no$1);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=false;afterTick=new U;get allViews(){return [...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=g(an$2);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(q$1(n=>!n))}constructor(){g($t$1,{optional:true});}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r();}});}).finally(()=>{n.unsubscribe();})}_injector=g(re$1);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=Z.NULL){return this._injector.get(X).run(()=>{M$2(S.BootstrapComponentStart);let s=n instanceof Uo;if(!this._injector.get(Ka).done)throw new m(405,``);let c;s?c=n:c=this._injector.get(zo).resolveComponentFactory(n),this.componentTypes.push(c.componentType);let u=yf(c)?void 0:this._injector.get(er),l=r||c.selector,d=c.create(o,[],l,u),p=d.location.nativeElement,f=d.injector.get(Ya,null);return f?.registerApplication(p),d.onDestroy(()=>{this.detachView(d.hostView),Qn$2(this.components,d),f?.unregisterApplication(p);}),this._loadComponent(d),M$2(S.BootstrapComponentEnd,d),d})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick();}_tick(){M$2(S.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(ko.CHANGE_DETECTION,this.tickImpl):this.tickImpl();}tickImpl=()=>{if(this._runningTick)throw M$2(S.ChangeDetectionEnd),new m(101,false);let n=v(null);try{this._runningTick=!0,this.synchronize();}finally{this._runningTick=false,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,v(n),this.afterTick.next(),M$2(S.ChangeDetectionEnd);}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(We$2,null,{optional:true}));let n=0;for(;this.dirtyFlags!==0&&n++<wD;){M$2(S.ChangeDetectionSyncStart);try{this.synchronizeOnce();}finally{M$2(S.ChangeDetectionSyncEnd);}}}synchronizeOnce(){this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let n=false;if(this.dirtyFlags&7){let r=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:o}of this.allViews){if(!r&&!on$1(o))continue;kd(o,r&&!this.zonelessEnabled?0:1),n=true;}if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}n||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews();}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>on$1(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8;}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this);}detachView(n){let r=n;Qn$2(this._views,r),r.detachFromAppRef();}_loadComponent(n){this.attachView(n.hostView);try{this.tick();}catch(o){this.internalErrorHandler(o);}this.components.push(n),this._injector.get(gf,[]).forEach(o=>o(n));}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy());}finally{this._destroyed=true,this._views=[],this._destroyListeners=[];}}onDestroy(n){return this._destroyListeners.push(n),()=>Qn$2(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new m(406,false);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy();}get viewCount(){return this._views.length}static ɵfac=function(r){return new(r||e)};static ɵprov=C({token:e,factory:e.ɵfac,providedIn:`root`})}return e})();function Qn$2(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1);}function Df(e,t){let n=D();if(oe$1(n,je$1(),t)){let o=O$1(),i=sn$2();if(Ho(i,o,n,e,t))Pe$1(i)&&Md(n,i.index);else {let a=ge$2(i,n);bd(n[b$1],a,null,i.value,e,t,null);}}return Df}function vf(e,t,n,r){let o=D();if(oe$1(o,je$1(),t)){O$1();Zm(sn$2(),o,e,t,n,r);}return vf}var la=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s);}else this.attach(r,i);}move(t,n){this.attach(n,this.detach(t));}};function Ns(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function _D(e,t,n,r){let o,i,s=0,a=e.length-1;if(Array.isArray(t)){v(r);let u=t.length-1;for(v(null);s<=a&&s<=u;){let l=e.at(s),d=t[s],p=Ns(s,l,s,d,n);if(p!==0){p<0&&e.updateValue(s,d),s++;continue}let f=e.at(a),h=t[u],_=Ns(a,f,u,h,n);if(_!==0){_<0&&e.updateValue(a,h),a--,u--;continue}let N=n(s,l),F=n(a,f),Cn=n(s,d);if(Object.is(Cn,F)){let fi=n(u,h);Object.is(fi,N)?(e.swap(s,a),e.updateValue(a,h),u--,a--):e.move(a,s),e.updateValue(s,d),s++;continue}if(o??=new _o,i??=hl(e,s,a,n),da(e,o,s,Cn))e.updateValue(s,d),s++,a++;else if(i.has(Cn))o.set(N,e.detach(s)),a--;else {let fi=e.create(s,t[s]);e.attach(s,fi),s++,a++;}}for(;s<=u;)pl(e,o,n,s,t[s]),s++;}else if(t!=null){v(r);let u=t[Symbol.iterator]();v(null);let l=u.next();for(;!l.done&&s<=a;){let d=e.at(s),p=l.value,f=Ns(s,d,s,p,n);if(f!==0)f<0&&e.updateValue(s,p),s++,l=u.next();else {o??=new _o,i??=hl(e,s,a,n);let h=n(s,p);if(da(e,o,s,h))e.updateValue(s,p),s++,a++,l=u.next();else if(!i.has(h))e.attach(s,e.create(s,p)),s++,a++,l=u.next();else {let _=n(s,d);o.set(_,e.detach(s)),a--;}}}for(;!l.done;)pl(e,o,n,e.length,l.value),l=u.next();}for(;s<=a;)e.destroy(e.detach(a--));o?.forEach(u=>{e.destroy(u);});}function da(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),true):false}function pl(e,t,n,r,o){if(da(e,t,r,n(r,o)))e.updateValue(r,o);else {let i=e.create(r,o);e.attach(r,i);}}function hl(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var _o=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return false;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),true}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n);}else this.kvMap.set(t,n);}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n);}}};function TD(e,t,n,r,o,i,s,a){Ye$2(`NgControlFlow`);let c=D(),u=O$1();return nr(c,u,e,t,n,r,o,me$1(u.consts,i),256,s,a),Ja}function Ja(e,t,n,r,o,i,s,a){Ye$2(`NgControlFlow`);let c=D(),u=O$1();return nr(c,u,e,t,n,r,o,me$1(u.consts,i),512,s,a),Ja}function SD(e,t){Ye$2(`NgControlFlow`);let n=D(),r=je$1(),o=n[r]!==ce$2?n[r]:-1,i=o!==-1?To(n,R+o):void 0,s=0;if(oe$1(n,r,e)){let a=v(null);try{if(i!==void 0&&Vd(i,s),e!==-1){let c=R+e,u=To(n,c),l=ga(n[y],c),d=$d(u,l,n);cr(u,ar(n,l,t,{dehydratedView:d}),s,fn$2(l,d));}}finally{v(a);}}else if(i!==void 0){let a=Bd(i,s);a!==void 0&&(a[j$1]=t);}}var fa=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r;}get $count(){return this.lContainer.length-L$1}};function MD(e){return e}function bD(e,t){return t}var pa=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r;}};function ND(e,t,n,r,o,i,s,a,c,u,l,d,p){Ye$2(`NgControlFlow`);let f=D(),h=O$1(),_=c!==void 0,N=D(),Cn=new pa(_,s);N[R+e]=Cn,nr(f,h,e+1,t,n,r,o,me$1(h.consts,i),256);}var ha=class extends la{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=false;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r;}get length(){return this.lContainer.length-L$1}at(t){return this.getLView(t)[j$1].$implicit}attach(t,n){let r=n[Mt$2];this.needsIndexUpdate||=t!==this.length,cr(this.lContainer,n,t,fn$2(this.templateTNode,r)),RD(this.lContainer,t);}detach(t){return this.needsIndexUpdate||=t!==this.length-1,xD(this.lContainer,t),OD(this.lContainer,t)}create(t,n){let r=Co(this.lContainer,this.templateTNode.tView.ssrId);return ar(this.hostLView,this.templateTNode,new fa(this.lContainer,n,t),{dehydratedView:r})}destroy(t){Lo(t[y],t);}updateValue(t,n){this.getLView(t)[j$1].$implicit=n;}reset(){this.needsIndexUpdate=false;}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[j$1].$index=t;}getLView(t){return kD(this.lContainer,t)}};function AD(e){let t=v(null),n=Be$1();try{let r=D(),o=r[y],i=r[n],s=n+1,a=To(r,s);if(i.liveCollection===void 0)i.liveCollection=new ha(a,r,ga(o,s));else i.liveCollection.reset();let c=i.liveCollection;if(_D(c,e,i.trackByFn,t),c.updateIndexes(),i.hasEmptyBlock){let u=je$1(),l=c.length===0;if(oe$1(r,u,l)){let d=n+2,p=To(r,d);if(l){let f=ga(o,d),h=$d(p,f,r);cr(p,ar(r,f,void 0,{dehydratedView:h}),0,fn$2(f,h));}else o.firstUpdatePass&&vy(p),Vd(p,0);}}}finally{v(t);}}function To(e,t){return e[t]}function RD(e,t){if(e.length<=L$1)return;let r=e[L$1+t],o=r?r[Fe$2]:void 0;if(r&&o&&o.detachedLeaveAnimationFns&&o.detachedLeaveAnimationFns.length>0){let i=r[Ue$1];Tm(i,o),ft$3.delete(r[ke$1]),o.detachedLeaveAnimationFns=void 0;}}function xD(e,t){if(e.length<=L$1)return;let r=e[L$1+t],o=r?r[Fe$2]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[]);}function OD(e,t){return Xn$2(e,t)}function kD(e,t){return Bd(e,t)}function ga(e,t){return Bn$2(e,t)}function Ef(e,t,n){let r=D();if(oe$1(r,je$1(),t)){O$1();Td(sn$2(),r,e,t,r[b$1],n);}return Ef}function ma(e,t,n,r,o){Ho(t,e,n,o?`class`:`style`,r);}function Xa(e,t,n,r){let o=D(),i=o[y],s=e+R,a=i.firstCreatePass?Ha(s,o,2,t,ja,Qr(),n,r):i.data[s];if(Bo(a,o,e,t,If),nn$1(a)){let c=o[y];jo(c,o,a),wa(c,a,o);}return r!=null&&Dn$2(o,a),Xa}function ec(){let e=O$1(),n=Vo(q());return e.firstCreatePass&&$a(e,n),us(n)&&ls(),as(),n.classesWithoutHost!=null&&ig(n)&&ma(e,n,D(),n.classesWithoutHost,true),n.stylesWithoutHost!=null&&sg(n)&&ma(e,n,D(),n.stylesWithoutHost,false),ec}function Cf(e,t,n,r){return Xa(e,t,n,r),ec(),Cf}function qo(e,t,n,r){let o=D(),i=o[y],s=e+R,a=i.firstCreatePass?qd(s,i,2,t,n,r):i.data[s];return Bo(a,o,e,t,If),r!=null&&Dn$2(o,a),qo}function Zo(){return us(Vo(q()))&&ls(),as(),Zo}function tc(e,t,n,r){return qo(e,t,n,r),Zo(),tc}var If=(e,t,n,r,o)=>(zn$2(true),rd(t[b$1],r,Nu()));function nc(e,t,n){let r=D(),o=r[y],i=e+R,s=o.firstCreatePass?Ha(i,r,8,`ng-container`,ja,Qr(),t,n):o.data[i];if(Bo(s,r,e,`ng-container`,Sf),nn$1(s)){let a=r[y];jo(a,r,s),wa(a,s,r);}return n!=null&&Dn$2(r,s),nc}function Yo(){let e=O$1(),n=Vo(q());return e.firstCreatePass&&$a(e,n),Yo}function wf(e,t,n){return nc(e,t,n),Yo(),wf}function rc(e,t,n){let r=D(),o=r[y],i=e+R,s=o.firstCreatePass?qd(i,o,8,`ng-container`,t,n):o.data[i];return Bo(s,r,e,`ng-container`,Sf),n!=null&&Dn$2(r,s),rc}function _f(){Vo(q());return Yo}function Tf(e,t,n){return rc(e,t,n),_f(),Tf}var Sf=(e,t,n,r,o)=>(zn$2(true),Jg(t[b$1],``));function FD(){return D()}function Mf(e,t,n){let r=D();if(oe$1(r,je$1(),t)){O$1();Sd(sn$2(),r,e,t,r[b$1],n);}return Mf}var Zn$2=void 0;function LD(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,``).length;return t===1&&n===0?1:5}var PD=[`en`,[[`a`,`p`],[`AM`,`PM`]],[[`AM`,`PM`]],[[`S`,`M`,`T`,`W`,`T`,`F`,`S`],[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`]],Zn$2,[[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]],Zn$2,[[`B`,`A`],[`BC`,`AD`],[`Before Christ`,`Anno Domini`]],0,[6,0],[`M/d/yy`,`MMM d, y`,`MMMM d, y`,`EEEE, MMMM d, y`],[`h:mm a`,`h:mm:ss a`,`h:mm:ss a z`,`h:mm:ss a zzzz`],[`{1}, {0}`,Zn$2,Zn$2,Zn$2],[`.`,`,`,`;`,`%`,`+`,`-`,`E`,`×`,`‰`,`∞`,`NaN`,`:`],[`#,##0.###`,`#,##0%`,`¤#,##0.00`,`#E0`],`USD`,`$`,`US Dollar`,{},`ltr`,LD],As={};function ue$1(e){let t=jD(e),n=gl(t);if(n)return n;let r=t.split(`-`)[0];if(n=gl(r),n)return n;if(r===`en`)return PD;throw new m(701,false)}function gl(e){return e in As||(As[e]=de$2.ng&&de$2.ng.common&&de$2.ng.common.locales&&de$2.ng.common.locales[e]),As[e]}var V$1=(function(e){return e[e.LocaleId=0]=`LocaleId`,e[e.DayPeriodsFormat=1]=`DayPeriodsFormat`,e[e.DayPeriodsStandalone=2]=`DayPeriodsStandalone`,e[e.DaysFormat=3]=`DaysFormat`,e[e.DaysStandalone=4]=`DaysStandalone`,e[e.MonthsFormat=5]=`MonthsFormat`,e[e.MonthsStandalone=6]=`MonthsStandalone`,e[e.Eras=7]=`Eras`,e[e.FirstDayOfWeek=8]=`FirstDayOfWeek`,e[e.WeekendRange=9]=`WeekendRange`,e[e.DateFormat=10]=`DateFormat`,e[e.TimeFormat=11]=`TimeFormat`,e[e.DateTimeFormat=12]=`DateTimeFormat`,e[e.NumberSymbols=13]=`NumberSymbols`,e[e.NumberFormats=14]=`NumberFormats`,e[e.CurrencyCode=15]=`CurrencyCode`,e[e.CurrencySymbol=16]=`CurrencySymbol`,e[e.CurrencyName=17]=`CurrencyName`,e[e.Currencies=18]=`Currencies`,e[e.Directionality=19]=`Directionality`,e[e.PluralCase=20]=`PluralCase`,e[e.ExtraData=21]=`ExtraData`,e})(V$1||{});function jD(e){return e.toLowerCase().replace(/_/g,`-`)}var lr=`en-US`;function bf(e){typeof e==`string`&&e.toLowerCase().replace(/_/g,`-`);}function Nf(e,t,n){let r=D(),o=O$1(),i=q();return Rf(o,r,r[b$1],i,e,t,n),Nf}function Af(e,t,n){let r=D(),o=O$1(),i=q();return (i.type&3||n)&&Yd(i,o,r,n,r[b$1],e,t,fo$1(i,r,t)),Af}function Rf(e,t,n,r,o,i,s){let a=true,c=null;if((r.type&3||s)&&(c??=fo$1(r,t,i),Yd(r,e,t,s,n,o,i,c)&&(a=false)),a){let u=r.outputs?.[o],l=r.hostDirectiveOutputs?.[o];if(l&&l.length)for(let d=0;d<l.length;d+=2){let p=l[d],f=l[d+1];c??=fo$1(r,t,i),al(r,t,p,f,o,c);}if(u&&u.length)for(let d of u)c??=fo$1(r,t,i),al(r,t,d,o,o,c);}}function VD(e=1){return Su(e)}function HD(e,t){let n=null,r=lm(e);for(let o=0;o<t.length;o++){let i=t[o];if(i===`*`){n=o;continue}if(r===null?ud(e,i,true):pm(r,i))return o}return n}function xf(e){let t=D()[te][ee$1];if(!t.projection){let r=t.projection=Xc(e?e.length:1,null),o=r.slice(),i=t.child;for(;i!==null;){if(i.type!==128){let s=e?HD(i,e):0;s!==null&&(o[s]?o[s].projectionNext=i:r[s]=i,o[s]=i);}i=i.next;}}}function Of(e,t=0,n,r,o,i){let s=D(),a=O$1(),c=null;let u=Ut$1(a,R+e,16,null,null);u.projection===null&&(u.projection=t),ps();let d=!s[Mt$2]||cs();s[te][ee$1].projection[u.projection]===null&&c!==null?$D(s,a,c):d&&!Ao(u)&&jm(a,s,u);}function $D(e,t,n){let r=R+n,o=t.data[r],i=e[r],s=Co(i,o.tView.ssrId);cr(i,ar(e,o,void 0,{dehydratedView:s}),0,fn$2(o,s));}function oc(e,t,n){return tf(e,t,n),oc}function kf(e){let t=D(),n=O$1(),r=Jr();Un$2(r+1);let o=Ga(n,r);if(e.dirty&&cu(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else {let i=nf(t,r);e.reset(i,jl),e.notifyOnChanges();}return true}return false}function Ff(){return za(D(),Jr())}function Lf(e,t,n,r){return oD(e,tf(t,n,r)),Lf}function UD(e=1){Un$2(Jr()+e);}function zD(e){return Vn$2(hs(),R+e)}function so$1(e,t){return e<<17|t<<2}function Vt$2(e){return e>>17&32767}function GD(e){return (e&2)==2}function WD(e,t){return e&131071|t<<17}function ya(e){return e|2}function hn$2(e){return (e&131068)>>2}function Rs$1(e,t){return e&-131069|t<<2}function qD(e){return (e&1)===1}function Da(e){return e|1}function ZD(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=Vt$2(s),c=hn$2(s);e[r]=n;let u=false,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||Kt$1(d,l)>0)&&(u=true);}else l=n;if(o)if(c!==0){let p=Vt$2(e[a+1]);e[r+1]=so$1(p,a),p!==0&&(e[p+1]=Rs$1(e[p+1],r)),e[a+1]=WD(e[a+1],r);}else e[r+1]=so$1(a,0),a!==0&&(e[a+1]=Rs$1(e[a+1],r)),a=r;else e[r+1]=so$1(c,0),a===0?a=r:e[c+1]=Rs$1(e[c+1],r),c=r;u&&(e[r+1]=ya(e[r+1])),ml(e,l,r,true),ml(e,l,r,false),YD(t,l,e,r,i),s=so$1(a,c),i?t.classBindings=s:t.styleBindings=s;}function YD(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t==`string`&&Kt$1(i,t)>=0&&(n[r+1]=Da(n[r+1]));}function ml(e,t,n,r){let o=e[n+1],i=t===null,s=r?Vt$2(o):hn$2(o),a=false;for(;s!==0&&(a===false||i);){let c=e[s],u=e[s+1];QD(c,t)&&(a=true,e[s+1]=r?Da(u):ya(u)),s=r?Vt$2(u):hn$2(u);}a&&(e[n+1]=r?ya(o):Da(o));}function QD(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?true:Array.isArray(e)&&typeof t==`string`?Kt$1(e,t)>=0:false}var W$1={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Pf(e){return e.substring(W$1.key,W$1.keyEnd)}function KD(e){return e.substring(W$1.value,W$1.valueEnd)}function JD(e){return Vf(e),jf(e,gn$2(e,0,W$1.textEnd))}function jf(e,t){let n=W$1.textEnd;return n===t?-1:(t=W$1.keyEnd=ev(e,W$1.key=t,n),gn$2(e,t,n))}function XD(e){return Vf(e),Bf(e,gn$2(e,0,W$1.textEnd))}function Bf(e,t){let n=W$1.textEnd,r=W$1.key=gn$2(e,t,n);return n===r?-1:(r=W$1.keyEnd=tv(e,r,n),r=yl(e,r,n),r=W$1.value=gn$2(e,r,n),r=W$1.valueEnd=nv(e,r,n),yl(e,r,n))}function Vf(e){W$1.key=0,W$1.keyEnd=0,W$1.value=0,W$1.valueEnd=0,W$1.textEnd=e.length;}function gn$2(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function ev(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}function tv(e,t,n){let r;for(;t<n&&((r=e.charCodeAt(t))===45||r===95||(r&-33)>=65&&(r&-33)<=90||r>=48&&r<=57);)t++;return t}function yl(e,t,n,r){return t=gn$2(e,t,n),t<n&&t++,t}function nv(e,t,n){let r=-1,o=-1,i=-1,s=t,a=s;for(;s<n;){let c=e.charCodeAt(s++);if(c===59)return a;c===34||c===39?a=s=Dl(e,c,s,n):t===s-4&&i===85&&o===82&&r===76&&c===40?a=s=Dl(e,41,s,n):c>32&&(a=s),i=o,o=r,r=c&-33;}return a}function Dl(e,t,n,r){let o=-1,i=n;for(;i<r;){let s=e.charCodeAt(i++);if(s==t&&o!==92)return i;s==92&&o===92?o=0:o=s;}throw new Error}function ic(e,t,n){return Hf(e,t,n,false),ic}function sc(e,t){return Hf(e,t,null,true),sc}function rv(e){$f(Gf,ov,e,false);}function ov(e,t){for(let n=XD(t);n>=0;n=Bf(t,n))Gf(e,Pf(t),KD(t));}function iv(e){$f(fv,sv,e,true);}function sv(e,t){for(let n=JD(t);n>=0;n=jf(t,n))Fn$2(e,Pf(t),true);}function Hf(e,t,n,r){let o=D(),i=O$1(),s=ms(2);if(i.firstUpdatePass&&zf(i,e,s,r),t!==ce$2&&oe$1(o,s,t)){let a=i.data[Be$1()];Wf(i,a,o,o[b$1],e,o[s+1]=hv(t,n),r,s);}}function $f(e,t,n,r){let o=O$1(),i=ms(2);o.firstUpdatePass&&zf(o,null,i,r);let s=D();if(n!==ce$2&&oe$1(s,i,n)){let a=o.data[Be$1()];if(qf(a,r)&&!Uf(o,i)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(n=Pr(c,n||``)),ma(o,a,s,n,r);}else pv(o,a,s,s[b$1],s[i+1],s[i+1]=dv(e,t,n),r,i);}}function Uf(e,t){return t>=e.expandoStartIndex}function zf(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Be$1()],s=Uf(e,n);qf(i,r)&&t===null&&!s&&(t=false),t=av(o,i,t,r),ZD(o,i,t,n,s,r);}}function av(e,t,n,r){let o=Iu(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=xs(null,e,t,n,r),n=rr(n,t.attrs,r),i=null);else {let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=xs(o,e,t,n,r),i===null){let c=cv(e,t,r);c!==void 0&&Array.isArray(c)&&(c=xs(null,e,t,c[1],r),c=rr(c,t.attrs,r),uv(e,t,r,c));}else i=lv(e,t,r);}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function cv(e,t,n){let r=n?t.classBindings:t.styleBindings;if(hn$2(r)!==0)return e[Vt$2(r)]}function uv(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[Vt$2(o)]=r;}function lv(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=rr(r,s,n);}return rr(r,t.attrs,n)}function xs(e,t,n,r,o){let i=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(i=t[a],r=rr(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function rr(e,t,n){let r=n?1:2,o=-1;if(t!==null)for(let i=0;i<t.length;i++){let s=t[i];typeof s==`number`?o=s:o===r&&(Array.isArray(e)||(e=e===void 0?[]:[``,e]),Fn$2(e,s,n?true:t[++i]));}return e===void 0?null:e}function dv(e,t,n){if(n==null||n===``)return Q;let r=[],o=ye$2(n);if(Array.isArray(o))for(let i=0;i<o.length;i++)e(r,o[i],true);else if(o instanceof Set)for(let i of o)e(r,i,true);else if(typeof o==`object`)for(let i in o)o.hasOwnProperty(i)&&e(r,i,o[i]);else typeof o==`string`&&t(r,o);return r}function Gf(e,t,n){Fn$2(e,t,ye$2(n));}function fv(e,t,n){let r=String(t);r!==``&&!r.includes(` `)&&Fn$2(e,r,n);}function pv(e,t,n,r,o,i,s,a){o===ce$2&&(o=Q);let c=0,u=0,l=0<o.length?o[0]:null,d=0<i.length?i[0]:null;for(;l!==null||d!==null;){let p=c<o.length?o[c+1]:void 0,f=u<i.length?i[u+1]:void 0,h=null,_;l===d?(c+=2,u+=2,p!==f&&(h=d,_=f)):d===null||l!==null&&l<d?(c+=2,h=l):(u+=2,h=d,_=f),h!==null&&Wf(e,t,n,r,h,_,s,a),l=c<o.length?o[c]:null,d=u<i.length?i[u]:null;}}function Wf(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,u=c[a+1];if(!So(qD(u)?vl(c,t,n,o,hn$2(u),s):void 0)){So(i)||GD(u)&&(i=vl(c,null,n,o,a,s));Vm(r,s,ns(Be$1(),n),o,i);}}function vl(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let c=e[o],u=Array.isArray(c),l=u?c[1]:c,d=l===null,p=n[o+1];p===ce$2&&(p=d?Q:void 0);let f=d?Ur(p,r):l===r?p:void 0;if(u&&!So(f)&&(f=Ur(c,r)),So(f)&&(a=f,s))return a;let h=e[o+1];o=s?Vt$2(h):hn$2(h);}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=Ur(c,r));}return a}function So(e){return e!==void 0}function hv(e,t){return e==null||e===``||(typeof t==`string`?e=e+t:typeof e==`object`&&(e=Lr(ye$2(e)))),e}function qf(e,t){return (e.flags&(t?8:16))!==0}function gv(e,t=``){let n=D(),r=O$1(),o=e+R,i=r.firstCreatePass?Ut$1(r,o,1,t,null):r.data[o],s=mv(r,n,i,t);n[o]=s,to$1()&&La(r,n,s,i),kt$2(i,false);}var mv=(e,t,n,r)=>(zn$2(true),Qg(t[b$1],r));function Zf(e,t,n,r=``){return oe$1(e,je$1(),n)?t+Qt$1(n)+r:ce$2}function Yf(e){return ac(``,e),Yf}function ac(e,t,n){let r=D(),o=Zf(r,e,t,n);return o!==ce$2&&yv(r,Be$1(),o),ac}function yv(e,t,n){let r=ns(t,e);Kg(e[b$1],r,n);}function Qf(e,t,n){Za(t)&&(t=t());let r=D();if(oe$1(r,je$1(),t)){O$1();Td(sn$2(),r,e,t,r[b$1],n);}return Qf}function Dv(e,t){let n=Za(e);return n&&e.set(t),n}function Kf(e,t){let n=D(),r=O$1(),o=q();return Rf(r,n,n[b$1],o,e,t),Kf}var Jf={};function Xf(e){Ye$2(`NgLet`);let t=O$1(),n=D(),r=e+R;return kt$2(Ut$1(t,r,128,null,null),false),Hn$2(t,n,r,Jf),Xf}function vv(e){return Hn$2(O$1(),D(),Be$1(),e),e}function Ev(e){let n=Vn$2(hs(),R+e);if(n===Jf)throw new m(314,false);return n}function Cv(e){return oe$1(D(),je$1(),e)?Qt$1(e):ce$2}function Iv(e,t,n=``){return Zf(D(),e,t,n)}function El(e,t,n){let r=O$1();r.firstCreatePass&&ep(t,r.data,r.blueprint,Ie$1(e),n);}function ep(e,t,n,r,o){if(e=z(e),Array.isArray(e))for(let i=0;i<e.length;i++)ep(e[i],t,n,r,o);else {let i=O$1(),s=D(),a=q(),c=It$2(e)?e:z(e.provide),u=Qi(e),l=a.providerIndexes&1048575,d=a.directiveStart,p=a.providerIndexes>>20;if(It$2(e)||!e.multi){let f=new jt$1(u,o,ne$1,null),h=ks(c,t,l+p,d);h===-1?(Ls(yo(a,s),i,c),Os(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,n.push(f),s.push(f)):(n[h]=f,s[h]=f);}else {let f=ks(c,t,l+p,d),h=ks(c,t,l,l+p),_=f>=0&&n[f],N=h>=0&&n[h];if(!_){Ls(yo(a,s),i,c);let F=Tv(wv,n.length,o,r,u);N&&(n[h].providerFactory=F),Os(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,n.push(F),s.push(F);}else {let F=tp(n[f],u,r);Os(i,e,f>-1?f:h,F);}r&&N&&n[h].componentProviders++;}}}function Os(e,t,n,r){let o=It$2(t),i=ou(t);if(o||i){let c=(i?z(t.useClass):t).prototype.ngOnDestroy;if(c){let u=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let l=u.indexOf(n);l===-1?u.push(n,[r,c]):u[l+1].push(r,c);}else u.push(n,c);}}}function tp(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function ks(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return -1}function wv(e,t,n,r,o){return va(this.multi,[])}function va(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r());}return t}function Tv(e,t,n,r,o,i){let s=new jt$1(e,n,ne$1,null);return s.multi=[],s.index=t,s.componentProviders=0,tp(s,o,r&&true),s}function np(e,t){return n=>{n.providersResolver=(r,o)=>El(r,o?o(e):e,false);}}function Sv(e,t,n){return op(D(),$n$2(),e,t,n)}function Mv(e,t,n,r){return ip(D(),$n$2(),e,t,n,r)}function rp(e,t){let n=e[t];return n===ce$2?void 0:n}function op(e,t,n,r,o,i){let s=t+n;return oe$1(e,s,o)?Zd(e,s+1,i?r.call(i,o):r(o)):rp(e,s+1)}function ip(e,t,n,r,o,i,s){let a=t+n;return Oy(e,a,o,i)?Zd(e,a+2,s?r.call(s,o,i):r(o,i)):rp(e,a+2)}function bv(e,t){let n=O$1(),r,o=e+R;n.firstCreatePass?(r=Nv(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=ot$2(r.type)),a=J(ne$1);try{let c=mo$1(!1),u=i();return mo$1(c),Hn$2(n,D(),o,u),u}finally{J(a);}}function Nv(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function Av(e,t,n){let r=e+R,o=D(),i=Vn$2(o,r);return sp(o,r)?op(o,$n$2(),t,i.transform,n,i):i.transform(n)}function Rv(e,t,n,r){let o=e+R,i=D(),s=Vn$2(i,o);return sp(i,o)?ip(i,$n$2(),t,s.transform,n,r,s):s.transform(n,r)}function sp(e,t){return e[y].data[t].pure}function xv(e,t){return $o(e,t)}var ap=(()=>{class e{applicationErrorHandler=g(Ft$2);appRef=g(ht$1);taskService=g(an$2);ngZone=g(X);zonelessEnabled=g(qn$2);tracing=g($t$1,{optional:true});zoneIsDefined=typeof Zone<`u`&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:true}}];subscriptions=new v$1;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Rn$2):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(g(Is,{optional:true})??false);cancelScheduledCallback=null;useMicrotaskScheduler=false;runningTick=false;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let n=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(n);return}this.switchToMicrotaskScheduler(),this.taskService.remove(n);})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup();}));}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let n=this.taskService.add();this.useMicrotaskScheduler=true,queueMicrotask(()=>{this.useMicrotaskScheduler=false,this.taskService.remove(n);});});}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:this.appRef.dirtyFlags|=2;break;case 3:case 2:case 4:case 5:case 1:this.appRef.dirtyFlags|=4;break;case 6:this.appRef.dirtyFlags|=2;break;case 12:this.appRef.dirtyFlags|=16;break;case 13:this.appRef.dirtyFlags|=2;break;case 11:break;default:this.appRef.dirtyFlags|=8;}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?ku:vs;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()));}shouldScheduleTick(){return !(this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Rn$2+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick();},void 0,this.schedulerTickApplyArgs);}catch(r){this.applicationErrorHandler(r);}finally{this.taskService.remove(n),this.cleanup();}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup();}cleanup(){if(this.runningTick=false,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n);}}static ɵfac=function(r){return new(r||e)};static ɵprov=C({token:e,factory:e.ɵfac,providedIn:`root`})}return e})();function Ov(){return Ye$2(`NgZoneless`),zr([...cc(),[]])}function cc(){return [{provide:at,useExisting:ap},{provide:X,useClass:xn$2},{provide:qn$2,useValue:true}]}function kv(){return typeof $localize<`u`&&$localize.locale||lr}var dr=new I$1(``,{factory:()=>g(dr,{optional:true,skipSelf:true})||kv()});var fr=class{destroyed=false;listeners=null;errorHandler=g(le$1,{optional:true});destroyRef=g(ze);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=true,this.listeners=null;});}subscribe(t){if(this.destroyed)throw new m(953,false);return (this.listeners??=[]).push(t),{unsubscribe:()=>{let n=this.listeners?.indexOf(t);n!==void 0&&n!==-1&&this.listeners?.splice(n,1);}}}emit(t){if(this.destroyed){console.warn(_t$2(953,false));return}if(this.listeners===null)return;let n=v(null);try{for(let r of this.listeners)try{r(t);}catch(o){this.errorHandler?.handleError(o);}}finally{v(n);}}};function Fv(e,t){return Sn$2(e)}var Lv=e=>e;function Pv(e,t){if(typeof e==`function`)return cp(Ti(e,Lv,t?.equal));else return cp(Ti(e.source,e.computation,e.equal),e.debugName)}function cp(e,t){let n=e[P$1],r=e;return r.set=o=>Vc(n,o),r.update=o=>Hc(n,o),r.asReadonly=Gn$2.bind(e),r}var Ko=Symbol(`InputSignalNode#UNSET`),gp=s(r({},Mr),{transformFn:void 0,applyValueToInputSignal(e,t){rt(e,t);}});function mp(e,t){let n=Object.create(gp);n.value=e,n.transformFn=t?.transform;function r(){if(tt$2(n),n.value===Ko)throw new m(-950,null);return n.value}return r[P$1]=n,r}function oN(e){return new fr}function up(e,t){return mp(e,t)}function Jv(e){return mp(Ko,e)}var iN=(up.required=Jv,up);function lp(e,t){return of()}function Xv(e,t){return sf()}var sN=(lp.required=Xv,lp);function yp(e,t){let n=Object.create(gp),r=new fr;n.value=e;function o(){return tt$2(n),dp(n.value),n.value}return o[P$1]=n,o.asReadonly=Gn$2.bind(o),o.set=i=>{n.equal(n.value,i)||(rt(n,i),r.emit(i));},o.update=i=>{dp(n.value),o.set(i(n.value));},o.subscribe=r.subscribe.bind(r),o.destroyRef=r.destroyRef,o}function dp(e){if(e===Ko)throw new m(952,false)}function fp(e,t){return yp(e)}function eE(e){return yp(Ko)}var aN=(fp.required=eE,fp);var uc=new I$1(``),tE=new I$1(``);function pr(e){return !e.moduleRef}function nE(e){let t=pr(e)?e.r3Injector:e.moduleRef.injector,n=t.get(X);return n.run(()=>{pr(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Ft$2),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r});}),pr(e)){let i=()=>t.destroy(),s=e.platformInjector.get(uc);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i);});}else {let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(uc);s.add(i),e.moduleRef.onDestroy(()=>{Qn$2(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i);});}return oE(r,n,()=>{let i=t.get(an$2),s=i.add(),a=t.get(Ka);return a.runInitializers(),a.donePromise.then(()=>{if(bf(t.get(dr,lr)||lr),!t.get(tE,!0))return pr(e)?t.get(ht$1):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(pr(e)){let l=t.get(ht$1);return e.rootComponent!==void 0&&l.bootstrap(e.rootComponent),l}else return rE?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s);})})})}var rE;function oE(e,t,n){try{let r=n();return Wo(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var Qo=null;function iE(e=[],t){return Z.create({name:t,providers:[{provide:Pn$2,useValue:`platform`},{provide:uc,useValue:new Set([()=>Qo=null])},...e]})}function sE(e=[]){if(Qo)return Qo;let t=iE(e);return Qo=t,mf(),aE(t),t}function aE(e){let t=e.get(bo,null);Gr(e,()=>{t?.forEach(n=>n());});}var Dp=(()=>{class e{static __NG_ELEMENT_ID__=uE}return e})();function uE(e){return lE(q(),D(),(e&16)===16)}function lE(e,t,n){if(Pe$1(e)&&!n){let r=ae$1(e.index,t);return new pt$2(r,r)}else if(e.type&175){let r=t[te];return new pt$2(r,t)}return null}var lc=class{supports(t){return t instanceof Map||Ua(t)}create(){return new dc}},dc=class{_records=new Map;_mapHead=null;_appendAfter=null;_previousMapHead=null;_changesHead=null;_changesTail=null;_additionsHead=null;_additionsTail=null;_removalsHead=null;get isDirty(){return this._additionsHead!==null||this._changesHead!==null||this._removalsHead!==null}forEachItem(t){let n;for(n=this._mapHead;n!==null;n=n._next)t(n);}forEachPreviousItem(t){let n;for(n=this._previousMapHead;n!==null;n=n._nextPrevious)t(n);}forEachChangedItem(t){let n;for(n=this._changesHead;n!==null;n=n._nextChanged)t(n);}forEachAddedItem(t){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)t(n);}forEachRemovedItem(t){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)t(n);}diff(t){if(!t)t=new Map;else if(!(t instanceof Map||Ua(t)))throw new m(900,false);return this.check(t)?this:null}check(t){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(r,o)=>{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else {let i=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,i);}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;r!==null;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null;}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){let r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){let o=this._records.get(t);this._maybeAddToChanges(o,n);let i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}let r=new fc(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;t!==null;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;t!=null;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null;}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t));}_addToAdditions(t){this._additionsHead===null?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t);}_addToChanges(t){this._changesHead===null?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t);}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r));}},fc=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(t){this.key=t;}};function pp(){return new pc([new lc])}var pc=(()=>{class e{static ɵprov=C({token:e,providedIn:`root`,factory:pp});factories;constructor(n){this.factories=n;}static create(n,r){if(r){let o=r.factories.slice();n=n.concat(o);}return new e(n)}static extend(n){return {provide:e,useFactory:()=>{let r=g(e,{optional:true,skipSelf:true});return e.create(n,r||pp())}}}find(n){let r=this.factories.find(o=>o.supports(n));if(r)return r;throw new m(901,false)}}return e})();function vp(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:o}=e;M$2(S.BootstrapApplicationStart);try{let i=o?.injector??sE(r);return nE({r3Injector:new tr({providers:[cc(),Lu,...n||[]],parent:i,debugName:``,runEnvironmentInitializers:!1}).injector,platformInjector:i,rootComponent:t})}catch(i){return Promise.reject(i)}finally{M$2(S.BootstrapApplicationEnd);}}function dE(e){return typeof e==`boolean`?e:e!=null&&e!==`false`}function uN(e,t=NaN){return !isNaN(parseFloat(e))&&!isNaN(Number(e))?Number(e):t}function Ep(e,t){let n=ct(e),r=t.elementInjector||Xt$1();return new pn$2(n).create(r,t.projectableNodes,t.hostElement,t.environmentInjector,t.directives,t.bindings)}var Cp=null;function Qe$1(){return Cp}function hc(e){Cp??=e;}var hr=class{},Jo=(()=>{class e{historyGo(n){throw new Error(``)}static ɵfac=function(r){return new(r||e)};static ɵprov=C({token:e,factory:()=>g(Ip),providedIn:`platform`})}return e})();var Ip=(()=>{class e extends Jo{_location;_history;_doc=g(B$1);constructor(){super(),this._location=window.location,this._history=window.history;}getBaseHrefFromDOM(){return Qe$1().getBaseHref(this._doc)}onPopState(n){let r=Qe$1().getGlobalEventTarget(this._doc,`window`);return r.addEventListener(`popstate`,n,false),()=>r.removeEventListener(`popstate`,n)}onHashChange(n){let r=Qe$1().getGlobalEventTarget(this._doc,`window`);return r.addEventListener(`hashchange`,n,false),()=>r.removeEventListener(`hashchange`,n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n;}pushState(n,r,o){this._history.pushState(n,r,o);}replaceState(n,r,o){this._history.replaceState(n,r,o);}forward(){this._history.forward();}back(){this._history.back();}historyGo(n=0){this._history.go(n);}getState(){return this._history.state}static ɵfac=function(r){return new(r||e)};static ɵprov=C({token:e,factory:()=>new e,providedIn:`platform`})}return e})();function Tp(e,t){return e?t?e.endsWith(`/`)?t.startsWith(`/`)?e+t.slice(1):e+t:t.startsWith(`/`)?e+t:`${e}/${t}`:e:t}function wp(e){let t=e.search(/#|\?|$/);return e[t-1]===`/`?e.slice(0,t-1)+e.slice(t):e}function gt$3(e){return e&&e[0]!==`?`?`?${e}`:e}var Xo=(()=>{class e{historyGo(n){throw new Error(``)}static ɵfac=function(r){return new(r||e)};static ɵprov=C({token:e,factory:()=>g(pE),providedIn:`root`})}return e})(),fE=new I$1(``),pE=(()=>{class e extends Xo{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??g(B$1).location?.origin??``;}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()();}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n));}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Tp(this._baseHref,n)}path(n=false){let r=this._platformLocation.pathname+gt$3(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+gt$3(i));this._platformLocation.pushState(n,r,s);}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+gt$3(i));this._platformLocation.replaceState(n,r,s);}forward(){this._platformLocation.forward();}back(){this._platformLocation.back();}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n);}static ɵfac=function(r){return new(r||e)(T$1(Jo),T$1(fE,8))};static ɵprov=C({token:e,factory:e.ɵfac,providedIn:`root`})}return e})();var Sp=(()=>{class e{_subject=new U;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;this._basePath=mE(wp(_p(this._locationStrategy.getBaseHref()))),this._locationStrategy.onPopState(o=>{this._subject.next({url:this.path(true),pop:true,state:o.state,type:o.type});});}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[];}path(n=false){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=``){return this.path()==this.normalize(n+gt$3(r))}normalize(n){return e.stripTrailingSlash(gE(this._basePath,_p(n)))}prepareExternalUrl(n){return n&&n[0]!==`/`&&(n=`/`+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r=``,o=null){this._locationStrategy.pushState(o,``,n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+gt$3(r)),o);}replaceState(n,r=``,o=null){this._locationStrategy.replaceState(o,``,n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+gt$3(r)),o);}forward(){this._locationStrategy.forward();}back(){this._locationStrategy.back();}historyGo(n=0){this._locationStrategy.historyGo?.(n);}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state);}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null);}}_notifyUrlChangeListeners(n=``,r){this._urlChangeListeners.forEach(o=>o(n,r));}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r??void 0,complete:o??void 0})}static normalizeQueryParams=gt$3;static joinWithSlash=Tp;static stripTrailingSlash=wp;static ɵfac=function(r){return new(r||e)(T$1(Xo))};static ɵprov=C({token:e,factory:()=>hE(),providedIn:`root`})}return e})();function hE(){return new Sp(T$1(Xo))}function gE(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===``||[`/`,`;`,`?`,`#`].includes(n[0])?n:t}function _p(e){return e.replace(/\/index.html$/,``)}function mE(e){if(new RegExp(`^(https?:)?//`).test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var K=(function(e){return e[e.Format=0]=`Format`,e[e.Standalone=1]=`Standalone`,e})(K||{}),x$1=(function(e){return e[e.Narrow=0]=`Narrow`,e[e.Abbreviated=1]=`Abbreviated`,e[e.Wide=2]=`Wide`,e[e.Short=3]=`Short`,e})(x$1||{}),ie$1=(function(e){return e[e.Short=0]=`Short`,e[e.Medium=1]=`Medium`,e[e.Long=2]=`Long`,e[e.Full=3]=`Full`,e})(ie$1||{}),Je$1={MinusSign:5};function Np(e){return ue$1(e)[V$1.LocaleId]}function Ap(e,t,n){let r=ue$1(e);return De$1(De$1([r[V$1.DayPeriodsFormat],r[V$1.DayPeriodsStandalone]],t),n)}function Rp(e,t,n){let r=ue$1(e);return De$1(De$1([r[V$1.DaysFormat],r[V$1.DaysStandalone]],t),n)}function xp(e,t,n){let r=ue$1(e);return De$1(De$1([r[V$1.MonthsFormat],r[V$1.MonthsStandalone]],t),n)}function Op(e,t){let r=ue$1(e)[V$1.Eras];return De$1(r,t)}function gr(e,t){return De$1(ue$1(e)[V$1.DateFormat],t)}function mr(e,t){return De$1(ue$1(e)[V$1.TimeFormat],t)}function yr(e,t){let r=ue$1(e)[V$1.DateTimeFormat];return De$1(r,t)}function Dr(e,t){let n=ue$1(e),r=n[V$1.NumberSymbols][t];return r}function kp(e){if(!e[V$1.ExtraData])throw new m(2303,false)}function Fp(e){let t=ue$1(e);return kp(t),(t[V$1.ExtraData][2]||[]).map(r=>typeof r==`string`?gc(r):[gc(r[0]),gc(r[1])])}function Lp(e,t,n){let r=ue$1(e);kp(r);return De$1(De$1([r[V$1.ExtraData][0],r[V$1.ExtraData][1]],t)||[],n)||[]}function De$1(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<`u`)return e[n];throw new m(2304,false)}function gc(e){let[t,n]=e.split(`:`);return {hours:+t,minutes:+n}}var DE=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ei$1={},vE=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;function Pp(e,t,n,r){let o=bE(e);t=Ke$2(n,t)||t;let s=[],a;for(;t;)if(a=vE.exec(t),a){s=s.concat(a.slice(1));let l=s.pop();if(!l)break;t=l;}else {s.push(t);break}let c=o.getTimezoneOffset();r&&(c=Bp(r,c),o=ME(o,r));let u=``;return s.forEach(l=>{let d=TE(l);u+=d?d(o,n,c):l===`''`?`'`:l.replace(/(^'|'$)/g,``).replace(/''/g,`'`);}),u}function ii$1(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function Ke$2(e,t){let n=Np(e);if(ei$1[n]??={},ei$1[n][t])return ei$1[n][t];let r=``;switch(t){case `shortDate`:r=gr(e,ie$1.Short);break;case `mediumDate`:r=gr(e,ie$1.Medium);break;case `longDate`:r=gr(e,ie$1.Long);break;case `fullDate`:r=gr(e,ie$1.Full);break;case `shortTime`:r=mr(e,ie$1.Short);break;case `mediumTime`:r=mr(e,ie$1.Medium);break;case `longTime`:r=mr(e,ie$1.Long);break;case `fullTime`:r=mr(e,ie$1.Full);break;case `short`:let o=Ke$2(e,`shortTime`),i=Ke$2(e,`shortDate`);r=ti$1(yr(e,ie$1.Short),[o,i]);break;case `medium`:let s=Ke$2(e,`mediumTime`),a=Ke$2(e,`mediumDate`);r=ti$1(yr(e,ie$1.Medium),[s,a]);break;case `long`:let c=Ke$2(e,`longTime`),u=Ke$2(e,`longDate`);r=ti$1(yr(e,ie$1.Long),[c,u]);break;case `full`:let l=Ke$2(e,`fullTime`),d=Ke$2(e,`fullDate`);r=ti$1(yr(e,ie$1.Full),[l,d]);break}return r&&(ei$1[n][t]=r),r}function ti$1(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return t!=null&&r in t?t[r]:n})),e}function Ne$1(e,t,n=`-`,r,o){let i=``;(e<0||o&&e<=0)&&(o?e=-e+1:(e=-e,i=n));let s=String(e);for(;s.length<t;)s=`0`+s;return r&&(s=s.slice(s.length-t)),i+s}function EE(e,t){return Ne$1(e,3).substring(0,t)}function $(e,t,n=0,r=false,o=false){return function(i,s){let a=CE(e,i);if((n>0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return EE(a,t);let c=Dr(s,Je$1.MinusSign);return Ne$1(a,t,c,r,o)}}function CE(e,t){switch(e){case 0:return t.getFullYear();case 1:return t.getMonth();case 2:return t.getDate();case 3:return t.getHours();case 4:return t.getMinutes();case 5:return t.getSeconds();case 6:return t.getMilliseconds();case 7:return t.getDay();default:throw new m(2301,false)}}function k$1(e,t,n=K.Format,r=false){return function(o,i){return IE(o,i,e,t,n,r)}}function IE(e,t,n,r,o,i){switch(n){case 2:return xp(t,o,r)[e.getMonth()];case 1:return Rp(t,o,r)[e.getDay()];case 0:let s=e.getHours(),a=e.getMinutes();if(i){let u=Fp(t),l=Lp(t,o,r),d=u.findIndex(p=>{if(Array.isArray(p)){let[f,h]=p,_=s>=f.hours&&a>=f.minutes,N=s<h.hours||s===h.hours&&a<h.minutes;if(f.hours<h.hours){if(_&&N)return true}else if(_||N)return true}else if(p.hours===s&&p.minutes===a)return true;return false});if(d!==-1)return l[d]}return Ap(t,o,r)[s<12?0:1];case 3:return Op(t,r)[e.getFullYear()<=0?0:1];default:throw new m(2302,false)}}function ni$1(e){return function(t,n,r){let o=-1*r,i=Dr(n,Je$1.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(e){case 0:return (o>=0?`+`:``)+Ne$1(s,2,i)+Ne$1(Math.abs(o%60),2,i);case 1:return `GMT`+(o>=0?`+`:``)+Ne$1(s,1,i);case 2:return `GMT`+(o>=0?`+`:``)+Ne$1(s,2,i)+`:`+Ne$1(Math.abs(o%60),2,i);case 3:return r===0?`Z`:(o>=0?`+`:``)+Ne$1(s,2,i)+`:`+Ne$1(Math.abs(o%60),2,i);default:throw new m(2310,false)}}}var wE=0,oi$1=4;function _E(e){let t=ii$1(e,wE,1).getDay();return ii$1(e,0,1+(t<=oi$1?oi$1:oi$1+7)-t)}function jp(e){let t=e.getDay(),n=t===0?-3:oi$1-t;return ii$1(e.getFullYear(),e.getMonth(),e.getDate()+n)}function mc(e,t=false){return function(n,r){let o;if(t){let i=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+i)/7);}else {let i=jp(n),s=_E(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5);}return Ne$1(o,e,Dr(r,Je$1.MinusSign))}}function ri$1(e,t=false){return function(n,r){return Ne$1(jp(n).getFullYear(),e,Dr(r,Je$1.MinusSign),t)}}var yc={};function TE(e){if(yc[e])return yc[e];let t;switch(e){case `G`:case `GG`:case `GGG`:t=k$1(3,x$1.Abbreviated);break;case `GGGG`:t=k$1(3,x$1.Wide);break;case `GGGGG`:t=k$1(3,x$1.Narrow);break;case `y`:t=$(0,1,0,false,true);break;case `yy`:t=$(0,2,0,true,true);break;case `yyy`:t=$(0,3,0,false,true);break;case `yyyy`:t=$(0,4,0,false,true);break;case `Y`:t=ri$1(1);break;case `YY`:t=ri$1(2,true);break;case `YYY`:t=ri$1(3);break;case `YYYY`:t=ri$1(4);break;case `M`:case `L`:t=$(1,1,1);break;case `MM`:case `LL`:t=$(1,2,1);break;case `MMM`:t=k$1(2,x$1.Abbreviated);break;case `MMMM`:t=k$1(2,x$1.Wide);break;case `MMMMM`:t=k$1(2,x$1.Narrow);break;case `LLL`:t=k$1(2,x$1.Abbreviated,K.Standalone);break;case `LLLL`:t=k$1(2,x$1.Wide,K.Standalone);break;case `LLLLL`:t=k$1(2,x$1.Narrow,K.Standalone);break;case `w`:t=mc(1);break;case `ww`:t=mc(2);break;case `W`:t=mc(1,true);break;case `d`:t=$(2,1);break;case `dd`:t=$(2,2);break;case `c`:case `cc`:t=$(7,1);break;case `ccc`:t=k$1(1,x$1.Abbreviated,K.Standalone);break;case `cccc`:t=k$1(1,x$1.Wide,K.Standalone);break;case `ccccc`:t=k$1(1,x$1.Narrow,K.Standalone);break;case `cccccc`:t=k$1(1,x$1.Short,K.Standalone);break;case `E`:case `EE`:case `EEE`:t=k$1(1,x$1.Abbreviated);break;case `EEEE`:t=k$1(1,x$1.Wide);break;case `EEEEE`:t=k$1(1,x$1.Narrow);break;case `EEEEEE`:t=k$1(1,x$1.Short);break;case `a`:case `aa`:case `aaa`:t=k$1(0,x$1.Abbreviated);break;case `aaaa`:t=k$1(0,x$1.Wide);break;case `aaaaa`:t=k$1(0,x$1.Narrow);break;case `b`:case `bb`:case `bbb`:t=k$1(0,x$1.Abbreviated,K.Standalone,true);break;case `bbbb`:t=k$1(0,x$1.Wide,K.Standalone,true);break;case `bbbbb`:t=k$1(0,x$1.Narrow,K.Standalone,true);break;case `B`:case `BB`:case `BBB`:t=k$1(0,x$1.Abbreviated,K.Format,true);break;case `BBBB`:t=k$1(0,x$1.Wide,K.Format,true);break;case `BBBBB`:t=k$1(0,x$1.Narrow,K.Format,true);break;case `h`:t=$(3,1,-12);break;case `hh`:t=$(3,2,-12);break;case `H`:t=$(3,1);break;case `HH`:t=$(3,2);break;case `m`:t=$(4,1);break;case `mm`:t=$(4,2);break;case `s`:t=$(5,1);break;case `ss`:t=$(5,2);break;case `S`:t=$(6,1);break;case `SS`:t=$(6,2);break;case `SSS`:t=$(6,3);break;case `Z`:case `ZZ`:case `ZZZ`:t=ni$1(0);break;case `ZZZZZ`:t=ni$1(3);break;case `O`:case `OO`:case `OOO`:case `z`:case `zz`:case `zzz`:t=ni$1(1);break;case `OOOO`:case `ZZZZ`:case `zzzz`:t=ni$1(2);break;default:return null}return yc[e]=t,t}function Bp(e,t){e=e.replace(/:/g,``);let n=Date.parse(`Jan 01, 1970 00:00:00 `+e)/6e4;return isNaN(n)?t:n}function SE(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function ME(e,t,n){let o=e.getTimezoneOffset();return SE(e,-1*(Bp(t,o)-o))}function bE(e){if(Mp(e))return e;if(typeof e==`number`&&!isNaN(e))return new Date(e);if(typeof e==`string`){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[o,i=1,s=1]=e.split(`-`).map(a=>+a);return ii$1(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(DE))return NE(r)}let t=new Date(e);if(!Mp(t))throw new m(2311,false);return t}function NE(e){let t=new Date(0),n=0,r=0,o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));let s=Number(e[4]||0)-n,a=Number(e[5]||0)-r,c=Number(e[6]||0),u=Math.floor(parseFloat(`0.`+(e[7]||0))*1e3);return i.call(t,s,a,c,u),t}function Mp(e){return e instanceof Date&&!isNaN(e.valueOf())}var Dc=/\s+/,bp=[],AE=(()=>{class e{_ngEl;_renderer;initialClasses=bp;rawClass;stateMap=new Map;constructor(n,r){this._ngEl=n,this._renderer=r;}set klass(n){this.initialClasses=n!=null?n.trim().split(Dc):bp;}set ngClass(n){this.rawClass=typeof n==`string`?n.trim().split(Dc):n;}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,true);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let r of n)this._updateState(r,true);else if(n!=null)for(let r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff();}_updateState(n,r){let o=this.stateMap.get(n);o!==void 0?(o.enabled!==r&&(o.changed=true,o.enabled=r),o.touched=true):this.stateMap.set(n,{enabled:r,changed:true,touched:true});}_applyStateDiff(){for(let n of this.stateMap){let r=n[0],o=n[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=false):o.touched||(o.enabled&&this._toggleClass(r,false),this.stateMap.delete(r)),o.touched=false;}}_toggleClass(n,r){n=n.trim(),n.length>0&&n.split(Dc).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o);});}static ɵfac=function(r){return new(r||e)(ne$1(Se$1),ne$1(ur))};static ɵdir=En$2({type:e,selectors:[[``,`ngClass`,``]],inputs:{klass:[0,`class`,`klass`],ngClass:`ngClass`}})}return e})();var RE=(()=>{class e{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(n,r,o){this._ngEl=n,this._differs=r,this._renderer=o;}set ngStyle(n){this._ngStyle=n,!this._differ&&n&&(this._differ=this._differs.find(n).create());}ngDoCheck(){if(this._differ){let n=this._differ.diff(this._ngStyle);n&&this._applyChanges(n);}}_setStyle(n,r){let[o,i]=n.split(`.`),s=o.indexOf(`-`)===-1?void 0:Te$1.DashCase;r!=null?this._renderer.setStyle(this._ngEl.nativeElement,o,i?`${r}${i}`:r,s):this._renderer.removeStyle(this._ngEl.nativeElement,o,s);}_applyChanges(n){n.forEachRemovedItem(r=>this._setStyle(r.key,null)),n.forEachAddedItem(r=>this._setStyle(r.key,r.currentValue)),n.forEachChangedItem(r=>this._setStyle(r.key,r.currentValue));}static ɵfac=function(r){return new(r||e)(ne$1(Se$1),ne$1(pc),ne$1(ur))};static ɵdir=En$2({type:e,selectors:[[``,`ngStyle`,``]],inputs:{ngStyle:`ngStyle`}})}return e})(),xE=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;injector=g(Z);constructor(n){this._viewContainerRef=n;}ngOnChanges(n){if(this._shouldRecreateView(n)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this._getInjector()});}}_getInjector(){return this.ngTemplateOutletInjector===`outlet`?this.injector:this.ngTemplateOutletInjector??void 0}_shouldRecreateView(n){return !!n.ngTemplateOutlet||!!n.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(n,r,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,o):false,get:(n,r,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,o)}})}static ɵfac=function(r){return new(r||e)(ne$1(zt$2))};static ɵdir=En$2({type:e,selectors:[[``,`ngTemplateOutlet`,``]],inputs:{ngTemplateOutletContext:`ngTemplateOutletContext`,ngTemplateOutlet:`ngTemplateOutlet`,ngTemplateOutletInjector:`ngTemplateOutletInjector`},features:[Mo]})}return e})();function OE(e,t){return new m(2100,false)}var kE=`mediumDate`,Vp=new I$1(``),Hp=new I$1(``),FE=(()=>{class e{locale;defaultTimezone;defaultOptions;constructor(n,r,o){this.locale=n,this.defaultTimezone=r,this.defaultOptions=o;}transform(n,r,o,i){if(n==null||n===``||n!==n)return null;try{let s=r??this.defaultOptions?.dateFormat??kE,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return Pp(n,s,i||this.locale,a)}catch(s){throw OE(e,s.message)}}static ɵfac=function(r){return new(r||e)(ne$1(dr,16),ne$1(Vp,24),ne$1(Hp,24))};static ɵpipe=Go({name:`date`,type:e,pure:true})}return e})();var LE=(()=>{class e{transform(n){return JSON.stringify(n,null,2)}static ɵfac=function(r){return new(r||e)};static ɵpipe=Go({name:`json`,type:e,pure:false})}return e})();var $p=(()=>{class e{static ɵfac=function(r){return new(r||e)};static ɵmod=vn$2({type:e});static ɵinj=Tt$2({})}return e})();function vc(e,t){t=encodeURIComponent(t);for(let n of e.split(`;`)){let r=n.indexOf(`=`),[o,i]=r==-1?[n,``]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var vr=class{};var Ec=`browser`;function Up(e){return e===Ec}var Er=class{_doc;constructor(t){this._doc=t;}manager},si$1=(()=>{class e extends Er{constructor(n){super(n);}supports(n){return true}addEventListener(n,r,o,i){return n.addEventListener(r,o,i),()=>this.removeEventListener(n,r,o,i)}removeEventListener(n,r,o,i){return n.removeEventListener(r,o,i)}static ɵfac=function(r){return new(r||e)(T$1(B$1))};static ɵprov=C({token:e,factory:e.ɵfac})}return e})(),ui$1=new I$1(``),_c=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(s=>{s.manager=this;});this._plugins=n.filter(s=>!(s instanceof si$1)).slice().reverse();let i=n.find(s=>s instanceof si$1);i&&this._plugins.push(i);}addEventListener(n,r,o,i){return this._findPluginFor(r).addEventListener(n,r,o,i)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new m(5101,false);return this._eventNameToPlugin.set(n,r),r}static ɵfac=function(r){return new(r||e)(T$1(ui$1),T$1(X))};static ɵprov=C({token:e,factory:e.ɵfac})}return e})(),Cc=`ng-app-id`;function zp(e){for(let t of e)t.remove();}function Gp(e,t){let n=t.createElement(`style`);return n.textContent=e,n}function jE(e,t,n,r){let o=e.head?.querySelectorAll(`style[${Cc}="${t}"],link[${Cc}="${t}"]`);if(o)for(let i of o)i.removeAttribute(Cc),i instanceof HTMLLinkElement?r.set(i.href.slice(i.href.lastIndexOf(`/`)+1),{usage:0,elements:[i]}):i.textContent&&n.set(i.textContent,{usage:0,elements:[i]});}function wc(e,t){let n=t.createElement(`link`);return n.setAttribute(`rel`,`stylesheet`),n.setAttribute(`href`,e),n}var Tc=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,jE(n,r,this.inline,this.external),this.hosts.add(n.head);}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,Gp);r?.forEach(o=>this.addUsage(o,this.external,wc));}removeStyles(n,r){for(let o of n)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external));}addUsage(n,r,o){let i=r.get(n);i?i.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(n,this.doc)))});}removeUsage(n,r){let o=r.get(n);o&&(o.usage--,o.usage<=0&&(zp(o.elements),r.delete(n)));}ngOnDestroy(){for(let[,{elements:n}]of [...this.inline,...this.external])zp(n);this.hosts.clear();}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,Gp(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,wc(r,this.doc)));}removeHost(n){this.hosts.delete(n);}addElement(n,r){return this.nonce&&r.setAttribute(`nonce`,this.nonce),n.appendChild(r)}static ɵfac=function(r){return new(r||e)(T$1(B$1),T$1(yn$2),T$1(No,8),T$1(Ht$1))};static ɵprov=C({token:e,factory:e.ɵfac})}return e})(),Ic={svg:`http://www.w3.org/2000/svg`,xhtml:`http://www.w3.org/1999/xhtml`,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`,math:`http://www.w3.org/1998/Math/MathML`},Sc=/%COMP%/g;var qp=`%COMP%`,BE=`_nghost-${qp}`,VE=`_ngcontent-${qp}`,HE=true,$E=new I$1(``,{factory:()=>HE});function UE(e){return VE.replace(Sc,e)}function zE(e){return BE.replace(Sc,e)}function Zp(e,t){return t.map(n=>n.replace(Sc,e))}var Mc=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;constructor(n,r,o,i,s,a,c=null,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.ngZone=a,this.nonce=c,this.tracingService=u,this.defaultRenderer=new Cr(n,s,a,this.tracingService);}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;let o=this.getOrCreateRenderer(n,r);return o instanceof ci$1?o.applyToHost(n):o instanceof Ir&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,d=this.tracingService;switch(r.encapsulation){case _e$2.Emulated:i=new ci$1(c,u,r,this.appId,l,s,a,d);break;case _e$2.ShadowDom:return new ai$1(c,n,r,s,a,this.nonce,d,u);case _e$2.ExperimentalIsolatedShadowDom:return new ai$1(c,n,r,s,a,this.nonce,d);default:i=new Ir(c,u,r,l,s,a,d);break}o.set(r.id,i);}return i}ngOnDestroy(){this.rendererByCompId.clear();}componentReplaced(n){this.rendererByCompId.delete(n);}static ɵfac=function(r){return new(r||e)(T$1(_c),T$1(Tc),T$1(yn$2),T$1($E),T$1(B$1),T$1(X),T$1(No),T$1($t$1,8))};static ɵprov=C({token:e,factory:e.ɵfac})}return e})(),Cr=class{eventManager;doc;ngZone;tracingService;data=Object.create(null);throwOnSyntheticProps=true;constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.tracingService=o;}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(Ic[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(Wp(t)?t.content:t).appendChild(n);}insertBefore(t,n,r){t&&(Wp(t)?t.content:t).insertBefore(n,r);}removeChild(t,n){n.remove();}selectRootElement(t,n){let r=typeof t==`string`?this.doc.querySelector(t):t;if(!r)throw new m(-5104,false);return n||(r.textContent=``),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+`:`+n;let i=Ic[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r);}else t.setAttribute(n,r);}removeAttribute(t,n,r){if(r){let o=Ic[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`);}else t.removeAttribute(n);}addClass(t,n){t.classList.add(n);}removeClass(t,n){t.classList.remove(n);}setStyle(t,n,r,o){o&(Te$1.DashCase|Te$1.Important)?t.style.setProperty(n,r,o&Te$1.Important?`important`:``):t.style[n]=r;}removeStyle(t,n,r){r&Te$1.DashCase?t.style.removeProperty(n):t.style[n]=``;}setProperty(t,n,r){t!=null&&(t[n]=r);}setValue(t,n){t.nodeValue=n;}listen(t,n,r,o){if(typeof t==`string`&&(t=Qe$1().getGlobalEventTarget(this.doc,t),!t))throw new m(5102,false);let i=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(t,n,i)),this.eventManager.addEventListener(t,n,i,o)}decoratePreventDefault(t){return n=>{if(n===`__ngUnwrap__`)return t;t(n)===false&&n.preventDefault();}}};function Wp(e){return e.tagName===`TEMPLATE`&&e.content!==void 0}var ai$1=class ai extends Cr{hostEl;sharedStylesHost;shadowRoot;constructor(t,n,r,o,i,s,a,c){super(t,o,i,a),this.hostEl=n,this.sharedStylesHost=c,this.shadowRoot=n.attachShadow({mode:`open`}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let u=r.styles;u=Zp(r.id,u);for(let d of u){let p=document.createElement(`style`);s&&p.setAttribute(`nonce`,s),p.textContent=d,this.shadowRoot.appendChild(p);}let l=r.getExternalStyles?.();if(l)for(let d of l){let p=wc(d,o);s&&p.setAttribute(`nonce`,s),this.shadowRoot.appendChild(p);}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot);}},Ir=class extends Cr{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,c){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o;let u=r.styles;this.styles=c?Zp(c,u):u,this.styleUrls=r.getExternalStyles?.(c);}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls);}destroy(){this.removeStylesOnCompDestroy&&ft$3.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls);}},ci$1=class ci extends Ir{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,c){let u=o+`-`+r.id;super(t,n,r,i,s,a,c,u),this.contentAttr=UE(u),this.hostAttr=zE(u);}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,``);}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,``),r}};var li$1=class e extends hr{supportsDOMEvents=true;static makeCurrent(){hc(new e);}onAndCancel(t,n,r,o){return t.addEventListener(n,r,o),()=>{t.removeEventListener(n,r,o);}}dispatchEvent(t,n){t.dispatchEvent(n);}remove(t){t.remove();}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument(`fakeTitle`)}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n===`window`?window:n===`document`?t:n===`body`?t.body:null}getBaseHref(t){let n=GE();return n==null?null:WE(n)}resetBaseElement(){wr=null;}getUserAgent(){return window.navigator.userAgent}getCookie(t){return vc(document.cookie,t)}},wr=null;function GE(){return wr=wr||document.head.querySelector(`base`),wr?wr.getAttribute(`href`):null}function WE(e){return new URL(e,document.baseURI).pathname}var qE=(()=>{class e{build(){return new XMLHttpRequest}static ɵfac=function(r){return new(r||e)};static ɵprov=C({token:e,factory:e.ɵfac})}return e})(),Yp=[`alt`,`control`,`meta`,`shift`],ZE={"\b":`Backspace`," ":`Tab`,"":`Delete`,"\x1B":`Escape`,Del:`Delete`,Esc:`Escape`,Left:`ArrowLeft`,Right:`ArrowRight`,Up:`ArrowUp`,Down:`ArrowDown`,Menu:`ContextMenu`,Scroll:`ScrollLock`,Win:`OS`},YE={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},Qp=(()=>{class e extends Er{constructor(n){super(n);}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o,i){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Qe$1().onAndCancel(n,s.domEventName,a,i))}static parseEventName(n){let r=n.toLowerCase().split(`.`),o=r.shift();if(r.length===0||!(o===`keydown`||o===`keyup`))return null;let i=e._normalizeKey(r.pop()),s=``,a=r.indexOf(`code`);if(a>-1&&(r.splice(a,1),s=`code.`),Yp.forEach(u=>{let l=r.indexOf(u);l>-1&&(r.splice(l,1),s+=u+`.`);}),s+=i,r.length!=0||i.length===0)return null;let c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=ZE[n.key]||n.key,i=``;return r.indexOf(`code.`)>-1&&(o=n.code,i=`code.`),o==null||!o?false:(o=o.toLowerCase(),o===` `?o=`space`:o===`.`&&(o=`dot`),Yp.forEach(s=>{if(s!==o){let a=YE[s];a(n)&&(i+=s+`.`);}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i));}}static _normalizeKey(n){return n===`esc`?`escape`:n}static ɵfac=function(r){return new(r||e)(T$1(B$1))};static ɵprov=C({token:e,factory:e.ɵfac})}return e})();async function QE(e,t){return vp(KE(e,t))}function KE(e,t){return {platformRef:t?.platformRef,appProviders:[...nC,...e?.providers??[]],platformProviders:tC}}function JE(){li$1.makeCurrent();}function XE(){return new le$1}function eC(){return Ia(document),document}var tC=[{provide:Ht$1,useValue:Ec},{provide:bo,useValue:JE,multi:true},{provide:B$1,useFactory:eC}];var nC=[{provide:Pn$2,useValue:`root`},{provide:le$1,useFactory:XE},{provide:ui$1,useClass:si$1,multi:true},{provide:ui$1,useClass:Qp,multi:true},Mc,Tc,_c,{provide:We$2,useExisting:Mc},{provide:vr,useClass:qE},[]];var rC=(()=>{class e{static ɵfac=function(r){return new(r||e)};static ɵprov=C({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=T$1(oC),o},providedIn:`root`})}return e})(),oC=(()=>{class e extends rC{_doc;constructor(n){super(),this._doc=n;}sanitize(n,r){if(r==null)return null;switch(n){case Me$1.NONE:return r;case Me$1.HTML:return qe(r,`HTML`)?ye$2(r):xo(this._doc,String(r)).toString();case Me$1.STYLE:return qe(r,`Style`)?ye$2(r):r;case Me$1.SCRIPT:if(qe(r,`Script`))return ye$2(r);throw new m(5200,false);case Me$1.URL:return qe(r,`URL`)?ye$2(r):ir(String(r));case Me$1.RESOURCE_URL:if(qe(r,`ResourceURL`))return ye$2(r);throw new m(5201,false);default:throw new m(5202,false)}}bypassSecurityTrustHtml(n){return _a(n)}bypassSecurityTrustStyle(n){return Ta(n)}bypassSecurityTrustScript(n){return Sa(n)}bypassSecurityTrustUrl(n){return Ma(n)}bypassSecurityTrustResourceUrl(n){return ba(n)}static ɵfac=function(r){return new(r||e)(T$1(B$1))};static ɵprov=C({token:e,factory:e.ɵfac,providedIn:`root`})}return e})();function h0(e){return e.buttons===0||e.detail===0}function g0(e){let t=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return !!t&&t.identifier===-1&&(t.radiusX==null||t.radiusX===1)&&(t.radiusY==null||t.radiusY===1)}var bc;function iC(){if(bc==null){let e=typeof document<`u`?document.head:null;bc=!!(e&&(e.createShadowRoot||e.attachShadow));}return bc}function y0(e){if(iC()){let t=e.getRootNode?e.getRootNode():null;if(typeof ShadowRoot<`u`&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function D0(){let e=typeof document<`u`&&document?document.activeElement:null;for(;e&&e.shadowRoot;){let t=e.shadowRoot.activeElement;if(t===e)break;e=t;}return e}function v0(e){return e.composedPath?e.composedPath()[0]:e.target}var Nc;try{Nc=typeof Intl<`u`&&Intl.v8BreakIterator;}catch{Nc=false;}var Kp=(()=>{class e{_platformId=g(Ht$1);isBrowser=this._platformId?Up(this._platformId):typeof document==`object`&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||Nc)&&typeof CSS<`u`&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!(`MSStream`in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static ɵfac=function(r){return new(r||e)};static ɵprov=C({token:e,factory:e.ɵfac,providedIn:`root`})}return e})();function S0(e,t=0){return sC(e)?Number(e):arguments.length===2?t:0}function sC(e){return !isNaN(parseFloat(e))&&!isNaN(Number(e))}function M0(e){return e instanceof Se$1?e.nativeElement:e}var di$1=new WeakMap,R0=(()=>{class e{_appRef;_injector=g(Z);_environmentInjector=g(re$1);load(n){let r=this._appRef=this._appRef||this._injector.get(ht$1),o=di$1.get(r);o||(o={loaders:new Set,refs:[]},di$1.set(r,o),r.onDestroy(()=>{di$1.get(r)?.refs.forEach(i=>i.destroy()),di$1.delete(r);})),o.loaders.has(n)||(o.loaders.add(n),o.refs.push(Ep(n,{environmentInjector:this._environmentInjector})));}static ɵfac=function(r){return new(r||e)};static ɵprov=C({token:e,factory:e.ɵfac,providedIn:`root`})}return e})();function O0(e){return Array.isArray(e)?e:[e]}var aC=new I$1(`cdk-dir-doc`,{providedIn:`root`,factory:()=>g(B$1)}),cC=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function uC(e){let t=e?.toLowerCase()||``;return t===`auto`&&typeof navigator<`u`&&navigator?.language?cC.test(navigator.language)?`rtl`:`ltr`:t===`rtl`?`rtl`:`ltr`}var P0=(()=>{class e{get value(){return this.valueSignal()}valueSignal=Lt$2(`ltr`);change=new ve$1;constructor(){let n=g(aC,{optional:true});if(n){let r=n.body?n.body.dir:null,o=n.documentElement?n.documentElement.dir:null;this.valueSignal.set(uC(r||o||`ltr`));}}ngOnDestroy(){this.change.complete();}static ɵfac=function(r){return new(r||e)};static ɵprov=C({token:e,factory:e.ɵfac,providedIn:`root`})}return e})();var Gt;function B0(){if(Gt==null){if(typeof document!=`object`||!document||typeof Element!=`function`||!Element)return Gt=false,Gt;if(document.documentElement?.style&&`scrollBehavior`in document.documentElement.style)Gt=true;else {let e=Element.prototype.scrollTo;e?Gt=!/\{\s*\[native code\]\s*\}/.test(e.toString()):Gt=false;}}return Gt}var lC=20,aR=(()=>{class e{_platform=g(Kp);_listeners;_viewportSize=null;_change=new U;_document=g(B$1);constructor(){let n=g(X),r=g(We$2).createRenderer(null,null);n.runOutsideAngular(()=>{if(this._platform.isBrowser){let o=i=>this._change.next(i);this._listeners=[r.listen(`window`,`resize`,o),r.listen(`window`,`orientationchange`,o)];}this.change().subscribe(()=>this._viewportSize=null);});}ngOnDestroy(){this._listeners?.forEach(n=>n()),this._change.complete();}getViewportSize(){this._viewportSize||this._updateViewportSize();let n={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),n}getViewportRect(){let n=this.getViewportScrollPosition(),{width:r,height:o}=this.getViewportSize();return {top:n.top,left:n.left,bottom:n.top+o,right:n.left+r,height:o,width:r}}getViewportScrollPosition(){if(!this._platform.isBrowser)return {top:0,left:0};let n=this._document,r=this._getWindow(),o=n.documentElement,i=o.getBoundingClientRect();return {top:-i.top||n.body?.scrollTop||r.scrollY||o.scrollTop||0,left:-i.left||n.body?.scrollLeft||r.scrollX||o.scrollLeft||0}}change(n=lC){return n>0?this._change.pipe(vs$1(n)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let n=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:n.innerWidth,height:n.innerHeight}:{width:0,height:0};}static ɵfac=function(r){return new(r||e)};static ɵprov=C({token:e,factory:e.ɵfac,providedIn:`root`})}return e})();var Ac={},Jp=class e{_appId=g(yn$2);static _infix=`a${Math.floor(Math.random()*1e5).toString()}`;getId(t,n=false){return this._appId!==`ng`&&(t+=this._appId),Ac.hasOwnProperty(t)||(Ac[t]=0),`${t}${n?e._infix+`-`:``}${Ac[t]++}`}static ɵfac=function(n){return new(n||e)};static ɵprov=C({token:e,factory:e.ɵfac,providedIn:`root`})};
@@ -13,8 +13,8 @@ var Ke$1=new I$1(`EngagementContext`),Ge$1=new I$1(`EventData`);var B=class{_att
13
13
  `],encapsulation:2,changeDetection:0})}return o})(),bt=(()=>{class o{_platform=g(Kp);_containerElement;_document=g(B$1);_styleLoader=g(R0);constructor(){}ngOnDestroy(){this._containerElement?.remove();}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let t=`cdk-overlay-container`;if(this._platform.isBrowser||_t()){let s=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let n=0;n<s.length;n++)s[n].remove();}let i=this._document.createElement(`div`);i.classList.add(t),_t()?i.setAttribute(`platform`,`test`):this._platform.isBrowser||i.setAttribute(`platform`,`server`),this._document.body.appendChild(i),this._containerElement=i;}_loadStyles(){this._styleLoader.load(pe);}static ɵfac=function(i){return new(i||o)};static ɵprov=C({token:o,factory:o.ɵfac,providedIn:`root`})}return o})(),yt$1=class yt{_renderer;_ngZone;element;_cleanupClick;_cleanupTransitionEnd;_fallbackTimeout;constructor(e,t,i,s){this._renderer=t,this._ngZone=i,this.element=e.createElement(`div`),this.element.classList.add(`cdk-overlay-backdrop`),this._cleanupClick=t.listen(this.element,`click`,s);}detach(){this._ngZone.runOutsideAngular(()=>{let e=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(e,`transitionend`,this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),e.style.pointerEvents=`none`,e.classList.remove(`cdk-overlay-backdrop-showing`);});}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove();}};function _e$1(o){return o&&o.nodeType===1}var j=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new U;_attachments=new U;_detachments=new U;_positionStrategy;_scrollStrategy;_locationChanges=v$1.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_disposed=false;_previousHostParent;_keydownEvents=new U;_outsidePointerEvents=new U;_afterNextRenderRef;constructor(e,t,i,s,n,l,a,c,v,h=false,d,w){this._portalOutlet=e,this._host=t,this._pane=i,this._config=s,this._ngZone=n,this._keyboardDispatcher=l,this._document=a,this._location=c,this._outsideClickDispatcher=v,this._animationsDisabled=h,this._injector=d,this._renderer=w,s.scrollStrategy&&(this._scrollStrategy=s.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=s.positionStrategy;}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}get eventPredicate(){return this._config?.eventPredicate||null}attach(e){if(this._disposed)return null;this._attachHost();let t=this._portalOutlet.attach(e);return this._positionStrategy?.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=md(()=>{this.hasAttached()&&this.updatePosition();},{injector:this._injector}),this._togglePointerEvents(true),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,true),this._attachments.next(),this._completeDetachContent(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof t?.onDestroy==`function`&&t.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()));}),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(false),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let e=this._portalOutlet.detach();return this._detachments.next(),this._completeDetachContent(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){if(this._disposed)return;let e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=this._backdropRef=null,e&&this._detachments.next(),this._detachments.complete(),this._completeDetachContent(),this._disposed=true;}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply();}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()));}updateSize(e){this._config=r(r({},this._config),e),this._updateElementSize();}setDirection(e){this._config=s(r({},this._config),{direction:e}),this._updateElementDirection();}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,true);}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,false);}getDirection(){let e=this._config.direction;return e?typeof e==`string`?e:e.value:`ltr`}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()));}_updateElementDirection(){this._host.setAttribute(`dir`,this.getDirection());}_updateElementSize(){if(!this._pane)return;let e=this._pane.style;e.width=E(this._config.width),e.height=E(this._config.height),e.minWidth=E(this._config.minWidth),e.minHeight=E(this._config.minHeight),e.maxWidth=E(this._config.maxWidth),e.maxHeight=E(this._config.maxHeight);}_togglePointerEvents(e){this._pane.style.pointerEvents=e?``:`none`;}_attachHost(){if(!this._host.parentElement){let e=this._config.usePopover?this._positionStrategy?.getPopoverInsertionPoint?.():null;_e$1(e)?e.after(this._host):e?.type===`parent`?e.element.appendChild(this._host):this._previousHostParent?.appendChild(this._host);}if(this._config.usePopover)try{this._host.showPopover();}catch{}}_attachBackdrop(){let e=`cdk-overlay-backdrop-showing`;this._backdropRef?.dispose(),this._backdropRef=new yt$1(this._document,this._renderer,this._ngZone,t=>{this._backdropClick.next(t);}),this._animationsDisabled&&this._backdropRef.element.classList.add(`cdk-overlay-backdrop-noop-animation`),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,true),this._config.usePopover?this._host.prepend(this._backdropRef.element):this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<`u`?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(e));}):this._backdropRef.element.classList.add(e);}_updateStackingOrder(){!this._config.usePopover&&this._host.nextSibling&&this._host.parentNode.appendChild(this._host);}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach();}_toggleClasses(e,t,i){let s=O0(t||[]).filter(n=>!!n);s.length&&(i?e.classList.add(...s):e.classList.remove(...s));}_detachContentWhenEmpty(){let e=false;try{this._detachContentAfterRenderRef=md(()=>{e=!0,this._detachContent();},{injector:this._injector});}catch(t){if(e)throw t;this._detachContent();}globalThis.MutationObserver&&this._pane&&(this._detachContentMutationObserver||=new globalThis.MutationObserver(()=>{this._detachContent();}),this._detachContentMutationObserver.observe(this._pane,{childList:true}));}_detachContent(){(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,false),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),this._completeDetachContent());}_completeDetachContent(){this._detachContentAfterRenderRef?.destroy(),this._detachContentAfterRenderRef=void 0,this._detachContentMutationObserver?.disconnect();}_disposeScrollStrategy(){let e=this._scrollStrategy;e?.disable(),e?.detach?.();}};var de$1=`cdk-global-overlay-wrapper`;function ge(o){return new vt$1}var vt$1=class vt{_overlayRef;_cssPosition=`static`;_topOffset=``;_bottomOffset=``;_alignItems=``;_xPosition=``;_xOffset=``;_width=``;_height=``;_isDisposed=false;attach(e){let t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(de$1),this._isDisposed=false;}top(e=``){return this._bottomOffset=``,this._topOffset=e,this._alignItems=`flex-start`,this}left(e=``){return this._xOffset=e,this._xPosition=`left`,this}bottom(e=``){return this._topOffset=``,this._bottomOffset=e,this._alignItems=`flex-end`,this}right(e=``){return this._xOffset=e,this._xPosition=`right`,this}start(e=``){return this._xOffset=e,this._xPosition=`start`,this}end(e=``){return this._xOffset=e,this._xPosition=`end`,this}width(e=``){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=``){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=``){return this.left(e),this._xPosition=`center`,this}centerVertically(e=``){return this.top(e),this._alignItems=`center`,this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,{width:s,height:n,maxWidth:l,maxHeight:a}=this._overlayRef.getConfig(),c=(s===`100%`||s===`100vw`)&&(!l||l===`100%`||l===`100vw`),v=(n===`100%`||n===`100vh`)&&(!a||a===`100%`||a===`100vh`),h=this._xPosition,d=this._xOffset,w=this._overlayRef.getConfig().direction===`rtl`,Y=``,X=``,k=``;c?k=`flex-start`:h===`center`?(k=`center`,w?X=d:Y=d):w?h===`left`||h===`end`?(k=`flex-end`,Y=d):(h===`right`||h===`start`)&&(k=`flex-start`,X=d):h===`left`||h===`start`?(k=`flex-start`,Y=d):(h===`right`||h===`end`)&&(k=`flex-end`,X=d),e.position=this._cssPosition,e.marginLeft=c?`0`:Y,e.marginTop=v?`0`:this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=c?`0`:X,t.justifyContent=k,t.alignItems=v?`flex-start`:this._alignItems;}dispose(){if(this._isDisposed||!this._overlayRef)return;let e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,i=t.style;t.classList.remove(de$1),i.justifyContent=i.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position=``,this._overlayRef=null,this._isDisposed=true;}};var Ve=new I$1(`OVERLAY_DEFAULT_CONFIG`);function me(o,e){o.get(R0).load(pe);let t=o.get(bt),i=o.get(B$1),s=o.get(Jp),n=o.get(ht$1),l=o.get(P0),a=o.get(ur,null,{optional:true})||o.get(We$2).createRenderer(null,null),c=new H(e),v=o.get(Ve,null,{optional:true})?.usePopover??true;c.direction=c.direction||l.value,`showPopover`in i.body?c.usePopover=e?.usePopover??v:c.usePopover=false;let h=i.createElement(`div`),d=i.createElement(`div`);h.id=s.getId(`cdk-overlay-`),h.classList.add(`cdk-overlay-pane`),d.appendChild(h),c.usePopover&&(d.setAttribute(`popover`,`manual`),d.classList.add(`cdk-overlay-popover`));let w=c.usePopover?c.positionStrategy?.getPopoverInsertionPoint?.():null;return _e$1(w)?w.after(d):w?.type===`parent`?w.element.appendChild(d):t.getContainerElement().appendChild(d),new j(new tt$1(h,n,o),d,h,c,o.get(X),o.get(Ne),i,o.get(Sp),o.get(Be),e?.disableAnimations??o.get(_g,null,{optional:true})===`NoopAnimations`,o.get(re$1),a)}function He(o,e){}var I=class{viewContainerRef;injector;id;role=`dialog`;panelClass=``;hasBackdrop=true;backdropClass=``;disableClose=false;closePredicate;width=``;height=``;minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=false;autoFocus=`first-tabbable`;restoreFocus=true;scrollStrategy;closeOnNavigation=true;closeOnDestroy=true;closeOnOverlayDetachments=true;disableAnimations=false;providers;container;templateContext};var je=(()=>{class o extends x{_elementRef=g(Se$1);_focusTrapFactory=g(ae);_config;_interactivityChecker=g(pt);_ngZone=g(X);_focusMonitor=g(oe);_renderer=g(ur);_changeDetectorRef=g(Dp);_injector=g(Z);_platform=g(Kp);_document=g(B$1);_portalOutlet;_focusTrapped=new U;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=false;constructor(){super(),this._config=g(I,{optional:true})||new I,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy);}_addAriaLabelledBy(t){this._ariaLabelledByQueue.push(t),this._changeDetectorRef.markForCheck();}_removeAriaLabelledBy(t){let i=this._ariaLabelledByQueue.indexOf(t);i>-1&&(this._ariaLabelledByQueue.splice(i,1),this._changeDetectorRef.markForCheck());}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus();}_captureInitialFocus(){this._trapFocus();}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=true,this._restoreFocus();}attachComponentPortal(t){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachComponentPortal(t);return this._contentAttached(),i}attachTemplatePortal(t){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachTemplatePortal(t);return this._contentAttached(),i}attachDomPortal=t=>{this._portalOutlet.hasAttached();let i=this._portalOutlet.attachDomPortal(t);return this._contentAttached(),i};_recaptureFocus(){this._containsFocus()||this._trapFocus();}_forceFocus(t,i){this._interactivityChecker.isFocusable(t)||(t.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let s=()=>{n(),l(),t.removeAttribute(`tabindex`);},n=this._renderer.listen(t,`blur`,s),l=this._renderer.listen(t,`mousedown`,s);})),t.focus(i);}_focusByCssSelector(t,i){let s=this._elementRef.nativeElement.querySelector(t);s&&this._forceFocus(s,i);}_trapFocus(t){this._isDestroyed||md(()=>{let i=this._elementRef.nativeElement;switch(this._config.autoFocus){case false:case `dialog`:this._containsFocus()||i.focus(t);break;case true:case `first-tabbable`:this._focusTrap?.focusInitialElement(t)||this._focusDialogContainer(t);break;case `first-heading`:this._focusByCssSelector(`h1, h2, h3, h4, h5, h6, [role="heading"]`,t);break;default:this._focusByCssSelector(this._config.autoFocus,t);break}this._focusTrapped.next();},{injector:this._injector});}_restoreFocus(){let t=this._config.restoreFocus,i=null;if(typeof t==`string`?i=this._document.querySelector(t):typeof t==`boolean`?i=t?this._elementFocusedBeforeDialogWasOpened:null:t&&(i=t),this._config.restoreFocus&&i&&typeof i.focus==`function`){let s=D0(),n=this._elementRef.nativeElement;(!s||s===this._document.body||s===n||n.contains(s))&&(this._focusMonitor?(this._focusMonitor.focusVia(i,this._closeInteractionType),this._closeInteractionType=null):i.focus());}this._focusTrap&&this._focusTrap.destroy();}_focusDialogContainer(t){this._elementRef.nativeElement.focus?.(t);}_containsFocus(){let t=this._elementRef.nativeElement,i=D0();return t===i||t.contains(i)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=D0()));}static ɵfac=function(i){return new(i||o)};static ɵcmp=cf({type:o,selectors:[[`cdk-dialog-container`]],viewQuery:function(i,s){if(i&1&&oc(dt,7),i&2){let n;kf(n=Ff())&&(s._portalOutlet=n.first);}},hostAttrs:[`tabindex`,`-1`,1,`cdk-dialog-container`],hostVars:6,hostBindings:function(i,s){i&2&&vf(`id`,s._config.id||null)(`role`,s._config.role)(`aria-modal`,s._config.ariaModal)(`aria-labelledby`,s._config.ariaLabel?null:s._ariaLabelledByQueue[0])(`aria-label`,s._config.ariaLabel)(`aria-describedby`,s._config.ariaDescribedBy||null);},features:[Wa],decls:1,vars:0,consts:[[`cdkPortalOutlet`,``]],template:function(i,s){i&1&&pf(0,He,0,0,`ng-template`,0);},dependencies:[dt],styles:[`.cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}
14
14
  `],encapsulation:2})}return o})(),W=class{overlayRef;config;componentInstance=null;componentRef=null;containerInstance;disableClose;closed=new U;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(e,t){this.overlayRef=e,this.config=t,this.disableClose=t.disableClose,this.backdropClick=e.backdropClick(),this.keydownEvents=e.keydownEvents(),this.outsidePointerEvents=e.outsidePointerEvents(),this.id=t.id,this.keydownEvents.subscribe(i=>{i.keyCode===27&&!this.disableClose&&!le(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:`keyboard`}));}),this.backdropClick.subscribe(()=>{!this.disableClose&&this._canClose()?this.close(void 0,{focusOrigin:`mouse`}):this.containerInstance._recaptureFocus?.();}),this._detachSubscription=e.detachments().subscribe(()=>{t.closeOnOverlayDetachments!==false&&this.close();});}close(e,t){if(this._canClose(e)){let i=this.closed;this.containerInstance._closeInteractionType=t?.focusOrigin||`program`,this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),i.next(e),i.complete(),this.componentInstance=this.containerInstance=null;}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(e=``,t=``){return this.overlayRef.updateSize({width:e,height:t}),this}addPanelClass(e){return this.overlayRef.addPanelClass(e),this}removePanelClass(e){return this.overlayRef.removePanelClass(e),this}_canClose(e){let t=this.config;return !!this.containerInstance&&(!t.closePredicate||t.closePredicate(e,t,this.componentInstance))}},We$1=new I$1(`DialogScrollStrategy`,{providedIn:`root`,factory:()=>{let o=g(Z);return ()=>ue(o)}}),Ye$1=new I$1(`DialogData`),Xe$1=new I$1(`DefaultDialogConfig`);function Ue(o){let e=Lt$2(o),t=new ve$1;return {valueSignal:e,get value(){return e()},change:t,ngOnDestroy(){t.complete();}}}var Ro=(()=>{class o{_injector=g(Z);_defaultOptions=g(Xe$1,{optional:true});_parentDialog=g(o,{optional:true,skipSelf:true});_overlayContainer=g(bt);_idGenerator=g(Jp);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new U;_afterOpenedAtThisLevel=new U;_ariaHiddenElements=new Map;_scrollStrategy=g(We$1);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=ye$3(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(_e$3(void 0)));constructor(){}open(t,i){i=r(r({},this._defaultOptions||new I),i),i.id=i.id||this._idGenerator.getId(`cdk-dialog-`),i.id&&this.getDialogById(i.id);let n=this._getOverlayConfig(i),l=me(this._injector,n),a=new W(l,i),c=this._attachContainer(l,a,i);if(a.containerInstance=c,!this.openDialogs.length){let v=this._overlayContainer.getContainerElement();c._focusTrapped?c._focusTrapped.pipe(Nn$3(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(v);}):this._hideNonDialogContentFromAssistiveTechnology(v);}return this._attachDialogContent(t,a,c,i),this.openDialogs.push(a),a.closed.subscribe(()=>this._removeOpenDialog(a,true)),this.afterOpened.next(a),a}closeAll(){wt(this.openDialogs,t=>t.close());}getDialogById(t){return this.openDialogs.find(i=>i.id===t)}ngOnDestroy(){wt(this._openDialogsAtThisLevel,t=>{t.config.closeOnDestroy===false&&this._removeOpenDialog(t,false);}),wt(this._openDialogsAtThisLevel,t=>t.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[];}_getOverlayConfig(t){let i=new H({positionStrategy:t.positionStrategy||ge().centerHorizontally().centerVertically(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,width:t.width,height:t.height,disposeOnNavigation:t.closeOnNavigation,disableAnimations:t.disableAnimations});return t.backdropClass&&(i.backdropClass=t.backdropClass),i}_attachContainer(t,i,s){let n=s.injector||s.viewContainerRef?.injector,l=[{provide:I,useValue:s},{provide:W,useValue:i},{provide:j,useValue:t}],a;s.container?typeof s.container==`function`?a=s.container:(a=s.container.type,l.push(...s.container.providers(s))):a=je;let c=new T(a,s.viewContainerRef,Z.create({parent:n||this._injector,providers:l}));return t.attach(c).instance}_attachDialogContent(t,i,s,n){if(t instanceof Bt$2){let l=this._createInjector(n,i,s,void 0),a={$implicit:n.data,dialogRef:i};n.templateContext&&(a=r(r({},a),typeof n.templateContext==`function`?n.templateContext():n.templateContext)),s.attachTemplatePortal(new M(t,null,a,l));}else {let l=this._createInjector(n,i,s,this._injector),a=s.attachComponentPortal(new T(t,n.viewContainerRef,l));i.componentRef=a,i.componentInstance=a.instance;}}_createInjector(t,i,s,n){let l=t.injector||t.viewContainerRef?.injector,a=[{provide:Ye$1,useValue:t.data},{provide:W,useValue:i}];return t.providers&&(typeof t.providers==`function`?a.push(...t.providers(i,t,s)):a.push(...t.providers)),t.direction&&(!l||!l.get(P0,null,{optional:true}))&&a.push({provide:P0,useValue:Ue(t.direction)}),Z.create({parent:l||n,providers:a})}_removeOpenDialog(t,i){let s=this.openDialogs.indexOf(t);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((n,l)=>{n?l.setAttribute(`aria-hidden`,n):l.removeAttribute(`aria-hidden`);}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()));}_hideNonDialogContentFromAssistiveTechnology(t){if(t.parentElement){let i=t.parentElement.children;for(let s=i.length-1;s>-1;s--){let n=i[s];n!==t&&n.nodeName!==`SCRIPT`&&n.nodeName!==`STYLE`&&!n.hasAttribute(`aria-live`)&&!n.hasAttribute(`popover`)&&(this._ariaHiddenElements.set(n,n.getAttribute(`aria-hidden`)),n.setAttribute(`aria-hidden`,`true`));}}}_getAfterAllClosed(){let t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}static ɵfac=function(i){return new(i||o)};static ɵprov=C({token:o,factory:o.ɵfac,providedIn:`root`})}return o})();function wt(o,e){let t=o.length;for(;t--;)e(o[t]);}var ot$1=class o{static cache=new Map;static loadingPromises=new Map;async getSvg(e){if(o.cache.has(e))return o.cache.get(e);if(o.loadingPromises.has(e))return o.loadingPromises.get(e);let t=this.fetchSvgContent(e);o.loadingPromises.set(e,t);try{let i=await t;return o.cache.set(e,i),i}finally{o.loadingPromises.delete(e);}}getCachedSvg(e){return o.cache.get(e)??null}async preloadIcons(e){let t=e.map(i=>this.getSvg(i).catch(s=>(Y$1.error(`Failed to preload icon: ${i}`,s),``)));await Promise.all(t);}clearCache(){o.cache.clear(),o.loadingPromises.clear();}async fetchSvgContent(e){let t=`${fe$2.baseURL}/svg/${e}.svg`;try{return (await fn$3(t,{cache:`force-cache`,headers:{Accept:`image/svg+xml,text/plain`}})).data}catch(i){return Y$1.error(`Unable to get the icon: ${e}`,i),``}}static ɵfac=function(t){return new(t||o)};static ɵprov=C({token:o,factory:o.ɵfac,providedIn:`root`})};var ye$1=class o{name=iN.required();rawSvg=Lt$2(``);sanitisedSvg=Fv(()=>this.sanitizer.bypassSecurityTrustHtml(this.rawSvg()));sanitizer=g(rC);iconService=g(ot$1);constructor(){ws(()=>{let e=this.name();this.loadIcon(e);});}async loadIcon(e){try{let t=await this.iconService.getSvg(e);this.rawSvg.set(t);}catch{this.rawSvg.set(``);}}static ɵfac=function(t){return new(t||o)};static ɵcmp=cf({type:o,selectors:[[`cooee-icon`]],hostAttrs:[`role`,`img`],hostVars:2,hostBindings:function(t,i){t&2&&(Mf(`innerHTML`,i.sanitisedSvg(),tm),vf(`aria-label`,i.name()));},inputs:{name:[1,`name`]},decls:0,vars:0,template:function(t,i){},encapsulation:2})};
15
15
 
16
- var Ut=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,i){this._renderer=e,this._elementRef=i;}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i);}registerOnTouched(e){this.onTouched=e;}registerOnChange(e){this.onChange=e;}setDisabledState(e){this.setProperty(`disabled`,e);}static ɵfac=function(i){return new(i||t)(ne$1(ur),ne$1(Se$1))};static ɵdir=En$2({type:t})}return t})(),Vt=(()=>{class t extends Ut{static ɵfac=(()=>{let e;return function(o){return (e||(e=Ll(t)))(o||t)}})();static ɵdir=En$2({type:t,features:[Wa]})}return t})(),Mt=new I$1(``);var $t=new I$1(``,{factory:()=>It}),It=`always`;var zt={provide:Mt,useExisting:On$2(()=>St),multi:true};function Et(t,n){return t==null?`${n}`:(n&&typeof n==`object`&&(n=`Object`),`${t}: ${n}`.slice(0,50))}function Wt(t){return t.split(`:`)[0]}var St=(()=>{class t extends Vt{value;_optionMap=new Map;_idCounter=0;set compareWith(e){this._compareWith=e;}_compareWith=Object.is;appRefInjector=g(ht$1).injector;destroyRef=g(ze);cdr=g(Dp);_queuedWrite=false;_writeValueAfterRender(){this._queuedWrite||this.appRefInjector.destroyed||(this._queuedWrite=true,md({write:()=>{this.destroyRef.destroyed||(this._queuedWrite=false,this.writeValue(this.value));}},{injector:this.appRefInjector}));}writeValue(e){this.cdr.markForCheck(),this.value=e;let o=Et(this._getOptionId(e),e);this.setProperty(`value`,o);}registerOnChange(e){this.onChange=i=>{this.value=this._getOptionValue(i),e(this.value);};}_registerOption(){return (this._idCounter++).toString()}_getOptionId(e){for(let i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i),e))return i;return null}_getOptionValue(e){let i=Wt(e);return this._optionMap.has(i)?this._optionMap.get(i):e}static ɵfac=(()=>{let e;return function(o){return (e||(e=Ll(t)))(o||t)}})();static ɵdir=En$2({type:t,selectors:[[`select`,`formControlName`,``,3,`multiple`,``],[`select`,`formControl`,``,3,`multiple`,``],[`select`,`ngModel`,``,3,`multiple`,``]],hostBindings:function(i,o){i&1&&Nf(`change`,function(l){return o.onChange(l.target.value)})(`blur`,function(){return o.onTouched()});},inputs:{compareWith:`compareWith`},standalone:false,features:[np([zt]),Wa]})}return t})(),At=(()=>{class t{_element;_renderer;_select;id;constructor(e,i,o){this._element=e,this._renderer=i,this._select=o,this._select&&(this.id=this._select._registerOption());}set ngValue(e){this._select!=null&&(this._select._optionMap.set(this.id,e),this._setElementValue(Et(this.id,e)),this._select._writeValueAfterRender());}set value(e){this._setElementValue(e),this._select?._writeValueAfterRender();}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,`value`,e);}ngOnDestroy(){this._select?._optionMap.delete(this.id),this._select?._writeValueAfterRender();}static ɵfac=function(i){return new(i||t)(ne$1(Se$1),ne$1(ur),ne$1(St,9))};static ɵdir=En$2({type:t,selectors:[[`option`]],inputs:{ngValue:`ngValue`,value:`value`},standalone:false})}return t})(),qt={provide:Mt,useExisting:On$2(()=>Ot),multi:true};function xt(t,n){return t==null?`${n}`:(typeof n==`string`&&(n=`'${n}'`),n&&typeof n==`object`&&(n=`Object`),`${t}: ${n}`.slice(0,50))}function Kt(t){return t.split(`:`)[0]}var Ot=(()=>{class t extends Vt{value;_optionMap=new Map;_idCounter=0;set compareWith(e){this._compareWith=e;}_compareWith=Object.is;writeValue(e){this.value=e;let i;if(Array.isArray(e)){let o=e.map(a=>this._getOptionId(a));i=(a,l)=>{a._setSelected(o.indexOf(l.toString())>-1);};}else i=(o,a)=>{o._setSelected(false);};this._optionMap.forEach(i);}registerOnChange(e){this.onChange=i=>{let o=[],a=i.selectedOptions;if(a!==void 0){let l=a;for(let p=0;p<l.length;p++){let v=l[p],A=this._getOptionValue(v.value);o.push(A);}}else {let l=i.options;for(let p=0;p<l.length;p++){let v=l[p];if(v.selected){let A=this._getOptionValue(v.value);o.push(A);}}}this.value=o,e(o);};}_registerOption(e){let i=(this._idCounter++).toString();return this._optionMap.set(i,e),i}_getOptionId(e){for(let i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i)._value,e))return i;return null}_getOptionValue(e){let i=Kt(e);return this._optionMap.has(i)?this._optionMap.get(i)._value:e}static ɵfac=(()=>{let e;return function(o){return (e||(e=Ll(t)))(o||t)}})();static ɵdir=En$2({type:t,selectors:[[`select`,`multiple`,``,`formControlName`,``],[`select`,`multiple`,``,`formControl`,``],[`select`,`multiple`,``,`ngModel`,``]],hostBindings:function(i,o){i&1&&Nf(`change`,function(l){return o.onChange(l.target)})(`blur`,function(){return o.onTouched()});},inputs:{compareWith:`compareWith`},standalone:false,features:[np([qt]),Wa]})}return t})(),Tt=(()=>{class t{_element;_renderer;_select;id;_value;constructor(e,i,o){this._element=e,this._renderer=i,this._select=o,this._select&&(this.id=this._select._registerOption(this));}set ngValue(e){this._select!=null&&(this._value=e,this._setElementValue(xt(this.id,e)),this._select.writeValue(this._select.value));}set value(e){this._select?(this._value=e,this._setElementValue(xt(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e);}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,`value`,e);}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,`selected`,e);}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value));}static ɵfac=function(i){return new(i||t)(ne$1(Se$1),ne$1(ur),ne$1(Ot,9))};static ɵdir=En$2({type:t,selectors:[[`option`]],inputs:{ngValue:`ngValue`,value:`value`},standalone:false})}return t})();var Zt=(()=>{class t{static ɵfac=function(i){return new(i||t)};static ɵmod=vn$2({type:t});static ɵinj=Tt$2({})}return t})();var Ft=(()=>{class t{static withConfig(e){return {ngModule:t,providers:[{provide:$t,useValue:e.callSetDisabledState??It}]}}static ɵfac=function(i){return new(i||t)};static ɵmod=vn$2({type:t});static ɵinj=Tt$2({imports:[Zt]})}return t})();var N=class t{engagementContext=g(Ke$1);eventData=g(Ge$1);constructor(){}executeCTA(n,e){let i,o=this.engagementContext();if(!o){Y$1.error(`Engagement context is not available; aborting executeCTA.`);return}if(n===he$3.ADD_TO_CART)i=`CE Add To Cart Clicked`;else if(n===he$3.GO_TO_PRODUCT)i=`CE View Item Clicked`;else if(n===he$3.OPEN_CART)i=`CE Open Cart Clicked`,o.triggerData.redirectBehaviour=ae$2.CART_DRAWER;else {Y$1.warn(`Unsupported CTA type: ${n}`);return}window.CooeeSDK.executeCTA(o,r({clickAction:{at:n}},e));let a=new Ir$1(i,this.eventData.props,o.triggerData);e?.video?a.setVideos(e.video):this.eventData.video&&a.setVideos(this.eventData.video),window.CooeeSDK.sendEvent(a);}static ɵfac=function(e){return new(e||t)};static ɵprov=C({token:t,factory:t.ɵfac})};function kt(t,n){return [N,...Qt(t,n)]}function Qt(t,n){return [{provide:Ke$1,useValue:Lt$2(t)},{provide:Ge$1,useValue:r({},n)}]}var Fe=class t{elementRef=g(Se$1);engagementService=g(N);hasSwiper=false;_engagementTrigger=Lt$2(null);_triggerContext=g(Ke$1);constructor(){this.elementRef.nativeElement.update=this.update.bind(this);}get classes(){let n=[`letscooee-widget`],e=this._engagementTrigger();return n.push(`widget-${e?.shortID}`),n}get triggerContext(){return this._triggerContext()}set triggerContext(n){this._triggerContext.set(n),this._engagementTrigger.set(n.triggerData),this.engagementTriggerReceived(n.triggerData);}get engagementTrigger(){return this._engagementTrigger()}ngOnInit(){Y$1.verbose(`Init`,this.constructor.name);let n=this.elementRef.nativeElement.shadowRoot;n&&(Hi$1(n,this.hasSwiper),le$2(this.engagementTrigger?.content?.innerCSS,n));}ngOnDestroy(){Y$1.verbose(`Destroying`,this.constructor.name);}static ɵfac=function(e){return new(e||t)};static ɵcmp=cf({type:t,selectors:[[`ng-component`]],hostVars:2,hostBindings:function(e,i){e&2&&iv(i.classes);},inputs:{triggerContext:`triggerContext`},decls:1,vars:0,template:function(e,i){e&1&&Tf(0);},encapsulation:2})};var Xt=t=>({row:t}),Le=(t,n)=>n.id;function Yt(t,n){if(t&1&&(Xa(0,`option`,4),bv(1,`json`),gv(2),ec()),t&2){let e=n.$implicit,i=VD().$implicit,o=VD(2);Ef(`value`,Cv(Av(1,5,e)))(`selected`,o.selectedOptions()[i.name]===e.name)(`disabled`,!!e.disabled),fd(2),ac(``,e.name,` `);}}function en(t,n){if(t&1){let e=FD();Xa(0,`select`,3,0),Nf(`change`,function(){let o=gu(e).$implicit,a=zD(1);return mu(VD(2).onOptionChangeDropdown(o,a.value))}),ND(2,Yt,3,7,`option`,4,bD),ec();}if(t&2){let e=n.$implicit;rv(VD(2).getCompiledStyle()),Ef(`name`,e.name),vf(`aria-label`,e.name),fd(2),AD(e.optionValues);}}function tn(t,n){if(t&1&&(Xa(0,`div`,1),ND(1,en,4,4,`select`,2,Le),ec()),t&2){let e=VD();Ef(`ngClass`,Sv(1,Xt,e.horizontal())),fd(),AD(e.options());}}function nn(t,n){if(t&1&&(Xa(0,`span`,11),gv(1),ec()),t&2){VD();let e=Ev(0);fd(),Yf(e);}}function on(t,n){if(t&1){let e=FD();Xf(0),Xa(1,`button`,10),Nf(`click`,function(){let o=gu(e).$implicit,a=VD().$implicit;return mu(VD(2).onOptionChange(a,o))}),TD(2,nn,2,1,`span`,11),ec();}if(t&2){let e=n.$implicit,i=VD().$implicit,o=Ev(1),a=VD(2),l=e.name,p=vv(e.displayName||e.name),v=e.swatch,A=o?e.hexColor??l:``,_e=a.selectedOptions()[i.name]===l,He=!!(v!=null&&v.color),Ge=!!(!(v==null||v.image==null)&&v.image.url);fd(),sc(`swatch-color-type`,He)(`swatch-image-type`,Ge)(`selected`,_e)(`disabled`,e.disabled),Ef(`title`,p)(`ngStyle`,a.getSwatchStyles(v,A)),vf(`aria-checked`,_e?`true`:`false`)(`data-value`,l)(`aria-disabled`,e.disabled?`true`:null)(`aria-label`,p),fd(),SD(!o&&!He&&!Ge?2:-1);}}function rn$1(t,n){if(t&1&&(Xa(0,`div`),Xf(1),Xa(2,`div`,6),gv(3),ec(),Xa(4,`div`,7),gv(5),ec(),Xa(6,`div`,8),ND(7,on,3,16,`button`,9,Le),ec()()),t&2){let e=n.$implicit,i=VD(2);iv(Iv(`option-group `,e.name.toLowerCase())),fd(),vv(i.hasHexColors(e)),fd(2),ac(``,e.name,`:`),fd(2),Yf(i.selectedOptions()[e.name]),fd(),vf(`aria-label`,e.name),fd(),AD(e.optionValues);}}function an$1(t,n){if(t&1&&ND(0,rn$1,9,7,`div`,5,Le),t&2)AD(VD().options());}var he=t=>t.trim().toLowerCase(),ke=class t extends Fe{selectedVariant=new ve$1;item=iN.required();dropdownType=iN(void 0);horizontal=iN(void 0);styles=iN(void 0);selectedOptions=Lt$2({});options=Fv(()=>{let n=this.item();if(!n.options||n.vars.length===1)return [];if(window.cooeeManipulateProduct)try{window.cooeeManipulateProduct(n,this.engagementTrigger);}catch(e){Y$1.error(e);}return n.options.forEach(e=>{e.optionValues.forEach(i=>{i.disabled=this.isOptionValueDisabledFast(e,i);});}),n.options});matchedVariant=Fv(()=>{let n=this.item(),e=this.selectedOptions();return n.vars.find(i=>n.options.every(o=>{let a=i.selectedOptions.find(l=>l.name===o.name)?.value;return e[o.name]===a}))});DropdownType=ge$3;availabilityIndex=Fv(()=>{let n=this.item(),e=new Map;return n?.vars?.length&&n.vars.forEach((i,o)=>{if(i.isAvailable)for(let a of i.selectedOptions){let l=he(a.name),p=a.value,v=e.get(l);v||e.set(l,v=new Map);let A=v.get(p);A||v.set(p,A=new Set),A.add(o);}}),e});constructor(){super(),ws(()=>{let e=this.matchedVariant();e&&(this.item().setSelectedVariant(e),this.selectedVariant.emit(e));});let n=ws(()=>{let e=this.item();if(!e?.options)return;let i=r({},this.selectedOptions()),o=e.vars.find(a=>a.isAvailable)??e.vars[0];e.options.forEach(a=>{let l=o?.selectedOptions.find(p=>p.name===a.name)?.value;l&&(i[a.name]=l);}),this.selectedOptions.set(i),n.destroy();});}ngOnInit(){super.ngOnInit();let n=this.elementRef.nativeElement.shadowRoot;if(!n)return;let e=he$4.get().website?.itemSwatchMapping;e&&le$2(e,n);}onOptionChange(n,e){let i=r({},this.selectedOptions());i[n.name]=e.name,this.selectedOptions.set(i);}onOptionChangeDropdown(n,e){let i=JSON.parse(e);this.onOptionChange(n,i);}engagementTriggerReceived(){}update(){}hasHexColors(n){return !!n.optionValues[0]?.name.match(/#[a-f0-9]{6}\b/i)}getSwatchStyles(n,e){let i={};return !n&&e?(i[`--option-color`]=e,i[`background-color`]=e,i):(n?.image?.url?i[`background-image`]=`url("${n.image.url}")`:n?.color&&(i[`--option-color`]=n.color,i[`background-color`]=n.color),i)}getCompiledStyle(){if(!this.styles())return {};let n=this.styles(),e=n.lg;M$3()&&n.sm&&Object.keys(n.sm).length&&(e=r(r({},e),n.sm));let i=s(r(r(r(r({},Sn$3(e.bg)),Nn$4(e.br)),gn$3(e.size)),On$3(e.spc)),{boxSizing:`border-box`,outline:`none`});return this.item().vars?.length===1&&this.item().vars[0].name===`Default Title`&&(i.visibility=`hidden`),r(r({},i),In$2(e.typo))}getCandidateVariantsExcluding(n){let e=this.item(),i=this.availabilityIndex(),o=new Set;e.vars.forEach((l,p)=>{l.isAvailable&&o.add(p);});let a=o;for(let[l,p]of Object.entries(this.selectedOptions())){if(he(l)===he(n))continue;let v=i.get(he(l));if(!v)return new Set;let A=v.get(String(p));if(!A)return new Set;if(a=new Set([...a].filter(_e=>A.has(_e))),a.size===0)return a}return a}isOptionValueDisabledFast(n,e){let o=this.availabilityIndex().get(he(n.name));if(!o)return true;let a=e.name,l=o.get(a);if(!l||l.size===0)return true;let p=this.getCandidateVariantsExcluding(n.name);if(p.size===0)return true;for(let v of p)if(l.has(v))return false;return true}static ɵfac=function(e){return new(e||t)};static ɵcmp=cf({type:t,selectors:[[`cooee-item-options-picker`]],inputs:{item:[1,`item`],dropdownType:[1,`dropdownType`],horizontal:[1,`horizontal`],styles:[1,`styles`]},outputs:{selectedVariant:`selectedVariant`},features:[np(kt()),Wa],decls:2,vars:1,consts:[[`sel`,``],[1,`dropdowns-wrapper`,3,`ngClass`],[1,`variant-selector`,3,`name`,`style`],[1,`variant-selector`,3,`change`,`name`],[3,`value`,`selected`,`disabled`],[3,`class`],[1,`name`],[1,`selected-value`],[`role`,`radiogroup`,1,`option-values`],[`type`,`button`,`role`,`radio`,1,`option-value`,3,`swatch-color-type`,`swatch-image-type`,`selected`,`disabled`,`title`,`ngStyle`],[`type`,`button`,`role`,`radio`,1,`option-value`,3,`click`,`title`,`ngStyle`],[1,`title`]],template:function(e,i){e&1&&TD(0,tn,3,3,`div`,1)(1,an$1,2,0),e&2&&SD(i.dropdownType()===i.DropdownType.MULTIPLE?0:1);},dependencies:[$p,AE,RE,Ft,At,Tt,LE],styles:[`.option-group{display:flex;gap:4px;align-items:center}.option-group+.option-group{margin-top:8px}.option-values{display:flex;flex-wrap:nowrap;overflow-x:auto;padding:6px;gap:4px;scrollbar-gutter:stable both-edges;scrollbar-width:none}.option-values::-webkit-scrollbar{display:none}.selected-value{display:none}.option-value{padding:5px 10px;border:1px solid #ccc;cursor:pointer;border-radius:4px;min-width:32px;min-height:32px;text-align:center;position:relative;flex-shrink:0;--selected-color: var(--option-color, rgba(var(--lc-primary-button-bg-color, 0 0 0)));background-size:cover;background-position:center;background-repeat:no-repeat}.option-value.selected{box-shadow:#fff 0 0 0 2px,var(--selected-color) 0 0 0 4px}.option-value.disabled{opacity:.5;pointer-events:none}.dropdowns-wrapper{display:flex;gap:4px;flex-wrap:nowrap;width:100%;flex-direction:column}.dropdowns-wrapper.row{flex-direction:row}
17
- `],encapsulation:3})};function Pt(t){t||(t=g(ze));let n=new m$1(e=>{if(t.destroyed){e.next();return}return t.onDestroy(e.next.bind(e))});return e=>e.pipe(pi(n))}var ce=class t{transform(n){return n==null?null:Pr$1(n)}static ɵfac=function(e){return new(e||t)};static ɵpipe=Go({name:`cooeeCurrency`,type:t,pure:true})};function sn$1(t,n){if(t&1&&(Cf(0,`span`,6),bv(1,`cooeeCurrency`),bv(2,`safeHtml`)),t&2){VD();Ef(`innerHTML`,Av(2,3,Av(1,1,Ev(7).cmp)),tm);}}function ln$1(t,n){if(t&1&&(Xa(0,`span`,8),gv(1),ec()),t&2){VD();let e=Ev(14);fd(),ac(` `,e,`% off `);}}function cn$1(t,n){t&1&&(gv(0,` Out of Stock `),Cf(1,`cooee-icon`,16));}function dn$1(t,n){t&1&&(gv(0,` Add To Cart `),Cf(1,`cooee-icon`,17));}function un$1(t,n){if(t&1){let e=FD();Xa(0,`button`,15),Nf(`click`,function(o){gu(e);return mu(VD().addToCartClicked(o))}),TD(1,cn$1,2,0)(2,dn$1,2,0),ec();}if(t&2){let e=VD();Ef(`disabled`,e.isButtonDisabled()),fd(),SD(e.isButtonDisabled()?1:2);}}var de=class t{buttonClick=oN();item=iN.required();isButtonDisabled=Fv(()=>{let n=this.item();return n.hasVariants()?!n.vars.some(e=>e.isAvailable):!n.selectedOrFirstVariant.value.isAvailable});addToCartClicked(n){n.stopPropagation(),this.buttonClick.emit(this.item());}getDiscountPercentage(n){return n.cmp&&n.cmp>n.d?Math.round((1-n.d/n.cmp)*100):0}static ɵfac=function(e){return new(e||t)};static ɵcmp=cf({type:t,selectors:[[`cooee-item-card`]],inputs:{item:[1,`item`]},outputs:{buttonClick:`buttonClick`},decls:22,vars:17,consts:[[1,`card-body`],[1,`item-image`,3,`alt`,`src`],[1,`item-info`],[1,`item-name`],[1,`prices`],[1,`item-price`,3,`innerHTML`],[1,`item-cmp-price`,3,`innerHTML`],[`type`,`button`,1,`shop-now-button`,3,`click`,`href`],[1,`item-discount-percentage`],[`type`,`button`,1,`item-detail-button`,3,`aria-label`],[`name`,`open`],[1,`card-footer`],[`type`,`button`,1,`cta-button`,3,`disabled`],[`href`,`/cart`,`title`,`View Cart`,1,`view-cart-button`],[`width`,`32`,`height`,`32`,`src`,`https://img.icons8.com/material-sharp/48/shopping-cart.png`,`alt`,`shopping-cart`],[`type`,`button`,1,`cta-button`,3,`click`,`disabled`],[`name`,`unavailable`,`aria-hidden`,`true`],[`name`,`add`,`aria-hidden`,`true`]],template:function(e,i){if(e&1&&(nc(0),Xa(1,`div`,0),Cf(2,`img`,1),Xa(3,`div`,2)(4,`div`,3),gv(5),ec(),Xa(6,`div`,4),Xf(7),Cf(8,`span`,5),bv(9,`cooeeCurrency`),bv(10,`safeHtml`),TD(11,sn$1,3,5,`span`,6),ec(),Xa(12,`a`,7),Nf(`click`,function(a){return a.stopPropagation()}),gv(13,` Shop now `),ec(),Xf(14),TD(15,ln$1,2,1,`span`,8),ec(),Xa(16,`button`,9),Cf(17,`cooee-icon`,10),ec()(),Xa(18,`div`,11),TD(19,un$1,3,2,`button`,12),Xa(20,`a`,13),Cf(21,`img`,14),ec()(),Yo()),e&2){let o=i.item().selectedOrFirstVariant.value;fd(2),Ef(`alt`,Cv(i.item().name))(`src`,i.item().firstImageURL,nm),fd(3),ac(` `,i.item().name,` `),fd(2);let a=vv(o.price);fd(),Ef(`innerHTML`,Av(10,14,Av(9,12,a.d)),tm),fd(3),SD(a.cmp?11:-1),fd(),Ef(`href`,`/products/`+i.item().slug,nm),fd(2);let l=vv(i.getDiscountPercentage(o.price));fd(),SD(l>0?15:-1),fd(),Df(`aria-label`,Iv(`View product details for `,i.item().name)),fd(3),SD(i.item().showAddToCartButton?19:-1);}},dependencies:[ye$1,ce,a],styles:[`[_nghost-%COMP%]{max-width:100%;position:relative;display:flex;flex-direction:column;gap:8px;padding:8px}.card-body[_ngcontent-%COMP%]{display:flex;gap:8px;width:100%;align-items:flex-start}.item-image[_ngcontent-%COMP%]{width:70px;height:70px;object-fit:cover;box-sizing:border-box;border-radius:var(--lc-media-radius)}.item-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:3.5px;font-size:10.5px;margin-right:20px}.item-name[_ngcontent-%COMP%]{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.card-footer[_ngcontent-%COMP%]{display:flex;gap:6px;align-items:center}.cta-button[_ngcontent-%COMP%]{padding:10px;border:none;width:100%;text-align:center}.shop-now-button[_ngcontent-%COMP%], .item-discount-percentage[_ngcontent-%COMP%]{display:none;background:rgb(var(--lc-primary-button-bg-color));color:rgb(var(--lc-primary-button-color));border-radius:var(--lc-button-radius);font-size:12px;width:fit-content;height:auto;text-align:center;z-index:4;padding:2px 8px;text-decoration:none}.item-detail-button[_ngcontent-%COMP%]{position:absolute;top:8px;right:8px;cursor:pointer}.item-detail-button[_ngcontent-%COMP%] cooee-icon[name=open][_ngcontent-%COMP%]{color:#000;width:20px;height:20px;transition-duration:.2s}.item-detail-button[_ngcontent-%COMP%] cooee-icon[name=open][_ngcontent-%COMP%]:hover{color:rgba(var(--lc-primary-color))}.view-cart-button[_ngcontent-%COMP%]{display:none}`]})};var pn$1=t=>({active:t}),mn$1=(t,n)=>n.mID;function fn$1(t,n){t&1&&wf(0);}function gn$1(t,n){t&1&&wf(0);}function hn$1(t,n){t&1&&wf(0);}function _n$1(t,n){if(t&1&&(Xa(0,`div`,11)(1,`div`,12),gv(2,`Shop Now`),ec(),pf(3,fn$1,1,0,`ng-container`,10),ec(),Xa(4,`div`,13),pf(5,gn$1,1,0,`ng-container`,10),Xa(6,`div`,14),pf(7,hn$1,1,0,`ng-container`,10),ec()()),t&2){VD(2);let e=zD(4),i=zD(6),o=zD(8);fd(3),Ef(`ngTemplateOutlet`,e),fd(2),Ef(`ngTemplateOutlet`,i),fd(2),Ef(`ngTemplateOutlet`,o);}}function vn$1(t,n){t&1&&wf(0);}function Cn$1(t,n){t&1&&wf(0);}function yn$1(t,n){t&1&&wf(0);}function bn$1(t,n){t&1&&wf(0);}function Dn$1(t,n){t&1&&wf(0);}function wn$1(t,n){if(t&1&&(Xa(0,`div`,15),Cf(1,`cooee-item-card`,16),pf(2,vn$1,1,0,`ng-container`,10),ec(),Xa(3,`div`,13)(4,`div`,17),pf(5,Cn$1,1,0,`ng-container`,10)(6,yn$1,1,0,`ng-container`,10)(7,bn$1,1,0,`ng-container`,10)(8,Dn$1,1,0,`ng-container`,10),ec()()),t&2){let e=VD(2),i=zD(4),o=zD(6),a=zD(10),l=zD(12),p=zD(14);fd(),Ef(`item`,e.item()),fd(),Ef(`ngTemplateOutlet`,i),fd(3),Ef(`ngTemplateOutlet`,p),fd(),Ef(`ngTemplateOutlet`,o),fd(),Ef(`ngTemplateOutlet`,l),fd(),Ef(`ngTemplateOutlet`,a);}}function xn$1(t,n){t&1&&wf(0);}function Vn$1(t,n){if(t&1&&(Xa(0,`div`,7),TD(1,_n$1,8,3)(2,wn$1,9,6),Xa(3,`div`,9),pf(4,xn$1,1,0,`ng-container`,10),ec()()),t&2){let e=VD(),i=zD(16),o=e.template()===e.ItemDetailTemplate.CLASSIC;fd(),SD(o?1:2),fd(3),Ef(`ngTemplateOutlet`,i);}}function Mn$1(t,n){t&1&&wf(0);}function In$1(t,n){t&1&&wf(0);}function En$1(t,n){t&1&&wf(0);}function Sn$1(t,n){t&1&&wf(0);}function An$1(t,n){if(t&1&&(Xa(0,`div`,8)(1,`div`,18),pf(2,Mn$1,1,0,`ng-container`,10),ec(),Xa(3,`div`,17),pf(4,In$1,1,0,`ng-container`,10)(5,En$1,1,0,`ng-container`,10)(6,Sn$1,1,0,`ng-container`,10),ec()()),t&2){VD();let e=zD(4),i=zD(6),o=zD(8),a=zD(16);fd(2),Ef(`ngTemplateOutlet`,i),fd(2),Ef(`ngTemplateOutlet`,e),fd(),Ef(`ngTemplateOutlet`,o),fd(),Ef(`ngTemplateOutlet`,a);}}function On$1(t,n){if(t&1){let e=FD();Xa(0,`button`,19),Nf(`click`,function(){gu(e);return mu(VD().close())}),Cf(1,`cooee-icon`,20),ec();}}function Tn$1(t,n){if(t&1&&Cf(0,`img`,22),t&2){let e=n.$implicit,i=VD(2);Ef(`src`,e.url,nm)(`alt`,e.alt??i.item().name);}}function Fn$1(t,n){if(t&1&&(Xa(0,`div`,21),ND(1,Tn$1,1,2,`img`,22,MD),ec()),t&2){let e=VD();fd(),AD(e.item().imgs);}}function kn$1(t,n){if(t&1&&(Cf(0,`span`,25),bv(1,`cooeeCurrency`),bv(2,`safeHtml`)),t&2){VD(2);Ef(`innerHTML`,Av(2,3,Av(1,1,Ev(2).d)),tm);}}function Pn$1(t,n){if(t&1&&(Cf(0,`span`,26),bv(1,`cooeeCurrency`),bv(2,`safeHtml`)),t&2){VD(2);Ef(`innerHTML`,Av(2,3,Av(1,1,Ev(2).cmp)),tm);}}function Nn$1(t,n){if(t&1&&(Xa(0,`div`,24),TD(1,kn$1,3,5,`span`,25),TD(2,Pn$1,3,5,`span`,26),ec()),t&2){VD();let e=Ev(2);fd(),SD(e.d?1:-1),fd(),SD(e.cmp?2:-1);}}function Rn$1(t,n){t&1&&wf(0);}function jn$1(t,n){t&1&&wf(0);}function Bn$1(t,n){t&1&&wf(0);}function Ln$1(t,n){if(t&1&&(Xa(0,`div`,23),gv(1),ec(),Xf(2),TD(3,Nn$1,3,2,`div`,24),pf(4,Rn$1,1,0,`ng-container`,10)(5,jn$1,1,0,`ng-container`,10)(6,Bn$1,1,0,`ng-container`,10)),t&2){let e=VD(),i=zD(10),o=zD(12),a=zD(14),l=Ev(0);fd(),Yf(e.item().name),fd();let p=vv(l.price);fd(),SD(p?3:-1),fd(),Ef(`ngTemplateOutlet`,o),fd(),Ef(`ngTemplateOutlet`,a),fd(),Ef(`ngTemplateOutlet`,i);}}function Hn$1(t,n){if(t&1&&(Xa(0,`div`,27),gv(1,`Description`),ec(),Cf(2,`div`,28),bv(3,`safeHtml`)),t&2){let e=VD(2);fd(2),Ef(`innerHTML`,Av(3,1,e.item().desc),tm);}}function Gn$1(t,n){if(t&1&&TD(0,Hn$1,4,3),t&2)SD(VD().item().desc?0:-1);}function Un$1(t,n){if(t&1){let e=FD();Xa(0,`a`,32),Nf(`click`,function(o){let a=gu(e).$implicit;return mu(VD(3).changeItem(o,a))}),Cf(1,`img`,22),ec();}if(t&2){let e=n.$implicit,i=VD(3);Ef(`ngClass`,Sv(3,pn$1,e.mID===i.item().mID+``)),fd(),Ef(`src`,e.firstImageURL,nm)(`alt`,i.item().name);}}function $n$1(t,n){if(t&1&&(Xa(0,`span`,29),gv(1,`Select product`),ec(),Xa(2,`div`,30),ND(3,Un$1,2,5,`a`,31,mn$1),ec()),t&2){let e=VD(2);fd(3),AD(e.similarItems());}}function zn$1(t,n){if(t&1&&TD(0,$n$1,5,0),t&2)SD(VD().similarItems().length>1?0:-1);}function Wn$1(t,n){if(t&1&&(Xa(0,`span`,33),gv(1,`Select variant`),ec(),Cf(2,`cooee-item-options-picker`,16)),t&2){let e=VD(2);fd(2),Ef(`item`,e.item());}}function qn$1(t,n){if(t&1&&TD(0,Wn$1,3,1),t&2)SD(VD().item().hasVariants()?0:-1);}function Kn$1(t,n){t&1&&(gv(0,` Add To Cart `),Cf(1,`cooee-icon`,42));}function Zn$1(t,n){t&1&&(gv(0,` Out of stock `),Cf(1,`cooee-icon`,43));}function Jn$1(t,n){if(t&1){let e=FD();Xa(0,`button`,41),Nf(`click`,function(){gu(e);return mu(VD(2).clickAddToCart())}),TD(1,Kn$1,2,0)(2,Zn$1,2,0),ec();}if(t&2){VD(2);let e=Ev(0);Ef(`disabled`,!e.isAvailable),fd(),SD(e.isAvailable?1:2);}}function Qn$1(t,n){if(t&1&&(Xa(0,`span`,40),gv(1),ec()),t&2){let e=VD(2);fd(),Yf(e.currentVideoCartItemsCount());}}function Xn$1(t,n){if(t&1){let e=FD();Xa(0,`div`,34),TD(1,Jn$1,3,2,`button`,35),Xa(2,`button`,36),Nf(`click`,function(){gu(e);return mu(VD().goToPDP())}),gv(3,` More Info `),Cf(4,`cooee-icon`,37),ec(),Xa(5,`button`,38),Nf(`click`,function(){gu(e);return mu(VD().openCart())}),Cf(6,`img`,39),TD(7,Qn$1,2,1,`span`,40),ec()();}if(t&2){let e=VD();fd(),SD(e.item().showAddToCartButton?1:-1),fd(6),SD(e.currentVideoCartItemsCount()?7:-1);}}var Nt=class t$1{closeClick=new ve$1;layout=aN(`SINGLE_PANE`);item=aN.required();similarItems=iN([]);template=iN(`CLASSIC`);cartItems=Lt$2([]);currentVideoCartItemsCount=Fv(()=>{let n=this.item(),e=this.cartItems();return !n||!e.length?0:e.filter(i=>i.mID===n.mID).reduce((i,o)=>i+o.quantity,0)});ItemDetailTemplate=ne$2;engagementService=g(N);destroyRef=g(ze);lastLayout=null;resizeObserver=new t(()=>{M$3()?(this.lastLayout===null&&(this.lastLayout=this.layout()),this.layout.set(`SINGLE_PANE`)):this.lastLayout!==null&&(this.layout.set(this.lastLayout),this.lastLayout=null);});ngOnInit(){this.subscribeToCartChanges();}ngOnDestroy(){this.resizeObserver.destroy();}close(){this.closeClick.emit();}clickAddToCart(){this.engagementService.executeCTA(he$3.ADD_TO_CART,{item:this.item()}),this.close();}openCart(){this.engagementService.executeCTA(he$3.OPEN_CART);}changeItem(n,e){n.stopPropagation(),n.preventDefault(),this.item.set(e);}goToPDP(){this.engagementService.executeCTA(he$3.GO_TO_PRODUCT,{item:this.item()});}isSinglePane(){return this.layout()!==`TWO_PANE`||M$3()}subscribeToCartChanges(){window.CooeeSDK.cartChange$.pipe(_e$3({cart:window.CooeeSDK.cart.getCooeeCart()}),Pt(this.destroyRef)).subscribe(n=>{this.cartItems.set(n.cart?.items??[]);});}static ɵfac=function(e){return new(e||t$1)};static ɵcmp=cf({type:t$1,selectors:[[`cooee-item-detail`]],hostAttrs:[1,`letscooee-widget`],inputs:{layout:[1,`layout`],item:[1,`item`],similarItems:[1,`similarItems`],template:[1,`template`]},outputs:{closeClick:`closeClick`,layout:`layoutChange`,item:`itemChange`},features:[np([N])],decls:17,vars:2,consts:[[`closeButtonTemplate`,``],[`imageStripTemplate`,``],[`bodyTemplate`,``],[`descriptionTemplate`,``],[`productSelectorTemplate`,``],[`variantSelectorTemplate`,``],[`footerButtonsTemplate`,``],[1,`lc-card-wrapper`,`card-wrapper`,`single-pane`],[1,`card-wrapper`,`two-pane`],[1,`lc-card-footer`,`card-footer`],[4,`ngTemplateOutlet`],[1,`lc-card-header`,`card-header`],[1,`lc-header`,`header`],[1,`card-content`],[1,`lc-inner-body`,`inner-body`],[1,`card-header`],[3,`item`],[1,`inner-body`],[1,`images-container`],[`type`,`button`,`aria-label`,`Close product details`,1,`lc-close-button`,`close-button`,3,`click`],[`name`,`close`,`aria-hidden`,`true`],[1,`image-strip`],[3,`src`,`alt`],[1,`lc-item-name`,`item-name`],[1,`lc-prices`,`prices`],[1,`lc-item-price`,`item-price`,3,`innerHTML`],[1,`lc-item-cmp-price`,`item-cmp-price`,3,`innerHTML`],[1,`lc-description-title`,`description-title`],[1,`lc-description`,`description`,3,`innerHTML`],[1,`lc-selected-product-title`,`selected-product-title`],[1,`lc-image-strip`,`image-strip`],[`href`,`#`,1,`product-selector`,3,`ngClass`],[`href`,`#`,1,`product-selector`,3,`click`,`ngClass`],[1,`selected-variant-title`],[1,`footer-buttons`],[`type`,`button`,1,`lc-cta-button`,`cta-button`,3,`disabled`],[`type`,`button`,1,`lc-more-info-button`,`more-info-button`,3,`click`],[`name`,`info`,`aria-hidden`,`true`,1,`more-info-icon`],[`type`,`button`,`aria-label`,`View cart`,`title`,`View Cart`,1,`view-cart-button`,3,`click`],[`width`,`32`,`height`,`32`,`src`,`https://img.icons8.com/material-sharp/48/shopping-cart.png`,`alt`,`shopping-cart`],[`aria-live`,`polite`,`aria-atomic`,`true`,1,`cart-icon-badge`],[`type`,`button`,1,`lc-cta-button`,`cta-button`,3,`click`,`disabled`],[`name`,`add`,`aria-hidden`,`true`,1,`add-to-cart-icon`],[`name`,`unavailable`,`aria-hidden`,`true`]],template:function(e,i){e&1&&(Xf(0),TD(1,Vn$1,5,2,`div`,7)(2,An$1,7,4,`div`,8),pf(3,On$1,2,0,`ng-template`,null,0,xv)(5,Fn$1,3,0,`ng-template`,null,1,xv)(7,Ln$1,7,6,`ng-template`,null,2,xv)(9,Gn$1,1,1,`ng-template`,null,3,xv)(11,zn$1,1,1,`ng-template`,null,4,xv)(13,qn$1,1,1,`ng-template`,null,5,xv)(15,Xn$1,8,2,`ng-template`,null,6,xv)),e&2&&(vv(i.item().selectedOrFirstVariant.value),fd(),SD(i.isSinglePane()?1:2));},dependencies:[AE,ke,ye$1,xE,de,a,ce],styles:[`[_nghost-%COMP%]{display:block;background:#fff}.card-wrapper[_ngcontent-%COMP%]{position:relative}.card-wrapper.single-pane[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%;overflow:auto}.card-wrapper.two-pane[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr}.card-header[_ngcontent-%COMP%]{display:var(--header-display, flex);flex-direction:row;justify-content:space-between;align-items:start;padding:8px 16px;border-bottom:1px solid var(--lc-color-gray-300)}.header[_ngcontent-%COMP%]{font-size:24px;font-weight:var(--lc-subheading-weight);color:rgba(var(--lc-subheading-color))}.close-button[_ngcontent-%COMP%]{background:transparent;border:none;width:36px;height:36px}.close-button[_ngcontent-%COMP%] cooee-icon[_ngcontent-%COMP%]{color:#000000b3}.two-pane[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%]{position:absolute;top:8px;right:4px}.card-content[_ngcontent-%COMP%]{flex:1;overflow-y:auto;overscroll-behavior:contain} cooee-item-card .item-info{margin-right:0!important} cooee-item-card .item-detail-button{display:none!important} cooee-item-card .card-footer{display:none!important}.inner-body[_ngcontent-%COMP%]{padding:16px;display:flex;flex-direction:column;gap:8px}.images-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:start}.image-strip[_ngcontent-%COMP%]{width:100%;display:flex;overflow-x:auto;gap:8px;flex-wrap:nowrap}.image-strip[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:auto;height:200px}.two-pane[_ngcontent-%COMP%] .image-strip[_ngcontent-%COMP%]{padding:16px}.product-selector[_ngcontent-%COMP%]{height:100px;flex-shrink:0;border-radius:var(--lc-media-radius);padding:2px}.product-selector.active[_ngcontent-%COMP%]{border:1px solid rgba(var(--lc-primary-color))}.product-selector[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-height:100%;border-radius:var(--lc-media-radius)}.description-title[_ngcontent-%COMP%], .selected-product-title[_ngcontent-%COMP%], .selected-variant-title[_ngcontent-%COMP%]{font-size:var(--lc-subheading-size);font-weight:var(--lc-subheading-weight);color:rgba(var(--lc-subheading-color));margin-top:8px;line-height:normal}.description[_ngcontent-%COMP%]{line-height:normal;color:#000;font-size:var(--lc-description-size);font-weight:var(--lc-description-weight)}.card-footer[_ngcontent-%COMP%]{padding:var(--lc-item-detail-footer-padding);background-color:rgba(var(--lc-item-detail-footer-bg-color));box-shadow:var(--lc-item-detail-footer-box-shadow)}.footer-buttons[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;gap:12px}.two-pane[_ngcontent-%COMP%] .footer-buttons[_ngcontent-%COMP%]{margin-top:16px}.cta-button[_ngcontent-%COMP%], .more-info-button[_ngcontent-%COMP%]{width:50%;padding:12px;display:flex;justify-content:center;align-items:center}.more-info-button[_ngcontent-%COMP%]{background-color:rgba(var(--lc-secondary-button-bg-color));color:rgba(var(--lc-secondary-button-color));font-weight:var(--lc-secondary-button-weight);text-transform:var(--lc-secondary-button-transform);border-radius:var(--lc-button-radius);font-size:var(--lc-button-size);font-family:var(--lc-button-family),serif;height:var(--lc-button-height);letter-spacing:var(--lc-button-letter-spacing);transition:filter .12s ease,background-color .2s ease,color .2s ease;border-width:1px;border-style:solid;border-color:rgba(var(--lc-secondary-button-border-color));display:flex;align-items:center;justify-content:center;gap:8px}.more-info-button[_ngcontent-%COMP%] cooee-icon[_ngcontent-%COMP%]{display:var(--lc-button-icon-display);width:var(--lc-button-icon-size, 20px)!important;height:var(--lc-button-icon-size, 20px)!important;color:inherit}.more-info-button[_ngcontent-%COMP%]:hover{filter:brightness(.95)}.more-info-button[_ngcontent-%COMP%]:active{filter:brightness(.9)}.more-info-button[_ngcontent-%COMP%]:focus-visible{outline:2px solid rgba(var(--lc-primary-color, 0, 0, 0));outline-offset:2px}.view-cart-button[_ngcontent-%COMP%]{position:relative}.view-cart-button[_ngcontent-%COMP%] .cart-icon-badge[_ngcontent-%COMP%]{position:absolute;top:-6px;right:-6px;background-color:rgba(var(--lc-primary-color));color:#fff;border-radius:50%;width:18px;height:18px;font-size:12px;display:flex;align-items:center;justify-content:center}`]})};var Yn$1=[[[`swiper-slides`]]],ei=[`swiper-slides`],ti=(t,n)=>({"--swiper-navigation-size":t,color:n}),ni=t=>({color:t,bottom:0,top:`unset`,position:`relative`});function ii(t,n){if(t&1&&(qo(0,`div`,2),tc(1,`span`),Zo(),qo(2,`div`,3),tc(3,`span`),Zo()),t&2){let e,i,o=VD(),a=((e=o.navigationConfig())==null?null:e.size)??50,l=((i=o.navigationConfig())==null||i.color==null?null:i.color.rgba)??`white`,p=Mv(4,ti,a+`px`,l);rv(p),fd(2),rv(p);}}function oi(t,n){if(t&1&&(qo(0,`div`,4),tc(1,`span`),Zo()),t&2){let e;rv(Sv(2,ni,((e=VD().paginationConfig())==null||e.color==null?null:e.color.rgba)??`white`));}}var Rt=class t$2{options=iN.required();navigationConfig=iN();paginationConfig=iN();slideChange=oN();elementRef=g(Se$1);swiperInstance;initToken=0;resizeDebouncer=new t(this.onResize.bind(this));constructor(){ws(()=>{this.options()&&this.reInitSwiper();});}get swiper(){return this.swiperInstance}ngOnDestroy(){this.resizeDebouncer?.destroy(),this.swiperInstance?.destroy?.(),this.swiperInstance=void 0;}async initSwiper(n=this.initToken){if(await Mi$1(),n!==this.initToken){Y$1.warn(`Swiper token not matching`);return}let e=this.elementRef.nativeElement,i={nextEl:e.querySelector(`.swiper-button-next`),prevEl:e.querySelector(`.swiper-button-prev`),enabled:this.navigationConfig()?.enabled},o=this.paginationConfig(),a={el:e.querySelector(`.swiper-pagination`),enabled:this.paginationConfig()?.enabled,type:this.paginationConfig()?.type,clickable:true,renderBullet:function(l,p){return `
16
+ var Ut=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,i){this._renderer=e,this._elementRef=i;}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i);}registerOnTouched(e){this.onTouched=e;}registerOnChange(e){this.onChange=e;}setDisabledState(e){this.setProperty(`disabled`,e);}static ɵfac=function(i){return new(i||t)(ne$1(ur),ne$1(Se$1))};static ɵdir=En$2({type:t})}return t})(),Vt=(()=>{class t extends Ut{static ɵfac=(()=>{let e;return function(o){return (e||(e=Ll(t)))(o||t)}})();static ɵdir=En$2({type:t,features:[Wa]})}return t})(),Mt=new I$1(``);var $t=new I$1(``,{factory:()=>It}),It=`always`;var zt={provide:Mt,useExisting:On$2(()=>St),multi:true};function Et(t,n){return t==null?`${n}`:(n&&typeof n==`object`&&(n=`Object`),`${t}: ${n}`.slice(0,50))}function Wt(t){return t.split(`:`)[0]}var St=(()=>{class t extends Vt{value;_optionMap=new Map;_idCounter=0;set compareWith(e){this._compareWith=e;}_compareWith=Object.is;appRefInjector=g(ht$1).injector;destroyRef=g(ze);cdr=g(Dp);_queuedWrite=false;_writeValueAfterRender(){this._queuedWrite||this.appRefInjector.destroyed||(this._queuedWrite=true,md({write:()=>{this.destroyRef.destroyed||(this._queuedWrite=false,this.writeValue(this.value));}},{injector:this.appRefInjector}));}writeValue(e){this.cdr.markForCheck(),this.value=e;let o=Et(this._getOptionId(e),e);this.setProperty(`value`,o);}registerOnChange(e){this.onChange=i=>{this.value=this._getOptionValue(i),e(this.value);};}_registerOption(){return (this._idCounter++).toString()}_getOptionId(e){for(let i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i),e))return i;return null}_getOptionValue(e){let i=Wt(e);return this._optionMap.has(i)?this._optionMap.get(i):e}static ɵfac=(()=>{let e;return function(o){return (e||(e=Ll(t)))(o||t)}})();static ɵdir=En$2({type:t,selectors:[[`select`,`formControlName`,``,3,`multiple`,``],[`select`,`formControl`,``,3,`multiple`,``],[`select`,`ngModel`,``,3,`multiple`,``]],hostBindings:function(i,o){i&1&&Nf(`change`,function(l){return o.onChange(l.target.value)})(`blur`,function(){return o.onTouched()});},inputs:{compareWith:`compareWith`},standalone:false,features:[np([zt]),Wa]})}return t})(),At=(()=>{class t{_element;_renderer;_select;id;constructor(e,i,o){this._element=e,this._renderer=i,this._select=o,this._select&&(this.id=this._select._registerOption());}set ngValue(e){this._select!=null&&(this._select._optionMap.set(this.id,e),this._setElementValue(Et(this.id,e)),this._select._writeValueAfterRender());}set value(e){this._setElementValue(e),this._select?._writeValueAfterRender();}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,`value`,e);}ngOnDestroy(){this._select?._optionMap.delete(this.id),this._select?._writeValueAfterRender();}static ɵfac=function(i){return new(i||t)(ne$1(Se$1),ne$1(ur),ne$1(St,9))};static ɵdir=En$2({type:t,selectors:[[`option`]],inputs:{ngValue:`ngValue`,value:`value`},standalone:false})}return t})(),qt={provide:Mt,useExisting:On$2(()=>Ot),multi:true};function xt(t,n){return t==null?`${n}`:(typeof n==`string`&&(n=`'${n}'`),n&&typeof n==`object`&&(n=`Object`),`${t}: ${n}`.slice(0,50))}function Kt(t){return t.split(`:`)[0]}var Ot=(()=>{class t extends Vt{value;_optionMap=new Map;_idCounter=0;set compareWith(e){this._compareWith=e;}_compareWith=Object.is;writeValue(e){this.value=e;let i;if(Array.isArray(e)){let o=e.map(a=>this._getOptionId(a));i=(a,l)=>{a._setSelected(o.indexOf(l.toString())>-1);};}else i=(o,a)=>{o._setSelected(false);};this._optionMap.forEach(i);}registerOnChange(e){this.onChange=i=>{let o=[],a=i.selectedOptions;if(a!==void 0){let l=a;for(let p=0;p<l.length;p++){let v=l[p],A=this._getOptionValue(v.value);o.push(A);}}else {let l=i.options;for(let p=0;p<l.length;p++){let v=l[p];if(v.selected){let A=this._getOptionValue(v.value);o.push(A);}}}this.value=o,e(o);};}_registerOption(e){let i=(this._idCounter++).toString();return this._optionMap.set(i,e),i}_getOptionId(e){for(let i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i)._value,e))return i;return null}_getOptionValue(e){let i=Kt(e);return this._optionMap.has(i)?this._optionMap.get(i)._value:e}static ɵfac=(()=>{let e;return function(o){return (e||(e=Ll(t)))(o||t)}})();static ɵdir=En$2({type:t,selectors:[[`select`,`multiple`,``,`formControlName`,``],[`select`,`multiple`,``,`formControl`,``],[`select`,`multiple`,``,`ngModel`,``]],hostBindings:function(i,o){i&1&&Nf(`change`,function(l){return o.onChange(l.target)})(`blur`,function(){return o.onTouched()});},inputs:{compareWith:`compareWith`},standalone:false,features:[np([qt]),Wa]})}return t})(),Tt=(()=>{class t{_element;_renderer;_select;id;_value;constructor(e,i,o){this._element=e,this._renderer=i,this._select=o,this._select&&(this.id=this._select._registerOption(this));}set ngValue(e){this._select!=null&&(this._value=e,this._setElementValue(xt(this.id,e)),this._select.writeValue(this._select.value));}set value(e){this._select?(this._value=e,this._setElementValue(xt(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e);}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,`value`,e);}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,`selected`,e);}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value));}static ɵfac=function(i){return new(i||t)(ne$1(Se$1),ne$1(ur),ne$1(Ot,9))};static ɵdir=En$2({type:t,selectors:[[`option`]],inputs:{ngValue:`ngValue`,value:`value`},standalone:false})}return t})();var Zt=(()=>{class t{static ɵfac=function(i){return new(i||t)};static ɵmod=vn$2({type:t});static ɵinj=Tt$2({})}return t})();var Ft=(()=>{class t{static withConfig(e){return {ngModule:t,providers:[{provide:$t,useValue:e.callSetDisabledState??It}]}}static ɵfac=function(i){return new(i||t)};static ɵmod=vn$2({type:t});static ɵinj=Tt$2({imports:[Zt]})}return t})();var N=class t{engagementContext=g(Ke$1);eventData=g(Ge$1);constructor(){}executeCTA(n,e){let i,o=this.engagementContext();if(!o){Y$1.error(`Engagement context is not available; aborting executeCTA.`);return}if(n===he$3.ADD_TO_CART)i=`CE Add To Cart Clicked`;else if(n===he$3.GO_TO_PRODUCT)i=`CE View Item Clicked`;else if(n===he$3.OPEN_CART)i=`CE Open Cart Clicked`,o.triggerData.redirectBehaviour=ae$2.CART_DRAWER;else {Y$1.warn(`Unsupported CTA type: ${n}`);return}window.CooeeSDK.executeCTA(o,r({clickAction:{at:n}},e));let a=new Ir$1(i,this.eventData.props,o.triggerData);e?.video?a.setVideos(e.video):this.eventData.video&&a.setVideos(this.eventData.video),window.CooeeSDK.sendEvent(a);}static ɵfac=function(e){return new(e||t)};static ɵprov=C({token:t,factory:t.ɵfac})};function kt(t,n){return [N,...Qt(t,n)]}function Qt(t,n){return [{provide:Ke$1,useValue:Lt$2(t)},{provide:Ge$1,useValue:r({},n)}]}var Fe=class t{elementRef=g(Se$1);engagementService=g(N);hasSwiper=false;_engagementTrigger=Lt$2(null);_triggerContext=g(Ke$1);constructor(){this.elementRef.nativeElement.update=this.update.bind(this);}get classes(){let n=[`letscooee-widget`],e=this._engagementTrigger();return n.push(`widget-${e?.shortID}`),n}get triggerContext(){return this._triggerContext()}set triggerContext(n){this._triggerContext.set(n),this._engagementTrigger.set(n.triggerData),this.engagementTriggerReceived(n.triggerData);}get engagementTrigger(){return this._engagementTrigger()}ngOnInit(){Y$1.verbose(`Init`,this.constructor.name);let n=this.elementRef.nativeElement.shadowRoot;n&&(Hi$1(n,this.hasSwiper),le$2(this.engagementTrigger?.content?.innerCSS,n));}ngOnDestroy(){Y$1.verbose(`Destroying`,this.constructor.name);}static ɵfac=function(e){return new(e||t)};static ɵcmp=cf({type:t,selectors:[[`ng-component`]],hostVars:2,hostBindings:function(e,i){e&2&&iv(i.classes);},inputs:{triggerContext:`triggerContext`},decls:1,vars:0,template:function(e,i){e&1&&Tf(0);},encapsulation:2})};var Xt=t=>({row:t}),Le=(t,n)=>n.id;function Yt(t,n){if(t&1&&(Xa(0,`option`,4),bv(1,`json`),gv(2),ec()),t&2){let e=n.$implicit,i=VD().$implicit,o=VD(2);Ef(`value`,Cv(Av(1,5,e)))(`selected`,o.selectedOptions()[i.name]===e.name)(`disabled`,!!e.disabled),fd(2),ac(``,e.name,` `);}}function en(t,n){if(t&1){let e=FD();Xa(0,`select`,3,0),Nf(`change`,function(){let o=gu(e).$implicit,a=zD(1);return mu(VD(2).onOptionChangeDropdown(o,a.value))}),ND(2,Yt,3,7,`option`,4,bD),ec();}if(t&2){let e=n.$implicit;rv(VD(2).getCompiledStyle()),Ef(`name`,e.name),vf(`aria-label`,e.name),fd(2),AD(e.optionValues);}}function tn(t,n){if(t&1&&(Xa(0,`div`,1),ND(1,en,4,4,`select`,2,Le),ec()),t&2){let e=VD();Ef(`ngClass`,Sv(1,Xt,e.horizontal())),fd(),AD(e.options());}}function nn(t,n){if(t&1&&(Xa(0,`span`,11),gv(1),ec()),t&2){VD();let e=Ev(0);fd(),Yf(e);}}function on(t,n){if(t&1){let e=FD();Xf(0),Xa(1,`button`,10),Nf(`click`,function(){let o=gu(e).$implicit,a=VD().$implicit;return mu(VD(2).onOptionChange(a,o))}),TD(2,nn,2,1,`span`,11),ec();}if(t&2){let e=n.$implicit,i=VD().$implicit,o=Ev(1),a=VD(2),l=e.name,p=vv(e.displayName||e.name),v=e.swatch,A=o?e.hexColor??l:``,_e=a.selectedOptions()[i.name]===l,He=!!(v!=null&&v.color),Ge=!!(!(v==null||v.image==null)&&v.image.url);fd(),sc(`swatch-color-type`,He)(`swatch-image-type`,Ge)(`selected`,_e)(`disabled`,e.disabled),Ef(`title`,p)(`ngStyle`,a.getSwatchStyles(v,A)),vf(`aria-checked`,_e?`true`:`false`)(`data-value`,l)(`aria-disabled`,e.disabled?`true`:null)(`aria-label`,p),fd(),SD(!o&&!He&&!Ge?2:-1);}}function rn$1(t,n){if(t&1&&(Xa(0,`div`),Xf(1),Xa(2,`div`,6),gv(3),ec(),Xa(4,`div`,7),gv(5),ec(),Xa(6,`div`,8),ND(7,on,3,16,`button`,9,Le),ec()()),t&2){let e=n.$implicit,i=VD(2);iv(Iv(`option-group `,e.name.toLowerCase())),fd(),vv(i.hasHexColors(e)),fd(2),ac(``,e.name,`:`),fd(2),Yf(i.selectedOptions()[e.name]),fd(),vf(`aria-label`,e.name),fd(),AD(e.optionValues);}}function an$1(t,n){if(t&1&&ND(0,rn$1,9,7,`div`,5,Le),t&2)AD(VD().options());}var he=t=>t.trim().toLowerCase(),ke=class t extends Fe{selectedVariant=new ve$1;item=iN.required();dropdownType=iN(void 0);horizontal=iN(void 0);styles=iN(void 0);selectedOptions=Lt$2({});options=Fv(()=>{let n=this.item();if(!n.options||n.vars.length===1)return [];if(window.cooeeManipulateProduct)try{window.cooeeManipulateProduct(n,this.engagementTrigger);}catch(e){Y$1.error(e);}return n.options.forEach(e=>{e.optionValues.forEach(i=>{i.disabled=this.isOptionValueDisabledFast(e,i);});}),n.options});matchedVariant=Fv(()=>{let n=this.item(),e=this.selectedOptions();return n.vars.find(i=>n.options.every(o=>{let a=i.selectedOptions.find(l=>l.name===o.name)?.value;return e[o.name]===a}))});DropdownType=ge$3;availabilityIndex=Fv(()=>{let n=this.item(),e=new Map;return n?.vars?.length&&n.vars.forEach((i,o)=>{if(i.isAvailable)for(let a of i.selectedOptions){let l=he(a.name),p=a.value,v=e.get(l);v||e.set(l,v=new Map);let A=v.get(p);A||v.set(p,A=new Set),A.add(o);}}),e});constructor(){super(),ws(()=>{let e=this.matchedVariant();e&&(this.item().setSelectedVariant(e),this.selectedVariant.emit(e));});let n=ws(()=>{let e=this.item();if(!e?.options)return;let i=r({},this.selectedOptions()),o=e.vars.find(a=>a.isAvailable)??e.vars[0];e.options.forEach(a=>{let l=o?.selectedOptions.find(p=>p.name===a.name)?.value;l&&(i[a.name]=l);}),this.selectedOptions.set(i),n.destroy();});}ngOnInit(){super.ngOnInit();let n=this.elementRef.nativeElement.shadowRoot;if(!n)return;let e=he$4.get().website?.itemSwatchMapping;e&&le$2(e,n);}onOptionChange(n,e){let i=r({},this.selectedOptions());i[n.name]=e.name,this.selectedOptions.set(i);}onOptionChangeDropdown(n,e){let i=JSON.parse(e);this.onOptionChange(n,i);}engagementTriggerReceived(){}update(){}hasHexColors(n){return !!n.optionValues[0]?.name.match(/#[a-f0-9]{6}\b/i)}getSwatchStyles(n,e){let i={};return !n&&e?(i[`--option-color`]=e,i[`background-color`]=e,i):(n?.image?.url?i[`background-image`]=`url("${n.image.url}")`:n?.color&&(i[`--option-color`]=n.color,i[`background-color`]=n.color),i)}getCompiledStyle(){if(!this.styles())return {};let n=this.styles(),e=n.lg;M$3()&&n.sm&&Object.keys(n.sm).length&&(e=r(r({},e),n.sm));let i=s(r(r(r(r({},On$3(e.bg)),Nn$4(e.br)),gn$3(e.size)),Sn$3(e.spc)),{boxSizing:`border-box`,outline:`none`});return this.item().vars?.length===1&&this.item().vars[0].name===`Default Title`&&(i.visibility=`hidden`),r(r({},i),In$2(e.typo))}getCandidateVariantsExcluding(n){let e=this.item(),i=this.availabilityIndex(),o=new Set;e.vars.forEach((l,p)=>{l.isAvailable&&o.add(p);});let a=o;for(let[l,p]of Object.entries(this.selectedOptions())){if(he(l)===he(n))continue;let v=i.get(he(l));if(!v)return new Set;let A=v.get(String(p));if(!A)return new Set;if(a=new Set([...a].filter(_e=>A.has(_e))),a.size===0)return a}return a}isOptionValueDisabledFast(n,e){let o=this.availabilityIndex().get(he(n.name));if(!o)return true;let a=e.name,l=o.get(a);if(!l||l.size===0)return true;let p=this.getCandidateVariantsExcluding(n.name);if(p.size===0)return true;for(let v of p)if(l.has(v))return false;return true}static ɵfac=function(e){return new(e||t)};static ɵcmp=cf({type:t,selectors:[[`cooee-item-options-picker`]],inputs:{item:[1,`item`],dropdownType:[1,`dropdownType`],horizontal:[1,`horizontal`],styles:[1,`styles`]},outputs:{selectedVariant:`selectedVariant`},features:[np(kt()),Wa],decls:2,vars:1,consts:[[`sel`,``],[1,`dropdowns-wrapper`,3,`ngClass`],[1,`variant-selector`,3,`name`,`style`],[1,`variant-selector`,3,`change`,`name`],[3,`value`,`selected`,`disabled`],[3,`class`],[1,`name`],[1,`selected-value`],[`role`,`radiogroup`,1,`option-values`],[`type`,`button`,`role`,`radio`,1,`option-value`,3,`swatch-color-type`,`swatch-image-type`,`selected`,`disabled`,`title`,`ngStyle`],[`type`,`button`,`role`,`radio`,1,`option-value`,3,`click`,`title`,`ngStyle`],[1,`title`]],template:function(e,i){e&1&&TD(0,tn,3,3,`div`,1)(1,an$1,2,0),e&2&&SD(i.dropdownType()===i.DropdownType.MULTIPLE?0:1);},dependencies:[$p,AE,RE,Ft,At,Tt,LE],styles:[`.option-group{display:flex;gap:4px;align-items:center}.option-group+.option-group{margin-top:8px}.option-values{display:flex;flex-wrap:nowrap;overflow-x:auto;padding:6px;gap:4px;scrollbar-gutter:stable both-edges;scrollbar-width:none}.option-values::-webkit-scrollbar{display:none}.selected-value{display:none}.option-value{padding:5px 10px;border:1px solid #ccc;cursor:pointer;border-radius:4px;min-width:32px;min-height:32px;text-align:center;position:relative;flex-shrink:0;--selected-color: var(--option-color, rgba(var(--lc-primary-button-bg-color, 0 0 0)));background-size:cover;background-position:center;background-repeat:no-repeat}.option-value.selected{box-shadow:#fff 0 0 0 2px,var(--selected-color) 0 0 0 4px}.option-value.disabled{opacity:.5;pointer-events:none}.dropdowns-wrapper{display:flex;gap:4px;flex-wrap:nowrap;width:100%;flex-direction:column}.dropdowns-wrapper.row{flex-direction:row}
17
+ `],encapsulation:3})};function Pt(t){t||(t=g(ze));let n=new m$1(e=>{if(t.destroyed){e.next();return}return t.onDestroy(e.next.bind(e))});return e=>e.pipe(pi(n))}var ce=class t{transform(n){return n==null?null:Pr$1(n)}static ɵfac=function(e){return new(e||t)};static ɵpipe=Go({name:`cooeeCurrency`,type:t,pure:true})};function sn$1(t,n){if(t&1&&(Cf(0,`span`,6),bv(1,`cooeeCurrency`),bv(2,`safeHtml`)),t&2){VD();Ef(`innerHTML`,Av(2,3,Av(1,1,Ev(7).cmp)),tm);}}function ln$1(t,n){if(t&1&&(Xa(0,`span`,8),gv(1),ec()),t&2){VD();let e=Ev(14);fd(),ac(` `,e,`% off `);}}function cn$1(t,n){t&1&&(gv(0,` Out of Stock `),Cf(1,`cooee-icon`,16));}function dn$1(t,n){t&1&&(gv(0,` Add To Cart `),Cf(1,`cooee-icon`,17));}function un$1(t,n){if(t&1){let e=FD();Xa(0,`button`,15),Nf(`click`,function(o){gu(e);return mu(VD().addToCartClicked(o))}),TD(1,cn$1,2,0)(2,dn$1,2,0),ec();}if(t&2){let e=VD();Ef(`disabled`,e.isButtonDisabled()),fd(),SD(e.isButtonDisabled()?1:2);}}var de=class t{buttonClick=oN();item=iN.required();isButtonDisabled=Fv(()=>{let n=this.item();return n.hasVariants()?!n.vars.some(e=>e.isAvailable):!n.selectedOrFirstVariant.value.isAvailable});addToCartClicked(n){n.stopPropagation(),this.buttonClick.emit(this.item());}getDiscountPercentage(n){return n.cmp&&n.cmp>n.d?Math.round((1-n.d/n.cmp)*100):0}static ɵfac=function(e){return new(e||t)};static ɵcmp=cf({type:t,selectors:[[`cooee-item-card`]],inputs:{item:[1,`item`]},outputs:{buttonClick:`buttonClick`},decls:22,vars:17,consts:[[1,`card-body`],[1,`item-image`,3,`alt`,`src`],[1,`item-info`],[1,`item-name`],[1,`prices`],[1,`item-price`,3,`innerHTML`],[1,`item-cmp-price`,3,`innerHTML`],[`type`,`button`,1,`shop-now-button`,3,`click`,`href`],[1,`item-discount-percentage`],[`type`,`button`,1,`item-detail-button`,3,`aria-label`],[`name`,`open`],[1,`card-footer`],[`type`,`button`,1,`cta-button`,3,`disabled`],[`href`,`/cart`,`title`,`View Cart`,1,`view-cart-button`],[`width`,`32`,`height`,`32`,`src`,`https://img.icons8.com/material-sharp/48/shopping-cart.png`,`alt`,`shopping-cart`],[`type`,`button`,1,`cta-button`,3,`click`,`disabled`],[`name`,`unavailable`,`aria-hidden`,`true`],[`name`,`add`,`aria-hidden`,`true`]],template:function(e,i){if(e&1&&(nc(0),Xa(1,`div`,0),Cf(2,`img`,1),Xa(3,`div`,2)(4,`div`,3),gv(5),ec(),Xa(6,`div`,4),Xf(7),Cf(8,`span`,5),bv(9,`cooeeCurrency`),bv(10,`safeHtml`),TD(11,sn$1,3,5,`span`,6),ec(),Xa(12,`a`,7),Nf(`click`,function(a){return a.stopPropagation()}),gv(13,` Shop now `),ec(),Xf(14),TD(15,ln$1,2,1,`span`,8),ec(),Xa(16,`button`,9),Cf(17,`cooee-icon`,10),ec()(),Xa(18,`div`,11),TD(19,un$1,3,2,`button`,12),Xa(20,`a`,13),Cf(21,`img`,14),ec()(),Yo()),e&2){let o=i.item().selectedOrFirstVariant.value;fd(2),Ef(`alt`,Cv(i.item().name))(`src`,i.item().firstImageURL,nm),fd(3),ac(` `,i.item().name,` `),fd(2);let a=vv(o.price);fd(),Ef(`innerHTML`,Av(10,14,Av(9,12,a.d)),tm),fd(3),SD(a.cmp?11:-1),fd(),Ef(`href`,`/products/`+i.item().slug,nm),fd(2);let l=vv(i.getDiscountPercentage(o.price));fd(),SD(l>0?15:-1),fd(),Df(`aria-label`,Iv(`View product details for `,i.item().name)),fd(3),SD(i.item().showAddToCartButton?19:-1);}},dependencies:[ye$1,ce,a],styles:[`[_nghost-%COMP%]{max-width:100%;position:relative;display:flex;flex-direction:column;gap:8px;padding:8px}.card-body[_ngcontent-%COMP%]{display:flex;gap:8px;width:100%;align-items:flex-start}.item-image[_ngcontent-%COMP%]{width:70px;height:70px;object-fit:cover;box-sizing:border-box;border-radius:var(--lc-media-radius)}.item-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:3.5px;font-size:10.5px;margin-right:20px}.item-name[_ngcontent-%COMP%]{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.card-footer[_ngcontent-%COMP%]{display:flex;gap:6px;align-items:center}.cta-button[_ngcontent-%COMP%]{padding:10px;border:none;width:100%;text-align:center}.shop-now-button[_ngcontent-%COMP%], .item-discount-percentage[_ngcontent-%COMP%]{display:none;background:rgb(var(--lc-primary-button-bg-color));color:rgb(var(--lc-primary-button-color));border-radius:var(--lc-button-radius);font-size:12px;width:fit-content;height:auto;text-align:center;z-index:4;padding:2px 8px;text-decoration:none}.item-detail-button[_ngcontent-%COMP%]{position:absolute;top:8px;right:8px;cursor:pointer}.item-detail-button[_ngcontent-%COMP%] cooee-icon[name=open][_ngcontent-%COMP%]{color:#000;width:20px;height:20px;transition-duration:.2s}.item-detail-button[_ngcontent-%COMP%] cooee-icon[name=open][_ngcontent-%COMP%]:hover{color:rgba(var(--lc-primary-color))}.view-cart-button[_ngcontent-%COMP%]{display:none}`]})};var pn$1=t=>({active:t}),mn$1=(t,n)=>n.mID;function fn$1(t,n){t&1&&wf(0);}function gn$1(t,n){t&1&&wf(0);}function hn$1(t,n){t&1&&wf(0);}function _n$1(t,n){if(t&1&&(Xa(0,`div`,11)(1,`div`,12),gv(2,`Shop Now`),ec(),pf(3,fn$1,1,0,`ng-container`,10),ec(),Xa(4,`div`,13),pf(5,gn$1,1,0,`ng-container`,10),Xa(6,`div`,14),pf(7,hn$1,1,0,`ng-container`,10),ec()()),t&2){VD(2);let e=zD(4),i=zD(6),o=zD(8);fd(3),Ef(`ngTemplateOutlet`,e),fd(2),Ef(`ngTemplateOutlet`,i),fd(2),Ef(`ngTemplateOutlet`,o);}}function vn$1(t,n){t&1&&wf(0);}function Cn$1(t,n){t&1&&wf(0);}function yn$1(t,n){t&1&&wf(0);}function bn$1(t,n){t&1&&wf(0);}function Dn$1(t,n){t&1&&wf(0);}function wn$1(t,n){if(t&1&&(Xa(0,`div`,15),Cf(1,`cooee-item-card`,16),pf(2,vn$1,1,0,`ng-container`,10),ec(),Xa(3,`div`,13)(4,`div`,17),pf(5,Cn$1,1,0,`ng-container`,10)(6,yn$1,1,0,`ng-container`,10)(7,bn$1,1,0,`ng-container`,10)(8,Dn$1,1,0,`ng-container`,10),ec()()),t&2){let e=VD(2),i=zD(4),o=zD(6),a=zD(10),l=zD(12),p=zD(14);fd(),Ef(`item`,e.item()),fd(),Ef(`ngTemplateOutlet`,i),fd(3),Ef(`ngTemplateOutlet`,p),fd(),Ef(`ngTemplateOutlet`,o),fd(),Ef(`ngTemplateOutlet`,l),fd(),Ef(`ngTemplateOutlet`,a);}}function xn$1(t,n){t&1&&wf(0);}function Vn$1(t,n){if(t&1&&(Xa(0,`div`,7),TD(1,_n$1,8,3)(2,wn$1,9,6),Xa(3,`div`,9),pf(4,xn$1,1,0,`ng-container`,10),ec()()),t&2){let e=VD(),i=zD(16),o=e.template()===e.ItemDetailTemplate.CLASSIC;fd(),SD(o?1:2),fd(3),Ef(`ngTemplateOutlet`,i);}}function Mn$1(t,n){t&1&&wf(0);}function In$1(t,n){t&1&&wf(0);}function En$1(t,n){t&1&&wf(0);}function Sn$1(t,n){t&1&&wf(0);}function An$1(t,n){if(t&1&&(Xa(0,`div`,8)(1,`div`,18),pf(2,Mn$1,1,0,`ng-container`,10),ec(),Xa(3,`div`,17),pf(4,In$1,1,0,`ng-container`,10)(5,En$1,1,0,`ng-container`,10)(6,Sn$1,1,0,`ng-container`,10),ec()()),t&2){VD();let e=zD(4),i=zD(6),o=zD(8),a=zD(16);fd(2),Ef(`ngTemplateOutlet`,i),fd(2),Ef(`ngTemplateOutlet`,e),fd(),Ef(`ngTemplateOutlet`,o),fd(),Ef(`ngTemplateOutlet`,a);}}function On$1(t,n){if(t&1){let e=FD();Xa(0,`button`,19),Nf(`click`,function(){gu(e);return mu(VD().close())}),Cf(1,`cooee-icon`,20),ec();}}function Tn$1(t,n){if(t&1&&Cf(0,`img`,22),t&2){let e=n.$implicit,i=VD(2);Ef(`src`,e.url,nm)(`alt`,e.alt??i.item().name);}}function Fn$1(t,n){if(t&1&&(Xa(0,`div`,21),ND(1,Tn$1,1,2,`img`,22,MD),ec()),t&2){let e=VD();fd(),AD(e.item().imgs);}}function kn$1(t,n){if(t&1&&(Cf(0,`span`,25),bv(1,`cooeeCurrency`),bv(2,`safeHtml`)),t&2){VD(2);Ef(`innerHTML`,Av(2,3,Av(1,1,Ev(2).d)),tm);}}function Pn$1(t,n){if(t&1&&(Cf(0,`span`,26),bv(1,`cooeeCurrency`),bv(2,`safeHtml`)),t&2){VD(2);Ef(`innerHTML`,Av(2,3,Av(1,1,Ev(2).cmp)),tm);}}function Nn$1(t,n){if(t&1&&(Xa(0,`div`,24),TD(1,kn$1,3,5,`span`,25),TD(2,Pn$1,3,5,`span`,26),ec()),t&2){VD();let e=Ev(2);fd(),SD(e.d?1:-1),fd(),SD(e.cmp?2:-1);}}function Rn$1(t,n){t&1&&wf(0);}function jn$1(t,n){t&1&&wf(0);}function Bn$1(t,n){t&1&&wf(0);}function Ln$1(t,n){if(t&1&&(Xa(0,`div`,23),gv(1),ec(),Xf(2),TD(3,Nn$1,3,2,`div`,24),pf(4,Rn$1,1,0,`ng-container`,10)(5,jn$1,1,0,`ng-container`,10)(6,Bn$1,1,0,`ng-container`,10)),t&2){let e=VD(),i=zD(10),o=zD(12),a=zD(14),l=Ev(0);fd(),Yf(e.item().name),fd();let p=vv(l.price);fd(),SD(p?3:-1),fd(),Ef(`ngTemplateOutlet`,o),fd(),Ef(`ngTemplateOutlet`,a),fd(),Ef(`ngTemplateOutlet`,i);}}function Hn$1(t,n){if(t&1&&(Xa(0,`div`,27),gv(1,`Description`),ec(),Cf(2,`div`,28),bv(3,`safeHtml`)),t&2){let e=VD(2);fd(2),Ef(`innerHTML`,Av(3,1,e.item().desc),tm);}}function Gn$1(t,n){if(t&1&&TD(0,Hn$1,4,3),t&2)SD(VD().item().desc?0:-1);}function Un$1(t,n){if(t&1){let e=FD();Xa(0,`a`,32),Nf(`click`,function(o){let a=gu(e).$implicit;return mu(VD(3).changeItem(o,a))}),Cf(1,`img`,22),ec();}if(t&2){let e=n.$implicit,i=VD(3);Ef(`ngClass`,Sv(3,pn$1,e.mID===i.item().mID+``)),fd(),Ef(`src`,e.firstImageURL,nm)(`alt`,i.item().name);}}function $n$1(t,n){if(t&1&&(Xa(0,`span`,29),gv(1,`Select product`),ec(),Xa(2,`div`,30),ND(3,Un$1,2,5,`a`,31,mn$1),ec()),t&2){let e=VD(2);fd(3),AD(e.similarItems());}}function zn$1(t,n){if(t&1&&TD(0,$n$1,5,0),t&2)SD(VD().similarItems().length>1?0:-1);}function Wn$1(t,n){if(t&1&&(Xa(0,`span`,33),gv(1,`Select variant`),ec(),Cf(2,`cooee-item-options-picker`,16)),t&2){let e=VD(2);fd(2),Ef(`item`,e.item());}}function qn$1(t,n){if(t&1&&TD(0,Wn$1,3,1),t&2)SD(VD().item().hasVariants()?0:-1);}function Kn$1(t,n){t&1&&(gv(0,` Add To Cart `),Cf(1,`cooee-icon`,42));}function Zn$1(t,n){t&1&&(gv(0,` Out of stock `),Cf(1,`cooee-icon`,43));}function Jn$1(t,n){if(t&1){let e=FD();Xa(0,`button`,41),Nf(`click`,function(){gu(e);return mu(VD(2).clickAddToCart())}),TD(1,Kn$1,2,0)(2,Zn$1,2,0),ec();}if(t&2){VD(2);let e=Ev(0);Ef(`disabled`,!e.isAvailable),fd(),SD(e.isAvailable?1:2);}}function Qn$1(t,n){if(t&1&&(Xa(0,`span`,40),gv(1),ec()),t&2){let e=VD(2);fd(),Yf(e.currentVideoCartItemsCount());}}function Xn$1(t,n){if(t&1){let e=FD();Xa(0,`div`,34),TD(1,Jn$1,3,2,`button`,35),Xa(2,`button`,36),Nf(`click`,function(){gu(e);return mu(VD().goToPDP())}),gv(3,` More Info `),Cf(4,`cooee-icon`,37),ec(),Xa(5,`button`,38),Nf(`click`,function(){gu(e);return mu(VD().openCart())}),Cf(6,`img`,39),TD(7,Qn$1,2,1,`span`,40),ec()();}if(t&2){let e=VD();fd(),SD(e.item().showAddToCartButton?1:-1),fd(6),SD(e.currentVideoCartItemsCount()?7:-1);}}var Nt=class t$1{closeClick=new ve$1;layout=aN(`SINGLE_PANE`);item=aN.required();similarItems=iN([]);template=iN(`CLASSIC`);cartItems=Lt$2([]);currentVideoCartItemsCount=Fv(()=>{let n=this.item(),e=this.cartItems();return !n||!e.length?0:e.filter(i=>i.mID===n.mID).reduce((i,o)=>i+o.quantity,0)});ItemDetailTemplate=ne$2;engagementService=g(N);destroyRef=g(ze);lastLayout=null;resizeObserver=new t(()=>{M$3()?(this.lastLayout===null&&(this.lastLayout=this.layout()),this.layout.set(`SINGLE_PANE`)):this.lastLayout!==null&&(this.layout.set(this.lastLayout),this.lastLayout=null);});ngOnInit(){this.subscribeToCartChanges();}ngOnDestroy(){this.resizeObserver.destroy();}close(){this.closeClick.emit();}clickAddToCart(){this.engagementService.executeCTA(he$3.ADD_TO_CART,{item:this.item()}),this.close();}openCart(){this.engagementService.executeCTA(he$3.OPEN_CART);}changeItem(n,e){n.stopPropagation(),n.preventDefault(),this.item.set(e);}goToPDP(){this.engagementService.executeCTA(he$3.GO_TO_PRODUCT,{item:this.item()});}isSinglePane(){return this.layout()!==`TWO_PANE`||M$3()}subscribeToCartChanges(){window.CooeeSDK.cartChange$.pipe(_e$3({cart:window.CooeeSDK.cart.getCooeeCart()}),Pt(this.destroyRef)).subscribe(n=>{this.cartItems.set(n.cart?.items??[]);});}static ɵfac=function(e){return new(e||t$1)};static ɵcmp=cf({type:t$1,selectors:[[`cooee-item-detail`]],hostAttrs:[1,`letscooee-widget`],inputs:{layout:[1,`layout`],item:[1,`item`],similarItems:[1,`similarItems`],template:[1,`template`]},outputs:{closeClick:`closeClick`,layout:`layoutChange`,item:`itemChange`},features:[np([N])],decls:17,vars:2,consts:[[`closeButtonTemplate`,``],[`imageStripTemplate`,``],[`bodyTemplate`,``],[`descriptionTemplate`,``],[`productSelectorTemplate`,``],[`variantSelectorTemplate`,``],[`footerButtonsTemplate`,``],[1,`lc-card-wrapper`,`card-wrapper`,`single-pane`],[1,`card-wrapper`,`two-pane`],[1,`lc-card-footer`,`card-footer`],[4,`ngTemplateOutlet`],[1,`lc-card-header`,`card-header`],[1,`lc-header`,`header`],[1,`card-content`],[1,`lc-inner-body`,`inner-body`],[1,`card-header`],[3,`item`],[1,`inner-body`],[1,`images-container`],[`type`,`button`,`aria-label`,`Close product details`,1,`lc-close-button`,`close-button`,3,`click`],[`name`,`close`,`aria-hidden`,`true`],[1,`image-strip`],[3,`src`,`alt`],[1,`lc-item-name`,`item-name`],[1,`lc-prices`,`prices`],[1,`lc-item-price`,`item-price`,3,`innerHTML`],[1,`lc-item-cmp-price`,`item-cmp-price`,3,`innerHTML`],[1,`lc-description-title`,`description-title`],[1,`lc-description`,`description`,3,`innerHTML`],[1,`lc-selected-product-title`,`selected-product-title`],[1,`lc-image-strip`,`image-strip`],[`href`,`#`,1,`product-selector`,3,`ngClass`],[`href`,`#`,1,`product-selector`,3,`click`,`ngClass`],[1,`selected-variant-title`],[1,`footer-buttons`],[`type`,`button`,1,`lc-cta-button`,`cta-button`,3,`disabled`],[`type`,`button`,1,`lc-more-info-button`,`more-info-button`,3,`click`],[`name`,`info`,`aria-hidden`,`true`,1,`more-info-icon`],[`type`,`button`,`aria-label`,`View cart`,`title`,`View Cart`,1,`view-cart-button`,3,`click`],[`width`,`32`,`height`,`32`,`src`,`https://img.icons8.com/material-sharp/48/shopping-cart.png`,`alt`,`shopping-cart`],[`aria-live`,`polite`,`aria-atomic`,`true`,1,`cart-icon-badge`],[`type`,`button`,1,`lc-cta-button`,`cta-button`,3,`click`,`disabled`],[`name`,`add`,`aria-hidden`,`true`,1,`add-to-cart-icon`],[`name`,`unavailable`,`aria-hidden`,`true`]],template:function(e,i){e&1&&(Xf(0),TD(1,Vn$1,5,2,`div`,7)(2,An$1,7,4,`div`,8),pf(3,On$1,2,0,`ng-template`,null,0,xv)(5,Fn$1,3,0,`ng-template`,null,1,xv)(7,Ln$1,7,6,`ng-template`,null,2,xv)(9,Gn$1,1,1,`ng-template`,null,3,xv)(11,zn$1,1,1,`ng-template`,null,4,xv)(13,qn$1,1,1,`ng-template`,null,5,xv)(15,Xn$1,8,2,`ng-template`,null,6,xv)),e&2&&(vv(i.item().selectedOrFirstVariant.value),fd(),SD(i.isSinglePane()?1:2));},dependencies:[AE,ke,ye$1,xE,de,a,ce],styles:[`[_nghost-%COMP%]{display:block;background:#fff}.card-wrapper[_ngcontent-%COMP%]{position:relative}.card-wrapper.single-pane[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%;overflow:auto}.card-wrapper.two-pane[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr}.card-header[_ngcontent-%COMP%]{display:var(--header-display, flex);flex-direction:row;justify-content:space-between;align-items:start;padding:8px 16px;border-bottom:1px solid var(--lc-color-gray-300)}.header[_ngcontent-%COMP%]{font-size:24px;font-weight:var(--lc-subheading-weight);color:rgba(var(--lc-subheading-color))}.close-button[_ngcontent-%COMP%]{background:transparent;border:none;width:36px;height:36px}.close-button[_ngcontent-%COMP%] cooee-icon[_ngcontent-%COMP%]{color:#000000b3}.two-pane[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%]{position:absolute;top:8px;right:4px}.card-content[_ngcontent-%COMP%]{flex:1;overflow-y:auto;overscroll-behavior:contain} cooee-item-card .item-info{margin-right:0!important} cooee-item-card .item-detail-button{display:none!important} cooee-item-card .card-footer{display:none!important}.inner-body[_ngcontent-%COMP%]{padding:16px;display:flex;flex-direction:column;gap:8px}.images-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:start}.image-strip[_ngcontent-%COMP%]{width:100%;display:flex;overflow-x:auto;gap:8px;flex-wrap:nowrap}.image-strip[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:auto;height:200px}.two-pane[_ngcontent-%COMP%] .image-strip[_ngcontent-%COMP%]{padding:16px}.product-selector[_ngcontent-%COMP%]{height:100px;flex-shrink:0;border-radius:var(--lc-media-radius);padding:2px}.product-selector.active[_ngcontent-%COMP%]{border:1px solid rgba(var(--lc-primary-color))}.product-selector[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-height:100%;border-radius:var(--lc-media-radius)}.description-title[_ngcontent-%COMP%], .selected-product-title[_ngcontent-%COMP%], .selected-variant-title[_ngcontent-%COMP%]{font-size:var(--lc-subheading-size);font-weight:var(--lc-subheading-weight);color:rgba(var(--lc-subheading-color));margin-top:8px;line-height:normal}.description[_ngcontent-%COMP%]{line-height:normal;color:#000;font-size:var(--lc-description-size);font-weight:var(--lc-description-weight)}.card-footer[_ngcontent-%COMP%]{padding:var(--lc-item-detail-footer-padding);background-color:rgba(var(--lc-item-detail-footer-bg-color));box-shadow:var(--lc-item-detail-footer-box-shadow)}.footer-buttons[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;gap:12px}.two-pane[_ngcontent-%COMP%] .footer-buttons[_ngcontent-%COMP%]{margin-top:16px}.cta-button[_ngcontent-%COMP%], .more-info-button[_ngcontent-%COMP%]{width:50%;padding:12px;display:flex;justify-content:center;align-items:center}.more-info-button[_ngcontent-%COMP%]{background-color:rgba(var(--lc-secondary-button-bg-color));color:rgba(var(--lc-secondary-button-color));font-weight:var(--lc-secondary-button-weight);text-transform:var(--lc-secondary-button-transform);border-radius:var(--lc-button-radius);font-size:var(--lc-button-size);font-family:var(--lc-button-family),serif;height:var(--lc-button-height);letter-spacing:var(--lc-button-letter-spacing);transition:filter .12s ease,background-color .2s ease,color .2s ease;border-width:1px;border-style:solid;border-color:rgba(var(--lc-secondary-button-border-color));display:flex;align-items:center;justify-content:center;gap:8px}.more-info-button[_ngcontent-%COMP%] cooee-icon[_ngcontent-%COMP%]{display:var(--lc-button-icon-display);width:var(--lc-button-icon-size, 20px)!important;height:var(--lc-button-icon-size, 20px)!important;color:inherit}.more-info-button[_ngcontent-%COMP%]:hover{filter:brightness(.95)}.more-info-button[_ngcontent-%COMP%]:active{filter:brightness(.9)}.more-info-button[_ngcontent-%COMP%]:focus-visible{outline:2px solid rgba(var(--lc-primary-color, 0, 0, 0));outline-offset:2px}.view-cart-button[_ngcontent-%COMP%]{position:relative}.view-cart-button[_ngcontent-%COMP%] .cart-icon-badge[_ngcontent-%COMP%]{position:absolute;top:-6px;right:-6px;background-color:rgba(var(--lc-primary-color));color:#fff;border-radius:50%;width:18px;height:18px;font-size:12px;display:flex;align-items:center;justify-content:center}`]})};var Yn$1=[[[`swiper-slides`]]],ei=[`swiper-slides`],ti=(t,n)=>({"--swiper-navigation-size":t,color:n}),ni=t=>({color:t,bottom:0,top:`unset`,position:`relative`});function ii(t,n){if(t&1&&(qo(0,`div`,2),tc(1,`span`),Zo(),qo(2,`div`,3),tc(3,`span`),Zo()),t&2){let e,i,o=VD(),a=((e=o.navigationConfig())==null?null:e.size)??50,l=((i=o.navigationConfig())==null||i.color==null?null:i.color.rgba)??`white`,p=Mv(4,ti,a+`px`,l);rv(p),fd(2),rv(p);}}function oi(t,n){if(t&1&&(qo(0,`div`,4),tc(1,`span`),Zo()),t&2){let e;rv(Sv(2,ni,((e=VD().paginationConfig())==null||e.color==null?null:e.color.rgba)??`white`));}}var Rt=class t$2{options=iN.required();navigationConfig=iN();paginationConfig=iN();slideChange=oN();elementRef=g(Se$1);swiperInstance;initToken=0;resizeDebouncer=new t(this.onResize.bind(this));constructor(){ws(()=>{this.options()&&this.reInitSwiper();});}get swiper(){return this.swiperInstance}ngOnDestroy(){this.resizeDebouncer?.destroy(),this.swiperInstance?.destroy?.(),this.swiperInstance=void 0;}async initSwiper(n=this.initToken){if(await Vi$1(),n!==this.initToken){Y$1.warn(`Swiper token not matching`);return}let e=this.elementRef.nativeElement,i={nextEl:e.querySelector(`.swiper-button-next`),prevEl:e.querySelector(`.swiper-button-prev`),enabled:this.navigationConfig()?.enabled},o=this.paginationConfig(),a={el:e.querySelector(`.swiper-pagination`),enabled:this.paginationConfig()?.enabled,type:this.paginationConfig()?.type,clickable:true,renderBullet:function(l,p){return `
18
18
  <span class="${p}"
19
19
  style="background-color: ${o?.color?.rgba};"></span>
20
20
  `},renderProgressbar:l=>`
@@ -22,24 +22,24 @@ var Ut=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};const
22
22
  style="background-color: ${o?.color?.rgba};">
23
23
  </span>
24
24
  `};this.swiperInstance=new window.CooeeSDK.Swiper(e,r({navigation:i,pagination:a},this.options())),this.swiperInstance.on(`slideChange`,l=>{this.slideChange.emit(l);});}onResize(){this.swiperInstance?(Y$1.verbose(`Updating swiper`),this.swiperInstance.update()):(Y$1.verbose(`Reinitialising swiper`),this.reInitSwiper());}reInitSwiper(){this.initToken++;let n=this.initToken;this.swiperInstance?.destroy?.(),this.swiperInstance=void 0,this.initSwiper(n);}static ɵfac=function(e){return new(e||t$2)};static ɵcmp=cf({type:t$2,selectors:[[`cooee-swiper`]],hostAttrs:[1,`swiper`],inputs:{options:[1,`options`],navigationConfig:[1,`navigationConfig`],paginationConfig:[1,`paginationConfig`]},outputs:{slideChange:`slideChange`},ngContentSelectors:ei,decls:4,vars:2,consts:[[1,`swiper-wrapper`],[1,`swiper-pagination`,3,`style`],[1,`swiper-button-prev`],[1,`swiper-button-next`],[1,`swiper-pagination`]],template:function(e,i){if(e&1&&(xf(Yn$1),qo(0,`div`,0),Of(1),Zo(),TD(2,ii,4,7),TD(3,oi,2,4,`div`,1)),e&2){let o,a;fd(2),SD((o=i.navigationConfig())!=null&&o.enabled?2:-1),fd(),SD((a=i.paginationConfig())!=null&&a.enabled?3:-1);}},styles:[`:host{display:block}.swiper-wrapper{scrollbar-width:none}.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-wrapper{display:flex}.swiper .swiper-button-prev,.swiper .swiper-button-next{background:rgba(var(--lc-icon-button-bg-color));width:var(--lc-icon-button-size);height:var(--lc-icon-button-size);border-radius:100%}.swiper .swiper-button-prev:after,.swiper .swiper-button-next:after{font-size:20px;color:rgba(var(--lc-icon-button-color))}
25
- `],encapsulation:2})};function ri(t,n){if(t&1&&(qo(0,`span`,1),gv(1),Zo()),t&2){VD();let e=Ev(0);fd(),Yf(e.heading);}}function ai(t,n){if(t&1&&(qo(0,`span`,2),gv(1),Zo()),t&2){VD();let e=Ev(0);fd(),Yf(e.subHeading);}}var jt=class t{card=iN.required();linkClicked=oN();linkAfterSanity(){return this.card()?.buttonLink?.startsWith(`https`)?this.card().buttonLink:null}clickLink(n){n.stopPropagation(),this.linkClicked.emit();}static ɵfac=function(e){return new(e||t)};static ɵcmp=cf({type:t,selectors:[[`cooee-video-card`]],inputs:{card:[1,`card`]},outputs:{linkClicked:`linkClicked`},decls:6,vars:6,consts:[[1,`video-card-details`],[1,`heading`],[1,`subheading`],[`rel`,`noopener noreferrer`,1,`cta-button`,3,`click`,`href`,`target`]],template:function(e,i){if(e&1&&(Xf(0),qo(1,`div`,0),TD(2,ri,2,1,`span`,1),TD(3,ai,2,1,`span`,2),qo(4,`a`,3),Af(`click`,function(a){return i.clickLink(a)}),gv(5),Zo()()),e&2){let o=vv(i.card());fd(2),SD(o!=null&&o.heading?2:-1),fd(),SD(o!=null&&o.subHeading?3:-1),fd(),Mf(`href`,i.linkAfterSanity(),nm)(`target`,o.newTab?`_blank`:`_self`),fd(),ac(` `,o==null?null:o.buttonTitle,` `);}},styles:[`[_nghost-%COMP%]{display:block}.video-card-details[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:3.75px;font-size:14px;line-height:normal}.video-card-details[_ngcontent-%COMP%] .cta-button[_ngcontent-%COMP%]{text-align:center;background-color:#fff;border-radius:var(--lc-button-radius);padding:7.5px 15px;font-weight:var(--lc-primary-button-weight);color:rgba(var(--lc-primary-button-bg-color));font-size:var(--lc-button-size);border-width:var(--lc-primary-button-border-width, 0);text-decoration:none}.video-card-details[_ngcontent-%COMP%] .heading[_ngcontent-%COMP%], .video-card-details[_ngcontent-%COMP%] .subheading[_ngcontent-%COMP%]{text-align:start;color:#000;font-weight:600;overflow:hidden}.video-card-details[_ngcontent-%COMP%] .heading[_ngcontent-%COMP%]{font-size:18px}.video-card-details[_ngcontent-%COMP%] .subheading[_ngcontent-%COMP%]{font-size:16px}`],changeDetection:0})};function si(t,n){t&1&&Cf(0,`cooee-icon`,1);}function li(t,n){t&1&&Cf(0,`cooee-icon`,2);}var Bt=class t{muted=aN.required();videoEl=iN.required();toggled=oN();constructor(){ws(()=>{this.videoEl().muted=this.muted(),this.muted()||this.videoEl().play();});}toggle(n){n.stopPropagation(),n.preventDefault(),this.muted.update(e=>!e),this.toggled.emit(this.muted());}static ɵfac=function(e){return new(e||t)};static ɵcmp=cf({type:t,selectors:[[`cooee-mute-toggle`]],inputs:{muted:[1,`muted`],videoEl:[1,`videoEl`]},outputs:{muted:`mutedChange`,toggled:`toggled`},decls:3,vars:5,consts:[[`type`,`button`,3,`click`],[`name`,`unmute`],[`name`,`mute`]],template:function(e,i){e&1&&(Xa(0,`button`,0),Nf(`click`,function(a){return i.toggle(a)}),TD(1,si,1,0,`cooee-icon`,1)(2,li,1,0,`cooee-icon`,2),ec()),e&2&&(sc(`unmute`,!i.muted()),vf(`aria-label`,i.muted()?`Unmute video`:`Mute video`)(`aria-pressed`,i.muted()),fd(),SD(i.muted()?1:2));},dependencies:[ye$1],styles:[`button[_ngcontent-%COMP%]{width:var(--lc-icon-button-size, 44px);height:var(--lc-icon-button-size, 44px);display:flex;justify-content:center;align-items:center;border:none;border-radius:100%;background:#00000080;background:color-mix(in oklab,#000 50%,transparent)}`]})};var ci=[`swiperContainer`],di=(t,n)=>n.id;function ui(t,n){if(t&1){let e=FD();Xa(0,`div`,3)(1,`cooee-item-card`,4),Nf(`buttonClick`,function(o){gu(e);return mu(VD().onButtonClick(o))})(`click`,function(){let o=gu(e).$implicit;return mu(VD().cardClick.emit(o))}),ec()();}if(t&2){let e=n.$implicit;fd(),Ef(`item`,e);}}var Lt=class t{items=iN.required();centeredSlides=iN(true);cardClick=oN();destroyRef=g(ze);elementRef=g(Se$1);engagementService=g(N);swiperContainerRef=sN.required(`swiperContainer`);swiperInstance;constructor(){ws(()=>{this.swiperContainerRef()&&this.initSwiper();}),this.destroyRef.onDestroy(()=>{this.swiperInstance?.destroy();});}ngOnInit(){Hi$1(this.elementRef.nativeElement.shadowRoot);}onButtonClick(n){let e=he$4.get().website?.canChangeVariantInCart;if(this.items()?.length>1||n.hasVariants()&&!e){this.cardClick.emit(n);return}this.engagementService.executeCTA(he$3.ADD_TO_CART,{item:n});}async initSwiper(){await Mi$1(),this.swiperInstance=new window.CooeeSDK.Swiper(this.swiperContainerRef().nativeElement,{direction:`horizontal`,effect:`slide`,slidesPerView:1.2,nested:true,centeredSlides:this.centeredSlides(),spaceBetween:12,mousewheel:{enabled:true,thresholdDelta:10,thresholdTime:200}});}static ɵfac=function(e){return new(e||t)};static ɵcmp=cf({type:t,selectors:[[`cooee-video-promoted-items`]],viewQuery:function(e,i){e&1&&Lf(i.swiperContainerRef,ci,5),e&2&&UD();},hostAttrs:[1,`letscooee-widget`],inputs:{items:[1,`items`],centeredSlides:[1,`centeredSlides`]},outputs:{cardClick:`cardClick`},features:[np([N])],decls:5,vars:0,consts:[[`swiperContainer`,``],[1,`swiper-container`],[1,`swiper-wrapper`],[1,`swiper-slide`],[`tabindex`,`0`,3,`buttonClick`,`click`,`item`]],template:function(e,i){e&1&&(Xa(0,`div`,1,0)(2,`div`,2),ND(3,ui,2,1,`div`,3,di),ec()()),e&2&&(fd(3),AD(i.items()));},dependencies:[de],styles:[`[_nghost-%COMP%]{display:block;width:100%}cooee-item-card[_ngcontent-%COMP%]{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background-color:rgba(var(--lc-card-bg-color));cursor:pointer;border-radius:var(--lc-card-radius)}`]})};
25
+ `],encapsulation:2})};function ri(t,n){if(t&1&&(qo(0,`span`,1),gv(1),Zo()),t&2){VD();let e=Ev(0);fd(),Yf(e.heading);}}function ai(t,n){if(t&1&&(qo(0,`span`,2),gv(1),Zo()),t&2){VD();let e=Ev(0);fd(),Yf(e.subHeading);}}var jt=class t{card=iN.required();linkClicked=oN();linkAfterSanity(){return this.card()?.buttonLink?.startsWith(`https`)?this.card().buttonLink:null}clickLink(n){n.stopPropagation(),this.linkClicked.emit();}static ɵfac=function(e){return new(e||t)};static ɵcmp=cf({type:t,selectors:[[`cooee-video-card`]],inputs:{card:[1,`card`]},outputs:{linkClicked:`linkClicked`},decls:6,vars:6,consts:[[1,`video-card-details`],[1,`heading`],[1,`subheading`],[`rel`,`noopener noreferrer`,1,`cta-button`,3,`click`,`href`,`target`]],template:function(e,i){if(e&1&&(Xf(0),qo(1,`div`,0),TD(2,ri,2,1,`span`,1),TD(3,ai,2,1,`span`,2),qo(4,`a`,3),Af(`click`,function(a){return i.clickLink(a)}),gv(5),Zo()()),e&2){let o=vv(i.card());fd(2),SD(o!=null&&o.heading?2:-1),fd(),SD(o!=null&&o.subHeading?3:-1),fd(),Mf(`href`,i.linkAfterSanity(),nm)(`target`,o.newTab?`_blank`:`_self`),fd(),ac(` `,o==null?null:o.buttonTitle,` `);}},styles:[`[_nghost-%COMP%]{display:block}.video-card-details[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:3.75px;font-size:14px;line-height:normal}.video-card-details[_ngcontent-%COMP%] .cta-button[_ngcontent-%COMP%]{text-align:center;background-color:#fff;border-radius:var(--lc-button-radius);padding:7.5px 15px;font-weight:var(--lc-primary-button-weight);color:rgba(var(--lc-primary-button-bg-color));font-size:var(--lc-button-size);border-width:var(--lc-primary-button-border-width, 0);text-decoration:none}.video-card-details[_ngcontent-%COMP%] .heading[_ngcontent-%COMP%], .video-card-details[_ngcontent-%COMP%] .subheading[_ngcontent-%COMP%]{text-align:start;color:#000;font-weight:600;overflow:hidden}.video-card-details[_ngcontent-%COMP%] .heading[_ngcontent-%COMP%]{font-size:18px}.video-card-details[_ngcontent-%COMP%] .subheading[_ngcontent-%COMP%]{font-size:16px}`],changeDetection:0})};function si(t,n){t&1&&Cf(0,`cooee-icon`,1);}function li(t,n){t&1&&Cf(0,`cooee-icon`,2);}var Bt=class t{muted=aN.required();videoEl=iN.required();toggled=oN();constructor(){ws(()=>{this.videoEl().muted=this.muted(),this.muted()||this.videoEl().play();});}toggle(n){n.stopPropagation(),n.preventDefault(),this.muted.update(e=>!e),this.toggled.emit(this.muted());}static ɵfac=function(e){return new(e||t)};static ɵcmp=cf({type:t,selectors:[[`cooee-mute-toggle`]],inputs:{muted:[1,`muted`],videoEl:[1,`videoEl`]},outputs:{muted:`mutedChange`,toggled:`toggled`},decls:3,vars:5,consts:[[`type`,`button`,3,`click`],[`name`,`unmute`],[`name`,`mute`]],template:function(e,i){e&1&&(Xa(0,`button`,0),Nf(`click`,function(a){return i.toggle(a)}),TD(1,si,1,0,`cooee-icon`,1)(2,li,1,0,`cooee-icon`,2),ec()),e&2&&(sc(`unmute`,!i.muted()),vf(`aria-label`,i.muted()?`Unmute video`:`Mute video`)(`aria-pressed`,i.muted()),fd(),SD(i.muted()?1:2));},dependencies:[ye$1],styles:[`button[_ngcontent-%COMP%]{width:var(--lc-icon-button-size, 44px);height:var(--lc-icon-button-size, 44px);display:flex;justify-content:center;align-items:center;border:none;border-radius:100%;background:#00000080;background:color-mix(in oklab,#000 50%,transparent)}`]})};var ci=[`swiperContainer`],di=(t,n)=>n.id;function ui(t,n){if(t&1){let e=FD();Xa(0,`div`,3)(1,`cooee-item-card`,4),Nf(`buttonClick`,function(o){gu(e);return mu(VD().onButtonClick(o))})(`click`,function(){let o=gu(e).$implicit;return mu(VD().cardClick.emit(o))}),ec()();}if(t&2){let e=n.$implicit;fd(),Ef(`item`,e);}}var Lt=class t{items=iN.required();centeredSlides=iN(true);cardClick=oN();destroyRef=g(ze);elementRef=g(Se$1);engagementService=g(N);swiperContainerRef=sN.required(`swiperContainer`);swiperInstance;constructor(){ws(()=>{this.swiperContainerRef()&&this.initSwiper();}),this.destroyRef.onDestroy(()=>{this.swiperInstance?.destroy();});}ngOnInit(){Hi$1(this.elementRef.nativeElement.shadowRoot);}onButtonClick(n){let e=he$4.get().website?.canChangeVariantInCart;if(this.items()?.length>1||n.hasVariants()&&!e){this.cardClick.emit(n);return}this.engagementService.executeCTA(he$3.ADD_TO_CART,{item:n});}async initSwiper(){await Vi$1(),this.swiperInstance=new window.CooeeSDK.Swiper(this.swiperContainerRef().nativeElement,{direction:`horizontal`,effect:`slide`,slidesPerView:1.2,nested:true,centeredSlides:this.centeredSlides(),spaceBetween:12,mousewheel:{enabled:true,thresholdDelta:10,thresholdTime:200}});}static ɵfac=function(e){return new(e||t)};static ɵcmp=cf({type:t,selectors:[[`cooee-video-promoted-items`]],viewQuery:function(e,i){e&1&&Lf(i.swiperContainerRef,ci,5),e&2&&UD();},hostAttrs:[1,`letscooee-widget`],inputs:{items:[1,`items`],centeredSlides:[1,`centeredSlides`]},outputs:{cardClick:`cardClick`},features:[np([N])],decls:5,vars:0,consts:[[`swiperContainer`,``],[1,`swiper-container`],[1,`swiper-wrapper`],[1,`swiper-slide`],[`tabindex`,`0`,3,`buttonClick`,`click`,`item`]],template:function(e,i){e&1&&(Xa(0,`div`,1,0)(2,`div`,2),ND(3,ui,2,1,`div`,3,di),ec()()),e&2&&(fd(3),AD(i.items()));},dependencies:[de],styles:[`[_nghost-%COMP%]{display:block;width:100%}cooee-item-card[_ngcontent-%COMP%]{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background-color:rgba(var(--lc-card-bg-color));cursor:pointer;border-radius:var(--lc-card-radius)}`]})};
26
26
 
27
27
  var rn={schedule(n,t){let e=setTimeout(n,t);return ()=>clearTimeout(e)}};function an(n){return n.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function sn(n){return !!n&&n.nodeType===Node.ELEMENT_NODE}var ut;function ln(n,t){if(!ut){let e=Element.prototype;ut=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;}return n.nodeType===Node.ELEMENT_NODE?ut.call(n,t):false}function cn(n){let t={};return n.forEach(({propName:e,templateName:i,transform:o})=>{t[an(i)]=[e,o];}),t}function dn(n,t){return t.get(zo).resolveComponentFactory(n).inputs}function pn(n,t){let e=n.childNodes,i=t.map(()=>[]),o=-1;t.some((a,l)=>a===`*`?(o=l,true):false);for(let a=0,l=e.length;a<l;++a){let p=e[a],f=mn(p,t,o);f!==-1&&i[f].push(p);}return i}function mn(n,t,e){let i=e;return sn(n)&&t.some((o,a)=>o!==`*`&&ln(n,o)?(i=a,true):false),i}var un=10,ft=class{componentFactory;inputMap=new Map;constructor(t,e){this.componentFactory=e.get(zo).resolveComponentFactory(t);for(let i of this.componentFactory.inputs)this.inputMap.set(i.propName,i.templateName);}create(t){return new gt(this.componentFactory,t,this.inputMap)}},gt=class{componentFactory;injector;inputMap;eventEmitters=new gr$1(1);events=this.eventEmitters.pipe(ii$2(t=>ve$2(...t)));componentRef=null;scheduledDestroyFn=null;initialInputValues=new Map;ngZone;elementZone;appRef;cdScheduler;constructor(t,e,i){this.componentFactory=t,this.injector=e,this.inputMap=i,this.ngZone=this.injector.get(X),this.appRef=this.injector.get(ht$1),this.cdScheduler=e.get(at),this.elementZone=typeof Zone>`u`?null:this.ngZone.run(()=>Zone.current);}connect(t){this.runInZone(()=>{if(this.scheduledDestroyFn!==null){this.scheduledDestroyFn(),this.scheduledDestroyFn=null;return}this.componentRef===null&&this.initializeComponent(t);});}disconnect(){this.runInZone(()=>{this.componentRef===null||this.scheduledDestroyFn!==null||(this.scheduledDestroyFn=rn.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null);},un));});}getInputValue(t){return this.runInZone(()=>this.componentRef===null?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,e){if(this.componentRef===null){this.initialInputValues.set(t,e);return}this.runInZone(()=>{this.componentRef.setInput(this.inputMap.get(t)??t,e),py(this.componentRef.hostView)&&(hy(this.componentRef.changeDetectorRef),this.cdScheduler.notify(6));});}initializeComponent(t){let e=Z.create({providers:[],parent:this.injector}),i=pn(t,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,i,t),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.appRef.attachView(this.componentRef.hostView),this.componentRef.hostView.detectChanges();}initializeInputs(){for(let[t,e]of this.initialInputValues)this.setInputValue(t,e);this.initialInputValues.clear();}initializeOutputs(t){let e=this.componentFactory.outputs.map(({propName:i,templateName:o})=>{let a=t.instance[i];return new m$1(l=>{let p=a.subscribe(f=>l.next({name:o,value:f}));return ()=>p.unsubscribe()})});this.eventEmitters.next(e);}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}},vt=class extends HTMLElement{ngElementEventsSubscription=null};function Ii(n,t){let e=dn(n,t.injector),i=t.strategyFactory||new ft(n,t.injector),o=cn(e);class a extends vt{injector;static observedAttributes=Object.keys(o);get ngElementStrategy(){if(!this._ngElementStrategy){let p=this._ngElementStrategy=i.create(this.injector||t.injector);e.forEach(({propName:f,transform:M})=>{if(!this.hasOwnProperty(f))return;let Z=this[f];delete this[f],p.setInputValue(f,Z,M);});}return this._ngElementStrategy}_ngElementStrategy;constructor(p){super(),this.injector=p;}attributeChangedCallback(p,f,M,Z){let[De,rt]=o[p];this.ngElementStrategy.setInputValue(De,M,rt);}connectedCallback(){let p=false;this.ngElementStrategy.events&&(this.subscribeToEvents(),p=true),this.ngElementStrategy.connect(this),p||this.subscribeToEvents();}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null);}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(p=>{let f=new CustomEvent(p.name,{detail:p.value});this.dispatchEvent(f);});}}return e.forEach(({propName:l,transform:p,isSignal:f})=>{Object.defineProperty(a.prototype,l,{get(){let M=this.ngElementStrategy.getInputValue(l);return f&&qa(M)?M():M},set(M){this.ngElementStrategy.setInputValue(l,M,p);},configurable:true,enumerable:true});}),a}var Pi={providers:[Ov()]};var ht=n=>({active:n});function fn(n,t){if(n&1&&(Xa(0,`span`,4),gv(1),ec()),n&2){let e=VD(2);fd(),Yf(e.collectionFilterConfig.subtitle);}}function gn(n,t){if(n&1&&(Xa(0,`div`,1)(1,`span`,3),gv(2),ec(),TD(3,fn,2,1,`span`,4),ec()),n&2){let e=VD();fd(2),Yf(e.collectionFilterConfig.title),fd(),SD(e.collectionFilterConfig.subtitle?3:-1);}}function vn(n,t){if(n&1&&(Xa(0,`span`,9),gv(1),ec()),n&2){let e=VD(2).$implicit;Ef(`ngClass`,Sv(2,ht,Ev(0))),fd(),ac(``,e.label,` `);}}function hn(n,t){if(n&1){let e=FD();Xa(0,`div`,7),Nf(`mousedown`,function(){gu(e);let o=VD().$implicit,a=Ev(0);return mu(VD(2).filterClick(o,a))}),Cf(1,`img`,8),TD(2,vn,2,4,`span`,9),ec();}if(n&2){let e=VD().$implicit,i=Ev(0);fd(),Ef(`src`,e.imageSrc,nm)(`ngClass`,Sv(3,ht,i)),fd(),SD(e.label?2:-1);}}function Cn(n,t){if(n&1){let e=FD();Xa(0,`button`,10),Nf(`click`,function(){gu(e);let o=VD().$implicit,a=Ev(0);return mu(VD(2).filterClick(o,a))}),gv(1),ec();}if(n&2){let e=VD().$implicit;Ef(`ngClass`,Sv(2,ht,Ev(0))),fd(),ac(``,e.label,` `);}}function yn(n,t){if(n&1&&(Xf(0),TD(1,hn,3,5,`div`,5)(2,Cn,2,4,`button`,6)),n&2){let e=t.$implicit,i=VD(2);vv(e.value===i.currentActiveParams()[e.key]),fd(),SD(i.collectionFilterConfig.template===i.CollectionFilterTemplate.IMAGE?1:i.collectionFilterConfig.template===i.CollectionFilterTemplate.BUTTON?2:-1);}}function _n(n,t){if(n&1&&ND(0,yn,3,2,null,null,bD),n&2)AD(VD().collectionFilterConfig.options);}var Qe=class n extends Fe{currentActiveParams=Lt$2({});collectionFilterConfig;CollectionFilterTemplate=Re$2;originalPushState;constructor(){super(),this.attachedURLStateChecker();}engagementTriggerReceived(t){this.collectionFilterConfig=t.content.collectionFilterConfig;}update(){}ngOnDestroy(){this.originalPushState&&(window.history.pushState=this.originalPushState);}filterClick(t,e=false){let i=new URL(window.location.href),o=e?`removed`:`applied`;if(e?i.searchParams.delete(t.key):i.searchParams.set(t.key,t.value),this.collectionFilterConfig.refreshPage){this.sendEvent(t,o),window.location.href=i.href;return}window.history.replaceState({path:i.href},``,i),this.sendEvent(t,o),this.checkAndUpdateParams();}sendEvent(t,e){let i=new Ir$1(`CE Trigger Clicked`,{filterApplication:e,filter:{key:t.key,value:t.value}},this.engagementTrigger);window.CooeeSDK.sendEvent(i);}attachedURLStateChecker(){this.checkAndUpdateParams(),this.originalPushState=window.history.pushState,window.history.pushState=new Proxy(window.history.pushState,{apply:(t,e,i)=>{t.apply(e,i),this.checkAndUpdateParams();}});}checkAndUpdateParams(){let t=new URL(window.location.href),e={};t.searchParams.forEach((i,o)=>{e[o]=i;}),this.currentActiveParams.set(e);}static ɵfac=function(e){return new(e||n)};static ɵcmp=cf({type:n,selectors:[[`cooee-collection-filter`]],features:[np(kt()),Wa],decls:4,vars:2,consts:[[1,`wrapper`],[1,`filter-title-container`],[1,`options-container`],[1,`filter-title`],[1,`filter-subtitle`],[1,`image-filter-wrapper`],[`type`,`button`,1,`filter-button`,3,`ngClass`],[1,`image-filter-wrapper`,3,`mousedown`],[`alt`,`collection filter image`,1,`filter-image`,3,`src`,`ngClass`],[1,`filter-label`,3,`ngClass`],[`type`,`button`,1,`filter-button`,3,`click`,`ngClass`]],template:function(e,i){e&1&&(Xa(0,`div`,0),TD(1,gn,4,2,`div`,1),Xa(2,`div`,2),TD(3,_n,2,0),ec()()),e&2&&(fd(),SD(i.collectionFilterConfig.title?1:-1),fd(2),SD(i.collectionFilterConfig.options.length?3:-1));},dependencies:[AE],styles:[`.wrapper{display:flex;flex-direction:column;gap:10px;padding:10px;justify-content:center;align-items:center}.filter-title-container{display:flex;flex-direction:column;gap:5px;align-items:center}.filter-title-container .filter-title{color:rgba(var(--lc-heading-color));font-family:var(--lc-heading-family),serif;font-weight:var(--lc-heading-weight);font-size:var(--lc-heading-size);transform:var(--lc-heading-transform);letter-spacing:var(--lc-heading-letter-spacing);text-align:var(--lc-heading-align)}.filter-title-container .filter-subtitle{color:rgba(var(--lc-subheading-color));font-weight:var(--lc-subheading-weight);font-size:var(--lc-subheading-size)}.options-container{display:flex;gap:35px;align-items:center;flex-wrap:wrap;justify-content:center}.options-container .image-filter-wrapper{display:flex;gap:10px;flex-direction:column;align-items:center;cursor:pointer}.options-container .image-filter-wrapper .filter-image{width:var(--lc-image-width, 80px);height:var(--lc-image-height, 80px);border-radius:40px}.options-container .image-filter-wrapper .filter-image.active{border:2px solid rgba(var(--lc-primary-color));padding:2px}.options-container .image-filter-wrapper .filter-label{font-size:var(--lc-text-size, 14px);color:rgba(var(--lc-text-color));font-weight:var(--lc-text-weight)}.options-container .image-filter-wrapper .filter-label.active{color:rgba(var(--lc-primary-color))}.options-container .filter-button{background-color:rgba(var(--lc-secondary-button-bg-color));font-size:var(--lc-button-size, 14px);color:rgba(var(--lc-secondary-button-color));border-color:rgba(var(--lc-secondary-button-border-color));font-weight:var(--lc-secondary-button-weight);border-radius:var(--lc-button-radius);font-family:var(--lc-button-family),serif;height:var(--lc-button-height, 36px);padding:0 16px}.options-container .filter-button:hover,.options-container .filter-button.active{background-color:rgba(var(--lc-primary-button-bg-color));color:rgba(var(--lc-primary-button-color));border-color:rgba(var(--lc-primary-button-border-color));font-weight:var(--lc-primary-button-weight)}
28
28
  `],encapsulation:3})};var We=class n{transform(t,e){return t?Fe$3(t,r({},e)):null}static ɵfac=function(e){return new(e||n)};static ɵpipe=Go({name:`cooeeDynamicVariables`,type:n,pure:true})};var Ct={};(function n(t,e,i,o){var a=!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL),l=typeof Path2D==`function`&&typeof DOMMatrix==`function`,p=(function(){if(!t.OffscreenCanvas)return false;var s=new OffscreenCanvas(1,1),r=s.getContext(`2d`);r.fillRect(0,0,1,1);var g=s.transferToImageBitmap();try{r.createPattern(g,`no-repeat`);}catch{return false}return true})();function f(){}function M(s){var r=e.exports.Promise,g=r!==void 0?r:t.Promise;return typeof g==`function`?new g(s):(s(f,f),null)}var Z=(function(s,r){return {transform:function(g){if(s)return g;if(r.has(g))return r.get(g);var h=new OffscreenCanvas(g.width,g.height);return h.getContext(`2d`).drawImage(g,0,0),r.set(g,h),h},clear:function(){r.clear();}}})(p,new Map),De=(function(){var s=Math.floor(16.666666666666668),r,g,h={},C=0;return typeof requestAnimationFrame==`function`&&typeof cancelAnimationFrame==`function`?(r=function(y){var _=Math.random();return h[_]=requestAnimationFrame(function v(x){C===x||C+s-1<x?(C=x,delete h[_],y()):h[_]=requestAnimationFrame(v);}),_},g=function(y){h[y]&&cancelAnimationFrame(h[y]);}):(r=function(y){return setTimeout(y,s)},g=function(y){return clearTimeout(y)}),{frame:r,cancel:g}})(),rt=(function(){var s,r,g={};function h(C){function y(_,v){C.postMessage({options:_||{},callback:v});}C.init=function(v){var x=v.transferControlToOffscreen();C.postMessage({canvas:x},[x]);},C.fire=function(v,x,D){if(r)return y(v,null),r;var O=Math.random().toString(36).slice(2);return r=M(function(F){function A(z){z.data.callback===O&&(delete g[O],C.removeEventListener(`message`,A),r=null,Z.clear(),D(),F());}C.addEventListener(`message`,A),y(v,O),g[O]=A.bind(null,{data:{callback:O}});}),r},C.reset=function(){C.postMessage({reset:true});for(var v in g)g[v](),delete g[v];};}return function(){if(s)return s;if(!i&&a){var C=[`var CONFETTI, SIZE = {}, module = {};`,`(`+n.toString()+`)(this, module, true, SIZE);`,`onmessage = function(msg) {`,` if (msg.data.options) {`,` CONFETTI(msg.data.options).then(function () {`,` if (msg.data.callback) {`,` postMessage({ callback: msg.data.callback });`,` }`,` });`,` } else if (msg.data.reset) {`,` CONFETTI && CONFETTI.reset();`,` } else if (msg.data.resize) {`,` SIZE.width = msg.data.resize.width;`,` SIZE.height = msg.data.resize.height;`,` } else if (msg.data.canvas) {`,` SIZE.width = msg.data.canvas.width;`,` SIZE.height = msg.data.canvas.height;`,` CONFETTI = module.exports.create(msg.data.canvas);`,` }`,`}`].join(`
29
- `);try{s=new Worker(URL.createObjectURL(new Blob([C])));}catch(y){return typeof console.warn==`function`&&console.warn(`🎊 Could not load worker`,y),null}h(s);}return s}})(),Mi={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:[`square`,`circle`],zIndex:100,colors:[`#26ccff`,`#a25afd`,`#ff5e7e`,`#88ff5a`,`#fcff42`,`#ffa62d`,`#ff36ff`],disableForReducedMotion:false,scalar:1};function Fi(s,r){return r?r(s):s}function Oi(s){return s!=null}function L(s,r,g){return Fi(s&&Oi(s[r])?s[r]:Mi[r],g)}function Ai(s){return s<0?0:Math.floor(s)}function Li(s,r){return Math.floor(Math.random()*(r-s))+s}function at(s){return parseInt(s,16)}function Ri(s){return s.map(Ni)}function Ni(s){var r=String(s).replace(/[^0-9a-f]/gi,``);return r.length<6&&(r=r[0]+r[0]+r[1]+r[1]+r[2]+r[2]),{r:at(r.substring(0,2)),g:at(r.substring(2,4)),b:at(r.substring(4,6))}}function Bi(s){var r=L(s,`origin`,Object);return r.x=L(r,`x`,Number),r.y=L(r,`y`,Number),r}function zi(s){s.width=document.documentElement.clientWidth,s.height=document.documentElement.clientHeight;}function Hi(s){var r=s.getBoundingClientRect();s.width=r.width,s.height=r.height;}function ji(s){var r=document.createElement(`canvas`);return r.style.position=`fixed`,r.style.top=`0px`,r.style.left=`0px`,r.style.pointerEvents=`none`,r.style.zIndex=s,r}function $i(s,r,g,h,C,y,_,v,x){s.save(),s.translate(r,g),s.rotate(y),s.scale(h,C),s.arc(0,0,1,_,v,x),s.restore();}function Ui(s){var r=s.angle*(Math.PI/180),g=s.spread*(Math.PI/180);return {x:s.x,y:s.y,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:s.startVelocity*.5+Math.random()*s.startVelocity,angle2D:-r+(.5*g-Math.random()*g),tiltAngle:(Math.random()*.5+.25)*Math.PI,color:s.color,shape:s.shape,tick:0,totalTicks:s.ticks,decay:s.decay,drift:s.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:s.gravity*3,ovalScalar:.6,scalar:s.scalar,flat:s.flat}}function Qi(s,r){r.x+=Math.cos(r.angle2D)*r.velocity+r.drift,r.y+=Math.sin(r.angle2D)*r.velocity+r.gravity,r.velocity*=r.decay,r.flat?(r.wobble=0,r.wobbleX=r.x+10*r.scalar,r.wobbleY=r.y+10*r.scalar,r.tiltSin=0,r.tiltCos=0,r.random=1):(r.wobble+=r.wobbleSpeed,r.wobbleX=r.x+10*r.scalar*Math.cos(r.wobble),r.wobbleY=r.y+10*r.scalar*Math.sin(r.wobble),r.tiltAngle+=.1,r.tiltSin=Math.sin(r.tiltAngle),r.tiltCos=Math.cos(r.tiltAngle),r.random=Math.random()+2);var g=r.tick++/r.totalTicks,h=r.x+r.random*r.tiltCos,C=r.y+r.random*r.tiltSin,y=r.wobbleX+r.random*r.tiltCos,_=r.wobbleY+r.random*r.tiltSin;if(s.fillStyle=`rgba(`+r.color.r+`, `+r.color.g+`, `+r.color.b+`, `+(1-g)+`)`,s.beginPath(),l&&r.shape.type===`path`&&typeof r.shape.path==`string`&&Array.isArray(r.shape.matrix))s.fill(Wi(r.shape.path,r.shape.matrix,r.x,r.y,Math.abs(y-h)*.1,Math.abs(_-C)*.1,Math.PI/10*r.wobble));else if(r.shape.type===`bitmap`){var v=Math.PI/10*r.wobble,x=Math.abs(y-h)*.1,D=Math.abs(_-C)*.1,O=r.shape.bitmap.width*r.scalar,F=r.shape.bitmap.height*r.scalar,A=new DOMMatrix([Math.cos(v)*x,Math.sin(v)*x,-Math.sin(v)*D,Math.cos(v)*D,r.x,r.y]);A.multiplySelf(new DOMMatrix(r.shape.matrix));var z=s.createPattern(Z.transform(r.shape.bitmap),`no-repeat`);z.setTransform(A),s.globalAlpha=1-g,s.fillStyle=z,s.fillRect(r.x-O/2,r.y-F/2,O,F),s.globalAlpha=1;}else if(r.shape===`circle`)s.ellipse?s.ellipse(r.x,r.y,Math.abs(y-h)*r.ovalScalar,Math.abs(_-C)*r.ovalScalar,Math.PI/10*r.wobble,0,2*Math.PI):$i(s,r.x,r.y,Math.abs(y-h)*r.ovalScalar,Math.abs(_-C)*r.ovalScalar,Math.PI/10*r.wobble,0,2*Math.PI);else if(r.shape===`star`)for(var b=Math.PI/2*3,G=4*r.scalar,ee=8*r.scalar,te=r.x,de=r.y,xe=5,ae=Math.PI/xe;xe--;)te=r.x+Math.cos(b)*ee,de=r.y+Math.sin(b)*ee,s.lineTo(te,de),b+=ae,te=r.x+Math.cos(b)*G,de=r.y+Math.sin(b)*G,s.lineTo(te,de),b+=ae;else s.moveTo(Math.floor(r.x),Math.floor(r.y)),s.lineTo(Math.floor(r.wobbleX),Math.floor(C)),s.lineTo(Math.floor(y),Math.floor(_)),s.lineTo(Math.floor(h),Math.floor(r.wobbleY));return s.closePath(),s.fill(),r.tick<r.totalTicks}function qi(s,r,g,h,C){var y=r.slice(),_=s.getContext(`2d`),v,x,D=M(function(O){function F(){v=x=null,_.clearRect(0,0,h.width,h.height),Z.clear(),C(),O();}function A(){i&&!(h.width===o.width&&h.height===o.height)&&(h.width=s.width=o.width,h.height=s.height=o.height),!h.width&&!h.height&&(g(s),h.width=s.width,h.height=s.height),_.clearRect(0,0,h.width,h.height),y=y.filter(function(z){return Qi(_,z)}),y.length?v=De.frame(A):F();}v=De.frame(A),x=F;});return {addFettis:function(O){return y=y.concat(O),D},canvas:s,promise:D,reset:function(){v&&De.cancel(v),x&&x();}}}function _t(s,r){var g=!s,h=!!L(r||{},`resize`),C=false,y=L(r,`disableForReducedMotion`,Boolean),v=a&&!!L(r||{},`useWorker`)?rt():null,x=g?zi:Hi,D=s&&v?!!s.__confetti_initialized:false,O=typeof matchMedia==`function`&&matchMedia(`(prefers-reduced-motion)`).matches,F;function A(b,G,ee){for(var te=L(b,`particleCount`,Ai),de=L(b,`angle`,Number),xe=L(b,`spread`,Number),ae=L(b,`startVelocity`,Number),Ki=L(b,`decay`,Number),Yi=L(b,`gravity`,Number),Ji=L(b,`drift`,Number),bt=L(b,`colors`,Ri),Xi=L(b,`ticks`,Number),wt=L(b,`shapes`),en=L(b,`scalar`),tn=!!L(b,`flat`),Vt=Bi(b),St=te,lt=[],nn=s.width*Vt.x,on=s.height*Vt.y;St--;)lt.push(Ui({x:nn,y:on,angle:de,spread:xe,startVelocity:ae,color:bt[St%bt.length],shape:wt[Li(0,wt.length)],ticks:Xi,decay:Ki,gravity:Yi,drift:Ji,scalar:en,flat:tn}));return F?F.addFettis(lt):(F=qi(s,lt,x,G,ee),F.promise)}function z(b){var G=y||L(b,`disableForReducedMotion`,Boolean),ee=L(b,`zIndex`,Number);if(G&&O)return M(function(ae){ae();});g&&F?s=F.canvas:g&&!s&&(s=ji(ee),document.body.appendChild(s)),h&&!D&&x(s);var te={width:s.width,height:s.height};v&&!D&&v.init(s),D=true,v&&(s.__confetti_initialized=true);function de(){if(v){var ae={getBoundingClientRect:function(){if(!g)return s.getBoundingClientRect()}};x(ae),v.postMessage({resize:{width:ae.width,height:ae.height}});return}te.width=te.height=null;}function xe(){F=null,h&&(C=false,t.removeEventListener(`resize`,de)),g&&s&&(document.body.contains(s)&&document.body.removeChild(s),s=null,D=false);}return h&&!C&&(C=true,t.addEventListener(`resize`,de,false)),v?v.fire(b,te,xe):A(b,te,xe)}return z.reset=function(){v&&v.reset(),F&&F.reset();},z}var st;function xt(){return st||(st=_t(null,{useWorker:true,resize:true})),st}function Wi(s,r,g,h,C,y,_){var v=new Path2D(s),x=new Path2D;x.addPath(v,new DOMMatrix(r));var D=new Path2D;return D.addPath(x,new DOMMatrix([Math.cos(_)*C,Math.sin(_)*C,-Math.sin(_)*y,Math.cos(_)*y,g,h])),D}function Zi(s){if(!l)throw new Error(`path confetti are not supported in this browser`);var r,g;typeof s==`string`?r=s:(r=s.path,g=s.matrix);var h=new Path2D(r),y=document.createElement(`canvas`).getContext(`2d`);if(!g){for(var _=1e3,v=_,x=_,D=0,O=0,F,A,z=0;z<_;z+=2)for(var b=0;b<_;b+=2)y.isPointInPath(h,z,b,`nonzero`)&&(v=Math.min(v,z),x=Math.min(x,b),D=Math.max(D,z),O=Math.max(O,b));F=D-v,A=O-x;var G=10,ee=Math.min(G/F,G/A);g=[ee,0,0,ee,-Math.round(F/2+v)*ee,-Math.round(A/2+x)*ee];}return {type:`path`,path:r,matrix:g}}function Gi(s){var r,g=1,h=`#000000`,C=`"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif`;typeof s==`string`?r=s:(r=s.text,g=`scalar`in s?s.scalar:g,C=`fontFamily`in s?s.fontFamily:C,h=`color`in s?s.color:h);var y=10*g,_=``+y+`px `+C,v=new OffscreenCanvas(y,y),x=v.getContext(`2d`);x.font=_;var D=x.measureText(r),O=Math.ceil(D.actualBoundingBoxRight+D.actualBoundingBoxLeft),F=Math.ceil(D.actualBoundingBoxAscent+D.actualBoundingBoxDescent),A=2,z=D.actualBoundingBoxLeft+A,b=D.actualBoundingBoxAscent+A;O+=A+A,F+=A+A,v=new OffscreenCanvas(O,F),x=v.getContext(`2d`),x.font=_,x.fillStyle=h,x.fillText(r,z,b);var G=1/g;return {type:`bitmap`,bitmap:v.transferToImageBitmap(),matrix:[G,0,0,G,-O*G/2,-F*G/2]}}e.exports=function(){return xt().apply(this,arguments)},e.exports.reset=function(){xt().reset();},e.exports.create=_t,e.exports.shapeFromPath=Zi,e.exports.shapeFromText=Gi;})((function(){return typeof window<`u`?window:typeof self<`u`?self:this||{}})(),Ct,false);var ki=Ct.exports;Ct.exports.create;var Ze=class{static DEFAULTS={scalar:1.4,zIndex:1e4,shapes:[`circle`,`circle`,`square`],colors:[`#f51c8f`,`#2179e2`,`#d52dc8`,`#01a9d9`,`#78ff44`,`#fdff6a`]};static async basic(){await this.fire({particleCount:100,spread:70,origin:{y:.6}});}static async leftRight(t=100){let e=[],i=Date.now()+2e3,o=()=>{e.push(this.fire({angle:60,spread:55,origin:{x:0}}),this.fire({angle:120,spread:55,origin:{x:1}})),Date.now()<i&&t>0&&(requestAnimationFrame(o),t--);};o(),await Promise.all(e);}static async realistic(){await Promise.all([this.realisticFire(.25,{spread:26,startVelocity:55}),this.realisticFire(.2,{spread:60}),this.realisticFire(.35,{spread:100,decay:.91,scalar:.8}),this.realisticFire(.1,{spread:120,startVelocity:25,decay:.92,scalar:1.2}),this.realisticFire(.1,{spread:120,startVelocity:45})]);}static async fire(t){Object.assign(t,this.DEFAULTS,t),t.particleCount=t.particleCount??this.DEFAULTS.colors.length,await ki(t);}static async realisticFire(t,e){await this.fire(Object.assign({},{origin:{y:.7}},e,{particleCount:Math.floor(200*t)}));}};var xn=(n,t)=>t.minValue;function bn(n,t){if(n&1&&(tc(0,`div`,7),bv(1,`safeHtml`)),n&2){let e=VD().$implicit;Mf(`innerHTML`,Av(1,1,e.minValue+` Products`),tm);}}function wn(n,t){if(n&1&&(tc(0,`div`,7),bv(1,`cooeeCurrency`),bv(2,`safeHtml`)),n&2){let e=VD().$implicit;Mf(`innerHTML`,Av(2,3,Av(1,1,e.minValue)),tm);}}function Vn(n,t){if(n&1&&(qo(0,`li`,6)(1,`div`),TD(2,bn,2,3,`div`,7)(3,wn,3,5,`div`,7),tc(4,`img`,8),qo(5,`div`,9),gv(6),Zo()()()),n&2){let e=t.$implicit,i=VD(2);ic(`left`,e.calculatedAlignment+`%`),fd(2),SD((i.progressBarConfig==null?null:i.progressBarConfig.rewardBasis)===i.RewardBasis.ITEM_COUNT?2:3),fd(2),Mf(`src`,i.getIconURL(e),nm),fd(2),Yf(e.label);}}function Sn(n,t){if(n&1&&(tc(0,`div`,0),bv(1,`cooeeDynamicVariables`),bv(2,`safeHtml`),qo(3,`div`,1)(4,`ul`,2)(5,`div`,3),tc(6,`div`,4),Zo(),ND(7,Vn,7,5,`li`,5,xn),Zo()()),n&2){let e=VD(),i=e.calculatedState();Mf(`innerHTML`,Av(2,6,Rv(1,3,i.nextMilestone?i.nextMilestone.reachingText:i.lastMilestone.reachedText,e.localDynamicVariables())),tm),fd(6),ic(`width`,i.cartValuePercentage+`%`),fd(),AD(i.milestones);}}var Ge=class n extends Fe{cart;localDynamicVariables=Lt$2({});calculatedState=Lt$2({});progressBarConfig;RewardBasis=Pe$2;constructor(){super();}engagementTriggerReceived(t){this.progressBarConfig=t.progressBarConfig;}ngOnInit(){super.ngOnInit(),this.calculateMilestonesSilently();}update(){this.calculateMilestonesSilently();}getIconURL(t){return (this.calculatedState().cartValuePercentage??0)>=t.calculatedAlignment&&t.images?.active?t.images.active:t.images?.base?t.images.base:t.rewardType===Ee$2.FREE_SHIPPING?`https://img.icons8.com/ios-filled/50/FFFFFF/free-shipping.png`:t.rewardType===Ee$2.DISCOUNT?`https://img.icons8.com/ios-glyphs/30/FFFFFF/sale-price-tag.png`:t.rewardType===Ee$2.FREE_AUTO_GIFT?`https://img.icons8.com/ios-filled/50/FFFFFF/gift--v1.png`:``}calculateMilestonesSilently(){this.calculateMilestones().catch(t=>Y$1.error(t));}async calculateMilestones(){let t=this.engagementTrigger,e=this.progressBarConfig;if(!e?.milestones?.length){Y$1.warn(`Milestones not available in progress bar config`,t);return}let i=await this.cart.getNormalisedCart(),o=e.milestones.at(-1),a=e?.reachedAmountOrCount??i.originalAmount,l=e.totalProgress??0;Y$1.verbose(`Cart value:`,a,`, percentage: ${l}%`),this.celebrate(t,a);let p={milestonesReady:true,cartValuePercentage:l,milestones:e.milestones},f=e.milestones.find(M=>!M.reached);if(f){let M=Pr$1(f.minValue-a);if(e.rewardBasis===`ITEM_COUNT`){let Z=f.minValue-a;M=`${Z} ${Z===1?`product`:`products`}`;}this.localDynamicVariables.set({amount_left:M}),p.nextMilestone=f,this.calculatedState.set(p);return}p.lastMilestone=o,this.calculatedState.set(p);}celebrate(t,e){let a=[...t.progressBarConfig.milestones].reverse().find(f=>f.minValue<e);if(!a)return;let l=`lc/en/${t.shortID}/${a.minValue}`;sessionStorage.getItem(l)||(sessionStorage.setItem(l,`1`),this.progressBarConfig?.noConfetti||Ze.realistic());}static ɵfac=function(e){return new(e||n)};static ɵcmp=cf({type:n,selectors:[[`cooee-progressbar`]],inputs:{cart:`cart`},features:[np(kt()),Wa],decls:1,vars:1,consts:[[1,`heading`,3,`innerHTML`],[1,`milestone-container`],[1,`milestone-list`],[1,`untracked-path`],[1,`tracked-path`],[1,`milestone-list-item`,3,`left`],[1,`milestone-list-item`],[1,`milestone-value`,3,`innerHTML`],[`width`,`20`,`height`,`20`,`alt`,`milestone icon`,1,`milestone-icon`,3,`src`],[1,`milestone-label`]],template:function(e,i){e&1&&TD(0,Sn,9,8),e&2&&SD(i.calculatedState().milestonesReady?0:-1);},dependencies:[We,a,ce],styles:[`:host{display:block;padding:10px;background:linear-gradient(0deg,rgba(var(--lc-primary-color),.1) 0%,transparent 100%)}.milestone-container{width:95%;margin:8px 0}.heading{font-weight:500;text-align:center;font-size:12px}.milestone-list{display:flex;align-items:center;position:relative;font-size:10px;font-weight:500}.untracked-path{width:100%;background-color:#e5e7eb;height:4px;position:absolute}.tracked-path{background-color:rgba(var(--lc-primary-color));height:100%;display:block;transition:width .5s ease-in-out}.milestone-list{padding:0;margin:0}.milestone-list-item{position:relative;display:flex;flex-direction:column;align-items:center;height:75px}.milestone-list-item>div{display:flex;flex-direction:column;align-items:center;justify-content:space-between;position:absolute;height:100%;width:100px}.milestone-icon{padding:5px;border-radius:1000px;background-color:rgba(var(--lc-primary-color))}
29
+ `);try{s=new Worker(URL.createObjectURL(new Blob([C])));}catch(y){return typeof console.warn==`function`&&console.warn(`🎊 Could not load worker`,y),null}h(s);}return s}})(),Mi={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:[`square`,`circle`],zIndex:100,colors:[`#26ccff`,`#a25afd`,`#ff5e7e`,`#88ff5a`,`#fcff42`,`#ffa62d`,`#ff36ff`],disableForReducedMotion:false,scalar:1};function Fi(s,r){return r?r(s):s}function Oi(s){return s!=null}function L(s,r,g){return Fi(s&&Oi(s[r])?s[r]:Mi[r],g)}function Ai(s){return s<0?0:Math.floor(s)}function Li(s,r){return Math.floor(Math.random()*(r-s))+s}function at(s){return parseInt(s,16)}function Ri(s){return s.map(Ni)}function Ni(s){var r=String(s).replace(/[^0-9a-f]/gi,``);return r.length<6&&(r=r[0]+r[0]+r[1]+r[1]+r[2]+r[2]),{r:at(r.substring(0,2)),g:at(r.substring(2,4)),b:at(r.substring(4,6))}}function Bi(s){var r=L(s,`origin`,Object);return r.x=L(r,`x`,Number),r.y=L(r,`y`,Number),r}function zi(s){s.width=document.documentElement.clientWidth,s.height=document.documentElement.clientHeight;}function Hi(s){var r=s.getBoundingClientRect();s.width=r.width,s.height=r.height;}function ji(s){var r=document.createElement(`canvas`);return r.style.position=`fixed`,r.style.top=`0px`,r.style.left=`0px`,r.style.pointerEvents=`none`,r.style.zIndex=s,r}function $i(s,r,g,h,C,y,_,v,x){s.save(),s.translate(r,g),s.rotate(y),s.scale(h,C),s.arc(0,0,1,_,v,x),s.restore();}function Ui(s){var r=s.angle*(Math.PI/180),g=s.spread*(Math.PI/180);return {x:s.x,y:s.y,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:s.startVelocity*.5+Math.random()*s.startVelocity,angle2D:-r+(.5*g-Math.random()*g),tiltAngle:(Math.random()*.5+.25)*Math.PI,color:s.color,shape:s.shape,tick:0,totalTicks:s.ticks,decay:s.decay,drift:s.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:s.gravity*3,ovalScalar:.6,scalar:s.scalar,flat:s.flat}}function Qi(s,r){r.x+=Math.cos(r.angle2D)*r.velocity+r.drift,r.y+=Math.sin(r.angle2D)*r.velocity+r.gravity,r.velocity*=r.decay,r.flat?(r.wobble=0,r.wobbleX=r.x+10*r.scalar,r.wobbleY=r.y+10*r.scalar,r.tiltSin=0,r.tiltCos=0,r.random=1):(r.wobble+=r.wobbleSpeed,r.wobbleX=r.x+10*r.scalar*Math.cos(r.wobble),r.wobbleY=r.y+10*r.scalar*Math.sin(r.wobble),r.tiltAngle+=.1,r.tiltSin=Math.sin(r.tiltAngle),r.tiltCos=Math.cos(r.tiltAngle),r.random=Math.random()+2);var g=r.tick++/r.totalTicks,h=r.x+r.random*r.tiltCos,C=r.y+r.random*r.tiltSin,y=r.wobbleX+r.random*r.tiltCos,_=r.wobbleY+r.random*r.tiltSin;if(s.fillStyle=`rgba(`+r.color.r+`, `+r.color.g+`, `+r.color.b+`, `+(1-g)+`)`,s.beginPath(),l&&r.shape.type===`path`&&typeof r.shape.path==`string`&&Array.isArray(r.shape.matrix))s.fill(Wi(r.shape.path,r.shape.matrix,r.x,r.y,Math.abs(y-h)*.1,Math.abs(_-C)*.1,Math.PI/10*r.wobble));else if(r.shape.type===`bitmap`){var v=Math.PI/10*r.wobble,x=Math.abs(y-h)*.1,D=Math.abs(_-C)*.1,O=r.shape.bitmap.width*r.scalar,F=r.shape.bitmap.height*r.scalar,A=new DOMMatrix([Math.cos(v)*x,Math.sin(v)*x,-Math.sin(v)*D,Math.cos(v)*D,r.x,r.y]);A.multiplySelf(new DOMMatrix(r.shape.matrix));var z=s.createPattern(Z.transform(r.shape.bitmap),`no-repeat`);z.setTransform(A),s.globalAlpha=1-g,s.fillStyle=z,s.fillRect(r.x-O/2,r.y-F/2,O,F),s.globalAlpha=1;}else if(r.shape===`circle`)s.ellipse?s.ellipse(r.x,r.y,Math.abs(y-h)*r.ovalScalar,Math.abs(_-C)*r.ovalScalar,Math.PI/10*r.wobble,0,2*Math.PI):$i(s,r.x,r.y,Math.abs(y-h)*r.ovalScalar,Math.abs(_-C)*r.ovalScalar,Math.PI/10*r.wobble,0,2*Math.PI);else if(r.shape===`star`)for(var b=Math.PI/2*3,G=4*r.scalar,ee=8*r.scalar,te=r.x,de=r.y,xe=5,re=Math.PI/xe;xe--;)te=r.x+Math.cos(b)*ee,de=r.y+Math.sin(b)*ee,s.lineTo(te,de),b+=re,te=r.x+Math.cos(b)*G,de=r.y+Math.sin(b)*G,s.lineTo(te,de),b+=re;else s.moveTo(Math.floor(r.x),Math.floor(r.y)),s.lineTo(Math.floor(r.wobbleX),Math.floor(C)),s.lineTo(Math.floor(y),Math.floor(_)),s.lineTo(Math.floor(h),Math.floor(r.wobbleY));return s.closePath(),s.fill(),r.tick<r.totalTicks}function qi(s,r,g,h,C){var y=r.slice(),_=s.getContext(`2d`),v,x,D=M(function(O){function F(){v=x=null,_.clearRect(0,0,h.width,h.height),Z.clear(),C(),O();}function A(){i&&!(h.width===o.width&&h.height===o.height)&&(h.width=s.width=o.width,h.height=s.height=o.height),!h.width&&!h.height&&(g(s),h.width=s.width,h.height=s.height),_.clearRect(0,0,h.width,h.height),y=y.filter(function(z){return Qi(_,z)}),y.length?v=De.frame(A):F();}v=De.frame(A),x=F;});return {addFettis:function(O){return y=y.concat(O),D},canvas:s,promise:D,reset:function(){v&&De.cancel(v),x&&x();}}}function _t(s,r){var g=!s,h=!!L(r||{},`resize`),C=false,y=L(r,`disableForReducedMotion`,Boolean),v=a&&!!L(r||{},`useWorker`)?rt():null,x=g?zi:Hi,D=s&&v?!!s.__confetti_initialized:false,O=typeof matchMedia==`function`&&matchMedia(`(prefers-reduced-motion)`).matches,F;function A(b,G,ee){for(var te=L(b,`particleCount`,Ai),de=L(b,`angle`,Number),xe=L(b,`spread`,Number),re=L(b,`startVelocity`,Number),Ki=L(b,`decay`,Number),Yi=L(b,`gravity`,Number),Ji=L(b,`drift`,Number),bt=L(b,`colors`,Ri),Xi=L(b,`ticks`,Number),wt=L(b,`shapes`),en=L(b,`scalar`),tn=!!L(b,`flat`),Vt=Bi(b),St=te,lt=[],nn=s.width*Vt.x,on=s.height*Vt.y;St--;)lt.push(Ui({x:nn,y:on,angle:de,spread:xe,startVelocity:re,color:bt[St%bt.length],shape:wt[Li(0,wt.length)],ticks:Xi,decay:Ki,gravity:Yi,drift:Ji,scalar:en,flat:tn}));return F?F.addFettis(lt):(F=qi(s,lt,x,G,ee),F.promise)}function z(b){var G=y||L(b,`disableForReducedMotion`,Boolean),ee=L(b,`zIndex`,Number);if(G&&O)return M(function(re){re();});g&&F?s=F.canvas:g&&!s&&(s=ji(ee),document.body.appendChild(s)),h&&!D&&x(s);var te={width:s.width,height:s.height};v&&!D&&v.init(s),D=true,v&&(s.__confetti_initialized=true);function de(){if(v){var re={getBoundingClientRect:function(){if(!g)return s.getBoundingClientRect()}};x(re),v.postMessage({resize:{width:re.width,height:re.height}});return}te.width=te.height=null;}function xe(){F=null,h&&(C=false,t.removeEventListener(`resize`,de)),g&&s&&(document.body.contains(s)&&document.body.removeChild(s),s=null,D=false);}return h&&!C&&(C=true,t.addEventListener(`resize`,de,false)),v?v.fire(b,te,xe):A(b,te,xe)}return z.reset=function(){v&&v.reset(),F&&F.reset();},z}var st;function xt(){return st||(st=_t(null,{useWorker:true,resize:true})),st}function Wi(s,r,g,h,C,y,_){var v=new Path2D(s),x=new Path2D;x.addPath(v,new DOMMatrix(r));var D=new Path2D;return D.addPath(x,new DOMMatrix([Math.cos(_)*C,Math.sin(_)*C,-Math.sin(_)*y,Math.cos(_)*y,g,h])),D}function Zi(s){if(!l)throw new Error(`path confetti are not supported in this browser`);var r,g;typeof s==`string`?r=s:(r=s.path,g=s.matrix);var h=new Path2D(r),y=document.createElement(`canvas`).getContext(`2d`);if(!g){for(var _=1e3,v=_,x=_,D=0,O=0,F,A,z=0;z<_;z+=2)for(var b=0;b<_;b+=2)y.isPointInPath(h,z,b,`nonzero`)&&(v=Math.min(v,z),x=Math.min(x,b),D=Math.max(D,z),O=Math.max(O,b));F=D-v,A=O-x;var G=10,ee=Math.min(G/F,G/A);g=[ee,0,0,ee,-Math.round(F/2+v)*ee,-Math.round(A/2+x)*ee];}return {type:`path`,path:r,matrix:g}}function Gi(s){var r,g=1,h=`#000000`,C=`"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif`;typeof s==`string`?r=s:(r=s.text,g=`scalar`in s?s.scalar:g,C=`fontFamily`in s?s.fontFamily:C,h=`color`in s?s.color:h);var y=10*g,_=``+y+`px `+C,v=new OffscreenCanvas(y,y),x=v.getContext(`2d`);x.font=_;var D=x.measureText(r),O=Math.ceil(D.actualBoundingBoxRight+D.actualBoundingBoxLeft),F=Math.ceil(D.actualBoundingBoxAscent+D.actualBoundingBoxDescent),A=2,z=D.actualBoundingBoxLeft+A,b=D.actualBoundingBoxAscent+A;O+=A+A,F+=A+A,v=new OffscreenCanvas(O,F),x=v.getContext(`2d`),x.font=_,x.fillStyle=h,x.fillText(r,z,b);var G=1/g;return {type:`bitmap`,bitmap:v.transferToImageBitmap(),matrix:[G,0,0,G,-O*G/2,-F*G/2]}}e.exports=function(){return xt().apply(this,arguments)},e.exports.reset=function(){xt().reset();},e.exports.create=_t,e.exports.shapeFromPath=Zi,e.exports.shapeFromText=Gi;})((function(){return typeof window<`u`?window:typeof self<`u`?self:this||{}})(),Ct,false);var ki=Ct.exports;Ct.exports.create;var Ze=class{static DEFAULTS={scalar:1.4,zIndex:1e4,shapes:[`circle`,`circle`,`square`],colors:[`#f51c8f`,`#2179e2`,`#d52dc8`,`#01a9d9`,`#78ff44`,`#fdff6a`]};static async basic(){await this.fire({particleCount:100,spread:70,origin:{y:.6}});}static async leftRight(t=100){let e=[],i=Date.now()+2e3,o=()=>{e.push(this.fire({angle:60,spread:55,origin:{x:0}}),this.fire({angle:120,spread:55,origin:{x:1}})),Date.now()<i&&t>0&&(requestAnimationFrame(o),t--);};o(),await Promise.all(e);}static async realistic(){await Promise.all([this.realisticFire(.25,{spread:26,startVelocity:55}),this.realisticFire(.2,{spread:60}),this.realisticFire(.35,{spread:100,decay:.91,scalar:.8}),this.realisticFire(.1,{spread:120,startVelocity:25,decay:.92,scalar:1.2}),this.realisticFire(.1,{spread:120,startVelocity:45})]);}static async fire(t){Object.assign(t,this.DEFAULTS,t),t.particleCount=t.particleCount??this.DEFAULTS.colors.length,await ki(t);}static async realisticFire(t,e){await this.fire(Object.assign({},{origin:{y:.7}},e,{particleCount:Math.floor(200*t)}));}};var xn=(n,t)=>t.minValue;function bn(n,t){if(n&1&&(tc(0,`div`,7),bv(1,`safeHtml`)),n&2){let e=VD().$implicit;Mf(`innerHTML`,Av(1,1,e.minValue+` Products`),tm);}}function wn(n,t){if(n&1&&(tc(0,`div`,7),bv(1,`cooeeCurrency`),bv(2,`safeHtml`)),n&2){let e=VD().$implicit;Mf(`innerHTML`,Av(2,3,Av(1,1,e.minValue)),tm);}}function Vn(n,t){if(n&1&&(qo(0,`li`,6)(1,`div`),TD(2,bn,2,3,`div`,7)(3,wn,3,5,`div`,7),tc(4,`img`,8),qo(5,`div`,9),gv(6),Zo()()()),n&2){let e=t.$implicit,i=VD(2);ic(`left`,e.calculatedAlignment+`%`),fd(2),SD((i.progressBarConfig==null?null:i.progressBarConfig.rewardBasis)===i.RewardBasis.ITEM_COUNT?2:3),fd(2),Mf(`src`,i.getIconURL(e),nm),fd(2),Yf(e.label);}}function Sn(n,t){if(n&1&&(tc(0,`div`,0),bv(1,`cooeeDynamicVariables`),bv(2,`safeHtml`),qo(3,`div`,1)(4,`ul`,2)(5,`div`,3),tc(6,`div`,4),Zo(),ND(7,Vn,7,5,`li`,5,xn),Zo()()),n&2){let e=VD(),i=e.calculatedState();Mf(`innerHTML`,Av(2,6,Rv(1,3,i.nextMilestone?i.nextMilestone.reachingText:i.lastMilestone.reachedText,e.localDynamicVariables())),tm),fd(6),ic(`width`,i.cartValuePercentage+`%`),fd(),AD(i.milestones);}}var Ge=class n extends Fe{cart;localDynamicVariables=Lt$2({});calculatedState=Lt$2({});progressBarConfig;RewardBasis=Pe$2;constructor(){super();}engagementTriggerReceived(t){this.progressBarConfig=t.progressBarConfig;}ngOnInit(){super.ngOnInit(),this.calculateMilestonesSilently();}update(){this.calculateMilestonesSilently();}getIconURL(t){return (this.calculatedState().cartValuePercentage??0)>=t.calculatedAlignment&&t.images?.active?t.images.active:t.images?.base?t.images.base:t.rewardType===Ee$2.FREE_SHIPPING?`https://img.icons8.com/ios-filled/50/FFFFFF/free-shipping.png`:t.rewardType===Ee$2.DISCOUNT?`https://img.icons8.com/ios-glyphs/30/FFFFFF/sale-price-tag.png`:t.rewardType===Ee$2.FREE_AUTO_GIFT?`https://img.icons8.com/ios-filled/50/FFFFFF/gift--v1.png`:``}calculateMilestonesSilently(){this.calculateMilestones().catch(t=>Y$1.error(t));}async calculateMilestones(){let t=this.engagementTrigger,e=this.progressBarConfig;if(!e?.milestones?.length){Y$1.warn(`Milestones not available in progress bar config`,t);return}let i=await this.cart.getNormalisedCart(),o=e.milestones.at(-1),a=e?.reachedAmountOrCount??i.originalAmount,l=e.totalProgress??0;Y$1.verbose(`Cart value:`,a,`, percentage: ${l}%`),this.celebrate(t,a);let p={milestonesReady:true,cartValuePercentage:l,milestones:e.milestones},f=e.milestones.find(M=>!M.reached);if(f){let M=Pr$1(f.minValue-a);if(e.rewardBasis===`ITEM_COUNT`){let Z=f.minValue-a;M=`${Z} ${Z===1?`product`:`products`}`;}this.localDynamicVariables.set({amount_left:M}),p.nextMilestone=f,this.calculatedState.set(p);return}p.lastMilestone=o,this.calculatedState.set(p);}celebrate(t,e){let a=[...t.progressBarConfig.milestones].reverse().find(f=>f.minValue<e);if(!a)return;let l=`lc/en/${t.shortID}/${a.minValue}`;sessionStorage.getItem(l)||(sessionStorage.setItem(l,`1`),this.progressBarConfig?.noConfetti||Ze.realistic());}static ɵfac=function(e){return new(e||n)};static ɵcmp=cf({type:n,selectors:[[`cooee-progressbar`]],inputs:{cart:`cart`},features:[np(kt()),Wa],decls:1,vars:1,consts:[[1,`heading`,3,`innerHTML`],[1,`milestone-container`],[1,`milestone-list`],[1,`untracked-path`],[1,`tracked-path`],[1,`milestone-list-item`,3,`left`],[1,`milestone-list-item`],[1,`milestone-value`,3,`innerHTML`],[`width`,`20`,`height`,`20`,`alt`,`milestone icon`,1,`milestone-icon`,3,`src`],[1,`milestone-label`]],template:function(e,i){e&1&&TD(0,Sn,9,8),e&2&&SD(i.calculatedState().milestonesReady?0:-1);},dependencies:[We,a,ce],styles:[`:host{display:block;padding:10px;background:linear-gradient(0deg,rgba(var(--lc-primary-color),.1) 0%,transparent 100%)}.milestone-container{width:95%;margin:8px 0}.heading{font-weight:500;text-align:center;font-size:12px}.milestone-list{display:flex;align-items:center;position:relative;font-size:10px;font-weight:500}.untracked-path{width:100%;background-color:#e5e7eb;height:4px;position:absolute}.tracked-path{background-color:rgba(var(--lc-primary-color));height:100%;display:block;transition:width .5s ease-in-out}.milestone-list{padding:0;margin:0}.milestone-list-item{position:relative;display:flex;flex-direction:column;align-items:center;height:75px}.milestone-list-item>div{display:flex;flex-direction:column;align-items:center;justify-content:space-between;position:absolute;height:100%;width:100px}.milestone-icon{padding:5px;border-radius:1000px;background-color:rgba(var(--lc-primary-color))}
30
30
  `],encapsulation:3})};var Tn=[`numberVariable`],Ke=class n extends Fe{numberSlot;savingsBarConfig;textParts=Lt$2({start:``,end:``});globalIntervals=[];constructor(){super();}ngAfterViewInit(){this.updateUIVars();}engagementTriggerReceived(t){this.savingsBarConfig=t.content.savingsBarConfig,this.elementRef.nativeElement.classList.add(`lc_`+t.entryAnimation?.toLowerCase()),this.savingsBarConfig.iconURL&&this.elementRef.nativeElement.style.setProperty(`--lc-discount-icon`,this.savingsBarConfig.iconURL);}update(){this.engagementTrigger?.content?.savingsBarConfig&&(this.savingsBarConfig=this.engagementTrigger.content.savingsBarConfig),this.savingsBarConfig&&this.updateUIVars();}updateUIVars(){let t=r(r({},this.engagementTrigger.getCartMagicVariables()),$n$3(`total_savings`,this.savingsBarConfig.totalSavings)),e=Fe$3(this.savingsBarConfig.text,{cart:t},this.triggerContext),i=e.match(/[\d.,]+/)?.[0];if(!i){Y$1.error(`No amount found in text`,e);return}let[o,a]=e.split(i);this.textParts.set({start:o,end:a}),this.savingsBarConfig.animateNumber?this.runAnimation(i):this.numberSlot.nativeElement.innerHTML=i;}runSlotMachineAnimation(t=`0`){let e=this.numberSlot.nativeElement;e.innerHTML=``;let i=this.savingsBarConfig.animationDuration/t.length;this.clearPreviousIntervals();for(let o=0;o<t.length;o++){let a=document.createElement(`div`);a.className=`digit`,a.style.display=`inline-block`,e.appendChild(a);let l=setInterval(()=>{a.innerHTML=`<div>${Math.floor(Math.random()*10)}</div>`;},50);this.globalIntervals.push(l),setTimeout(()=>{clearInterval(l);a.innerHTML=`${t?.[o]??Math.floor(Math.random()*10)}`;},(o+1)*i);}}clearPreviousIntervals(){this.globalIntervals.forEach(clearInterval),this.globalIntervals=[];}runIncrementalAnimation(t){let e=performance.now(),i=o=>{let a=Math.min((o-e)/this.savingsBarConfig.animationDuration,1);this.numberSlot.nativeElement.innerHTML=Math.floor(t*a).toString(),a<1&&requestAnimationFrame(i);};requestAnimationFrame(i);}runAnimation(t){this.savingsBarConfig.animation===`SLOT_MACHINE`?this.runSlotMachineAnimation(t):this.savingsBarConfig.animation===`INCREMENTAL`&&this.runIncrementalAnimation(Number(t));}static ɵfac=function(e){return new(e||n)};static ɵcmp=cf({type:n,selectors:[[`cooee-savings-bar`]],viewQuery:function(e,i){if(e&1&&oc(Tn,5),e&2){let o;kf(o=Ff())&&(i.numberSlot=o.first);}},features:[np(kt()),Wa],decls:6,vars:2,consts:[[`numberVariable`,``],[1,`container`],[1,`icon`],[1,`primary-text`,3,`innerHTML`],[1,`counter-text`],[1,`final-text`,3,`innerHTML`]],template:function(e,i){e&1&&(qo(0,`div`,1),tc(1,`div`,2)(2,`div`,3)(3,`div`,4,0)(5,`div`,5),Zo()),e&2&&(fd(2),Mf(`innerHTML`,i.textParts().start,tm),fd(3),Mf(`innerHTML`,i.textParts().end,tm));},styles:[`:host{display:block}.container{white-space:pre;display:flex;justify-content:center;align-items:center;background-color:rgba(var(--lc-primary-button-bg-color, 0 162 81));color:rgba(var(--lc-primary-button-color, 255 255 255));padding:8px;border-radius:4px 4px 0 0;overflow:hidden}.container .icon{background-image:var(--lc-discount-icon, url(https://img.icons8.com/ios-glyphs/30/FFFFFF/discount--v1.png));background-position:center;background-size:cover;height:20px;width:20px;margin-right:2px}
31
- `],encapsulation:3})};var Ye=class n extends Fe{item;data=g(Ye$1);dialogRef=g(W);ItemDetailLayout=Oe$1;constructor(){super(),this.triggerContext=this.data.triggerContext,this.item=this.data.item;}close(){this.dialogRef.close();}engagementTriggerReceived(t){}update(){}static ɵfac=function(e){return new(e||n)};static ɵcmp=cf({type:n,selectors:[[`cooee-item-quick-view`]],features:[np(kt()),Wa],decls:1,vars:2,consts:[[3,`closeClick`,`item`,`layout`]],template:function(e,i){e&1&&(Xa(0,`cooee-item-detail`,0),Nf(`closeClick`,function(){return i.close()}),ec()),e&2&&Ef(`item`,i.item)(`layout`,i.ItemDetailLayout.TWO_PANE);},dependencies:[Nt],styles:[`:host{display:flex;align-items:center;justify-content:center;height:100%}@media(min-width:768px){cooee-item-detail{max-width:900px;max-height:80vh;border-radius:var(--lc-card-radius)}}
31
+ `],encapsulation:3})};var Ye=class n extends Fe{item;data=g(Ye$1);dialogRef=g(W);ItemDetailLayout=Se$3;constructor(){super(),this.triggerContext=this.data.triggerContext,this.item=this.data.item;}close(){this.dialogRef.close();}engagementTriggerReceived(t){}update(){}static ɵfac=function(e){return new(e||n)};static ɵcmp=cf({type:n,selectors:[[`cooee-item-quick-view`]],features:[np(kt()),Wa],decls:1,vars:2,consts:[[3,`closeClick`,`item`,`layout`]],template:function(e,i){e&1&&(Xa(0,`cooee-item-detail`,0),Nf(`closeClick`,function(){return i.close()}),ec()),e&2&&Ef(`item`,i.item)(`layout`,i.ItemDetailLayout.TWO_PANE);},dependencies:[Nt],styles:[`:host{display:flex;align-items:center;justify-content:center;height:100%}@media(min-width:768px){cooee-item-detail{max-width:900px;max-height:80vh;border-radius:var(--lc-card-radius)}}
32
32
  `],encapsulation:3})};var Je=class n{dialog=g(Ro);dialogRef;constructor(){}showItemQuickView(t,e){this.dialogRef=this.dialog.open(Ye,{width:`100vw`,height:`100dvh`,backdropClass:[`letscooee-backdrop`],data:{item:e,triggerContext:t}});}static ɵfac=function(e){return new(e||n)};static ɵprov=C({token:n,factory:n.ɵfac,providedIn:`root`})};var Xe=(i=>(i.SINGLE_DROPDOWN=`SINGLE_DROPDOWN`,i.MULTIPLE_DROPDOWNS=`MULTIPLE_DROPDOWNS`,i.CHIPS=`CHIPS`,i))(Xe||{});var En=n=>({row:n}),yt=(n,t)=>t.id,In=(n,t)=>t.mID;function Pn(n,t){if(n&1&&(Xa(0,`option`,7),gv(1),ec()),n&2){let e=t.$implicit,i=t.$index,o=VD().$implicit,a=VD(2);Ef(`value`,i)(`selected`,a.selectedOptions()[o.name]===e.name)(`disabled`,!!e.disabled),fd(),ac(` `,e.name,` `);}}function kn(n,t){if(n&1){let e=FD();Xa(0,`select`,6,0),Nf(`change`,function(){let o=gu(e).$implicit,a=zD(1);return mu(VD(2).onDropdownChange(o,a.value))}),ND(2,Pn,2,4,`option`,7,bD),ec();}if(n&2){let e=t.$implicit;Ef(`name`,e.name),vf(`aria-label`,e.name),fd(2),AD(e.optionValues);}}function Dn(n,t){if(n&1&&(Xa(0,`div`,2),ND(1,kn,4,2,`select`,5,yt),ec()),n&2){let e=VD();Ef(`ngClass`,Sv(1,En,e.horizontal())),fd(),AD(e.options());}}function Mn(n,t){if(n&1&&(Xa(0,`option`,7),gv(1),ec()),n&2){let e=t.$implicit,i=VD(2);Ef(`value`,e.mID)(`selected`,i.item().selectedOrFirstVariant.value.mID===e.mID)(`disabled`,!e.isAvailable),fd(),ac(` `,e.name,` `);}}function Fn(n,t){if(n&1){let e=FD();Xa(0,`div`,3)(1,`select`,8,1),Nf(`change`,function(){gu(e);let o=zD(2);return mu(VD().onVariantChange(o.value))}),ND(3,Mn,2,4,`option`,7,In),ec()();}if(n&2){let e=VD();fd(),vf(`aria-label`,`Select variant`),fd(2),AD(e.item().vars);}}function On(n,t){if(n&1&&(Xa(0,`div`,11),gv(1),Xa(2,`span`,14),gv(3),ec()()),n&2){let e=VD().$implicit,i=VD(2);fd(),ac(` `,e.name),fd(2),ac(`: `,i.selectedOptions()[e.name]);}}function An(n,t){if(n&1&&(Xa(0,`span`,16),gv(1),ec()),n&2){VD();let e=Ev(0);fd(),Yf(e);}}function Ln(n,t){if(n&1){let e=FD();Xf(0),Xa(1,`button`,15),Nf(`click`,function(){let o=gu(e).$implicit,a=VD().$implicit;return mu(VD(2).onOptionSelect(a,o))}),TD(2,An,2,1,`span`,16),ec();}if(n&2){let e=t.$implicit,i=VD().$implicit,o=Ev(0),a=VD(2),l=e.name,p=vv(e.displayName||e.name),f=e.swatch,M=o?e.hexColor??l:``,Z=a.selectedOptions()[i.name]===l;fd(),sc(`option-value--swatch`,o)(`option-value--selected`,Z)(`option-value--disabled`,e.disabled),Ef(`title`,p)(`ngStyle`,a.getSwatchStyles(f,M)),vf(`aria-checked`,Z)(`aria-label`,p)(`aria-disabled`,e.disabled||null),fd(),SD(o?-1:2);}}function Rn(n,t){if(n&1&&(Xf(0),Xa(1,`div`,10),TD(2,On,4,2,`div`,11),Xa(3,`div`,12),ND(4,Ln,3,13,`button`,13,yt),ec()()),n&2){let e=t.$implicit,i=VD(2);vv(i.isColorSwatch(e)),fd(2),SD(i.hideOptionNames()?-1:2),fd(),vf(`aria-label`,e.name),fd(),AD(e.optionValues);}}function Nn(n,t){if(n&1&&(Xa(0,`div`,9),ND(1,Rn,6,3,`div`,10,yt),ec()),n&2){let e=VD();sc(`options-list--horizontal`,e.horizontal()),fd(),AD(e.options());}}var Ae=n=>n.trim().toLowerCase(),et=class n{item=iN.required();selectorType=iN();horizontal=iN(false);hideOptionNames=iN(false);variantSelected=oN();selectedOptions=Pv(()=>{let t=this.item(),e=t.vars.find(o=>o.isAvailable)??t.vars[0],i={};return t.options?.forEach(o=>{let a=e?.selectedOptions.find(l=>l.name===o.name)?.value;a&&(i[o.name]=a);}),i});availabilityIndex=Fv(()=>{let t=this.item(),e=new Map;return t?.vars?.length&&t.vars.forEach((i,o)=>{if(i.isAvailable)for(let a of i.selectedOptions){let l=Ae(a.name),p=e.get(l);p||e.set(l,p=new Map);let f=p.get(a.value);f||p.set(a.value,f=new Set),f.add(o);}}),e});options=Fv(()=>{let t=this.item();return !t.options||t.vars.length===1?[]:(t.options.forEach(e=>{e.optionValues.forEach(i=>{i.disabled=this.isOptionValueDisabledFast(e,i);});}),t.options)});matchedVariant=Fv(()=>{let t=this.item(),e=this.selectedOptions();return t.vars.find(i=>t.options.every(o=>{let a=i.selectedOptions.find(l=>l.name===o.name)?.value;return e[o.name]===a}))});constructor(){ws(()=>{let t=this.matchedVariant();t&&(this.item().setSelectedVariant(t),this.variantSelected.emit(t));}),ws(()=>{let t=this.item();if(!t.options)return;try{window.cooeeManipulateProduct&&window.cooeeManipulateProduct(t);}catch(a){Y$1.error(a);}let e=ke$2(),o=(e?.currentItem?.vID?this.item().vars.find(a=>a.mID===e.currentItem.vID):void 0)||t.vars.find(a=>a.isAvailable)||t.vars[0];o&&this.syncSelectedOptions(o);});}onPDPVariantChange(t){if(this.item()){this.item().setSelectedVariantByID(t.detail.variantID);let e=this.item().selectedOrFirstVariant.value;this.syncSelectedOptions(e);}}onOptionSelect(t,e){if(e.disabled)return;this.selectedOptions.set(s(r({},this.selectedOptions()),{[t.name]:e.name}));let i=this.matchedVariant();i&&(this.item().setSelectedVariant(i),this.notifyProductChange({product:this.item(),variant:i}));}onDropdownChange(t,e){let i=t.optionValues[Number(e)];i&&this.onOptionSelect(t,i);}isColorSwatch(t){return t.optionValues.some(e=>!!e.swatch||/#[a-f0-9]{6}\b/i.test(e.name))}getSwatchStyles(t,e){return !t&&e?{"--swatch-color":e}:t?.image?.url?{"background-image":`url("${t.image.url}")`}:t?.color?{"--swatch-color":t.color}:{}}showSingleDropdown(){return this.item().vars?.length<=1?false:!this.selectorType()||this.selectorType()===`SINGLE_DROPDOWN`}showMultipleDropdowns(){return this.item().vars?.length<=1?false:this.selectorType()===`MULTIPLE_DROPDOWNS`}showChips(){return this.item().vars?.length<=1?false:this.selectorType()===`CHIPS`}onVariantChange(t){let e=this.item().vars.find(i=>i.mID===t);e&&(this.item().setSelectedVariant(e),this.notifyProductChange({product:this.item(),variant:e}),this.variantSelected.emit(e));}notifyProductChange(t){document.dispatchEvent(new CustomEvent(`letscooee:outbound:variant-change`,{detail:t}));}syncSelectedOptions(t){let e={};t.selectedOptions.forEach(i=>{e[i.name]=i.value;}),this.selectedOptions.set(e);}getCandidateVariantsExcluding(t){let e=this.item(),i=this.availabilityIndex(),o=new Set;e.vars.forEach((l,p)=>{l.isAvailable&&o.add(p);});let a=o;for(let[l,p]of Object.entries(this.selectedOptions())){if(Ae(l)===Ae(t))continue;let f=i.get(Ae(l));if(!f)return new Set;let M=f.get(String(p));if(!M)return new Set;if(a=new Set([...a].filter(Z=>M.has(Z))),a.size===0)return a}return a}isOptionValueDisabledFast(t,e){let o=this.availabilityIndex().get(Ae(t.name));if(!o)return true;let a=e.name,l=o.get(a);if(!l||l.size===0)return true;let p=this.getCandidateVariantsExcluding(t.name);if(p.size===0)return true;for(let f of p)if(l.has(f))return false;return true}static ɵfac=function(e){return new(e||n)};static ɵcmp=cf({type:n,selectors:[[`cooee-product-variant-selector`]],hostBindings:function(e,i){e&1&&Nf(`letscooee:variant-change`,function(a){return i.onPDPVariantChange(a)},om);},inputs:{item:[1,`item`],selectorType:[1,`selectorType`],horizontal:[1,`horizontal`],hideOptionNames:[1,`hideOptionNames`]},outputs:{variantSelected:`variantSelected`},decls:3,vars:1,consts:[[`sel`,``],[`variantSelect`,``],[1,`dropdowns-wrapper`,3,`ngClass`],[1,`dropdown-wrapper`],[1,`options-list`,3,`options-list--horizontal`],[1,`option-selector`,3,`name`],[1,`option-selector`,3,`change`,`name`],[3,`value`,`selected`,`disabled`],[1,`option-selector`,3,`change`],[1,`options-list`],[1,`option-group`],[1,`option-label`],[`role`,`radiogroup`,1,`option-values`],[`type`,`button`,`role`,`radio`,1,`option-value`,3,`option-value--swatch`,`option-value--selected`,`option-value--disabled`,`title`,`ngStyle`],[1,`option-selected-name`],[`type`,`button`,`role`,`radio`,1,`option-value`,3,`click`,`title`,`ngStyle`],[1,`option-value__label`]],template:function(e,i){e&1&&TD(0,Dn,3,3,`div`,2)(1,Fn,5,1,`div`,3)(2,Nn,3,2,`div`,4),e&2&&SD(i.showMultipleDropdowns()?0:i.showSingleDropdown()?1:i.showChips()?2:-1);},dependencies:[AE,RE],styles:[`:host{display:block}.options-list{display:flex;flex-direction:column;gap:var(--lc-spacing-sm, 8px)}.options-list--horizontal{flex-direction:row;flex-wrap:wrap;align-items:flex-start}.option-group{display:flex;flex-direction:column;gap:var(--lc-spacing-xs, 4px)}.option-label{font-family:var(--lc-text-family, inherit);font-size:var(--lc-text-size, 14px);color:rgb(var(--lc-text-color, 0 0 0));line-height:1.4}.option-selected-name{font-weight:500}.option-values{display:flex;flex-wrap:wrap;gap:var(--lc-spacing-xs, 4px)}.option-value{display:inline-flex;align-items:center;justify-content:center;padding:4px var(--lc-spacing-sm, 8px);min-width:36px;min-height:32px;border:1px solid rgb(var(--lc-text-color, 0 0 0)/.2);border-radius:var(--lc-button-radius, 4px);background:transparent;color:rgb(var(--lc-text-color, 0 0 0));font-family:var(--lc-text-family, inherit);font-size:var(--lc-text-size, 14px);line-height:1;cursor:pointer;transition:background .15s,color .15s,border-color .15s}.option-value--selected{background:rgb(var(--lc-primary-color));color:rgb(var(--lc-primary-button-color, 255 255 255));border-color:rgb(var(--lc-primary-color))}.option-value--disabled{opacity:.4;cursor:not-allowed;pointer-events:none}.option-value--disabled .option-value__label{text-decoration:line-through}.option-value--swatch{width:var(--lc-swatch-size, 28px);height:var(--lc-swatch-size, 28px);min-width:unset;min-height:unset;padding:0;border-radius:var(--lc-swatch-radius, 50%);border:2px solid transparent;outline:2px solid transparent;outline-offset:0;background-color:var(--swatch-color, transparent);background-size:cover;background-position:center;transition:outline-color .15s,outline-offset .15s}.option-value--swatch.option-value--selected{border-color:rgb(var(--lc-card-bg-color, 255 255 255));outline-color:rgb(var(--lc-primary-color));outline-offset:2px}.option-value--swatch.option-value--disabled{position:relative;overflow:hidden}.option-value--swatch.option-value--disabled:after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom right,transparent calc(50% - .5px),rgba(0,0,0,.4) calc(50% - .5px) calc(50% + .5px),transparent calc(50% + .5px));border-radius:inherit}.dropdowns-wrapper,.dropdown-wrapper{display:flex;gap:8px;width:100%}.option-selector{width:100%;padding:8px 24px 8px 8px;border:1px solid black;border-radius:var(--lc-button-radius);font-size:var(--lc-text-size)}@media(min-width:768px){.option-selector:hover{border-color:rgba(var(--lc-primary-color))}}.option-selector:focus{outline:none}.option-selector{flex:0 0 130px}@media(max-width:768px){.option-selector{flex:1 1 0;min-width:0}}
33
- `],encapsulation:2})};var Bn=(n,t)=>({enter:n,exit:t}),zn=(n,t)=>t.id;function Hn(n,t){if(n&1&&(Xa(0,`div`,3),Cf(1,`img`,9),ec()),n&2){let e,i,o=VD();fd(),Ef(`src`,((e=o.selectedVariant())==null?null:e.getOneImage())||o.currentItem.firstImageURL,nm),vf(`alt`,((i=o.selectedVariant())==null?null:i.name)||o.currentItem.name||`Product image`);}}function jn(n,t){if(n&1&&(Xa(0,`div`,12),gv(1),ec(),Xa(2,`div`,13),gv(3),ec()),n&2){let e=VD(2);fd(),ac(` `,e.getCurrency(e.selectedVariant().price.cmp),` `),fd(2),ac(` `,e.getDiscountPercentage(e.selectedVariant().price),`% off `);}}function $n(n,t){if(n&1&&(Xa(0,`div`,11),gv(1),ec()),n&2){let e=VD(2);fd(),ac(` `,e.stickyATCConfig.leftText,` `);}}function Un(n,t){if(n&1&&(Xa(0,`div`,4)(1,`div`,10),gv(2),ec(),TD(3,jn,4,2),TD(4,$n,2,1,`div`,11),ec()),n&2){let e=VD();fd(2),ac(` `,e.getCurrency(e.selectedVariant().price.d),` `),fd(),SD(e.selectedVariant().price.cmp?3:-1),fd(),SD(e.stickyATCConfig.leftText?4:-1);}}function Qn(n,t){n&1&&wf(0);}function qn(n,t){if(n&1&&(Xa(0,`div`,14),gv(1),ec()),n&2){let e=t.$implicit,i=t.$index;VD(2);let o=Ev(7);Ef(`ngClass`,Mv(2,Bn,i===o.currentIndex,i===o.previousIndex)),fd(),ac(` `,e,` `);}}function Wn(n,t){if(n&1&&(Xa(0,`div`,8),ND(1,qn,2,5,`div`,14,bD),ec()),n&2){VD();let e=Ev(7);fd(),AD(e.features);}}function Zn(n,t){if(n&1&&Cf(0,`cooee-product-variant-selector`,15),n&2){let e=VD(2);Ef(`item`,e.currentItem)(`horizontal`,true)(`hideOptionNames`,true)(`selectorType`,e.stickyATCConfig.variantSelectorConfig==null?null:e.stickyATCConfig.variantSelectorConfig.type);}}function Gn(n,t){if(n&1&&(Xa(0,`option`,20),gv(1),ec()),n&2){let e,i=t.$implicit,o=VD(3);Ef(`value`,i.id)(`selected`,((e=o.selectedVariant())==null||e.selectedSellingPlan==null||e.selectedSellingPlan.value==null?null:e.selectedSellingPlan.value.id)===i.id),fd(),ac(` `,i.name,` `);}}function Kn(n,t){if(n&1){let e=FD();Xa(0,`div`,16)(1,`select`,18,1),Nf(`change`,function(){gu(e);let o=zD(2);return mu(VD(2).onSubscriptionChange(o.value))}),Xa(3,`option`,19),gv(4,`Select Subscription`),ec(),ND(5,Gn,2,3,`option`,20,zn),ec()();}if(n&2){let e=VD(2);fd(5),AD(e.selectedVariant().sellingPlans);}}function Yn(n,t){if(n&1){let e=FD();Xa(0,`div`,17)(1,`button`,21),Nf(`click`,function(){gu(e);return mu(VD(2).onQuantityDecrement())}),gv(2,`− `),ec(),Xa(3,`span`,22),gv(4),ec(),Xa(5,`button`,23),Nf(`click`,function(){gu(e);return mu(VD(2).onQuantityIncrement())}),gv(6,`+ `),ec()();}if(n&2){let e=VD(2);fd(4),Yf(e.selectedQuantity());}}function Jn(n,t){if(n&1&&(TD(0,Zn,1,4,`cooee-product-variant-selector`,15),TD(1,Kn,7,0,`div`,16),TD(2,Yn,7,1,`div`,17)),n&2){let e,i=VD();SD(i.currentItem.options.length&&i.stickyATCConfig.variantSelectorConfig!=null&&i.stickyATCConfig.variantSelectorConfig.show?0:-1),fd(),SD(!((e=i.selectedVariant())==null||e.sellingPlans==null)&&e.sellingPlans.length&&i.stickyATCConfig.showSubscriptionSelector?1:-1),fd(),SD(i.stickyATCConfig.showQuantitySelector?2:-1);}}var tt=class n extends Fe{currentItem;stickyATCConfig;selectedVariant=Lt$2(void 0);selectedQuantity=Lt$2(1);featureSlider=Lt$2({features:[],currentIndex:0});VariantSelectorType=Xe;constructor(){super();}onVariantChange(t){this.currentItem&&(this.currentItem.setSelectedVariantByID(t.detail.variantID),this.selectedVariant.set(this.currentItem.selectedOrFirstVariant.value));}engagementTriggerReceived(t){this.stickyATCConfig=t.stickyATCConfig??{},this.currentItem=t.items[0];let e=ke$2(),i=this.currentItem.vars.find(o=>o.mID===e.currentItem.vID);i&&this.currentItem.setSelectedVariantByID(i.mID),this.selectedVariant.set(this.currentItem.selectedOrFirstVariant.value),this.stickyATCConfig.leftText=this.replaceVariables(this.stickyATCConfig.leftText),this.stickyATCConfig.rightText=this.replaceVariables(this.stickyATCConfig.rightText),this.startFeatureRotation();}update(){}getCurrency(t){return Pr$1(t)}getDiscountPercentage(t){return ((t.cmp-t.d)/t.cmp*100).toFixed(0)}onSubscriptionChange(t){if(!t)return;let e=this.selectedVariant()?.sellingPlans?.find(i=>i.id===t);e&&(this.selectedVariant()?.changeSellingPlan(e),this.notifyProductChange({product:this.currentItem,sellingPlan:e}));}shouldShowImage(){return !!(this.stickyATCConfig.showImage&&(this.selectedVariant()?.getOneImage()||this.currentItem.firstImageURL))}onQuantityIncrement(){this.updateQuantity(this.selectedQuantity()+1);}onQuantityDecrement(){this.updateQuantity(Math.max(1,this.selectedQuantity()-1));}updateQuantity(t){this.selectedQuantity.set(t),this.notifyProductChange({product:this.currentItem,quantity:t});}addToCart(){this.engagementService.executeCTA(he$3.ADD_TO_CART,{item:this.currentItem});}notifyProductChange(t){document.dispatchEvent(new CustomEvent(`letscooee:outbound:variant-change`,{detail:t}));}startFeatureRotation(){if(!this.stickyATCConfig.rightText)return;let t=this.stickyATCConfig.rightText.split(`
34
- `),e=t.length===1?null:setInterval(()=>{this.featureSlider.update(i=>s(r({},i),{previousIndex:i.currentIndex,currentIndex:(i.currentIndex+1)%i.features.length}));},3e3);this.featureSlider.set({intervalRef:e,currentIndex:0,features:t});}replaceVariables(t){return t?Fe$3(t,this.currentItem.getTemplateVariables(),this.triggerContext):``}static ɵfac=function(e){return new(e||n)};static ɵcmp=cf({type:n,selectors:[[`cooee-sticky-atc`]],hostBindings:function(e,i){e&1&&Nf(`letscooee:variant-change`,function(a){return i.onVariantChange(a)},om);},features:[np(kt()),Wa],decls:11,vars:5,consts:[[`selectorsTemplate`,``],[`subscriptionSelect`,``],[1,`lc-wrapper`],[1,`image-wrapper`],[1,`lc-prices`],[4,`ngTemplateOutlet`],[1,`lc-button-wrapper`],[`type`,`button`,1,`lc-button`,`lc-button-atc`,3,`click`],[1,`lc-features`],[`loading`,`lazy`,3,`src`],[1,`lc-sale-price`],[1,`lc-additional-text`],[1,`lc-compare-price`],[1,`lc-discount-label`],[1,`lc-feature`,3,`ngClass`],[3,`item`,`horizontal`,`hideOptionNames`,`selectorType`],[1,`subscription-selector-wrapper`],[1,`quantity-selector`],[`aria-label`,`Subscription`,1,`subscription-selector`,3,`change`],[`value`,``],[3,`value`,`selected`],[`type`,`button`,`aria-label`,`Decrease quantity`,1,`qty-btn`,3,`click`],[1,`qty-value`],[`type`,`button`,`aria-label`,`Increase quantity`,1,`qty-btn`,3,`click`]],template:function(e,i){if(e&1&&(Xa(0,`div`,2),TD(1,Hn,2,2,`div`,3),TD(2,Un,5,3,`div`,4),pf(3,Qn,1,0,`ng-container`,5),Xa(4,`div`,6)(5,`button`,7),Nf(`click`,function(){return i.addToCart()}),gv(6,`Add To Cart`),ec(),Xf(7),TD(8,Wn,3,0,`div`,8),ec()(),pf(9,Jn,3,3,`ng-template`,null,0,xv)),e&2){let o=zD(10);fd(),SD(i.shouldShowImage()?1:-1),fd(),SD(i.selectedVariant()&&i.stickyATCConfig.showProductInfo?2:-1),fd(),Ef(`ngTemplateOutlet`,o),fd(4);let a=vv(i.featureSlider());fd(),SD(a.features.length?8:-1);}},dependencies:[AE,xE,et],styles:[`:host{display:flex;justify-content:center;padding:10px;background-color:#fff;width:100%;box-shadow:4px 0 10px #0006;line-height:normal}.lc-wrapper{display:flex;justify-content:space-between;align-items:center;gap:8px;max-width:1100px;width:100%;margin:0 auto}.lc-prices{flex:1 1 100%;display:flex;flex-wrap:wrap;align-items:center;gap:6px}@media(min-width:768px){.lc-prices{gap:8px}}.lc-sale-price{font-size:24px;font-weight:600}.lc-compare-price{font-size:18px;font-weight:600;color:red;text-decoration:line-through}.lc-discount-label{font-size:12px;font-weight:500;color:green}.lc-button-wrapper{flex:1 1 100%;display:flex;flex-direction:column;gap:4px;align-items:center}.lc-button{background-color:rgba(var(--lc-primary-button-bg-color));color:rgba(var(--lc-primary-button-color));font-weight:var(--lc-primary-button-weight);text-transform:var(--lc-primary-button-transform);border-radius:var(--lc-button-radius);font-size:var(--lc-button-size);font-family:var(--lc-button-family),serif;height:var(--lc-button-height);letter-spacing:var(--lc-button-letter-spacing);transition:filter .12s ease,background-color .2s ease,color .2s ease;border-width:1px;border-style:solid;border-color:rgba(var(--lc-primary-button-border-color));display:flex;align-items:center;justify-content:center;gap:8px}.lc-button cooee-icon{display:var(--lc-button-icon-display);width:var(--lc-button-icon-size, 20px)!important;height:var(--lc-button-icon-size, 20px)!important;color:inherit}.lc-button:hover{filter:brightness(.95)}.lc-button:active{filter:brightness(.9)}.lc-button:focus-visible{outline:2px solid rgba(var(--lc-primary-color, 0, 0, 0));outline-offset:2px}.lc-button{min-width:150px;width:100%;padding:8px}.lc-additional-text,.lc-feature{font-size:12px;color:#666}.lc-features{position:relative;overflow:hidden;height:16px;text-align:center;width:100%}.lc-features .lc-feature{position:absolute;width:100%;opacity:0;transform:translateY(100%);transition:transform .5s ease,opacity .5s ease}.lc-features .lc-feature.enter{opacity:1;transform:translateY(0);z-index:2}.lc-features .lc-feature.exit{opacity:0;transform:translateY(-100%);z-index:1}.image-wrapper{display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:70px;height:70px;border-radius:4px}.image-wrapper img{width:100%;height:100%;object-fit:cover;border-radius:4px}.selectors-wrapper{display:flex;gap:8px;flex:1 1 100%;min-width:0}cooee-product-variant-selector{flex:0 1 auto}@media(max-width:768px){cooee-product-variant-selector{flex:1 1 0}}.subscription-selector-wrapper{flex:0 0 130px;display:flex}@media(max-width:768px){.subscription-selector-wrapper{flex:1 1 auto;min-width:0}}.subscription-selector-wrapper .subscription-selector{width:100%;padding:8px 24px 8px 8px;border:1px solid black;border-radius:var(--lc-button-radius);font-size:var(--lc-text-size)}@media(min-width:768px){.subscription-selector-wrapper .subscription-selector:hover{border-color:rgba(var(--lc-primary-color))}}.subscription-selector-wrapper .subscription-selector:focus{outline:none}.quantity-selector{flex:0 0 auto;display:flex;align-items:stretch;border:1px solid black;border-radius:var(--lc-button-radius)}.quantity-selector .qty-btn{display:flex;align-items:center;justify-content:center;flex:0 0 28px;border:none;cursor:pointer;font-size:18px;font-weight:600;padding:4px;border-radius:var(--lc-button-radius)}.quantity-selector .qty-btn:active{background-color:#f0f0f0}@media(min-width:768px){.quantity-selector .qty-btn:hover{background-color:#f5f5f5}}.quantity-selector .qty-value{display:flex;place-content:center;justify-content:center;flex:0 0 28px;padding:8px 0;text-align:center;font-size:14px;font-weight:500}@media(max-width:768px){.lc-wrapper{flex-wrap:wrap;align-items:start}.lc-prices,.lc-button-wrapper{flex-basis:auto;flex-grow:1}cooee-product-variant-selector{order:1;flex-basis:100%}.quantity-selector{order:4}.lc-button-wrapper{order:5}}
35
- `],encapsulation:3})};var Xn=[`videoEl`];async function Di(){return (await import('./video-detail-dialog.component-D1zW_nKW-DIeMqE6a.js').then(function (n) { return n.v; })).VideoDetailDialogComponent}var ye=class n extends Fe{videoElements;videoEntries;videoConfig;dialogRef=null;dialog=g(Ro);isMobile=M$3();pausedVideos=[];videoLoadingStates=new Map;intersectionObserver;visibleVideos=new Set;constructor(){super(),Di();}ngAfterViewInit(){this.checkAndOpenVideoFromUrl();}ngOnDestroy(){super.ngOnDestroy(),this.intersectionObserver?.disconnect();}engagementTriggerReceived(t){this.videoConfig=t.content?.videoConfig,this.videoEntries=this.videoConfig.videoEntries;}onMuteToggled(t,e){t||this.videoElements.forEach(i=>{i.nativeElement!==e&&(i.nativeElement.muted=true,i.nativeElement.pause());});}sendTriggerClicked(t,e){this.sendEvent(`CE Trigger Clicked`,{},t,e);}async onVideoTap(t,e,i,o,a){t?.stopPropagation(),t?.preventDefault();let l=e.items?.[0];if(this.sendTriggerClicked(e,l),this.videoConfig.footerContent===`NONE`){o&&(o.muted=false,o.play(),this.onMuteToggled(false,o));return}await this.openDialog(e,i,a);}sendEvent(t,e,i,o){let a=new Ir$1(t,e,this.engagementTrigger);a.setVideos(i),o&&(a.items=[o.toEmbed()]),window.CooeeSDK.sendEvent(a);}onDialogClosed(){this.resumePlaylistVideos();}isVideoLoading(t){return this.videoLoadingStates.get(t)??true}onVideoLoadStart(t){this.videoLoadingStates.set(t,true);}onVideoCanPlay(t){this.videoLoadingStates.set(t,false);}playVideo(t){t.play().catch(e=>{Y$1.error(`Failed to play video:`,e);});}setupIntersectionObserver(t=.5,e=`50px`){this.intersectionObserver=new IntersectionObserver(i=>{i.forEach(o=>{let a=o.target,l=a.dataset.videoId;l&&(o.isIntersecting?(this.visibleVideos.add(l),this.handleVideoVisibilityChange(a,true)):(this.visibleVideos.delete(l),this.handleVideoVisibilityChange(a,false)));});},{threshold:t,rootMargin:e}),setTimeout(()=>{this.videoElements.forEach(i=>{this.intersectionObserver?.observe(i.nativeElement);});},100);}handleVideoVisibilityChange(t,e){e?this.onVideoBecameVisible(t):t.pause();}onVideoBecameVisible(t){this.playVideo(t);}pauseAllPlaylistVideos(){this.pausedVideos=[],this.videoElements.forEach(t=>{let e=t.nativeElement;e.paused||(this.pausedVideos.push(e),e.pause());});}resumePlaylistVideos(){this.pausedVideos.forEach(t=>{t.play().catch(()=>{});}),this.pausedVideos=[];}async checkAndOpenVideoFromUrl(){let t=We$3();if(!t||!this.videoEntries)return;let e=Je$2();if(e.utm_campaign?.toLowerCase()!==`shoppable_video`||e.utm_source?.toLowerCase()!==Ae$3)return;let i=this.videoEntries.findIndex(o=>o.video.shortID===+t);if(i!==-1){let o=this.videoEntries[i].video;await ce$3.set(`muted`,true),await this.openDialog(o,i);}}async openDialog(t,e,i){await Mi$1();let o={videoEntries:this.videoEntries,currentIndex:e,triggerContext:this.triggerContext,selectedItem:i};this.dialogRef&&this.dialogRef.close(),this.pauseAllPlaylistVideos();let a=await Di();this.dialogRef=this.dialog.open(a,{width:`100vw`,height:`100vh`,data:o,providers:Qt(this.triggerContext,{video:t,index:e}),disableClose:true});let l={videoID:t.id,videoIndex:e};this.sendEvent(`CE Video Dialog Opened`,{current:l},t),this.dialogRef.closed.subscribe(p=>{if(this.dialogRef=null,!p)return;let f=p.lastVideoDuration*1e3,M={videoID:p.lastVideo.id,videoIndex:p.lastVideoIndex,playedTillMS:f,playedTillPercent:f/p.lastVideo.durationMS};this.sendEvent(`CE Video Dialog Closed`,{current:M},p.lastVideo),this.onDialogClosed();});}static ɵfac=function(e){return new(e||n)};static ɵcmp=cf({type:n,selectors:[[`cooee-abstract-video`]],viewQuery:function(e,i){if(e&1&&oc(Xn,5),e&2){let o;kf(o=Ff())&&(i.videoElements=o);}},features:[Wa],decls:0,vars:0,template:function(e,i){},encapsulation:2})};var _e=class n{video=iN.required({alias:`cooeeVideoSources`});prioritySource=iN(`high`);elementRef=g(Se$1);constructor(){ws(()=>{this.updateSources();});}updateSources(){let t=this.elementRef.nativeElement,e=this.video(),i=this.prioritySource();t.querySelectorAll(`source`).forEach(a=>a.remove()),i===`best`?(this.addSource(e.bestSource),this.addSource(e.highSource),this.addSource(e.lowSource)):i===`low`?(this.addSource(e.lowSource),this.addSource(e.highSource),this.addSource(e.bestSource)):(this.addSource(e.highSource),this.addSource(e.bestSource),this.addSource(e.lowSource)),this.addSource(e.m3u8Source),t.load();}addSource(t){if(!t)return;let e=document.createElement(`source`);e.src=t.url,e.type=t.mimeType,this.elementRef.nativeElement.appendChild(e);}static ɵfac=function(e){return new(e||n)};static ɵdir=En$2({type:n,selectors:[[`video`,`cooeeVideoSources`,``]],inputs:{video:[1,`cooeeVideoSources`,`video`],prioritySource:[1,`prioritySource`]}})};var eo=(n,t)=>t.video.id;function to(n,t){if(n&1&&(Cf(0,`div`,1),bv(1,`safeHtml`)),n&2)Ef(`innerHTML`,Av(1,1,VD().videoConfig.heading),tm);}function io(n,t){n&1&&(Xa(0,`div`,6),Cf(1,`div`,12),ec());}function no(n,t){if(n&1){let e=FD();Xa(0,`cooee-mute-toggle`,13),Nf(`toggled`,function(o){gu(e),VD();let a=zD(7);return mu(VD().onMuteToggled(o,a))}),ec();}if(n&2){VD();let e=zD(7);Ef(`muted`,e.muted)(`videoEl`,e);}}function oo(n,t){if(n&1){let e=FD();Xa(0,`cooee-video-promoted-items`,16),Nf(`cardClick`,function(o){gu(e);let a=VD(2).$index,l=zD(7),p=Ev(0);return mu(VD().onItemCardClick(o,p,a,l))}),ec();}if(n&2){VD(2);Ef(`items`,Ev(0).items)(`centeredSlides`,false);}}function ro(n,t){if(n&1){let e=FD();Xa(0,`cooee-item-card`,17),Nf(`buttonClick`,function(){gu(e);let o=VD(2).$index,a=zD(7),l=Ev(0);return mu(VD().addToCartClicked(null,l,o,a))})(`click`,function(){gu(e);let o=VD(2).$index,a=zD(7),l=Ev(0),p=Ev(1);return mu(VD().onItemCardClick(p,l,o,a))}),ec();}if(n&2){VD(2);Ef(`item`,Ev(1));}}function ao(n,t){if(n&1&&TD(0,oo,1,2,`cooee-video-promoted-items`,14)(1,ro,1,1,`cooee-item-card`,15),n&2){VD();let e=Ev(0),i=VD();SD(Ev(2)===i.VideoConfigFooterContent.ITEM_SWIPER&&e.items.length>1?0:e.items.length?1:-1);}}function so(n,t){if(n&1){let e=FD();Xa(0,`cooee-video-card`,18),Nf(`linkClicked`,function(){gu(e),VD();let o=Ev(0);return mu(VD().sendTriggerClicked(o))}),ec();}if(n&2){VD();Ef(`card`,Ev(2));}}function lo(n,t){if(n&1){let e=FD();Xf(0)(1)(2),Xa(3,`div`,4)(4,`div`,5),Nf(`click`,function(o){let a=gu(e).$index,l=zD(7),p=Ev(0);return mu(VD().onVideoTap(o,p,a,l))})(`keydown.enter`,function(o){let a=gu(e).$index,l=zD(7),p=Ev(0);return mu(VD().onVideoTap(o,p,a,l))})(`keydown.space`,function(o){let a=gu(e).$index,l=zD(7),p=Ev(0);return mu(VD().onVideoTap(o,p,a,l))}),TD(5,io,2,0,`div`,6),Xa(6,`video`,7,0),Nf(`mouseenter`,function(){gu(e);let o=zD(7);VD();return mu(Ev(1)&&o.play())})(`mouseleave`,function(){gu(e);let o=zD(7);VD();return mu(Ev(1)&&o.pause())})(`loadstart`,function(){gu(e);let o=Ev(0);return mu(VD().onVideoLoadStart(o.id))})(`canplay`,function(){gu(e);let o=Ev(0);return mu(VD().onVideoCanPlay(o.id))}),ec(),Xa(8,`div`,8),TD(9,no,1,2,`cooee-mute-toggle`,9),ec()(),Xa(10,`div`,10),TD(11,ao,2,1)(12,so,1,1,`cooee-video-card`,11),ec()();}if(n&2){let e=t.$implicit,i=VD(),o=Ev(0),a=Ev(2),l=vv(e.video);fd(),vv(l.items[0]),fd();let f=vv(l.card)&&a===i.VideoConfigFooterContent.CARD;fd(2),ic(`background-image`,l.thumbnail?`url(`+l.thumbnail+`)`:null),fd(),SD(i.isVideoLoading(l.id)?5:-1),fd(),Ef(`cooeeVideoSources`,l)(`muted`,true),vf(`poster`,l.thumbnail)(`preload`,o?`metadata`:`none`)(`autoplay`,null)(`data-video-id`,l.id),fd(3),SD(i.videoConfig.showMuteButton?9:-1),fd(2),SD(i.videoConfig.showItems()?11:f?12:-1);}}var it=class n extends ye{VideoConfigFooterContent=se$2;VideoConfigAutoPlay=oe$2;swiperOptions=null;constructor(){super(),this.hasSwiper=true;}ngAfterViewInit(){super.ngAfterViewInit();let t=this.videoConfig.playlistConfig.videoSwiper,e=t?(this.isMobile?t.gapSm:t.gap)+`px`:window.cooeePlaylistGap??24,i=t?this.isMobile?t.maxInRowSm:t.maxInRow:`auto`;this.swiperOptions={direction:`horizontal`,effect:`slide`,loop:t?.loop,freeMode:true,spaceBetween:e,slidesPerView:i,mousewheel:{enabled:true,forceToAxis:true},autoplay:t?.autoplay?.enabled?{delay:t?.autoplay?.delay,disableOnInteraction:false}:false},this.setupIntersectionObserver(),this.playFirstVideo();}ngOnDestroy(){super.ngOnDestroy();}addToCartClicked(t,e,i,o){let a=e.items?.[0],l=he$4.get().website?.canChangeVariantInCart;if(e.items?.length>1||a?.hasVariants()&&!l){this.onItemCardClick(a,e,i,o);return}this.engagementService.executeCTA(he$3.ADD_TO_CART,{item:a,video:e});}goToPDP(t,e){t?.stopPropagation(),t?.preventDefault();let i=e.items?.[0];this.engagementService.executeCTA(he$3.GO_TO_PRODUCT,{item:i,video:e});}onItemCardClick(t,e,i,o){this.videoConfig.playlistConfig.itemCardClickBehavior===`OPEN_ITEM_DETAIL`?this.onVideoTap(null,e,i,o,t):this.onVideoTap(null,e,i,o);}update(){}onVideoCanPlay(t){if(super.onVideoCanPlay(t),!this.shouldAutoPlay()||this.dialogRef||!this.visibleVideos.has(t))return;let e=this.videoElements.find(i=>i.nativeElement.dataset.videoId===t)?.nativeElement;e&&this.playVideo(e);}onVideoBecameVisible(t){this.shouldAutoPlay()&&(this.dialogRef?this.pausedVideos.push(t):this.playVideo(t));}shouldAutoPlay(){return this.videoConfig.autoPlay===`ON`||this.videoConfig.autoPlay===`ON_HOVER`&&this.isMobile}playFirstVideo(){}static ɵfac=function(e){return new(e||n)};static ɵcmp=cf({type:n,selectors:[[`cooee-video-playlist`]],features:[np(kt()),Wa],decls:8,vars:7,consts:[[`videoEl`,``],[1,`heading-text`,3,`innerHTML`],[3,`options`,`navigationConfig`,`paginationConfig`],[`ngProjectAs`,`swiper-slides`,5,[`swiper-slides`]],[1,`swiper-slide`,`video-card`],[`role`,`button`,`tabindex`,`0`,`aria-label`,`Play video`,`aria-haspopup`,`dialog`,1,`video-wrapper`,3,`click`,`keydown.enter`,`keydown.space`],[1,`video-loading-overlay`],[`width`,`100%`,`playsinline`,``,`loop`,``,3,`mouseenter`,`mouseleave`,`loadstart`,`canplay`,`cooeeVideoSources`,`muted`],[1,`video-controls`],[3,`muted`,`videoEl`],[`role`,`region`,`aria-label`,`Video details`,1,`video-footer`],[3,`card`],[1,`loading-spinner`],[3,`toggled`,`muted`,`videoEl`],[3,`items`,`centeredSlides`],[`role`,`button`,`tabindex`,`0`,`aria-label`,`Product detail`,3,`item`],[3,`cardClick`,`items`,`centeredSlides`],[`role`,`button`,`tabindex`,`0`,`aria-label`,`Product detail`,3,`buttonClick`,`click`,`item`],[3,`linkClicked`,`card`]],template:function(e,i){if(e&1&&(Xf(0)(1)(2),TD(3,to,2,3,`div`,1),Xa(4,`cooee-swiper`,2),nc(5,3),ND(6,lo,13,14,`div`,4,eo),Yo(),ec()),e&2){vv(!i.videoConfig.autoPlay||i.videoConfig.autoPlay===i.VideoConfigAutoPlay.ON),fd(),vv(i.videoConfig.autoPlay===i.VideoConfigAutoPlay.ON_HOVER),fd(),vv(i.videoConfig.footerContent),fd(),SD(i.videoConfig.heading?3:-1);let o=i.videoConfig.playlistConfig.videoSwiper;fd(),Ef(`options`,i.swiperOptions)(`navigationConfig`,o==null?null:o.navigation)(`paginationConfig`,o==null?null:o.pagination),fd(2),AD(i.videoEntries);}},dependencies:[Bt,jt,Rt,de,_e,Lt,a],styles:[`:host{display:block}cooee-swiper.swiper{margin:8px;padding-top:25px;padding-bottom:25px}.video-wrapper{position:relative;cursor:pointer;outline:none;border-radius:var(--lc-media-radius, 8px);background-size:cover;background-position:center;background-repeat:no-repeat}.video-wrapper video{width:100%;height:var(--lc-video-card-height);object-fit:cover;border-radius:var(--lc-media-radius, 8px);position:relative}.video-card.swiper-slide{width:var(--lc-video-card-width);transition:transform .3s ease}.video-card.swiper-slide:hover{transform:scale(1.05)}@media(max-width:768px),(prefers-reduced-motion:reduce){.video-card.swiper-slide{transition:none}.video-card.swiper-slide:hover{transform:none}}.video-controls{position:absolute;bottom:8px;z-index:10;right:8px;display:flex;gap:8px}.video-footer{overflow-x:hidden}cooee-item-card{cursor:pointer;padding-left:0!important;padding-right:0!important}cooee-item-card .item-image{width:50px;height:50px;display:none}cooee-item-card .item-detail-button{display:none!important}cooee-item-card .item-info{font-size:14px;line-height:normal;margin-right:unset!important}cooee-item-card .item-info .item-name{-webkit-line-clamp:1;overflow:hidden}.video-loading-overlay{border-radius:var(--lc-media-radius, 8px)}
33
+ `],encapsulation:2})};var Bn=(n,t)=>({enter:n,exit:t}),zn=(n,t)=>t.id;function Hn(n,t){if(n&1&&(Xa(0,`div`,3),Cf(1,`img`,10),ec()),n&2){let e,i,o=VD();fd(),Ef(`src`,((e=o.selectedVariant())==null?null:e.getOneImage())||o.currentItem.firstImageURL,nm),vf(`alt`,((i=o.selectedVariant())==null?null:i.name)||o.currentItem.name||`Product image`);}}function jn(n,t){if(n&1&&(Xa(0,`div`,13),gv(1),ec(),Xa(2,`div`,14),gv(3),ec()),n&2){let e=VD(2);fd(),ac(` `,e.getCurrency(e.selectedVariant().price.cmp),` `),fd(2),ac(` `,e.getDiscountPercentage(e.selectedVariant().price),`% off `);}}function $n(n,t){if(n&1&&(Xa(0,`div`,12),gv(1),ec()),n&2){let e=VD(2);fd(),ac(` `,e.stickyATCConfig.leftText,` `);}}function Un(n,t){if(n&1&&(Xa(0,`div`,4)(1,`div`,11),gv(2),ec(),TD(3,jn,4,2),TD(4,$n,2,1,`div`,12),ec()),n&2){let e=VD();fd(2),ac(` `,e.getCurrency(e.selectedVariant().price.d),` `),fd(),SD(e.selectedVariant().price.cmp?3:-1),fd(),SD(e.stickyATCConfig.leftText?4:-1);}}function Qn(n,t){n&1&&wf(0);}function qn(n,t){if(n&1&&(Xa(0,`div`,15),gv(1),ec()),n&2){let e=t.$implicit,i=t.$index;VD(2);let o=Ev(9);Ef(`ngClass`,Mv(2,Bn,i===o.currentIndex,i===o.previousIndex)),fd(),ac(` `,e,` `);}}function Wn(n,t){if(n&1&&(Xa(0,`div`,9),ND(1,qn,2,5,`div`,15,bD),ec()),n&2){VD();let e=Ev(9);fd(),AD(e.features);}}function Zn(n,t){if(n&1&&Cf(0,`cooee-product-variant-selector`,16),n&2){let e=VD(2);Ef(`item`,e.currentItem)(`horizontal`,true)(`hideOptionNames`,true)(`selectorType`,e.stickyATCConfig.variantSelectorConfig==null?null:e.stickyATCConfig.variantSelectorConfig.type);}}function Gn(n,t){if(n&1&&(Xa(0,`option`,21),gv(1),ec()),n&2){let e,i=t.$implicit,o=VD(3);Ef(`value`,i.id)(`selected`,((e=o.selectedVariant())==null||e.selectedSellingPlan==null||e.selectedSellingPlan.value==null?null:e.selectedSellingPlan.value.id)===i.id),fd(),ac(` `,i.name,` `);}}function Kn(n,t){if(n&1){let e=FD();Xa(0,`div`,17)(1,`select`,19,1),Nf(`change`,function(){gu(e);let o=zD(2);return mu(VD(2).onSubscriptionChange(o.value))}),Xa(3,`option`,20),gv(4,`Select Subscription`),ec(),ND(5,Gn,2,3,`option`,21,zn),ec()();}if(n&2){let e=VD(2);fd(5),AD(e.selectedVariant().sellingPlans);}}function Yn(n,t){if(n&1){let e=FD();Xa(0,`div`,18)(1,`button`,22),Nf(`click`,function(){gu(e);return mu(VD(2).onQuantityDecrement())}),gv(2,`− `),ec(),Xa(3,`span`,23),gv(4),ec(),Xa(5,`button`,24),Nf(`click`,function(){gu(e);return mu(VD(2).onQuantityIncrement())}),gv(6,`+ `),ec()();}if(n&2){let e=VD(2);fd(4),Yf(e.currentItem.selectedQty.value);}}function Jn(n,t){if(n&1&&(TD(0,Zn,1,4,`cooee-product-variant-selector`,16),TD(1,Kn,7,0,`div`,17),TD(2,Yn,7,1,`div`,18)),n&2){let e,i=VD();SD(i.currentItem.options.length&&i.stickyATCConfig.variantSelectorConfig!=null&&i.stickyATCConfig.variantSelectorConfig.show?0:-1),fd(),SD(!((e=i.selectedVariant())==null||e.sellingPlans==null)&&e.sellingPlans.length&&i.stickyATCConfig.showSubscriptionSelector?1:-1),fd(),SD(i.stickyATCConfig.showQuantitySelector?2:-1);}}var tt=class n extends Fe{currentItem;stickyATCConfig;selectedVariant=Lt$2(void 0);featureSlider=Lt$2({features:[],currentIndex:0});VariantSelectorType=Xe;constructor(){super();}onVariantChange(t){this.currentItem&&(this.currentItem.setSelectedVariantByID(t.detail.variantID),this.selectedVariant.set(this.currentItem.selectedOrFirstVariant.value));}engagementTriggerReceived(t){this.stickyATCConfig=t.stickyATCConfig??{},this.currentItem=t.items[0];let e=ke$2(),i=this.currentItem.vars.find(o=>o.mID===e.currentItem.vID);i&&this.currentItem.setSelectedVariantByID(i.mID),this.selectedVariant.set(this.currentItem.selectedOrFirstVariant.value),this.stickyATCConfig.leftText=this.replaceVariables(this.stickyATCConfig.leftText),this.stickyATCConfig.rightText=this.replaceVariables(this.stickyATCConfig.rightText),this.startFeatureRotation();}update(){}getCurrency(t){return Pr$1(t)}getDiscountPercentage(t){return ((t.cmp-t.d)/t.cmp*100).toFixed(0)}onSubscriptionChange(t){if(!t)return;let e=this.selectedVariant()?.sellingPlans?.find(i=>i.id===t);e&&(this.selectedVariant()?.changeSellingPlan(e),this.notifyProductChange({product:this.currentItem,sellingPlan:e}));}shouldShowImage(){return !!(this.stickyATCConfig.showImage&&(this.selectedVariant()?.getOneImage()||this.currentItem.firstImageURL))}onQuantityIncrement(){this.updateQuantity(this.currentItem.selectedQty.value+1);}onQuantityDecrement(){this.updateQuantity(Math.max(1,this.currentItem.selectedQty.value-1));}updateQuantity(t){this.currentItem.selectedQuantity=t,this.notifyProductChange({product:this.currentItem,quantity:t});}addToCart(){this.engagementService.executeCTA(he$3.ADD_TO_CART,{item:this.currentItem});}notifyProductChange(t){document.dispatchEvent(new CustomEvent(`letscooee:outbound:variant-change`,{detail:t}));}startFeatureRotation(){if(!this.stickyATCConfig.rightText)return;let t=this.stickyATCConfig.rightText.split(`
34
+ `),e=t.length===1?null:setInterval(()=>{this.featureSlider.update(i=>s(r({},i),{previousIndex:i.currentIndex,currentIndex:(i.currentIndex+1)%i.features.length}));},3e3);this.featureSlider.set({intervalRef:e,currentIndex:0,features:t});}replaceVariables(t){return t?Fe$3(t,this.currentItem.getTemplateVariables(),this.triggerContext):``}static ɵfac=function(e){return new(e||n)};static ɵcmp=cf({type:n,selectors:[[`cooee-sticky-atc`]],hostBindings:function(e,i){e&1&&Nf(`letscooee:variant-change`,function(a){return i.onVariantChange(a)},om);},features:[np(kt()),Wa],decls:13,vars:6,consts:[[`selectorsTemplate`,``],[`subscriptionSelect`,``],[1,`lc-wrapper`],[1,`image-wrapper`],[1,`lc-prices`],[4,`ngTemplateOutlet`],[1,`lc-button-wrapper`],[`type`,`button`,1,`lc-button`,`lc-button-atc`,3,`click`],[1,`atc-sale-price`],[1,`lc-features`],[`loading`,`lazy`,3,`src`],[1,`lc-sale-price`],[1,`lc-additional-text`],[1,`lc-compare-price`],[1,`lc-discount-label`],[1,`lc-feature`,3,`ngClass`],[3,`item`,`horizontal`,`hideOptionNames`,`selectorType`],[1,`subscription-selector-wrapper`],[1,`quantity-selector`],[`aria-label`,`Subscription`,1,`subscription-selector`,3,`change`],[`value`,``],[3,`value`,`selected`],[`type`,`button`,`aria-label`,`Decrease quantity`,1,`qty-btn`,3,`click`],[1,`qty-value`],[`type`,`button`,`aria-label`,`Increase quantity`,1,`qty-btn`,3,`click`]],template:function(e,i){if(e&1&&(Xa(0,`div`,2),TD(1,Hn,2,2,`div`,3),TD(2,Un,5,3,`div`,4),pf(3,Qn,1,0,`ng-container`,5),Xa(4,`div`,6)(5,`button`,7),Nf(`click`,function(){return i.addToCart()}),gv(6,` Add To Cart `),Xa(7,`span`,8),gv(8),ec()(),Xf(9),TD(10,Wn,3,0,`div`,9),ec()(),pf(11,Jn,3,3,`ng-template`,null,0,xv)),e&2){let o=zD(12);fd(),SD(i.shouldShowImage()?1:-1),fd(),SD(i.selectedVariant()&&i.stickyATCConfig.showProductInfo?2:-1),fd(),Ef(`ngTemplateOutlet`,o),fd(5),ac(` `,i.getCurrency(i.selectedVariant().price.d*i.currentItem.selectedQty.value),` `),fd();let a=vv(i.featureSlider());fd(),SD(a.features.length?10:-1);}},dependencies:[AE,xE,et],styles:[`:host{display:flex;justify-content:center;padding:10px;background-color:#fff;width:100%;box-shadow:4px 0 10px #0006;line-height:normal}.lc-wrapper{display:flex;justify-content:space-between;align-items:center;gap:8px;max-width:1100px;width:100%;margin:0 auto}.lc-prices{flex:1 1 100%;display:flex;flex-wrap:wrap;align-items:center;gap:6px}@media(min-width:768px){.lc-prices{gap:8px}}.lc-sale-price{font-size:24px;font-weight:600}.lc-compare-price{font-size:18px;font-weight:600;color:red;text-decoration:line-through}.lc-discount-label{font-size:12px;font-weight:500;color:green}.lc-button-wrapper{flex:1 1 100%;display:flex;flex-direction:column;gap:4px;align-items:center}.lc-button{background-color:rgba(var(--lc-primary-button-bg-color));color:rgba(var(--lc-primary-button-color));font-weight:var(--lc-primary-button-weight);text-transform:var(--lc-primary-button-transform);border-radius:var(--lc-button-radius);font-size:var(--lc-button-size);font-family:var(--lc-button-family),serif;height:var(--lc-button-height);letter-spacing:var(--lc-button-letter-spacing);transition:filter .12s ease,background-color .2s ease,color .2s ease;border-width:1px;border-style:solid;border-color:rgba(var(--lc-primary-button-border-color));display:flex;align-items:center;justify-content:center;gap:8px}.lc-button cooee-icon{display:var(--lc-button-icon-display);width:var(--lc-button-icon-size, 20px)!important;height:var(--lc-button-icon-size, 20px)!important;color:inherit}.lc-button:hover{filter:brightness(.95)}.lc-button:active{filter:brightness(.9)}.lc-button:focus-visible{outline:2px solid rgba(var(--lc-primary-color, 0, 0, 0));outline-offset:2px}.lc-button{min-width:150px;width:100%;padding:8px}.lc-button .atc-sale-price{display:none}.lc-additional-text,.lc-feature{font-size:12px;color:#666}.lc-features{position:relative;overflow:hidden;height:16px;text-align:center;width:100%}.lc-features .lc-feature{position:absolute;width:100%;opacity:0;transform:translateY(100%);transition:transform .5s ease,opacity .5s ease}.lc-features .lc-feature.enter{opacity:1;transform:translateY(0);z-index:2}.lc-features .lc-feature.exit{opacity:0;transform:translateY(-100%);z-index:1}.image-wrapper{display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:70px;height:70px;border-radius:4px}.image-wrapper img{width:100%;height:100%;object-fit:cover;border-radius:4px}.selectors-wrapper{display:flex;gap:8px;flex:1 1 100%;min-width:0}cooee-product-variant-selector{flex:0 1 auto}@media(max-width:768px){cooee-product-variant-selector{flex:1 1 0}}.subscription-selector-wrapper{flex:0 0 130px;display:flex}@media(max-width:768px){.subscription-selector-wrapper{flex:1 1 auto;min-width:0}}.subscription-selector-wrapper .subscription-selector{width:100%;padding:8px 24px 8px 8px;border:1px solid black;border-radius:var(--lc-button-radius);font-size:var(--lc-text-size)}@media(min-width:768px){.subscription-selector-wrapper .subscription-selector:hover{border-color:rgba(var(--lc-primary-color))}}.subscription-selector-wrapper .subscription-selector:focus{outline:none}.quantity-selector{flex:0 0 auto;display:flex;align-items:stretch;border:1px solid black;border-radius:var(--lc-button-radius)}.quantity-selector .qty-btn{display:flex;align-items:center;justify-content:center;flex:0 0 28px;border:none;cursor:pointer;font-size:18px;font-weight:600;padding:4px;border-radius:var(--lc-button-radius)}.quantity-selector .qty-btn:active{background-color:#f0f0f0}@media(min-width:768px){.quantity-selector .qty-btn:hover{background-color:#f5f5f5}}.quantity-selector .qty-value{display:flex;place-content:center;justify-content:center;flex:0 0 28px;padding:8px 0;text-align:center;font-size:14px;font-weight:500}@media(max-width:768px){.lc-wrapper{flex-wrap:wrap;align-items:start}.lc-prices,.lc-button-wrapper{flex-basis:auto;flex-grow:1}cooee-product-variant-selector{order:1;flex-basis:100%}.quantity-selector{order:4}.lc-button-wrapper{order:5}}
35
+ `],encapsulation:3})};var Xn=[`videoEl`];async function Di(){return (await import('./video-detail-dialog.component-DUtvRDAW-CThwJMUS.js').then(function (n) { return n.v; })).VideoDetailDialogComponent}var ye=class n extends Fe{videoElements;videoEntries;videoConfig;dialogRef=null;dialog=g(Ro);isMobile=M$3();pausedVideos=[];videoLoadingStates=new Map;intersectionObserver;visibleVideos=new Set;constructor(){super(),Di();}ngAfterViewInit(){this.checkAndOpenVideoFromUrl();}ngOnDestroy(){super.ngOnDestroy(),this.intersectionObserver?.disconnect();}engagementTriggerReceived(t){this.videoConfig=t.content?.videoConfig,this.videoEntries=this.videoConfig.videoEntries;}onMuteToggled(t,e){t||this.videoElements.forEach(i=>{i.nativeElement!==e&&(i.nativeElement.muted=true,i.nativeElement.pause());});}sendTriggerClicked(t,e){this.sendEvent(`CE Trigger Clicked`,{},t,e);}async onVideoTap(t,e,i,o,a){t?.stopPropagation(),t?.preventDefault();let l=e.items?.[0];if(this.sendTriggerClicked(e,l),this.videoConfig.footerContent===`NONE`){o&&(o.muted=false,o.play(),this.onMuteToggled(false,o));return}await this.openDialog(e,i,a);}sendEvent(t,e,i,o){let a=new Ir$1(t,e,this.engagementTrigger);a.setVideos(i),o&&(a.items=[o.toEmbed()]),window.CooeeSDK.sendEvent(a);}onDialogClosed(){this.resumePlaylistVideos();}isVideoLoading(t){return this.videoLoadingStates.get(t)??true}onVideoLoadStart(t){this.videoLoadingStates.set(t,true);}onVideoCanPlay(t){this.videoLoadingStates.set(t,false);}playVideo(t){t.play().catch(e=>{Y$1.error(`Failed to play video:`,e);});}setupIntersectionObserver(t=.5,e=`50px`){this.intersectionObserver=new IntersectionObserver(i=>{i.forEach(o=>{let a=o.target,l=a.dataset.videoId;l&&(o.isIntersecting?(this.visibleVideos.add(l),this.handleVideoVisibilityChange(a,true)):(this.visibleVideos.delete(l),this.handleVideoVisibilityChange(a,false)));});},{threshold:t,rootMargin:e}),setTimeout(()=>{this.videoElements.forEach(i=>{this.intersectionObserver?.observe(i.nativeElement);});},100);}handleVideoVisibilityChange(t,e){e?this.onVideoBecameVisible(t):t.pause();}onVideoBecameVisible(t){this.playVideo(t);}pauseAllPlaylistVideos(){this.pausedVideos=[],this.videoElements.forEach(t=>{let e=t.nativeElement;e.paused||(this.pausedVideos.push(e),e.pause());});}resumePlaylistVideos(){this.pausedVideos.forEach(t=>{t.play().catch(()=>{});}),this.pausedVideos=[];}async checkAndOpenVideoFromUrl(){let t=We$3();if(!t||!this.videoEntries)return;let e=Je$2();if(e.utm_campaign?.toLowerCase()!==`shoppable_video`||e.utm_source?.toLowerCase()!==Ae$3)return;let i=this.videoEntries.findIndex(o=>o.video.shortID===+t);if(i!==-1){let o=this.videoEntries[i].video;await ce$3.set(`muted`,true),await this.openDialog(o,i);}}async openDialog(t,e,i){await Vi$1();let o={videoEntries:this.videoEntries,currentIndex:e,triggerContext:this.triggerContext,selectedItem:i};this.dialogRef&&this.dialogRef.close(),this.pauseAllPlaylistVideos();let a=await Di();this.dialogRef=this.dialog.open(a,{width:`100vw`,height:`100vh`,data:o,providers:Qt(this.triggerContext,{video:t,index:e}),disableClose:true});let l={videoID:t.id,videoIndex:e};this.sendEvent(`CE Video Dialog Opened`,{current:l},t),this.dialogRef.closed.subscribe(p=>{if(this.dialogRef=null,!p)return;let f=p.lastVideoDuration*1e3,M={videoID:p.lastVideo.id,videoIndex:p.lastVideoIndex,playedTillMS:f,playedTillPercent:f/p.lastVideo.durationMS};this.sendEvent(`CE Video Dialog Closed`,{current:M},p.lastVideo),this.onDialogClosed();});}static ɵfac=function(e){return new(e||n)};static ɵcmp=cf({type:n,selectors:[[`cooee-abstract-video`]],viewQuery:function(e,i){if(e&1&&oc(Xn,5),e&2){let o;kf(o=Ff())&&(i.videoElements=o);}},features:[Wa],decls:0,vars:0,template:function(e,i){},encapsulation:2})};var _e=class n{video=iN.required({alias:`cooeeVideoSources`});prioritySource=iN(`high`);elementRef=g(Se$1);constructor(){ws(()=>{this.updateSources();});}updateSources(){let t=this.elementRef.nativeElement,e=this.video(),i=this.prioritySource();t.querySelectorAll(`source`).forEach(a=>a.remove()),i===`best`?(this.addSource(e.bestSource),this.addSource(e.highSource),this.addSource(e.lowSource)):i===`low`?(this.addSource(e.lowSource),this.addSource(e.highSource),this.addSource(e.bestSource)):(this.addSource(e.highSource),this.addSource(e.bestSource),this.addSource(e.lowSource)),this.addSource(e.m3u8Source),t.load();}addSource(t){if(!t)return;let e=document.createElement(`source`);e.src=t.url,e.type=t.mimeType,this.elementRef.nativeElement.appendChild(e);}static ɵfac=function(e){return new(e||n)};static ɵdir=En$2({type:n,selectors:[[`video`,`cooeeVideoSources`,``]],inputs:{video:[1,`cooeeVideoSources`,`video`],prioritySource:[1,`prioritySource`]}})};var eo=(n,t)=>t.video.id;function to(n,t){if(n&1&&(Cf(0,`div`,1),bv(1,`safeHtml`)),n&2)Ef(`innerHTML`,Av(1,1,VD().videoConfig.heading),tm);}function io(n,t){n&1&&(Xa(0,`div`,6),Cf(1,`div`,12),ec());}function no(n,t){if(n&1){let e=FD();Xa(0,`cooee-mute-toggle`,13),Nf(`toggled`,function(o){gu(e),VD();let a=zD(7);return mu(VD().onMuteToggled(o,a))}),ec();}if(n&2){VD();let e=zD(7);Ef(`muted`,e.muted)(`videoEl`,e);}}function oo(n,t){if(n&1){let e=FD();Xa(0,`cooee-video-promoted-items`,16),Nf(`cardClick`,function(o){gu(e);let a=VD(2).$index,l=zD(7),p=Ev(0);return mu(VD().onItemCardClick(o,p,a,l))}),ec();}if(n&2){VD(2);Ef(`items`,Ev(0).items)(`centeredSlides`,false);}}function ro(n,t){if(n&1){let e=FD();Xa(0,`cooee-item-card`,17),Nf(`buttonClick`,function(){gu(e);let o=VD(2).$index,a=zD(7),l=Ev(0);return mu(VD().addToCartClicked(null,l,o,a))})(`click`,function(){gu(e);let o=VD(2).$index,a=zD(7),l=Ev(0),p=Ev(1);return mu(VD().onItemCardClick(p,l,o,a))}),ec();}if(n&2){VD(2);Ef(`item`,Ev(1));}}function ao(n,t){if(n&1&&TD(0,oo,1,2,`cooee-video-promoted-items`,14)(1,ro,1,1,`cooee-item-card`,15),n&2){VD();let e=Ev(0),i=VD();SD(Ev(2)===i.VideoConfigFooterContent.ITEM_SWIPER&&e.items.length>1?0:e.items.length?1:-1);}}function so(n,t){if(n&1){let e=FD();Xa(0,`cooee-video-card`,18),Nf(`linkClicked`,function(){gu(e),VD();let o=Ev(0);return mu(VD().sendTriggerClicked(o))}),ec();}if(n&2){VD();Ef(`card`,Ev(2));}}function lo(n,t){if(n&1){let e=FD();Xf(0)(1)(2),Xa(3,`div`,4)(4,`div`,5),Nf(`click`,function(o){let a=gu(e).$index,l=zD(7),p=Ev(0);return mu(VD().onVideoTap(o,p,a,l))})(`keydown.enter`,function(o){let a=gu(e).$index,l=zD(7),p=Ev(0);return mu(VD().onVideoTap(o,p,a,l))})(`keydown.space`,function(o){let a=gu(e).$index,l=zD(7),p=Ev(0);return mu(VD().onVideoTap(o,p,a,l))}),TD(5,io,2,0,`div`,6),Xa(6,`video`,7,0),Nf(`mouseenter`,function(){gu(e);let o=zD(7);VD();return mu(Ev(1)&&o.play())})(`mouseleave`,function(){gu(e);let o=zD(7);VD();return mu(Ev(1)&&o.pause())})(`loadstart`,function(){gu(e);let o=Ev(0);return mu(VD().onVideoLoadStart(o.id))})(`canplay`,function(){gu(e);let o=Ev(0);return mu(VD().onVideoCanPlay(o.id))}),ec(),Xa(8,`div`,8),TD(9,no,1,2,`cooee-mute-toggle`,9),ec()(),Xa(10,`div`,10),TD(11,ao,2,1)(12,so,1,1,`cooee-video-card`,11),ec()();}if(n&2){let e=t.$implicit,i=VD(),o=Ev(0),a=Ev(2),l=vv(e.video);fd(),vv(l.items[0]),fd();let f=vv(l.card)&&a===i.VideoConfigFooterContent.CARD;fd(2),ic(`background-image`,l.thumbnail?`url(`+l.thumbnail+`)`:null),fd(),SD(i.isVideoLoading(l.id)?5:-1),fd(),Ef(`cooeeVideoSources`,l)(`muted`,true),vf(`poster`,l.thumbnail)(`preload`,o?`metadata`:`none`)(`autoplay`,null)(`data-video-id`,l.id),fd(3),SD(i.videoConfig.showMuteButton?9:-1),fd(2),SD(i.videoConfig.showItems()?11:f?12:-1);}}var it=class n extends ye{VideoConfigFooterContent=se$2;VideoConfigAutoPlay=oe$2;swiperOptions=null;constructor(){super(),this.hasSwiper=true;}ngAfterViewInit(){super.ngAfterViewInit();let t=this.videoConfig.playlistConfig.videoSwiper,e=t?(this.isMobile?t.gapSm:t.gap)+`px`:window.cooeePlaylistGap??24,i=t?this.isMobile?t.maxInRowSm:t.maxInRow:`auto`;this.swiperOptions={direction:`horizontal`,effect:`slide`,loop:t?.loop,freeMode:true,spaceBetween:e,slidesPerView:i,mousewheel:{enabled:true,forceToAxis:true},autoplay:t?.autoplay?.enabled?{delay:t?.autoplay?.delay,disableOnInteraction:false}:false},this.setupIntersectionObserver(),this.playFirstVideo();}ngOnDestroy(){super.ngOnDestroy();}addToCartClicked(t,e,i,o){let a=e.items?.[0],l=he$4.get().website?.canChangeVariantInCart;if(e.items?.length>1||a?.hasVariants()&&!l){this.onItemCardClick(a,e,i,o);return}this.engagementService.executeCTA(he$3.ADD_TO_CART,{item:a,video:e});}goToPDP(t,e){t?.stopPropagation(),t?.preventDefault();let i=e.items?.[0];this.engagementService.executeCTA(he$3.GO_TO_PRODUCT,{item:i,video:e});}onItemCardClick(t,e,i,o){this.videoConfig.playlistConfig.itemCardClickBehavior===`OPEN_ITEM_DETAIL`?this.onVideoTap(null,e,i,o,t):this.onVideoTap(null,e,i,o);}update(){}onVideoCanPlay(t){if(super.onVideoCanPlay(t),!this.shouldAutoPlay()||this.dialogRef||!this.visibleVideos.has(t))return;let e=this.videoElements.find(i=>i.nativeElement.dataset.videoId===t)?.nativeElement;e&&this.playVideo(e);}onVideoBecameVisible(t){this.shouldAutoPlay()&&(this.dialogRef?this.pausedVideos.push(t):this.playVideo(t));}shouldAutoPlay(){return this.videoConfig.autoPlay===`ON`||this.videoConfig.autoPlay===`ON_HOVER`&&this.isMobile}playFirstVideo(){}static ɵfac=function(e){return new(e||n)};static ɵcmp=cf({type:n,selectors:[[`cooee-video-playlist`]],features:[np(kt()),Wa],decls:8,vars:7,consts:[[`videoEl`,``],[1,`heading-text`,3,`innerHTML`],[3,`options`,`navigationConfig`,`paginationConfig`],[`ngProjectAs`,`swiper-slides`,5,[`swiper-slides`]],[1,`swiper-slide`,`video-card`],[`role`,`button`,`tabindex`,`0`,`aria-label`,`Play video`,`aria-haspopup`,`dialog`,1,`video-wrapper`,3,`click`,`keydown.enter`,`keydown.space`],[1,`video-loading-overlay`],[`width`,`100%`,`playsinline`,``,`loop`,``,3,`mouseenter`,`mouseleave`,`loadstart`,`canplay`,`cooeeVideoSources`,`muted`],[1,`video-controls`],[3,`muted`,`videoEl`],[`role`,`region`,`aria-label`,`Video details`,1,`video-footer`],[3,`card`],[1,`loading-spinner`],[3,`toggled`,`muted`,`videoEl`],[3,`items`,`centeredSlides`],[`role`,`button`,`tabindex`,`0`,`aria-label`,`Product detail`,3,`item`],[3,`cardClick`,`items`,`centeredSlides`],[`role`,`button`,`tabindex`,`0`,`aria-label`,`Product detail`,3,`buttonClick`,`click`,`item`],[3,`linkClicked`,`card`]],template:function(e,i){if(e&1&&(Xf(0)(1)(2),TD(3,to,2,3,`div`,1),Xa(4,`cooee-swiper`,2),nc(5,3),ND(6,lo,13,14,`div`,4,eo),Yo(),ec()),e&2){vv(!i.videoConfig.autoPlay||i.videoConfig.autoPlay===i.VideoConfigAutoPlay.ON),fd(),vv(i.videoConfig.autoPlay===i.VideoConfigAutoPlay.ON_HOVER),fd(),vv(i.videoConfig.footerContent),fd(),SD(i.videoConfig.heading?3:-1);let o=i.videoConfig.playlistConfig.videoSwiper;fd(),Ef(`options`,i.swiperOptions)(`navigationConfig`,o==null?null:o.navigation)(`paginationConfig`,o==null?null:o.pagination),fd(2),AD(i.videoEntries);}},dependencies:[Bt,jt,Rt,de,_e,Lt,a],styles:[`:host{display:block}cooee-swiper.swiper{margin:8px;padding-top:25px;padding-bottom:25px}.video-wrapper{position:relative;cursor:pointer;outline:none;border-radius:var(--lc-media-radius, 8px);background-size:cover;background-position:center;background-repeat:no-repeat}.video-wrapper video{width:100%;height:var(--lc-video-card-height);object-fit:cover;border-radius:var(--lc-media-radius, 8px);position:relative}.video-card.swiper-slide{width:var(--lc-video-card-width);transition:transform .3s ease}.video-card.swiper-slide:hover{transform:scale(1.05)}@media(max-width:768px),(prefers-reduced-motion:reduce){.video-card.swiper-slide{transition:none}.video-card.swiper-slide:hover{transform:none}}.video-controls{position:absolute;bottom:8px;z-index:10;right:8px;display:flex;gap:8px}.video-footer{overflow-x:hidden}cooee-item-card{cursor:pointer;padding-left:0!important;padding-right:0!important}cooee-item-card .item-image{width:50px;height:50px;display:none}cooee-item-card .item-detail-button{display:none!important}cooee-item-card .item-info{font-size:14px;line-height:normal;margin-right:unset!important}cooee-item-card .item-info .item-name{-webkit-line-clamp:1;overflow:hidden}.video-loading-overlay{border-radius:var(--lc-media-radius, 8px)}
36
36
  `],encapsulation:3})};var co=[`videoElement`],po=n=>({"cursor-grab":n}),nt=class n extends ye{videoElement;video;isDragging=false;hidden=false;cdkDrag=g(ge$1,{self:true});untilDestroyed=Pt();constructor(){super();}get popupClasses(){return this.hidden?[`hidden`]:[`visible`]}onClick(t){t.stopPropagation(),t.preventDefault(),this.onVideoClick();}ngOnInit(){super.ngOnInit();let t=this.elementRef.nativeElement.closest(`.letscooee-engagement`);t&&(t.style.zIndex=`10000`),this.cdkDrag.moved.pipe(this.untilDestroyed).subscribe(()=>this.isDragging=true);}ngAfterViewInit(){super.ngAfterViewInit(),setTimeout(()=>{this.autoPlay();},100);}onVideoClick(){if(this.isDragging){this.isDragging=false;return}this.hidden=true,this.onVideoTap(null,this.video,0);}close(){this.hidden=true;let t=(new Date().getTime()-this.triggerContext.startTime.getTime())/1e3;this.sendEvent(`CE Trigger Closed`,{duration:t});}engagementTriggerReceived(t){super.engagementTriggerReceived(t),this.video=this.videoEntries[0].video;}update(){}onDialogClosed(){this.hidden=false;}autoPlay(){let t=this.videoElement.nativeElement;this.hidden||this.playVideo(t);}static ɵfac=function(e){return new(e||n)};static ɵcmp=cf({type:n,selectors:[[`cooee-video-popup`]],viewQuery:function(e,i){if(e&1&&oc(co,5),e&2){let o;kf(o=Ff())&&(i.videoElement=o.first);}},hostAttrs:[`role`,`button`,`tabindex`,`0`,`aria-label`,`Open video popup `,`cdkDragBoundary`,`body`],hostVars:2,hostBindings:function(e,i){e&1&&Nf(`keydown.enter`,function(a){return i.onClick(a)})(`keydown.space`,function(a){return i.onClick(a)})(`click`,function(a){return i.onClick(a)}),e&2&&iv(i.popupClasses);},features:[np(kt()),dD([{directive:ge$1,inputs:[`cdkDragBoundary`,`cdkDragBoundary`]}]),Wa],decls:9,vars:5,consts:[[`videoElement`,``],[1,`popup-inner`,3,`ngClass`],[`type`,`button`,`aria-label`,`Close video popup`,1,`close-button`,3,`click`],[`name`,`close`,`aria-hidden`,`true`],[1,`play-button`],[`name`,`unmute`,`aria-hidden`,`true`],[1,`text`],[`loop`,``,`preload`,`metadata`,`playsinline`,``,3,`muted`,`cooeeVideoSources`]],template:function(e,i){if(e&1){let o=FD();Xa(0,`div`,1)(1,`button`,2),Nf(`click`,function(l){return gu(o),l.stopPropagation(),mu(i.close())}),Cf(2,`cooee-icon`,3),ec(),Xa(3,`div`,4),Cf(4,`cooee-icon`,5),Xa(5,`div`,6),gv(6,`Tap to unmute`),ec()(),Cf(7,`video`,7,0),ec();}e&2&&(Ef(`ngClass`,Sv(3,po,i.isDragging)),fd(7),Ef(`muted`,true)(`cooeeVideoSources`,i.video));},dependencies:[AE,ye$1,_e],styles:[`:host{position:fixed;display:block;right:24px;bottom:24px;min-height:150px;max-width:150px;box-shadow:0 25px 50px -12px #00000040}:host(.hidden){display:none}.popup-inner{display:flex;justify-content:center;align-items:center;position:relative}video{width:100%;border-radius:8px;background-color:#fff}.close-button{position:absolute;top:-14px;right:-14px;background-color:#00000080;border-radius:9999px;width:32px;height:32px;border:none;z-index:10;display:flex;justify-content:center;align-items:center}.play-button{display:flex;justify-content:center;align-items:center;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) scale(1);transition:all .1s ease-in-out;z-index:999;flex-wrap:wrap;width:100%;max-width:130px;border-radius:5px;padding:5px 10px;background-color:#97979761;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.play-button cooee-icon{width:14px;height:14px}.play-button .text{font-size:11px;line-height:1;color:#fff;font-weight:400;margin-left:5px;text-align:center}
37
37
  `],encapsulation:3})};var mo=(n,t)=>t.video.id;function uo(n,t){if(n&1&&(Cf(0,`div`,1),bv(1,`safeHtml`)),n&2)Ef(`innerHTML`,Av(1,1,VD().videoConfig.heading),tm);}function fo(n,t){n&1&&(Xa(0,`div`,9),Cf(1,`div`,12),ec());}function go(n,t){if(n&1&&(Xa(0,`div`,11),gv(1),ec()),n&2){let e=VD().$implicit;fd(),Yf(e.title);}}function vo(n,t){if(n&1){let e=FD();Xa(0,`div`,4),Nf(`click`,function(o){let a=gu(e),l=a.$implicit,p=a.$index;return mu(VD().onVideoTap(o,l.video,p))})(`keydown.enter`,function(o){let a=gu(e),l=a.$implicit,p=a.$index;return mu(VD().onVideoTap(o,l.video,p))})(`keydown.space`,function(o){let a=gu(e),l=a.$implicit,p=a.$index;return mu(VD().onVideoTap(o,l.video,p))}),Mu(),Xa(1,`svg`,5),Cf(2,`circle`,6)(3,`circle`,7),ec(),bu(),Xa(4,`div`,8),TD(5,fo,2,0,`div`,9),Xa(6,`video`,10,0),Nf(`loadstart`,function(){let o=gu(e).$implicit;return mu(VD().onVideoLoadStart(o.video.id))})(`canplay`,function(){let o=gu(e).$implicit;return mu(VD().onVideoCanPlay(o.video.id))}),ec()(),TD(8,go,2,1,`div`,11),ec();}if(n&2){let e=t.$implicit,i=t.$index,o=VD();vf(`aria-label`,`Open video story `+(i+1)),fd(5),SD(o.isVideoLoading(e.video.id)?5:-1),fd(),Ef(`poster`,e.video.thumbnail)(`cooeeVideoSources`,e.video)(`prioritySource`,`low`)(`muted`,true),vf(`data-video-id`,e.video.id),fd(2),SD(e.title?8:-1);}}var ot=class n extends ye{constructor(){super();}ngAfterViewInit(){super.ngAfterViewInit(),this.setupIntersectionObserver();}ngOnDestroy(){super.ngOnDestroy();}update(){}static ɵfac=function(e){return new(e||n)};static ɵcmp=cf({type:n,selectors:[[`cooee-video-stories`]],features:[np(kt()),Wa],decls:4,vars:1,consts:[[`videoEl`,``],[1,`heading-text`,3,`innerHTML`],[1,`video-stories`],[`role`,`button`,`tabindex`,`0`,1,`video-story`],[`role`,`button`,`tabindex`,`0`,1,`video-story`,3,`click`,`keydown.enter`,`keydown.space`],[`viewBox`,`0 0 100 100`],[`cx`,`50`,`cy`,`50`,`r`,`48`,`fill`,`none`,`stroke-width`,`4`],[`cx`,`50`,`cy`,`50`,`r`,`48`,`fill`,`none`,`stroke-width`,`4`,`stroke-linecap`,`round`,`stroke-dasharray`,`301.6`,`stroke-dashoffset`,`301.6`,1,`video-story-circle`],[1,`video-wrapper`],[1,`video-loading-overlay`],[`loop`,``,`playsinline`,``,`preload`,`metadata`,3,`loadstart`,`canplay`,`poster`,`cooeeVideoSources`,`prioritySource`,`muted`],[1,`video-story-title`],[1,`loading-spinner`]],template:function(e,i){e&1&&(TD(0,uo,2,3,`div`,1),Xa(1,`div`,2),ND(2,vo,9,8,`div`,3,mo),ec()),e&2&&(SD(i.videoConfig.heading?0:-1),fd(2),AD(i.videoEntries));},dependencies:[_e,a],styles:[`:host{display:block}.video-stories{display:flex;overflow:auto;margin:.75rem;gap:.75rem;justify-content:center;align-items:center;scrollbar-width:none}.video-stories::-webkit-scrollbar{display:none}@media(max-width:768px){.video-stories{justify-content:start!important}}.video-story{position:relative;width:5rem;cursor:pointer;flex-shrink:0}.video-story .video-story-title{margin-top:.25rem;font-size:.7rem;line-height:1.1;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.video-story svg{position:absolute;top:0;left:0;width:100%;height:100%}.video-story svg circle:first-child{stroke:#d1d5db}.video-story svg circle:last-child{stroke:#3b82f6}.video-story .video-wrapper{position:relative;width:100%;height:100%;border-radius:9999px;overflow:hidden}.video-story .video-wrapper video{width:100%;height:100%;object-fit:cover;border-radius:9999px;position:relative;z-index:1}.video-story .video-wrapper .video-loading-overlay{border-radius:9999px}
38
- `],encapsulation:3})};async function Rs(){let n=await QE(Pi),t=(e,i)=>{let o=Ii(e,{injector:n.injector});customElements.get(i)||customElements.define(i,o);};t(tt,`cooee-sticky-atc`),t(Ke,`cooee-savings-bar`),t(Ge,`cooee-progressbar`),t(it,`cooee-video-playlist`),t(nt,`cooee-video-popup`),t(ot,`cooee-video-stories`),t(ke,`cooee-product-options-picker`),t(Qe,`cooee-collection-filter`),sessionStorage.cooeeDebug&&import('./debugger.component-CfkNhK_g-B7NduHr8.js').then(e=>{t(e.DebuggerComponent,`cooee-debugger`);}),window.cooeeShowQuickItem=(e,i)=>{n.injector.get(Je).showItemQuickView(e,i);};}
38
+ `],encapsulation:3})};async function Rs(){let n=await QE(Pi),t=(e,i)=>{let o=Ii(e,{injector:n.injector});customElements.get(i)||customElements.define(i,o);};t(tt,`cooee-sticky-atc`),t(Ke,`cooee-savings-bar`),t(Ge,`cooee-progressbar`),t(it,`cooee-video-playlist`),t(nt,`cooee-video-popup`),t(ot,`cooee-video-stories`),t(ke,`cooee-product-options-picker`),t(Qe,`cooee-collection-filter`),sessionStorage.cooeeDebug&&import('./debugger.component-CGrAnZe1-ogEKfQej.js').then(e=>{t(e.DebuggerComponent,`cooee-debugger`);}),window.cooeeShowQuickItem=(e,i)=>{n.injector.get(Je).showItemQuickView(e,i);};}
39
39
 
40
- var widgetsBI5KBpnk = /*#__PURE__*/Object.freeze({
40
+ var widgetsDJfTGJw = /*#__PURE__*/Object.freeze({
41
41
  __proto__: null,
42
42
  loadAngularWidgets: Rs
43
43
  });
44
44
 
45
- export { vf as $, Af as A, Bt as B, Cf as C, Yo as D, pf as E, FE as F, Ge$1 as G, zD as H, Ef as I, oc as J, Ke$1 as K, Lt$2 as L, Mf as M, ND as N, kf as O, Ff as P, oN as Q, Rv as R, Se$1 as S, Ro as T, zt$2 as U, ws as V, W, Xa as X, Yf as Y, Zo as Z, ic as _, a, FD as a0, TD as a1, gu as a2, mu as a3, VD as a4, SD as a5, wf as a6, Cv as a7, Kf as a8, Qf as a9, Dv as aa, xv as ab, rm as ac, widgetsBI5KBpnk as ad, bD as b, cf as c, dD as d, AD as e, fd as f, gv as g, ge$1 as h, iN as i, bv as j, Av as k, tm as l, g as m, ec as n, Nf as o, Ye$1 as p, qo as q, Lt as r, Nt as s, tc as t, AE as u, jt as v, Rt as w, xE as x, ye$1 as y, nc as z };
45
+ export { vf as $, Af as A, Bt as B, Cf as C, Yo as D, pf as E, FE as F, Ge$1 as G, zD as H, Ef as I, oc as J, Ke$1 as K, Lt$2 as L, Mf as M, ND as N, kf as O, Ff as P, oN as Q, Rv as R, Se$1 as S, Ro as T, zt$2 as U, ws as V, W, Xa as X, Yf as Y, Zo as Z, ic as _, a, FD as a0, TD as a1, gu as a2, mu as a3, VD as a4, SD as a5, wf as a6, Cv as a7, Kf as a8, Qf as a9, Dv as aa, xv as ab, rm as ac, widgetsDJfTGJw as ad, bD as b, cf as c, dD as d, AD as e, fd as f, gv as g, ge$1 as h, iN as i, bv as j, Av as k, tm as l, g as m, ec as n, Nf as o, Ye$1 as p, qo as q, Lt as r, Nt as s, tc as t, AE as u, jt as v, Rt as w, xE as x, ye$1 as y, nc as z };