@letscooee/web-sdk 14.8.14 → 14.8.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,45 @@
1
+ import { X as v$1, j as s, Z as U, a0 as q$1, a1 as Sr$1, a2 as m$1, i as r, a3 as vs$1, a4 as ve$2, a5 as pi$2, a6 as Nn$3, a7 as bi$1, a8 as ii$2, a9 as _e$3, aa as Fs$1, ab as Ps$1, ac as Se$2, ad as ye$4, Y as Y$1, ae as pn$3, af as fe$3, a as Hi$1, ag as le$2, G as he$2, ah as ae$2, I as Ir$1, ai as Ee$2, aj as le$3, M as M$3, n as Sn$3, o as In$3, N as Nn$4, ak as gn$3, al as On$3, am as Vr$1, an as ne$2, t, ao as Vi$1, ap as Ne$3, aq as gr$1, ar as Re$2, as as Fe$2, at as Pe$3, au as ve$3, av as Yn$3, W as We$3, aw as We$4, ax as Je$2, ay as Ae$2, c as ce$2, s as se$2, az as oe$2 } from './main.min.js';
2
+
3
+ var Y=null,Mr=false,vi=1,j$1=Symbol(`SIGNAL`);function v(e){let t=Y;return Y=e,t}function br(){return Y}var nt$1={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 rt(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||fh(o,Y)))return;let i=Qt$1(Y),s={producer:e,consumer:Y,nextProducer:n,prevConsumer:o,lastReadVersion:e.version,nextConsumer:void 0};Y.producersTail=s,t!==void 0?t.nextProducer=s:Y.producers=s,i&&$c(e,s);}function Bc(){vi++;}function vt$3(e){if(!(Qt$1(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===vi)){if(!e.producerMustRecompute(e)&&!Sn$2(e)){Yt$1(e);return}e.producerRecomputeValue(e),Yt$1(e);}}function Ei(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||dh(r);}}finally{Mr=t;}}function Ci(){return Y?.consumerAllowSignalWrites!==false}function dh(e){e.dirty=true,Ei(e),e.consumerMarkedDirty?.(e);}function Yt$1(e){e.dirty=false,e.lastCleanEpoch=vi;}function ot$2(e){return e&&Vc(e),v(e)}function Vc(e){e.producersTail=void 0,e.recomputing=true;}function Et$1(e,t){v(t),e&&Hc(e);}function Hc(e){e.recomputing=false;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(Qt$1(e))do n=Ii$1(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0;}}function Sn$2(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(vt$3(n),r!==n.version))return true}return false}function Ct$2(e){if(Qt$1(e)){let t=e.producers;for(;t!==void 0;)t=Ii$1(t);}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0;}function $c(e,t){let n=e.consumersTail,r=Qt$1(e);if(n!==void 0?(t.nextConsumer=n.nextConsumer,n.nextConsumer=t):(t.nextConsumer=void 0,e.consumers=t),t.prevConsumer=n,e.consumersTail=t,!r)for(let o=e.producers;o!==void 0;o=o.nextProducer)$c(o.producer,o);}function Ii$1(e){let t=e.producer,n=e.nextProducer,r=e.nextConsumer,o=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,r!==void 0?r.prevConsumer=o:t.consumersTail=o,o!==void 0)o.nextConsumer=r;else if(t.consumers=r,!Qt$1(t)){let i=t.producers;for(;i!==void 0;)i=Ii$1(i);}return n}function Qt$1(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function fh(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 bn$2(e,t){return Object.is(e,t)}function Nn$2(e,t){let n=Object.create(ph);n.computation=e;let r=()=>{if(vt$3(n),rt(n),n.value===xe$1)throw n.error;return n.value};return r[j$1]=n,r}var tt$2=Symbol(`UNSET`),Dt$1=Symbol(`COMPUTING`),xe$1=Symbol(`ERRORED`),ph=s(r({},nt$1),{value:tt$2,dirty:true,error:null,equal:bn$2,kind:`computed`,producerMustRecompute(e){return e.value===tt$2||e.value===Dt$1},producerRecomputeValue(e){if(e.value===Dt$1)throw new Error(``);let t=e.value;e.value=Dt$1;let n=ot$2(e),r,o=false;try{r=e.computation(),v(null),o=t!==tt$2&&t!==xe$1&&r!==xe$1&&e.equal(t,r);}catch(i){r=xe$1,e.error=i;}finally{Et$1(e,n);}if(o){e.value=t;return}e.value=r,e.version++;}});function hh(){throw new Error}var Uc=hh;function zc(e){Uc(e);}function wi(e){Uc=e;}function _i(e,t){let n=Object.create(Ar);n.value=e;let r=()=>Gc(n);return r[j$1]=n,[r,s=>it$2(n,s),s=>Nr(n,s)]}function Gc(e){return rt(e),e.value}function it$2(e,t){Ci()||zc(e),e.equal(e.value,t)||(e.value=t,mh(e));}function Nr(e,t){Ci()||zc(e),it$2(e,t(e.value));}var Ar=s(r({},nt$1),{equal:bn$2,value:void 0,kind:`signal`});function mh(e){e.version++,Bc(),Ei(e);}var Ti=s(r({},nt$1),{consumerIsAlwaysLive:true,consumerAllowSignalWrites:true,dirty:true,kind:`effect`});function Si(e){if(e.dirty=false,e.version>0&&!Sn$2(e))return;e.version++;let t=ot$2(e);try{e.cleanup(),e.fn();}finally{Et$1(e,t);}}var Mi;function Rr(){return Mi}function Oe(e){let t=Mi;return Mi=e,t}var Wc=Symbol(`NotFound`);function Kt$1(e){return e===Wc||e?.name===`ɵNotFound`}function bi(e,t,n){let r=Object.create(yh);r.source=e,r.computation=t,n!=null&&(r.equal=n);let i=()=>{if(vt$3(r),rt(r),r.value===xe$1)throw r.error;return r.value};return i[j$1]=r,i}function qc(e,t){vt$3(e),it$2(e,t),Yt$1(e);}function Zc(e,t){if(vt$3(e),e.value===xe$1)throw e.error;Nr(e,t),Yt$1(e);}var yh=s(r({},nt$1),{value:tt$2,dirty:true,error:null,equal:bn$2,kind:`linkedSignal`,producerMustRecompute(e){return e.value===tt$2||e.value===Dt$1},producerRecomputeValue(e){if(e.value===Dt$1)throw new Error(``);let t=e.value;e.value=Dt$1;let n=ot$2(e),r;try{let o=e.source(),i=t===tt$2||t===xe$1?void 0:{source:e.sourceValue,value:t};r=e.computation(o,i),e.sourceValue=o;}catch(o){r=xe$1,e.error=o;}finally{Et$1(e,n);}if(t!==tt$2&&r!==xe$1&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++;}});var jr=`https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss`,m=class extends Error{code;constructor(t,n){super(St$1(t,n)),this.code=t;}};function Dh(e){return `NG0${Math.abs(e)}`}function St$1(e,t){return `${Dh(e)}${t?`: `+t:``}`}var pe$2=globalThis;function R(e){for(let t in e)if(e[t]===R)return t;throw Error(``)}function Xc(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(`
4
+ `);return r>=0?n.slice(0,r):n}function Vr(e,t){return e?t?`${e} ${t}`:e:t||``}var vh=R({__forward_ref__:R});function Ln$2(e){return e.__forward_ref__=Ln$2,e}function z(e){return Hi(e)?e():e}function Hi(e){return typeof e==`function`&&e.hasOwnProperty(vh)&&e.__forward_ref__===Ln$2}function C(e){return {token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Mt$1(e){return {providers:e.providers||[],imports:e.imports||[]}}function Hr(e){return Eh(e,$r)}function Eh(e,t){return e.hasOwnProperty(t)&&e[t]||null}function Ch(e){return (e?.[$r]??null)||null}function Ai(e){return e&&e.hasOwnProperty(Or)?e[Or]:null}var $r=R({ɵprov:R}),Or=R({ɵinj:R}),w$1=class w{_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 $i(e){return e&&!!e.ɵproviders}var Ui=R({ɵcmp:R}),zi=R({ɵdir:R}),Gi=R({ɵpipe:R});var Rn$2=R({ɵfac:R}),bt$2=R({__NG_ELEMENT_ID__:R}),Yc=R({__NG_ENV_ID__:R});function lt$1(e){return Wi(e),e[Ui]||null}function Ur(e){return Wi(e),e[zi]||null}function eu(e){return Wi(e),e[Gi]||null}function Wi(e,t){if(e==null)throw new m(-919,false)}function Xt$1(e){return typeof e==`string`?e:e==null?``:String(e)}var tu=R({ngErrorCode:R}),Ih=R({ngErrorMessage:R});R({ngTokenPath:R});function qi(e,t){return nu(``,-200)}function zr(e,t){throw new m(-201,false)}function nu(e,t,n){let r=new m(t,e);return r[tu]=t,r[Ih]=e,r}function _h(e){return e[tu]}var Ri;function ru(){return Ri}function X(e){let t=Ri;return Ri=e,t}function Zi(e,t,n){let r=Hr(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;zr();}var It$1={},Sh=`__NG_DI_FLAG__`,xi=class{injector;constructor(t){this.injector=t;}retrieve(t,n){let r=wt$2(n)||0;try{return this.injector.get(t,r&8?null:It$1,r)}catch(o){if(Kt$1(o))return o;throw o}}};function Mh(e,t=0){let n=Rr();if(n===void 0)throw new m(-203,false);if(n===null)return Zi(e,void 0,t);{let r=bh(t),o=n.retrieve(e,r);if(Kt$1(o)){if(r.optional)return null;throw o}return o}}function T$1(e,t=0){return (ru()||Mh)(z(e),t)}function g(e,t){return T$1(e,wt$2(t))}function wt$2(e){return typeof e>`u`||typeof e==`number`?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function bh(e){return {optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function Oi(e){let t=[];for(let n=0;n<e.length;n++){let r=z(e[n]);if(Array.isArray(r)){if(r.length===0)throw new m(900,false);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=Nh(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 Nh(e){return e[Sh]}function st(e,t){return e.hasOwnProperty(Rn$2)?e[Rn$2]:null}function ou(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 iu(e){return e.flat(Number.POSITIVE_INFINITY)}function Gr(e,t){e.forEach(n=>Array.isArray(n)?Gr(n,t):t(n));}function Yi(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n);}function Pn$2(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function su(e,t){let n=[];for(let r=0;r<e;r++)n.push(t);return n}function au(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 jn$2(e,t,n){let r=en$1(e,t);return r>=0?e[r|1]=n:(r=~r,au(e,r,t,n)),r}function Wr(e,t){let n=en$1(e,t);if(n>=0)return e[n|1]}function en$1(e,t){return Ah(e,t,1)}function Ah(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 Ie$1={},Q=[],tn$1=new w$1(``),Bn$2=new w$1(``,-1),Qi=new w$1(``),xn$2=class xn{get(t,n=It$1){if(n===It$1){let o=nu(``,-201);throw o.name=`ɵNotFound`,o}return n}};function qr(e){return {ɵproviders:e}}function cu(...e){return {ɵproviders:Ki(true,e),ɵfromNgModule:true}}function Ki(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s);};return Gr(t,s=>{let a=s;kr(a,i,[],r)&&(o||=[],o.push(a));}),o!==void 0&&uu(o,i),n}function uu(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];Ji(o,i=>{t(i,r);});}}function kr(e,t,n,r){if(e=z(e),!e)return false;let o=null,i=Ai(e),s=!i&&lt$1(e);if(!i&&!s){let c=e.ngModule;if(i=Ai(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)kr(u,t,n,r);}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;Gr(i.imports,l=>{kr(l,t,n,r)&&(u||=[],u.push(l));}),u!==void 0&&uu(u,t);}if(!a){let u=st(o)||(()=>new o);t({provide:o,useFactory:u,deps:Q},o),t({provide:Qi,useValue:o,multi:true},o),t({provide:tn$1,useValue:()=>T$1(o),multi:true},o);}let c=i.providers;if(c!=null&&!a){let u=e;Ji(c,l=>{t(l,u);});}}else return false;return o!==e&&e.providers!==void 0}function Ji(e,t){for(let n of e)$i(n)&&(n=n.ɵproviders),Array.isArray(n)?Ji(n,t):t(n);}var Rh=R({provide:String,useValue:R});function lu(e){return e!==null&&typeof e==`object`&&Rh in e}function xh(e){return !!(e&&e.useExisting)}function Oh(e){return !!(e&&e.useFactory)}function _t$2(e){return typeof e==`function`}function du(e){return !!e.useClass}var Vn$2=new w$1(``),xr={},Qc={},Ni;function nn$1(){return Ni===void 0&&(Ni=new xn$2),Ni}var re$1=class re{},Tt$2=class Tt extends re$1{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=false;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,Fi(t,s=>this.processProvider(s)),this.records.set(Bn$2,Jt(void 0,this)),o.has(`environment`)&&this.records.set(re$1,Jt(void 0,this));let i=this.records.get(Vn$2);i!=null&&typeof i.value==`string`&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Qi,Q,{self:true}));}retrieve(t,n){let r=wt$2(n)||0;try{return this.get(t,It$1,r)}catch(o){if(Kt$1(o))return o;throw o}}destroy(){An$2(this),this._destroyed=true;let t=v(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r();}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),v(t);}}onDestroy(t){return An$2(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){An$2(this);let n=Oe(this),r=X(void 0);try{return t()}finally{Oe(n),X(r);}}get(t,n=It$1,r){if(An$2(this),t.hasOwnProperty(Yc))return t[Yc](this);let o=wt$2(r),s=Oe(this),a=X(void 0);try{if(!(o&4)){let u=this.records.get(t);if(u===void 0){let l=jh(t)&&Hr(t);l&&this.injectableDefInScope(l)?u=Jt(ki$1(t),xr):u=null,this.records.set(t,u);}if(u!=null)return this.hydrate(t,u,o)}let c=o&2?nn$1():this.parent;return n=o&8&&n===It$1?null:n,c.get(t,n)}catch(c){let u=_h(c);throw u===-200||u===-201?new m(u,null):c}finally{X(a),Oe(s);}}resolveInjectorInitializers(){let t=v(null),n=Oe(this),r=X(void 0);try{let i=this.get(tn$1,Q,{self:!0});for(let s of i)s();}finally{Oe(n),X(r),v(t);}}toString(){return `R3Injector[...]`}processProvider(t){t=z(t);let n=_t$2(t)?t:z(t&&t.provide),r=Fh(t);if(!_t$2(t)&&t.multi===true){let o=this.records.get(n);o||(o=Jt(void 0,xr,true),o.factory=()=>Oi(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===Qc)throw qi(``);return n.value===xr&&(n.value=Qc,n.value=n.factory(void 0,r)),typeof n.value==`object`&&n.value&&Ph(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{v(o);}}injectableDefInScope(t){if(!t.providedIn)return false;let n=z(t.providedIn);return typeof n==`string`?n===`any`||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1);}};function ki$1(e){let t=Hr(e),n=t!==null?t.factory:st(e);if(n!==null)return n;if(e instanceof w$1)throw new m(-204,false);if(e instanceof Function)return kh(e);throw new m(-204,false)}function kh(e){if(e.length>0)throw new m(-204,false);let n=Ch(e);return n!==null?()=>n.factory(e):()=>new e}function Fh(e){if(lu(e))return Jt(void 0,e.useValue);return Jt(Xi(e),xr)}function Xi(e,t,n){let r;if(_t$2(e)){let o=z(e);return st(o)||ki$1(o)}else if(lu(e))r=()=>z(e.useValue);else if(Oh(e))r=()=>e.useFactory(...Oi(e.deps||[]));else if(xh(e))r=(o,i)=>T$1(z(e.useExisting),i!==void 0&&i&8?8:void 0);else {let o=z(e&&(e.useClass||e.provide));if(Lh(e))r=()=>new o(...Oi(e.deps));else return st(o)||ki$1(o)}return r}function An$2(e){if(e.destroyed)throw new m(-205,false)}function Jt(e,t,n=false){return {factory:e,value:t,multi:n?[]:void 0}}function Lh(e){return !!e.deps}function Ph(e){return e!==null&&typeof e==`object`&&typeof e.ngOnDestroy==`function`}function jh(e){return typeof e==`function`||typeof e==`object`&&e.ngMetadataName===`InjectionToken`}function Fi(e,t){for(let n of e)Array.isArray(n)?Fi(n,t):n&&$i(n)?Fi(n.ɵproviders,t):t(n);}function Zr(e,t){let n;e instanceof Tt$2?(An$2(e),n=e):n=new xi(e);let o=Oe(n),i=X(void 0);try{return t()}finally{Oe(o),X(i);}}function fu(){return ru()!==void 0||Rr()!=null}var we$1=0,y=1,E$1=2,G=3,he$1=4,te=5,Nt$2=6,rn$1=7,B$1=8,We$2=9,ke=10,A$1=11,on$1=12,es=13,At$1=14,ne$1=15,dt$2=16,Rt$2=17,Fe$1=18,Le=19,ts=20,Ge$3=21,Yr=22,at=23,ce$1=24,xt=25,Pe$2=26,x$1=27,pu=1,ns=6,ft$3=7,Hn$2=8,Ot$1=9,L$2=10;function je$1(e){return Array.isArray(e)&&typeof e[pu]==`object`}function ge$2(e){return Array.isArray(e)&&e[pu]===true}function rs(e){return (e.flags&4)!==0}function Be$1(e){return e.componentOffset>-1}function sn$2(e){return (e.flags&1)===1}function _e$2(e){return !!e.template}function an$2(e){return (e[E$1]&512)!==0}function kt$2(e){return (e[E$1]&256)===256}var os=`svg`,hu=`math`;function me$2(e){for(;Array.isArray(e);)e=e[we$1];return e}function is(e,t){return me$2(t[e])}function ye$3(e,t){return me$2(t[e.index])}function $n$2(e,t){return e.data[t]}function Un$2(e,t){return e[t]}function zn$2(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r;}function ue$1(e,t){let n=t[e];return je$1(n)?n:n[we$1]}function gu(e){return (e[E$1]&4)===4}function Qr(e){return (e[E$1]&128)===128}function mu(e){return ge$2(e[G])}function De$1(e,t){return t==null?null:e[t]}function ss(e){e[Rt$2]=0;}function Kr(e){e[E$1]&1024||(e[E$1]|=1024,Qr(e)&&Ft$2(e));}function yu(e,t){for(;e>0;)t=t[At$1],e--;return t}function cn$2(e){return !!(e[E$1]&9216||e[ce$1]?.dirty)}function Jr(e){e[ke].changeDetectionScheduler?.notify(8),e[E$1]&64&&(e[E$1]|=1024),cn$2(e)&&Ft$2(e);}function Ft$2(e){e[ke].changeDetectionScheduler?.notify(0);let t=ct(e);for(;t!==null&&!(t[E$1]&8192||(t[E$1]|=8192,!Qr(t)));)t=ct(t);}function as(e,t){if(kt$2(e))throw new m(911,false);e[Ge$3]===null&&(e[Ge$3]=[]),e[Ge$3].push(t);}function Du(e,t){if(e[Ge$3]===null)return;let n=e[Ge$3].indexOf(t);n!==-1&&e[Ge$3].splice(n,1);}function ct(e){let t=e[G];return ge$2(t)?t[G]:t}function cs(e){return e[rn$1]??=[]}function us(e){return e.cleanup??=[]}function vu(e,t,n,r){let o=cs(t);o.push(n),e.firstCreatePass&&us(e).push(r,o.length-1);}var _={lFrame:Ru(null),bindingsEnabled:true,skipHydrationRootTNode:null};var Li=false;function Eu(){return _.lFrame.elementDepthCount}function Cu(){_.lFrame.elementDepthCount++;}function ls(){_.lFrame.elementDepthCount--;}function Xr(){return _.bindingsEnabled}function ds(){return _.skipHydrationRootTNode!==null}function fs(e){return _.skipHydrationRootTNode===e}function ps(){_.skipHydrationRootTNode=null;}function D(){return _.lFrame.lView}function k$1(){return _.lFrame.tView}function Iu(e){return _.lFrame.contextLView=e,e[B$1]}function wu(e){return _.lFrame.contextLView=null,e}function q(){let e=hs();for(;e!==null&&e.type===64;)e=e.parent;return e}function hs(){return _.lFrame.currentTNode}function _u(){let e=_.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Lt$2(e,t){let n=_.lFrame;n.currentTNode=e,n.isParent=t;}function gs(){return _.lFrame.isParent}function ms(){_.lFrame.isParent=false;}function ys(){return _.lFrame.contextLView}function Ds(){return Li}function On$2(e){let t=Li;return Li=e,t}function Gn$2(){let e=_.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Tu(e){return _.lFrame.bindingIndex=e}function Ve$1(){return _.lFrame.bindingIndex++}function vs(e){let t=_.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Su(){return _.lFrame.inI18n}function Mu(e,t){let n=_.lFrame;n.bindingIndex=n.bindingRootIndex=e,eo$1(t);}function bu(){return _.lFrame.currentDirectiveIndex}function eo$1(e){_.lFrame.currentDirectiveIndex=e;}function Nu(e){let t=_.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function to$1(){return _.lFrame.currentQueryIndex}function Wn$2(e){_.lFrame.currentQueryIndex=e;}function Bh(e){let t=e[y];return t.type===2?t.declTNode:t.type===1?e[te]:null}function Es(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=Bh(i),o===null||(i=i[At$1],o.type&10))break;if(o===null)return false;t=o,e=i;}let r=_.lFrame=Au();return r.currentTNode=t,r.lView=e,true}function no$1(e){let t=Au(),n=e[y];_.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=false;}function Au(){let e=_.lFrame,t=e===null?null:e.child;return t===null?Ru(e):t}function Ru(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 xu(){let e=_.lFrame;return _.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Cs=xu;function ro$1(){let e=xu();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 Ou(e){return (_.lFrame.contextLView=yu(e,_.lFrame.contextLView))[B$1]}function He$1(){return _.lFrame.selectedIndex}function pt$2(e){_.lFrame.selectedIndex=e;}function un$2(){let e=_.lFrame;return $n$2(e.tView,e.selectedIndex)}function ku(){_.lFrame.currentNamespace=os;}function Fu(){Vh();}function Vh(){_.lFrame.currentNamespace=null;}function Lu(){return _.lFrame.currentNamespace}var Pu=true;function oo$1(){return Pu}function qn$2(e){Pu=e;}function Pi$1(e,t=null,n=null,r){let o=ju(e,t,n);return o.resolveInjectorInitializers(),o}function ju(e,t=null,n=null,r,o=new Set){return new Tt$2([n||Q,cu(e)],t||nn$1(),null,o)}var Z=class e{static THROW_IF_NOT_FOUND=It$1;static NULL=new xn$2;static create(t,n){if(Array.isArray(t))return Pi$1({name:``},n,t);{let r=t.name??``;return Pi$1({name:r},t.parent,t.providers)}}static ɵprov=C({token:e,providedIn:`any`,factory:()=>T$1(Bn$2)});static __NG_ELEMENT_ID__=-1},V$1=new w$1(``),qe=(()=>{class e{static __NG_ELEMENT_ID__=Hh;static __NG_ENV_ID__=n=>n}return e})(),Fr=class extends qe{_lView;constructor(t){super(),this._lView=t;}get destroyed(){return kt$2(this._lView)}onDestroy(t){let n=this._lView;return as(n,t),()=>Du(n,t)}};function Hh(){return new Fr(D())}var Bu=false,Vu=new w$1(``),ln$2=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=false;pendingTask=new Sr$1(false);debugTaskTracker=g(Vu,{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})(),ji=class extends U{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=false){super(),this.__isAsync=t,fu()&&(this.destroyRef=g(qe,{optional:true})??void 0,this.pendingTasks=g(ln$2,{optional:true})??void 0);}emit(t){let n=v(null);try{super.next(t);}finally{v(n);}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t==`object`){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c);}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof v$1&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{t(n);}finally{r!==void 0&&this.pendingTasks?.remove(r);}});}}},Ce$1=ji;function Lr(...e){}function Is(e){let t,n;function r(){e=Lr;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 Hu(e){return queueMicrotask(()=>e()),()=>{e=Lr;}}var ws=`isAngularZone`,kn$2=ws+`_ID`,$h=0,ee$1=class e{hasPendingMacrotasks=false;hasPendingMicrotasks=false;isStable=true;onUnstable=new Ce$1(false);onMicrotaskEmpty=new Ce$1(false);onStable=new Ce$1(false);onError=new Ce$1(false);constructor(t){let{enableLongStackTrace:n=false,shouldCoalesceEventChangeDetection:r=false,shouldCoalesceRunChangeDetection:o=false,scheduleInRootZone:i=Bu}=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,Gh(s);}static isInAngularZone(){return typeof Zone<`u`&&Zone.current.get(ws)===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,Uh,Lr,Lr);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)}},Uh={};function _s(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 zh(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=true;function t(){Is(()=>{e.callbackScheduled=false,Bi(e),e.isCheckStableRunning=true,_s(e),e.isCheckStableRunning=false;});}e.scheduleInRootZone?Zone.root.run(()=>{t();}):e._outer.run(()=>{t();}),Bi(e);}function Gh(e){let t=()=>{zh(e);},n=$h++;e._inner=e._inner.fork({name:`angular`,properties:{[ws]:true,[kn$2]:n,[kn$2+n]:true},onInvokeTask:(r,o,i,s,a,c)=>{if(Wh(c))return r.invokeTask(i,s,a,c);try{return Kc(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type===`eventTask`||e.shouldCoalesceRunChangeDetection)&&t(),Jc(e);}},onInvoke:(r,o,i,s,a,c,u)=>{try{return Kc(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!qh(c)&&t(),Jc(e);}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change==`microTask`?(e._hasPendingMicrotasks=s.microTask,Bi(e),_s(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 Bi(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===true?e.hasPendingMicrotasks=true:e.hasPendingMicrotasks=false;}function Kc(e){e._nesting++,e.isStable&&(e.isStable=false,e.onUnstable.emit(null));}function Jc(e){e._nesting--,_s(e);}var Fn$2=class Fn{hasPendingMicrotasks=false;hasPendingMacrotasks=false;isStable=true;onUnstable=new Ce$1;onMicrotaskEmpty=new Ce$1;onStable=new Ce$1;onError=new Ce$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 Wh(e){return $u(e,`__ignore_ng_zone__`)}function qh(e){return $u(e,`__scheduler_tick__`)}function $u(e,t){return !Array.isArray(e)||e.length!==1?false:e[0]?.data?.[t]===true}var fe$2=class fe{_console=console;handleError(t){this._console.error(`ERROR`,t);}},Pt$2=new w$1(``,{factory:()=>{let e=g(ee$1),t=g(re$1),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(fe$2),n.handleError(r));});}}}),Uu={provide:tn$1,useValue:()=>{g(fe$2,{optional:true});},multi:true};function jt$1(e,t){let[n,r,o]=_i(e),i=n;i[j$1];return i.set=r,i.update=o,i.asReadonly=Zn$2.bind(i),i}function Zn$2(){let e=this[j$1];if(e.readonlyFn===void 0){let t=()=>this();t[j$1]=e,e.readonlyFn=t;}return e.readonlyFn}var Yn$2=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r;}static __NG_ELEMENT_ID__=Zh}return e})();function Zh(){return new Yn$2(D(),q())}var ut$3=class ut{},Qn$2=new w$1(``,{factory:()=>true});var Ts=new w$1(``);var io$1=(()=>{class e{static ɵprov=C({token:e,providedIn:`root`,factory:()=>new Vi})}return e})(),Vi=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}},Pr=class{[j$1];constructor(t){this[j$1]=t;}destroy(){this[j$1].destroy();}};function Ss(e,t){let n=g(Z),r=n.get(qe),o,i=n.get(Yn$2,null,{optional:true}),s=n.get(ut$3);return i!==null?(o=Kh(i.view,s,e),r instanceof Fr&&r._lView===i.view&&(r=null)):o=Jh(e,n.get(io$1),s),o.injector=n,r!==null&&(o.onDestroyFns=[r.onDestroy(()=>o.destroy())]),new Pr(o)}var zu=s(r({},Ti),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let e=On$2(false);try{Si(this);}finally{On$2(e);}},cleanup(){if(!this.cleanupFns?.length)return;let e=v(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()();}finally{this.cleanupFns=[],v(e);}}}),Yh=s(r({},zu),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12);},destroy(){if(Ct$2(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.scheduler.remove(this);}}),Qh=s(r({},zu),{consumerMarkedDirty(){this.view[E$1]|=8192,Ft$2(this.view),this.notifier.notify(13);},destroy(){if(Ct$2(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.view[at]?.delete(this);}});function Kh(e,t,n){let r=Object.create(Qh);return r.view=e,r.zone=typeof Zone<`u`?Zone.current:null,r.notifier=t,r.fn=Gu(r,n),e[at]??=new Set,e[at].add(r),r.consumerMarkedDirty(r),r}function Jh(e,t,n){let r=Object.create(Yh);return r.fn=Gu(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 Gu(e,t){return ()=>{t(n=>(e.cleanupFns??=[]).push(n));}}function ar(e){return {toString:e}.toString()}function lg(e){return typeof e==`function`}function Nl(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r;}var mo$1=class mo{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r;}isFirstChange(){return this.firstChange}},Ao=(()=>{let e=()=>Al;return e.ngInherit=true,e})();function Al(e){return e.type.prototype.ngOnChanges&&(e.setInput=fg),dg}function dg(){let e=xl(this),t=e?.current;if(t){let n=e.previous;if(n===Ie$1)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t);}}function fg(e,t,n,r,o){let i=this.declaredInputs[r],s=xl(e)||pg(e,{previous:Ie$1,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new mo$1(u&&u.currentValue,n,c===Ie$1),Nl(e,t,o,n);}var Rl=`__ngSimpleChanges__`;function xl(e){return e[Rl]||null}function pg(e,t){return e[Rl]=t}var Wu=[];var b$1=function(e,t=null,n){for(let r=0;r<Wu.length;r++){let o=Wu[r];o(e,t,n);}},M$2=(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})(M$2||{});function hg(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=Al(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 Ol(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 lo$1(e,t,n){kl(e,t,3,n);}function fo$1(e,t,n,r){(e[E$1]&3)===n&&kl(e,t,n,r);}function Ms(e,t){let n=e[E$1];(n&3)===t&&(n&=16383,n+=1,e[E$1]=n);}function kl(e,t,n,r){let o=r!==void 0?e[Rt$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[Rt$2]+=65536),(a<i||i==-1)&&(gg(e,n,t,c),e[Rt$2]=(e[Rt$2]&4294901760)+c+2),c++;}function qu(e,t){b$1(M$2.LifecycleHookStart,e,t);let n=v(null);try{t.call(e);}finally{v(n),b$1(M$2.LifecycleHookEnd,e,t);}}function gg(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[Rt$2]>>16&&(e[E$1]&3)===t&&(e[E$1]+=16384,qu(a,i)):qu(a,i);}var fn$2=-1,Vt$1=class Vt{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 mg(e){return (e.flags&8)!==0}function yg(e){return (e.flags&16)!==0}function Dg(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];Eg(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++;}}return r}function vg(e){return e===3||e===4||e===6}function Eg(e){return e.charCodeAt(0)===64}function pn$2(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else {let n=-1;for(let r=0;r<t.length;r++){let o=t[r];typeof o==`number`?n=o:n===0||(n===-1||n===2?Zu(e,n,o,null,t[++r]):Zu(e,n,o,null,null));}}return e}function Zu(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 Fl(e){return e!==fn$2}function yo(e){return e&32767}function Cg(e){return e>>16}function Do(e,t){let n=Cg(e),r=t;for(;n>0;)r=r[At$1],n--;return r}var js=true;function vo$1(e){let t=js;return js=e,t}var Ll=255,Pl=5,wg=0,$e={};function _g(e,t,n){let r;typeof n==`string`?r=n.charCodeAt(0)||0:n.hasOwnProperty(bt$2)&&(r=n[bt$2]),r??=n[bt$2]=wg++;let o=r&Ll,i=1<<o;t.data[e+(o>>Pl)]|=i;}function Eo(e,t){let n=jl(e,t);if(n!==-1)return n;let r=t[y];r.firstCreatePass&&(e.injectorIndex=t.length,bs(r.data,e),bs(t,null),bs(r.blueprint,null));let o=wa(e,t),i=e.injectorIndex;if(Fl(o)){let s=yo(o),a=Do(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 bs(e,t){e.push(0,0,0,0,0,0,0,0,t);}function jl(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function wa(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=zl(o),r===null)return fn$2;if(n++,o=o[At$1],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return fn$2}function Bs(e,t,n){_g(e,t,n);}function Bl(e,t,n){if(n&8||e!==void 0)return e;zr();}function Vl(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[We$2],i=X(void 0);try{return o?o.get(t,r,n&8):Zi(t,r,n&8)}finally{X(i);}}return Bl(r,t,n)}function Hl(e,t,n,r=0,o){if(e!==null){if(t[E$1]&2048&&!(r&2)){let s=bg(e,t,n,r,$e);if(s!==$e)return s}let i=$l(e,t,n,r,$e);if(i!==$e)return i}return Vl(t,n,r,o)}function $l(e,t,n,r,o){let i=Sg(n);if(typeof i==`function`){if(!Es(t,e,r))return r&1?Bl(o,n,r):Vl(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))zr(n);else return s}finally{Cs();}}else if(typeof i==`number`){let s=null,a=jl(e,t),c=fn$2,u=r&1?t[ne$1][te]:null;for((a===-1||r&4)&&(c=a===-1?wa(e,t):t[a+8],c===fn$2||!Qu(r,false)?a=-1:(s=t[y],a=yo(c),t=Do(c,t)));a!==-1;){let l=t[y];if(Yu(i,a,l.data)){let d=Tg(a,t,n,s,r,u);if(d!==$e)return d}c=t[a+8],c!==fn$2&&Qu(r,t[y].data[a+8]===u)&&Yu(i,a,t)?(s=l,a=yo(c),t=Do(c,t)):a=-1;}}return o}function Tg(e,t,n,r,o,i){let s=t[y],a=s.data[e+8],l=po$1(a,s,n,r==null?Be$1(a)&&js:r!=s&&(a.type&3)!==0,o&1&&i===a);return l!==null?er(t,s,l,a,o):$e}function po$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&&_e$2(f)&&f.type===n)return c}return null}function er(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof Vt$1){let a=i;if(a.resolving)throw qi();let c=vo$1(a.canSeeViewProviders);a.resolving=true;s[n].type||s[n];let d=a.injectImpl?X(a.injectImpl):null;Es(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&hg(n,s[n],t);}finally{d!==null&&X(d),vo$1(c),a.resolving=false,Cs();}}return i}function Sg(e){if(typeof e==`string`)return e.charCodeAt(0)||0;let t=e.hasOwnProperty(bt$2)?e[bt$2]:void 0;return typeof t==`number`?t>=0?t&Ll:Mg:t}function Yu(e,t,n){let r=1<<e;return !!(n[t+(e>>Pl)]&r)}function Qu(e,t){return !(e&2)&&!(e&1&&t)}var Bt$2=class Bt{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n;}get(t,n,r){return Hl(this._tNode,this._lView,t,wt$2(r),n)}};function Mg(){return new Bt$2(q(),D())}function Ul(e){return ar(()=>{let t=e.prototype.constructor,n=t[Rn$2]||Vs(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[Rn$2]||Vs(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o);}return i=>new i})}function Vs(e){return Hi(e)?()=>{let t=Vs(z(e));return t&&t()}:st(e)}function bg(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[E$1]&2048&&!an$2(s);){let a=$l(i,s,n,r|2,$e);if(a!==$e)return a;let c=i.parent;if(!c){let u=s[ts];if(u){let l=u.get(n,$e,r&-5);if(l!==$e)return l}c=zl(s),s=s[At$1];}i=c;}return o}function zl(e){let t=e[y],n=t.type;return n===2?t.declTNode:n===1?e[te]:null}function Ng(){return vn$2(q(),D())}function vn$2(e,t){return new be$1(ye$3(e,t))}var be$1=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n;}static __NG_ELEMENT_ID__=Ng}return e})();function Gl(e){return e instanceof be$1?e.nativeElement:e}function Ag(){return this._results[Symbol.iterator]()}var Co=class{_emitDistinctChangesOnly;dirty=true;_onDirty=void 0;_results=[];_changesDetected=false;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new U}constructor(t=false){this._emitDistinctChangesOnly=t;}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t);}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=false;let r=iu(t);(this._changesDetected=!ou(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]=Ag};function Wl(e){return (e.flags&128)===128}var _a=(function(e){return e[e.OnPush=0]=`OnPush`,e[e.Eager=1]=`Eager`,e[e.Default=1]=`Default`,e})(_a||{}),ql=new Map,Rg=0;function xg(){return Rg++}function Og(e){ql.set(e[Le],e);}function Hs(e){ql.delete(e[Le]);}var Ku=`__ngContext__`;function hn$2(e,t){je$1(t)?(e[Ku]=t[Le],Og(t)):e[Ku]=t;}function Zl(e){return Ql(e[on$1])}function Yl(e){return Ql(e[he$1])}function Ql(e){for(;e!==null&&!ge$2(e);)e=e[he$1];return e}var $s;function Ta(e){$s=e;}function Kl(){if($s!==void 0)return $s;if(typeof document<`u`)return document;throw new m(210,false)}var En$2=new w$1(``,{factory:()=>kg}),kg=`ng`;var Ro$1=new w$1(``),Ut$1=new w$1(``,{providedIn:`platform`,factory:()=>`unknown`}),Fg=new w$1(``),xo=new w$1(``,{factory:()=>g(V$1).body?.querySelector(`[ngCspNonce]`)?.getAttribute(`ngCspNonce`)||null});var Jl=`r`;var Xl=`di`;var ed=false,td=new w$1(``,{factory:()=>ed});function Oo(e){return (e.flags&32)===32}var jg=()=>null;function nd(e,t,n=false){return jg()}function rd(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];Wn$2(i),a.contentQueries(2,t[s],s);}}}finally{v(r);}}}function Us(e,t,n){Wn$2(0);let r=v(null);try{t(e,n);}finally{v(r);}}function Sa(e,t,n){if(rs(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 Se$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})(Se$1||{});var so$1;function Bg(){if(so$1===void 0&&(so$1=null,pe$2.trustedTypes))try{so$1=pe$2.trustedTypes.createPolicy(`angular`,{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e});}catch{}return so$1}function ko(e){return Bg()?.createHTML(e)||e}var ao$1;function Vg(){if(ao$1===void 0&&(ao$1=null,pe$2.trustedTypes))try{ao$1=pe$2.trustedTypes.createPolicy(`angular#unsafe-bypass`,{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e});}catch{}return ao$1}function Ju(e){return Vg()?.createHTML(e)||e}var Ze$1=class Ze{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t;}toString(){return `SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${jr})`}},zs=class extends Ze$1{getTypeName(){return `HTML`}},Gs=class extends Ze$1{getTypeName(){return `Style`}},Ws=class extends Ze$1{getTypeName(){return `Script`}},qs=class extends Ze$1{getTypeName(){return `URL`}},Zs=class extends Ze$1{getTypeName(){return `ResourceURL`}};function ve$1(e){return e instanceof Ze$1?e.changingThisBreaksApplicationSecurity:e}function Qe$1(e,t){let n=od(e);if(n!=null&&n!==t){if(n===`ResourceURL`&&t===`URL`)return true;throw new Error(`Required a safe ${t}, got a ${n} (see ${jr})`)}return n===t}function od(e){return e instanceof Ze$1&&e.getTypeName()||null}function Ma(e){return new zs(e)}function ba(e){return new Gs(e)}function Na(e){return new Ws(e)}function Aa(e){return new qs(e)}function Ra(e){return new Zs(e)}function Hg(e){let t=new Qs(e);return $g()?new Ys(t):t}var Ys=class{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t;}getInertBodyElement(t){t=`<body><remove></remove>`+t;try{let n=new window.DOMParser().parseFromString(ko(t),`text/html`).body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}},Qs=class{defaultDoc;inertDocument;constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument(`sanitization-inert`);}getInertBodyElement(t){let n=this.inertDocument.createElement(`template`);return n.innerHTML=ko(t),n}};function $g(){try{return !!new window.DOMParser().parseFromString(ko(``),`text/html`)}catch{return false}}var Ug=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function cr(e){return e=String(e),e.match(Ug)?e:`unsafe:`+e}function Ke$2(e){let t={};for(let n of e.split(`,`))t[n]=true;return t}function ur(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=true);return t}var id=Ke$2(`area,br,col,hr,img,wbr`),sd=Ke$2(`colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr`),ad=Ke$2(`rp,rt`),zg=ur(ad,sd),Xu=ur(id,ur(sd,Ke$2(`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`)),ur(ad,Ke$2(`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`)),zg),cd=Ke$2(`background,cite,href,itemtype,longdesc,poster,src,xlink:href`),Yg=ur(cd,Ke$2(`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`),Ke$2(`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`)),Qg=Ke$2(`script,style,template`),Ks=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=Xg(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=Jg(n);if(i){n=i;break}n=o.pop();}}return this.buf.join(``)}startElement(t){let n=el(t).toLowerCase();if(!Xu.hasOwnProperty(n))return this.sanitizedSomething=true,!Qg.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(!Yg.hasOwnProperty(a)){this.sanitizedSomething=true;continue}let c=i.value;cd[a]&&(c=cr(c)),this.buf.push(` `,s,`="`,tl(c),`"`);}return this.buf.push(`>`),true}endElement(t){let n=el(t).toLowerCase();Xu.hasOwnProperty(n)&&!id.hasOwnProperty(n)&&(this.buf.push(`</`),this.buf.push(n),this.buf.push(`>`));}chars(t){this.buf.push(tl(t));}};function Kg(e,t){return (e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function Jg(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw ud(t);return t}function Xg(e){let t=e.firstChild;if(t&&Kg(e,t))throw ud(t);return t}function el(e){let t=e.nodeName;return typeof t==`string`?t:`FORM`}function ud(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var em=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,tm=/([^\#-~ |!])/g;function tl(e){return e.replace(/&/g,`&amp;`).replace(em,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return `&#`+((n-55296)*1024+(r-56320)+65536)+`;`}).replace(tm,function(t){return `&#`+t.charCodeAt(0)+`;`}).replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}var co$1;function Fo(e,t){let n=null;try{co$1=co$1||Hg(e);let r=t?String(t):``;n=co$1.getInertBodyElement(r);let o=5,i=r;do{if(o===0)throw new Error(`Failed to sanitize html because the input is unstable`);o--,r=i,i=n.innerHTML,n=co$1.getInertBodyElement(r);}while(r!==i);return ko(new Ks().sanitizeChildren(nl(n)||n))}finally{if(n){let r=nl(n)||n;for(;r.firstChild;)r.firstChild.remove();}}}function nl(e){return `content`in e&&nm(e)?e.content:null}function nm(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName===`TEMPLATE`}var rm=/^>|^->|<!--|-->|--!>|<!-$/g,om=/(<|>)/g,im=`​$1​`;function sm(e){return e.replace(rm,t=>t.replace(om,im))}function am(e,t){return e.createText(t)}function cm(e,t,n){e.setValue(t,n);}function um(e,t){return e.createComment(sm(t))}function ld(e,t,n){return e.createElement(t,n)}function Io(e,t,n,r,o){e.insertBefore(t,n,r,o);}function dd(e,t,n){e.appendChild(t,n);}function rl(e,t,n,r,o){r!==null?Io(e,t,n,r,o):dd(e,t,n);}function fd(e,t,n,r){e.removeChild(null,t,n,r);}function lm(e,t,n){e.setAttribute(t,`style`,n);}function dm(e,t,n){n===``?e.removeAttribute(t,`class`):e.setAttribute(t,`class`,n);}function pd(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&Dg(e,t,r),o!==null&&dm(e,t,o),i!==null&&lm(e,t,i);}var Ne$2=(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})(Ne$2||{});function fm(e){let t=hd();return t?Ju(t.sanitize(Ne$2.HTML,e)||``):Qe$1(e,`HTML`)?Ju(ve$1(e)):Fo(Kl(),Xt$1(e))}function pm(e){let t=hd();return t?t.sanitize(Ne$2.URL,e)||``:Qe$1(e,`URL`)?ve$1(e):cr(Xt$1(e))}function hd(){let e=D();return e&&e[ke].sanitizer}function hm(e){return e.ownerDocument.defaultView}function gm(e){return e.ownerDocument}function mm(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 gd=`ng-template`;function ym(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]==`string`;o+=2)if(t[o]===`class`&&mm(t[o+1].toLowerCase(),n,0)!==-1)return true}else if(xa(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 xa(e){return e.type===4&&e.value!==gd}function Dm(e,t,n){return t===(e.type===4&&!n?gd:e.value)}function vm(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&&!Te$1(r)&&!Te$1(c))return false;if(s&&Te$1(c))continue;s=false,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==``&&!Dm(e,c,n)||c===``&&t.length===1){if(Te$1(r))return false;s=true;}}else if(r&8){if(o===null||!ym(e,o,c,n)){if(Te$1(r))return false;s=true;}}else {let u=t[++a],l=Em(c,o,xa(e),n);if(l===-1){if(Te$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(Te$1(r))return false;s=true;}}}}return Te$1(r)||s}function Te$1(e){return (e&1)===0}function Em(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 wm(t,e)}function md(e,t,n=false){for(let r=0;r<t.length;r++)if(vm(e,t[r],n))return true;return false}function Cm(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(vg(n))return t}return e.length}function wm(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 _m(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 ol(e,t){return e?`:not(`+t.trim()+`)`:t}function Tm(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!==``&&!Te$1(s)&&(t+=ol(i,o),o=``),r=s,i=i||!Te$1(r);n++;}return o!==``&&(t+=ol(i,o)),t}function Sm(e){return e.map(Tm).join(`,`)}function Mm(e){let t=[],n=[],r=1,o=2;for(;r<e.length;){let i=e[r];if(typeof i==`string`)o===2?i!==``&&t.push(i,e[++r]):o===8&&n.push(i);else {if(!Te$1(o))break;o=i;}r++;}return n.length&&t.push(1,...n),t}var le$1={};function Oa(e,t,n,r,o,i,s,a,c,u,l){let d=x$1+r,p=d+o,f=bm(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 bm(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:le$1);return n}function Nm(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Oa(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function ka(e,t,n,r,o,i,s,a,c,u,l){let d=t.blueprint.slice();return d[we$1]=o,d[E$1]=r|1228,(u!==null||e&&e[E$1]&2048)&&(d[E$1]|=2048),ss(d),d[G]=d[At$1]=e,d[B$1]=n,d[ke]=s||e&&e[ke],d[A$1]=a||e&&e[A$1],d[We$2]=c||e&&e[We$2]||null,d[te]=i,d[Le]=xg(),d[Nt$2]=l,d[ts]=u,d[ne$1]=t.type==2?e[ne$1]:d,d}function Am(e,t,n){let r=ye$3(t,e),o=Nm(n),i=e[ke].rendererFactory,s=Fa(e,ka(e,o,null,yd(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function yd(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function Dd(e,t,n,r){if(n===0)return -1;let o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function Fa(e,t){return e[on$1]?e[es][he$1]=t:e[on$1]=t,e[es]=t,t}function vd(e=1){Ed(k$1(),D(),He$1()+e);}function Ed(e,t,n,r){if((t[E$1]&3)===3){let i=e.preOrderCheckHooks;i!==null&&lo$1(t,i,n);}else {let i=e.preOrderHooks;i!==null&&fo$1(t,i,0,n);}pt$2(n);}var Lo=(function(e){return e[e.None=0]=`None`,e[e.SignalBased=1]=`SignalBased`,e[e.HasDecoratorInputTransform=2]=`HasDecoratorInputTransform`,e})(Lo||{});function Js(e,t,n,r){let o=v(null);try{let[i,s,a]=e.inputs[n],c=null;(s&Lo.SignalBased)!==0&&(c=t[i][j$1]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,c,r,n,i):Nl(t,c,i,r);}finally{v(o);}}var Me$1=(function(e){return e[e.Important=1]=`Important`,e[e.DashCase=2]=`DashCase`,e})(Me$1||{}),Rm;function La(e,t){return Rm(e,t)}typeof document<`u`&&document?.documentElement?.getAnimations;var Xs=new WeakMap;function xm(e,t){let n=Xs.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 Om(e,t){let n=Xs.get(e);n?n.includes(t)||n.push(t):Xs.set(e,[t]);}var ht$1=new Set,Po=(function(e){return e[e.CHANGE_DETECTION=0]=`CHANGE_DETECTION`,e[e.AFTER_NEXT_RENDER=1]=`AFTER_NEXT_RENDER`,e})(Po||{}),zt$2=new w$1(``),il=new Set;function Je$1(e){il.has(e)||(il.add(e),performance?.mark?.(`mark_feature_usage`,{detail:{feature:e}}));}var Pa=(()=>{class e{impl=null;execute(){this.impl?.execute();}static ɵprov=C({token:e,providedIn:`root`,factory:()=>new e})}return e})(),Cd=[0,1,2,3],Id=(()=>{class e{ngZone=g(ee$1);scheduler=g(ut$3);errorHandler=g(fe$2,{optional:true});sequences=new Set;deferredRegistrations=new Set;executing=false;constructor(){g(zt$2,{optional:true});}execute(){let n=this.sequences.size>0;n&&b$1(M$2.AfterRenderHooksStart),this.executing=true;for(let r of Cd)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&&b$1(M$2.AfterRenderHooksEnd);}register(n){let{view:r}=n;r!==void 0?((r[xt]??=[]).push(n),Ft$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(Po.AFTER_NEXT_RENDER,n):n()}static ɵprov=C({token:e,providedIn:`root`,factory:()=>new e})}return e})(),wo=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=false;pipelinedValue=void 0;unregisterOnDestroy;constructor(t,n,r,o,i,s=null){this.impl=t,this.hooks=n,this.view=r,this.once=o,this.snapshot=s,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy());}afterRun(){this.erroredOrDestroyed=false,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null;}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let t=this.view?.[xt];t&&(this.view[xt]=t.filter(n=>n!==this));}};function wd(e,t){let n=t?.injector??g(Z);return Je$1(`NgAfterNextRender`),Fm(e,n,t,true)}function km(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function Fm(e,t,n,r){let o=t.get(Pa);o.impl??=t.get(Id);let i=t.get(zt$2,null,{optional:true}),s=n?.manualCleanup!==true?t.get(qe):null,a=t.get(Yn$2,null,{optional:true}),c=new wo(o.impl,km(e),a?.view,r,s,i?.snapshot(null));return o.impl.register(c),c}var _d=new w$1(``,{factory:()=>{let e=g(re$1),t=new Set;return e.onDestroy(()=>t.clear()),{queue:t,isScheduled:false,scheduler:null,injector:e}}});function Td(e,t,n){let r=e.get(_d);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 Lm(e,t){let n=e.get(_d);if(t.detachedLeaveAnimationFns){for(let r of t.detachedLeaveAnimationFns)n.queue.delete(r);t.detachedLeaveAnimationFns=void 0;}}function Pm(e,t){for(let[n,r]of t)Td(e,r.animateFns);}function sl(e,t,n,r){let o=e?.[Pe$2]?.enter;t!==null&&o&&o.has(n.index)&&Pm(r,o);}function al(e,t,n,r){try{n.get(Bn$2);}catch{return r(false)}let o=e?.[Pe$2],i=jm(e,t,o);if(i.size===0){let s=false;if(e){let a=[];jo(e,t,a),s=a.length>0;}if(!s)return r(false)}e&&ht$1.add(e[Le]),Td(n,()=>Bm(e,t,o||void 0,i,r),o||void 0);}function jm(e,t,n){let r=new Map,o=n?.leave;if(o&&o.has(t.index)&&r.set(t.index,o.get(t.index)),e&&o)for(let[i,s]of o){if(r.has(i))continue;let c=e[y].data[i].parent;for(;c;){if(c===t){r.set(i,s);break}c=c.parent;}}return r}function Bm(e,t,n,r,o){let i=[];if(n&&n.leave)for(let[s]of r){if(!n.leave.has(s))continue;let a=n.leave.get(s);for(let c of a.animateFns){let{promise:u}=c();i.push(u);}n.detachedLeaveAnimationFns=void 0;}if(e&&jo(e,t,i),i.length>0){let s=n||e?.[Pe$2];if(s){let a=s.running;a&&i.push(a),s.running=Promise.allSettled(i),Vm(e,s.running,o);}else Promise.allSettled(i).then(()=>{e&&ht$1.delete(e[Le]),o(true);});}else e&&ht$1.delete(e[Le]),o(false);}function jo(e,t,n){if(Be$1(t))cl(ue$1(t.index,e),n);else if(t.type&12){let o=e[t.index];if(ge$2(o))for(let i=L$2;i<o.length;i++){let s=o[i];cl(s,n);}}let r=t.child;for(;r;)jo(e,r,n),r=r.next;}function cl(e,t){let n=e[Pe$2];if(n&&n.leave)for(let o of n.leave.values())for(let i of o.animateFns){let{promise:s}=i();t.push(s);}let r=e[y].firstChild;for(;r;)jo(e,r,t),r=r.next;}function Vm(e,t,n){t.then(()=>{e[Pe$2]?.running===t&&(e[Pe$2].running=void 0,ht$1.delete(e[Le])),n(true);});}function dn$2(e,t,n,r,o,i,s,a){if(o!=null){let c,u=false;ge$2(o)?c=o:je$1(o)&&(u=true,o=o[we$1]);let l=me$2(o);e===0&&r!==null?(sl(a,r,i,n),s==null?dd(t,r,l):Io(t,r,l,s||null,true)):e===1&&r!==null?(sl(a,r,i,n),Io(t,r,l,s||null,true),xm(i,l)):e===2?(a?.[Pe$2]?.leave?.has(i.index)&&Om(i,l),al(a,i,n,d=>{fd(t,l,u,d);})):e===3&&al(a,i,n,()=>{t.destroyNode(l);}),c!=null&&Qm(t,e,n,c,i,r,s);}}function Hm(e,t){Sd(e,t),t[we$1]=null,t[te]=null;}function $m(e,t,n,r,o,i){r[we$1]=o,r[te]=t,Vo(e,r,n,1,o,i);}function Sd(e,t){t[ke].changeDetectionScheduler?.notify(9),Vo(e,t,t[A$1],2,null,null);}function Um(e){let t=e[on$1];if(!t)return Ns(e[y],e);for(;t;){let n=null;if(je$1(t))n=t[on$1];else {let r=t[L$2];r&&(n=r);}if(!n){for(;t&&!t[he$1]&&t!==e;)je$1(t)&&Ns(t[y],t),t=t[G];t===null&&(t=e),je$1(t)&&Ns(t[y],t),n=t&&t[he$1];}t=n;}}function ja(e,t){let n=e[Ot$1],r=n.indexOf(t);n.splice(r,1);}function Bo(e,t){if(kt$2(t))return;let n=t[A$1];n.destroyNode&&Vo(e,t,n,3,null,null),Um(t);}function Ns(e,t){if(kt$2(t))return;let n=v(null);try{t[E$1]&=-129,t[E$1]|=256,t[ce$1]&&Ct$2(t[ce$1]),Gm(e,t),zm(e,t),t[y].type===1&&t[A$1].destroy();let r=t[dt$2];if(r!==null&&ge$2(t[G])){r!==t[G]&&ja(r,t);let o=t[Fe$1];o!==null&&o.detachView(e);}Hs(t);}finally{v(n);}}function zm(e,t){let n=e.cleanup,r=t[rn$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[rn$1]=null);let o=t[Ge$3];if(o!==null){t[Ge$3]=null;for(let s=0;s<o.length;s++){let a=o[s];a();}}let i=t[at];if(i!==null){t[at]=null;for(let s of i)s.destroy();}}function Gm(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 Vt$1)){let i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],c=i[s+1];b$1(M$2.LifecycleHookStart,a,c);try{c.call(a);}finally{b$1(M$2.LifecycleHookEnd,a,c);}}else {b$1(M$2.LifecycleHookStart,o,i);try{i.call(o);}finally{b$1(M$2.LifecycleHookEnd,o,i);}}}}}function Md(e,t,n){return Wm(e,t.parent,n)}function Wm(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[we$1];if(Be$1(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===Se$1.None||o===Se$1.Emulated)return null}return ye$3(r,n)}function bd(e,t,n){return Zm(e,t,n)}function qm(e,t,n){return e.type&40?ye$3(e,n):null}var Zm=qm;function Ba(e,t,n,r){let o=Md(e,r,t),i=t[A$1],a=bd(r.parent||t[te],r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)rl(i,o,n[c],a,false);else rl(i,o,n,a,false);}function Jn$2(e,t){if(t!==null){let n=t.type;if(n&3)return ye$3(t,e);if(n&4)return ea(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return Jn$2(e,r);{let o=e[t.index];return ge$2(o)?ea(-1,o):me$2(o)}}else {if(n&128)return Jn$2(e,t.next);if(n&32)return La(t,e)()||me$2(e[t.index]);{let r=Nd(e,t);if(r!==null){if(Array.isArray(r))return r[0];return Jn$2(ct(e[ne$1]),r)}else return Jn$2(e,t.next)}}}return null}function Nd(e,t){if(t!==null){let r=e[ne$1][te],o=t.projection;return r.projection[o]}return null}function ea(e,t){let n=L$2+e+1;if(n<t.length){let r=t[n],o=r[y].firstChild;if(o!==null)return Jn$2(r,o)}return t[ft$3]}function Va(e,t,n,r,o,i,s){for(;n!=null;){let a=r[We$2];if(n.type===128){n=n.next;continue}let c=r[n.index],u=n.type;if(s&&t===0&&(c&&hn$2(me$2(c),r),n.flags|=2),!Oo(n))if(u&8)Va(e,t,n.child,r,o,i,false),dn$2(t,e,a,o,c,n,i,r);else if(u&32){let l=La(n,r),d;for(;d=l();)dn$2(t,e,a,o,d,n,i,r);dn$2(t,e,a,o,c,n,i,r);}else u&16?Ad(e,t,r,n,o,i):dn$2(t,e,a,o,c,n,i,r);n=s?n.projectionNext:n.next;}}function Vo(e,t,n,r,o,i){Va(n,r,e.firstChild,t,o,i,false);}function Ym(e,t,n){let r=t[A$1];Ad(r,0,t,n,Md(e,n,t),bd(n.parent||t[te],n,t));}function Ad(e,t,n,r,o,i){let s=n[ne$1],c=s[te].projection[r.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++){let l=c[u];dn$2(t,e,n[We$2],o,l,r,i,n);}else {let u=c,l=s[G];Wl(r)&&(u.flags|=128),Va(e,t,u,l,o,i,true);}}function Qm(e,t,n,r,o,i,s){let a=r[ft$3];a!==me$2(r)&&dn$2(t,e,n,i,a,o,s);for(let u=L$2;u<r.length;u++){let l=r[u];Vo(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:Me$1.DashCase;o==null?e.removeStyle(n,r,i):(typeof o==`string`&&o.endsWith(`!important`)&&(o=o.slice(0,-10),i|=Me$1.Important),e.setStyle(n,r,o,i));}}function Rd(e,t,n,r,o){let i=He$1(),s=r&2;try{pt$2(-1),s&&t.length>x$1&&Ed(e,t,x$1,!1);b$1(s?M$2.TemplateUpdateStart:M$2.TemplateCreateStart,o,n),n(r,o);}finally{pt$2(i);b$1(s?M$2.TemplateUpdateEnd:M$2.TemplateCreateEnd,o,n);}}function Ho(e,t,n){ny(e,t,n),(n.flags&64)===64&&ry(e,t,n);}function Cn$2(e,t,n=ye$3){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 Jm(e,t,n,r){let i=r.get(td,ed)||n===Se$1.ShadowDom||n===Se$1.ExperimentalIsolatedShadowDom,s=e.selectRootElement(t,i);return s}function ty(e){return e===`class`?`className`:e===`for`?`htmlFor`:e===`formaction`?`formAction`:e===`innerHtml`?`innerHTML`:e===`readonly`?`readOnly`:e===`tabindex`?`tabIndex`:e}function xd(e,t,n,r,o,i){let s=t[y];if(zo(e,s,t,n,r)){Be$1(e)&&kd(t,e.index);return}e.type&3&&(n=ty(n)),Od(e,t,n,r,o,i);}function Od(e,t,n,r,o,i){if(e.type&3){let s=ye$3(e,t);r=i!=null?i(r,e.value||``,n):r,o.setProperty(s,n,r);}else e.type&12;}function kd(e,t){let n=ue$1(t,e);n[E$1]&16||(n[E$1]|=64);}function ny(e,t,n){let r=n.directiveStart,o=n.directiveEnd;Be$1(n)&&Am(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||Eo(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=er(t,e,s,n);if(hn$2(c,t),i!==null&&sy(t,s-r,c,a,n,i),_e$2(a)){let u=ue$1(n.index,t);u[B$1]=er(t,e,s,n);}}}function ry(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=bu();try{pt$2(i);for(let a=r;a<o;a++){let c=e.data[a],u=t[a];eo$1(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&oy(c,u);}}finally{pt$2(-1),eo$1(s);}}function oy(e,t){e.hostBindings!==null&&e.hostBindings(1,t);}function Ha(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];md(t,i.selectors,false)&&(r??=[],_e$2(i)?r.unshift(i):r.push(i));}return r}function iy(e,t,n,r,o,i){let s=ye$3(e,t);Fd(t[A$1],s,i,e.value,n,r,o);}function Fd(e,t,n,r,o,i,s){if(i==null)e.removeAttribute(t,o,n);else {let a=s==null?Xt$1(i):s(i,r||``,o);e.setAttribute(t,o,a,n);}}function sy(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];Js(r,n,c,u);}}function $o(e,t,n,r,o){let i=x$1+n,s=t[y],a=o(s,t,e,r,n);t[i]=a,Lt$2(e,true);let c=e.type===2;return c?(pd(t[A$1],a,e),(Eu()===0||sn$2(e))&&hn$2(a,t),Cu()):hn$2(a,t),oo$1()&&(!c||!Oo(e))&&Ba(s,t,a,e),e}function Uo(e){let t=e;return gs()?ms():(t=t.parent,Lt$2(t,false)),t}function ay(e,t){let n=e[We$2];if(!n)return;let r;try{r=n.get(Pt$2,null);}catch{r=null;}r?.(t);}function zo(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];Js(d,n[u],l,o),a=true;}if(i)for(let c of i){let u=n[c],l=t.data[c];Js(l,u,r,o),a=true;}return a}function cy(e,t){let n=ue$1(t,e),r=n[y];uy(r,n);let o=n[we$1];o!==null&&n[Nt$2]===null&&(n[Nt$2]=nd(o,n[We$2])),b$1(M$2.ComponentStart);try{$a(r,n,n[B$1]);}finally{b$1(M$2.ComponentEnd,n[B$1]);}}function uy(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n]);}function $a(e,t,n){no$1(t);try{let r=e.viewQuery;r!==null&&Us(1,r,n);let o=e.template;o!==null&&Rd(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[Fe$1]?.finishViewCreation(e),e.staticContentQueries&&rd(e,t),e.staticViewQueries&&Us(2,e.viewQuery,n);let i=e.components;i!==null&&ly(t,i);}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=true,e.firstCreatePass=false),r}finally{t[E$1]&=-5,ro$1();}}function ly(e,t){for(let n=0;n<t.length;n++)cy(e,t[n]);}function lr(e,t,n,r){let o=v(null);try{let i=t.tView,c=ka(e,i,n,e[E$1]&4096?4096:16,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null);c[dt$2]=e[t.index];let l=e[Fe$1];return l!==null&&(c[Fe$1]=l.createEmbeddedView(i)),$a(i,c,n),c}finally{v(o);}}function gn$2(e,t){return !t||t.firstChild===null||Wl(e)}function tr(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(me$2(i)),ge$2(i)&&Ld(i,r);let s=n.type;if(s&8)tr(e,t,n.child,r);else if(s&32){let a=La(n,t),c;for(;c=a();)r.push(c);}else if(s&16){let a=Nd(t,n);if(Array.isArray(a))r.push(...a);else {let c=ct(t[ne$1]);tr(c[y],c,a,r,true);}}n=o?n.projectionNext:n.next;}return r}function Ld(e,t){for(let n=L$2;n<e.length;n++){let r=e[n],o=r[y].firstChild;o!==null&&tr(r[y],r,o,t);}e[ft$3]!==e[we$1]&&t.push(e[ft$3]);}function Pd(e){if(e[xt]!==null){for(let t of e[xt])t.impl.addSequence(t);e[xt].length=0;}}var jd=[];function dy(e){return e[ce$1]??fy(e)}function fy(e){let t=jd.pop()??Object.create(hy);return t.lView=e,t}function py(e){e.lView[ce$1]!==e&&(e.lView=null,jd.push(e));}var hy=s(r({},nt$1),{consumerIsAlwaysLive:true,kind:`template`,consumerMarkedDirty:e=>{Ft$2(e.lView);},consumerOnSignalRead(){this.lView[ce$1]=this;}});function gy(e){let t=e[ce$1]??Object.create(my);return t.lView=e,t}var my=s(r({},nt$1),{consumerIsAlwaysLive:true,kind:`template`,consumerMarkedDirty:e=>{let t=ct(e.lView);for(;t&&!Bd(t[y]);)t=ct(t);t&&Kr(t);},consumerOnSignalRead(){this.lView[ce$1]=this;}});function Bd(e){return e.type!==2}function Vd(e){if(e[at]===null)return;let t=true;for(;t;){let n=false;for(let r of e[at])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 yy=100;function Hd(e,t=0){let r=e[ke].rendererFactory;r.begin?.();try{Dy(e,t);}finally{r.end?.();}}function Dy(e,t){let n=Ds();try{On$2(!0),ta(e,t);let r=0;for(;cn$2(e);){if(r===yy)throw new m(103,!1);r++,ta(e,1);}}finally{On$2(n);}}function vy(e,t,n,r){if(kt$2(t))return;let o=t[E$1];no$1(t);let a=true,c=null,u=null;Bd(e)?(u=dy(t),c=ot$2(u)):br()===null?(a=false,u=gy(t),c=ot$2(u)):t[ce$1]&&(Ct$2(t[ce$1]),t[ce$1]=null);try{ss(t),Tu(e.bindingStartIndex),n!==null&&Rd(e,t,n,2,r);let l=(o&3)===3;if(l){let f=e.preOrderCheckHooks;f!==null&&lo$1(t,f,null);}else {let f=e.preOrderHooks;f!==null&&fo$1(t,f,0,null),Ms(t,0);}if(Ey(t),Vd(t),$d(t,0),e.contentQueries!==null&&rd(e,t),true)if(l){let f=e.contentCheckHooks;f!==null&&lo$1(t,f);}else {let f=e.contentHooks;f!==null&&fo$1(t,f,1),Ms(t,1);}Iy(e,t);let d=e.components;d!==null&&zd(t,d,0);let p=e.viewQuery;if(p!==null&&Us(2,p,r),true)if(l){let f=e.viewCheckHooks;f!==null&&lo$1(t,f);}else {let f=e.viewHooks;f!==null&&fo$1(t,f,2),Ms(t,2);}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Yr]){for(let f of t[Yr])f();t[Yr]=null;}Pd(t),t[E$1]&=-73;}catch(l){throw Ft$2(t),l}finally{u!==null&&(Et$1(u,c),a&&py(u)),ro$1();}}function $d(e,t){for(let n=Zl(e);n!==null;n=Yl(n))for(let r=L$2;r<n.length;r++){let o=n[r];Ud(o,t);}}function Ey(e){for(let t=Zl(e);t!==null;t=Yl(t)){if(!(t[E$1]&2))continue;let n=t[Ot$1];for(let r=0;r<n.length;r++){let o=n[r];Kr(o);}}}function Cy(e,t,n){b$1(M$2.ComponentStart);let r=ue$1(t,e);try{Ud(r,n);}finally{b$1(M$2.ComponentEnd,r[B$1]);}}function Ud(e,t){Qr(e)&&ta(e,t);}function ta(e,t){let r=e[y],o=e[E$1],i=e[ce$1],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&Sn$2(i)),s||=false,i&&(i.dirty=false),e[E$1]&=-9217,s)vy(r,e,r.template,e[B$1]);else if(o&8192){let a=v(null);try{Vd(e),$d(e,1);let c=r.components;c!==null&&zd(e,c,1),Pd(e);}finally{v(a);}}}function zd(e,t,n){for(let r=0;r<t.length;r++)Cy(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)pt$2(~o);else {let i=o,s=n[++r],a=n[++r];Mu(s,i);let c=t[i];b$1(M$2.HostBindingsUpdateStart,c);try{a(2,c);}finally{b$1(M$2.HostBindingsUpdateEnd,c);}}}}finally{pt$2(-1);}}function Ua(e,t){let n=Ds()?64:1088;for(e[ke].changeDetectionScheduler?.notify(t);e;){e[E$1]|=n;let r=ct(e);if(an$2(e)&&!r)return e;e=r;}return null}function Gd(e,t,n,r){return [e,true,0,t,null,r,null,n,null,null]}function Wd(e,t){let n=L$2+t;if(n<e.length)return e[n]}function dr(e,t,n,r=true){let o=t[y];if(wy(o,t,e,n),r){let s=ea(n,e),a=t[A$1],c=a.parentNode(e[ft$3]);c!==null&&$m(o,e[te],a,t,c,s);}let i=t[Nt$2];i!==null&&i.firstChild!==null&&(i.firstChild=null);}function qd(e,t){let n=nr(e,t);return n!==void 0&&Bo(n[y],n),n}function nr(e,t){if(e.length<=L$2)return;let n=L$2+t,r=e[n];if(r){let o=r[dt$2];o!==null&&o!==e&&ja(o,r),t>0&&(e[n-1][he$1]=r[he$1]);let i=Pn$2(e,L$2+t);Hm(r[y],r);let s=i[Fe$1];s!==null&&s.detachView(i[y]),r[G]=null,r[he$1]=null,r[E$1]&=-129;}return r}function wy(e,t,n,r){let o=L$2+r,i=n.length;r>0&&(n[o-1][he$1]=t),r<i-L$2?(t[he$1]=n[o],Yi(n,L$2+r,t)):(n.push(t),t[he$1]=null),t[G]=n;let s=t[dt$2];s!==null&&n!==s&&Zd(s,t);let a=t[Fe$1];a!==null&&a.insertView(e),Jr(t),t[E$1]|=128;}function Zd(e,t){let n=e[Ot$1],r=t[G];if(je$1(r))e[E$1]|=2;else {let o=r[G][ne$1];t[ne$1]!==o&&(e[E$1]|=2);}n===null?e[Ot$1]=[t]:n.push(t);}var gt$3=class gt{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=false;exhaustive;get rootNodes(){let t=this._lView,n=t[y];return tr(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n;}get context(){return this._lView[B$1]}set context(t){this._lView[B$1]=t;}get destroyed(){return kt$2(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[G];if(ge$2(t)){let n=t[Hn$2],r=n?n.indexOf(this):-1;r>-1&&(nr(t,r),Pn$2(n,r));}this._attachedToViewContainer=false;}Bo(this._lView[y],this._lView);}onDestroy(t){as(this._lView,t);}markForCheck(){Ua(this._cdRefInjectingView||this._lView,4);}detach(){this._lView[E$1]&=-129;}reattach(){Jr(this._lView),this._lView[E$1]|=128;}detectChanges(){this._lView[E$1]|=1024,Hd(this._lView);}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new m(902,false);this._attachedToViewContainer=true;}detachFromAppRef(){this._appRef=null;let t=an$2(this._lView),n=this._lView[dt$2];n!==null&&!t&&ja(n,this._lView),Sd(this._lView[y],this._lView);}attachToAppRef(t){if(this._attachedToViewContainer)throw new m(902,false);this._appRef=t;let n=an$2(this._lView),r=this._lView[dt$2];r!==null&&!n&&Zd(r,this._lView),Jr(this._lView);}};function _y(e){return cn$2(e._lView)||!!(e._lView[E$1]&64)}function Ty(e){Kr(e._lView);}var Ht$2=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=Sy;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 gt$3(lr(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:o}))}}return e})();function Sy(){return Go(q(),D())}function Go(e,t){return e.type&4?new Ht$2(t,e,vn$2(e,t)):null}function Gt$1(e,t,n,r,o){let i=e.data[t];if(i===null)i=My(e,t,n,r,o),Su()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=_u();i.injectorIndex=s===null?-1:s.injectorIndex;}return Lt$2(i,true),i}function My(e,t,n,r,o){let i=hs(),s=gs(),a=s?i:i&&i.parent,c=e.data[t]=Ny(e,a,n,t,r,o);return by(e,c,i,s),c}function by(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 Ny(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return ds()&&(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 Ay(e){let t=e[ns]??[],r=e[G][A$1],o=[];for(let i of t)i.data[Xl]!==void 0?o.push(i):Ry(i,r);e[ns]=o;}function Ry(e,t){let n=0,r=e.firstChild;if(r){let o=e.data[Jl];for(;n<o;){let i=r.nextSibling;fd(t,r,false),r=i,n++;}}}var xy=()=>null,Oy=()=>null;function _o(e,t){return xy()}function Yd(e,t,n){return Oy()}var Qd=class{},Wo=class{},na=class{resolveComponentFactory(t){throw new m(917,false)}},qo=class{static NULL=new na},Ye$2=class Ye{},fr=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>ky()}return e})();function ky(){let e=D(),n=ue$1(q().index,e);return (je$1(n)?n:e)[A$1]}var Kd=(()=>{class e{static ɵprov=C({token:e,providedIn:`root`,factory:()=>null})}return e})();var ho={},ra=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n;}get(t,n,r){let o=this.injector.get(t,ho,r);return o!==ho||n===ho?o:this.parentInjector.get(t,n,r)}};function To(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=Vr(o,a);else if(i==2){let c=a,u=t[++s];r=Vr(r,c+`: `+u+`;`);}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o;}function K(e,t=0){let n=D();if(n===null)return T$1(e,t);return Hl(q(),n,z(e),t)}function Jd(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}Py(e,t,n,a,i,c,u);}i!==null&&r!==null&&Fy(n,r,i);}function Fy(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 Ly(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index);}function Py(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&&_e$2(f)&&(c=f,Ly(e,n,p)),Bs(Eo(n,t),e,f.type);}Uy(n,e.data.length,a),c?.viewProvidersResolver&&c.viewProvidersResolver(c);for(let p=0;p<a;p++){let f=r[p];f.providersResolver&&f.providersResolver(f);}let u=false,l=false,d=Dd(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let p=0;p<a;p++){let f=r[p];if(n.mergedAttrs=pn$2(n.mergedAttrs,f.hostAttrs),By(e,n,t,d,f),$y(d,f,o),s!==null&&s.has(f)){let[I,S]=s.get(f);n.directiveToIndex.set(f.type,[d,I+n.directiveStart,S+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++;}jy(e,n,i);}function jy(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))ll(0,t,o,r),ll(1,t,o,r),fl(t,r,false);else {let i=n.get(o);dl(0,t,i,r),dl(1,t,i,r),fl(t,r,true);}}}function ll(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),Xd(t,i);}}function dl(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),Xd(t,s);}}function Xd(e,t){t===`class`?e.flags|=8:t===`style`&&(e.flags|=16);}function fl(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||xa(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let c=r[a];if(c===0){a+=4;continue}else if(c===5){a+=2;continue}else if(typeof c==`number`)break;if(!n&&o.hasOwnProperty(c)){let u=o[c];for(let l of u)if(l===t){s??=[],s.push(c,r[a+1]);break}}else if(n&&i.hasOwnProperty(c)){let u=i[c];for(let l=0;l<u.length;l+=2)if(u[l]===t){s??=[],s.push(u[l+1],r[a+1]);break}}a+=2;}e.initialInputs??=[],e.initialInputs.push(s);}function By(e,t,n,r,o){e.data[r]=o;let s=new Vt$1(o.factory||(o.factory=st(o.type)),_e$2(o),K,null);e.blueprint[r]=s,n[r]=s,Vy(e,t,r,Dd(e,n,o.hostVars,le$1),o);}function Vy(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;Hy(s)!=a&&s.push(a),s.push(n,r,i);}}function Hy(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n==`number`&&n<0)return n}return 0}function $y(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;_e$2(t)&&(n[``]=e);}}function Uy(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t;}function za(e,t,n,r,o,i,s,a){let c=t[y],u=c.consts,d=Gt$1(c,e,n,r,De$1(u,s));return Jd(c,t,d,De$1(u,a),o),d.mergedAttrs=pn$2(d.mergedAttrs,d.attrs),d.attrs!==null&&To(d,d.attrs,false),d.mergedAttrs!==null&&To(d,d.mergedAttrs,true),c.queries!==null&&c.queries.elementStart(c,d),d}function Ga(e,t){Ol(e,t),rs(t)&&e.queries.elementEnd(t);}function ef(e,t,n,r,o,i){let s=t.consts,c=Gt$1(t,e,n,r,De$1(s,o));if(c.mergedAttrs=pn$2(c.mergedAttrs,c.attrs),i!=null){let u=De$1(s,i);c.localNames=[];for(let l=0;l<u.length;l+=2)c.localNames.push(u[l],-1);}return c.attrs!==null&&To(c,c.attrs,false),c.mergedAttrs!==null&&To(c,c.mergedAttrs,true),t.queries!==null&&t.queries.elementStart(t,c),c}function Wa(e){return e!==null&&(typeof e==`function`||typeof e==`object`)}function tf(e,t,n){return e[t]=n}function oe$1(e,t,n){if(n===le$1)return false;let r=e[t];return Object.is(r,n)?false:(e[t]=n,true)}function zy(e,t,n,r){let o=oe$1(e,t,n);return oe$1(e,t+1,r)||o}function go$1(e,t,n){return function r(o){Ua(Be$1(e)?ue$1(e.index,t):t,5);let s=t[B$1],a=pl(t,s,n,o),c=r.__ngNextListenerFn__;for(;c;)a=pl(t,s,c,o)&&a,c=c.__ngNextListenerFn__;return a}}function pl(e,t,n,r){let o=v(null);try{return b$1(M$2.OutputStart,t,n),n(r)!==!1}catch(i){return ay(e,i),false}finally{b$1(M$2.OutputEnd,t,n),v(o);}}function nf(e,t,n,r,o,i,s,a){let c=sn$2(e),u=false,l=null;if(!r&&c&&(l=Wy(t,n,i,e.index)),l!==null){let d=l.__ngLastListenerFn__||l;d.__ngNextListenerFn__=s,l.__ngLastListenerFn__=s,u=true;}else {let d=ye$3(e,n),p=r?r(d):d;let f=o.listen(p,i,a);if(!Gy(i))rf(r?I=>r(me$2(I[e.index])):e.index,t,n,i,a,f,false);}return u}function Gy(e){return e.startsWith(`animation`)||e.startsWith(`transition`)}function Wy(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[rn$1],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s==`string`&&(i+=2);}return null}function rf(e,t,n,r,o,i,s){let a=t.firstCreatePass?us(t):null,c=cs(n),u=c.length;c.push(o,i),a&&a.push(r,e,u,(u+1)*(s?-1:1));}function hl(e,t,n,r,o,i){let s=t[n],a=t[y],d=s[a.data[n].outputs[r]].subscribe(i);rf(e.index,a,t,o,i,d,true);}var oa=Symbol(`BINDING`);var ia=class extends qo{ngModule;constructor(t){super(),this.ngModule=t;}resolveComponentFactory(t){return new mn$2(lt$1(t),this.ngModule)}};function qy(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&Lo.SignalBased)!==0};return o&&(i.transform=o),i})}function Zy(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function Yy(e,t,n){let r=t instanceof re$1?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new ra(n,r):n}function Qy(e){let t=e.get(Ye$2,null);if(t===null)throw new m(407,false);return {rendererFactory:t,sanitizer:e.get(Kd,null),changeDetectionScheduler:e.get(ut$3,null),ngReflect:false}}function Ky(e,t){let n=of(e);return ld(t,n,n===`svg`?os:n===`math`?hu:null)}function of(e){return (e.selectors[0][0]||`div`).toLowerCase()}var mn$2=class mn extends Wo{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=qy(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=Zy(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=Sm(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n;}create(t,n,r,o,i,s){b$1(M$2.DynamicComponentStart);let a=v(null);try{let c=this.componentDef,u=Jy(r,c,s,i),l=Yy(c,o||this.ngModule,t),d=Qy(l),p=d.rendererFactory.createRenderer(null,c),f=r?Jm(p,r,c.encapsulation,l):Ky(c,p),h=s?.some(gl)||i?.some(N=>typeof N!=`function`&&N.bindings.some(gl)),I=ka(null,u,null,512|yd(c),null,null,d,p,l,null,nd(f,l,!0));I[x$1]=f,no$1(I);let S=null;try{let N=za(x$1,I,2,`#host`,()=>u.directiveRegistry,!0,0);pd(p,f,N),hn$2(f,I),Ho(u,I,N),Sa(u,N,I),Ga(u,N),n!==void 0&&eD(N,this.ngContentSelectors,n),S=ue$1(N.index,I),I[B$1]=S[B$1],$a(u,I,null);}catch(N){throw S!==null&&Hs(S),Hs(I),N}finally{b$1(M$2.DynamicComponentEnd),ro$1();}return new So(this.componentType,I,!!h)}finally{v(a);}}};function Jy(e,t,n,r){let o=e?[`ng-version`,`21.2.0`]:Mm(t.selectors[0]),i=null,s=null,a=0;if(n)for(let l of n)a+=l[oa].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[oa].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=Ur(typeof l==`function`?l:l.type);c.push(p);}return Oa(0,null,Xy(i,s),1,a,c,null,null,null,[o],null)}function Xy(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 gl(e){let t=e[oa].kind;return t===`input`||t===`twoWay`}var So=class extends Qd{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=$n$2(n[y],x$1),this.location=vn$2(this._tNode,n),this.instance=ue$1(this._tNode.index,n)[B$1],this.hostView=this.changeDetectorRef=new gt$3(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;zo(r,o[y],o,t,n);this.previousInputValues.set(t,n);Ua(ue$1(r.index,o),1);}get injector(){return new Bt$2(this._tNode,this._rootLView)}destroy(){this.hostView.destroy();}onDestroy(t){this.hostView.onDestroy(t);}};function eD(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 Wt$1=(()=>{class e{static __NG_ELEMENT_ID__=tD}return e})();function tD(){return af(q(),D())}var nD=Wt$1,sf=class extends nD{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r;}get element(){return vn$2(this._hostTNode,this._hostLView)}get injector(){return new Bt$2(this._hostTNode,this._hostLView)}get parentInjector(){let t=wa(this._hostTNode,this._hostLView);if(Fl(t)){let n=Do(t,this._hostLView),r=yo(t),o=n[y].data[r+8];return new Bt$2(o,n)}else return new Bt$2(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1);}get(t){let n=ml(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-L$2}createEmbeddedView(t,n,r){let o,i;typeof r==`number`?o=r:r!=null&&(o=r.index,i=r.injector);let s=_o(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,gn$2(this._hostTNode,s)),a}createComponent(t,n,r,o,i,s,a){let c=t&&!lg(t),u;if(c)u=n;else {let S=n||{};u=S.index,r=S.injector,o=S.projectableNodes,i=S.environmentInjector||S.ngModuleRef,s=S.directives,a=S.bindings;}let l=c?t:new mn$2(lt$1(t)),d=r||this.parentInjector;if(!i&&l.ngModule==null){let N=(c?d:this.parentInjector).get(re$1,null);N&&(i=N);}let p=lt$1(l.componentType??{}),f=_o(this._lContainer,p?.id??null),h=null,I=l.create(d,o,h,i,s,a);return this.insertImpl(I.hostView,u,gn$2(this._hostTNode,f)),I}insert(t,n){return this.insertImpl(t,n,true)}insertImpl(t,n,r){let o=t._lView;if(mu(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else {let c=o[G],u=new sf(c,c[te],c[G]);u.detach(u.indexOf(t));}}let i=this._adjustIndex(n),s=this._lContainer;return dr(s,o,i,r),t.attachToViewContainerRef(),Yi(As(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=ml(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=nr(this._lContainer,n);r&&(Pn$2(As(this._lContainer),n),Bo(r[y],r));}detach(t){let n=this._adjustIndex(t,-1),r=nr(this._lContainer,n);return r&&Pn$2(As(this._lContainer),n)!=null?new gt$3(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function ml(e){return e[Hn$2]}function As(e){return e[Hn$2]||(e[Hn$2]=[])}function af(e,t){let n,r=t[e.index];return ge$2(r)?n=r:(n=Gd(r,t,null,e),t[e.index]=n,Fa(t,n)),oD(n,t,e,r),new sf(n,e,t)}function rD(e,t){let n=e[A$1],r=n.createComment(``),o=ye$3(t,e);return Io(n,n.parentNode(o),r,n.nextSibling(o),false),r}var oD=aD;function aD(e,t,n,r){if(e[ft$3])return;let o;n.type&8?o=me$2(r):o=rD(t,n),e[ft$3]=o;}var sa=class e{queryList;matches=null;constructor(t){this.queryList=t;}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty();}},aa=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++)Za(t,n).matches!==null&&this.queries[n].setDirty();}},ca=class{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t==`string`?this.predicate=pD(t):this.predicate=t;}},ua=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);}},la=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,cD(n,i)),this.matchTNodeWithReadOption(t,n,po$1(n,t,i,false,false));}else r===Ht$2?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,po$1(n,t,r,false,false));}matchTNodeWithReadOption(t,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===be$1||o===Wt$1||o===Ht$2&&n.type&4)this.addMatch(n.index,-2);else {let i=po$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 cD(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 uD(e,t){return e.type&11?vn$2(e,t):e.type&4?Go(e,t):null}function lD(e,t,n,r){return n===-1?uD(t,e):n===-2?dD(e,t,r):er(e,e[y],n,t)}function dD(e,t,n){if(n===be$1)return vn$2(t,e);if(n===Ht$2)return Go(t,e);if(n===Wt$1)return af(t,e)}function cf(e,t,n,r){let o=t[Fe$1].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(lD(t,l,s[c+1],n.metadata.read));}}o.matches=a;}return o.matches}function da(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=cf(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$2;d<l.length;d++){let p=l[d];p[dt$2]===p[G]&&da(p[y],p,u,r);}if(l[Ot$1]!==null){let d=l[Ot$1];for(let p=0;p<d.length;p++){let f=d[p];da(f[y],f,u,r);}}}}}return r}function qa(e,t){return e[Fe$1].queries[t].queryList}function fD(e,t,n){let r=new Co((n&4)===4);return vu(e,t,r,r.destroy),(t[Fe$1]??=new aa).queries.push(new sa(r))-1}function uf(e,t,n){let r=k$1();return r.firstCreatePass&&(hD(r,new ca(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=true)),fD(r,D(),t)}function pD(e){return e.split(`,`).map(t=>t.trim())}function hD(e,t,n){e.queries===null&&(e.queries=new ua),e.queries.track(new la(t,n));}function Za(e,t){return e.queries.getByIndex(t)}function lf(e,t){let n=e[y],r=Za(n,t);return r.crossesNgTemplate?da(n,e,t,[]):cf(n,e,r,t)}function df(e,t,n){let r,o=Nn$2(()=>{r._dirtyCounter();let i=mD(r,e);if(t&&i===void 0)throw new m(-951,false);return i});return r=o[j$1],r._dirtyCounter=jt$1(0),r._flatValue=void 0,o}function ff(e){return df(true,false)}function pf(e){return df(true,true)}function gD(e,t){let n=e[j$1];n._lView=D(),n._queryIndex=t,n._queryList=qa(n._lView,t),n._queryList.onDirty(()=>n._dirtyCounter.update(r=>r+1));}function mD(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=qa(n,r),i=lf(n,r);return o.reset(i,Gl),t?o.first:o._changesDetected||e._flatValue===void 0?e._flatValue=o.toArray():e._flatValue}var rr=class{};var or=class extends rr{injector;componentFactoryResolver=new ia(this);instance=null;constructor(t){super();let n=new Tt$2([...t.providers,{provide:rr,useValue:this},{provide:qo,useValue:this.componentFactoryResolver}],t.parent||nn$1(),t.debugName,new Set([`environment`]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers();}destroy(){this.injector.destroy();}onDestroy(t){this.injector.onDestroy(t);}};function hf(e,t,n=null){return new or({providers:e,parent:t,debugName:n,runEnvironmentInitializers:true}).injector}var yD=(()=>{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=Ki(false,n.type),o=r.length>0?hf([r],this._injector,``):null;this.cachedInjectors.set(n,o);}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy();}finally{this.cachedInjectors.clear();}}static ɵprov=C({token:e,providedIn:`environment`,factory:()=>new e(T$1(re$1))})}return e})();function gf(e){return ar(()=>{let t=mf(e),n=s(r({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===_a.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(yD).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??false,data:e.data||{},encapsulation:e.encapsulation||Se$1.Emulated,styles:e.styles||Q,_:null,schemas:e.schemas||null,tView:null,id:``});t.standalone&&Je$1(`NgStandalone`),yf(n);let r$1=e.dependencies;return n.directiveDefs=yl(r$1,DD),n.pipeDefs=yl(r$1,eu),n.id=CD(n),n})}function DD(e){return lt$1(e)||Ur(e)}function In$2(e){return ar(()=>({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 vD(e,t){if(e==null)return Ie$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=Lo.None,c=null),n[i]=[r,a,c],t[i]=s;}return n}function ED(e){if(e==null)return Ie$1;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function wn$2(e){return ar(()=>{let t=mf(e);return yf(t),t})}function pr(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 mf(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||Ie$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:vD(e.inputs,t),outputs:ED(e.outputs),debugInfo:null}}function yf(e){e.features?.forEach(t=>t(e));}function yl(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 CD(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=wD,n.hostDirectives=r?e.map(fa):[e]):r?n.hostDirectives.unshift(...e.map(fa)):n.hostDirectives.unshift(e);};return t.ngInherit=true,t}function wD(e){let t=[],n=false,r=null,o=null;for(let i=0;i<e.length;i++){let s=e[i];if(s.hostDirectives!==null){let a=t.length;r??=new Map,o??=new Map,Df(s,t,r),o.set(s,[a,t.length-1]);}i===0&&_e$2(s)&&(n=true,t.push(s));}for(let i=n?1:0;i<e.length;i++)t.push(e[i]);return [t,r,o]}function Df(e,t,n){if(e.hostDirectives!==null)for(let r of e.hostDirectives)if(typeof r==`function`){let o=r();for(let i of o)Dl(fa(i),t,n);}else Dl(r,t,n);}function Dl(e,t,n){let r=Ur(e.directive);_D(r.declaredInputs,e.inputs),Df(r,t,n),n.set(r,e),t.push(r);}function fa(e){return typeof e==`function`?{directive:z(e),inputs:Ie$1,outputs:Ie$1}:{directive:z(e.directive),inputs:vl(e.inputs),outputs:vl(e.outputs)}}function vl(e){if(e===void 0||e.length===0)return Ie$1;let t={};for(let n=0;n<e.length;n+=2)t[e[n]]=e[n+1];return t}function _D(e,t){for(let n in t)if(t.hasOwnProperty(n)){let r=t[n];e[r]=e[n];}}function TD(e){return Object.getPrototypeOf(e.prototype).constructor}function Ya(e){let t=TD(e.type),n=true,r=[e];for(;t;){let o;if(_e$2(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=Rs$1(e.inputs),s.declaredInputs=Rs$1(e.declaredInputs),s.outputs=Rs$1(e.outputs);let a=o.hostBindings;a&&AD(e,a);let c=o.viewQuery,u=o.contentQueries;if(c&&bD(e,c),u&&ND(e,u),SD(e,o),Xc(e.outputs,o.outputs),_e$2(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===Ya&&(n=false);}}t=Object.getPrototypeOf(t);}MD(r);}function SD(e,t){for(let n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;let r=t.inputs[n];r!==void 0&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n]);}}function MD(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=pn$2(o.hostAttrs,n=pn$2(n,o.hostAttrs));}}function Rs$1(e){return e===Ie$1?{}:e===Q?[]:e}function bD(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o);}:e.viewQuery=t;}function ND(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i);}:e.contentQueries=t;}function AD(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o);}:e.hostBindings=t;}function vf(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=pn$2(e.mergedAttrs,e.attrs);let l=e.tView=Oa(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),Lt$2(e,false);let c=xD(n,t);oo$1()&&Ba(n,t,c,e),hn$2(c,t);let u=Gd(c,t,c,e);t[r+x$1]=u,Fa(t,u);}function RD(e,t,n,r,o,i,s,a,c,u,l){let d=n+x$1,p;return t.firstCreatePass?(p=Gt$1(t,d,4,s||null,a||null),Jd(t,e,p,De$1(t.consts,u),Ha),Ol(t,p)):p=t.data[d],vf(p,e,t,n,r,o,i,c),sn$2(p)&&Ho(t,e,p),u!=null&&Cn$2(e,p,l),p}function ir(e,t,n,r,o,i,s,a,c,u,l){let d=n+x$1,p;if(t.firstCreatePass){if(p=Gt$1(t,d,4,s||null,a||null),u!=null){let f=De$1(t.consts,u);p.localNames=[];for(let h=0;h<f.length;h+=2)p.localNames.push(f[h],-1);}}else p=t.data[d];return vf(p,e,t,n,r,o,i,c),u!=null&&Cn$2(e,p,l),p}function Ef(e,t,n,r,o,i,s,a){let c=D(),u=k$1();return RD(c,u,e,t,n,r,o,De$1(u.consts,i),void 0,s,a),Ef}var xD=OD;function OD(e,t,n,r){return qn$2(true),t[A$1].createComment(``)}function Qa(e){return typeof e==`function`&&e[j$1]!==void 0}function Ka(e){return Qa(e)&&typeof e.set==`function`}var Ja=new w$1(``);function Zo(e){return !!e&&typeof e.then==`function`}function Xa(e){return !!e&&typeof e.subscribe==`function`}var Cf=new w$1(``);var ec=(()=>{class e{resolve;reject;initialized=false;done=false;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r;});appInits=g(Cf,{optional:true})??[];injector=g(Z);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Zr(this.injector,o);if(Zo(i))n.push(i);else if(Xa(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})(),If=new w$1(``);function wf(){wi(()=>{throw new m(600,``)});}function _f(e){return e.isBoundToModule}var kD=10;var mt$2=(()=>{class e{_runningTick=false;_destroyed=false;_destroyListeners=[];_views=[];internalErrorHandler=g(Pt$2);afterRenderManager=g(Pa);zonelessEnabled=g(Qn$2);rootEffectScheduler=g(io$1);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=false;afterTick=new U;get allViews(){return [...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=g(ln$2);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(q$1(n=>!n))}constructor(){g(zt$2,{optional:true});}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r();}});}).finally(()=>{n.unsubscribe();})}_injector=g(re$1);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=Z.NULL){return this._injector.get(ee$1).run(()=>{b$1(M$2.BootstrapComponentStart);let s=n instanceof Wo;if(!this._injector.get(ec).done)throw new m(405,``);let c;s?c=n:c=this._injector.get(qo).resolveComponentFactory(n),this.componentTypes.push(c.componentType);let u=_f(c)?void 0:this._injector.get(rr),l=r||c.selector,d=c.create(o,[],l,u),p=d.location.nativeElement,f=d.injector.get(Ja,null);return f?.registerApplication(p),d.onDestroy(()=>{this.detachView(d.hostView),Xn$2(this.components,d),f?.unregisterApplication(p);}),this._loadComponent(d),b$1(M$2.BootstrapComponentEnd,d),d})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick();}_tick(){b$1(M$2.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(Po.CHANGE_DETECTION,this.tickImpl):this.tickImpl();}tickImpl=()=>{if(this._runningTick)throw b$1(M$2.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(),b$1(M$2.ChangeDetectionEnd);}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Ye$2,null,{optional:true}));let n=0;for(;this.dirtyFlags!==0&&n++<kD;){b$1(M$2.ChangeDetectionSyncStart);try{this.synchronizeOnce();}finally{b$1(M$2.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&&!cn$2(o))continue;Hd(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})=>cn$2(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;Xn$2(this._views,r),r.detachFromAppRef();}_loadComponent(n){this.attachView(n.hostView);try{this.tick();}catch(o){this.internalErrorHandler(o);}this.components.push(n),this._injector.get(If,[]).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),()=>Xn$2(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new m(406,false);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy();}get viewCount(){return this._views.length}static ɵfac=function(r){return new(r||e)};static ɵprov=C({token:e,factory:e.ɵfac,providedIn:`root`})}return e})();function Xn$2(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1);}function Tf(e,t){let n=D();if(oe$1(n,Ve$1(),t)){let o=k$1(),i=un$2();if(zo(i,o,n,e,t))Be$1(i)&&kd(n,i.index);else {let a=ye$3(i,n);Fd(n[A$1],a,null,i.value,e,t,null);}}return Tf}function Sf(e,t,n,r){let o=D();if(oe$1(o,Ve$1(),t)){k$1();iy(un$2(),o,e,t,n,r);}return Sf}var pa=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 xs(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function FD(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=xs(s,l,s,d,n);if(p!==0){p<0&&e.updateValue(s,d),s++;continue}let f=e.at(a),h=t[u],I=xs(a,f,u,h,n);if(I!==0){I<0&&e.updateValue(a,h),a--,u--;continue}let S=n(s,l),N=n(a,f),de=n(s,d);if(Object.is(de,N)){let Zt=n(u,h);Object.is(Zt,S)?(e.swap(s,a),e.updateValue(a,h),u--,a--):e.move(a,s),e.updateValue(s,d),s++;continue}if(o??=new Mo,i??=Cl(e,s,a,n),ha(e,o,s,de))e.updateValue(s,d),s++,a++;else if(i.has(de))o.set(S,e.detach(s)),a--;else {let Zt=e.create(s,t[s]);e.attach(s,Zt),s++,a++;}}for(;s<=u;)El(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=xs(s,d,s,p,n);if(f!==0)f<0&&e.updateValue(s,p),s++,l=u.next();else {o??=new Mo,i??=Cl(e,s,a,n);let h=n(s,p);if(ha(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 I=n(s,d);o.set(I,e.detach(s)),a--;}}}for(;!l.done;)El(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 ha(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),true):false}function El(e,t,n,r,o){if(ha(e,t,r,n(r,o)))e.updateValue(r,o);else {let i=e.create(r,o);e.attach(r,i);}}function Cl(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 Mo=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return false;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),true}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n);}else this.kvMap.set(t,n);}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n);}}};function LD(e,t,n,r,o,i,s,a){Je$1(`NgControlFlow`);let c=D(),u=k$1();return ir(c,u,e,t,n,r,o,De$1(u.consts,i),256,s,a),tc}function tc(e,t,n,r,o,i,s,a){Je$1(`NgControlFlow`);let c=D(),u=k$1();return ir(c,u,e,t,n,r,o,De$1(u.consts,i),512,s,a),tc}function PD(e,t){Je$1(`NgControlFlow`);let n=D(),r=Ve$1(),o=n[r]!==le$1?n[r]:-1,i=o!==-1?bo(n,x$1+o):void 0,s=0;if(oe$1(n,r,e)){let a=v(null);try{if(i!==void 0&&qd(i,s),e!==-1){let c=x$1+e,u=bo(n,c),l=Da(n[y],c),d=Yd(u,l,n);dr(u,lr(n,l,t,{dehydratedView:d}),s,gn$2(l,d));}}finally{v(a);}}else if(i!==void 0){let a=Wd(i,s);a!==void 0&&(a[B$1]=t);}}var ga=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r;}get $count(){return this.lContainer.length-L$2}};function jD(e){return e}function BD(e,t){return t}var ma=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r;}};function VD(e,t,n,r,o,i,s,a,c,u,l,d,p){Je$1(`NgControlFlow`);let f=D(),h=k$1(),I=c!==void 0,S=D(),de=new ma(I,s);S[x$1+e]=de,ir(f,h,e+1,t,n,r,o,De$1(h.consts,i),256);}var ya=class extends pa{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$2}at(t){return this.getLView(t)[B$1].$implicit}attach(t,n){let r=n[Nt$2];this.needsIndexUpdate||=t!==this.length,dr(this.lContainer,n,t,gn$2(this.templateTNode,r)),$D(this.lContainer,t);}detach(t){return this.needsIndexUpdate||=t!==this.length-1,UD(this.lContainer,t),zD(this.lContainer,t)}create(t,n){let r=_o(this.lContainer,this.templateTNode.tView.ssrId);return lr(this.hostLView,this.templateTNode,new ga(this.lContainer,n,t),{dehydratedView:r})}destroy(t){Bo(t[y],t);}updateValue(t,n){this.getLView(t)[B$1].$implicit=n;}reset(){this.needsIndexUpdate=false;}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[B$1].$index=t;}getLView(t){return GD(this.lContainer,t)}};function HD(e){let t=v(null),n=He$1();try{let r=D(),o=r[y],i=r[n],s=n+1,a=bo(r,s);if(i.liveCollection===void 0)i.liveCollection=new ya(a,r,Da(o,s));else i.liveCollection.reset();let c=i.liveCollection;if(FD(c,e,i.trackByFn,t),c.updateIndexes(),i.hasEmptyBlock){let u=Ve$1(),l=c.length===0;if(oe$1(r,u,l)){let d=n+2,p=bo(r,d);if(l){let f=Da(o,d),h=Yd(p,f,r);dr(p,lr(r,f,void 0,{dehydratedView:h}),0,gn$2(f,h));}else o.firstUpdatePass&&Ay(p),qd(p,0);}}}finally{v(t);}}function bo(e,t){return e[t]}function $D(e,t){if(e.length<=L$2)return;let r=e[L$2+t],o=r?r[Pe$2]:void 0;if(r&&o&&o.detachedLeaveAnimationFns&&o.detachedLeaveAnimationFns.length>0){let i=r[We$2];Lm(i,o),ht$1.delete(r[Le]),o.detachedLeaveAnimationFns=void 0;}}function UD(e,t){if(e.length<=L$2)return;let r=e[L$2+t],o=r?r[Pe$2]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[]);}function zD(e,t){return nr(e,t)}function GD(e,t){return Wd(e,t)}function Da(e,t){return $n$2(e,t)}function Mf(e,t,n){let r=D();if(oe$1(r,Ve$1(),t)){k$1();xd(un$2(),r,e,t,r[A$1],n);}return Mf}function va(e,t,n,r,o){zo(t,e,n,o?`class`:`style`,r);}function nc(e,t,n,r){let o=D(),i=o[y],s=e+x$1,a=i.firstCreatePass?za(s,o,2,t,Ha,Xr(),n,r):i.data[s];if($o(a,o,e,t,Nf),sn$2(a)){let c=o[y];Ho(c,o,a),Sa(c,a,o);}return r!=null&&Cn$2(o,a),nc}function rc(){let e=k$1(),n=Uo(q());return e.firstCreatePass&&Ga(e,n),fs(n)&&ps(),ls(),n.classesWithoutHost!=null&&mg(n)&&va(e,n,D(),n.classesWithoutHost,true),n.stylesWithoutHost!=null&&yg(n)&&va(e,n,D(),n.stylesWithoutHost,false),rc}function bf(e,t,n,r){return nc(e,t,n,r),rc(),bf}function Yo(e,t,n,r){let o=D(),i=o[y],s=e+x$1,a=i.firstCreatePass?ef(s,i,2,t,n,r):i.data[s];return $o(a,o,e,t,Nf),r!=null&&Cn$2(o,a),Yo}function Qo(){return fs(Uo(q()))&&ps(),ls(),Qo}function oc(e,t,n,r){return Yo(e,t,n,r),Qo(),oc}var Nf=(e,t,n,r,o)=>(qn$2(true),ld(t[A$1],r,Lu()));function ic(e,t,n){let r=D(),o=r[y],i=e+x$1,s=o.firstCreatePass?za(i,r,8,`ng-container`,Ha,Xr(),t,n):o.data[i];if($o(s,r,e,`ng-container`,Of),sn$2(s)){let a=r[y];Ho(a,r,s),Sa(a,s,r);}return n!=null&&Cn$2(r,s),ic}function Ko(){let e=k$1(),n=Uo(q());return e.firstCreatePass&&Ga(e,n),Ko}function Af(e,t,n){return ic(e,t,n),Ko(),Af}function sc(e,t,n){let r=D(),o=r[y],i=e+x$1,s=o.firstCreatePass?ef(i,o,8,`ng-container`,t,n):o.data[i];return $o(s,r,e,`ng-container`,Of),n!=null&&Cn$2(r,s),sc}function Rf(){Uo(q());return Ko}function xf(e,t,n){return sc(e,t,n),Rf(),xf}var Of=(e,t,n,r,o)=>(qn$2(true),um(t[A$1],``));function WD(){return D()}function kf(e,t,n){let r=D();if(oe$1(r,Ve$1(),t)){k$1();Od(un$2(),r,e,t,r[A$1],n);}return kf}var Kn$2=void 0;function qD(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,``).length;return t===1&&n===0?1:5}var ZD=[`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`]],Kn$2,[[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]],Kn$2,[[`B`,`A`],[`BC`,`AD`],[`Before Christ`,`Anno Domini`]],0,[6,0],[`M/d/yy`,`MMM d, y`,`MMMM d, y`,`EEEE, MMMM d, y`],[`h:mm a`,`h:mm:ss a`,`h:mm:ss a z`,`h:mm:ss a zzzz`],[`{1}, {0}`,Kn$2,Kn$2,Kn$2],[`.`,`,`,`;`,`%`,`+`,`-`,`E`,`×`,`‰`,`∞`,`NaN`,`:`],[`#,##0.###`,`#,##0%`,`¤#,##0.00`,`#E0`],`USD`,`$`,`US Dollar`,{},`ltr`,qD],Os={};function ie$1(e){let t=YD(e),n=Il(t);if(n)return n;let r=t.split(`-`)[0];if(n=Il(r),n)return n;if(r===`en`)return ZD;throw new m(701,false)}function Il(e){return e in Os||(Os[e]=pe$2.ng&&pe$2.ng.common&&pe$2.ng.common.locales&&pe$2.ng.common.locales[e]),Os[e]}var P$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})(P$1||{});function YD(e){return e.toLowerCase().replace(/_/g,`-`)}var hr=`en-US`;function Ff(e){typeof e==`string`&&e.toLowerCase().replace(/_/g,`-`);}function Lf(e,t,n){let r=D(),o=k$1(),i=q();return jf(o,r,r[A$1],i,e,t,n),Lf}function Pf(e,t,n){let r=D(),o=k$1(),i=q();return (i.type&3||n)&&nf(i,o,r,n,r[A$1],e,t,go$1(i,r,t)),Pf}function jf(e,t,n,r,o,i,s){let a=true,c=null;if((r.type&3||s)&&(c??=go$1(r,t,i),nf(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??=go$1(r,t,i),hl(r,t,p,f,o,c);}if(u&&u.length)for(let d of u)c??=go$1(r,t,i),hl(r,t,d,o,o,c);}}function KD(e=1){return Ou(e)}function JD(e,t){let n=null,r=Cm(e);for(let o=0;o<t.length;o++){let i=t[o];if(i===`*`){n=o;continue}if(r===null?md(e,i,true):_m(r,i))return o}return n}function Bf(e){let t=D()[ne$1][te];if(!t.projection){let r=t.projection=su(e?e.length:1,null),o=r.slice(),i=t.child;for(;i!==null;){if(i.type!==128){let s=e?JD(i,e):0;s!==null&&(o[s]?o[s].projectionNext=i:r[s]=i,o[s]=i);}i=i.next;}}}function Vf(e,t=0,n,r,o,i){let s=D(),a=k$1(),c=null;let u=Gt$1(a,x$1+e,16,null,null);u.projection===null&&(u.projection=t),ms();let d=!s[Nt$2]||ds();s[ne$1][te].projection[u.projection]===null&&c!==null?XD(s,a,c):d&&!Oo(u)&&Ym(a,s,u);}function XD(e,t,n){let r=x$1+n,o=t.data[r],i=e[r],s=_o(i,o.tView.ssrId);dr(i,lr(e,o,void 0,{dehydratedView:s}),0,gn$2(o,s));}function ac(e,t,n){return uf(e,t,n),ac}function Hf(e){let t=D(),n=k$1(),r=to$1();Wn$2(r+1);let o=Za(n,r);if(e.dirty&&gu(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else {let i=lf(t,r);e.reset(i,Gl),e.notifyOnChanges();}return true}return false}function $f(){return qa(D(),to$1())}function Uf(e,t,n,r){return gD(e,uf(t,n,r)),Uf}function ev(e=1){Wn$2(to$1()+e);}function tv(e){return Un$2(ys(),x$1+e)}function uo$1(e,t){return e<<17|t<<2}function $t$1(e){return e>>17&32767}function nv(e){return (e&2)==2}function rv(e,t){return e&131071|t<<17}function Ea(e){return e|2}function yn$2(e){return (e&131068)>>2}function ks(e,t){return e&-131069|t<<2}function ov(e){return (e&1)===1}function Ca(e){return e|1}function iv(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=$t$1(s),c=yn$2(s);e[r]=n;let u=false,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||en$1(d,l)>0)&&(u=true);}else l=n;if(o)if(c!==0){let p=$t$1(e[a+1]);e[r+1]=uo$1(p,a),p!==0&&(e[p+1]=ks(e[p+1],r)),e[a+1]=rv(e[a+1],r);}else e[r+1]=uo$1(a,0),a!==0&&(e[a+1]=ks(e[a+1],r)),a=r;else e[r+1]=uo$1(c,0),a===0?a=r:e[c+1]=ks(e[c+1],r),c=r;u&&(e[r+1]=Ea(e[r+1])),wl(e,l,r,true),wl(e,l,r,false),sv(t,l,e,r,i),s=uo$1(a,c),i?t.classBindings=s:t.styleBindings=s;}function sv(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t==`string`&&en$1(i,t)>=0&&(n[r+1]=Ca(n[r+1]));}function wl(e,t,n,r){let o=e[n+1],i=t===null,s=r?$t$1(o):yn$2(o),a=false;for(;s!==0&&(a===false||i);){let c=e[s],u=e[s+1];av(c,t)&&(a=true,e[s+1]=r?Ca(u):Ea(u)),s=r?$t$1(u):yn$2(u);}a&&(e[n+1]=r?Ea(o):Ca(o));}function av(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?true:Array.isArray(e)&&typeof t==`string`?en$1(e,t)>=0:false}var W$1={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function zf(e){return e.substring(W$1.key,W$1.keyEnd)}function cv(e){return e.substring(W$1.value,W$1.valueEnd)}function uv(e){return qf(e),Gf(e,Dn$2(e,0,W$1.textEnd))}function Gf(e,t){let n=W$1.textEnd;return n===t?-1:(t=W$1.keyEnd=dv(e,W$1.key=t,n),Dn$2(e,t,n))}function lv(e){return qf(e),Wf(e,Dn$2(e,0,W$1.textEnd))}function Wf(e,t){let n=W$1.textEnd,r=W$1.key=Dn$2(e,t,n);return n===r?-1:(r=W$1.keyEnd=fv(e,r,n),r=_l(e,r,n),r=W$1.value=Dn$2(e,r,n),r=W$1.valueEnd=pv(e,r,n),_l(e,r,n))}function qf(e){W$1.key=0,W$1.keyEnd=0,W$1.value=0,W$1.valueEnd=0,W$1.textEnd=e.length;}function Dn$2(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function dv(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}function fv(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 _l(e,t,n,r){return t=Dn$2(e,t,n),t<n&&t++,t}function pv(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=Tl(e,c,s,n):t===s-4&&i===85&&o===82&&r===76&&c===40?a=s=Tl(e,41,s,n):c>32&&(a=s),i=o,o=r,r=c&-33;}return a}function Tl(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 cc(e,t,n){return Zf(e,t,n,false),cc}function uc(e,t){return Zf(e,t,null,true),uc}function hv(e){Yf(Jf,gv,e,false);}function gv(e,t){for(let n=lv(t);n>=0;n=Wf(t,n))Jf(e,zf(t),cv(t));}function mv(e){Yf(wv,yv,e,true);}function yv(e,t){for(let n=uv(t);n>=0;n=Gf(t,n))jn$2(e,zf(t),true);}function Zf(e,t,n,r){let o=D(),i=k$1(),s=vs(2);if(i.firstUpdatePass&&Kf(i,e,s,r),t!==le$1&&oe$1(o,s,t)){let a=i.data[He$1()];Xf(i,a,o,o[A$1],e,o[s+1]=Tv(t,n),r,s);}}function Yf(e,t,n,r){let o=k$1(),i=vs(2);o.firstUpdatePass&&Kf(o,null,i,r);let s=D();if(n!==le$1&&oe$1(s,i,n)){let a=o.data[He$1()];if(ep(a,r)&&!Qf(o,i)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(n=Vr(c,n||``)),va(o,a,s,n,r);}else _v(o,a,s,s[A$1],s[i+1],s[i+1]=Iv(e,t,n),r,i);}}function Qf(e,t){return t>=e.expandoStartIndex}function Kf(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[He$1()],s=Qf(e,n);ep(i,r)&&t===null&&!s&&(t=false),t=Dv(o,i,t,r),iv(o,i,t,n,s,r);}}function Dv(e,t,n,r){let o=Nu(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Fs(null,e,t,n,r),n=sr(n,t.attrs,r),i=null);else {let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Fs(o,e,t,n,r),i===null){let c=vv(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Fs(null,e,t,c[1],r),c=sr(c,t.attrs,r),Ev(e,t,r,c));}else i=Cv(e,t,r);}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function vv(e,t,n){let r=n?t.classBindings:t.styleBindings;if(yn$2(r)!==0)return e[$t$1(r)]}function Ev(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[$t$1(o)]=r;}function Cv(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=sr(r,s,n);}return sr(r,t.attrs,n)}function Fs(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=sr(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function sr(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]),jn$2(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=ve$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 Jf(e,t,n){jn$2(e,t,ve$1(n));}function wv(e,t,n){let r=String(t);r!==``&&!r.includes(` `)&&jn$2(e,r,n);}function _v(e,t,n,r,o,i,s,a){o===le$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,I;l===d?(c+=2,u+=2,p!==f&&(h=d,I=f)):d===null||l!==null&&l<d?(c+=2,h=l):(u+=2,h=d,I=f),h!==null&&Xf(e,t,n,r,h,I,s,a),l=c<o.length?o[c]:null,d=u<i.length?i[u]:null;}}function Xf(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,u=c[a+1];if(!No(ov(u)?Sl(c,t,n,o,yn$2(u),s):void 0)){No(i)||nv(u)&&(i=Sl(c,null,n,o,a,s));Km(r,s,is(He$1(),n),o,i);}}function Sl(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===le$1&&(p=d?Q:void 0);let f=d?Wr(p,r):l===r?p:void 0;if(u&&!No(f)&&(f=Wr(c,r)),No(f)&&(a=f,s))return a;let h=e[o+1];o=s?$t$1(h):yn$2(h);}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=Wr(c,r));}return a}function No(e){return e!==void 0}function Tv(e,t){return e==null||e===``||(typeof t==`string`?e=e+t:typeof e==`object`&&(e=Br(ve$1(e)))),e}function ep(e,t){return (e.flags&(t?8:16))!==0}function Sv(e,t=``){let n=D(),r=k$1(),o=e+x$1,i=r.firstCreatePass?Gt$1(r,o,1,t,null):r.data[o],s=Mv(r,n,i,t);n[o]=s,oo$1()&&Ba(r,n,s,i),Lt$2(i,false);}var Mv=(e,t,n,r)=>(qn$2(true),am(t[A$1],r));function tp(e,t,n,r=``){return oe$1(e,Ve$1(),n)?t+Xt$1(n)+r:le$1}function np(e){return lc(``,e),np}function lc(e,t,n){let r=D(),o=tp(r,e,t,n);return o!==le$1&&bv(r,He$1(),o),lc}function bv(e,t,n){let r=is(t,e);cm(e[A$1],r,n);}function rp(e,t,n){Ka(t)&&(t=t());let r=D();if(oe$1(r,Ve$1(),t)){k$1();xd(un$2(),r,e,t,r[A$1],n);}return rp}function Nv(e,t){let n=Ka(e);return n&&e.set(t),n}function op(e,t){let n=D(),r=k$1(),o=q();return jf(r,n,n[A$1],o,e,t),op}var ip={};function sp(e){Je$1(`NgLet`);let t=k$1(),n=D(),r=e+x$1;return Lt$2(Gt$1(t,r,128,null,null),false),zn$2(t,n,r,ip),sp}function Av(e){return zn$2(k$1(),D(),He$1(),e),e}function Rv(e){let n=Un$2(ys(),x$1+e);if(n===ip)throw new m(314,false);return n}function xv(e){return oe$1(D(),Ve$1(),e)?Xt$1(e):le$1}function Ov(e,t,n=``){return tp(D(),e,t,n)}function Ml(e,t,n){let r=k$1();r.firstCreatePass&&ap(t,r.data,r.blueprint,_e$2(e),n);}function ap(e,t,n,r,o){if(e=z(e),Array.isArray(e))for(let i=0;i<e.length;i++)ap(e[i],t,n,r,o);else {let i=k$1(),s=D(),a=q(),c=_t$2(e)?e:z(e.provide),u=Xi(e),l=a.providerIndexes&1048575,d=a.directiveStart,p=a.providerIndexes>>20;if(_t$2(e)||!e.multi){let f=new Vt$1(u,o,K,null),h=Ps(c,t,l+p,d);h===-1?(Bs(Eo(a,s),i,c),Ls(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=Ps(c,t,l+p,d),h=Ps(c,t,l,l+p),I=f>=0&&n[f],S=h>=0&&n[h];if(!I){Bs(Eo(a,s),i,c);let N=Lv(kv,n.length,o,r,u);S&&(n[h].providerFactory=N),Ls(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,n.push(N),s.push(N);}else {let N=cp(n[f],u,r);Ls(i,e,f>-1?f:h,N);}r&&S&&n[h].componentProviders++;}}}function Ls(e,t,n,r){let o=_t$2(t),i=du(t);if(o||i){let c=(i?z(t.useClass):t).prototype.ngOnDestroy;if(c){let u=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let l=u.indexOf(n);l===-1?u.push(n,[r,c]):u[l+1].push(r,c);}else u.push(n,c);}}}function cp(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Ps(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return -1}function kv(e,t,n,r,o){return Ia(this.multi,[])}function Ia(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r());}return t}function Lv(e,t,n,r,o,i){let s=new Vt$1(e,n,K,null);return s.multi=[],s.index=t,s.componentProviders=0,cp(s,o,r&&true),s}function up(e,t){return n=>{n.providersResolver=(r,o)=>Ml(r,o?o(e):e,false);}}function Pv(e,t,n){return dp(D(),Gn$2(),e,t,n)}function jv(e,t,n,r){return fp(D(),Gn$2(),e,t,n,r)}function lp(e,t){let n=e[t];return n===le$1?void 0:n}function dp(e,t,n,r,o,i){let s=t+n;return oe$1(e,s,o)?tf(e,s+1,i?r.call(i,o):r(o)):lp(e,s+1)}function fp(e,t,n,r,o,i,s){let a=t+n;return zy(e,a,o,i)?tf(e,a+2,s?r.call(s,o,i):r(o,i)):lp(e,a+2)}function Bv(e,t){let n=k$1(),r,o=e+x$1;n.firstCreatePass?(r=Vv(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=st(r.type)),a=X(K);try{let c=vo$1(!1),u=i();return vo$1(c),zn$2(n,D(),o,u),u}finally{X(a);}}function Vv(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function Hv(e,t,n){let r=e+x$1,o=D(),i=Un$2(o,r);return pp(o,r)?dp(o,Gn$2(),t,i.transform,n,i):i.transform(n)}function $v(e,t,n,r){let o=e+x$1,i=D(),s=Un$2(i,o);return pp(i,o)?fp(i,Gn$2(),t,s.transform,n,r,s):s.transform(n,r)}function pp(e,t){return e[y].data[t].pure}function Uv(e,t){return Go(e,t)}var hp=(()=>{class e{applicationErrorHandler=g(Pt$2);appRef=g(mt$2);taskService=g(ln$2);ngZone=g(ee$1);zonelessEnabled=g(Qn$2);tracing=g(zt$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(kn$2):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(g(Ts,{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?Hu:Is;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(kn$2+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick();},void 0,this.schedulerTickApplyArgs);}catch(r){this.applicationErrorHandler(r);}finally{this.taskService.remove(n),this.cleanup();}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup();}cleanup(){if(this.runningTick=false,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n);}}static ɵfac=function(r){return new(r||e)};static ɵprov=C({token:e,factory:e.ɵfac,providedIn:`root`})}return e})();function zv(){return Je$1(`NgZoneless`),qr([...dc(),[]])}function dc(){return [{provide:ut$3,useExisting:hp},{provide:ee$1,useClass:Fn$2},{provide:Qn$2,useValue:true}]}function Gv(){return typeof $localize<`u`&&$localize.locale||hr}var _n$2=new w$1(``,{factory:()=>g(_n$2,{optional:true,skipSelf:true})||Gv()});var gr=class{destroyed=false;listeners=null;errorHandler=g(fe$2,{optional:true});destroyRef=g(qe);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(St$1(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 Wv(e,t){return Nn$2(e)}var qv=e=>e;function Zv(e,t){if(typeof e==`function`)return gp(bi(e,qv,t?.equal));else return gp(bi(e.source,e.computation,e.equal),e.debugName)}function gp(e,t){let n=e[j$1],r=e;return r.set=o=>qc(n,o),r.update=o=>Zc(n,o),r.asReadonly=Zn$2.bind(e),r}var Xo=Symbol(`InputSignalNode#UNSET`),Ip=s(r({},Ar),{transformFn:void 0,applyValueToInputSignal(e,t){it$2(e,t);}});function wp(e,t){let n=Object.create(Ip);n.value=e,n.transformFn=t?.transform;function r(){if(rt(n),n.value===Xo)throw new m(-950,null);return n.value}return r[j$1]=n,r}function TN(e){return new gr}function mp(e,t){return wp(e,t)}function uE(e){return wp(Xo,e)}var SN=(mp.required=uE,mp);function yp(e,t){return ff()}function lE(e,t){return pf()}var MN=(yp.required=lE,yp);function _p(e,t){let n=Object.create(Ip),r=new gr;n.value=e;function o(){return rt(n),Dp(n.value),n.value}return o[j$1]=n,o.asReadonly=Zn$2.bind(o),o.set=i=>{n.equal(n.value,i)||(it$2(n,i),r.emit(i));},o.update=i=>{Dp(n.value),o.set(i(n.value));},o.subscribe=r.subscribe.bind(r),o.destroyRef=r.destroyRef,o}function Dp(e){if(e===Xo)throw new m(952,false)}function vp(e,t){return _p(e)}function dE(e){return _p(Xo)}var bN=(vp.required=dE,vp);var fc=new w$1(``),fE=new w$1(``);function mr(e){return !e.moduleRef}function pE(e){let t=mr(e)?e.r3Injector:e.moduleRef.injector,n=t.get(ee$1);return n.run(()=>{mr(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Pt$2),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r});}),mr(e)){let i=()=>t.destroy(),s=e.platformInjector.get(fc);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i);});}else {let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(fc);s.add(i),e.moduleRef.onDestroy(()=>{Xn$2(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i);});}return gE(r,n,()=>{let i=t.get(ln$2),s=i.add(),a=t.get(ec);return a.runInitializers(),a.donePromise.then(()=>{if(Ff(t.get(_n$2,hr)||hr),!t.get(fE,!0))return mr(e)?t.get(mt$2):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(mr(e)){let l=t.get(mt$2);return e.rootComponent!==void 0&&l.bootstrap(e.rootComponent),l}else return hE?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s);})})})}var hE;function gE(e,t,n){try{let r=n();return Zo(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var Jo=null;function mE(e=[],t){return Z.create({name:t,providers:[{provide:Vn$2,useValue:`platform`},{provide:fc,useValue:new Set([()=>Jo=null])},...e]})}function yE(e=[]){if(Jo)return Jo;let t=mE(e);return Jo=t,wf(),DE(t),t}function DE(e){let t=e.get(Ro$1,null);Zr(e,()=>{t?.forEach(n=>n());});}var Tp=(()=>{class e{static __NG_ELEMENT_ID__=EE}return e})();function EE(e){return CE(q(),D(),(e&16)===16)}function CE(e,t,n){if(Be$1(e)&&!n){let r=ue$1(e.index,t);return new gt$3(r,r)}else if(e.type&175){let r=t[ne$1];return new gt$3(r,t)}return null}var pc=class{supports(t){return t instanceof Map||Wa(t)}create(){return new hc}},hc=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||Wa(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 gc(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));}},gc=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(t){this.key=t;}};function Ep(){return new mc([new pc])}var mc=(()=>{class e{static ɵprov=C({token:e,providedIn:`root`,factory:Ep});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||Ep())}}}find(n){let r=this.factories.find(o=>o.supports(n));if(r)return r;throw new m(901,false)}}return e})();function Sp(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:o}=e;b$1(M$2.BootstrapApplicationStart);try{let i=o?.injector??yE(r);return pE({r3Injector:new or({providers:[dc(),Uu,...n||[]],parent:i,debugName:``,runEnvironmentInitializers:!1}).injector,platformInjector:i,rootComponent:t})}catch(i){return Promise.reject(i)}finally{b$1(M$2.BootstrapApplicationEnd);}}function IE(e){return typeof e==`boolean`?e:e!=null&&e!==`false`}function AN(e,t=NaN){return !isNaN(parseFloat(e))&&!isNaN(Number(e))?Number(e):t}function Mp(e,t){let n=lt$1(e),r=t.elementInjector||nn$1();return new mn$2(n).create(r,t.projectableNodes,t.hostElement,t.environmentInjector,t.directives,t.bindings)}var bp=null;function Xe$2(){return bp}function yc(e){bp??=e;}var yr=class{},ei$1=(()=>{class e{historyGo(n){throw new Error(``)}static ɵfac=function(r){return new(r||e)};static ɵprov=C({token:e,factory:()=>g(Np),providedIn:`platform`})}return e})();var Np=(()=>{class e extends ei$1{_location;_history;_doc=g(V$1);constructor(){super(),this._location=window.location,this._history=window.history;}getBaseHrefFromDOM(){return Xe$2().getBaseHref(this._doc)}onPopState(n){let r=Xe$2().getGlobalEventTarget(this._doc,`window`);return r.addEventListener(`popstate`,n,false),()=>r.removeEventListener(`popstate`,n)}onHashChange(n){let r=Xe$2().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 xp(e,t){return e?t?e.endsWith(`/`)?t.startsWith(`/`)?e+t.slice(1):e+t:t.startsWith(`/`)?e+t:`${e}/${t}`:e:t}function Ap(e){let t=e.search(/#|\?|$/);return e[t-1]===`/`?e.slice(0,t-1)+e.slice(t):e}function yt$3(e){return e&&e[0]!==`?`?`?${e}`:e}var ti$1=(()=>{class e{historyGo(n){throw new Error(``)}static ɵfac=function(r){return new(r||e)};static ɵprov=C({token:e,factory:()=>g(_E),providedIn:`root`})}return e})(),wE=new w$1(``),_E=(()=>{class e extends ti$1{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??g(V$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 xp(this._baseHref,n)}path(n=false){let r=this._platformLocation.pathname+yt$3(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+yt$3(i));this._platformLocation.pushState(n,r,s);}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+yt$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(ei$1),T$1(wE,8))};static ɵprov=C({token:e,factory:e.ɵfac,providedIn:`root`})}return e})();var Op=(()=>{class e{_subject=new U;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;this._basePath=ME(Ap(Rp(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+yt$3(r))}normalize(n){return e.stripTrailingSlash(SE(this._basePath,Rp(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+yt$3(r)),o);}replaceState(n,r=``,o=null){this._locationStrategy.replaceState(o,``,n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+yt$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=yt$3;static joinWithSlash=xp;static stripTrailingSlash=Ap;static ɵfac=function(r){return new(r||e)(T$1(ti$1))};static ɵprov=C({token:e,factory:()=>TE(),providedIn:`root`})}return e})();function TE(){return new Op(T$1(ti$1))}function SE(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===``||[`/`,`;`,`?`,`#`].includes(n[0])?n:t}function Rp(e){return e.replace(/\/index.html$/,``)}function ME(e){if(new RegExp(`^(https?:)?//`).test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var _c=(function(e){return e[e.Decimal=0]=`Decimal`,e[e.Percent=1]=`Percent`,e[e.Currency=2]=`Currency`,e[e.Scientific=3]=`Scientific`,e})(_c||{});var J=(function(e){return e[e.Format=0]=`Format`,e[e.Standalone=1]=`Standalone`,e})(J||{}),O$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})(O$1||{}),se$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})(se$1||{}),ae$1={Decimal:0,Group:1,MinusSign:5,Exponential:6,Infinity:9,CurrencyDecimal:12,CurrencyGroup:13};function Pp(e){return ie$1(e)[P$1.LocaleId]}function jp(e,t,n){let r=ie$1(e);return Ee$1(Ee$1([r[P$1.DayPeriodsFormat],r[P$1.DayPeriodsStandalone]],t),n)}function Bp(e,t,n){let r=ie$1(e);return Ee$1(Ee$1([r[P$1.DaysFormat],r[P$1.DaysStandalone]],t),n)}function Vp(e,t,n){let r=ie$1(e);return Ee$1(Ee$1([r[P$1.MonthsFormat],r[P$1.MonthsStandalone]],t),n)}function Hp(e,t){let r=ie$1(e)[P$1.Eras];return Ee$1(r,t)}function Dr(e,t){return Ee$1(ie$1(e)[P$1.DateFormat],t)}function vr(e,t){return Ee$1(ie$1(e)[P$1.TimeFormat],t)}function Er(e,t){let r=ie$1(e)[P$1.DateTimeFormat];return Ee$1(r,t)}function Ue$1(e,t){let n=ie$1(e),r=n[P$1.NumberSymbols][t];if(typeof r>`u`){if(t===ae$1.CurrencyDecimal)return n[P$1.NumberSymbols][ae$1.Decimal];if(t===ae$1.CurrencyGroup)return n[P$1.NumberSymbols][ae$1.Group]}return r}function $p(e,t){return ie$1(e)[P$1.NumberFormats][t]}function Up(e){if(!e[P$1.ExtraData])throw new m(2303,false)}function zp(e){let t=ie$1(e);return Up(t),(t[P$1.ExtraData][2]||[]).map(r=>typeof r==`string`?Dc(r):[Dc(r[0]),Dc(r[1])])}function Gp(e,t,n){let r=ie$1(e);Up(r);return Ee$1(Ee$1([r[P$1.ExtraData][0],r[P$1.ExtraData][1]],t)||[],n)||[]}function Ee$1(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<`u`)return e[n];throw new m(2304,false)}function Dc(e){let[t,n]=e.split(`:`);return {hours:+t,minutes:+n}}var NE=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ni$1={},AE=/((?:[^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 Wp(e,t,n,r){let o=BE(e);t=et$2(n,t)||t;let s=[],a;for(;t;)if(a=AE.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=Zp(r,c),o=jE(o,r));let u=``;return s.forEach(l=>{let d=LE(l);u+=d?d(o,n,c):l===`''`?`'`:l.replace(/(^'|'$)/g,``).replace(/''/g,`'`);}),u}function ai$1(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function et$2(e,t){let n=Pp(e);if(ni$1[n]??={},ni$1[n][t])return ni$1[n][t];let r=``;switch(t){case `shortDate`:r=Dr(e,se$1.Short);break;case `mediumDate`:r=Dr(e,se$1.Medium);break;case `longDate`:r=Dr(e,se$1.Long);break;case `fullDate`:r=Dr(e,se$1.Full);break;case `shortTime`:r=vr(e,se$1.Short);break;case `mediumTime`:r=vr(e,se$1.Medium);break;case `longTime`:r=vr(e,se$1.Long);break;case `fullTime`:r=vr(e,se$1.Full);break;case `short`:let o=et$2(e,`shortTime`),i=et$2(e,`shortDate`);r=ri$1(Er(e,se$1.Short),[o,i]);break;case `medium`:let s=et$2(e,`mediumTime`),a=et$2(e,`mediumDate`);r=ri$1(Er(e,se$1.Medium),[s,a]);break;case `long`:let c=et$2(e,`longTime`),u=et$2(e,`longDate`);r=ri$1(Er(e,se$1.Long),[c,u]);break;case `full`:let l=et$2(e,`fullTime`),d=et$2(e,`fullDate`);r=ri$1(Er(e,se$1.Full),[l,d]);break}return r&&(ni$1[n][t]=r),r}function ri$1(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return t!=null&&r in t?t[r]:n})),e}function Re$1(e,t,n=`-`,r,o){let i=``;(e<0||o&&e<=0)&&(o?e=-e+1:(e=-e,i=n));let s=String(e);for(;s.length<t;)s=`0`+s;return r&&(s=s.slice(s.length-t)),i+s}function RE(e,t){return Re$1(e,3).substring(0,t)}function $(e,t,n=0,r=false,o=false){return function(i,s){let a=xE(e,i);if((n>0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return RE(a,t);let c=Ue$1(s,ae$1.MinusSign);return Re$1(a,t,c,r,o)}}function xE(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 F$1(e,t,n=J.Format,r=false){return function(o,i){return OE(o,i,e,t,n,r)}}function OE(e,t,n,r,o,i){switch(n){case 2:return Vp(t,o,r)[e.getMonth()];case 1:return Bp(t,o,r)[e.getDay()];case 0:let s=e.getHours(),a=e.getMinutes();if(i){let u=zp(t),l=Gp(t,o,r),d=u.findIndex(p=>{if(Array.isArray(p)){let[f,h]=p,I=s>=f.hours&&a>=f.minutes,S=s<h.hours||s===h.hours&&a<h.minutes;if(f.hours<h.hours){if(I&&S)return true}else if(I||S)return true}else if(p.hours===s&&p.minutes===a)return true;return false});if(d!==-1)return l[d]}return jp(t,o,r)[s<12?0:1];case 3:return Hp(t,r)[e.getFullYear()<=0?0:1];default:throw new m(2302,false)}}function oi$1(e){return function(t,n,r){let o=-1*r,i=Ue$1(n,ae$1.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(e){case 0:return (o>=0?`+`:``)+Re$1(s,2,i)+Re$1(Math.abs(o%60),2,i);case 1:return `GMT`+(o>=0?`+`:``)+Re$1(s,1,i);case 2:return `GMT`+(o>=0?`+`:``)+Re$1(s,2,i)+`:`+Re$1(Math.abs(o%60),2,i);case 3:return r===0?`Z`:(o>=0?`+`:``)+Re$1(s,2,i)+`:`+Re$1(Math.abs(o%60),2,i);default:throw new m(2310,false)}}}var kE=0,si$1=4;function FE(e){let t=ai$1(e,kE,1).getDay();return ai$1(e,0,1+(t<=si$1?si$1:si$1+7)-t)}function qp(e){let t=e.getDay(),n=t===0?-3:si$1-t;return ai$1(e.getFullYear(),e.getMonth(),e.getDate()+n)}function vc(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=qp(n),s=FE(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5);}return Re$1(o,e,Ue$1(r,ae$1.MinusSign))}}function ii$1(e,t=false){return function(n,r){return Re$1(qp(n).getFullYear(),e,Ue$1(r,ae$1.MinusSign),t)}}var Ec={};function LE(e){if(Ec[e])return Ec[e];let t;switch(e){case `G`:case `GG`:case `GGG`:t=F$1(3,O$1.Abbreviated);break;case `GGGG`:t=F$1(3,O$1.Wide);break;case `GGGGG`:t=F$1(3,O$1.Narrow);break;case `y`:t=$(0,1,0,false,true);break;case `yy`:t=$(0,2,0,true,true);break;case `yyy`:t=$(0,3,0,false,true);break;case `yyyy`:t=$(0,4,0,false,true);break;case `Y`:t=ii$1(1);break;case `YY`:t=ii$1(2,true);break;case `YYY`:t=ii$1(3);break;case `YYYY`:t=ii$1(4);break;case `M`:case `L`:t=$(1,1,1);break;case `MM`:case `LL`:t=$(1,2,1);break;case `MMM`:t=F$1(2,O$1.Abbreviated);break;case `MMMM`:t=F$1(2,O$1.Wide);break;case `MMMMM`:t=F$1(2,O$1.Narrow);break;case `LLL`:t=F$1(2,O$1.Abbreviated,J.Standalone);break;case `LLLL`:t=F$1(2,O$1.Wide,J.Standalone);break;case `LLLLL`:t=F$1(2,O$1.Narrow,J.Standalone);break;case `w`:t=vc(1);break;case `ww`:t=vc(2);break;case `W`:t=vc(1,true);break;case `d`:t=$(2,1);break;case `dd`:t=$(2,2);break;case `c`:case `cc`:t=$(7,1);break;case `ccc`:t=F$1(1,O$1.Abbreviated,J.Standalone);break;case `cccc`:t=F$1(1,O$1.Wide,J.Standalone);break;case `ccccc`:t=F$1(1,O$1.Narrow,J.Standalone);break;case `cccccc`:t=F$1(1,O$1.Short,J.Standalone);break;case `E`:case `EE`:case `EEE`:t=F$1(1,O$1.Abbreviated);break;case `EEEE`:t=F$1(1,O$1.Wide);break;case `EEEEE`:t=F$1(1,O$1.Narrow);break;case `EEEEEE`:t=F$1(1,O$1.Short);break;case `a`:case `aa`:case `aaa`:t=F$1(0,O$1.Abbreviated);break;case `aaaa`:t=F$1(0,O$1.Wide);break;case `aaaaa`:t=F$1(0,O$1.Narrow);break;case `b`:case `bb`:case `bbb`:t=F$1(0,O$1.Abbreviated,J.Standalone,true);break;case `bbbb`:t=F$1(0,O$1.Wide,J.Standalone,true);break;case `bbbbb`:t=F$1(0,O$1.Narrow,J.Standalone,true);break;case `B`:case `BB`:case `BBB`:t=F$1(0,O$1.Abbreviated,J.Format,true);break;case `BBBB`:t=F$1(0,O$1.Wide,J.Format,true);break;case `BBBBB`:t=F$1(0,O$1.Narrow,J.Format,true);break;case `h`:t=$(3,1,-12);break;case `hh`:t=$(3,2,-12);break;case `H`:t=$(3,1);break;case `HH`:t=$(3,2);break;case `m`:t=$(4,1);break;case `mm`:t=$(4,2);break;case `s`:t=$(5,1);break;case `ss`:t=$(5,2);break;case `S`:t=$(6,1);break;case `SS`:t=$(6,2);break;case `SSS`:t=$(6,3);break;case `Z`:case `ZZ`:case `ZZZ`:t=oi$1(0);break;case `ZZZZZ`:t=oi$1(3);break;case `O`:case `OO`:case `OOO`:case `z`:case `zz`:case `zzz`:t=oi$1(1);break;case `OOOO`:case `ZZZZ`:case `zzzz`:t=oi$1(2);break;default:return null}return Ec[e]=t,t}function Zp(e,t){e=e.replace(/:/g,``);let n=Date.parse(`Jan 01, 1970 00:00:00 `+e)/6e4;return isNaN(n)?t:n}function PE(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function jE(e,t,n){let o=e.getTimezoneOffset();return PE(e,-1*(Zp(t,o)-o))}function BE(e){if(kp(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 ai$1(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(NE))return VE(r)}let t=new Date(e);if(!kp(t))throw new m(2311,false);return t}function VE(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 kp(e){return e instanceof Date&&!isNaN(e.valueOf())}var HE=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Fp=22,ci$1=`.`,Cr=`0`,$E=`;`,UE=`,`,Cc=`#`;function zE(e,t,n,r,o,i,s=false){let a=``,c=false;if(!isFinite(e))a=Ue$1(n,ae$1.Infinity);else {let u=qE(e);s&&(u=WE(u));let l=t.minInt,d=t.minFrac,p=t.maxFrac;if(i){let de=i.match(HE);if(de===null)throw new m(2306,false);let Zt=de[1],gi=de[3],Pc=de[5];Zt!=null&&(l=Ic(Zt)),gi!=null&&(d=Ic(gi)),Pc!=null?p=Ic(Pc):gi!=null&&d>p&&(p=d);}ZE(u,d,p);let f=u.digits,h=u.integerLen,I=u.exponent,S=[];for(c=f.every(de=>!de);h<l;h++)f.unshift(0);for(;h<0;h++)f.unshift(0);h>0?S=f.splice(h,f.length):(S=f,f=[0]);let N=[];for(f.length>=t.lgSize&&N.unshift(f.splice(-t.lgSize,f.length).join(``));f.length>t.gSize;)N.unshift(f.splice(-t.gSize,f.length).join(``));f.length&&N.unshift(f.join(``)),a=N.join(Ue$1(n,r)),S.length&&(a+=Ue$1(n,o)+S.join(``)),I&&(a+=Ue$1(n,ae$1.Exponential)+`+`+I);}return e<0&&!c?a=t.negPre+a+t.negSuf:a=t.posPre+a+t.posSuf,a}function Yp(e,t,n){return zE(e,GE($p(t,_c.Decimal),Ue$1(t,ae$1.MinusSign)),t,ae$1.Group,ae$1.Decimal,n)}function GE(e,t=`-`){let n={minInt:1,minFrac:0,maxFrac:0,posPre:``,posSuf:``,negPre:``,negSuf:``,gSize:0,lgSize:0},r=e.split($E),o=r[0],i=r[1],s=o.indexOf(ci$1)!==-1?o.split(ci$1):[o.substring(0,o.lastIndexOf(Cr)+1),o.substring(o.lastIndexOf(Cr)+1)],a=s[0],c=s[1]||``;n.posPre=a.substring(0,a.indexOf(Cc));for(let l=0;l<c.length;l++){let d=c.charAt(l);d===Cr?n.minFrac=n.maxFrac=l+1:d===Cc?n.maxFrac=l+1:n.posSuf+=d;}let u=a.split(UE);if(n.gSize=u[1]?u[1].length:0,n.lgSize=u[2]||u[1]?(u[2]||u[1]).length:0,i){let l=o.length-n.posPre.length-n.posSuf.length,d=i.indexOf(Cc);n.negPre=i.substring(0,d).replace(/'/g,``),n.negSuf=i.slice(d+l).replace(/'/g,``);}else n.negPre=t+n.posPre,n.negSuf=n.posSuf;return n}function WE(e){if(e.digits[0]===0)return e;let t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(t===0?e.digits.push(0,0):t===1&&e.digits.push(0),e.integerLen+=2),e}function qE(e){let t=Math.abs(e)+``,n=0,r,o,i,s,a;for((o=t.indexOf(ci$1))>-1&&(t=t.replace(ci$1,``)),(i=t.search(/e/i))>0?(o<0&&(o=i),o+=+t.slice(i+1),t=t.substring(0,i)):o<0&&(o=t.length),i=0;t.charAt(i)===Cr;i++);if(i===(a=t.length))r=[0],o=1;else {for(a--;t.charAt(a)===Cr;)a--;for(o-=i,r=[],s=0;i<=a;i++,s++)r[s]=Number(t.charAt(i));}return o>Fp&&(r=r.splice(0,Fp-1),n=o-1,o=1),{digits:r,exponent:n,integerLen:o}}function ZE(e,t,n){if(t>n)throw new m(2307,false);let r=e.digits,o=r.length-e.integerLen,i=Math.min(Math.max(t,o),n),s=i+e.integerLen,a=r[s];if(s>0){r.splice(Math.max(e.integerLen,s));for(let d=s;d<r.length;d++)r[d]=0;}else {o=Math.max(0,o),e.integerLen=1,r.length=Math.max(1,s=i+1),r[0]=0;for(let d=1;d<s;d++)r[d]=0;}if(a>=5)if(s-1<0){for(let d=0;d>s;d--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++;}else r[s-1]++;for(;o<Math.max(0,i);o++)r.push(0);let c=i!==0,u=t+e.integerLen,l=r.reduceRight(function(d,p,f,h){return p=p+d,h[f]=p<10?p:p-10,c&&(h[f]===0&&f>=u?h.pop():c=false),p>=10?1:0},0);l&&(r.unshift(l),e.integerLen++);}function Ic(e){let t=parseInt(e);if(isNaN(t))throw new m(2305,false);return t}var wc=/\s+/,Lp=[],YE=(()=>{class e{_ngEl;_renderer;initialClasses=Lp;rawClass;stateMap=new Map;constructor(n,r){this._ngEl=n,this._renderer=r;}set klass(n){this.initialClasses=n!=null?n.trim().split(wc):Lp;}set ngClass(n){this.rawClass=typeof n==`string`?n.trim().split(wc):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(wc).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)(K(be$1),K(fr))};static ɵdir=wn$2({type:e,selectors:[[``,`ngClass`,``]],inputs:{klass:[0,`class`,`klass`],ngClass:`ngClass`}})}return e})();var QE=(()=>{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:Me$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)(K(be$1),K(mc),K(fr))};static ɵdir=wn$2({type:e,selectors:[[``,`ngStyle`,``]],inputs:{ngStyle:`ngStyle`}})}return e})(),KE=(()=>{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)(K(Wt$1))};static ɵdir=wn$2({type:e,selectors:[[``,`ngTemplateOutlet`,``]],inputs:{ngTemplateOutletContext:`ngTemplateOutletContext`,ngTemplateOutlet:`ngTemplateOutlet`,ngTemplateOutletInjector:`ngTemplateOutletInjector`},features:[Ao]})}return e})();function Qp(e,t){return new m(2100,false)}var JE=`mediumDate`,Kp=new w$1(``),Jp=new w$1(``),XE=(()=>{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??JE,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return Wp(n,s,i||this.locale,a)}catch(s){throw Qp(e,s.message)}}static ɵfac=function(r){return new(r||e)(K(_n$2,16),K(Kp,24),K(Jp,24))};static ɵpipe=pr({name:`date`,type:e,pure:true})}return e})();var eC=(()=>{class e{transform(n){return JSON.stringify(n,null,2)}static ɵfac=function(r){return new(r||e)};static ɵpipe=pr({name:`json`,type:e,pure:false})}return e})();var tC=(()=>{class e{_locale;constructor(n){this._locale=n;}transform(n,r,o){if(!nC(n))return null;o||=this._locale;try{return Yp(rC(n),o,r)}catch(i){throw Qp(e,i.message)}}static ɵfac=function(r){return new(r||e)(K(_n$2,16))};static ɵpipe=pr({name:`number`,type:e,pure:true})}return e})();function nC(e){return !(e==null||e===``||e!==e)}function rC(e){if(typeof e==`string`&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if(typeof e!=`number`)throw new m(2309,false);return e}var Xp=(()=>{class e{static ɵfac=function(r){return new(r||e)};static ɵmod=In$2({type:e});static ɵinj=Mt$1({})}return e})();function Tc(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 Ir=class{};var Sc=`browser`;function eh(e){return e===Sc}var wr=class{_doc;constructor(t){this._doc=t;}manager},ui$1=(()=>{class e extends wr{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(V$1))};static ɵprov=C({token:e,factory:e.ɵfac})}return e})(),fi$1=new w$1(``),Ac=(()=>{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 ui$1)).slice().reverse();let i=n.find(s=>s instanceof ui$1);i&&this._plugins.push(i);}addEventListener(n,r,o,i){return this._findPluginFor(r).addEventListener(n,r,o,i)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new m(5101,false);return this._eventNameToPlugin.set(n,r),r}static ɵfac=function(r){return new(r||e)(T$1(fi$1),T$1(ee$1))};static ɵprov=C({token:e,factory:e.ɵfac})}return e})(),Mc=`ng-app-id`;function th(e){for(let t of e)t.remove();}function nh(e,t){let n=t.createElement(`style`);return n.textContent=e,n}function iC(e,t,n,r){let o=e.head?.querySelectorAll(`style[${Mc}="${t}"],link[${Mc}="${t}"]`);if(o)for(let i of o)i.removeAttribute(Mc),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 Nc(e,t){let n=t.createElement(`link`);return n.setAttribute(`rel`,`stylesheet`),n.setAttribute(`href`,e),n}var Rc=(()=>{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,iC(n,r,this.inline,this.external),this.hosts.add(n.head);}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,nh);r?.forEach(o=>this.addUsage(o,this.external,Nc));}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&&(th(o.elements),r.delete(n)));}ngOnDestroy(){for(let[,{elements:n}]of [...this.inline,...this.external])th(n);this.hosts.clear();}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,nh(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,Nc(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(V$1),T$1(En$2),T$1(xo,8),T$1(Ut$1))};static ɵprov=C({token:e,factory:e.ɵfac})}return e})(),bc={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`},xc=/%COMP%/g;var oh=`%COMP%`,sC=`_nghost-${oh}`,aC=`_ngcontent-${oh}`,cC=true,uC=new w$1(``,{factory:()=>cC});function lC(e){return aC.replace(xc,e)}function dC(e){return sC.replace(xc,e)}function ih(e,t){return t.map(n=>n.replace(xc,e))}var Oc=(()=>{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 _r(n,s,a,this.tracingService);}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;let o=this.getOrCreateRenderer(n,r);return o instanceof di$1?o.applyToHost(n):o instanceof Tr&&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 Se$1.Emulated:i=new di$1(c,u,r,this.appId,l,s,a,d);break;case Se$1.ShadowDom:return new li$1(c,n,r,s,a,this.nonce,d,u);case Se$1.ExperimentalIsolatedShadowDom:return new li$1(c,n,r,s,a,this.nonce,d);default:i=new Tr(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(Ac),T$1(Rc),T$1(En$2),T$1(uC),T$1(V$1),T$1(ee$1),T$1(xo),T$1(zt$2,8))};static ɵprov=C({token:e,factory:e.ɵfac})}return e})(),_r=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(bc[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(rh(t)?t.content:t).appendChild(n);}insertBefore(t,n,r){t&&(rh(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=bc[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r);}else t.setAttribute(n,r);}removeAttribute(t,n,r){if(r){let o=bc[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&(Me$1.DashCase|Me$1.Important)?t.style.setProperty(n,r,o&Me$1.Important?`important`:``):t.style[n]=r;}removeStyle(t,n,r){r&Me$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=Xe$2().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 rh(e){return e.tagName===`TEMPLATE`&&e.content!==void 0}var li$1=class li extends _r{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=ih(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=Nc(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);}},Tr=class extends _r{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?ih(c,u):u,this.styleUrls=r.getExternalStyles?.(c);}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls);}destroy(){this.removeStylesOnCompDestroy&&ht$1.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls);}},di$1=class di extends Tr{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=lC(u),this.hostAttr=dC(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 pi$1=class e extends yr{supportsDOMEvents=true;static makeCurrent(){yc(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=fC();return n==null?null:pC(n)}resetBaseElement(){Sr=null;}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Tc(document.cookie,t)}},Sr=null;function fC(){return Sr=Sr||document.head.querySelector(`base`),Sr?Sr.getAttribute(`href`):null}function pC(e){return new URL(e,document.baseURI).pathname}var hC=(()=>{class e{build(){return new XMLHttpRequest}static ɵfac=function(r){return new(r||e)};static ɵprov=C({token:e,factory:e.ɵfac})}return e})(),sh=[`alt`,`control`,`meta`,`shift`],gC={"\b":`Backspace`," ":`Tab`,"":`Delete`,"\x1B":`Escape`,Del:`Delete`,Esc:`Escape`,Left:`ArrowLeft`,Right:`ArrowRight`,Up:`ArrowUp`,Down:`ArrowDown`,Menu:`ContextMenu`,Scroll:`ScrollLock`,Win:`OS`},mC={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},ah=(()=>{class e extends wr{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(()=>Xe$2().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.`),sh.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=gC[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`),sh.forEach(s=>{if(s!==o){let a=mC[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(V$1))};static ɵprov=C({token:e,factory:e.ɵfac})}return e})();async function yC(e,t){return Sp(DC(e,t))}function DC(e,t){return {platformRef:t?.platformRef,appProviders:[...wC,...e?.providers??[]],platformProviders:IC}}function vC(){pi$1.makeCurrent();}function EC(){return new fe$2}function CC(){return Ta(document),document}var IC=[{provide:Ut$1,useValue:Sc},{provide:Ro$1,useValue:vC,multi:true},{provide:V$1,useFactory:CC}];var wC=[{provide:Vn$2,useValue:`root`},{provide:fe$2,useFactory:EC},{provide:fi$1,useClass:ui$1,multi:true},{provide:fi$1,useClass:ah,multi:true},Oc,Rc,Ac,{provide:Ye$2,useExisting:Oc},{provide:Ir,useClass:hC},[]];var _C=(()=>{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(TC),o},providedIn:`root`})}return e})(),TC=(()=>{class e extends _C{_doc;constructor(n){super(),this._doc=n;}sanitize(n,r){if(r==null)return null;switch(n){case Ne$2.NONE:return r;case Ne$2.HTML:return Qe$1(r,`HTML`)?ve$1(r):Fo(this._doc,String(r)).toString();case Ne$2.STYLE:return Qe$1(r,`Style`)?ve$1(r):r;case Ne$2.SCRIPT:if(Qe$1(r,`Script`))return ve$1(r);throw new m(5200,false);case Ne$2.URL:return Qe$1(r,`URL`)?ve$1(r):cr(String(r));case Ne$2.RESOURCE_URL:if(Qe$1(r,`ResourceURL`))return ve$1(r);throw new m(5201,false);default:throw new m(5202,false)}}bypassSecurityTrustHtml(n){return Ma(n)}bypassSecurityTrustStyle(n){return ba(n)}bypassSecurityTrustScript(n){return Na(n)}bypassSecurityTrustUrl(n){return Aa(n)}bypassSecurityTrustResourceUrl(n){return Ra(n)}static ɵfac=function(r){return new(r||e)(T$1(V$1))};static ɵprov=C({token:e,factory:e.ɵfac,providedIn:`root`})}return e})();function R0(e){return e.buttons===0||e.detail===0}function x0(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 kc;function SC(){if(kc==null){let e=typeof document<`u`?document.head:null;kc=!!(e&&(e.createShadowRoot||e.attachShadow));}return kc}function k0(e){if(SC()){let t=e.getRootNode?e.getRootNode():null;if(typeof ShadowRoot<`u`&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function F0(){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 L0(e){return e.composedPath?e.composedPath()[0]:e.target}var Fc;try{Fc=typeof Intl<`u`&&Intl.v8BreakIterator;}catch{Fc=false;}var ch=(()=>{class e{_platformId=g(Ut$1);isBrowser=this._platformId?eh(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||Fc)&&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 MC(e)?Number(e):arguments.length===2?t:0}function MC(e){return !isNaN(parseFloat(e))&&!isNaN(Number(e))}function z0(e){return e instanceof be$1?e.nativeElement:e}var hi$1=new WeakMap,Z0=(()=>{class e{_appRef;_injector=g(Z);_environmentInjector=g(re$1);load(n){let r=this._appRef=this._appRef||this._injector.get(mt$2),o=hi$1.get(r);o||(o={loaders:new Set,refs:[]},hi$1.set(r,o),r.onDestroy(()=>{hi$1.get(r)?.refs.forEach(i=>i.destroy()),hi$1.delete(r);})),o.loaders.has(n)||(o.loaders.add(n),o.refs.push(Mp(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 Q0(e){return Array.isArray(e)?e:[e]}var bC=new w$1(`cdk-dir-doc`,{providedIn:`root`,factory:()=>g(V$1)}),NC=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function AC(e){let t=e?.toLowerCase()||``;return t===`auto`&&typeof navigator<`u`&&navigator?.language?NC.test(navigator.language)?`rtl`:`ltr`:t===`rtl`?`rtl`:`ltr`}var eR=(()=>{class e{get value(){return this.valueSignal()}valueSignal=jt$1(`ltr`);change=new Ce$1;constructor(){let n=g(bC,{optional:true});if(n){let r=n.body?n.body.dir:null,o=n.documentElement?n.documentElement.dir:null;this.valueSignal.set(AC(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 qt$1;function nR(){if(qt$1==null){if(typeof document!=`object`||!document||typeof Element!=`function`||!Element)return qt$1=false,qt$1;if(document.documentElement?.style&&`scrollBehavior`in document.documentElement.style)qt$1=true;else {let e=Element.prototype.scrollTo;e?qt$1=!/\{\s*\[native code\]\s*\}/.test(e.toString()):qt$1=false;}}return qt$1}var RC=20,_R=(()=>{class e{_platform=g(ch);_listeners;_viewportSize=null;_change=new U;_document=g(V$1);constructor(){let n=g(ee$1),r=g(Ye$2).createRenderer(null,null);n.runOutsideAngular(()=>{if(this._platform.isBrowser){let o=i=>this._change.next(i);this._listeners=[r.listen(`window`,`resize`,o),r.listen(`window`,`orientationchange`,o)];}this.change().subscribe(()=>this._viewportSize=null);});}ngOnDestroy(){this._listeners?.forEach(n=>n()),this._change.complete();}getViewportSize(){this._viewportSize||this._updateViewportSize();let n={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),n}getViewportRect(){let n=this.getViewportScrollPosition(),{width:r,height:o}=this.getViewportSize();return {top:n.top,left:n.left,bottom:n.top+o,right:n.left+r,height:o,width:r}}getViewportScrollPosition(){if(!this._platform.isBrowser)return {top:0,left:0};let n=this._document,r=this._getWindow(),o=n.documentElement,i=o.getBoundingClientRect();return {top:-i.top||n.body?.scrollTop||r.scrollY||o.scrollTop||0,left:-i.left||n.body?.scrollLeft||r.scrollX||o.scrollLeft||0}}change(n=RC){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 Lc={},uh=class e{_appId=g(En$2);static _infix=`a${Math.floor(Math.random()*1e5).toString()}`;getId(t,n=false){return this._appId!==`ng`&&(t+=this._appId),Lc.hasOwnProperty(t)||(Lc[t]=0),`${t}${n?e._infix+`-`:``}${Lc[t]++}`}static ɵfac=function(n){return new(n||e)};static ɵprov=C({token:e,factory:e.ɵfac,providedIn:`root`})};
5
+
6
+ function L$1(n){let e=n.cloneNode(true),t=e.querySelectorAll(`[id]`),i=n.nodeName.toLowerCase();e.removeAttribute(`id`);for(let s=0;s<t.length;s++)t[s].removeAttribute(`id`);return i===`canvas`?pt$1(n,e):(i===`input`||i===`select`||i===`textarea`)&&_t$1(n,e),dt$1(`canvas`,n,e,pt$1),dt$1(`input, textarea, select`,n,e,_t$1),e}function dt$1(n,e,t,i){let s=e.querySelectorAll(n);if(s.length){let r=t.querySelectorAll(n);for(let o=0;o<s.length;o++)i(s[o],r[o]);}}var Ct$1=0;function _t$1(n,e){e.type!==`file`&&(e.value=n.value),e.type===`radio`&&e.name&&(e.name=`mat-clone-${e.name}-${Ct$1++}`);}function pt$1(n,e){let t=e.getContext(`2d`);if(t)try{t.drawImage(n,0,0);}catch{}}function yt$2(n){let e=n.getBoundingClientRect();return {top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height,x:e.x,y:e.y}}function Tt$1(n,e){let t=e.left<n.left,i=e.left+e.width>n.right,s=e.top<n.top,r=e.top+e.height>n.bottom;return t||i||s||r}function Rt$1(n,e,t){n.top+=e,n.bottom=n.top+n.height,n.left+=t,n.right=n.left+n.width;}var N=class{_document;positions=new Map;constructor(e){this._document=e;}clear(){this.positions.clear();}cache(e){this.clear(),this.positions.set(this._document,{scrollPosition:this.getViewportScrollPosition()}),e.forEach(t=>{this.positions.set(t,{scrollPosition:{top:t.scrollTop,left:t.scrollLeft},clientRect:yt$2(t)});});}handleScroll(e){let t=L0(e),i=this.positions.get(t);if(!i)return null;let s=i.scrollPosition,r,o;if(t===this._document){let h=this.getViewportScrollPosition();r=h.top,o=h.left;}else r=t.scrollTop,o=t.scrollLeft;let a=s.top-r,l=s.left-o;return this.positions.forEach((h,d)=>{h.clientRect&&t!==d&&t.contains(d)&&Rt$1(h.clientRect,a,l);}),s.top=r,s.left=o,{top:a,left:l}}getViewportScrollPosition(){return {top:window.scrollY,left:window.scrollX}}};function Et(n,e){let t=n.rootNodes;if(t.length===1&&t[0].nodeType===e.ELEMENT_NODE)return t[0];let i=e.createElement(`div`);return t.forEach(s=>i.appendChild(s)),i}function F(n,e,t){for(let i in e)if(e.hasOwnProperty(i)){let s=e[i];s?n.setProperty(i,s,t?.has(i)?`important`:``):n.removeProperty(i);}return n}function f(n,e){let t=e?``:`none`;F(n.style,{"touch-action":e?``:`none`,"-webkit-user-drag":e?``:`none`,"-webkit-tap-highlight-color":e?``:`transparent`,"user-select":t,"-ms-user-select":t,"-webkit-user-select":t,"-moz-user-select":t});}function gt$2(n,e,t){F(n.style,{position:e?``:`fixed`,top:e?``:`0`,opacity:e?``:`0`,left:e?``:`-999em`},t);}function ut$2(n,e){return e&&e!=`none`?n+` `+e:n}function ft$2(n,e){n.style.width=`${e.width}px`,n.style.height=`${e.height}px`,n.style.transform=P(e.left,e.top);}function P(n,e){return `translate3d(${Math.round(n)}px, ${Math.round(e)}px, 0)`}var w={capture:true},k={passive:false,capture:true},kt$1=(()=>{class n{static ɵfac=function(i){return new(i||n)};static ɵcmp=gf({type:n,selectors:[[`ng-component`]],hostAttrs:[`cdk-drag-resets-container`,``],decls:0,vars:0,template:function(i,s){},styles:[`@layer cdk-resets{.cdk-drag-preview{background:none;border:none;padding:0;color:inherit;inset:auto}}.cdk-drag-placeholder *,.cdk-drag-preview *{pointer-events:none !important}
7
+ `],encapsulation:2,changeDetection:0})}return n})(),It=(()=>{class n{_ngZone=g(ee$1);_document=g(V$1);_styleLoader=g(Z0);_renderer=g(Ye$2).createRenderer(null,null);_cleanupDocumentTouchmove;_scroll=new U;_dropInstances=new Set;_dragInstances=new Set;_activeDragInstances=jt$1([]);_globalListeners;_draggingPredicate=t=>t.isDragging();_domNodesToDirectives=null;pointerMove=new U;pointerUp=new U;constructor(){}registerDropContainer(t){this._dropInstances.has(t)||this._dropInstances.add(t);}registerDragItem(t){this._dragInstances.add(t),this._dragInstances.size===1&&this._ngZone.runOutsideAngular(()=>{this._cleanupDocumentTouchmove?.(),this._cleanupDocumentTouchmove=this._renderer.listen(this._document,`touchmove`,this._persistentTouchmoveListener,k);});}removeDropContainer(t){this._dropInstances.delete(t);}removeDragItem(t){this._dragInstances.delete(t),this.stopDragging(t),this._dragInstances.size===0&&this._cleanupDocumentTouchmove?.();}startDragging(t,i){if(!(this._activeDragInstances().indexOf(t)>-1)&&(this._styleLoader.load(kt$1),this._activeDragInstances.update(s=>[...s,t]),this._activeDragInstances().length===1)){let s=i.type.startsWith(`touch`),r=a=>this.pointerUp.next(a),o=[[`scroll`,a=>this._scroll.next(a),w],[`selectstart`,this._preventDefaultWhileDragging,k]];s?o.push([`touchend`,r,w],[`touchcancel`,r,w]):o.push([`mouseup`,r,w]),s||o.push([`mousemove`,a=>this.pointerMove.next(a),k]),this._ngZone.runOutsideAngular(()=>{this._globalListeners=o.map(([a,l,h])=>this._renderer.listen(this._document,a,l,h));});}}stopDragging(t){this._activeDragInstances.update(i=>{let s=i.indexOf(t);return s>-1?(i.splice(s,1),[...i]):i}),this._activeDragInstances().length===0&&this._clearGlobalListeners();}isDragging(t){return this._activeDragInstances().indexOf(t)>-1}scrolled(t){let i=[this._scroll];return t&&t!==this._document&&i.push(new m$1(s=>this._ngZone.runOutsideAngular(()=>{let r=this._renderer.listen(t,`scroll`,o=>{this._activeDragInstances().length&&s.next(o);},w);return ()=>{r();}}))),ve$2(...i)}registerDirectiveNode(t,i){this._domNodesToDirectives??=new WeakMap,this._domNodesToDirectives.set(t,i);}removeDirectiveNode(t){this._domNodesToDirectives?.delete(t);}getDragDirectiveForNode(t){return this._domNodesToDirectives?.get(t)||null}ngOnDestroy(){this._dragInstances.forEach(t=>this.removeDragItem(t)),this._dropInstances.forEach(t=>this.removeDropContainer(t)),this._domNodesToDirectives=null,this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete();}_preventDefaultWhileDragging=t=>{this._activeDragInstances().length>0&&t.preventDefault();};_persistentTouchmoveListener=t=>{this._activeDragInstances().length>0&&(this._activeDragInstances().some(this._draggingPredicate)&&t.preventDefault(),this.pointerMove.next(t));};_clearGlobalListeners(){this._globalListeners?.forEach(t=>t()),this._globalListeners=void 0;}static ɵfac=function(i){return new(i||n)};static ɵprov=C({token:n,factory:n.ɵfac,providedIn:`root`})}return n})();function mt$1(n){let e=n.toLowerCase().indexOf(`ms`)>-1?1:1e3;return parseFloat(n)*e}function Ot(n){let e=getComputedStyle(n),t=O(e,`transition-property`),i=t.find(a=>a===`transform`||a===`all`);if(!i)return 0;let s=t.indexOf(i),r=O(e,`transition-duration`),o=O(e,`transition-delay`);return mt$1(r[s])+mt$1(o[s])}function O(n,e){return n.getPropertyValue(e).split(`,`).map(i=>i.trim())}var Lt$1=new Set([`position`]),M$1=class M{_document;_rootElement;_direction;_initialDomRect;_previewTemplate;_previewClass;_pickupPositionOnPage;_initialTransform;_zIndex;_renderer;_previewEmbeddedView=null;_preview;get element(){return this._preview}constructor(e,t,i,s,r,o,a,l,h,d){this._document=e,this._rootElement=t,this._direction=i,this._initialDomRect=s,this._previewTemplate=r,this._previewClass=o,this._pickupPositionOnPage=a,this._initialTransform=l,this._zIndex=h,this._renderer=d;}attach(e){this._preview=this._createPreview(),e.appendChild(this._preview),vt$2(this._preview)&&this._preview.showPopover();}destroy(){this._preview.remove(),this._previewEmbeddedView?.destroy(),this._preview=this._previewEmbeddedView=null;}setTransform(e){this._preview.style.transform=e;}getBoundingClientRect(){return this._preview.getBoundingClientRect()}addClass(e){this._preview.classList.add(e);}getTransitionDuration(){return Ot(this._preview)}addEventListener(e,t){return this._renderer.listen(this._preview,e,t)}_createPreview(){let e=this._previewTemplate,t=this._previewClass,i=e?e.template:null,s;if(i&&e){let r=e.matchSize?this._initialDomRect:null,o=e.viewContainer.createEmbeddedView(i,e.context);o.detectChanges(),s=Et(o,this._document),this._previewEmbeddedView=o,e.matchSize?ft$2(s,r):s.style.transform=P(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y);}else s=L$1(this._rootElement),ft$2(s,this._initialDomRect),this._initialTransform&&(s.style.transform=this._initialTransform);return F(s.style,{"pointer-events":`none`,margin:vt$2(s)?`0 auto 0 0`:`0`,position:`fixed`,top:`0`,left:`0`,"z-index":this._zIndex+``},Lt$1),f(s,false),s.classList.add(`cdk-drag-preview`),s.setAttribute(`popover`,`manual`),s.setAttribute(`dir`,this._direction),t&&(Array.isArray(t)?t.forEach(r=>s.classList.add(r)):s.classList.add(t)),s}};function vt$2(n){return `showPopover`in n}var Nt$1={passive:true},Dt={passive:false},Mt={passive:false,capture:true},At=800,wt$1=`cdk-drag-placeholder`,bt$1=new Set([`position`]);function Ft$1(n,e,t={dragStartThreshold:5,pointerDirectionChangeThreshold:5}){let i=n.get(fr,null,{optional:true})||n.get(Ye$2).createRenderer(null,null);return new A(e,t,n.get(V$1),n.get(ee$1),n.get(_R),n.get(It),i)}var A=class{_config;_document;_ngZone;_viewportRuler;_dragDropRegistry;_renderer;_rootElementCleanups;_cleanupShadowRootSelectStart;_preview=null;_previewContainer;_placeholderRef=null;_placeholder;_pickupPositionInElement;_pickupPositionOnPage;_marker;_anchor=null;_passiveTransform={x:0,y:0};_activeTransform={x:0,y:0};_initialTransform;_hasStartedDragging=jt$1(false);_hasMoved=false;_initialContainer;_initialIndex;_parentPositions;_moveEvents=new U;_pointerDirectionDelta;_pointerPositionAtLastDirectionChange;_lastKnownPointerPosition;_rootElement;_ownerSVGElement=null;_rootElementTapHighlight;_pointerMoveSubscription=v$1.EMPTY;_pointerUpSubscription=v$1.EMPTY;_scrollSubscription=v$1.EMPTY;_resizeSubscription=v$1.EMPTY;_lastTouchEventTime;_dragStartTime;_boundaryElement=null;_nativeInteractionsEnabled=true;_initialDomRect;_previewRect;_boundaryRect;_previewTemplate;_placeholderTemplate;_handles=[];_disabledHandles=new Set;_dropContainer;_direction=`ltr`;_parentDragRef=null;_cachedShadowRoot;lockAxis=null;dragStartDelay=0;previewClass;scale=1;get disabled(){return this._disabled||!!(this._dropContainer&&this._dropContainer.disabled)}set disabled(e){e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>f(t,e)));}_disabled=false;beforeStarted=new U;started=new U;released=new U;ended=new U;entered=new U;exited=new U;dropped=new U;moved=this._moveEvents;data;constrainPosition;constructor(e,t,i,s,r,o,a){this._config=t,this._document=i,this._ngZone=s,this._viewportRuler=r,this._dragDropRegistry=o,this._renderer=a,this.withRootElement(e).withParent(t.parentDragRef||null),this._parentPositions=new N(i),o.registerDragItem(this);}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(e){this._handles=e.map(i=>z0(i)),this._handles.forEach(i=>f(i,this.disabled)),this._toggleNativeDragInteractions();let t=new Set;return this._disabledHandles.forEach(i=>{this._handles.indexOf(i)>-1&&t.add(i);}),this._disabledHandles=t,this}withPreviewTemplate(e){return this._previewTemplate=e,this}withPlaceholderTemplate(e){return this._placeholderTemplate=e,this}withRootElement(e){let t=z0(e);if(t!==this._rootElement){this._removeRootElementListeners();let i=this._renderer;this._rootElementCleanups=this._ngZone.runOutsideAngular(()=>[i.listen(t,`mousedown`,this._pointerDown,Dt),i.listen(t,`touchstart`,this._pointerDown,Nt$1),i.listen(t,`dragstart`,this._nativeDragStart,Dt)]),this._initialTransform=void 0,this._rootElement=t;}return typeof SVGElement<`u`&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(e){return this._boundaryElement=e?z0(e):null,this._resizeSubscription.unsubscribe(),e&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(e){return this._parentDragRef=e,this}dispose(){this._removeRootElementListeners(),this.isDragging()&&this._rootElement?.remove(),this._marker?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeListeners(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._marker=this._parentDragRef=null;}isDragging(){return this._hasStartedDragging()&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||``,this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0};}resetToBoundary(){if(this._boundaryElement&&this._rootElement&&Tt$1(this._boundaryElement.getBoundingClientRect(),this._rootElement.getBoundingClientRect())){let e=this._boundaryElement.getBoundingClientRect(),t=this._rootElement.getBoundingClientRect(),i=0,s=0;t.left<e.left?i=e.left-t.left:t.right>e.right&&(i=e.right-t.right),t.top<e.top?s=e.top-t.top:t.bottom>e.bottom&&(s=e.bottom-t.bottom);let r=this._activeTransform.x,o=this._activeTransform.y,a=r+i,l=o+s;this._rootElement.style.transform=P(a,l),this._activeTransform={x:a,y:l},this._passiveTransform={x:a,y:l};}}disableHandle(e){!this._disabledHandles.has(e)&&this._handles.indexOf(e)>-1&&(this._disabledHandles.add(e),f(e,true));}enableHandle(e){this._disabledHandles.has(e)&&(this._disabledHandles.delete(e),f(e,this.disabled));}withDirection(e){return this._direction=e,this}_withDropContainer(e){this._dropContainer=e;}getFreeDragPosition(){let e=this.isDragging()?this._activeTransform:this._passiveTransform;return {x:e.x,y:e.y}}setFreeDragPosition(e){return this._activeTransform={x:0,y:0},this._passiveTransform.x=e.x,this._passiveTransform.y=e.y,this._dropContainer||this._applyRootElementTransform(e.x,e.y),this}withPreviewContainer(e){return this._previewContainer=e,this}_sortFromLastPointerPosition(){let e=this._lastKnownPointerPosition;e&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(e),e);}_removeListeners(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe(),this._cleanupShadowRootSelectStart?.(),this._cleanupShadowRootSelectStart=void 0;}_destroyPreview(){this._preview?.destroy(),this._preview=null;}_destroyPlaceholder(){this._anchor?.remove(),this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._anchor=this._placeholderRef=null;}_pointerDown=e=>{if(this.beforeStarted.next(),this._handles.length){let t=this._getTargetHandle(e);t&&!this._disabledHandles.has(t)&&!this.disabled&&this._initializeDragSequence(t,e);}else this.disabled||this._initializeDragSequence(this._rootElement,e);};_pointerMove=e=>{let t=this._getPointerPositionOnPage(e);if(!this._hasStartedDragging()){if(Math.abs(t.x-this._pickupPositionOnPage.x)+Math.abs(t.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){let a=Date.now()>=this._dragStartTime+this._getDragStartDelay(e),l=this._dropContainer;if(!a){this._endDragSequence(e);return}(!l||!l.isDragging()&&!l.isReceiving())&&(e.cancelable&&e.preventDefault(),this._hasStartedDragging.set(true),this._ngZone.run(()=>this._startDragSequence(e)));}return}e.cancelable&&e.preventDefault();let i=this._getConstrainedPointerPosition(t);if(this._hasMoved=true,this._lastKnownPointerPosition=t,this._updatePointerDirectionDelta(i),this._dropContainer)this._updateActiveDropContainer(i,t);else {let s=this.constrainPosition?this._initialDomRect:this._pickupPositionOnPage,r=this._activeTransform;r.x=i.x-s.x+this._passiveTransform.x,r.y=i.y-s.y+this._passiveTransform.y,this._applyRootElementTransform(r.x,r.y);}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:i,event:e,distance:this._getDragDistance(i),delta:this._pointerDirectionDelta});});};_pointerUp=e=>{this._endDragSequence(e);};_endDragSequence(e){if(this._dragDropRegistry.isDragging(this)&&(this._removeListeners(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),!!this._hasStartedDragging()))if(this.released.next({source:this,event:e}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(e),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this);});else {this._passiveTransform.x=this._activeTransform.x;let t=this._getPointerPositionOnPage(e);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(t),dropPoint:t,event:e});}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this);}}_startDragSequence(e){b(e)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();let t=this._getShadowRoot(),i=this._dropContainer;if(t&&this._ngZone.runOutsideAngular(()=>{this._cleanupShadowRootSelectStart=this._renderer.listen(t,`selectstart`,Ht$1,Mt);}),i){let s=this._rootElement,r=s.parentNode,o=this._placeholder=this._createPlaceholderElement(),a=this._marker=this._marker||this._document.createComment(``);r.insertBefore(a,s),this._initialTransform=s.style.transform||``,this._preview=new M$1(this._document,this._rootElement,this._direction,this._initialDomRect,this._previewTemplate||null,this.previewClass||null,this._pickupPositionOnPage,this._initialTransform,this._config.zIndex||1e3,this._renderer),this._preview.attach(this._getPreviewInsertionPoint(r,t)),gt$2(s,false,bt$1),this._document.body.appendChild(r.replaceChild(o,s)),this.started.next({source:this,event:e}),i.start(),this._initialContainer=i,this._initialIndex=i.getItemIndex(this);}else this.started.next({source:this,event:e}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(i?i.getScrollableParents():[]);}_initializeDragSequence(e,t){this._parentDragRef&&t.stopPropagation();let i=this.isDragging(),s=b(t),r=!s&&t.button!==0,o=this._rootElement,a=L0(t),l=!s&&this._lastTouchEventTime&&this._lastTouchEventTime+At>Date.now(),h=s?x0(t):R0(t);if(a&&a.draggable&&t.type===`mousedown`&&t.preventDefault(),i||r||l||h)return;if(this._handles.length){let u=o.style;this._rootElementTapHighlight=u.webkitTapHighlightColor||``,u.webkitTapHighlightColor=`transparent`;}this._hasMoved=false,this._hasStartedDragging.set(this._hasMoved),this._removeListeners(),this._initialDomRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(u=>this._updateOnScroll(u)),this._boundaryElement&&(this._boundaryRect=yt$2(this._boundaryElement));let d=this._previewTemplate;this._pickupPositionInElement=d&&d.template&&!d.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialDomRect,e,t);let S=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(t);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:S.x,y:S.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,t);}_cleanupDragArtifacts(e){gt$2(this._rootElement,true,bt$1),this._marker.parentNode.replaceChild(this._rootElement,this._marker),this._destroyPreview(),this._destroyPlaceholder(),this._initialDomRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{let t=this._dropContainer,i=t.getItemIndex(this),s=this._getPointerPositionOnPage(e),r=this._getDragDistance(s),o=t._isOverContainer(s.x,s.y);this.ended.next({source:this,distance:r,dropPoint:s,event:e}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:t,previousContainer:this._initialContainer,isPointerOverContainer:o,distance:r,dropPoint:s,event:e}),t.drop(this,i,this._initialIndex,this._initialContainer,o,r,s,e),this._dropContainer=this._initialContainer;});}_updateActiveDropContainer({x:e,y:t},{x:i,y:s}){let r=this._initialContainer._getSiblingContainerFromPosition(this,e,t);!r&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(e,t)&&(r=this._initialContainer),r&&r!==this._dropContainer&&this._ngZone.run(()=>{let o=this._dropContainer.getItemIndex(this),a=this._dropContainer.getItemAtIndex(o+1)?.getVisibleElement()||null;this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._conditionallyInsertAnchor(r,this._dropContainer,a),this._dropContainer=r,this._dropContainer.enter(this,e,t,r===this._initialContainer&&r.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:r,currentIndex:r.getItemIndex(this)});}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,s),this._dropContainer._sortItem(this,e,t,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(e,t):this._applyPreviewTransform(e-this._pickupPositionInElement.x,t-this._pickupPositionInElement.y));}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();let e=this._placeholder.getBoundingClientRect();this._preview.addClass(`cdk-drag-animating`),this._applyPreviewTransform(e.left,e.top);let t=this._preview.getTransitionDuration();return t===0?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(i=>{let s=a=>{(!a||this._preview&&L0(a)===this._preview.element&&a.propertyName===`transform`)&&(o(),i(),clearTimeout(r));},r=setTimeout(s,t*1.5),o=this._preview.addEventListener(`transitionend`,s);}))}_createPlaceholderElement(){let e=this._placeholderTemplate,t=e?e.template:null,i;return t?(this._placeholderRef=e.viewContainer.createEmbeddedView(t,e.context),this._placeholderRef.detectChanges(),i=Et(this._placeholderRef,this._document)):i=L$1(this._rootElement),i.style.pointerEvents=`none`,i.classList.add(wt$1),i}_getPointerPositionInElement(e,t,i){let s=t===this._rootElement?null:t,r=s?s.getBoundingClientRect():e,o=b(i)?i.targetTouches[0]:i,a=this._getViewportScrollPosition(),l=o.pageX-r.left-a.left,h=o.pageY-r.top-a.top;return {x:r.left-e.left+l,y:r.top-e.top+h}}_getPointerPositionOnPage(e){let t=this._getViewportScrollPosition(),i=b(e)?e.touches[0]||e.changedTouches[0]||{pageX:0,pageY:0}:e,s=i.pageX-t.left,r=i.pageY-t.top;if(this._ownerSVGElement){let o=this._ownerSVGElement.getScreenCTM();if(o){let a=this._ownerSVGElement.createSVGPoint();return a.x=s,a.y=r,a.matrixTransform(o.inverse())}}return {x:s,y:r}}_getConstrainedPointerPosition(e){let t=this._dropContainer?this._dropContainer.lockAxis:null,{x:i,y:s}=this.constrainPosition?this.constrainPosition(e,this,this._initialDomRect,this._pickupPositionInElement):e;if(this.lockAxis===`x`||t===`x`?s=this._pickupPositionOnPage.y-(this.constrainPosition?this._pickupPositionInElement.y:0):(this.lockAxis===`y`||t===`y`)&&(i=this._pickupPositionOnPage.x-(this.constrainPosition?this._pickupPositionInElement.x:0)),this._boundaryRect){let{x:r,y:o}=this.constrainPosition?{x:0,y:0}:this._pickupPositionInElement,a=this._boundaryRect,{width:l,height:h}=this._getPreviewRect(),d=a.top+o,S=a.bottom-(h-o),u=a.left+r,xt=a.right-(l-r);i=Pt$1(i,u,xt),s=Pt$1(s,d,S);}return {x:i,y:s}}_updatePointerDirectionDelta(e){let{x:t,y:i}=e,s=this._pointerDirectionDelta,r=this._pointerPositionAtLastDirectionChange,o=Math.abs(t-r.x),a=Math.abs(i-r.y);return o>this._config.pointerDirectionChangeThreshold&&(s.x=t>r.x?1:-1,r.x=t),a>this._config.pointerDirectionChangeThreshold&&(s.y=i>r.y?1:-1,r.y=i),s}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;let e=this._handles.length>0||!this.isDragging();e!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=e,f(this._rootElement,e));}_removeRootElementListeners(){this._rootElementCleanups?.forEach(e=>e()),this._rootElementCleanups=void 0;}_applyRootElementTransform(e,t){let i=1/this.scale,s=P(e*i,t*i),r=this._rootElement.style;this._initialTransform??=r.transform&&r.transform!=`none`?r.transform:``,r.transform=ut$2(s,this._initialTransform);}_applyPreviewTransform(e,t){let i=this._previewTemplate?.template?void 0:this._initialTransform,s=P(e,t);this._preview.setTransform(ut$2(s,i));}_getDragDistance(e){let t=this._pickupPositionOnPage;return t?{x:e.x-t.x,y:e.y-t.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear();}_containInsideBoundaryOnResize(){let{x:e,y:t}=this._passiveTransform;if(e===0&&t===0||this.isDragging()||!this._boundaryElement)return;let i=this._rootElement.getBoundingClientRect(),s=this._boundaryElement.getBoundingClientRect();if(s.width===0&&s.height===0||i.width===0&&i.height===0)return;let r=s.left-i.left,o=i.right-s.right,a=s.top-i.top,l=i.bottom-s.bottom;s.width>i.width?(r>0&&(e+=r),o>0&&(e-=o)):e=0,s.height>i.height?(a>0&&(t+=a),l>0&&(t-=l)):t=0,(e!==this._passiveTransform.x||t!==this._passiveTransform.y)&&this.setFreeDragPosition({y:t,x:e});}_getDragStartDelay(e){let t=this.dragStartDelay;return typeof t==`number`?t:b(e)?t.touch:t?t.mouse:0}_updateOnScroll(e){let t=this._parentPositions.handleScroll(e);if(t){let i=L0(e);this._boundaryRect&&i!==this._boundaryElement&&i.contains(this._boundaryElement)&&Rt$1(this._boundaryRect,t.top,t.left),this._pickupPositionOnPage.x+=t.left,this._pickupPositionOnPage.y+=t.top,this._dropContainer||(this._activeTransform.x-=t.left,this._activeTransform.y-=t.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y));}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return this._cachedShadowRoot===void 0&&(this._cachedShadowRoot=k0(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(e,t){let i=this._previewContainer||`global`;if(i===`parent`)return e;if(i===`global`){let s=this._document;return t||s.fullscreenElement||s.webkitFullscreenElement||s.mozFullScreenElement||s.msFullscreenElement||s.body}return z0(i)}_getPreviewRect(){return (!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialDomRect),this._previewRect}_nativeDragStart=e=>{if(this._handles.length){let t=this._getTargetHandle(e);t&&!this._disabledHandles.has(t)&&!this.disabled&&e.preventDefault();}else this.disabled||e.preventDefault();};_getTargetHandle(e){return this._handles.find(t=>e.target&&(e.target===t||t.contains(e.target)))}_conditionallyInsertAnchor(e,t,i){if(e===this._initialContainer)this._anchor?.remove(),this._anchor=null;else if(t===this._initialContainer&&t.hasAnchor){let s=this._anchor??=L$1(this._placeholder);s.classList.remove(wt$1),s.classList.add(`cdk-drag-anchor`),s.style.transform=``,i?i.before(s):z0(t.element).appendChild(s);}}};function Pt$1(n,e,t){return Math.max(e,Math.min(t,n))}function b(n){return n.type[0]===`t`}function Ht$1(n){n.preventDefault();}var St=new w$1(`CDK_DRAG_PARENT`);var zt$1=new w$1(`CdkDragHandle`);var Vt=new w$1(`CDK_DRAG_CONFIG`),Bt$1=new w$1(`CdkDropList`),ge$1=(()=>{class n{element=g(be$1);dropContainer=g(Bt$1,{optional:true,skipSelf:true});_ngZone=g(ee$1);_viewContainerRef=g(Wt$1);_dir=g(eR,{optional:true});_changeDetectorRef=g(Tp);_selfHandle=g(zt$1,{optional:true,self:true});_parentDrag=g(St,{optional:true,skipSelf:true});_dragDropRegistry=g(It);_destroyed=new U;_handles=new Sr$1([]);_previewTemplate=null;_placeholderTemplate=null;_dragRef;data;lockAxis=null;rootElementSelector;boundaryElement;dragStartDelay;freeDragPosition;get disabled(){return this._disabled||!!(this.dropContainer&&this.dropContainer.disabled)}set disabled(t){this._disabled=t,this._dragRef.disabled=this._disabled;}_disabled=false;constrainPosition;previewClass;previewContainer;scale=1;started=new Ce$1;released=new Ce$1;ended=new Ce$1;entered=new Ce$1;exited=new Ce$1;dropped=new Ce$1;moved=new m$1(t=>{let i=this._dragRef.moved.pipe(q$1(s=>({source:this,pointerPosition:s.pointerPosition,event:s.event,delta:s.delta,distance:s.distance}))).subscribe(t);return ()=>{i.unsubscribe();}});_injector=g(Z);constructor(){let t=this.dropContainer,i=g(Vt,{optional:true});this._dragRef=Ft$1(this._injector,this.element,{dragStartThreshold:i&&i.dragStartThreshold!=null?i.dragStartThreshold:5,pointerDirectionChangeThreshold:i&&i.pointerDirectionChangeThreshold!=null?i.pointerDirectionChangeThreshold:5,zIndex:i?.zIndex}),this._dragRef.data=this,this._dragDropRegistry.registerDirectiveNode(this.element.nativeElement,this),i&&this._assignDefaults(i),t&&(t.addItem(this),t._dropListRef.beforeStarted.pipe(pi$2(this._destroyed)).subscribe(()=>{this._dragRef.scale=this.scale;})),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef);}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset();}resetToBoundary(){this._dragRef.resetToBoundary();}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(t){this._dragRef.setFreeDragPosition(t);}ngAfterViewInit(){wd(()=>{this._updateRootElement(),this._setupHandlesListener(),this._dragRef.scale=this.scale,this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition);},{injector:this._injector});}ngOnChanges(t){let i=t.rootElementSelector,s=t.freeDragPosition;i&&!i.firstChange&&this._updateRootElement(),this._dragRef.scale=this.scale,s&&!s.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition);}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this),this._dragDropRegistry.removeDirectiveNode(this.element.nativeElement),this._ngZone.runOutsideAngular(()=>{this._handles.complete(),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose();});}_addHandle(t){let i=this._handles.getValue();i.push(t),this._handles.next(i);}_removeHandle(t){let i=this._handles.getValue(),s=i.indexOf(t);s>-1&&(i.splice(s,1),this._handles.next(i));}_setPreviewTemplate(t){this._previewTemplate=t;}_resetPreviewTemplate(t){t===this._previewTemplate&&(this._previewTemplate=null);}_setPlaceholderTemplate(t){this._placeholderTemplate=t;}_resetPlaceholderTemplate(t){t===this._placeholderTemplate&&(this._placeholderTemplate=null);}_updateRootElement(){let t=this.element.nativeElement,i=t;this.rootElementSelector&&(i=t.closest!==void 0?t.closest(this.rootElementSelector):t.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(i||t);}_getBoundaryElement(){let t=this.boundaryElement;return t?typeof t==`string`?this.element.nativeElement.closest(t):z0(t):null}_syncInputs(t){t.beforeStarted.subscribe(()=>{if(!t.isDragging()){let i=this._dir,s=this.dragStartDelay,r=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,o=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;t.disabled=this.disabled,t.lockAxis=this.lockAxis,t.scale=this.scale,t.dragStartDelay=typeof s==`object`&&s?s:U0(s),t.constrainPosition=this.constrainPosition,t.previewClass=this.previewClass,t.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(r).withPreviewTemplate(o).withPreviewContainer(this.previewContainer||`global`),i&&t.withDirection(i.value);}}),t.beforeStarted.pipe(Nn$3(1)).subscribe(()=>{if(this._parentDrag){t.withParent(this._parentDrag._dragRef);return}let i=this.element.nativeElement.parentElement;for(;i;){let s=this._dragDropRegistry.getDragDirectiveForNode(i);if(s){t.withParent(s._dragRef);break}i=i.parentElement;}});}_handleEvents(t){t.started.subscribe(i=>{this.started.emit({source:this,event:i.event}),this._changeDetectorRef.markForCheck();}),t.released.subscribe(i=>{this.released.emit({source:this,event:i.event});}),t.ended.subscribe(i=>{this.ended.emit({source:this,distance:i.distance,dropPoint:i.dropPoint,event:i.event}),this._changeDetectorRef.markForCheck();}),t.entered.subscribe(i=>{this.entered.emit({container:i.container.data,item:this,currentIndex:i.currentIndex});}),t.exited.subscribe(i=>{this.exited.emit({container:i.container.data,item:this});}),t.dropped.subscribe(i=>{this.dropped.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,previousContainer:i.previousContainer.data,container:i.container.data,isPointerOverContainer:i.isPointerOverContainer,item:this,distance:i.distance,dropPoint:i.dropPoint,event:i.event});});}_assignDefaults(t){let{lockAxis:i,dragStartDelay:s,constrainPosition:r,previewClass:o,boundaryElement:a,draggingDisabled:l,rootElementSelector:h,previewContainer:d}=t;this.disabled=l??false,this.dragStartDelay=s||0,this.lockAxis=i||null,r&&(this.constrainPosition=r),o&&(this.previewClass=o),a&&(this.boundaryElement=a),h&&(this.rootElementSelector=h),d&&(this.previewContainer=d);}_setupHandlesListener(){this._handles.pipe(bi$1(t=>{let i=t.map(s=>s.element);this._selfHandle&&this.rootElementSelector&&i.push(this.element),this._dragRef.withHandles(i);}),ii$2(t=>ve$2(...t.map(i=>i._stateChanges.pipe(_e$3(i))))),pi$2(this._destroyed)).subscribe(t=>{let i=this._dragRef,s=t.element.nativeElement;t.disabled?i.disableHandle(s):i.enableHandle(s);});}static ɵfac=function(i){return new(i||n)};static ɵdir=wn$2({type:n,selectors:[[``,`cdkDrag`,``]],hostAttrs:[1,`cdk-drag`],hostVars:4,hostBindings:function(i,s){i&2&&uc(`cdk-drag-disabled`,s.disabled)(`cdk-drag-dragging`,s._dragRef.isDragging());},inputs:{data:[0,`cdkDragData`,`data`],lockAxis:[0,`cdkDragLockAxis`,`lockAxis`],rootElementSelector:[0,`cdkDragRootElement`,`rootElementSelector`],boundaryElement:[0,`cdkDragBoundary`,`boundaryElement`],dragStartDelay:[0,`cdkDragStartDelay`,`dragStartDelay`],freeDragPosition:[0,`cdkDragFreeDragPosition`,`freeDragPosition`],disabled:[2,`cdkDragDisabled`,`disabled`,IE],constrainPosition:[0,`cdkDragConstrainPosition`,`constrainPosition`],previewClass:[0,`cdkDragPreviewClass`,`previewClass`],previewContainer:[0,`cdkDragPreviewContainer`,`previewContainer`],scale:[2,`cdkDragScale`,`scale`,AN]},outputs:{started:`cdkDragStarted`,released:`cdkDragReleased`,ended:`cdkDragEnded`,entered:`cdkDragEntered`,exited:`cdkDragExited`,dropped:`cdkDragDropped`,moved:`cdkDragMoved`},exportAs:[`cdkDrag`],features:[up([{provide:St,useExisting:n}]),Ao]})}return n})();
8
+
9
+ var a=class t{sanitizer=g(_C);transform(r){return r?this.sanitizer.bypassSecurityTrustHtml(r):``}static ɵfac=function(m){return new(m||t)};static ɵpipe=pr({name:`safeHtml`,type:t,pure:true})};
10
+
11
+ var Ke$1=new w$1(`EngagementContext`),Ge$2=new w$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=class extends B{element;constructor(e){super(),this.element=e instanceof be$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)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$1=class tt 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(rr,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$1,i.injector);t=Mp(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=(()=>{class o extends x{_moduleRef=g(rr,{optional:true});_document=g(V$1);_viewContainerRef=g(Wt$1);_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 Ce$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=wn$2({type:o,selectors:[[``,`cdkPortalOutlet`,``]],inputs:{portal:[0,`cdkPortalOutlet`,`portal`]},outputs:{attached:`attached`},exportAs:[`cdkPortalOutlet`],features:[Ya]})}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 w$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(ch);_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=L0(t));};_onMousedown=t=>{Date.now()-this._lastTouchMs<ie||(this._modality.next(R0(t)?`keyboard`:`mouse`),this._mostRecentTarget=L0(t));};_onTouchstart=t=>{if(x0(t)){this._modality.next(`keyboard`);return}this._lastTouchMs=Date.now(),this._modality.next(`touch`),this._mostRecentTarget=L0(t);};constructor(){let t=g(ee$1),i=g(V$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(Ye$2).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 w$1(`cdk-focus-monitor-default-options`),et$1=ee({passive:true,capture:true}),oe=(()=>{class o{_ngZone=g(ee$1);_platform=g(ch);_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(V$1);_stopInputModalityDetector=new U;constructor(){this._detectionMode=g(Ee,{optional:true})?.detectionMode||it$1.IMMEDIATE;}_rootNodeFocusAndBlurListener=t=>{let i=L0(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=z0(t);if(!this._platform.isBrowser||s.nodeType!==1)return Se$2();let n=k0(s)||this._document,l=this._elementInfo.get(s);if(l)return i&&(l.checkChildren=true),l.subject;let a={checkChildren:i,subject:new U,rootNode:n};return this._elementInfo.set(s,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(t){let i=z0(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=z0(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=L0(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$1),i.addEventListener(`blur`,this._rootNodeFocusAndBlurListener,et$1);}),this._rootNodeFocusListenerCount.set(i,s+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener(`focus`,this._windowFocusListener);}),this._inputModalityDetector.modalityDetected.pipe(pi$2(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$1),i.removeEventListener(`blur`,this._rootNodeFocusAndBlurListener,et$1),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=gf({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}
12
+ `],encapsulation:2,changeDetection:0})}return o})();var pt=(()=>{class o{_platform=g(ch);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$1(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(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$1(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$1(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(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(o))return null;let e=parseInt(o.getAttribute(`tabindex`)||``,10);return isNaN(e)?-1:e}function xe(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$1(o)?false:Se(o)||Re(o)||o.hasAttribute(`contenteditable`)||re(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?wd(e,{injector:this._injector}):setTimeout(e);}},ae=(()=>{class o{_checker=g(pt);_ngZone=g(ee$1);_document=g(V$1);_injector=g(Z);constructor(){g(Z0).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=nR();function ue(o){return new gt$1(o.get(_R),o.get(V$1))}var gt$1=class gt{_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=class{enable(){}disable(){}attach(){}};var H=class{positionStrategy;scrollStrategy=new mt;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$1=(()=>{class o{_attachedOverlays=[];_document=g(V$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$1{_ngZone=g(ee$1);_renderer=g(Ye$2).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=Ul(o)))(s||o)}})();static ɵprov=C({token:o,factory:o.ɵfac,providedIn:`root`})}return o})(),Be=(()=>{class o extends fe$1{_platform=g(ch);_ngZone=g(ee$1);_renderer=g(Ye$2).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=L0(t);};_clickListener=t=>{let i=L0(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=Ul(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$1=(()=>{class o{static ɵfac=function(i){return new(i||o)};static ɵcmp=gf({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}
13
+ `],encapsulation:2,changeDetection:0})}return o})(),bt=(()=>{class o{_platform=g(ch);_containerElement;_document=g(V$1);_styleLoader=g(Z0);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$1);}static ɵfac=function(i){return new(i||o)};static ɵprov=C({token:o,factory:o.ɵfac,providedIn:`root`})}return o})(),yt$1=class yt{_renderer;_ngZone;element;_cleanupClick;_cleanupTransitionEnd;_fallbackTimeout;constructor(e,t,i,s){this._renderer=t,this._ngZone=i,this.element=e.createElement(`div`),this.element.classList.add(`cdk-overlay-backdrop`),this._cleanupClick=t.listen(this.element,`click`,s);}detach(){this._ngZone.runOutsideAngular(()=>{let e=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(e,`transitionend`,this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),e.style.pointerEvents=`none`,e.classList.remove(`cdk-overlay-backdrop-showing`);});}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove();}};function _e$1(o){return o&&o.nodeType===1}var j=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new U;_attachments=new U;_detachments=new U;_positionStrategy;_scrollStrategy;_locationChanges=v$1.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_disposed=false;_previousHostParent;_keydownEvents=new U;_outsidePointerEvents=new U;_afterNextRenderRef;constructor(e,t,i,s,n,l,a,c,v,h=false,d,w){this._portalOutlet=e,this._host=t,this._pane=i,this._config=s,this._ngZone=n,this._keyboardDispatcher=l,this._document=a,this._location=c,this._outsideClickDispatcher=v,this._animationsDisabled=h,this._injector=d,this._renderer=w,s.scrollStrategy&&(this._scrollStrategy=s.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=s.positionStrategy;}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}get eventPredicate(){return this._config?.eventPredicate||null}attach(e){if(this._disposed)return null;this._attachHost();let t=this._portalOutlet.attach(e);return this._positionStrategy?.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=wd(()=>{this.hasAttached()&&this.updatePosition();},{injector:this._injector}),this._togglePointerEvents(true),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,true),this._attachments.next(),this._completeDetachContent(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof t?.onDestroy==`function`&&t.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()));}),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(false),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let e=this._portalOutlet.detach();return this._detachments.next(),this._completeDetachContent(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){if(this._disposed)return;let e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=this._backdropRef=null,e&&this._detachments.next(),this._detachments.complete(),this._completeDetachContent(),this._disposed=true;}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply();}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()));}updateSize(e){this._config=r(r({},this._config),e),this._updateElementSize();}setDirection(e){this._config=s(r({},this._config),{direction:e}),this._updateElementDirection();}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,true);}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,false);}getDirection(){let e=this._config.direction;return e?typeof e==`string`?e:e.value:`ltr`}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()));}_updateElementDirection(){this._host.setAttribute(`dir`,this.getDirection());}_updateElementSize(){if(!this._pane)return;let e=this._pane.style;e.width=E(this._config.width),e.height=E(this._config.height),e.minWidth=E(this._config.minWidth),e.minHeight=E(this._config.minHeight),e.maxWidth=E(this._config.maxWidth),e.maxHeight=E(this._config.maxHeight);}_togglePointerEvents(e){this._pane.style.pointerEvents=e?``:`none`;}_attachHost(){if(!this._host.parentElement){let e=this._config.usePopover?this._positionStrategy?.getPopoverInsertionPoint?.():null;_e$1(e)?e.after(this._host):e?.type===`parent`?e.element.appendChild(this._host):this._previousHostParent?.appendChild(this._host);}if(this._config.usePopover)try{this._host.showPopover();}catch{}}_attachBackdrop(){let e=`cdk-overlay-backdrop-showing`;this._backdropRef?.dispose(),this._backdropRef=new yt$1(this._document,this._renderer,this._ngZone,t=>{this._backdropClick.next(t);}),this._animationsDisabled&&this._backdropRef.element.classList.add(`cdk-overlay-backdrop-noop-animation`),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,true),this._config.usePopover?this._host.prepend(this._backdropRef.element):this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<`u`?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(e));}):this._backdropRef.element.classList.add(e);}_updateStackingOrder(){!this._config.usePopover&&this._host.nextSibling&&this._host.parentNode.appendChild(this._host);}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach();}_toggleClasses(e,t,i){let s=Q0(t||[]).filter(n=>!!n);s.length&&(i?e.classList.add(...s):e.classList.remove(...s));}_detachContentWhenEmpty(){let e=false;try{this._detachContentAfterRenderRef=wd(()=>{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=`cdk-global-overlay-wrapper`;function ge(o){return new vt$1}var vt$1=class vt{_overlayRef;_cssPosition=`static`;_topOffset=``;_bottomOffset=``;_alignItems=``;_xPosition=``;_xOffset=``;_width=``;_height=``;_isDisposed=false;attach(e){let t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(de),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),i.justifyContent=i.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position=``,this._overlayRef=null,this._isDisposed=true;}};var Ve=new w$1(`OVERLAY_DEFAULT_CONFIG`);function me$1(o,e){o.get(Z0).load(pe$1);let t=o.get(bt),i=o.get(V$1),s=o.get(uh),n=o.get(mt$2),l=o.get(eR),a=o.get(fr,null,{optional:true})||o.get(Ye$2).createRenderer(null,null),c=new H(e),v=o.get(Ve,null,{optional:true})?.usePopover??true;c.direction=c.direction||l.value,`showPopover`in i.body?c.usePopover=e?.usePopover??v:c.usePopover=false;let h=i.createElement(`div`),d=i.createElement(`div`);h.id=s.getId(`cdk-overlay-`),h.classList.add(`cdk-overlay-pane`),d.appendChild(h),c.usePopover&&(d.setAttribute(`popover`,`manual`),d.classList.add(`cdk-overlay-popover`));let w=c.usePopover?c.positionStrategy?.getPopoverInsertionPoint?.():null;return _e$1(w)?w.after(d):w?.type===`parent`?w.element.appendChild(d):t.getContainerElement().appendChild(d),new j(new tt$1(h,n,o),d,h,c,o.get(ee$1),o.get(Ne$1),i,o.get(Op),o.get(Be),e?.disableAnimations??o.get(Fg,null,{optional:true})===`NoopAnimations`,o.get(re$1),a)}function He(o,e){}var I=class{viewContainerRef;injector;id;role=`dialog`;panelClass=``;hasBackdrop=true;backdropClass=``;disableClose=false;closePredicate;width=``;height=``;minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=false;autoFocus=`first-tabbable`;restoreFocus=true;scrollStrategy;closeOnNavigation=true;closeOnDestroy=true;closeOnOverlayDetachments=true;disableAnimations=false;providers;container;templateContext};var je=(()=>{class o extends x{_elementRef=g(be$1);_focusTrapFactory=g(ae);_config;_interactivityChecker=g(pt);_ngZone=g(ee$1);_focusMonitor=g(oe);_renderer=g(fr);_changeDetectorRef=g(Tp);_injector=g(Z);_platform=g(ch);_document=g(V$1);_portalOutlet;_focusTrapped=new U;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=false;constructor(){super(),this._config=g(I,{optional:true})||new I,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy);}_addAriaLabelledBy(t){this._ariaLabelledByQueue.push(t),this._changeDetectorRef.markForCheck();}_removeAriaLabelledBy(t){let i=this._ariaLabelledByQueue.indexOf(t);i>-1&&(this._ariaLabelledByQueue.splice(i,1),this._changeDetectorRef.markForCheck());}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus();}_captureInitialFocus(){this._trapFocus();}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=true,this._restoreFocus();}attachComponentPortal(t){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachComponentPortal(t);return this._contentAttached(),i}attachTemplatePortal(t){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachTemplatePortal(t);return this._contentAttached(),i}attachDomPortal=t=>{this._portalOutlet.hasAttached();let i=this._portalOutlet.attachDomPortal(t);return this._contentAttached(),i};_recaptureFocus(){this._containsFocus()||this._trapFocus();}_forceFocus(t,i){this._interactivityChecker.isFocusable(t)||(t.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let s=()=>{n(),l(),t.removeAttribute(`tabindex`);},n=this._renderer.listen(t,`blur`,s),l=this._renderer.listen(t,`mousedown`,s);})),t.focus(i);}_focusByCssSelector(t,i){let s=this._elementRef.nativeElement.querySelector(t);s&&this._forceFocus(s,i);}_trapFocus(t){this._isDestroyed||wd(()=>{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=F0(),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=F0();return t===i||t.contains(i)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=F0()));}static ɵfac=function(i){return new(i||o)};static ɵcmp=gf({type:o,selectors:[[`cdk-dialog-container`]],viewQuery:function(i,s){if(i&1&&ac(dt,7),i&2){let n;Hf(n=$f())&&(s._portalOutlet=n.first);}},hostAttrs:[`tabindex`,`-1`,1,`cdk-dialog-container`],hostVars:6,hostBindings:function(i,s){i&2&&Sf(`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:[Ya],decls:1,vars:0,consts:[[`cdkPortalOutlet`,``]],template:function(i,s){i&1&&Ef(0,He,0,0,`ng-template`,0);},dependencies:[dt],styles:[`.cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}
14
+ `],encapsulation:2})}return o})(),W=class{overlayRef;config;componentInstance=null;componentRef=null;containerInstance;disableClose;closed=new U;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(e,t){this.overlayRef=e,this.config=t,this.disableClose=t.disableClose,this.backdropClick=e.backdropClick(),this.keydownEvents=e.keydownEvents(),this.outsidePointerEvents=e.outsidePointerEvents(),this.id=t.id,this.keydownEvents.subscribe(i=>{i.keyCode===27&&!this.disableClose&&!le(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:`keyboard`}));}),this.backdropClick.subscribe(()=>{!this.disableClose&&this._canClose()?this.close(void 0,{focusOrigin:`mouse`}):this.containerInstance._recaptureFocus?.();}),this._detachSubscription=e.detachments().subscribe(()=>{t.closeOnOverlayDetachments!==false&&this.close();});}close(e,t){if(this._canClose(e)){let i=this.closed;this.containerInstance._closeInteractionType=t?.focusOrigin||`program`,this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),i.next(e),i.complete(),this.componentInstance=this.containerInstance=null;}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(e=``,t=``){return this.overlayRef.updateSize({width:e,height:t}),this}addPanelClass(e){return this.overlayRef.addPanelClass(e),this}removePanelClass(e){return this.overlayRef.removePanelClass(e),this}_canClose(e){let t=this.config;return !!this.containerInstance&&(!t.closePredicate||t.closePredicate(e,t,this.componentInstance))}},We$1=new w$1(`DialogScrollStrategy`,{providedIn:`root`,factory:()=>{let o=g(Z);return ()=>ue(o)}}),Ye$1=new w$1(`DialogData`),Xe$1=new w$1(`DefaultDialogConfig`);function Ue(o){let e=jt$1(o),t=new Ce$1;return {valueSignal:e,get value(){return e()},change:t,ngOnDestroy(){t.complete();}}}var Ro=(()=>{class o{_injector=g(Z);_defaultOptions=g(Xe$1,{optional:true});_parentDialog=g(o,{optional:true,skipSelf:true});_overlayContainer=g(bt);_idGenerator=g(uh);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new U;_afterOpenedAtThisLevel=new U;_ariaHiddenElements=new Map;_scrollStrategy=g(We$1);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=ye$4(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(_e$3(void 0)));constructor(){}open(t,i){i=r(r({},this._defaultOptions||new I),i),i.id=i.id||this._idGenerator.getId(`cdk-dialog-`),i.id&&this.getDialogById(i.id);let n=this._getOverlayConfig(i),l=me$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$3(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(v);}):this._hideNonDialogContentFromAssistiveTechnology(v);}return this._attachDialogContent(t,a,c,i),this.openDialogs.push(a),a.closed.subscribe(()=>this._removeOpenDialog(a,true)),this.afterOpened.next(a),a}closeAll(){wt(this.openDialogs,t=>t.close());}getDialogById(t){return this.openDialogs.find(i=>i.id===t)}ngOnDestroy(){wt(this._openDialogsAtThisLevel,t=>{t.config.closeOnDestroy===false&&this._removeOpenDialog(t,false);}),wt(this._openDialogsAtThisLevel,t=>t.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[];}_getOverlayConfig(t){let i=new H({positionStrategy:t.positionStrategy||ge().centerHorizontally().centerVertically(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,width:t.width,height:t.height,disposeOnNavigation:t.closeOnNavigation,disableAnimations:t.disableAnimations});return t.backdropClass&&(i.backdropClass=t.backdropClass),i}_attachContainer(t,i,s){let n=s.injector||s.viewContainerRef?.injector,l=[{provide:I,useValue:s},{provide:W,useValue:i},{provide:j,useValue:t}],a;s.container?typeof s.container==`function`?a=s.container:(a=s.container.type,l.push(...s.container.providers(s))):a=je;let c=new T(a,s.viewContainerRef,Z.create({parent:n||this._injector,providers:l}));return t.attach(c).instance}_attachDialogContent(t,i,s,n){if(t instanceof Ht$2){let l=this._createInjector(n,i,s,void 0),a={$implicit:n.data,dialogRef:i};n.templateContext&&(a=r(r({},a),typeof n.templateContext==`function`?n.templateContext():n.templateContext)),s.attachTemplatePortal(new M(t,null,a,l));}else {let l=this._createInjector(n,i,s,this._injector),a=s.attachComponentPortal(new T(t,n.viewContainerRef,l));i.componentRef=a,i.componentInstance=a.instance;}}_createInjector(t,i,s,n){let l=t.injector||t.viewContainerRef?.injector,a=[{provide:Ye$1,useValue:t.data},{provide:W,useValue:i}];return t.providers&&(typeof t.providers==`function`?a.push(...t.providers(i,t,s)):a.push(...t.providers)),t.direction&&(!l||!l.get(eR,null,{optional:true}))&&a.push({provide:eR,useValue:Ue(t.direction)}),Z.create({parent:l||n,providers:a})}_removeOpenDialog(t,i){let s=this.openDialogs.indexOf(t);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((n,l)=>{n?l.setAttribute(`aria-hidden`,n):l.removeAttribute(`aria-hidden`);}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()));}_hideNonDialogContentFromAssistiveTechnology(t){if(t.parentElement){let i=t.parentElement.children;for(let s=i.length-1;s>-1;s--){let n=i[s];n!==t&&n.nodeName!==`SCRIPT`&&n.nodeName!==`STYLE`&&!n.hasAttribute(`aria-live`)&&!n.hasAttribute(`popover`)&&(this._ariaHiddenElements.set(n,n.getAttribute(`aria-hidden`)),n.setAttribute(`aria-hidden`,`true`));}}}_getAfterAllClosed(){let t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}static ɵfac=function(i){return new(i||o)};static ɵprov=C({token:o,factory:o.ɵfac,providedIn:`root`})}return o})();function wt(o,e){let t=o.length;for(;t--;)e(o[t]);}var ot$1=class o{static cache=new Map;static loadingPromises=new Map;async getSvg(e){if(o.cache.has(e))return o.cache.get(e);if(o.loadingPromises.has(e))return o.loadingPromises.get(e);let t=this.fetchSvgContent(e);o.loadingPromises.set(e,t);try{let i=await t;return o.cache.set(e,i),i}finally{o.loadingPromises.delete(e);}}getCachedSvg(e){return o.cache.get(e)??null}async preloadIcons(e){let t=e.map(i=>this.getSvg(i).catch(s=>(Y$1.error(`Failed to preload icon: ${i}`,s),``)));await Promise.all(t);}clearCache(){o.cache.clear(),o.loadingPromises.clear();}async fetchSvgContent(e){let t=`${fe$3.baseURL}/svg/${e}.svg`;try{return (await pn$3(t,{cache:`force-cache`,headers:{Accept:`image/svg+xml,text/plain`}})).data}catch(i){return Y$1.error(`Unable to get the icon: ${e}`,i),``}}static ɵfac=function(t){return new(t||o)};static ɵprov=C({token:o,factory:o.ɵfac,providedIn:`root`})};var ye$2=class o{name=SN.required();rawSvg=jt$1(``);sanitisedSvg=Wv(()=>this.sanitizer.bypassSecurityTrustHtml(this.rawSvg()));sanitizer=g(_C);iconService=g(ot$1);constructor(){Ss(()=>{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=gf({type:o,selectors:[[`cooee-icon`]],hostAttrs:[`role`,`img`],hostVars:2,hostBindings:function(t,i){t&2&&(kf(`innerHTML`,i.sanitisedSvg(),fm),Sf(`aria-label`,i.name()));},inputs:{name:[1,`name`]},decls:0,vars:0,template:function(t,i){},encapsulation:2})};
15
+
16
+ var Qt=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,i){this._renderer=e,this._elementRef=i;}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i);}registerOnTouched(e){this.onTouched=e;}registerOnChange(e){this.onChange=e;}setDisabledState(e){this.setProperty(`disabled`,e);}static ɵfac=function(i){return new(i||t)(K(fr),K(be$1))};static ɵdir=wn$2({type:t})}return t})(),Ft=(()=>{class t extends Qt{static ɵfac=(()=>{let e;return function(o){return (e||(e=Ul(t)))(o||t)}})();static ɵdir=wn$2({type:t,features:[Ya]})}return t})(),kt=new w$1(``);var Xt=new w$1(``,{factory:()=>Pt}),Pt=`always`;var Yt={provide:kt,useExisting:Ln$2(()=>Rt),multi:true};function Nt(t,n){return t==null?`${n}`:(n&&typeof n==`object`&&(n=`Object`),`${t}: ${n}`.slice(0,50))}function en(t){return t.split(`:`)[0]}var Rt=(()=>{class t extends Ft{value;_optionMap=new Map;_idCounter=0;set compareWith(e){this._compareWith=e;}_compareWith=Object.is;appRefInjector=g(mt$2).injector;destroyRef=g(qe);cdr=g(Tp);_queuedWrite=false;_writeValueAfterRender(){this._queuedWrite||this.appRefInjector.destroyed||(this._queuedWrite=true,wd({write:()=>{this.destroyRef.destroyed||(this._queuedWrite=false,this.writeValue(this.value));}},{injector:this.appRefInjector}));}writeValue(e){this.cdr.markForCheck(),this.value=e;let o=Nt(this._getOptionId(e),e);this.setProperty(`value`,o);}registerOnChange(e){this.onChange=i=>{this.value=this._getOptionValue(i),e(this.value);};}_registerOption(){return (this._idCounter++).toString()}_getOptionId(e){for(let i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i),e))return i;return null}_getOptionValue(e){let i=en(e);return this._optionMap.has(i)?this._optionMap.get(i):e}static ɵfac=(()=>{let e;return function(o){return (e||(e=Ul(t)))(o||t)}})();static ɵdir=wn$2({type:t,selectors:[[`select`,`formControlName`,``,3,`multiple`,``],[`select`,`formControl`,``,3,`multiple`,``],[`select`,`ngModel`,``,3,`multiple`,``]],hostBindings:function(i,o){i&1&&Lf(`change`,function(l){return o.onChange(l.target.value)})(`blur`,function(){return o.onTouched()});},inputs:{compareWith:`compareWith`},standalone:false,features:[up([Yt]),Ya]})}return t})(),jt=(()=>{class t{_element;_renderer;_select;id;constructor(e,i,o){this._element=e,this._renderer=i,this._select=o,this._select&&(this.id=this._select._registerOption());}set ngValue(e){this._select!=null&&(this._select._optionMap.set(this.id,e),this._setElementValue(Nt(this.id,e)),this._select._writeValueAfterRender());}set value(e){this._setElementValue(e),this._select?._writeValueAfterRender();}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,`value`,e);}ngOnDestroy(){this._select?._optionMap.delete(this.id),this._select?._writeValueAfterRender();}static ɵfac=function(i){return new(i||t)(K(be$1),K(fr),K(Rt,9))};static ɵdir=wn$2({type:t,selectors:[[`option`]],inputs:{ngValue:`ngValue`,value:`value`},standalone:false})}return t})(),tn={provide:kt,useExisting:Ln$2(()=>Bt),multi:true};function Tt(t,n){return t==null?`${n}`:(typeof n==`string`&&(n=`'${n}'`),n&&typeof n==`object`&&(n=`Object`),`${t}: ${n}`.slice(0,50))}function nn(t){return t.split(`:`)[0]}var Bt=(()=>{class t extends Ft{value;_optionMap=new Map;_idCounter=0;set compareWith(e){this._compareWith=e;}_compareWith=Object.is;writeValue(e){this.value=e;let i;if(Array.isArray(e)){let o=e.map(a=>this._getOptionId(a));i=(a,l)=>{a._setSelected(o.indexOf(l.toString())>-1);};}else i=(o,a)=>{o._setSelected(false);};this._optionMap.forEach(i);}registerOnChange(e){this.onChange=i=>{let o=[],a=i.selectedOptions;if(a!==void 0){let l=a;for(let p=0;p<l.length;p++){let _=l[p],A=this._getOptionValue(_.value);o.push(A);}}else {let l=i.options;for(let p=0;p<l.length;p++){let _=l[p];if(_.selected){let A=this._getOptionValue(_.value);o.push(A);}}}this.value=o,e(o);};}_registerOption(e){let i=(this._idCounter++).toString();return this._optionMap.set(i,e),i}_getOptionId(e){for(let i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i)._value,e))return i;return null}_getOptionValue(e){let i=nn(e);return this._optionMap.has(i)?this._optionMap.get(i)._value:e}static ɵfac=(()=>{let e;return function(o){return (e||(e=Ul(t)))(o||t)}})();static ɵdir=wn$2({type:t,selectors:[[`select`,`multiple`,``,`formControlName`,``],[`select`,`multiple`,``,`formControl`,``],[`select`,`multiple`,``,`ngModel`,``]],hostBindings:function(i,o){i&1&&Lf(`change`,function(l){return o.onChange(l.target)})(`blur`,function(){return o.onTouched()});},inputs:{compareWith:`compareWith`},standalone:false,features:[up([tn]),Ya]})}return t})(),Lt=(()=>{class t{_element;_renderer;_select;id;_value;constructor(e,i,o){this._element=e,this._renderer=i,this._select=o,this._select&&(this.id=this._select._registerOption(this));}set ngValue(e){this._select!=null&&(this._value=e,this._setElementValue(Tt(this.id,e)),this._select.writeValue(this._select.value));}set value(e){this._select?(this._value=e,this._setElementValue(Tt(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e);}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,`value`,e);}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,`selected`,e);}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value));}static ɵfac=function(i){return new(i||t)(K(be$1),K(fr),K(Bt,9))};static ɵdir=wn$2({type:t,selectors:[[`option`]],inputs:{ngValue:`ngValue`,value:`value`},standalone:false})}return t})();var on=(()=>{class t{static ɵfac=function(i){return new(i||t)};static ɵmod=In$2({type:t});static ɵinj=Mt$1({})}return t})();var Ht=(()=>{class t{static withConfig(e){return {ngModule:t,providers:[{provide:Xt,useValue:e.callSetDisabledState??Pt}]}}static ɵfac=function(i){return new(i||t)};static ɵmod=In$2({type:t});static ɵinj=Mt$1({imports:[on]})}return t})();var L=class t{engagementContext=g(Ke$1);eventData=g(Ge$2);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$2.ADD_TO_CART)i=`CE Add To Cart Clicked`;else if(n===he$2.GO_TO_PRODUCT)i=`CE View Item Clicked`;else if(n===he$2.OPEN_CART)i=`CE Open Cart Clicked`,o.triggerData.redirectBehaviour=ae$2.CART_DRAWER;else {Y$1.warn(`Unsupported CTA type: ${n}`);return}window.CooeeSDK.executeCTA(o,r({clickAction:{at:n}},e));let a=new Ir$1(i,this.eventData.props,o.triggerData);e?.video?a.setVideos(e.video):this.eventData.video&&a.setVideos(this.eventData.video),window.CooeeSDK.sendEvent(a);}static ɵfac=function(e){return new(e||t)};static ɵprov=C({token:t,factory:t.ɵfac})};function Gt(t,n){return [L,...an$1(t,n)]}function an$1(t,n){return [{provide:Ke$1,useValue:jt$1(t)},{provide:Ge$2,useValue:r({},n)}]}var Pe=class t{elementRef=g(be$1);engagementService=g(L);hasSwiper=false;_engagementTrigger=jt$1(null);_triggerContext=g(Ke$1);constructor(){this.elementRef.nativeElement.update=this.update.bind(this);}get classes(){let n=[`letscooee-widget`],e=this._engagementTrigger();return n.push(`widget-${e?.shortID}`),n}get triggerContext(){return this._triggerContext()}set triggerContext(n){this._triggerContext.set(n),this._engagementTrigger.set(n.triggerData),this.engagementTriggerReceived(n.triggerData);}get engagementTrigger(){return this._engagementTrigger()}ngOnInit(){Y$1.verbose(`Init`,this.constructor.name);let n=this.elementRef.nativeElement.shadowRoot;n&&(Hi$1(n,this.hasSwiper),le$2(this.engagementTrigger?.content?.innerCSS,n)),le$2(this.engagementTrigger?.content?.globalCSS);}ngOnDestroy(){Y$1.verbose(`Destroying`,this.constructor.name);}static ɵfac=function(e){return new(e||t)};static ɵcmp=gf({type:t,selectors:[[`ng-component`]],hostVars:2,hostBindings:function(e,i){e&2&&mv(i.classes);},inputs:{triggerContext:`triggerContext`},decls:1,vars:0,template:function(e,i){e&1&&xf(0);},encapsulation:2})};var sn$1=t=>({row:t}),Ge$1=(t,n)=>n.id;function ln$1(t,n){if(t&1&&(nc(0,`option`,4),Bv(1,`json`),Sv(2),rc()),t&2){let e=n.$implicit,i=KD().$implicit,o=KD(2);Mf(`value`,xv(Hv(1,5,e)))(`selected`,o.selectedOptions()[i.name]===e.name)(`disabled`,!!e.disabled),vd(2),lc(``,e.name,` `);}}function cn$1(t,n){if(t&1){let e=WD();nc(0,`select`,3,0),Lf(`change`,function(){let o=Iu(e).$implicit,a=tv(1);return wu(KD(2).onOptionChangeDropdown(o,a.value))}),VD(2,ln$1,3,7,`option`,4,BD),rc();}if(t&2){let e=n.$implicit;hv(KD(2).getCompiledStyle()),Mf(`name`,e.name),Sf(`aria-label`,e.name),vd(2),HD(e.optionValues);}}function dn$1(t,n){if(t&1&&(nc(0,`div`,1),VD(1,cn$1,4,4,`select`,2,Ge$1),rc()),t&2){let e=KD();Mf(`ngClass`,Pv(1,sn$1,e.horizontal())),vd(),HD(e.options());}}function un$1(t,n){if(t&1&&(nc(0,`span`,11),Sv(1),rc()),t&2){KD();let e=Rv(0);vd(),np(e);}}function pn$1(t,n){if(t&1){let e=WD();sp(0),nc(1,`button`,10),Lf(`click`,function(){let o=Iu(e).$implicit,a=KD().$implicit;return wu(KD(2).onOptionChange(a,o))}),LD(2,un$1,2,1,`span`,11),rc();}if(t&2){let e=n.$implicit,i=KD().$implicit,o=Rv(1),a=KD(2),l=e.name,p=Av(e.displayName||e.name),_=e.swatch,A=o?e.hexColor??l:``,be=a.selectedOptions()[i.name]===l,Ue=!!(_!=null&&_.color),ze=!!(!(_==null||_.image==null)&&_.image.url);vd(),uc(`swatch-color-type`,Ue)(`swatch-image-type`,ze)(`selected`,be)(`disabled`,e.disabled),Mf(`title`,p)(`ngStyle`,a.getSwatchStyles(_,A)),Sf(`aria-checked`,be?`true`:`false`)(`data-value`,l)(`aria-disabled`,e.disabled?`true`:null)(`aria-label`,p),vd(),PD(!o&&!Ue&&!ze?2:-1);}}function mn$1(t,n){if(t&1&&(nc(0,`div`),sp(1),nc(2,`div`,6),Sv(3),rc(),nc(4,`div`,7),Sv(5),rc(),nc(6,`div`,8),VD(7,pn$1,3,16,`button`,9,Ge$1),rc()()),t&2){let e=n.$implicit,i=KD(2);mv(Ov(`option-group `,e.name.toLowerCase())),vd(),Av(i.hasHexColors(e)),vd(2),lc(``,e.name,`:`),vd(2),np(i.selectedOptions()[e.name]),vd(),Sf(`aria-label`,e.name),vd(),HD(e.optionValues);}}function fn$1(t,n){if(t&1&&VD(0,mn$1,9,7,`div`,5,Ge$1),t&2)HD(KD().options());}var ye$1=t=>t.trim().toLowerCase(),Ne=class t extends Pe{selectedVariant=new Ce$1;item=SN.required();dropdownType=SN(void 0);horizontal=SN(void 0);styles=SN(void 0);selectedOptions=jt$1({});options=Wv(()=>{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=Wv(()=>{let n=this.item(),e=this.selectedOptions();return n.vars.find(i=>n.options.every(o=>{let a=i.selectedOptions.find(l=>l.name===o.name)?.value;return e[o.name]===a}))});DropdownType=Ee$2;availabilityIndex=Wv(()=>{let n=this.item(),e=new Map;return n?.vars?.length&&n.vars.forEach((i,o)=>{if(i.isAvailable)for(let a of i.selectedOptions){let l=ye$1(a.name),p=a.value,_=e.get(l);_||e.set(l,_=new Map);let A=_.get(p);A||_.set(p,A=new Set),A.add(o);}}),e});constructor(){super(),Ss(()=>{let e=this.matchedVariant();e&&(this.item().setSelectedVariant(e),this.selectedVariant.emit(e));});let n=Ss(()=>{let e=this.item();if(!e?.options)return;let i=r({},this.selectedOptions()),o=e.vars.find(a=>a.isAvailable)??e.vars[0];e.options.forEach(a=>{let l=o?.selectedOptions.find(p=>p.name===a.name)?.value;l&&(i[a.name]=l);}),this.selectedOptions.set(i),n.destroy();});}ngOnInit(){super.ngOnInit();let n=this.elementRef.nativeElement.shadowRoot;if(!n)return;let e=le$3.get().website?.itemSwatchMapping;e&&le$2(e,n);}onOptionChange(n,e){let i=r({},this.selectedOptions());i[n.name]=e.name,this.selectedOptions.set(i);}onOptionChangeDropdown(n,e){let i=JSON.parse(e);this.onOptionChange(n,i);}engagementTriggerReceived(){}update(){}hasHexColors(n){return !!n.optionValues[0]?.name.match(/#[a-f0-9]{6}\b/i)}getSwatchStyles(n,e){let i={};return !n&&e?(i[`--option-color`]=e,i[`background-color`]=e,i):(n?.image?.url?i[`background-image`]=`url("${n.image.url}")`:n?.color&&(i[`--option-color`]=n.color,i[`background-color`]=n.color),i)}getCompiledStyle(){if(!this.styles())return {};let n=this.styles(),e=n.lg;M$3()&&n.sm&&Object.keys(n.sm).length&&(e=r(r({},e),n.sm));let i=s(r(r(r(r({},In$3(e.bg)),Nn$4(e.br)),gn$3(e.size)),Sn$3(e.spc)),{boxSizing:`border-box`,outline:`none`});return this.item().vars?.length===1&&this.item().vars[0].name===`Default Title`&&(i.visibility=`hidden`),r(r({},i),On$3(e.typo))}getCandidateVariantsExcluding(n){let e=this.item(),i=this.availabilityIndex(),o=new Set;e.vars.forEach((l,p)=>{l.isAvailable&&o.add(p);});let a=o;for(let[l,p]of Object.entries(this.selectedOptions())){if(ye$1(l)===ye$1(n))continue;let _=i.get(ye$1(l));if(!_)return new Set;let A=_.get(String(p));if(!A)return new Set;if(a=new Set([...a].filter(be=>A.has(be))),a.size===0)return a}return a}isOptionValueDisabledFast(n,e){let o=this.availabilityIndex().get(ye$1(n.name));if(!o)return true;let a=e.name,l=o.get(a);if(!l||l.size===0)return true;let p=this.getCandidateVariantsExcluding(n.name);if(p.size===0)return true;for(let _ of p)if(l.has(_))return false;return true}static ɵfac=function(e){return new(e||t)};static ɵcmp=gf({type:t,selectors:[[`cooee-item-options-picker`]],inputs:{item:[1,`item`],dropdownType:[1,`dropdownType`],horizontal:[1,`horizontal`],styles:[1,`styles`]},outputs:{selectedVariant:`selectedVariant`},features:[up(Gt()),Ya],decls:2,vars:1,consts:[[`sel`,``],[1,`dropdowns-wrapper`,3,`ngClass`],[1,`variant-selector`,3,`name`,`style`],[1,`variant-selector`,3,`change`,`name`],[3,`value`,`selected`,`disabled`],[3,`class`],[1,`name`],[1,`selected-value`],[`role`,`radiogroup`,1,`option-values`],[`type`,`button`,`role`,`radio`,1,`option-value`,3,`swatch-color-type`,`swatch-image-type`,`selected`,`disabled`,`title`,`ngStyle`],[`type`,`button`,`role`,`radio`,1,`option-value`,3,`click`,`title`,`ngStyle`],[1,`title`]],template:function(e,i){e&1&&LD(0,dn$1,3,3,`div`,1)(1,fn$1,2,0),e&2&&PD(i.dropdownType()===i.DropdownType.MULTIPLE?0:1);},dependencies:[Xp,YE,QE,Ht,jt,Lt,eC],styles:[`.option-group{display:flex;gap:4px;align-items:center}.option-group+.option-group{margin-top:8px}.option-values{display:flex;flex-wrap:nowrap;overflow-x:auto;padding:6px;gap:4px;scrollbar-gutter:stable both-edges;scrollbar-width:none}.option-values::-webkit-scrollbar{display:none}.selected-value{display:none}.option-value{padding:5px 10px;border:1px solid #ccc;cursor:pointer;border-radius:4px;min-width:32px;min-height:32px;text-align:center;position:relative;flex-shrink:0;--selected-color: var(--option-color, rgba(var(--lc-primary-button-bg-color, 0 0 0)));background-size:cover;background-position:center;background-repeat:no-repeat}.option-value.selected{box-shadow:#fff 0 0 0 2px,var(--selected-color) 0 0 0 4px}.option-value.disabled{opacity:.5;pointer-events:none}.dropdowns-wrapper{display:flex;gap:4px;flex-wrap:nowrap;width:100%;flex-direction:column}.dropdowns-wrapper.row{flex-direction:row}
17
+ `],encapsulation:3})};function Ut(t){t||(t=g(qe));let n=new m$1(e=>{if(t.destroyed){e.next();return}return t.onDestroy(e.next.bind(e))});return e=>e.pipe(pi$2(n))}var pe=class t{transform(n){return n==null?null:Vr$1(n)}static ɵfac=function(e){return new(e||t)};static ɵpipe=pr({name:`cooeeCurrency`,type:t,pure:true})};var me=class t{cooeeButtonCustomisation=SN.required();buttonDisabled=SN(false);buttonDefaultText=SN(``);buttonDisabledText=SN(``);el=g(be$1);renderer=g(fr);sanitizer=g(_C);envInjector=g(re$1);appRef=g(mt$2);iconRef=null;constructor(){Ss(()=>this.render());}get flexDirection(){let n=this.getConfig();return n?.iconHtml?n.iconPosition===`BEFORE`?`row`:`row-reverse`:null}ngOnDestroy(){this.destroyIcon();}getConfig(){return le$3.get().widgetCustomisation?.[this.cooeeButtonCustomisation()]}render(){let n=this.getConfig(),e=this.buttonDisabled(),i=this.el.nativeElement;this.destroyIcon(),i.textContent=``,e?(n?.iconHtml&&this.appendCooeeIcon(i,`unavailable`),this.renderer.appendChild(i,this.renderer.createText(this.buttonDisabledText()))):(n?.iconHtml&&this.appendCustomIcon(i,n.iconHtml),this.renderer.appendChild(i,this.renderer.createText(n?.text||this.buttonDefaultText())));}appendCooeeIcon(n,e){let i=this.renderer.createElement(`span`);this.renderer.setAttribute(i,`aria-hidden`,`true`),this.renderer.appendChild(n,i),this.iconRef=Mp(ye$2,{environmentInjector:this.envInjector,hostElement:i}),this.iconRef.setInput(`name`,e),this.appRef.attachView(this.iconRef.hostView);}appendCustomIcon(n,e){let i=this.renderer.createElement(`div`);i.innerHTML=this.sanitizer.sanitize(Ne$2.HTML,this.sanitizer.bypassSecurityTrustHtml(e))??``;let o=i.firstElementChild;o&&this.renderer.appendChild(n,o);}destroyIcon(){this.iconRef&&(this.appRef.detachView(this.iconRef.hostView),this.iconRef.destroy(),this.iconRef=null);}static ɵfac=function(e){return new(e||t)};static ɵdir=wn$2({type:t,selectors:[[`button`,`cooeeButtonCustomisation`,``]],hostVars:2,hostBindings:function(e,i){e&2&&cc(`flex-direction`,i.flexDirection);},inputs:{cooeeButtonCustomisation:[1,`cooeeButtonCustomisation`],buttonDisabled:[1,`buttonDisabled`],buttonDefaultText:[1,`buttonDefaultText`],buttonDisabledText:[1,`buttonDisabledText`]}})};function hn$1(t,n){if(t&1&&(bf(0,`span`,6),Bv(1,`cooeeCurrency`),Bv(2,`safeHtml`)),t&2){KD();Mf(`innerHTML`,Hv(2,3,Hv(1,1,Rv(7).cmp)),fm);}}function gn$1(t,n){if(t&1&&(nc(0,`span`,8),Sv(1),rc()),t&2){KD();let e=Rv(14);vd(),lc(` `,e,`% off `);}}function _n$1(t,n){if(t&1){let e=WD();nc(0,`button`,15),Lf(`click`,function(o){Iu(e);return wu(KD().addToCartClicked(o))}),rc();}if(t&2){let e=KD();Mf(`disabled`,e.isButtonDisabled())(`buttonDisabled`,e.isButtonDisabled());}}var fe=class t{buttonClick=TN();item=SN.required();isButtonDisabled=Wv(()=>{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=gf({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`,`cooeeButtonCustomisation`,`atcButton`,`buttonDefaultText`,`Add To Cart`,`buttonDisabledText`,`Out of Stock`,1,`cta-button`,3,`disabled`,`buttonDisabled`],[`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`,`cooeeButtonCustomisation`,`atcButton`,`buttonDefaultText`,`Add To Cart`,`buttonDisabledText`,`Out of Stock`,1,`cta-button`,3,`click`,`disabled`,`buttonDisabled`]],template:function(e,i){if(e&1&&(ic(0),nc(1,`div`,0),bf(2,`img`,1),nc(3,`div`,2)(4,`div`,3),Sv(5),rc(),nc(6,`div`,4),sp(7),bf(8,`span`,5),Bv(9,`cooeeCurrency`),Bv(10,`safeHtml`),LD(11,hn$1,3,5,`span`,6),rc(),nc(12,`a`,7),Lf(`click`,function(a){return a.stopPropagation()}),Sv(13,` Shop now `),rc(),sp(14),LD(15,gn$1,2,1,`span`,8),rc(),nc(16,`button`,9),bf(17,`cooee-icon`,10),rc()(),nc(18,`div`,11),LD(19,_n$1,1,2,`button`,12),nc(20,`a`,13),bf(21,`img`,14),rc()(),Ko()),e&2){let o=i.item().selectedOrFirstVariant.value;vd(2),Mf(`alt`,xv(i.item().name))(`src`,i.item().firstImageURL,pm),vd(3),lc(` `,i.item().name,` `),vd(2);let a=Av(o.price);vd(),Mf(`innerHTML`,Hv(10,14,Hv(9,12,a.d)),fm),vd(3),PD(a.cmp?11:-1),vd(),Mf(`href`,`/products/`+i.item().slug,pm),vd(2);let l=Av(i.getDiscountPercentage(o.price));vd(),PD(l>0?15:-1),vd(),Tf(`aria-label`,Ov(`View product details for `,i.item().name)),vd(3),PD(i.item().showAddToCartButton?19:-1);}},dependencies:[ye$2,me,pe,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 vn$1=t=>({active:t}),Cn$1=(t,n)=>n.mID;function yn$1(t,n){t&1&&Af(0);}function bn$1(t,n){t&1&&Af(0);}function Dn$1(t,n){t&1&&Af(0);}function xn$1(t,n){if(t&1&&(nc(0,`div`,11)(1,`div`,12),Sv(2,`Shop Now`),rc(),Ef(3,yn$1,1,0,`ng-container`,10),rc(),nc(4,`div`,13),Ef(5,bn$1,1,0,`ng-container`,10),nc(6,`div`,14),Ef(7,Dn$1,1,0,`ng-container`,10),rc()()),t&2){KD(2);let e=tv(4),i=tv(6),o=tv(8);vd(3),Mf(`ngTemplateOutlet`,e),vd(2),Mf(`ngTemplateOutlet`,i),vd(2),Mf(`ngTemplateOutlet`,o);}}function wn$1(t,n){t&1&&Af(0);}function Vn$1(t,n){t&1&&Af(0);}function Mn$1(t,n){t&1&&Af(0);}function In$1(t,n){t&1&&Af(0);}function En$1(t,n){t&1&&Af(0);}function Sn$1(t,n){if(t&1&&(nc(0,`div`,15),bf(1,`cooee-item-card`,16),Ef(2,wn$1,1,0,`ng-container`,10),rc(),nc(3,`div`,13)(4,`div`,17),Ef(5,Vn$1,1,0,`ng-container`,10)(6,Mn$1,1,0,`ng-container`,10)(7,In$1,1,0,`ng-container`,10)(8,En$1,1,0,`ng-container`,10),rc()()),t&2){let e=KD(2),i=tv(4),o=tv(6),a=tv(10),l=tv(12),p=tv(14);vd(),Mf(`item`,e.item()),vd(),Mf(`ngTemplateOutlet`,i),vd(3),Mf(`ngTemplateOutlet`,p),vd(),Mf(`ngTemplateOutlet`,o),vd(),Mf(`ngTemplateOutlet`,l),vd(),Mf(`ngTemplateOutlet`,a);}}function An$1(t,n){t&1&&Af(0);}function On$1(t,n){if(t&1&&(nc(0,`div`,7),LD(1,xn$1,8,3)(2,Sn$1,9,6),nc(3,`div`,9),Ef(4,An$1,1,0,`ng-container`,10),rc()()),t&2){let e=KD(),i=tv(16),o=e.template()===e.ItemDetailTemplate.CLASSIC;vd(),PD(o?1:2),vd(3),Mf(`ngTemplateOutlet`,i);}}function Tn$1(t,n){t&1&&Af(0);}function Fn$1(t,n){t&1&&Af(0);}function kn$1(t,n){t&1&&Af(0);}function Pn$1(t,n){t&1&&Af(0);}function Nn$1(t,n){if(t&1&&(nc(0,`div`,8)(1,`div`,18),Ef(2,Tn$1,1,0,`ng-container`,10),rc(),nc(3,`div`,17),Ef(4,Fn$1,1,0,`ng-container`,10)(5,kn$1,1,0,`ng-container`,10)(6,Pn$1,1,0,`ng-container`,10),rc()()),t&2){KD();let e=tv(4),i=tv(6),o=tv(8),a=tv(16);vd(2),Mf(`ngTemplateOutlet`,i),vd(2),Mf(`ngTemplateOutlet`,e),vd(),Mf(`ngTemplateOutlet`,o),vd(),Mf(`ngTemplateOutlet`,a);}}function Rn$1(t,n){if(t&1){let e=WD();nc(0,`button`,19),Lf(`click`,function(){Iu(e);return wu(KD().close())}),bf(1,`cooee-icon`,20),rc();}}function jn$1(t,n){if(t&1&&bf(0,`img`,22),t&2){let e=n.$implicit,i=KD(2);Mf(`src`,e.url,pm)(`alt`,e.alt??i.item().name);}}function Bn$1(t,n){if(t&1&&(nc(0,`div`,21),VD(1,jn$1,1,2,`img`,22,jD),rc()),t&2){let e=KD();vd(),HD(e.item().imgs);}}function Ln$1(t,n){if(t&1&&(bf(0,`span`,25),Bv(1,`cooeeCurrency`),Bv(2,`safeHtml`)),t&2){KD(2);Mf(`innerHTML`,Hv(2,3,Hv(1,1,Rv(2).d)),fm);}}function Hn$1(t,n){if(t&1&&(bf(0,`span`,26),Bv(1,`cooeeCurrency`),Bv(2,`safeHtml`),nc(3,`span`,27),Sv(4),Bv(5,`number`),rc()),t&2){KD(2);let e=Rv(2);KD();let i=Rv(0);Mf(`innerHTML`,Hv(2,4,Hv(1,2,e.cmp)),fm),vd(4),lc(``,$v(5,6,i.compareDiscountPercentage.value,`1.0-0`),`% off`);}}function Gn$1(t,n){if(t&1&&(nc(0,`div`,24),LD(1,Ln$1,3,5,`span`,25),LD(2,Hn$1,6,9),rc()),t&2){KD();let e=Rv(2);vd(),PD(e.d?1:-1),vd(),PD(e.cmp?2:-1);}}function Un$1(t,n){t&1&&Af(0);}function zn$1(t,n){t&1&&Af(0);}function $n$1(t,n){t&1&&Af(0);}function Wn$1(t,n){if(t&1&&(nc(0,`div`,23),Sv(1),rc(),sp(2),LD(3,Gn$1,3,2,`div`,24),Ef(4,Un$1,1,0,`ng-container`,10)(5,zn$1,1,0,`ng-container`,10)(6,$n$1,1,0,`ng-container`,10)),t&2){let e=KD(),i=tv(10),o=tv(12),a=tv(14),l=Rv(0);vd(),np(e.item().name),vd();let p=Av(l.price);vd(),PD(p?3:-1),vd(),Mf(`ngTemplateOutlet`,o),vd(),Mf(`ngTemplateOutlet`,a),vd(),Mf(`ngTemplateOutlet`,i);}}function qn$1(t,n){if(t&1&&(nc(0,`div`,28),Sv(1,`Description`),rc(),bf(2,`div`,29),Bv(3,`safeHtml`)),t&2){let e=KD(2);vd(2),Mf(`innerHTML`,Hv(3,1,e.item().desc),fm);}}function Kn$1(t,n){if(t&1&&LD(0,qn$1,4,3),t&2)PD(KD().item().desc?0:-1);}function Zn$1(t,n){if(t&1){let e=WD();nc(0,`a`,33),Lf(`click`,function(o){let a=Iu(e).$implicit;return wu(KD(3).changeItem(o,a))}),bf(1,`img`,22),rc();}if(t&2){let e=n.$implicit,i=KD(3);Mf(`ngClass`,Pv(3,vn$1,e.mID===i.item().mID+``)),vd(),Mf(`src`,e.firstImageURL,pm)(`alt`,i.item().name);}}function Jn$1(t,n){if(t&1&&(nc(0,`span`,30),Sv(1,`Select product`),rc(),nc(2,`div`,31),VD(3,Zn$1,2,5,`a`,32,Cn$1),rc()),t&2){let e=KD(2);vd(3),HD(e.similarItems());}}function Qn$1(t,n){if(t&1&&LD(0,Jn$1,5,0),t&2)PD(KD().similarItems().length>1?0:-1);}function Xn$1(t,n){if(t&1&&(nc(0,`span`,34),Sv(1,`Select variant`),rc(),bf(2,`cooee-item-options-picker`,16)),t&2){let e=KD(2);vd(2),Mf(`item`,e.item());}}function Yn$1(t,n){if(t&1&&LD(0,Xn$1,3,1),t&2)PD(KD().item().hasVariants()?0:-1);}function ei(t,n){if(t&1){let e=WD();nc(0,`button`,41),Lf(`click`,function(){Iu(e);return wu(KD(2).clickAddToCart())}),rc();}if(t&2){KD(2);let e=Rv(0);Mf(`disabled`,!e.isAvailable)(`buttonDisabled`,!e.isAvailable);}}function ti(t,n){if(t&1&&(nc(0,`span`,40),Sv(1),rc()),t&2){let e=KD(2);vd(),np(e.currentVideoCartItemsCount());}}function ni(t,n){if(t&1){let e=WD();nc(0,`div`,35),LD(1,ei,1,2,`button`,36),nc(2,`button`,37),Lf(`click`,function(){Iu(e);return wu(KD().goToPDP())}),rc(),nc(3,`button`,38),Lf(`click`,function(){Iu(e);return wu(KD().openCart())}),bf(4,`img`,39),LD(5,ti,2,1,`span`,40),rc()();}if(t&2){let e=KD();vd(),PD(e.item().showAddToCartButton?1:-1),vd(4),PD(e.currentVideoCartItemsCount()?5:-1);}}var zt=class t$1{closeClick=new Ce$1;atcSuccess=new Ce$1;layout=bN(`SINGLE_PANE`);item=bN.required();similarItems=SN([]);template=SN(`CLASSIC`);video=SN();cartItems=jt$1([]);currentVideoCartItemsCount=Wv(()=>{let n=this.item(),e=this.cartItems();return !n||!e.length?0:e.filter(i=>i.mID===n.mID).reduce((i,o)=>i+o.quantity,0)});ItemDetailTemplate=ne$2;engagementService=g(L);destroyRef=g(qe);lastLayout=null;resizeObserver=new t(()=>{M$3()?(this.lastLayout===null&&(this.lastLayout=this.layout()),this.layout.set(`SINGLE_PANE`)):this.lastLayout!==null&&(this.layout.set(this.lastLayout),this.lastLayout=null);});ngOnInit(){this.subscribeToCartChanges();}ngOnDestroy(){this.resizeObserver.destroy();}close(){this.closeClick.emit();}clickAddToCart(){this.engagementService.executeCTA(he$2.ADD_TO_CART,{item:this.item(),video:this.video()}),this.atcSuccess.emit(),this.close();}openCart(){this.engagementService.executeCTA(he$2.OPEN_CART,{video:this.video()});}changeItem(n,e){n.stopPropagation(),n.preventDefault(),this.item.set(e);}goToPDP(){this.engagementService.executeCTA(he$2.GO_TO_PRODUCT,{item:this.item(),video:this.video()});}isSinglePane(){return this.layout()!==`TWO_PANE`||M$3()}subscribeToCartChanges(){window.CooeeSDK.cartChange$.pipe(_e$3({cart:window.CooeeSDK.cart.getCooeeCart()}),Ut(this.destroyRef)).subscribe(n=>{this.cartItems.set(n.cart?.items??[]);});}static ɵfac=function(e){return new(e||t$1)};static ɵcmp=gf({type:t$1,selectors:[[`cooee-item-detail`]],hostAttrs:[1,`letscooee-widget`],inputs:{layout:[1,`layout`],item:[1,`item`],similarItems:[1,`similarItems`],template:[1,`template`],video:[1,`video`]},outputs:{closeClick:`closeClick`,atcSuccess:`atcSuccess`,layout:`layoutChange`,item:`itemChange`},features:[up([L])],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-item-discount-label`,`item-discount-label`],[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`,`cooeeButtonCustomisation`,`atcButton`,`buttonDefaultText`,`Add To Cart`,`buttonDisabledText`,`Out of stock`,1,`lc-cta-button`,`cta-button`,3,`disabled`,`buttonDisabled`],[`type`,`button`,`cooeeButtonCustomisation`,`moreInfoButton`,`buttonDefaultText`,`More Info`,1,`lc-more-info-button`,`more-info-button`,3,`click`],[`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`,`cooeeButtonCustomisation`,`atcButton`,`buttonDefaultText`,`Add To Cart`,`buttonDisabledText`,`Out of stock`,1,`lc-cta-button`,`cta-button`,3,`click`,`disabled`,`buttonDisabled`]],template:function(e,i){e&1&&(sp(0),LD(1,On$1,5,2,`div`,7)(2,Nn$1,7,4,`div`,8),Ef(3,Rn$1,2,0,`ng-template`,null,0,Uv)(5,Bn$1,3,0,`ng-template`,null,1,Uv)(7,Wn$1,7,6,`ng-template`,null,2,Uv)(9,Kn$1,1,1,`ng-template`,null,3,Uv)(11,Qn$1,1,1,`ng-template`,null,4,Uv)(13,Yn$1,1,1,`ng-template`,null,5,Uv)(15,ni,6,2,`ng-template`,null,6,Uv)),e&2&&(Av(i.item().selectedOrFirstVariant.value),vd(),PD(i.isSinglePane()?1:2));},dependencies:[YE,Ne,ye$2,KE,fe,me,a,pe,tC],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)}.item-discount-label[_ngcontent-%COMP%]{font-size:12px;font-weight:500;color:green;margin-left:10px;display:none}.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}.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 ii=[[[`swiper-slides`]]],oi=[`swiper-slides`],ri=(t,n)=>({"--swiper-navigation-size":t,color:n}),ai=t=>({color:t,bottom:0,top:`unset`,position:`relative`});function si(t,n){if(t&1&&(Yo(0,`div`,2),oc(1,`span`),Qo(),Yo(2,`div`,3),oc(3,`span`),Qo()),t&2){let e,i,o=KD(),a=((e=o.navigationConfig())==null?null:e.size)??50,l=((i=o.navigationConfig())==null||i.color==null?null:i.color.rgba)??`white`,p=jv(4,ri,a+`px`,l);hv(p),vd(2),hv(p);}}function li(t,n){if(t&1&&(Yo(0,`div`,4),oc(1,`span`),Qo()),t&2){let e;hv(Pv(2,ai,((e=KD().paginationConfig())==null||e.color==null?null:e.color.rgba)??`white`));}}var $t=class t$2{options=SN.required();navigationConfig=SN();paginationConfig=SN();slideChange=TN();elementRef=g(be$1);swiperInstance;initToken=0;resizeDebouncer=new t(this.onResize.bind(this));constructor(){Ss(()=>{this.options()&&this.reInitSwiper();});}get swiper(){return this.swiperInstance}ngOnDestroy(){this.resizeDebouncer?.destroy(),this.swiperInstance?.destroy?.(),this.swiperInstance=void 0;}async initSwiper(n=this.initToken){if(await Vi$1(),n!==this.initToken){Y$1.warn(`Swiper token not matching`);return}let e=this.elementRef.nativeElement,i={nextEl:e.querySelector(`.swiper-button-next`),prevEl:e.querySelector(`.swiper-button-prev`),enabled:this.navigationConfig()?.enabled},o=this.paginationConfig(),a={el:e.querySelector(`.swiper-pagination`),enabled:this.paginationConfig()?.enabled,type:this.paginationConfig()?.type,clickable:true,renderBullet:function(l,p){return `
18
+ <span class="${p}"
19
+ style="background-color: ${o?.color?.rgba};"></span>
20
+ `},renderProgressbar:l=>`
21
+ <span class="${l}"
22
+ style="background-color: ${o?.color?.rgba};">
23
+ </span>
24
+ `};this.swiperInstance=new window.CooeeSDK.Swiper(e,r({navigation:i,pagination:a},this.options())),this.swiperInstance.on(`slideChange`,l=>{this.slideChange.emit(l);});}onResize(){this.swiperInstance?(Y$1.verbose(`Updating swiper`),this.swiperInstance.update()):(Y$1.verbose(`Reinitialising swiper`),this.reInitSwiper());}reInitSwiper(){this.initToken++;let n=this.initToken;this.swiperInstance?.destroy?.(),this.swiperInstance=void 0,this.initSwiper(n);}static ɵfac=function(e){return new(e||t$2)};static ɵcmp=gf({type:t$2,selectors:[[`cooee-swiper`]],hostAttrs:[1,`swiper`],inputs:{options:[1,`options`],navigationConfig:[1,`navigationConfig`],paginationConfig:[1,`paginationConfig`]},outputs:{slideChange:`slideChange`},ngContentSelectors:oi,decls:4,vars:2,consts:[[1,`swiper-wrapper`],[1,`swiper-pagination`,3,`style`],[1,`swiper-button-prev`],[1,`swiper-button-next`],[1,`swiper-pagination`]],template:function(e,i){if(e&1&&(Bf(ii),Yo(0,`div`,0),Vf(1),Qo(),LD(2,si,4,7),LD(3,li,2,4,`div`,1)),e&2){let o,a;vd(2),PD((o=i.navigationConfig())!=null&&o.enabled?2:-1),vd(),PD((a=i.paginationConfig())!=null&&a.enabled?3:-1);}},styles:[`:host{display:block}.swiper-wrapper{scrollbar-width:none}.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-wrapper{display:flex}.swiper .swiper-button-prev,.swiper .swiper-button-next{background:rgba(var(--lc-icon-button-bg-color));width:var(--lc-icon-button-size);height:var(--lc-icon-button-size);border-radius:100%}.swiper .swiper-button-prev:after,.swiper .swiper-button-next:after{font-size:20px;color:rgba(var(--lc-icon-button-color))}
25
+ `],encapsulation:2})};function ci(t,n){if(t&1&&(Yo(0,`span`,1),Sv(1),Qo()),t&2){KD();let e=Rv(0);vd(),np(e.heading);}}function di(t,n){if(t&1&&(Yo(0,`span`,2),Sv(1),Qo()),t&2){KD();let e=Rv(0);vd(),np(e.subHeading);}}var Wt=class t{card=SN.required();linkClicked=TN();linkAfterSanity(){return this.card()?.buttonLink?.startsWith(`https`)?this.card().buttonLink:null}clickLink(n){n.stopPropagation(),this.linkClicked.emit();}static ɵfac=function(e){return new(e||t)};static ɵcmp=gf({type:t,selectors:[[`cooee-video-card`]],inputs:{card:[1,`card`]},outputs:{linkClicked:`linkClicked`},decls:6,vars:6,consts:[[1,`video-card-details`],[1,`heading`],[1,`subheading`],[`rel`,`noopener noreferrer`,1,`cta-button`,3,`click`,`href`,`target`]],template:function(e,i){if(e&1&&(sp(0),Yo(1,`div`,0),LD(2,ci,2,1,`span`,1),LD(3,di,2,1,`span`,2),Yo(4,`a`,3),Pf(`click`,function(a){return i.clickLink(a)}),Sv(5),Qo()()),e&2){let o=Av(i.card());vd(2),PD(o!=null&&o.heading?2:-1),vd(),PD(o!=null&&o.subHeading?3:-1),vd(),kf(`href`,i.linkAfterSanity(),pm)(`target`,o.newTab?`_blank`:`_self`),vd(),lc(` `,o==null?null:o.buttonTitle,` `);}},styles:[`[_nghost-%COMP%]{display:block}.video-card-details[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:3.75px;font-size:14px;line-height:normal}.video-card-details[_ngcontent-%COMP%] .cta-button[_ngcontent-%COMP%]{text-align:center;background-color:#fff;border-radius:var(--lc-button-radius);padding:7.5px 15px;font-weight:var(--lc-primary-button-weight);color:rgba(var(--lc-primary-button-bg-color));font-size:var(--lc-button-size);border-width:var(--lc-primary-button-border-width, 0);text-decoration:none}.video-card-details[_ngcontent-%COMP%] .heading[_ngcontent-%COMP%], .video-card-details[_ngcontent-%COMP%] .subheading[_ngcontent-%COMP%]{text-align:start;color:#000;font-weight:600;overflow:hidden}.video-card-details[_ngcontent-%COMP%] .heading[_ngcontent-%COMP%]{font-size:18px}.video-card-details[_ngcontent-%COMP%] .subheading[_ngcontent-%COMP%]{font-size:16px}`],changeDetection:0})};function ui(t,n){t&1&&bf(0,`cooee-icon`,1);}function pi(t,n){t&1&&bf(0,`cooee-icon`,2);}var qt=class t{muted=bN.required();videoEl=SN.required();toggled=TN();constructor(){Ss(()=>{this.videoEl().muted=this.muted(),this.muted()||this.videoEl().play();});}toggle(n){n.stopPropagation(),n.preventDefault(),this.muted.update(e=>!e),this.toggled.emit(this.muted());}static ɵfac=function(e){return new(e||t)};static ɵcmp=gf({type:t,selectors:[[`cooee-mute-toggle`]],inputs:{muted:[1,`muted`],videoEl:[1,`videoEl`]},outputs:{muted:`mutedChange`,toggled:`toggled`},decls:3,vars:5,consts:[[`type`,`button`,3,`click`],[`name`,`unmute`],[`name`,`mute`]],template:function(e,i){e&1&&(nc(0,`button`,0),Lf(`click`,function(a){return i.toggle(a)}),LD(1,ui,1,0,`cooee-icon`,1)(2,pi,1,0,`cooee-icon`,2),rc()),e&2&&(uc(`unmute`,!i.muted()),Sf(`aria-label`,i.muted()?`Unmute video`:`Mute video`)(`aria-pressed`,i.muted()),vd(),PD(i.muted()?1:2));},dependencies:[ye$2],styles:[`button[_ngcontent-%COMP%]{width:var(--lc-icon-button-size, 44px);height:var(--lc-icon-button-size, 44px);display:flex;justify-content:center;align-items:center;border:none;border-radius:100%;background:#00000080;background:color-mix(in oklab,#000 50%,transparent)}`]})};var mi=[`swiperContainer`],fi=(t,n)=>n.id;function hi(t,n){if(t&1){let e=WD();nc(0,`div`,3)(1,`cooee-item-card`,4),Lf(`buttonClick`,function(o){Iu(e);return wu(KD().onButtonClick(o))})(`click`,function(){let o=Iu(e).$implicit;return wu(KD().cardClick.emit(o))}),rc()();}if(t&2){let e=n.$implicit;vd(),Mf(`item`,e);}}var Kt=class t{items=SN.required();centeredSlides=SN(true);video=SN();cardClick=TN();atcSuccess=TN();destroyRef=g(qe);elementRef=g(be$1);engagementService=g(L);swiperContainerRef=MN.required(`swiperContainer`);swiperInstance;constructor(){Ss(()=>{this.swiperContainerRef()&&this.initSwiper();}),this.destroyRef.onDestroy(()=>{this.swiperInstance?.destroy();});}ngOnInit(){Hi$1(this.elementRef.nativeElement.shadowRoot);}onButtonClick(n){let e=le$3.get().website?.canChangeVariantInCart;if(this.items()?.length>1||n.hasVariants()&&!e){this.cardClick.emit(n);return}this.engagementService.executeCTA(he$2.ADD_TO_CART,{item:n,video:this.video()}),this.atcSuccess.emit();}async initSwiper(){await Vi$1(),this.swiperInstance=new window.CooeeSDK.Swiper(this.swiperContainerRef().nativeElement,{direction:`horizontal`,effect:`slide`,slidesPerView:1.2,nested:true,centeredSlides:this.centeredSlides(),spaceBetween:12,mousewheel:{enabled:true,thresholdDelta:10,thresholdTime:200}});}static ɵfac=function(e){return new(e||t)};static ɵcmp=gf({type:t,selectors:[[`cooee-video-promoted-items`]],viewQuery:function(e,i){e&1&&Uf(i.swiperContainerRef,mi,5),e&2&&ev();},hostAttrs:[1,`letscooee-widget`],inputs:{items:[1,`items`],centeredSlides:[1,`centeredSlides`],video:[1,`video`]},outputs:{cardClick:`cardClick`,atcSuccess:`atcSuccess`},features:[up([L])],decls:5,vars:0,consts:[[`swiperContainer`,``],[1,`swiper-container`],[1,`swiper-wrapper`],[1,`swiper-slide`],[`tabindex`,`0`,3,`buttonClick`,`click`,`item`]],template:function(e,i){e&1&&(nc(0,`div`,1,0)(2,`div`,2),VD(3,hi,2,1,`div`,3,fi),rc()()),e&2&&(vd(3),HD(i.items()));},dependencies:[fe],styles:[`[_nghost-%COMP%]{display:block;width:100%}cooee-item-card[_ngcontent-%COMP%]{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background-color:rgb(var(--lc-card-bg-color)/var(--lc-card-bg-opacity, 1));cursor:pointer;border-radius:var(--lc-card-radius)}`]})};
26
+
27
+ var rn={schedule(n,t){let e=setTimeout(n,t);return ()=>clearTimeout(e)}};function an(n){return n.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function sn(n){return !!n&&n.nodeType===Node.ELEMENT_NODE}var ut;function ln(n,t){if(!ut){let e=Element.prototype;ut=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;}return n.nodeType===Node.ELEMENT_NODE?ut.call(n,t):false}function cn(n){let t={};return n.forEach(({propName:e,templateName:i,transform:o})=>{t[an(i)]=[e,o];}),t}function dn(n,t){return t.get(qo).resolveComponentFactory(n).inputs}function pn(n,t){let e=n.childNodes,i=t.map(()=>[]),o=-1;t.some((a,l)=>a===`*`?(o=l,true):false);for(let a=0,l=e.length;a<l;++a){let p=e[a],f=mn(p,t,o);f!==-1&&i[f].push(p);}return i}function mn(n,t,e){let i=e;return sn(n)&&t.some((o,a)=>o!==`*`&&ln(n,o)?(i=a,true):false),i}var un=10,ft=class{componentFactory;inputMap=new Map;constructor(t,e){this.componentFactory=e.get(qo).resolveComponentFactory(t);for(let i of this.componentFactory.inputs)this.inputMap.set(i.propName,i.templateName);}create(t){return new gt(this.componentFactory,t,this.inputMap)}},gt=class{componentFactory;injector;inputMap;eventEmitters=new gr$1(1);events=this.eventEmitters.pipe(ii$2(t=>ve$2(...t)));componentRef=null;scheduledDestroyFn=null;initialInputValues=new Map;ngZone;elementZone;appRef;cdScheduler;constructor(t,e,i){this.componentFactory=t,this.injector=e,this.inputMap=i,this.ngZone=this.injector.get(ee$1),this.appRef=this.injector.get(mt$2),this.cdScheduler=e.get(ut$3),this.elementZone=typeof Zone>`u`?null:this.ngZone.run(()=>Zone.current);}connect(t){this.runInZone(()=>{if(this.scheduledDestroyFn!==null){this.scheduledDestroyFn(),this.scheduledDestroyFn=null;return}this.componentRef===null&&this.initializeComponent(t);});}disconnect(){this.runInZone(()=>{this.componentRef===null||this.scheduledDestroyFn!==null||(this.scheduledDestroyFn=rn.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null);},un));});}getInputValue(t){return this.runInZone(()=>this.componentRef===null?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,e){if(this.componentRef===null){this.initialInputValues.set(t,e);return}this.runInZone(()=>{this.componentRef.setInput(this.inputMap.get(t)??t,e),_y(this.componentRef.hostView)&&(Ty(this.componentRef.changeDetectorRef),this.cdScheduler.notify(6));});}initializeComponent(t){let e=Z.create({providers:[],parent:this.injector}),i=pn(t,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,i,t),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.appRef.attachView(this.componentRef.hostView),this.componentRef.hostView.detectChanges();}initializeInputs(){for(let[t,e]of this.initialInputValues)this.setInputValue(t,e);this.initialInputValues.clear();}initializeOutputs(t){let e=this.componentFactory.outputs.map(({propName:i,templateName:o})=>{let a=t.instance[i];return new m$1(l=>{let p=a.subscribe(f=>l.next({name:o,value:f}));return ()=>p.unsubscribe()})});this.eventEmitters.next(e);}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}},vt=class extends HTMLElement{ngElementEventsSubscription=null};function Ii(n,t){let e=dn(n,t.injector),i=t.strategyFactory||new ft(n,t.injector),o=cn(e);class a extends vt{injector;static observedAttributes=Object.keys(o);get ngElementStrategy(){if(!this._ngElementStrategy){let p=this._ngElementStrategy=i.create(this.injector||t.injector);e.forEach(({propName:f,transform:M})=>{if(!this.hasOwnProperty(f))return;let Z=this[f];delete this[f],p.setInputValue(f,Z,M);});}return this._ngElementStrategy}_ngElementStrategy;constructor(p){super(),this.injector=p;}attributeChangedCallback(p,f,M,Z){let[De,rt]=o[p];this.ngElementStrategy.setInputValue(De,M,rt);}connectedCallback(){let p=false;this.ngElementStrategy.events&&(this.subscribeToEvents(),p=true),this.ngElementStrategy.connect(this),p||this.subscribeToEvents();}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null);}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(p=>{let f=new CustomEvent(p.name,{detail:p.value});this.dispatchEvent(f);});}}return e.forEach(({propName:l,transform:p,isSignal:f})=>{Object.defineProperty(a.prototype,l,{get(){let M=this.ngElementStrategy.getInputValue(l);return f&&Qa(M)?M():M},set(M){this.ngElementStrategy.setInputValue(l,M,p);},configurable:true,enumerable:true});}),a}var Pi={providers:[zv()]};var ht=n=>({active:n});function fn(n,t){if(n&1&&(nc(0,`span`,4),Sv(1),rc()),n&2){let e=KD(2);vd(),np(e.collectionFilterConfig.subtitle);}}function gn(n,t){if(n&1&&(nc(0,`div`,1)(1,`span`,3),Sv(2),rc(),LD(3,fn,2,1,`span`,4),rc()),n&2){let e=KD();vd(2),np(e.collectionFilterConfig.title),vd(),PD(e.collectionFilterConfig.subtitle?3:-1);}}function vn(n,t){if(n&1&&(nc(0,`span`,9),Sv(1),rc()),n&2){let e=KD(2).$implicit;Mf(`ngClass`,Pv(2,ht,Rv(0))),vd(),lc(``,e.label,` `);}}function hn(n,t){if(n&1){let e=WD();nc(0,`div`,7),Lf(`mousedown`,function(){Iu(e);let o=KD().$implicit,a=Rv(0);return wu(KD(2).filterClick(o,a))}),bf(1,`img`,8),LD(2,vn,2,4,`span`,9),rc();}if(n&2){let e=KD().$implicit,i=Rv(0);vd(),Mf(`src`,e.imageSrc,pm)(`ngClass`,Pv(3,ht,i)),vd(),PD(e.label?2:-1);}}function Cn(n,t){if(n&1){let e=WD();nc(0,`button`,10),Lf(`click`,function(){Iu(e);let o=KD().$implicit,a=Rv(0);return wu(KD(2).filterClick(o,a))}),Sv(1),rc();}if(n&2){let e=KD().$implicit;Mf(`ngClass`,Pv(2,ht,Rv(0))),vd(),lc(``,e.label,` `);}}function yn(n,t){if(n&1&&(sp(0),LD(1,hn,3,5,`div`,5)(2,Cn,2,4,`button`,6)),n&2){let e=t.$implicit,i=KD(2);Av(e.value===i.currentActiveParams()[e.key]),vd(),PD(i.collectionFilterConfig.template===i.CollectionFilterTemplate.IMAGE?1:i.collectionFilterConfig.template===i.CollectionFilterTemplate.BUTTON?2:-1);}}function _n(n,t){if(n&1&&VD(0,yn,3,2,null,null,BD),n&2)HD(KD().collectionFilterConfig.options);}var Qe=class n extends Pe{currentActiveParams=jt$1({});collectionFilterConfig;CollectionFilterTemplate=Re$2;originalPushState;constructor(){super(),this.attachedURLStateChecker();}engagementTriggerReceived(t){this.collectionFilterConfig=t.content.collectionFilterConfig;}update(){}ngOnDestroy(){this.originalPushState&&(window.history.pushState=this.originalPushState);}filterClick(t,e=false){let i=new URL(window.location.href),o=e?`removed`:`applied`;if(e?i.searchParams.delete(t.key):i.searchParams.set(t.key,t.value),this.collectionFilterConfig.refreshPage){this.sendEvent(t,o),window.location.href=i.href;return}window.history.replaceState({path:i.href},``,i),this.sendEvent(t,o),this.checkAndUpdateParams();}sendEvent(t,e){let i=new Ir$1(`CE Trigger Clicked`,{filterApplication:e,filter:{key:t.key,value:t.value}},this.engagementTrigger);window.CooeeSDK.sendEvent(i);}attachedURLStateChecker(){this.checkAndUpdateParams(),this.originalPushState=window.history.pushState,window.history.pushState=new Proxy(window.history.pushState,{apply:(t,e,i)=>{t.apply(e,i),this.checkAndUpdateParams();}});}checkAndUpdateParams(){let t=new URL(window.location.href),e={};t.searchParams.forEach((i,o)=>{e[o]=i;}),this.currentActiveParams.set(e);}static ɵfac=function(e){return new(e||n)};static ɵcmp=gf({type:n,selectors:[[`cooee-collection-filter`]],features:[up(Gt()),Ya],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&&(nc(0,`div`,0),LD(1,gn,4,2,`div`,1),nc(2,`div`,2),LD(3,_n,2,0),rc()()),e&2&&(vd(),PD(i.collectionFilterConfig.title?1:-1),vd(2),PD(i.collectionFilterConfig.options.length?3:-1));},dependencies:[YE],styles:[`.wrapper{display:flex;flex-direction:column;gap:10px;padding:10px;justify-content:center;align-items:center}.filter-title-container{display:flex;flex-direction:column;gap:5px;align-items:center}.filter-title-container .filter-title{color:rgba(var(--lc-heading-color));font-family:var(--lc-heading-family),serif;font-weight:var(--lc-heading-weight);font-size:var(--lc-heading-size);transform:var(--lc-heading-transform);letter-spacing:var(--lc-heading-letter-spacing);text-align:var(--lc-heading-align)}.filter-title-container .filter-subtitle{color:rgba(var(--lc-subheading-color));font-weight:var(--lc-subheading-weight);font-size:var(--lc-subheading-size)}.options-container{display:flex;gap:35px;align-items:center;flex-wrap:wrap;justify-content:center}.options-container .image-filter-wrapper{display:flex;gap:10px;flex-direction:column;align-items:center;cursor:pointer}.options-container .image-filter-wrapper .filter-image{width:var(--lc-image-width, 80px);height:var(--lc-image-height, 80px);border-radius:40px}.options-container .image-filter-wrapper .filter-image.active{border:2px solid rgba(var(--lc-primary-color));padding:2px}.options-container .image-filter-wrapper .filter-label{font-size:var(--lc-text-size, 14px);color:rgba(var(--lc-text-color));font-weight:var(--lc-text-weight)}.options-container .image-filter-wrapper .filter-label.active{color:rgba(var(--lc-primary-color))}.options-container .filter-button{background-color:rgba(var(--lc-secondary-button-bg-color));font-size:var(--lc-button-size, 14px);color:rgba(var(--lc-secondary-button-color));border-color:rgba(var(--lc-secondary-button-border-color));font-weight:var(--lc-secondary-button-weight);border-radius:var(--lc-button-radius);font-family:var(--lc-button-family),serif;height:var(--lc-button-height, 36px);padding:0 16px}.options-container .filter-button:hover,.options-container .filter-button.active{background-color:rgba(var(--lc-primary-button-bg-color));color:rgba(var(--lc-primary-button-color));border-color:rgba(var(--lc-primary-button-border-color));font-weight:var(--lc-primary-button-weight)}
28
+ `],encapsulation:3})};var We=class n{transform(t,e){return t?Fe$2(t,r({},e)):null}static ɵfac=function(e){return new(e||n)};static ɵpipe=pr({name:`cooeeDynamicVariables`,type:n,pure:true})};var Ct={};(function n(t,e,i,o){var a=!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL),l=typeof Path2D==`function`&&typeof DOMMatrix==`function`,p=(function(){if(!t.OffscreenCanvas)return false;var s=new OffscreenCanvas(1,1),r=s.getContext(`2d`);r.fillRect(0,0,1,1);var g=s.transferToImageBitmap();try{r.createPattern(g,`no-repeat`);}catch{return false}return true})();function f(){}function M(s){var r=e.exports.Promise,g=r!==void 0?r:t.Promise;return typeof g==`function`?new g(s):(s(f,f),null)}var Z=(function(s,r){return {transform:function(g){if(s)return g;if(r.has(g))return r.get(g);var h=new OffscreenCanvas(g.width,g.height);return h.getContext(`2d`).drawImage(g,0,0),r.set(g,h),h},clear:function(){r.clear();}}})(p,new Map),De=(function(){var s=Math.floor(16.666666666666668),r,g,h={},C=0;return typeof requestAnimationFrame==`function`&&typeof cancelAnimationFrame==`function`?(r=function(y){var _=Math.random();return h[_]=requestAnimationFrame(function v(x){C===x||C+s-1<x?(C=x,delete h[_],y()):h[_]=requestAnimationFrame(v);}),_},g=function(y){h[y]&&cancelAnimationFrame(h[y]);}):(r=function(y){return setTimeout(y,s)},g=function(y){return clearTimeout(y)}),{frame:r,cancel:g}})(),rt=(function(){var s,r,g={};function h(C){function y(_,v){C.postMessage({options:_||{},callback:v});}C.init=function(v){var x=v.transferControlToOffscreen();C.postMessage({canvas:x},[x]);},C.fire=function(v,x,D){if(r)return y(v,null),r;var O=Math.random().toString(36).slice(2);return r=M(function(F){function A(z){z.data.callback===O&&(delete g[O],C.removeEventListener(`message`,A),r=null,Z.clear(),D(),F());}C.addEventListener(`message`,A),y(v,O),g[O]=A.bind(null,{data:{callback:O}});}),r},C.reset=function(){C.postMessage({reset:true});for(var v in g)g[v](),delete g[v];};}return function(){if(s)return s;if(!i&&a){var C=[`var CONFETTI, SIZE = {}, module = {};`,`(`+n.toString()+`)(this, module, true, SIZE);`,`onmessage = function(msg) {`,` if (msg.data.options) {`,` CONFETTI(msg.data.options).then(function () {`,` if (msg.data.callback) {`,` postMessage({ callback: msg.data.callback });`,` }`,` });`,` } else if (msg.data.reset) {`,` CONFETTI && CONFETTI.reset();`,` } else if (msg.data.resize) {`,` SIZE.width = msg.data.resize.width;`,` SIZE.height = msg.data.resize.height;`,` } else if (msg.data.canvas) {`,` SIZE.width = msg.data.canvas.width;`,` SIZE.height = msg.data.canvas.height;`,` CONFETTI = module.exports.create(msg.data.canvas);`,` }`,`}`].join(`
29
+ `);try{s=new Worker(URL.createObjectURL(new Blob([C])));}catch(y){return typeof console.warn==`function`&&console.warn(`🎊 Could not load worker`,y),null}h(s);}return s}})(),Mi={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:[`square`,`circle`],zIndex:100,colors:[`#26ccff`,`#a25afd`,`#ff5e7e`,`#88ff5a`,`#fcff42`,`#ffa62d`,`#ff36ff`],disableForReducedMotion:false,scalar:1};function Fi(s,r){return r?r(s):s}function Oi(s){return s!=null}function L(s,r,g){return Fi(s&&Oi(s[r])?s[r]:Mi[r],g)}function Ai(s){return s<0?0:Math.floor(s)}function Li(s,r){return Math.floor(Math.random()*(r-s))+s}function at(s){return parseInt(s,16)}function Ri(s){return s.map(Ni)}function Ni(s){var r=String(s).replace(/[^0-9a-f]/gi,``);return r.length<6&&(r=r[0]+r[0]+r[1]+r[1]+r[2]+r[2]),{r:at(r.substring(0,2)),g:at(r.substring(2,4)),b:at(r.substring(4,6))}}function Bi(s){var r=L(s,`origin`,Object);return r.x=L(r,`x`,Number),r.y=L(r,`y`,Number),r}function zi(s){s.width=document.documentElement.clientWidth,s.height=document.documentElement.clientHeight;}function Hi(s){var r=s.getBoundingClientRect();s.width=r.width,s.height=r.height;}function ji(s){var r=document.createElement(`canvas`);return r.style.position=`fixed`,r.style.top=`0px`,r.style.left=`0px`,r.style.pointerEvents=`none`,r.style.zIndex=s,r}function $i(s,r,g,h,C,y,_,v,x){s.save(),s.translate(r,g),s.rotate(y),s.scale(h,C),s.arc(0,0,1,_,v,x),s.restore();}function Ui(s){var r=s.angle*(Math.PI/180),g=s.spread*(Math.PI/180);return {x:s.x,y:s.y,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:s.startVelocity*.5+Math.random()*s.startVelocity,angle2D:-r+(.5*g-Math.random()*g),tiltAngle:(Math.random()*.5+.25)*Math.PI,color:s.color,shape:s.shape,tick:0,totalTicks:s.ticks,decay:s.decay,drift:s.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:s.gravity*3,ovalScalar:.6,scalar:s.scalar,flat:s.flat}}function Qi(s,r){r.x+=Math.cos(r.angle2D)*r.velocity+r.drift,r.y+=Math.sin(r.angle2D)*r.velocity+r.gravity,r.velocity*=r.decay,r.flat?(r.wobble=0,r.wobbleX=r.x+10*r.scalar,r.wobbleY=r.y+10*r.scalar,r.tiltSin=0,r.tiltCos=0,r.random=1):(r.wobble+=r.wobbleSpeed,r.wobbleX=r.x+10*r.scalar*Math.cos(r.wobble),r.wobbleY=r.y+10*r.scalar*Math.sin(r.wobble),r.tiltAngle+=.1,r.tiltSin=Math.sin(r.tiltAngle),r.tiltCos=Math.cos(r.tiltAngle),r.random=Math.random()+2);var g=r.tick++/r.totalTicks,h=r.x+r.random*r.tiltCos,C=r.y+r.random*r.tiltSin,y=r.wobbleX+r.random*r.tiltCos,_=r.wobbleY+r.random*r.tiltSin;if(s.fillStyle=`rgba(`+r.color.r+`, `+r.color.g+`, `+r.color.b+`, `+(1-g)+`)`,s.beginPath(),l&&r.shape.type===`path`&&typeof r.shape.path==`string`&&Array.isArray(r.shape.matrix))s.fill(Wi(r.shape.path,r.shape.matrix,r.x,r.y,Math.abs(y-h)*.1,Math.abs(_-C)*.1,Math.PI/10*r.wobble));else if(r.shape.type===`bitmap`){var v=Math.PI/10*r.wobble,x=Math.abs(y-h)*.1,D=Math.abs(_-C)*.1,O=r.shape.bitmap.width*r.scalar,F=r.shape.bitmap.height*r.scalar,A=new DOMMatrix([Math.cos(v)*x,Math.sin(v)*x,-Math.sin(v)*D,Math.cos(v)*D,r.x,r.y]);A.multiplySelf(new DOMMatrix(r.shape.matrix));var z=s.createPattern(Z.transform(r.shape.bitmap),`no-repeat`);z.setTransform(A),s.globalAlpha=1-g,s.fillStyle=z,s.fillRect(r.x-O/2,r.y-F/2,O,F),s.globalAlpha=1;}else if(r.shape===`circle`)s.ellipse?s.ellipse(r.x,r.y,Math.abs(y-h)*r.ovalScalar,Math.abs(_-C)*r.ovalScalar,Math.PI/10*r.wobble,0,2*Math.PI):$i(s,r.x,r.y,Math.abs(y-h)*r.ovalScalar,Math.abs(_-C)*r.ovalScalar,Math.PI/10*r.wobble,0,2*Math.PI);else if(r.shape===`star`)for(var b=Math.PI/2*3,G=4*r.scalar,ee=8*r.scalar,te=r.x,de=r.y,xe=5,re=Math.PI/xe;xe--;)te=r.x+Math.cos(b)*ee,de=r.y+Math.sin(b)*ee,s.lineTo(te,de),b+=re,te=r.x+Math.cos(b)*G,de=r.y+Math.sin(b)*G,s.lineTo(te,de),b+=re;else s.moveTo(Math.floor(r.x),Math.floor(r.y)),s.lineTo(Math.floor(r.wobbleX),Math.floor(C)),s.lineTo(Math.floor(y),Math.floor(_)),s.lineTo(Math.floor(h),Math.floor(r.wobbleY));return s.closePath(),s.fill(),r.tick<r.totalTicks}function qi(s,r,g,h,C){var y=r.slice(),_=s.getContext(`2d`),v,x,D=M(function(O){function F(){v=x=null,_.clearRect(0,0,h.width,h.height),Z.clear(),C(),O();}function A(){i&&!(h.width===o.width&&h.height===o.height)&&(h.width=s.width=o.width,h.height=s.height=o.height),!h.width&&!h.height&&(g(s),h.width=s.width,h.height=s.height),_.clearRect(0,0,h.width,h.height),y=y.filter(function(z){return Qi(_,z)}),y.length?v=De.frame(A):F();}v=De.frame(A),x=F;});return {addFettis:function(O){return y=y.concat(O),D},canvas:s,promise:D,reset:function(){v&&De.cancel(v),x&&x();}}}function _t(s,r){var g=!s,h=!!L(r||{},`resize`),C=false,y=L(r,`disableForReducedMotion`,Boolean),v=a&&!!L(r||{},`useWorker`)?rt():null,x=g?zi:Hi,D=s&&v?!!s.__confetti_initialized:false,O=typeof matchMedia==`function`&&matchMedia(`(prefers-reduced-motion)`).matches,F;function A(b,G,ee){for(var te=L(b,`particleCount`,Ai),de=L(b,`angle`,Number),xe=L(b,`spread`,Number),re=L(b,`startVelocity`,Number),Ki=L(b,`decay`,Number),Yi=L(b,`gravity`,Number),Ji=L(b,`drift`,Number),bt=L(b,`colors`,Ri),Xi=L(b,`ticks`,Number),wt=L(b,`shapes`),en=L(b,`scalar`),tn=!!L(b,`flat`),Vt=Bi(b),St=te,lt=[],nn=s.width*Vt.x,on=s.height*Vt.y;St--;)lt.push(Ui({x:nn,y:on,angle:de,spread:xe,startVelocity:re,color:bt[St%bt.length],shape:wt[Li(0,wt.length)],ticks:Xi,decay:Ki,gravity:Yi,drift:Ji,scalar:en,flat:tn}));return F?F.addFettis(lt):(F=qi(s,lt,x,G,ee),F.promise)}function z(b){var G=y||L(b,`disableForReducedMotion`,Boolean),ee=L(b,`zIndex`,Number);if(G&&O)return M(function(re){re();});g&&F?s=F.canvas:g&&!s&&(s=ji(ee),document.body.appendChild(s)),h&&!D&&x(s);var te={width:s.width,height:s.height};v&&!D&&v.init(s),D=true,v&&(s.__confetti_initialized=true);function de(){if(v){var re={getBoundingClientRect:function(){if(!g)return s.getBoundingClientRect()}};x(re),v.postMessage({resize:{width:re.width,height:re.height}});return}te.width=te.height=null;}function xe(){F=null,h&&(C=false,t.removeEventListener(`resize`,de)),g&&s&&(document.body.contains(s)&&document.body.removeChild(s),s=null,D=false);}return h&&!C&&(C=true,t.addEventListener(`resize`,de,false)),v?v.fire(b,te,xe):A(b,te,xe)}return z.reset=function(){v&&v.reset(),F&&F.reset();},z}var st;function xt(){return st||(st=_t(null,{useWorker:true,resize:true})),st}function Wi(s,r,g,h,C,y,_){var v=new Path2D(s),x=new Path2D;x.addPath(v,new DOMMatrix(r));var D=new Path2D;return D.addPath(x,new DOMMatrix([Math.cos(_)*C,Math.sin(_)*C,-Math.sin(_)*y,Math.cos(_)*y,g,h])),D}function Zi(s){if(!l)throw new Error(`path confetti are not supported in this browser`);var r,g;typeof s==`string`?r=s:(r=s.path,g=s.matrix);var h=new Path2D(r),y=document.createElement(`canvas`).getContext(`2d`);if(!g){for(var _=1e3,v=_,x=_,D=0,O=0,F,A,z=0;z<_;z+=2)for(var b=0;b<_;b+=2)y.isPointInPath(h,z,b,`nonzero`)&&(v=Math.min(v,z),x=Math.min(x,b),D=Math.max(D,z),O=Math.max(O,b));F=D-v,A=O-x;var G=10,ee=Math.min(G/F,G/A);g=[ee,0,0,ee,-Math.round(F/2+v)*ee,-Math.round(A/2+x)*ee];}return {type:`path`,path:r,matrix:g}}function Gi(s){var r,g=1,h=`#000000`,C=`"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif`;typeof s==`string`?r=s:(r=s.text,g=`scalar`in s?s.scalar:g,C=`fontFamily`in s?s.fontFamily:C,h=`color`in s?s.color:h);var y=10*g,_=``+y+`px `+C,v=new OffscreenCanvas(y,y),x=v.getContext(`2d`);x.font=_;var D=x.measureText(r),O=Math.ceil(D.actualBoundingBoxRight+D.actualBoundingBoxLeft),F=Math.ceil(D.actualBoundingBoxAscent+D.actualBoundingBoxDescent),A=2,z=D.actualBoundingBoxLeft+A,b=D.actualBoundingBoxAscent+A;O+=A+A,F+=A+A,v=new OffscreenCanvas(O,F),x=v.getContext(`2d`),x.font=_,x.fillStyle=h,x.fillText(r,z,b);var G=1/g;return {type:`bitmap`,bitmap:v.transferToImageBitmap(),matrix:[G,0,0,G,-O*G/2,-F*G/2]}}e.exports=function(){return xt().apply(this,arguments)},e.exports.reset=function(){xt().reset();},e.exports.create=_t,e.exports.shapeFromPath=Zi,e.exports.shapeFromText=Gi;})((function(){return typeof window<`u`?window:typeof self<`u`?self:this||{}})(),Ct,false);var ki=Ct.exports;Ct.exports.create;var Ze=class{static DEFAULTS={scalar:1.4,zIndex:1e4,shapes:[`circle`,`circle`,`square`],colors:[`#f51c8f`,`#2179e2`,`#d52dc8`,`#01a9d9`,`#78ff44`,`#fdff6a`]};static async basic(){await this.fire({particleCount:100,spread:70,origin:{y:.6}});}static async leftRight(t=100){let e=[],i=Date.now()+2e3,o=()=>{e.push(this.fire({angle:60,spread:55,origin:{x:0}}),this.fire({angle:120,spread:55,origin:{x:1}})),Date.now()<i&&t>0&&(requestAnimationFrame(o),t--);};o(),await Promise.all(e);}static async realistic(){await Promise.all([this.realisticFire(.25,{spread:26,startVelocity:55}),this.realisticFire(.2,{spread:60}),this.realisticFire(.35,{spread:100,decay:.91,scalar:.8}),this.realisticFire(.1,{spread:120,startVelocity:25,decay:.92,scalar:1.2}),this.realisticFire(.1,{spread:120,startVelocity:45})]);}static async fire(t){Object.assign(t,this.DEFAULTS,t),t.particleCount=t.particleCount??this.DEFAULTS.colors.length,await ki(t);}static async realisticFire(t,e){await this.fire(Object.assign({},{origin:{y:.7}},e,{particleCount:Math.floor(200*t)}));}};var xn=(n,t)=>t.minValue;function bn(n,t){if(n&1&&(oc(0,`div`,7),Bv(1,`safeHtml`)),n&2){let e=KD().$implicit;kf(`innerHTML`,Hv(1,1,e.minValue+` Products`),fm);}}function wn(n,t){if(n&1&&(oc(0,`div`,7),Bv(1,`cooeeCurrency`),Bv(2,`safeHtml`)),n&2){let e=KD().$implicit;kf(`innerHTML`,Hv(2,3,Hv(1,1,e.minValue)),fm);}}function Vn(n,t){if(n&1&&(Yo(0,`li`,6)(1,`div`),LD(2,bn,2,3,`div`,7)(3,wn,3,5,`div`,7),oc(4,`img`,8),Yo(5,`div`,9),Sv(6),Qo()()()),n&2){let e=t.$implicit,i=KD(2);cc(`left`,e.calculatedAlignment+`%`),vd(2),PD((i.progressBarConfig==null?null:i.progressBarConfig.rewardBasis)===i.RewardBasis.ITEM_COUNT?2:3),vd(2),kf(`src`,i.getIconURL(e),pm),vd(2),np(e.label);}}function Sn(n,t){if(n&1&&(oc(0,`div`,0),Bv(1,`cooeeDynamicVariables`),Bv(2,`safeHtml`),Yo(3,`div`,1)(4,`ul`,2)(5,`div`,3),oc(6,`div`,4),Qo(),VD(7,Vn,7,5,`li`,5,xn),Qo()()),n&2){let e=KD(),i=e.calculatedState();kf(`innerHTML`,Hv(2,6,$v(1,3,i.nextMilestone?i.nextMilestone.reachingText:i.lastMilestone.reachedText,e.localDynamicVariables())),fm),vd(6),cc(`width`,i.cartValuePercentage+`%`),vd(),HD(i.milestones);}}var Ge=class n extends Pe{cart;localDynamicVariables=jt$1({});calculatedState=jt$1({});progressBarConfig;RewardBasis=Pe$3;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===ve$3.FREE_SHIPPING?`https://img.icons8.com/ios-filled/50/FFFFFF/free-shipping.png`:t.rewardType===ve$3.DISCOUNT?`https://img.icons8.com/ios-glyphs/30/FFFFFF/sale-price-tag.png`:t.rewardType===ve$3.FREE_AUTO_GIFT?`https://img.icons8.com/ios-filled/50/FFFFFF/gift--v1.png`:``}calculateMilestonesSilently(){this.calculateMilestones().catch(t=>Y$1.error(t));}async calculateMilestones(){let t=this.engagementTrigger,e=this.progressBarConfig;if(!e?.milestones?.length){Y$1.warn(`Milestones not available in progress bar config`,t);return}let i=await this.cart.getNormalisedCart(),o=e.milestones.at(-1),a=e?.reachedAmountOrCount??i.originalAmount,l=e.totalProgress??0;Y$1.verbose(`Cart value:`,a,`, percentage: ${l}%`),this.celebrate(t,a);let p={milestonesReady:true,cartValuePercentage:l,milestones:e.milestones},f=e.milestones.find(M=>!M.reached);if(f){let M=Vr$1(f.minValue-a);if(e.rewardBasis===`ITEM_COUNT`){let Z=f.minValue-a;M=`${Z} ${Z===1?`product`:`products`}`;}this.localDynamicVariables.set({amount_left:M}),p.nextMilestone=f,this.calculatedState.set(p);return}p.lastMilestone=o,this.calculatedState.set(p);}celebrate(t,e){let a=[...t.progressBarConfig.milestones].reverse().find(f=>f.minValue<e);if(!a)return;let l=`lc/en/${t.shortID}/${a.minValue}`;sessionStorage.getItem(l)||(sessionStorage.setItem(l,`1`),this.progressBarConfig?.noConfetti||Ze.realistic());}static ɵfac=function(e){return new(e||n)};static ɵcmp=gf({type:n,selectors:[[`cooee-progressbar`]],inputs:{cart:`cart`},features:[up(Gt()),Ya],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&&LD(0,Sn,9,8),e&2&&PD(i.calculatedState().milestonesReady?0:-1);},dependencies:[We,a,pe],styles:[`:host{display:block;padding:10px;background:linear-gradient(0deg,rgba(var(--lc-primary-color),.1) 0%,transparent 100%)}.milestone-container{width:95%;margin:8px 0}.heading{font-weight:500;text-align:center;font-size:12px}.milestone-list{display:flex;align-items:center;position:relative;font-size:10px;font-weight:500}.untracked-path{width:100%;background-color:#e5e7eb;height:4px;position:absolute}.tracked-path{background-color:rgba(var(--lc-primary-color));height:100%;display:block;transition:width .5s ease-in-out}.milestone-list{padding:0;margin:0}.milestone-list-item{position:relative;display:flex;flex-direction:column;align-items:center;height:75px}.milestone-list-item>div{display:flex;flex-direction:column;align-items:center;justify-content:space-between;position:absolute;height:100%;width:100px}.milestone-icon{padding:5px;border-radius:1000px;background-color:rgba(var(--lc-primary-color))}
30
+ `],encapsulation:3})};var Tn=[`numberVariable`],Ke=class n extends Pe{numberSlot;savingsBarConfig;textParts=jt$1({start:``,end:``});globalIntervals=[];constructor(){super();}ngAfterViewInit(){this.updateUIVars();}engagementTriggerReceived(t){this.savingsBarConfig=t.content.savingsBarConfig,this.elementRef.nativeElement.classList.add(`lc_`+t.entryAnimation?.toLowerCase()),this.savingsBarConfig.iconURL&&this.elementRef.nativeElement.style.setProperty(`--lc-discount-icon`,this.savingsBarConfig.iconURL);}update(){this.engagementTrigger?.content?.savingsBarConfig&&(this.savingsBarConfig=this.engagementTrigger.content.savingsBarConfig),this.savingsBarConfig&&this.updateUIVars();}updateUIVars(){let t=r(r({},this.engagementTrigger.getCartMagicVariables()),Yn$3(`total_savings`,this.savingsBarConfig.totalSavings)),e=Fe$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[o,a]=e.split(i);this.textParts.set({start:o,end:a}),this.savingsBarConfig.animateNumber?this.runAnimation(i):this.numberSlot.nativeElement.innerHTML=i;}runSlotMachineAnimation(t=`0`){let e=this.numberSlot.nativeElement;e.innerHTML=``;let i=this.savingsBarConfig.animationDuration/t.length;this.clearPreviousIntervals();for(let o=0;o<t.length;o++){let a=document.createElement(`div`);a.className=`digit`,a.style.display=`inline-block`,e.appendChild(a);let l=setInterval(()=>{a.innerHTML=`<div>${Math.floor(Math.random()*10)}</div>`;},50);this.globalIntervals.push(l),setTimeout(()=>{clearInterval(l);a.innerHTML=`${t?.[o]??Math.floor(Math.random()*10)}`;},(o+1)*i);}}clearPreviousIntervals(){this.globalIntervals.forEach(clearInterval),this.globalIntervals=[];}runIncrementalAnimation(t){let e=performance.now(),i=o=>{let a=Math.min((o-e)/this.savingsBarConfig.animationDuration,1);this.numberSlot.nativeElement.innerHTML=Math.floor(t*a).toString(),a<1&&requestAnimationFrame(i);};requestAnimationFrame(i);}runAnimation(t){this.savingsBarConfig.animation===`SLOT_MACHINE`?this.runSlotMachineAnimation(t):this.savingsBarConfig.animation===`INCREMENTAL`&&this.runIncrementalAnimation(Number(t));}static ɵfac=function(e){return new(e||n)};static ɵcmp=gf({type:n,selectors:[[`cooee-savings-bar`]],viewQuery:function(e,i){if(e&1&&ac(Tn,5),e&2){let o;Hf(o=$f())&&(i.numberSlot=o.first);}},features:[up(Gt()),Ya],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&&(Yo(0,`div`,1),oc(1,`div`,2)(2,`div`,3)(3,`div`,4,0)(5,`div`,5),Qo()),e&2&&(vd(2),kf(`innerHTML`,i.textParts().start,fm),vd(3),kf(`innerHTML`,i.textParts().end,fm));},styles:[`:host{display:block}.container{white-space:pre;display:flex;justify-content:center;align-items:center;background-color:rgba(var(--lc-primary-button-bg-color, 0 162 81));color:rgba(var(--lc-primary-button-color, 255 255 255));padding:8px;border-radius:4px 4px 0 0;overflow:hidden}.container .icon{background-image:var(--lc-discount-icon, url(https://img.icons8.com/ios-glyphs/30/FFFFFF/discount--v1.png));background-position:center;background-size:cover;height:20px;width:20px;margin-right:2px}
31
+ `],encapsulation:3})};var Ye=class n extends Pe{item;data=g(Ye$1);dialogRef=g(W);ItemDetailLayout=Ne$3;constructor(){super(),this.triggerContext=this.data.triggerContext,this.item=this.data.item;}close(){this.dialogRef.close();}engagementTriggerReceived(t){}update(){}static ɵfac=function(e){return new(e||n)};static ɵcmp=gf({type:n,selectors:[[`cooee-item-quick-view`]],features:[up(Gt()),Ya],decls:1,vars:2,consts:[[3,`closeClick`,`item`,`layout`]],template:function(e,i){e&1&&(nc(0,`cooee-item-detail`,0),Lf(`closeClick`,function(){return i.close()}),rc()),e&2&&Mf(`item`,i.item)(`layout`,i.ItemDetailLayout.TWO_PANE);},dependencies:[zt],styles:[`:host{display:flex;align-items:center;justify-content:center;height:100%}@media(min-width:768px){cooee-item-detail{max-width:900px;max-height:80vh;border-radius:var(--lc-card-radius)}}
32
+ `],encapsulation:3})};var Je=class n{dialog=g(Ro);dialogRef;constructor(){}showItemQuickView(t,e){this.dialogRef=this.dialog.open(Ye,{width:`100vw`,height:`100dvh`,backdropClass:[`letscooee-backdrop`],data:{item:e,triggerContext:t}});}static ɵfac=function(e){return new(e||n)};static ɵprov=C({token:n,factory:n.ɵfac,providedIn:`root`})};var Xe=(i=>(i.SINGLE_DROPDOWN=`SINGLE_DROPDOWN`,i.MULTIPLE_DROPDOWNS=`MULTIPLE_DROPDOWNS`,i.CHIPS=`CHIPS`,i))(Xe||{});var En=n=>({row:n}),yt=(n,t)=>t.id,In=(n,t)=>t.mID;function Pn(n,t){if(n&1&&(nc(0,`option`,7),Sv(1),rc()),n&2){let e=t.$implicit,i=t.$index,o=KD().$implicit,a=KD(2);Mf(`value`,i)(`selected`,a.selectedOptions()[o.name]===e.name)(`disabled`,!!e.disabled),vd(),lc(` `,e.name,` `);}}function kn(n,t){if(n&1){let e=WD();nc(0,`select`,6,0),Lf(`change`,function(){let o=Iu(e).$implicit,a=tv(1);return wu(KD(2).onDropdownChange(o,a.value))}),VD(2,Pn,2,4,`option`,7,BD),rc();}if(n&2){let e=t.$implicit;Mf(`name`,e.name),Sf(`aria-label`,e.name),vd(2),HD(e.optionValues);}}function Dn(n,t){if(n&1&&(nc(0,`div`,2),VD(1,kn,4,2,`select`,5,yt),rc()),n&2){let e=KD();Mf(`ngClass`,Pv(1,En,e.horizontal())),vd(),HD(e.options());}}function Mn(n,t){if(n&1&&(nc(0,`option`,7),Sv(1),rc()),n&2){let e=t.$implicit,i=KD(2);Mf(`value`,e.mID)(`selected`,i.item().selectedOrFirstVariant.value.mID===e.mID)(`disabled`,!e.isAvailable),vd(),lc(` `,e.name,` `);}}function Fn(n,t){if(n&1){let e=WD();nc(0,`div`,3)(1,`select`,8,1),Lf(`change`,function(){Iu(e);let o=tv(2);return wu(KD().onVariantChange(o.value))}),VD(3,Mn,2,4,`option`,7,In),rc()();}if(n&2){let e=KD();vd(),Sf(`aria-label`,`Select variant`),vd(2),HD(e.item().vars);}}function On(n,t){if(n&1&&(nc(0,`div`,11),Sv(1),nc(2,`span`,14),Sv(3),rc()()),n&2){let e=KD().$implicit,i=KD(2);vd(),lc(` `,e.name),vd(2),lc(`: `,i.selectedOptions()[e.name]);}}function An(n,t){if(n&1&&(nc(0,`span`,16),Sv(1),rc()),n&2){KD();let e=Rv(0);vd(),np(e);}}function Ln(n,t){if(n&1){let e=WD();sp(0),nc(1,`button`,15),Lf(`click`,function(){let o=Iu(e).$implicit,a=KD().$implicit;return wu(KD(2).onOptionSelect(a,o))}),LD(2,An,2,1,`span`,16),rc();}if(n&2){let e=t.$implicit,i=KD().$implicit,o=Rv(0),a=KD(2),l=e.name,p=Av(e.displayName||e.name),f=e.swatch,M=o?e.hexColor??l:``,Z=a.selectedOptions()[i.name]===l;vd(),uc(`option-value--swatch`,o)(`option-value--selected`,Z)(`option-value--disabled`,e.disabled),Mf(`title`,p)(`ngStyle`,a.getSwatchStyles(f,M)),Sf(`aria-checked`,Z)(`aria-label`,p)(`aria-disabled`,e.disabled||null),vd(),PD(o?-1:2);}}function Rn(n,t){if(n&1&&(sp(0),nc(1,`div`,10),LD(2,On,4,2,`div`,11),nc(3,`div`,12),VD(4,Ln,3,13,`button`,13,yt),rc()()),n&2){let e=t.$implicit,i=KD(2);Av(i.isColorSwatch(e)),vd(2),PD(i.hideOptionNames()?-1:2),vd(),Sf(`aria-label`,e.name),vd(),HD(e.optionValues);}}function Nn(n,t){if(n&1&&(nc(0,`div`,9),VD(1,Rn,6,3,`div`,10,yt),rc()),n&2){let e=KD();uc(`options-list--horizontal`,e.horizontal()),vd(),HD(e.options());}}var Ae=n=>n.trim().toLowerCase(),et=class n{item=SN.required();selectorType=SN();horizontal=SN(false);hideOptionNames=SN(false);variantSelected=TN();selectedOptions=Zv(()=>{let t=this.item(),e=t.vars.find(o=>o.isAvailable)??t.vars[0],i={};return t.options?.forEach(o=>{let a=e?.selectedOptions.find(l=>l.name===o.name)?.value;a&&(i[o.name]=a);}),i});availabilityIndex=Wv(()=>{let t=this.item(),e=new Map;return t?.vars?.length&&t.vars.forEach((i,o)=>{if(i.isAvailable)for(let a of i.selectedOptions){let l=Ae(a.name),p=e.get(l);p||e.set(l,p=new Map);let f=p.get(a.value);f||p.set(a.value,f=new Set),f.add(o);}}),e});options=Wv(()=>{let t=this.item();return !t.options||t.vars.length===1?[]:(t.options.forEach(e=>{e.optionValues.forEach(i=>{i.disabled=this.isOptionValueDisabledFast(e,i);});}),t.options)});matchedVariant=Wv(()=>{let t=this.item(),e=this.selectedOptions();return t.vars.find(i=>t.options.every(o=>{let a=i.selectedOptions.find(l=>l.name===o.name)?.value;return e[o.name]===a}))});constructor(){Ss(()=>{let t=this.matchedVariant();t&&(this.item().setSelectedVariant(t),this.variantSelected.emit(t));}),Ss(()=>{let t=this.item();if(!t.options)return;try{window.cooeeManipulateProduct&&window.cooeeManipulateProduct(t);}catch(a){Y$1.error(a);}let e=We$3(),o=(e?.currentItem?.vID?this.item().vars.find(a=>a.mID===e.currentItem.vID):void 0)||t.vars.find(a=>a.isAvailable)||t.vars[0];o&&this.syncSelectedOptions(o);});}onPDPVariantChange(t){if(this.item()){this.item().setSelectedVariantByID(t.detail.variantID);let e=this.item().selectedOrFirstVariant.value;this.syncSelectedOptions(e);}}onOptionSelect(t,e){if(e.disabled)return;this.selectedOptions.set(s(r({},this.selectedOptions()),{[t.name]:e.name}));let i=this.matchedVariant();i&&(this.item().setSelectedVariant(i),this.notifyProductChange({product:this.item(),variant:i}));}onDropdownChange(t,e){let i=t.optionValues[Number(e)];i&&this.onOptionSelect(t,i);}isColorSwatch(t){return t.optionValues.some(e=>!!e.swatch||/#[a-f0-9]{6}\b/i.test(e.name))}getSwatchStyles(t,e){return !t&&e?{"--swatch-color":e}:t?.image?.url?{"background-image":`url("${t.image.url}")`}:t?.color?{"--swatch-color":t.color}:{}}showSingleDropdown(){return this.item().vars?.length<=1?false:!this.selectorType()||this.selectorType()===`SINGLE_DROPDOWN`}showMultipleDropdowns(){return this.item().vars?.length<=1?false:this.selectorType()===`MULTIPLE_DROPDOWNS`}showChips(){return this.item().vars?.length<=1?false:this.selectorType()===`CHIPS`}onVariantChange(t){let e=this.item().vars.find(i=>i.mID===t);e&&(this.item().setSelectedVariant(e),this.notifyProductChange({product:this.item(),variant:e}),this.variantSelected.emit(e));}notifyProductChange(t){document.dispatchEvent(new CustomEvent(`letscooee:outbound:variant-change`,{detail:t}));}syncSelectedOptions(t){let e={};t.selectedOptions.forEach(i=>{e[i.name]=i.value;}),this.selectedOptions.set(e);}getCandidateVariantsExcluding(t){let e=this.item(),i=this.availabilityIndex(),o=new Set;e.vars.forEach((l,p)=>{l.isAvailable&&o.add(p);});let a=o;for(let[l,p]of Object.entries(this.selectedOptions())){if(Ae(l)===Ae(t))continue;let f=i.get(Ae(l));if(!f)return new Set;let M=f.get(String(p));if(!M)return new Set;if(a=new Set([...a].filter(Z=>M.has(Z))),a.size===0)return a}return a}isOptionValueDisabledFast(t,e){let o=this.availabilityIndex().get(Ae(t.name));if(!o)return true;let a=e.name,l=o.get(a);if(!l||l.size===0)return true;let p=this.getCandidateVariantsExcluding(t.name);if(p.size===0)return true;for(let f of p)if(l.has(f))return false;return true}static ɵfac=function(e){return new(e||n)};static ɵcmp=gf({type:n,selectors:[[`cooee-product-variant-selector`]],hostBindings:function(e,i){e&1&&Lf(`letscooee:variant-change`,function(a){return i.onPDPVariantChange(a)},gm);},inputs:{item:[1,`item`],selectorType:[1,`selectorType`],horizontal:[1,`horizontal`],hideOptionNames:[1,`hideOptionNames`]},outputs:{variantSelected:`variantSelected`},decls:3,vars:1,consts:[[`sel`,``],[`variantSelect`,``],[1,`dropdowns-wrapper`,3,`ngClass`],[1,`dropdown-wrapper`],[1,`options-list`,3,`options-list--horizontal`],[1,`option-selector`,3,`name`],[1,`option-selector`,3,`change`,`name`],[3,`value`,`selected`,`disabled`],[1,`option-selector`,3,`change`],[1,`options-list`],[1,`option-group`],[1,`option-label`],[`role`,`radiogroup`,1,`option-values`],[`type`,`button`,`role`,`radio`,1,`option-value`,3,`option-value--swatch`,`option-value--selected`,`option-value--disabled`,`title`,`ngStyle`],[1,`option-selected-name`],[`type`,`button`,`role`,`radio`,1,`option-value`,3,`click`,`title`,`ngStyle`],[1,`option-value__label`]],template:function(e,i){e&1&&LD(0,Dn,3,3,`div`,2)(1,Fn,5,1,`div`,3)(2,Nn,3,2,`div`,4),e&2&&PD(i.showMultipleDropdowns()?0:i.showSingleDropdown()?1:i.showChips()?2:-1);},dependencies:[YE,QE],styles:[`:host{display:block}.options-list{display:flex;flex-direction:column;gap:var(--lc-spacing-sm, 8px)}.options-list--horizontal{flex-direction:row;flex-wrap:wrap;align-items:flex-start}.option-group{display:flex;flex-direction:column;gap:var(--lc-spacing-xs, 4px)}.option-label{font-family:var(--lc-text-family, inherit);font-size:var(--lc-text-size, 14px);color:rgb(var(--lc-text-color, 0 0 0));line-height:1.4}.option-selected-name{font-weight:500}.option-values{display:flex;flex-wrap:wrap;gap:var(--lc-spacing-xs, 4px)}.option-value{display:inline-flex;align-items:center;justify-content:center;padding:4px var(--lc-spacing-sm, 8px);min-width:36px;min-height:32px;border:1px solid rgb(var(--lc-text-color, 0 0 0)/.2);border-radius:var(--lc-button-radius, 4px);background:transparent;color:rgb(var(--lc-text-color, 0 0 0));font-family:var(--lc-text-family, inherit);font-size:var(--lc-text-size, 14px);line-height:1;cursor:pointer;transition:background .15s,color .15s,border-color .15s}.option-value--selected{background:rgb(var(--lc-primary-color));color:rgb(var(--lc-primary-button-color, 255 255 255));border-color:rgb(var(--lc-primary-color))}.option-value--disabled{opacity:.4;cursor:not-allowed;pointer-events:none}.option-value--disabled .option-value__label{text-decoration:line-through}.option-value--swatch{width:var(--lc-swatch-size, 28px);height:var(--lc-swatch-size, 28px);min-width:unset;min-height:unset;padding:0;border-radius:var(--lc-swatch-radius, 50%);border:2px solid transparent;outline:2px solid transparent;outline-offset:0;background-color:var(--swatch-color, transparent);background-size:cover;background-position:center;transition:outline-color .15s,outline-offset .15s}.option-value--swatch.option-value--selected{border-color:rgb(var(--lc-card-bg-color, 255 255 255));outline-color:rgb(var(--lc-primary-color));outline-offset:2px}.option-value--swatch.option-value--disabled{position:relative;overflow:hidden}.option-value--swatch.option-value--disabled:after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom right,transparent calc(50% - .5px),rgba(0,0,0,.4) calc(50% - .5px) calc(50% + .5px),transparent calc(50% + .5px));border-radius:inherit}.dropdowns-wrapper,.dropdown-wrapper{display:flex;gap:8px;width:100%}.option-selector{width:100%;padding:8px 24px 8px 8px;border:1px solid black;border-radius:var(--lc-button-radius);font-size:var(--lc-text-size)}@media(min-width:768px){.option-selector:hover{border-color:rgba(var(--lc-primary-color))}}.option-selector:focus{outline:none}.option-selector{flex:0 0 130px}@media(max-width:768px){.option-selector{flex:1 1 0;min-width:0}}
33
+ `],encapsulation:2})};var Bn=(n,t)=>({enter:n,exit:t}),zn=(n,t)=>t.id;function Hn(n,t){if(n&1&&(nc(0,`div`,3),bf(1,`img`,10),rc()),n&2){let e,i,o=KD();vd(),Mf(`src`,((e=o.selectedVariant())==null?null:e.getOneImage())||o.currentItem.firstImageURL,pm),Sf(`alt`,((i=o.selectedVariant())==null?null:i.name)||o.currentItem.name||`Product image`);}}function jn(n,t){if(n&1&&(nc(0,`div`,13),Sv(1),rc(),nc(2,`div`,14),Sv(3),rc()),n&2){let e=KD(2);vd(),lc(` `,e.getCurrency(e.selectedVariant().price.cmp),` `),vd(2),lc(` `,e.getDiscountPercentage(e.selectedVariant().price),`% off `);}}function $n(n,t){if(n&1&&(nc(0,`div`,12),Sv(1),rc()),n&2){let e=KD(2);vd(),lc(` `,e.stickyATCConfig.leftText,` `);}}function Un(n,t){if(n&1&&(nc(0,`div`,4)(1,`div`,11),Sv(2),rc(),LD(3,jn,4,2),LD(4,$n,2,1,`div`,12),rc()),n&2){let e=KD();vd(2),lc(` `,e.getCurrency(e.selectedVariant().price.d),` `),vd(),PD(e.selectedVariant().price.cmp?3:-1),vd(),PD(e.stickyATCConfig.leftText?4:-1);}}function Qn(n,t){n&1&&Af(0);}function qn(n,t){if(n&1&&(nc(0,`div`,15),Sv(1),rc()),n&2){let e=t.$implicit,i=t.$index;KD(2);let o=Rv(9);Mf(`ngClass`,jv(2,Bn,i===o.currentIndex,i===o.previousIndex)),vd(),lc(` `,e,` `);}}function Wn(n,t){if(n&1&&(nc(0,`div`,9),VD(1,qn,2,5,`div`,15,BD),rc()),n&2){KD();let e=Rv(9);vd(),HD(e.features);}}function Zn(n,t){if(n&1&&bf(0,`cooee-product-variant-selector`,16),n&2){let e=KD(2);Mf(`item`,e.currentItem)(`horizontal`,true)(`hideOptionNames`,true)(`selectorType`,e.stickyATCConfig.variantSelectorConfig==null?null:e.stickyATCConfig.variantSelectorConfig.type);}}function Gn(n,t){if(n&1&&(nc(0,`option`,21),Sv(1),rc()),n&2){let e,i=t.$implicit,o=KD(3);Mf(`value`,i.id)(`selected`,((e=o.selectedVariant())==null||e.selectedSellingPlan==null||e.selectedSellingPlan.value==null?null:e.selectedSellingPlan.value.id)===i.id),vd(),lc(` `,i.name,` `);}}function Kn(n,t){if(n&1){let e=WD();nc(0,`div`,17)(1,`select`,19,1),Lf(`change`,function(){Iu(e);let o=tv(2);return wu(KD(2).onSubscriptionChange(o.value))}),nc(3,`option`,20),Sv(4,`Select Subscription`),rc(),VD(5,Gn,2,3,`option`,21,zn),rc()();}if(n&2){let e=KD(2);vd(5),HD(e.selectedVariant().sellingPlans);}}function Yn(n,t){if(n&1){let e=WD();nc(0,`div`,18)(1,`button`,22),Lf(`click`,function(){Iu(e);return wu(KD(2).onQuantityDecrement())}),Sv(2,`− `),rc(),nc(3,`span`,23),Sv(4),rc(),nc(5,`button`,24),Lf(`click`,function(){Iu(e);return wu(KD(2).onQuantityIncrement())}),Sv(6,`+ `),rc()();}if(n&2){let e=KD(2);vd(4),np(e.currentItem.selectedQty.value);}}function Jn(n,t){if(n&1&&(LD(0,Zn,1,4,`cooee-product-variant-selector`,16),LD(1,Kn,7,0,`div`,17),LD(2,Yn,7,1,`div`,18)),n&2){let e,i=KD();PD(i.currentItem.options.length&&i.stickyATCConfig.variantSelectorConfig!=null&&i.stickyATCConfig.variantSelectorConfig.show?0:-1),vd(),PD(!((e=i.selectedVariant())==null||e.sellingPlans==null)&&e.sellingPlans.length&&i.stickyATCConfig.showSubscriptionSelector?1:-1),vd(),PD(i.stickyATCConfig.showQuantitySelector?2:-1);}}var tt=class n extends Pe{currentItem;stickyATCConfig;selectedVariant=jt$1(void 0);featureSlider=jt$1({features:[],currentIndex:0});VariantSelectorType=Xe;constructor(){super();}onVariantChange(t){this.currentItem&&(this.currentItem.setSelectedVariantByID(t.detail.variantID),this.selectedVariant.set(this.currentItem.selectedOrFirstVariant.value));}engagementTriggerReceived(t){this.stickyATCConfig=t.stickyATCConfig??{},this.currentItem=t.items[0];let e=We$3(),i=this.currentItem.vars.find(o=>o.mID===e.currentItem.vID);i&&this.currentItem.setSelectedVariantByID(i.mID),this.selectedVariant.set(this.currentItem.selectedOrFirstVariant.value),this.stickyATCConfig.leftText=this.replaceVariables(this.stickyATCConfig.leftText),this.stickyATCConfig.rightText=this.replaceVariables(this.stickyATCConfig.rightText),this.startFeatureRotation();}update(){}getCurrency(t){return Vr$1(t)}getDiscountPercentage(t){return ((t.cmp-t.d)/t.cmp*100).toFixed(0)}onSubscriptionChange(t){if(!t)return;let e=this.selectedVariant()?.sellingPlans?.find(i=>i.id===t);e&&(this.selectedVariant()?.changeSellingPlan(e),this.notifyProductChange({product:this.currentItem,sellingPlan:e}));}shouldShowImage(){return !!(this.stickyATCConfig.showImage&&(this.selectedVariant()?.getOneImage()||this.currentItem.firstImageURL))}onQuantityIncrement(){this.updateQuantity(this.currentItem.selectedQty.value+1);}onQuantityDecrement(){this.updateQuantity(Math.max(1,this.currentItem.selectedQty.value-1));}updateQuantity(t){this.currentItem.selectedQuantity=t,this.notifyProductChange({product:this.currentItem,quantity:t});}addToCart(){this.engagementService.executeCTA(he$2.ADD_TO_CART,{item:this.currentItem});}notifyProductChange(t){document.dispatchEvent(new CustomEvent(`letscooee:outbound:variant-change`,{detail:t}));}startFeatureRotation(){if(!this.stickyATCConfig.rightText)return;let t=this.stickyATCConfig.rightText.split(`
34
+ `),e=t.length===1?null:setInterval(()=>{this.featureSlider.update(i=>s(r({},i),{previousIndex:i.currentIndex,currentIndex:(i.currentIndex+1)%i.features.length}));},3e3);this.featureSlider.set({intervalRef:e,currentIndex:0,features:t});}replaceVariables(t){return t?Fe$2(t,this.currentItem.getTemplateVariables(),this.triggerContext):``}static ɵfac=function(e){return new(e||n)};static ɵcmp=gf({type:n,selectors:[[`cooee-sticky-atc`]],hostBindings:function(e,i){e&1&&Lf(`letscooee:variant-change`,function(a){return i.onVariantChange(a)},gm);},features:[up(Gt()),Ya],decls:13,vars:6,consts:[[`selectorsTemplate`,``],[`subscriptionSelect`,``],[1,`lc-wrapper`],[1,`image-wrapper`],[1,`lc-prices`],[4,`ngTemplateOutlet`],[1,`lc-button-wrapper`],[`type`,`button`,1,`lc-button`,`lc-button-atc`,3,`click`],[1,`atc-sale-price`],[1,`lc-features`],[`loading`,`lazy`,3,`src`],[1,`lc-sale-price`],[1,`lc-additional-text`],[1,`lc-compare-price`],[1,`lc-discount-label`],[1,`lc-feature`,3,`ngClass`],[3,`item`,`horizontal`,`hideOptionNames`,`selectorType`],[1,`subscription-selector-wrapper`],[1,`quantity-selector`],[`aria-label`,`Subscription`,1,`subscription-selector`,3,`change`],[`value`,``],[3,`value`,`selected`],[`type`,`button`,`aria-label`,`Decrease quantity`,1,`qty-btn`,3,`click`],[1,`qty-value`],[`type`,`button`,`aria-label`,`Increase quantity`,1,`qty-btn`,3,`click`]],template:function(e,i){if(e&1&&(nc(0,`div`,2),LD(1,Hn,2,2,`div`,3),LD(2,Un,5,3,`div`,4),Ef(3,Qn,1,0,`ng-container`,5),nc(4,`div`,6)(5,`button`,7),Lf(`click`,function(){return i.addToCart()}),Sv(6,` Add To Cart `),nc(7,`span`,8),Sv(8),rc()(),sp(9),LD(10,Wn,3,0,`div`,9),rc()(),Ef(11,Jn,3,3,`ng-template`,null,0,Uv)),e&2){let o=tv(12);vd(),PD(i.shouldShowImage()?1:-1),vd(),PD(i.selectedVariant()&&i.stickyATCConfig.showProductInfo?2:-1),vd(),Mf(`ngTemplateOutlet`,o),vd(5),lc(` `,i.getCurrency(i.selectedVariant().price.d*i.currentItem.selectedQty.value),` `),vd();let a=Av(i.featureSlider());vd(),PD(a.features.length?10:-1);}},dependencies:[YE,KE,et],styles:[`:host{display:flex;justify-content:center;padding:10px;background-color:#fff;width:100%;box-shadow:4px 0 10px #0006;line-height:normal}.lc-wrapper{display:flex;justify-content:space-between;align-items:center;gap:8px;max-width:1100px;width:100%;margin:0 auto}.lc-prices{flex:1 1 100%;display:flex;flex-wrap:wrap;align-items:center;gap:6px}@media(min-width:768px){.lc-prices{gap:8px}}.lc-sale-price{font-size:24px;font-weight:600}.lc-compare-price{font-size:18px;font-weight:600;color:red;text-decoration:line-through}.lc-discount-label{font-size:12px;font-weight:500;color:green}.lc-button-wrapper{flex:1 1 100%;display:flex;flex-direction:column;gap:4px;align-items:center}.lc-button{background-color:rgba(var(--lc-primary-button-bg-color));color:rgba(var(--lc-primary-button-color));font-weight:var(--lc-primary-button-weight);text-transform:var(--lc-primary-button-transform);border-radius:var(--lc-button-radius);font-size:var(--lc-button-size);font-family:var(--lc-button-family),serif;height:var(--lc-button-height);letter-spacing:var(--lc-button-letter-spacing);transition:filter .12s ease,background-color .2s ease,color .2s ease;border-width:1px;border-style:solid;border-color:rgba(var(--lc-primary-button-border-color));display:flex;align-items:center;justify-content:center;gap:8px}.lc-button cooee-icon,.lc-button>svg,.lc-button>img{width:var(--lc-button-icon-size);height:var(--lc-button-icon-size);color:inherit}.lc-button:hover{filter:brightness(.95)}.lc-button:active{filter:brightness(.9)}.lc-button:focus-visible{outline:2px solid rgba(var(--lc-primary-color, 0, 0, 0));outline-offset:2px}.lc-button{min-width:150px;width:100%;padding:8px}.lc-button .atc-sale-price{display:none}.lc-additional-text,.lc-feature{font-size:12px;color:#666}.lc-features{position:relative;overflow:hidden;height:16px;text-align:center;width:100%}.lc-features .lc-feature{position:absolute;width:100%;opacity:0;transform:translateY(100%);transition:transform .5s ease,opacity .5s ease}.lc-features .lc-feature.enter{opacity:1;transform:translateY(0);z-index:2}.lc-features .lc-feature.exit{opacity:0;transform:translateY(-100%);z-index:1}.image-wrapper{display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:70px;height:70px;border-radius:4px}.image-wrapper img{width:100%;height:100%;object-fit:cover;border-radius:4px}.selectors-wrapper{display:flex;gap:8px;flex:1 1 100%;min-width:0}cooee-product-variant-selector{flex:0 1 auto}@media(max-width:768px){cooee-product-variant-selector{flex:1 1 0}}.subscription-selector-wrapper{flex:0 0 130px;display:flex}@media(max-width:768px){.subscription-selector-wrapper{flex:1 1 auto;min-width:0}}.subscription-selector-wrapper .subscription-selector{width:100%;padding:8px 24px 8px 8px;border:1px solid black;border-radius:var(--lc-button-radius);font-size:var(--lc-text-size)}@media(min-width:768px){.subscription-selector-wrapper .subscription-selector:hover{border-color:rgba(var(--lc-primary-color))}}.subscription-selector-wrapper .subscription-selector:focus{outline:none}.quantity-selector{flex:0 0 auto;display:flex;align-items:stretch;border:1px solid black;border-radius:var(--lc-button-radius)}.quantity-selector .qty-btn{display:flex;align-items:center;justify-content:center;flex:0 0 28px;border:none;cursor:pointer;font-size:18px;font-weight:600;padding:4px;border-radius:var(--lc-button-radius)}.quantity-selector .qty-btn:active{background-color:#f0f0f0}@media(min-width:768px){.quantity-selector .qty-btn:hover{background-color:#f5f5f5}}.quantity-selector .qty-value{display:flex;place-content:center;justify-content:center;flex:0 0 28px;padding:8px 0;text-align:center;font-size:14px;font-weight:500}@media(max-width:768px){.lc-wrapper{flex-wrap:wrap;align-items:start}.lc-prices,.lc-button-wrapper{flex-basis:auto;flex-grow:1}cooee-product-variant-selector{order:1;flex-basis:100%}.quantity-selector{order:4}.lc-button-wrapper{order:5}}
35
+ `],encapsulation:3})};var Xn=[`videoEl`];async function Di(){return (await import('./video-detail-dialog.component-B5lH46XS-B8JpGuln.js').then(function (n) { return n.v; })).VideoDetailDialogComponent}var ye=class n extends Pe{videoElements;videoEntries;videoConfig;dialogRef=null;dialog=g(Ro);isMobile=M$3();pausedVideos=[];videoLoadingStates=new Map;intersectionObserver;visibleVideos=new Set;constructor(){super(),Di();}ngAfterViewInit(){this.checkAndOpenVideoFromUrl();}ngOnDestroy(){super.ngOnDestroy(),this.intersectionObserver?.disconnect();}engagementTriggerReceived(t){this.videoConfig=t.content?.videoConfig,this.videoEntries=this.videoConfig.videoEntries;}onMuteToggled(t,e){t||this.videoElements.forEach(i=>{i.nativeElement!==e&&(i.nativeElement.muted=true,i.nativeElement.pause());});}sendTriggerClicked(t,e){this.sendEvent(`CE Trigger Clicked`,{},t,e);}async onVideoTap(t,e,i,o,a){t?.stopPropagation(),t?.preventDefault();let l=e.items?.[0];if(this.sendTriggerClicked(e,l),this.videoConfig.footerContent===`NONE`){o&&(o.muted=false,o.play(),this.onMuteToggled(false,o));return}await this.openDialog(e,i,a);}sendEvent(t,e,i,o){let a=new Ir$1(t,e,this.engagementTrigger);a.setVideos(i),o&&(a.items=[o.toEmbed()]),window.CooeeSDK.sendEvent(a);}onDialogClosed(){this.resumePlaylistVideos();}isVideoLoading(t){return this.videoLoadingStates.get(t)??true}onVideoLoadStart(t){this.videoLoadingStates.set(t,true);}onVideoCanPlay(t){this.videoLoadingStates.set(t,false);}playVideo(t){t.play().catch(e=>{Y$1.error(`Failed to play video:`,e);});}setupIntersectionObserver(t=.5,e=`50px`){this.intersectionObserver=new IntersectionObserver(i=>{i.forEach(o=>{let a=o.target,l=a.dataset.videoId;l&&(o.isIntersecting?(this.visibleVideos.add(l),this.handleVideoVisibilityChange(a,true)):(this.visibleVideos.delete(l),this.handleVideoVisibilityChange(a,false)));});},{threshold:t,rootMargin:e}),setTimeout(()=>{this.videoElements.forEach(i=>{this.intersectionObserver?.observe(i.nativeElement);});},100);}handleVideoVisibilityChange(t,e){e?this.onVideoBecameVisible(t):t.pause();}onVideoBecameVisible(t){this.playVideo(t);}pauseAllPlaylistVideos(){this.pausedVideos=[],this.videoElements.forEach(t=>{let e=t.nativeElement;e.paused||(this.pausedVideos.push(e),e.pause());});}resumePlaylistVideos(){this.pausedVideos.forEach(t=>{t.play().catch(()=>{});}),this.pausedVideos=[];}async checkAndOpenVideoFromUrl(){let t=We$4();if(!t||!this.videoEntries)return;let e=Je$2();if(e.utm_campaign?.toLowerCase()!==`shoppable_video`||e.utm_source?.toLowerCase()!==Ae$2)return;let i=this.videoEntries.findIndex(o=>o.video.shortID===+t);if(i!==-1){let o=this.videoEntries[i].video;await ce$2.set(`muted`,true),await this.openDialog(o,i);}}async openDialog(t,e,i){await Vi$1();let o={videoEntries:this.videoEntries,currentIndex:e,triggerContext:this.triggerContext,selectedItem:i};this.dialogRef&&this.dialogRef.close(),this.pauseAllPlaylistVideos();let a=await Di();this.dialogRef=this.dialog.open(a,{width:`100vw`,height:`100vh`,data:o,providers:an$1(this.triggerContext,{video:t,index:e}),disableClose:true});let l={videoID:t.id,videoIndex:e};this.sendEvent(`CE Video Dialog Opened`,{current:l},t),this.dialogRef.closed.subscribe(p=>{if(this.dialogRef=null,!p)return;let f=p.lastVideoDuration*1e3,M={videoID:p.lastVideo.id,videoIndex:p.lastVideoIndex,playedTillMS:f,playedTillPercent:f/p.lastVideo.durationMS};this.sendEvent(`CE Video Dialog Closed`,{current:M},p.lastVideo),this.onDialogClosed();});}static ɵfac=function(e){return new(e||n)};static ɵcmp=gf({type:n,selectors:[[`cooee-abstract-video`]],viewQuery:function(e,i){if(e&1&&ac(Xn,5),e&2){let o;Hf(o=$f())&&(i.videoElements=o);}},features:[Ya],decls:0,vars:0,template:function(e,i){},encapsulation:2})};var _e=class n{video=SN.required({alias:`cooeeVideoSources`});prioritySource=SN(`high`);elementRef=g(be$1);constructor(){Ss(()=>{this.updateSources();});}updateSources(){let t=this.elementRef.nativeElement,e=this.video(),i=this.prioritySource();t.querySelectorAll(`source`).forEach(a=>a.remove()),i===`best`?(this.addSource(e.bestSource),this.addSource(e.highSource),this.addSource(e.lowSource)):i===`low`?(this.addSource(e.lowSource),this.addSource(e.highSource),this.addSource(e.bestSource)):(this.addSource(e.highSource),this.addSource(e.bestSource),this.addSource(e.lowSource)),this.addSource(e.m3u8Source),t.load();}addSource(t){if(!t)return;let e=document.createElement(`source`);e.src=t.url,e.type=t.mimeType,this.elementRef.nativeElement.appendChild(e);}static ɵfac=function(e){return new(e||n)};static ɵdir=wn$2({type:n,selectors:[[`video`,`cooeeVideoSources`,``]],inputs:{video:[1,`cooeeVideoSources`,`video`],prioritySource:[1,`prioritySource`]}})};var eo=(n,t)=>t.video.id;function to(n,t){if(n&1&&(bf(0,`div`,1),Bv(1,`safeHtml`)),n&2)Mf(`innerHTML`,Hv(1,1,KD().videoConfig.heading),fm);}function io(n,t){n&1&&(nc(0,`div`,6),bf(1,`div`,12),rc());}function no(n,t){if(n&1){let e=WD();nc(0,`cooee-mute-toggle`,13),Lf(`toggled`,function(o){Iu(e),KD();let a=tv(7);return wu(KD().onMuteToggled(o,a))}),rc();}if(n&2){KD();let e=tv(7);Mf(`muted`,e.muted)(`videoEl`,e);}}function oo(n,t){if(n&1){let e=WD();nc(0,`cooee-video-promoted-items`,16),Lf(`cardClick`,function(o){Iu(e);let a=KD(2).$index,l=tv(7),p=Rv(0);return wu(KD().onItemCardClick(o,p,a,l))}),rc();}if(n&2){KD(2);Mf(`items`,Rv(0).items)(`centeredSlides`,false);}}function ro(n,t){if(n&1){let e=WD();nc(0,`cooee-item-card`,17),Lf(`buttonClick`,function(){Iu(e);let o=KD(2).$index,a=tv(7),l=Rv(0);return wu(KD().addToCartClicked(null,l,o,a))})(`click`,function(){Iu(e);let o=KD(2).$index,a=tv(7),l=Rv(0),p=Rv(1);return wu(KD().onItemCardClick(p,l,o,a))}),rc();}if(n&2){KD(2);Mf(`item`,Rv(1));}}function ao(n,t){if(n&1&&LD(0,oo,1,2,`cooee-video-promoted-items`,14)(1,ro,1,1,`cooee-item-card`,15),n&2){KD();let e=Rv(0),i=KD();PD(Rv(2)===i.VideoConfigFooterContent.ITEM_SWIPER&&e.items.length>1?0:e.items.length?1:-1);}}function so(n,t){if(n&1){let e=WD();nc(0,`cooee-video-card`,18),Lf(`linkClicked`,function(){Iu(e),KD();let o=Rv(0);return wu(KD().sendTriggerClicked(o))}),rc();}if(n&2){KD();Mf(`card`,Rv(2));}}function lo(n,t){if(n&1){let e=WD();sp(0)(1)(2),nc(3,`div`,4)(4,`div`,5),Lf(`click`,function(o){let a=Iu(e).$index,l=tv(7),p=Rv(0);return wu(KD().onVideoTap(o,p,a,l))})(`keydown.enter`,function(o){let a=Iu(e).$index,l=tv(7),p=Rv(0);return wu(KD().onVideoTap(o,p,a,l))})(`keydown.space`,function(o){let a=Iu(e).$index,l=tv(7),p=Rv(0);return wu(KD().onVideoTap(o,p,a,l))}),LD(5,io,2,0,`div`,6),nc(6,`video`,7,0),Lf(`mouseenter`,function(){Iu(e);let o=tv(7);KD();return wu(Rv(1)&&o.play())})(`mouseleave`,function(){Iu(e);let o=tv(7);KD();return wu(Rv(1)&&o.pause())})(`loadstart`,function(){Iu(e);let o=Rv(0);return wu(KD().onVideoLoadStart(o.id))})(`canplay`,function(){Iu(e);let o=Rv(0);return wu(KD().onVideoCanPlay(o.id))}),rc(),nc(8,`div`,8),LD(9,no,1,2,`cooee-mute-toggle`,9),rc()(),nc(10,`div`,10),LD(11,ao,2,1)(12,so,1,1,`cooee-video-card`,11),rc()();}if(n&2){let e=t.$implicit,i=KD(),o=Rv(0),a=Rv(2),l=Av(e.video);vd(),Av(l.items[0]),vd();let f=Av(l.card)&&a===i.VideoConfigFooterContent.CARD;vd(2),cc(`background-image`,l.thumbnail?`url(`+l.thumbnail+`)`:null),vd(),PD(i.isVideoLoading(l.id)?5:-1),vd(),Mf(`cooeeVideoSources`,l)(`muted`,true),Sf(`poster`,l.thumbnail)(`preload`,o?`metadata`:`none`)(`autoplay`,null)(`data-video-id`,l.id),vd(3),PD(i.videoConfig.showMuteButton?9:-1),vd(2),PD(i.videoConfig.showItems()?11:f?12:-1);}}var it=class n extends ye{VideoConfigFooterContent=se$2;VideoConfigAutoPlay=oe$2;swiperOptions=null;constructor(){super(),this.hasSwiper=true;}ngAfterViewInit(){super.ngAfterViewInit();let t=this.videoConfig.playlistConfig.videoSwiper,e=t?(this.isMobile?t.gapSm:t.gap)+`px`:window.cooeePlaylistGap??24,i=t?this.isMobile?t.maxInRowSm:t.maxInRow:`auto`;this.swiperOptions={direction:`horizontal`,effect:`slide`,loop:t?.loop,freeMode:true,spaceBetween:e,slidesPerView:i,mousewheel:{enabled:true,forceToAxis:true},autoplay:t?.autoplay?.enabled?{delay:t?.autoplay?.delay,disableOnInteraction:false}:false},this.setupIntersectionObserver(),this.playFirstVideo();}ngOnDestroy(){super.ngOnDestroy();}addToCartClicked(t,e,i,o){let a=e.items?.[0],l=le$3.get().website?.canChangeVariantInCart;if(e.items?.length>1||a?.hasVariants()&&!l){this.onItemCardClick(a,e,i,o);return}this.engagementService.executeCTA(he$2.ADD_TO_CART,{item:a,video:e});}goToPDP(t,e){t?.stopPropagation(),t?.preventDefault();let i=e.items?.[0];this.engagementService.executeCTA(he$2.GO_TO_PRODUCT,{item:i,video:e});}onItemCardClick(t,e,i,o){this.videoConfig.playlistConfig.itemCardClickBehavior===`OPEN_ITEM_DETAIL`?this.onVideoTap(null,e,i,o,t):this.onVideoTap(null,e,i,o);}update(){}onVideoCanPlay(t){if(super.onVideoCanPlay(t),!this.shouldAutoPlay()||this.dialogRef||!this.visibleVideos.has(t))return;let e=this.videoElements.find(i=>i.nativeElement.dataset.videoId===t)?.nativeElement;e&&this.playVideo(e);}onVideoBecameVisible(t){this.shouldAutoPlay()&&(this.dialogRef?this.pausedVideos.push(t):this.playVideo(t));}shouldAutoPlay(){return this.videoConfig.autoPlay===`ON`||this.videoConfig.autoPlay===`ON_HOVER`&&this.isMobile}playFirstVideo(){}static ɵfac=function(e){return new(e||n)};static ɵcmp=gf({type:n,selectors:[[`cooee-video-playlist`]],features:[up(Gt()),Ya],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&&(sp(0)(1)(2),LD(3,to,2,3,`div`,1),nc(4,`cooee-swiper`,2),ic(5,3),VD(6,lo,13,14,`div`,4,eo),Ko(),rc()),e&2){Av(!i.videoConfig.autoPlay||i.videoConfig.autoPlay===i.VideoConfigAutoPlay.ON),vd(),Av(i.videoConfig.autoPlay===i.VideoConfigAutoPlay.ON_HOVER),vd(),Av(i.videoConfig.footerContent),vd(),PD(i.videoConfig.heading?3:-1);let o=i.videoConfig.playlistConfig.videoSwiper;vd(),Mf(`options`,i.swiperOptions)(`navigationConfig`,o==null?null:o.navigation)(`paginationConfig`,o==null?null:o.pagination),vd(2),HD(i.videoEntries);}},dependencies:[qt,Wt,$t,fe,_e,Kt,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
+ `],encapsulation:3})};var co=[`videoElement`],po=n=>({"cursor-grab":n}),nt=class n extends ye{videoElement;video;isDragging=false;hidden=false;cdkDrag=g(ge$1,{self:true});untilDestroyed=Ut();constructor(){super();}get popupClasses(){return this.hidden?[`hidden`]:[`visible`]}onClick(t){t.stopPropagation(),t.preventDefault(),this.onVideoClick();}ngOnInit(){super.ngOnInit();let t=this.elementRef.nativeElement.closest(`.letscooee-engagement`);t&&(t.style.zIndex=`10000`),this.cdkDrag.moved.pipe(this.untilDestroyed).subscribe(()=>this.isDragging=true);}ngAfterViewInit(){super.ngAfterViewInit(),setTimeout(()=>{this.autoPlay();},100);}onVideoClick(){if(this.isDragging){this.isDragging=false;return}this.hidden=true,this.onVideoTap(null,this.video,0);}close(){this.hidden=true;let t=(new Date().getTime()-this.triggerContext.startTime.getTime())/1e3;this.sendEvent(`CE Trigger Closed`,{duration:t});}engagementTriggerReceived(t){super.engagementTriggerReceived(t),this.video=this.videoEntries[0].video;}update(){}onDialogClosed(){this.hidden=false;}autoPlay(){let t=this.videoElement.nativeElement;this.hidden||this.playVideo(t);}static ɵfac=function(e){return new(e||n)};static ɵcmp=gf({type:n,selectors:[[`cooee-video-popup`]],viewQuery:function(e,i){if(e&1&&ac(co,5),e&2){let o;Hf(o=$f())&&(i.videoElement=o.first);}},hostAttrs:[`role`,`button`,`tabindex`,`0`,`aria-label`,`Open video popup `,`cdkDragBoundary`,`body`],hostVars:2,hostBindings:function(e,i){e&1&&Lf(`keydown.enter`,function(a){return i.onClick(a)})(`keydown.space`,function(a){return i.onClick(a)})(`click`,function(a){return i.onClick(a)}),e&2&&mv(i.popupClasses);},features:[up(Gt()),ID([{directive:ge$1,inputs:[`cdkDragBoundary`,`cdkDragBoundary`]}]),Ya],decls:9,vars:6,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`,`prioritySource`]],template:function(e,i){if(e&1){let o=WD();nc(0,`div`,1)(1,`button`,2),Lf(`click`,function(l){return Iu(o),l.stopPropagation(),wu(i.close())}),bf(2,`cooee-icon`,3),rc(),nc(3,`div`,4),bf(4,`cooee-icon`,5),nc(5,`div`,6),Sv(6,`Tap to unmute`),rc()(),bf(7,`video`,7,0),rc();}e&2&&(Mf(`ngClass`,Pv(4,po,i.isDragging)),vd(7),Mf(`muted`,true)(`cooeeVideoSources`,i.video)(`prioritySource`,`low`));},dependencies:[YE,ye$2,_e],styles:[`:host{position:fixed;display:block;right:24px;bottom:24px;min-height:150px;max-width:150px;box-shadow:0 25px 50px -12px #00000040}:host(.hidden){display:none}.popup-inner{display:flex;justify-content:center;align-items:center;position:relative}video{width:100%;border-radius:8px;background-color:#fff}.close-button{position:absolute;top:-14px;right:-14px;background-color:#00000080;border-radius:9999px;width:32px;height:32px;border:none;z-index:10;display:flex;justify-content:center;align-items:center}.play-button{display:flex;justify-content:center;align-items:center;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) scale(1);transition:all .1s ease-in-out;z-index:999;flex-wrap:wrap;width:100%;max-width:130px;border-radius:5px;padding:5px 10px;background-color:#97979761;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.play-button cooee-icon{width:14px;height:14px}.play-button .text{font-size:11px;line-height:1;color:#fff;font-weight:400;margin-left:5px;text-align:center}
37
+ `],encapsulation:3})};var mo=(n,t)=>t.video.id;function uo(n,t){if(n&1&&(bf(0,`div`,1),Bv(1,`safeHtml`)),n&2)Mf(`innerHTML`,Hv(1,1,KD().videoConfig.heading),fm);}function fo(n,t){n&1&&(nc(0,`div`,9),bf(1,`div`,12),rc());}function go(n,t){if(n&1&&(nc(0,`div`,11),Sv(1),rc()),n&2){let e=KD().$implicit;vd(),np(e.title);}}function vo(n,t){if(n&1){let e=WD();nc(0,`div`,4),Lf(`click`,function(o){let a=Iu(e),l=a.$implicit,p=a.$index;return wu(KD().onVideoTap(o,l.video,p))})(`keydown.enter`,function(o){let a=Iu(e),l=a.$implicit,p=a.$index;return wu(KD().onVideoTap(o,l.video,p))})(`keydown.space`,function(o){let a=Iu(e),l=a.$implicit,p=a.$index;return wu(KD().onVideoTap(o,l.video,p))}),ku(),nc(1,`svg`,5),bf(2,`circle`,6)(3,`circle`,7),rc(),Fu(),nc(4,`div`,8),LD(5,fo,2,0,`div`,9),nc(6,`video`,10,0),Lf(`loadstart`,function(){let o=Iu(e).$implicit;return wu(KD().onVideoLoadStart(o.video.id))})(`canplay`,function(){let o=Iu(e).$implicit;return wu(KD().onVideoCanPlay(o.video.id))}),rc()(),LD(8,go,2,1,`div`,11),rc();}if(n&2){let e=t.$implicit,i=t.$index,o=KD();Sf(`aria-label`,`Open video story `+(i+1)),vd(5),PD(o.isVideoLoading(e.video.id)?5:-1),vd(),Mf(`poster`,e.video.thumbnail)(`cooeeVideoSources`,e.video)(`prioritySource`,`low`)(`muted`,true),Sf(`data-video-id`,e.video.id),vd(2),PD(e.title?8:-1);}}var ot=class n extends ye{constructor(){super();}ngAfterViewInit(){super.ngAfterViewInit(),this.setupIntersectionObserver();}ngOnDestroy(){super.ngOnDestroy();}update(){}static ɵfac=function(e){return new(e||n)};static ɵcmp=gf({type:n,selectors:[[`cooee-video-stories`]],features:[up(Gt()),Ya],decls:4,vars:1,consts:[[`videoEl`,``],[1,`heading-text`,3,`innerHTML`],[1,`video-stories`],[`role`,`button`,`tabindex`,`0`,1,`video-story`],[`role`,`button`,`tabindex`,`0`,1,`video-story`,3,`click`,`keydown.enter`,`keydown.space`],[`viewBox`,`0 0 100 100`],[`cx`,`50`,`cy`,`50`,`r`,`48`,`fill`,`none`,`stroke-width`,`4`],[`cx`,`50`,`cy`,`50`,`r`,`48`,`fill`,`none`,`stroke-width`,`4`,`stroke-linecap`,`round`,`stroke-dasharray`,`301.6`,`stroke-dashoffset`,`301.6`,1,`video-story-circle`],[1,`video-wrapper`],[1,`video-loading-overlay`],[`loop`,``,`playsinline`,``,`preload`,`metadata`,3,`loadstart`,`canplay`,`poster`,`cooeeVideoSources`,`prioritySource`,`muted`],[1,`video-story-title`],[1,`loading-spinner`]],template:function(e,i){e&1&&(LD(0,uo,2,3,`div`,1),nc(1,`div`,2),VD(2,vo,9,8,`div`,3,mo),rc()),e&2&&(PD(i.videoConfig.heading?0:-1),vd(2),HD(i.videoEntries));},dependencies:[_e,a],styles:[`:host{display:block}.video-stories{display:flex;overflow:auto;margin:.75rem;gap:.75rem;justify-content:center;align-items:center;scrollbar-width:none}.video-stories::-webkit-scrollbar{display:none}@media(max-width:768px){.video-stories{justify-content:start!important}}.video-story{position:relative;width:5rem;cursor:pointer;flex-shrink:0}.video-story .video-story-title{margin-top:.25rem;font-size:.7rem;line-height:1.1;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.video-story svg{position:absolute;top:0;left:0;width:100%;height:100%}.video-story svg circle:first-child{stroke:#d1d5db}.video-story svg circle:last-child{stroke:#3b82f6}.video-story .video-wrapper{position:relative;width:100%;height:100%;border-radius:9999px;overflow:hidden}.video-story .video-wrapper video{width:100%;height:100%;object-fit:cover;border-radius:9999px;position:relative;z-index:1}.video-story .video-wrapper .video-loading-overlay{border-radius:9999px}
38
+ `],encapsulation:3})};async function Rs(){let n=await yC(Pi),t=(e,i)=>{let o=Ii(e,{injector:n.injector});customElements.get(i)||customElements.define(i,o);};t(tt,`cooee-sticky-atc`),t(Ke,`cooee-savings-bar`),t(Ge,`cooee-progressbar`),t(it,`cooee-video-playlist`),t(nt,`cooee-video-popup`),t(ot,`cooee-video-stories`),t(Ne,`cooee-product-options-picker`),t(Qe,`cooee-collection-filter`),sessionStorage.cooeeDebug&&import('./debugger.component-CG_-S7Xf-Ba7jb9DY.js').then(e=>{t(e.DebuggerComponent,`cooee-debugger`);}),window.cooeeShowQuickItem=(e,i)=>{n.injector.get(Je).showItemQuickView(e,i);};}
39
+
40
+ var widgetsCmUGXjul = /*#__PURE__*/Object.freeze({
41
+ __proto__: null,
42
+ loadAngularWidgets: Rs
43
+ });
44
+
45
+ export { $v as $, ic as A, BD as B, Ko as C, tv as D, Ef as E, ac as F, Ge$2 as G, HD as H, ID as I, Hf as J, Ke$1 as K, Lf as L, Mf as M, $f as N, Wt$1 as O, Pf as P, Qo as Q, Ro as R, SN as S, TN as T, Ss as U, VD as V, W, XE as X, Yo as Y, cc as Z, Sf as _, a, WD as a0, LD as a1, Iu as a2, wu as a3, KD as a4, PD as a5, Af as a6, xv as a7, op as a8, rp as a9, Nv as aa, Uv as ab, hm as ac, widgetsCmUGXjul as ad, Sv as b, ge$1 as c, Bv as d, Hv as e, fm as f, gf as g, g as h, nc as i, bf as j, kf as k, jt$1 as l, Ye$1 as m, np as n, oc as o, be$1 as p, Kt as q, rc as r, qt as s, KE as t, YE as u, vd as v, Wt as w, $t as x, ye$2 as y, zt as z };