@letscooee/web-sdk 13.1.14 → 14.0.1

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,5 +1,5 @@
1
- import { s, r, Y as Y$1, j as jn$1, t as te$1, h as he$2, A as Ar$1, a as An$2, f as fe$2 } from './chunk-C_cBbkTf-CTSBF1Lh.js';
2
- import { v as v$1, x as U$1, z as q, B as Sr$1, C as m$1, D as vs$1, E as ve$2, G as pi$1, N as Nn$1, J as bi$1, K as ii, _ as _e$2, L as Fs$1, P as Ps$1, O as Se$2, Q as ye$2, a as Mi$1, R as Ce$2, s as He$3, T as Me$2, I as Ir$1, Y as De$2, l as le$2, M as M$3, Z as Vi$1, a0 as $e$2, a1 as gr$1, a2 as He$4, a3 as qe$2, a4 as Re$2, a5 as Fe$2, a6 as We$3, a7 as Je$1, a8 as Ae$2, y as ye$3, a9 as ge$3 } from './main.min.js';
1
+ import { s, r, Y as Y$1, b as zn$1, t as te$1, h as he$2, A as Ar$1, x as xn$2, f as fe$2 } from './chunk-cN7DAvpe-BbA9dPrS.js';
2
+ import { x as v$1, U as U$1, z as q, C as Sr$1, D as m$1, E as vs$1, J as ve$2, K as pi$1, N as Nn$1, L as bi$1, O as ii, _ as _e$2, P as Fs$1, Q as Ps$1, R as Se$2, T as ye$2, a as Mi$1, W as Ce$2, t as He$3, X as Me$2, I as Ir$1, Y as De$2, l as le$2, M as M$3, Z as Vi$1, a0 as $e$2, a1 as gr$1, a2 as He$4, a3 as qe$2, a4 as Re$2, a5 as Fe$2, a6 as We$3, a7 as Je$1, a8 as Ae$2, y as ye$3, a9 as ge$3 } from './main.min.js';
3
3
 
4
4
  var Y=null,mr=false,di=1,G=Symbol(`SIGNAL`);function v(e){let t=Y;return Y=e,t}function Dr(){return Y}var Pt$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 jt$1(e){if(mr)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||Qp(o,Y)))return;let i=Vt$2(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&&Oc(e,s);}function Ac(){di++;}function fi$1(e){if(!(Vt$2(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===di)){if(!e.producerMustRecompute(e)&&!Dn$1(e)){li(e);return}e.producerRecomputeValue(e),li(e);}}function pi(e){if(e.consumers===void 0)return;let t=mr;mr=true;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||Yp(r);}}finally{mr=t;}}function hi$1(){return Y?.consumerAllowSignalWrites!==false}function Yp(e){e.dirty=true,pi(e),e.consumerMarkedDirty?.(e);}function li(e){e.dirty=false,e.lastCleanEpoch=di;}function Bt$2(e){return e&&Rc(e),v(e)}function Rc(e){e.producersTail=void 0,e.recomputing=true;}function yn$1(e,t){v(t),e&&xc(e);}function xc(e){e.recomputing=false;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(Vt$2(e))do n=gi(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0;}}function Dn$1(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(fi$1(n),r!==n.version))return true}return false}function lt$2(e){if(Vt$2(e)){let t=e.producers;for(;t!==void 0;)t=gi(t);}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0;}function Oc(e,t){let n=e.consumersTail,r=Vt$2(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)Oc(o.producer,o);}function gi(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,!Vt$2(t)){let i=t.producers;for(;i!==void 0;)i=gi(i);}return n}function Vt$2(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function Qp(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 yi(e,t){return Object.is(e,t)}function vn$1(e,t){let n=Object.create(Kp);n.computation=e;let r=()=>{if(fi$1(n),jt$1(n),n.value===yr)throw n.error;return n.value};return r[G]=n,r}var ci=Symbol(`UNSET`),ui$1=Symbol(`COMPUTING`),yr=Symbol(`ERRORED`),Kp=s(r({},Pt$2),{value:ci,dirty:true,error:null,equal:yi,kind:`computed`,producerMustRecompute(e){return e.value===ci||e.value===ui$1},producerRecomputeValue(e){if(e.value===ui$1)throw new Error(``);let t=e.value;e.value=ui$1;let n=Bt$2(e),r,o=false;try{r=e.computation(),v(null),o=t!==ci&&t!==yr&&r!==yr&&e.equal(t,r);}catch(i){r=yr,e.error=i;}finally{yn$1(e,n);}if(o){e.value=t;return}e.value=r,e.version++;}});function Jp(){throw new Error}var kc=Jp;function Fc(e){kc(e);}function Di(e){kc=e;}function vi$1(e,t){let n=Object.create(vr);n.value=e;let r=()=>Lc(n);return r[G]=n,[r,s=>Ht$2(n,s),s=>Pc(n,s)]}function Lc(e){return jt$1(e),e.value}function Ht$2(e,t){hi$1()||Fc(e),e.equal(e.value,t)||(e.value=t,eh(e));}function Pc(e,t){hi$1()||Fc(e),Ht$2(e,t(e.value));}var vr=s(r({},Pt$2),{equal:yi,value:void 0,kind:`signal`});function eh(e){e.version++,Ac(),pi(e);}var Ei=s(r({},Pt$2),{consumerIsAlwaysLive:true,consumerAllowSignalWrites:true,dirty:true,kind:`effect`});function Ci(e){if(e.dirty=false,e.version>0&&!Dn$1(e))return;e.version++;let t=Bt$2(e);try{e.cleanup(),e.fn();}finally{yn$1(e,t);}}var Ii;function Er(){return Ii}function Ae$1(e){let t=Ii;return Ii=e,t}var jc=Symbol(`NotFound`);function $t$1(e){return e===jc||e?.name===`ɵNotFound`}var Mr=`https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss`,m=class extends Error{code;constructor(t,n){super(gt$2(t,n)),this.code=t;}};function th(e){return `NG0${Math.abs(e)}`}function gt$2(e,t){return `${th(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 Uc(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n]);}function br(e){if(typeof e==`string`)return e;if(Array.isArray(e))return `[${e.map(br).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(`
5
5
  `);return r>=0?n.slice(0,r):n}function Nr(e,t){return e?t?`${e} ${t}`:e:t||``}var nh=A$1({__forward_ref__:A$1});function Sn$1(e){return e.__forward_ref__=Sn$1,e}function H$1(e){return Fi(e)?e():e}function Fi(e){return typeof e==`function`&&e.hasOwnProperty(nh)&&e.__forward_ref__===Sn$1}function C(e){return {token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function mt$3(e){return {providers:e.providers||[],imports:e.imports||[]}}function Ar(e){return rh(e,Rr)}function rh(e,t){return e.hasOwnProperty(t)&&e[t]||null}function oh(e){return (e?.[Rr]??null)||null}function _i(e){return e&&e.hasOwnProperty(Ir)?e[Ir]:null}var Rr=A$1({ɵprov:A$1}),Ir=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 Li(e){return e&&!!e.ɵproviders}var Pi=A$1({ɵcmp:A$1}),ji=A$1({ɵdir:A$1}),Bi=A$1({ɵpipe:A$1});var Cn$1=A$1({ɵfac:A$1}),yt$3=A$1({__NG_ELEMENT_ID__:A$1}),Bc=A$1({__NG_ENV_ID__:A$1});function nt$1(e){return Vi(e),e[Pi]||null}function xr(e){return Vi(e),e[ji]||null}function zc(e){return Vi(e),e[Bi]||null}function Vi(e,t){if(e==null)throw new m(-919,false)}function zt$2(e){return typeof e==`string`?e:e==null?``:String(e)}var Gc=A$1({ngErrorCode:A$1}),ih=A$1({ngErrorMessage:A$1});A$1({ngTokenPath:A$1});function Hi(e,t){return Wc(``,-200)}function Or(e,t){throw new m(-201,false)}function Wc(e,t,n){let r=new m(t,e);return r[Gc]=t,r[ih]=e,r}function ah(e){return e[Gc]}var Ti;function qc(){return Ti}function J(e){let t=Ti;return Ti=e,t}function $i(e,t,n){let r=Ar(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;Or();}var dt$3={},uh=`__NG_DI_FLAG__`,Si=class{injector;constructor(t){this.injector=t;}retrieve(t,n){let r=ft$3(n)||0;try{return this.injector.get(t,r&8?null:dt$3,r)}catch(o){if($t$1(o))return o;throw o}}};function lh(e,t=0){let n=Er();if(n===void 0)throw new m(-203,false);if(n===null)return $i(e,void 0,t);{let r=dh(t),o=n.retrieve(e,r);if($t$1(o)){if(r.optional)return null;throw o}return o}}function T$1(e,t=0){return (qc()||lh)(H$1(e),t)}function g(e,t){return T$1(e,ft$3(t))}function ft$3(e){return typeof e>`u`||typeof e==`number`?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function dh(e){return {optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function Mi(e){let t=[];for(let n=0;n<e.length;n++){let r=H$1(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=fh(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 fh(e){return e[uh]}function Je(e,t){return e.hasOwnProperty(Cn$1)?e[Cn$1]:null}function Zc(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 Yc(e){return e.flat(Number.POSITIVE_INFINITY)}function kr(e,t){e.forEach(n=>Array.isArray(n)?kr(n,t):t(n));}function Ui$1(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n);}function Mn$1(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Qc(e,t){let n=[];for(let r=0;r<e;r++)n.push(t);return n}function Kc(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 bn$1(e,t,n){let r=Gt$1(e,t);return r>=0?e[r|1]=n:(r=~r,Kc(e,r,t,n)),r}function Fr(e,t){let n=Gt$1(e,t);if(n>=0)return e[n|1]}function Gt$1(e,t){return ph(e,t,1)}function ph(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=[],Wt$1=new I$1(``),Nn=new I$1(``,-1),zi=new I$1(``),In$1=class In{get(t,n=dt$3){if(n===dt$3){let o=Wc(``,-201);throw o.name=`ɵNotFound`,o}return n}};function Lr(e){return {ɵproviders:e}}function Jc(...e){return {ɵproviders:Gi$1(true,e),ɵfromNgModule:true}}function Gi$1(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s);};return kr(t,s=>{let a=s;wr(a,i,[],r)&&(o||=[],o.push(a));}),o!==void 0&&Xc(o,i),n}function Xc(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];Wi$1(o,i=>{t(i,r);});}}function wr(e,t,n,r){if(e=H$1(e),!e)return false;let o=null,i=_i(e),s=!i&&nt$1(e);if(!i&&!s){let c=e.ngModule;if(i=_i(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)wr(u,t,n,r);}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;kr(i.imports,l=>{wr(l,t,n,r)&&(u||=[],u.push(l));}),u!==void 0&&Xc(u,t);}if(!a){let u=Je(o)||(()=>new o);t({provide:o,useFactory:u,deps:Q},o),t({provide:zi,useValue:o,multi:true},o),t({provide:Wt$1,useValue:()=>T$1(o),multi:true},o);}let c=i.providers;if(c!=null&&!a){let u=e;Wi$1(c,l=>{t(l,u);});}}else return false;return o!==e&&e.providers!==void 0}function Wi$1(e,t){for(let n of e)Li(n)&&(n=n.ɵproviders),Array.isArray(n)?Wi$1(n,t):t(n);}var hh=A$1({provide:String,useValue:A$1});function eu(e){return e!==null&&typeof e==`object`&&hh in e}function gh(e){return !!(e&&e.useExisting)}function mh(e){return !!(e&&e.useFactory)}function pt$3(e){return typeof e==`function`}function tu(e){return !!e.useClass}var An$1=new I$1(``),Cr={},Vc={},wi;function qt$1(){return wi===void 0&&(wi=new In$1),wi}var re$2=class re{},ht$1=class ht extends re$2{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,Ni(t,s=>this.processProvider(s)),this.records.set(Nn,Ut$1(void 0,this)),o.has(`environment`)&&this.records.set(re$2,Ut$1(void 0,this));let i=this.records.get(An$1);i!=null&&typeof i.value==`string`&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(zi,Q,{self:true}));}retrieve(t,n){let r=ft$3(n)||0;try{return this.get(t,dt$3,r)}catch(o){if($t$1(o))return o;throw o}}destroy(){En$1(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 En$1(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){En$1(this);let n=Ae$1(this),r=J(void 0);try{return t()}finally{Ae$1(n),J(r);}}get(t,n=dt$3,r){if(En$1(this),t.hasOwnProperty(Bc))return t[Bc](this);let o=ft$3(r),s=Ae$1(this),a=J(void 0);try{if(!(o&4)){let u=this.records.get(t);if(u===void 0){let l=Ch(t)&&Ar(t);l&&this.injectableDefInScope(l)?u=Ut$1(bi(t),Cr):u=null,this.records.set(t,u);}if(u!=null)return this.hydrate(t,u,o)}let c=o&2?qt$1():this.parent;return n=o&8&&n===dt$3?null:n,c.get(t,n)}catch(c){let u=ah(c);throw u===-200||u===-201?new m(u,null):c}finally{J(a),Ae$1(s);}}resolveInjectorInitializers(){let t=v(null),n=Ae$1(this),r=J(void 0);try{let i=this.get(Wt$1,Q,{self:!0});for(let s of i)s();}finally{Ae$1(n),J(r),v(t);}}toString(){return `R3Injector[...]`}processProvider(t){t=H$1(t);let n=pt$3(t)?t:H$1(t&&t.provide),r=Dh(t);if(!pt$3(t)&&t.multi===true){let o=this.records.get(n);o||(o=Ut$1(void 0,Cr,true),o.factory=()=>Mi(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===Vc)throw Hi(``);return n.value===Cr&&(n.value=Vc,n.value=n.factory(void 0,r)),typeof n.value==`object`&&n.value&&Eh(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{v(o);}}injectableDefInScope(t){if(!t.providedIn)return false;let n=H$1(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 bi(e){let t=Ar(e),n=t!==null?t.factory:Je(e);if(n!==null)return n;if(e instanceof I$1)throw new m(-204,false);if(e instanceof Function)return yh(e);throw new m(-204,false)}function yh(e){if(e.length>0)throw new m(-204,false);let n=oh(e);return n!==null?()=>n.factory(e):()=>new e}function Dh(e){if(eu(e))return Ut$1(void 0,e.useValue);return Ut$1(qi$1(e),Cr)}function qi$1(e,t,n){let r;if(pt$3(e)){let o=H$1(e);return Je(o)||bi(o)}else if(eu(e))r=()=>H$1(e.useValue);else if(mh(e))r=()=>e.useFactory(...Mi(e.deps||[]));else if(gh(e))r=(o,i)=>T$1(H$1(e.useExisting),i!==void 0&&i&8?8:void 0);else {let o=H$1(e&&(e.useClass||e.provide));if(vh(e))r=()=>new o(...Mi(e.deps));else return Je(o)||bi(o)}return r}function En$1(e){if(e.destroyed)throw new m(-205,false)}function Ut$1(e,t,n=false){return {factory:e,value:t,multi:n?[]:void 0}}function vh(e){return !!e.deps}function Eh(e){return e!==null&&typeof e==`object`&&typeof e.ngOnDestroy==`function`}function Ch(e){return typeof e==`function`||typeof e==`object`&&e.ngMetadataName===`InjectionToken`}function Ni(e,t){for(let n of e)Array.isArray(n)?Ni(n,t):n&&Li(n)?Ni(n.ɵproviders,t):t(n);}function Pr(e,t){let n;e instanceof ht$1?(En$1(e),n=e):n=new Si(e);let o=Ae$1(n),i=J(void 0);try{return t()}finally{Ae$1(o),J(i);}}function nu(){return qc()!==void 0||Er()!=null}var Ce$1=0,y=1,E$1=2,$=3,fe$1=4,ee$1=5,Dt$2=6,Zt$1=7,P$2=8,$e$1=9,Re$1=10,b$1=11,Yt$1=12,Zi$1=13,vt$2=14,te=15,rt$1=16,Et$2=17,xe$2=18,Oe=19,Yi$1=20,He$2=21,jr=22,Xe$1=23,se$1=24,Ct$2=25,ke=26,R=27,ru=1,Qi$1=6,ot$2=7,Rn=8,It$2=9,L$1=10;function Fe$1(e){return Array.isArray(e)&&typeof e[ru]==`object`}function pe$1(e){return Array.isArray(e)&&e[ru]===true}function Ki$1(e){return (e.flags&4)!==0}function Le(e){return e.componentOffset>-1}function Qt$1(e){return (e.flags&1)===1}function Ie$1(e){return !!e.template}function Kt$1(e){return (e[E$1]&512)!==0}function wt$3(e){return (e[E$1]&256)===256}var Ji$1=`svg`,ou=`math`;function he$1(e){for(;Array.isArray(e);)e=e[Ce$1];return e}function Xi$1(e,t){return he$1(t[e])}function ge$2(e,t){return he$1(t[e.index])}function xn$1(e,t){return e.data[t]}function On(e,t){return e[t]}function kn(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 Fe$1(n)?n:n[Ce$1]}function iu(e){return (e[E$1]&4)===4}function Br(e){return (e[E$1]&128)===128}function su(e){return pe$1(e[$])}function me$2(e,t){return t==null?null:e[t]}function es(e){e[Et$2]=0;}function Vr(e){e[E$1]&1024||(e[E$1]|=1024,Br(e)&&_t$2(e));}function au(e,t){for(;e>0;)t=t[vt$2],e--;return t}function Jt$1(e){return !!(e[E$1]&9216||e[se$1]?.dirty)}function Hr(e){e[Re$1].changeDetectionScheduler?.notify(8),e[E$1]&64&&(e[E$1]|=1024),Jt$1(e)&&_t$2(e);}function _t$2(e){e[Re$1].changeDetectionScheduler?.notify(0);let t=et$1(e);for(;t!==null&&!(t[E$1]&8192||(t[E$1]|=8192,!Br(t)));)t=et$1(t);}function ts(e,t){if(wt$3(e))throw new m(911,false);e[He$2]===null&&(e[He$2]=[]),e[He$2].push(t);}function cu(e,t){if(e[He$2]===null)return;let n=e[He$2].indexOf(t);n!==-1&&e[He$2].splice(n,1);}function et$1(e){let t=e[$];return pe$1(t)?t[$]:t}function ns(e){return e[Zt$1]??=[]}function rs(e){return e.cleanup??=[]}function uu(e,t,n,r){let o=ns(t);o.push(n),e.firstCreatePass&&rs(e).push(r,o.length-1);}var w$1={lFrame:Cu(null),bindingsEnabled:true,skipHydrationRootTNode:null};var Ai=false;function lu(){return w$1.lFrame.elementDepthCount}function du(){w$1.lFrame.elementDepthCount++;}function os(){w$1.lFrame.elementDepthCount--;}function $r(){return w$1.bindingsEnabled}function is(){return w$1.skipHydrationRootTNode!==null}function ss(e){return w$1.skipHydrationRootTNode===e}function as(){w$1.skipHydrationRootTNode=null;}function D(){return w$1.lFrame.lView}function O$1(){return w$1.lFrame.tView}function fu(e){return w$1.lFrame.contextLView=e,e[P$2]}function pu(e){return w$1.lFrame.contextLView=null,e}function W$1(){let e=cs();for(;e!==null&&e.type===64;)e=e.parent;return e}function cs(){return w$1.lFrame.currentTNode}function hu(){let e=w$1.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Tt$2(e,t){let n=w$1.lFrame;n.currentTNode=e,n.isParent=t;}function us(){return w$1.lFrame.isParent}function ls(){w$1.lFrame.isParent=false;}function ds(){return w$1.lFrame.contextLView}function fs(){return Ai}function wn$1(e){let t=Ai;return Ai=e,t}function Fn(){let e=w$1.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function gu(e){return w$1.lFrame.bindingIndex=e}function Pe$1(){return w$1.lFrame.bindingIndex++}function ps(e){let t=w$1.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function mu(){return w$1.lFrame.inI18n}function yu(e,t){let n=w$1.lFrame;n.bindingIndex=n.bindingRootIndex=e,Ur(t);}function Du(){return w$1.lFrame.currentDirectiveIndex}function Ur(e){w$1.lFrame.currentDirectiveIndex=e;}function vu(e){let t=w$1.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function zr(){return w$1.lFrame.currentQueryIndex}function Ln(e){w$1.lFrame.currentQueryIndex=e;}function Ih(e){let t=e[y];return t.type===2?t.declTNode:t.type===1?e[ee$1]:null}function hs(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=Ih(i),o===null||(i=i[vt$2],o.type&10))break;if(o===null)return false;t=o,e=i;}let r=w$1.lFrame=Eu();return r.currentTNode=t,r.lView=e,true}function Gr(e){let t=Eu(),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 Eu(){let e=w$1.lFrame,t=e===null?null:e.child;return t===null?Cu(e):t}function Cu(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 Iu(){let e=w$1.lFrame;return w$1.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var gs=Iu;function Wr(){let e=Iu();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 wu(e){return (w$1.lFrame.contextLView=au(e,w$1.lFrame.contextLView))[P$2]}function je$2(){return w$1.lFrame.selectedIndex}function it$2(e){w$1.lFrame.selectedIndex=e;}function Xt$1(){let e=w$1.lFrame;return xn$1(e.tView,e.selectedIndex)}function _u(){w$1.lFrame.currentNamespace=Ji$1;}function Tu(){wh();}function wh(){w$1.lFrame.currentNamespace=null;}function Su(){return w$1.lFrame.currentNamespace}var Mu=true;function qr(){return Mu}function Pn(e){Mu=e;}function Ri(e,t=null,n=null,r){let o=bu(e,t,n);return o.resolveInjectorInitializers(),o}function bu(e,t=null,n=null,r,o=new Set){return new ht$1([n||Q,Jc(e)],t||qt$1(),null,o)}var Z=class e{static THROW_IF_NOT_FOUND=dt$3;static NULL=new In$1;static create(t,n){if(Array.isArray(t))return Ri({name:``},n,t);{let r=t.name??``;return Ri({name:r},t.parent,t.providers)}}static ɵprov=C({token:e,providedIn:`any`,factory:()=>T$1(Nn)});static __NG_ELEMENT_ID__=-1},j$1=new I$1(``),Ue$2=(()=>{class e{static __NG_ELEMENT_ID__=_h;static __NG_ENV_ID__=n=>n}return e})(),_r=class extends Ue$2{_lView;constructor(t){super(),this._lView=t;}get destroyed(){return wt$3(this._lView)}onDestroy(t){let n=this._lView;return ts(n,t),()=>cu(n,t)}};function _h(){return new _r(D())}var Nu=false,Au=new I$1(``),en$1=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=false;pendingTask=new Sr$1(false);debugTaskTracker=g(Au,{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})(),xi=class extends U$1{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=false){super(),this.__isAsync=t,nu()&&(this.destroyRef=g(Ue$2,{optional:true})??void 0,this.pendingTasks=g(en$1,{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=xi;function Tr(...e){}function ms(e){let t,n;function r(){e=Tr;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 Ru(e){return queueMicrotask(()=>e()),()=>{e=Tr;}}var ys=`isAngularZone`,_n$1=ys+`_ID`,Th=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=Nu}=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,bh(s);}static isInAngularZone(){return typeof Zone<`u`&&Zone.current.get(ys)===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,Sh,Tr,Tr);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)}},Sh={};function Ds(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 Mh(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=true;function t(){ms(()=>{e.callbackScheduled=false,Oi(e),e.isCheckStableRunning=true,Ds(e),e.isCheckStableRunning=false;});}e.scheduleInRootZone?Zone.root.run(()=>{t();}):e._outer.run(()=>{t();}),Oi(e);}function bh(e){let t=()=>{Mh(e);},n=Th++;e._inner=e._inner.fork({name:`angular`,properties:{[ys]:true,[_n$1]:n,[_n$1+n]:true},onInvokeTask:(r,o,i,s,a,c)=>{if(Nh(c))return r.invokeTask(i,s,a,c);try{return Hc(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type===`eventTask`||e.shouldCoalesceRunChangeDetection)&&t(),$c(e);}},onInvoke:(r,o,i,s,a,c,u)=>{try{return Hc(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Ah(c)&&t(),$c(e);}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change==`microTask`?(e._hasPendingMicrotasks=s.microTask,Oi(e),Ds(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 Oi(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===true?e.hasPendingMicrotasks=true:e.hasPendingMicrotasks=false;}function Hc(e){e._nesting++,e.isStable&&(e.isStable=false,e.onUnstable.emit(null));}function $c(e){e._nesting--,Ds(e);}var Tn=class{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 Nh(e){return xu(e,`__ignore_ng_zone__`)}function Ah(e){return xu(e,`__scheduler_tick__`)}function xu(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);}},St$2=new I$1(``,{factory:()=>{let e=g(X),t=g(re$2),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(le$1),n.handleError(r));});}}}),Ou={provide:Wt$1,useValue:()=>{g(le$1,{optional:true});},multi:true};function Mt$2(e,t){let[n,r,o]=vi$1(e),i=n;i[G];return i.set=r,i.update=o,i.asReadonly=Zr.bind(i),i}function Zr(){let e=this[G];if(e.readonlyFn===void 0){let t=()=>this();t[G]=e,e.readonlyFn=t;}return e.readonlyFn}var jn=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r;}static __NG_ELEMENT_ID__=Rh}return e})();function Rh(){return new jn(D(),W$1())}var tt$1=class tt{},Bn=new I$1(``,{factory:()=>true});var vs=new I$1(``);var Yr=(()=>{class e{static ɵprov=C({token:e,providedIn:`root`,factory:()=>new ki})}return e})(),ki=class{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}},Sr=class{[G];constructor(t){this[G]=t;}destroy(){this[G].destroy();}};function Es(e,t){let n=g(Z),r=n.get(Ue$2),o,i=n.get(jn,null,{optional:true}),s=n.get(tt$1);return i!==null?(o=kh(i.view,s,e),r instanceof _r&&r._lView===i.view&&(r=null)):o=Fh(e,n.get(Yr),s),o.injector=n,r!==null&&(o.onDestroyFns=[r.onDestroy(()=>o.destroy())]),new Sr(o)}var ku=s(r({},Ei),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let e=wn$1(false);try{Ci(this);}finally{wn$1(e);}},cleanup(){if(!this.cleanupFns?.length)return;let e=v(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()();}finally{this.cleanupFns=[],v(e);}}}),xh=s(r({},ku),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12);},destroy(){if(lt$2(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.scheduler.remove(this);}}),Oh=s(r({},ku),{consumerMarkedDirty(){this.view[E$1]|=8192,_t$2(this.view),this.notifier.notify(13);},destroy(){if(lt$2(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.view[Xe$1]?.delete(this);}});function kh(e,t,n){let r=Object.create(Oh);return r.view=e,r.zone=typeof Zone<`u`?Zone.current:null,r.notifier=t,r.fn=Fu(r,n),e[Xe$1]??=new Set,e[Xe$1].add(r),r.consumerMarkedDirty(r),r}function Fh(e,t,n){let r=Object.create(xh);return r.fn=Fu(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 Fu(e,t){return ()=>{t(n=>(e.cleanupFns??=[]).push(n));}}function Qn(e){return {toString:e}.toString()}function qh(e){return typeof e==`function`}function vl(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r;}var io$1=class io{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r;}isFirstChange(){return this.firstChange}},Eo$1=(()=>{let e=()=>El;return e.ngInherit=true,e})();function El(e){return e.type.prototype.ngOnChanges&&(e.setInput=Yh),Zh}function Zh(){let e=Il(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 Yh(e,t,n,r,o){let i=this.declaredInputs[r],s=Il(e)||Qh(e,{previous:Ee$1,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new io$1(u&&u.currentValue,n,c===Ee$1),vl(e,t,o,n);}var Cl=`__ngSimpleChanges__`;function Il(e){return e[Cl]||null}function Qh(e,t){return e[Cl]=t}var Lu=[];var M$2=function(e,t=null,n){for(let r=0;r<Lu.length;r++){let o=Lu[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 Kh(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=El(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 wl(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 eo$1(e,t,n){_l(e,t,3,n);}function to$1(e,t,n,r){(e[E$1]&3)===n&&_l(e,t,n,r);}function Cs(e,t){let n=e[E$1];(n&3)===t&&(n&=16383,n+=1,e[E$1]=n);}function _l(e,t,n,r){let o=r!==void 0?e[Et$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[Et$2]+=65536),(a<i||i==-1)&&(Jh(e,n,t,c),e[Et$2]=(e[Et$2]&4294901760)+c+2),c++;}function Pu(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 Jh(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[Et$2]>>16&&(e[E$1]&3)===t&&(e[E$1]+=16384,Pu(a,i)):Pu(a,i);}var nn$1=-1,Nt$2=class Nt{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 Xh(e){return (e.flags&8)!==0}function eg(e){return (e.flags&16)!==0}function tg(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];rg(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++;}}return r}function ng(e){return e===3||e===4||e===6}function rg(e){return e.charCodeAt(0)===64}function rn$1(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?ju(e,n,o,null,t[++r]):ju(e,n,o,null,null));}}return e}function ju(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 Tl(e){return e!==nn$1}function so$1(e){return e&32767}function og(e){return e>>16}function ao$1(e,t){let n=og(e),r=t;for(;n>0;)r=r[vt$2],n--;return r}var xs=true;function co$1(e){let t=xs;return xs=e,t}var Sl=255,Ml=5,sg=0,Be$2={};function ag(e,t,n){let r;typeof n==`string`?r=n.charCodeAt(0)||0:n.hasOwnProperty(yt$3)&&(r=n[yt$3]),r??=n[yt$3]=sg++;let o=r&Sl,i=1<<o;t.data[e+(o>>Ml)]|=i;}function uo$1(e,t){let n=bl(e,t);if(n!==-1)return n;let r=t[y];r.firstCreatePass&&(e.injectorIndex=t.length,Is(r.data,e),Is(t,null),Is(r.blueprint,null));let o=ya(e,t),i=e.injectorIndex;if(Tl(o)){let s=so$1(o),a=ao$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 Is(e,t){e.push(0,0,0,0,0,0,0,0,t);}function bl(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function ya(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=kl(o),r===null)return nn$1;if(n++,o=o[vt$2],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return nn$1}function Os(e,t,n){ag(e,t,n);}function Nl(e,t,n){if(n&8||e!==void 0)return e;Or();}function Al(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[$e$1],i=J(void 0);try{return o?o.get(t,r,n&8):$i(t,r,n&8)}finally{J(i);}}return Nl(r,t,n)}function Rl(e,t,n,r=0,o){if(e!==null){if(t[E$1]&2048&&!(r&2)){let s=dg(e,t,n,r,Be$2);if(s!==Be$2)return s}let i=xl(e,t,n,r,Be$2);if(i!==Be$2)return i}return Al(t,n,r,o)}function xl(e,t,n,r,o){let i=ug(n);if(typeof i==`function`){if(!hs(t,e,r))return r&1?Nl(o,n,r):Al(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))Or(n);else return s}finally{gs();}}else if(typeof i==`number`){let s=null,a=bl(e,t),c=nn$1,u=r&1?t[te][ee$1]:null;for((a===-1||r&4)&&(c=a===-1?ya(e,t):t[a+8],c===nn$1||!Vu(r,false)?a=-1:(s=t[y],a=so$1(c),t=ao$1(c,t)));a!==-1;){let l=t[y];if(Bu(i,a,l.data)){let d=cg(a,t,n,s,r,u);if(d!==Be$2)return d}c=t[a+8],c!==nn$1&&Vu(r,t[y].data[a+8]===u)&&Bu(i,a,t)?(s=l,a=so$1(c),t=ao$1(c,t)):a=-1;}}return o}function cg(e,t,n,r,o,i){let s=t[y],a=s.data[e+8],l=no$1(a,s,n,r==null?Le(a)&&xs:r!=s&&(a.type&3)!==0,o&1&&i===a);return l!==null?Un(t,s,l,a,o):Be$2}function no$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 Un(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof Nt$2){let a=i;if(a.resolving)throw Hi();let c=co$1(a.canSeeViewProviders);a.resolving=true;s[n].type||s[n];let d=a.injectImpl?J(a.injectImpl):null;hs(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&Kh(n,s[n],t);}finally{d!==null&&J(d),co$1(c),a.resolving=false,gs();}}return i}function ug(e){if(typeof e==`string`)return e.charCodeAt(0)||0;let t=e.hasOwnProperty(yt$3)?e[yt$3]:void 0;return typeof t==`number`?t>=0?t&Sl:lg:t}function Bu(e,t,n){let r=1<<e;return !!(n[t+(e>>Ml)]&r)}function Vu(e,t){return !(e&2)&&!(e&1&&t)}var bt$3=class bt{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n;}get(t,n,r){return Rl(this._tNode,this._lView,t,ft$3(r),n)}};function lg(){return new bt$3(W$1(),D())}function Ol(e){return Qn(()=>{let t=e.prototype.constructor,n=t[Cn$1]||ks(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[Cn$1]||ks(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o);}return i=>new i})}function ks(e){return Fi(e)?()=>{let t=ks(H$1(e));return t&&t()}:Je(e)}function dg(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[E$1]&2048&&!Kt$1(s);){let a=xl(i,s,n,r|2,Be$2);if(a!==Be$2)return a;let c=i.parent;if(!c){let u=s[Yi$1];if(u){let l=u.get(n,Be$2,r&-5);if(l!==Be$2)return l}c=kl(s),s=s[vt$2];}i=c;}return o}function kl(e){let t=e[y],n=t.type;return n===2?t.declTNode:n===1?e[ee$1]:null}function fg(){return ln$1(W$1(),D())}function ln$1(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__=fg}return e})();function Fl(e){return e instanceof Se$1?e.nativeElement:e}function pg(){return this._results[Symbol.iterator]()}var lo$1=class lo{_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$1}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=Yc(t);(this._changesDetected=!Zc(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]=pg};function Ll(e){return (e.flags&128)===128}var Da=(function(e){return e[e.OnPush=0]=`OnPush`,e[e.Eager=1]=`Eager`,e[e.Default=1]=`Default`,e})(Da||{}),Pl=new Map,hg=0;function gg(){return hg++}function mg(e){Pl.set(e[Oe],e);}function Fs(e){Pl.delete(e[Oe]);}var Hu=`__ngContext__`;function on$1(e,t){Fe$1(t)?(e[Hu]=t[Oe],mg(t)):e[Hu]=t;}function jl(e){return Vl(e[Yt$1])}function Bl(e){return Vl(e[fe$1])}function Vl(e){for(;e!==null&&!pe$1(e);)e=e[fe$1];return e}var Ls;function va(e){Ls=e;}function Hl(){if(Ls!==void 0)return Ls;if(typeof document<`u`)return document;throw new m(210,false)}var dn$1=new I$1(``,{factory:()=>yg}),yg=`ng`;var Co$1=new I$1(``),xt$1=new I$1(``,{providedIn:`platform`,factory:()=>`unknown`}),Dg=new I$1(``),Io$1=new I$1(``,{factory:()=>g(j$1).body?.querySelector(`[ngCspNonce]`)?.getAttribute(`ngCspNonce`)||null});var $l=`r`;var Ul=`di`;var zl=false,Gl=new I$1(``,{factory:()=>zl});function wo$1(e){return (e.flags&32)===32}var Cg=()=>null;function Wl(e,t,n=false){return Cg()}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];Ln(i),a.contentQueries(2,t[s],s);}}}finally{v(r);}}}function Ps(e,t,n){Ln(0);let r=v(null);try{t(e,n);}finally{v(r);}}function Ea(e,t,n){if(Ki$1(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$1=(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$1||{});var Qr;function Ig(){if(Qr===void 0&&(Qr=null,de$2.trustedTypes))try{Qr=de$2.trustedTypes.createPolicy(`angular`,{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e});}catch{}return Qr}function _o$1(e){return Ig()?.createHTML(e)||e}var Kr;function wg(){if(Kr===void 0&&(Kr=null,de$2.trustedTypes))try{Kr=de$2.trustedTypes.createPolicy(`angular#unsafe-bypass`,{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e});}catch{}return Kr}function $u(e){return wg()?.createHTML(e)||e}var ze$1=class ze{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t;}toString(){return `SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Mr})`}},js=class extends ze$1{getTypeName(){return `HTML`}},Bs=class extends ze$1{getTypeName(){return `Style`}},Vs=class extends ze$1{getTypeName(){return `Script`}},Hs=class extends ze$1{getTypeName(){return `URL`}},$s=class extends ze$1{getTypeName(){return `ResourceURL`}};function ye$1(e){return e instanceof ze$1?e.changingThisBreaksApplicationSecurity:e}function We$2(e,t){let n=Zl(e);if(n!=null&&n!==t){if(n===`ResourceURL`&&t===`URL`)return true;throw new Error(`Required a safe ${t}, got a ${n} (see ${Mr})`)}return n===t}function Zl(e){return e instanceof ze$1&&e.getTypeName()||null}function Ca(e){return new js(e)}function Ia(e){return new Bs(e)}function wa(e){return new Vs(e)}function _a(e){return new Hs(e)}function Ta(e){return new $s(e)}function _g(e){let t=new zs(e);return Tg()?new Us(t):t}var Us=class{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t;}getInertBodyElement(t){t=`<body><remove></remove>`+t;try{let n=new window.DOMParser().parseFromString(_o$1(t),`text/html`).body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}},zs=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=_o$1(t),n}};function Tg(){try{return !!new window.DOMParser().parseFromString(_o$1(``),`text/html`)}catch{return false}}var Sg=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Kn(e){return e=String(e),e.match(Sg)?e:`unsafe:`+e}function qe$1(e){let t={};for(let n of e.split(`,`))t[n]=true;return t}function Jn(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=true);return t}var Yl=qe$1(`area,br,col,hr,img,wbr`),Ql=qe$1(`colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr`),Kl=qe$1(`rp,rt`),Mg=Jn(Kl,Ql),Uu=Jn(Yl,Jn(Ql,qe$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`)),Jn(Kl,qe$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`)),Mg),Jl=qe$1(`background,cite,href,itemtype,longdesc,poster,src,xlink:href`),xg=Jn(Jl,qe$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`),qe$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`)),Og=qe$1(`script,style,template`),Gs=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=Lg(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=Fg(n);if(i){n=i;break}n=o.pop();}}return this.buf.join(``)}startElement(t){let n=zu(t).toLowerCase();if(!Uu.hasOwnProperty(n))return this.sanitizedSomething=true,!Og.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(!xg.hasOwnProperty(a)){this.sanitizedSomething=true;continue}let c=i.value;Jl[a]&&(c=Kn(c)),this.buf.push(` `,s,`="`,Gu(c),`"`);}return this.buf.push(`>`),true}endElement(t){let n=zu(t).toLowerCase();Uu.hasOwnProperty(n)&&!Yl.hasOwnProperty(n)&&(this.buf.push(`</`),this.buf.push(n),this.buf.push(`>`));}chars(t){this.buf.push(Gu(t));}};function kg(e,t){return (e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function Fg(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw Xl(t);return t}function Lg(e){let t=e.firstChild;if(t&&kg(e,t))throw Xl(t);return t}function zu(e){let t=e.nodeName;return typeof t==`string`?t:`FORM`}function Xl(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var Pg=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,jg=/([^\#-~ |!])/g;function Gu(e){return e.replace(/&/g,`&amp;`).replace(Pg,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return `&#`+((n-55296)*1024+(r-56320)+65536)+`;`}).replace(jg,function(t){return `&#`+t.charCodeAt(0)+`;`}).replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}var Jr;function To$1(e,t){let n=null;try{Jr=Jr||_g(e);let r=t?String(t):``;n=Jr.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=Jr.getInertBodyElement(r);}while(r!==i);return _o$1(new Gs().sanitizeChildren(Wu(n)||n))}finally{if(n){let r=Wu(n)||n;for(;r.firstChild;)r.firstChild.remove();}}}function Wu(e){return `content`in e&&Bg(e)?e.content:null}function Bg(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName===`TEMPLATE`}var Vg=/^>|^->|<!--|-->|--!>|<!-$/g,Hg=/(<|>)/g,$g=`​$1​`;function Ug(e){return e.replace(Vg,t=>t.replace(Hg,$g))}function zg(e,t){return e.createText(t)}function Gg(e,t,n){e.setValue(t,n);}function Wg(e,t){return e.createComment(Ug(t))}function ed(e,t,n){return e.createElement(t,n)}function fo$1(e,t,n,r,o){e.insertBefore(t,n,r,o);}function td(e,t,n){e.appendChild(t,n);}function qu(e,t,n,r,o){r!==null?fo$1(e,t,n,r,o):td(e,t,n);}function nd(e,t,n,r){e.removeChild(null,t,n,r);}function qg(e,t,n){e.setAttribute(t,`style`,n);}function Zg(e,t,n){n===``?e.removeAttribute(t,`class`):e.setAttribute(t,`class`,n);}function rd(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&tg(e,t,r),o!==null&&Zg(e,t,o),i!==null&&qg(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 Yg(e){let t=od();return t?$u(t.sanitize(Me$1.HTML,e)||``):We$2(e,`HTML`)?$u(ye$1(e)):To$1(Hl(),zt$2(e))}function Qg(e){let t=od();return t?t.sanitize(Me$1.URL,e)||``:We$2(e,`URL`)?ye$1(e):Kn(zt$2(e))}function od(){let e=D();return e&&e[Re$1].sanitizer}function Kg(e){return e.ownerDocument.defaultView}function Jg(e){return e.ownerDocument}function Xg(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 id=`ng-template`;function em(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]==`string`;o+=2)if(t[o]===`class`&&Xg(t[o+1].toLowerCase(),n,0)!==-1)return true}else if(Sa(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 Sa(e){return e.type===4&&e.value!==id}function tm(e,t,n){return t===(e.type===4&&!n?id:e.value)}function nm(e,t,n){let r=4,o=e.attrs,i=o!==null?im(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!==``&&!tm(e,c,n)||c===``&&t.length===1){if(we$1(r))return false;s=true;}}else if(r&8){if(o===null||!em(e,o,c,n)){if(we$1(r))return false;s=true;}}else {let u=t[++a],l=rm(c,o,Sa(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 rm(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 sm(t,e)}function sd(e,t,n=false){for(let r=0;r<t.length;r++)if(nm(e,t[r],n))return true;return false}function om(e){let t=e.attrs;if(t!=null){let n=t.indexOf(5);if((n&1)===0)return t[n+1]}return null}function im(e){for(let t=0;t<e.length;t++){let n=e[t];if(ng(n))return t}return e.length}function sm(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 am(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 Zu(e,t){return e?`:not(`+t.trim()+`)`:t}function cm(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+=Zu(i,o),o=``),r=s,i=i||!we$1(r);n++;}return o!==``&&(t+=Zu(i,o)),t}function um(e){return e.map(cm).join(`,`)}function lm(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$1={};function Ma(e,t,n,r,o,i,s,a,c,u,l){let d=R+r,p=d+o,f=dm(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 dm(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:ce$1);return n}function fm(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Ma(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function ba(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),es(d),d[$]=d[vt$2]=e,d[P$2]=n,d[Re$1]=s||e&&e[Re$1],d[b$1]=a||e&&e[b$1],d[$e$1]=c||e&&e[$e$1]||null,d[ee$1]=i,d[Oe]=gg(),d[Dt$2]=l,d[Yi$1]=u,d[te]=t.type==2?e[te]:d,d}function pm(e,t,n){let r=ge$2(t,e),o=fm(n),i=e[Re$1].rendererFactory,s=Na(e,ba(e,o,null,ad(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function ad(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function cd(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 Na(e,t){return e[Yt$1]?e[Zi$1][fe$1]=t:e[Yt$1]=t,e[Zi$1]=t,t}function ud(e=1){ld(O$1(),D(),je$2()+e);}function ld(e,t,n,r){if((t[E$1]&3)===3){let i=e.preOrderCheckHooks;i!==null&&eo$1(t,i,n);}else {let i=e.preOrderHooks;i!==null&&to$1(t,i,0,n);}it$2(n);}var So$1=(function(e){return e[e.None=0]=`None`,e[e.SignalBased=1]=`SignalBased`,e[e.HasDecoratorInputTransform=2]=`HasDecoratorInputTransform`,e})(So$1||{});function Ws(e,t,n,r){let o=v(null);try{let[i,s,a]=e.inputs[n],c=null;(s&So$1.SignalBased)!==0&&(c=t[i][G]),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):vl(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||{}),hm;function Aa(e,t){return hm(e,t)}typeof document<`u`&&document?.documentElement?.getAnimations;var qs=new WeakMap;function gm(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 mm(e,t){let n=qs.get(e);n?n.includes(t)||n.push(t):qs.set(e,[t]);}var st$2=new Set,Mo$1=(function(e){return e[e.CHANGE_DETECTION=0]=`CHANGE_DETECTION`,e[e.AFTER_NEXT_RENDER=1]=`AFTER_NEXT_RENDER`,e})(Mo$1||{}),Ot$2=new I$1(``),Yu=new Set;function Ze$1(e){Yu.has(e)||(Yu.add(e),performance?.mark?.(`mark_feature_usage`,{detail:{feature:e}}));}var Ra=(()=>{class e{impl=null;execute(){this.impl?.execute();}static ɵprov=C({token:e,providedIn:`root`,factory:()=>new e})}return e})(),dd=[0,1,2,3],fd=(()=>{class e{ngZone=g(X);scheduler=g(tt$1);errorHandler=g(le$1,{optional:true});sequences=new Set;deferredRegistrations=new Set;executing=false;constructor(){g(Ot$2,{optional:true});}execute(){let n=this.sequences.size>0;n&&M$2(S.AfterRenderHooksStart),this.executing=true;for(let r of dd)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[Ct$2]??=[]).push(n),_t$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(Mo$1.AFTER_NEXT_RENDER,n):n()}static ɵprov=C({token:e,providedIn:`root`,factory:()=>new e})}return e})(),po$1=class po{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?.[Ct$2];t&&(this.view[Ct$2]=t.filter(n=>n!==this));}};function pd(e,t){let n=t?.injector??g(Z);return Ze$1(`NgAfterNextRender`),Dm(e,n,t,true)}function ym(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function Dm(e,t,n,r){let o=t.get(Ra);o.impl??=t.get(fd);let i=t.get(Ot$2,null,{optional:true}),s=n?.manualCleanup!==true?t.get(Ue$2):null,a=t.get(jn,null,{optional:true}),c=new po$1(o.impl,ym(e),a?.view,r,s,i?.snapshot(null));return o.impl.register(c),c}var hd=new I$1(``,{factory:()=>{let e=g(re$2),t=new Set;return e.onDestroy(()=>t.clear()),{queue:t,isScheduled:false,scheduler:null,injector:e}}});function gd(e,t,n){let r=e.get(hd);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 vm(e,t){let n=e.get(hd);if(t.detachedLeaveAnimationFns){for(let r of t.detachedLeaveAnimationFns)n.queue.delete(r);t.detachedLeaveAnimationFns=void 0;}}function Em(e,t){for(let[n,r]of t)gd(e,r.animateFns);}function Qu(e,t,n,r){let o=e?.[ke]?.enter;t!==null&&o&&o.has(n.index)&&Em(r,o);}function Ku(e,t,n,r){try{n.get(Nn);}catch{return r(false)}let o=e?.[ke],i=Cm(e,t,o);if(i.size===0){let s=false;if(e){let a=[];bo$1(e,t,a),s=a.length>0;}if(!s)return r(false)}e&&st$2.add(e[Oe]),gd(n,()=>Im(e,t,o||void 0,i,r),o||void 0);}function Cm(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 Im(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&&bo$1(e,t,i),i.length>0){let s=n||e?.[ke];if(s){let a=s.running;a&&i.push(a),s.running=Promise.allSettled(i),wm(e,s.running,o);}else Promise.allSettled(i).then(()=>{e&&st$2.delete(e[Oe]),o(true);});}else e&&st$2.delete(e[Oe]),o(false);}function bo$1(e,t,n){if(Le(t))Ju(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];Ju(s,n);}}let r=t.child;for(;r;)bo$1(e,r,n),r=r.next;}function Ju(e,t){let n=e[ke];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;)bo$1(e,r,t),r=r.next;}function wm(e,t,n){t.then(()=>{e[ke]?.running===t&&(e[ke].running=void 0,st$2.delete(e[Oe])),n(true);});}function tn$1(e,t,n,r,o,i,s,a){if(o!=null){let c,u=false;pe$1(o)?c=o:Fe$1(o)&&(u=true,o=o[Ce$1]);let l=he$1(o);e===0&&r!==null?(Qu(a,r,i,n),s==null?td(t,r,l):fo$1(t,r,l,s||null,true)):e===1&&r!==null?(Qu(a,r,i,n),fo$1(t,r,l,s||null,true),gm(i,l)):e===2?(a?.[ke]?.leave?.has(i.index)&&mm(i,l),Ku(a,i,n,d=>{nd(t,l,u,d);})):e===3&&Ku(a,i,n,()=>{t.destroyNode(l);}),c!=null&&Om(t,e,n,c,i,r,s);}}function _m(e,t){md(e,t),t[Ce$1]=null,t[ee$1]=null;}function Tm(e,t,n,r,o,i){r[Ce$1]=o,r[ee$1]=t,Ao$1(e,r,n,1,o,i);}function md(e,t){t[Re$1].changeDetectionScheduler?.notify(9),Ao$1(e,t,t[b$1],2,null,null);}function Sm(e){let t=e[Yt$1];if(!t)return ws(e[y],e);for(;t;){let n=null;if(Fe$1(t))n=t[Yt$1];else {let r=t[L$1];r&&(n=r);}if(!n){for(;t&&!t[fe$1]&&t!==e;)Fe$1(t)&&ws(t[y],t),t=t[$];t===null&&(t=e),Fe$1(t)&&ws(t[y],t),n=t&&t[fe$1];}t=n;}}function xa(e,t){let n=e[It$2],r=n.indexOf(t);n.splice(r,1);}function No(e,t){if(wt$3(t))return;let n=t[b$1];n.destroyNode&&Ao$1(e,t,n,3,null,null),Sm(t);}function ws(e,t){if(wt$3(t))return;let n=v(null);try{t[E$1]&=-129,t[E$1]|=256,t[se$1]&&lt$2(t[se$1]),bm(e,t),Mm(e,t),t[y].type===1&&t[b$1].destroy();let r=t[rt$1];if(r!==null&&pe$1(t[$])){r!==t[$]&&xa(r,t);let o=t[xe$2];o!==null&&o.detachView(e);}Fs(t);}finally{v(n);}}function Mm(e,t){let n=e.cleanup,r=t[Zt$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[Zt$1]=null);let o=t[He$2];if(o!==null){t[He$2]=null;for(let s=0;s<o.length;s++){let a=o[s];a();}}let i=t[Xe$1];if(i!==null){t[Xe$1]=null;for(let s of i)s.destroy();}}function bm(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 Nt$2)){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 yd(e,t,n){return Nm(e,t.parent,n)}function Nm(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(Le(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===_e$1.None||o===_e$1.Emulated)return null}return ge$2(r,n)}function Dd(e,t,n){return Rm(e,t,n)}function Am(e,t,n){return e.type&40?ge$2(e,n):null}var Rm=Am;function Oa(e,t,n,r){let o=yd(e,r,t),i=t[b$1],a=Dd(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 Hn(e,t){if(t!==null){let n=t.type;if(n&3)return ge$2(t,e);if(n&4)return Zs(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return Hn(e,r);{let o=e[t.index];return pe$1(o)?Zs(-1,o):he$1(o)}}else {if(n&128)return Hn(e,t.next);if(n&32)return Aa(t,e)()||he$1(e[t.index]);{let r=vd(e,t);if(r!==null){if(Array.isArray(r))return r[0];return Hn(et$1(e[te]),r)}else return Hn(e,t.next)}}}return null}function vd(e,t){if(t!==null){let r=e[te][ee$1],o=t.projection;return r.projection[o]}return null}function Zs(e,t){let n=L$1+e+1;if(n<t.length){let r=t[n],o=r[y].firstChild;if(o!==null)return Hn(r,o)}return t[ot$2]}function ka(e,t,n,r,o,i,s){for(;n!=null;){let a=r[$e$1];if(n.type===128){n=n.next;continue}let c=r[n.index],u=n.type;if(s&&t===0&&(c&&on$1(he$1(c),r),n.flags|=2),!wo$1(n))if(u&8)ka(e,t,n.child,r,o,i,false),tn$1(t,e,a,o,c,n,i,r);else if(u&32){let l=Aa(n,r),d;for(;d=l();)tn$1(t,e,a,o,d,n,i,r);tn$1(t,e,a,o,c,n,i,r);}else u&16?Ed(e,t,r,n,o,i):tn$1(t,e,a,o,c,n,i,r);n=s?n.projectionNext:n.next;}}function Ao$1(e,t,n,r,o,i){ka(n,r,e.firstChild,t,o,i,false);}function xm(e,t,n){let r=t[b$1];Ed(r,0,t,n,yd(e,n,t),Dd(n.parent||t[ee$1],n,t));}function Ed(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];tn$1(t,e,n[$e$1],o,l,r,i,n);}else {let u=c,l=s[$];Ll(r)&&(u.flags|=128),ka(e,t,u,l,o,i,true);}}function Om(e,t,n,r,o,i,s){let a=r[ot$2];a!==he$1(r)&&tn$1(t,e,n,i,a,o,s);for(let u=L$1;u<r.length;u++){let l=r[u];Ao$1(l[y],l,e,t,i,a);}}function km(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 Cd(e,t,n,r,o){let i=je$2(),s=r&2;try{it$2(-1),s&&t.length>R&&ld(e,t,R,!1);M$2(s?S.TemplateUpdateStart:S.TemplateCreateStart,o,n),n(r,o);}finally{it$2(i);M$2(s?S.TemplateUpdateEnd:S.TemplateCreateEnd,o,n);}}function Ro$1(e,t,n){Bm(e,t,n),(n.flags&64)===64&&Vm(e,t,n);}function fn$1(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 Fm(e,t,n,r){let i=r.get(Gl,zl)||n===_e$1.ShadowDom||n===_e$1.ExperimentalIsolatedShadowDom,s=e.selectRootElement(t,i);return s}function jm(e){return e===`class`?`className`:e===`for`?`htmlFor`:e===`formaction`?`formAction`:e===`innerHtml`?`innerHTML`:e===`readonly`?`readOnly`:e===`tabindex`?`tabIndex`:e}function Id(e,t,n,r,o,i){let s=t[y];if(ko$1(e,s,t,n,r)){Le(e)&&_d(t,e.index);return}e.type&3&&(n=jm(n)),wd(e,t,n,r,o,i);}function wd(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 _d(e,t){let n=ae$1(t,e);n[E$1]&16||(n[E$1]|=64);}function Bm(e,t,n){let r=n.directiveStart,o=n.directiveEnd;Le(n)&&pm(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||uo$1(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=Un(t,e,s,n);if(on$1(c,t),i!==null&&Um(t,s-r,c,a,n,i),Ie$1(a)){let u=ae$1(n.index,t);u[P$2]=Un(t,e,s,n);}}}function Vm(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=Du();try{it$2(i);for(let a=r;a<o;a++){let c=e.data[a],u=t[a];Ur(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&Hm(c,u);}}finally{it$2(-1),Ur(s);}}function Hm(e,t){e.hostBindings!==null&&e.hostBindings(1,t);}function Fa(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];sd(t,i.selectors,false)&&(r??=[],Ie$1(i)?r.unshift(i):r.push(i));}return r}function $m(e,t,n,r,o,i){let s=ge$2(e,t);Td(t[b$1],s,i,e.value,n,r,o);}function Td(e,t,n,r,o,i,s){if(i==null)e.removeAttribute(t,o,n);else {let a=s==null?zt$2(i):s(i,r||``,o);e.setAttribute(t,o,a,n);}}function Um(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];Ws(r,n,c,u);}}function xo$1(e,t,n,r,o){let i=R+n,s=t[y],a=o(s,t,e,r,n);t[i]=a,Tt$2(e,true);let c=e.type===2;return c?(rd(t[b$1],a,e),(lu()===0||Qt$1(e))&&on$1(a,t),du()):on$1(a,t),qr()&&(!c||!wo$1(e))&&Oa(s,t,a,e),e}function Oo(e){let t=e;return us()?ls():(t=t.parent,Tt$2(t,false)),t}function zm(e,t){let n=e[$e$1];if(!n)return;let r;try{r=n.get(St$2,null);}catch{r=null;}r?.(t);}function ko$1(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];Ws(d,n[u],l,o),a=true;}if(i)for(let c of i){let u=n[c],l=t.data[c];Ws(l,u,r,o),a=true;}return a}function Gm(e,t){let n=ae$1(t,e),r=n[y];Wm(r,n);let o=n[Ce$1];o!==null&&n[Dt$2]===null&&(n[Dt$2]=Wl(o,n[$e$1])),M$2(S.ComponentStart);try{La(r,n,n[P$2]);}finally{M$2(S.ComponentEnd,n[P$2]);}}function Wm(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n]);}function La(e,t,n){Gr(t);try{let r=e.viewQuery;r!==null&&Ps(1,r,n);let o=e.template;o!==null&&Cd(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[xe$2]?.finishViewCreation(e),e.staticContentQueries&&ql(e,t),e.staticViewQueries&&Ps(2,e.viewQuery,n);let i=e.components;i!==null&&qm(t,i);}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=true,e.firstCreatePass=false),r}finally{t[E$1]&=-5,Wr();}}function qm(e,t){for(let n=0;n<t.length;n++)Gm(e,t[n]);}function Xn(e,t,n,r){let o=v(null);try{let i=t.tView,c=ba(e,i,n,e[E$1]&4096?4096:16,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null);c[rt$1]=e[t.index];let l=e[xe$2];return l!==null&&(c[xe$2]=l.createEmbeddedView(i)),La(i,c,n),c}finally{v(o);}}function sn$1(e,t){return !t||t.firstChild===null||Ll(e)}function zn(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$1(i)),pe$1(i)&&Sd(i,r);let s=n.type;if(s&8)zn(e,t,n.child,r);else if(s&32){let a=Aa(n,t),c;for(;c=a();)r.push(c);}else if(s&16){let a=vd(t,n);if(Array.isArray(a))r.push(...a);else {let c=et$1(t[te]);zn(c[y],c,a,r,true);}}n=o?n.projectionNext:n.next;}return r}function Sd(e,t){for(let n=L$1;n<e.length;n++){let r=e[n],o=r[y].firstChild;o!==null&&zn(r[y],r,o,t);}e[ot$2]!==e[Ce$1]&&t.push(e[ot$2]);}function Md(e){if(e[Ct$2]!==null){for(let t of e[Ct$2])t.impl.addSequence(t);e[Ct$2].length=0;}}var bd=[];function Zm(e){return e[se$1]??Ym(e)}function Ym(e){let t=bd.pop()??Object.create(Km);return t.lView=e,t}function Qm(e){e.lView[se$1]!==e&&(e.lView=null,bd.push(e));}var Km=s(r({},Pt$2),{consumerIsAlwaysLive:true,kind:`template`,consumerMarkedDirty:e=>{_t$2(e.lView);},consumerOnSignalRead(){this.lView[se$1]=this;}});function Jm(e){let t=e[se$1]??Object.create(Xm);return t.lView=e,t}var Xm=s(r({},Pt$2),{consumerIsAlwaysLive:true,kind:`template`,consumerMarkedDirty:e=>{let t=et$1(e.lView);for(;t&&!Nd(t[y]);)t=et$1(t);t&&Vr(t);},consumerOnSignalRead(){this.lView[se$1]=this;}});function Nd(e){return e.type!==2}function Ad(e){if(e[Xe$1]===null)return;let t=true;for(;t;){let n=false;for(let r of e[Xe$1])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 ey=100;function Rd(e,t=0){let r=e[Re$1].rendererFactory;r.begin?.();try{ty(e,t);}finally{r.end?.();}}function ty(e,t){let n=fs();try{wn$1(!0),Ys(e,t);let r=0;for(;Jt$1(e);){if(r===ey)throw new m(103,!1);r++,Ys(e,1);}}finally{wn$1(n);}}function ny(e,t,n,r){if(wt$3(t))return;let o=t[E$1];Gr(t);let a=true,c=null,u=null;Nd(e)?(u=Zm(t),c=Bt$2(u)):Dr()===null?(a=false,u=Jm(t),c=Bt$2(u)):t[se$1]&&(lt$2(t[se$1]),t[se$1]=null);try{es(t),gu(e.bindingStartIndex),n!==null&&Cd(e,t,n,2,r);let l=(o&3)===3;if(l){let f=e.preOrderCheckHooks;f!==null&&eo$1(t,f,null);}else {let f=e.preOrderHooks;f!==null&&to$1(t,f,0,null),Cs(t,0);}if(ry(t),Ad(t),xd(t,0),e.contentQueries!==null&&ql(e,t),true)if(l){let f=e.contentCheckHooks;f!==null&&eo$1(t,f);}else {let f=e.contentHooks;f!==null&&to$1(t,f,1),Cs(t,1);}iy(e,t);let d=e.components;d!==null&&kd(t,d,0);let p=e.viewQuery;if(p!==null&&Ps(2,p,r),true)if(l){let f=e.viewCheckHooks;f!==null&&eo$1(t,f);}else {let f=e.viewHooks;f!==null&&to$1(t,f,2),Cs(t,2);}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[jr]){for(let f of t[jr])f();t[jr]=null;}Md(t),t[E$1]&=-73;}catch(l){throw _t$2(t),l}finally{u!==null&&(yn$1(u,c),a&&Qm(u)),Wr();}}function xd(e,t){for(let n=jl(e);n!==null;n=Bl(n))for(let r=L$1;r<n.length;r++){let o=n[r];Od(o,t);}}function ry(e){for(let t=jl(e);t!==null;t=Bl(t)){if(!(t[E$1]&2))continue;let n=t[It$2];for(let r=0;r<n.length;r++){let o=n[r];Vr(o);}}}function oy(e,t,n){M$2(S.ComponentStart);let r=ae$1(t,e);try{Od(r,n);}finally{M$2(S.ComponentEnd,r[P$2]);}}function Od(e,t){Br(e)&&Ys(e,t);}function Ys(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&&Dn$1(i)),s||=false,i&&(i.dirty=false),e[E$1]&=-9217,s)ny(r,e,r.template,e[P$2]);else if(o&8192){let a=v(null);try{Ad(e),xd(e,1);let c=r.components;c!==null&&kd(e,c,1),Md(e);}finally{v(a);}}}function kd(e,t,n){for(let r=0;r<t.length;r++)oy(e,t[r],n);}function iy(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)it$2(~o);else {let i=o,s=n[++r],a=n[++r];yu(s,i);let c=t[i];M$2(S.HostBindingsUpdateStart,c);try{a(2,c);}finally{M$2(S.HostBindingsUpdateEnd,c);}}}}finally{it$2(-1);}}function Pa(e,t){let n=fs()?64:1088;for(e[Re$1].changeDetectionScheduler?.notify(t);e;){e[E$1]|=n;let r=et$1(e);if(Kt$1(e)&&!r)return e;e=r;}return null}function Fd(e,t,n,r){return [e,true,0,t,null,r,null,n,null,null]}function Ld(e,t){let n=L$1+t;if(n<e.length)return e[n]}function er(e,t,n,r=true){let o=t[y];if(sy(o,t,e,n),r){let s=Zs(n,e),a=t[b$1],c=a.parentNode(e[ot$2]);c!==null&&Tm(o,e[ee$1],a,t,c,s);}let i=t[Dt$2];i!==null&&i.firstChild!==null&&(i.firstChild=null);}function Pd(e,t){let n=Gn(e,t);return n!==void 0&&No(n[y],n),n}function Gn(e,t){if(e.length<=L$1)return;let n=L$1+t,r=e[n];if(r){let o=r[rt$1];o!==null&&o!==e&&xa(o,r),t>0&&(e[n-1][fe$1]=r[fe$1]);let i=Mn$1(e,L$1+t);_m(r[y],r);let s=i[xe$2];s!==null&&s.detachView(i[y]),r[$]=null,r[fe$1]=null,r[E$1]&=-129;}return r}function sy(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],Ui$1(n,L$1+r,t)):(n.push(t),t[fe$1]=null),t[$]=n;let s=t[rt$1];s!==null&&n!==s&&jd(s,t);let a=t[xe$2];a!==null&&a.insertView(e),Hr(t),t[E$1]|=128;}function jd(e,t){let n=e[It$2],r=t[$];if(Fe$1(r))e[E$1]|=2;else {let o=r[$][te];t[te]!==o&&(e[E$1]|=2);}n===null?e[It$2]=[t]:n.push(t);}var at$2=class at{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=false;exhaustive;get rootNodes(){let t=this._lView,n=t[y];return zn(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n;}get context(){return this._lView[P$2]}set context(t){this._lView[P$2]=t;}get destroyed(){return wt$3(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[$];if(pe$1(t)){let n=t[Rn],r=n?n.indexOf(this):-1;r>-1&&(Gn(t,r),Mn$1(n,r));}this._attachedToViewContainer=false;}No(this._lView[y],this._lView);}onDestroy(t){ts(this._lView,t);}markForCheck(){Pa(this._cdRefInjectingView||this._lView,4);}detach(){this._lView[E$1]&=-129;}reattach(){Hr(this._lView),this._lView[E$1]|=128;}detectChanges(){this._lView[E$1]|=1024,Rd(this._lView);}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new m(902,false);this._attachedToViewContainer=true;}detachFromAppRef(){this._appRef=null;let t=Kt$1(this._lView),n=this._lView[rt$1];n!==null&&!t&&xa(n,this._lView),md(this._lView[y],this._lView);}attachToAppRef(t){if(this._attachedToViewContainer)throw new m(902,false);this._appRef=t;let n=Kt$1(this._lView),r=this._lView[rt$1];r!==null&&!n&&jd(r,this._lView),Hr(this._lView);}};function ay(e){return Jt$1(e._lView)||!!(e._lView[E$1]&64)}function cy(e){Vr(e._lView);}var At$2=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=uy;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 at$2(Xn(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:o}))}}return e})();function uy(){return Fo$1(W$1(),D())}function Fo$1(e,t){return e.type&4?new At$2(t,e,ln$1(e,t)):null}function kt$2(e,t,n,r,o){let i=e.data[t];if(i===null)i=ly(e,t,n,r,o),mu()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=hu();i.injectorIndex=s===null?-1:s.injectorIndex;}return Tt$2(i,true),i}function ly(e,t,n,r,o){let i=cs(),s=us(),a=s?i:i&&i.parent,c=e.data[t]=fy(e,a,n,t,r,o);return dy(e,c,i,s),c}function dy(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 fy(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return is()&&(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 py(e){let t=e[Qi$1]??[],r=e[$][b$1],o=[];for(let i of t)i.data[Ul]!==void 0?o.push(i):hy(i,r);e[Qi$1]=o;}function hy(e,t){let n=0,r=e.firstChild;if(r){let o=e.data[$l];for(;n<o;){let i=r.nextSibling;nd(t,r,false),r=i,n++;}}}var gy=()=>null,my=()=>null;function ho$1(e,t){return gy()}function Bd(e,t,n){return my()}var Vd=class{},Lo=class{},Qs=class{resolveComponentFactory(t){throw new m(917,false)}},Po$1=class Po{static NULL=new Qs},Ge$1=class Ge{},tr=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>yy()}return e})();function yy(){let e=D(),n=ae$1(W$1().index,e);return (Fe$1(n)?n:e)[b$1]}var Hd=(()=>{class e{static ɵprov=C({token:e,providedIn:`root`,factory:()=>null})}return e})();var ro$1={},Ks=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n;}get(t,n,r){let o=this.injector.get(t,ro$1,r);return o!==ro$1||n===ro$1?o:this.parentInjector.get(t,n,r)}};function go$1(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=Nr(o,a);else if(i==2){let c=a,u=t[++s];r=Nr(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 Rl(W$1(),n,H$1(e),t)}function $d(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}Ey(e,t,n,a,i,c,u);}i!==null&&r!==null&&Dy(n,r,i);}function Dy(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 vy(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index);}function Ey(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,vy(e,n,p)),Os(uo$1(n,t),e,f.type);}Sy(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=cd(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let p=0;p<a;p++){let f=r[p];if(n.mergedAttrs=rn$1(n.mergedAttrs,f.hostAttrs),Iy(e,n,t,d,f),Ty(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++;}Cy(e,n,i);}function Cy(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))el(0,t,o,r),el(1,t,o,r),nl(t,r,false);else {let i=n.get(o);tl(0,t,i,r),tl(1,t,i,r),nl(t,r,true);}}}function el(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),Ud(t,i);}}function tl(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),Ud(t,s);}}function Ud(e,t){t===`class`?e.flags|=8:t===`style`&&(e.flags|=16);}function nl(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||Sa(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 Iy(e,t,n,r,o){e.data[r]=o;let s=new Nt$2(o.factory||(o.factory=Je(o.type)),Ie$1(o),ne$1,null);e.blueprint[r]=s,n[r]=s,wy(e,t,r,cd(e,n,o.hostVars,ce$1),o);}function wy(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;_y(s)!=a&&s.push(a),s.push(n,r,i);}}function _y(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n==`number`&&n<0)return n}return 0}function Ty(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 Sy(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t;}function ja(e,t,n,r,o,i,s,a){let c=t[y],u=c.consts,d=kt$2(c,e,n,r,me$2(u,s));return $d(c,t,d,me$2(u,a),o),d.mergedAttrs=rn$1(d.mergedAttrs,d.attrs),d.attrs!==null&&go$1(d,d.attrs,false),d.mergedAttrs!==null&&go$1(d,d.mergedAttrs,true),c.queries!==null&&c.queries.elementStart(c,d),d}function Ba$1(e,t){wl(e,t),Ki$1(t)&&e.queries.elementEnd(t);}function zd(e,t,n,r,o,i){let s=t.consts,c=kt$2(t,e,n,r,me$2(s,o));if(c.mergedAttrs=rn$1(c.mergedAttrs,c.attrs),i!=null){let u=me$2(s,i);c.localNames=[];for(let l=0;l<u.length;l+=2)c.localNames.push(u[l],-1);}return c.attrs!==null&&go$1(c,c.attrs,false),c.mergedAttrs!==null&&go$1(c,c.mergedAttrs,true),t.queries!==null&&t.queries.elementStart(t,c),c}function Va(e){return e!==null&&(typeof e==`function`||typeof e==`object`)}function Gd(e,t,n){return e[t]=n}function oe$2(e,t,n){if(n===ce$1)return false;let r=e[t];return Object.is(r,n)?false:(e[t]=n,true)}function My(e,t,n,r){let o=oe$2(e,t,n);return oe$2(e,t+1,r)||o}function oo$1(e,t,n){return function r(o){Pa(Le(e)?ae$1(e.index,t):t,5);let s=t[P$2],a=rl(t,s,n,o),c=r.__ngNextListenerFn__;for(;c;)a=rl(t,s,c,o)&&a,c=c.__ngNextListenerFn__;return a}}function rl(e,t,n,r){let o=v(null);try{return M$2(S.OutputStart,t,n),n(r)!==!1}catch(i){return zm(e,i),false}finally{M$2(S.OutputEnd,t,n),v(o);}}function Wd(e,t,n,r,o,i,s,a){let c=Qt$1(e),u=false,l=null;if(!r&&c&&(l=Ny(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(!by(i))qd(r?_=>r(he$1(_[e.index])):e.index,t,n,i,a,f,false);}return u}function by(e){return e.startsWith(`animation`)||e.startsWith(`transition`)}function Ny(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[Zt$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?rs(t):null,c=ns(n),u=c.length;c.push(o,i),a&&a.push(r,e,u,(u+1)*(s?-1:1));}function ol(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 Js=Symbol(`BINDING`);var Xs=class extends Po$1{ngModule;constructor(t){super(),this.ngModule=t;}resolveComponentFactory(t){return new an$1(nt$1(t),this.ngModule)}};function Ay(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&So$1.SignalBased)!==0};return o&&(i.transform=o),i})}function Ry(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function xy(e,t,n){let r=t instanceof re$2?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new Ks(n,r):n}function Oy(e){let t=e.get(Ge$1,null);if(t===null)throw new m(407,false);return {rendererFactory:t,sanitizer:e.get(Hd,null),changeDetectionScheduler:e.get(tt$1,null),ngReflect:false}}function ky(e,t){let n=Zd(e);return ed(t,n,n===`svg`?Ji$1:n===`math`?ou:null)}function Zd(e){return (e.selectors[0][0]||`div`).toLowerCase()}var an$1=class an extends Lo{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=Ay(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=Ry(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=um(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=Fy(r,c,s,i),l=xy(c,o||this.ngModule,t),d=Oy(l),p=d.rendererFactory.createRenderer(null,c),f=r?Fm(p,r,c.encapsulation,l):ky(c,p),h=s?.some(il)||i?.some(F=>typeof F!=`function`&&F.bindings.some(il)),_=ba(null,u,null,512|ad(c),null,null,d,p,l,null,Wl(f,l,!0));_[R]=f,Gr(_);let N=null;try{let F=ja(R,_,2,`#host`,()=>u.directiveRegistry,!0,0);rd(p,f,F),on$1(f,_),Ro$1(u,_,F),Ea(u,F,_),Ba$1(u,F),n!==void 0&&Py(F,this.ngContentSelectors,n),N=ae$1(F.index,_),_[P$2]=N[P$2],La(u,_,null);}catch(F){throw N!==null&&Fs(N),Fs(_),F}finally{M$2(S.DynamicComponentEnd),Wr();}return new mo$1(this.componentType,_,!!h)}finally{v(a);}}};function Fy(e,t,n,r){let o=e?[`ng-version`,`21.2.0`]:lm(t.selectors[0]),i=null,s=null,a=0;if(n)for(let l of n)a+=l[Js].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[Js].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=xr(typeof l==`function`?l:l.type);c.push(p);}return Ma(0,null,Ly(i,s),1,a,c,null,null,null,[o],null)}function Ly(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 il(e){let t=e[Js].kind;return t===`input`||t===`twoWay`}var mo$1=class mo extends Vd{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=xn$1(n[y],R),this.location=ln$1(this._tNode,n),this.instance=ae$1(this._tNode.index,n)[P$2],this.hostView=this.changeDetectorRef=new at$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;ko$1(r,o[y],o,t,n);this.previousInputValues.set(t,n);Pa(ae$1(r.index,o),1);}get injector(){return new bt$3(this._tNode,this._rootLView)}destroy(){this.hostView.destroy();}onDestroy(t){this.hostView.onDestroy(t);}};function Py(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 Ft$2=(()=>{class e{static __NG_ELEMENT_ID__=jy}return e})();function jy(){return Qd(W$1(),D())}var By=Ft$2,Yd=class extends By{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r;}get element(){return ln$1(this._hostTNode,this._hostLView)}get injector(){return new bt$3(this._hostTNode,this._hostLView)}get parentInjector(){let t=ya(this._hostTNode,this._hostLView);if(Tl(t)){let n=ao$1(t,this._hostLView),r=so$1(t),o=n[y].data[r+8];return new bt$3(o,n)}else return new bt$3(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1);}get(t){let n=sl(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=ho$1(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,sn$1(this._hostTNode,s)),a}createComponent(t,n,r,o,i,s,a){let c=t&&!qh(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 an$1(nt$1(t)),d=r||this.parentInjector;if(!i&&l.ngModule==null){let F=(c?d:this.parentInjector).get(re$2,null);F&&(i=F);}let p=nt$1(l.componentType??{}),f=ho$1(this._lContainer,p?.id??null),h=null,_=l.create(d,o,h,i,s,a);return this.insertImpl(_.hostView,u,sn$1(this._hostTNode,f)),_}insert(t,n){return this.insertImpl(t,n,true)}insertImpl(t,n,r){let o=t._lView;if(su(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else {let c=o[$],u=new Yd(c,c[ee$1],c[$]);u.detach(u.indexOf(t));}}let i=this._adjustIndex(n),s=this._lContainer;return er(s,o,i,r),t.attachToViewContainerRef(),Ui$1(_s(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=sl(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Gn(this._lContainer,n);r&&(Mn$1(_s(this._lContainer),n),No(r[y],r));}detach(t){let n=this._adjustIndex(t,-1),r=Gn(this._lContainer,n);return r&&Mn$1(_s(this._lContainer),n)!=null?new at$2(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function sl(e){return e[Rn]}function _s(e){return e[Rn]||(e[Rn]=[])}function Qd(e,t){let n,r=t[e.index];return pe$1(r)?n=r:(n=Fd(r,t,null,e),t[e.index]=n,Na(t,n)),Hy(n,t,e,r),new Yd(n,e,t)}function Vy(e,t){let n=e[b$1],r=n.createComment(``),o=ge$2(t,e);return fo$1(n,n.parentNode(o),r,n.nextSibling(o),false),r}var Hy=zy;function zy(e,t,n,r){if(e[ot$2])return;let o;n.type&8?o=he$1(r):o=Vy(t,n),e[ot$2]=o;}var ea=class e{queryList;matches=null;constructor(t){this.queryList=t;}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty();}},ta=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++)$a(t,n).matches!==null&&this.queries[n].setDirty();}},na=class{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t==`string`?this.predicate=Qy(t):this.predicate=t;}},ra=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);}},oa=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,Gy(n,i)),this.matchTNodeWithReadOption(t,n,no$1(n,t,i,false,false));}else r===At$2?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,no$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===Ft$2||o===At$2&&n.type&4)this.addMatch(n.index,-2);else {let i=no$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 Gy(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 Wy(e,t){return e.type&11?ln$1(e,t):e.type&4?Fo$1(e,t):null}function qy(e,t,n,r){return n===-1?Wy(t,e):n===-2?Zy(e,t,r):Un(e,e[y],n,t)}function Zy(e,t,n){if(n===Se$1)return ln$1(t,e);if(n===At$2)return Fo$1(t,e);if(n===Ft$2)return Qd(t,e)}function Kd(e,t,n,r){let o=t[xe$2].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(qy(t,l,s[c+1],n.metadata.read));}}o.matches=a;}return o.matches}function ia(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=Kd(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[rt$1]===p[$]&&ia(p[y],p,u,r);}if(l[It$2]!==null){let d=l[It$2];for(let p=0;p<d.length;p++){let f=d[p];ia(f[y],f,u,r);}}}}}return r}function Ha(e,t){return e[xe$2].queries[t].queryList}function Yy(e,t,n){let r=new lo$1((n&4)===4);return uu(e,t,r,r.destroy),(t[xe$2]??=new ta).queries.push(new ea(r))-1}function Jd(e,t,n){let r=O$1();return r.firstCreatePass&&(Ky(r,new na(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=true)),Yy(r,D(),t)}function Qy(e){return e.split(`,`).map(t=>t.trim())}function Ky(e,t,n){e.queries===null&&(e.queries=new ra),e.queries.track(new oa(t,n));}function $a(e,t){return e.queries.getByIndex(t)}function Xd(e,t){let n=e[y],r=$a(n,t);return r.crossesNgTemplate?ia(n,e,t,[]):Kd(n,e,r,t)}function ef(e,t,n){let r,o=vn$1(()=>{r._dirtyCounter();let i=Xy(r,e);if(t&&i===void 0)throw new m(-951,false);return i});return r=o[G],r._dirtyCounter=Mt$2(0),r._flatValue=void 0,o}function tf(e){return ef(true,false)}function nf(e){return ef(true,true)}function Jy(e,t){let n=e[G];n._lView=D(),n._queryIndex=t,n._queryList=Ha(n._lView,t),n._queryList.onDirty(()=>n._dirtyCounter.update(r=>r+1));}function Xy(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=Ha(n,r),i=Xd(n,r);return o.reset(i,Fl),t?o.first:o._changesDetected||e._flatValue===void 0?e._flatValue=o.toArray():e._flatValue}var Wn=class{};var qn=class extends Wn{injector;componentFactoryResolver=new Xs(this);instance=null;constructor(t){super();let n=new ht$1([...t.providers,{provide:Wn,useValue:this},{provide:Po$1,useValue:this.componentFactoryResolver}],t.parent||qt$1(),t.debugName,new Set([`environment`]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers();}destroy(){this.injector.destroy();}onDestroy(t){this.injector.onDestroy(t);}};function rf(e,t,n=null){return new qn({providers:e,parent:t,debugName:n,runEnvironmentInitializers:true}).injector}var eD=(()=>{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=Gi$1(false,n.type),o=r.length>0?rf([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$2))})}return e})();function of(e){return Qn(()=>{let t=sf(e),n=s(r({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Da.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(eD).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??false,data:e.data||{},encapsulation:e.encapsulation||_e$1.Emulated,styles:e.styles||Q,_:null,schemas:e.schemas||null,tView:null,id:``});t.standalone&&Ze$1(`NgStandalone`),af(n);let r$1=e.dependencies;return n.directiveDefs=al(r$1,tD),n.pipeDefs=al(r$1,zc),n.id=oD(n),n})}function tD(e){return nt$1(e)||xr(e)}function pn$1(e){return Qn(()=>({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 nD(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=So$1.None,c=null),n[i]=[r,a,c],t[i]=s;}return n}function rD(e){if(e==null)return Ee$1;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function hn$1(e){return Qn(()=>{let t=sf(e);return af(t),t})}function Ua(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 sf(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:nD(e.inputs,t),outputs:rD(e.outputs),debugInfo:null}}function af(e){e.features?.forEach(t=>t(e));}function al(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 oD(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 iD(e){let t=n=>{let r=Array.isArray(e);n.hostDirectives===null?(n.resolveHostDirectives=sD,n.hostDirectives=r?e.map(sa):[e]):r?n.hostDirectives.unshift(...e.map(sa)):n.hostDirectives.unshift(e);};return t.ngInherit=true,t}function sD(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,cf(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 cf(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)cl(sa(i),t,n);}else cl(r,t,n);}function cl(e,t,n){let r=xr(e.directive);aD(r.declaredInputs,e.inputs),cf(r,t,n),n.set(r,e),t.push(r);}function sa(e){return typeof e==`function`?{directive:H$1(e),inputs:Ee$1,outputs:Ee$1}:{directive:H$1(e.directive),inputs:ul(e.inputs),outputs:ul(e.outputs)}}function ul(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 aD(e,t){for(let n in t)if(t.hasOwnProperty(n)){let r=t[n];e[r]=e[n];}}function cD(e){return Object.getPrototypeOf(e.prototype).constructor}function za(e){let t=cD(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=Ts(e.inputs),s.declaredInputs=Ts(e.declaredInputs),s.outputs=Ts(e.outputs);let a=o.hostBindings;a&&pD(e,a);let c=o.viewQuery,u=o.contentQueries;if(c&&dD(e,c),u&&fD(e,u),uD(e,o),Uc(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===za&&(n=false);}}t=Object.getPrototypeOf(t);}lD(r);}function uD(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 lD(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=rn$1(o.hostAttrs,n=rn$1(n,o.hostAttrs));}}function Ts(e){return e===Ee$1?{}:e===Q?[]:e}function dD(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o);}:e.viewQuery=t;}function fD(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i);}:e.contentQueries=t;}function pD(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o);}:e.hostBindings=t;}function uf(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=rn$1(e.mergedAttrs,e.attrs);let l=e.tView=Ma(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),Tt$2(e,false);let c=gD(n,t);qr()&&Oa(n,t,c,e),on$1(c,t);let u=Fd(c,t,c,e);t[r+R]=u,Na(t,u);}function hD(e,t,n,r,o,i,s,a,c,u,l){let d=n+R,p;return t.firstCreatePass?(p=kt$2(t,d,4,s||null,a||null),$d(t,e,p,me$2(t.consts,u),Fa),wl(t,p)):p=t.data[d],uf(p,e,t,n,r,o,i,c),Qt$1(p)&&Ro$1(t,e,p),u!=null&&fn$1(e,p,l),p}function Zn(e,t,n,r,o,i,s,a,c,u,l){let d=n+R,p;if(t.firstCreatePass){if(p=kt$2(t,d,4,s||null,a||null),u!=null){let f=me$2(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 uf(p,e,t,n,r,o,i,c),u!=null&&fn$1(e,p,l),p}function lf(e,t,n,r,o,i,s,a){let c=D(),u=O$1();return hD(c,u,e,t,n,r,o,me$2(u.consts,i),void 0,s,a),lf}var gD=mD;function mD(e,t,n,r){return Pn(true),t[b$1].createComment(``)}function Ga(e){return typeof e==`function`&&e[G]!==void 0}function Wa(e){return Ga(e)&&typeof e.set==`function`}var qa=new I$1(``);function jo(e){return !!e&&typeof e.then==`function`}function Za(e){return !!e&&typeof e.subscribe==`function`}var df=new I$1(``);var Ya=(()=>{class e{resolve;reject;initialized=false;done=false;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r;});appInits=g(df,{optional:true})??[];injector=g(Z);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Pr(this.injector,o);if(jo(i))n.push(i);else if(Za(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})(),ff=new I$1(``);function pf(){Di(()=>{throw new m(600,``)});}function hf(e){return e.isBoundToModule}var yD=10;var ct$1=(()=>{class e{_runningTick=false;_destroyed=false;_destroyListeners=[];_views=[];internalErrorHandler=g(St$2);afterRenderManager=g(Ra);zonelessEnabled=g(Bn);rootEffectScheduler=g(Yr);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=false;afterTick=new U$1;get allViews(){return [...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=g(en$1);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(q(n=>!n))}constructor(){g(Ot$2,{optional:true});}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r();}});}).finally(()=>{n.unsubscribe();})}_injector=g(re$2);_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 Lo;if(!this._injector.get(Ya).done)throw new m(405,``);let c;s?c=n:c=this._injector.get(Po$1).resolveComponentFactory(n),this.componentTypes.push(c.componentType);let u=hf(c)?void 0:this._injector.get(Wn),l=r||c.selector,d=c.create(o,[],l,u),p=d.location.nativeElement,f=d.injector.get(qa,null);return f?.registerApplication(p),d.onDestroy(()=>{this.detachView(d.hostView),$n(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(Mo$1.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(Ge$1,null,{optional:true}));let n=0;for(;this.dirtyFlags!==0&&n++<yD;){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&&!Jt$1(o))continue;Rd(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})=>Jt$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;$n(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(ff,[]).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),()=>$n(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 $n(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1);}function gf(e,t){let n=D();if(oe$2(n,Pe$1(),t)){let o=O$1(),i=Xt$1();if(ko$1(i,o,n,e,t))Le(i)&&_d(n,i.index);else {let a=ge$2(i,n);Td(n[b$1],a,null,i.value,e,t,null);}}return gf}function mf(e,t,n,r){let o=D();if(oe$2(o,Pe$1(),t)){O$1();$m(Xt$1(),o,e,t,n,r);}return mf}var aa=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 Ss(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function DD(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=Ss(s,l,s,d,n);if(p!==0){p<0&&e.updateValue(s,d),s++;continue}let f=e.at(a),h=t[u],_=Ss(a,f,u,h,n);if(_!==0){_<0&&e.updateValue(a,h),a--,u--;continue}let N=n(s,l),F=n(a,f),gn=n(s,d);if(Object.is(gn,F)){let oi=n(u,h);Object.is(oi,N)?(e.swap(s,a),e.updateValue(a,h),u--,a--):e.move(a,s),e.updateValue(s,d),s++;continue}if(o??=new yo$1,i??=dl(e,s,a,n),ca(e,o,s,gn))e.updateValue(s,d),s++,a++;else if(i.has(gn))o.set(N,e.detach(s)),a--;else {let oi=e.create(s,t[s]);e.attach(s,oi),s++,a++;}}for(;s<=u;)ll(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=Ss(s,d,s,p,n);if(f!==0)f<0&&e.updateValue(s,p),s++,l=u.next();else {o??=new yo$1,i??=dl(e,s,a,n);let h=n(s,p);if(ca(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;)ll(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 ca(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),true):false}function ll(e,t,n,r,o){if(ca(e,t,r,n(r,o)))e.updateValue(r,o);else {let i=e.create(r,o);e.attach(r,i);}}function dl(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 yo$1=class yo{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 vD(e,t,n,r,o,i,s,a){Ze$1(`NgControlFlow`);let c=D(),u=O$1();return Zn(c,u,e,t,n,r,o,me$2(u.consts,i),256,s,a),Qa}function Qa(e,t,n,r,o,i,s,a){Ze$1(`NgControlFlow`);let c=D(),u=O$1();return Zn(c,u,e,t,n,r,o,me$2(u.consts,i),512,s,a),Qa}function ED(e,t){Ze$1(`NgControlFlow`);let n=D(),r=Pe$1(),o=n[r]!==ce$1?n[r]:-1,i=o!==-1?Do$1(n,R+o):void 0,s=0;if(oe$2(n,r,e)){let a=v(null);try{if(i!==void 0&&Pd(i,s),e!==-1){let c=R+e,u=Do$1(n,c),l=fa(n[y],c),d=Bd(u,l,n);er(u,Xn(n,l,t,{dehydratedView:d}),s,sn$1(l,d));}}finally{v(a);}}else if(i!==void 0){let a=Ld(i,s);a!==void 0&&(a[P$2]=t);}}var ua=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 CD(e){return e}function ID(e,t){return t}var la=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r;}};function wD(e,t,n,r,o,i,s,a,c,u,l,d,p){Ze$1(`NgControlFlow`);let f=D(),h=O$1(),_=c!==void 0,N=D(),gn=new la(_,s);N[R+e]=gn,Zn(f,h,e+1,t,n,r,o,me$2(h.consts,i),256);}var da=class extends aa{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)[P$2].$implicit}attach(t,n){let r=n[Dt$2];this.needsIndexUpdate||=t!==this.length,er(this.lContainer,n,t,sn$1(this.templateTNode,r)),TD(this.lContainer,t);}detach(t){return this.needsIndexUpdate||=t!==this.length-1,SD(this.lContainer,t),MD(this.lContainer,t)}create(t,n){let r=ho$1(this.lContainer,this.templateTNode.tView.ssrId);return Xn(this.hostLView,this.templateTNode,new ua(this.lContainer,n,t),{dehydratedView:r})}destroy(t){No(t[y],t);}updateValue(t,n){this.getLView(t)[P$2].$implicit=n;}reset(){this.needsIndexUpdate=false;}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[P$2].$index=t;}getLView(t){return bD(this.lContainer,t)}};function _D(e){let t=v(null),n=je$2();try{let r=D(),o=r[y],i=r[n],s=n+1,a=Do$1(r,s);if(i.liveCollection===void 0)i.liveCollection=new da(a,r,fa(o,s));else i.liveCollection.reset();let c=i.liveCollection;if(DD(c,e,i.trackByFn,t),c.updateIndexes(),i.hasEmptyBlock){let u=Pe$1(),l=c.length===0;if(oe$2(r,u,l)){let d=n+2,p=Do$1(r,d);if(l){let f=fa(o,d),h=Bd(p,f,r);er(p,Xn(r,f,void 0,{dehydratedView:h}),0,sn$1(f,h));}else o.firstUpdatePass&&py(p),Pd(p,0);}}}finally{v(t);}}function Do$1(e,t){return e[t]}function TD(e,t){if(e.length<=L$1)return;let r=e[L$1+t],o=r?r[ke]:void 0;if(r&&o&&o.detachedLeaveAnimationFns&&o.detachedLeaveAnimationFns.length>0){let i=r[$e$1];vm(i,o),st$2.delete(r[Oe]),o.detachedLeaveAnimationFns=void 0;}}function SD(e,t){if(e.length<=L$1)return;let r=e[L$1+t],o=r?r[ke]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[]);}function MD(e,t){return Gn(e,t)}function bD(e,t){return Ld(e,t)}function fa(e,t){return xn$1(e,t)}function yf(e,t,n){let r=D();if(oe$2(r,Pe$1(),t)){O$1();Id(Xt$1(),r,e,t,r[b$1],n);}return yf}function pa(e,t,n,r,o){ko$1(t,e,n,o?`class`:`style`,r);}function Ka(e,t,n,r){let o=D(),i=o[y],s=e+R,a=i.firstCreatePass?ja(s,o,2,t,Fa,$r(),n,r):i.data[s];if(xo$1(a,o,e,t,vf),Qt$1(a)){let c=o[y];Ro$1(c,o,a),Ea(c,a,o);}return r!=null&&fn$1(o,a),Ka}function Ja(){let e=O$1(),n=Oo(W$1());return e.firstCreatePass&&Ba$1(e,n),ss(n)&&as(),os(),n.classesWithoutHost!=null&&Xh(n)&&pa(e,n,D(),n.classesWithoutHost,true),n.stylesWithoutHost!=null&&eg(n)&&pa(e,n,D(),n.stylesWithoutHost,false),Ja}function Df(e,t,n,r){return Ka(e,t,n,r),Ja(),Df}function Bo(e,t,n,r){let o=D(),i=o[y],s=e+R,a=i.firstCreatePass?zd(s,i,2,t,n,r):i.data[s];return xo$1(a,o,e,t,vf),r!=null&&fn$1(o,a),Bo}function Vo$1(){return ss(Oo(W$1()))&&as(),os(),Vo$1}function Xa(e,t,n,r){return Bo(e,t,n,r),Vo$1(),Xa}var vf=(e,t,n,r,o)=>(Pn(true),ed(t[b$1],r,Su()));function ec(e,t,n){let r=D(),o=r[y],i=e+R,s=o.firstCreatePass?ja(i,r,8,`ng-container`,Fa,$r(),t,n):o.data[i];if(xo$1(s,r,e,`ng-container`,wf),Qt$1(s)){let a=r[y];Ro$1(a,r,s),Ea(a,s,r);}return n!=null&&fn$1(r,s),ec}function Ho(){let e=O$1(),n=Oo(W$1());return e.firstCreatePass&&Ba$1(e,n),Ho}function Ef(e,t,n){return ec(e,t,n),Ho(),Ef}function tc(e,t,n){let r=D(),o=r[y],i=e+R,s=o.firstCreatePass?zd(i,o,8,`ng-container`,t,n):o.data[i];return xo$1(s,r,e,`ng-container`,wf),n!=null&&fn$1(r,s),tc}function Cf(){Oo(W$1());return Ho}function If(e,t,n){return tc(e,t,n),Cf(),If}var wf=(e,t,n,r,o)=>(Pn(true),Wg(t[b$1],``));function ND(){return D()}function _f(e,t,n){let r=D();if(oe$2(r,Pe$1(),t)){O$1();wd(Xt$1(),r,e,t,r[b$1],n);}return _f}var Vn$1=void 0;function AD(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,``).length;return t===1&&n===0?1:5}var RD=[`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`]],Vn$1,[[`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`]],Vn$1,[[`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}`,Vn$1,Vn$1,Vn$1],[`.`,`,`,`;`,`%`,`+`,`-`,`E`,`×`,`‰`,`∞`,`NaN`,`:`],[`#,##0.###`,`#,##0%`,`¤#,##0.00`,`#E0`],`USD`,`$`,`US Dollar`,{},`ltr`,AD],Ms={};function ue$2(e){let t=xD(e),n=fl(t);if(n)return n;let r=t.split(`-`)[0];if(n=fl(r),n)return n;if(r===`en`)return RD;throw new m(701,false)}function fl(e){return e in Ms||(Ms[e]=de$2.ng&&de$2.ng.common&&de$2.ng.common.locales&&de$2.ng.common.locales[e]),Ms[e]}var B$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})(B$1||{});function xD(e){return e.toLowerCase().replace(/_/g,`-`)}var nr=`en-US`;function Tf(e){typeof e==`string`&&e.toLowerCase().replace(/_/g,`-`);}function Sf(e,t,n){let r=D(),o=O$1(),i=W$1();return bf(o,r,r[b$1],i,e,t,n),Sf}function Mf(e,t,n){let r=D(),o=O$1(),i=W$1();return (i.type&3||n)&&Wd(i,o,r,n,r[b$1],e,t,oo$1(i,r,t)),Mf}function bf(e,t,n,r,o,i,s){let a=true,c=null;if((r.type&3||s)&&(c??=oo$1(r,t,i),Wd(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??=oo$1(r,t,i),ol(r,t,p,f,o,c);}if(u&&u.length)for(let d of u)c??=oo$1(r,t,i),ol(r,t,d,o,o,c);}}function kD(e=1){return wu(e)}function FD(e,t){let n=null,r=om(e);for(let o=0;o<t.length;o++){let i=t[o];if(i===`*`){n=o;continue}if(r===null?sd(e,i,true):am(r,i))return o}return n}function Nf(e){let t=D()[te][ee$1];if(!t.projection){let r=t.projection=Qc(e?e.length:1,null),o=r.slice(),i=t.child;for(;i!==null;){if(i.type!==128){let s=e?FD(i,e):0;s!==null&&(o[s]?o[s].projectionNext=i:r[s]=i,o[s]=i);}i=i.next;}}}function Af(e,t=0,n,r,o,i){let s=D(),a=O$1(),c=null;let u=kt$2(a,R+e,16,null,null);u.projection===null&&(u.projection=t),ls();let d=!s[Dt$2]||is();s[te][ee$1].projection[u.projection]===null&&c!==null?LD(s,a,c):d&&!wo$1(u)&&xm(a,s,u);}function LD(e,t,n){let r=R+n,o=t.data[r],i=e[r],s=ho$1(i,o.tView.ssrId);er(i,Xn(e,o,void 0,{dehydratedView:s}),0,sn$1(o,s));}function nc(e,t,n){return Jd(e,t,n),nc}function Rf(e){let t=D(),n=O$1(),r=zr();Ln(r+1);let o=$a(n,r);if(e.dirty&&iu(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else {let i=Xd(t,r);e.reset(i,Fl),e.notifyOnChanges();}return true}return false}function xf(){return Ha(D(),zr())}function Of(e,t,n,r){return Jy(e,Jd(t,n,r)),Of}function PD(e=1){Ln(zr()+e);}function jD(e){return On(ds(),R+e)}function Xr(e,t){return e<<17|t<<2}function Rt$2(e){return e>>17&32767}function BD(e){return (e&2)==2}function VD(e,t){return e&131071|t<<17}function ha(e){return e|2}function cn$1(e){return (e&131068)>>2}function bs(e,t){return e&-131069|t<<2}function HD(e){return (e&1)===1}function ga(e){return e|1}function $D(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=Rt$2(s),c=cn$1(s);e[r]=n;let u=false,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||Gt$1(d,l)>0)&&(u=true);}else l=n;if(o)if(c!==0){let p=Rt$2(e[a+1]);e[r+1]=Xr(p,a),p!==0&&(e[p+1]=bs(e[p+1],r)),e[a+1]=VD(e[a+1],r);}else e[r+1]=Xr(a,0),a!==0&&(e[a+1]=bs(e[a+1],r)),a=r;else e[r+1]=Xr(c,0),a===0?a=r:e[c+1]=bs(e[c+1],r),c=r;u&&(e[r+1]=ha(e[r+1])),pl(e,l,r,true),pl(e,l,r,false),UD(t,l,e,r,i),s=Xr(a,c),i?t.classBindings=s:t.styleBindings=s;}function UD(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t==`string`&&Gt$1(i,t)>=0&&(n[r+1]=ga(n[r+1]));}function pl(e,t,n,r){let o=e[n+1],i=t===null,s=r?Rt$2(o):cn$1(o),a=false;for(;s!==0&&(a===false||i);){let c=e[s],u=e[s+1];zD(c,t)&&(a=true,e[s+1]=r?ga(u):ha(u)),s=r?Rt$2(u):cn$1(u);}a&&(e[n+1]=r?ha(o):ga(o));}function zD(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?true:Array.isArray(e)&&typeof t==`string`?Gt$1(e,t)>=0:false}var U={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function kf(e){return e.substring(U.key,U.keyEnd)}function GD(e){return e.substring(U.value,U.valueEnd)}function WD(e){return Pf(e),Ff(e,un$1(e,0,U.textEnd))}function Ff(e,t){let n=U.textEnd;return n===t?-1:(t=U.keyEnd=ZD(e,U.key=t,n),un$1(e,t,n))}function qD(e){return Pf(e),Lf(e,un$1(e,0,U.textEnd))}function Lf(e,t){let n=U.textEnd,r=U.key=un$1(e,t,n);return n===r?-1:(r=U.keyEnd=YD(e,r,n),r=hl(e,r,n),r=U.value=un$1(e,r,n),r=U.valueEnd=QD(e,r,n),hl(e,r,n))}function Pf(e){U.key=0,U.keyEnd=0,U.value=0,U.valueEnd=0,U.textEnd=e.length;}function un$1(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function ZD(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}function YD(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 hl(e,t,n,r){return t=un$1(e,t,n),t<n&&t++,t}function QD(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=gl(e,c,s,n):t===s-4&&i===85&&o===82&&r===76&&c===40?a=s=gl(e,41,s,n):c>32&&(a=s),i=o,o=r,r=c&-33;}return a}function gl(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 rc(e,t,n){return jf(e,t,n,false),rc}function oc(e,t){return jf(e,t,null,true),oc}function KD(e){Bf($f,JD,e,false);}function JD(e,t){for(let n=qD(t);n>=0;n=Lf(t,n))$f(e,kf(t),GD(t));}function XD(e){Bf(sv,ev,e,true);}function ev(e,t){for(let n=WD(t);n>=0;n=Ff(t,n))bn$1(e,kf(t),true);}function jf(e,t,n,r){let o=D(),i=O$1(),s=ps(2);if(i.firstUpdatePass&&Hf(i,e,s,r),t!==ce$1&&oe$2(o,s,t)){let a=i.data[je$2()];Uf(i,a,o,o[b$1],e,o[s+1]=cv(t,n),r,s);}}function Bf(e,t,n,r){let o=O$1(),i=ps(2);o.firstUpdatePass&&Hf(o,null,i,r);let s=D();if(n!==ce$1&&oe$2(s,i,n)){let a=o.data[je$2()];if(zf(a,r)&&!Vf(o,i)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(n=Nr(c,n||``)),pa(o,a,s,n,r);}else av(o,a,s,s[b$1],s[i+1],s[i+1]=iv(e,t,n),r,i);}}function Vf(e,t){return t>=e.expandoStartIndex}function Hf(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[je$2()],s=Vf(e,n);zf(i,r)&&t===null&&!s&&(t=false),t=tv(o,i,t,r),$D(o,i,t,n,s,r);}}function tv(e,t,n,r){let o=vu(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Ns(null,e,t,n,r),n=Yn(n,t.attrs,r),i=null);else {let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Ns(o,e,t,n,r),i===null){let c=nv(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Ns(null,e,t,c[1],r),c=Yn(c,t.attrs,r),rv(e,t,r,c));}else i=ov(e,t,r);}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function nv(e,t,n){let r=n?t.classBindings:t.styleBindings;if(cn$1(r)!==0)return e[Rt$2(r)]}function rv(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[Rt$2(o)]=r;}function ov(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=Yn(r,s,n);}return Yn(r,t.attrs,n)}function Ns(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=Yn(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function Yn(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]),bn$1(e,s,n?true:t[++i]));}return e===void 0?null:e}function iv(e,t,n){if(n==null||n===``)return Q;let r=[],o=ye$1(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 $f(e,t,n){bn$1(e,t,ye$1(n));}function sv(e,t,n){let r=String(t);r!==``&&!r.includes(` `)&&bn$1(e,r,n);}function av(e,t,n,r,o,i,s,a){o===ce$1&&(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&&Uf(e,t,n,r,h,_,s,a),l=c<o.length?o[c]:null,d=u<i.length?i[u]:null;}}function Uf(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,u=c[a+1];if(!vo$1(HD(u)?ml(c,t,n,o,cn$1(u),s):void 0)){vo$1(i)||BD(u)&&(i=ml(c,null,n,o,a,s));km(r,s,Xi$1(je$2(),n),o,i);}}function ml(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$1&&(p=d?Q:void 0);let f=d?Fr(p,r):l===r?p:void 0;if(u&&!vo$1(f)&&(f=Fr(c,r)),vo$1(f)&&(a=f,s))return a;let h=e[o+1];o=s?Rt$2(h):cn$1(h);}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=Fr(c,r));}return a}function vo$1(e){return e!==void 0}function cv(e,t){return e==null||e===``||(typeof t==`string`?e=e+t:typeof e==`object`&&(e=br(ye$1(e)))),e}function zf(e,t){return (e.flags&(t?8:16))!==0}function uv(e,t=``){let n=D(),r=O$1(),o=e+R,i=r.firstCreatePass?kt$2(r,o,1,t,null):r.data[o],s=lv(r,n,i,t);n[o]=s,qr()&&Oa(r,n,s,i),Tt$2(i,false);}var lv=(e,t,n,r)=>(Pn(true),zg(t[b$1],r));function Gf(e,t,n,r=``){return oe$2(e,Pe$1(),n)?t+zt$2(n)+r:ce$1}function Wf(e){return ic(``,e),Wf}function ic(e,t,n){let r=D(),o=Gf(r,e,t,n);return o!==ce$1&&dv(r,je$2(),o),ic}function dv(e,t,n){let r=Xi$1(t,e);Gg(e[b$1],r,n);}function qf(e,t,n){Wa(t)&&(t=t());let r=D();if(oe$2(r,Pe$1(),t)){O$1();Id(Xt$1(),r,e,t,r[b$1],n);}return qf}function fv(e,t){let n=Wa(e);return n&&e.set(t),n}function Zf(e,t){let n=D(),r=O$1(),o=W$1();return bf(r,n,n[b$1],o,e,t),Zf}var Yf={};function Qf(e){Ze$1(`NgLet`);let t=O$1(),n=D(),r=e+R;return Tt$2(kt$2(t,r,128,null,null),false),kn(t,n,r,Yf),Qf}function pv(e){return kn(O$1(),D(),je$2(),e),e}function hv(e){let n=On(ds(),R+e);if(n===Yf)throw new m(314,false);return n}function gv(e){return oe$2(D(),Pe$1(),e)?zt$2(e):ce$1}function mv(e,t,n=``){return Gf(D(),e,t,n)}function yl(e,t,n){let r=O$1();r.firstCreatePass&&Kf(t,r.data,r.blueprint,Ie$1(e),n);}function Kf(e,t,n,r,o){if(e=H$1(e),Array.isArray(e))for(let i=0;i<e.length;i++)Kf(e[i],t,n,r,o);else {let i=O$1(),s=D(),a=W$1(),c=pt$3(e)?e:H$1(e.provide),u=qi$1(e),l=a.providerIndexes&1048575,d=a.directiveStart,p=a.providerIndexes>>20;if(pt$3(e)||!e.multi){let f=new Nt$2(u,o,ne$1,null),h=Rs(c,t,l+p,d);h===-1?(Os(uo$1(a,s),i,c),As(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=Rs(c,t,l+p,d),h=Rs(c,t,l,l+p),_=f>=0&&n[f],N=h>=0&&n[h];if(!_){Os(uo$1(a,s),i,c);let F=vv(yv,n.length,o,r,u);N&&(n[h].providerFactory=F),As(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,n.push(F),s.push(F);}else {let F=Jf(n[f],u,r);As(i,e,f>-1?f:h,F);}r&&N&&n[h].componentProviders++;}}}function As(e,t,n,r){let o=pt$3(t),i=tu(t);if(o||i){let c=(i?H$1(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 Jf(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Rs(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return -1}function yv(e,t,n,r,o){return ma(this.multi,[])}function ma(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r());}return t}function vv(e,t,n,r,o,i){let s=new Nt$2(e,n,ne$1,null);return s.multi=[],s.index=t,s.componentProviders=0,Jf(s,o,r&&!n),s}function Xf(e,t){return n=>{n.providersResolver=(r,o)=>yl(r,o?o(e):e,false);}}function Ev(e,t,n){return tp(D(),Fn(),e,t,n)}function Cv(e,t,n,r){return np(D(),Fn(),e,t,n,r)}function ep(e,t){let n=e[t];return n===ce$1?void 0:n}function tp(e,t,n,r,o,i){let s=t+n;return oe$2(e,s,o)?Gd(e,s+1,i?r.call(i,o):r(o)):ep(e,s+1)}function np(e,t,n,r,o,i,s){let a=t+n;return My(e,a,o,i)?Gd(e,a+2,s?r.call(s,o,i):r(o,i)):ep(e,a+2)}function Iv(e,t){let n=O$1(),r,o=e+R;n.firstCreatePass?(r=wv(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=Je(r.type)),a=J(ne$1);try{let c=co$1(!1),u=i();return co$1(c),kn(n,D(),o,u),u}finally{J(a);}}function wv(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function _v(e,t,n){let r=e+R,o=D(),i=On(o,r);return rp(o,r)?tp(o,Fn(),t,i.transform,n,i):i.transform(n)}function Tv(e,t,n,r){let o=e+R,i=D(),s=On(i,o);return rp(i,o)?np(i,Fn(),t,s.transform,n,r,s):s.transform(n,r)}function rp(e,t){return e[y].data[t].pure}function Sv(e,t){return Fo$1(e,t)}var op=(()=>{class e{applicationErrorHandler=g(St$2);appRef=g(ct$1);taskService=g(en$1);ngZone=g(X);zonelessEnabled=g(Bn);tracing=g(Ot$2,{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(_n$1):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(g(vs,{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?Ru:ms;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(_n$1+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 Mv(){return Ze$1(`NgZoneless`),Lr([...sc(),[]])}function sc(){return [{provide:tt$1,useExisting:op},{provide:X,useClass:Tn},{provide:Bn,useValue:true}]}function bv(){return typeof $localize<`u`&&$localize.locale||nr}var rr=new I$1(``,{factory:()=>g(rr,{optional:true,skipSelf:true})||bv()});var or=class{destroyed=false;listeners=null;errorHandler=g(le$1,{optional:true});destroyRef=g(Ue$2);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(gt$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 Nv(e,t){return vn$1(e)}var Uo=Symbol(`InputSignalNode#UNSET`),lp=s(r({},vr),{transformFn:void 0,applyValueToInputSignal(e,t){Ht$2(e,t);}});function dp(e,t){let n=Object.create(lp);n.value=e,n.transformFn=t?.transform;function r(){if(jt$1(n),n.value===Uo)throw new m(-950,null);return n.value}return r[G]=n,r}function Hb(e){return new or}function ip(e,t){return dp(e,t)}function zv(e){return dp(Uo,e)}var $b=(ip.required=zv,ip);function sp(e,t){return tf()}function Gv(e,t){return nf()}var Ub=(sp.required=Gv,sp);function fp(e,t){let n=Object.create(lp),r=new or;n.value=e;function o(){return jt$1(n),ap(n.value),n.value}return o[G]=n,o.asReadonly=Zr.bind(o),o.set=i=>{n.equal(n.value,i)||(Ht$2(n,i),r.emit(i));},o.update=i=>{ap(n.value),o.set(i(n.value));},o.subscribe=r.subscribe.bind(r),o.destroyRef=r.destroyRef,o}function ap(e){if(e===Uo)throw new m(952,false)}function cp(e,t){return fp(e)}function Wv(e){return fp(Uo)}var zb=(cp.required=Wv,cp);var ac=new I$1(``),qv=new I$1(``);function ir(e){return !e.moduleRef}function Zv(e){let t=ir(e)?e.r3Injector:e.moduleRef.injector,n=t.get(X);return n.run(()=>{ir(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(St$2),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r});}),ir(e)){let i=()=>t.destroy(),s=e.platformInjector.get(ac);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i);});}else {let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(ac);s.add(i),e.moduleRef.onDestroy(()=>{$n(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i);});}return Qv(r,n,()=>{let i=t.get(en$1),s=i.add(),a=t.get(Ya);return a.runInitializers(),a.donePromise.then(()=>{if(Tf(t.get(rr,nr)||nr),!t.get(qv,!0))return ir(e)?t.get(ct$1):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(ir(e)){let l=t.get(ct$1);return e.rootComponent!==void 0&&l.bootstrap(e.rootComponent),l}else return Yv?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s);})})})}var Yv;function Qv(e,t,n){try{let r=n();return jo(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var $o=null;function Kv(e=[],t){return Z.create({name:t,providers:[{provide:An$1,useValue:`platform`},{provide:ac,useValue:new Set([()=>$o=null])},...e]})}function Jv(e=[]){if($o)return $o;let t=Kv(e);return $o=t,pf(),Xv(t),t}function Xv(e){let t=e.get(Co$1,null);Pr(e,()=>{t?.forEach(n=>n());});}var pp=(()=>{class e{static __NG_ELEMENT_ID__=tE}return e})();function tE(e){return nE(W$1(),D(),(e&16)===16)}function nE(e,t,n){if(Le(e)&&!n){let r=ae$1(e.index,t);return new at$2(r,r)}else if(e.type&175){let r=t[te];return new at$2(r,t)}return null}var cc=class{supports(t){return t instanceof Map||Va(t)}create(){return new uc}},uc=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||Va(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 lc(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));}},lc=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(t){this.key=t;}};function up(){return new dc([new cc])}var dc=(()=>{class e{static ɵprov=C({token:e,providedIn:`root`,factory:up});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||up())}}}find(n){let r=this.factories.find(o=>o.supports(n));if(r)return r;throw new m(901,false)}}return e})();function hp(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:o}=e;M$2(S.BootstrapApplicationStart);try{let i=o?.injector??Jv(r);return Zv({r3Injector:new qn({providers:[sc(),Ou,...n||[]],parent:i,debugName:``,runEnvironmentInitializers:!1}).injector,platformInjector:i,rootComponent:t})}catch(i){return Promise.reject(i)}finally{M$2(S.BootstrapApplicationEnd);}}function rE(e){return typeof e==`boolean`?e:e!=null&&e!==`false`}function Wb(e,t=NaN){return !isNaN(parseFloat(e))&&!isNaN(Number(e))?Number(e):t}function gp(e,t){let n=nt$1(e),r=t.elementInjector||qt$1();return new an$1(n).create(r,t.projectableNodes,t.hostElement,t.environmentInjector,t.directives,t.bindings)}var mp=null;function Ye$1(){return mp}function fc(e){mp??=e;}var sr=class{},zo=(()=>{class e{historyGo(n){throw new Error(``)}static ɵfac=function(r){return new(r||e)};static ɵprov=C({token:e,factory:()=>g(yp),providedIn:`platform`})}return e})();var yp=(()=>{class e extends zo{_location;_history;_doc=g(j$1);constructor(){super(),this._location=window.location,this._history=window.history;}getBaseHrefFromDOM(){return Ye$1().getBaseHref(this._doc)}onPopState(n){let r=Ye$1().getGlobalEventTarget(this._doc,`window`);return r.addEventListener(`popstate`,n,false),()=>r.removeEventListener(`popstate`,n)}onHashChange(n){let r=Ye$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 Ep(e,t){return e?t?e.endsWith(`/`)?t.startsWith(`/`)?e+t.slice(1):e+t:t.startsWith(`/`)?e+t:`${e}/${t}`:e:t}function Dp(e){let t=e.search(/#|\?|$/);return e[t-1]===`/`?e.slice(0,t-1)+e.slice(t):e}function ut$3(e){return e&&e[0]!==`?`?`?${e}`:e}var Go=(()=>{class e{historyGo(n){throw new Error(``)}static ɵfac=function(r){return new(r||e)};static ɵprov=C({token:e,factory:()=>g(iE),providedIn:`root`})}return e})(),oE=new I$1(``),iE=(()=>{class e extends Go{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??g(j$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 Ep(this._baseHref,n)}path(n=false){let r=this._platformLocation.pathname+ut$3(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+ut$3(i));this._platformLocation.pushState(n,r,s);}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+ut$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(zo),T$1(oE,8))};static ɵprov=C({token:e,factory:e.ɵfac,providedIn:`root`})}return e})();var Cp=(()=>{class e{_subject=new U$1;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;this._basePath=cE(Dp(vp(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+ut$3(r))}normalize(n){return e.stripTrailingSlash(aE(this._basePath,vp(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+ut$3(r)),o);}replaceState(n,r=``,o=null){this._locationStrategy.replaceState(o,``,n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+ut$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=ut$3;static joinWithSlash=Ep;static stripTrailingSlash=Dp;static ɵfac=function(r){return new(r||e)(T$1(Go))};static ɵprov=C({token:e,factory:()=>sE(),providedIn:`root`})}return e})();function sE(){return new Cp(T$1(Go))}function aE(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===``||[`/`,`;`,`?`,`#`].includes(n[0])?n:t}function vp(e){return e.replace(/\/index.html$/,``)}function cE(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||{}),Ke$1={MinusSign:5};function _p(e){return ue$2(e)[B$1.LocaleId]}function Tp(e,t,n){let r=ue$2(e);return De$1(De$1([r[B$1.DayPeriodsFormat],r[B$1.DayPeriodsStandalone]],t),n)}function Sp(e,t,n){let r=ue$2(e);return De$1(De$1([r[B$1.DaysFormat],r[B$1.DaysStandalone]],t),n)}function Mp(e,t,n){let r=ue$2(e);return De$1(De$1([r[B$1.MonthsFormat],r[B$1.MonthsStandalone]],t),n)}function bp(e,t){let r=ue$2(e)[B$1.Eras];return De$1(r,t)}function ar(e,t){return De$1(ue$2(e)[B$1.DateFormat],t)}function cr(e,t){return De$1(ue$2(e)[B$1.TimeFormat],t)}function ur(e,t){let r=ue$2(e)[B$1.DateTimeFormat];return De$1(r,t)}function lr(e,t){let n=ue$2(e),r=n[B$1.NumberSymbols][t];return r}function Np(e){if(!e[B$1.ExtraData])throw new m(2303,false)}function Ap(e){let t=ue$2(e);return Np(t),(t[B$1.ExtraData][2]||[]).map(r=>typeof r==`string`?pc(r):[pc(r[0]),pc(r[1])])}function Rp(e,t,n){let r=ue$2(e);Np(r);return De$1(De$1([r[B$1.ExtraData][0],r[B$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 pc(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))?)?$/,Wo={},fE=/((?:[^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 xp(e,t,n,r){let o=CE(e);t=Qe$1(n,t)||t;let s=[],a;for(;t;)if(a=fE.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=kp(r,c),o=EE(o,r));let u=``;return s.forEach(l=>{let d=DE(l);u+=d?d(o,n,c):l===`''`?`'`:l.replace(/(^'|'$)/g,``).replace(/''/g,`'`);}),u}function Ko(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function Qe$1(e,t){let n=_p(e);if(Wo[n]??={},Wo[n][t])return Wo[n][t];let r=``;switch(t){case `shortDate`:r=ar(e,ie$1.Short);break;case `mediumDate`:r=ar(e,ie$1.Medium);break;case `longDate`:r=ar(e,ie$1.Long);break;case `fullDate`:r=ar(e,ie$1.Full);break;case `shortTime`:r=cr(e,ie$1.Short);break;case `mediumTime`:r=cr(e,ie$1.Medium);break;case `longTime`:r=cr(e,ie$1.Long);break;case `fullTime`:r=cr(e,ie$1.Full);break;case `short`:let o=Qe$1(e,`shortTime`),i=Qe$1(e,`shortDate`);r=qo(ur(e,ie$1.Short),[o,i]);break;case `medium`:let s=Qe$1(e,`mediumTime`),a=Qe$1(e,`mediumDate`);r=qo(ur(e,ie$1.Medium),[s,a]);break;case `long`:let c=Qe$1(e,`longTime`),u=Qe$1(e,`longDate`);r=qo(ur(e,ie$1.Long),[c,u]);break;case `full`:let l=Qe$1(e,`fullTime`),d=Qe$1(e,`fullDate`);r=qo(ur(e,ie$1.Full),[l,d]);break}return r&&(Wo[n][t]=r),r}function qo(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return t!=null&&r in t?t[r]:n})),e}function Ne$2(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 pE(e,t){return Ne$2(e,3).substring(0,t)}function V$1(e,t,n=0,r=false,o=false){return function(i,s){let a=hE(e,i);if((n>0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return pE(a,t);let c=lr(s,Ke$1.MinusSign);return Ne$2(a,t,c,r,o)}}function hE(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 gE(o,i,e,t,n,r)}}function gE(e,t,n,r,o,i){switch(n){case 2:return Mp(t,o,r)[e.getMonth()];case 1:return Sp(t,o,r)[e.getDay()];case 0:let s=e.getHours(),a=e.getMinutes();if(i){let u=Ap(t),l=Rp(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 Tp(t,o,r)[s<12?0:1];case 3:return bp(t,r)[e.getFullYear()<=0?0:1];default:throw new m(2302,false)}}function Zo(e){return function(t,n,r){let o=-1*r,i=lr(n,Ke$1.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(e){case 0:return (o>=0?`+`:``)+Ne$2(s,2,i)+Ne$2(Math.abs(o%60),2,i);case 1:return `GMT`+(o>=0?`+`:``)+Ne$2(s,1,i);case 2:return `GMT`+(o>=0?`+`:``)+Ne$2(s,2,i)+`:`+Ne$2(Math.abs(o%60),2,i);case 3:return r===0?`Z`:(o>=0?`+`:``)+Ne$2(s,2,i)+`:`+Ne$2(Math.abs(o%60),2,i);default:throw new m(2310,false)}}}var mE=0,Qo=4;function yE(e){let t=Ko(e,mE,1).getDay();return Ko(e,0,1+(t<=Qo?Qo:Qo+7)-t)}function Op(e){let t=e.getDay(),n=t===0?-3:Qo-t;return Ko(e.getFullYear(),e.getMonth(),e.getDate()+n)}function hc(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=Op(n),s=yE(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5);}return Ne$2(o,e,lr(r,Ke$1.MinusSign))}}function Yo(e,t=false){return function(n,r){return Ne$2(Op(n).getFullYear(),e,lr(r,Ke$1.MinusSign),t)}}var gc={};function DE(e){if(gc[e])return gc[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=V$1(0,1,0,false,true);break;case `yy`:t=V$1(0,2,0,true,true);break;case `yyy`:t=V$1(0,3,0,false,true);break;case `yyyy`:t=V$1(0,4,0,false,true);break;case `Y`:t=Yo(1);break;case `YY`:t=Yo(2,true);break;case `YYY`:t=Yo(3);break;case `YYYY`:t=Yo(4);break;case `M`:case `L`:t=V$1(1,1,1);break;case `MM`:case `LL`:t=V$1(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=hc(1);break;case `ww`:t=hc(2);break;case `W`:t=hc(1,true);break;case `d`:t=V$1(2,1);break;case `dd`:t=V$1(2,2);break;case `c`:case `cc`:t=V$1(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=V$1(3,1,-12);break;case `hh`:t=V$1(3,2,-12);break;case `H`:t=V$1(3,1);break;case `HH`:t=V$1(3,2);break;case `m`:t=V$1(4,1);break;case `mm`:t=V$1(4,2);break;case `s`:t=V$1(5,1);break;case `ss`:t=V$1(5,2);break;case `S`:t=V$1(6,1);break;case `SS`:t=V$1(6,2);break;case `SSS`:t=V$1(6,3);break;case `Z`:case `ZZ`:case `ZZZ`:t=Zo(0);break;case `ZZZZZ`:t=Zo(3);break;case `O`:case `OO`:case `OOO`:case `z`:case `zz`:case `zzz`:t=Zo(1);break;case `OOOO`:case `ZZZZ`:case `zzzz`:t=Zo(2);break;default:return null}return gc[e]=t,t}function kp(e,t){e=e.replace(/:/g,``);let n=Date.parse(`Jan 01, 1970 00:00:00 `+e)/6e4;return isNaN(n)?t:n}function vE(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function EE(e,t,n){let o=e.getTimezoneOffset();return vE(e,-1*(kp(t,o)-o))}function CE(e){if(Ip(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 Ko(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(dE))return IE(r)}let t=new Date(e);if(!Ip(t))throw new m(2311,false);return t}function IE(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 Ip(e){return e instanceof Date&&!isNaN(e.valueOf())}var mc=/\s+/,wp=[],wE=(()=>{class e{_ngEl;_renderer;initialClasses=wp;rawClass;stateMap=new Map;constructor(n,r){this._ngEl=n,this._renderer=r;}set klass(n){this.initialClasses=n!=null?n.trim().split(mc):wp;}set ngClass(n){this.rawClass=typeof n==`string`?n.trim().split(mc):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(mc).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(tr))};static ɵdir=hn$1({type:e,selectors:[[``,`ngClass`,``]],inputs:{klass:[0,`class`,`klass`],ngClass:`ngClass`}})}return e})();var _E=(()=>{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(dc),ne$1(tr))};static ɵdir=hn$1({type:e,selectors:[[``,`ngStyle`,``]],inputs:{ngStyle:`ngStyle`}})}return e})(),TE=(()=>{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(Ft$2))};static ɵdir=hn$1({type:e,selectors:[[``,`ngTemplateOutlet`,``]],inputs:{ngTemplateOutletContext:`ngTemplateOutletContext`,ngTemplateOutlet:`ngTemplateOutlet`,ngTemplateOutletInjector:`ngTemplateOutletInjector`},features:[Eo$1]})}return e})();function SE(e,t){return new m(2100,false)}var ME=`mediumDate`,Fp=new I$1(``),Lp=new I$1(``),bE=(()=>{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??ME,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return xp(n,s,i||this.locale,a)}catch(s){throw SE(e,s.message)}}static ɵfac=function(r){return new(r||e)(ne$1(rr,16),ne$1(Fp,24),ne$1(Lp,24))};static ɵpipe=Ua({name:`date`,type:e,pure:true})}return e})();var Pp=(()=>{class e{static ɵfac=function(r){return new(r||e)};static ɵmod=pn$1({type:e});static ɵinj=mt$3({})}return e})();function yc(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 dr=class{};var Dc=`browser`;function jp(e){return e===Dc}var fr=class{_doc;constructor(t){this._doc=t;}manager},Jo=(()=>{class e extends fr{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(j$1))};static ɵprov=C({token:e,factory:e.ɵfac})}return e})(),ti=new I$1(``),Ic=(()=>{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 Jo)).slice().reverse();let i=n.find(s=>s instanceof Jo);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(ti),T$1(X))};static ɵprov=C({token:e,factory:e.ɵfac})}return e})(),vc=`ng-app-id`;function Bp(e){for(let t of e)t.remove();}function Vp(e,t){let n=t.createElement(`style`);return n.textContent=e,n}function AE(e,t,n,r){let o=e.head?.querySelectorAll(`style[${vc}="${t}"],link[${vc}="${t}"]`);if(o)for(let i of o)i.removeAttribute(vc),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 Cc(e,t){let n=t.createElement(`link`);return n.setAttribute(`rel`,`stylesheet`),n.setAttribute(`href`,e),n}var wc=(()=>{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,AE(n,r,this.inline,this.external),this.hosts.add(n.head);}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,Vp);r?.forEach(o=>this.addUsage(o,this.external,Cc));}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&&(Bp(o.elements),r.delete(n)));}ngOnDestroy(){for(let[,{elements:n}]of [...this.inline,...this.external])Bp(n);this.hosts.clear();}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,Vp(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,Cc(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(j$1),T$1(dn$1),T$1(Io$1,8),T$1(xt$1))};static ɵprov=C({token:e,factory:e.ɵfac})}return e})(),Ec={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`},_c=/%COMP%/g;var $p=`%COMP%`,RE=`_nghost-${$p}`,xE=`_ngcontent-${$p}`,OE=true,kE=new I$1(``,{factory:()=>OE});function FE(e){return xE.replace(_c,e)}function LE(e){return RE.replace(_c,e)}function Up(e,t){return t.map(n=>n.replace(_c,e))}var Tc=(()=>{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 pr(n,s,a,this.tracingService);}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;let o=this.getOrCreateRenderer(n,r);return o instanceof ei?o.applyToHost(n):o instanceof hr&&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$1.Emulated:i=new ei(c,u,r,this.appId,l,s,a,d);break;case _e$1.ShadowDom:return new Xo(c,n,r,s,a,this.nonce,d,u);case _e$1.ExperimentalIsolatedShadowDom:return new Xo(c,n,r,s,a,this.nonce,d);default:i=new hr(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(Ic),T$1(wc),T$1(dn$1),T$1(kE),T$1(j$1),T$1(X),T$1(Io$1),T$1(Ot$2,8))};static ɵprov=C({token:e,factory:e.ɵfac})}return e})(),pr=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(Ec[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(Hp(t)?t.content:t).appendChild(n);}insertBefore(t,n,r){t&&(Hp(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=Ec[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r);}else t.setAttribute(n,r);}removeAttribute(t,n,r){if(r){let o=Ec[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=Ye$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 Hp(e){return e.tagName===`TEMPLATE`&&e.content!==void 0}var Xo=class extends pr{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=Up(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=Cc(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);}},hr=class extends pr{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?Up(c,u):u,this.styleUrls=r.getExternalStyles?.(c);}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls);}destroy(){this.removeStylesOnCompDestroy&&st$2.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls);}},ei=class extends hr{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=FE(u),this.hostAttr=LE(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 ni=class e extends sr{supportsDOMEvents=true;static makeCurrent(){fc(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=PE();return n==null?null:jE(n)}resetBaseElement(){gr=null;}getUserAgent(){return window.navigator.userAgent}getCookie(t){return yc(document.cookie,t)}},gr=null;function PE(){return gr=gr||document.head.querySelector(`base`),gr?gr.getAttribute(`href`):null}function jE(e){return new URL(e,document.baseURI).pathname}var BE=(()=>{class e{build(){return new XMLHttpRequest}static ɵfac=function(r){return new(r||e)};static ɵprov=C({token:e,factory:e.ɵfac})}return e})(),zp=[`alt`,`control`,`meta`,`shift`],VE={"\b":`Backspace`," ":`Tab`,"":`Delete`,"\x1B":`Escape`,Del:`Delete`,Esc:`Escape`,Left:`ArrowLeft`,Right:`ArrowRight`,Up:`ArrowUp`,Down:`ArrowDown`,Menu:`ContextMenu`,Scroll:`ScrollLock`,Win:`OS`},HE={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},Gp=(()=>{class e extends fr{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(()=>Ye$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.`),zp.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=VE[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`),zp.forEach(s=>{if(s!==o){let a=HE[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(j$1))};static ɵprov=C({token:e,factory:e.ɵfac})}return e})();async function $E(e,t){return hp(UE(e,t))}function UE(e,t){return {platformRef:t?.platformRef,appProviders:[...ZE,...e?.providers??[]],platformProviders:qE}}function zE(){ni.makeCurrent();}function GE(){return new le$1}function WE(){return va(document),document}var qE=[{provide:xt$1,useValue:Dc},{provide:Co$1,useValue:zE,multi:true},{provide:j$1,useFactory:WE}];var ZE=[{provide:An$1,useValue:`root`},{provide:le$1,useFactory:GE},{provide:ti,useClass:Jo,multi:true},{provide:ti,useClass:Gp,multi:true},Tc,wc,Ic,{provide:Ge$1,useExisting:Tc},{provide:dr,useClass:BE},[]];var YE=(()=>{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(QE),o},providedIn:`root`})}return e})(),QE=(()=>{class e extends YE{_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 We$2(r,`HTML`)?ye$1(r):To$1(this._doc,String(r)).toString();case Me$1.STYLE:return We$2(r,`Style`)?ye$1(r):r;case Me$1.SCRIPT:if(We$2(r,`Script`))return ye$1(r);throw new m(5200,false);case Me$1.URL:return We$2(r,`URL`)?ye$1(r):Kn(String(r));case Me$1.RESOURCE_URL:if(We$2(r,`ResourceURL`))return ye$1(r);throw new m(5201,false);default:throw new m(5202,false)}}bypassSecurityTrustHtml(n){return Ca(n)}bypassSecurityTrustStyle(n){return Ia(n)}bypassSecurityTrustScript(n){return wa(n)}bypassSecurityTrustUrl(n){return _a(n)}bypassSecurityTrustResourceUrl(n){return Ta(n)}static ɵfac=function(r){return new(r||e)(T$1(j$1))};static ɵprov=C({token:e,factory:e.ɵfac,providedIn:`root`})}return e})();function KA(e){return e.buttons===0||e.detail===0}function JA(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 Sc;function KE(){if(Sc==null){let e=typeof document<`u`?document.head:null;Sc=!!(e&&(e.createShadowRoot||e.attachShadow));}return Sc}function e0(e){if(KE()){let t=e.getRootNode?e.getRootNode():null;if(typeof ShadowRoot<`u`&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function t0(){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 n0(e){return e.composedPath?e.composedPath()[0]:e.target}var Mc;try{Mc=typeof Intl<`u`&&Intl.v8BreakIterator;}catch{Mc=false;}var Wp=(()=>{class e{_platformId=g(xt$1);isBrowser=this._platformId?jp(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||Mc)&&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 u0(e,t=0){return JE(e)?Number(e):arguments.length===2?t:0}function JE(e){return !isNaN(parseFloat(e))&&!isNaN(Number(e))}function l0(e){return e instanceof Se$1?e.nativeElement:e}var ri=new WeakMap,h0=(()=>{class e{_appRef;_injector=g(Z);_environmentInjector=g(re$2);load(n){let r=this._appRef=this._appRef||this._injector.get(ct$1),o=ri.get(r);o||(o={loaders:new Set,refs:[]},ri.set(r,o),r.onDestroy(()=>{ri.get(r)?.refs.forEach(i=>i.destroy()),ri.delete(r);})),o.loaders.has(n)||(o.loaders.add(n),o.refs.push(gp(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 m0(e){return Array.isArray(e)?e:[e]}var XE=new I$1(`cdk-dir-doc`,{providedIn:`root`,factory:()=>g(j$1)}),eC=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function tC(e){let t=e?.toLowerCase()||``;return t===`auto`&&typeof navigator<`u`&&navigator?.language?eC.test(navigator.language)?`rtl`:`ltr`:t===`rtl`?`rtl`:`ltr`}var E0=(()=>{class e{get value(){return this.valueSignal()}valueSignal=Mt$2(`ltr`);change=new ve$1;constructor(){let n=g(XE,{optional:true});if(n){let r=n.body?n.body.dir:null,o=n.documentElement?n.documentElement.dir:null;this.valueSignal.set(tC(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 Lt$2;function I0(){if(Lt$2==null){if(typeof document!=`object`||!document||typeof Element!=`function`||!Element)return Lt$2=false,Lt$2;if(document.documentElement?.style&&`scrollBehavior`in document.documentElement.style)Lt$2=true;else {let e=Element.prototype.scrollTo;e?Lt$2=!/\{\s*\[native code\]\s*\}/.test(e.toString()):Lt$2=false;}}return Lt$2}var nC=20,z0=(()=>{class e{_platform=g(Wp);_listeners;_viewportSize=null;_change=new U$1;_document=g(j$1);constructor(){let n=g(X),r=g(Ge$1).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=nC){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 bc={},qp=class e{_appId=g(dn$1);static _infix=`a${Math.floor(Math.random()*1e5).toString()}`;getId(t,n=false){return this._appId!==`ng`&&(t+=this._appId),bc.hasOwnProperty(t)||(bc[t]=0),`${t}${n?e._infix+`-`:``}${bc[t]++}`}static ɵfac=function(n){return new(n||e)};static ɵprov=C({token:e,factory:e.ɵfac,providedIn:`root`})};
@@ -12,7 +12,7 @@ var a=class t{sanitizer=g(YE);transform(r){return r?this.sanitizer.bypassSecurit
12
12
  var Ke=new I$1(`EngagementContext`),Ge=new I$1(`EventData`);var B=class{_attachedHost=null;attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;e!=null&&(this._attachedHost=null,e.detach());}get isAttached(){return this._attachedHost!=null}setAttachedHost(e){this._attachedHost=e;}},T=class extends B{component;viewContainerRef;injector;projectableNodes;bindings;constructor(e,t,i,s,n){super(),this.component=e,this.viewContainerRef=t,this.injector=i,this.projectableNodes=s,this.bindings=n||null;}},M=class extends B{templateRef;viewContainerRef;context;injector;constructor(e,t,i,s){super(),this.templateRef=e,this.viewContainerRef=t,this.context=i,this.injector=s;}get origin(){return this.templateRef.elementRef}attach(e,t=this.context){return this.context=t,super.attach(e)}detach(){return this.context=void 0,super.detach()}},lt$1=class lt extends B{element;constructor(e){super(),this.element=e instanceof Se$1?e.nativeElement:e;}},x=class{_attachedPortal=null;_disposeFn=null;_isDisposed=false;hasAttached(){return !!this._attachedPortal}attach(e){if(e instanceof T)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof M)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof lt$1)return this._attachedPortal=e,this.attachDomPortal(e)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn();}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=true;}setDisposeFn(e){this._disposeFn=e;}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null);}},tt=class extends x{outletElement;_appRef;_defaultInjector;constructor(e,t,i){super(),this.outletElement=e,this._appRef=t,this._defaultInjector=i;}attachComponentPortal(e){let t;if(e.viewContainerRef){let i=e.injector||e.viewContainerRef.injector,s=i.get(Wn,null,{optional:true})||void 0;t=e.viewContainerRef.createComponent(e.component,{index:e.viewContainerRef.length,injector:i,ngModuleRef:s,projectableNodes:e.projectableNodes||void 0,bindings:e.bindings||void 0}),this.setDisposeFn(()=>t.destroy());}else {let i=this._appRef,s=e.injector||this._defaultInjector||Z.NULL,n=s.get(re$2,i.injector);t=gp(e.component,{elementInjector:s,environmentInjector:n,projectableNodes:e.projectableNodes||void 0,bindings:e.bindings||void 0}),i.attachView(t.hostView),this.setDisposeFn(()=>{i.viewCount>0&&i.detachView(t.hostView),t.destroy();});}return this.outletElement.appendChild(this._getComponentRootNode(t)),this._attachedPortal=e,t}attachTemplatePortal(e){let t=e.viewContainerRef,i=t.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return i.rootNodes.forEach(s=>this.outletElement.appendChild(s)),i.detectChanges(),this.setDisposeFn(()=>{let s=t.indexOf(i);s!==-1&&t.remove(s);}),this._attachedPortal=e,i}attachDomPortal=e=>{let t=e.element;t.parentNode;let i=this.outletElement.ownerDocument.createComment(`dom-portal`);t.parentNode.insertBefore(i,t),this.outletElement.appendChild(t),this._attachedPortal=e,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(t,i);});};dispose(){super.dispose(),this.outletElement.remove();}_getComponentRootNode(e){return e.hostView.rootNodes[0]}};var dt$1=(()=>{class o extends x{_moduleRef=g(Wn,{optional:true});_document=g(j$1);_viewContainerRef=g(Ft$2);_isInitialized=false;_attachedRef=null;constructor(){super();}get portal(){return this._attachedPortal}set portal(t){this.hasAttached()&&!t&&!this._isInitialized||(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t||null);}attached=new ve$1;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=true;}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null;}attachComponentPortal(t){t.setAttachedHost(this);let i=t.viewContainerRef!=null?t.viewContainerRef:this._viewContainerRef,s=i.createComponent(t.component,{index:i.length,injector:t.injector||i.injector,projectableNodes:t.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0,bindings:t.bindings||void 0});return i!==this._viewContainerRef&&this._getRootNode().appendChild(s.hostView.rootNodes[0]),super.setDisposeFn(()=>s.destroy()),this._attachedPortal=t,this._attachedRef=s,this.attached.emit(s),s}attachTemplatePortal(t){t.setAttachedHost(this);let i=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i}attachDomPortal=t=>{let i=t.element;i.parentNode;let s=this._document.createComment(`dom-portal`);t.setAttachedHost(this),i.parentNode.insertBefore(s,i),this._getRootNode().appendChild(i),this._attachedPortal=t,super.setDisposeFn(()=>{s.parentNode&&s.parentNode.replaceChild(i,s);});};_getRootNode(){let t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}static ɵfac=function(i){return new(i||o)};static ɵdir=hn$1({type:o,selectors:[[``,`cdkPortalOutlet`,``]],inputs:{portal:[0,`cdkPortalOutlet`,`portal`]},outputs:{attached:`attached`},exportAs:[`cdkPortalOutlet`],features:[za]})}return o})();var V;function ve(){if(V==null&&typeof window<`u`)try{window.addEventListener(`test`,null,Object.defineProperty({},`passive`,{get:()=>V=!0}));}finally{V=V||false;}return V}function ee(o){return ve()?o:!!o.capture}var be=new I$1(`cdk-input-modality-detector-options`),we={ignoreKeys:[18,17,224,91,16]},ie=650,ut$1={passive:true,capture:true},Ce=(()=>{class o{_platform=g(Wp);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new Sr$1(null);_options;_lastTouchMs=0;_onKeydown=t=>{this._options?.ignoreKeys?.some(i=>i===t.keyCode)||(this._modality.next(`keyboard`),this._mostRecentTarget=n0(t));};_onMousedown=t=>{Date.now()-this._lastTouchMs<ie||(this._modality.next(KA(t)?`keyboard`:`mouse`),this._mostRecentTarget=n0(t));};_onTouchstart=t=>{if(JA(t)){this._modality.next(`keyboard`);return}this._lastTouchMs=Date.now(),this._modality.next(`touch`),this._mostRecentTarget=n0(t);};constructor(){let t=g(X),i=g(j$1),s=g(be,{optional:true});if(this._options=r(r({},we),s),this.modalityDetected=this._modality.pipe(Fs$1(1)),this.modalityChanged=this.modalityDetected.pipe(Ps$1()),this._platform.isBrowser){let n=g(Ge$1).createRenderer(null,null);this._listenerCleanups=t.runOutsideAngular(()=>[n.listen(i,`keydown`,this._onKeydown,ut$1),n.listen(i,`mousedown`,this._onMousedown,ut$1),n.listen(i,`touchstart`,this._onTouchstart,ut$1)]);}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(t=>t());}static ɵfac=function(i){return new(i||o)};static ɵprov=C({token:o,factory:o.ɵfac,providedIn:`root`})}return o})(),it$1=(function(o){return o[o.IMMEDIATE=0]=`IMMEDIATE`,o[o.EVENTUAL=1]=`EVENTUAL`,o})(it$1||{}),Ee=new I$1(`cdk-focus-monitor-default-options`),et=ee({passive:true,capture:true}),oe$1=(()=>{class o{_ngZone=g(X);_platform=g(Wp);_inputModalityDetector=g(Ce);_origin=null;_lastFocusOrigin=null;_windowFocused=false;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=false;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=true,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=false);};_document=g(j$1);_stopInputModalityDetector=new U$1;constructor(){this._detectionMode=g(Ee,{optional:true})?.detectionMode||it$1.IMMEDIATE;}_rootNodeFocusAndBlurListener=t=>{let i=n0(t);for(let s=i;s;s=s.parentElement)t.type===`focus`?this._onFocus(t,s):this._onBlur(t,s);};monitor(t,i=false){let s=l0(t);if(!this._platform.isBrowser||s.nodeType!==1)return Se$2();let n=e0(s)||this._document,l=this._elementInfo.get(s);if(l)return i&&(l.checkChildren=true),l.subject;let a={checkChildren:i,subject:new U$1,rootNode:n};return this._elementInfo.set(s,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(t){let i=l0(t),s=this._elementInfo.get(i);s&&(s.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(s));}focusVia(t,i,s){let n=l0(t);n===this._document.activeElement?this._getClosestElementsInfo(n).forEach(([a,c])=>this._originChanged(a,i,c)):(this._setOrigin(i),typeof n.focus==`function`&&n.focus(s));}ngOnDestroy(){this._elementInfo.forEach((t,i)=>this.stopMonitoring(i));}_getWindow(){return this._document.defaultView||window}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?`touch`:`program`:this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:t&&this._isLastInteractionFromInputLabel(t)?`mouse`:`program`}_shouldBeAttributedToTouch(t){return this._detectionMode===it$1.EVENTUAL||!!t?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(t,i){t.classList.toggle(`cdk-focused`,!!i),t.classList.toggle(`cdk-touch-focused`,i===`touch`),t.classList.toggle(`cdk-keyboard-focused`,i===`keyboard`),t.classList.toggle(`cdk-mouse-focused`,i===`mouse`),t.classList.toggle(`cdk-program-focused`,i===`program`);}_setOrigin(t,i=false){this._ngZone.runOutsideAngular(()=>{if(this._origin=t,this._originFromTouchInteraction=t===`touch`&&i,this._detectionMode===it$1.IMMEDIATE){clearTimeout(this._originTimeoutId);let s=this._originFromTouchInteraction?ie:1;this._originTimeoutId=setTimeout(()=>this._origin=null,s);}});}_onFocus(t,i){let s=this._elementInfo.get(i),n=n0(t);!s||!s.checkChildren&&i!==n||this._originChanged(i,this._getFocusOrigin(n),s);}_onBlur(t,i){let s=this._elementInfo.get(i);!s||s.checkChildren&&t.relatedTarget instanceof Node&&i.contains(t.relatedTarget)||(this._setClasses(i),this._emitOrigin(s,null));}_emitOrigin(t,i){t.subject.observers.length&&this._ngZone.run(()=>t.subject.next(i));}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;let i=t.rootNode,s=this._rootNodeFocusListenerCount.get(i)||0;s||this._ngZone.runOutsideAngular(()=>{i.addEventListener(`focus`,this._rootNodeFocusAndBlurListener,et),i.addEventListener(`blur`,this._rootNodeFocusAndBlurListener,et);}),this._rootNodeFocusListenerCount.set(i,s+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener(`focus`,this._windowFocusListener);}),this._inputModalityDetector.modalityDetected.pipe(pi$1(this._stopInputModalityDetector)).subscribe(n=>{this._setOrigin(n,true);}));}_removeGlobalListeners(t){let i=t.rootNode;if(this._rootNodeFocusListenerCount.has(i)){let s=this._rootNodeFocusListenerCount.get(i);s>1?this._rootNodeFocusListenerCount.set(i,s-1):(i.removeEventListener(`focus`,this._rootNodeFocusAndBlurListener,et),i.removeEventListener(`blur`,this._rootNodeFocusAndBlurListener,et),this._rootNodeFocusListenerCount.delete(i));}--this._monitoredElementCount||(this._getWindow().removeEventListener(`focus`,this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId));}_originChanged(t,i,s){this._setClasses(t,i),this._emitOrigin(s,i),this._lastFocusOrigin=i;}_getClosestElementsInfo(t){let i=[];return this._elementInfo.forEach((s,n)=>{(n===t||s.checkChildren&&n.contains(t))&&i.push([n,s]);}),i}_isLastInteractionFromInputLabel(t){let{_mostRecentTarget:i,mostRecentModality:s}=this._inputModalityDetector;if(s!==`mouse`||!i||i===t||t.nodeName!==`INPUT`&&t.nodeName!==`TEXTAREA`||t.disabled)return false;let n=t.labels;if(n){for(let l=0;l<n.length;l++)if(n[l].contains(i))return true}return false}static ɵfac=function(i){return new(i||o)};static ɵprov=C({token:o,factory:o.ɵfac,providedIn:`root`})}return o})();var se=(()=>{class o{static ɵfac=function(i){return new(i||o)};static ɵcmp=of({type:o,selectors:[[`ng-component`]],exportAs:[`cdkVisuallyHidden`],decls:0,vars:0,template:function(i,s){},styles:[`.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}
13
13
  `],encapsulation:2,changeDetection:0})}return o})();var pt$1=(()=>{class o{_platform=g(Wp);constructor(){}isDisabled(t){return t.hasAttribute(`disabled`)}isVisible(t){return De(t)&&getComputedStyle(t).visibility===`visible`}isTabbable(t){if(!this._platform.isBrowser)return false;let i=Ae(Fe(t));if(i&&(ne(i)===-1||!this.isVisible(i)))return false;let s=t.nodeName.toLowerCase(),n=ne(t);return t.hasAttribute(`contenteditable`)?n!==-1:s===`iframe`||s===`object`||this._platform.WEBKIT&&this._platform.IOS&&!xe$1(t)?false:s===`audio`?t.hasAttribute(`controls`)?n!==-1:false:s===`video`?n===-1?false:n!==null?true:this._platform.FIREFOX||t.hasAttribute(`controls`):t.tabIndex>=0}isFocusable(t,i){return Ie(t)&&!this.isDisabled(t)&&(i?.ignoreVisibility||this.isVisible(t))}static ɵfac=function(i){return new(i||o)};static ɵprov=C({token:o,factory:o.ɵfac,providedIn:`root`})}return o})();function Ae(o){try{return o.frameElement}catch{return null}}function De(o){return !!(o.offsetWidth||o.offsetHeight||typeof o.getClientRects==`function`&&o.getClientRects().length)}function Se(o){let e=o.nodeName.toLowerCase();return e===`input`||e===`select`||e===`button`||e===`textarea`}function Pe(o){return Te(o)&&o.type==`hidden`}function Re(o){return Me(o)&&o.hasAttribute(`href`)}function Te(o){return o.nodeName.toLowerCase()==`input`}function Me(o){return o.nodeName.toLowerCase()==`a`}function re$1(o){if(!o.hasAttribute(`tabindex`)||o.tabIndex===void 0)return false;let e=o.getAttribute(`tabindex`);return !!(e&&!isNaN(parseInt(e,10)))}function ne(o){if(!re$1(o))return null;let e=parseInt(o.getAttribute(`tabindex`)||``,10);return isNaN(e)?-1:e}function xe$1(o){let e=o.nodeName.toLowerCase(),t=e===`input`&&o.type;return t===`text`||t===`password`||e===`select`||e===`textarea`}function Ie(o){return Pe(o)?false:Se(o)||Re(o)||o.hasAttribute(`contenteditable`)||re$1(o)}function Fe(o){return o.ownerDocument&&o.ownerDocument.defaultView||window}var ft$1=class ft{_element;_checker;_ngZone;_document;_injector;_startAnchor=null;_endAnchor=null;_hasAttached=false;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor));}_enabled=true;constructor(e,t,i,s,n=false,l){this._element=e,this._checker=t,this._ngZone=i,this._document=s,this._injector=l,n||this.attachAnchors();}destroy(){let e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener(`focus`,this.startAnchorListener),e.remove()),t&&(t.removeEventListener(`focus`,this.endAnchorListener),t.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=false;}attachAnchors(){return this._hasAttached?true:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener(`focus`,this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener(`focus`,this.endAnchorListener));}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=true),this._hasAttached)}focusInitialElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement(e)));})}focusFirstTabbableElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement(e)));})}focusLastTabbableElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement(e)));})}_getRegionBoundary(e){let t=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);return e==`start`?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(e){let t=this._element.querySelector(`[cdk-focus-initial], [cdkFocusInitial]`);if(t){if(!this._checker.isFocusable(t)){let i=this._getFirstTabbableElement(t);return i?.focus(e),!!i}return t.focus(e),true}return this.focusFirstTabbableElement(e)}focusFirstTabbableElement(e){let t=this._getRegionBoundary(`start`);return t&&t.focus(e),!!t}focusLastTabbableElement(e){let t=this._getRegionBoundary(`end`);return t&&t.focus(e),!!t}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let t=e.children;for(let i=0;i<t.length;i++){let s=t[i].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(t[i]):null;if(s)return s}return null}_getLastTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let t=e.children;for(let i=t.length-1;i>=0;i--){let s=t[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[i]):null;if(s)return s}return null}_createAnchor(){let e=this._document.createElement(`div`);return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add(`cdk-visually-hidden`),e.classList.add(`cdk-focus-trap-anchor`),e.setAttribute(`aria-hidden`,`true`),e}_toggleAnchorTabIndex(e,t){e?t.setAttribute(`tabindex`,`0`):t.removeAttribute(`tabindex`);}toggleAnchors(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor));}_executeOnStable(e){this._injector?pd(e,{injector:this._injector}):setTimeout(e);}},ae=(()=>{class o{_checker=g(pt$1);_ngZone=g(X);_document=g(j$1);_injector=g(Z);constructor(){g(h0).load(se);}create(t,i=false){return new ft$1(t,this._checker,this._ngZone,this._document,i,this._injector)}static ɵfac=function(i){return new(i||o)};static ɵprov=C({token:o,factory:o.ɵfac,providedIn:`root`})}return o})();function le(o,...e){return e.length?e.some(t=>o[t]):o.altKey||o.shiftKey||o.ctrlKey||o.metaKey}function _t(){return typeof __karma__<`u`&&!!__karma__||typeof jasmine<`u`&&!!jasmine||typeof jest<`u`&&!!jest||typeof Mocha<`u`&&!!Mocha}function E(o){return o==null?``:typeof o==`string`?o:`${o}px`}var ce=I0();function ue$1(o){return new gt(o.get(z0),o.get(j$1))}var gt=class{_viewportRuler;_previousHTMLStyles={top:``,left:``};_previousScrollPosition;_isEnabled=false;_document;constructor(e,t){this._viewportRuler=e,this._document=t;}attach(){}enable(){if(this._canBeEnabled()){let e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||``,this._previousHTMLStyles.top=e.style.top||``,e.style.left=E(-this._previousScrollPosition.left),e.style.top=E(-this._previousScrollPosition.top),e.classList.add(`cdk-global-scrollblock`),this._isEnabled=true;}}disable(){if(this._isEnabled){let e=this._document.documentElement,t=this._document.body,i=e.style,s=t.style,n=i.scrollBehavior||``,l=s.scrollBehavior||``;this._isEnabled=false,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,e.classList.remove(`cdk-global-scrollblock`),ce&&(i.scrollBehavior=s.scrollBehavior=`auto`),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),ce&&(i.scrollBehavior=n,s.scrollBehavior=l);}}_canBeEnabled(){if(this._document.documentElement.classList.contains(`cdk-global-scrollblock`)||this._isEnabled)return false;let t=this._document.documentElement,i=this._viewportRuler.getViewportSize();return t.scrollHeight>i.height||t.scrollWidth>i.width}};var mt$1=class mt{enable(){}disable(){}attach(){}};var H=class{positionStrategy;scrollStrategy=new mt$1;panelClass=``;hasBackdrop=false;backdropClass=`cdk-overlay-dark-backdrop`;disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=false;usePopover;eventPredicate;constructor(e){if(e){let t=Object.keys(e);for(let i of t)e[i]!==void 0&&(this[i]=e[i]);}}};var fe=(()=>{class o{_attachedOverlays=[];_document=g(j$1);_isAttached=false;constructor(){}ngOnDestroy(){this.detach();}add(t){this.remove(t),this._attachedOverlays.push(t);}remove(t){let i=this._attachedOverlays.indexOf(t);i>-1&&this._attachedOverlays.splice(i,1),this._attachedOverlays.length===0&&this.detach();}canReceiveEvent(t,i,s){return s.observers.length<1?false:t.eventPredicate?t.eventPredicate(i):true}static ɵfac=function(i){return new(i||o)};static ɵprov=C({token:o,factory:o.ɵfac,providedIn:`root`})}return o})(),Ne$1=(()=>{class o extends fe{_ngZone=g(X);_renderer=g(Ge$1).createRenderer(null,null);_cleanupKeydown;add(t){super.add(t),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen(`body`,`keydown`,this._keydownListener);}),this._isAttached=true);}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=false);}_keydownListener=t=>{let i=this._attachedOverlays;for(let s=i.length-1;s>-1;s--){let n=i[s];if(this.canReceiveEvent(n,t,n._keydownEvents)){this._ngZone.run(()=>n._keydownEvents.next(t));break}}};static ɵfac=(()=>{let t;return function(s){return (t||(t=Ol(o)))(s||o)}})();static ɵprov=C({token:o,factory:o.ɵfac,providedIn:`root`})}return o})(),Be$1=(()=>{class o extends fe{_platform=g(Wp);_ngZone=g(X);_renderer=g(Ge$1).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=false;_pointerDownEventTarget=null;_cleanups;add(t){if(super.add(t),!this._isAttached){let i=this._document.body,s={capture:true},n=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[n.listen(i,`pointerdown`,this._pointerDownListener,s),n.listen(i,`click`,this._clickListener,s),n.listen(i,`auxclick`,this._clickListener,s),n.listen(i,`contextmenu`,this._clickListener,s)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor=`pointer`,this._cursorStyleIsSet=true),this._isAttached=true;}}detach(){this._isAttached&&(this._cleanups?.forEach(t=>t()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=false),this._isAttached=false);}_pointerDownListener=t=>{this._pointerDownEventTarget=n0(t);};_clickListener=t=>{let i=n0(t),s=t.type===`click`&&this._pointerDownEventTarget?this._pointerDownEventTarget:i;this._pointerDownEventTarget=null;let n=this._attachedOverlays.slice();for(let l=n.length-1;l>-1;l--){let a=n[l],c=a._outsidePointerEvents;if(!(!a.hasAttached()||!this.canReceiveEvent(a,t,c))){if(he(a.overlayElement,i)||he(a.overlayElement,s))break;this._ngZone?this._ngZone.run(()=>c.next(t)):c.next(t);}}};static ɵfac=(()=>{let t;return function(s){return (t||(t=Ol(o)))(s||o)}})();static ɵprov=C({token:o,factory:o.ɵfac,providedIn:`root`})}return o})();function he(o,e){let t=typeof ShadowRoot<`u`&&ShadowRoot,i=e;for(;i;){if(i===o)return true;i=t&&i instanceof ShadowRoot?i.host:i.parentNode;}return false}var pe=(()=>{class o{static ɵfac=function(i){return new(i||o)};static ɵcmp=of({type:o,selectors:[[`ng-component`]],hostAttrs:[`cdk-overlay-style-loader`,``],decls:0,vars:0,template:function(i,s){},styles:[`.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0;touch-action:manipulation}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}@media(prefers-reduced-motion){.cdk-overlay-backdrop{transition-duration:1ms}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}.cdk-overlay-popover{background:none;border:none;padding:0;outline:0;overflow:visible;position:fixed;pointer-events:none;white-space:normal;color:inherit;text-decoration:none;width:100%;height:100%;inset:auto;top:0;left:0}.cdk-overlay-popover::backdrop{display:none}.cdk-overlay-popover .cdk-overlay-backdrop{position:fixed;z-index:auto}
14
14
  `],encapsulation:2,changeDetection:0})}return o})(),bt$1=(()=>{class o{_platform=g(Wp);_containerElement;_document=g(j$1);_styleLoader=g(h0);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(o){return o&&o.nodeType===1}var j=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new U$1;_attachments=new U$1;_detachments=new U$1;_positionStrategy;_scrollStrategy;_locationChanges=v$1.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_disposed=false;_previousHostParent;_keydownEvents=new U$1;_outsidePointerEvents=new U$1;_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=pd(()=>{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(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=m0(t||[]).filter(n=>!!n);s.length&&(i?e.classList.add(...s):e.classList.remove(...s));}_detachContentWhenEmpty(){let e=false;try{this._detachContentAfterRenderRef=pd(()=>{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}var vt=class{_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$1=new I$1(`OVERLAY_DEFAULT_CONFIG`);function me$1(o,e){o.get(h0).load(pe);let t=o.get(bt$1),i=o.get(j$1),s=o.get(qp),n=o.get(ct$1),l=o.get(E0),a=o.get(tr,null,{optional:true})||o.get(Ge$1).createRenderer(null,null),c=new H(e),v=o.get(Ve$1,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(w)?w.after(d):w?.type===`parent`?w.element.appendChild(d):t.getContainerElement().appendChild(d),new j(new tt(h,n,o),d,h,c,o.get(X),o.get(Ne$1),i,o.get(Cp),o.get(Be$1),e?.disableAnimations??o.get(Dg,null,{optional:true})===`NoopAnimations`,o.get(re$2),a)}function He$1(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$1=(()=>{class o extends x{_elementRef=g(Se$1);_focusTrapFactory=g(ae);_config;_interactivityChecker=g(pt$1);_ngZone=g(X);_focusMonitor=g(oe$1);_renderer=g(tr);_changeDetectorRef=g(pp);_injector=g(Z);_platform=g(Wp);_document=g(j$1);_portalOutlet;_focusTrapped=new U$1;_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||pd(()=>{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=t0(),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=t0();return t===i||t.contains(i)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=t0()));}static ɵfac=function(i){return new(i||o)};static ɵcmp=of({type:o,selectors:[[`cdk-dialog-container`]],viewQuery:function(i,s){if(i&1&&nc(dt$1,7),i&2){let n;Rf(n=xf())&&(s._portalOutlet=n.first);}},hostAttrs:[`tabindex`,`-1`,1,`cdk-dialog-container`],hostVars:6,hostBindings:function(i,s){i&2&&mf(`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:[za],decls:1,vars:0,consts:[[`cdkPortalOutlet`,``]],template:function(i,s){i&1&&lf(0,He$1,0,0,`ng-template`,0);},dependencies:[dt$1],styles:[`.cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}
15
- `],encapsulation:2})}return o})(),W=class{overlayRef;config;componentInstance=null;componentRef=null;containerInstance;disableClose;closed=new U$1;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$1(o)}}),Ye=new I$1(`DialogData`),Xe=new I$1(`DefaultDialogConfig`);function Ue$1(o){let e=Mt$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,{optional:true});_parentDialog=g(o,{optional:true,skipSelf:true});_overlayContainer=g(bt$1);_idGenerator=g(qp);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new U$1;_afterOpenedAtThisLevel=new U$1;_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$2(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(_e$2(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$1(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$1(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$1(this.openDialogs,t=>t.close());}getDialogById(t){return this.openDialogs.find(i=>i.id===t)}ngOnDestroy(){wt$1(this._openDialogsAtThisLevel,t=>{t.config.closeOnDestroy===false&&this._removeOpenDialog(t,false);}),wt$1(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$1;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 At$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,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(E0,null,{optional:true}))&&a.push({provide:E0,useValue:Ue$1(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$1(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=`${te$1.baseURL}/svg/${e}.svg`;try{return (await jn$1(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=class o{name=$b.required();rawSvg=Mt$2(``);sanitisedSvg=Nv(()=>this.sanitizer.bypassSecurityTrustHtml(this.rawSvg()));sanitizer=g(YE);iconService=g(ot$1);constructor(){Es(()=>{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=of({type:o,selectors:[[`cooee-icon`]],hostAttrs:[`role`,`img`],hostVars:2,hostBindings:function(t,i){t&2&&(_f(`innerHTML`,i.sanitisedSvg(),Yg),mf(`aria-label`,i.name()));},inputs:{name:[1,`name`]},decls:0,vars:0,template:function(t,i){},encapsulation:2})};
15
+ `],encapsulation:2})}return o})(),W=class{overlayRef;config;componentInstance=null;componentRef=null;containerInstance;disableClose;closed=new U$1;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$1(o)}}),Ye=new I$1(`DialogData`),Xe=new I$1(`DefaultDialogConfig`);function Ue$1(o){let e=Mt$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,{optional:true});_parentDialog=g(o,{optional:true,skipSelf:true});_overlayContainer=g(bt$1);_idGenerator=g(qp);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new U$1;_afterOpenedAtThisLevel=new U$1;_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$2(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(_e$2(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$1(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$1(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$1(this.openDialogs,t=>t.close());}getDialogById(t){return this.openDialogs.find(i=>i.id===t)}ngOnDestroy(){wt$1(this._openDialogsAtThisLevel,t=>{t.config.closeOnDestroy===false&&this._removeOpenDialog(t,false);}),wt$1(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$1;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 At$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,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(E0,null,{optional:true}))&&a.push({provide:E0,useValue:Ue$1(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$1(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=`${te$1.baseURL}/svg/${e}.svg`;try{return (await zn$1(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=class o{name=$b.required();rawSvg=Mt$2(``);sanitisedSvg=Nv(()=>this.sanitizer.bypassSecurityTrustHtml(this.rawSvg()));sanitizer=g(YE);iconService=g(ot$1);constructor(){Es(()=>{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=of({type:o,selectors:[[`cooee-icon`]],hostAttrs:[`role`,`img`],hostVars:2,hostBindings:function(t,i){t&2&&(_f(`innerHTML`,i.sanitisedSvg(),Yg),mf(`aria-label`,i.name()));},inputs:{name:[1,`name`]},decls:0,vars:0,template:function(t,i){},encapsulation:2})};
16
16
 
17
17
  var Ct=new I$1(``,{factory:()=>at$1}),at$1=`always`;var yt=(()=>{class t{static ɵfac=function(i){return new(i||t)};static ɵmod=pn$1({type:t});static ɵinj=mt$3({})}return t})();var st$1=(()=>{class t{static withConfig(e){return {ngModule:t,providers:[{provide:Ct,useValue:e.callSetDisabledState??at$1}]}}static ɵfac=function(i){return new(i||t)};static ɵmod=pn$1({type:t});static ɵinj=mt$3({imports:[yt]})}return t})();var P=class t{engagementContext=g(Ke);eventData=g(Ge);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=Me$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 lt(t,n){return [P,...bt(t,n)]}function bt(t,n){return [{provide:Ke,useValue:Mt$2(t)},{provide:Ge,useValue:r({},n)}]}var xe=class t{elementRef=g(Se$1);engagementService=g(P);hasSwiper=false;_engagementTrigger=Mt$2(null);_triggerContext=g(Ke);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&&(Mi$1(n,this.hasSwiper),Ce$2(this.engagementTrigger?.content?.innerCSS,n));}ngOnDestroy(){Y$1.verbose(`Destroying`,this.constructor.name);}static ɵfac=function(e){return new(e||t)};static ɵcmp=of({type:t,selectors:[[`ng-component`]],hostVars:2,hostBindings:function(e,i){e&2&&XD(i.classes);},inputs:{triggerContext:`triggerContext`},decls:1,vars:0,template:function(e,i){e&1&&If(0);},encapsulation:2})};var ct=(t,n)=>n.id;function Dt(t,n){if(t&1&&(Ka(0,`span`,6),uv(1),Ja()),t&2){kD();let e=hv(0);ud(),Wf(e);}}function wt(t,n){if(t&1){let e=ND();Qf(0),Ka(1,`button`,5),Sf(`click`,function(){let o=fu(e).$implicit,a=kD().$implicit;return pu(kD().onOptionChange(a,o))}),vD(2,Dt,2,1,`span`,6),Ja();}if(t&2){let e=n.$implicit,i=kD().$implicit,o=hv(1),a=kD(),d=e.name,g=pv(e.displayName||e.name),b=e.swatch,z=o?e.hexColor??d:``,ue=a.selectedOptions()[i.name]===d,Oe=!!(b!=null&&b.color),Te=!!(!(b==null||b.image==null)&&b.image.url);ud(),oc(`swatch-color-type`,Oe)(`swatch-image-type`,Te)(`selected`,ue)(`disabled`,e.disabled),yf(`title`,g)(`ngStyle`,a.getSwatchStyles(b,z)),mf(`aria-checked`,ue?`true`:`false`)(`data-value`,d)(`aria-disabled`,e.disabled?`true`:null)(`aria-label`,g),ud(),ED(!o&&!Oe&&!Te?2:-1);}}function xt(t,n){if(t&1&&(Ka(0,`div`),Qf(1),Ka(2,`div`,1),uv(3),Ja(),Ka(4,`div`,2),uv(5),Ja(),Ka(6,`div`,3),wD(7,wt,3,16,`button`,4,ct),Ja()()),t&2){let e=n.$implicit,i=kD();XD(mv(`option-group `,e.name.toLowerCase())),ud(),pv(i.hasHexColors(e)),ud(2),ic(``,e.name,`:`),ud(2),Wf(i.selectedOptions()[e.name]),ud(),mf(`aria-label`,e.name),ud(),_D(e.optionValues);}}var de=t=>t.trim().toLowerCase(),Ve=class t extends xe{selectedVariant=new ve$1;item=$b.required();selectedOptions=Mt$2({});options=Nv(()=>{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=Nv(()=>{let n=this.item(),e=this.selectedOptions();return n.vars.find(i=>n.options.every(o=>{let a=i.selectedOptions.find(d=>d.name===o.name)?.value;return e[o.name]===a}))});availabilityIndex=Nv(()=>{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 d=de(a.name),g=a.value,b=e.get(d);b||e.set(d,b=new Map);let z=b.get(g);z||b.set(g,z=new Set),z.add(o);}}),e});constructor(){super(),Es(()=>{let e=this.matchedVariant();e&&(this.item().setSelectedVariant(e),this.selectedVariant.emit(e));});let n=Es(()=>{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 d=o?.selectedOptions.find(g=>g.name===a.name)?.value;d&&(i[a.name]=d);}),this.selectedOptions.set(i),n.destroy();});}ngOnInit(){super.ngOnInit();let n=this.elementRef.nativeElement.shadowRoot;if(!n)return;let e=he$2.get().website?.itemSwatchMapping;e&&Ce$2(e,n);}onOptionChange(n,e){let i=r({},this.selectedOptions());i[n.name]=e.name,this.selectedOptions.set(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)}getCandidateVariantsExcluding(n){let e=this.item(),i=this.availabilityIndex(),o=new Set;e.vars.forEach((d,g)=>{d.isAvailable&&o.add(g);});let a=o;for(let[d,g]of Object.entries(this.selectedOptions())){if(de(d)===de(n))continue;let b=i.get(de(d));if(!b)return new Set;let z=b.get(String(g));if(!z)return new Set;if(a=new Set([...a].filter(ue=>z.has(ue))),a.size===0)return a}return a}isOptionValueDisabledFast(n,e){let o=this.availabilityIndex().get(de(n.name));if(!o)return true;let a=e.name,d=o.get(a);if(!d||d.size===0)return true;let g=this.getCandidateVariantsExcluding(n.name);if(g.size===0)return true;for(let b of g)if(d.has(b))return false;return true}static ɵfac=function(e){return new(e||t)};static ɵcmp=of({type:t,selectors:[[`cooee-item-options-picker`]],inputs:{item:[1,`item`]},outputs:{selectedVariant:`selectedVariant`},features:[Xf(lt()),za],decls:2,vars:0,consts:[[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&&wD(0,xt,9,7,`div`,0,ct),e&2&&_D(i.options());},dependencies:[Pp,_E,st$1],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}
18
18
  `],encapsulation:3})};function dt(t){t||(t=g(Ue$2));let n=new m$1(e=>{if(t.destroyed){e.next();return}return t.onDestroy(e.next.bind(e))});return e=>e.pipe(pi$1(n))}var oe=class t{transform(n){return n==null?null:Ar$1(n)}static ɵfac=function(e){return new(e||t)};static ɵpipe=Ua({name:`cooeeCurrency`,type:t,pure:true})};function Vt(t,n){if(t&1&&(Df(0,`span`,6),Iv(1,`cooeeCurrency`),Iv(2,`safeHtml`)),t&2){kD();yf(`innerHTML`,_v(2,3,_v(1,1,hv(7).cmp)),Yg);}}function Mt(t,n){if(t&1&&(Ka(0,`span`,8),uv(1),Ja()),t&2){kD();let e=hv(14);ud(),ic(` `,e,`% off `);}}function It(t,n){t&1&&(uv(0,` Out of Stock `),Df(1,`cooee-icon`,16));}function Et(t,n){t&1&&(uv(0,` Add To Cart `),Df(1,`cooee-icon`,17));}function At(t,n){if(t&1){let e=ND();Ka(0,`button`,15),Sf(`click`,function(o){fu(e);return pu(kD().addToCartClicked(o))}),vD(1,It,2,0)(2,Et,2,0),Ja();}if(t&2){let e=kD();yf(`disabled`,e.isButtonDisabled()),ud(),ED(e.isButtonDisabled()?1:2);}}var re=class t{buttonClick=Hb();item=$b.required();isButtonDisabled=Nv(()=>{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=of({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&&(ec(0),Ka(1,`div`,0),Df(2,`img`,1),Ka(3,`div`,2)(4,`div`,3),uv(5),Ja(),Ka(6,`div`,4),Qf(7),Df(8,`span`,5),Iv(9,`cooeeCurrency`),Iv(10,`safeHtml`),vD(11,Vt,3,5,`span`,6),Ja(),Ka(12,`a`,7),Sf(`click`,function(a){return a.stopPropagation()}),uv(13,` Shop now `),Ja(),Qf(14),vD(15,Mt,2,1,`span`,8),Ja(),Ka(16,`button`,9),Df(17,`cooee-icon`,10),Ja()(),Ka(18,`div`,11),vD(19,At,3,2,`button`,12),Ka(20,`a`,13),Df(21,`img`,14),Ja()(),Ho()),e&2){let o=i.item().selectedOrFirstVariant.value;ud(2),yf(`alt`,gv(i.item().name))(`src`,i.item().firstImageURL,Qg),ud(3),ic(` `,i.item().name,` `),ud(2);let a=pv(o.price);ud(),yf(`innerHTML`,_v(10,14,_v(9,12,a.d)),Yg),ud(3),ED(a.cmp?11:-1),ud(),yf(`href`,`/products/`+i.item().slug,Qg),ud(2);let d=pv(i.getDiscountPercentage(o.price));ud(),ED(d>0?15:-1),ud(),gf(`aria-label`,mv(`View product details for `,i.item().name)),ud(3),ED(i.item().showAddToCartButton?19:-1);}},dependencies:[ye,oe,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 St=t=>({active:t}),Ot=(t,n)=>n.mID;function Tt(t,n){t&1&&Ef(0);}function Ft(t,n){t&1&&Ef(0);}function kt(t,n){t&1&&Ef(0);}function Pt(t,n){if(t&1&&(Ka(0,`div`,11)(1,`div`,12),uv(2,`Shop Now`),Ja(),lf(3,Tt,1,0,`ng-container`,10),Ja(),Ka(4,`div`,13),lf(5,Ft,1,0,`ng-container`,10),Ka(6,`div`,14),lf(7,kt,1,0,`ng-container`,10),Ja()()),t&2){kD(2);let e=jD(4),i=jD(6),o=jD(8);ud(3),yf(`ngTemplateOutlet`,e),ud(2),yf(`ngTemplateOutlet`,i),ud(2),yf(`ngTemplateOutlet`,o);}}function Nt(t,n){t&1&&Ef(0);}function Rt(t,n){t&1&&Ef(0);}function jt(t,n){t&1&&Ef(0);}function Bt(t,n){t&1&&Ef(0);}function Lt(t,n){t&1&&Ef(0);}function Ht(t,n){if(t&1&&(Ka(0,`div`,15),Df(1,`cooee-item-card`,16),lf(2,Nt,1,0,`ng-container`,10),Ja(),Ka(3,`div`,13)(4,`div`,17),lf(5,Rt,1,0,`ng-container`,10)(6,jt,1,0,`ng-container`,10)(7,Bt,1,0,`ng-container`,10)(8,Lt,1,0,`ng-container`,10),Ja()()),t&2){let e=kD(2),i=jD(4),o=jD(6),a=jD(10),d=jD(12),g=jD(14);ud(),yf(`item`,e.item()),ud(),yf(`ngTemplateOutlet`,i),ud(3),yf(`ngTemplateOutlet`,g),ud(),yf(`ngTemplateOutlet`,o),ud(),yf(`ngTemplateOutlet`,d),ud(),yf(`ngTemplateOutlet`,a);}}function Gt(t,n){t&1&&Ef(0);}function Ut(t,n){if(t&1&&(Ka(0,`div`,7),vD(1,Pt,8,3)(2,Ht,9,6),Ka(3,`div`,9),lf(4,Gt,1,0,`ng-container`,10),Ja()()),t&2){let e=kD(),i=jD(16),o=e.template()===e.ItemDetailTemplate.CLASSIC;ud(),ED(o?1:2),ud(3),yf(`ngTemplateOutlet`,i);}}function $t(t,n){t&1&&Ef(0);}function zt(t,n){t&1&&Ef(0);}function Wt(t,n){t&1&&Ef(0);}function qt(t,n){t&1&&Ef(0);}function Kt(t,n){if(t&1&&(Ka(0,`div`,8)(1,`div`,18),lf(2,$t,1,0,`ng-container`,10),Ja(),Ka(3,`div`,17),lf(4,zt,1,0,`ng-container`,10)(5,Wt,1,0,`ng-container`,10)(6,qt,1,0,`ng-container`,10),Ja()()),t&2){kD();let e=jD(4),i=jD(6),o=jD(8),a=jD(16);ud(2),yf(`ngTemplateOutlet`,i),ud(2),yf(`ngTemplateOutlet`,e),ud(),yf(`ngTemplateOutlet`,o),ud(),yf(`ngTemplateOutlet`,a);}}function Zt(t,n){if(t&1){let e=ND();Ka(0,`button`,19),Sf(`click`,function(){fu(e);return pu(kD().close())}),Df(1,`cooee-icon`,20),Ja();}}function Qt(t,n){if(t&1&&Df(0,`img`,22),t&2){let e=n.$implicit,i=kD(2);yf(`src`,e.url,Qg)(`alt`,e.alt??i.item().name);}}function Xt(t,n){if(t&1&&(Ka(0,`div`,21),wD(1,Qt,1,2,`img`,22,CD),Ja()),t&2){let e=kD();ud(),_D(e.item().imgs);}}function Yt(t,n){if(t&1&&(Df(0,`span`,25),Iv(1,`cooeeCurrency`),Iv(2,`safeHtml`)),t&2){kD(2);yf(`innerHTML`,_v(2,3,_v(1,1,hv(2).d)),Yg);}}function Jt(t,n){if(t&1&&(Df(0,`span`,26),Iv(1,`cooeeCurrency`),Iv(2,`safeHtml`)),t&2){kD(2);yf(`innerHTML`,_v(2,3,_v(1,1,hv(2).cmp)),Yg);}}function en(t,n){if(t&1&&(Ka(0,`div`,24),vD(1,Yt,3,5,`span`,25),vD(2,Jt,3,5,`span`,26),Ja()),t&2){kD();let e=hv(2);ud(),ED(e.d?1:-1),ud(),ED(e.cmp?2:-1);}}function tn(t,n){t&1&&Ef(0);}function nn(t,n){t&1&&Ef(0);}function on(t,n){t&1&&Ef(0);}function rn(t,n){if(t&1&&(Ka(0,`div`,23),uv(1),Ja(),Qf(2),vD(3,en,3,2,`div`,24),lf(4,tn,1,0,`ng-container`,10)(5,nn,1,0,`ng-container`,10)(6,on,1,0,`ng-container`,10)),t&2){let e=kD(),i=jD(10),o=jD(12),a=jD(14),d=hv(0);ud(),Wf(e.item().name),ud();let g=pv(d.price);ud(),ED(g?3:-1),ud(),yf(`ngTemplateOutlet`,o),ud(),yf(`ngTemplateOutlet`,a),ud(),yf(`ngTemplateOutlet`,i);}}function an(t,n){if(t&1&&(Ka(0,`div`,27),uv(1,`Description`),Ja(),Df(2,`div`,28),Iv(3,`safeHtml`)),t&2){let e=kD(2);ud(2),yf(`innerHTML`,_v(3,1,e.item().desc),Yg);}}function sn(t,n){if(t&1&&vD(0,an,4,3),t&2)ED(kD().item().desc?0:-1);}function ln(t,n){if(t&1){let e=ND();Ka(0,`a`,32),Sf(`click`,function(o){let a=fu(e).$implicit;return pu(kD(3).changeItem(o,a))}),Df(1,`img`,22),Ja();}if(t&2){let e=n.$implicit,i=kD(3);yf(`ngClass`,Ev(3,St,e.mID===i.item().mID+``)),ud(),yf(`src`,e.firstImageURL,Qg)(`alt`,i.item().name);}}function cn(t,n){if(t&1&&(Ka(0,`span`,29),uv(1,`Select product`),Ja(),Ka(2,`div`,30),wD(3,ln,2,5,`a`,31,Ot),Ja()),t&2){let e=kD(2);ud(3),_D(e.similarItems());}}function dn(t,n){if(t&1&&vD(0,cn,5,0),t&2)ED(kD().similarItems().length>1?0:-1);}function un(t,n){if(t&1&&(Ka(0,`span`,33),uv(1,`Select variant`),Ja(),Df(2,`cooee-item-options-picker`,16)),t&2){let e=kD(2);ud(2),yf(`item`,e.item());}}function pn(t,n){if(t&1&&vD(0,un,3,1),t&2)ED(kD().item().hasVariants()?0:-1);}function mn(t,n){t&1&&(uv(0,` Add To Cart `),Df(1,`cooee-icon`,42));}function fn(t,n){t&1&&(uv(0,` Out of stock `),Df(1,`cooee-icon`,43));}function hn(t,n){if(t&1){let e=ND();Ka(0,`button`,41),Sf(`click`,function(){fu(e);return pu(kD(2).clickAddToCart())}),vD(1,mn,2,0)(2,fn,2,0),Ja();}if(t&2){kD(2);let e=hv(0);yf(`disabled`,!e.isAvailable),ud(),ED(e.isAvailable?1:2);}}function gn(t,n){if(t&1&&(Ka(0,`span`,40),uv(1),Ja()),t&2){let e=kD(2);ud(),Wf(e.currentVideoCartItemsCount());}}function _n(t,n){if(t&1){let e=ND();Ka(0,`div`,34),vD(1,hn,3,2,`button`,35),Ka(2,`button`,36),Sf(`click`,function(){fu(e);return pu(kD().goToPDP())}),uv(3,` More Info `),Df(4,`cooee-icon`,37),Ja(),Ka(5,`button`,38),Sf(`click`,function(){fu(e);return pu(kD().openCart())}),Df(6,`img`,39),vD(7,gn,2,1,`span`,40),Ja()();}if(t&2){let e=kD();ud(),ED(e.item().showAddToCartButton?1:-1),ud(6),ED(e.currentVideoCartItemsCount()?7:-1);}}var ut=class t{closeClick=new ve$1;layout=zb(`SINGLE_PANE`);item=zb.required();similarItems=$b([]);template=$b(`CLASSIC`);cartItems=Mt$2([]);currentVideoCartItemsCount=Nv(()=>{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=De$2;engagementService=g(P);destroyRef=g(Ue$2);lastLayout=null;resizeObserver=new le$2(()=>{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$2({cart:window.CooeeSDK.cart.getCooeeCart()}),dt(this.destroyRef)).subscribe(n=>{this.cartItems.set(n.cart?.items??[]);});}static ɵfac=function(e){return new(e||t)};static ɵcmp=of({type:t,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:[Xf([P])],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&&(Qf(0),vD(1,Ut,5,2,`div`,7)(2,Kt,7,4,`div`,8),lf(3,Zt,2,0,`ng-template`,null,0,Sv)(5,Xt,3,0,`ng-template`,null,1,Sv)(7,rn,7,6,`ng-template`,null,2,Sv)(9,sn,1,1,`ng-template`,null,3,Sv)(11,dn,1,1,`ng-template`,null,4,Sv)(13,pn,1,1,`ng-template`,null,5,Sv)(15,_n,8,2,`ng-template`,null,6,Sv)),e&2&&(pv(i.item().selectedOrFirstVariant.value),ud(),ED(i.isSinglePane()?1:2));},dependencies:[wE,Ve,ye,TE,re,a,oe],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 vn=[[[`swiper-slides`]]],Cn=[`swiper-slides`],yn=(t,n)=>({"--swiper-navigation-size":t,color:n}),bn=t=>({color:t,bottom:0,top:`unset`,position:`relative`});function Dn(t,n){if(t&1&&(Bo(0,`div`,2),Xa(1,`span`),Vo$1(),Bo(2,`div`,3),Xa(3,`span`),Vo$1()),t&2){let e,i,o=kD(),a=((e=o.navigationConfig())==null?null:e.size)??50,d=((i=o.navigationConfig())==null||i.color==null?null:i.color.rgba)??`white`,g=Cv(4,yn,a+`px`,d);KD(g),ud(2),KD(g);}}function wn(t,n){if(t&1&&(Bo(0,`div`,4),Xa(1,`span`),Vo$1()),t&2){let e;KD(Ev(2,bn,((e=kD().paginationConfig())==null||e.color==null?null:e.color.rgba)??`white`));}}var pt=class t{options=$b.required();navigationConfig=$b();paginationConfig=$b();slideChange=Hb();elementRef=g(Se$1);swiperInstance;initToken=0;resizeDebouncer=new le$2(this.onResize.bind(this));constructor(){Es(()=>{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(d,g){return `
@@ -27,19 +27,19 @@ var Ct=new I$1(``,{factory:()=>at$1}),at$1=`always`;var yt=(()=>{class t{static
27
27
 
28
28
  var Ui={schedule(n,t){let e=setTimeout(n,t);return ()=>clearTimeout(e)}};function Qi(n){return n.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function Zi(n){return !!n&&n.nodeType===Node.ELEMENT_NODE}var it;function Wi(n,t){if(!it){let e=Element.prototype;it=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;}return n.nodeType===Node.ELEMENT_NODE?it.call(n,t):false}function qi(n){let t={};return n.forEach(({propName:e,templateName:i,transform:r})=>{t[Qi(i)]=[e,r];}),t}function Gi(n,t){return t.get(Po$1).resolveComponentFactory(n).inputs}function Ki(n,t){let e=n.childNodes,i=t.map(()=>[]),r=-1;t.some((s,l)=>s===`*`?(r=l,true):false);for(let s=0,l=e.length;s<l;++s){let c=e[s],f=Yi(c,t,r);f!==-1&&i[f].push(c);}return i}function Yi(n,t,e){let i=e;return Zi(n)&&t.some((r,s)=>r!==`*`&&Wi(n,r)?(i=s,true):false),i}var Ji=10,ot=class{componentFactory;inputMap=new Map;constructor(t,e){this.componentFactory=e.get(Po$1).resolveComponentFactory(t);for(let i of this.componentFactory.inputs)this.inputMap.set(i.propName,i.templateName);}create(t){return new nt(this.componentFactory,t,this.inputMap)}},nt=class{componentFactory;injector;inputMap;eventEmitters=new gr$1(1);events=this.eventEmitters.pipe(ii(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(ct$1),this.cdScheduler=e.get(tt$1),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=Ui.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null);},Ji));});}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),ay(this.componentRef.hostView)&&(cy(this.componentRef.changeDetectorRef),this.cdScheduler.notify(6));});}initializeComponent(t){let e=Z.create({providers:[],parent:this.injector}),i=Ki(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:r})=>{let s=t.instance[i];return new m$1(l=>{let c=s.subscribe(f=>l.next({name:r,value:f}));return ()=>c.unsubscribe()})});this.eventEmitters.next(e);}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}},rt=class extends HTMLElement{ngElementEventsSubscription=null};function ui(n,t){let e=Gi(n,t.injector),i=t.strategyFactory||new ot(n,t.injector),r=qi(e);class s extends rt{injector;static observedAttributes=Object.keys(r);get ngElementStrategy(){if(!this._ngElementStrategy){let c=this._ngElementStrategy=i.create(this.injector||t.injector);e.forEach(({propName:f,transform:w})=>{if(!this.hasOwnProperty(f))return;let ne=this[f];delete this[f],c.setInputValue(f,ne,w);});}return this._ngElementStrategy}_ngElementStrategy;constructor(c){super(),this.injector=c;}attributeChangedCallback(c,f,w,ne){let[Ee,Ge]=r[c];this.ngElementStrategy.setInputValue(Ee,w,Ge);}connectedCallback(){let c=false;this.ngElementStrategy.events&&(this.subscribeToEvents(),c=true),this.ngElementStrategy.connect(this),c||this.subscribeToEvents();}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null);}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(c=>{let f=new CustomEvent(c.name,{detail:c.value});this.dispatchEvent(f);});}}return e.forEach(({propName:l,transform:c,isSignal:f})=>{Object.defineProperty(s.prototype,l,{get(){let w=this.ngElementStrategy.getInputValue(l);return f&&Ga(w)?w():w},set(w){this.ngElementStrategy.setInputValue(l,w,c);},configurable:true,enumerable:true});}),s}var fi={providers:[Mv()]};var at=n=>({active:n});function Xi(n,t){if(n&1&&(Ka(0,`span`,4),uv(1),Ja()),n&2){let e=kD(2);ud(),Wf(e.collectionFilterConfig.subtitle);}}function eo(n,t){if(n&1&&(Ka(0,`div`,1)(1,`span`,3),uv(2),Ja(),vD(3,Xi,2,1,`span`,4),Ja()),n&2){let e=kD();ud(2),Wf(e.collectionFilterConfig.title),ud(),ED(e.collectionFilterConfig.subtitle?3:-1);}}function to(n,t){if(n&1&&(Ka(0,`span`,9),uv(1),Ja()),n&2){let e=kD(2).$implicit;yf(`ngClass`,Ev(2,at,hv(0))),ud(),ic(``,e.label,` `);}}function io(n,t){if(n&1){let e=ND();Ka(0,`div`,7),Sf(`mousedown`,function(){fu(e);let r=kD().$implicit,s=hv(0);return pu(kD(2).filterClick(r,s))}),Df(1,`img`,8),vD(2,to,2,4,`span`,9),Ja();}if(n&2){let e=kD().$implicit,i=hv(0);ud(),yf(`src`,e.imageSrc,Qg)(`ngClass`,Ev(3,at,i)),ud(),ED(e.label?2:-1);}}function oo(n,t){if(n&1){let e=ND();Ka(0,`button`,10),Sf(`click`,function(){fu(e);let r=kD().$implicit,s=hv(0);return pu(kD(2).filterClick(r,s))}),uv(1),Ja();}if(n&2){let e=kD().$implicit;yf(`ngClass`,Ev(2,at,hv(0))),ud(),ic(``,e.label,` `);}}function no(n,t){if(n&1&&(Qf(0),vD(1,io,3,5,`div`,5)(2,oo,2,4,`button`,6)),n&2){let e=t.$implicit,i=kD(2);pv(e.value===i.currentActiveParams()[e.key]),ud(),ED(i.collectionFilterConfig.template===i.CollectionFilterTemplate.IMAGE?1:i.collectionFilterConfig.template===i.CollectionFilterTemplate.BUTTON?2:-1);}}function ro(n,t){if(n&1&&wD(0,no,3,2,null,null,ID),n&2)_D(kD().collectionFilterConfig.options);}var Be=class n extends xe{currentActiveParams=Mt$2({});collectionFilterConfig;CollectionFilterTemplate=He$4;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),r=e?`removed`:`applied`;if(e?i.searchParams.delete(t.key):i.searchParams.set(t.key,t.value),this.collectionFilterConfig.refreshPage){this.sendEvent(t,r),window.location.href=i.href;return}window.history.replaceState({path:i.href},``,i),this.sendEvent(t,r),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,r)=>{e[r]=i;}),this.currentActiveParams.set(e);}static ɵfac=function(e){return new(e||n)};static ɵcmp=of({type:n,selectors:[[`cooee-collection-filter`]],features:[Xf(lt()),za],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&&(Ka(0,`div`,0),vD(1,eo,4,2,`div`,1),Ka(2,`div`,2),vD(3,ro,2,0),Ja()()),e&2&&(ud(),ED(i.collectionFilterConfig.title?1:-1),ud(2),ED(i.collectionFilterConfig.options.length?3:-1));},dependencies:[wE],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)}
29
29
  `],encapsulation:3})};var Ne=class n{transform(t,e){return t?qe$2(t,r({},e)):null}static ɵfac=function(e){return new(e||n)};static ɵpipe=Ua({name:`cooeeDynamicVariables`,type:n,pure:true})};var st={};(function n(t,e,i,r){var s=!!(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`,c=(function(){if(!t.OffscreenCanvas)return false;var a=new OffscreenCanvas(1,1),o=a.getContext(`2d`);o.fillRect(0,0,1,1);var p=a.transferToImageBitmap();try{o.createPattern(p,`no-repeat`);}catch{return false}return true})();function f(){}function w(a){var o=e.exports.Promise,p=o!==void 0?o:t.Promise;return typeof p==`function`?new p(a):(a(f,f),null)}var ne=(function(a,o){return {transform:function(p){if(a)return p;if(o.has(p))return o.get(p);var g=new OffscreenCanvas(p.width,p.height);return g.getContext(`2d`).drawImage(p,0,0),o.set(p,g),g},clear:function(){o.clear();}}})(c,new Map),Ee=(function(){var a=Math.floor(16.666666666666668),o,p,g={},v=0;return typeof requestAnimationFrame==`function`&&typeof cancelAnimationFrame==`function`?(o=function(y){var _=Math.random();return g[_]=requestAnimationFrame(function u(x){v===x||v+a-1<x?(v=x,delete g[_],y()):g[_]=requestAnimationFrame(u);}),_},p=function(y){g[y]&&cancelAnimationFrame(g[y]);}):(o=function(y){return setTimeout(y,a)},p=function(y){return clearTimeout(y)}),{frame:o,cancel:p}})(),Ge=(function(){var a,o,p={};function g(v){function y(_,u){v.postMessage({options:_||{},callback:u});}v.init=function(u){var x=u.transferControlToOffscreen();v.postMessage({canvas:x},[x]);},v.fire=function(u,x,V){if(o)return y(u,null),o;var k=Math.random().toString(36).slice(2);return o=w(function(T){function P(B){B.data.callback===k&&(delete p[k],v.removeEventListener(`message`,P),o=null,ne.clear(),V(),T());}v.addEventListener(`message`,P),y(u,k),p[k]=P.bind(null,{data:{callback:k}});}),o},v.reset=function(){v.postMessage({reset:true});for(var u in p)p[u](),delete p[u];};}return function(){if(a)return a;if(!i&&s){var v=[`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(`
30
- `);try{a=new Worker(URL.createObjectURL(new Blob([v])));}catch(y){return typeof console.warn==`function`&&console.warn(`🎊 Could not load worker`,y),null}g(a);}return a}})(),Ci={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 yi(a,o){return o?o(a):a}function _i(a){return a!=null}function A(a,o,p){return yi(a&&_i(a[o])?a[o]:Ci[o],p)}function xi(a){return a<0?0:Math.floor(a)}function bi(a,o){return Math.floor(Math.random()*(o-a))+a}function Ke(a){return parseInt(a,16)}function wi(a){return a.map(Vi)}function Vi(a){var o=String(a).replace(/[^0-9a-f]/gi,``);return o.length<6&&(o=o[0]+o[0]+o[1]+o[1]+o[2]+o[2]),{r:Ke(o.substring(0,2)),g:Ke(o.substring(2,4)),b:Ke(o.substring(4,6))}}function Ti(a){var o=A(a,`origin`,Object);return o.x=A(o,`x`,Number),o.y=A(o,`y`,Number),o}function Ei(a){a.width=document.documentElement.clientWidth,a.height=document.documentElement.clientHeight;}function Si(a){var o=a.getBoundingClientRect();a.width=o.width,a.height=o.height;}function Ii(a){var o=document.createElement(`canvas`);return o.style.position=`fixed`,o.style.top=`0px`,o.style.left=`0px`,o.style.pointerEvents=`none`,o.style.zIndex=a,o}function Mi(a,o,p,g,v,y,_,u,x){a.save(),a.translate(o,p),a.rotate(y),a.scale(g,v),a.arc(0,0,1,_,u,x),a.restore();}function ki(a){var o=a.angle*(Math.PI/180),p=a.spread*(Math.PI/180);return {x:a.x,y:a.y,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:a.startVelocity*.5+Math.random()*a.startVelocity,angle2D:-o+(.5*p-Math.random()*p),tiltAngle:(Math.random()*.5+.25)*Math.PI,color:a.color,shape:a.shape,tick:0,totalTicks:a.ticks,decay:a.decay,drift:a.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:a.gravity*3,ovalScalar:.6,scalar:a.scalar,flat:a.flat}}function Pi(a,o){o.x+=Math.cos(o.angle2D)*o.velocity+o.drift,o.y+=Math.sin(o.angle2D)*o.velocity+o.gravity,o.velocity*=o.decay,o.flat?(o.wobble=0,o.wobbleX=o.x+10*o.scalar,o.wobbleY=o.y+10*o.scalar,o.tiltSin=0,o.tiltCos=0,o.random=1):(o.wobble+=o.wobbleSpeed,o.wobbleX=o.x+10*o.scalar*Math.cos(o.wobble),o.wobbleY=o.y+10*o.scalar*Math.sin(o.wobble),o.tiltAngle+=.1,o.tiltSin=Math.sin(o.tiltAngle),o.tiltCos=Math.cos(o.tiltAngle),o.random=Math.random()+2);var p=o.tick++/o.totalTicks,g=o.x+o.random*o.tiltCos,v=o.y+o.random*o.tiltSin,y=o.wobbleX+o.random*o.tiltCos,_=o.wobbleY+o.random*o.tiltSin;if(a.fillStyle=`rgba(`+o.color.r+`, `+o.color.g+`, `+o.color.b+`, `+(1-p)+`)`,a.beginPath(),l&&o.shape.type===`path`&&typeof o.shape.path==`string`&&Array.isArray(o.shape.matrix))a.fill(Di(o.shape.path,o.shape.matrix,o.x,o.y,Math.abs(y-g)*.1,Math.abs(_-v)*.1,Math.PI/10*o.wobble));else if(o.shape.type===`bitmap`){var u=Math.PI/10*o.wobble,x=Math.abs(y-g)*.1,V=Math.abs(_-v)*.1,k=o.shape.bitmap.width*o.scalar,T=o.shape.bitmap.height*o.scalar,P=new DOMMatrix([Math.cos(u)*x,Math.sin(u)*x,-Math.sin(u)*V,Math.cos(u)*V,o.x,o.y]);P.multiplySelf(new DOMMatrix(o.shape.matrix));var B=a.createPattern(ne.transform(o.shape.bitmap),`no-repeat`);B.setTransform(P),a.globalAlpha=1-p,a.fillStyle=B,a.fillRect(o.x-k/2,o.y-T/2,k,T),a.globalAlpha=1;}else if(o.shape===`circle`)a.ellipse?a.ellipse(o.x,o.y,Math.abs(y-g)*o.ovalScalar,Math.abs(_-v)*o.ovalScalar,Math.PI/10*o.wobble,0,2*Math.PI):Mi(a,o.x,o.y,Math.abs(y-g)*o.ovalScalar,Math.abs(_-v)*o.ovalScalar,Math.PI/10*o.wobble,0,2*Math.PI);else if(o.shape===`star`)for(var b=Math.PI/2*3,H=4*o.scalar,Z=8*o.scalar,W=o.x,re=o.y,fe=5,J=Math.PI/fe;fe--;)W=o.x+Math.cos(b)*Z,re=o.y+Math.sin(b)*Z,a.lineTo(W,re),b+=J,W=o.x+Math.cos(b)*H,re=o.y+Math.sin(b)*H,a.lineTo(W,re),b+=J;else a.moveTo(Math.floor(o.x),Math.floor(o.y)),a.lineTo(Math.floor(o.wobbleX),Math.floor(v)),a.lineTo(Math.floor(y),Math.floor(_)),a.lineTo(Math.floor(g),Math.floor(o.wobbleY));return a.closePath(),a.fill(),o.tick<o.totalTicks}function Fi(a,o,p,g,v){var y=o.slice(),_=a.getContext(`2d`),u,x,V=w(function(k){function T(){u=x=null,_.clearRect(0,0,g.width,g.height),ne.clear(),v(),k();}function P(){i&&!(g.width===r.width&&g.height===r.height)&&(g.width=a.width=r.width,g.height=a.height=r.height),!g.width&&!g.height&&(p(a),g.width=a.width,g.height=a.height),_.clearRect(0,0,g.width,g.height),y=y.filter(function(B){return Pi(_,B)}),y.length?u=Ee.frame(P):T();}u=Ee.frame(P),x=T;});return {addFettis:function(k){return y=y.concat(k),V},canvas:a,promise:V,reset:function(){u&&Ee.cancel(u),x&&x();}}}function lt(a,o){var p=!a,g=!!A(o||{},`resize`),v=false,y=A(o,`disableForReducedMotion`,Boolean),u=s&&!!A(o||{},`useWorker`)?Ge():null,x=p?Ei:Si,V=a&&u?!!a.__confetti_initialized:false,k=typeof matchMedia==`function`&&matchMedia(`(prefers-reduced-motion)`).matches,T;function P(b,H,Z){for(var W=A(b,`particleCount`,xi),re=A(b,`angle`,Number),fe=A(b,`spread`,Number),J=A(b,`startVelocity`,Number),Li=A(b,`decay`,Number),Oi=A(b,`gravity`,Number),Bi=A(b,`drift`,Number),dt=A(b,`colors`,wi),Ni=A(b,`ticks`,Number),pt=A(b,`shapes`),Hi=A(b,`scalar`),ji=!!A(b,`flat`),mt=Ti(b),ut=W,Je=[],$i=a.width*mt.x,zi=a.height*mt.y;ut--;)Je.push(ki({x:$i,y:zi,angle:re,spread:fe,startVelocity:J,color:dt[ut%dt.length],shape:pt[bi(0,pt.length)],ticks:Ni,decay:Li,gravity:Oi,drift:Bi,scalar:Hi,flat:ji}));return T?T.addFettis(Je):(T=Fi(a,Je,x,H,Z),T.promise)}function B(b){var H=y||A(b,`disableForReducedMotion`,Boolean),Z=A(b,`zIndex`,Number);if(H&&k)return w(function(J){J();});p&&T?a=T.canvas:p&&!a&&(a=Ii(Z),document.body.appendChild(a)),g&&!V&&x(a);var W={width:a.width,height:a.height};u&&!V&&u.init(a),V=true,u&&(a.__confetti_initialized=true);function re(){if(u){var J={getBoundingClientRect:function(){if(!p)return a.getBoundingClientRect()}};x(J),u.postMessage({resize:{width:J.width,height:J.height}});return}W.width=W.height=null;}function fe(){T=null,g&&(v=false,t.removeEventListener(`resize`,re)),p&&a&&(document.body.contains(a)&&document.body.removeChild(a),a=null,V=false);}return g&&!v&&(v=true,t.addEventListener(`resize`,re,false)),u?u.fire(b,W,fe):P(b,W,fe)}return B.reset=function(){u&&u.reset(),T&&T.reset();},B}var Ye;function ct(){return Ye||(Ye=lt(null,{useWorker:true,resize:true})),Ye}function Di(a,o,p,g,v,y,_){var u=new Path2D(a),x=new Path2D;x.addPath(u,new DOMMatrix(o));var V=new Path2D;return V.addPath(x,new DOMMatrix([Math.cos(_)*v,Math.sin(_)*v,-Math.sin(_)*y,Math.cos(_)*y,p,g])),V}function Ai(a){if(!l)throw new Error(`path confetti are not supported in this browser`);var o,p;typeof a==`string`?o=a:(o=a.path,p=a.matrix);var g=new Path2D(o),y=document.createElement(`canvas`).getContext(`2d`);if(!p){for(var _=1e3,u=_,x=_,V=0,k=0,T,P,B=0;B<_;B+=2)for(var b=0;b<_;b+=2)y.isPointInPath(g,B,b,`nonzero`)&&(u=Math.min(u,B),x=Math.min(x,b),V=Math.max(V,B),k=Math.max(k,b));T=V-u,P=k-x;var H=10,Z=Math.min(H/T,H/P);p=[Z,0,0,Z,-Math.round(T/2+u)*Z,-Math.round(P/2+x)*Z];}return {type:`path`,path:o,matrix:p}}function Ri(a){var o,p=1,g=`#000000`,v=`"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif`;typeof a==`string`?o=a:(o=a.text,p=`scalar`in a?a.scalar:p,v=`fontFamily`in a?a.fontFamily:v,g=`color`in a?a.color:g);var y=10*p,_=``+y+`px `+v,u=new OffscreenCanvas(y,y),x=u.getContext(`2d`);x.font=_;var V=x.measureText(o),k=Math.ceil(V.actualBoundingBoxRight+V.actualBoundingBoxLeft),T=Math.ceil(V.actualBoundingBoxAscent+V.actualBoundingBoxDescent),P=2,B=V.actualBoundingBoxLeft+P,b=V.actualBoundingBoxAscent+P;k+=P+P,T+=P+P,u=new OffscreenCanvas(k,T),x=u.getContext(`2d`),x.font=_,x.fillStyle=g,x.fillText(o,B,b);var H=1/p;return {type:`bitmap`,bitmap:u.transferToImageBitmap(),matrix:[H,0,0,H,-k*H/2,-T*H/2]}}e.exports=function(){return ct().apply(this,arguments)},e.exports.reset=function(){ct().reset();},e.exports.create=lt,e.exports.shapeFromPath=Ai,e.exports.shapeFromText=Ri;})((function(){return typeof window<`u`?window:typeof self<`u`?self:this||{}})(),st,false);var hi=st.exports;st.exports.create;var He=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,r=()=>{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(r),t--);};r(),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 hi(t);}static async realisticFire(t,e){await this.fire(Object.assign({},{origin:{y:.7}},e,{particleCount:Math.floor(200*t)}));}};var ao=(n,t)=>t.minValue;function so(n,t){if(n&1&&(Xa(0,`div`,7),Iv(1,`safeHtml`)),n&2){let e=kD().$implicit;_f(`innerHTML`,_v(1,1,e.minValue+` Products`),Yg);}}function lo(n,t){if(n&1&&(Xa(0,`div`,7),Iv(1,`cooeeCurrency`),Iv(2,`safeHtml`)),n&2){let e=kD().$implicit;_f(`innerHTML`,_v(2,3,_v(1,1,e.minValue)),Yg);}}function co(n,t){if(n&1&&(Bo(0,`li`,6)(1,`div`),vD(2,so,2,3,`div`,7)(3,lo,3,5,`div`,7),Xa(4,`img`,8),Bo(5,`div`,9),uv(6),Vo$1()()()),n&2){let e=t.$implicit,i=kD(2);rc(`left`,e.calculatedAlignment+`%`),ud(2),ED((i.progressBarConfig==null?null:i.progressBarConfig.rewardBasis)===i.RewardBasis.ITEM_COUNT?2:3),ud(2),_f(`src`,i.getIconURL(e),Qg),ud(2),Wf(e.label);}}function po(n,t){if(n&1&&(Xa(0,`div`,0),Iv(1,`cooeeDynamicVariables`),Iv(2,`safeHtml`),Bo(3,`div`,1)(4,`ul`,2)(5,`div`,3),Xa(6,`div`,4),Vo$1(),wD(7,co,7,5,`li`,5,ao),Vo$1()()),n&2){let e=kD(),i=e.calculatedState();_f(`innerHTML`,_v(2,6,Tv(1,3,i.nextMilestone?i.nextMilestone.reachingText:i.lastMilestone.reachedText,e.localDynamicVariables())),Yg),ud(6),rc(`width`,i.cartValuePercentage+`%`),ud(),_D(i.milestones);}}var je=class n extends xe{cart;localDynamicVariables=Mt$2({});calculatedState=Mt$2({});progressBarConfig;RewardBasis=Re$2;constructor(){super();}engagementTriggerReceived(t){this.progressBarConfig=t.progressBarConfig;}ngOnInit(){super.ngOnInit(),this.calculateMilestonesSilently();}update(){this.calculateMilestonesSilently();}getIconURL(t){return t.rewardType===Fe$2.FREE_SHIPPING?`https://img.icons8.com/ios-filled/50/FFFFFF/free-shipping.png`:t.rewardType===Fe$2.DISCOUNT?`https://img.icons8.com/ios-glyphs/30/FFFFFF/sale-price-tag.png`:t.rewardType===Fe$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(),r=e.milestones.at(-1),s=e?.reachedAmountOrCount??i.originalAmount,l=e.totalProgress??0;Y$1.verbose(`Cart value:`,s,`, percentage: ${l}%`),this.celebrate(t,s);let c={milestonesReady:true,cartValuePercentage:l,milestones:e.milestones},f=e.milestones.find(w=>!w.reached);if(f){let w=Ar$1(f.minValue-s);if(e.rewardBasis===`ITEM_COUNT`){let ne=f.minValue-s;w=`${ne} ${ne===1?`product`:`products`}`;}this.localDynamicVariables.set({amount_left:w}),c.nextMilestone=f,this.calculatedState.set(c);return}c.lastMilestone=r,this.calculatedState.set(c);}celebrate(t,e){let s=[...t.progressBarConfig.milestones].reverse().find(f=>f.minValue<e);if(!s)return;let l=`lc/en/${t.shortID}/${s.minValue}`;sessionStorage.getItem(l)||(sessionStorage.setItem(l,`1`),this.progressBarConfig?.noConfetti||He.realistic());}static ɵfac=function(e){return new(e||n)};static ɵcmp=of({type:n,selectors:[[`cooee-progressbar`]],inputs:{cart:`cart`},features:[Xf(lt()),za],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&&vD(0,po,9,8),e&2&&ED(i.calculatedState().milestonesReady?0:-1);},dependencies:[Ne,a,oe],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))}
31
- `],encapsulation:3})};var mo=[`numberVariable`],$e=class n extends xe{numberSlot;savingsBarConfig;textParts=Mt$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.updateUIVars();}updateUIVars(){let t=r(r({},this.engagementTrigger.getCartMagicVariables()),An$2(`total_savings`,this.savingsBarConfig.totalSavings)),e=qe$2(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[r$1,s]=e.split(i);this.textParts.set({start:r$1,end:s}),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 r=0;r<t.length;r++){let s=document.createElement(`div`);s.className=`digit`,s.style.display=`inline-block`,e.appendChild(s);let l=setInterval(()=>{s.innerHTML=`<div>${Math.floor(Math.random()*10)}</div>`;},50);this.globalIntervals.push(l),setTimeout(()=>{clearInterval(l);s.innerHTML=`${t?.[r]??Math.floor(Math.random()*10)}`;},(r+1)*i);}}clearPreviousIntervals(){this.globalIntervals.forEach(clearInterval),this.globalIntervals=[];}runIncrementalAnimation(t){let e=performance.now(),i=r=>{let s=Math.min((r-e)/this.savingsBarConfig.animationDuration,1);this.numberSlot.nativeElement.innerHTML=Math.floor(t*s).toString(),s<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=of({type:n,selectors:[[`cooee-savings-bar`]],viewQuery:function(e,i){if(e&1&&nc(mo,5),e&2){let r;Rf(r=xf())&&(i.numberSlot=r.first);}},features:[za],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&&(Bo(0,`div`,1),Xa(1,`div`,2)(2,`div`,3)(3,`div`,4,0)(5,`div`,5),Vo$1()),e&2&&(ud(2),_f(`innerHTML`,i.textParts().start,Yg),ud(3),_f(`innerHTML`,i.textParts().end,Yg));},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}
30
+ `);try{a=new Worker(URL.createObjectURL(new Blob([v])));}catch(y){return typeof console.warn==`function`&&console.warn(`🎊 Could not load worker`,y),null}g(a);}return a}})(),Ci={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 yi(a,o){return o?o(a):a}function _i(a){return a!=null}function A(a,o,p){return yi(a&&_i(a[o])?a[o]:Ci[o],p)}function xi(a){return a<0?0:Math.floor(a)}function bi(a,o){return Math.floor(Math.random()*(o-a))+a}function Ke(a){return parseInt(a,16)}function wi(a){return a.map(Vi)}function Vi(a){var o=String(a).replace(/[^0-9a-f]/gi,``);return o.length<6&&(o=o[0]+o[0]+o[1]+o[1]+o[2]+o[2]),{r:Ke(o.substring(0,2)),g:Ke(o.substring(2,4)),b:Ke(o.substring(4,6))}}function Ti(a){var o=A(a,`origin`,Object);return o.x=A(o,`x`,Number),o.y=A(o,`y`,Number),o}function Ei(a){a.width=document.documentElement.clientWidth,a.height=document.documentElement.clientHeight;}function Si(a){var o=a.getBoundingClientRect();a.width=o.width,a.height=o.height;}function Ii(a){var o=document.createElement(`canvas`);return o.style.position=`fixed`,o.style.top=`0px`,o.style.left=`0px`,o.style.pointerEvents=`none`,o.style.zIndex=a,o}function Mi(a,o,p,g,v,y,_,u,x){a.save(),a.translate(o,p),a.rotate(y),a.scale(g,v),a.arc(0,0,1,_,u,x),a.restore();}function ki(a){var o=a.angle*(Math.PI/180),p=a.spread*(Math.PI/180);return {x:a.x,y:a.y,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:a.startVelocity*.5+Math.random()*a.startVelocity,angle2D:-o+(.5*p-Math.random()*p),tiltAngle:(Math.random()*.5+.25)*Math.PI,color:a.color,shape:a.shape,tick:0,totalTicks:a.ticks,decay:a.decay,drift:a.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:a.gravity*3,ovalScalar:.6,scalar:a.scalar,flat:a.flat}}function Pi(a,o){o.x+=Math.cos(o.angle2D)*o.velocity+o.drift,o.y+=Math.sin(o.angle2D)*o.velocity+o.gravity,o.velocity*=o.decay,o.flat?(o.wobble=0,o.wobbleX=o.x+10*o.scalar,o.wobbleY=o.y+10*o.scalar,o.tiltSin=0,o.tiltCos=0,o.random=1):(o.wobble+=o.wobbleSpeed,o.wobbleX=o.x+10*o.scalar*Math.cos(o.wobble),o.wobbleY=o.y+10*o.scalar*Math.sin(o.wobble),o.tiltAngle+=.1,o.tiltSin=Math.sin(o.tiltAngle),o.tiltCos=Math.cos(o.tiltAngle),o.random=Math.random()+2);var p=o.tick++/o.totalTicks,g=o.x+o.random*o.tiltCos,v=o.y+o.random*o.tiltSin,y=o.wobbleX+o.random*o.tiltCos,_=o.wobbleY+o.random*o.tiltSin;if(a.fillStyle=`rgba(`+o.color.r+`, `+o.color.g+`, `+o.color.b+`, `+(1-p)+`)`,a.beginPath(),l&&o.shape.type===`path`&&typeof o.shape.path==`string`&&Array.isArray(o.shape.matrix))a.fill(Di(o.shape.path,o.shape.matrix,o.x,o.y,Math.abs(y-g)*.1,Math.abs(_-v)*.1,Math.PI/10*o.wobble));else if(o.shape.type===`bitmap`){var u=Math.PI/10*o.wobble,x=Math.abs(y-g)*.1,V=Math.abs(_-v)*.1,k=o.shape.bitmap.width*o.scalar,T=o.shape.bitmap.height*o.scalar,P=new DOMMatrix([Math.cos(u)*x,Math.sin(u)*x,-Math.sin(u)*V,Math.cos(u)*V,o.x,o.y]);P.multiplySelf(new DOMMatrix(o.shape.matrix));var B=a.createPattern(ne.transform(o.shape.bitmap),`no-repeat`);B.setTransform(P),a.globalAlpha=1-p,a.fillStyle=B,a.fillRect(o.x-k/2,o.y-T/2,k,T),a.globalAlpha=1;}else if(o.shape===`circle`)a.ellipse?a.ellipse(o.x,o.y,Math.abs(y-g)*o.ovalScalar,Math.abs(_-v)*o.ovalScalar,Math.PI/10*o.wobble,0,2*Math.PI):Mi(a,o.x,o.y,Math.abs(y-g)*o.ovalScalar,Math.abs(_-v)*o.ovalScalar,Math.PI/10*o.wobble,0,2*Math.PI);else if(o.shape===`star`)for(var b=Math.PI/2*3,H=4*o.scalar,Z=8*o.scalar,W=o.x,re=o.y,fe=5,J=Math.PI/fe;fe--;)W=o.x+Math.cos(b)*Z,re=o.y+Math.sin(b)*Z,a.lineTo(W,re),b+=J,W=o.x+Math.cos(b)*H,re=o.y+Math.sin(b)*H,a.lineTo(W,re),b+=J;else a.moveTo(Math.floor(o.x),Math.floor(o.y)),a.lineTo(Math.floor(o.wobbleX),Math.floor(v)),a.lineTo(Math.floor(y),Math.floor(_)),a.lineTo(Math.floor(g),Math.floor(o.wobbleY));return a.closePath(),a.fill(),o.tick<o.totalTicks}function Fi(a,o,p,g,v){var y=o.slice(),_=a.getContext(`2d`),u,x,V=w(function(k){function T(){u=x=null,_.clearRect(0,0,g.width,g.height),ne.clear(),v(),k();}function P(){i&&!(g.width===r.width&&g.height===r.height)&&(g.width=a.width=r.width,g.height=a.height=r.height),!g.width&&!g.height&&(p(a),g.width=a.width,g.height=a.height),_.clearRect(0,0,g.width,g.height),y=y.filter(function(B){return Pi(_,B)}),y.length?u=Ee.frame(P):T();}u=Ee.frame(P),x=T;});return {addFettis:function(k){return y=y.concat(k),V},canvas:a,promise:V,reset:function(){u&&Ee.cancel(u),x&&x();}}}function lt(a,o){var p=!a,g=!!A(o||{},`resize`),v=false,y=A(o,`disableForReducedMotion`,Boolean),u=s&&!!A(o||{},`useWorker`)?Ge():null,x=p?Ei:Si,V=a&&u?!!a.__confetti_initialized:false,k=typeof matchMedia==`function`&&matchMedia(`(prefers-reduced-motion)`).matches,T;function P(b,H,Z){for(var W=A(b,`particleCount`,xi),re=A(b,`angle`,Number),fe=A(b,`spread`,Number),J=A(b,`startVelocity`,Number),Li=A(b,`decay`,Number),Oi=A(b,`gravity`,Number),Bi=A(b,`drift`,Number),dt=A(b,`colors`,wi),Ni=A(b,`ticks`,Number),pt=A(b,`shapes`),Hi=A(b,`scalar`),ji=!!A(b,`flat`),mt=Ti(b),ut=W,Je=[],$i=a.width*mt.x,zi=a.height*mt.y;ut--;)Je.push(ki({x:$i,y:zi,angle:re,spread:fe,startVelocity:J,color:dt[ut%dt.length],shape:pt[bi(0,pt.length)],ticks:Ni,decay:Li,gravity:Oi,drift:Bi,scalar:Hi,flat:ji}));return T?T.addFettis(Je):(T=Fi(a,Je,x,H,Z),T.promise)}function B(b){var H=y||A(b,`disableForReducedMotion`,Boolean),Z=A(b,`zIndex`,Number);if(H&&k)return w(function(J){J();});p&&T?a=T.canvas:p&&!a&&(a=Ii(Z),document.body.appendChild(a)),g&&!V&&x(a);var W={width:a.width,height:a.height};u&&!V&&u.init(a),V=true,u&&(a.__confetti_initialized=true);function re(){if(u){var J={getBoundingClientRect:function(){if(!p)return a.getBoundingClientRect()}};x(J),u.postMessage({resize:{width:J.width,height:J.height}});return}W.width=W.height=null;}function fe(){T=null,g&&(v=false,t.removeEventListener(`resize`,re)),p&&a&&(document.body.contains(a)&&document.body.removeChild(a),a=null,V=false);}return g&&!v&&(v=true,t.addEventListener(`resize`,re,false)),u?u.fire(b,W,fe):P(b,W,fe)}return B.reset=function(){u&&u.reset(),T&&T.reset();},B}var Ye;function ct(){return Ye||(Ye=lt(null,{useWorker:true,resize:true})),Ye}function Di(a,o,p,g,v,y,_){var u=new Path2D(a),x=new Path2D;x.addPath(u,new DOMMatrix(o));var V=new Path2D;return V.addPath(x,new DOMMatrix([Math.cos(_)*v,Math.sin(_)*v,-Math.sin(_)*y,Math.cos(_)*y,p,g])),V}function Ai(a){if(!l)throw new Error(`path confetti are not supported in this browser`);var o,p;typeof a==`string`?o=a:(o=a.path,p=a.matrix);var g=new Path2D(o),y=document.createElement(`canvas`).getContext(`2d`);if(!p){for(var _=1e3,u=_,x=_,V=0,k=0,T,P,B=0;B<_;B+=2)for(var b=0;b<_;b+=2)y.isPointInPath(g,B,b,`nonzero`)&&(u=Math.min(u,B),x=Math.min(x,b),V=Math.max(V,B),k=Math.max(k,b));T=V-u,P=k-x;var H=10,Z=Math.min(H/T,H/P);p=[Z,0,0,Z,-Math.round(T/2+u)*Z,-Math.round(P/2+x)*Z];}return {type:`path`,path:o,matrix:p}}function Ri(a){var o,p=1,g=`#000000`,v=`"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif`;typeof a==`string`?o=a:(o=a.text,p=`scalar`in a?a.scalar:p,v=`fontFamily`in a?a.fontFamily:v,g=`color`in a?a.color:g);var y=10*p,_=``+y+`px `+v,u=new OffscreenCanvas(y,y),x=u.getContext(`2d`);x.font=_;var V=x.measureText(o),k=Math.ceil(V.actualBoundingBoxRight+V.actualBoundingBoxLeft),T=Math.ceil(V.actualBoundingBoxAscent+V.actualBoundingBoxDescent),P=2,B=V.actualBoundingBoxLeft+P,b=V.actualBoundingBoxAscent+P;k+=P+P,T+=P+P,u=new OffscreenCanvas(k,T),x=u.getContext(`2d`),x.font=_,x.fillStyle=g,x.fillText(o,B,b);var H=1/p;return {type:`bitmap`,bitmap:u.transferToImageBitmap(),matrix:[H,0,0,H,-k*H/2,-T*H/2]}}e.exports=function(){return ct().apply(this,arguments)},e.exports.reset=function(){ct().reset();},e.exports.create=lt,e.exports.shapeFromPath=Ai,e.exports.shapeFromText=Ri;})((function(){return typeof window<`u`?window:typeof self<`u`?self:this||{}})(),st,false);var hi=st.exports;st.exports.create;var He=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,r=()=>{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(r),t--);};r(),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 hi(t);}static async realisticFire(t,e){await this.fire(Object.assign({},{origin:{y:.7}},e,{particleCount:Math.floor(200*t)}));}};var ao=(n,t)=>t.minValue;function so(n,t){if(n&1&&(Xa(0,`div`,7),Iv(1,`safeHtml`)),n&2){let e=kD().$implicit;_f(`innerHTML`,_v(1,1,e.minValue+` Products`),Yg);}}function lo(n,t){if(n&1&&(Xa(0,`div`,7),Iv(1,`cooeeCurrency`),Iv(2,`safeHtml`)),n&2){let e=kD().$implicit;_f(`innerHTML`,_v(2,3,_v(1,1,e.minValue)),Yg);}}function co(n,t){if(n&1&&(Bo(0,`li`,6)(1,`div`),vD(2,so,2,3,`div`,7)(3,lo,3,5,`div`,7),Xa(4,`img`,8),Bo(5,`div`,9),uv(6),Vo$1()()()),n&2){let e=t.$implicit,i=kD(2);rc(`left`,e.calculatedAlignment+`%`),ud(2),ED((i.progressBarConfig==null?null:i.progressBarConfig.rewardBasis)===i.RewardBasis.ITEM_COUNT?2:3),ud(2),_f(`src`,i.getIconURL(e),Qg),ud(2),Wf(e.label);}}function po(n,t){if(n&1&&(Xa(0,`div`,0),Iv(1,`cooeeDynamicVariables`),Iv(2,`safeHtml`),Bo(3,`div`,1)(4,`ul`,2)(5,`div`,3),Xa(6,`div`,4),Vo$1(),wD(7,co,7,5,`li`,5,ao),Vo$1()()),n&2){let e=kD(),i=e.calculatedState();_f(`innerHTML`,_v(2,6,Tv(1,3,i.nextMilestone?i.nextMilestone.reachingText:i.lastMilestone.reachedText,e.localDynamicVariables())),Yg),ud(6),rc(`width`,i.cartValuePercentage+`%`),ud(),_D(i.milestones);}}var je=class n extends xe{cart;localDynamicVariables=Mt$2({});calculatedState=Mt$2({});progressBarConfig;RewardBasis=Re$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===Fe$2.FREE_SHIPPING?`https://img.icons8.com/ios-filled/50/FFFFFF/free-shipping.png`:t.rewardType===Fe$2.DISCOUNT?`https://img.icons8.com/ios-glyphs/30/FFFFFF/sale-price-tag.png`:t.rewardType===Fe$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(),r=e.milestones.at(-1),s=e?.reachedAmountOrCount??i.originalAmount,l=e.totalProgress??0;Y$1.verbose(`Cart value:`,s,`, percentage: ${l}%`),this.celebrate(t,s);let c={milestonesReady:true,cartValuePercentage:l,milestones:e.milestones},f=e.milestones.find(w=>!w.reached);if(f){let w=Ar$1(f.minValue-s);if(e.rewardBasis===`ITEM_COUNT`){let ne=f.minValue-s;w=`${ne} ${ne===1?`product`:`products`}`;}this.localDynamicVariables.set({amount_left:w}),c.nextMilestone=f,this.calculatedState.set(c);return}c.lastMilestone=r,this.calculatedState.set(c);}celebrate(t,e){let s=[...t.progressBarConfig.milestones].reverse().find(f=>f.minValue<e);if(!s)return;let l=`lc/en/${t.shortID}/${s.minValue}`;sessionStorage.getItem(l)||(sessionStorage.setItem(l,`1`),this.progressBarConfig?.noConfetti||He.realistic());}static ɵfac=function(e){return new(e||n)};static ɵcmp=of({type:n,selectors:[[`cooee-progressbar`]],inputs:{cart:`cart`},features:[Xf(lt()),za],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&&vD(0,po,9,8),e&2&&ED(i.calculatedState().milestonesReady?0:-1);},dependencies:[Ne,a,oe],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))}
31
+ `],encapsulation:3})};var mo=[`numberVariable`],$e=class n extends xe{numberSlot;savingsBarConfig;textParts=Mt$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.updateUIVars();}updateUIVars(){let t=r(r({},this.engagementTrigger.getCartMagicVariables()),xn$2(`total_savings`,this.savingsBarConfig.totalSavings)),e=qe$2(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[r$1,s]=e.split(i);this.textParts.set({start:r$1,end:s}),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 r=0;r<t.length;r++){let s=document.createElement(`div`);s.className=`digit`,s.style.display=`inline-block`,e.appendChild(s);let l=setInterval(()=>{s.innerHTML=`<div>${Math.floor(Math.random()*10)}</div>`;},50);this.globalIntervals.push(l),setTimeout(()=>{clearInterval(l);s.innerHTML=`${t?.[r]??Math.floor(Math.random()*10)}`;},(r+1)*i);}}clearPreviousIntervals(){this.globalIntervals.forEach(clearInterval),this.globalIntervals=[];}runIncrementalAnimation(t){let e=performance.now(),i=r=>{let s=Math.min((r-e)/this.savingsBarConfig.animationDuration,1);this.numberSlot.nativeElement.innerHTML=Math.floor(t*s).toString(),s<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=of({type:n,selectors:[[`cooee-savings-bar`]],viewQuery:function(e,i){if(e&1&&nc(mo,5),e&2){let r;Rf(r=xf())&&(i.numberSlot=r.first);}},features:[za],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&&(Bo(0,`div`,1),Xa(1,`div`,2)(2,`div`,3)(3,`div`,4,0)(5,`div`,5),Vo$1()),e&2&&(ud(2),_f(`innerHTML`,i.textParts().start,Yg),ud(3),_f(`innerHTML`,i.textParts().end,Yg));},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}
32
32
  `],encapsulation:3})};var ze=class n extends xe{item;data=g(Ye);dialogRef=g(W);ItemDetailLayout=$e$2;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=of({type:n,selectors:[[`cooee-item-quick-view`]],features:[Xf(lt()),za],decls:1,vars:2,consts:[[3,`closeClick`,`item`,`layout`]],template:function(e,i){e&1&&(Ka(0,`cooee-item-detail`,0),Sf(`closeClick`,function(){return i.close()}),Ja()),e&2&&yf(`item`,i.item)(`layout`,i.ItemDetailLayout.TWO_PANE);},dependencies:[ut],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)}}
33
33
  `],encapsulation:3})};var Ue=class n{dialog=g(Ro);dialogRef;constructor(){}showItemQuickView(t,e){this.dialogRef=this.dialog.open(ze,{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 uo=(n,t)=>({enter:n,exit:t});function fo(n,t){if(n&1&&(Ka(0,`div`,7),uv(1),Ja(),Ka(2,`div`,8),uv(3),Ja()),n&2){let e=kD(2);ud(),ic(` `,e.getCurrency(e.selectedVariant().price.cmp),` `),ud(2),ic(` `,e.getDiscountPercentage(e.selectedVariant().price),`% off `);}}function go(n,t){if(n&1&&(Ka(0,`div`,6),uv(1),Ja()),n&2){let e=kD(2);ud(),ic(` `,e.stickyATCConfig.leftText,` `);}}function ho(n,t){if(n&1&&(Ka(0,`div`,1)(1,`div`,5),uv(2),Ja(),vD(3,fo,4,2),vD(4,go,2,1,`div`,6),Ja()),n&2){let e=kD();ud(2),ic(` `,e.getCurrency(e.selectedVariant().price.d),` `),ud(),ED(e.selectedVariant().price.cmp?3:-1),ud(),ED(e.stickyATCConfig.leftText?4:-1);}}function vo(n,t){if(n&1&&(Ka(0,`div`,9),uv(1),Ja()),n&2){let e=t.$implicit,i=t.$index;kD(2);let r=hv(5);yf(`ngClass`,Cv(2,uo,i===r.currentIndex,i===r.previousIndex)),ud(),ic(` `,e,` `);}}function Co(n,t){if(n&1&&(Ka(0,`div`,4),wD(1,vo,2,5,`div`,9,ID),Ja()),n&2){kD();let e=hv(5);ud(),_D(e.features);}}var Qe=class n extends xe{currentItem;stickyATCConfig;selectedVariant=Mt$2(void 0);featureSlider=Mt$2({features:[],currentIndex:0});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],this.selectedVariant.set(this.currentItem.vars[0]),this.stickyATCConfig.leftText=this.replaceVariables(this.stickyATCConfig.leftText),this.stickyATCConfig.rightText=this.replaceVariables(this.stickyATCConfig.rightText),this.startFeatureRotation();}update(){}getCurrency(t){return Ar$1(t)}getDiscountPercentage(t){return ((t.cmp-t.d)/t.cmp*100).toFixed(0)}addToCart(){this.engagementService.executeCTA(He$3.ADD_TO_CART,{item:this.currentItem});}startFeatureRotation(){if(!this.stickyATCConfig.rightText)return;let t=this.stickyATCConfig.rightText.split(`
34
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?qe$2(t,this.currentItem.getTemplateVariables(),this.triggerContext):``}static ɵfac=function(e){return new(e||n)};static ɵcmp=of({type:n,selectors:[[`cooee-sticky-atc`]],hostBindings:function(e,i){e&1&&Sf(`letscooee:variant-change`,function(s){return i.onVariantChange(s)},Jg);},features:[Xf(lt()),za],decls:7,vars:3,consts:[[1,`lc-wrapper`],[1,`lc-prices`],[1,`lc-button-wrapper`],[`type`,`button`,1,`lc-button`,`lc-button-atc`,3,`click`],[1,`lc-features`],[1,`lc-sale-price`],[1,`lc-additional-text`],[1,`lc-compare-price`],[1,`lc-discount-label`],[1,`lc-feature`,3,`ngClass`]],template:function(e,i){if(e&1&&(Ka(0,`div`,0),vD(1,ho,5,3,`div`,1),Ka(2,`div`,2)(3,`button`,3),Sf(`click`,function(){return i.addToCart()}),uv(4,`Add To Cart`),Ja(),Qf(5),vD(6,Co,3,0,`div`,4),Ja()()),e&2){ud(),ED(i.selectedVariant()&&i.stickyATCConfig.showProductInfo?1:-1),ud(4);let r=pv(i.featureSlider());ud(),ED(r.features.length?6:-1);}},dependencies:[wE],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%}.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:#000;color:#fff;opacity:1;pointer-events:auto;border-radius:4px;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}
35
- `],encapsulation:3})};var yo=[`videoEl`];async function vi(){return (await import('./video-detail-dialog.component-Bxg20OFh-eyH-mp7f.js').then(function (n) { return n.v; })).VideoDetailDialogComponent}var me=class n extends xe{videoElements;videos;videoConfig;dialogRef=null;dialog=g(Ro);isMobile=M$3();pausedVideos=[];videoLoadingStates=new Map;intersectionObserver;visibleVideos=new Set;constructor(){super(),vi();}ngAfterViewInit(){this.checkAndOpenVideoFromUrl();}ngOnDestroy(){super.ngOnDestroy(),this.intersectionObserver?.disconnect();}engagementTriggerReceived(t){this.videoConfig=t.content?.videoConfig,this.videos=this.videoConfig.videos;}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,r,s){t?.stopPropagation(),t?.preventDefault();let l=e.items?.[0];if(this.sendTriggerClicked(e,l),this.videoConfig.footerContent===`NONE`){r&&(r.muted=false,r.play(),this.onMuteToggled(false,r));return}await this.openDialog(e,i,s);}sendEvent(t,e,i,r){let s=new Ir$1(t,e,this.engagementTrigger);s.setVideos(i),r&&(s.items=[r.toEmbed()]),window.CooeeSDK.sendEvent(s);}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(r=>{let s=r.target,l=s.dataset.videoId;l&&(r.isIntersecting?(this.visibleVideos.add(l),this.handleVideoVisibilityChange(s,true)):(this.visibleVideos.delete(l),this.handleVideoVisibilityChange(s,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.videos)return;let e=Je$1();if(e.utm_campaign?.toLowerCase()!==`shoppable_video`||e.utm_source?.toLowerCase()!==Ae$2)return;let i=this.videos.findIndex(r=>r.shortID===+t);if(i!==-1){let r=this.videos[i];await fe$2.set(`muted`,true),await this.openDialog(r,i);}}async openDialog(t,e,i){await Vi$1();let r={videos:this.videos,currentIndex:e,triggerContext:this.triggerContext,selectedItem:i};this.dialogRef&&this.dialogRef.close(),this.pauseAllPlaylistVideos();let s=await vi();this.dialogRef=this.dialog.open(s,{width:`100vw`,height:`100vh`,data:r,providers:bt(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(c=>{if(this.dialogRef=null,!c)return;let f=c.lastVideoDuration*1e3,w={videoID:c.lastVideo.id,videoIndex:c.lastVideoIndex,playedTillMS:f,playedTillPercent:f/c.lastVideo.durationMS};this.sendEvent(`CE Video Dialog Closed`,{current:w},c.lastVideo),this.onDialogClosed();});}static ɵfac=function(e){return new(e||n)};static ɵcmp=of({type:n,selectors:[[`cooee-abstract-video`]],viewQuery:function(e,i){if(e&1&&nc(yo,5),e&2){let r;Rf(r=xf())&&(i.videoElements=r);}},features:[za],decls:0,vars:0,template:function(e,i){},encapsulation:2})};var ue=class n{video=$b.required({alias:`cooeeVideoSources`});prioritySource=$b(`high`);elementRef=g(Se$1);constructor(){Es(()=>{this.updateSources();});}updateSources(){let t=this.elementRef.nativeElement,e=this.video(),i=this.prioritySource();t.querySelectorAll(`source`).forEach(s=>s.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=hn$1({type:n,selectors:[[`video`,`cooeeVideoSources`,``]],inputs:{video:[1,`cooeeVideoSources`,`video`],prioritySource:[1,`prioritySource`]}})};var _o=(n,t)=>t.id;function xo(n,t){if(n&1&&(Df(0,`div`,1),Iv(1,`safeHtml`)),n&2)yf(`innerHTML`,_v(1,1,kD().videoConfig.heading),Yg);}function bo(n,t){n&1&&(Ka(0,`div`,6),Df(1,`div`,12),Ja());}function wo(n,t){if(n&1){let e=ND();Ka(0,`cooee-mute-toggle`,13),Sf(`toggled`,function(r){fu(e),kD();let s=jD(6);return pu(kD().onMuteToggled(r,s))}),Ja();}if(n&2){kD();let e=jD(6);yf(`muted`,e.muted)(`videoEl`,e);}}function Vo(n,t){if(n&1){let e=ND();Ka(0,`cooee-video-promoted-items`,16),Sf(`cardClick`,function(r){fu(e);let s=kD(2),l=s.$implicit,c=s.$index,f=jD(6);return pu(kD().onItemCardClick(r,l,c,f))}),Ja();}if(n&2){let e=kD(2).$implicit;yf(`items`,e.items)(`centeredSlides`,false);}}function To(n,t){if(n&1){let e=ND();Ka(0,`cooee-item-card`,17),Sf(`buttonClick`,function(){fu(e);let r=kD(2),s=r.$implicit,l=r.$index,c=jD(6);return pu(kD().addToCartClicked(null,s,l,c))})(`click`,function(){fu(e);let r=kD(2),s=r.$implicit,l=r.$index,c=jD(6),f=hv(0);return pu(kD().onItemCardClick(f,s,l,c))}),Ja();}if(n&2){kD(2);yf(`item`,hv(0));}}function Eo(n,t){if(n&1&&vD(0,Vo,1,2,`cooee-video-promoted-items`,14)(1,To,1,1,`cooee-item-card`,15),n&2){let e=kD().$implicit,i=kD();ED(hv(2)===i.VideoConfigFooterContent.ITEM_SWIPER&&e.items.length>1?0:e.items.length?1:-1);}}function So(n,t){if(n&1){let e=ND();Ka(0,`cooee-video-card`,18),Sf(`linkClicked`,function(){fu(e);let r=kD().$implicit;return pu(kD().sendTriggerClicked(r))}),Ja();}if(n&2){kD();yf(`card`,hv(1));}}function Io(n,t){if(n&1){let e=ND();Qf(0)(1),Ka(2,`div`,4)(3,`div`,5),Sf(`click`,function(r){let s=fu(e),l=s.$implicit,c=s.$index,f=jD(6);return pu(kD().onVideoTap(r,l,c,f))})(`keydown.enter`,function(r){let s=fu(e),l=s.$implicit,c=s.$index,f=jD(6);return pu(kD().onVideoTap(r,l,c,f))})(`keydown.space`,function(r){let s=fu(e),l=s.$implicit,c=s.$index,f=jD(6);return pu(kD().onVideoTap(r,l,c,f))}),vD(4,bo,2,0,`div`,6),Ka(5,`video`,7,0),Sf(`mouseenter`,function(){fu(e);let r=jD(6);kD();return pu(hv(1)&&r.play())})(`mouseleave`,function(){fu(e);let r=jD(6);kD();return pu(hv(1)&&r.pause())})(`loadstart`,function(){let r=fu(e).$implicit;return pu(kD().onVideoLoadStart(r.id))})(`canplay`,function(){let r=fu(e).$implicit;return pu(kD().onVideoCanPlay(r.id))}),Ja(),Ka(7,`div`,8),vD(8,wo,1,2,`cooee-mute-toggle`,9),Ja()(),Ka(9,`div`,10),vD(10,Eo,2,1)(11,So,1,1,`cooee-video-card`,11),Ja()();}if(n&2){let e=t.$implicit,i=kD(),r=hv(0),s=hv(2);pv(e.items[0]),ud();let c=pv(e.card)&&s===i.VideoConfigFooterContent.CARD;ud(2),rc(`background-image`,e.thumbnail?`url(`+e.thumbnail+`)`:null),ud(),ED(i.isVideoLoading(e.id)?4:-1),ud(),yf(`cooeeVideoSources`,e)(`muted`,true),mf(`preload`,r?`metadata`:`none`)(`autoplay`,null)(`data-video-id`,e.id),ud(3),ED(i.videoConfig.showMuteButton?8:-1),ud(2),ED(i.videoConfig.showItems()?10:c?11:-1);}}var Ze=class n extends me{VideoConfigFooterContent=ye$3;VideoConfigAutoPlay=ge$3;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,r){let s=e.items?.[0],l=he$2.get().website?.canChangeVariantInCart;if(e.items?.length>1||s?.hasVariants()&&!l){this.onItemCardClick(s,e,i,r);return}this.engagementService.executeCTA(He$3.ADD_TO_CART,{item:s,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,r){this.videoConfig.playlistConfig.itemCardClickBehavior===`OPEN_ITEM_DETAIL`?this.onVideoTap(null,e,i,r,t):this.onVideoTap(null,e,i,r);}update(){}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=of({type:n,selectors:[[`cooee-video-playlist`]],features:[Xf(lt()),za],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&&(Qf(0)(1)(2),vD(3,xo,2,3,`div`,1),Ka(4,`cooee-swiper`,2),ec(5,3),wD(6,Io,12,12,`div`,4,_o),Ho(),Ja()),e&2){pv(!i.videoConfig.autoPlay||i.videoConfig.autoPlay===i.VideoConfigAutoPlay.ON),ud(),pv(i.videoConfig.autoPlay===i.VideoConfigAutoPlay.ON_HOVER),ud(),pv(i.videoConfig.footerContent),ud(),ED(i.videoConfig.heading?3:-1);let r=i.videoConfig.playlistConfig.videoSwiper;ud(),yf(`options`,i.swiperOptions)(`navigationConfig`,r==null?null:r.navigation)(`paginationConfig`,r==null?null:r.pagination),ud(2),_D(i.videos);}},dependencies:[ft,mt,pt,re,ue,ht,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)}
35
+ `],encapsulation:3})};var yo=[`videoEl`];async function vi(){return (await import('./video-detail-dialog.component-CXwW6KbY-CCLwK_4I.js').then(function (n) { return n.v; })).VideoDetailDialogComponent}var me=class n extends xe{videoElements;videos;videoConfig;dialogRef=null;dialog=g(Ro);isMobile=M$3();pausedVideos=[];videoLoadingStates=new Map;intersectionObserver;visibleVideos=new Set;constructor(){super(),vi();}ngAfterViewInit(){this.checkAndOpenVideoFromUrl();}ngOnDestroy(){super.ngOnDestroy(),this.intersectionObserver?.disconnect();}engagementTriggerReceived(t){this.videoConfig=t.content?.videoConfig,this.videos=this.videoConfig.videos;}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,r,s){t?.stopPropagation(),t?.preventDefault();let l=e.items?.[0];if(this.sendTriggerClicked(e,l),this.videoConfig.footerContent===`NONE`){r&&(r.muted=false,r.play(),this.onMuteToggled(false,r));return}await this.openDialog(e,i,s);}sendEvent(t,e,i,r){let s=new Ir$1(t,e,this.engagementTrigger);s.setVideos(i),r&&(s.items=[r.toEmbed()]),window.CooeeSDK.sendEvent(s);}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(r=>{let s=r.target,l=s.dataset.videoId;l&&(r.isIntersecting?(this.visibleVideos.add(l),this.handleVideoVisibilityChange(s,true)):(this.visibleVideos.delete(l),this.handleVideoVisibilityChange(s,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.videos)return;let e=Je$1();if(e.utm_campaign?.toLowerCase()!==`shoppable_video`||e.utm_source?.toLowerCase()!==Ae$2)return;let i=this.videos.findIndex(r=>r.shortID===+t);if(i!==-1){let r=this.videos[i];await fe$2.set(`muted`,true),await this.openDialog(r,i);}}async openDialog(t,e,i){await Vi$1();let r={videos:this.videos,currentIndex:e,triggerContext:this.triggerContext,selectedItem:i};this.dialogRef&&this.dialogRef.close(),this.pauseAllPlaylistVideos();let s=await vi();this.dialogRef=this.dialog.open(s,{width:`100vw`,height:`100vh`,data:r,providers:bt(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(c=>{if(this.dialogRef=null,!c)return;let f=c.lastVideoDuration*1e3,w={videoID:c.lastVideo.id,videoIndex:c.lastVideoIndex,playedTillMS:f,playedTillPercent:f/c.lastVideo.durationMS};this.sendEvent(`CE Video Dialog Closed`,{current:w},c.lastVideo),this.onDialogClosed();});}static ɵfac=function(e){return new(e||n)};static ɵcmp=of({type:n,selectors:[[`cooee-abstract-video`]],viewQuery:function(e,i){if(e&1&&nc(yo,5),e&2){let r;Rf(r=xf())&&(i.videoElements=r);}},features:[za],decls:0,vars:0,template:function(e,i){},encapsulation:2})};var ue=class n{video=$b.required({alias:`cooeeVideoSources`});prioritySource=$b(`high`);elementRef=g(Se$1);constructor(){Es(()=>{this.updateSources();});}updateSources(){let t=this.elementRef.nativeElement,e=this.video(),i=this.prioritySource();t.querySelectorAll(`source`).forEach(s=>s.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=hn$1({type:n,selectors:[[`video`,`cooeeVideoSources`,``]],inputs:{video:[1,`cooeeVideoSources`,`video`],prioritySource:[1,`prioritySource`]}})};var _o=(n,t)=>t.id;function xo(n,t){if(n&1&&(Df(0,`div`,1),Iv(1,`safeHtml`)),n&2)yf(`innerHTML`,_v(1,1,kD().videoConfig.heading),Yg);}function bo(n,t){n&1&&(Ka(0,`div`,6),Df(1,`div`,12),Ja());}function wo(n,t){if(n&1){let e=ND();Ka(0,`cooee-mute-toggle`,13),Sf(`toggled`,function(r){fu(e),kD();let s=jD(6);return pu(kD().onMuteToggled(r,s))}),Ja();}if(n&2){kD();let e=jD(6);yf(`muted`,e.muted)(`videoEl`,e);}}function Vo(n,t){if(n&1){let e=ND();Ka(0,`cooee-video-promoted-items`,16),Sf(`cardClick`,function(r){fu(e);let s=kD(2),l=s.$implicit,c=s.$index,f=jD(6);return pu(kD().onItemCardClick(r,l,c,f))}),Ja();}if(n&2){let e=kD(2).$implicit;yf(`items`,e.items)(`centeredSlides`,false);}}function To(n,t){if(n&1){let e=ND();Ka(0,`cooee-item-card`,17),Sf(`buttonClick`,function(){fu(e);let r=kD(2),s=r.$implicit,l=r.$index,c=jD(6);return pu(kD().addToCartClicked(null,s,l,c))})(`click`,function(){fu(e);let r=kD(2),s=r.$implicit,l=r.$index,c=jD(6),f=hv(0);return pu(kD().onItemCardClick(f,s,l,c))}),Ja();}if(n&2){kD(2);yf(`item`,hv(0));}}function Eo(n,t){if(n&1&&vD(0,Vo,1,2,`cooee-video-promoted-items`,14)(1,To,1,1,`cooee-item-card`,15),n&2){let e=kD().$implicit,i=kD();ED(hv(2)===i.VideoConfigFooterContent.ITEM_SWIPER&&e.items.length>1?0:e.items.length?1:-1);}}function So(n,t){if(n&1){let e=ND();Ka(0,`cooee-video-card`,18),Sf(`linkClicked`,function(){fu(e);let r=kD().$implicit;return pu(kD().sendTriggerClicked(r))}),Ja();}if(n&2){kD();yf(`card`,hv(1));}}function Io(n,t){if(n&1){let e=ND();Qf(0)(1),Ka(2,`div`,4)(3,`div`,5),Sf(`click`,function(r){let s=fu(e),l=s.$implicit,c=s.$index,f=jD(6);return pu(kD().onVideoTap(r,l,c,f))})(`keydown.enter`,function(r){let s=fu(e),l=s.$implicit,c=s.$index,f=jD(6);return pu(kD().onVideoTap(r,l,c,f))})(`keydown.space`,function(r){let s=fu(e),l=s.$implicit,c=s.$index,f=jD(6);return pu(kD().onVideoTap(r,l,c,f))}),vD(4,bo,2,0,`div`,6),Ka(5,`video`,7,0),Sf(`mouseenter`,function(){fu(e);let r=jD(6);kD();return pu(hv(1)&&r.play())})(`mouseleave`,function(){fu(e);let r=jD(6);kD();return pu(hv(1)&&r.pause())})(`loadstart`,function(){let r=fu(e).$implicit;return pu(kD().onVideoLoadStart(r.id))})(`canplay`,function(){let r=fu(e).$implicit;return pu(kD().onVideoCanPlay(r.id))}),Ja(),Ka(7,`div`,8),vD(8,wo,1,2,`cooee-mute-toggle`,9),Ja()(),Ka(9,`div`,10),vD(10,Eo,2,1)(11,So,1,1,`cooee-video-card`,11),Ja()();}if(n&2){let e=t.$implicit,i=kD(),r=hv(0),s=hv(2);pv(e.items[0]),ud();let c=pv(e.card)&&s===i.VideoConfigFooterContent.CARD;ud(2),rc(`background-image`,e.thumbnail?`url(`+e.thumbnail+`)`:null),ud(),ED(i.isVideoLoading(e.id)?4:-1),ud(),yf(`cooeeVideoSources`,e)(`muted`,true),mf(`preload`,r?`metadata`:`none`)(`autoplay`,null)(`data-video-id`,e.id),ud(3),ED(i.videoConfig.showMuteButton?8:-1),ud(2),ED(i.videoConfig.showItems()?10:c?11:-1);}}var Ze=class n extends me{VideoConfigFooterContent=ye$3;VideoConfigAutoPlay=ge$3;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,r){let s=e.items?.[0],l=he$2.get().website?.canChangeVariantInCart;if(e.items?.length>1||s?.hasVariants()&&!l){this.onItemCardClick(s,e,i,r);return}this.engagementService.executeCTA(He$3.ADD_TO_CART,{item:s,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,r){this.videoConfig.playlistConfig.itemCardClickBehavior===`OPEN_ITEM_DETAIL`?this.onVideoTap(null,e,i,r,t):this.onVideoTap(null,e,i,r);}update(){}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=of({type:n,selectors:[[`cooee-video-playlist`]],features:[Xf(lt()),za],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&&(Qf(0)(1)(2),vD(3,xo,2,3,`div`,1),Ka(4,`cooee-swiper`,2),ec(5,3),wD(6,Io,12,12,`div`,4,_o),Ho(),Ja()),e&2){pv(!i.videoConfig.autoPlay||i.videoConfig.autoPlay===i.VideoConfigAutoPlay.ON),ud(),pv(i.videoConfig.autoPlay===i.VideoConfigAutoPlay.ON_HOVER),ud(),pv(i.videoConfig.footerContent),ud(),ED(i.videoConfig.heading?3:-1);let r=i.videoConfig.playlistConfig.videoSwiper;ud(),yf(`options`,i.swiperOptions)(`navigationConfig`,r==null?null:r.navigation)(`paginationConfig`,r==null?null:r.pagination),ud(2),_D(i.videos);}},dependencies:[ft,mt,pt,re,ue,ht,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 Mo=[`videoElement`],ko=n=>({"cursor-grab":n}),We=class n extends me{videoElement;video;isDragging=false;hidden=false;cdkDrag=g(ge$1,{self:true});untilDestroyed=dt();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.videos[0];}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=of({type:n,selectors:[[`cooee-video-popup`]],viewQuery:function(e,i){if(e&1&&nc(Mo,5),e&2){let r;Rf(r=xf())&&(i.videoElement=r.first);}},hostAttrs:[`role`,`button`,`tabindex`,`0`,`aria-label`,`Open video popup `,`cdkDragBoundary`,`body`],hostVars:2,hostBindings:function(e,i){e&1&&Sf(`keydown.enter`,function(s){return i.onClick(s)})(`keydown.space`,function(s){return i.onClick(s)})(`click`,function(s){return i.onClick(s)}),e&2&&XD(i.popupClasses);},features:[Xf(lt()),iD([{directive:ge$1,inputs:[`cdkDragBoundary`,`cdkDragBoundary`]}]),za],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 r=ND();Ka(0,`div`,1)(1,`button`,2),Sf(`click`,function(l){return fu(r),l.stopPropagation(),pu(i.close())}),Df(2,`cooee-icon`,3),Ja(),Ka(3,`div`,4),Df(4,`cooee-icon`,5),Ka(5,`div`,6),uv(6,`Tap to unmute`),Ja()(),Df(7,`video`,7,0),Ja();}e&2&&(yf(`ngClass`,Ev(3,ko,i.isDragging)),ud(7),yf(`muted`,true)(`cooeeVideoSources`,i.video));},dependencies:[wE,ye,ue],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 Po=(n,t)=>t.id;function Fo(n,t){if(n&1&&(Df(0,`div`,1),Iv(1,`safeHtml`)),n&2)yf(`innerHTML`,_v(1,1,kD().videoConfig.heading),Yg);}function Do(n,t){n&1&&(Ka(0,`div`,9),Df(1,`div`,11),Ja());}function Ao(n,t){if(n&1){let e=ND();Ka(0,`div`,4),Sf(`click`,function(r){let s=fu(e),l=s.$implicit,c=s.$index;return pu(kD().onVideoTap(r,l,c))})(`keydown.enter`,function(r){let s=fu(e),l=s.$implicit,c=s.$index;return pu(kD().onVideoTap(r,l,c))})(`keydown.space`,function(r){let s=fu(e),l=s.$implicit,c=s.$index;return pu(kD().onVideoTap(r,l,c))}),_u(),Ka(1,`svg`,5),Df(2,`circle`,6)(3,`circle`,7),Ja(),Tu(),Ka(4,`div`,8),vD(5,Do,2,0,`div`,9),Ka(6,`video`,10,0),Sf(`loadstart`,function(){let r=fu(e).$implicit;return pu(kD().onVideoLoadStart(r.id))})(`canplay`,function(){let r=fu(e).$implicit;return pu(kD().onVideoCanPlay(r.id))}),Ja()()();}if(n&2){let e=t.$implicit,i=t.$index,r=kD();mf(`aria-label`,`Open video story `+(i+1)),ud(5),ED(r.isVideoLoading(e.id)?5:-1),ud(),yf(`poster`,e.thumbnail)(`cooeeVideoSources`,e)(`prioritySource`,`low`)(`muted`,true),mf(`data-video-id`,e.id);}}var qe=class n extends me{constructor(){super();}ngAfterViewInit(){super.ngAfterViewInit(),this.setupIntersectionObserver();}ngOnDestroy(){super.ngOnDestroy();}update(){}static ɵfac=function(e){return new(e||n)};static ɵcmp=of({type:n,selectors:[[`cooee-video-stories`]],features:[Xf(lt()),za],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,`loading-spinner`]],template:function(e,i){e&1&&(vD(0,Fo,2,3,`div`,1),Ka(1,`div`,2),wD(2,Ao,8,7,`div`,3,Po),Ja()),e&2&&(ED(i.videoConfig.heading?0:-1),ud(2),_D(i.videos));},dependencies:[ue,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;height:5rem;cursor:pointer;flex-shrink:0}.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 Ba(){let n=await $E(fi),t=(e,i)=>{let r=ui(e,{injector:n.injector});customElements.define(i,r);};t(Qe,`cooee-sticky-atc`),t($e,`cooee-savings-bar`),t(je,`cooee-progressbar`),t(Ze,`cooee-video-playlist`),t(We,`cooee-video-popup`),t(qe,`cooee-video-stories`),t(Ve,`cooee-product-options-picker`),t(Be,`cooee-collection-filter`),sessionStorage.cooeeDebug&&import('./debugger.component-DGenGFsu-BT4w6ZSR.js').then(e=>{t(e.DebuggerComponent,`cooee-debugger`);}),window.cooeeShowQuickItem=(e,i)=>{n.injector.get(Ue).showItemQuickView(e,i);};}
38
+ `],encapsulation:3})};async function Ba(){let n=await $E(fi),t=(e,i)=>{let r=ui(e,{injector:n.injector});customElements.define(i,r);};t(Qe,`cooee-sticky-atc`),t($e,`cooee-savings-bar`),t(je,`cooee-progressbar`),t(Ze,`cooee-video-playlist`),t(We,`cooee-video-popup`),t(qe,`cooee-video-stories`),t(Ve,`cooee-product-options-picker`),t(Be,`cooee-collection-filter`),sessionStorage.cooeeDebug&&import('./debugger.component-ggvhl60P-CNpH_9jJ.js').then(e=>{t(e.DebuggerComponent,`cooee-debugger`);}),window.cooeeShowQuickItem=(e,i)=>{n.injector.get(Ue).showItemQuickView(e,i);};}
39
39
 
40
- var widgetsCeQB31bn = /*#__PURE__*/Object.freeze({
40
+ var widgetsDkXU5112 = /*#__PURE__*/Object.freeze({
41
41
  __proto__: null,
42
42
  loadAngularWidgets: Ba
43
43
  });
44
44
 
45
- export { $b as $, lf as A, Bo as B, jD as C, Df as D, yf as E, nc as F, Ge as G, Ho as H, ID as I, Ja as J, Ke as K, xf as L, Mf as M, Hb as N, Ro as O, Ft$2 as P, Es as Q, Rf as R, Sf as S, Tv as T, rc as U, Vo$1 as V, Wf as W, Xa as X, Yg as Y, mf as Z, _D as _, a, ND as a0, vD as a1, fu as a2, pu as a3, kD as a4, ED as a5, Ef as a6, gv as a7, Zf as a8, qf as a9, fv as aa, Sv as ab, Kg as ac, widgetsCeQB31bn as ad, bE as b, ud as c, Iv as d, _f as e, _v as f, ge$1 as g, g as h, iD as i, W as j, Ka as k, Mt$2 as l, Ye as m, Se$1 as n, of as o, ht as p, ut as q, ft as r, TE as s, wE as t, uv as u, mt as v, wD as w, pt as x, ye as y, ec as z };
45
+ export { $b as $, lf as A, Bo as B, jD as C, Df as D, yf as E, nc as F, Ge as G, Ho as H, ID as I, Ja as J, Ke as K, xf as L, Mf as M, Hb as N, Ro as O, Ft$2 as P, Es as Q, Rf as R, Sf as S, Tv as T, rc as U, Vo$1 as V, Wf as W, Xa as X, Yg as Y, mf as Z, _D as _, a, ND as a0, vD as a1, fu as a2, pu as a3, kD as a4, ED as a5, Ef as a6, gv as a7, Zf as a8, qf as a9, fv as aa, Sv as ab, Kg as ac, widgetsDkXU5112 as ad, bE as b, ud as c, Iv as d, _f as e, _v as f, ge$1 as g, g as h, iD as i, W as j, Ka as k, Mt$2 as l, Ye as m, Se$1 as n, of as o, ht as p, ut as q, ft as r, TE as s, wE as t, uv as u, mt as v, wD as w, pt as x, ye as y, ec as z };