var sy=Object.defineProperty,ay=Object.defineProperties;var ly=Object.getOwnPropertyDescriptors;var Ao=Object.getOwnPropertySymbols;var Tp=Object.prototype.hasOwnProperty,Pp=Object.prototype.propertyIsEnumerable;var Mp=(t,e,i)=>e in t?sy(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,E=(t,e)=>{for(var i in e||={})Tp.call(e,i)&&Mp(t,i,e[i]);if(Ao)for(var i of Ao(e))Pp.call(e,i)&&Mp(t,i,e[i]);return t},he=(t,e)=>ay(t,ly(e));var Op=(t,e)=>{var i={};for(var n in t)Tp.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(t!=null&&Ao)for(var n of Ao(t))e.indexOf(n)<0&&Pp.call(t,n)&&(i[n]=t[n]);return i};var en=(t,e,i)=>new Promise((n,r)=>{var o=l=>{try{a(i.next(l))}catch(c){r(c)}},s=l=>{try{a(i.throw(l))}catch(c){r(c)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,s);a((i=i.apply(t,e)).next())});function W(t){return typeof t=="function"}function wi(t){let i=t(n=>{Error.call(n),n.stack=new Error().stack});return i.prototype=Object.create(Error.prototype),i.prototype.constructor=i,i}var ko=wi(t=>function(i){t(this),this.message=i?`${i.length} errors occurred during unsubscription:
${i.map((n,r)=>`${r+1}) ${n.toString()}`).join(`
  `)}`:"",this.name="UnsubscriptionError",this.errors=i});function Jn(t,e){if(t){let i=t.indexOf(e);0<=i&&t.splice(i,1)}}var Ee=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:i}=this;if(i)if(this._parentage=null,Array.isArray(i))for(let o of i)o.remove(this);else i.remove(this);let{initialTeardown:n}=this;if(W(n))try{n()}catch(o){e=o instanceof ko?o.errors:[o]}let{_finalizers:r}=this;if(r){this._finalizers=null;for(let o of r)try{Ap(o)}catch(s){e=e??[],s instanceof ko?e=[...e,...s.errors]:e.push(s)}}if(e)throw new ko(e)}}add(e){var i;if(e&&e!==this)if(this.closed)Ap(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(i=this._finalizers)!==null&&i!==void 0?i:[]).push(e)}}_hasParent(e){let{_parentage:i}=this;return i===e||Array.isArray(i)&&i.includes(e)}_addParent(e){let{_parentage:i}=this;this._parentage=Array.isArray(i)?(i.push(e),i):i?[i,e]:e}_removeParent(e){let{_parentage:i}=this;i===e?this._parentage=null:Array.isArray(i)&&Jn(i,e)}remove(e){let{_finalizers:i}=this;i&&Jn(i,e),e instanceof t&&e._removeParent(this)}};Ee.EMPTY=(()=>{let t=new Ee;return t.closed=!0,t})();var sl=Ee.EMPTY;function No(t){return t instanceof Ee||t&&"closed"in t&&W(t.remove)&&W(t.add)&&W(t.unsubscribe)}function Ap(t){W(t)?t():t.unsubscribe()}var St={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var xi={setTimeout(t,e,...i){let{delegate:n}=xi;return n?.setTimeout?n.setTimeout(t,e,...i):setTimeout(t,e,...i)},clearTimeout(t){let{delegate:e}=xi;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Fo(t){xi.setTimeout(()=>{let{onUnhandledError:e}=St;if(e)e(t);else throw t})}function Xn(){}var kp=al("C",void 0,void 0);function Np(t){return al("E",void 0,t)}function Fp(t){return al("N",t,void 0)}function al(t,e,i){return{kind:t,value:e,error:i}}var ei=null;function Di(t){if(St.useDeprecatedSynchronousErrorHandling){let e=!ei;if(e&&(ei={errorThrown:!1,error:null}),t(),e){let{errorThrown:i,error:n}=ei;if(ei=null,i)throw n}}else t()}function Rp(t){St.useDeprecatedSynchronousErrorHandling&&ei&&(ei.errorThrown=!0,ei.error=t)}var ti=class extends Ee{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,No(e)&&e.add(this)):this.destination=dy}static create(e,i,n){return new Ei(e,i,n)}next(e){this.isStopped?cl(Fp(e),this):this._next(e)}error(e){this.isStopped?cl(Np(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?cl(kp,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},cy=Function.prototype.bind;function ll(t,e){return cy.call(t,e)}var ul=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:i}=this;if(i.next)try{i.next(e)}catch(n){Ro(n)}}error(e){let{partialObserver:i}=this;if(i.error)try{i.error(e)}catch(n){Ro(n)}else Ro(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(i){Ro(i)}}},Ei=class extends ti{constructor(e,i,n){super();let r;if(W(e)||!e)r={next:e??void 0,error:i??void 0,complete:n??void 0};else{let o;this&&St.useDeprecatedNextContext?(o=Object.create(e),o.unsubscribe=()=>this.unsubscribe(),r={next:e.next&&ll(e.next,o),error:e.error&&ll(e.error,o),complete:e.complete&&ll(e.complete,o)}):r=e}this.destination=new ul(r)}};function Ro(t){St.useDeprecatedSynchronousErrorHandling?Rp(t):Fo(t)}function uy(t){throw t}function cl(t,e){let{onStoppedNotification:i}=St;i&&xi.setTimeout(()=>i(t,e))}var dy={closed:!0,next:Xn,error:uy,complete:Xn};var Mi=typeof Symbol=="function"&&Symbol.observable||"@@observable";function tt(t){return t}function dl(...t){return pl(t)}function pl(t){return t.length===0?tt:t.length===1?t[0]:function(i){return t.reduce((n,r)=>r(n),i)}}var ee=(()=>{class t{constructor(i){i&&(this._subscribe=i)}lift(i){let n=new t;return n.source=this,n.operator=i,n}subscribe(i,n,r){let o=fy(i)?i:new Ei(i,n,r);return Di(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(i){try{return this._subscribe(i)}catch(n){i.error(n)}}forEach(i,n){return n=Lp(n),new n((r,o)=>{let s=new Ei({next:a=>{try{i(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:r});this.subscribe(s)})}_subscribe(i){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(i)}[Mi](){return this}pipe(...i){return pl(i)(this)}toPromise(i){return i=Lp(i),new i((n,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>n(o))})}}return t.create=e=>new t(e),t})();function Lp(t){var e;return(e=t??St.Promise)!==null&&e!==void 0?e:Promise}function py(t){return t&&W(t.next)&&W(t.error)&&W(t.complete)}function fy(t){return t&&t instanceof ti||py(t)&&No(t)}var Vp=wi(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var De=(()=>{class t extends ee{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(i){let n=new Lo(this,this);return n.operator=i,n}_throwIfClosed(){if(this.closed)throw new Vp}next(i){Di(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(i)}})}error(i){Di(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=i;let{observers:n}=this;for(;n.length;)n.shift().error(i)}})}complete(){Di(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:i}=this;for(;i.length;)i.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var i;return((i=this.observers)===null||i===void 0?void 0:i.length)>0}_trySubscribe(i){return this._throwIfClosed(),super._trySubscribe(i)}_subscribe(i){return this._throwIfClosed(),this._checkFinalizedStatuses(i),this._innerSubscribe(i)}_innerSubscribe(i){let{hasError:n,isStopped:r,observers:o}=this;return n||r?sl:(this.currentObservers=null,o.push(i),new Ee(()=>{this.currentObservers=null,Jn(o,i)}))}_checkFinalizedStatuses(i){let{hasError:n,thrownError:r,isStopped:o}=this;n?i.error(r):o&&i.complete()}asObservable(){let i=new ee;return i.source=this,i}}return t.create=(e,i)=>new Lo(e,i),t})(),Lo=class extends De{constructor(e,i){super(),this.destination=e,this.source=i}next(e){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.next)===null||n===void 0||n.call(i,e)}error(e){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.error)===null||n===void 0||n.call(i,e)}complete(){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||i===void 0||i.call(e)}_subscribe(e){var i,n;return(n=(i=this.source)===null||i===void 0?void 0:i.subscribe(e))!==null&&n!==void 0?n:sl}};var oe=class extends De{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let i=super._subscribe(e);return!i.closed&&e.next(this._value),i}getValue(){let{hasError:e,thrownError:i,_value:n}=this;if(e)throw i;return this._throwIfClosed(),n}next(e){super.next(this._value=e)}};function fl(t){return W(t?.lift)}function te(t){return e=>{if(fl(e))return e.lift(function(i){try{return t(i,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function Q(t,e,i,n,r){return new hl(t,e,i,n,r)}var hl=class extends ti{constructor(e,i,n,r,o,s){super(e),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=i?function(a){try{i(a)}catch(l){e.error(l)}}:super._next,this._error=r?function(a){try{r(a)}catch(l){e.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:i}=this;super.unsubscribe(),!i&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};function j(t,e){return te((i,n)=>{let r=0;i.subscribe(Q(n,o=>{n.next(t.call(e,o,r++))}))})}var{isArray:hy}=Array,{getPrototypeOf:my,prototype:gy,keys:vy}=Object;function Vo(t){if(t.length===1){let e=t[0];if(hy(e))return{args:e,keys:null};if(yy(e)){let i=vy(e);return{args:i.map(n=>e[n]),keys:i}}}return{args:t,keys:null}}function yy(t){return t&&typeof t=="object"&&my(t)===gy}function Bp(t,e,i,n){function r(o){return o instanceof i?o:new i(function(s){s(o)})}return new(i||(i=Promise))(function(o,s){function a(h){try{c(n.next(h))}catch(m){s(m)}}function l(h){try{c(n.throw(h))}catch(m){s(m)}}function c(h){h.done?o(h.value):r(h.value).then(a,l)}c((n=n.apply(t,e||[])).next())})}function jp(t){var e=typeof Symbol=="function"&&Symbol.iterator,i=e&&t[e],n=0;if(i)return i.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ni(t){return this instanceof ni?(this.v=t,this):new ni(t)}function Up(t,e,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i.apply(t,e||[]),r,o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(v){n[v]&&(r[v]=function(C){return new Promise(function(I,k){o.push([v,C,I,k])>1||a(v,C)})})}function a(v,C){try{l(n[v](C))}catch(I){m(o[0][3],I)}}function l(v){v.value instanceof ni?Promise.resolve(v.value.v).then(c,h):m(o[0][2],v)}function c(v){a("next",v)}function h(v){a("throw",v)}function m(v,C){v(C),o.shift(),o.length&&a(o[0][0],o[0][1])}}function $p(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],i;return e?e.call(t):(t=typeof jp=="function"?jp(t):t[Symbol.iterator](),i={},n("next"),n("throw"),n("return"),i[Symbol.asyncIterator]=function(){return this},i);function n(o){i[o]=t[o]&&function(s){return new Promise(function(a,l){s=t[o](s),r(a,l,s.done,s.value)})}}function r(o,s,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},s)}}var jo=t=>t&&typeof t.length=="number"&&typeof t!="function";function Bo(t){return W(t?.then)}function Uo(t){return W(t[Mi])}function $o(t){return Symbol.asyncIterator&&W(t?.[Symbol.asyncIterator])}function Ho(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Cy(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Wo=Cy();function zo(t){return W(t?.[Wo])}function Go(t){return Up(this,arguments,function*(){let i=t.getReader();try{for(;;){let{value:n,done:r}=yield ni(i.read());if(r)return yield ni(void 0);yield yield ni(n)}}finally{i.releaseLock()}})}function qo(t){return W(t?.getReader)}function Pe(t){if(t instanceof ee)return t;if(t!=null){if(Uo(t))return by(t);if(jo(t))return _y(t);if(Bo(t))return Sy(t);if($o(t))return Hp(t);if(zo(t))return Iy(t);if(qo(t))return wy(t)}throw Ho(t)}function by(t){return new ee(e=>{let i=t[Mi]();if(W(i.subscribe))return i.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function _y(t){return new ee(e=>{for(let i=0;i<t.length&&!e.closed;i++)e.next(t[i]);e.complete()})}function Sy(t){return new ee(e=>{t.then(i=>{e.closed||(e.next(i),e.complete())},i=>e.error(i)).then(null,Fo)})}function Iy(t){return new ee(e=>{for(let i of t)if(e.next(i),e.closed)return;e.complete()})}function Hp(t){return new ee(e=>{xy(t,e).catch(i=>e.error(i))})}function wy(t){return Hp(Go(t))}function xy(t,e){var i,n,r,o;return Bp(this,void 0,void 0,function*(){try{for(i=$p(t);n=yield i.next(),!n.done;){let s=n.value;if(e.next(s),e.closed)return}}catch(s){r={error:s}}finally{try{n&&!n.done&&(o=i.return)&&(yield o.call(i))}finally{if(r)throw r.error}}e.complete()})}function Qe(t,e,i,n=0,r=!1){let o=e.schedule(function(){i(),r?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(o),!r)return o}function Yo(t,e=0){return te((i,n)=>{i.subscribe(Q(n,r=>Qe(n,t,()=>n.next(r),e),()=>Qe(n,t,()=>n.complete(),e),r=>Qe(n,t,()=>n.error(r),e)))})}function Zo(t,e=0){return te((i,n)=>{n.add(t.schedule(()=>i.subscribe(n),e))})}function Wp(t,e){return Pe(t).pipe(Zo(e),Yo(e))}function zp(t,e){return Pe(t).pipe(Zo(e),Yo(e))}function Gp(t,e){return new ee(i=>{let n=0;return e.schedule(function(){n===t.length?i.complete():(i.next(t[n++]),i.closed||this.schedule())})})}function qp(t,e){return new ee(i=>{let n;return Qe(i,e,()=>{n=t[Wo](),Qe(i,e,()=>{let r,o;try{({value:r,done:o}=n.next())}catch(s){i.error(s);return}o?i.complete():i.next(r)},0,!0)}),()=>W(n?.return)&&n.return()})}function Ko(t,e){if(!t)throw new Error("Iterable cannot be null");return new ee(i=>{Qe(i,e,()=>{let n=t[Symbol.asyncIterator]();Qe(i,e,()=>{n.next().then(r=>{r.done?i.complete():i.next(r.value)})},0,!0)})})}function Yp(t,e){return Ko(Go(t),e)}function Zp(t,e){if(t!=null){if(Uo(t))return Wp(t,e);if(jo(t))return Gp(t,e);if(Bo(t))return zp(t,e);if($o(t))return Ko(t,e);if(zo(t))return qp(t,e);if(qo(t))return Yp(t,e)}throw Ho(t)}function me(t,e){return e?Zp(t,e):Pe(t)}var{isArray:Dy}=Array;function Ey(t,e){return Dy(e)?t(...e):t(e)}function Qo(t){return j(e=>Ey(t,e))}function Jo(t){return t&&W(t.schedule)}function Kp(t){return t[t.length-1]}function Xo(t){return W(Kp(t))?t.pop():void 0}function bn(t){return Jo(Kp(t))?t.pop():void 0}function es(t,e){return t.reduce((i,n,r)=>(i[n]=e[r],i),{})}function _n(...t){let e=bn(t),i=Xo(t),{args:n,keys:r}=Vo(t);if(n.length===0)return me([],e);let o=new ee(My(n,e,r?s=>es(r,s):tt));return i?o.pipe(Qo(i)):o}function My(t,e,i=tt){return n=>{Qp(e,()=>{let{length:r}=t,o=new Array(r),s=r,a=r;for(let l=0;l<r;l++)Qp(e,()=>{let c=me(t[l],e),h=!1;c.subscribe(Q(n,m=>{o[l]=m,h||(h=!0,a--),a||n.next(i(o.slice()))},()=>{--s||n.complete()}))},n)},n)}}function Qp(t,e,i){t?Qe(i,t,e):e()}function Re(t,e){return te((i,n)=>{let r=0;i.subscribe(Q(n,o=>t.call(e,o,r++)&&n.next(o)))})}function ge(t,e,i){let n=W(t)||e||i?{next:t,error:e,complete:i}:t;return n?te((r,o)=>{var s;(s=n.subscribe)===null||s===void 0||s.call(n);let a=!0;r.subscribe(Q(o,l=>{var c;(c=n.next)===null||c===void 0||c.call(n,l),o.next(l)},()=>{var l;a=!1,(l=n.complete)===null||l===void 0||l.call(n),o.complete()},l=>{var c;a=!1,(c=n.error)===null||c===void 0||c.call(n,l),o.error(l)},()=>{var l,c;a&&((l=n.unsubscribe)===null||l===void 0||l.call(n)),(c=n.finalize)===null||c===void 0||c.call(n)}))}):tt}function Ti(){return te((t,e)=>{let i=null;t._refCount++;let n=Q(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){i=null;return}let r=t._connection,o=i;i=null,r&&(!o||r===o)&&r.unsubscribe(),e.unsubscribe()});t.subscribe(n),n.closed||(i=t.connect())})}var Pi=class extends ee{constructor(e,i){super(),this.source=e,this.subjectFactory=i,this._subject=null,this._refCount=0,this._connection=null,fl(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){let e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new Ee;let i=this.getSubject();e.add(this.source.subscribe(Q(i,void 0,()=>{this._teardown(),i.complete()},n=>{this._teardown(),i.error(n)},()=>this._teardown()))),e.closed&&(this._connection=null,e=Ee.EMPTY)}return e}refCount(){return Ti()(this)}};var ml={now(){return(ml.delegate||Date).now()},delegate:void 0};var ts=class extends Ee{constructor(e,i){super()}schedule(e,i=0){return this}};var wr={setInterval(t,e,...i){let{delegate:n}=wr;return n?.setInterval?n.setInterval(t,e,...i):setInterval(t,e,...i)},clearInterval(t){let{delegate:e}=wr;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var ns=class extends ts{constructor(e,i){super(e,i),this.scheduler=e,this.work=i,this.pending=!1}schedule(e,i=0){var n;if(this.closed)return this;this.state=e;let r=this.id,o=this.scheduler;return r!=null&&(this.id=this.recycleAsyncId(o,r,i)),this.pending=!0,this.delay=i,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(o,this.id,i),this}requestAsyncId(e,i,n=0){return wr.setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,i,n=0){if(n!=null&&this.delay===n&&this.pending===!1)return i;i!=null&&wr.clearInterval(i)}execute(e,i){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let n=this._execute(e,i);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,i){let n=!1,r;try{this.work(e)}catch(o){n=!0,r=o||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){let{id:e,scheduler:i}=this,{actions:n}=i;this.work=this.state=this.scheduler=null,this.pending=!1,Jn(n,this),e!=null&&(this.id=this.recycleAsyncId(i,e,null)),this.delay=null,super.unsubscribe()}}};var Oi=class t{constructor(e,i=t.now){this.schedulerActionCtor=e,this.now=i}schedule(e,i=0,n){return new this.schedulerActionCtor(this,e).schedule(n,i)}};Oi.now=ml.now;var is=class extends Oi{constructor(e,i=Oi.now){super(e,i),this.actions=[],this._active=!1}flush(e){let{actions:i}=this;if(this._active){i.push(e);return}let n;this._active=!0;do if(n=e.execute(e.state,e.delay))break;while(e=i.shift());if(this._active=!1,n){for(;e=i.shift();)e.unsubscribe();throw n}}};var gl=new is(ns),Jp=gl;var pt=new ee(t=>t.complete());function V(...t){let e=bn(t);return me(t,e)}function Ai(t,e){let i=W(t)?t:()=>t,n=r=>r.error(i());return new ee(e?r=>e.schedule(n,0,r):n)}function vl(t){return!!t&&(t instanceof ee||W(t.lift)&&W(t.subscribe))}var tn=wi(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function Xp(t){return t instanceof Date&&!isNaN(t)}function ef(t,e,i,n,r,o,s,a){let l=[],c=0,h=0,m=!1,v=()=>{m&&!l.length&&!c&&e.complete()},C=k=>c<n?I(k):l.push(k),I=k=>{o&&e.next(k),c++;let L=!1;Pe(i(k,h++)).subscribe(Q(e,O=>{r?.(O),o?C(O):e.next(O)},()=>{L=!0},void 0,()=>{if(L)try{for(c--;l.length&&c<n;){let O=l.shift();s?Qe(e,s,()=>I(O)):I(O)}v()}catch(O){e.error(O)}}))};return t.subscribe(Q(e,C,()=>{m=!0,v()})),()=>{a?.()}}function Ce(t,e,i=1/0){return W(e)?Ce((n,r)=>j((o,s)=>e(n,o,r,s))(Pe(t(n,r))),i):(typeof e=="number"&&(i=e),te((n,r)=>ef(n,r,t,i)))}function Sn(t=1/0){return Ce(tt,t)}function tf(){return Sn(1)}function In(...t){return tf()(me(t,bn(t)))}function rs(t){return new ee(e=>{Pe(t()).subscribe(e)})}function yl(...t){let e=Xo(t),{args:i,keys:n}=Vo(t),r=new ee(o=>{let{length:s}=i;if(!s){o.complete();return}let a=new Array(s),l=s,c=s;for(let h=0;h<s;h++){let m=!1;Pe(i[h]).subscribe(Q(o,v=>{m||(m=!0,c--),a[h]=v},()=>l--,void 0,()=>{(!l||!m)&&(c||o.next(n?es(n,a):a),o.complete())}))}});return e?r.pipe(Qo(e)):r}function nf(t=0,e,i=Jp){let n=-1;return e!=null&&(Jo(e)?i=e:n=e),new ee(r=>{let o=Xp(t)?+t-i.now():t;o<0&&(o=0);let s=0;return i.schedule(function(){r.closed||(r.next(s++),0<=n?this.schedule(void 0,n):r.complete())},o)})}function ft(t){return te((e,i)=>{let n=null,r=!1,o;n=e.subscribe(Q(i,void 0,void 0,s=>{o=Pe(t(s,ft(t)(e))),n?(n.unsubscribe(),n=null,o.subscribe(i)):r=!0})),r&&(n.unsubscribe(),n=null,o.subscribe(i))})}function rf(t,e,i,n,r){return(o,s)=>{let a=i,l=e,c=0;o.subscribe(Q(s,h=>{let m=c++;l=a?t(l,h,m):(a=!0,h),n&&s.next(l)},r&&(()=>{a&&s.next(l),s.complete()})))}}function nn(t,e){return W(e)?Ce(t,e,1):Ce(t,1)}function wn(t){return te((e,i)=>{let n=!1;e.subscribe(Q(i,r=>{n=!0,i.next(r)},()=>{n||i.next(t),i.complete()}))})}function ht(t){return t<=0?()=>pt:te((e,i)=>{let n=0;e.subscribe(Q(i,r=>{++n<=t&&(i.next(r),t<=n&&i.complete())}))})}function of(){return te((t,e)=>{t.subscribe(Q(e,Xn))})}function xr(t){return j(()=>t)}function Cl(t,e){return e?i=>In(e.pipe(ht(1),of()),i.pipe(Cl(t))):Ce((i,n)=>t(i,n).pipe(ht(1),xr(i)))}function bl(t,e=gl){let i=nf(t,e);return Cl(()=>i)}function os(t=Ty){return te((e,i)=>{let n=!1;e.subscribe(Q(i,r=>{n=!0,i.next(r)},()=>n?i.complete():i.error(t())))})}function Ty(){return new tn}function xn(t){return te((e,i)=>{try{e.subscribe(i)}finally{i.add(t)}})}function It(t,e){let i=arguments.length>=2;return n=>n.pipe(t?Re((r,o)=>t(r,o,n)):tt,ht(1),i?wn(e):os(()=>new tn))}function ki(t){return t<=0?()=>pt:te((e,i)=>{let n=[];e.subscribe(Q(i,r=>{n.push(r),t<n.length&&n.shift()},()=>{for(let r of n)i.next(r);i.complete()},void 0,()=>{n=null}))})}function _l(t,e){let i=arguments.length>=2;return n=>n.pipe(t?Re((r,o)=>t(r,o,n)):tt,ki(1),i?wn(e):os(()=>new tn))}function Sl(t,e){return te(rf(t,e,arguments.length>=2,!0))}function Il(...t){let e=bn(t);return te((i,n)=>{(e?In(t,i,e):In(t,i)).subscribe(n)})}function $e(t,e){return te((i,n)=>{let r=null,o=0,s=!1,a=()=>s&&!r&&n.complete();i.subscribe(Q(n,l=>{r?.unsubscribe();let c=0,h=o++;Pe(t(l,h)).subscribe(r=Q(n,m=>n.next(e?e(l,m,h,c++):m),()=>{r=null,a()}))},()=>{s=!0,a()}))})}function wl(t){return te((e,i)=>{Pe(t).subscribe(Q(i,()=>i.complete(),Xn)),!i.closed&&e.subscribe(i)})}var sf=null;var xl=1,Dl=Symbol("SIGNAL");function re(t){let e=sf;return sf=t,e}var af={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Py(t){if(!(Tl(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===xl)){if(!t.producerMustRecompute(t)&&!El(t)){t.dirty=!1,t.lastCleanEpoch=xl;return}t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=xl}}function lf(t){return t&&(t.nextProducerIndex=0),re(t)}function cf(t,e){if(re(e),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if(Tl(t))for(let i=t.nextProducerIndex;i<t.producerNode.length;i++)Ml(t.producerNode[i],t.producerIndexOfThis[i]);for(;t.producerNode.length>t.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function El(t){ss(t);for(let e=0;e<t.producerNode.length;e++){let i=t.producerNode[e],n=t.producerLastReadVersion[e];if(n!==i.version||(Py(i),n!==i.version))return!0}return!1}function uf(t){if(ss(t),Tl(t))for(let e=0;e<t.producerNode.length;e++)Ml(t.producerNode[e],t.producerIndexOfThis[e]);t.producerNode.length=t.producerLastReadVersion.length=t.producerIndexOfThis.length=0,t.liveConsumerNode&&(t.liveConsumerNode.length=t.liveConsumerIndexOfThis.length=0)}function Ml(t,e){if(Oy(t),ss(t),t.liveConsumerNode.length===1)for(let n=0;n<t.producerNode.length;n++)Ml(t.producerNode[n],t.producerIndexOfThis[n]);let i=t.liveConsumerNode.length-1;if(t.liveConsumerNode[e]=t.liveConsumerNode[i],t.liveConsumerIndexOfThis[e]=t.liveConsumerIndexOfThis[i],t.liveConsumerNode.length--,t.liveConsumerIndexOfThis.length--,e<t.liveConsumerNode.length){let n=t.liveConsumerIndexOfThis[e],r=t.liveConsumerNode[e];ss(r),r.producerIndexOfThis[n]=e}}function Tl(t){return t.consumerIsAlwaysLive||(t?.liveConsumerNode?.length??0)>0}function ss(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function Oy(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function Ay(){throw new Error}var ky=Ay;function df(t){ky=t}var th="https://g.co/ng/security#xss",A=class extends Error{constructor(e,i){super(Hs(e,i)),this.code=e}};function Hs(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}var Yl=class extends De{constructor(e=!1){super(),this.__isAsync=e}emit(e){let i=re(null);try{super.next(e)}finally{re(i)}}subscribe(e,i,n){let r=e,o=i||(()=>null),s=n;if(e&&typeof e=="object"){let l=e;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=Pl(o),r&&(r=Pl(r)),s&&(s=Pl(s)));let a=super.subscribe({next:r,error:o,complete:s});return e instanceof Ee&&e.add(a),a}};function Pl(t){return e=>{setTimeout(t,void 0,e)}}var ve=Yl;var J=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(J||{});function Ye(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(Ye).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let e=t.toString();if(e==null)return""+e;let i=e.indexOf(`
`);return i===-1?e:e.substring(0,i)}function pf(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var nh=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(nh||{}),Ft=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(Ft||{});function jr(t){return{toString:t}.toString()}var rn=globalThis;var Bi={},nt=[];function pe(t){for(let e in t)if(t[e]===pe)return e;throw Error("Could not find renamed property on target object.")}function Ny(t,e){for(let i in e)e.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=e[i])}var Fy=pe({\u0275cmp:pe}),Ry=pe({\u0275dir:pe}),Ly=pe({\u0275pipe:pe}),Vy=pe({\u0275mod:pe}),_s=pe({\u0275fac:pe}),Er=pe({__NG_ELEMENT_ID__:pe}),ff=pe({__NG_ENV_ID__:pe}),be=function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t}(be||{});function ih(t,e,i){let n=t.length;for(;;){let r=t.indexOf(e,i);if(r===-1)return r;if(r===0||t.charCodeAt(r-1)<=32){let o=e.length;if(r+o===n||t.charCodeAt(r+o)<=32)return r}i=r+1}}function Zl(t,e,i){let n=0;for(;n<i.length;){let r=i[n];if(typeof r=="number"){if(r!==0)break;n++;let o=i[n++],s=i[n++],a=i[n++];t.setAttribute(e,s,a,o)}else{let o=r,s=i[++n];jy(o)?t.setProperty(e,o,s):t.setAttribute(e,o,s),n++}}return n}function rh(t){return t===3||t===4||t===6}function jy(t){return t.charCodeAt(0)===64}function Mr(t,e){if(!(e===null||e.length===0))if(t===null||t.length===0)t=e.slice();else{let i=-1;for(let n=0;n<e.length;n++){let r=e[n];typeof r=="number"?i=r:i===0||(i===-1||i===2?hf(t,i,r,null,e[++n]):hf(t,i,r,null,null))}}return t}function hf(t,e,i,n,r){let o=0,s=t.length;if(e===-1)s=-1;else for(;o<t.length;){let a=t[o++];if(typeof a=="number"){if(a===e){s=-1;break}else if(a>e){s=o-1;break}}}for(;o<t.length;){let a=t[o];if(typeof a=="number")break;if(a===i){if(n===null){r!==null&&(t[o+1]=r);return}else if(n===t[o+1]){t[o+2]=r;return}}o++,n!==null&&o++,r!==null&&o++}s!==-1&&(t.splice(s,0,e),o=s+1),t.splice(o++,0,i),n!==null&&t.splice(o++,0,n),r!==null&&t.splice(o++,0,r)}var oh="ng-template";function By(t,e,i){let n=0,r=!0;for(;n<t.length;){let o=t[n++];if(typeof o=="string"&&r){let s=t[n++];if(i&&o==="class"&&ih(s.toLowerCase(),e,0)!==-1)return!0}else if(o===1){for(;n<t.length&&typeof(o=t[n++])=="string";)if(o.toLowerCase()===e)return!0;return!1}else typeof o=="number"&&(r=!1)}return!1}function sh(t){return t.type===4&&t.value!==oh}function Uy(t,e,i){let n=t.type===4&&!i?oh:t.value;return e===n}function $y(t,e,i){let n=4,r=t.attrs||[],o=zy(r),s=!1;for(let a=0;a<e.length;a++){let l=e[a];if(typeof l=="number"){if(!s&&!wt(n)&&!wt(l))return!1;if(s&&wt(l))continue;s=!1,n=l|n&1;continue}if(!s)if(n&4){if(n=2|n&1,l!==""&&!Uy(t,l,i)||l===""&&e.length===1){if(wt(n))return!1;s=!0}}else{let c=n&8?l:e[++a];if(n&8&&t.attrs!==null){if(!By(t.attrs,c,i)){if(wt(n))return!1;s=!0}continue}let h=n&8?"class":l,m=Hy(h,r,sh(t),i);if(m===-1){if(wt(n))return!1;s=!0;continue}if(c!==""){let v;m>o?v="":v=r[m+1].toLowerCase();let C=n&8?v:null;if(C&&ih(C,c,0)!==-1||n&2&&c!==v){if(wt(n))return!1;s=!0}}}}return wt(n)||s}function wt(t){return(t&1)===0}function Hy(t,e,i,n){if(e===null)return-1;let r=0;if(n||!i){let o=!1;for(;r<e.length;){let s=e[r];if(s===t)return r;if(s===3||s===6)o=!0;else if(s===1||s===2){let a=e[++r];for(;typeof a=="string";)a=e[++r];continue}else{if(s===4)break;if(s===0){r+=4;continue}}r+=o?1:2}return-1}else return Gy(e,t)}function ah(t,e,i=!1){for(let n=0;n<e.length;n++)if($y(t,e[n],i))return!0;return!1}function Wy(t){let e=t.attrs;if(e!=null){let i=e.indexOf(5);if(!(i&1))return e[i+1]}return null}function zy(t){for(let e=0;e<t.length;e++){let i=t[e];if(rh(i))return e}return t.length}function Gy(t,e){let i=t.indexOf(4);if(i>-1)for(i++;i<t.length;){let n=t[i];if(typeof n=="number")return-1;if(n===e)return i;i++}return-1}function qy(t,e){e:for(let i=0;i<e.length;i++){let n=e[i];if(t.length===n.length){for(let r=0;r<t.length;r++)if(t[r]!==n[r])continue e;return!0}}return!1}function mf(t,e){return t?":not("+e.trim()+")":e}function Yy(t){let e=t[0],i=1,n=2,r="",o=!1;for(;i<t.length;){let s=t[i];if(typeof s=="string")if(n&2){let a=t[++i];r+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else n&8?r+="."+s:n&4&&(r+=" "+s);else r!==""&&!wt(s)&&(e+=mf(o,r),r=""),n=s,o=o||!wt(n);i++}return r!==""&&(e+=mf(o,r)),e}function Zy(t){return t.map(Yy).join(",")}function Ky(t){let e=[],i=[],n=1,r=2;for(;n<t.length;){let o=t[n];if(typeof o=="string")r===2?o!==""&&e.push(o,t[++n]):r===8&&i.push(o);else{if(!wt(r))break;r=o}n++}return{attrs:e,classes:i}}function se(t){return jr(()=>{let e=ph(t),i=he(E({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===nh.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Ft.Emulated,styles:t.styles||nt,_:null,schemas:t.schemas||null,tView:null,id:""});fh(i);let n=t.dependencies;return i.directiveDefs=vf(n,!1),i.pipeDefs=vf(n,!0),i.id=Xy(i),i})}function Qy(t){return Mn(t)||lh(t)}function Jy(t){return t!==null}function jt(t){return jr(()=>({type:t.type,bootstrap:t.bootstrap||nt,declarations:t.declarations||nt,imports:t.imports||nt,exports:t.exports||nt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function gf(t,e){if(t==null)return Bi;let i={};for(let n in t)if(t.hasOwnProperty(n)){let r=t[n],o,s,a=be.None;Array.isArray(r)?(a=r[0],o=r[1],s=r[2]??o):(o=r,s=r),e?(i[o]=a!==be.None?[n,a]:n,e[o]=s):i[o]=n}return i}function ne(t){return jr(()=>{let e=ph(t);return fh(e),e})}function Bt(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone===!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function Mn(t){return t[Fy]||null}function lh(t){return t[Ry]||null}function ch(t){return t[Ly]||null}function uh(t){let e=Mn(t)||lh(t)||ch(t);return e!==null?e.standalone:!1}function dh(t,e){let i=t[Vy]||null;if(!i&&e===!0)throw new Error(`Type ${Ye(t)} does not have '\u0275mod' property.`);return i}function ph(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||Bi,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||nt,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:gf(t.inputs,e),outputs:gf(t.outputs),debugInfo:null}}function fh(t){t.features?.forEach(e=>e(t))}function vf(t,e){if(!t)return null;let i=e?ch:Qy;return()=>(typeof t=="function"?t():t).map(n=>i(n)).filter(Jy)}function Xy(t){let e=0,i=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let r of i)e=Math.imul(31,e)+r.charCodeAt(0)<<0;return e+=2147483648,"c"+e}var it=0,z=1,B=2,Le=3,xt=4,ot=5,Rt=6,Tr=7,Dt=8,Ui=9,sn=10,ye=11,Pr=12,yf=13,qi=14,rt=15,Br=16,Ni=17,an=18,Ws=19,hh=20,En=21,Ol=22,ri=23,Fe=25,mh=1,Or=6,ln=7,Ss=8,$i=9,Xe=10,Xc=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(Xc||{});function on(t){return Array.isArray(t)&&typeof t[mh]=="object"}function Ut(t){return Array.isArray(t)&&t[mh]===!0}function eu(t){return(t.flags&4)!==0}function Ur(t){return t.componentOffset>-1}function zs(t){return(t.flags&1)===1}function Tn(t){return!!t.template}function gh(t){return(t[B]&512)!==0}var eC="svg",tC="math",nC=!1;function iC(){return nC}function Et(t){for(;Array.isArray(t);)t=t[it];return t}function vh(t,e){return Et(e[t])}function st(t,e){return Et(e[t.index])}function yh(t,e){return t.data[e]}function tu(t,e){return t[e]}function An(t,e){let i=e[t];return on(i)?i:i[it]}function rC(t){return(t[B]&4)===4}function nu(t){return(t[B]&128)===128}function oC(t){return Ut(t[Le])}function Hi(t,e){return e==null?null:t[e]}function Ch(t){t[Ni]=0}function sC(t){t[B]&1024||(t[B]|=1024,nu(t)&&Ar(t))}function aC(t,e){for(;t>0;)e=e[qi],t--;return e}function iu(t){return!!(t[B]&9216||t[ri]?.dirty)}function Kl(t){iu(t)?Ar(t):t[B]&64&&(iC()?(t[B]|=1024,Ar(t)):t[sn].changeDetectionScheduler?.notify())}function Ar(t){t[sn].changeDetectionScheduler?.notify();let e=kr(t);for(;e!==null&&!(e[B]&8192||(e[B]|=8192,!nu(e)));)e=kr(e)}function bh(t,e){if((t[B]&256)===256)throw new A(911,!1);t[En]===null&&(t[En]=[]),t[En].push(e)}function lC(t,e){if(t[En]===null)return;let i=t[En].indexOf(e);i!==-1&&t[En].splice(i,1)}function kr(t){let e=t[Le];return Ut(e)?e[Le]:e}var G={lFrame:Eh(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function cC(){return G.lFrame.elementDepthCount}function uC(){G.lFrame.elementDepthCount++}function dC(){G.lFrame.elementDepthCount--}function _h(){return G.bindingsEnabled}function Yi(){return G.skipHydrationRootTNode!==null}function pC(t){return G.skipHydrationRootTNode===t}function fC(t){G.skipHydrationRootTNode=t}function hC(){G.skipHydrationRootTNode=null}function q(){return G.lFrame.lView}function Me(){return G.lFrame.tView}function M(t){return G.lFrame.contextLView=t,t[Dt]}function T(t){return G.lFrame.contextLView=null,t}function He(){let t=Sh();for(;t!==null&&t.type===64;)t=t.parent;return t}function Sh(){return G.lFrame.currentTNode}function mC(){let t=G.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function fi(t,e){let i=G.lFrame;i.currentTNode=t,i.isParent=e}function ru(){return G.lFrame.isParent}function ou(){G.lFrame.isParent=!1}function gC(){return G.lFrame.contextLView}function $r(){let t=G.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Ih(){return G.lFrame.bindingIndex}function vC(t){return G.lFrame.bindingIndex=t}function Gs(){return G.lFrame.bindingIndex++}function su(t){let e=G.lFrame,i=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,i}function yC(){return G.lFrame.inI18n}function CC(t,e){let i=G.lFrame;i.bindingIndex=i.bindingRootIndex=t,Ql(e)}function bC(){return G.lFrame.currentDirectiveIndex}function Ql(t){G.lFrame.currentDirectiveIndex=t}function _C(t){let e=G.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function wh(){return G.lFrame.currentQueryIndex}function au(t){G.lFrame.currentQueryIndex=t}function SC(t){let e=t[z];return e.type===2?e.declTNode:e.type===1?t[ot]:null}function xh(t,e,i){if(i&J.SkipSelf){let r=e,o=t;for(;r=r.parent,r===null&&!(i&J.Host);)if(r=SC(o),r===null||(o=o[qi],r.type&10))break;if(r===null)return!1;e=r,t=o}let n=G.lFrame=Dh();return n.currentTNode=e,n.lView=t,!0}function lu(t){let e=Dh(),i=t[z];G.lFrame=e,e.currentTNode=i.firstChild,e.lView=t,e.tView=i,e.contextLView=t,e.bindingIndex=i.bindingStartIndex,e.inI18n=!1}function Dh(){let t=G.lFrame,e=t===null?null:t.child;return e===null?Eh(t):e}function Eh(t){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function Mh(){let t=G.lFrame;return G.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Th=Mh;function cu(){let t=Mh();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function IC(t){return(G.lFrame.contextLView=aC(t,G.lFrame.contextLView))[Dt]}function kn(){return G.lFrame.selectedIndex}function oi(t){G.lFrame.selectedIndex=t}function qs(){let t=G.lFrame;return yh(t.tView,t.selectedIndex)}function Ph(){return G.lFrame.currentNamespace}var Oh=!0;function Ys(){return Oh}function Nn(t){Oh=t}function wC(){return Zi(He(),q())}function Zi(t,e){return new Oe(st(t,e))}var Oe=(()=>{let e=class e{constructor(n){this.nativeElement=n}};e.__NG_ELEMENT_ID__=wC;let t=e;return t})();function xC(t){return t instanceof Oe?t.nativeElement:t}function DC(t,e,i){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++){let r=t[n],o=e[n];if(i&&(r=i(r),o=i(o)),o!==r)return!1}return!0}function EC(t){return t.flat(Number.POSITIVE_INFINITY)}function uu(t,e){t.forEach(i=>Array.isArray(i)?uu(i,e):e(i))}function Ah(t,e,i){e>=t.length?t.push(i):t.splice(e,0,i)}function Is(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function MC(t,e){let i=[];for(let n=0;n<t;n++)i.push(e);return i}function TC(t,e,i,n){let r=t.length;if(r==e)t.push(i,n);else if(r===1)t.push(n,t[0]),t[0]=i;else{for(r--,t.push(t[r-1],t[r]);r>e;){let o=r-2;t[r]=t[o],r--}t[e]=i,t[e+1]=n}}function PC(t,e,i){let n=Hr(t,e);return n>=0?t[n|1]=i:(n=~n,TC(t,n,e,i)),n}function Al(t,e){let i=Hr(t,e);if(i>=0)return t[i|1]}function Hr(t,e){return OC(t,e,1)}function OC(t,e,i){let n=0,r=t.length>>i;for(;r!==n;){let o=n+(r-n>>1),s=t[o<<i];if(e===s)return o<<i;s>e?r=o:n=o+1}return~(r<<i)}function AC(){return this._results[Symbol.iterator]()}var Jl=class t{get changes(){return this._changes??=new ve}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let i=t.prototype;i[Symbol.iterator]||(i[Symbol.iterator]=AC)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,i){return this._results.reduce(e,i)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,i){this.dirty=!1;let n=EC(e);(this._changesDetected=!DC(this._results,n,i))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}},kC="ngSkipHydration",NC="ngskiphydration";function kh(t){let e=t.mergedAttrs;if(e===null)return!1;for(let i=0;i<e.length;i+=2){let n=e[i];if(typeof n=="number")return!1;if(typeof n=="string"&&n.toLowerCase()===NC)return!0}return!1}function Nh(t){return t.hasAttribute(kC)}function ws(t){return(t.flags&128)===128}function FC(t){if(ws(t))return!0;let e=t.parent;for(;e;){if(ws(t)||kh(e))return!0;e=e.parent}return!1}var Xl;function Fh(t){Xl=t}function Wr(){if(Xl!==void 0)return Xl;if(typeof document<"u")return document;throw new A(210,!1)}function x(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function $t(t){return{providers:t.providers||[],imports:t.imports||[]}}function Zs(t){return Cf(t,Lh)||Cf(t,Vh)}function Rh(t){return Zs(t)!==null}function Cf(t,e){return t.hasOwnProperty(e)?t[e]:null}function RC(t){let e=t&&(t[Lh]||t[Vh]);return e||null}function bf(t){return t&&(t.hasOwnProperty(_f)||t.hasOwnProperty(LC))?t[_f]:null}var Lh=pe({\u0275prov:pe}),_f=pe({\u0275inj:pe}),Vh=pe({ngInjectableDef:pe}),LC=pe({ngInjectorDef:pe}),F=class{constructor(e,i){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof i=="number"?this.__NG_ELEMENT_ID__=i:i!==void 0&&(this.\u0275prov=x({token:this,providedIn:i.providedIn||"root",factory:i.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}},Ks=new F("",{providedIn:"root",factory:()=>VC}),VC="ng",du=new F(""),_e=new F("",{providedIn:"platform",factory:()=>"unknown"});var vF=new F(""),pu=new F("",{providedIn:"root",factory:()=>Wr().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),fu={breakpoints:[16,32,48,64,96,128,256,384,640,750,828,1080,1200,1920,2048,3840],placeholderResolution:30,disableImageSizeWarning:!1,disableImageLazyLoadWarning:!1},hu=new F("",{providedIn:"root",factory:()=>fu}),jC=pe({__forward_ref__:pe});function et(t){return t.__forward_ref__=et,t.toString=function(){return Ye(this())},t}function qe(t){return jh(t)?t():t}function jh(t){return typeof t=="function"&&t.hasOwnProperty(jC)&&t.__forward_ref__===et}function Bh(t){return t&&!!t.\u0275providers}function Nt(t){return typeof t=="string"?t:t==null?"":String(t)}function BC(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():Nt(t)}function UC(t,e){let i=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new A(-200,t)}function mu(t,e){throw new A(-201,!1)}var ec;function Uh(){return ec}function Je(t){let e=ec;return ec=t,e}function $h(t,e,i){let n=Zs(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(i&J.Optional)return null;if(e!==void 0)return e;mu(t,"Injector")}var $C={},Nr=$C,tc="__NG_DI_FLAG__",xs="ngTempTokenPath",HC="ngTokenPath",WC=/\n/gm,zC="\u0275",Sf="__source",Vi;function GC(){return Vi}function Dn(t){let e=Vi;return Vi=t,e}function qC(t,e=J.Default){if(Vi===void 0)throw new A(-203,!1);return Vi===null?$h(t,void 0,e):Vi.get(t,e&J.Optional?null:void 0,e)}function D(t,e=J.Default){return(Uh()||qC)(qe(t),e)}function b(t,e=J.Default){return D(t,Qs(e))}function Qs(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function nc(t){let e=[];for(let i=0;i<t.length;i++){let n=qe(t[i]);if(Array.isArray(n)){if(n.length===0)throw new A(900,!1);let r,o=J.Default;for(let s=0;s<n.length;s++){let a=n[s],l=YC(a);typeof l=="number"?l===-1?r=a.token:o|=l:r=a}e.push(D(r,o))}else e.push(D(n))}return e}function Hh(t,e){return t[tc]=e,t.prototype[tc]=e,t}function YC(t){return t[tc]}function ZC(t,e,i,n){let r=t[xs];throw e[Sf]&&r.unshift(e[Sf]),t.message=KC(`
`+t.message,r,i,n),t[HC]=r,t[xs]=null,t}function KC(t,e,i,n=null){t=t&&t.charAt(0)===`
`&&t.charAt(1)==zC?t.slice(2):t;let r=Ye(e);if(Array.isArray(e))r=e.map(Ye).join(" -> ");else if(typeof e=="object"){let o=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):Ye(a)))}r=`{${o.join(", ")}}`}return`${i}${n?"("+n+")":""}[${r}]: ${t.replace(WC,`
  `)}`}function QC(){let t=new hi;return b(_e)==="browser"&&(t.store=JC(Wr(),b(Ks))),t}var hi=(()=>{let e=class e{constructor(){this.store={},this.onSerializeCallbacks={}}get(n,r){return this.store[n]!==void 0?this.store[n]:r}set(n,r){this.store[n]=r}remove(n){delete this.store[n]}hasKey(n){return this.store.hasOwnProperty(n)}get isEmpty(){return Object.keys(this.store).length===0}onSerialize(n,r){this.onSerializeCallbacks[n]=r}toJson(){for(let n in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(n))try{this.store[n]=this.onSerializeCallbacks[n]()}catch(r){console.warn("Exception in onSerialize callback: ",r)}return JSON.stringify(this.store).replace(/</g,"\\u003C")}};e.\u0275prov=x({token:e,providedIn:"root",factory:QC});let t=e;return t})();function JC(t,e){let i=t.getElementById(e+"-state");if(i?.textContent)try{return JSON.parse(i.textContent)}catch(n){console.warn("Exception while restoring TransferState for app "+e,n)}return{}}var Wh="h",zh="b",ic=function(t){return t.FirstChild="f",t.NextSibling="n",t}(ic||{}),XC="e",eb="t",gu="c",Gh="x",Ds="r",tb="i",nb="n",ib="d",rb="__nghData__",qh=rb,kl="ngh",ob="nghm",Yh=()=>null;function sb(t,e,i=!1){let n=t.getAttribute(kl);if(n==null)return null;let[r,o]=n.split("|");if(n=i?o:r,!n)return null;let s=o?`|${o}`:"",a=i?r:s,l={};if(n!==""){let h=e.get(hi,null,{optional:!0});h!==null&&(l=h.get(qh,[])[Number(n)])}let c={data:l,firstChild:t.firstChild??null};return i&&(c.firstChild=t,Js(c,0,t.nextSibling)),a?t.setAttribute(kl,a):t.removeAttribute(kl),c}function ab(){Yh=sb}function vu(t,e,i=!1){return Yh(t,e,i)}function lb(t){let e=t._lView;return e[z].type===2?null:(gh(e)&&(e=e[Fe]),e)}function cb(t){return t.textContent?.replace(/\s/gm,"")}function ub(t){let e=Wr(),i=e.createNodeIterator(t,NodeFilter.SHOW_COMMENT,{acceptNode(o){let s=cb(o);return s==="ngetn"||s==="ngtns"?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),n,r=[];for(;n=i.nextNode();)r.push(n);for(let o of r)o.textContent==="ngetn"?o.replaceWith(e.createTextNode("")):o.remove()}function Js(t,e,i){t.segmentHeads??={},t.segmentHeads[e]=i}function rc(t,e){return t.segmentHeads?.[e]??null}function db(t,e){let i=t.data,n=i[XC]?.[e]??null;return n===null&&i[gu]?.[e]&&(n=yu(t,e)),n}function Zh(t,e){return t.data[gu]?.[e]??null}function yu(t,e){let i=Zh(t,e)??[],n=0;for(let r of i)n+=r[Ds]*(r[Gh]??1);return n}function Xs(t,e){if(typeof t.disconnectedNodes>"u"){let i=t.data[ib];t.disconnectedNodes=i?new Set(i):null}return!!t.disconnectedNodes?.has(e)}var as="__parameters__";function pb(t){return function(...i){if(t){let n=t(...i);for(let r in n)this[r]=n[r]}}}function Kh(t,e,i){return jr(()=>{let n=pb(e);function r(...o){if(this instanceof r)return n.apply(this,o),this;let s=new r(...o);return a.annotation=s,a;function a(l,c,h){let m=l.hasOwnProperty(as)?l[as]:Object.defineProperty(l,as,{value:[]})[as];for(;m.length<=h;)m.push(null);return(m[h]=m[h]||[]).push(s),l}}return i&&(r.prototype=Object.create(i.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}var zr=Hh(Kh("Optional"),8);var ea=Hh(Kh("SkipSelf"),4);function si(t,e){let i=t.hasOwnProperty(_s);return i?t[_s]:null}var ai=new F(""),Qh=new F("",-1),Jh=new F(""),Es=class{get(e,i=Nr){if(i===Nr){let n=new Error(`NullInjectorError: No provider for ${Ye(e)}!`);throw n.name="NullInjectorError",n}return i}};function Fn(t){return{\u0275providers:t}}function fb(...t){return{\u0275providers:Xh(!0,t),\u0275fromNgModule:!0}}function Xh(t,...e){let i=[],n=new Set,r,o=s=>{i.push(s)};return uu(e,s=>{let a=s;oc(a,o,[],n)&&(r||=[],r.push(a))}),r!==void 0&&em(r,o),i}function em(t,e){for(let i=0;i<t.length;i++){let{ngModule:n,providers:r}=t[i];Cu(r,o=>{e(o,n)})}}function oc(t,e,i,n){if(t=qe(t),!t)return!1;let r=null,o=bf(t),s=!o&&Mn(t);if(!o&&!s){let l=t.ngModule;if(o=bf(l),o)r=l;else return!1}else{if(s&&!s.standalone)return!1;r=t}let a=n.has(r);if(s){if(a)return!1;if(n.add(r),s.dependencies){let l=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of l)oc(c,e,i,n)}}else if(o){if(o.imports!=null&&!a){n.add(r);let c;try{uu(o.imports,h=>{oc(h,e,i,n)&&(c||=[],c.push(h))})}finally{}c!==void 0&&em(c,e)}if(!a){let c=si(r)||(()=>new r);e({provide:r,useFactory:c,deps:nt},r),e({provide:Jh,useValue:r,multi:!0},r),e({provide:ai,useValue:()=>D(r),multi:!0},r)}let l=o.providers;if(l!=null&&!a){let c=t;Cu(l,h=>{e(h,c)})}}else return!1;return r!==t&&t.providers!==void 0}function Cu(t,e){for(let i of t)Bh(i)&&(i=i.\u0275providers),Array.isArray(i)?Cu(i,e):e(i)}var hb=pe({provide:String,useValue:pe});function tm(t){return t!==null&&typeof t=="object"&&hb in t}function mb(t){return!!(t&&t.useExisting)}function gb(t){return!!(t&&t.useFactory)}function Wi(t){return typeof t=="function"}function vb(t){return!!t.useClass}var ta=new F(""),ms={},yb={},Nl;function bu(){return Nl===void 0&&(Nl=new Es),Nl}var Ze=class{},Fr=class extends Ze{get destroyed(){return this._destroyed}constructor(e,i,n,r){super(),this.parent=i,this.source=n,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,ac(e,s=>this.processProvider(s)),this.records.set(Qh,Fi(void 0,this)),r.has("environment")&&this.records.set(Ze,Fi(void 0,this));let o=this.records.get(ta);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Jh,nt,J.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=re(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let i=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of i)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),re(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let i=Dn(this),n=Je(void 0),r;try{return e()}finally{Dn(i),Je(n)}}get(e,i=Nr,n=J.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(ff))return e[ff](this);n=Qs(n);let r,o=Dn(this),s=Je(void 0);try{if(!(n&J.SkipSelf)){let l=this.records.get(e);if(l===void 0){let c=Ib(e)&&Zs(e);c&&this.injectableDefInScope(c)?l=Fi(sc(e),ms):l=null,this.records.set(e,l)}if(l!=null)return this.hydrate(e,l)}let a=n&J.Self?bu():this.parent;return i=n&J.Optional&&i===Nr?null:i,a.get(e,i)}catch(a){if(a.name==="NullInjectorError"){if((a[xs]=a[xs]||[]).unshift(Ye(e)),o)throw a;return ZC(a,e,"R3InjectorError",this.source)}else throw a}finally{Je(s),Dn(o)}}resolveInjectorInitializers(){let e=re(null),i=Dn(this),n=Je(void 0),r;try{let o=this.get(ai,nt,J.Self);for(let s of o)s()}finally{Dn(i),Je(n),re(e)}}toString(){let e=[],i=this.records;for(let n of i.keys())e.push(Ye(n));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new A(205,!1)}processProvider(e){e=qe(e);let i=Wi(e)?e:qe(e&&e.provide),n=bb(e);if(!Wi(e)&&e.multi===!0){let r=this.records.get(i);r||(r=Fi(void 0,ms,!0),r.factory=()=>nc(r.multi),this.records.set(i,r)),i=e,r.multi.push(e)}this.records.set(i,n)}hydrate(e,i){let n=re(null);try{return i.value===ms&&(i.value=yb,i.value=i.factory()),typeof i.value=="object"&&i.value&&Sb(i.value)&&this._ngOnDestroyHooks.add(i.value),i.value}finally{re(n)}}injectableDefInScope(e){if(!e.providedIn)return!1;let i=qe(e.providedIn);return typeof i=="string"?i==="any"||this.scopes.has(i):this.injectorDefTypes.has(i)}removeOnDestroy(e){let i=this._onDestroyHooks.indexOf(e);i!==-1&&this._onDestroyHooks.splice(i,1)}};function sc(t){let e=Zs(t),i=e!==null?e.factory:si(t);if(i!==null)return i;if(t instanceof F)throw new A(204,!1);if(t instanceof Function)return Cb(t);throw new A(204,!1)}function Cb(t){if(t.length>0)throw new A(204,!1);let i=RC(t);return i!==null?()=>i.factory(t):()=>new t}function bb(t){if(tm(t))return Fi(void 0,t.useValue);{let e=nm(t);return Fi(e,ms)}}function nm(t,e,i){let n;if(Wi(t)){let r=qe(t);return si(r)||sc(r)}else if(tm(t))n=()=>qe(t.useValue);else if(gb(t))n=()=>t.useFactory(...nc(t.deps||[]));else if(mb(t))n=()=>D(qe(t.useExisting));else{let r=qe(t&&(t.useClass||t.provide));if(_b(t))n=()=>new r(...nc(t.deps));else return si(r)||sc(r)}return n}function Fi(t,e,i=!1){return{factory:t,value:e,multi:i?[]:void 0}}function _b(t){return!!t.deps}function Sb(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function Ib(t){return typeof t=="function"||typeof t=="object"&&t instanceof F}function ac(t,e){for(let i of t)Array.isArray(i)?ac(i,e):i&&Bh(i)?ac(i.\u0275providers,e):e(i)}function Ht(t,e){t instanceof Fr&&t.assertNotDestroyed();let i,n=Dn(t),r=Je(void 0);try{return e()}finally{Dn(n),Je(r)}}function wb(t){if(!Uh()&&!GC())throw new A(-203,!1)}function xb(t){return typeof t=="function"}var lc=class{constructor(e,i,n){this.previousValue=e,this.currentValue=i,this.firstChange=n}isFirstChange(){return this.firstChange}};function im(t,e,i,n){e!==null?e.applyValueToInputSignal(e,n):t[i]=n}function We(){return rm}function rm(t){return t.type.prototype.ngOnChanges&&(t.setInput=Eb),Db}We.ngInherit=!0;function Db(){let t=sm(this),e=t?.current;if(e){let i=t.previous;if(i===Bi)t.previous=e;else for(let n in e)i[n]=e[n];t.current=null,this.ngOnChanges(e)}}function Eb(t,e,i,n,r){let o=this.declaredInputs[n],s=sm(t)||Mb(t,{previous:Bi,current:null}),a=s.current||(s.current={}),l=s.previous,c=l[o];a[o]=new lc(c&&c.currentValue,i,l===Bi),im(t,e,r,i)}var om="__ngSimpleChanges__";function sm(t){return t[om]||null}function Mb(t,e){return t[om]=e}var If=null;var At=function(t,e,i){If?.(t,e,i)};function Tb(t,e,i){let{ngOnChanges:n,ngOnInit:r,ngDoCheck:o}=e.type.prototype;if(n){let s=rm(e);(i.preOrderHooks??=[]).push(t,s),(i.preOrderCheckHooks??=[]).push(t,s)}r&&(i.preOrderHooks??=[]).push(0-t,r),o&&((i.preOrderHooks??=[]).push(t,o),(i.preOrderCheckHooks??=[]).push(t,o))}function na(t,e){for(let i=e.directiveStart,n=e.directiveEnd;i<n;i++){let o=t.data[i].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:h}=o;s&&(t.contentHooks??=[]).push(-i,s),a&&((t.contentHooks??=[]).push(i,a),(t.contentCheckHooks??=[]).push(i,a)),l&&(t.viewHooks??=[]).push(-i,l),c&&((t.viewHooks??=[]).push(i,c),(t.viewCheckHooks??=[]).push(i,c)),h!=null&&(t.destroyHooks??=[]).push(i,h)}}function gs(t,e,i){am(t,e,3,i)}function vs(t,e,i,n){(t[B]&3)===i&&am(t,e,i,n)}function Fl(t,e){let i=t[B];(i&3)===e&&(i&=16383,i+=1,t[B]=i)}function am(t,e,i,n){let r=n!==void 0?t[Ni]&65535:0,o=n??-1,s=e.length-1,a=0;for(let l=r;l<s;l++)if(typeof e[l+1]=="number"){if(a=e[l],n!=null&&a>=n)break}else e[l]<0&&(t[Ni]+=65536),(a<o||o==-1)&&(Pb(t,i,e,l),t[Ni]=(t[Ni]&4294901760)+l+2),l++}function wf(t,e){At(4,t,e);let i=re(null);try{e.call(t)}finally{re(i),At(5,t,e)}}function Pb(t,e,i,n){let r=i[n]<0,o=i[n+1],s=r?-i[n]:i[n],a=t[s];r?t[B]>>14<t[Ni]>>16&&(t[B]&3)===e&&(t[B]+=16384,wf(a,o)):wf(a,o)}var ji=-1,li=class{constructor(e,i,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=i,this.injectImpl=n}};function Ob(t){return t instanceof li}function Ab(t){return(t.flags&8)!==0}function kb(t){return(t.flags&16)!==0}function lm(t){return t!==ji}function Ms(t){return t&32767}function Nb(t){return t>>16}function Ts(t,e){let i=Nb(t),n=e;for(;i>0;)n=n[qi],i--;return n}var cc=!0;function Ps(t){let e=cc;return cc=t,e}var Fb=256,cm=Fb-1,um=5,Rb=0,kt={};function Lb(t,e,i){let n;typeof i=="string"?n=i.charCodeAt(0)||0:i.hasOwnProperty(Er)&&(n=i[Er]),n==null&&(n=i[Er]=Rb++);let r=n&cm,o=1<<r;e.data[t+(r>>um)]|=o}function Os(t,e){let i=dm(t,e);if(i!==-1)return i;let n=e[z];n.firstCreatePass&&(t.injectorIndex=e.length,Rl(n.data,t),Rl(e,null),Rl(n.blueprint,null));let r=_u(t,e),o=t.injectorIndex;if(lm(r)){let s=Ms(r),a=Ts(r,e),l=a[z].data;for(let c=0;c<8;c++)e[o+c]=a[s+c]|l[s+c]}return e[o+8]=r,o}function Rl(t,e){t.push(0,0,0,0,0,0,0,0,e)}function dm(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function _u(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let i=0,n=null,r=e;for(;r!==null;){if(n=gm(r),n===null)return ji;if(i++,r=r[qi],n.injectorIndex!==-1)return n.injectorIndex|i<<16}return ji}function uc(t,e,i){Lb(t,e,i)}function Vb(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let i=t.attrs;if(i){let n=i.length,r=0;for(;r<n;){let o=i[r];if(rh(o))break;if(o===0)r=r+2;else if(typeof o=="number")for(r++;r<n&&typeof i[r]=="string";)r++;else{if(o===e)return i[r+1];r=r+2}}}return null}function pm(t,e,i){if(i&J.Optional||t!==void 0)return t;mu(e,"NodeInjector")}function fm(t,e,i,n){if(i&J.Optional&&n===void 0&&(n=null),!(i&(J.Self|J.Host))){let r=t[Ui],o=Je(void 0);try{return r?r.get(e,n,i&J.Optional):$h(e,n,i&J.Optional)}finally{Je(o)}}return pm(n,e,i)}function hm(t,e,i,n=J.Default,r){if(t!==null){if(e[B]&2048&&!(n&J.Self)){let s=$b(t,e,i,n,kt);if(s!==kt)return s}let o=mm(t,e,i,n,kt);if(o!==kt)return o}return fm(e,i,n,r)}function mm(t,e,i,n,r){let o=Bb(i);if(typeof o=="function"){if(!xh(e,t,n))return n&J.Host?pm(r,i,n):fm(e,i,n,r);try{let s;if(s=o(n),s==null&&!(n&J.Optional))mu(i);else return s}finally{Th()}}else if(typeof o=="number"){let s=null,a=dm(t,e),l=ji,c=n&J.Host?e[rt][ot]:null;for((a===-1||n&J.SkipSelf)&&(l=a===-1?_u(t,e):e[a+8],l===ji||!Df(n,!1)?a=-1:(s=e[z],a=Ms(l),e=Ts(l,e)));a!==-1;){let h=e[z];if(xf(o,a,h.data)){let m=jb(a,e,i,s,n,c);if(m!==kt)return m}l=e[a+8],l!==ji&&Df(n,e[z].data[a+8]===c)&&xf(o,a,e)?(s=h,a=Ms(l),e=Ts(l,e)):a=-1}}return r}function jb(t,e,i,n,r,o){let s=e[z],a=s.data[t+8],l=n==null?Ur(a)&&cc:n!=s&&(a.type&3)!==0,c=r&J.Host&&o===a,h=ys(a,s,i,l,c);return h!==null?ci(e,s,h,a):kt}function ys(t,e,i,n,r){let o=t.providerIndexes,s=e.data,a=o&1048575,l=t.directiveStart,c=t.directiveEnd,h=o>>20,m=n?a:a+h,v=r?a+h:c;for(let C=m;C<v;C++){let I=s[C];if(C<l&&i===I||C>=l&&I.type===i)return C}if(r){let C=s[l];if(C&&Tn(C)&&C.type===i)return l}return null}function ci(t,e,i,n){let r=t[i],o=e.data;if(Ob(r)){let s=r;s.resolving&&UC(BC(o[i]));let a=Ps(s.canSeeViewProviders);s.resolving=!0;let l,c=s.injectImpl?Je(s.injectImpl):null,h=xh(t,n,J.Default);try{r=t[i]=s.factory(void 0,o,t,n),e.firstCreatePass&&i>=n.directiveStart&&Tb(i,o[i],e)}finally{c!==null&&Je(c),Ps(a),s.resolving=!1,Th()}}return r}function Bb(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(Er)?t[Er]:void 0;return typeof e=="number"?e>=0?e&cm:Ub:e}function xf(t,e,i){let n=1<<t;return!!(i[e+(t>>um)]&n)}function Df(t,e){return!(t&J.Self)&&!(t&J.Host&&e)}var ii=class{constructor(e,i){this._tNode=e,this._lView=i}get(e,i,n){return hm(this._tNode,this._lView,e,Qs(n),i)}};function Ub(){return new ii(He(),q())}function at(t){return jr(()=>{let e=t.prototype.constructor,i=e[_s]||dc(e),n=Object.prototype,r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==n;){let o=r[_s]||dc(r);if(o&&o!==i)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function dc(t){return jh(t)?()=>{let e=dc(qe(t));return e&&e()}:si(t)}function $b(t,e,i,n,r){let o=t,s=e;for(;o!==null&&s!==null&&s[B]&2048&&!(s[B]&512);){let a=mm(o,s,i,n|J.Self,kt);if(a!==kt)return a;let l=o.parent;if(!l){let c=s[hh];if(c){let h=c.get(i,kt,n);if(h!==kt)return h}l=gm(s),s=s[qi]}o=l}return r}function gm(t){let e=t[z],i=e.type;return i===2?e.declTNode:i===1?t[ot]:null}function Su(t){return Vb(He(),t)}function Ef(t,e=null,i=null,n){let r=vm(t,e,i,n);return r.resolveInjectorInitializers(),r}function vm(t,e=null,i=null,n,r=new Set){let o=[i||nt,fb(t)];return n=n||(typeof t=="object"?void 0:Ye(t)),new Fr(o,e||bu(),n||null,r)}var Mt=(()=>{let e=class e{static create(n,r){if(Array.isArray(n))return Ef({name:""},r,n,"");{let o=n.name??"";return Ef({name:o},n.parent,n.providers,o)}}};e.THROW_IF_NOT_FOUND=Nr,e.NULL=new Es,e.\u0275prov=x({token:e,providedIn:"any",factory:()=>D(Qh)}),e.__NG_ELEMENT_ID__=-1;let t=e;return t})(),Hb="ngOriginalError";function Ll(t){return t[Hb]}var Lt=class{constructor(){this._console=console}handleError(e){let i=this._findOriginalError(e);this._console.error("ERROR",e),i&&this._console.error("ORIGINAL ERROR",i)}_findOriginalError(e){let i=e&&Ll(e);for(;i&&Ll(i);)i=Ll(i);return i||null}},ym=new F("",{providedIn:"root",factory:()=>b(Lt).handleError.bind(void 0)}),ls=new F(""),Cm=!1,bm=new F("",{providedIn:"root",factory:()=>Cm}),cs;function Wb(){if(cs===void 0&&(cs=null,rn.trustedTypes))try{cs=rn.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return cs}function ia(t){return Wb()?.createHTML(t)||t}var us;function _m(){if(us===void 0&&(us=null,rn.trustedTypes))try{us=rn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return us}function Mf(t){return _m()?.createHTML(t)||t}function Tf(t){return _m()?.createScriptURL(t)||t}var cn=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${th})`}},pc=class extends cn{getTypeName(){return"HTML"}},fc=class extends cn{getTypeName(){return"Style"}},hc=class extends cn{getTypeName(){return"Script"}},mc=class extends cn{getTypeName(){return"URL"}},gc=class extends cn{getTypeName(){return"ResourceURL"}};function mt(t){return t instanceof cn?t.changingThisBreaksApplicationSecurity:t}function dn(t,e){let i=zb(t);if(i!=null&&i!==e){if(i==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${i} (see ${th})`)}return i===e}function zb(t){return t instanceof cn&&t.getTypeName()||null}function Sm(t){return new pc(t)}function Im(t){return new fc(t)}function wm(t){return new hc(t)}function xm(t){return new mc(t)}function Dm(t){return new gc(t)}function Gb(t){let e=new yc(t);return qb()?new vc(e):e}var vc=class{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{let i=new window.DOMParser().parseFromString(ia(e),"text/html").body;return i===null?this.inertDocumentHelper.getInertBodyElement(e):(i.removeChild(i.firstChild),i)}catch{return null}}},yc=class{constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let i=this.inertDocument.createElement("template");return i.innerHTML=ia(e),i}};function qb(){try{return!!new window.DOMParser().parseFromString(ia(""),"text/html")}catch{return!1}}var Yb=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function ra(t){return t=String(t),t.match(Yb)?t:"unsafe:"+t}function pn(t){let e={};for(let i of t.split(","))e[i]=!0;return e}function Gr(...t){let e={};for(let i of t)for(let n in i)i.hasOwnProperty(n)&&(e[n]=!0);return e}var Em=pn("area,br,col,hr,img,wbr"),Mm=pn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Tm=pn("rp,rt"),Zb=Gr(Tm,Mm),Kb=Gr(Mm,pn("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")),Qb=Gr(Tm,pn("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")),Pf=Gr(Em,Kb,Qb,Zb),Pm=pn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Jb=pn("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"),Xb=pn("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"),e_=Gr(Pm,Jb,Xb),t_=pn("script,style,template"),Cc=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let i=e.firstChild,n=!0;for(;i;){if(i.nodeType===Node.ELEMENT_NODE?n=this.startElement(i):i.nodeType===Node.TEXT_NODE?this.chars(i.nodeValue):this.sanitizedSomething=!0,n&&i.firstChild){i=i.firstChild;continue}for(;i;){i.nodeType===Node.ELEMENT_NODE&&this.endElement(i);let r=this.checkClobberedElement(i,i.nextSibling);if(r){i=r;break}i=this.checkClobberedElement(i,i.parentNode)}}return this.buf.join("")}startElement(e){let i=e.nodeName.toLowerCase();if(!Pf.hasOwnProperty(i))return this.sanitizedSomething=!0,!t_.hasOwnProperty(i);this.buf.push("<"),this.buf.push(i);let n=e.attributes;for(let r=0;r<n.length;r++){let o=n.item(r),s=o.name,a=s.toLowerCase();if(!e_.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=o.value;Pm[a]&&(l=ra(l)),this.buf.push(" ",s,'="',Of(l),'"')}return this.buf.push(">"),!0}endElement(e){let i=e.nodeName.toLowerCase();Pf.hasOwnProperty(i)&&!Em.hasOwnProperty(i)&&(this.buf.push("</"),this.buf.push(i),this.buf.push(">"))}chars(e){this.buf.push(Of(e))}checkClobberedElement(e,i){if(i&&(e.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return i}},n_=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,i_=/([^\#-~ |!])/g;function Of(t){return t.replace(/&/g,"&amp;").replace(n_,function(e){let i=e.charCodeAt(0),n=e.charCodeAt(1);return"&#"+((i-55296)*1024+(n-56320)+65536)+";"}).replace(i_,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var ds;function Iu(t,e){let i=null;try{ds=ds||Gb(t);let n=e?String(e):"";i=ds.getInertBodyElement(n);let r=5,o=n;do{if(r===0)throw new Error("Failed to sanitize html because the input is unstable");r--,n=o,o=i.innerHTML,i=ds.getInertBodyElement(n)}while(n!==o);let a=new Cc().sanitizeChildren(Af(i)||i);return ia(a)}finally{if(i){let n=Af(i)||i;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function Af(t){return"content"in t&&r_(t)?t.content:null}function r_(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var Tt=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Tt||{});function Om(t){let e=wu();return e?Mf(e.sanitize(Tt.HTML,t)||""):dn(t,"HTML")?Mf(mt(t)):Iu(Wr(),Nt(t))}function ue(t){let e=wu();return e?e.sanitize(Tt.URL,t)||"":dn(t,"URL")?mt(t):ra(Nt(t))}function o_(t){let e=wu();if(e)return Tf(e.sanitize(Tt.RESOURCE_URL,t)||"");if(dn(t,"ResourceURL"))return Tf(mt(t));throw new A(904,!1)}function s_(t,e){return e==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||e==="href"&&(t==="base"||t==="link")?o_:ue}function Am(t,e,i){return s_(e,i)(t)}function wu(){let t=q();return t&&t[sn].sanitizer}var a_=/^>|^->|<!--|-->|--!>|<!-$/g,l_=/(<|>)/g,c_="\u200B$1\u200B";function u_(t){return t.replace(a_,e=>e.replace(l_,c_))}var km=new Map,d_=0;function p_(){return d_++}function f_(t){km.set(t[Ws],t)}function h_(t){km.delete(t[Ws])}var kf="__ngContext__";function Pn(t,e){on(e)?(t[kf]=e[Ws],f_(e)):t[kf]=e}function m_(t){return t.ownerDocument.body}function Nm(t){return t instanceof Function?t():t}function Dr(t){return(t??b(Mt)).get(_e)==="browser"}var Vt=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(Vt||{}),g_;function xu(t,e){return g_(t,e)}function Ri(t,e,i,n,r){if(n!=null){let o,s=!1;Ut(n)?o=n:on(n)&&(s=!0,n=n[it]);let a=Et(n);t===0&&i!==null?r==null?Um(e,i,a):As(e,i,a,r||null,!0):t===1&&i!==null?As(e,i,a,r||null,!0):t===2?Wm(e,a,s):t===3&&e.destroyNode(a),o!=null&&O_(e,t,o,i,r)}}function Fm(t,e){return t.createText(e)}function v_(t,e,i){t.setValue(e,i)}function Rm(t,e){return t.createComment(u_(e))}function Du(t,e,i){return t.createElement(e,i)}function y_(t,e){Lm(t,e),e[it]=null,e[ot]=null}function C_(t,e,i,n,r,o){n[it]=r,n[ot]=e,sa(t,n,i,1,r,o)}function Lm(t,e){sa(t,e,e[ye],2,null,null)}function b_(t){let e=t[Pr];if(!e)return Vl(t[z],t);for(;e;){let i=null;if(on(e))i=e[Pr];else{let n=e[Xe];n&&(i=n)}if(!i){for(;e&&!e[xt]&&e!==t;)on(e)&&Vl(e[z],e),e=e[Le];e===null&&(e=t),on(e)&&Vl(e[z],e),i=e&&e[xt]}e=i}}function __(t,e,i,n){let r=Xe+n,o=i.length;n>0&&(i[r-1][xt]=e),n<o-Xe?(e[xt]=i[r],Ah(i,Xe+n,e)):(i.push(e),e[xt]=null),e[Le]=i;let s=e[Br];s!==null&&i!==s&&S_(s,e);let a=e[an];a!==null&&a.insertView(t),Kl(e),e[B]|=128}function S_(t,e){let i=t[$i],r=e[Le][Le][rt];e[rt]!==r&&(t[B]|=Xc.HasTransplantedViews),i===null?t[$i]=[e]:i.push(e)}function Vm(t,e){let i=t[$i],n=i.indexOf(e);i.splice(n,1)}function bc(t,e){if(t.length<=Xe)return;let i=Xe+e,n=t[i];if(n){let r=n[Br];r!==null&&r!==t&&Vm(r,n),e>0&&(t[i-1][xt]=n[xt]);let o=Is(t,Xe+e);y_(n[z],n);let s=o[an];s!==null&&s.detachView(o[z]),n[Le]=null,n[xt]=null,n[B]&=-129}return n}function jm(t,e){if(!(e[B]&256)){let i=e[ye];i.destroyNode&&sa(t,e,i,3,null,null),b_(e)}}function Vl(t,e){if(e[B]&256)return;let i=re(null);try{e[B]&=-129,e[B]|=256,e[ri]&&uf(e[ri]),w_(t,e),I_(t,e),e[z].type===1&&e[ye].destroy();let n=e[Br];if(n!==null&&Ut(e[Le])){n!==e[Le]&&Vm(n,e);let r=e[an];r!==null&&r.detachView(t)}h_(e)}finally{re(i)}}function I_(t,e){let i=t.cleanup,n=e[Tr];if(i!==null)for(let o=0;o<i.length-1;o+=2)if(typeof i[o]=="string"){let s=i[o+3];s>=0?n[s]():n[-s].unsubscribe(),o+=2}else{let s=n[i[o+1]];i[o].call(s)}n!==null&&(e[Tr]=null);let r=e[En];if(r!==null){e[En]=null;for(let o=0;o<r.length;o++){let s=r[o];s()}}}function w_(t,e){let i;if(t!=null&&(i=t.destroyHooks)!=null)for(let n=0;n<i.length;n+=2){let r=e[i[n]];if(!(r instanceof li)){let o=i[n+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){let a=r[o[s]],l=o[s+1];At(4,a,l);try{l.call(a)}finally{At(5,a,l)}}else{At(4,r,o);try{o.call(r)}finally{At(5,r,o)}}}}}function Bm(t,e,i){return x_(t,e.parent,i)}function x_(t,e,i){let n=e;for(;n!==null&&n.type&40;)e=n,n=e.parent;if(n===null)return i[it];{let{componentOffset:r}=n;if(r>-1){let{encapsulation:o}=t.data[n.directiveStart+r];if(o===Ft.None||o===Ft.Emulated)return null}return st(n,i)}}function As(t,e,i,n,r){t.insertBefore(e,i,n,r)}function Um(t,e,i){t.appendChild(e,i)}function Nf(t,e,i,n,r){n!==null?As(t,e,i,n,r):Um(t,e,i)}function D_(t,e,i,n){t.removeChild(e,i,n)}function Eu(t,e){return t.parentNode(e)}function E_(t,e){return t.nextSibling(e)}function $m(t,e,i){return T_(t,e,i)}function M_(t,e,i){return t.type&40?st(t,i):null}var T_=M_,Ff;function oa(t,e,i,n){let r=Bm(t,n,e),o=e[ye],s=n.parent||e[ot],a=$m(s,n,e);if(r!=null)if(Array.isArray(i))for(let l=0;l<i.length;l++)Nf(o,r,i[l],a,!1);else Nf(o,r,i,a,!1);Ff!==void 0&&Ff(o,n,e,i,r)}function Cs(t,e){if(e!==null){let i=e.type;if(i&3)return st(e,t);if(i&4)return _c(-1,t[e.index]);if(i&8){let n=e.child;if(n!==null)return Cs(t,n);{let r=t[e.index];return Ut(r)?_c(-1,r):Et(r)}}else{if(i&32)return xu(e,t)()||Et(t[e.index]);{let n=Hm(t,e);if(n!==null){if(Array.isArray(n))return n[0];let r=kr(t[rt]);return Cs(r,n)}else return Cs(t,e.next)}}}return null}function Hm(t,e){if(e!==null){let n=t[rt][ot],r=e.projection;return n.projection[r]}return null}function _c(t,e){let i=Xe+t+1;if(i<e.length){let n=e[i],r=n[z].firstChild;if(r!==null)return Cs(n,r)}return e[ln]}function Wm(t,e,i){let n=Eu(t,e);n&&D_(t,n,e,i)}function zm(t){t.textContent=""}function Mu(t,e,i,n,r,o,s){for(;i!=null;){let a=n[i.index],l=i.type;if(s&&e===0&&(a&&Pn(Et(a),n),i.flags|=2),(i.flags&32)!==32)if(l&8)Mu(t,e,i.child,n,r,o,!1),Ri(e,t,r,a,o);else if(l&32){let c=xu(i,n),h;for(;h=c();)Ri(e,t,r,h,o);Ri(e,t,r,a,o)}else l&16?Gm(t,e,n,i,r,o):Ri(e,t,r,a,o);i=s?i.projectionNext:i.next}}function sa(t,e,i,n,r,o){Mu(i,n,t.firstChild,e,r,o,!1)}function P_(t,e,i){let n=e[ye],r=Bm(t,i,e),o=i.parent||e[ot],s=$m(o,i,e);Gm(n,0,e,i,r,s)}function Gm(t,e,i,n,r,o){let s=i[rt],l=s[ot].projection[n.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++){let h=l[c];Ri(e,t,r,h,o)}else{let c=l,h=s[Le];ws(n)&&(c.flags|=128),Mu(t,e,c,h,r,o,!0)}}function O_(t,e,i,n,r){let o=i[ln],s=Et(i);o!==s&&Ri(e,t,n,o,r);for(let a=Xe;a<i.length;a++){let l=i[a];sa(l[z],l,t,e,n,o)}}function A_(t,e,i,n,r){if(e)r?t.addClass(i,n):t.removeClass(i,n);else{let o=n.indexOf("-")===-1?void 0:Vt.DashCase;r==null?t.removeStyle(i,n,o):(typeof r=="string"&&r.endsWith("!important")&&(r=r.slice(0,-10),o|=Vt.Important),t.setStyle(i,n,r,o))}}function k_(t,e,i){t.setAttribute(e,"style",i)}function qm(t,e,i){i===""?t.removeAttribute(e,"class"):t.setAttribute(e,"class",i)}function Ym(t,e,i){let{mergedAttrs:n,classes:r,styles:o}=i;n!==null&&Zl(t,e,n),r!==null&&qm(t,e,r),o!==null&&k_(t,e,o)}var lt={};function u(t=1){Zm(Me(),q(),kn()+t,!1)}function Zm(t,e,i,n){if(!n)if((e[B]&3)===3){let o=t.preOrderCheckHooks;o!==null&&gs(e,o,i)}else{let o=t.preOrderHooks;o!==null&&vs(e,o,0,i)}oi(i)}function _(t,e=J.Default){let i=q();if(i===null)return D(t,e);let n=He();return hm(n,i,qe(t),e)}function Km(){let t="invalid";throw new Error(t)}function Qm(t,e,i,n,r,o){let s=re(null);try{let a=null;r&be.SignalBased&&(a=e[n][Dl]),a!==null&&a.transformFn!==void 0&&(o=a.transformFn(o)),r&be.HasDecoratorInputTransform&&(o=t.inputTransforms[n].call(e,o)),t.setInput!==null?t.setInput(e,a,o,i,n):im(e,a,n,o)}finally{re(s)}}function N_(t,e){let i=t.hostBindingOpCodes;if(i!==null)try{for(let n=0;n<i.length;n++){let r=i[n];if(r<0)oi(~r);else{let o=r,s=i[++n],a=i[++n];CC(s,o);let l=e[o];a(2,l)}}}finally{oi(-1)}}function aa(t,e,i,n,r,o,s,a,l,c,h){let m=e.blueprint.slice();return m[it]=r,m[B]=n|4|128|8|64,(c!==null||t&&t[B]&2048)&&(m[B]|=2048),Ch(m),m[Le]=m[qi]=t,m[Dt]=i,m[sn]=s||t&&t[sn],m[ye]=a||t&&t[ye],m[Ui]=l||t&&t[Ui]||null,m[ot]=o,m[Ws]=p_(),m[Rt]=h,m[hh]=c,m[rt]=e.type==2?t[rt]:m,m}function Ki(t,e,i,n,r){let o=t.data[e];if(o===null)o=F_(t,e,i,n,r),yC()&&(o.flags|=32);else if(o.type&64){o.type=i,o.value=n,o.attrs=r;let s=mC();o.injectorIndex=s===null?-1:s.injectorIndex}return fi(o,!0),o}function F_(t,e,i,n,r){let o=Sh(),s=ru(),a=s?o:o&&o.parent,l=t.data[e]=$_(t,a,i,e,n,r);return t.firstChild===null&&(t.firstChild=l),o!==null&&(s?o.child==null&&l.parent!==null&&(o.child=l):o.next===null&&(o.next=l,l.prev=o)),l}function Jm(t,e,i,n){if(i===0)return-1;let r=e.length;for(let o=0;o<i;o++)e.push(n),t.blueprint.push(n),t.data.push(null);return r}function Xm(t,e,i,n,r){let o=kn(),s=n&2;try{oi(-1),s&&e.length>Fe&&Zm(t,e,Fe,!1),At(s?2:0,r),i(n,r)}finally{oi(o),At(s?3:1,r)}}function Tu(t,e,i){if(eu(e)){let n=re(null);try{let r=e.directiveStart,o=e.directiveEnd;for(let s=r;s<o;s++){let a=t.data[s];if(a.contentQueries){let l=i[s];a.contentQueries(1,l,s)}}}finally{re(n)}}}function Pu(t,e,i){_h()&&(Y_(t,e,i,st(i,e)),(i.flags&64)===64&&ig(t,e,i))}function Ou(t,e,i=st){let n=e.localNames;if(n!==null){let r=e.index+1;for(let o=0;o<n.length;o+=2){let s=n[o+1],a=s===-1?i(e,t):t[s];t[r++]=a}}}function eg(t){let e=t.tView;return e===null||e.incompleteFirstPass?t.tView=Au(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):e}function Au(t,e,i,n,r,o,s,a,l,c,h){let m=Fe+n,v=m+r,C=R_(m,v),I=typeof c=="function"?c():c;return C[z]={type:t,blueprint:C,template:i,queries:null,viewQuery:a,declTNode:e,data:C.slice().fill(null,m),bindingStartIndex:m,expandoStartIndex:v,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof o=="function"?o():o,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:l,consts:I,incompleteFirstPass:!1,ssrId:h}}function R_(t,e){let i=[];for(let n=0;n<e;n++)i.push(n<t?null:lt);return i}function L_(t,e,i,n){let o=n.get(bm,Cm)||i===Ft.ShadowDom,s=t.selectRootElement(e,o);return V_(s),s}function V_(t){tg(t)}var tg=()=>null;function j_(t){Nh(t)?zm(t):ub(t)}function B_(){tg=j_}function U_(t,e,i,n){let r=sg(e);r.push(i),t.firstCreatePass&&ag(t).push(n,r.length-1)}function $_(t,e,i,n,r,o){let s=e?e.injectorIndex:-1,a=0;return Yi()&&(a|=128),{type:i,index:n,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Rf(t,e,i,n,r){for(let o in e){if(!e.hasOwnProperty(o))continue;let s=e[o];if(s===void 0)continue;n??={};let a,l=be.None;Array.isArray(s)?(a=s[0],l=s[1]):a=s;let c=o;if(r!==null){if(!r.hasOwnProperty(o))continue;c=r[o]}t===0?Lf(n,i,c,a,l):Lf(n,i,c,a)}return n}function Lf(t,e,i,n,r){let o;t.hasOwnProperty(i)?(o=t[i]).push(e,n):o=t[i]=[e,n],r!==void 0&&o.push(r)}function H_(t,e,i){let n=e.directiveStart,r=e.directiveEnd,o=t.data,s=e.attrs,a=[],l=null,c=null;for(let h=n;h<r;h++){let m=o[h],v=i?i.get(m):null,C=v?v.inputs:null,I=v?v.outputs:null;l=Rf(0,m.inputs,h,l,C),c=Rf(1,m.outputs,h,c,I);let k=l!==null&&s!==null&&!sh(e)?o1(l,h,s):null;a.push(k)}l!==null&&(l.hasOwnProperty("class")&&(e.flags|=8),l.hasOwnProperty("style")&&(e.flags|=16)),e.initialInputs=a,e.inputs=l,e.outputs=c}function W_(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function ku(t,e,i,n,r,o,s,a){let l=st(e,i),c=e.inputs,h;!a&&c!=null&&(h=c[n])?(Fu(t,i,h,n,r),Ur(e)&&z_(i,e.index)):e.type&3?(n=W_(n),r=s!=null?s(r,e.value||"",n):r,o.setProperty(l,n,r)):e.type&12}function z_(t,e){let i=An(e,t);i[B]&16||(i[B]|=64)}function Nu(t,e,i,n){if(_h()){let r=n===null?null:{"":-1},o=K_(t,i),s,a;o===null?s=a=null:[s,a]=o,s!==null&&ng(t,e,i,s,r,a),r&&Q_(i,n,r)}i.mergedAttrs=Mr(i.mergedAttrs,i.attrs)}function ng(t,e,i,n,r,o){for(let c=0;c<n.length;c++)uc(Os(i,e),t,n[c].type);X_(i,t.data.length,n.length);for(let c=0;c<n.length;c++){let h=n[c];h.providersResolver&&h.providersResolver(h)}let s=!1,a=!1,l=Jm(t,e,n.length,null);for(let c=0;c<n.length;c++){let h=n[c];i.mergedAttrs=Mr(i.mergedAttrs,h.hostAttrs),e1(t,i,e,l,h),J_(l,h,r),h.contentQueries!==null&&(i.flags|=4),(h.hostBindings!==null||h.hostAttrs!==null||h.hostVars!==0)&&(i.flags|=64);let m=h.type.prototype;!s&&(m.ngOnChanges||m.ngOnInit||m.ngDoCheck)&&((t.preOrderHooks??=[]).push(i.index),s=!0),!a&&(m.ngOnChanges||m.ngDoCheck)&&((t.preOrderCheckHooks??=[]).push(i.index),a=!0),l++}H_(t,i,o)}function G_(t,e,i,n,r){let o=r.hostBindings;if(o){let s=t.hostBindingOpCodes;s===null&&(s=t.hostBindingOpCodes=[]);let a=~e.index;q_(s)!=a&&s.push(a),s.push(i,n,o)}}function q_(t){let e=t.length;for(;e>0;){let i=t[--e];if(typeof i=="number"&&i<0)return i}return 0}function Y_(t,e,i,n){let r=i.directiveStart,o=i.directiveEnd;Ur(i)&&t1(e,i,t.data[r+i.componentOffset]),t.firstCreatePass||Os(i,e),Pn(n,e);let s=i.initialInputs;for(let a=r;a<o;a++){let l=t.data[a],c=ci(e,t,a,i);if(Pn(c,e),s!==null&&r1(e,a-r,c,l,i,s),Tn(l)){let h=An(i.index,e);h[Dt]=ci(e,t,a,i)}}}function ig(t,e,i){let n=i.directiveStart,r=i.directiveEnd,o=i.index,s=bC();try{oi(o);for(let a=n;a<r;a++){let l=t.data[a],c=e[a];Ql(a),(l.hostBindings!==null||l.hostVars!==0||l.hostAttrs!==null)&&Z_(l,c)}}finally{oi(-1),Ql(s)}}function Z_(t,e){t.hostBindings!==null&&t.hostBindings(1,e)}function K_(t,e){let i=t.directiveRegistry,n=null,r=null;if(i)for(let o=0;o<i.length;o++){let s=i[o];if(ah(e,s.selectors,!1))if(n||(n=[]),Tn(s))if(s.findHostDirectiveDefs!==null){let a=[];r=r||new Map,s.findHostDirectiveDefs(s,a,r),n.unshift(...a,s);let l=a.length;Sc(t,e,l)}else n.unshift(s),Sc(t,e,0);else r=r||new Map,s.findHostDirectiveDefs?.(s,n,r),n.push(s)}return n===null?null:[n,r]}function Sc(t,e,i){e.componentOffset=i,(t.components??=[]).push(e.index)}function Q_(t,e,i){if(e){let n=t.localNames=[];for(let r=0;r<e.length;r+=2){let o=i[e[r+1]];if(o==null)throw new A(-301,!1);n.push(e[r],o)}}}function J_(t,e,i){if(i){if(e.exportAs)for(let n=0;n<e.exportAs.length;n++)i[e.exportAs[n]]=t;Tn(e)&&(i[""]=t)}}function X_(t,e,i){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+i,t.providerIndexes=e}function e1(t,e,i,n,r){t.data[n]=r;let o=r.factory||(r.factory=si(r.type,!0)),s=new li(o,Tn(r),_);t.blueprint[n]=s,i[n]=s,G_(t,e,n,Jm(t,i,r.hostVars,lt),r)}function t1(t,e,i){let n=st(e,t),r=eg(i),o=t[sn].rendererFactory,s=16;i.signals?s=4096:i.onPush&&(s=64);let a=la(t,aa(t,r,null,s,n,e,null,o.createRenderer(n,i),null,null,null));t[e.index]=a}function n1(t,e,i,n,r,o){let s=st(t,e);i1(e[ye],s,o,t.value,i,n,r)}function i1(t,e,i,n,r,o,s){if(o==null)t.removeAttribute(e,r,i);else{let a=s==null?Nt(o):s(o,n||"",r);t.setAttribute(e,r,a,i)}}function r1(t,e,i,n,r,o){let s=o[e];if(s!==null)for(let a=0;a<s.length;){let l=s[a++],c=s[a++],h=s[a++],m=s[a++];Qm(n,i,l,c,h,m)}}function o1(t,e,i){let n=null,r=0;for(;r<i.length;){let o=i[r];if(o===0){r+=4;continue}else if(o===5){r+=2;continue}if(typeof o=="number")break;if(t.hasOwnProperty(o)){n===null&&(n=[]);let s=t[o];for(let a=0;a<s.length;a+=3)if(s[a]===e){n.push(o,s[a+1],s[a+2],i[r+1]);break}}r+=2}return n}function rg(t,e,i,n){return[t,!0,0,e,null,n,null,i,null,null]}function og(t,e){let i=t.contentQueries;if(i!==null){let n=re(null);try{for(let r=0;r<i.length;r+=2){let o=i[r],s=i[r+1];if(s!==-1){let a=t.data[s];au(o),a.contentQueries(2,e[s],s)}}}finally{re(n)}}}function la(t,e){return t[Pr]?t[yf][xt]=e:t[Pr]=e,t[yf]=e,e}function Ic(t,e,i){au(0);let n=re(null);try{e(t,i)}finally{re(n)}}function sg(t){return t[Tr]||(t[Tr]=[])}function ag(t){return t.cleanup||(t.cleanup=[])}function lg(t,e){let i=t[Ui],n=i?i.get(Lt,null):null;n&&n.handleError(e)}function Fu(t,e,i,n,r){for(let o=0;o<i.length;){let s=i[o++],a=i[o++],l=i[o++],c=e[s],h=t.data[s];Qm(h,c,n,a,l,r)}}function Ru(t,e,i){let n=vh(e,t);v_(t[ye],n,i)}function s1(t,e){let i=An(e,t),n=i[z];a1(n,i);let r=i[it];r!==null&&i[Rt]===null&&(i[Rt]=vu(r,i[Ui])),Lu(n,i,i[Dt])}function a1(t,e){for(let i=e.length;i<t.blueprint.length;i++)e.push(t.blueprint[i])}function Lu(t,e,i){lu(e);try{let n=t.viewQuery;n!==null&&Ic(1,n,i);let r=t.template;r!==null&&Xm(t,e,r,1,i),t.firstCreatePass&&(t.firstCreatePass=!1),e[an]?.finishViewCreation(t),t.staticContentQueries&&og(t,e),t.staticViewQueries&&Ic(2,t.viewQuery,i);let o=t.components;o!==null&&l1(e,o)}catch(n){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),n}finally{e[B]&=-5,cu()}}function l1(t,e){for(let i=0;i<e.length;i++)s1(t,e[i])}function c1(t,e,i,n){let r=re(null);try{let o=e.tView,a=t[B]&4096?4096:16,l=aa(t,o,i,a,null,e,null,null,null,n?.injector??null,n?.dehydratedView??null),c=t[e.index];l[Br]=c;let h=t[an];return h!==null&&(l[an]=h.createEmbeddedView(o)),Lu(o,l,i),l}finally{re(r)}}function Vf(t,e){return!e||e.firstChild===null||ws(t)}function u1(t,e,i,n=!0){let r=e[z];if(__(r,e,t,i),n){let s=_c(i,t),a=e[ye],l=Eu(a,t[ln]);l!==null&&C_(r,t[ot],a,e,l,s)}let o=e[Rt];o!==null&&o.firstChild!==null&&(o.firstChild=null)}function ks(t,e,i,n,r=!1){for(;i!==null;){let o=e[i.index];o!==null&&n.push(Et(o)),Ut(o)&&d1(o,n);let s=i.type;if(s&8)ks(t,e,i.child,n);else if(s&32){let a=xu(i,e),l;for(;l=a();)n.push(l)}else if(s&16){let a=Hm(e,i);if(Array.isArray(a))n.push(...a);else{let l=kr(e[rt]);ks(l[z],l,a,n,!0)}}i=r?i.projectionNext:i.next}return n}function d1(t,e){for(let i=Xe;i<t.length;i++){let n=t[i],r=n[z].firstChild;r!==null&&ks(n[z],n,r,e)}t[ln]!==t[it]&&e.push(t[ln])}var cg=[];function p1(t){return t[ri]??f1(t)}function f1(t){let e=cg.pop()??Object.create(m1);return e.lView=t,e}function h1(t){t.lView[ri]!==t&&(t.lView=null,cg.push(t))}var m1=he(E({},af),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{Ar(t.lView)},consumerOnSignalRead(){this.lView[ri]=this}});function ug(t){return pg(t[Pr])}function dg(t){return pg(t[xt])}function pg(t){for(;t!==null&&!Ut(t);)t=t[xt];return t}var fg=100;function hg(t,e=!0,i=0){let n=t[sn],r=n.rendererFactory,o=!1;o||r.begin?.();try{g1(t,i)}catch(s){throw e&&lg(t,s),s}finally{o||(r.end?.(),n.inlineEffectRunner?.flush())}}function g1(t,e){wc(t,e);let i=0;for(;iu(t);){if(i===fg)throw new A(103,!1);i++,wc(t,1)}}function v1(t,e,i,n){let r=e[B];if((r&256)===256)return;let o=!1;!o&&e[sn].inlineEffectRunner?.flush(),lu(e);let s=null,a=null;!o&&y1(t)&&(a=p1(e),s=lf(a));try{Ch(e),vC(t.bindingStartIndex),i!==null&&Xm(t,e,i,2,n);let l=(r&3)===3;if(!o)if(l){let m=t.preOrderCheckHooks;m!==null&&gs(e,m,null)}else{let m=t.preOrderHooks;m!==null&&vs(e,m,0,null),Fl(e,0)}if(C1(e),mg(e,0),t.contentQueries!==null&&og(t,e),!o)if(l){let m=t.contentCheckHooks;m!==null&&gs(e,m)}else{let m=t.contentHooks;m!==null&&vs(e,m,1),Fl(e,1)}N_(t,e);let c=t.components;c!==null&&vg(e,c,0);let h=t.viewQuery;if(h!==null&&Ic(2,h,n),!o)if(l){let m=t.viewCheckHooks;m!==null&&gs(e,m)}else{let m=t.viewHooks;m!==null&&vs(e,m,2),Fl(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[Ol]){for(let m of e[Ol])m();e[Ol]=null}o||(e[B]&=-73)}catch(l){throw Ar(e),l}finally{a!==null&&(cf(a,s),h1(a)),cu()}}function y1(t){return t.type!==2}function mg(t,e){for(let i=ug(t);i!==null;i=dg(i))for(let n=Xe;n<i.length;n++){let r=i[n];gg(r,e)}}function C1(t){for(let e=ug(t);e!==null;e=dg(e)){if(!(e[B]&Xc.HasTransplantedViews))continue;let i=e[$i];for(let n=0;n<i.length;n++){let r=i[n],o=r[Le];sC(r)}}}function b1(t,e,i){let n=An(e,t);gg(n,i)}function gg(t,e){nu(t)&&wc(t,e)}function wc(t,e){let n=t[z],r=t[B],o=t[ri],s=!!(e===0&&r&16);if(s||=!!(r&64&&e===0),s||=!!(r&1024),s||=!!(o?.dirty&&El(o)),o&&(o.dirty=!1),t[B]&=-9217,s)v1(n,t,n.template,t[Dt]);else if(r&8192){mg(t,1);let a=n.components;a!==null&&vg(t,a,1)}}function vg(t,e,i){for(let n=0;n<e.length;n++)b1(t,e[n],i)}function Vu(t){for(t[sn].changeDetectionScheduler?.notify();t;){t[B]|=64;let e=kr(t);if(gh(t)&&!e)return t;t=e}return null}var ui=class{get rootNodes(){let e=this._lView,i=e[z];return ks(i,e,i.firstChild,[])}constructor(e,i,n=!0){this._lView=e,this._cdRefInjectingView=i,this.notifyErrorHandler=n,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[Dt]}set context(e){this._lView[Dt]=e}get destroyed(){return(this._lView[B]&256)===256}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let e=this._lView[Le];if(Ut(e)){let i=e[Ss],n=i?i.indexOf(this):-1;n>-1&&(bc(e,n),Is(i,n))}this._attachedToViewContainer=!1}jm(this._lView[z],this._lView)}onDestroy(e){bh(this._lView,e)}markForCheck(){Vu(this._cdRefInjectingView||this._lView)}detach(){this._lView[B]&=-129}reattach(){Kl(this._lView),this._lView[B]|=128}detectChanges(){this._lView[B]|=1024,hg(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new A(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,Lm(this._lView[z],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new A(902,!1);this._appRef=e,Kl(this._lView)}},di=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=I1;let t=e;return t})(),_1=di,S1=class extends _1{constructor(e,i,n){super(),this._declarationLView=e,this._declarationTContainer=i,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,i){return this.createEmbeddedViewImpl(e,i)}createEmbeddedViewImpl(e,i,n){let r=c1(this._declarationLView,this._declarationTContainer,e,{injector:i,dehydratedView:n});return new ui(r)}};function I1(){return ju(He(),q())}function ju(t,e){return t.type&4?new S1(e,t,Zi(t,e)):null}function yg(t){let e=t[Or]??[],n=t[Le][ye];for(let r of e)w1(r,n);t[Or]=nt}function w1(t,e){let i=0,n=t.firstChild;if(n){let r=t.data[Ds];for(;i<r;){let o=n.nextSibling;Wm(e,n,!1),n=o,i++}}}function Cg(t){yg(t);for(let e=Xe;e<t.length;e++)Ns(t[e])}function Ns(t){let e=t[z];for(let i=Fe;i<e.bindingStartIndex;i++)if(Ut(t[i])){let n=t[i];Cg(n)}else on(t[i])&&Ns(t[i])}function x1(t){let e=t._views;for(let i of e){let n=lb(i);if(n!==null&&n[it]!==null)if(on(n))Ns(n);else{let r=n[it];Ns(r),Cg(n)}}}var D1=new RegExp(`^(\\d+)*(${zh}|${Wh})*(.*)`);function E1(t){let e=t.match(D1),[i,n,r,o]=e,s=n?parseInt(n,10):r,a=[];for(let[l,c,h]of o.matchAll(/(f|n)(\d*)/g)){let m=parseInt(h,10)||1;a.push(c,m)}return[s,...a]}function M1(t){return!t.prev&&t.parent?.type===8}function jl(t){return t.index-Fe}function ca(t,e,i,n){let r=null,o=jl(n),s=t.data[nb];if(s?.[o])r=P1(s[o],i);else if(e.firstChild===n)r=t.firstChild;else{let a=n.prev===null,l=n.prev??n.parent;if(M1(n)){let c=jl(n.parent);r=rc(t,c)}else{let c=st(l,i);if(a)r=c.firstChild;else{let h=jl(l),m=rc(t,h);if(l.type===2&&m){let C=yu(t,h)+1;r=ua(C,m)}else r=c.nextSibling}}}return r}function ua(t,e){let i=e;for(let n=0;n<t;n++)i=i.nextSibling;return i}function T1(t,e){let i=t;for(let n=0;n<e.length;n+=2){let r=e[n],o=e[n+1];for(let s=0;s<o;s++)switch(r){case ic.FirstChild:i=i.firstChild;break;case ic.NextSibling:i=i.nextSibling;break}}return i}function P1(t,e){let[i,...n]=E1(t),r;if(i===Wh)r=e[rt][it];else if(i===zh)r=m_(e[rt][it]);else{let o=Number(i);r=Et(e[o+Fe])}return T1(r,n)}function O1(t,e){let i=[];for(let n of e)for(let r=0;r<(n[Gh]??1);r++){let o={data:n,firstChild:null};n[Ds]>0&&(o.firstChild=t,t=ua(n[Ds],t)),i.push(o)}return[t,i]}var bg=()=>null;function A1(t,e){let i=t[Or];return!e||i===null||i.length===0?null:i[0].data[tb]===e?i.shift():(yg(t),null)}function k1(){bg=A1}function jf(t,e){return bg(t,e)}var xc=class{},Dc=class{},Fs=class{};function N1(t){let e=Error(`No component factory found for ${Ye(t)}.`);return e[F1]=t,e}var F1="ngComponent";var Ec=class{resolveComponentFactory(e){throw N1(e)}},da=(()=>{let e=class e{};e.NULL=new Ec;let t=e;return t})(),Rr=class{},Be=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>R1();let t=e;return t})();function R1(){let t=q(),e=He(),i=An(e.index,t);return(on(i)?i:t)[ye]}var L1=(()=>{let e=class e{};e.\u0275prov=x({token:e,providedIn:"root",factory:()=>null});let t=e;return t})(),Bl={},_g=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=V1,e.__NG_ENV_ID__=n=>n;let t=e;return t})(),Mc=class extends _g{constructor(e){super(),this._lView=e}onDestroy(e){return bh(this._lView,e),()=>lC(this._lView,e)}};function V1(){return new Mc(q())}var Bf=new Set;function mi(t){Bf.has(t)||(Bf.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function Uf(...t){}function j1(){let t=typeof rn.requestAnimationFrame=="function",e=rn[t?"requestAnimationFrame":"setTimeout"],i=rn[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&e&&i){let n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);let r=i[Zone.__symbol__("OriginalDelegate")];r&&(i=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:i}}var de=class t{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ve(!1),this.onMicrotaskEmpty=new ve(!1),this.onStable=new ve(!1),this.onError=new ve(!1),typeof Zone>"u")throw new A(908,!1);Zone.assertZonePatched();let r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!n&&i,r.shouldCoalesceRunChangeDetection=n,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=j1().nativeRequestAnimationFrame,$1(r)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new A(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new A(909,!1)}run(e,i,n){return this._inner.run(e,i,n)}runTask(e,i,n,r){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,e,B1,Uf,Uf);try{return o.runTask(s,i,n)}finally{o.cancelTask(s)}}runGuarded(e,i,n){return this._inner.runGuarded(e,i,n)}runOutsideAngular(e){return this._outer.run(e)}},B1={};function Bu(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function U1(t){t.isCheckStableRunning||t.lastRequestAnimationFrameId!==-1||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(rn,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Tc(t),t.isCheckStableRunning=!0,Bu(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Tc(t))}function $1(t){let e=()=>{U1(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,n,r,o,s,a)=>{if(H1(a))return i.invokeTask(r,o,s,a);try{return $f(t),i.invokeTask(r,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),Hf(t)}},onInvoke:(i,n,r,o,s,a,l)=>{try{return $f(t),i.invoke(r,o,s,a,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),Hf(t)}},onHasTask:(i,n,r,o)=>{i.hasTask(r,o),n===r&&(o.change=="microTask"?(t._hasPendingMicrotasks=o.microTask,Tc(t),Bu(t)):o.change=="macroTask"&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(i,n,r,o)=>(i.handleError(r,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}function Tc(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.lastRequestAnimationFrameId!==-1?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function $f(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Hf(t){t._nesting--,Bu(t)}function H1(t){return!Array.isArray(t)||t.length!==1?!1:t[0].data?.__ignore_ng_zone__===!0}var Li=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(Li||{}),W1={destroy(){}};function Uu(t,e){!e&&wb(Uu);let i=e?.injector??b(Mt);if(!Dr(i))return W1;mi("NgAfterNextRender");let n=i.get($u),r=n.handler??=new Oc,o=e?.phase??Li.MixedReadWrite,s=()=>{r.unregister(l),a()},a=i.get(_g).onDestroy(s),l=new Pc(i,o,()=>{s(),t()});return r.register(l),{destroy:s}}var Pc=class{constructor(e,i,n){this.phase=i,this.callbackFn=n,this.zone=e.get(de),this.errorHandler=e.get(Lt,null,{optional:!0})}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(e){this.errorHandler?.handleError(e)}}},Oc=class{constructor(){this.executingCallbacks=!1,this.buckets={[Li.EarlyRead]:new Set,[Li.Write]:new Set,[Li.MixedReadWrite]:new Set,[Li.Read]:new Set},this.deferredCallbacks=new Set}register(e){(this.executingCallbacks?this.deferredCallbacks:this.buckets[e.phase]).add(e)}unregister(e){this.buckets[e.phase].delete(e),this.deferredCallbacks.delete(e)}execute(){this.executingCallbacks=!0;for(let e of Object.values(this.buckets))for(let i of e)i.invoke();this.executingCallbacks=!1;for(let e of this.deferredCallbacks)this.buckets[e.phase].add(e);this.deferredCallbacks.clear()}destroy(){for(let e of Object.values(this.buckets))e.clear();this.deferredCallbacks.clear()}},$u=(()=>{let e=class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let r of n)r()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};e.\u0275prov=x({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();function Rs(t,e,i){let n=i?t.styles:null,r=i?t.classes:null,o=0;if(e!==null)for(let s=0;s<e.length;s++){let a=e[s];if(typeof a=="number")o=a;else if(o==1)r=pf(r,a);else if(o==2){let l=a,c=e[++s];n=pf(n,l+": "+c+";")}}i?t.styles=n:t.stylesWithoutHost=n,i?t.classes=r:t.classesWithoutHost=r}var Ls=class extends da{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){let i=Mn(e);return new zi(i,this.ngModule)}};function Wf(t){let e=[];for(let i in t){if(!t.hasOwnProperty(i))continue;let n=t[i];n!==void 0&&e.push({propName:Array.isArray(n)?n[0]:n,templateName:i})}return e}function z1(t){let e=t.toLowerCase();return e==="svg"?eC:e==="math"?tC:null}var Ac=class{constructor(e,i){this.injector=e,this.parentInjector=i}get(e,i,n){n=Qs(n);let r=this.injector.get(e,Bl,n);return r!==Bl||i===Bl?r:this.parentInjector.get(e,i,n)}},zi=class extends Fs{get inputs(){let e=this.componentDef,i=e.inputTransforms,n=Wf(e.inputs);if(i!==null)for(let r of n)i.hasOwnProperty(r.propName)&&(r.transform=i[r.propName]);return n}get outputs(){return Wf(this.componentDef.outputs)}constructor(e,i){super(),this.componentDef=e,this.ngModule=i,this.componentType=e.type,this.selector=Zy(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!i}create(e,i,n,r){let o=re(null);try{r=r||this.ngModule;let s=r instanceof Ze?r:r?.injector;s&&this.componentDef.getStandaloneInjector!==null&&(s=this.componentDef.getStandaloneInjector(s)||s);let a=s?new Ac(e,s):e,l=a.get(Rr,null);if(l===null)throw new A(407,!1);let c=a.get(L1,null),h=a.get($u,null),m=a.get(xc,null),v={rendererFactory:l,sanitizer:c,inlineEffectRunner:null,afterRenderEventManager:h,changeDetectionScheduler:m},C=l.createRenderer(null,this.componentDef),I=this.componentDef.selectors[0][0]||"div",k=n?L_(C,n,this.componentDef.encapsulation,a):Du(C,I,z1(I)),L=512;this.componentDef.signals?L|=4096:this.componentDef.onPush||(L|=16);let O=null;k!==null&&(O=vu(k,a,!0));let fe=Au(0,null,null,1,0,null,null,null,null,null,null),we=aa(null,fe,null,L,null,null,v,C,a,null,O);lu(we);let ce,Ge;try{let xe=this.componentDef,Ke,Ii=null;xe.findHostDirectiveDefs?(Ke=[],Ii=new Map,xe.findHostDirectiveDefs(xe,Ke,Ii),Ke.push(xe)):Ke=[xe];let ry=G1(we,k),oy=q1(ry,k,xe,Ke,we,v,C);Ge=yh(fe,Fe),k&&K1(C,xe,k,n),i!==void 0&&Q1(Ge,this.ngContentSelectors,i),ce=Z1(oy,xe,Ke,Ii,we,[J1]),Lu(fe,we,null)}finally{cu()}return new kc(this.componentType,ce,Zi(Ge,we),we,Ge)}finally{re(o)}}},kc=class extends Dc{constructor(e,i,n,r,o){super(),this.location=n,this._rootLView=r,this._tNode=o,this.previousInputValues=null,this.instance=i,this.hostView=this.changeDetectorRef=new ui(r,void 0,!1),this.componentType=e}setInput(e,i){let n=this._tNode.inputs,r;if(n!==null&&(r=n[e])){if(this.previousInputValues??=new Map,this.previousInputValues.has(e)&&Object.is(this.previousInputValues.get(e),i))return;let o=this._rootLView;Fu(o[z],o,r,e,i),this.previousInputValues.set(e,i);let s=An(this._tNode.index,o);Vu(s)}}get injector(){return new ii(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}};function G1(t,e){let i=t[z],n=Fe;return t[n]=e,Ki(i,n,2,"#host",null)}function q1(t,e,i,n,r,o,s){let a=r[z];Y1(n,t,e,s);let l=null;e!==null&&(l=vu(e,r[Ui]));let c=o.rendererFactory.createRenderer(e,i),h=16;i.signals?h=4096:i.onPush&&(h=64);let m=aa(r,eg(i),null,h,r[t.index],t,o,c,null,null,l);return a.firstCreatePass&&Sc(a,t,n.length-1),la(r,m),r[t.index]=m}function Y1(t,e,i,n){for(let r of t)e.mergedAttrs=Mr(e.mergedAttrs,r.hostAttrs);e.mergedAttrs!==null&&(Rs(e,e.mergedAttrs,!0),i!==null&&Ym(n,i,e))}function Z1(t,e,i,n,r,o){let s=He(),a=r[z],l=st(s,r);ng(a,r,s,i,null,n);for(let h=0;h<i.length;h++){let m=s.directiveStart+h,v=ci(r,a,m,s);Pn(v,r)}ig(a,r,s),l&&Pn(l,r);let c=ci(r,a,s.directiveStart+s.componentOffset,s);if(t[Dt]=r[Dt]=c,o!==null)for(let h of o)h(c,e);return Tu(a,s,r),c}function K1(t,e,i,n){if(n)Zl(t,i,["ng-version","17.2.4"]);else{let{attrs:r,classes:o}=Ky(e.selectors[0]);r&&Zl(t,i,r),o&&o.length>0&&qm(t,i,o.join(" "))}}function Q1(t,e,i){let n=t.projection=[];for(let r=0;r<e.length;r++){let o=i[r];n.push(o!=null?Array.from(o):null)}}function J1(){let t=He();na(q()[z],t)}var Rn=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=X1;let t=e;return t})();function X1(){let t=He();return Ig(t,q())}var eS=Rn,Sg=class extends eS{constructor(e,i,n){super(),this._lContainer=e,this._hostTNode=i,this._hostLView=n}get element(){return Zi(this._hostTNode,this._hostLView)}get injector(){return new ii(this._hostTNode,this._hostLView)}get parentInjector(){let e=_u(this._hostTNode,this._hostLView);if(lm(e)){let i=Ts(e,this._hostLView),n=Ms(e),r=i[z].data[n+8];return new ii(r,i)}else return new ii(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let i=zf(this._lContainer);return i!==null&&i[e]||null}get length(){return this._lContainer.length-Xe}createEmbeddedView(e,i,n){let r,o;typeof n=="number"?r=n:n!=null&&(r=n.index,o=n.injector);let s=jf(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(i||{},o,s);return this.insertImpl(a,r,Vf(this._hostTNode,s)),a}createComponent(e,i,n,r,o){let s=e&&!xb(e),a;if(s)a=i;else{let I=i||{};a=I.index,n=I.injector,r=I.projectableNodes,o=I.environmentInjector||I.ngModuleRef}let l=s?e:new zi(Mn(e)),c=n||this.parentInjector;if(!o&&l.ngModule==null){let k=(s?c:this.parentInjector).get(Ze,null);k&&(o=k)}let h=Mn(l.componentType??{}),m=jf(this._lContainer,h?.id??null),v=m?.firstChild??null,C=l.create(c,r,v,o);return this.insertImpl(C.hostView,a,Vf(this._hostTNode,m)),C}insert(e,i){return this.insertImpl(e,i,!0)}insertImpl(e,i,n){let r=e._lView;if(oC(r)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let l=r[Le],c=new Sg(l,l[ot],l[Le]);c.detach(c.indexOf(e))}}let o=this._adjustIndex(i),s=this._lContainer;return u1(s,r,o,n),e.attachToViewContainerRef(),Ah(Ul(s),o,e),e}move(e,i){return this.insert(e,i)}indexOf(e){let i=zf(this._lContainer);return i!==null?i.indexOf(e):-1}remove(e){let i=this._adjustIndex(e,-1),n=bc(this._lContainer,i);n&&(Is(Ul(this._lContainer),i),jm(n[z],n))}detach(e){let i=this._adjustIndex(e,-1),n=bc(this._lContainer,i);return n&&Is(Ul(this._lContainer),i)!=null?new ui(n):null}_adjustIndex(e,i=0){return e??this.length+i}};function zf(t){return t[Ss]}function Ul(t){return t[Ss]||(t[Ss]=[])}function Ig(t,e){let i,n=e[t.index];return Ut(n)?i=n:(i=rg(n,e,null,t),e[t.index]=i,la(e,i)),wg(i,e,t,n),new Sg(i,t,e)}function tS(t,e){let i=t[ye],n=i.createComment(""),r=st(e,t),o=Eu(i,r);return As(i,o,n,E_(i,r),!1),n}var wg=xg,Hu=()=>!1;function nS(t,e,i){return Hu(t,e,i)}function xg(t,e,i,n){if(t[ln])return;let r;i.type&8?r=Et(n):r=tS(e,i),t[ln]=r}function iS(t,e,i){if(t[ln]&&t[Or])return!0;let n=i[Rt],r=e.index-Fe;if(!n||FC(e)||Xs(n,r))return!1;let s=rc(n,r),a=n.data[gu]?.[r],[l,c]=O1(s,a);return t[ln]=l,t[Or]=c,!0}function rS(t,e,i,n){Hu(t,i,e)||xg(t,e,i,n)}function oS(){wg=rS,Hu=iS}var Nc=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},Fc=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let i=e.queries;if(i!==null){let n=e.contentQueries!==null?e.contentQueries[0]:i.length,r=[];for(let o=0;o<n;o++){let s=i.getByIndex(o),a=this.queries[s.indexInDeclarationView];r.push(a.clone())}return new t(r)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}finishViewCreation(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let i=0;i<this.queries.length;i++)Wu(e,i).matches!==null&&this.queries[i].setDirty()}},Vs=class{constructor(e,i,n=null){this.flags=i,this.read=n,typeof e=="string"?this.predicate=fS(e):this.predicate=e}},Rc=class t{constructor(e=[]){this.queries=e}elementStart(e,i){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(e,i)}elementEnd(e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementEnd(e)}embeddedTView(e){let i=null;for(let n=0;n<this.length;n++){let r=i!==null?i.length:0,o=this.getByIndex(n).embeddedTView(e,r);o&&(o.indexInDeclarationView=n,i!==null?i.push(o):i=[o])}return i!==null?new t(i):null}template(e,i){for(let n=0;n<this.queries.length;n++)this.queries[n].template(e,i)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}},Lc=class t{constructor(e,i=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=i}elementStart(e,i){this.isApplyingToNode(i)&&this.matchTNode(e,i)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,i){this.elementStart(e,i)}embeddedTView(e,i){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,i),new t(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let i=this._declarationNodeIndex,n=e.parent;for(;n!==null&&n.type&8&&n.index!==i;)n=n.parent;return i===(n!==null?n.index:-1)}return this._appliesToNextNode}matchTNode(e,i){let n=this.metadata.predicate;if(Array.isArray(n))for(let r=0;r<n.length;r++){let o=n[r];this.matchTNodeWithReadOption(e,i,sS(i,o)),this.matchTNodeWithReadOption(e,i,ys(i,e,o,!1,!1))}else n===di?i.type&4&&this.matchTNodeWithReadOption(e,i,-1):this.matchTNodeWithReadOption(e,i,ys(i,e,n,!1,!1))}matchTNodeWithReadOption(e,i,n){if(n!==null){let r=this.metadata.read;if(r!==null)if(r===Oe||r===Rn||r===di&&i.type&4)this.addMatch(i.index,-2);else{let o=ys(i,e,r,!1,!1);o!==null&&this.addMatch(i.index,o)}else this.addMatch(i.index,n)}}addMatch(e,i){this.matches===null?this.matches=[e,i]:this.matches.push(e,i)}};function sS(t,e){let i=t.localNames;if(i!==null){for(let n=0;n<i.length;n+=2)if(i[n]===e)return i[n+1]}return null}function aS(t,e){return t.type&11?Zi(t,e):t.type&4?ju(t,e):null}function lS(t,e,i,n){return i===-1?aS(e,t):i===-2?cS(t,e,n):ci(t,t[z],i,e)}function cS(t,e,i){if(i===Oe)return Zi(e,t);if(i===di)return ju(e,t);if(i===Rn)return Ig(e,t)}function Dg(t,e,i,n){let r=e[an].queries[n];if(r.matches===null){let o=t.data,s=i.matches,a=[];for(let l=0;s!==null&&l<s.length;l+=2){let c=s[l];if(c<0)a.push(null);else{let h=o[c];a.push(lS(e,h,s[l+1],i.metadata.read))}}r.matches=a}return r.matches}function Vc(t,e,i,n){let r=t.queries.getByIndex(i),o=r.matches;if(o!==null){let s=Dg(t,e,r,i);for(let a=0;a<o.length;a+=2){let l=o[a];if(l>0)n.push(s[a/2]);else{let c=o[a+1],h=e[-l];for(let m=Xe;m<h.length;m++){let v=h[m];v[Br]===v[Le]&&Vc(v[z],v,c,n)}if(h[$i]!==null){let m=h[$i];for(let v=0;v<m.length;v++){let C=m[v];Vc(C[z],C,c,n)}}}}}return n}function uS(t,e){return t[an].queries[e].queryList}function Eg(t,e,i){let n=new Jl((i&4)===4);return U_(t,e,n,n.destroy),(e[an]??=new Fc).queries.push(new Nc(n))-1}function dS(t,e,i){let n=Me();return n.firstCreatePass&&(Mg(n,new Vs(t,e,i),-1),(e&2)===2&&(n.staticViewQueries=!0)),Eg(n,q(),e)}function pS(t,e,i,n){let r=Me();if(r.firstCreatePass){let o=He();Mg(r,new Vs(e,i,n),o.index),hS(r,t),(i&2)===2&&(r.staticContentQueries=!0)}return Eg(r,q(),i)}function fS(t){return t.split(",").map(e=>e.trim())}function Mg(t,e,i){t.queries===null&&(t.queries=new Rc),t.queries.track(new Lc(e,i))}function hS(t,e){let i=t.contentQueries||(t.contentQueries=[]),n=i.length?i[i.length-1]:-1;e!==n&&i.push(t.queries.length-1,e)}function Wu(t,e){return t.queries.getByIndex(e)}function mS(t,e){let i=t[z],n=Wu(i,e);return n.crossesNgTemplate?Vc(i,t,e,[]):Dg(i,t,n,e)}function gS(t){return typeof t=="function"&&t[Dl]!==void 0}function Tg(t){return gS(t)&&typeof t.set=="function"}function vS(t){return Object.getPrototypeOf(t.prototype).constructor}function ze(t){let e=vS(t.type),i=!0,n=[t];for(;e;){let r;if(Tn(t))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new A(903,!1);r=e.\u0275dir}if(r){if(i){n.push(r);let s=t;s.inputs=ps(t.inputs),s.inputTransforms=ps(t.inputTransforms),s.declaredInputs=ps(t.declaredInputs),s.outputs=ps(t.outputs);let a=r.hostBindings;a&&SS(t,a);let l=r.viewQuery,c=r.contentQueries;if(l&&bS(t,l),c&&_S(t,c),yS(t,r),Ny(t.outputs,r.outputs),Tn(r)&&r.data.animation){let h=t.data;h.animation=(h.animation||[]).concat(r.data.animation)}}let o=r.features;if(o)for(let s=0;s<o.length;s++){let a=o[s];a&&a.ngInherit&&a(t),a===ze&&(i=!1)}}e=Object.getPrototypeOf(e)}CS(n)}function yS(t,e){for(let i in e.inputs){if(!e.inputs.hasOwnProperty(i)||t.inputs.hasOwnProperty(i))continue;let n=e.inputs[i];if(n!==void 0&&(t.inputs[i]=n,t.declaredInputs[i]=e.declaredInputs[i],e.inputTransforms!==null)){let r=Array.isArray(n)?n[0]:n;if(!e.inputTransforms.hasOwnProperty(r))continue;t.inputTransforms??={},t.inputTransforms[r]=e.inputTransforms[r]}}}function CS(t){let e=0,i=null;for(let n=t.length-1;n>=0;n--){let r=t[n];r.hostVars=e+=r.hostVars,r.hostAttrs=Mr(r.hostAttrs,i=Mr(i,r.hostAttrs))}}function ps(t){return t===Bi?{}:t===nt?[]:t}function bS(t,e){let i=t.viewQuery;i?t.viewQuery=(n,r)=>{e(n,r),i(n,r)}:t.viewQuery=e}function _S(t,e){let i=t.contentQueries;i?t.contentQueries=(n,r,o)=>{e(n,r,o),i(n,r,o)}:t.contentQueries=e}function SS(t,e){let i=t.hostBindings;i?t.hostBindings=(n,r)=>{e(n,r),i(n,r)}:t.hostBindings=e}function pa(t){let e=t.inputConfig,i={};for(let n in e)if(e.hasOwnProperty(n)){let r=e[n];Array.isArray(r)&&r[3]&&(i[n]=r[3])}t.inputTransforms=i}var On=class{},Lr=class{};var jc=class extends On{constructor(e,i,n){super(),this._parent=i,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Ls(this);let r=dh(e);this._bootstrapComponents=Nm(r.bootstrap),this._r3Injector=vm(e,i,[{provide:On,useValue:this},{provide:da,useValue:this.componentFactoryResolver},...n],Ye(e),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(e)}get injector(){return this._r3Injector}destroy(){let e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(i=>i()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},Bc=class extends Lr{constructor(e){super(),this.moduleType=e}create(e){return new jc(this.moduleType,e,[])}};var js=class extends On{constructor(e){super(),this.componentFactoryResolver=new Ls(this),this.instance=null;let i=new Fr([...e.providers,{provide:On,useValue:this},{provide:da,useValue:this.componentFactoryResolver}],e.parent||bu(),e.debugName,new Set(["environment"]));this.injector=i,e.runEnvironmentInitializers&&i.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function fa(t,e,i=null){return new js({providers:t,parent:e,debugName:i,runEnvironmentInitializers:!0}).injector}var gi=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new oe(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Pg(t){return zu(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function IS(t,e){if(Array.isArray(t))for(let i=0;i<t.length;i++)e(t[i]);else{let i=t[Symbol.iterator](),n;for(;!(n=i.next()).done;)e(n.value)}}function zu(t){return t!==null&&(typeof t=="function"||typeof t=="object")}function Gu(t,e,i){return t[e]=i}function wS(t,e){return t[e]}function un(t,e,i){let n=t[e];return Object.is(n,i)?!1:(t[e]=i,!0)}function qu(t,e,i,n){let r=un(t,e,i);return un(t,e+1,n)||r}function xS(t,e,i,n,r){let o=qu(t,e,i,n);return un(t,e+2,r)||o}function DS(t,e,i,n,r,o,s,a,l){let c=e.consts,h=Ki(e,t,4,s||null,Hi(c,a));Nu(e,i,h,Hi(c,l)),na(e,h);let m=h.tView=Au(2,h,n,r,o,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c,null);return e.queries!==null&&(e.queries.template(e,h),m.queries=e.queries.embeddedTView(h)),h}function w(t,e,i,n,r,o,s,a){let l=q(),c=Me(),h=t+Fe,m=c.firstCreatePass?DS(h,c,l,e,i,n,r,o,s):c.data[h];fi(m,!1);let v=Og(c,l,m,t);Ys()&&oa(c,l,v,m),Pn(v,l);let C=rg(v,l,v,m);return l[h]=C,la(l,C),nS(C,m,l),zs(m)&&Pu(c,l,m),s!=null&&Ou(l,m,a),w}var Og=Ag;function Ag(t,e,i,n){return Nn(!0),e[ye].createComment("")}function ES(t,e,i,n){let r=e[Rt],o=!r||Yi()||Xs(r,n);if(Nn(o),o)return Ag(t,e,i,n);let s=r.data[eb]?.[n]??null;s!==null&&i.tView!==null&&i.tView.ssrId===null&&(i.tView.ssrId=s);let a=ca(r,t,e,i);Js(r,n,a);let l=yu(r,n);return ua(l,a)}function MS(){Og=ES}function Wt(t,e,i,n){let r=q(),o=Gs();if(un(r,o,e)){let s=Me(),a=qs();n1(a,r,t,e,i,n)}return Wt}function kg(t,e,i,n){return un(t,Gs(),i)?e+Nt(i)+n:lt}function TS(t,e,i,n,r,o){let s=Ih(),a=qu(t,s,i,r);return su(2),a?e+Nt(i)+n+Nt(r)+o:lt}function PS(t,e,i,n,r,o,s,a){let l=Ih(),c=xS(t,l,i,r,s);return su(3),c?e+Nt(i)+n+Nt(r)+o+Nt(s)+a:lt}function fs(t,e){return t<<17|e<<2}function pi(t){return t>>17&32767}function OS(t){return(t&2)==2}function AS(t,e){return t&131071|e<<17}function Uc(t){return t|2}function Gi(t){return(t&131068)>>2}function $l(t,e){return t&-131069|e<<2}function kS(t){return(t&1)===1}function $c(t){return t|1}function NS(t,e,i,n,r,o){let s=o?e.classBindings:e.styleBindings,a=pi(s),l=Gi(s);t[n]=i;let c=!1,h;if(Array.isArray(i)){let m=i;h=m[1],(h===null||Hr(m,h)>0)&&(c=!0)}else h=i;if(r)if(l!==0){let v=pi(t[a+1]);t[n+1]=fs(v,a),v!==0&&(t[v+1]=$l(t[v+1],n)),t[a+1]=AS(t[a+1],n)}else t[n+1]=fs(a,0),a!==0&&(t[a+1]=$l(t[a+1],n)),a=n;else t[n+1]=fs(l,0),a===0?a=n:t[l+1]=$l(t[l+1],n),l=n;c&&(t[n+1]=Uc(t[n+1])),Gf(t,h,n,!0),Gf(t,h,n,!1),FS(e,h,t,n,o),s=fs(a,l),o?e.classBindings=s:e.styleBindings=s}function FS(t,e,i,n,r){let o=r?t.residualClasses:t.residualStyles;o!=null&&typeof e=="string"&&Hr(o,e)>=0&&(i[n+1]=$c(i[n+1]))}function Gf(t,e,i,n){let r=t[i+1],o=e===null,s=n?pi(r):Gi(r),a=!1;for(;s!==0&&(a===!1||o);){let l=t[s],c=t[s+1];RS(l,e)&&(a=!0,t[s+1]=n?$c(c):Uc(c)),s=n?pi(c):Gi(c)}a&&(t[i+1]=n?Uc(r):$c(r))}function RS(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?Hr(t,e)>=0:!1}function f(t,e,i){let n=q(),r=Gs();if(un(n,r,e)){let o=Me(),s=qs();ku(o,s,n,t,e,n[ye],i,!1)}return f}function qf(t,e,i,n,r){let o=e.inputs,s=r?"class":"style";Fu(t,i,o[s],s,n)}function qr(t,e,i){return Ng(t,e,i,!1),qr}function ha(t,e){return Ng(t,e,null,!0),ha}function Ng(t,e,i,n){let r=q(),o=Me(),s=su(2);if(o.firstUpdatePass&&VS(o,t,s,n),e!==lt&&un(r,s,e)){let a=o.data[kn()];HS(o,a,r,r[ye],t,r[s+1]=WS(e,i),n,s)}}function LS(t,e){return e>=t.expandoStartIndex}function VS(t,e,i,n){let r=t.data;if(r[i+1]===null){let o=r[kn()],s=LS(t,i);zS(o,n)&&e===null&&!s&&(e=!1),e=jS(r,o,e,n),NS(r,o,e,i,s,n)}}function jS(t,e,i,n){let r=_C(t),o=n?e.residualClasses:e.residualStyles;if(r===null)(n?e.classBindings:e.styleBindings)===0&&(i=Hl(null,t,e,i,n),i=Vr(i,e.attrs,n),o=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==r)if(i=Hl(r,t,e,i,n),o===null){let l=BS(t,e,n);l!==void 0&&Array.isArray(l)&&(l=Hl(null,t,e,l[1],n),l=Vr(l,e.attrs,n),US(t,e,n,l))}else o=$S(t,e,n)}return o!==void 0&&(n?e.residualClasses=o:e.residualStyles=o),i}function BS(t,e,i){let n=i?e.classBindings:e.styleBindings;if(Gi(n)!==0)return t[pi(n)]}function US(t,e,i,n){let r=i?e.classBindings:e.styleBindings;t[pi(r)]=n}function $S(t,e,i){let n,r=e.directiveEnd;for(let o=1+e.directiveStylingLast;o<r;o++){let s=t[o].hostAttrs;n=Vr(n,s,i)}return Vr(n,e.attrs,i)}function Hl(t,e,i,n,r){let o=null,s=i.directiveEnd,a=i.directiveStylingLast;for(a===-1?a=i.directiveStart:a++;a<s&&(o=e[a],n=Vr(n,o.hostAttrs,r),o!==t);)a++;return t!==null&&(i.directiveStylingLast=a),n}function Vr(t,e,i){let n=i?1:2,r=-1;if(e!==null)for(let o=0;o<e.length;o++){let s=e[o];typeof s=="number"?r=s:r===n&&(Array.isArray(t)||(t=t===void 0?[]:["",t]),PC(t,s,i?!0:e[++o]))}return t===void 0?null:t}function HS(t,e,i,n,r,o,s,a){if(!(e.type&3))return;let l=t.data,c=l[a+1],h=kS(c)?Yf(l,e,i,r,Gi(c),s):void 0;if(!Bs(h)){Bs(o)||OS(c)&&(o=Yf(l,null,i,r,a,s));let m=vh(kn(),i);A_(n,s,m,r,o)}}function Yf(t,e,i,n,r,o){let s=e===null,a;for(;r>0;){let l=t[r],c=Array.isArray(l),h=c?l[1]:l,m=h===null,v=i[r+1];v===lt&&(v=m?nt:void 0);let C=m?Al(v,n):h===n?v:void 0;if(c&&!Bs(C)&&(C=Al(l,n)),Bs(C)&&(a=C,s))return a;let I=t[r+1];r=s?pi(I):Gi(I)}if(e!==null){let l=o?e.residualClasses:e.residualStyles;l!=null&&(a=Al(l,n))}return a}function Bs(t){return t!==void 0}function WS(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=Ye(mt(t)))),t}function zS(t,e){return(t.flags&(e?8:16))!==0}function GS(t,e,i,n,r,o){let s=e.consts,a=Hi(s,r),l=Ki(e,t,2,n,a);return Nu(e,i,l,Hi(s,o)),l.attrs!==null&&Rs(l,l.attrs,!1),l.mergedAttrs!==null&&Rs(l,l.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,l),l}function d(t,e,i,n){let r=q(),o=Me(),s=Fe+t,a=r[ye],l=o.firstCreatePass?GS(s,o,r,e,i,n):o.data[s],c=Fg(o,r,l,a,e,t);r[s]=c;let h=zs(l);return fi(l,!0),Ym(a,c,l),(l.flags&32)!==32&&Ys()&&oa(o,r,c,l),cC()===0&&Pn(c,r),uC(),h&&(Pu(o,r,l),Tu(o,l,r)),n!==null&&Ou(r,l),d}function p(){let t=He();ru()?ou():(t=t.parent,fi(t,!1));let e=t;pC(e)&&hC(),dC();let i=Me();return i.firstCreatePass&&(na(i,t),eu(t)&&i.queries.elementEnd(t)),e.classesWithoutHost!=null&&Ab(e)&&qf(i,e,q(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&kb(e)&&qf(i,e,q(),e.stylesWithoutHost,!1),p}function S(t,e,i,n){return d(t,e,i,n),p(),S}var Fg=(t,e,i,n,r,o)=>(Nn(!0),Du(n,r,Ph()));function qS(t,e,i,n,r,o){let s=e[Rt],a=!s||Yi()||Xs(s,o);if(Nn(a),a)return Du(n,r,Ph());let l=ca(s,t,e,i);return Zh(s,o)&&Js(s,o,l.nextSibling),s&&(kh(i)||Nh(l))&&Ur(i)&&(fC(i),zm(l)),l}function YS(){Fg=qS}function ZS(t,e,i,n,r){let o=e.consts,s=Hi(o,n),a=Ki(e,t,8,"ng-container",s);s!==null&&Rs(a,s,!0);let l=Hi(o,r);return Nu(e,i,a,l),e.queries!==null&&e.queries.elementStart(e,a),a}function KS(t,e,i){let n=q(),r=Me(),o=t+Fe,s=r.firstCreatePass?ZS(o,r,n,e,i):r.data[o];fi(s,!0);let a=Rg(r,n,s,t);return n[o]=a,Ys()&&oa(r,n,a,s),Pn(a,n),zs(s)&&(Pu(r,n,s),Tu(r,s,n)),i!=null&&Ou(n,s),KS}function QS(){let t=He(),e=Me();return ru()?ou():(t=t.parent,fi(t,!1)),e.firstCreatePass&&(na(e,t),eu(t)&&e.queries.elementEnd(t)),QS}var Rg=(t,e,i,n)=>(Nn(!0),Rm(e[ye],""));function JS(t,e,i,n){let r,o=e[Rt],s=!o||Yi();if(Nn(s),s)return Rm(e[ye],"");let a=ca(o,t,e,i),l=db(o,n);return Js(o,n,a),r=ua(l,a),r}function XS(){Rg=JS}function X(){return q()}var Us="en-US";var eI=Us;function tI(t){typeof t=="string"&&(eI=t.toLowerCase().replace(/_/g,"-"))}function N(t,e,i,n){let r=q(),o=Me(),s=He();return Lg(o,r,r[ye],s,t,e,n),N}function nI(t,e,i,n){let r=t.cleanup;if(r!=null)for(let o=0;o<r.length-1;o+=2){let s=r[o];if(s===i&&r[o+1]===n){let a=e[Tr],l=r[o+2];return a.length>l?a[l]:null}typeof s=="string"&&(o+=2)}return null}function Lg(t,e,i,n,r,o,s){let a=zs(n),c=t.firstCreatePass&&ag(t),h=e[Dt],m=sg(e),v=!0;if(n.type&3||s){let k=st(n,e),L=s?s(k):k,O=m.length,fe=s?ce=>s(Et(ce[n.index])):n.index,we=null;if(!s&&a&&(we=nI(t,e,r,n.index)),we!==null){let ce=we.__ngLastListenerFn__||we;ce.__ngNextListenerFn__=o,we.__ngLastListenerFn__=o,v=!1}else{o=Kf(n,e,h,o,!1);let ce=i.listen(L,r,o);m.push(o,ce),c&&c.push(r,fe,O,O+1)}}else o=Kf(n,e,h,o,!1);let C=n.outputs,I;if(v&&C!==null&&(I=C[r])){let k=I.length;if(k)for(let L=0;L<k;L+=2){let O=I[L],fe=I[L+1],Ge=e[O][fe].subscribe(o),xe=m.length;if(m.push(o,Ge),c){let Ke=typeof Ge=="function"?xe+1:-(xe+1);c.push(r,n.index,xe,Ke)}}}}function Zf(t,e,i,n){let r=re(null);try{return At(6,e,i),i(n)!==!1}catch(o){return lg(t,o),!1}finally{At(7,e,i),re(r)}}function Kf(t,e,i,n,r){return function o(s){if(s===Function)return n;let a=t.componentOffset>-1?An(t.index,e):e;Vu(a);let l=Zf(e,i,n,s),c=o.__ngNextListenerFn__;for(;c;)l=Zf(e,i,c,s)&&l,c=c.__ngNextListenerFn__;return r&&l===!1&&s.preventDefault(),l}}function y(t=1){return IC(t)}function iI(t,e){let i=null,n=Wy(t);for(let r=0;r<e.length;r++){let o=e[r];if(o==="*"){i=r;continue}if(n===null?ah(t,o,!0):qy(n,o))return r}return i}function bF(t){let e=q()[rt][ot];if(!e.projection){let i=t?t.length:1,n=e.projection=MC(i,null),r=n.slice(),o=e.child;for(;o!==null;){let s=t?iI(o,t):0;s!==null&&(r[s]?r[s].projectionNext=o:n[s]=o,r[s]=o),o=o.next}}}function _F(t,e=0,i){let n=q(),r=Me(),o=Ki(r,Fe+t,16,null,i||null);o.projection===null&&(o.projection=e),ou(),(!n[Rt]||Yi())&&(o.flags&32)!==32&&P_(r,n,o)}function Yu(t,e,i){return Se(t,"",e,"",i),Yu}function Se(t,e,i,n,r){let o=q(),s=kg(o,e,i,n);if(s!==lt){let a=Me(),l=qs();ku(a,l,o,t,s,o[ye],r,!1)}return Se}function Vg(t,e,i,n){pS(t,e,i,n)}function Qi(t,e,i){dS(t,e,i)}function Ln(t){let e=q(),i=Me(),n=wh();au(n+1);let r=Wu(i,n);if(t.dirty&&rC(e)===((r.metadata.flags&2)===2)){if(r.matches===null)t.reset([]);else{let o=mS(e,n);t.reset(o,xC),t.notifyOnChanges()}return!0}return!1}function Vn(){return uS(q(),wh())}function rI(t,e,i,n){i>=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),e[i]=n}function Y(t){let e=gC();return tu(e,Fe+t)}function g(t,e=""){let i=q(),n=Me(),r=t+Fe,o=n.firstCreatePass?Ki(n,r,1,e,null):n.data[r],s=jg(n,i,o,e,t);i[r]=s,Ys()&&oa(n,i,s,o),fi(o,!1)}var jg=(t,e,i,n,r)=>(Nn(!0),Fm(e[ye],n));function oI(t,e,i,n,r){let o=e[Rt],s=!o||Yi()||Xs(o,r);return Nn(s),s?Fm(e[ye],n):ca(o,t,e,i)}function sI(){jg=oI}function P(t){return Ve("",t,""),P}function Ve(t,e,i){let n=q(),r=kg(n,t,e,i);return r!==lt&&Ru(n,kn(),r),Ve}function ma(t,e,i,n,r){let o=q(),s=TS(o,t,e,i,n,r);return s!==lt&&Ru(o,kn(),s),ma}function Zu(t,e,i,n,r,o,s){let a=q(),l=PS(a,t,e,i,n,r,o,s);return l!==lt&&Ru(a,kn(),l),Zu}function U(t,e,i){Tg(e)&&(e=e());let n=q(),r=Gs();if(un(n,r,e)){let o=Me(),s=qs();ku(o,s,n,t,e,n[ye],i,!1)}return U}function H(t,e){let i=Tg(t);return i&&t.set(e),i}function $(t,e){let i=q(),n=Me(),r=He();return Lg(n,i,i[ye],r,t,e),$}function aI(t,e,i){let n=Me();if(n.firstCreatePass){let r=Tn(t);Hc(i,n.data,n.blueprint,r,!0),Hc(e,n.data,n.blueprint,r,!1)}}function Hc(t,e,i,n,r){if(t=qe(t),Array.isArray(t))for(let o=0;o<t.length;o++)Hc(t[o],e,i,n,r);else{let o=Me(),s=q(),a=He(),l=Wi(t)?t:qe(t.provide),c=nm(t),h=a.providerIndexes&1048575,m=a.directiveStart,v=a.providerIndexes>>20;if(Wi(t)||!t.multi){let C=new li(c,r,_),I=zl(l,e,r?h:h+v,m);I===-1?(uc(Os(a,s),o,l),Wl(o,t,e.length),e.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),i.push(C),s.push(C)):(i[I]=C,s[I]=C)}else{let C=zl(l,e,h+v,m),I=zl(l,e,h,h+v),k=C>=0&&i[C],L=I>=0&&i[I];if(r&&!L||!r&&!k){uc(Os(a,s),o,l);let O=uI(r?cI:lI,i.length,r,n,c);!r&&L&&(i[I].providerFactory=O),Wl(o,t,e.length,0),e.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),i.push(O),s.push(O)}else{let O=Bg(i[r?I:C],c,!r&&n);Wl(o,t,C>-1?C:I,O)}!r&&n&&L&&i[I].componentProviders++}}}function Wl(t,e,i,n){let r=Wi(e),o=vb(e);if(r||o){let l=(o?qe(e.useClass):e).prototype.ngOnDestroy;if(l){let c=t.destroyHooks||(t.destroyHooks=[]);if(!r&&e.multi){let h=c.indexOf(i);h===-1?c.push(i,[n,l]):c[h+1].push(n,l)}else c.push(i,l)}}}function Bg(t,e,i){return i&&t.componentProviders++,t.multi.push(e)-1}function zl(t,e,i,n){for(let r=i;r<n;r++)if(e[r]===t)return r;return-1}function lI(t,e,i,n){return Wc(this.multi,[])}function cI(t,e,i,n){let r=this.multi,o;if(this.providerFactory){let s=this.providerFactory.componentProviders,a=ci(i,i[z],this.providerFactory.index,n);o=a.slice(0,s),Wc(r,o);for(let l=s;l<a.length;l++)o.push(a[l])}else o=[],Wc(r,o);return o}function Wc(t,e){for(let i=0;i<t.length;i++){let n=t[i];e.push(n())}return e}function uI(t,e,i,n,r){let o=new li(t,i,_);return o.multi=[],o.index=e,o.componentProviders=0,Bg(o,r,n&&!i),o}function gt(t,e=[]){return i=>{i.providersResolver=(n,r)=>aI(n,r?r(t):t,e)}}var dI=(()=>{let e=class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=Xh(!1,n.type),o=r.length>0?fa([r],this._injector,`Standalone[${n.type.name}]`):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()}}};e.\u0275prov=x({token:e,providedIn:"environment",factory:()=>new e(D(Ze))});let t=e;return t})();function ae(t){mi("NgStandalone"),t.getStandaloneInjector=e=>e.get(dI).getOrCreateStandaloneInjector(t)}function fn(t,e,i){let n=$r()+t,r=q();return r[n]===lt?Gu(r,n,i?e.call(i):e()):wS(r,n)}function Z(t,e,i,n){return $g(q(),$r(),t,e,i,n)}function vi(t,e,i,n,r){return Hg(q(),$r(),t,e,i,n,r)}function Ug(t,e){let i=t[e];return i===lt?void 0:i}function $g(t,e,i,n,r,o){let s=e+i;return un(t,s,r)?Gu(t,s+1,o?n.call(o,r):n(r)):Ug(t,s+1)}function Hg(t,e,i,n,r,o,s){let a=e+i;return qu(t,a,r,o)?Gu(t,a+2,s?n.call(s,r,o):n(r,o)):Ug(t,a+2)}function R(t,e){let i=Me(),n,r=t+Fe;i.firstCreatePass?(n=pI(e,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks??=[]).push(r,n.onDestroy)):n=i.data[r];let o=n.factory||(n.factory=si(n.type,!0)),s,a=Je(_);try{let l=Ps(!1),c=o();return Ps(l),rI(i,q(),r,c),c}finally{Je(a)}}function pI(t,e){if(e)for(let i=e.length-1;i>=0;i--){let n=e[i];if(t===n.name)return n}}function ie(t,e,i){let n=t+Fe,r=q(),o=tu(r,n);return Wg(r,n)?$g(r,$r(),e,o.transform,i,o):o.transform(i)}function Ie(t,e,i,n){let r=t+Fe,o=q(),s=tu(o,r);return Wg(o,r)?Hg(o,$r(),e,s.transform,i,n,s):s.transform(i,n)}function Wg(t,e){return t[z].data[e].pure}var ga=(()=>{let e=class e{log(n){console.log(n)}warn(n){console.warn(n)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();var zg=new F("");function jn(t){return!!t&&typeof t.then=="function"}function Ku(t){return!!t&&typeof t.subscribe=="function"}var va=new F(""),Gg=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=b(va,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let s=o();if(jn(s))n.push(s);else if(Ku(s)){let a=new Promise((l,c)=>{s.subscribe({complete:l,error:c})});n.push(a)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),yi=new F("");function fI(){df(()=>{throw new A(600,!1)})}function hI(t){return t.isBoundToModule}function mI(t,e,i){try{let n=i();return jn(n)?n.catch(r=>{throw e.runOutsideAngular(()=>t.handleError(r)),r}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}var Bn=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=b(ym),this.afterRenderEffectManager=b($u),this.componentTypes=[],this.components=[],this.isStable=b(gi).hasPendingTasks.pipe(j(n=>!n)),this._injector=b(Ze)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){let o=n instanceof Fs;if(!this._injector.get(Gg).done){let C=!o&&uh(n),I=!1;throw new A(405,I)}let a;o?a=n:a=this._injector.get(da).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let l=hI(a)?void 0:this._injector.get(On),c=r||a.selector,h=a.create(Mt.NULL,[],c,l),m=h.location.nativeElement,v=h.injector.get(zg,null);return v?.registerApplication(m),h.onDestroy(()=>{this.detachView(h.hostView),Gl(this.components,h),v?.unregisterApplication(m)}),this._loadComponent(h),h}tick(){if(this._runningTick)throw new A(101,!1);let n=re(null);try{this._runningTick=!0,this.detectChangesInAttachedViews()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,re(n)}}detectChangesInAttachedViews(){let n=0,r=this.afterRenderEffectManager;for(;;){if(n===fg)throw new A(103,!1);let o=n===0;for(let{_lView:s,notifyErrorHandler:a}of this._views)!o&&!ql(s)||this.detectChangesInView(s,a,o);if(n++,r.executeInternalCallbacks(),!this._views.some(({_lView:s})=>ql(s))&&(r.execute(),!this._views.some(({_lView:s})=>ql(s))))break}}detectChangesInView(n,r,o){let s;o?(s=0,n[B]|=1024):n[B]&64?s=0:s=1,hg(n,r,s)}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;Gl(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let r=this._injector.get(yi,[]);[...this._bootstrapListeners,...r].forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Gl(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new A(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Gl(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}var hs;function Qu(t){hs??=new WeakMap;let e=hs.get(t);if(e)return e;let i=t.isStable.pipe(It(n=>n)).toPromise().then(()=>{});return hs.set(t,i),t.onDestroy(()=>hs?.delete(t)),i}function ql(t){return iu(t)}var zc=class{constructor(e,i){this.ngModuleFactory=e,this.componentFactories=i}},ya=(()=>{let e=class e{compileModuleSync(n){return new Bc(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=dh(n),s=Nm(o.declarations).reduce((a,l)=>{let c=Mn(l);return c&&a.push(new zi(c)),a},[]);return new zc(r,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var gI=(()=>{let e=class e{constructor(){this.zone=b(de),this.applicationRef=b(Bn)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function vI(t){return[{provide:de,useFactory:t},{provide:ai,multi:!0,useFactory:()=>{let e=b(gI,{optional:!0});return()=>e.initialize()}},{provide:ai,multi:!0,useFactory:()=>{let e=b(_I);return()=>{e.initialize()}}},{provide:ym,useFactory:yI}]}function yI(){let t=b(de),e=b(Lt);return i=>t.runOutsideAngular(()=>e.handleError(i))}function CI(t){let e=vI(()=>new de(bI(t)));return Fn([[],e])}function bI(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var _I=(()=>{let e=class e{constructor(){this.subscription=new Ee,this.initialized=!1,this.zone=b(de),this.pendingTasks=b(gi)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{de.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{de.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function SI(){return typeof $localize<"u"&&$localize.locale||Us}var Ju=new F("",{providedIn:"root",factory:()=>b(Ju,J.Optional|J.SkipSelf)||SI()});var qg=new F("");var bs=null;function II(t=[],e){return Mt.create({name:e,providers:[{provide:ta,useValue:"platform"},{provide:qg,useValue:new Set([()=>bs=null])},...t]})}function wI(t=[]){if(bs)return bs;let e=II(t);return bs=e,fI(),xI(e),e}function xI(t){t.get(du,null)?.forEach(i=>i())}var zt=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=DI;let t=e;return t})();function DI(t){return EI(He(),q(),(t&16)===16)}function EI(t,e,i){if(Ur(t)&&!i){let n=An(t.index,e);return new ui(n,n)}else if(t.type&47){let n=e[rt];return new ui(n,e)}return null}var Gc=class{constructor(){}supports(e){return Pg(e)}create(e){return new qc(e)}},MI=(t,e)=>e,qc=class{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||MI}forEachItem(e){let i;for(i=this._itHead;i!==null;i=i._next)e(i)}forEachOperation(e){let i=this._itHead,n=this._removalsHead,r=0,o=null;for(;i||n;){let s=!n||i&&i.currentIndex<Qf(n,r,o)?i:n,a=Qf(s,r,o),l=s.currentIndex;if(s===n)r--,n=n._nextRemoved;else if(i=i._next,s.previousIndex==null)r++;else{o||(o=[]);let c=a-r,h=l-r;if(c!=h){for(let v=0;v<c;v++){let C=v<o.length?o[v]:o[v]=0,I=C+v;h<=I&&I<c&&(o[v]=C+1)}let m=s.previousIndex;o[m]=h-c}}a!==l&&e(s,a,l)}}forEachPreviousItem(e){let i;for(i=this._previousItHead;i!==null;i=i._nextPrevious)e(i)}forEachAddedItem(e){let i;for(i=this._additionsHead;i!==null;i=i._nextAdded)e(i)}forEachMovedItem(e){let i;for(i=this._movesHead;i!==null;i=i._nextMoved)e(i)}forEachRemovedItem(e){let i;for(i=this._removalsHead;i!==null;i=i._nextRemoved)e(i)}forEachIdentityChange(e){let i;for(i=this._identityChangesHead;i!==null;i=i._nextIdentityChange)e(i)}diff(e){if(e==null&&(e=[]),!Pg(e))throw new A(900,!1);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let i=this._itHead,n=!1,r,o,s;if(Array.isArray(e)){this.length=e.length;for(let a=0;a<this.length;a++)o=e[a],s=this._trackByFn(a,o),i===null||!Object.is(i.trackById,s)?(i=this._mismatch(i,o,s,a),n=!0):(n&&(i=this._verifyReinsertion(i,o,s,a)),Object.is(i.item,o)||this._addIdentityChange(i,o)),i=i._next}else r=0,IS(e,a=>{s=this._trackByFn(r,a),i===null||!Object.is(i.trackById,s)?(i=this._mismatch(i,a,s,r),n=!0):(n&&(i=this._verifyReinsertion(i,a,s,r)),Object.is(i.item,a)||this._addIdentityChange(i,a)),i=i._next,r++}),this.length=r;return this._truncate(i),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,i,n,r){let o;return e===null?o=this._itTail:(o=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),e!==null?(Object.is(e.item,i)||this._addIdentityChange(e,i),this._reinsertAfter(e,o,r)):(e=this._linkedRecords===null?null:this._linkedRecords.get(n,r),e!==null?(Object.is(e.item,i)||this._addIdentityChange(e,i),this._moveAfter(e,o,r)):e=this._addAfter(new Yc(i,n),o,r)),e}_verifyReinsertion(e,i,n,r){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return o!==null?e=this._reinsertAfter(o,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;e!==null;){let i=e._next;this._addToRemovals(this._unlink(e)),e=i}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,i,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let r=e._prevRemoved,o=e._nextRemoved;return r===null?this._removalsHead=o:r._nextRemoved=o,o===null?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(e,i,n),this._addToMoves(e,n),e}_moveAfter(e,i,n){return this._unlink(e),this._insertAfter(e,i,n),this._addToMoves(e,n),e}_addAfter(e,i,n){return this._insertAfter(e,i,n),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,i,n){let r=i===null?this._itHead:i._next;return e._next=r,e._prev=i,r===null?this._itTail=e:r._prev=e,i===null?this._itHead=e:i._next=e,this._linkedRecords===null&&(this._linkedRecords=new $s),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let i=e._prev,n=e._next;return i===null?this._itHead=n:i._next=n,n===null?this._itTail=i:n._prev=i,e}_addToMoves(e,i){return e.previousIndex===i||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new $s),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,i){return e.item=i,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},Yc=class{constructor(e,i){this.item=e,this.trackById=i,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},Zc=class{constructor(){this._head=null,this._tail=null}add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,i){let n;for(n=this._head;n!==null;n=n._nextDup)if((i===null||i<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){let i=e._prevDup,n=e._nextDup;return i===null?this._head=n:i._nextDup=n,n===null?this._tail=i:n._prevDup=i,this._head===null}},$s=class{constructor(){this.map=new Map}put(e){let i=e.trackById,n=this.map.get(i);n||(n=new Zc,this.map.set(i,n)),n.add(e)}get(e,i){let n=e,r=this.map.get(n);return r?r.get(e,i):null}remove(e){let i=e.trackById;return this.map.get(i).remove(e)&&this.map.delete(i),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Qf(t,e,i){let n=t.previousIndex;if(n===null)return n;let r=0;return i&&n<i.length&&(r=i[n]),n+e+r}var Kc=class{constructor(){}supports(e){return e instanceof Map||zu(e)}create(){return new Qc}},Qc=class{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return this._additionsHead!==null||this._changesHead!==null||this._removalsHead!==null}forEachItem(e){let i;for(i=this._mapHead;i!==null;i=i._next)e(i)}forEachPreviousItem(e){let i;for(i=this._previousMapHead;i!==null;i=i._nextPrevious)e(i)}forEachChangedItem(e){let i;for(i=this._changesHead;i!==null;i=i._nextChanged)e(i)}forEachAddedItem(e){let i;for(i=this._additionsHead;i!==null;i=i._nextAdded)e(i)}forEachRemovedItem(e){let i;for(i=this._removalsHead;i!==null;i=i._nextRemoved)e(i)}diff(e){if(!e)e=new Map;else if(!(e instanceof Map||zu(e)))throw new A(900,!1);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let i=this._mapHead;if(this._appendAfter=null,this._forEach(e,(n,r)=>{if(i&&i.key===r)this._maybeAddToChanges(i,n),this._appendAfter=i,i=i._next;else{let o=this._getOrCreateRecordForKey(r,n);i=this._insertBeforeOrAppend(i,o)}}),i){i._prev&&(i._prev._next=null),this._removalsHead=i;for(let n=i;n!==null;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,i){if(e){let n=e._prev;return i._next=e,i._prev=n,e._prev=i,n&&(n._next=i),e===this._mapHead&&(this._mapHead=i),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=i,i._prev=this._appendAfter):this._mapHead=i,this._appendAfter=i,null}_getOrCreateRecordForKey(e,i){if(this._records.has(e)){let r=this._records.get(e);this._maybeAddToChanges(r,i);let o=r._prev,s=r._next;return o&&(o._next=s),s&&(s._prev=o),r._next=null,r._prev=null,r}let n=new Jc(e);return this._records.set(e,n),n.currentValue=i,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;e!==null;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;e!=null;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,i){Object.is(i,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=i,this._addToChanges(e))}_addToAdditions(e){this._additionsHead===null?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){this._changesHead===null?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,i){e instanceof Map?e.forEach(i):Object.keys(e).forEach(n=>i(e[n],n))}},Jc=class{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}};function Jf(){return new Xu([new Gc])}var Xu=(()=>{let e=class e{constructor(n){this.factories=n}static create(n,r){if(r!=null){let o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Jf()),deps:[[e,new ea,new zr]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new A(901,!1)}};e.\u0275prov=x({token:e,providedIn:"root",factory:Jf});let t=e;return t})();function Xf(){return new ed([new Kc])}var ed=(()=>{let e=class e{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:r=>e.create(n,r||Xf()),deps:[[e,new ea,new zr]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r)return r;throw new A(901,!1)}};e.\u0275prov=x({token:e,providedIn:"root",factory:Xf});let t=e;return t})();function Yg(t){try{let{rootComponent:e,appProviders:i,platformProviders:n}=t,r=wI(n),o=[CI(),...i||[]],a=new js({providers:o,parent:r,debugName:"",runEnvironmentInitializers:!1}).injector,l=a.get(de);return l.run(()=>{a.resolveInjectorInitializers();let c=a.get(Lt,null),h;l.runOutsideAngular(()=>{h=l.onError.subscribe({next:C=>{c.handleError(C)}})});let m=()=>a.destroy(),v=r.get(qg);return v.add(m),a.onDestroy(()=>{h.unsubscribe(),v.delete(m)}),mI(c,l,()=>{let C=a.get(Gg);return C.runInitializers(),C.donePromise.then(()=>{let I=a.get(Ju,Us);tI(I||Us);let k=a.get(Bn);return e!==void 0&&k.bootstrap(e),k})})})}catch(e){return Promise.reject(e)}}var eh=!1;function TI(){eh||(eh=!0,ab(),YS(),sI(),XS(),MS(),oS(),k1(),B_())}function PI(t,e){return Qu(t)}function Zg(){return Fn([{provide:ls,useFactory:()=>{let t=!0;return Dr()&&(t=!!b(hi,{optional:!0})?.get(qh,null)),t&&mi("NgHydration"),t}},{provide:ai,useValue:()=>{Dr()&&b(ls)&&(OI(),TI())},multi:!0},{provide:bm,useFactory:()=>Dr()&&b(ls)},{provide:yi,useFactory:()=>{if(Dr()&&b(ls)){let t=b(Bn),e=b(Mt);return()=>{PI(t,e).then(()=>{de.assertInAngularZone(),x1(t)})}}return()=>{}},multi:!0}])}function OI(){let t=Wr(),e;for(let i of t.body.childNodes)if(i.nodeType===Node.COMMENT_NODE&&i.textContent?.trim()===ob){e=i;break}if(!e)throw new A(-507,!1)}function vt(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function td(t,e=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):e}function nd(t){let e=re(null);try{return t()}finally{re(e)}}function Kg(t){let e=Mn(t);if(!e)return null;let i=new zi(e);return{get selector(){return i.selector},get type(){return i.componentType},get inputs(){return i.inputs},get outputs(){return i.outputs},get ngContentSelectors(){return i.ngContentSelectors},get isStandalone(){return e.standalone},get isSignal(){return e.signals}}}var n0=null;function Gt(){return n0}function i0(t){n0??=t}var Ca=class{};var Ae=new F(""),dd=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=x({token:e,factory:()=>b(AI),providedIn:"platform"});let t=e;return t})(),r0=new F(""),AI=(()=>{let e=class e extends dd{constructor(){super(),this._doc=b(Ae),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Gt().getBaseHref(this._doc)}onPopState(n){let r=Gt().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=Gt().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>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}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=x({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();function pd(t,e){if(t.length==0)return e;if(e.length==0)return t;let i=0;return t.endsWith("/")&&i++,e.startsWith("/")&&i++,i==2?t+e.substring(1):i==1?t+e:t+"/"+e}function Qg(t){let e=t.match(/#|\?|$/),i=e&&e.index||t.length,n=i-(t[i-1]==="/"?1:0);return t.slice(0,n)+t.slice(i)}function hn(t){return t&&t[0]!=="?"?"?"+t:t}var mn=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=x({token:e,factory:()=>b(fd),providedIn:"root"});let t=e;return t})(),o0=new F(""),fd=(()=>{let e=class e extends mn{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??b(Ae).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 pd(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+hn(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,s){let a=this.prepareExternalUrl(o+hn(s));this._platformLocation.pushState(n,r,a)}replaceState(n,r,o,s){let a=this.prepareExternalUrl(o+hn(s));this._platformLocation.replaceState(n,r,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(r){return new(r||e)(D(dd),D(o0,8))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),s0=(()=>{let e=class e extends mn{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],r!=null&&(this._baseHref=r)}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}path(n=!1){let r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(n){let r=pd(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,s){let a=this.prepareExternalUrl(o+hn(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.pushState(n,r,a)}replaceState(n,r,o,s){let a=this.prepareExternalUrl(o+hn(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(r){return new(r||e)(D(dd),D(o0,8))},e.\u0275prov=x({token:e,factory:e.\u0275fac});let t=e;return t})(),er=(()=>{let e=class e{constructor(n){this._subject=new ve,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=FI(Qg(Jg(r))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+hn(r))}normalize(n){return e.stripTrailingSlash(NI(this._basePath,Jg(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+hn(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+hn(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,complete:o})}};e.normalizeQueryParams=hn,e.joinWithSlash=pd,e.stripTrailingSlash=Qg,e.\u0275fac=function(r){return new(r||e)(D(mn))},e.\u0275prov=x({token:e,factory:()=>kI(),providedIn:"root"});let t=e;return t})();function kI(){return new er(D(mn))}function NI(t,e){if(!t||!e.startsWith(t))return e;let i=e.substring(t.length);return i===""||["/",";","?","#"].includes(i[0])?i:e}function Jg(t){return t.replace(/\/index.html$/,"")}function FI(t){if(new RegExp("^(https?:)?//").test(t)){let[,i]=t.split(/\/\/[^\/]+/);return i}return t}function ba(t,e){e=encodeURIComponent(e);for(let i of t.split(";")){let n=i.indexOf("="),[r,o]=n==-1?[i,""]:[i.slice(0,n),i.slice(n+1)];if(r.trim()===e)return decodeURIComponent(o)}return null}var id=/\s+/,Xg=[],Pt=(()=>{let e=class e{constructor(n,r){this._ngEl=n,this._renderer=r,this.initialClasses=Xg,this.stateMap=new Map}set klass(n){this.initialClasses=n!=null?n.trim().split(id):Xg}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(id):n}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let r of n)this._updateState(r,!0);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=!0,o.enabled=r),o.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let r=n[0],o=n[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),o.touched=!1}}_toggleClass(n,r){n=n.trim(),n.length>0&&n.split(id).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}};e.\u0275fac=function(r){return new(r||e)(_(Oe),_(Be))},e.\u0275dir=ne({type:e,selectors:[["","ngClass",""]],inputs:{klass:[be.None,"class","klass"],ngClass:"ngClass"},standalone:!0});let t=e;return t})();var rd=class{constructor(e,i,n,r){this.$implicit=e,this.ngForOf=i,this.index=n,this.count=r}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},yt=(()=>{let e=class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;if(!this._differ&&n)if(0)try{}catch{}else this._differ=this._differs.find(n).create(this.ngForTrackBy)}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let r=this._viewContainer;n.forEachOperation((o,s,a)=>{if(o.previousIndex==null)r.createEmbeddedView(this._template,new rd(o.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)r.remove(s===null?void 0:s);else if(s!==null){let l=r.get(s);r.move(l,a),e0(l,o)}});for(let o=0,s=r.length;o<s;o++){let l=r.get(o).context;l.index=o,l.count=s,l.ngForOf=this._ngForOf}n.forEachIdentityChange(o=>{let s=r.get(o.currentIndex);e0(s,o)})}static ngTemplateContextGuard(n,r){return!0}};e.\u0275fac=function(r){return new(r||e)(_(Rn),_(di),_(Xu))},e.\u0275dir=ne({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let t=e;return t})();function e0(t,e){t.context.$implicit=e.item}var Te=(()=>{let e=class e{constructor(n,r){this._viewContainer=n,this._context=new od,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){t0("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){t0("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,r){return!0}};e.\u0275fac=function(r){return new(r||e)(_(Rn),_(di))},e.\u0275dir=ne({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),od=class{constructor(){this.$implicit=null,this.ngIf=null}};function t0(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${Ye(e)}'.`)}var Ct=(()=>{let e=class e{constructor(n,r,o){this._ngEl=n,this._differs=r,this._renderer=o,this._ngStyle=null,this._differ=null}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,s]=n.split("."),a=o.indexOf("-")===-1?void 0:Vt.DashCase;r!=null?this._renderer.setStyle(this._ngEl.nativeElement,o,s?`${r}${s}`:r,a):this._renderer.removeStyle(this._ngEl.nativeElement,o,a)}_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))}};e.\u0275fac=function(r){return new(r||e)(_(Oe),_(ed),_(Be))},e.\u0275dir=ne({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0});let t=e;return t})();function RI(t,e){return new A(2100,!1)}var sd=class{createSubscription(e,i){return nd(()=>e.subscribe({next:i,error:n=>{throw n}}))}dispose(e){nd(()=>e.unsubscribe())}},ad=class{createSubscription(e,i){return e.then(i,n=>{throw n})}dispose(e){}},LI=new ad,VI=new sd,Ci=(()=>{let e=class e{constructor(n){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=n}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(n){if(!this._obj){if(n)try{this.markForCheckOnValueUpdate=!1,this._subscribe(n)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,r=>this._updateLatestValue(n,r))}_selectStrategy(n){if(jn(n))return LI;if(Ku(n))return VI;throw RI(e,n)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,r){n===this._obj&&(this._latestValue=r,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}};e.\u0275fac=function(r){return new(r||e)(_(zt,16))},e.\u0275pipe=Bt({name:"async",type:e,pure:!1,standalone:!0});let t=e;return t})();var ke=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=jt({type:e}),e.\u0275inj=$t({});let t=e;return t})(),hd="browser",jI="server";function ct(t){return t===hd}function _a(t){return t===jI}var Yr=(()=>{let e=class e{};e.\u0275prov=x({token:e,providedIn:"root",factory:()=>ct(b(_e))?new ld(b(Ae),window):new cd});let t=e;return t})(),ld=class{constructor(e,i){this.document=e,this.window=i,this.offset=()=>[0,0]}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(e){this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){let i=BI(this.document,e);i&&(this.scrollToElement(i),i.focus())}setHistoryScrollRestoration(e){this.window.history.scrollRestoration=e}scrollToElement(e){let i=e.getBoundingClientRect(),n=i.left+this.window.pageXOffset,r=i.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(n-o[0],r-o[1])}};function BI(t,e){let i=t.getElementById(e)||t.getElementsByName(e)[0];if(i)return i;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),r=n.currentNode;for(;r;){let o=r.shadowRoot;if(o){let s=o.getElementById(e)||o.querySelector(`[name="${e}"]`);if(s)return s}r=n.nextNode()}}return null}var cd=class{setOffset(e){}getScrollPosition(){return[0,0]}scrollToPosition(e){}scrollToAnchor(e){}setHistoryScrollRestoration(e){}},Xi=class{};var a0=t=>t.src,UI=new F("",{providedIn:"root",factory:()=>a0});var $I=new F("NG_OPTIMIZED_PRELOADED_IMAGES",{providedIn:"root",factory:()=>new Set}),HI=(()=>{let e=class e{constructor(){this.preloadedImages=b($I),this.document=b(Ae)}createPreloadLinkTag(n,r,o,s){if(this.preloadedImages.has(r))return;this.preloadedImages.add(r);let a=n.createElement("link");n.setAttribute(a,"as","image"),n.setAttribute(a,"href",r),n.setAttribute(a,"rel","preload"),n.setAttribute(a,"fetchpriority","high"),s&&n.setAttribute(a,"imageSizes",s),o&&n.setAttribute(a,"imageSrcset",o),n.appendChild(this.document.head,a)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var WI=/^((\s*\d+w\s*(,|$)){1,})$/;var zI=[1,2],GI=640;var qI=1920,YI=1080;var tr=(()=>{let e=class e{constructor(){this.imageLoader=b(UI),this.config=ZI(b(hu)),this.renderer=b(Be),this.imgElement=b(Oe).nativeElement,this.injector=b(Mt),this.isServer=_a(b(_e)),this.preloadLinkCreator=b(HI),this.lcpObserver=null,this._renderedSrc=null,this.priority=!1,this.disableOptimizedSrcset=!1,this.fill=!1}ngOnInit(){mi("NgOptimizedImage"),this.placeholder&&this.removePlaceholderOnLoad(this.imgElement),this.setHostAttributes()}setHostAttributes(){this.fill?this.sizes||="100vw":(this.setHostAttribute("width",this.width.toString()),this.setHostAttribute("height",this.height.toString())),this.setHostAttribute("loading",this.getLoadingBehavior()),this.setHostAttribute("fetchpriority",this.getFetchPriority()),this.setHostAttribute("ng-img","true");let n=this.updateSrcAndSrcset();this.sizes&&this.setHostAttribute("sizes",this.sizes),this.isServer&&this.priority&&this.preloadLinkCreator.createPreloadLinkTag(this.renderer,this.getRewrittenSrc(),n,this.sizes)}ngOnChanges(n){if(n.ngSrc&&!n.ngSrc.isFirstChange()){let r=this._renderedSrc;this.updateSrcAndSrcset(!0);let o=this._renderedSrc;this.lcpObserver!==null&&r&&o&&r!==o&&this.injector.get(de).runOutsideAngular(()=>{this.lcpObserver?.updateImage(r,o)})}}callImageLoader(n){let r=n;return this.loaderParams&&(r.loaderParams=this.loaderParams),this.imageLoader(r)}getLoadingBehavior(){return!this.priority&&this.loading!==void 0?this.loading:this.priority?"eager":"lazy"}getFetchPriority(){return this.priority?"high":"auto"}getRewrittenSrc(){if(!this._renderedSrc){let n={src:this.ngSrc};this._renderedSrc=this.callImageLoader(n)}return this._renderedSrc}getRewrittenSrcset(){let n=WI.test(this.ngSrcset);return this.ngSrcset.split(",").filter(o=>o!=="").map(o=>{o=o.trim();let s=n?parseFloat(o):parseFloat(o)*this.width;return`${this.callImageLoader({src:this.ngSrc,width:s})} ${o}`}).join(", ")}getAutomaticSrcset(){return this.sizes?this.getResponsiveSrcset():this.getFixedSrcset()}getResponsiveSrcset(){let{breakpoints:n}=this.config,r=n;return this.sizes?.trim()==="100vw"&&(r=n.filter(s=>s>=GI)),r.map(s=>`${this.callImageLoader({src:this.ngSrc,width:s})} ${s}w`).join(", ")}updateSrcAndSrcset(n=!1){n&&(this._renderedSrc=null);let r=this.getRewrittenSrc();this.setHostAttribute("src",r);let o;return this.ngSrcset?o=this.getRewrittenSrcset():this.shouldGenerateAutomaticSrcset()&&(o=this.getAutomaticSrcset()),o&&this.setHostAttribute("srcset",o),o}getFixedSrcset(){return zI.map(r=>`${this.callImageLoader({src:this.ngSrc,width:this.width*r})} ${r}x`).join(", ")}shouldGenerateAutomaticSrcset(){let n=!1;return this.sizes||(n=this.width>qI||this.height>YI),!this.disableOptimizedSrcset&&!this.srcset&&this.imageLoader!==a0&&!n}generatePlaceholder(n){let{placeholderResolution:r}=this.config;return n===!0?`url(${this.callImageLoader({src:this.ngSrc,width:r,isPlaceholder:!0})})`:typeof n=="string"&&n.startsWith("data:")?`url(${n})`:null}shouldBlurPlaceholder(n){return!n||!n.hasOwnProperty("blur")?!0:!!n.blur}removePlaceholderOnLoad(n){let r=()=>{let a=this.injector.get(zt);o(),s(),this.placeholder=!1,a.markForCheck()},o=this.renderer.listen(n,"load",r),s=this.renderer.listen(n,"error",r)}ngOnDestroy(){}setHostAttribute(n,r){this.renderer.setAttribute(this.imgElement,n,r)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=ne({type:e,selectors:[["img","ngSrc",""]],hostVars:18,hostBindings:function(r,o){r&2&&qr("position",o.fill?"absolute":null)("width",o.fill?"100%":null)("height",o.fill?"100%":null)("inset",o.fill?"0":null)("background-size",o.placeholder?"cover":null)("background-position",o.placeholder?"50% 50%":null)("background-repeat",o.placeholder?"no-repeat":null)("background-image",o.placeholder?o.generatePlaceholder(o.placeholder):null)("filter",o.placeholder&&o.shouldBlurPlaceholder(o.placeholderConfig)?"blur(15px)":null)},inputs:{ngSrc:[be.HasDecoratorInputTransform,"ngSrc","ngSrc",KI],ngSrcset:"ngSrcset",sizes:"sizes",width:[be.HasDecoratorInputTransform,"width","width",td],height:[be.HasDecoratorInputTransform,"height","height",td],loading:"loading",priority:[be.HasDecoratorInputTransform,"priority","priority",vt],loaderParams:"loaderParams",disableOptimizedSrcset:[be.HasDecoratorInputTransform,"disableOptimizedSrcset","disableOptimizedSrcset",vt],fill:[be.HasDecoratorInputTransform,"fill","fill",vt],placeholder:[be.HasDecoratorInputTransform,"placeholder","placeholder",QI],placeholderConfig:"placeholderConfig",src:"src",srcset:"srcset"},standalone:!0,features:[pa,We]});let t=e;return t})();function ZI(t){let e={};return t.breakpoints&&(e.breakpoints=t.breakpoints.sort((i,n)=>i-n)),Object.assign({},fu,t,e)}function KI(t){return typeof t=="string"?t:mt(t)}function QI(t){return typeof t=="string"&&t.startsWith("data:")?t:vt(t)}var Kr=class{},Qr=class{},Yt=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(`
`).forEach(i=>{let n=i.indexOf(":");if(n>0){let r=i.slice(0,n),o=r.toLowerCase(),s=i.slice(n+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((i,n)=>{this.setHeaderEntries(n,i)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([i,n])=>{this.setHeaderEntries(i,n)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let i=this.headers.get(e.toLowerCase());return i&&i.length>0?i[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,i){return this.clone({name:e,value:i,op:"a"})}set(e,i){return this.clone({name:e,value:i,op:"s"})}delete(e,i){return this.clone({name:e,value:i,op:"d"})}maybeSetNormalizedName(e,i){this.normalizedNames.has(i)||this.normalizedNames.set(i,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(i=>{this.headers.set(i,e.headers.get(i)),this.normalizedNames.set(i,e.normalizedNames.get(i))})}clone(e){let i=new t;return i.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,i.lazyUpdate=(this.lazyUpdate||[]).concat([e]),i}applyUpdate(e){let i=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(e.name,i);let r=(e.op==="a"?this.headers.get(i):void 0)||[];r.push(...n),this.headers.set(i,r);break;case"d":let o=e.value;if(!o)this.headers.delete(i),this.normalizedNames.delete(i);else{let s=this.headers.get(i);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(i),this.normalizedNames.delete(i)):this.headers.set(i,s)}break}}setHeaderEntries(e,i){let n=(Array.isArray(i)?i:[i]).map(o=>o.toString()),r=e.toLowerCase();this.headers.set(r,n),this.maybeSetNormalizedName(e,r)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(i=>e(this.normalizedNames.get(i),this.headers.get(i)))}};var yd=class{encodeKey(e){return l0(e)}encodeValue(e){return l0(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function XI(t,e){let i=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{let o=r.indexOf("="),[s,a]=o==-1?[e.decodeKey(r),""]:[e.decodeKey(r.slice(0,o)),e.decodeValue(r.slice(o+1))],l=i.get(s)||[];l.push(a),i.set(s,l)}),i}var ew=/%(\d[a-f0-9])/gi,tw={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function l0(t){return encodeURIComponent(t).replace(ew,(e,i)=>tw[i]??e)}function Sa(t){return`${t}`}var Un=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new yd,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=XI(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(i=>{let n=e.fromObject[i],r=Array.isArray(n)?n.map(Sa):[Sa(n)];this.map.set(i,r)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let i=this.map.get(e);return i?i[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,i){return this.clone({param:e,value:i,op:"a"})}appendAll(e){let i=[];return Object.keys(e).forEach(n=>{let r=e[n];Array.isArray(r)?r.forEach(o=>{i.push({param:n,value:o,op:"a"})}):i.push({param:n,value:r,op:"a"})}),this.clone(i)}set(e,i){return this.clone({param:e,value:i,op:"s"})}delete(e,i){return this.clone({param:e,value:i,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let i=this.encoder.encodeKey(e);return this.map.get(e).map(n=>i+"="+this.encoder.encodeValue(n)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let i=new t({encoder:this.encoder});return i.cloneFrom=this.cloneFrom||this,i.updates=(this.updates||[]).concat(e),i}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let i=(e.op==="a"?this.map.get(e.param):void 0)||[];i.push(Sa(e.value)),this.map.set(e.param,i);break;case"d":if(e.value!==void 0){let n=this.map.get(e.param)||[],r=n.indexOf(Sa(e.value));r!==-1&&n.splice(r,1),n.length>0?this.map.set(e.param,n):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var Cd=class{constructor(){this.map=new Map}set(e,i){return this.map.set(e,i),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function nw(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function c0(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function u0(t){return typeof Blob<"u"&&t instanceof Blob}function d0(t){return typeof FormData<"u"&&t instanceof FormData}function iw(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var Zr=class t{constructor(e,i,n,r){this.url=i,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let o;if(nw(this.method)||r?(this.body=n!==void 0?n:null,o=r):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new Yt,this.context??=new Cd,!this.params)this.params=new Un,this.urlWithParams=i;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=i;else{let a=i.indexOf("?"),l=a===-1?"?":a<i.length-1?"&":"";this.urlWithParams=i+l+s}}}serializeBody(){return this.body===null?null:c0(this.body)||u0(this.body)||d0(this.body)||iw(this.body)||typeof this.body=="string"?this.body:this.body instanceof Un?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||d0(this.body)?null:u0(this.body)?this.body.type||null:c0(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof Un?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?"application/json":null}clone(e={}){let i=e.method||this.method,n=e.url||this.url,r=e.responseType||this.responseType,o=e.body!==void 0?e.body:this.body,s=e.withCredentials!==void 0?e.withCredentials:this.withCredentials,a=e.reportProgress!==void 0?e.reportProgress:this.reportProgress,l=e.headers||this.headers,c=e.params||this.params,h=e.context??this.context;return e.setHeaders!==void 0&&(l=Object.keys(e.setHeaders).reduce((m,v)=>m.set(v,e.setHeaders[v]),l)),e.setParams&&(c=Object.keys(e.setParams).reduce((m,v)=>m.set(v,e.setParams[v]),c)),new t(i,n,o,{params:c,headers:l,context:h,reportProgress:a,responseType:r,withCredentials:s})}},gn=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(gn||{}),Jr=class{constructor(e,i=nr.Ok,n="OK"){this.headers=e.headers||new Yt,this.status=e.status!==void 0?e.status:i,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},wa=class t extends Jr{constructor(e={}){super(e),this.type=gn.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},$n=class t extends Jr{constructor(e={}){super(e),this.type=gn.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},qt=class extends Jr{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},nr=function(t){return t[t.Continue=100]="Continue",t[t.SwitchingProtocols=101]="SwitchingProtocols",t[t.Processing=102]="Processing",t[t.EarlyHints=103]="EarlyHints",t[t.Ok=200]="Ok",t[t.Created=201]="Created",t[t.Accepted=202]="Accepted",t[t.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",t[t.NoContent=204]="NoContent",t[t.ResetContent=205]="ResetContent",t[t.PartialContent=206]="PartialContent",t[t.MultiStatus=207]="MultiStatus",t[t.AlreadyReported=208]="AlreadyReported",t[t.ImUsed=226]="ImUsed",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.Found=302]="Found",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.Unused=306]="Unused",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.LengthRequired=411]="LengthRequired",t[t.PreconditionFailed=412]="PreconditionFailed",t[t.PayloadTooLarge=413]="PayloadTooLarge",t[t.UriTooLong=414]="UriTooLong",t[t.UnsupportedMediaType=415]="UnsupportedMediaType",t[t.RangeNotSatisfiable=416]="RangeNotSatisfiable",t[t.ExpectationFailed=417]="ExpectationFailed",t[t.ImATeapot=418]="ImATeapot",t[t.MisdirectedRequest=421]="MisdirectedRequest",t[t.UnprocessableEntity=422]="UnprocessableEntity",t[t.Locked=423]="Locked",t[t.FailedDependency=424]="FailedDependency",t[t.TooEarly=425]="TooEarly",t[t.UpgradeRequired=426]="UpgradeRequired",t[t.PreconditionRequired=428]="PreconditionRequired",t[t.TooManyRequests=429]="TooManyRequests",t[t.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",t[t.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout",t[t.HttpVersionNotSupported=505]="HttpVersionNotSupported",t[t.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",t[t.InsufficientStorage=507]="InsufficientStorage",t[t.LoopDetected=508]="LoopDetected",t[t.NotExtended=510]="NotExtended",t[t.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",t}(nr||{});function gd(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var ir=(()=>{let e=class e{constructor(n){this.handler=n}request(n,r,o={}){let s;if(n instanceof Zr)s=n;else{let c;o.headers instanceof Yt?c=o.headers:c=new Yt(o.headers);let h;o.params&&(o.params instanceof Un?h=o.params:h=new Un({fromObject:o.params})),s=new Zr(n,r,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:h,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let a=V(s).pipe(nn(c=>this.handler.handle(c)));if(n instanceof Zr||o.observe==="events")return a;let l=a.pipe(Re(c=>c instanceof $n));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return l.pipe(j(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return l.pipe(j(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return l.pipe(j(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return l.pipe(j(c=>c.body))}case"response":return l;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new Un().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,gd(o,r))}post(n,r,o={}){return this.request("POST",n,gd(o,r))}put(n,r,o={}){return this.request("PUT",n,gd(o,r))}};e.\u0275fac=function(r){return new(r||e)(D(Kr))},e.\u0275prov=x({token:e,factory:e.\u0275fac});let t=e;return t})(),rw=/^\)\]\}',?\n/,ow="X-Request-URL";function p0(t){if(t.url)return t.url;let e=ow.toLocaleLowerCase();return t.headers.get(e)}var vd=(()=>{let e=class e{constructor(){this.fetchImpl=b(bd,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=b(de)}handle(n){return new ee(r=>{let o=new AbortController;return this.doRequest(n,o.signal,r).then(_d,s=>r.error(new qt({error:s}))),()=>o.abort()})}doRequest(n,r,o){return en(this,null,function*(){let s=this.createRequestInit(n),a;try{let I=this.fetchImpl(n.urlWithParams,E({signal:r},s));sw(I),o.next({type:gn.Sent}),a=yield I}catch(I){o.error(new qt({error:I,status:I.status??0,statusText:I.statusText,url:n.urlWithParams,headers:I.headers}));return}let l=new Yt(a.headers),c=a.statusText,h=p0(a)??n.urlWithParams,m=a.status,v=null;if(n.reportProgress&&o.next(new wa({headers:l,status:m,statusText:c,url:h})),a.body){let I=a.headers.get("content-length"),k=[],L=a.body.getReader(),O=0,fe,we,ce=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>en(this,null,function*(){for(;;){let{done:xe,value:Ke}=yield L.read();if(xe)break;if(k.push(Ke),O+=Ke.length,n.reportProgress){we=n.responseType==="text"?(we??"")+(fe??=new TextDecoder).decode(Ke,{stream:!0}):void 0;let Ii=()=>o.next({type:gn.DownloadProgress,total:I?+I:void 0,loaded:O,partialText:we});ce?ce.run(Ii):Ii()}}}));let Ge=this.concatChunks(k,O);try{let xe=a.headers.get("Content-Type")??"";v=this.parseBody(n,Ge,xe)}catch(xe){o.error(new qt({error:xe,headers:new Yt(a.headers),status:a.status,statusText:a.statusText,url:p0(a)??n.urlWithParams}));return}}m===0&&(m=v?nr.Ok:0),m>=200&&m<300?(o.next(new $n({body:v,headers:l,status:m,statusText:c,url:h})),o.complete()):o.error(new qt({error:v,headers:l,status:m,statusText:c,url:h}))})}parseBody(n,r,o){switch(n.responseType){case"json":let s=new TextDecoder().decode(r).replace(rw,"");return s===""?null:JSON.parse(s);case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:o});case"arraybuffer":return r.buffer}}createRequestInit(n){let r={},o=n.withCredentials?"include":void 0;if(n.headers.forEach((s,a)=>r[s]=a.join(",")),r.Accept??="application/json, text/plain, */*",!r["Content-Type"]){let s=n.detectContentTypeHeader();s!==null&&(r["Content-Type"]=s)}return{body:n.serializeBody(),method:n.method,headers:r,credentials:o}}concatChunks(n,r){let o=new Uint8Array(r),s=0;for(let a of n)o.set(a,s),s+=a.length;return o}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac});let t=e;return t})(),bd=class{};function _d(){}function sw(t){t.then(_d,_d)}function I0(t,e){return e(t)}function aw(t,e){return(i,n)=>e.intercept(i,{handle:r=>t(r,n)})}function lw(t,e,i){return(n,r)=>Ht(i,()=>e(n,o=>t(o,r)))}var cw=new F(""),Ea=new F(""),w0=new F(""),x0=new F("");function uw(){let t=null;return(e,i)=>{t===null&&(t=(b(cw,{optional:!0})??[]).reduceRight(aw,I0));let n=b(gi),r=n.add();return t(e,i).pipe(xn(()=>n.remove(r)))}}var f0=(()=>{let e=class e extends Kr{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null,this.pendingTasks=b(gi);let o=b(x0,{optional:!0});this.backend=o??n}handle(n){if(this.chain===null){let o=Array.from(new Set([...this.injector.get(Ea),...this.injector.get(w0,[])]));this.chain=o.reduceRight((s,a)=>lw(s,a,this.injector),I0)}let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(xn(()=>this.pendingTasks.remove(r)))}};e.\u0275fac=function(r){return new(r||e)(D(Qr),D(Ze))},e.\u0275prov=x({token:e,factory:e.\u0275fac});let t=e;return t})(),dw=0,h0,pw="JSONP injected script did not invoke callback.",fw="JSONP requests must use JSONP request method.",hw="JSONP requests must use Json response type.",mw="JSONP requests do not support headers.",xa=class{};function gw(){return typeof window=="object"?window:{}}var D0=(()=>{let e=class e{constructor(n,r){this.callbackMap=n,this.document=r,this.resolvedPromise=Promise.resolve()}nextCallback(){return`ng_jsonp_callback_${dw++}`}handle(n){if(n.method!=="JSONP")throw new Error(fw);if(n.responseType!=="json")throw new Error(hw);if(n.headers.keys().length>0)throw new Error(mw);return new ee(r=>{let o=this.nextCallback(),s=n.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,`=${o}$1`),a=this.document.createElement("script");a.src=s;let l=null,c=!1;this.callbackMap[o]=C=>{delete this.callbackMap[o],l=C,c=!0};let h=()=>{a.parentNode&&a.parentNode.removeChild(a),delete this.callbackMap[o]},m=C=>{this.resolvedPromise.then(()=>{if(h(),!c){r.error(new qt({url:s,status:0,statusText:"JSONP Error",error:new Error(pw)}));return}r.next(new $n({body:l,status:nr.Ok,statusText:"OK",url:s})),r.complete()})},v=C=>{h(),r.error(new qt({error:C,status:0,statusText:"JSONP Error",url:s}))};return a.addEventListener("load",m),a.addEventListener("error",v),this.document.body.appendChild(a),r.next({type:gn.Sent}),()=>{c||this.removeListeners(a),h()}})}removeListeners(n){h0??=this.document.implementation.createHTMLDocument(),h0.adoptNode(n)}};e.\u0275fac=function(r){return new(r||e)(D(xa),D(Ae))},e.\u0275prov=x({token:e,factory:e.\u0275fac});let t=e;return t})();function vw(t,e){return t.method==="JSONP"?b(D0).handle(t):e(t)}var yw=/^\)\]\}',?\n/;function Cw(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var m0=(()=>{let e=class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new A(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?me(r.\u0275loadImpl()):V(null)).pipe($e(()=>new ee(s=>{let a=r.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((L,O)=>a.setRequestHeader(L,O.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let L=n.detectContentTypeHeader();L!==null&&a.setRequestHeader("Content-Type",L)}if(n.responseType){let L=n.responseType.toLowerCase();a.responseType=L!=="json"?L:"text"}let l=n.serializeBody(),c=null,h=()=>{if(c!==null)return c;let L=a.statusText||"OK",O=new Yt(a.getAllResponseHeaders()),fe=Cw(a)||n.url;return c=new wa({headers:O,status:a.status,statusText:L,url:fe}),c},m=()=>{let{headers:L,status:O,statusText:fe,url:we}=h(),ce=null;O!==nr.NoContent&&(ce=typeof a.response>"u"?a.responseText:a.response),O===0&&(O=ce?nr.Ok:0);let Ge=O>=200&&O<300;if(n.responseType==="json"&&typeof ce=="string"){let xe=ce;ce=ce.replace(yw,"");try{ce=ce!==""?JSON.parse(ce):null}catch(Ke){ce=xe,Ge&&(Ge=!1,ce={error:Ke,text:ce})}}Ge?(s.next(new $n({body:ce,headers:L,status:O,statusText:fe,url:we||void 0})),s.complete()):s.error(new qt({error:ce,headers:L,status:O,statusText:fe,url:we||void 0}))},v=L=>{let{url:O}=h(),fe=new qt({error:L,status:a.status||0,statusText:a.statusText||"Unknown Error",url:O||void 0});s.error(fe)},C=!1,I=L=>{C||(s.next(h()),C=!0);let O={type:gn.DownloadProgress,loaded:L.loaded};L.lengthComputable&&(O.total=L.total),n.responseType==="text"&&a.responseText&&(O.partialText=a.responseText),s.next(O)},k=L=>{let O={type:gn.UploadProgress,loaded:L.loaded};L.lengthComputable&&(O.total=L.total),s.next(O)};return a.addEventListener("load",m),a.addEventListener("error",v),a.addEventListener("timeout",v),a.addEventListener("abort",v),n.reportProgress&&(a.addEventListener("progress",I),l!==null&&a.upload&&a.upload.addEventListener("progress",k)),a.send(l),s.next({type:gn.Sent}),()=>{a.removeEventListener("error",v),a.removeEventListener("abort",v),a.removeEventListener("load",m),a.removeEventListener("timeout",v),n.reportProgress&&(a.removeEventListener("progress",I),l!==null&&a.upload&&a.upload.removeEventListener("progress",k)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(r){return new(r||e)(D(Xi))},e.\u0275prov=x({token:e,factory:e.\u0275fac});let t=e;return t})(),E0=new F(""),bw="XSRF-TOKEN",_w=new F("",{providedIn:"root",factory:()=>bw}),Sw="X-XSRF-TOKEN",Iw=new F("",{providedIn:"root",factory:()=>Sw}),Da=class{},ww=(()=>{let e=class e{constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=ba(n,this.cookieName),this.lastCookieString=n),this.lastToken}};e.\u0275fac=function(r){return new(r||e)(D(Ae),D(_e),D(_w))},e.\u0275prov=x({token:e,factory:e.\u0275fac});let t=e;return t})();function xw(t,e){let i=t.url.toLowerCase();if(!b(E0)||t.method==="GET"||t.method==="HEAD"||i.startsWith("http://")||i.startsWith("https://"))return e(t);let n=b(Da).getToken(),r=b(Iw);return n!=null&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,n)})),e(t)}var Ma=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(Ma||{});function Sd(t,e){return{\u0275kind:t,\u0275providers:e}}function JF(...t){let e=[ir,m0,f0,{provide:Kr,useExisting:f0},{provide:Qr,useExisting:m0},{provide:Ea,useValue:xw,multi:!0},{provide:E0,useValue:!0},{provide:Da,useClass:ww}];for(let i of t)e.push(...i.\u0275providers);return Fn(e)}var g0=new F("");function XF(){return Sd(Ma.LegacyInterceptors,[{provide:g0,useFactory:uw},{provide:Ea,useExisting:g0,multi:!0}])}function eR(){return Sd(Ma.JsonpSupport,[D0,{provide:xa,useFactory:gw},{provide:Ea,useValue:vw,multi:!0}])}function tR(){return Sd(Ma.Fetch,[vd,{provide:Qr,useExisting:vd},{provide:x0,useExisting:vd}])}var v0="b",y0="h",C0="s",b0="st",_0="u",S0="rt",Ia=new F(""),Dw=["GET","HEAD"];function Ew(t,e){let h=b(Ia),{isCacheActive:i}=h,n=Op(h,["isCacheActive"]),{transferCache:r,method:o}=t;if(!i||o==="POST"&&!n.includePostRequests&&!r||o!=="POST"&&!Dw.includes(o)||r===!1||n.filter?.(t)===!1)return e(t);let s=b(hi),a=Tw(t),l=s.get(a,null),c=n.includeHeaders;if(typeof r=="object"&&r.includeHeaders&&(c=r.includeHeaders),l){let{[v0]:m,[S0]:v,[y0]:C,[C0]:I,[b0]:k,[_0]:L}=l,O=m;switch(v){case"arraybuffer":O=new TextEncoder().encode(m).buffer;break;case"blob":O=new Blob([m]);break}let fe=new Yt(C);return V(new $n({body:O,headers:fe,status:I,statusText:k,url:L}))}return e(t).pipe(ge(m=>{m instanceof $n&&s.set(a,{[v0]:m.body,[y0]:Mw(m.headers,c),[C0]:m.status,[b0]:m.statusText,[_0]:m.url||"",[S0]:t.responseType})}))}function Mw(t,e){if(!e)return{};let i={};for(let n of e){let r=t.getAll(n);r!==null&&(i[n]=r)}return i}function Tw(t){let{params:e,method:i,responseType:n,url:r,body:o}=t,s=e.keys().sort().map(h=>`${h}=${e.getAll(h)}`).join("&"),l=[i,n,r,typeof o=="string"?o:"",s].join("|"),c=Pw(l);return c}function Pw(t){let e=0;for(let i of t)e=Math.imul(31,e)+i.charCodeAt(0)<<0;return e+=2147483648,e.toString()}function M0(t){return[{provide:Ia,useFactory:()=>(mi("NgHttpTransferCache"),E({isCacheActive:!0},t))},{provide:w0,useValue:Ew,multi:!0,deps:[hi,Ia]},{provide:yi,multi:!0,useFactory:()=>{let e=b(Bn),i=b(Ia);return()=>{Qu(e).then(()=>{i.isCacheActive=!1})}}}]}var xd=class extends Ca{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Dd=class t extends xd{static makeCurrent(){i0(new t)}onAndCancel(e,i,n){return e.addEventListener(i,n),()=>{e.removeEventListener(i,n)}}dispatchEvent(e,i){e.dispatchEvent(i)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,i){return i=i||this.getDefaultDocument(),i.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,i){return i==="window"?window:i==="document"?e:i==="body"?e.body:null}getBaseHref(e){let i=Aw();return i==null?null:kw(i)}resetBaseElement(){Xr=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return ba(document.cookie,e)}},Xr=null;function Aw(){return Xr=Xr||document.querySelector("base"),Xr?Xr.getAttribute("href"):null}function kw(t){return new URL(t,document.baseURI).pathname}var Nw=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac});let t=e;return t})(),Ed=new F(""),A0=(()=>{let e=class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(s=>s.supports(n)),!r)throw new A(5101,!1);return this._eventNameToPlugin.set(n,r),r}};e.\u0275fac=function(r){return new(r||e)(D(Ed),D(de))},e.\u0275prov=x({token:e,factory:e.\u0275fac});let t=e;return t})(),Ta=class{constructor(e){this._doc=e}},Id="ng-app-id",k0=(()=>{let e=class e{constructor(n,r,o,s={}){this.doc=n,this.appId=r,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=_a(s),this.resetHostNodes()}addStyles(n){for(let r of n)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(n){for(let r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){let r=this.styleRef;r.get(n)?.elements?.forEach(o=>o.remove()),r.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${Id}="${this.appId}"]`);if(n?.length){let r=new Map;return n.forEach(o=>{o.textContent!=null&&r.set(o.textContent,o)}),r}return null}changeUsageCount(n,r){let o=this.styleRef;if(o.has(n)){let s=o.get(n);return s.usage+=r,s.usage}return o.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){let o=this.styleNodesInDOM,s=o?.get(r);if(s?.parentNode===n)return o.delete(r),s.removeAttribute(Id),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=r,this.platformIsServer&&a.setAttribute(Id,this.appId),n.appendChild(a),a}}addStyleToHost(n,r){let o=this.getStyleElement(n,r),s=this.styleRef,a=s.get(r)?.elements;a?a.push(o):s.set(r,{elements:[o],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(r){return new(r||e)(D(Ae),D(Ks),D(pu,8),D(_e))},e.\u0275prov=x({token:e,factory:e.\u0275fac});let t=e;return t})(),wd={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/MathML/"},Pd=/%COMP%/g,N0="%COMP%",Fw=`_nghost-${N0}`,Rw=`_ngcontent-${N0}`,Lw=!0,Vw=new F("",{providedIn:"root",factory:()=>Lw});function jw(t){return Rw.replace(Pd,t)}function Bw(t){return Fw.replace(Pd,t)}function F0(t,e){return e.map(i=>i.replace(Pd,t))}var T0=(()=>{let e=class e{constructor(n,r,o,s,a,l,c,h=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=l,this.ngZone=c,this.nonce=h,this.rendererByCompId=new Map,this.platformIsServer=_a(l),this.defaultRenderer=new eo(n,a,c,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Ft.ShadowDom&&(r=he(E({},r),{encapsulation:Ft.Emulated}));let o=this.getOrCreateRenderer(n,r);return o instanceof Pa?o.applyToHost(n):o instanceof to&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,s=o.get(r.id);if(!s){let a=this.doc,l=this.ngZone,c=this.eventManager,h=this.sharedStylesHost,m=this.removeStylesOnCompDestroy,v=this.platformIsServer;switch(r.encapsulation){case Ft.Emulated:s=new Pa(c,h,r,this.appId,m,a,l,v);break;case Ft.ShadowDom:return new Md(c,h,n,r,a,l,this.nonce,v);default:s=new to(c,h,r,m,a,l,v);break}o.set(r.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(r){return new(r||e)(D(A0),D(k0),D(Ks),D(Vw),D(Ae),D(_e),D(de),D(pu))},e.\u0275prov=x({token:e,factory:e.\u0275fac});let t=e;return t})(),eo=class{constructor(e,i,n,r){this.eventManager=e,this.doc=i,this.ngZone=n,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,i){return i?this.doc.createElementNS(wd[i]||i,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,i){(P0(e)?e.content:e).appendChild(i)}insertBefore(e,i,n){e&&(P0(e)?e.content:e).insertBefore(i,n)}removeChild(e,i){e&&e.removeChild(i)}selectRootElement(e,i){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new A(-5104,!1);return i||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,i,n,r){if(r){i=r+":"+i;let o=wd[r];o?e.setAttributeNS(o,i,n):e.setAttribute(i,n)}else e.setAttribute(i,n)}removeAttribute(e,i,n){if(n){let r=wd[n];r?e.removeAttributeNS(r,i):e.removeAttribute(`${n}:${i}`)}else e.removeAttribute(i)}addClass(e,i){e.classList.add(i)}removeClass(e,i){e.classList.remove(i)}setStyle(e,i,n,r){r&(Vt.DashCase|Vt.Important)?e.style.setProperty(i,n,r&Vt.Important?"important":""):e.style[i]=n}removeStyle(e,i,n){n&Vt.DashCase?e.style.removeProperty(i):e.style[i]=""}setProperty(e,i,n){e!=null&&(e[i]=n)}setValue(e,i){e.nodeValue=i}listen(e,i,n){if(typeof e=="string"&&(e=Gt().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${i}`);return this.eventManager.addEventListener(e,i,this.decoratePreventDefault(n))}decoratePreventDefault(e){return i=>{if(i==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(i)):e(i))===!1&&i.preventDefault()}}};function P0(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Md=class extends eo{constructor(e,i,n,r,o,s,a,l){super(e,o,s,l),this.sharedStylesHost=i,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=F0(r.id,r.styles);for(let h of c){let m=document.createElement("style");a&&m.setAttribute("nonce",a),m.textContent=h,this.shadowRoot.appendChild(m)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,i){return super.appendChild(this.nodeOrShadowRoot(e),i)}insertBefore(e,i,n){return super.insertBefore(this.nodeOrShadowRoot(e),i,n)}removeChild(e,i){return super.removeChild(this.nodeOrShadowRoot(e),i)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},to=class extends eo{constructor(e,i,n,r,o,s,a,l){super(e,o,s,a),this.sharedStylesHost=i,this.removeStylesOnCompDestroy=r,this.styles=l?F0(l,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Pa=class extends to{constructor(e,i,n,r,o,s,a,l){let c=r+"-"+n.id;super(e,i,n,o,s,a,l,c),this.contentAttr=jw(c),this.hostAttr=Bw(c)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,i){let n=super.createElement(e,i);return super.setAttribute(n,this.contentAttr,""),n}},Uw=(()=>{let e=class e extends Ta{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}};e.\u0275fac=function(r){return new(r||e)(D(Ae))},e.\u0275prov=x({token:e,factory:e.\u0275fac});let t=e;return t})(),O0=["alt","control","meta","shift"],$w={"\b":"Backspace","	":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Hw={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},Ww=(()=>{let e=class e extends Ta{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Gt().onAndCancel(n,s.domEventName,a))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let s=e._normalizeKey(r.pop()),a="",l=r.indexOf("code");if(l>-1&&(r.splice(l,1),a="code."),O0.forEach(h=>{let m=r.indexOf(h);m>-1&&(r.splice(m,1),a+=h+".")}),a+=s,r.length!=0||s.length===0)return null;let c={};return c.domEventName=o,c.fullKey=a,c}static matchEventFullKeyCode(n,r){let o=$w[n.key]||n.key,s="";return r.indexOf("code.")>-1&&(o=n.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),O0.forEach(a=>{if(a!==o){let l=Hw[a];l(n)&&(s+=a+".")}}),s+=o,s===r)}static eventCallback(n,r,o){return s=>{e.matchEventFullKeyCode(s,n)&&o.runGuarded(()=>r(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(r){return new(r||e)(D(Ae))},e.\u0275prov=x({token:e,factory:e.\u0275fac});let t=e;return t})();function yR(t,e){return Yg(E({rootComponent:t},zw(e)))}function zw(t){return{appProviders:[...Kw,...t?.providers??[]],platformProviders:Zw}}function Gw(){Dd.makeCurrent()}function qw(){return new Lt}function Yw(){return Fh(document),document}var Zw=[{provide:_e,useValue:hd},{provide:du,useValue:Gw,multi:!0},{provide:Ae,useFactory:Yw,deps:[]}];var Kw=[{provide:ta,useValue:"root"},{provide:Lt,useFactory:qw,deps:[]},{provide:Ed,useClass:Uw,multi:!0,deps:[Ae,de,_e]},{provide:Ed,useClass:Ww,multi:!0,deps:[Ae]},T0,k0,A0,{provide:Rr,useExisting:T0},{provide:Xi,useClass:Nw,deps:[]},[]];var R0=(()=>{let e=class e{constructor(n){this._doc=n,this._dom=Gt()}addTag(n,r=!1){return n?this._getOrCreateElement(n,r):null}addTags(n,r=!1){return n?n.reduce((o,s)=>(s&&o.push(this._getOrCreateElement(s,r)),o),[]):[]}getTag(n){return n&&this._doc.querySelector(`meta[${n}]`)||null}getTags(n){if(!n)return[];let r=this._doc.querySelectorAll(`meta[${n}]`);return r?[].slice.call(r):[]}updateTag(n,r){if(!n)return null;r=r||this._parseSelector(n);let o=this.getTag(r);return o?this._setMetaElementAttributes(n,o):this._getOrCreateElement(n,!0)}removeTag(n){this.removeTagElement(this.getTag(n))}removeTagElement(n){n&&this._dom.remove(n)}_getOrCreateElement(n,r=!1){if(!r){let a=this._parseSelector(n),l=this.getTags(a).filter(c=>this._containsAttributes(n,c))[0];if(l!==void 0)return l}let o=this._dom.createElement("meta");return this._setMetaElementAttributes(n,o),this._doc.getElementsByTagName("head")[0].appendChild(o),o}_setMetaElementAttributes(n,r){return Object.keys(n).forEach(o=>r.setAttribute(this._getMetaKeyMap(o),n[o])),r}_parseSelector(n){let r=n.name?"name":"property";return`${r}="${n[r]}"`}_containsAttributes(n,r){return Object.keys(n).every(o=>r.getAttribute(this._getMetaKeyMap(o))===n[o])}_getMetaKeyMap(n){return Qw[n]||n}};e.\u0275fac=function(r){return new(r||e)(D(Ae))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Qw={httpEquiv:"http-equiv"},L0=(()=>{let e=class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};e.\u0275fac=function(r){return new(r||e)(D(Ae))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Od=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=x({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=D(Jw),o},providedIn:"root"});let t=e;return t})(),Jw=(()=>{let e=class e extends Od{constructor(n){super(),this._doc=n}sanitize(n,r){if(r==null)return null;switch(n){case Tt.NONE:return r;case Tt.HTML:return dn(r,"HTML")?mt(r):Iu(this._doc,String(r)).toString();case Tt.STYLE:return dn(r,"Style")?mt(r):r;case Tt.SCRIPT:if(dn(r,"Script"))return mt(r);throw new A(5200,!1);case Tt.URL:return dn(r,"URL")?mt(r):ra(String(r));case Tt.RESOURCE_URL:if(dn(r,"ResourceURL"))return mt(r);throw new A(5201,!1);default:throw new A(5202,!1)}}bypassSecurityTrustHtml(n){return Sm(n)}bypassSecurityTrustStyle(n){return Im(n)}bypassSecurityTrustScript(n){return wm(n)}bypassSecurityTrustUrl(n){return xm(n)}bypassSecurityTrustResourceUrl(n){return Dm(n)}};e.\u0275fac=function(r){return new(r||e)(D(Ae))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Td=function(t){return t[t.NoHttpTransferCache=0]="NoHttpTransferCache",t[t.HttpTransferCacheOptions=1]="HttpTransferCacheOptions",t}(Td||{});function CR(...t){let e=[],i=new Set,n=i.has(Td.HttpTransferCacheOptions);for(let{\u0275providers:r,\u0275kind:o}of t)i.add(o),r.length&&e.push(r);return Fn([[],Zg(),i.has(Td.NoHttpTransferCache)||n?[]:M0({}),e])}var K="primary",yo=Symbol("RouteTitle"),Rd=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let i=this.params[e];return Array.isArray(i)?i[0]:i}return null}getAll(e){if(this.has(e)){let i=this.params[e];return Array.isArray(i)?i:[i]}return[]}get keys(){return Object.keys(this.params)}};function lr(t){return new Rd(t)}function Xw(t,e,i){let n=i.path.split("/");if(n.length>t.length||i.pathMatch==="full"&&(e.hasChildren()||n.length<t.length))return null;let r={};for(let o=0;o<n.length;o++){let s=n[o],a=t[o];if(s.startsWith(":"))r[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:t.slice(0,n.length),posParams:r}}function ex(t,e){if(t.length!==e.length)return!1;for(let i=0;i<t.length;++i)if(!Zt(t[i],e[i]))return!1;return!0}function Zt(t,e){let i=t?Ld(t):void 0,n=e?Ld(e):void 0;if(!i||!n||i.length!=n.length)return!1;let r;for(let o=0;o<i.length;o++)if(r=i[o],!q0(t[r],e[r]))return!1;return!0}function Ld(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function q0(t,e){if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;let i=[...t].sort(),n=[...e].sort();return i.every((r,o)=>n[o]===r)}else return t===e}function Y0(t){return t.length>0?t[t.length-1]:null}function qn(t){return vl(t)?t:jn(t)?me(Promise.resolve(t)):V(t)}var tx={exact:K0,subset:Q0},Z0={exact:nx,subset:ix,ignored:()=>!0};function j0(t,e,i){return tx[i.paths](t.root,e.root,i.matrixParams)&&Z0[i.queryParams](t.queryParams,e.queryParams)&&!(i.fragment==="exact"&&t.fragment!==e.fragment)}function nx(t,e){return Zt(t,e)}function K0(t,e,i){if(!_i(t.segments,e.segments)||!ka(t.segments,e.segments,i)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let n in e.children)if(!t.children[n]||!K0(t.children[n],e.children[n],i))return!1;return!0}function ix(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(i=>q0(t[i],e[i]))}function Q0(t,e,i){return J0(t,e,e.segments,i)}function J0(t,e,i,n){if(t.segments.length>i.length){let r=t.segments.slice(0,i.length);return!(!_i(r,i)||e.hasChildren()||!ka(r,i,n))}else if(t.segments.length===i.length){if(!_i(t.segments,i)||!ka(t.segments,i,n))return!1;for(let r in e.children)if(!t.children[r]||!Q0(t.children[r],e.children[r],n))return!1;return!0}else{let r=i.slice(0,t.segments.length),o=i.slice(t.segments.length);return!_i(t.segments,r)||!ka(t.segments,r,n)||!t.children[K]?!1:J0(t.children[K],e,o,n)}}function ka(t,e,i){return e.every((n,r)=>Z0[i](t[r].parameters,n.parameters))}var Hn=class{constructor(e=new le([],{}),i={},n=null){this.root=e,this.queryParams=i,this.fragment=n}get queryParamMap(){return this._queryParamMap??=lr(this.queryParams),this._queryParamMap}toString(){return sx.serialize(this)}},le=class{constructor(e,i){this.segments=e,this.children=i,this.parent=null,Object.values(i).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Na(this)}},bi=class{constructor(e,i){this.path=e,this.parameters=i}get parameterMap(){return this._parameterMap??=lr(this.parameters),this._parameterMap}toString(){return ev(this)}};function rx(t,e){return _i(t,e)&&t.every((i,n)=>Zt(i.parameters,e[n].parameters))}function _i(t,e){return t.length!==e.length?!1:t.every((i,n)=>i.path===e[n].path)}function ox(t,e){let i=[];return Object.entries(t.children).forEach(([n,r])=>{n===K&&(i=i.concat(e(r,n)))}),Object.entries(t.children).forEach(([n,r])=>{n!==K&&(i=i.concat(e(r,n)))}),i}var fr=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=x({token:e,factory:()=>new lo,providedIn:"root"});let t=e;return t})(),lo=class{parse(e){let i=new jd(e);return new Hn(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}serialize(e){let i=`/${no(e.root,!0)}`,n=cx(e.queryParams),r=typeof e.fragment=="string"?`#${ax(e.fragment)}`:"";return`${i}${n}${r}`}},sx=new lo;function Na(t){return t.segments.map(e=>ev(e)).join("/")}function no(t,e){if(!t.hasChildren())return Na(t);if(e){let i=t.children[K]?no(t.children[K],!1):"",n=[];return Object.entries(t.children).forEach(([r,o])=>{r!==K&&n.push(`${r}:${no(o,!1)}`)}),n.length>0?`${i}(${n.join("//")})`:i}else{let i=ox(t,(n,r)=>r===K?[no(t.children[K],!1)]:[`${r}:${no(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[K]!=null?`${Na(t)}/${i[0]}`:`${Na(t)}/(${i.join("//")})`}}function X0(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Oa(t){return X0(t).replace(/%3B/gi,";")}function ax(t){return encodeURI(t)}function Vd(t){return X0(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Fa(t){return decodeURIComponent(t)}function B0(t){return Fa(t.replace(/\+/g,"%20"))}function ev(t){return`${Vd(t.path)}${lx(t.parameters)}`}function lx(t){return Object.entries(t).map(([e,i])=>`;${Vd(e)}=${Vd(i)}`).join("")}function cx(t){let e=Object.entries(t).map(([i,n])=>Array.isArray(n)?n.map(r=>`${Oa(i)}=${Oa(r)}`).join("&"):`${Oa(i)}=${Oa(n)}`).filter(i=>i);return e.length?`?${e.join("&")}`:""}var ux=/^[^\/()?;#]+/;function Ad(t){let e=t.match(ux);return e?e[0]:""}var dx=/^[^\/()?;=#]+/;function px(t){let e=t.match(dx);return e?e[0]:""}var fx=/^[^=?&#]+/;function hx(t){let e=t.match(fx);return e?e[0]:""}var mx=/^[^&#]+/;function gx(t){let e=t.match(mx);return e?e[0]:""}var jd=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new le([],{}):new le([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let i={};this.peekStartsWith("/(")&&(this.capture("/"),i=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(i).length>0)&&(n[K]=new le(e,i)),n}parseSegment(){let e=Ad(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new A(4009,!1);return this.capture(e),new bi(Fa(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let i=px(this.remaining);if(!i)return;this.capture(i);let n="";if(this.consumeOptional("=")){let r=Ad(this.remaining);r&&(n=r,this.capture(n))}e[Fa(i)]=Fa(n)}parseQueryParam(e){let i=hx(this.remaining);if(!i)return;this.capture(i);let n="";if(this.consumeOptional("=")){let s=gx(this.remaining);s&&(n=s,this.capture(n))}let r=B0(i),o=B0(n);if(e.hasOwnProperty(r)){let s=e[r];Array.isArray(s)||(s=[s],e[r]=s),s.push(o)}else e[r]=o}parseParens(e){let i={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=Ad(this.remaining),r=this.remaining[n.length];if(r!=="/"&&r!==")"&&r!==";")throw new A(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=K);let s=this.parseChildren();i[o]=Object.keys(s).length===1?s[K]:new le([],s),this.consumeOptional("//")}return i}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new A(4011,!1)}};function tv(t){return t.segments.length>0?new le([],{[K]:t}):t}function nv(t){let e={};for(let[n,r]of Object.entries(t.children)){let o=nv(r);if(n===K&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))e[s]=a;else(o.segments.length>0||o.hasChildren())&&(e[n]=o)}let i=new le(t.segments,e);return vx(i)}function vx(t){if(t.numberOfChildren===1&&t.children[K]){let e=t.children[K];return new le(t.segments.concat(e.segments),e.children)}return t}function cr(t){return t instanceof Hn}function yx(t,e,i=null,n=null){let r=iv(t);return rv(r,e,i,n)}function iv(t){let e;function i(o){let s={};for(let l of o.children){let c=i(l);s[l.outlet]=c}let a=new le(o.url,s);return o===t&&(e=a),a}let n=i(t.root),r=tv(n);return e??r}function rv(t,e,i,n){let r=t;for(;r.parent;)r=r.parent;if(e.length===0)return kd(r,r,r,i,n);let o=Cx(e);if(o.toRoot())return kd(r,r,new le([],{}),i,n);let s=bx(o,r,t),a=s.processChildren?oo(s.segmentGroup,s.index,o.commands):sv(s.segmentGroup,s.index,o.commands);return kd(r,s.segmentGroup,a,i,n)}function Ra(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function co(t){return typeof t=="object"&&t!=null&&t.outlets}function kd(t,e,i,n,r){let o={};n&&Object.entries(n).forEach(([l,c])=>{o[l]=Array.isArray(c)?c.map(h=>`${h}`):`${c}`});let s;t===e?s=i:s=ov(t,e,i);let a=tv(nv(s));return new Hn(a,o,r)}function ov(t,e,i){let n={};return Object.entries(t.children).forEach(([r,o])=>{o===e?n[r]=i:n[r]=ov(o,e,i)}),new le(t.segments,n)}var La=class{constructor(e,i,n){if(this.isAbsolute=e,this.numberOfDoubleDots=i,this.commands=n,e&&n.length>0&&Ra(n[0]))throw new A(4003,!1);let r=n.find(co);if(r&&r!==Y0(n))throw new A(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Cx(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new La(!0,0,t);let e=0,i=!1,n=t.reduce((r,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([l,c])=>{a[l]=typeof c=="string"?c.split("/"):c}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return typeof o!="string"?[...r,o]:s===0?(o.split("/").forEach((a,l)=>{l==0&&a==="."||(l==0&&a===""?i=!0:a===".."?e++:a!=""&&r.push(a))}),r):[...r,o]},[]);return new La(i,e,n)}var sr=class{constructor(e,i,n){this.segmentGroup=e,this.processChildren=i,this.index=n}};function bx(t,e,i){if(t.isAbsolute)return new sr(e,!0,0);if(!i)return new sr(e,!1,NaN);if(i.parent===null)return new sr(i,!0,0);let n=Ra(t.commands[0])?0:1,r=i.segments.length-1+n;return _x(i,r,t.numberOfDoubleDots)}function _x(t,e,i){let n=t,r=e,o=i;for(;o>r;){if(o-=r,n=n.parent,!n)throw new A(4005,!1);r=n.segments.length}return new sr(n,!1,r-o)}function Sx(t){return co(t[0])?t[0].outlets:{[K]:t}}function sv(t,e,i){if(t??=new le([],{}),t.segments.length===0&&t.hasChildren())return oo(t,e,i);let n=Ix(t,e,i),r=i.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){let o=new le(t.segments.slice(0,n.pathIndex),{});return o.children[K]=new le(t.segments.slice(n.pathIndex),t.children),oo(o,0,r)}else return n.match&&r.length===0?new le(t.segments,{}):n.match&&!t.hasChildren()?Bd(t,e,i):n.match?oo(t,0,r):Bd(t,e,i)}function oo(t,e,i){if(i.length===0)return new le(t.segments,{});{let n=Sx(i),r={};if(Object.keys(n).some(o=>o!==K)&&t.children[K]&&t.numberOfChildren===1&&t.children[K].segments.length===0){let o=oo(t.children[K],e,i);return new le(t.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(r[o]=sv(t.children[o],e,s))}),Object.entries(t.children).forEach(([o,s])=>{n[o]===void 0&&(r[o]=s)}),new le(t.segments,r)}}function Ix(t,e,i){let n=0,r=e,o={match:!1,pathIndex:0,commandIndex:0};for(;r<t.segments.length;){if(n>=i.length)return o;let s=t.segments[r],a=i[n];if(co(a))break;let l=`${a}`,c=n<i.length-1?i[n+1]:null;if(r>0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!$0(l,c,s))return o;n+=2}else{if(!$0(l,{},s))return o;n++}r++}return{match:!0,pathIndex:r,commandIndex:n}}function Bd(t,e,i){let n=t.segments.slice(0,e),r=0;for(;r<i.length;){let o=i[r];if(co(o)){let l=wx(o.outlets);return new le(n,l)}if(r===0&&Ra(i[0])){let l=t.segments[e];n.push(new bi(l.path,U0(i[0]))),r++;continue}let s=co(o)?o.outlets[K]:`${o}`,a=r<i.length-1?i[r+1]:null;s&&a&&Ra(a)?(n.push(new bi(s,U0(a))),r+=2):(n.push(new bi(s,{})),r++)}return new le(n,{})}function wx(t){let e={};return Object.entries(t).forEach(([i,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(e[i]=Bd(new le([],{}),0,n))}),e}function U0(t){let e={};return Object.entries(t).forEach(([i,n])=>e[i]=`${n}`),e}function $0(t,e,i){return t==i.path&&Zt(e,i.parameters)}var so="imperative",je=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(je||{}),_t=class{constructor(e,i){this.id=e,this.url=i}},ur=class extends _t{constructor(e,i,n="imperative",r=null){super(e,i),this.type=je.NavigationStart,this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},dt=class extends _t{constructor(e,i,n){super(e,i),this.urlAfterRedirects=n,this.type=je.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},bt=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(bt||{}),Va=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Va||{}),Wn=class extends _t{constructor(e,i,n,r){super(e,i),this.reason=n,this.code=r,this.type=je.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},zn=class extends _t{constructor(e,i,n,r){super(e,i),this.reason=n,this.code=r,this.type=je.NavigationSkipped}},uo=class extends _t{constructor(e,i,n,r){super(e,i),this.error=n,this.target=r,this.type=je.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},ja=class extends _t{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=je.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ud=class extends _t{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=je.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},$d=class extends _t{constructor(e,i,n,r,o){super(e,i),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=o,this.type=je.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Hd=class extends _t{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=je.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Wd=class extends _t{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=je.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},zd=class{constructor(e){this.route=e,this.type=je.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Gd=class{constructor(e){this.route=e,this.type=je.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},qd=class{constructor(e){this.snapshot=e,this.type=je.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Yd=class{constructor(e){this.snapshot=e,this.type=je.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Zd=class{constructor(e){this.snapshot=e,this.type=je.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Kd=class{constructor(e){this.snapshot=e,this.type=je.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},dr=class{constructor(e,i,n){this.routerEvent=e,this.position=i,this.anchor=n,this.type=je.Scroll}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},po=class{},fo=class{constructor(e){this.url=e}};var Qd=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Co,this.attachRef=null}},Co=(()=>{let e=class e{constructor(){this.contexts=new Map}onChildOutletCreated(n,r){let o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){let r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new Qd,this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Ba=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let i=this.pathFromRoot(e);return i.length>1?i[i.length-2]:null}children(e){let i=Jd(e,this._root);return i?i.children.map(n=>n.value):[]}firstChild(e){let i=Jd(e,this._root);return i&&i.children.length>0?i.children[0].value:null}siblings(e){let i=Xd(e,this._root);return i.length<2?[]:i[i.length-2].children.map(r=>r.value).filter(r=>r!==e)}pathFromRoot(e){return Xd(e,this._root).map(i=>i.value)}};function Jd(t,e){if(t===e.value)return e;for(let i of e.children){let n=Jd(t,i);if(n)return n}return null}function Xd(t,e){if(t===e.value)return[e];for(let i of e.children){let n=Xd(t,i);if(n.length)return n.unshift(e),n}return[]}var ut=class{constructor(e,i){this.value=e,this.children=i}toString(){return`TreeNode(${this.value})`}};function or(t){let e={};return t&&t.children.forEach(i=>e[i.value.outlet]=i),e}var Ua=class extends Ba{constructor(e,i){super(e),this.snapshot=i,cp(this,e)}toString(){return this.snapshot.toString()}};function av(t){let e=xx(t),i=new oe([new bi("",{})]),n=new oe({}),r=new oe({}),o=new oe({}),s=new oe(""),a=new Gn(i,n,o,s,r,K,t,e.root);return a.snapshot=e.root,new Ua(new ut(a,[]),e)}function xx(t){let e={},i={},n={},r="",o=new ho([],e,n,r,i,K,t,null,{});return new $a("",new ut(o,[]))}var Gn=class{constructor(e,i,n,r,o,s,a,l){this.urlSubject=e,this.paramsSubject=i,this.queryParamsSubject=n,this.fragmentSubject=r,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(j(c=>c[yo]))??V(void 0),this.url=e,this.params=i,this.queryParams=n,this.fragment=r,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(j(e=>lr(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(j(e=>lr(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function lp(t,e,i="emptyOnly"){let n,{routeConfig:r}=t;return e!==null&&(i==="always"||r?.path===""||!e.component&&!e.routeConfig?.loadComponent)?n={params:E(E({},e.params),t.params),data:E(E({},e.data),t.data),resolve:E(E(E(E({},t.data),e.data),r?.data),t._resolvedData)}:n={params:E({},t.params),data:E({},t.data),resolve:E(E({},t.data),t._resolvedData??{})},r&&cv(r)&&(n.resolve[yo]=r.title),n}var ho=class{get title(){return this.data?.[yo]}constructor(e,i,n,r,o,s,a,l,c){this.url=e,this.params=i,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=lr(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=lr(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(n=>n.toString()).join("/"),i=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${i}')`}},$a=class extends Ba{constructor(e,i){super(i),this.url=e,cp(this,i)}toString(){return lv(this._root)}};function cp(t,e){e.value._routerState=t,e.children.forEach(i=>cp(t,i))}function lv(t){let e=t.children.length>0?` { ${t.children.map(lv).join(", ")} } `:"";return`${t.value}${e}`}function Nd(t){if(t.snapshot){let e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,Zt(e.queryParams,i.queryParams)||t.queryParamsSubject.next(i.queryParams),e.fragment!==i.fragment&&t.fragmentSubject.next(i.fragment),Zt(e.params,i.params)||t.paramsSubject.next(i.params),ex(e.url,i.url)||t.urlSubject.next(i.url),Zt(e.data,i.data)||t.dataSubject.next(i.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function ep(t,e){let i=Zt(t.params,e.params)&&rx(t.url,e.url),n=!t.parent!=!e.parent;return i&&!n&&(!t.parent||ep(t.parent,e.parent))}function cv(t){return typeof t.title=="string"||t.title===null}var Dx=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=K,this.activateEvents=new ve,this.deactivateEvents=new ve,this.attachEvents=new ve,this.detachEvents=new ve,this.parentContexts=b(Co),this.location=b(Rn),this.changeDetector=b(zt),this.environmentInjector=b(Ze),this.inputBinder=b(Ga,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:o}=n.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new A(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new A(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new A(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new A(4013,!1);this._activatedRoute=n;let o=this.location,a=n.snapshot.component,l=this.parentContexts.getOrCreateContext(this.name).children,c=new tp(n,l,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:c,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=ne({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[We]});let t=e;return t})(),tp=class{constructor(e,i,n){this.route=e,this.childContexts=i,this.parent=n}get(e,i){return e===Gn?this.route:e===Co?this.childContexts:this.parent.get(e,i)}},Ga=new F(""),H0=(()=>{let e=class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){let{activatedRoute:r}=n,o=_n([r.queryParams,r.params,r.data]).pipe($e(([s,a,l],c)=>(l=E(E(E({},s),a),l),c===0?V(l):Promise.resolve(l)))).subscribe(s=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(n);return}let a=Kg(r.component);if(!a){this.unsubscribeFromRouteData(n);return}for(let{templateName:l}of a.inputs)n.activatedComponentRef.setInput(l,s[l])});this.outletDataSubscriptions.set(n,o)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac});let t=e;return t})();function Ex(t,e,i){let n=mo(t,e._root,i?i._root:void 0);return new Ua(n,e)}function mo(t,e,i){if(i&&t.shouldReuseRoute(e.value,i.value.snapshot)){let n=i.value;n._futureSnapshot=e.value;let r=Mx(t,e,i);return new ut(n,r)}else{if(t.shouldAttach(e.value)){let o=t.retrieve(e.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>mo(t,a)),s}}let n=Tx(e.value),r=e.children.map(o=>mo(t,o));return new ut(n,r)}}function Mx(t,e,i){return e.children.map(n=>{for(let r of i.children)if(t.shouldReuseRoute(n.value,r.value.snapshot))return mo(t,n,r);return mo(t,n)})}function Tx(t){return new Gn(new oe(t.url),new oe(t.params),new oe(t.queryParams),new oe(t.fragment),new oe(t.data),t.outlet,t.component,t)}var uv="ngNavigationCancelingError";function dv(t,e){let{redirectTo:i,navigationBehaviorOptions:n}=cr(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,r=pv(!1,bt.Redirect);return r.url=i,r.navigationBehaviorOptions=n,r}function pv(t,e){let i=new Error(`NavigationCancelingError: ${t||""}`);return i[uv]=!0,i.cancellationCode=e,i}function Px(t){return fv(t)&&cr(t.url)}function fv(t){return!!t&&t[uv]}var Ox=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=se({type:e,selectors:[["ng-component"]],standalone:!0,features:[ae],decls:1,vars:0,template:function(r,o){r&1&&S(0,"router-outlet")},dependencies:[Dx],encapsulation:2});let t=e;return t})();function Ax(t,e){return t.providers&&!t._injector&&(t._injector=fa(t.providers,e,`Route: ${t.path}`)),t._injector??e}function up(t){let e=t.children&&t.children.map(up),i=e?he(E({},t),{children:e}):E({},t);return!i.component&&!i.loadComponent&&(e||i.loadChildren)&&i.outlet&&i.outlet!==K&&(i.component=Ox),i}function Kt(t){return t.outlet||K}function kx(t,e){let i=t.filter(n=>Kt(n)===e);return i.push(...t.filter(n=>Kt(n)!==e)),i}function bo(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let i=e.routeConfig;if(i?._loadedInjector)return i._loadedInjector;if(i?._injector)return i._injector}return null}var Nx=(t,e,i,n)=>j(r=>(new np(e,r.targetRouterState,r.currentRouterState,i,n).activate(t),r)),np=class{constructor(e,i,n,r,o){this.routeReuseStrategy=e,this.futureState=i,this.currState=n,this.forwardEvent=r,this.inputBindingEnabled=o}activate(e){let i=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(i,n,e),Nd(this.futureState.root),this.activateChildRoutes(i,n,e)}deactivateChildRoutes(e,i,n){let r=or(i);e.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,r[s],n),delete r[s]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(e,i,n){let r=e.value,o=i?i.value:null;if(r===o)if(r.component){let s=n.getContext(r.outlet);s&&this.deactivateChildRoutes(e,i,s.children)}else this.deactivateChildRoutes(e,i,n);else o&&this.deactivateRouteAndItsChildren(i,n)}deactivateRouteAndItsChildren(e,i){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,i):this.deactivateRouteAndOutlet(e,i)}detachAndStoreRouteSubtree(e,i){let n=i.getContext(e.value.outlet),r=n&&e.value.component?n.children:i,o=or(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,i){let n=i.getContext(e.value.outlet),r=n&&e.value.component?n.children:i,o=or(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,i,n){let r=or(i);e.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],n),this.forwardEvent(new Kd(o.value.snapshot))}),e.children.length&&this.forwardEvent(new Yd(e.value.snapshot))}activateRoutes(e,i,n){let r=e.value,o=i?i.value:null;if(Nd(r),r===o)if(r.component){let s=n.getOrCreateContext(r.outlet);this.activateChildRoutes(e,i,s.children)}else this.activateChildRoutes(e,i,n);else if(r.component){let s=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Nd(a.route.value),this.activateChildRoutes(e,null,s.children)}else{let a=bo(r.snapshot);s.attachRef=null,s.route=r,s.injector=a,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(e,null,s.children)}}else this.activateChildRoutes(e,null,n)}},Ha=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},ar=class{constructor(e,i){this.component=e,this.route=i}};function Fx(t,e,i){let n=t._root,r=e?e._root:null;return io(n,r,i,[n.value])}function Rx(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function hr(t,e){let i=Symbol(),n=e.get(t,i);return n===i?typeof t=="function"&&!Rh(t)?t:e.get(t):n}function io(t,e,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=or(e);return t.children.forEach(s=>{Lx(s,o[s.value.outlet],i,n.concat([s.value]),r),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>ao(a,i.getContext(s),r)),r}function Lx(t,e,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=e?e.value:null,a=i?i.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let l=Vx(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new Ha(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?io(t,e,a?a.children:null,n,r):io(t,e,i,n,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new ar(a.outlet.component,s))}else s&&ao(e,a,r),r.canActivateChecks.push(new Ha(n)),o.component?io(t,null,a?a.children:null,n,r):io(t,null,i,n,r);return r}function Vx(t,e,i){if(typeof i=="function")return i(t,e);switch(i){case"pathParamsChange":return!_i(t.url,e.url);case"pathParamsOrQueryParamsChange":return!_i(t.url,e.url)||!Zt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ep(t,e)||!Zt(t.queryParams,e.queryParams);case"paramsChange":default:return!ep(t,e)}}function ao(t,e,i){let n=or(t),r=t.value;Object.entries(n).forEach(([o,s])=>{r.component?e?ao(s,e.children.getContext(o),i):ao(s,null,i):ao(s,e,i)}),r.component?e&&e.outlet&&e.outlet.isActivated?i.canDeactivateChecks.push(new ar(e.outlet.component,r)):i.canDeactivateChecks.push(new ar(null,r)):i.canDeactivateChecks.push(new ar(null,r))}function _o(t){return typeof t=="function"}function jx(t){return typeof t=="boolean"}function Bx(t){return t&&_o(t.canLoad)}function Ux(t){return t&&_o(t.canActivate)}function $x(t){return t&&_o(t.canActivateChild)}function Hx(t){return t&&_o(t.canDeactivate)}function Wx(t){return t&&_o(t.canMatch)}function hv(t){return t instanceof tn||t?.name==="EmptyError"}var Aa=Symbol("INITIAL_VALUE");function pr(){return $e(t=>_n(t.map(e=>e.pipe(ht(1),Il(Aa)))).pipe(j(e=>{for(let i of e)if(i!==!0){if(i===Aa)return Aa;if(i===!1||i instanceof Hn)return i}return!0}),Re(e=>e!==Aa),ht(1)))}function zx(t,e){return Ce(i=>{let{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=i;return s.length===0&&o.length===0?V(he(E({},i),{guardsResult:!0})):Gx(s,n,r,t).pipe(Ce(a=>a&&jx(a)?qx(n,o,t,e):V(a)),j(a=>he(E({},i),{guardsResult:a})))})}function Gx(t,e,i,n){return me(t).pipe(Ce(r=>Jx(r.component,r.route,i,e,n)),It(r=>r!==!0,!0))}function qx(t,e,i,n){return me(e).pipe(nn(r=>In(Zx(r.route.parent,n),Yx(r.route,n),Qx(t,r.path,i),Kx(t,r.route,i))),It(r=>r!==!0,!0))}function Yx(t,e){return t!==null&&e&&e(new Zd(t)),V(!0)}function Zx(t,e){return t!==null&&e&&e(new qd(t)),V(!0)}function Kx(t,e,i){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return V(!0);let r=n.map(o=>rs(()=>{let s=bo(e)??i,a=hr(o,s),l=Ux(a)?a.canActivate(e,t):Ht(s,()=>a(e,t));return qn(l).pipe(It())}));return V(r).pipe(pr())}function Qx(t,e,i){let n=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(s=>Rx(s)).filter(s=>s!==null).map(s=>rs(()=>{let a=s.guards.map(l=>{let c=bo(s.node)??i,h=hr(l,c),m=$x(h)?h.canActivateChild(n,t):Ht(c,()=>h(n,t));return qn(m).pipe(It())});return V(a).pipe(pr())}));return V(o).pipe(pr())}function Jx(t,e,i,n,r){let o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||o.length===0)return V(!0);let s=o.map(a=>{let l=bo(e)??r,c=hr(a,l),h=Hx(c)?c.canDeactivate(t,e,i,n):Ht(l,()=>c(t,e,i,n));return qn(h).pipe(It())});return V(s).pipe(pr())}function Xx(t,e,i,n){let r=e.canLoad;if(r===void 0||r.length===0)return V(!0);let o=r.map(s=>{let a=hr(s,t),l=Bx(a)?a.canLoad(e,i):Ht(t,()=>a(e,i));return qn(l)});return V(o).pipe(pr(),mv(n))}function mv(t){return dl(ge(e=>{if(cr(e))throw dv(t,e)}),j(e=>e===!0))}function eD(t,e,i,n){let r=e.canMatch;if(!r||r.length===0)return V(!0);let o=r.map(s=>{let a=hr(s,t),l=Wx(a)?a.canMatch(e,i):Ht(t,()=>a(e,i));return qn(l)});return V(o).pipe(pr(),mv(n))}var go=class{constructor(e){this.segmentGroup=e||null}},Wa=class extends Error{constructor(e){super(),this.urlTree=e}};function rr(t){return Ai(new go(t))}function tD(t){return Ai(new A(4e3,!1))}function nD(t){return Ai(pv(!1,bt.GuardRejected))}var ip=class{constructor(e,i){this.urlSerializer=e,this.urlTree=i}lineralizeSegments(e,i){let n=[],r=i.root;for(;;){if(n=n.concat(r.segments),r.numberOfChildren===0)return V(n);if(r.numberOfChildren>1||!r.children[K])return tD(e.redirectTo);r=r.children[K]}}applyRedirectCommands(e,i,n){let r=this.applyRedirectCreateUrlTree(i,this.urlSerializer.parse(i),e,n);if(i.startsWith("/"))throw new Wa(r);return r}applyRedirectCreateUrlTree(e,i,n,r){let o=this.createSegmentGroup(e,i.root,n,r);return new Hn(o,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}createQueryParams(e,i){let n={};return Object.entries(e).forEach(([r,o])=>{if(typeof o=="string"&&o.startsWith(":")){let a=o.substring(1);n[r]=i[a]}else n[r]=o}),n}createSegmentGroup(e,i,n,r){let o=this.createSegments(e,i.segments,n,r),s={};return Object.entries(i.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(e,l,n,r)}),new le(o,s)}createSegments(e,i,n,r){return i.map(o=>o.path.startsWith(":")?this.findPosParam(e,o,r):this.findOrReturn(o,n))}findPosParam(e,i,n){let r=n[i.path.substring(1)];if(!r)throw new A(4001,!1);return r}findOrReturn(e,i){let n=0;for(let r of i){if(r.path===e.path)return i.splice(n),r;n++}return e}},rp={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function iD(t,e,i,n,r){let o=dp(t,e,i);return o.matched?(n=Ax(e,n),eD(n,e,i,r).pipe(j(s=>s===!0?o:E({},rp)))):V(o)}function dp(t,e,i){if(e.path==="**")return rD(i);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||i.length>0)?E({},rp):{matched:!0,consumedSegments:[],remainingSegments:i,parameters:{},positionalParamSegments:{}};let r=(e.matcher||Xw)(i,t,e);if(!r)return E({},rp);let o={};Object.entries(r.posParams??{}).forEach(([a,l])=>{o[a]=l.path});let s=r.consumed.length>0?E(E({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:i.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function rD(t){return{matched:!0,parameters:t.length>0?Y0(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function W0(t,e,i,n){return i.length>0&&aD(t,i,n)?{segmentGroup:new le(e,sD(n,new le(i,t.children))),slicedSegments:[]}:i.length===0&&lD(t,i,n)?{segmentGroup:new le(t.segments,oD(t,i,n,t.children)),slicedSegments:i}:{segmentGroup:new le(t.segments,t.children),slicedSegments:i}}function oD(t,e,i,n){let r={};for(let o of i)if(qa(t,e,o)&&!n[Kt(o)]){let s=new le([],{});r[Kt(o)]=s}return E(E({},n),r)}function sD(t,e){let i={};i[K]=e;for(let n of t)if(n.path===""&&Kt(n)!==K){let r=new le([],{});i[Kt(n)]=r}return i}function aD(t,e,i){return i.some(n=>qa(t,e,n)&&Kt(n)!==K)}function lD(t,e,i){return i.some(n=>qa(t,e,n))}function qa(t,e,i){return(t.hasChildren()||e.length>0)&&i.pathMatch==="full"?!1:i.path===""}function cD(t,e,i,n){return Kt(t)!==n&&(n===K||!qa(e,i,t))?!1:dp(e,t,i).matched}function uD(t,e,i){return e.length===0&&!t.children[i]}var op=class{};function dD(t,e,i,n,r,o,s="emptyOnly"){return new sp(t,e,i,n,r,s,o).recognize()}var pD=31,sp=class{constructor(e,i,n,r,o,s,a){this.injector=e,this.configLoader=i,this.rootComponentType=n,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new ip(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new A(4002,`'${e.segmentGroup}'`)}recognize(){let e=W0(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(j(i=>{let n=new ho([],Object.freeze({}),Object.freeze(E({},this.urlTree.queryParams)),this.urlTree.fragment,{},K,this.rootComponentType,null,{}),r=new ut(n,i),o=new $a("",r),s=yx(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(o._root,null),{state:o,tree:s}}))}match(e){return this.processSegmentGroup(this.injector,this.config,e,K).pipe(ft(n=>{if(n instanceof Wa)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof go?this.noMatchError(n):n}))}inheritParamsAndData(e,i){let n=e.value,r=lp(n,i,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),e.children.forEach(o=>this.inheritParamsAndData(o,n))}processSegmentGroup(e,i,n,r){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,i,n):this.processSegment(e,i,n,n.segments,r,!0).pipe(j(o=>o instanceof ut?[o]:[]))}processChildren(e,i,n){let r=[];for(let o of Object.keys(n.children))o==="primary"?r.unshift(o):r.push(o);return me(r).pipe(nn(o=>{let s=n.children[o],a=kx(i,o);return this.processSegmentGroup(e,a,s,o)}),Sl((o,s)=>(o.push(...s),o)),wn(null),_l(),Ce(o=>{if(o===null)return rr(n);let s=gv(o);return fD(s),V(s)}))}processSegment(e,i,n,r,o,s){return me(i).pipe(nn(a=>this.processSegmentAgainstRoute(a._injector??e,i,a,n,r,o,s).pipe(ft(l=>{if(l instanceof go)return V(null);throw l}))),It(a=>!!a),ft(a=>{if(hv(a))return uD(n,r,o)?V(new op):rr(n);throw a}))}processSegmentAgainstRoute(e,i,n,r,o,s,a){return cD(n,r,o,s)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,r,n,o,s):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,r,i,n,o,s):rr(r):rr(r)}expandSegmentAgainstRouteUsingRedirect(e,i,n,r,o,s){let{matched:a,consumedSegments:l,positionalParamSegments:c,remainingSegments:h}=dp(i,r,o);if(!a)return rr(i);r.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>pD&&(this.allowRedirects=!1));let m=this.applyRedirects.applyRedirectCommands(l,r.redirectTo,c);return this.applyRedirects.lineralizeSegments(r,m).pipe(Ce(v=>this.processSegment(e,n,i,v.concat(h),s,!1)))}matchSegmentAgainstRoute(e,i,n,r,o){let s=iD(i,n,r,e,this.urlSerializer);return n.path==="**"&&(i.children={}),s.pipe($e(a=>a.matched?(e=n._injector??e,this.getChildConfig(e,n,r).pipe($e(({routes:l})=>{let c=n._loadedInjector??e,{consumedSegments:h,remainingSegments:m,parameters:v}=a,C=new ho(h,v,Object.freeze(E({},this.urlTree.queryParams)),this.urlTree.fragment,mD(n),Kt(n),n.component??n._loadedComponent??null,n,gD(n)),{segmentGroup:I,slicedSegments:k}=W0(i,h,m,l);if(k.length===0&&I.hasChildren())return this.processChildren(c,l,I).pipe(j(O=>O===null?null:new ut(C,O)));if(l.length===0&&k.length===0)return V(new ut(C,[]));let L=Kt(n)===o;return this.processSegment(c,l,I,k,L?K:o,!0).pipe(j(O=>new ut(C,O instanceof ut?[O]:[])))}))):rr(i)))}getChildConfig(e,i,n){return i.children?V({routes:i.children,injector:e}):i.loadChildren?i._loadedRoutes!==void 0?V({routes:i._loadedRoutes,injector:i._loadedInjector}):Xx(e,i,n,this.urlSerializer).pipe(Ce(r=>r?this.configLoader.loadChildren(e,i).pipe(ge(o=>{i._loadedRoutes=o.routes,i._loadedInjector=o.injector})):nD(i))):V({routes:[],injector:e})}};function fD(t){t.sort((e,i)=>e.value.outlet===K?-1:i.value.outlet===K?1:e.value.outlet.localeCompare(i.value.outlet))}function hD(t){let e=t.value.routeConfig;return e&&e.path===""}function gv(t){let e=[],i=new Set;for(let n of t){if(!hD(n)){e.push(n);continue}let r=e.find(o=>n.value.routeConfig===o.value.routeConfig);r!==void 0?(r.children.push(...n.children),i.add(r)):e.push(n)}for(let n of i){let r=gv(n.children);e.push(new ut(n.value,r))}return e.filter(n=>!i.has(n))}function mD(t){return t.data||{}}function gD(t){return t.resolve||{}}function vD(t,e,i,n,r,o){return Ce(s=>dD(t,e,i,n,s.extractedUrl,r,o).pipe(j(({state:a,tree:l})=>he(E({},s),{targetSnapshot:a,urlAfterRedirects:l}))))}function yD(t,e){return Ce(i=>{let{targetSnapshot:n,guards:{canActivateChecks:r}}=i;if(!r.length)return V(i);let o=new Set(r.map(l=>l.route)),s=new Set;for(let l of o)if(!s.has(l))for(let c of vv(l))s.add(c);let a=0;return me(s).pipe(nn(l=>o.has(l)?CD(l,n,t,e):(l.data=lp(l,l.parent,t).resolve,V(void 0))),ge(()=>a++),ki(1),Ce(l=>a===s.size?V(i):pt))})}function vv(t){let e=t.children.map(i=>vv(i)).flat();return[t,...e]}function CD(t,e,i,n){let r=t.routeConfig,o=t._resolve;return r?.title!==void 0&&!cv(r)&&(o[yo]=r.title),bD(o,t,e,n).pipe(j(s=>(t._resolvedData=s,t.data=lp(t,t.parent,i).resolve,null)))}function bD(t,e,i,n){let r=Ld(t);if(r.length===0)return V({});let o={};return me(r).pipe(Ce(s=>_D(t[s],e,i,n).pipe(It(),ge(a=>{o[s]=a}))),ki(1),xr(o),ft(s=>hv(s)?pt:Ai(s)))}function _D(t,e,i,n){let r=bo(e)??n,o=hr(t,r),s=o.resolve?o.resolve(e,i):Ht(r,()=>o(e,i));return qn(s)}function Fd(t){return $e(e=>{let i=t(e);return i?me(i).pipe(j(()=>e)):V(e)})}var yv=(()=>{let e=class e{buildTitle(n){let r,o=n.root;for(;o!==void 0;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(s=>s.outlet===K);return r}getResolvedTitleForRoute(n){return n.data[yo]}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=x({token:e,factory:()=>b(SD),providedIn:"root"});let t=e;return t})(),SD=(()=>{let e=class e extends yv{constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}};e.\u0275fac=function(r){return new(r||e)(D(L0))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),So=new F("",{providedIn:"root",factory:()=>({})}),vo=new F(""),pp=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=b(ya)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return V(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let r=qn(n.loadComponent()).pipe(j(Cv),ge(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),xn(()=>{this.componentLoaders.delete(n)})),o=new Pi(r,()=>new De).pipe(Ti());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return V({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let s=ID(r,this.compiler,n,this.onLoadEndListener).pipe(xn(()=>{this.childrenLoaders.delete(r)})),a=new Pi(s,()=>new De).pipe(Ti());return this.childrenLoaders.set(r,a),a}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function ID(t,e,i,n){return qn(t.loadChildren()).pipe(j(Cv),Ce(r=>r instanceof Lr||Array.isArray(r)?V(r):me(e.compileModuleAsync(r))),j(r=>{n&&n(t);let o,s,a=!1;return Array.isArray(r)?(s=r,a=!0):(o=r.create(i).injector,s=o.get(vo,[],{optional:!0,self:!0}).flat()),{routes:s.map(up),injector:o}}))}function wD(t){return t&&typeof t=="object"&&"default"in t}function Cv(t){return wD(t)?t.default:t}var fp=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=x({token:e,factory:()=>b(xD),providedIn:"root"});let t=e;return t})(),xD=(()=>{let e=class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),bv=new F(""),_v=new F("");function DD(t,e,i){let n=t.get(_v),r=t.get(Ae);return t.get(de).runOutsideAngular(()=>{if(!r.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,Promise.resolve();let o,s=new Promise(c=>{o=c}),a=r.startViewTransition(()=>(o(),ED(t))),{onViewTransitionCreated:l}=n;return l&&Ht(t,()=>l({transition:a,from:e,to:i})),s})}function ED(t){return new Promise(e=>{Uu(e,{injector:t})})}var Ya=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new De,this.transitionAbortSubject=new De,this.configLoader=b(pp),this.environmentInjector=b(Ze),this.urlSerializer=b(fr),this.rootContexts=b(Co),this.location=b(er),this.inputBindingEnabled=b(Ga,{optional:!0})!==null,this.titleStrategy=b(yv),this.options=b(So,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=b(fp),this.createViewTransition=b(bv,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>V(void 0),this.rootComponentType=null;let n=o=>this.events.next(new zd(o)),r=o=>this.events.next(new Gd(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;this.transitions?.next(he(E(E({},this.transitions.value),n),{id:r}))}setupNavigations(n,r,o){return this.transitions=new oe({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:so,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Re(s=>s.id!==0),j(s=>he(E({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),$e(s=>{this.currentTransition=s;let a=!1,l=!1;return V(s).pipe(ge(c=>{this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?he(E({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),$e(c=>{let h=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),m=c.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!h&&m!=="reload"){let v="";return this.events.next(new zn(c.id,this.urlSerializer.serialize(c.rawUrl),v,Va.IgnoredSameUrlNavigation)),c.resolve(null),pt}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return V(c).pipe($e(v=>{let C=this.transitions?.getValue();return this.events.next(new ur(v.id,this.urlSerializer.serialize(v.extractedUrl),v.source,v.restoredState)),C!==this.transitions?.getValue()?pt:Promise.resolve(v)}),vD(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),ge(v=>{s.targetSnapshot=v.targetSnapshot,s.urlAfterRedirects=v.urlAfterRedirects,this.currentNavigation=he(E({},this.currentNavigation),{finalUrl:v.urlAfterRedirects});let C=new ja(v.id,this.urlSerializer.serialize(v.extractedUrl),this.urlSerializer.serialize(v.urlAfterRedirects),v.targetSnapshot);this.events.next(C)}));if(h&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:v,extractedUrl:C,source:I,restoredState:k,extras:L}=c,O=new ur(v,this.urlSerializer.serialize(C),I,k);this.events.next(O);let fe=av(this.rootComponentType).snapshot;return this.currentTransition=s=he(E({},c),{targetSnapshot:fe,urlAfterRedirects:C,extras:he(E({},L),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=C,V(s)}else{let v="";return this.events.next(new zn(c.id,this.urlSerializer.serialize(c.extractedUrl),v,Va.IgnoredByUrlHandlingStrategy)),c.resolve(null),pt}}),ge(c=>{let h=new Ud(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(h)}),j(c=>(this.currentTransition=s=he(E({},c),{guards:Fx(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),s)),zx(this.environmentInjector,c=>this.events.next(c)),ge(c=>{if(s.guardsResult=c.guardsResult,cr(c.guardsResult))throw dv(this.urlSerializer,c.guardsResult);let h=new $d(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(h)}),Re(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",bt.GuardRejected),!1)),Fd(c=>{if(c.guards.canActivateChecks.length)return V(c).pipe(ge(h=>{let m=new Hd(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(m)}),$e(h=>{let m=!1;return V(h).pipe(yD(this.paramsInheritanceStrategy,this.environmentInjector),ge({next:()=>m=!0,complete:()=>{m||this.cancelNavigationTransition(h,"",bt.NoDataFromResolver)}}))}),ge(h=>{let m=new Wd(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(m)}))}),Fd(c=>{let h=m=>{let v=[];m.routeConfig?.loadComponent&&!m.routeConfig._loadedComponent&&v.push(this.configLoader.loadComponent(m.routeConfig).pipe(ge(C=>{m.component=C}),j(()=>{})));for(let C of m.children)v.push(...h(C));return v};return _n(h(c.targetSnapshot.root)).pipe(wn(null),ht(1))}),Fd(()=>this.afterPreactivation()),$e(()=>{let{currentSnapshot:c,targetSnapshot:h}=s,m=this.createViewTransition?.(this.environmentInjector,c.root,h.root);return m?me(m).pipe(j(()=>s)):V(s)}),j(c=>{let h=Ex(n.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=s=he(E({},c),{targetRouterState:h}),this.currentNavigation.targetRouterState=h,s}),ge(()=>{this.events.next(new po)}),Nx(this.rootContexts,n.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),ht(1),ge({next:c=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new dt(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{a=!0}}),wl(this.transitionAbortSubject.pipe(ge(c=>{throw c}))),xn(()=>{!a&&!l&&this.cancelNavigationTransition(s,"",bt.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),ft(c=>{if(l=!0,fv(c))this.events.next(new Wn(s.id,this.urlSerializer.serialize(s.extractedUrl),c.message,c.cancellationCode)),Px(c)?this.events.next(new fo(c.url)):s.resolve(!1);else{this.events.next(new uo(s.id,this.urlSerializer.serialize(s.extractedUrl),c,s.targetSnapshot??void 0));try{s.resolve(n.errorHandler(c))}catch(h){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(h)}}return pt}))}))}cancelNavigationTransition(n,r,o){let s=new Wn(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(s),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function MD(t){return t!==so}var TD=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=x({token:e,factory:()=>b(PD),providedIn:"root"});let t=e;return t})(),ap=class{shouldDetach(e){return!1}store(e,i){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,i){return e.routeConfig===i.routeConfig}},PD=(()=>{let e=class e extends ap{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=at(e)))(o||e)}})(),e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Sv=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=x({token:e,factory:()=>b(OD),providedIn:"root"});let t=e;return t})(),OD=(()=>{let e=class e extends Sv{constructor(){super(...arguments),this.location=b(er),this.urlSerializer=b(fr),this.options=b(So,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=b(fp),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Hn,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=av(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{r.type==="popstate"&&n(r.url,r.state)})}handleRouterEvent(n,r){if(n instanceof ur)this.stateMemento=this.createStateMemento();else if(n instanceof zn)this.rawUrlTree=r.initialUrl;else if(n instanceof ja){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(o,r)}}else n instanceof po?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,r))):n instanceof Wn&&(n.code===bt.GuardRejected||n.code===bt.NoDataFromResolver)?this.restoreHistory(r):n instanceof uo?this.restoreHistory(r,!0):n instanceof dt&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){let o=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){let s=this.browserPageId,a=E(E({},r.extras.state),this.generateNgRouterState(r.id,s));this.location.replaceState(o,"",a)}else{let s=E(E({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(o,"",s)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,s=this.currentPageId-o;s!==0?this.location.historyGo(s):this.currentUrlTree===n.finalUrl&&s===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=at(e)))(o||e)}})(),e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ro=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(ro||{});function Iv(t,e){t.events.pipe(Re(i=>i instanceof dt||i instanceof Wn||i instanceof uo||i instanceof zn),j(i=>i instanceof dt||i instanceof zn?ro.COMPLETE:(i instanceof Wn?i.code===bt.Redirect||i.code===bt.SupersededByNewNavigation:!1)?ro.REDIRECTING:ro.FAILED),Re(i=>i!==ro.REDIRECTING),ht(1)).subscribe(()=>{e()})}function AD(t){throw t}var kD={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ND={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Ue=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=b(ga),this.stateManager=b(Sv),this.options=b(So,{optional:!0})||{},this.pendingTasks=b(gi),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=b(Ya),this.urlSerializer=b(fr),this.location=b(er),this.urlHandlingStrategy=b(fp),this._events=new De,this.errorHandler=this.options.errorHandler||AD,this.navigated=!1,this.routeReuseStrategy=b(TD),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=b(vo,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!b(Ga,{optional:!0}),this.eventsSubscription=new Ee,this.isNgZoneEnabled=b(de)instanceof de&&de.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let o=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(o!==null&&s!==null){if(this.stateManager.handleRouterEvent(r,s),r instanceof Wn&&r.code!==bt.Redirect&&r.code!==bt.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof dt)this.navigated=!0;else if(r instanceof fo){let a=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),l={info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||MD(o.source)};this.scheduleNavigation(a,so,null,l,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}RD(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),so,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",r)},0)})}navigateToSyncWithBrowser(n,r,o){let s={replaceUrl:!0},a=o?.navigationId?o:null;if(o){let c=E({},o);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(s.state=c)}let l=this.parseUrl(n);this.scheduleNavigation(l,r,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(up),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,r={}){let{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:l,preserveFragment:c}=r,h=c?this.currentUrlTree.fragment:a,m=null;switch(l){case"merge":m=E(E({},this.currentUrlTree.queryParams),s);break;case"preserve":m=this.currentUrlTree.queryParams;break;default:m=s||null}m!==null&&(m=this.removeEmptyProps(m));let v;try{let C=o?o.snapshot:this.routerState.snapshot.root;v=iv(C)}catch{(typeof n[0]!="string"||!n[0].startsWith("/"))&&(n=[]),v=this.currentUrlTree.root}return rv(v,n,m,h??null)}navigateByUrl(n,r={skipLocationChange:!1}){let o=cr(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,so,null,r)}navigate(n,r={skipLocationChange:!1}){return FD(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,r){let o;if(r===!0?o=E({},kD):r===!1?o=E({},ND):o=r,cr(n))return j0(this.currentUrlTree,n,o);let s=this.parseUrl(n);return j0(this.currentUrlTree,s,o)}removeEmptyProps(n){return Object.entries(n).reduce((r,[o,s])=>(s!=null&&(r[o]=s),r),{})}scheduleNavigation(n,r,o,s,a){if(this.disposed)return Promise.resolve(!1);let l,c,h;a?(l=a.resolve,c=a.reject,h=a.promise):h=new Promise((v,C)=>{l=v,c=C});let m=this.pendingTasks.add();return Iv(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(m))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:s,resolve:l,reject:c,promise:h,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),h.catch(v=>Promise.reject(v))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function FD(t){for(let e=0;e<t.length;e++)if(t[e]==null)throw new A(4008,!1)}function RD(t){return!(t instanceof po)&&!(t instanceof fo)}var Qt=(()=>{let e=class e{constructor(n,r,o,s,a,l){this.router=n,this.route=r,this.tabIndexAttribute=o,this.renderer=s,this.el=a,this.locationStrategy=l,this.href=null,this.commands=null,this.onChanges=new De,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let c=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=n.events.subscribe(h=>{h instanceof dt&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){n!=null?(this.commands=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(n,r,o,s,a){let l=this.urlTree;if(l===null||this.isAnchorElement&&(n!==0||r||o||s||a||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(l,c),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let n=this.urlTree;this.href=n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n)):null;let r=this.href===null?null:Am(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(n,r){let o=this.renderer,s=this.el.nativeElement;r!==null?o.setAttribute(s,n,r):o.removeAttribute(s,n)}get urlTree(){return this.commands===null?null:this.router.createUrlTree(this.commands,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};e.\u0275fac=function(r){return new(r||e)(_(Ue),_(Gn),Su("tabindex"),_(Be),_(Oe),_(mn))},e.\u0275dir=ne({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,o){r&1&&N("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),r&2&&Wt("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[be.HasDecoratorInputTransform,"preserveFragment","preserveFragment",vt],skipLocationChange:[be.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",vt],replaceUrl:[be.HasDecoratorInputTransform,"replaceUrl","replaceUrl",vt],routerLink:"routerLink"},standalone:!0,features:[pa,We]});let t=e;return t})(),LD=(()=>{let e=class e{get isActive(){return this._isActive}constructor(n,r,o,s,a){this.router=n,this.element=r,this.renderer=o,this.cdr=s,this.link=a,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new ve,this.routerEventsSubscription=n.events.subscribe(l=>{l instanceof dt&&this.update()})}ngAfterContentInit(){V(this.links.changes,V(null)).pipe(Sn()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let n=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=me(n).pipe(Sn()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(n){let r=Array.isArray(n)?n:n.split(" ");this.classes=r.filter(o=>!!o)}ngOnChanges(n){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let n=this.hasActiveLinks();this._isActive!==n&&(this._isActive=n,this.cdr.markForCheck(),this.classes.forEach(r=>{n?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),n&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(n))})}isLinkActive(n){let r=VD(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>{let s=o.urlTree;return s?n.isActive(s,r):!1}}hasActiveLinks(){let n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}};e.\u0275fac=function(r){return new(r||e)(_(Ue),_(Oe),_(Be),_(zt),_(Qt,8))},e.\u0275dir=ne({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(r,o,s){if(r&1&&Vg(s,Qt,5),r&2){let a;Ln(a=Vn())&&(o.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[We]});let t=e;return t})();function VD(t){return!!t.paths}var za=class{};var jD=(()=>{let e=class e{constructor(n,r,o,s,a){this.router=n,this.injector=o,this.preloadingStrategy=s,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(Re(n=>n instanceof dt),nn(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){let o=[];for(let s of r){s.providers&&!s._injector&&(s._injector=fa(s.providers,n,`Route: ${s.path}`));let a=s._injector??n,l=s._loadedInjector??a;(s.loadChildren&&!s._loadedRoutes&&s.canLoad===void 0||s.loadComponent&&!s._loadedComponent)&&o.push(this.preloadConfig(a,s)),(s.children||s._loadedRoutes)&&o.push(this.processRoutes(l,s.children??s._loadedRoutes))}return me(o).pipe(Sn())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let o;r.loadChildren&&r.canLoad===void 0?o=this.loader.loadChildren(n,r):o=V(null);let s=o.pipe(Ce(a=>a===null?V(void 0):(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,this.processRoutes(a.injector??n,a.routes))));if(r.loadComponent&&!r._loadedComponent){let a=this.loader.loadComponent(r);return me([s,a]).pipe(Sn())}else return s})}};e.\u0275fac=function(r){return new(r||e)(D(Ue),D(ya),D(Ze),D(za),D(pp))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),hp=new F(""),wv=(()=>{let e=class e{constructor(n,r,o,s,a={}){this.urlSerializer=n,this.transitions=r,this.viewportScroller=o,this.zone=s,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof ur?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof dt?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof zn&&n.code===Va.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof dr&&(n.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(n.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new dr(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(r){Km()},e.\u0275prov=x({token:e,factory:e.\u0275fac});let t=e;return t})();function LR(t,...e){return Fn([{provide:vo,multi:!0,useValue:t},[],{provide:Gn,useFactory:xv,deps:[Ue]},{provide:yi,multi:!0,useFactory:Dv},e.map(i=>i.\u0275providers)])}function xv(t){return t.routerState.root}function mr(t,e){return{\u0275kind:t,\u0275providers:e}}function VR(t={}){return mr(4,[{provide:hp,useFactory:()=>{let i=b(Yr),n=b(de),r=b(Ya),o=b(fr);return new wv(o,r,i,n,t)}}])}function Dv(){let t=b(Mt);return e=>{let i=t.get(Bn);if(e!==i.components[0])return;let n=t.get(Ue),r=t.get(Ev);t.get(mp)===1&&n.initialNavigation(),t.get(Mv,null,J.Optional)?.setUpPreloading(),t.get(hp,null,J.Optional)?.init(),n.resetRootComponentType(i.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var Ev=new F("",{factory:()=>new De}),mp=new F("",{providedIn:"root",factory:()=>1});function BD(){return mr(2,[{provide:mp,useValue:0},{provide:va,multi:!0,deps:[Mt],useFactory:e=>{let i=e.get(r0,Promise.resolve());return()=>i.then(()=>new Promise(n=>{let r=e.get(Ue),o=e.get(Ev);Iv(r,()=>{n(!0)}),e.get(Ya).afterPreactivation=()=>(n(!0),o.closed?V(void 0):o),r.initialNavigation()}))}}])}function UD(){return mr(3,[{provide:va,multi:!0,useFactory:()=>{let e=b(Ue);return()=>{e.setUpLocationChangeListener()}}},{provide:mp,useValue:2}])}var Mv=new F("");function $D(t){return mr(0,[{provide:Mv,useExisting:jD},{provide:za,useExisting:t}])}function HD(){return mr(8,[H0,{provide:Ga,useExisting:H0}])}function WD(t){let e=[{provide:bv,useValue:DD},{provide:_v,useValue:E({skipNextTransition:!!t?.skipInitialTransition},t)}];return mr(9,e)}var z0=new F("ROUTER_FORROOT_GUARD"),zD=[er,{provide:fr,useClass:lo},Ue,Co,{provide:Gn,useFactory:xv,deps:[Ue]},pp,[]],Io=(()=>{let e=class e{constructor(n){}static forRoot(n,r){return{ngModule:e,providers:[zD,[],{provide:vo,multi:!0,useValue:n},{provide:z0,useFactory:ZD,deps:[[Ue,new zr,new ea]]},{provide:So,useValue:r||{}},r?.useHash?qD():YD(),GD(),r?.preloadingStrategy?$D(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?KD(r):[],r?.bindToComponentInputs?HD().\u0275providers:[],r?.enableViewTransitions?WD().\u0275providers:[],QD()]}}static forChild(n){return{ngModule:e,providers:[{provide:vo,multi:!0,useValue:n}]}}};e.\u0275fac=function(r){return new(r||e)(D(z0,8))},e.\u0275mod=jt({type:e}),e.\u0275inj=$t({});let t=e;return t})();function GD(){return{provide:hp,useFactory:()=>{let t=b(Yr),e=b(de),i=b(So),n=b(Ya),r=b(fr);return i.scrollOffset&&t.setOffset(i.scrollOffset),new wv(r,n,t,e,i)}}}function qD(){return{provide:mn,useClass:s0}}function YD(){return{provide:mn,useClass:fd}}function ZD(t){return"guarded"}function KD(t){return[t.initialNavigation==="disabled"?UD().\u0275providers:[],t.initialNavigation==="enabledBlocking"?BD().\u0275providers:[]]}var G0=new F("");function QD(){return[{provide:G0,useFactory:Dv},{provide:yi,multi:!0,useExisting:G0}]}var Vv=(()=>{let e=class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}};e.\u0275fac=function(r){return new(r||e)(_(Be),_(Oe))},e.\u0275dir=ne({type:e});let t=e;return t})(),To=(()=>{let e=class e extends Vv{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=at(e)))(o||e)}})(),e.\u0275dir=ne({type:e,features:[ze]});let t=e;return t})(),yr=new F(""),XD={provide:yr,useExisting:et(()=>vp),multi:!0},vp=(()=>{let e=class e extends To{writeValue(n){this.setProperty("checked",n)}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=at(e)))(o||e)}})(),e.\u0275dir=ne({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,o){r&1&&N("change",function(a){return o.onChange(a.target.checked)})("blur",function(){return o.onTouched()})},features:[gt([XD]),ze]});let t=e;return t})(),eE={provide:yr,useExisting:et(()=>Yn),multi:!0};function tE(){let t=Gt()?Gt().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var nE=new F(""),Yn=(()=>{let e=class e extends Vv{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!tE())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}};e.\u0275fac=function(r){return new(r||e)(_(Be),_(Oe),_(nE,8))},e.\u0275dir=ne({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,o){r&1&&N("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[gt([eE]),ze]});let t=e;return t})();function Eo(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}function iE(t){return t!=null&&typeof t.length=="number"}var Cr=new F(""),jv=new F("");function rE(t){return e=>{if(Eo(e.value)||Eo(t))return null;let i=parseFloat(e.value);return!isNaN(i)&&i<t?{min:{min:t,actual:e.value}}:null}}function oE(t){return e=>{if(Eo(e.value)||Eo(t))return null;let i=parseFloat(e.value);return!isNaN(i)&&i>t?{max:{max:t,actual:e.value}}:null}}function sE(t){return Eo(t.value)?{required:!0}:null}function aE(t){return e=>iE(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}function Tv(t){return null}function Bv(t){return t!=null}function Uv(t){return jn(t)?me(t):t}function $v(t){let e={};return t.forEach(i=>{e=i!=null?E(E({},e),i):e}),Object.keys(e).length===0?null:e}function Hv(t,e){return e.map(i=>i(t))}function lE(t){return!t.validate}function Wv(t){return t.map(e=>lE(e)?e:i=>e.validate(i))}function cE(t){if(!t)return null;let e=t.filter(Bv);return e.length==0?null:function(i){return $v(Hv(i,e))}}function yp(t){return t!=null?cE(Wv(t)):null}function uE(t){if(!t)return null;let e=t.filter(Bv);return e.length==0?null:function(i){let n=Hv(i,e).map(Uv);return yl(n).pipe(j($v))}}function Cp(t){return t!=null?uE(Wv(t)):null}function Pv(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function dE(t){return t._rawValidators}function pE(t){return t._rawAsyncValidators}function gp(t){return t?Array.isArray(t)?t:[t]:[]}function Ka(t,e){return Array.isArray(t)?t.includes(e):t===e}function Ov(t,e){let i=gp(e);return gp(t).forEach(r=>{Ka(i,r)||i.push(r)}),i}function Av(t,e){return gp(e).filter(i=>!Ka(t,i))}var Qa=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=yp(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Cp(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,i){return this.control?this.control.hasError(e,i):!1}getError(e,i){return this.control?this.control.getError(e,i):null}},vr=class extends Qa{get formDirective(){return null}get path(){return null}},Mo=class extends Qa{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Ja=class{constructor(e){this._cd=e}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}},fE={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},tL=he(E({},fE),{"[class.ng-submitted]":"isSubmitted"}),br=(()=>{let e=class e extends Ja{constructor(n){super(n)}};e.\u0275fac=function(r){return new(r||e)(_(Mo,2))},e.\u0275dir=ne({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&ha("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[ze]});let t=e;return t})(),Zn=(()=>{let e=class e extends Ja{constructor(n){super(n)}};e.\u0275fac=function(r){return new(r||e)(_(vr,10))},e.\u0275dir=ne({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,o){r&2&&ha("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[ze]});let t=e;return t})();var wo="VALID",Za="INVALID",gr="PENDING",xo="DISABLED";function zv(t){return(tl(t)?t.validators:t)||null}function hE(t){return Array.isArray(t)?yp(t):t||null}function Gv(t,e){return(tl(e)?e.asyncValidators:t)||null}function mE(t){return Array.isArray(t)?Cp(t):t||null}function tl(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function gE(t,e,i){let n=t.controls;if(!(e?Object.keys(n):n).length)throw new A(1e3,"");if(!n[i])throw new A(1001,"")}function vE(t,e,i){t._forEachChild((n,r)=>{if(i[r]===void 0)throw new A(1002,"")})}var Xa=class{constructor(e,i){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(i)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===wo}get invalid(){return this.status===Za}get pending(){return this.status==gr}get disabled(){return this.status===xo}get enabled(){return this.status!==xo}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(Ov(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Ov(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(Av(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(Av(e,this._rawAsyncValidators))}hasValidator(e){return Ka(this._rawValidators,e)}hasAsyncValidator(e){return Ka(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(i=>{i.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=gr,e.emitEvent!==!1&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){let i=this._parentMarkedDirty(e.onlySelf);this.status=xo,this.errors=null,this._forEachChild(n=>{n.disable(he(E({},e),{onlySelf:!0}))}),this._updateValue(),e.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(he(E({},e),{skipPristineCheck:i})),this._onDisabledChange.forEach(n=>n(!0))}enable(e={}){let i=this._parentMarkedDirty(e.onlySelf);this.status=wo,this._forEachChild(n=>{n.enable(he(E({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(he(E({},e),{skipPristineCheck:i})),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===wo||this.status===gr)&&this._runAsyncValidator(e.emitEvent)),e.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(i=>i._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?xo:wo}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=gr,this._hasOwnPendingAsyncValidator=!0;let i=Uv(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,i={}){this.errors=e,this._updateControlsErrors(i.emitEvent!==!1)}get(e){let i=e;return i==null||(Array.isArray(i)||(i=i.split(".")),i.length===0)?null:i.reduce((n,r)=>n&&n._find(r),this)}getError(e,i){let n=i?this.get(i):this;return n&&n.errors?n.errors[e]:null}hasError(e,i){return!!this.getError(e,i)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new ve,this.statusChanges=new ve}_calculateStatus(){return this._allControlsDisabled()?xo:this.errors?Za:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(gr)?gr:this._anyControlsHaveStatus(Za)?Za:wo}_anyControlsHaveStatus(e){return this._anyControls(i=>i.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){tl(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let i=this._parent&&this._parent.dirty;return!e&&!!i&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=hE(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=mE(this._rawAsyncValidators)}},el=class extends Xa{constructor(e,i,n){super(zv(i),Gv(n,i)),this.controls=e,this._initObservables(),this._setUpdateStrategy(i),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,i){return this.controls[e]?this.controls[e]:(this.controls[e]=i,i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange),i)}addControl(e,i,n={}){this.registerControl(e,i),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(e,i={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}setControl(e,i,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],i&&this.registerControl(e,i),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,i={}){vE(this,!0,e),Object.keys(e).forEach(n=>{gE(this,!0,n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i)}patchValue(e,i={}){e!=null&&(Object.keys(e).forEach(n=>{let r=this.controls[n];r&&r.patchValue(e[n],{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i))}reset(e={},i={}){this._forEachChild((n,r)=>{n.reset(e?e[r]:null,{onlySelf:!0,emitEvent:i.emitEvent})}),this._updatePristine(i),this._updateTouched(i),this.updateValueAndValidity(i)}getRawValue(){return this._reduceChildren({},(e,i,n)=>(e[n]=i.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(i,n)=>n._syncPendingControls()?!0:i);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(i=>{let n=this.controls[i];n&&e(n,i)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[i,n]of Object.entries(this.controls))if(this.contains(i)&&e(n))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(i,n,r)=>((n.enabled||this.disabled)&&(i[r]=n.value),i))}_reduceChildren(e,i){let n=e;return this._forEachChild((r,o)=>{n=i(n,r,o)}),n}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var bp=new F("CallSetDisabledState",{providedIn:"root",factory:()=>_p}),_p="always";function yE(t,e){return[...e.path,t]}function qv(t,e,i=_p){Yv(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||i==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),bE(t,e),SE(t,e),_E(t,e),CE(t,e)}function kv(t,e){t.forEach(i=>{i.registerOnValidatorChange&&i.registerOnValidatorChange(e)})}function CE(t,e){if(e.valueAccessor.setDisabledState){let i=n=>{e.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(i),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(i)})}}function Yv(t,e){let i=dE(t);e.validator!==null?t.setValidators(Pv(i,e.validator)):typeof i=="function"&&t.setValidators([i]);let n=pE(t);e.asyncValidator!==null?t.setAsyncValidators(Pv(n,e.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let r=()=>t.updateValueAndValidity();kv(e._rawValidators,r),kv(e._rawAsyncValidators,r)}function bE(t,e){e.valueAccessor.registerOnChange(i=>{t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&Zv(t,e)})}function _E(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&Zv(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function Zv(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function SE(t,e){let i=(n,r)=>{e.valueAccessor.writeValue(n),r&&e.viewToModelUpdate(n)};t.registerOnChange(i),e._registerOnDestroy(()=>{t._unregisterOnChange(i)})}function IE(t,e){t==null,Yv(t,e)}function wE(t,e){if(!t.hasOwnProperty("model"))return!1;let i=t.model;return i.isFirstChange()?!0:!Object.is(e,i.currentValue)}function xE(t){return Object.getPrototypeOf(t.constructor)===To}function DE(t,e){t._syncPendingControls(),e.forEach(i=>{let n=i.control;n.updateOn==="submit"&&n._pendingChange&&(i.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function EE(t,e){if(!e)return null;Array.isArray(e);let i,n,r;return e.forEach(o=>{o.constructor===Yn?i=o:xE(o)?n=o:r=o}),r||n||i||null}var ME={provide:vr,useExisting:et(()=>vn)},Do=Promise.resolve(),vn=(()=>{let e=class e extends vr{constructor(n,r,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._directives=new Set,this.ngSubmit=new ve,this.form=new el({},yp(n),Cp(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){Do.then(()=>{let r=this._findContainer(n.path);n.control=r.registerControl(n.name,n.control),qv(n.control,n,this.callSetDisabledState),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){Do.then(()=>{let r=this._findContainer(n.path);r&&r.removeControl(n.name),this._directives.delete(n)})}addFormGroup(n){Do.then(()=>{let r=this._findContainer(n.path),o=new el({});IE(o,n),r.registerControl(n.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){Do.then(()=>{let r=this._findContainer(n.path);r&&r.removeControl(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,r){Do.then(()=>{this.form.get(n.path).setValue(r)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submitted=!0,DE(this.form,this._directives),this.ngSubmit.emit(n),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submitted=!1}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(n){return n.pop(),n.length?this.form.get(n):this.form}};e.\u0275fac=function(r){return new(r||e)(_(Cr,10),_(jv,10),_(bp,8))},e.\u0275dir=ne({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(r,o){r&1&&N("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{options:[be.None,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[gt([ME]),ze]});let t=e;return t})();function Nv(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}function Fv(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var TE=class extends Xa{constructor(e=null,i,n){super(zv(i),Gv(n,i)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(i),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),tl(i)&&(i.nonNullable||i.initialValueIsDefault)&&(Fv(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,i={}){this.value=this._pendingValue=e,this._onChange.length&&i.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,i.emitViewToModelChange!==!1)),this.updateValueAndValidity(i)}patchValue(e,i={}){this.setValue(e,i)}reset(e=this.defaultValue,i={}){this._applyFormState(e),this.markAsPristine(i),this.markAsUntouched(i),this.setValue(this.value,i),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){Nv(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){Nv(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){Fv(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var PE={provide:Mo,useExisting:et(()=>Si)},Rv=Promise.resolve(),Si=(()=>{let e=class e extends Mo{constructor(n,r,o,s,a,l){super(),this._changeDetectorRef=a,this.callSetDisabledState=l,this.control=new TE,this._registered=!1,this.name="",this.update=new ve,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=EE(this,s)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),wE(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){qv(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){Rv.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,o=r!==0&&vt(r);Rv.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?yE(n,this._parent):[n]}};e.\u0275fac=function(r){return new(r||e)(_(vr,9),_(Cr,10),_(jv,10),_(yr,10),_(zt,8),_(bp,8))},e.\u0275dir=ne({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[be.None,"disabled","isDisabled"],model:[be.None,"ngModel","model"],options:[be.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[gt([PE]),ze,We]});let t=e;return t})(),Kn=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=ne({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let t=e;return t})(),OE={provide:yr,useExisting:et(()=>Sp),multi:!0},Sp=(()=>{let e=class e extends To{writeValue(n){let r=n??"";this.setProperty("value",r)}registerOnChange(n){this.onChange=r=>{n(r==""?null:parseFloat(r))}}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=at(e)))(o||e)}})(),e.\u0275dir=ne({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(r,o){r&1&&N("input",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},features:[gt([OE]),ze]});let t=e;return t})();var AE={provide:yr,useExisting:et(()=>nl),multi:!0};function Kv(t,e){return t==null?`${e}`:(e&&typeof e=="object"&&(e="Object"),`${t}: ${e}`.slice(0,50))}function kE(t){return t.split(":")[0]}var nl=(()=>{let e=class e extends To{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){this.value=n;let r=this._getOptionId(n),o=Kv(r,n);this.setProperty("value",o)}registerOnChange(n){this.onChange=r=>{this.value=this._getOptionValue(r),n(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(n){for(let r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r),n))return r;return null}_getOptionValue(n){let r=kE(n);return this._optionMap.has(r)?this._optionMap.get(r):n}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=at(e)))(o||e)}})(),e.\u0275dir=ne({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(r,o){r&1&&N("change",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},features:[gt([AE]),ze]});let t=e;return t})(),Qv=(()=>{let e=class e{constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(n){this._select!=null&&(this._select._optionMap.set(this.id,n),this._setElementValue(Kv(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._setElementValue(n),this._select&&this._select.writeValue(this._select.value)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}};e.\u0275fac=function(r){return new(r||e)(_(Oe),_(Be),_(nl,9))},e.\u0275dir=ne({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});let t=e;return t})(),NE={provide:yr,useExisting:et(()=>Jv),multi:!0};function Lv(t,e){return t==null?`${e}`:(typeof e=="string"&&(e=`'${e}'`),e&&typeof e=="object"&&(e="Object"),`${t}: ${e}`.slice(0,50))}function FE(t){return t.split(":")[0]}var Jv=(()=>{let e=class e extends To{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){this.value=n;let r;if(Array.isArray(n)){let o=n.map(s=>this._getOptionId(s));r=(s,a)=>{s._setSelected(o.indexOf(a.toString())>-1)}}else r=(o,s)=>{o._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(n){this.onChange=r=>{let o=[],s=r.selectedOptions;if(s!==void 0){let a=s;for(let l=0;l<a.length;l++){let c=a[l],h=this._getOptionValue(c.value);o.push(h)}}else{let a=r.options;for(let l=0;l<a.length;l++){let c=a[l];if(c.selected){let h=this._getOptionValue(c.value);o.push(h)}}}this.value=o,n(o)}}_registerOption(n){let r=(this._idCounter++).toString();return this._optionMap.set(r,n),r}_getOptionId(n){for(let r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r)._value,n))return r;return null}_getOptionValue(n){let r=FE(n);return this._optionMap.has(r)?this._optionMap.get(r)._value:n}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=at(e)))(o||e)}})(),e.\u0275dir=ne({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(r,o){r&1&&N("change",function(a){return o.onChange(a.target)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},features:[gt([NE]),ze]});let t=e;return t})(),Xv=(()=>{let e=class e{constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){this._select!=null&&(this._value=n,this._setElementValue(Lv(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(Lv(this.id,n)),this._select.writeValue(this._select.value)):this._setElementValue(n)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}_setSelected(n){this._renderer.setProperty(this._element.nativeElement,"selected",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}};e.\u0275fac=function(r){return new(r||e)(_(Oe),_(Be),_(Jv,9))},e.\u0275dir=ne({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});let t=e;return t})();function RE(t){return typeof t=="number"?t:parseInt(t,10)}function ey(t){return typeof t=="number"?t:parseFloat(t)}var il=(()=>{let e=class e{constructor(){this._validator=Tv}ngOnChanges(n){if(this.inputName in n){let r=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):Tv,this._onChange&&this._onChange()}}validate(n){return this._validator(n)}registerOnValidatorChange(n){this._onChange=n}enabled(n){return n!=null}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=ne({type:e,features:[We]});let t=e;return t})(),LE={provide:Cr,useExisting:et(()=>Ip),multi:!0},Ip=(()=>{let e=class e extends il{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=n=>ey(n),this.createValidator=n=>oE(n)}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=at(e)))(o||e)}})(),e.\u0275dir=ne({type:e,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(r,o){r&2&&Wt("max",o._enabled?o.max:null)},inputs:{max:"max"},features:[gt([LE]),ze]});let t=e;return t})(),VE={provide:Cr,useExisting:et(()=>wp),multi:!0},wp=(()=>{let e=class e extends il{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=n=>ey(n),this.createValidator=n=>rE(n)}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=at(e)))(o||e)}})(),e.\u0275dir=ne({type:e,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(r,o){r&2&&Wt("min",o._enabled?o.min:null)},inputs:{min:"min"},features:[gt([VE]),ze]});let t=e;return t})(),jE={provide:Cr,useExisting:et(()=>_r),multi:!0};var _r=(()=>{let e=class e extends il{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=vt,this.createValidator=n=>sE}enabled(n){return n}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=at(e)))(o||e)}})(),e.\u0275dir=ne({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(r,o){r&2&&Wt("required",o._enabled?"":null)},inputs:{required:"required"},features:[gt([jE]),ze]});let t=e;return t})();var BE={provide:Cr,useExisting:et(()=>rl),multi:!0},rl=(()=>{let e=class e extends il{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=n=>RE(n),this.createValidator=n=>aE(n)}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=at(e)))(o||e)}})(),e.\u0275dir=ne({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(r,o){r&2&&Wt("maxlength",o._enabled?o.maxlength:null)},inputs:{maxlength:"maxlength"},features:[gt([BE]),ze]});let t=e;return t})();var UE=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=jt({type:e}),e.\u0275inj=$t({});let t=e;return t})();var Jt=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:bp,useValue:n.callSetDisabledState??_p}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=jt({type:e}),e.\u0275inj=$t({imports:[UE]});let t=e;return t})();function HE(t,e){t&1&&(d(0,"div",2)(1,"p",8),g(2,"Uploading..."),p()())}function WE(t,e){if(t&1){let i=X();d(0,"div",9)(1,"div",2)(2,"p",10),g(3),d(4,"a",11),g(5,"Download"),p(),g(6,")"),p()(),d(7,"div",2)(8,"button",12),N("click",function(){M(i);let r=y();return T(r.DiscardUpload())}),g(9,"Remove"),p()()()}if(t&2){let i=y();u(3),Ve("",i.FileToUpload==null?null:i.FileToUpload.name," ("),u(),f("href",i.FileDownloadUrl,ue)}}function zE(t,e){if(t&1&&(d(0,"div"),S(1,"img",3),p()),t&2){let i=y(2);u(),f("src","assets/name-"+i.IconColour+".png",ue)("height",i.IconHeight)("width",i.IconWidth)}}function GE(t,e){if(t&1&&(d(0,"div"),S(1,"img",4),p()),t&2){let i=y(2);u(),f("src","assets/email-"+i.IconColour+".png",ue)("height",i.IconHeight)("width",i.IconWidth)}}function qE(t,e){if(t&1&&(d(0,"div"),S(1,"img",5),p()),t&2){let i=y(2);u(),f("src","assets/phone-"+i.IconColour+".png",ue)("height",i.IconHeight)("width",i.IconWidth)}}function YE(t,e){if(t&1&&(d(0,"div"),S(1,"img",6),p()),t&2){let i=y(2);u(),f("src","assets/map-marker-"+i.IconColour+".png",ue)("height",i.IconHeight)("width",i.IconWidth)}}function ZE(t,e){if(t&1&&(d(0,"div"),S(1,"img",7),p()),t&2){let i=y(2);u(),f("src","assets/social/twitter-"+i.IconColour+".png",ue)("height",i.IconHeight+5)("width",i.IconWidth+5)}}function KE(t,e){if(t&1&&(d(0,"div"),S(1,"img",8),p()),t&2){let i=y(2);u(),f("src","assets/social/facebook-"+i.IconColour+".png",ue)("height",i.IconHeight+5)("width",i.IconWidth+5)}}function QE(t,e){if(t&1&&(d(0,"div"),S(1,"img",9),p()),t&2){let i=y(2);u(),f("src","assets/social/pinterest-"+i.IconColour+".png",ue)("height",i.IconHeight+5)("width",i.IconWidth+5)}}function JE(t,e){if(t&1&&(d(0,"div"),S(1,"img",10),p()),t&2){let i=y(2);u(),f("src","assets/social/linkedin-"+i.IconColour+".png",ue)("height",i.IconHeight+5)("width",i.IconWidth+5)}}function XE(t,e){if(t&1&&(d(0,"div"),S(1,"img",11),p()),t&2){let i=y(2);u(),f("src","assets/social/instagram-"+i.IconColour+".png",ue)("height",i.IconHeight+5)("width",i.IconWidth+5)}}function eM(t,e){if(t&1&&(d(0,"div"),S(1,"img",12),p()),t&2){let i=y(2);u(),f("src","assets/social/youtube-"+i.IconColour+".png",ue)("height",i.IconHeight+5)("width",i.IconWidth+5)}}function tM(t,e){if(t&1&&(d(0,"div"),S(1,"img",13),p()),t&2){let i=y(2);u(),f("src","assets/social/spotify-"+i.IconColour+".png",ue)("height",i.IconHeight+5)("width",i.IconWidth+5)}}function nM(t,e){if(t&1&&(d(0,"div"),S(1,"img",14),p()),t&2){let i=y(2);u(),f("src","assets/social/whatsapp-"+i.IconColour+".png",ue)("height",i.IconHeight+5)("width",i.IconWidth+5)}}function iM(t,e){if(t&1&&(d(0,"div"),S(1,"img",15),p()),t&2){let i=y(2);u(),f("src","assets/social/tiktok-"+i.IconColour+".png",ue)("height",i.IconHeight+5)("width",i.IconWidth+5)}}function rM(t,e){if(t&1&&(d(0,"div",1),w(1,zE,2,3,"div",2)(2,GE,2,3,"div",2)(3,qE,2,3,"div",2)(4,YE,2,3,"div",2)(5,ZE,2,3,"div",2)(6,KE,2,3,"div",2)(7,QE,2,3,"div",2)(8,JE,2,3,"div",2)(9,XE,2,3,"div",2)(10,eM,2,3,"div",2)(11,tM,2,3,"div",2)(12,nM,2,3,"div",2)(13,iM,2,3,"div",2),p()),t&2){let i=y();u(),f("ngIf",i.type==="NAME"),u(),f("ngIf",i.type==="EMAIL"),u(),f("ngIf",i.type==="PHONE"),u(),f("ngIf",i.type==="ADDRESS"),u(),f("ngIf",i.type==="TWITTER"),u(),f("ngIf",i.type==="FACEBOOK"),u(),f("ngIf",i.type==="PINTEREST"),u(),f("ngIf",i.type==="LINKEDIN"),u(),f("ngIf",i.type==="INSTAGRAM"),u(),f("ngIf",i.type==="YOUTUBE"),u(),f("ngIf",i.type==="SPOTIFY"),u(),f("ngIf",i.type==="WHATSAPP"),u(),f("ngIf",i.type==="TIKTOK")}}var oM=(t,e)=>({"btn-lg":t,"btn-sm":e}),Ne=t=>({"background-color":t}),yn=t=>({"text-danger":t});function sM(t,e){if(t&1){let i=X();d(0,"div",3)(1,"form",4,5),N("ngSubmit",function(){M(i);let r=Y(2),o=y();return T(o.ContactSubmit(r.value,r.valid))}),d(3,"div",6)(4,"div",7)(5,"div",8)(6,"input",9,10),$("ngModelChange",function(r){M(i);let o=y();return H(o.Contact.Name,r)||(o.Contact.Name=r),T(r)}),p(),d(8,"label",11),g(9,"Name"),p()(),d(10,"div",12)(11,"small",13)(12,"i"),g(13,"Name is required."),p()()(),d(14,"div",14)(15,"input",15,16),$("ngModelChange",function(r){M(i);let o=y();return H(o.Contact.Email,r)||(o.Contact.Email=r),T(r)}),p(),d(17,"label",17),g(18,"Email"),p()(),d(19,"div",12)(20,"small",13)(21,"i"),g(22,"Email is required."),p()()(),d(23,"div",14)(24,"input",18,19),$("ngModelChange",function(r){M(i);let o=y();return H(o.Contact.Phone,r)||(o.Contact.Phone=r),T(r)}),p(),d(26,"label",20),g(27,"Phone (optional)"),p()(),d(28,"app-file-uploader",21),N("Uploading",function(r){M(i);let o=y();return T(o.FileUploading(r))})("Uploaded",function(r){M(i);let o=y();return T(o.FileUploaded(r))}),p(),d(29,"div",14)(30,"textarea",22,23),$("ngModelChange",function(r){M(i);let o=y();return H(o.Contact.Message,r)||(o.Contact.Message=r),T(r)}),p(),d(32,"label",24),g(33,"Message"),p()(),d(34,"div",12)(35,"small",13)(36,"i"),g(37,"Message is required."),p()()()()(),d(38,"div",25)(39,"div",26)(40,"button",27),g(41),p()(),d(42,"div",26)(43,"p",28),g(44),p()()()()()}if(t&2){let i=Y(2),n=Y(7),r=Y(16),o=Y(31),s=y();f("ngStyle",Z(16,Ne,s.BackgroundColour)),u(6),U("ngModel",s.Contact.Name),u(4),f("hidden",n.valid||n.pristine&&!i.submitted),u(),f("ngClass",Z(18,yn,s.FormInvalid)),u(4),U("ngModel",s.Contact.Email),u(4),f("hidden",r.valid||r.pristine&&!i.submitted),u(),f("ngClass",Z(20,yn,s.FormInvalid)),u(4),U("ngModel",s.Contact.Phone),u(4),f("WebsiteId",s.WebsiteId),u(2),U("ngModel",s.Contact.Message),u(4),f("hidden",o.valid||o.pristine&&!i.submitted),u(),f("ngClass",Z(22,yn,s.FormInvalid)),u(5),f("disabled",s.UploadInProgress||s.SubmitInProgress),u(),P(s.SubmitButtonText),u(2),f("readableTextColour",s.BackgroundColour),u(),Ve(" ",s.SubmitMessageResult," ")}}function aM(t,e){if(t&1){let i=X();d(0,"div")(1,"form",29,5),N("ngSubmit",function(){M(i);let r=Y(2),o=y();return T(o.ContactSubmit(r.value,r.valid))}),d(3,"div",30)(4,"div",31)(5,"div",8)(6,"input",15,16),$("ngModelChange",function(r){M(i);let o=y();return H(o.Contact.Email,r)||(o.Contact.Email=r),T(r)}),p(),d(8,"label",17),g(9,"Email"),p()()(),d(10,"div",31)(11,"div",8)(12,"input",18,19),$("ngModelChange",function(r){M(i);let o=y();return H(o.Contact.Phone,r)||(o.Contact.Phone=r),T(r)}),p(),d(14,"label",20),g(15,"Phone (optional)"),p()()()(),d(16,"div",14)(17,"textarea",32,23),$("ngModelChange",function(r){M(i);let o=y();return H(o.Contact.Message,r)||(o.Contact.Message=r),T(r)}),p(),d(19,"label",24),g(20,"Message"),p()(),d(21,"div",12)(22,"small",13)(23,"i"),g(24,"Message is required."),p()()(),d(25,"div",25)(26,"div",26)(27,"button",27),g(28),p()(),d(29,"div",26)(30,"p",28),g(31),p()()()()()}if(t&2){let i=Y(2),n=Y(18),r=y();u(6),U("ngModel",r.Contact.Email),u(6),U("ngModel",r.Contact.Phone),u(5),U("ngModel",r.Contact.Message),u(4),f("hidden",n.valid||n.pristine&&!i.submitted),u(),f("ngClass",Z(9,yn,r.FormInvalid)),u(5),f("disabled",r.UploadInProgress||r.SubmitInProgress),u(),P(r.SubmitButtonText),u(2),f("readableTextColour",r.BackgroundColour),u(),Ve(" ",r.SubmitMessageResult," ")}}var lM=t=>({"border-color":t});function cM(t,e){if(t&1){let i=X();d(0,"div",33)(1,"form",4,5),N("ngSubmit",function(){M(i);let r=Y(2),o=y();return T(o.ContactSubmit(r.value,r.valid))}),d(3,"div",6)(4,"div",7)(5,"div",34)(6,"div",35),S(7,"app-icon-image",36),p(),d(8,"div",8)(9,"input",9,10),$("ngModelChange",function(r){M(i);let o=y();return H(o.Contact.Name,r)||(o.Contact.Name=r),T(r)}),p(),d(11,"label",11),g(12,"Name"),p()()(),d(13,"div",12)(14,"small",13)(15,"i"),g(16,"Name is required."),p()()(),d(17,"div",37)(18,"div",35),S(19,"app-icon-image",36),p(),d(20,"div",8)(21,"input",15,16),$("ngModelChange",function(r){M(i);let o=y();return H(o.Contact.Email,r)||(o.Contact.Email=r),T(r)}),p(),d(23,"label",17),g(24,"Email"),p()()(),d(25,"div",12)(26,"small",13)(27,"i"),g(28,"Email is required."),p()()(),d(29,"div",37)(30,"div",35),S(31,"app-icon-image",36),p(),d(32,"div",8)(33,"input",38,19),$("ngModelChange",function(r){M(i);let o=y();return H(o.Contact.Phone,r)||(o.Contact.Phone=r),T(r)}),p(),d(35,"label",20),g(36,"Phone"),p()()(),d(37,"div",12)(38,"small",13)(39,"i"),g(40,"Phone is required."),p()()(),d(41,"div",37)(42,"div",35),S(43,"app-icon-image",36),p(),d(44,"div",8)(45,"input",39,40),$("ngModelChange",function(r){M(i);let o=y();return H(o.Contact.Address,r)||(o.Contact.Address=r),T(r)}),p(),d(47,"label",41),g(48,"Address"),p()()(),d(49,"div",12)(50,"small",13)(51,"i"),g(52,"Address is required."),p()()(),d(53,"div",14)(54,"textarea",42,23),$("ngModelChange",function(r){M(i);let o=y();return H(o.Contact.Message,r)||(o.Contact.Message=r),T(r)}),p(),d(56,"label",24),g(57,"Message"),p()(),d(58,"div",12)(59,"small",13)(60,"i"),g(61,"Message is required."),p()()()()(),d(62,"div",43)(63,"div",26)(64,"app-website-button",44),N("Click",function(){M(i);let r=Y(2),o=y();return T(o.ContactSubmit(r.value,r.valid))}),p()(),d(65,"div",7)(66,"p",45),g(67),p()()()()()}if(t&2){let i=Y(2),n=Y(10),r=Y(22),o=Y(34),s=Y(46),a=Y(55),l=y();f("ngStyle",Z(31,lM,l.BackgroundColour)),u(7),f("type","NAME")("primaryColour","#ffffff"),u(2),U("ngModel",l.Contact.Name),u(4),f("hidden",n.valid||n.pristine&&!i.submitted),u(),f("ngClass",Z(33,yn,l.FormInvalid)),u(5),f("type","EMAIL")("primaryColour","#ffffff"),u(2),U("ngModel",l.Contact.Email),u(4),f("hidden",r.valid||r.pristine&&!i.submitted),u(),f("ngClass",Z(35,yn,l.FormInvalid)),u(5),f("type","PHONE")("primaryColour","#ffffff"),u(2),U("ngModel",l.Contact.Phone),u(4),f("hidden",o.valid||o.pristine&&!i.submitted),u(),f("ngClass",Z(37,yn,l.FormInvalid)),u(5),f("type","ADDRESS")("primaryColour","#ffffff"),u(2),U("ngModel",l.Contact.Address),u(4),f("hidden",s.valid||s.pristine&&!i.submitted),u(),f("ngClass",Z(39,yn,l.FormInvalid)),u(4),U("ngModel",l.Contact.Message),u(4),f("hidden",a.valid||a.pristine&&!i.submitted),u(),f("ngClass",Z(41,yn,l.FormInvalid)),u(5),f("ButtonText",l.SubmitButtonText)("ButtonSize","lg")("ButtonType","submit")("PrimaryColour",l.BackgroundColour)("SecondaryColour",l.SecondaryColour)("Disabled",l.UploadInProgress||l.SubmitInProgress),u(3),Ve(" ",l.SubmitMessageResult," ")}}function uM(t,e){if(t&1&&(d(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"p",5),g(5," Website Preview: "),d(6,"a",6),g(7),p()(),d(8,"p",5)(9,"a",7),g(10,"Edit your Website"),p()(),d(11,"p",8),S(12,"img",9),g(13,"\xA0 "),d(14,"small"),g(15,"Made using the "),d(16,"a",10),g(17,"Dazzly website builder"),p()()()()()()()),t&2){let i=y();u(6),f("href",i.TemplateURL,ue),u(),P(i.TemplateName)}}var Qn=()=>({format:"auto"});function dM(t,e){t&1&&(d(0,"p",16),g(1,"Please enter a valid email address."),p())}var Dp=(t,e)=>({"text-success":t,"text-danger":e});function pM(t,e){if(t&1){let i=X();d(0,"div",1)(1,"div",2)(2,"div",3)(3,"h3"),g(4,"\u2014 Subscribe to our Newsletter \u2014"),p()()(),d(5,"div",4)(6,"div",5)(7,"form",6,7),N("ngSubmit",function(){M(i);let r=Y(8),o=y();return T(o.NewsletterSubscribeSubmit(r.value,r.valid))}),d(9,"div",8)(10,"div",9)(11,"input",10,11),$("ngModelChange",function(r){M(i);let o=y();return H(o.SubscribeToNewsletter.SubscribeToNewsletterEmail,r)||(o.SubscribeToNewsletter.SubscribeToNewsletterEmail=r),T(r)}),p(),d(13,"button",12),g(14),p()(),d(15,"div",13)(16,"small")(17,"i"),g(18,"Email is required."),p()()()(),w(19,dM,2,0,"p",14),d(20,"p",15),g(21),p()()()()()}if(t&2){let i=Y(8),n=Y(12),r=y();u(11),U("ngModel",r.SubscribeToNewsletter.SubscribeToNewsletterEmail),u(2),f("ngStyle",Z(9,Ne,r.PrimaryColour))("readableTextColour",r.PrimaryColour)("disabled",r.SubmitButtonText!=="Subscribe"),u(),P(r.SubmitButtonText),u(),f("hidden",n.valid||n.pristine&&!i.submitted||r.SubmitSuccess),u(4),f("ngIf",r.FormInvalid),u(),f("ngClass",vi(11,Dp,r.SubmitSuccess,!r.SubmitSuccess)),u(),P(r.SubmitMessageResult)}}function fM(t,e){t&1&&(d(0,"p",29),g(1,"Please enter a valid email address."),p())}function hM(t,e){if(t&1){let i=X();d(0,"div",1)(1,"div",2)(2,"div",17)(3,"p",18),g(4,"Join our mailing list"),p()(),d(5,"div",19)(6,"form",6,7),N("ngSubmit",function(){M(i);let r=Y(7),o=y();return T(o.NewsletterSubscribeSubmit(r.value,r.valid))}),d(8,"div",20)(9,"div",21)(10,"div",22),g(11,"@"),p(),d(12,"input",10,11),$("ngModelChange",function(r){M(i);let o=y();return H(o.SubscribeToNewsletter.SubscribeToNewsletterEmail,r)||(o.SubscribeToNewsletter.SubscribeToNewsletterEmail=r),T(r)}),p()()(),d(14,"div",23)(15,"div",24)(16,"button",25),g(17),p()(),d(18,"div",26),w(19,fM,2,0,"p",27),d(20,"p",28),g(21),p()()()()()()()}if(t&2){let i=y();u(2),f("ngStyle",Z(10,Ne,i.SecondaryColour)),u(),f("readableTextColour",i.SecondaryColour),u(9),U("ngModel",i.SubscribeToNewsletter.SubscribeToNewsletterEmail),u(4),f("ngStyle",Z(12,Ne,i.PrimaryColour))("readableTextColour",i.PrimaryColour)("disabled",i.SubmitButtonText!=="Subscribe"),u(),P(i.SubmitButtonText),u(2),f("ngIf",i.FormInvalid),u(),f("ngClass",vi(14,Dp,i.SubmitSuccess,!i.SubmitSuccess)),u(),P(i.SubmitMessageResult)}}function mM(t,e){if(t&1){let i=X();d(0,"div",1)(1,"p",30),g(2,"Subscribe to our Newsletter"),p(),d(3,"div",2)(4,"div",26)(5,"form",6,7),N("ngSubmit",function(){M(i);let r=Y(6),o=y();return T(o.NewsletterSubscribeSubmit(r.value,r.valid))}),d(7,"div",31)(8,"input",10,11),$("ngModelChange",function(r){M(i);let o=y();return H(o.SubscribeToNewsletter.SubscribeToNewsletterEmail,r)||(o.SubscribeToNewsletter.SubscribeToNewsletterEmail=r),T(r)}),p(),d(10,"button",12),g(11),p()(),d(12,"div",13)(13,"small",32),g(14,"Please enter a valid email address."),p()(),d(15,"p",33),g(16),p()()()()()}if(t&2){let i=Y(6),n=Y(9),r=y();u(),f("readableTextColour",r.PrimaryColour),u(7),U("ngModel",r.SubscribeToNewsletter.SubscribeToNewsletterEmail),u(2),f("ngStyle",Z(10,Ne,r.SecondaryColour))("readableTextColour",r.SecondaryColour)("disabled",r.SubmitButtonText!=="Subscribe"),u(),P(r.SubmitButtonText),u(),f("hidden",n.valid||n.pristine&&!i.submitted||r.SubmitSuccess),u(),f("readableTextColour",r.PrimaryColour),u(2),f("ngClass",vi(12,Dp,r.SubmitSuccess,!r.SubmitSuccess)),u(),P(r.SubmitMessageResult)}}function gM(t,e){if(t&1){let i=X();d(0,"div",2)(1,"a",3),N("click",function(){M(i);let r=y();return T(r.Track("twitter-click","social-media-icons-group"))}),S(2,"app-icon-image",4),p()()}if(t&2){let i=y();u(),f("href",i.Twitter,ue),u(),f("type","TWITTER")("primaryColour",i.BackgroundColour)}}function vM(t,e){if(t&1){let i=X();d(0,"div",2)(1,"a",3),N("click",function(){M(i);let r=y();return T(r.Track("facebook-click","social-media-icons-group"))}),S(2,"app-icon-image",4),p()()}if(t&2){let i=y();u(),f("href",i.Facebook,ue),u(),f("type","FACEBOOK")("primaryColour",i.BackgroundColour)}}function yM(t,e){if(t&1){let i=X();d(0,"div",2)(1,"a",3),N("click",function(){M(i);let r=y();return T(r.Track("pinterest-click","social-media-icons-group"))}),S(2,"app-icon-image",4),p()()}if(t&2){let i=y();u(),f("href",i.Pinterest,ue),u(),f("type","PINTEREST")("primaryColour",i.BackgroundColour)}}function CM(t,e){if(t&1){let i=X();d(0,"div",2)(1,"a",3),N("click",function(){M(i);let r=y();return T(r.Track("linkedin-click","social-media-icons-group"))}),S(2,"app-icon-image",4),p()()}if(t&2){let i=y();u(),f("href",i.LinkedIn,ue),u(),f("type","LINKEDIN")("primaryColour",i.BackgroundColour)}}function bM(t,e){if(t&1){let i=X();d(0,"div",2)(1,"a",3),N("click",function(){M(i);let r=y();return T(r.Track("instagram-click","social-media-icons-group"))}),S(2,"app-icon-image",4),p()()}if(t&2){let i=y();u(),f("href",i.Instagram,ue),u(),f("type","INSTAGRAM")("primaryColour",i.BackgroundColour)}}function _M(t,e){if(t&1){let i=X();d(0,"div",2)(1,"a",3),N("click",function(){M(i);let r=y();return T(r.Track("youtube-click","social-media-icons-group"))}),S(2,"app-icon-image",4),p()()}if(t&2){let i=y();u(),f("href",i.YouTube,ue),u(),f("type","YOUTUBE")("primaryColour",i.BackgroundColour)}}function SM(t,e){if(t&1){let i=X();d(0,"div",2)(1,"a",3),N("click",function(){M(i);let r=y();return T(r.Track("spotify-click","social-media-icons-group"))}),S(2,"app-icon-image",4),p()()}if(t&2){let i=y();u(),f("href",i.Spotify,ue),u(),f("type","SPOTIFY")("primaryColour",i.BackgroundColour)}}function IM(t,e){if(t&1){let i=X();d(0,"div",2)(1,"a",3),N("click",function(){M(i);let r=y();return T(r.Track("whatsapp-click","social-media-icons-group"))}),S(2,"app-icon-image",4),p()()}if(t&2){let i=y();u(),f("href",i.WhatsApp,ue),u(),f("type","WHATSAPP")("primaryColour",i.BackgroundColour)}}function wM(t,e){if(t&1){let i=X();d(0,"div",2)(1,"a",3),N("click",function(){M(i);let r=y();return T(r.Track("tiktok-click","social-media-icons-group"))}),S(2,"app-icon-image",4),p()()}if(t&2){let i=y();u(),f("href",i.TikTok,ue),u(),f("type","TIKTOK")("primaryColour",i.BackgroundColour)}}function xM(t,e){if(t&1&&S(0,"img",11),t&2){let i=y().$implicit;f("src",i.Image==null?null:i.Image.URL,ue)("alt",i.Image==null?null:i.Image.Name)}}function DM(t,e){if(t&1&&(d(0,"div",4)(1,"div",5)(2,"div",6)(3,"div",7),w(4,xM,1,2,"img",8),p(),d(5,"p",9)(6,"strong"),g(7),p()(),S(8,"app-wysiwyg-wrapper",10),p()()()),t&2){let i=e.$implicit;u(4),f("ngIf",i.Image.URL),u(3),P(i.Title),u(),f("html",i.Description)}}function EM(t,e){if(t&1&&(d(0,"div",2),w(1,DM,9,3,"div",3),R(2,"sortByOrder"),p()),t&2){let i=y();u(),f("ngForOf",ie(2,1,i.Staff))}}function MM(t,e){if(t&1&&S(0,"img",21),t&2){let i=y().$implicit;f("ngSrc",i.Image==null?null:i.Image.URL)("alt",i.Image==null?null:i.Image.Name)("loaderParams",fn(3,Qn))}}function TM(t,e){if(t&1&&(d(0,"div",16)(1,"div",17)(2,"div",18)(3,"div",19),w(4,MM,1,4,"img",20),p(),d(5,"p",9)(6,"strong"),g(7),p()(),S(8,"app-wysiwyg-wrapper",10),p()()()),t&2){let i=e.$implicit;u(4),f("ngIf",i.Image.URL),u(3),P(i.Title),u(),f("html",i.Description)}}function PM(t,e){if(t&1&&(d(0,"div",12)(1,"div",13)(2,"div",14),w(3,TM,9,3,"div",15),R(4,"sortByOrder"),p()()()),t&2){let i=y();u(3),f("ngForOf",ie(4,1,i.Staff))}}var OM=t=>({"text-light":t});var AM=t=>({"shoppingcart-preview-active":t});function kM(t,e){if(t&1&&(d(0,"p",17),g(1),R(2,"formatPrice"),p()),t&2){let i=y().$implicit,n=y(2);u(),P(Ie(2,1,i.Price,n.EcommerceSettings==null||n.EcommerceSettings.Currency==null?null:n.EcommerceSettings.Currency.Code))}}function NM(t,e){if(t&1&&(d(0,"div",10)(1,"div",11)(2,"a",12),S(3,"img",13),p(),d(4,"div",14)(5,"p")(6,"strong"),g(7),R(8,"decodeHtml"),p()(),d(9,"p",15),g(10,"\u2014"),p(),w(11,kM,3,4,"p",16),p()()()),t&2){let i=e.$implicit;u(2),Se("routerLink","/products/",i.Slug,""),u(),f("ngSrc",i.Image.URL)("alt",i.Image.Name)("loaderParams",fn(8,Qn)),u(4),P(ie(8,6,i.Name)),u(4),f("ngIf",i.Price)}}var FM=t=>({active:t});function RM(t,e){if(t&1&&(d(0,"div",8),w(1,NM,12,9,"div",9),p()),t&2){let i=e.$implicit,n=e.index;f("ngClass",Z(2,FM,n===0)),u(),f("ngForOf",i)}}function LM(t,e){if(t&1&&(d(0,"div",8)(1,"small",9),g(2),R(3,"decodeHtml"),p()()),t&2){let i=y().$implicit,n=y();Wt("aria-label",i.caption),u(),f("ngStyle",Z(6,Ne,n.BackgroundColour))("readableTextColour",n.BackgroundColour),u(),P(ie(3,4,i.caption))}}function VM(t,e){if(t&1&&(d(0,"div",2)(1,"div",3),S(2,"img",4),d(3,"div",5)(4,"div",6),w(5,LM,4,8,"div",7),p()()()()),t&2){let i=e.$implicit;u(2),f("src",i.src,ue)("alt",i.caption||"Gallery Image"),u(3),f("ngIf",i.caption)}}var Ep=t=>({color:t});function jM(t,e){if(t&1){let i=X();d(0,"li")(1,"a",7),N("click",function(){let o=M(i).$implicit,s=y();return T(s.SelectCategory(o))}),g(2),R(3,"decodeHtml"),p()()}if(t&2){let i=e.$implicit,n=y();u(),f("ngStyle",Z(4,Ep,n.PrimaryColour)),u(),Ve(" ",ie(3,2,i.Name)," ")}}var BM=t=>({"product-filter-container-sticky":t});function UM(t,e){if(t&1&&(d(0,"span",14),g(1),p()),t&2){let i=y().$implicit;u(),P(i.Flags)}}function $M(t,e){if(t&1){let i=X();d(0,"div",1)(1,"div",15)(2,"button",16),N("click",function(){M(i);let r=y().$implicit,o=y();return T(o.AddToCart(r))}),g(3),p()()()}if(t&2){let i=y().$implicit,n=y();u(2),f("ngStyle",Z(3,Ne,n.PrimaryColour))("readableTextColour",n.PrimaryColour),u(),P(i.AddToCartButtonText||"ADD TO CART")}}function HM(t,e){if(t&1&&(d(0,"div",3)(1,"div",4)(2,"a",5),S(3,"img",6),w(4,UM,2,1,"span",7),p(),d(5,"div",8)(6,"p",9)(7,"a",10),g(8),R(9,"decodeHtml"),p()(),d(10,"p",11),g(11,"\xA0\xA0\xA0"),p(),d(12,"p",12),g(13),R(14,"formatPrice"),p(),w(15,$M,4,5,"div",13),p()()()),t&2){let i=e.$implicit,n=y();u(2),Se("routerLink","/products/",i.Slug,""),u(),f("ngSrc",i.Image==null?null:i.Image.URL)("alt",i.Image==null?null:i.Image.Name)("loaderParams",fn(15,Qn)),u(),f("ngIf",i.Flags!=="none"),u(3),Se("routerLink","/products/",i.Slug,""),f("ngStyle",Z(16,Ep,n.PrimaryColour)),u(),P(ie(9,10,i.Name)),u(5),P(Ie(14,12,i.Price,n.Currency)),u(2),f("ngIf",!i.Variations||!i.Variations.Variations||i.Variations.Variations.length<1)}}function WM(t,e){t&1&&(d(0,"span"),g(1," Please wait... "),d(2,"div",7),S(3,"div",8),p()())}function zM(t,e){t&1&&(d(0,"span"),g(1,"Complete Purchase"),p())}function GM(t,e){t&1&&(d(0,"span"),g(1,"Please wait..."),p())}function qM(t,e){t&1&&(d(0,"span"),g(1,"Complete Order"),p())}function YM(t,e){t&1&&(d(0,"div")(1,"p",10),S(2,"span",11),p(),d(3,"p",10),S(4,"span",12),p(),d(5,"p",10),S(6,"span",13)(7,"span",13),p(),d(8,"p",10),S(9,"span",12),p(),d(10,"p"),S(11,"a",14),p()())}function ZM(t,e){t&1&&(d(0,"span"),g(1," Please wait... "),d(2,"div",15),S(3,"div",16),p()())}function KM(t,e){t&1&&(d(0,"span"),g(1,"Complete Purchase"),p())}function QM(t,e){t&1&&(d(0,"span"),g(1,"Please wait..."),p())}function JM(t,e){t&1&&(d(0,"span"),g(1,"Complete Order"),p())}var XM=["scrollAnchor"];function eT(t,e){if(t&1&&(d(0,"div",78)(1,"div",16)(2,"h5",79),g(3,"Important"),p(),d(4,"p",80),g(5),p()()()),t&2){let i=y();u(2),f("readableTextColour",i.PrimaryColour),u(3),P(i.EcommerceSettings.CheckoutMessage)}}function tT(t,e){if(t&1){let i=X();d(0,"div",81)(1,"div",26)(2,"input",82,83),$("ngModelChange",function(r){M(i);let o=y();return H(o.IsPickup,r)||(o.IsPickup=r),T(r)}),p(),d(4,"label",84),g(5," I want to pickup (Click & Collect) "),p()()()}if(t&2){let i=y();u(2),U("ngModel",i.IsPickup)}}function nT(t,e){if(t&1&&(d(0,"option",85),g(1),p()),t&2){let i=e.$implicit;f("ngValue",i),u(),P(i.name)}}function iT(t,e){if(t&1&&(d(0,"option",85),g(1),p()),t&2){let i=e.$implicit;f("ngValue",i),u(),P(i.name)}}function rT(t,e){if(t&1){let i=X();d(0,"div",86)(1,"div",12)(2,"div",13)(3,"div",14)(4,"h5",15),g(5,"Billing Address"),p()()()(),d(6,"div",16)(7,"div",40)(8,"input",87,88),$("ngModelChange",function(r){M(i);let o=y();return H(o.Order.TaxDetails.BillingAddress.Address1,r)||(o.Order.TaxDetails.BillingAddress.Address1=r),T(r)}),p(),d(10,"label",89),g(11,"Address Line 1"),p()(),d(12,"div",23)(13,"small",24)(14,"i"),g(15,"Address is required."),p()()(),d(16,"div",47)(17,"input",90,91),$("ngModelChange",function(r){M(i);let o=y();return H(o.Order.TaxDetails.BillingAddress.Address2,r)||(o.Order.TaxDetails.BillingAddress.Address2=r),T(r)}),p(),d(19,"label"),g(20,"Address Line 2"),p()(),d(21,"div",13)(22,"div",92)(23,"div",19)(24,"input",93,94),$("ngModelChange",function(r){M(i);let o=y();return H(o.Order.TaxDetails.BillingAddress.City,r)||(o.Order.TaxDetails.BillingAddress.City=r),T(r)}),p(),d(26,"label",95),g(27,"City"),p()(),d(28,"div",23)(29,"small",24)(30,"i"),g(31,"City is required."),p()()()(),d(32,"div",92)(33,"div",50)(34,"select",96,97),$("ngModelChange",function(r){M(i);let o=y();return H(o.Order.TaxDetails.BillingAddress.Country,r)||(o.Order.TaxDetails.BillingAddress.Country=r),T(r)}),d(36,"option",59),g(37,"Choose Country"),p(),w(38,iT,2,2,"option",60),R(39,"sortByOrder"),p(),d(40,"label",98),g(41,"Country"),p()(),d(42,"div",23)(43,"small",24)(44,"i"),g(45,"Country is required."),p()()()()()()()}if(t&2){let i=Y(9),n=Y(25),r=Y(35),o=y(),s=Y(22);f("hidden",o.IsPickup),u(),f("ngStyle",Z(14,Ne,o.PrimaryColour)),u(3),f("readableTextColour",o.PrimaryColour),u(4),U("ngModel",o.Order.TaxDetails.BillingAddress.Address1),u(4),f("hidden",i.valid||i.pristine&&!s.submitted),u(5),U("ngModel",o.Order.TaxDetails.BillingAddress.Address2),u(7),U("ngModel",o.Order.TaxDetails.BillingAddress.City),u(4),f("hidden",n.valid||n.pristine&&!s.submitted),u(6),U("ngModel",o.Order.TaxDetails.BillingAddress.Country),u(2),f("ngValue",""),u(2),f("ngForOf",ie(39,12,o.Countries)),u(4),f("hidden",r.valid||r.pristine&&!s.submitted)}}function oT(t,e){if(t&1){let i=X();d(0,"div",108)(1,"div",14)(2,"div",26)(3,"input",109),$("ngModelChange",function(r){let s=M(i).$implicit,a=y(3);return H(a.DeliveryOptionsSelectionMap[s.Label].Checked,r)||(a.DeliveryOptionsSelectionMap[s.Label].Checked=r),T(r)}),N("change",function(r){let s=M(i).$implicit,a=y(3);return T(a.UpdateDeliveryOption(r,s))}),p(),d(4,"label",110),g(5),R(6,"formatPrice"),p()()()()}if(t&2){let i=e.$implicit,n=e.index,r=y(3);u(3),Se("id","CurrentDeliveryOption",n,"")("name","CurrentDeliveryOption",n,""),U("ngModel",r.DeliveryOptionsSelectionMap[i.Label].Checked),u(),Se("for","CurrentDeliveryOption",n,""),u(),ma(" ",i.Label," - ",Ie(6,6,i.Value,r.Currency)," ")}}function sT(t,e){t&1&&(d(0,"p",111),g(1,"No shipping options found. Please "),d(2,"a",112),g(3,"contact us"),p(),g(4,"."),p())}function aT(t,e){if(t&1&&(d(0,"div"),w(1,oT,7,9,"div",106)(2,sT,5,0,"p",107),p()),t&2){let i=y(2);u(),f("ngForOf",i.StarShipItRates),u(),f("ngIf",i.StarShipItRates.length<1)}}function lT(t,e){if(t&1){let i=X();d(0,"div",108)(1,"div",14)(2,"div",26)(3,"input",109),$("ngModelChange",function(r){let s=M(i).$implicit,a=y(3);return H(a.DeliveryOptionsSelectionMap[s.Label].Checked,r)||(a.DeliveryOptionsSelectionMap[s.Label].Checked=r),T(r)}),N("change",function(r){let s=M(i).$implicit,a=y(3);return T(a.UpdateDeliveryOption(r,s))}),p(),d(4,"label",110),g(5),p()()(),d(6,"div",14),g(7),R(8,"formatPrice"),p()()}if(t&2){let i=e.$implicit,n=e.index,r=y(3);u(3),Se("id","CurrentDeliveryOption",n,"")("name","CurrentDeliveryOption",n,""),U("ngModel",r.DeliveryOptionsSelectionMap[i.Label].Checked),u(),Se("for","CurrentDeliveryOption",n,""),u(),Ve(" ",i.Label," "),u(2),Ve(" ",Ie(8,6,i.Value,r.Currency)," ")}}function cT(t,e){if(t&1&&(d(0,"div"),w(1,lT,9,9,"div",106),p()),t&2){let i=y(2);u(),f("ngForOf",i.EcommerceSettings==null||i.EcommerceSettings.Delivery==null?null:i.EcommerceSettings.Delivery.Fees)}}function uT(t,e){if(t&1&&(d(0,"p",24),g(1),p()),t&2){let i=y(2);u(),P(i.StarShipItError)}}function dT(t,e){if(t&1){let i=X();d(0,"div",113)(1,"div",14)(2,"div",26)(3,"input",114),$("ngModelChange",function(r){M(i);let o=y(2);return H(o.DeliveryOptionsSelectionMap["Free pickup"].Checked,r)||(o.DeliveryOptionsSelectionMap["Free pickup"].Checked=r),T(r)}),N("change",function(r){M(i);let o=y(2);return T(o.UpdateDeliveryOption(r,{Label:"Free pickup",Value:0}))}),p(),d(4,"label",115),g(5," Free pickup "),p()()(),d(6,"div",14),g(7," Free "),p()()}if(t&2){let i=y(2);u(3),U("ngModel",i.DeliveryOptionsSelectionMap["Free pickup"].Checked)}}function pT(t,e){if(t&1){let i=X();d(0,"div",16)(1,"div",99)(2,"div",100),g(3,"Loading..."),p()(),d(4,"div",23),w(5,aT,3,2,"div",76)(6,cT,2,1,"div",76),p(),w(7,uT,2,1,"p",101)(8,dT,8,1,"div",72),d(9,"div",102)(10,"textarea",103,104),$("ngModelChange",function(r){M(i);let o=y();return H(o.Order.Notes,r)||(o.Order.Notes=r),T(r)}),p(),d(12,"label",105),g(13,"Leave a message (optional)"),p()()()}if(t&2){let i=y();u(),f("hidden",!i.LoadingShippingOptions),u(3),f("hidden",i.LoadingShippingOptions),u(),f("ngIf",i.WebsiteShippingOption==="STAR_SHIP_IT"),u(),f("ngIf",i.WebsiteShippingOption==="MANUAL"),u(),f("ngIf",i.StarShipItError),u(),f("ngIf",i.IsPickup),u(2),U("ngModel",i.Order.Notes)}}function fT(t,e){if(t&1){let i=X();d(0,"div",116)(1,"div",3)(2,"div",26)(3,"input",117),$("ngModelChange",function(r){M(i);let o=y();return H(o.PaymentOptionsSelectionMap.CREDIT_CARD.Checked,r)||(o.PaymentOptionsSelectionMap.CREDIT_CARD.Checked=r),T(r)}),N("change",function(r){M(i);let o=y();return T(o.UpdatePaymentOption(r,"CREDIT_CARD"))}),p(),d(4,"label",118),g(5," Card Payment "),p()()(),d(6,"div",14)(7,"div",119)(8,"div",3),S(9,"img",120),p(),d(10,"div",3),S(11,"img",121),p(),d(12,"div",3),S(13,"img",122),p(),d(14,"div",3),S(15,"img",123),p(),d(16,"div",3),S(17,"img",124),p()()()()}if(t&2){let i=y();f("hidden",(i.IntegrationSettings.Stripe==null?null:i.IntegrationSettings.Stripe.IntegrationStatus)==="DISABLED"),u(3),U("ngModel",i.PaymentOptionsSelectionMap.CREDIT_CARD.Checked)}}function hT(t,e){if(t&1){let i=X();d(0,"div",108)(1,"div",14)(2,"div",26)(3,"input",125),$("ngModelChange",function(r){M(i);let o=y();return H(o.PaymentOptionsSelectionMap.AFTERPAY.Checked,r)||(o.PaymentOptionsSelectionMap.AFTERPAY.Checked=r),T(r)}),N("change",function(r){M(i);let o=y();return T(o.UpdatePaymentOption(r,"AFTERPAY"))}),p(),d(4,"label",126),g(5," Afterpay "),p()()(),d(6,"div",127),S(7,"img",128),p()()}if(t&2){let i=y();u(3),U("ngModel",i.PaymentOptionsSelectionMap.AFTERPAY.Checked)}}function mT(t,e){if(t&1){let i=X();d(0,"div",108)(1,"div",14)(2,"div",26)(3,"input",129),$("ngModelChange",function(r){M(i);let o=y();return H(o.PaymentOptionsSelectionMap.PAYPAL.Checked,r)||(o.PaymentOptionsSelectionMap.PAYPAL.Checked=r),T(r)}),N("change",function(r){M(i);let o=y();return T(o.UpdatePaymentOption(r,"PAYPAL"))}),p(),d(4,"label",130),g(5," PayPal "),p()()(),d(6,"div",127),S(7,"img",131),p()()}if(t&2){let i=y();u(3),U("ngModel",i.PaymentOptionsSelectionMap.PAYPAL.Checked)}}function gT(t,e){if(t&1){let i=X();d(0,"div",108)(1,"div",14)(2,"div",26)(3,"input",132),$("ngModelChange",function(r){M(i);let o=y();return H(o.PaymentOptionsSelectionMap.BANK_PAYMENT.Checked,r)||(o.PaymentOptionsSelectionMap.BANK_PAYMENT.Checked=r),T(r)}),N("change",function(r){M(i);let o=y();return T(o.UpdatePaymentOption(r,"BANK_PAYMENT"))}),p(),d(4,"label",133),g(5," Bank Payment "),p()()()()}if(t&2){let i=y();u(3),U("ngModel",i.PaymentOptionsSelectionMap.BANK_PAYMENT.Checked)}}function vT(t,e){if(t&1){let i=X();d(0,"div",113)(1,"div",14)(2,"div",26)(3,"input",134),$("ngModelChange",function(r){M(i);let o=y();return H(o.PaymentOptionsSelectionMap.CASH_ON_PICKUP.Checked,r)||(o.PaymentOptionsSelectionMap.CASH_ON_PICKUP.Checked=r),T(r)}),N("change",function(r){M(i);let o=y();return T(o.UpdatePaymentOption(r,"CASH_ON_PICKUP"))}),p(),d(4,"label",135),g(5," Cash On Pickup "),p()()()()}if(t&2){let i=y();u(3),U("ngModel",i.PaymentOptionsSelectionMap.CASH_ON_PICKUP.Checked)}}function yT(t,e){t&1&&(d(0,"p",136),g(1,"Choose your payment option"),p())}function CT(t,e){if(t&1&&(d(0,"div"),S(1,"app-checkout-card-payment",137),p()),t&2){let i=y();u(),f("WebsiteId",i.WebsiteId)("Order",i.Order)("InPreviewMode",i.InPreviewMode)}}function bT(t,e){if(t&1&&(d(0,"div"),S(1,"app-checkout-afterpay-payment",137),p()),t&2){let i=y();u(),f("WebsiteId",i.WebsiteId)("Order",i.Order)("InPreviewMode",i.InPreviewMode)}}function _T(t,e){if(t&1&&(d(0,"div"),S(1,"app-checkout-paypal-payment",137),p()),t&2){let i=y();u(),f("WebsiteId",i.WebsiteId)("Order",i.Order)("InPreviewMode",i.InPreviewMode)}}function ST(t,e){if(t&1&&(d(0,"div"),S(1,"app-checkout-bank-payment",138),p()),t&2){let i=y();u(),f("WebsiteId",i.WebsiteId)("Order",i.Order)("EcommerceSettings",i.EcommerceSettings)("InPreviewMode",i.InPreviewMode)}}function IT(t,e){if(t&1&&(d(0,"div"),S(1,"app-checkout-cash-payment",138),p()),t&2){let i=y();u(),f("WebsiteId",i.WebsiteId)("Order",i.Order)("EcommerceSettings",i.EcommerceSettings)("InPreviewMode",i.InPreviewMode)}}var xp=t=>({"checkout-step-link-active":t});function wT(t,e){if(t&1&&(d(0,"p",6)(1,"small",20)(2,"strong"),g(3),p(),g(4),p()()),t&2){let i=y().$implicit;u(3),Ve("",i.Name,": "),u(),P(i.Value)}}function xT(t,e){if(t&1&&(d(0,"div"),w(1,wT,5,2,"p",19),p()),t&2){let i=e.$implicit;u(),f("ngIf",i.Value)}}function DT(t,e){if(t&1&&(d(0,"div")(1,"p",4),g(2,"Pickup from:"),p(),d(3,"p",5),g(4),p()()),t&2){let i=y();u(4),P(i.EcommerceSettings.ClickAndCollect==null?null:i.EcommerceSettings.ClickAndCollect.PickupAddress)}}function ET(t,e){if(t&1&&(d(0,"div")(1,"p",4),g(2,"Shipping to:"),p(),d(3,"p",5),g(4),S(5,"br"),g(6),S(7,"br"),g(8),p(),d(9,"p",4),g(10,"Billing to:"),p(),d(11,"p",6),g(12),S(13,"br"),g(14),S(15,"br"),g(16),p()()),t&2){let i=y();u(4),P(i.Order.DeliveryDetails.Address1),u(2),P(i.Order.DeliveryDetails.Address2),u(2),Zu("",i.Order.DeliveryDetails.City,", ",i.Order.DeliveryDetails.Country.Code," ",i.Order.DeliveryDetails.PostCode,""),u(4),P(i.Order.TaxDetails.BillingAddress.Address1),u(2),P(i.Order.TaxDetails.BillingAddress.Address2),u(2),ma("",i.Order.TaxDetails.BillingAddress.City,", ",i.Order.TaxDetails.BillingAddress.Country.Code,"")}}function MT(t,e){if(t&1&&(d(0,"p",13),g(1),R(2,"formatPrice"),p()),t&2){let i=y().ngIf,n=y(2);u(),P(Ie(2,1,i,n.Currency))}}function TT(t,e){if(t&1&&(d(0,"small",15),g(1),p()),t&2){let i=y().ngIf;u(),Ve("(",i.PromoDescription,")")}}function PT(t,e){if(t&1&&(d(0,"p",13),w(1,TT,2,1,"small",14),g(2),R(3,"formatPrice"),p()),t&2){let i=e.ngIf,n=y(3);u(),f("ngIf",i.PromoType!=="FREE_SHIPPING"),u(),Ve(" ",Ie(3,2,i.SubTotal,n.Currency)," ")}}function OT(t,e){if(t&1&&(d(0,"div",8)(1,"div",9)(2,"div",10)(3,"strong"),g(4,"Sub Total"),p(),g(5,": "),p(),d(6,"div",11),w(7,MT,3,4,"p",12)(8,PT,4,5,"p",12),R(9,"async"),p()()()),t&2){let i=y(2);u(7),f("ngIf",!i.DiscountApplied),u(),f("ngIf",ie(9,2,i.DiscountAmount))}}function AT(t,e){if(t&1&&(d(0,"div"),w(1,OT,10,4,"div",7),R(2,"async"),p()),t&2){let i=y();u(),f("ngIf",ie(2,1,i.SubTotal))}}function kT(t,e){t&1&&(d(0,"small",22),g(1,"(Free)"),p())}function NT(t,e){if(t&1&&(d(0,"p",20),w(1,kT,2,0,"small",21),p()),t&2){let i=e.ngIf;u(),f("ngIf",i.PromoType==="FREE_SHIPPING")}}function FT(t,e){if(t&1&&(d(0,"p",20),g(1),R(2,"formatPrice"),p()),t&2){let i=y(3);u(),P(Ie(2,1,i.Order.ShippingDetails.Option.Value,i.Currency))}}function RT(t,e){if(t&1&&(d(0,"p",20),g(1),R(2,"formatPrice"),p()),t&2){let i=e.ngIf,n=y(3);u(),Ve(" ",Ie(2,1,i.ShippingCost,n.Currency)," ")}}function LT(t,e){if(t&1&&(d(0,"div",17)(1,"div",9)(2,"div",10)(3,"strong"),g(4,"Shipping"),p(),g(5,":"),S(6,"br"),d(7,"small",18),g(8),p(),w(9,NT,2,1,"p",19),R(10,"async"),p(),d(11,"div",11),w(12,FT,3,4,"p",19)(13,RT,3,4,"p",19),R(14,"async"),p()()()),t&2){let i=y(2);u(8),P(i.Order.ShippingDetails.Option.Label),u(),f("ngIf",ie(10,4,i.DiscountAmount)),u(3),f("ngIf",!i.DiscountApplied),u(),f("ngIf",ie(14,6,i.DiscountAmount))}}function VT(t,e){if(t&1&&(d(0,"div",17)(1,"div",9)(2,"div",23)(3,"p",24)(4,"strong"),g(5),p(),g(6),R(7,"formatPrice"),p()()()()),t&2){let i=y(2);u(5),P(i.Order.ShippingDetails.Option.Label),u(),Ve(": ",Ie(7,2,i.Order.ShippingDetails.Option.Value,i.Currency)," ")}}function jT(t,e){if(t&1&&(d(0,"div"),w(1,LT,15,8,"div",16)(2,VT,8,5,"div",16),p()),t&2){let i=y();u(),f("ngIf",i.Order.ShippingDetails.Option&&i.Order.ShippingDetails.Method!=="PICKUP"),u(),f("ngIf",i.Order.ShippingDetails.Option&&i.Order.ShippingDetails.Method==="PICKUP")}}function BT(t,e){if(t&1&&(d(0,"p",20),g(1),R(2,"formatPrice"),p()),t&2){let i=y().$implicit,n=y(3);u(),P(Ie(2,1,i.Amount,n.Currency))}}function UT(t,e){if(t&1&&(d(0,"p",20),g(1),R(2,"formatPrice"),p()),t&2){let i=e.ngIf,n=y(4);u(),P(Ie(2,1,i.TaxAmount,n.Currency))}}function $T(t,e){if(t&1&&(d(0,"div",9)(1,"div",10)(2,"strong"),g(3,"Taxes"),p(),g(4,":"),S(5,"br"),d(6,"small",18),g(7),p()(),d(8,"div",11),w(9,BT,3,4,"p",19)(10,UT,3,4,"p",19),R(11,"async"),p()()),t&2){let i=e.$implicit,n=y(3);u(7),P(i.Name),u(2),f("ngIf",!n.DiscountApplied),u(),f("ngIf",ie(11,3,n.DiscountAmount))}}function HT(t,e){if(t&1&&(d(0,"div",17),w(1,$T,12,5,"div",29),R(2,"async"),p()),t&2){let i=y(2);u(),f("ngForOf",ie(2,1,i.Taxes))}}function WT(t,e){if(t&1&&(d(0,"p",31),g(1),R(2,"formatPrice"),p()),t&2){let i=y().ngIf,n=y(2);u(),P(Ie(2,1,i,n.Currency))}}function zT(t,e){if(t&1&&(d(0,"p",31),g(1),R(2,"formatPrice"),p()),t&2){let i=e.ngIf,n=y(3);u(),P(Ie(2,1,i.NewTotal,n.Currency))}}function GT(t,e){if(t&1&&(d(0,"div",17)(1,"div",9)(2,"div",10)(3,"strong"),g(4,"Total"),p(),g(5,": "),p(),d(6,"div",11),w(7,WT,3,4,"p",30)(8,zT,3,4,"p",30),R(9,"async"),p()()()),t&2){let i=y(2);u(7),f("ngIf",!i.DiscountApplied),u(),f("ngIf",ie(9,2,i.DiscountAmount))}}function qT(t,e){if(t&1){let i=X();d(0,"p",32)(1,"button",33),N("click",function(){M(i);let r=y(2);return T(r.ToggleShowPromoCode())}),g(2,"Add promo code"),p()()}}function YT(t,e){if(t&1){let i=X();d(0,"button",39),N("click",function(){M(i);let r=y(3);return T(r.RemovePromoCode(r.Order,r.CartDetails.EcommerceSettings))}),g(1,"X"),p()}}function ZT(t,e){t&1&&(d(0,"div",40),S(1,"div",41),p())}function KT(t,e){if(t&1){let i=X();d(0,"div",34)(1,"input",35),$("ngModelChange",function(r){M(i);let o=y(2);return H(o.PromoCode,r)||(o.PromoCode=r),T(r)}),p(),w(2,YT,2,0,"button",36),d(3,"button",37),N("click",function(){M(i);let r=y(2);return T(r.ApplyPromoCode(r.Order,r.PromoCode,r.CartDetails.EcommerceSettings))}),g(4," Apply "),w(5,ZT,2,0,"div",38),p()()}if(t&2){let i=y(2);u(),f("disabled",i.DiscountApplied||i.CheckingPromo),U("ngModel",i.PromoCode),u(),f("ngIf",i.DiscountApplied),u(),f("readableTextColour",i.SecondaryColour)("ngStyle",Z(7,Ne,i.SecondaryColour))("disabled",i.DiscountApplied||i.CheckingPromo||!i.PromoCode),u(2),f("ngIf",i.CheckingPromo)}}function QT(t,e){if(t&1&&(d(0,"div"),w(1,HT,3,3,"div",16)(2,GT,10,4,"div",16),R(3,"async"),d(4,"div",25)(5,"div",10),w(6,qT,3,0,"p",26)(7,KT,6,9,"div",27),d(8,"p",28),g(9),p()()()()),t&2){let i=y();u(),f("ngIf",(i.CartDetails.EcommerceSettings==null?null:i.CartDetails.EcommerceSettings.TaxSettings)&&(i.CartDetails.EcommerceSettings==null?null:i.CartDetails.EcommerceSettings.TaxSettings.Rates.length)>0),u(),f("ngIf",ie(3,5,i.Total)),u(4),f("ngIf",!i.ShowPromoCodeInput),u(),f("ngIf",i.ShowPromoCodeInput),u(2),P(i.PromoCheckResult)}}var ty=(t,e)=>({"col-md-6":t,"col-lg-4":e});function JT(t,e){if(t&1&&(d(0,"div",4)(1,"div",5)(2,"a",6)(3,"h2"),g(4),R(5,"decodeHtml"),p()(),S(6,"img",7),p()()),t&2){let i=e.$implicit,n=y(2);f("ngClass",vi(8,ty,n.CustomPages.length<3,n.CustomPages.length>2)),u(2),Se("routerLink","/page/",i.Slug,""),u(2),P(ie(5,6,i.Title)),u(2),f("ngSrc",i.Image.URL)("alt",i.Image.Name)("loaderParams",fn(11,Qn))}}function XT(t,e){if(t&1&&(d(0,"div",2),w(1,JT,7,12,"div",3),p()),t&2){let i=y();u(),f("ngForOf",i.CustomPages)}}function eP(t,e){if(t&1&&(d(0,"div",4)(1,"div",9)(2,"p",10)(3,"a",11),g(4),R(5,"decodeHtml"),p()(),d(6,"p",12),g(7),p()()()),t&2){let i=e.$implicit,n=y(2);f("ngClass",vi(8,ty,n.CustomPages.length<3,n.CustomPages.length>2)),u(3),Se("routerLink","/page/",i.Slug,""),Yu("background",n.BackgroundColour),f("readableTextColour",n.PrimaryColour),u(),P(ie(5,6,i.Title)),u(3),P(i.ShortDescription)}}function tP(t,e){if(t&1&&(d(0,"div",8),w(1,eP,8,11,"div",3),p()),t&2){let i=y();u(),f("ngForOf",i.CustomPages)}}function nP(t,e){if(t&1&&(d(0,"div",11)(1,"a",12),S(2,"img",13),p()()),t&2){let i=y().$implicit;u(),Se("routerLink","/articles/",i.Slug,""),u(),f("ngSrc",i.Image==null?null:i.Image.URL)("alt",i.Image==null?null:i.Image.Name)("loaderParams",fn(4,Qn))}}function iP(t,e){if(t&1&&(d(0,"div",5)(1,"div",6),w(2,nP,3,5,"div",7),d(3,"div",8)(4,"h5")(5,"a",9),g(6),p()(),d(7,"p",10),g(8),R(9,"formatDate"),p()()()()),t&2){let i=e.$implicit;u(2),f("ngIf",i.Image==null?null:i.Image.URL),u(3),Se("routerLink","/articles/",i.Slug,""),u(),P(i.Title),u(2),P(ie(9,4,i.DateAuthored))}}function rP(t,e){if(t&1&&(d(0,"div",3),w(1,iP,10,6,"div",4),R(2,"limit"),R(3,"sortByDateAuthored"),p()),t&2){let i=y();u(),f("ngForOf",Ie(2,1,Ie(3,4,i.Articles,"asc"),3))}}function oP(t,e){if(t&1&&(d(0,"div",23)(1,"a",24),S(2,"img",25),p()()),t&2){let i=y().$implicit;u(),Se("routerLink","/articles/",i.Slug,""),u(),f("ngSrc",i.Image==null?null:i.Image.URL)("alt",i.Image==null?null:i.Image.Name)("loaderParams",fn(4,Qn))}}function sP(t,e){if(t&1&&(d(0,"div",18)(1,"div",16),w(2,oP,3,5,"div",19),d(3,"div",8)(4,"h5")(5,"a",9),g(6),p()(),d(7,"p",20),g(8),p(),d(9,"p",21),g(10),R(11,"formatDate"),p(),d(12,"p")(13,"a",22),g(14,"Read more"),p()()()()()),t&2){let i=e.$implicit;u(2),f("ngIf",i.Image==null?null:i.Image.URL),u(3),Se("routerLink","/articles/",i.Slug,""),u(),P(i.Title),u(2),P(i.ShortDescription),u(2),P(ie(11,6,i.DateAuthored)),u(3),Se("routerLink","/articles/",i.Slug,"")}}function aP(t,e){if(t&1&&(d(0,"div",14)(1,"div",15)(2,"div",16),w(3,sP,15,8,"div",17),R(4,"limit"),R(5,"sortByDateAuthored"),p()()()),t&2){let i=y();u(3),f("ngForOf",Ie(4,1,Ie(5,4,i.Articles,"asc"),2))}}function lP(t,e){if(t&1&&(d(0,"div",11)(1,"a",12),S(2,"img",13),p()()),t&2){let i=y().$implicit;u(),Se("routerLink","/articles/",i.Slug,""),u(),f("ngSrc",i.Image==null?null:i.Image.URL)("alt",i.Image==null?null:i.Image.Name)("loaderParams",fn(4,Qn))}}function cP(t,e){if(t&1&&(d(0,"div",5)(1,"div",16),w(2,lP,3,5,"div",7),d(3,"div",8)(4,"p",30)(5,"a",31),g(6),p()(),d(7,"p",32),g(8),R(9,"formatDate"),p()()()()),t&2){let i=e.$implicit,n=y(2);u(2),f("ngIf",i.Image==null?null:i.Image.URL),u(3),Se("routerLink","/articles/",i.Slug,""),f("readableTextColour",n.PrimaryColour),u(),P(i.Title),u(),f("readableTextColour",n.PrimaryColour),u(),P(ie(9,6,i.DateAuthored))}}function uP(t,e){if(t&1&&(d(0,"div",26)(1,"div",27)(2,"div",14),w(3,cP,10,8,"div",4),R(4,"limit"),R(5,"sortByDateAuthored"),p(),d(6,"p",28)(7,"a",29),g(8,"View all articles"),p()()()()),t&2){let i=y();f("ngStyle",Z(9,Ne,i.PrimaryColour)),u(3),f("ngForOf",Ie(4,3,Ie(5,6,i.Articles,"asc"),3)),u(4),f("readableTextColour",i.PrimaryColour)}}function dP(t,e){if(t&1&&(d(0,"div",23)(1,"a",24),S(2,"img",25),p()()),t&2){let i=y().$implicit;u(),Se("routerLink","/articles/",i.Slug,""),u(),f("ngSrc",i.Image==null?null:i.Image.URL)("alt",i.Image==null?null:i.Image.Name)("loaderParams",fn(4,Qn))}}function pP(t,e){if(t&1&&(d(0,"div",18)(1,"div",16),w(2,dP,3,5,"div",19),d(3,"div",8)(4,"h5")(5,"a",36),g(6),p()(),d(7,"p",37),g(8),p(),d(9,"p",38),g(10),R(11,"formatDate"),p(),d(12,"p")(13,"a",39),g(14,"Read more"),p()()()()()),t&2){let i=e.$implicit,n=y(2);u(2),f("ngIf",i.Image==null?null:i.Image.URL),u(3),Se("routerLink","/articles/",i.Slug,""),f("readableTextColour",n.PrimaryColour),u(),P(i.Title),u(),f("readableTextColour",n.PrimaryColour),u(),P(i.ShortDescription),u(),f("readableTextColour",n.PrimaryColour),u(),P(ie(11,10,i.DateAuthored)),u(3),Se("routerLink","/articles/",i.Slug,""),f("readableTextColour",n.PrimaryColour)}}function fP(t,e){if(t&1&&(d(0,"div",26)(1,"div",33)(2,"div",34),w(3,pP,15,12,"div",17),R(4,"limit"),R(5,"sortByDateAuthored"),p(),d(6,"p",35)(7,"a",29),g(8,"View all articles"),p()()()()),t&2){let i=y();f("ngStyle",Z(9,Ne,i.PrimaryColour)),u(3),f("ngForOf",Ie(4,3,Ie(5,6,i.Articles,"asc"),2)),u(4),f("readableTextColour",i.PrimaryColour)}}var hP=["productMainImageCanvas"],mP=["productMainImage"],gP=["productMainImagePreviewCanvas"],vP=["productMainImagePreviewContainer"],yP=(()=>{let e=class e{constructor(n){this.http=n,this.DAZZLY_ENDPOINT="https://api.dazzly.co.nz/v1/production/",this.CDN_URL="https://form-submission.static-files.net/",this.Uploaded=new ve,this.Uploading=new ve,this.WebsiteId="",this.UploadInProgress=!1,this.FileDownloadUrl="",this.FileToUpload=null}ngOnInit(){}SelectFileInput(n){let r=n.target.files;if(r){this.FileToUpload=r.item(0);let o="",s="";o=this.RandomString()+"-"+this.FileToUpload.name,o=o.replace(/\s/g,""),this.UploadInProgress=!0,this.Uploading.emit(!0),this.GetSignedUrl("uploaded/"+o,this.FileToUpload.type).pipe(Ce(a=>{s=a.data.WebsiteId,new FormData().append("fileKey",this.FileToUpload,this.FileToUpload.name);let c={Url:a.data.Url,MimeType:this.FileToUpload.type,WebsiteId:s,FormData:this.FileToUpload};return this.UploadFile(c)})).subscribe(a=>{this.UploadInProgress=!1,this.Uploading.emit(!1),this.FileDownloadUrl=this.CDN_URL+s+"/uploaded/"+o,this.Uploaded.emit(this.FileDownloadUrl)},a=>{console.log(a),this.UploadInProgress=!1,this.Uploading.emit(!1)})}}DiscardUpload(){this.FileToUpload=null}GetSignedUrl(n,r){return this.http.get(this.DAZZLY_ENDPOINT+"utils/publicfileupload/"+this.WebsiteId+"?file="+this.WebsiteId+"/"+n+"&type="+r)}UploadFile(n){return this.http.put(n.Url,n.FormData,{headers:{"Content-Type":n.MimeType,"x-amz-acl":"public-read"},withCredentials:!1})}RandomString(){let n="",r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(let o=0;o<7;o++)n+=r.charAt(Math.floor(Math.random()*r.length));return n}};e.\u0275fac=function(r){return new(r||e)(_(ir))},e.\u0275cmp=se({type:e,selectors:[["app-file-uploader"]],inputs:{WebsiteId:"WebsiteId"},outputs:{Uploaded:"Uploaded",Uploading:"Uploading"},standalone:!0,features:[ae],decls:9,vars:2,consts:[[1,"form-group","mt-3","text-light"],[1,"row","align-items-center"],[1,"col-auto"],["for","fileUpload",1,"btn","btn-sm","btn-warning"],["src","assets/attachment-black.png","width","14","height","14","alt","file attachment icon","loading","lazy",2,"margin-top","-2px"],["type","file","id","fileUpload",1,"inputfile",3,"change"],["class","col-auto",4,"ngIf"],["class","row align-items-center mt-2",4,"ngIf"],[1,"mb-0","fst-italic","small","text-primary"],[1,"row","align-items-center","mt-2"],[1,"small","mb-0"],["target","_blank",1,"fw-bold",3,"href"],[1,"btn","btn-sm","btn-danger",3,"click"]],template:function(r,o){r&1&&(d(0,"div",0)(1,"div",1)(2,"div",2)(3,"label",3),S(4,"img",4),g(5," Attach File "),p(),d(6,"input",5),N("change",function(a){return o.SelectFileInput(a)}),p()(),w(7,HE,3,0,"div",6),p(),w(8,WE,10,2,"div",7),p()),r&2&&(u(7),f("ngIf",o.UploadInProgress),u(),f("ngIf",o.FileToUpload&&!o.UploadInProgress))},dependencies:[ke,Te],styles:[".inputfile[_ngcontent-%COMP%]{width:.1px;height:.1px;opacity:0;overflow:hidden;position:absolute;z-index:-1}.inputfile[_ngcontent-%COMP%] + label[_ngcontent-%COMP%]{cursor:pointer}.form-group[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:underline}"]});let t=e;return t})(),Ot=(()=>{let e=class e{constructor(n,r){this.el=n,this.renderer=r,this.readableTextColour="",this.background=""}ngOnChanges(n){if(this.readableTextColour){let r=c=>/^#([A-Fa-f0-9]{3,4}){1,2}$/.test(c),o=(c,h)=>c.match(new RegExp(`.{${h}}`,"g")),s=c=>parseInt(c.repeat(2/c.length),16),a=(c,h)=>typeof c<"u"?c/255:typeof h!="number"||h<0||h>1?1:h;((c,h)=>{r(c)||(c=(ce=>"#"+ce.match(/[\d\.]+/g).map((Ge,xe)=>Math.round(+Ge*(xe<3?1:255)).toString(16).padStart(2)).join``)(c));let m=Math.floor((c.length-1)/3),v=o(c.slice(1),m),[C,I,k,L]=v.map(s),O=Math.round((parseInt(C,16)*299+parseInt(I,16)*587+parseInt(k,16)*114)/1e3),fe=O>125?"black":"white";fe==="black"&&this.background==="white"&&(fe=this.readableTextColour),O<125&&this.background==="white"&&(fe=this.readableTextColour),O>125&&this.background==="white"&&(fe="black"),this.renderer.setStyle(this.el.nativeElement,"color",fe)})(this.readableTextColour)}}};e.\u0275fac=function(r){return new(r||e)(_(Oe),_(Be))},e.\u0275dir=ne({type:e,selectors:[["","readableTextColour",""]],inputs:{readableTextColour:"readableTextColour",background:"background"},standalone:!0,features:[We]});let t=e;return t})(),ny=(()=>{let e=class e{constructor(){this.size="sm",this.IconColour="",this.IconWidth=15,this.IconHeight=15}ngOnInit(){if(this.primaryColour){let n=a=>/^#([A-Fa-f0-9]{3,4}){1,2}$/.test(a),r=(a,l)=>a.match(new RegExp(`.{${l}}`,"g")),o=a=>parseInt(a.repeat(2/a.length),16);((a,l)=>{n(a);let c=Math.floor((a.length-1)/3),h=r(a.slice(1),c),[m,v,C,I]=h.map(o),L=Math.round((parseInt(m,16)*299+parseInt(v,16)*587+parseInt(C,16)*114)/1e3)>125?"black":"white";this.IconColour=L})(this.primaryColour)}this.size==="lg"&&(this.IconWidth=30,this.IconHeight=30)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=se({type:e,selectors:[["app-icon-image"]],inputs:{type:"type",primaryColour:"primaryColour",size:"size"},standalone:!0,features:[ae],decls:1,vars:1,consts:[["class","d-inline-block",4,"ngIf"],[1,"d-inline-block"],[4,"ngIf"],["alt","Name Icon","loading","lazy",3,"src","height","width"],["alt","Email Icon","loading","lazy",3,"src","height","width"],["alt","Phone Icon","loading","lazy",3,"src","height","width"],["alt","Address Icon","loading","lazy",3,"src","height","width"],["alt","Twitter/X Icon","loading","lazy",3,"src","height","width"],["alt","Facebook/Meta Icon","loading","lazy",3,"src","height","width"],["alt","Pinterest Icon","loading","lazy",3,"src","height","width"],["alt","LinkedIn Icon","loading","lazy",3,"src","height","width"],["alt","Instagram Icon","loading","lazy",3,"src","height","width"],["alt","YouTube Icon","loading","lazy",3,"src","height","width"],["alt","Spotify Icon","loading","lazy",3,"src","height","width"],["alt","WhatsApp Icon","loading","lazy",3,"src","height","width"],["alt","TikTok Icon","loading","lazy",3,"src","height","width"]],template:function(r,o){r&1&&w(0,rM,14,13,"div",0),r&2&&f("ngIf",o.IconColour)},dependencies:[Te]});let t=e;return t})(),CP=(()=>{let e=class e{constructor(){this.ButtonType="button",this.ButtonText="",this.ButtonSize="",this.Disabled=!1,this.PrimaryColour="",this.SecondaryColour="",this.ButtonClick=new ve,this.ActiveColour=this.PrimaryColour}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=se({type:e,selectors:[["app-website-button"]],inputs:{ButtonType:"ButtonType",ButtonText:"ButtonText",ButtonSize:"ButtonSize",Disabled:"Disabled",PrimaryColour:"PrimaryColour",SecondaryColour:"SecondaryColour"},outputs:{ButtonClick:"ButtonClick"},standalone:!0,features:[ae],decls:2,vars:12,consts:[[1,"btn","website-button",3,"type","ngClass","disabled","readableTextColour","mouseenter","mouseleave","click"]],template:function(r,o){r&1&&(d(0,"button",0),N("mouseenter",function(){return o.ActiveColour=o.SecondaryColour})("mouseleave",function(){return o.ActiveColour=o.PrimaryColour})("click",function(a){return o.ButtonClick.emit(a)}),g(1),p()),r&2&&(qr("--button-primary-colour",o.PrimaryColour)("--button-secondary-colour",o.SecondaryColour),f("type",o.ButtonType)("ngClass",vi(9,oM,o.ButtonSize==="lg",o.ButtonSize==="sm"))("disabled",o.Disabled)("readableTextColour",o.ActiveColour),u(),Ve("",o.ButtonText,`
`))},dependencies:[Pt,Ot],styles:[".website-button[_ngcontent-%COMP%]{background-color:var(--button-primary-colour);border:1px solid var(--button-secondary-colour)}.website-button[_ngcontent-%COMP%]:hover{background-color:var(--button-secondary-colour);border:1px solid var(--button-primary-colour)}"]});let t=e;return t})(),Sr={production:!0,STRIPE_KEY:"pk_live_x9fqSZ4vBhIq4MPyWy9f7IUe00rJKQJcHu",DAZZLY_API_ENDPOINT:"https://api.prod.dazzly.co/"},Xt=(()=>{let e=class e{constructor(n){this.http=n}SendContactRequest(n,r){return this.http.post(Sr.DAZZLY_API_ENDPOINT+"public/form-submit",{formData:n,id:r})}GetStarShipItRates(n,r){return this.http.post(Sr.DAZZLY_API_ENDPOINT+"integrations/ecommerce/shipping/starshipit/"+n+"/rates",r)}InitPayment(n,r){return r.SchemaLabel="ProductsItem",r.WebsiteId=n,this.http.post(Sr.DAZZLY_API_ENDPOINT+"public/ecommerce/order",r)}CheckPromoCode(n,r,o){return this.http.post(Sr.DAZZLY_API_ENDPOINT+"public/ecommerce/promo-code",{Order:n,PromoCode:r,WebsiteId:o,SchemaLabel:"ProductsItem"})}SendErrorReport(n,r,o){return this.http.post(Sr.DAZZLY_API_ENDPOINT+"public/error-report",{Error:{message:o.message,stack:o.stack,functionName:r},WebsiteId:n})}};e.\u0275fac=function(r){return new(r||e)(D(ir))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Cn=(()=>{let e=class e{constructor(n,r,o){this.meta=n,this.api=r,this._sendingPhoneClick=!1,this._sendingEmailClick=!1,this.IsBrowser=ct(o)}TrackAction(n,r){return gtag("event","track-action",{category:r,label:n}),!0}TrackPhoneClick(n,r,o){return!this._sendingPhoneClick&&!o&&(this._sendingPhoneClick=!0,this.api.SendContactRequest({Type:"PHONE_CLICK"},r).subscribe(()=>{}),gtag("event","track-action",{category:n,label:"phone-click"}),setTimeout(()=>this._sendingPhoneClick=!1,5e3)),!0}TrackEmailClick(n,r,o){return!this._sendingEmailClick&&!o&&(this._sendingEmailClick=!0,this.api.SendContactRequest({Type:"EMAIL_CLICK"},r).subscribe(()=>{}),gtag("event","track-action",{category:n,label:"email-click"}),setTimeout(()=>this._sendingEmailClick=!1,5e3)),!0}TrackSubmit(n,r,o){gtag("event","generate_lead",{category:n,label:r})}SelectProduct(n,r){this.IsBrowser&&gtag("event","view_item",{currency:r?r.toUpperCase():"",value:n.Price,items:[{item_id:n.Id,item_name:n.Name,item_category:n.ProductCategoryItem?.Name,price:n.Price,currency:r?r.toUpperCase():"",quantity:n.Quantity}]})}TrackBeginCheckout(n,r){let o=[],s=0;n.forEach(a=>{o.push({item_id:a.Id,item_name:a.Name,item_category:a.ProductCategoryItem?.Name,quantity:a.Quantity,price:a.Price,currency:r?r.toUpperCase():""}),s+=a.Price}),gtag("event","begin_checkout",{currency:r?r.toUpperCase():"",value:s,items:o})}TrackAddShippingInfo(n,r,o){let s=[],a=0;n.forEach(l=>{s.push({item_id:l.Id,item_name:l.Name,item_category:l.ProductCategoryItem?.Name,quantity:l.Quantity,price:l.Price,currency:o?o.toUpperCase():""}),a+=l.Price}),gtag("event","add_shipping_info",{shipping_tier:r,currency:o?o.toUpperCase():"",value:a,items:s})}TrackPurchase(n,r){let o=0;!n.Items||n.Items.length<1?o=0:(o=0,n.Items.forEach(a=>{o+=a.Price*a.Quantity}),o=parseFloat(o.toFixed(2)));let s=[];n.Items.forEach(a=>{s.push({item_id:a.Id,item_name:a.Name,item_category:a.ProductCategoryItem?.Name,quantity:a.Quantity,price:a.Price,currency:r?r.toUpperCase():""}),o+=a.Price}),gtag("event","purchase",{transaction_id:n.OrderReference,value:o,currency:r?r.toUpperCase():"",shipping:n.ShippingDetails?.Option?n.ShippingDetails.Option.Value:"",items:s})}TrackAddToCart(n,r){gtag("event","add_to_cart",{currency:r?r.toUpperCase():"",value:n.Price,items:[{item_id:n.Id,item_name:n.Name,item_category:n.ProductCategoryItem?.Name,price:n.Price,currency:r?r.toUpperCase():"",quantity:n.Quantity}]})}TrackRemoveFromCart(n,r){gtag("event","remove_from_cart",{currency:r.toUpperCase(),value:n.Price,items:[{item_id:n.Id,item_name:n.Name,item_category:n.ProductCategoryItem?.Name,price:n.Price,currency:r.toUpperCase(),quantity:n.Quantity}]})}GetCurrency(n){return n?n.Currency&&n.Currency.Code?n.Currency.Code:n.Stripe&&n.Stripe.Currency?n.Stripe.Currency:"":""}ConvertPriceToStripeAmount(n,r){let o="";switch(r.toLowerCase()){case"usd":case"aud":case"nzd":o=(n*100).toFixed(0);break;default:o=(n*100).toFixed(0);break}return parseInt(o)}ReplaceSingleQuoteChar(n){return n.split("&amp;#39;").join("'").split("&#39;").join("'")}GetDomainUrl(n){return n?n.indexOf("www.")!==-1?"https://"+n:"https://www."+n:null}AddSocialMetaTags(){this.meta.addTag({property:"og:title",content:""}),this.meta.addTag({property:"og:description",content:""}),this.meta.addTag({property:"og:image",content:""}),this.meta.addTag({property:"twitter:title",content:""}),this.meta.addTag({property:"twitter:description",content:""}),this.meta.addTag({property:"twitter:image",content:""})}UpdateSocialMetaTags(n,r,o,s){if(o){let a="";s&&(a=s),this.meta.updateTag({property:"og:title",content:n}),this.meta.updateTag({property:"og:description",content:r||""}),this.meta.updateTag({property:"og:image",content:a}),this.meta.updateTag({property:"og:url",content:o}),this.meta.updateTag({property:"twitter:title",content:n}),this.meta.updateTag({property:"twitter:description",content:r||""}),this.meta.updateTag({property:"twitter:image",content:a})}}};e.\u0275fac=function(r){return new(r||e)(D(R0),D(Xt),D(_e))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),bL=(()=>{let e=class e{constructor(n,r,o){this.http=n,this.api=r,this.utils=o,this.WebsiteId="",this.BackgroundColour="",this.SecondaryColour="",this.LayoutType=1,this.UploadInProgress=!1,this.SubmitInProgress=!1,this.SubmitButtonText="Submit",this.SubmitMessageResult="",this.SubmitSuccess=!1,this.Contact={Name:"",Email:"",Phone:"",Message:"",Attachment:""},this.FormInvalid=!1}ngOnInit(){}ContactSubmit(n,r){r&&n.Email?.indexOf("@")===-1&&(r=!1),r?(this.Contact.FormName="Contact Form",this.FormInvalid=!1,this.SubmitButtonText="Submitting...",this.SubmitInProgress=!0,this.api.SendContactRequest(this.Contact,this.WebsiteId).subscribe(o=>{this.SubmitMessageResult="Message delivered successfully",this.SubmitSuccess=!0,this.SubmitInProgress=!1,this.utils.TrackSubmit("contact-form-submit","success",1),this.SubmitButtonText="Submit",this.Contact={Name:"",Email:"",Phone:"",Message:"",Attachment:""}},o=>{o.error instanceof Error?(console.log("Client error: ",o.error.message),this.SubmitMessageResult="Error delivering message. Please try again later."):(console.log("Error code: ${err.status}, message: ${err.error}"),this.SubmitMessageResult="Error delivering message. Please try again later."),this.SubmitSuccess=!1,this.SubmitButtonText="Submit",this.SubmitInProgress=!1})):this.FormInvalid=!0}FileUploading(n){this.UploadInProgress=n}FileUploaded(n){this.Contact.Attachment=n}};e.\u0275fac=function(r){return new(r||e)(_(ir),_(Xt),_(Cn))},e.\u0275cmp=se({type:e,selectors:[["app-contact-form"]],inputs:{WebsiteId:"WebsiteId",BackgroundColour:"BackgroundColour",SecondaryColour:"SecondaryColour",LayoutType:"LayoutType"},standalone:!0,features:[ae],decls:3,vars:3,consts:[["class","service-form",3,"ngStyle",4,"ngIf"],[4,"ngIf"],["class","service-form t3-contact-form",3,"ngStyle",4,"ngIf"],[1,"service-form",3,"ngStyle"],["novalidate","",1,"contact-page-form",3,"ngSubmit"],["f","ngForm"],[1,"row","justify-content-start"],[1,"col"],[1,"form-floating"],["type","text","aria-labelledby","inputNameLabel","placeholder","Name","name","Name","required","",1,"form-control",3,"ngModel","ngModelChange"],["name","ngModel"],["id","inputNameLabel"],[3,"hidden"],[3,"ngClass"],[1,"form-floating","mt-3"],["type","email","aria-labelledby","inputEmailLabel","placeholder","Email","name","Email","required","",1,"form-control",3,"ngModel","ngModelChange"],["email","ngModel"],["id","inputEmailLabel"],["type","tel","aria-labelledby","inputPhoneLabel","placeholder","Phone","name","Phone",1,"form-control",3,"ngModel","ngModelChange"],["phone","ngModel"],["id","inputPhoneLabel"],[3,"WebsiteId","Uploading","Uploaded"],["aria-labelledby","inputPhoneLabel","placeholder","Message","name","Message","maxlength","1000","required","",1,"form-control",2,"height","150px",3,"ngModel","ngModelChange"],["message","ngModel"],["id","inputMessageLabel"],[1,"row","align-items-center"],[1,"col-auto"],["type","submit",1,"btn","btn-lg","btn-light","mt-3",3,"disabled"],[1,"mb-0","fst-italic",3,"readableTextColour"],["novalidate","",3,"ngSubmit"],[1,"row"],[1,"col-sm-6"],["aria-labelledby","inputPhoneLabel","placeholder","Message","name","Message","maxlength","1000","required","",1,"form-control",2,"height","100px",3,"ngModel","ngModelChange"],[1,"service-form","t3-contact-form",3,"ngStyle"],[1,"input-group"],[1,"input-group-text"],[3,"type","primaryColour"],[1,"input-group","mt-3"],["type","tel","aria-labelledby","inputPhoneLabel","placeholder","Phone","name","Phone","required","",1,"form-control",3,"ngModel","ngModelChange"],["type","text","aria-labelledby","inputAddressLabel","placeholder","Address","name","Address","required","",1,"form-control",3,"ngModel","ngModelChange"],["address","ngModel"],["id","inputAddressLabel"],["aria-labelledby","inputPhoneLabel","placeholder","Message","name","Message","maxlength","1000",1,"form-control",2,"height","100px",3,"ngModel","ngModelChange"],[1,"row","align-items-center","mt-3"],[3,"ButtonText","ButtonSize","ButtonType","PrimaryColour","SecondaryColour","Disabled","Click"],[1,"mb-0","fst-italic"]],template:function(r,o){r&1&&w(0,sM,45,24,"div",0)(1,aM,32,11,"div",1)(2,cM,68,43,"div",2),r&2&&(f("ngIf",o.LayoutType===1),u(),f("ngIf",o.LayoutType===2),u(),f("ngIf",o.LayoutType===3))},dependencies:[ke,Pt,Te,Ct,Jt,Kn,Yn,br,Zn,_r,rl,Si,vn,yP,Ot,ny,CP],styles:[".contact-page-form[_ngcontent-%COMP%]   input[_ngcontent-%COMP%], .contact-page-form[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%], .contact-page-form[_ngcontent-%COMP%]   .input-group-text[_ngcontent-%COMP%]{border-radius:0}.service-form[_ngcontent-%COMP%]{padding:20px 15px;box-shadow:-10px 10px 28px -9px #00000040}.t3-contact-form[_ngcontent-%COMP%]{border:1px solid}"]});let t=e;return t})(),_L=(()=>{let e=class e{constructor(n){this.TemplateId="",this.TemplateName="",this.TemplateURL="",this.ShowBanner=!1,this.IsBrowser=!1,this.IsBrowser=ct(n)}ngOnInit(){if(this.IsBrowser)if((window.location.hostname.indexOf("dazzlysite.co.nz")!==-1||window.location.hostname.indexOf("dazzly.site")!==-1)&&window.self===window.top)switch(this.ShowBanner=!0,this.TemplateId){case"d22c4a5e-0b87-4056-8239-29e92cd0f8a7":this.TemplateName="Service Warrior 2",this.TemplateURL="https://www.dazzly.co/templates/service-warrior-2";break;case"3eb14d43-e903-4de2-891f-c81a492e623b":this.TemplateName="Ecommerce Store 2",this.TemplateURL="https://www.dazzly.co/templates/ecommerce-store-2";break;case"329066a2-6176-4d23-ab85-990b4438fab6":this.TemplateName="Product Enquiry",this.TemplateURL="https://www.dazzly.co/templates/product-enquiry";break;case"e5cc760e-18dd-4f77-a60a-4248db4fcada":this.TemplateName="Quick & Easy",this.TemplateURL="https://www.dazzly.co/templates/quick-and-easy";break;case"f5c07bc6-ab82-4416-8827-1d4aeff895b1":this.TemplateName="Coming Soon",this.TemplateURL="https://www.dazzly.co/templates/coming-soon";break;case"3cff27b4-fb94-4174-af64-952772cabb25":this.TemplateName="Simple Booking",this.TemplateURL="https://www.dazzly.co/templates/simple-booking";break;case"bd0449e5-07eb-4995-9cae-bf8bc082961d":this.TemplateName="Service Warrior 1",this.TemplateURL="https://www.dazzly.co/templates/service-warrior-1";break;case"b2959273-bdb0-46cf-a5c7-b185ddbd8a77":this.TemplateName="Project Portfolio 1",this.TemplateURL="https://www.dazzly.co/templates/project-portfolio-1";break;case"ab6aa28a-c278-4626-8340-92c841701da6":this.TemplateName="Simple Consultant",this.TemplateURL="https://www.dazzly.co/templates/simple-consultant-1";break;case"46f05541-de42-47ad-bdf7-c921c51860cd":this.TemplateName="Ecommerce Store",this.TemplateURL="https://www.dazzly.co/templates/ecommerce-store";break;default:this.TemplateName="Template",this.TemplateURL="https://www.dazzly.co/templates"}else this.ShowBanner=!1}};e.\u0275fac=function(r){return new(r||e)(_(_e))},e.\u0275cmp=se({type:e,selectors:[["app-dazzly-branding-banner"]],inputs:{TemplateId:"TemplateId"},standalone:!0,features:[ae],decls:1,vars:1,consts:[["class","dazzly-upgrade",4,"ngIf"],[1,"dazzly-upgrade"],[1,"dazzly-upgrade-banner"],[1,"row","align-items-center"],[1,"col"],[1,"mb-3"],["target","_blank","rel","nofollow noopener",1,"template-name-link",3,"href"],["href","https://app.dazzly.co","target","_blank","rel","nofollow noopener",1,"btn","edit-button"],[1,"mb-1","fst-italic"],["src","assets/dazzly.png","alt","dazzly icon","height","32","loading","lazy",2,"margin-top","-2px"],["href","https://www.dazzly.co","target","_blank","rel","nofollow noopener"]],template:function(r,o){r&1&&w(0,uM,18,2,"div",0),r&2&&f("ngIf",o.ShowBanner)},dependencies:[ke,Te],styles:[".dazzly-upgrade[_ngcontent-%COMP%]{position:fixed;bottom:0;left:0;padding-left:15px;padding-right:15px;width:100%;max-width:320px;color:#fff;background-color:#1d1d1b;border-top-right-radius:6px;z-index:100}.dazzly-upgrade[_ngcontent-%COMP%]   .dazzly-upgrade-banner[_ngcontent-%COMP%]{padding-top:10px}.dazzly-upgrade[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#ed1c24}.dazzly-upgrade[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:16px;display:inline}.template-name-link[_ngcontent-%COMP%]{text-decoration:underline}.edit-button[_ngcontent-%COMP%]{background-color:#ed1c24;color:#fff!important}"]});let t=e;return t})(),Ir=(()=>{let e=class e{constructor(n){this.IsBrowser=ct(n)}transform(n){if(n&&this.IsBrowser){let r=document.createElement("textarea");return r.innerHTML=n.trim(),r.value}else return}};e.\u0275fac=function(r){return new(r||e)(_(_e,16))},e.\u0275pipe=Bt({name:"decodeHtml",type:e,pure:!0,standalone:!0});let t=e;return t})();var SL=(()=>{let e=class e{constructor(n,r){this.api=n,this.utils=r,this.LayoutType=1,this.WebsiteId="",this.PrimaryColour="",this.SecondaryColour="",this.FormInvalid=!1,this.SubmitSuccess=!1,this.SubmitButtonText="Subscribe",this.SubmitMessageResult="",this.SubscribeToNewsletter={SubscribeToNewsletterEmail:""}}ngOnInit(){}NewsletterSubscribeSubmit(n,r){r&&n.SubscribeToNewsletterEmail.indexOf("@")===-1&&(r=!1),r?(n.FormName="Newsletter Signup",this.FormInvalid=!1,this.SubmitButtonText="Submitting...",this.api.SendContactRequest(n,this.WebsiteId).subscribe(o=>{this.SubmitMessageResult="Subscribed successfully!",this.SubmitSuccess=!0,this.utils.TrackSubmit("subscribe-to-newsletter-form","success",1),this.SubmitButtonText="Subscribe",this.SubscribeToNewsletter={SubscribeToNewsletterEmail:""}},o=>{o.error instanceof Error?(console.log("Client error: ",o.error.message),this.SubmitMessageResult="Error delivering message"):(console.log("Error code: ${err.status}, message: ${err.error}"),this.SubmitMessageResult="Error delivering message"),this.SubmitButtonText="Subscribe"})):this.FormInvalid=!0}};e.\u0275fac=function(r){return new(r||e)(_(Xt),_(Cn))},e.\u0275cmp=se({type:e,selectors:[["app-newsletter-subscribe"]],inputs:{LayoutType:"LayoutType",WebsiteId:"WebsiteId",PrimaryColour:"PrimaryColour",SecondaryColour:"SecondaryColour"},standalone:!0,features:[ae],decls:3,vars:3,consts:[["class","newsletter-signup-form",4,"ngIf"],[1,"newsletter-signup-form"],[1,"row"],[1,"col","text-center","pb-4","mb-4"],[1,"row","justify-content-center"],[1,"col-md-8"],["novalidate","",3,"ngSubmit"],["newsletterSignupForm","ngForm"],[1,"form-group"],[1,"input-group"],["type","email","placeholder","Email Address","name","SubscribeToNewsletterEmail","required","",1,"form-control",3,"ngModel","ngModelChange"],["newsletterSignupEmail","ngModel"],["type","submit",1,"btn","btn-primary",3,"ngStyle","readableTextColour","disabled"],[3,"hidden"],["class","mt-2 text-xl text-center text-danger",4,"ngIf"],[1,"mt-2","text-xl","text-center",3,"ngClass"],[1,"mt-2","text-xl","text-center","text-danger"],[1,"col-sm-6","pt-5","pb-5","rounded",3,"ngStyle"],[1,"display-6","mb-0","text-center",3,"readableTextColour"],[1,"col-sm-6","mt-4","mt-sm-0"],[1,"mb-3"],[1,"input-group","input-group-lg"],[1,"input-group-text"],[1,"row","align-items-center"],[1,"col-auto"],["type","submit",1,"btn","btn-lg","btn-primary",3,"ngStyle","readableTextColour","disabled"],[1,"col"],["class","mb-0 text-danger",4,"ngIf"],[1,"mb-0",3,"ngClass"],[1,"mb-0","text-danger"],[1,"mb-1",3,"readableTextColour"],[1,"input-group","input-group-sm"],[1,"fst-italic",3,"readableTextColour"],[1,"mt-2",3,"ngClass"]],template:function(r,o){r&1&&w(0,pM,22,14,"div",0)(1,hM,22,17,"div",0)(2,mM,17,15,"div",0),r&2&&(f("ngIf",o.LayoutType===1),u(),f("ngIf",o.LayoutType===2),u(),f("ngIf",o.LayoutType===3))},dependencies:[Te,Ct,Pt,Jt,Kn,Yn,br,Zn,_r,Si,vn,Ot]});let t=e;return t})(),IL=(()=>{let e=class e{constructor(n){this.utils=n,this.dark=!1,this.BackgroundColour="",this.Facebook="",this.Twitter="",this.Instagram="",this.Spotify="",this.LinkedIn="",this.YouTube="",this.Pinterest="",this.WhatsApp="",this.TikTok="",this.Track=this.utils.TrackAction}ngOnInit(){this.CheckSocialMediaLinks()}ngOnChanges(n){this.CheckSocialMediaLinks()}CheckSocialMediaLinks(){this.WebsiteContent.FacebookLink&&(this.Facebook=this.WebsiteContent.FacebookLink),this.WebsiteContent.TwitterLink&&(this.Twitter=this.WebsiteContent.TwitterLink),this.WebsiteContent.InstagramLink&&(this.Instagram=this.WebsiteContent.InstagramLink),this.WebsiteContent.SpotifyLink&&(this.Spotify=this.WebsiteContent.SpotifyLink),this.WebsiteContent.LinkedInLink&&(this.LinkedIn=this.WebsiteContent.LinkedInLink),this.WebsiteContent.YouTubeLink&&(this.YouTube=this.WebsiteContent.YouTubeLink),this.WebsiteContent.PinterestLink&&(this.Pinterest=this.WebsiteContent.PinterestLink),this.WebsiteContent.WhatsAppLink&&(this.WhatsApp=this.WebsiteContent.WhatsAppLink),this.WebsiteContent.TikTokLink&&(this.TikTok=this.WebsiteContent.TikTokLink)}};e.\u0275fac=function(r){return new(r||e)(_(Cn))},e.\u0275cmp=se({type:e,selectors:[["app-social-links"]],inputs:{dark:"dark",WebsiteContent:"WebsiteContent",BackgroundColour:"BackgroundColour"},standalone:!0,features:[We,ae],decls:10,vars:9,consts:[[1,"row"],["class","col-auto mb-2",4,"ngIf"],[1,"col-auto","mb-2"],["target","_blank","rel","noopener",3,"href","click"],[3,"type","primaryColour"]],template:function(r,o){r&1&&(d(0,"div",0),w(1,gM,3,3,"div",1)(2,vM,3,3,"div",1)(3,yM,3,3,"div",1)(4,CM,3,3,"div",1)(5,bM,3,3,"div",1)(6,_M,3,3,"div",1)(7,SM,3,3,"div",1)(8,IM,3,3,"div",1)(9,wM,3,3,"div",1),p()),r&2&&(u(),f("ngIf",o.Twitter),u(),f("ngIf",o.Facebook),u(),f("ngIf",o.Pinterest),u(),f("ngIf",o.LinkedIn),u(),f("ngIf",o.Instagram),u(),f("ngIf",o.YouTube),u(),f("ngIf",o.Spotify),u(),f("ngIf",o.WhatsApp),u(),f("ngIf",o.TikTok))},dependencies:[ny,Te]});let t=e;return t})(),ol=(()=>{let e=class e{transform(n,r){return n&&n.sort((o,s)=>o.Order-s.Order),n}};e.\u0275fac=function(r){return new(r||e)},e.\u0275pipe=Bt({name:"sortByOrder",type:e,pure:!0,standalone:!0});let t=e;return t})(),bP=(()=>{let e=class e{constructor(n){this.sanitizer=n}ngOnInit(){}ngOnChanges(n){n.html.currentValue&&(n.html.currentValue.changingThisBreaksApplicationSecurity?n.html.currentValue.changingThisBreaksApplicationSecurity=n.html.currentValue.changingThisBreaksApplicationSecurity.replace(/&quot;/g,'"'):n.html.currentValue=n.html.currentValue.replace(/&quot;/g,'"'),n.html.currentValue.changingThisBreaksApplicationSecurity?this.SanitizedHtml=this.sanitizer.bypassSecurityTrustHtml(n.html.currentValue.changingThisBreaksApplicationSecurity):this.SanitizedHtml=this.sanitizer.bypassSecurityTrustHtml(n.html.currentValue))}};e.\u0275fac=function(r){return new(r||e)(_(Od))},e.\u0275cmp=se({type:e,selectors:[["app-wysiwyg-wrapper"]],inputs:{html:"html"},standalone:!0,features:[We,ae],decls:1,vars:1,consts:[[3,"innerHtml"]],template:function(r,o){r&1&&S(0,"div",0),r&2&&f("innerHtml",o.SanitizedHtml,Om)},styles:["[_nghost-%COMP%]     div{word-break:break-word}[_nghost-%COMP%]     img{max-width:100%}[_nghost-%COMP%]     div .ql-align-justify{text-align:justify}[_nghost-%COMP%]     div .ql-align-center{text-align:center}[_nghost-%COMP%]     div .ql-align-left{text-align:left}[_nghost-%COMP%]     div .ql-align-right{text-align:right}"]});let t=e;return t})(),wL=(()=>{let e=class e{constructor(){this.Staff=[],this.LayoutType=1}ngOnInit(){}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=se({type:e,selectors:[["app-staff-member-grid"]],inputs:{Staff:"Staff",LayoutType:"LayoutType"},standalone:!0,features:[ae],decls:2,vars:2,consts:[["class","row",4,"ngIf"],["class","row mt-5 mb-5 justify-content-center",4,"ngIf"],[1,"row"],["class","col-sm-6 col-lg-4 pb-5",4,"ngFor","ngForOf"],[1,"col-sm-6","col-lg-4","pb-5"],[1,"row","justify-content-center","justify-content-sm-start"],[1,"col-11"],[1,"staff-profile-photo"],["loading","lazy",3,"src","alt",4,"ngIf"],[1,"mt-3","mb-1","text-lg"],[3,"html"],["loading","lazy",3,"src","alt"],[1,"row","mt-5","mb-5","justify-content-center"],[1,"col-md-8"],[1,"row","justify-content-around"],["class","col-sm-6 col-md-4 pb-5",4,"ngFor","ngForOf"],[1,"col-sm-6","col-md-4","pb-5"],[1,"row","justify-content-center"],[1,"col","text-center"],[1,"t2-staff-profile-photo"],["class","rounded","fill","","placeholder","",3,"ngSrc","alt","loaderParams",4,"ngIf"],["fill","","placeholder","",1,"rounded",3,"ngSrc","alt","loaderParams"]],template:function(r,o){r&1&&w(0,EM,3,3,"div",0)(1,PM,5,3,"div",1),r&2&&(f("ngIf",o.LayoutType===1),u(),f("ngIf",o.LayoutType===2))},dependencies:[Te,yt,ol,tr,bP],styles:[".staff-profile-photo[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:100%;height:300px;object-fit:cover}.t2-staff-profile-photo[_ngcontent-%COMP%]{position:relative;width:100%;height:200px}.t2-staff-profile-photo[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{object-fit:contain;clip-path:circle()}"]});let t=e;return t})();var xL=(()=>{let e=class e{constructor(n){this.light=!1,this.BRAND_SUBDOMAIN="dazzlysite.co.nz",this.CreditsAnchorRel="nofollow noopener",this.IsBrowser=ct(n)}ngOnInit(){this.IsBrowser&&(window.location.hostname.indexOf(this.BRAND_SUBDOMAIN)!==-1?this.CreditsAnchorRel="nofollow noopener":this.CreditsAnchorRel="noopener")}};e.\u0275fac=function(r){return new(r||e)(_(_e))},e.\u0275cmp=se({type:e,selectors:[["app-website-credits"]],inputs:{light:"light"},standalone:!0,features:[ae],decls:5,vars:4,consts:[["href","https://www.dazzly.co","target","_blank",3,"ngClass","rel"]],template:function(r,o){r&1&&(d(0,"p")(1,"small"),g(2," Made with "),d(3,"a",0),g(4," dazzly.co "),p()()()),r&2&&(u(3),f("ngClass",Z(2,OM,o.light))("rel",o.CreditsAnchorRel))},dependencies:[ke,Pt]});let t=e;return t})(),_P=(()=>{let e=class e{constructor(n,r,o){this.el=n,this.renderer=r,this.decodeHtml="",this.IsBrowser=ct(o)}ngOnInit(){if(this.decodeHtml&&this.IsBrowser){var n=document.createElement("textarea");n.innerHTML=this.decodeHtml,this.renderer.setProperty(this.el.nativeElement,"innerHTML",n.value)}}ngOnChanges(n){if(n.decodeHtml&&n.decodeHtml.currentValue&&this.IsBrowser){var r=document.createElement("textarea");r.innerHTML=n.decodeHtml.currentValue,this.renderer.setProperty(this.el.nativeElement,"innerHTML",r.value)}}};e.\u0275fac=function(r){return new(r||e)(_(Oe),_(Be),_(_e))},e.\u0275dir=ne({type:e,selectors:[["","decodeHtml",""]],inputs:{decodeHtml:"decodeHtml"},standalone:!0,features:[We]});let t=e;return t})();var SP=["January","February","March","April","May","June","July","August","September","October","November","December"],IP=(()=>{let e=class e{transform(n){return n?SP[n.month-1]+" "+n.day+", "+n.year:""}};e.\u0275fac=function(r){return new(r||e)},e.\u0275pipe=Bt({name:"formatDate",type:e,pure:!0,standalone:!0});let t=e;return t})(),DL=(()=>{let e=class e{transform(n){return n?new Date(n.year,n.month-1,n.day).toISOString():""}};e.\u0275fac=function(r){return new(r||e)},e.\u0275pipe=Bt({name:"formatMachineDate",type:e,pure:!0,standalone:!0});let t=e;return t})(),Po=(()=>{let e=class e{transform(n,r){if(n===0)return"$0";if(n&&!r)return"$"+n.toFixed(2);if(n&&r)switch(r){case"NZD":case"AUD":case"USD":case"nzd":case"usd":case"aud":return"$"+n.toFixed(2)+" "+r.toLocaleUpperCase();default:return n.toFixed(2)+" "+r.toLocaleUpperCase()}else return""+n}};e.\u0275fac=function(r){return new(r||e)},e.\u0275pipe=Bt({name:"formatPrice",type:e,pure:!0,standalone:!0});let t=e;return t})(),wP=(()=>{let e=class e{transform(n,r){return n&&n.slice(0,r)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275pipe=Bt({name:"limit",type:e,pure:!0,standalone:!0});let t=e;return t})();var xP=(()=>{let e=class e{transform(n,r){return n&&n.constructor===Array&&(r==="desc"?n.sort((o,s)=>o.DateAuthored&&s.DateAuthored?new Date(s.DateAuthored.year,s.DateAuthored.month,s.DateAuthored.day).getTime()+new Date(o.DateAuthored.year,o.DateAuthored.month,o.DateAuthored.day).getTime():0):r==="asc"&&n.sort((o,s)=>o.DateAuthored&&s.DateAuthored?new Date(s.DateAuthored.year,s.DateAuthored.month,s.DateAuthored.day).getTime()-new Date(o.DateAuthored.year,o.DateAuthored.month,o.DateAuthored.day).getTime():0)),n}};e.\u0275fac=function(r){return new(r||e)},e.\u0275pipe=Bt({name:"sortByDateAuthored",type:e,pure:!0,standalone:!0});let t=e;return t})();var EL=(()=>{let e=class e{constructor(n){this.router=n,this.BackgroundColour="",this.Items=[],this.OnCheckoutPage=!1,n.events.subscribe(r=>{if(r instanceof dt){let o=r.url.substring(1);o==="checkout"||o.indexOf("checkout-order-status")!==-1?this.OnCheckoutPage=!0:this.OnCheckoutPage=!1}})}ngOnInit(){}};e.\u0275fac=function(r){return new(r||e)(_(Ue))},e.\u0275cmp=se({type:e,selectors:[["app-cart-preview"]],inputs:{BackgroundColour:"BackgroundColour",Items:"Items"},standalone:!0,features:[ae],decls:16,vars:11,consts:[[1,"shoppingcart-preview-container",3,"ngStyle","ngClass"],[1,"d-none","d-sm-block"],[1,"mb-1",3,"readableTextColour"],["src","assets/shopping-cart-light.png","width","16","height","16","alt","shopping card icon","loading","lazy"],["routerLink","/checkout",3,"readableTextColour"],[1,"d-block","d-sm-none"],[1,"mb-1"]],template:function(r,o){r&1&&(d(0,"div",0)(1,"div",1)(2,"p",2)(3,"small"),g(4),p()(),d(5,"p"),S(6,"img",3),d(7,"a",4)(8,"small"),g(9,"Checkout"),p()()()(),d(10,"div",5)(11,"p",6),S(12,"img",3),d(13,"a",4)(14,"small"),g(15),p()()()()()),r&2&&(f("ngStyle",Z(7,Ne,o.BackgroundColour))("ngClass",Z(9,AM,o.Items.length>0&&!o.OnCheckoutPage)),u(2),f("readableTextColour",o.BackgroundColour),u(2),Ve("",o.Items==null?null:o.Items.length," items in cart"),u(3),f("readableTextColour",o.BackgroundColour),u(6),f("readableTextColour",o.BackgroundColour),u(2),Ve("Checkout (",o.Items==null?null:o.Items.length,")"))},dependencies:[ke,Pt,Ct,Io,Qt,Ot],styles:[".shoppingcart-preview-container[_ngcontent-%COMP%]{position:fixed;right:0;top:50%;width:140px;height:75px;font-size:1.1em;z-index:3;padding:10px 10px 0;transform:translate3d(140px,0,0);transition:all .3s ease}.shoppingcart-preview-container[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin-right:6px}.shoppingcart-preview-container[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:underline}.shoppingcart-preview-active[_ngcontent-%COMP%]{transform:translateZ(0)}@media screen and (max-width: 414px){.shoppingcart-preview-container[_ngcontent-%COMP%]{bottom:0!important;top:unset!important;width:124px!important;height:26px!important;font-size:1em!important;padding:0 6px!important}}"]});let t=e;return t})(),ML=(()=>{let e=class e{constructor(n){this.utils=n,this.Products=[],this.EcommerceSettings={},this.Items=[],this.Currency="",this.ProductIndex=0,this.ContainerWidth=0,this.SlideWindowWidth=0,this.HideNext=!1,this.NumberOfSlides=0,this.Slides=[]}ngOnInit(){let n=Object.assign([],this.Products);for(this.Items=n.filter(o=>o.Featured?o:o.Flags?o.Flags.indexOf("Featured")!==-1:void 0);this.Items.length>0;){let o=this.Items.splice(0,3);this.Slides.push(o)}this.Currency=this.utils.GetCurrency(this.EcommerceSettings);let r=document.createElement("script");r.type="text/javascript",r.innerHTML="",r.src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js",r.async=!0,r.defer=!0,document.getElementsByTagName("head")[0].appendChild(r)}};e.\u0275fac=function(r){return new(r||e)(_(Cn))},e.\u0275cmp=se({type:e,selectors:[["app-featured-products-section"]],inputs:{Products:"Products",EcommerceSettings:"EcommerceSettings"},standalone:!0,features:[ae],decls:11,vars:3,consts:[["id","featuredProductsCarousel","data-bs-ride","false",1,"carousel","slide"],["role","listbox",1,"carousel-inner"],["class","row carousel-item","data-bs-interval","10000",3,"ngClass",4,"ngFor","ngForOf"],["type","button","data-bs-target","#featuredProductsCarousel","data-bs-slide","prev",1,"carousel-control-prev",3,"hidden"],["aria-hidden","true",1,"carousel-control-prev-icon"],[1,"visually-hidden"],["type","button","data-bs-target","#featuredProductsCarousel","data-bs-slide","next",1,"carousel-control-next",3,"hidden"],["aria-hidden","true",1,"carousel-control-next-icon"],["data-bs-interval","10000",1,"row","carousel-item",3,"ngClass"],["class","col-4",4,"ngFor","ngForOf"],[1,"col-4"],[1,"product-card"],[1,"slider-product-image",3,"routerLink"],["fill","","placeholder","",1,"img-fit",3,"ngSrc","alt","loaderParams"],[1,"product-card-body"],[1,"mb-0","product-item-content-divider"],["class","mb-0",4,"ngIf"],[1,"mb-0"]],template:function(r,o){r&1&&(d(0,"div",0)(1,"div",1),w(2,RM,2,4,"div",2),d(3,"button",3),S(4,"span",4),d(5,"span",5),g(6,"Previous"),p()(),d(7,"button",6),S(8,"span",7),d(9,"span",5),g(10,"Next"),p()()()()),r&2&&(u(2),f("ngForOf",o.Slides),u(),f("hidden",o.Slides.length<2),u(4),f("hidden",o.Slides.length<2))},dependencies:[Io,Qt,Ir,Po,ke,Pt,yt,Te,tr],styles:[`.product-card[_ngcontent-%COMP%]{background:#fff}.product-card[_ngcontent-%COMP%]:hover{opacity:.9}.product-card[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{display:inline-block;width:100%}.product-card-body[_ngcontent-%COMP%]{margin-top:1em;font-size:1.1em}.product-title[_ngcontent-%COMP%]{font-size:3em;font-weight:700}.product-images[_ngcontent-%COMP%]{position:sticky;top:1em}.product-image-thumb[_ngcontent-%COMP%]{margin-top:1em;margin-right:1em}.product-main-image[_ngcontent-%COMP%]{padding-bottom:325px;background-size:contain;background-repeat:no-repeat}.slider-product-image[_ngcontent-%COMP%]{display:inline-block;position:relative;width:95%;height:300px}.carousel-item[_ngcontent-%COMP%]{display:none;transition:all .1s ease}@media (max-width: 767px){.product-card[_ngcontent-%COMP%]{font-size:small}}.carousel[_ngcontent-%COMP%]   .carousel-control-next[_ngcontent-%COMP%], .carousel[_ngcontent-%COMP%]   .carousel-control-prev[_ngcontent-%COMP%]{top:40%;height:44px;width:44px;border-radius:50%;opacity:.8;background:#fff;box-shadow:1px 5px 11px -2px #000000a1}.carousel-control-prev-icon[_ngcontent-%COMP%], .carousel-control-next-icon[_ngcontent-%COMP%]{background-repeat:no-repeat;background-position:center;background-size:45%,50%,contain}.carousel-control-prev-icon[_ngcontent-%COMP%]{background-image:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg id='Capa_1' xmlns='http://www.w3.org/2000/svg' width='132.6' height='220.82' viewBox='0 0 132.6 240.82'%3E%3Cpath id='Chevron_Right' d='m3.52 129.01l108.3 108.26c4.75 4.74 12.45 4.74 17.22 0 4.75-4.74 4.75-12.44 0-17.18L29.33 120.42 129.02 20.75c4.75-4.74 4.75-12.44 0-17.19-4.75-4.74-12.46-4.74-17.22 0L3.51 111.82c-4.68 4.69-4.68 12.51.01 17.19Z'/%3E%3C/svg%3E")}.carousel-control-next-icon[_ngcontent-%COMP%]{background-image:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg id='Capa_1' xmlns='http://www.w3.org/2000/svg' width='132.6' height='220.82' viewBox='0 0 132.6 240.82'%3E%3Cpath id='Chevron_Right' d='m129.08 111.82L20.78 3.55C16.03-1.18 8.33-1.18 3.56 3.55-1.19 8.29-1.19 15.99 3.56 20.73l99.71 99.67L3.58 220.08c-4.75 4.74-4.75 12.44 0 17.19 4.75 4.74 12.46 4.74 17.22 0l108.3-108.26c4.68-4.69 4.68-12.51-.01-17.19Z'/%3E%3C/svg%3E")}.carousel[_ngcontent-%COMP%]   .carousel-control-next[_ngcontent-%COMP%]{right:10px}.carousel[_ngcontent-%COMP%]   .carousel-control-prev[_ngcontent-%COMP%]{left:10px}.carousel-inner[_ngcontent-%COMP%]   .carousel-item.active[_ngcontent-%COMP%]{display:flex}.carousel-inner[_ngcontent-%COMP%]   .carousel-item-end[_ngcontent-%COMP%], .carousel-inner[_ngcontent-%COMP%]   .carousel-item-start[_ngcontent-%COMP%]{transform:translate(0)}`]});let t=e;return t})(),TL=(()=>{let e=class e{constructor(){this.GalleryImages=[],this.Gallery=[],this.BackgroundColour=""}ngOnInit(){this.Gallery.forEach(n=>{this.GalleryImages.push({src:n.Image.URL,caption:n.Caption,thumb:n.Image.URL})})}OpenImage(n){}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=se({type:e,selectors:[["app-ecom2-gallery-items"]],inputs:{Gallery:"Gallery",BackgroundColour:"BackgroundColour"},standalone:!0,features:[ae],decls:2,vars:1,consts:[[1,"gallery-card-columns"],["class","card gallery-card",4,"ngFor","ngForOf"],[1,"card","gallery-card"],[1,"card-body"],["loading","lazy",1,"img-fluid",3,"src","alt"],[1,"row","justify-content-center"],[1,"col-auto",2,"min-height","0"],["class","gallery-caption",4,"ngIf"],[1,"gallery-caption"],[3,"ngStyle","readableTextColour"]],template:function(r,o){r&1&&(d(0,"div",0),w(1,VM,6,3,"div",1),p()),r&2&&(u(),f("ngForOf",o.GalleryImages))},dependencies:[Ir,ke,yt,Te,Ct,Ot],styles:[".image-items[_ngcontent-%COMP%]{min-height:0}.gallery-page[_ngcontent-%COMP%]{padding-bottom:200px}.gallery-thumb[_ngcontent-%COMP%]{padding-bottom:0;padding-left:15px;padding-right:15px;background-size:cover;background-repeat:no-repeat;background-position:center;transition:all .3s ease;position:relative;z-index:2;cursor:pointer}.gallery-caption[_ngcontent-%COMP%]{margin-top:-40px;text-align:center;width:100%;white-space:nowrap;line-height:1}.gallery-caption[_ngcontent-%COMP%]   small[_ngcontent-%COMP%]{display:inline-block;padding:8px 12px;font-size:1em;color:#fff;width:100%}.gallery-card-columns[_ngcontent-%COMP%]{columns:3}.gallery-card[_ngcontent-%COMP%]{border:none;margin-bottom:0;padding-bottom:15px;break-inside:avoid}.gallery-card[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]{border:none;padding:0}.gallery-card[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{border-radius:6px}@media screen and (max-width: 414px){.gallery-caption[_ngcontent-%COMP%]{white-space:unset!important}}"]});let t=e;return t})(),PL=(()=>{let e=class e{constructor(){this.Products=[],this.Categories=[],this.PrimaryColour="",this.CategorySelected=new ve}ngOnInit(){this.Categories.sort((n,r)=>n.Name<r.Name?-1:n.Name>r.Name?1:0)}SelectCategory(n){this.CategorySelected.emit(n)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=se({type:e,selectors:[["app-products-filter"]],inputs:{Products:"Products",Categories:"Categories",PrimaryColour:"PrimaryColour"},outputs:{CategorySelected:"CategorySelected"},standalone:!0,features:[ae],decls:11,vars:9,consts:[[1,"product-filter-container","text-sm-end",3,"ngClass"],[1,"row","justify-content-center"],[1,"col-10"],[1,"text-lg","fst-italic","text-muted","products-filter-heading"],[1,"product-filter-list"],[1,"category-link",3,"ngStyle","click"],[4,"ngFor","ngForOf"],["routerLinkActive","category-link-active",1,"category-link",3,"ngStyle","click"]],template:function(r,o){r&1&&(d(0,"div",0)(1,"div",1)(2,"div",2)(3,"p",3),g(4,"Category"),p(),d(5,"ul",4)(6,"li")(7,"a",5),N("click",function(){return o.SelectCategory()}),g(8,"All Products"),p()(),w(9,jM,4,6,"li",6),R(10,"sortByOrder"),p()()()()),r&2&&(f("ngClass",Z(5,BM,o.Categories.length<10)),u(7),f("ngStyle",Z(7,Ep,o.PrimaryColour)),u(2),f("ngForOf",ie(10,3,o.Categories)))},dependencies:[ke,Pt,yt,Ct,Ir,ol],styles:[".product-filter-container[_ngcontent-%COMP%]{padding-right:15px;border-right:4px solid black}.product-filter-container-sticky[_ngcontent-%COMP%]{position:sticky;top:1em}.product-filter-list[_ngcontent-%COMP%]{list-style:none;padding-left:0;margin-top:2em;font-size:1.1em}.product-filter-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin-bottom:1em;font-size:1.2em}.category-link-active[_ngcontent-%COMP%]{font-weight:700}@media screen and (max-width: 414px){.products-filter-heading[_ngcontent-%COMP%]{font-size:.8em!important}.product-filter-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{font-size:1em!important}.product-filter-container[_ngcontent-%COMP%]{position:unset!important}}"]});let t=e;return t})(),DP=(()=>{let e=class e{constructor(){this.router=b(Ue),this.viewportScroller=b(Yr),this.shouldScroll=new oe(!1),this.shouldScroll$=this.shouldScroll.asObservable(),this.init()}init(){let n=this.router.events.pipe(Re(r=>r instanceof dr),j(r=>r.position));this.scrollSubscription=n.pipe($e(r=>this.shouldScroll$.pipe(Re(Boolean),j(()=>r)))).subscribe({next:r=>{this.viewportScroller.scrollToPosition(r||[0,0])}})}ngOnDestroy(){this.scrollSubscription.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),EP=(()=>{let e=class e{constructor(){this.restoreScrollService=b(DP)}ngAfterViewInit(){this.restoreScrollService.shouldScroll.next(!0)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=ne({type:e,selectors:[["","restoreScrollPosition",""]],standalone:!0});let t=e;return t})(),Oo=(()=>{let e=class e{constructor(n,r){this.utils=n,this.Items=[],this.STORAGE_KEY="",this.CountryList=[{Code:"AF",Code3:"AFG",name:"Afghanistan",number:"004",Order:2},{Code:"AL",Code3:"ALB",name:"Albania",number:"008",Order:2},{Code:"DZ",Code3:"DZA",name:"Algeria",number:"012",Order:2},{Code:"AS",Code3:"ASM",name:"American Samoa",number:"016",Order:2},{Code:"AD",Code3:"AND",name:"Andorra",number:"020",Order:2},{Code:"AO",Code3:"AGO",name:"Angola",number:"024",Order:2},{Code:"AI",Code3:"AIA",name:"Anguilla",number:"660",Order:2},{Code:"AQ",Code3:"ATA",name:"Antarctica",number:"010",Order:2},{Code:"AG",Code3:"ATG",name:"Antigua and Barbuda",number:"028",Order:2},{Code:"AR",Code3:"ARG",name:"Argentina",number:"032",Order:2},{Code:"AM",Code3:"ARM",name:"Armenia",number:"051",Order:2},{Code:"AW",Code3:"ABW",name:"Aruba",number:"533",Order:2},{Code:"AU",Code3:"AUS",name:"Australia",number:"036",Order:1},{Code:"AT",Code3:"AUT",name:"Austria",number:"040",Order:2},{Code:"AZ",Code3:"AZE",name:"Azerbaijan",number:"031",Order:2},{Code:"BS",Code3:"BHS",name:"Bahamas (the)",number:"044",Order:2},{Code:"BH",Code3:"BHR",name:"Bahrain",number:"048",Order:2},{Code:"BD",Code3:"BGD",name:"Bangladesh",number:"050",Order:2},{Code:"BB",Code3:"BRB",name:"Barbados",number:"052",Order:2},{Code:"BY",Code3:"BLR",name:"Belarus",number:"112",Order:2},{Code:"BE",Code3:"BEL",name:"Belgium",number:"056",Order:2},{Code:"BZ",Code3:"BLZ",name:"Belize",number:"084",Order:2},{Code:"BJ",Code3:"BEN",name:"Benin",number:"204",Order:2},{Code:"BM",Code3:"BMU",name:"Bermuda",number:"060",Order:2},{Code:"BT",Code3:"BTN",name:"Bhutan",number:"064",Order:2},{Code:"BO",Code3:"BOL",name:"Bolivia (Plurinational State of)",number:"068",Order:2},{Code:"BQ",Code3:"BES",name:"Bonaire, Sint Eustatius and Saba",number:"535",Order:2},{Code:"BA",Code3:"BIH",name:"Bosnia and Herzegovina",number:"070",Order:2},{Code:"BW",Code3:"BWA",name:"Botswana",number:"072",Order:2},{Code:"BV",Code3:"BVT",name:"Bouvet Island",number:"074",Order:2},{Code:"BR",Code3:"BRA",name:"Brazil",number:"076",Order:2},{Code:"IO",Code3:"IOT",name:"British Indian Ocean Territory (the)",number:"086",Order:2},{Code:"BN",Code3:"BRN",name:"Brunei Darussalam",number:"096",Order:2},{Code:"BG",Code3:"BGR",name:"Bulgaria",number:"100",Order:2},{Code:"BF",Code3:"BFA",name:"Burkina Faso",number:"854",Order:2},{Code:"BI",Code3:"BDI",name:"Burundi",number:"108",Order:2},{Code:"CV",Code3:"CPV",name:"Cabo Verde",number:"132",Order:2},{Code:"KH",Code3:"KHM",name:"Cambodia",number:"116",Order:2},{Code:"CM",Code3:"CMR",name:"Cameroon",number:"120",Order:2},{Code:"CA",Code3:"CAN",name:"Canada",number:"124",Order:2},{Code:"KY",Code3:"CYM",name:"Cayman Islands (the)",number:"136",Order:2},{Code:"CF",Code3:"CAF",name:"Central African Republic (the)",number:"140",Order:2},{Code:"TD",Code3:"TCD",name:"Chad",number:"148",Order:2},{Code:"CL",Code3:"CHL",name:"Chile",number:"152",Order:2},{Code:"CN",Code3:"CHN",name:"China",number:"156",Order:2},{Code:"CX",Code3:"CXR",name:"Christmas Island",number:"162",Order:2},{Code:"CC",Code3:"CCK",name:"Cocos (Keeling) Islands (the)",number:"166",Order:2},{Code:"CO",Code3:"COL",name:"Colombia",number:"170",Order:2},{Code:"KM",Code3:"COM",name:"Comoros (the)",number:"174",Order:2},{Code:"CD",Code3:"COD",name:"Congo (the Democratic Republic of the)",number:"180",Order:2},{Code:"CG",Code3:"COG",name:"Congo (the)",number:"178",Order:2},{Code:"CK",Code3:"COK",name:"Cook Islands (the)",number:"184",Order:2},{Code:"CR",Code3:"CRI",name:"Costa Rica",number:"188",Order:2},{Code:"HR",Code3:"HRV",name:"Croatia",number:"191",Order:2},{Code:"CU",Code3:"CUB",name:"Cuba",number:"192",Order:2},{Code:"CW",Code3:"CUW",name:"Cura\xE7ao",number:"531",Order:2},{Code:"CY",Code3:"CYP",name:"Cyprus",number:"196",Order:2},{Code:"CZ",Code3:"CZE",name:"Czechia",number:"203",Order:2},{Code:"CI",Code3:"CIV",name:"C\xF4te d'Ivoire",number:"384",Order:2},{Code:"DK",Code3:"DNK",name:"Denmark",number:"208",Order:2},{Code:"DJ",Code3:"DJI",name:"Djibouti",number:"262",Order:2},{Code:"DM",Code3:"DMA",name:"Dominica",number:"212",Order:2},{Code:"DO",Code3:"DOM",name:"Dominican Republic (the)",number:"214",Order:2},{Code:"EC",Code3:"ECU",name:"Ecuador",number:"218",Order:2},{Code:"EG",Code3:"EGY",name:"Egypt",number:"818",Order:2},{Code:"SV",Code3:"SLV",name:"El Salvador",number:"222",Order:2},{Code:"GQ",Code3:"GNQ",name:"Equatorial Guinea",number:"226",Order:2},{Code:"ER",Code3:"ERI",name:"Eritrea",number:"232",Order:2},{Code:"EE",Code3:"EST",name:"Estonia",number:"233",Order:2},{Code:"SZ",Code3:"SWZ",name:"Eswatini",number:"748",Order:2},{Code:"ET",Code3:"ETH",name:"Ethiopia",number:"231",Order:2},{Code:"FK",Code3:"FLK",name:"Falkland Islands (the) [Malvinas]",number:"238",Order:2},{Code:"FO",Code3:"FRO",name:"Faroe Islands (the)",number:"234",Order:2},{Code:"FJ",Code3:"FJI",name:"Fiji",number:"242",Order:2},{Code:"FI",Code3:"FIN",name:"Finland",number:"246",Order:2},{Code:"FR",Code3:"FRA",name:"France",number:"250",Order:2},{Code:"GF",Code3:"GUF",name:"French Guiana",number:"254",Order:2},{Code:"PF",Code3:"PYF",name:"French Polynesia",number:"258",Order:2},{Code:"TF",Code3:"ATF",name:"French Southern Territories (the)",number:"260",Order:2},{Code:"GA",Code3:"GAB",name:"Gabon",number:"266",Order:2},{Code:"GM",Code3:"GMB",name:"Gambia (the)",number:"270",Order:2},{Code:"GE",Code3:"GEO",name:"Georgia",number:"268",Order:2},{Code:"DE",Code3:"DEU",name:"Germany",number:"276",Order:2},{Code:"GH",Code3:"GHA",name:"Ghana",number:"288",Order:2},{Code:"GI",Code3:"GIB",name:"Gibraltar",number:"292",Order:2},{Code:"GR",Code3:"GRC",name:"Greece",number:"300",Order:2},{Code:"GL",Code3:"GRL",name:"Greenland",number:"304",Order:2},{Code:"GD",Code3:"GRD",name:"Grenada",number:"308",Order:2},{Code:"GP",Code3:"GLP",name:"Guadeloupe",number:"312",Order:2},{Code:"GU",Code3:"GUM",name:"Guam",number:"316",Order:2},{Code:"GT",Code3:"GTM",name:"Guatemala",number:"320",Order:2},{Code:"GG",Code3:"GGY",name:"Guernsey",number:"831",Order:2},{Code:"GN",Code3:"GIN",name:"Guinea",number:"324",Order:2},{Code:"GW",Code3:"GNB",name:"Guinea-Bissau",number:"624",Order:2},{Code:"GY",Code3:"GUY",name:"Guyana",number:"328",Order:2},{Code:"HT",Code3:"HTI",name:"Haiti",number:"332",Order:2},{Code:"HM",Code3:"HMD",name:"Heard Island and McDonald Islands",number:"334",Order:2},{Code:"VA",Code3:"VAT",name:"Holy See (the)",number:"336",Order:2},{Code:"HN",Code3:"HND",name:"Honduras",number:"340",Order:2},{Code:"HK",Code3:"HKG",name:"Hong Kong",number:"344",Order:2},{Code:"HU",Code3:"HUN",name:"Hungary",number:"348",Order:2},{Code:"IS",Code3:"ISL",name:"Iceland",number:"352",Order:2},{Code:"IN",Code3:"IND",name:"India",number:"356",Order:2},{Code:"ID",Code3:"IDN",name:"Indonesia",number:"360",Order:2},{Code:"IR",Code3:"IRN",name:"Iran (Islamic Republic of)",number:"364",Order:2},{Code:"IQ",Code3:"IRQ",name:"Iraq",number:"368",Order:2},{Code:"IE",Code3:"IRL",name:"Ireland",number:"372",Order:2},{Code:"IM",Code3:"IMN",name:"Isle of Man",number:"833",Order:2},{Code:"IL",Code3:"ISR",name:"Israel",number:"376",Order:2},{Code:"IT",Code3:"ITA",name:"Italy",number:"380",Order:2},{Code:"JM",Code3:"JAM",name:"Jamaica",number:"388",Order:2},{Code:"JP",Code3:"JPN",name:"Japan",number:"392",Order:2},{Code:"JE",Code3:"JEY",name:"Jersey",number:"832",Order:2},{Code:"JO",Code3:"JOR",name:"Jordan",number:"400",Order:2},{Code:"KZ",Code3:"KAZ",name:"Kazakhstan",number:"398",Order:2},{Code:"KE",Code3:"KEN",name:"Kenya",number:"404",Order:2},{Code:"KI",Code3:"KIR",name:"Kiribati",number:"296",Order:2},{Code:"KP",Code3:"PRK",name:"Korea (the Democratic People's Republic of)",number:"408",Order:2},{Code:"KR",Code3:"KOR",name:"Korea (the Republic of)",number:"410",Order:2},{Code:"KW",Code3:"KWT",name:"Kuwait",number:"414",Order:2},{Code:"KG",Code3:"KGZ",name:"Kyrgyzstan",number:"417",Order:2},{Code:"LA",Code3:"LAO",name:"Lao People's Democratic Republic (the)",number:"418",Order:2},{Code:"LV",Code3:"LVA",name:"Latvia",number:"428",Order:2},{Code:"LB",Code3:"LBN",name:"Lebanon",number:"422",Order:2},{Code:"LS",Code3:"LSO",name:"Lesotho",number:"426",Order:2},{Code:"LR",Code3:"LBR",name:"Liberia",number:"430",Order:2},{Code:"LY",Code3:"LBY",name:"Libya",number:"434",Order:2},{Code:"LI",Code3:"LIE",name:"Liechtenstein",number:"438",Order:2},{Code:"LT",Code3:"LTU",name:"Lithuania",number:"440",Order:2},{Code:"LU",Code3:"LUX",name:"Luxembourg",number:"442",Order:2},{Code:"MO",Code3:"MAC",name:"Macao",number:"446",Order:2},{Code:"MG",Code3:"MDG",name:"Madagascar",number:"450",Order:2},{Code:"MW",Code3:"MWI",name:"Malawi",number:"454",Order:2},{Code:"MY",Code3:"MYS",name:"Malaysia",number:"458",Order:2},{Code:"MV",Code3:"MDV",name:"Maldives",number:"462",Order:2},{Code:"ML",Code3:"MLI",name:"Mali",number:"466",Order:2},{Code:"MT",Code3:"MLT",name:"Malta",number:"470",Order:2},{Code:"MH",Code3:"MHL",name:"Marshall Islands (the)",number:"584",Order:2},{Code:"MQ",Code3:"MTQ",name:"Martinique",number:"474",Order:2},{Code:"MR",Code3:"MRT",name:"Mauritania",number:"478",Order:2},{Code:"MU",Code3:"MUS",name:"Mauritius",number:"480",Order:2},{Code:"YT",Code3:"MYT",name:"Mayotte",number:"175",Order:2},{Code:"MX",Code3:"MEX",name:"Mexico",number:"484",Order:2},{Code:"FM",Code3:"FSM",name:"Micronesia (Federated States of)",number:"583",Order:2},{Code:"MD",Code3:"MDA",name:"Moldova (the Republic of)",number:"498",Order:2},{Code:"MC",Code3:"MCO",name:"Monaco",number:"492",Order:2},{Code:"MN",Code3:"MNG",name:"Mongolia",number:"496",Order:2},{Code:"ME",Code3:"MNE",name:"Montenegro",number:"499",Order:2},{Code:"MS",Code3:"MSR",name:"Montserrat",number:"500",Order:2},{Code:"MA",Code3:"MAR",name:"Morocco",number:"504",Order:2},{Code:"MZ",Code3:"MOZ",name:"Mozambique",number:"508",Order:2},{Code:"MM",Code3:"MMR",name:"Myanmar",number:"104",Order:2},{Code:"NA",Code3:"NAM",name:"Namibia",number:"516",Order:2},{Code:"NR",Code3:"NRU",name:"Nauru",number:"520",Order:2},{Code:"NP",Code3:"NPL",name:"Nepal",number:"524",Order:2},{Code:"NL",Code3:"NLD",name:"Netherlands (the)",number:"528",Order:2},{Code:"NC",Code3:"NCL",name:"New Caledonia",number:"540",Order:2},{Code:"NZ",Code3:"NZL",name:"New Zealand",number:"554",Order:1},{Code:"NI",Code3:"NIC",name:"Nicaragua",number:"558",Order:2},{Code:"NE",Code3:"NER",name:"Niger (the)",number:"562",Order:2},{Code:"NG",Code3:"NGA",name:"Nigeria",number:"566",Order:2},{Code:"NU",Code3:"NIU",name:"Niue",number:"570",Order:2},{Code:"NF",Code3:"NFK",name:"Norfolk Island",number:"574",Order:2},{Code:"MP",Code3:"MNP",name:"Northern Mariana Islands (the)",number:"580",Order:2},{Code:"NO",Code3:"NOR",name:"Norway",number:"578",Order:2},{Code:"OM",Code3:"OMN",name:"Oman",number:"512",Order:2},{Code:"PK",Code3:"PAK",name:"Pakistan",number:"586",Order:2},{Code:"PW",Code3:"PLW",name:"Palau",number:"585",Order:2},{Code:"PS",Code3:"PSE",name:"Palestine, State of",number:"275",Order:2},{Code:"PA",Code3:"PAN",name:"Panama",number:"591",Order:2},{Code:"PG",Code3:"PNG",name:"Papua New Guinea",number:"598",Order:2},{Code:"PY",Code3:"PRY",name:"Paraguay",number:"600",Order:2},{Code:"PE",Code3:"PER",name:"Peru",number:"604",Order:2},{Code:"PH",Code3:"PHL",name:"Philippines (the)",number:"608",Order:2},{Code:"PN",Code3:"PCN",name:"Pitcairn",number:"612",Order:2},{Code:"PL",Code3:"POL",name:"Poland",number:"616",Order:2},{Code:"PT",Code3:"PRT",name:"Portugal",number:"620",Order:2},{Code:"PR",Code3:"PRI",name:"Puerto Rico",number:"630",Order:2},{Code:"QA",Code3:"QAT",name:"Qatar",number:"634",Order:2},{Code:"MK",Code3:"MKD",name:"Republic of North Macedonia",number:"807",Order:2},{Code:"RO",Code3:"ROU",name:"Romania",number:"642",Order:2},{Code:"RU",Code3:"RUS",name:"Russian Federation (the)",number:"643",Order:2},{Code:"RW",Code3:"RWA",name:"Rwanda",number:"646",Order:2},{Code:"RE",Code3:"REU",name:"R\xE9union",number:"638",Order:2},{Code:"BL",Code3:"BLM",name:"Saint Barth\xE9lemy",number:"652",Order:2},{Code:"SH",Code3:"SHN",name:"Saint Helena, Ascension and Tristan da Cunha",number:"654",Order:2},{Code:"KN",Code3:"KNA",name:"Saint Kitts and Nevis",number:"659",Order:2},{Code:"LC",Code3:"LCA",name:"Saint Lucia",number:"662",Order:2},{Code:"MF",Code3:"MAF",name:"Saint Martin (French part)",number:"663",Order:2},{Code:"PM",Code3:"SPM",name:"Saint Pierre and Miquelon",number:"666",Order:2},{Code:"VC",Code3:"VCT",name:"Saint Vincent and the Grenadines",number:"670",Order:2},{Code:"WS",Code3:"WSM",name:"Samoa",number:"882",Order:2},{Code:"SM",Code3:"SMR",name:"San Marino",number:"674",Order:2},{Code:"ST",Code3:"STP",name:"Sao Tome and Principe",number:"678",Order:2},{Code:"SA",Code3:"SAU",name:"Saudi Arabia",number:"682",Order:2},{Code:"SN",Code3:"SEN",name:"Senegal",number:"686",Order:2},{Code:"RS",Code3:"SRB",name:"Serbia",number:"688",Order:2},{Code:"SC",Code3:"SYC",name:"Seychelles",number:"690",Order:2},{Code:"SL",Code3:"SLE",name:"Sierra Leone",number:"694",Order:2},{Code:"SG",Code3:"SGP",name:"Singapore",number:"702",Order:2},{Code:"SX",Code3:"SXM",name:"Sint Maarten (Dutch part)",number:"534",Order:2},{Code:"SK",Code3:"SVK",name:"Slovakia",number:"703",Order:2},{Code:"SI",Code3:"SVN",name:"Slovenia",number:"705",Order:2},{Code:"SB",Code3:"SLB",name:"Solomon Islands",number:"090",Order:2},{Code:"SO",Code3:"SOM",name:"Somalia",number:"706",Order:2},{Code:"ZA",Code3:"ZAF",name:"South Africa",number:"710",Order:2},{Code:"GS",Code3:"SGS",name:"South Georgia and the South Sandwich Islands",number:"239",Order:2},{Code:"SS",Code3:"SSD",name:"South Sudan",number:"728",Order:2},{Code:"ES",Code3:"ESP",name:"Spain",number:"724",Order:2},{Code:"LK",Code3:"LKA",name:"Sri Lanka",number:"144",Order:2},{Code:"SD",Code3:"SDN",name:"Sudan (the)",number:"729",Order:2},{Code:"SR",Code3:"SUR",name:"Suriname",number:"740",Order:2},{Code:"SJ",Code3:"SJM",name:"Svalbard and Jan Mayen",number:"744",Order:2},{Code:"SE",Code3:"SWE",name:"Sweden",number:"752",Order:2},{Code:"CH",Code3:"CHE",name:"Switzerland",number:"756",Order:2},{Code:"SY",Code3:"SYR",name:"Syrian Arab Republic",number:"760",Order:2},{Code:"TW",Code3:"TWN",name:"Taiwan",number:"158",Order:2},{Code:"TJ",Code3:"TJK",name:"Tajikistan",number:"762",Order:2},{Code:"TZ",Code3:"TZA",name:"Tanzania, United Republic of",number:"834",Order:2},{Code:"TH",Code3:"THA",name:"Thailand",number:"764",Order:2},{Code:"TL",Code3:"TLS",name:"Timor-Leste",number:"626",Order:2},{Code:"TG",Code3:"TGO",name:"Togo",number:"768",Order:2},{Code:"TK",Code3:"TKL",name:"Tokelau",number:"772",Order:2},{Code:"TO",Code3:"TON",name:"Tonga",number:"776",Order:2},{Code:"TT",Code3:"TTO",name:"Trinidad and Tobago",number:"780",Order:2},{Code:"TN",Code3:"TUN",name:"Tunisia",number:"788",Order:2},{Code:"TR",Code3:"TUR",name:"Turkey",number:"792",Order:2},{Code:"TM",Code3:"TKM",name:"Turkmenistan",number:"795",Order:2},{Code:"TC",Code3:"TCA",name:"Turks and Caicos Islands (the)",number:"796",Order:2},{Code:"TV",Code3:"TUV",name:"Tuvalu",number:"798",Order:2},{Code:"UG",Code3:"UGA",name:"Uganda",number:"800",Order:2},{Code:"UA",Code3:"UKR",name:"Ukraine",number:"804",Order:2},{Code:"AE",Code3:"ARE",name:"United Arab Emirates (the)",number:"784",Order:2},{Code:"GB",Code3:"GBR",name:"United Kingdom of Great Britain and Northern Ireland (the)",number:"826",Order:2},{Code:"UM",Code3:"UMI",name:"United States Minor Outlying Islands (the)",number:"581",Order:2},{Code:"US",Code3:"USA",name:"United States of America (the)",number:"840",Order:1},{Code:"UY",Code3:"URY",name:"Uruguay",number:"858",Order:2},{Code:"UZ",Code3:"UZB",name:"Uzbekistan",number:"860",Order:2},{Code:"VU",Code3:"VUT",name:"Vanuatu",number:"548",Order:2},{Code:"VE",Code3:"VEN",name:"Venezuela (Bolivarian Republic of)",number:"862",Order:2},{Code:"VN",Code3:"VNM",name:"Viet Nam",number:"704",Order:2},{Code:"VG",Code3:"VGB",name:"Virgin Islands (British)",number:"092",Order:2},{Code:"VI",Code3:"VIR",name:"Virgin Islands (U.S.)",number:"850",Order:2},{Code:"WF",Code3:"WLF",name:"Wallis and Futuna",number:"876",Order:2},{Code:"EH",Code3:"ESH",name:"Western Sahara",number:"732",Order:2},{Code:"YE",Code3:"YEM",name:"Yemen",number:"887",Order:2},{Code:"ZM",Code3:"ZMB",name:"Zambia",number:"894",Order:2},{Code:"ZW",Code3:"ZWE",name:"Zimbabwe",number:"716",Order:2},{Code:"AX",Code3:"ALA",name:"\xC5land Islands",number:"248"}],this.IsBrowser=ct(r),this.cartItemsSubject=new oe(this.Items),this.CartItems$=this.cartItemsSubject.asObservable(),this.cartSummarySubject=new oe(null),this.CartSummary$=this.cartSummarySubject.asObservable(),this.promoSubject$=new De,this.PromotionApplied=this.promoSubject$.asObservable()}CheckStockLevelStatus(n){n.Quantity||(n.Quantity=1);let r="";if(n.Variations&&n.Variations.Variations&&n.Variations.Variations.length>0){for(let o=0;o<n.Variations.Variations.length;o++)o<n.Variations.Variations.length-1?r+=n.Variations.Variations[o].Value+"*":r+=n.Variations.Variations[o].Value;if(n.InventoryControl&&n.InventoryControl.TrackingInventory===!1&&n.InventoryControl.InStock)return!0;{let o=n.Variations.Combinations[r],s=0;if(o)s=o.StockCount;else return!1;return s-n.Quantity>=0}}else return n.InventoryControl&&n.InventoryControl.TrackingInventory?!!(n.InventoryControl.StockCount&&n.InventoryControl.StockCount>0):n.InventoryControl&&!n.InventoryControl.TrackingInventory&&n.InventoryControl.InStock?!0:!n.InventoryControl}SetStorageKey(n){this.STORAGE_KEY=n+"_Cart",this.GetItems()}GetItems(){if(this.IsBrowser){let n=localStorage.getItem(this.STORAGE_KEY);n?this.Items=JSON.parse(n):this.Items=[],this.cartItemsSubject.next(this.Items)}}ClearItems(){this.Items=[],this.IsBrowser&&localStorage.setItem(this.STORAGE_KEY,JSON.stringify(this.Items)),this.cartItemsSubject.next(this.Items)}AddItem(n,r){let o=JSON.parse(JSON.stringify(n));this.Items.push(o),this.IsBrowser&&localStorage.setItem(this.STORAGE_KEY,JSON.stringify(this.Items)),this.utils.TrackAddToCart(n,r),this.cartItemsSubject.next(this.Items)}RemoveItemByIndex(n,r){this.utils.TrackRemoveFromCart(this.Items[n],r),this.Items.splice(n,1),this.IsBrowser&&localStorage.setItem(this.STORAGE_KEY,JSON.stringify(this.Items)),this.cartItemsSubject.next(this.Items)}ItemsUpdated(){this.cartItemsSubject.next(this.Items)}ItemInCart(n){let r=!1;return this.Items&&this.Items.forEach(o=>{o.Id===n.Id&&(r=!0)}),r}ApplyPromotion(n){this.promoSubject$.next(n)}GetCartSummary(n,r,o){let s=0;!this.Items||this.Items.length<1?s=0:(s=0,this.Items.forEach(m=>{s+=m.Price*m.Quantity}),s=parseFloat(s.toFixed(2)));let a=0,l=0,c=[];if(r&&r.TaxSettings&&r.TaxSettings.Rates&&r.TaxSettings.Rates.length>0)for(let m=0;m<r.TaxSettings.Rates.length;m++)n.TaxDetails.ShippingAddress.Country.Code===r.TaxSettings.Rates[m].Country&&(n.ShippingDetails.Option?l+=(s+n.ShippingDetails.Option.Value)*(r.TaxSettings.Rates[m].Value/100):l+=s*(r.TaxSettings.Rates[m].Value/100),c.push({Name:r.TaxSettings.Rates[m].Name,Amount:l}));n.ShippingDetails.Option?a=s+n.ShippingDetails.Option.Value+l:a=s+l;let h={SubTotal:s,Total:a,TotalItems:this.Items.length,Taxes:c};o&&(h.Discount=o),this.cartSummarySubject.next(h)}CalculateTotal(){let n=0;return!this.Items||this.Items.length<1?n=0:(n=0,this.Items.forEach(r=>{n+=r.Price*r.Quantity}),n=parseFloat(n.toFixed(2))),n}};e.\u0275fac=function(r){return new(r||e)(D(Cn),D(_e))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),OL=(()=>{let e=class e{constructor(n,r){this.shoppingCart=n,this.utils=r,this.EcommerceSettings={},this.Products=[],this.PrimaryColour="",this.Currency=""}ngOnInit(){this.Currency=this.utils.GetCurrency(this.EcommerceSettings)}AddToCart(n){n.Quantity=1,n.AddToCartButtonText="ADDED TO CART",setTimeout(()=>n.AddToCartButtonText="",5e3),this.shoppingCart.AddItem(n,this.Currency)}};e.\u0275fac=function(r){return new(r||e)(_(Oo),_(Cn))},e.\u0275cmp=se({type:e,selectors:[["app-products-items"]],inputs:{EcommerceSettings:"EcommerceSettings",Products:"Products",PrimaryColour:"PrimaryColour"},standalone:!0,features:[ae],decls:5,vars:4,consts:[[1,"text-muted","fst-italic",3,"hidden"],[1,"row"],["class","col-md-6 col-xl-3 pb-5",4,"ngFor","ngForOf"],[1,"col-md-6","col-xl-3","pb-5"],["restoreScrollPosition","",1,"card","product-card"],[1,"product-thumbnail",3,"routerLink"],["fill","","placeholder","",1,"img-fit",3,"ngSrc","alt","loaderParams"],["class","product-flag-label",4,"ngIf"],[1,"card-body"],[1,"product-title"],[3,"routerLink","ngStyle"],[1,"mb-0","product-item-content-divider"],[1,"mb-3"],["class","row",4,"ngIf"],[1,"product-flag-label"],[1,"col-auto"],["type","button",1,"btn","btn-sm","btn-block","btn-primary",3,"ngStyle","readableTextColour","click"]],template:function(r,o){r&1&&(d(0,"p",0),g(1,"No Products for this category yet"),p(),d(2,"div",1),w(3,HM,16,18,"div",2),R(4,"sortByOrder"),p()),r&2&&(f("hidden",o.Products.length>0),u(3),f("ngForOf",ie(4,2,o.Products)))},dependencies:[Io,Qt,ke,yt,Te,Ct,ol,Ir,Po,EP,Ot,tr],styles:[".product-card[_ngcontent-%COMP%]{border:none}.product-card[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.product-thumbnail[_ngcontent-%COMP%]{width:100%;height:250px;position:relative;display:inline-block}.product-item-content-divider[_ngcontent-%COMP%]{border-top:1px solid black;display:inline-block;font-size:10px}.product-card[_ngcontent-%COMP%]   .card-footer[_ngcontent-%COMP%]{background:none;border:none}.product-title[_ngcontent-%COMP%]{font-size:1.2em;font-weight:700;margin-bottom:8px}.product-flag-label[_ngcontent-%COMP%]{position:absolute;inset:0 -10px auto auto;padding:0 10px 10px 25px;clip-path:polygon(0 0,100% 0,100% calc(100% - 10px),calc(100% - 10px) 100%,calc(100% - 10px) calc(100% - 10px),0 calc(100% - 10px),10px calc(50% - 5px));background:#242424;box-shadow:0 -10px inset #0005;color:#fff}"]});let t=e;return t})(),iy=(()=>{let e=class e{constructor(n){this.StripeLoaded=!1,this.StripeInitialised=!1,this.StripeInstance=null,this.StripeElements=null,this.IsBrowser=ct(n),this.StripeObject$=new oe(null)}EnableStripe(n){if(!this.StripeLoaded&&this.IsBrowser){let r=document.createElement("script");r.id="",r.type="text/javascript",r.src="https://js.stripe.com/v3/",r.onload=()=>{this.InitStripe(n)},document.getElementsByTagName("body")[0].appendChild(r),this.StripeLoaded=!0}}GetStripeObject(){let n={Instance:this.StripeInstance,Elements:this.StripeElements};this.StripeObject$.next(n)}InitStripe(n){this.StripeInstance=Stripe(Sr.STRIPE_KEY,{stripeAccount:n}),this.StripeElements=this.StripeInstance.elements(),this.StripeInitialised=!0;let r={Instance:this.StripeInstance,Elements:this.StripeElements};this.StripeObject$.next(r)}};e.\u0275fac=function(r){return new(r||e)(D(_e))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),MP=(()=>{let e=class e{constructor(n,r){this.stripeService=n,this.api=r,this.OrderReference="",this.PendingOrderError$=new De,this.StripeClientSecret="",this.StripeError="",this.Ready=!1,this.PaymentInProgress=!1}ngOnInit(){this.InPreviewMode?this.PendingOrderError$.next("Payments are disabled while in website preview mode."):(this.Stripe=this.stripeService.StripeObject$,this.PendingOrder=this.api.InitPayment(this.WebsiteId,this.Order),this.PaymentDetails=_n([this.PendingOrder,this.Stripe]).pipe(j(([n,r])=>({PendingOrder:n,Stripe:r})),ge(n=>{this.OrderReference=n.PendingOrder.data.orderRef,this.StripeObject=n.Stripe,this.StripeClientSecret=n.PendingOrder.data.secret}),ft(n=>(console.log(n),this.PendingOrderError$.next("Error with Afterpay"),V())))),this.stripeService.GetStripeObject()}CheckoutSubmit(n,r){return en(this,null,function*(){if(r){this.PaymentInProgress=!0,this.StripeError="";let o="https://"+location.hostname+"/checkout-order-status/?orderRef="+this.OrderReference+"&paymentMethod=afterpay";this.StripeObject.Instance.confirmAfterpayClearpayPayment(this.StripeClientSecret,{payment_method:{billing_details:{email:this.Order.Email,name:this.Order.Name,address:{line1:this.Order.DeliveryDetails.Address1,city:this.Order.DeliveryDetails.City,country:this.Order.DeliveryDetails.Country.Code,postal_code:this.Order.DeliveryDetails.PostCode}}},return_url:o})}})}};e.\u0275fac=function(r){return new(r||e)(_(iy),_(Xt))},e.\u0275cmp=se({type:e,selectors:[["app-checkout-afterpay-payment"]],inputs:{WebsiteId:"WebsiteId",Order:"Order",InPreviewMode:"InPreviewMode"},standalone:!0,features:[ae],decls:13,vars:9,consts:[["novalidate","",1,"contact-page-form",3,"ngSubmit"],["checkoutPaymentForm","ngForm"],[3,"hidden"],[1,"text-muted","font-italic"],["type","submit",1,"btn","btn-primary",3,"disabled"],[4,"ngIf"],[1,"text-danger"],[1,"loader-wrapper"],[1,"loader"]],template:function(r,o){if(r&1){let s=X();d(0,"form",0,1),N("ngSubmit",function(){M(s);let l=Y(1);return T(o.CheckoutSubmit(l.value,l.valid))}),d(2,"div",2),R(3,"async"),d(4,"p",3),g(5,"You will be redirected to Afterpay to complete the order."),p(),d(6,"button",4),w(7,WM,4,0,"span",5)(8,zM,2,0,"span",5),p()(),d(9,"div")(10,"p",6),g(11),R(12,"async"),p()()()}r&2&&(u(2),f("hidden",!ie(3,5,o.PaymentDetails)),u(4),f("disabled",o.PaymentInProgress||o.InPreviewMode),u(),f("ngIf",o.PaymentInProgress),u(),f("ngIf",!o.PaymentInProgress),u(3),P(ie(12,7,o.PendingOrderError$)))},dependencies:[ke,Te,Ci,Jt,Kn,Zn,vn]});let t=e;return t})(),TP=(()=>{let e=class e{constructor(n,r){this.api=n,this.router=r,this.PendingOrderError$=new De,this.PaymentInProgress=!1}ngOnInit(){}CheckoutSubmit(n,r){return en(this,null,function*(){r&&(this.PaymentInProgress=!0,this.InitOrderSubscription=this.api.InitPayment(this.WebsiteId,this.Order).subscribe(o=>{this.router.navigate(["checkout-order-status"],{queryParams:{orderRef:o.data.orderRef,paymentMethod:"bank-payment"}})},o=>this.PendingOrderError$.next(o)))})}ngOnDestroy(){this.InitOrderSubscription&&this.InitOrderSubscription.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)(_(Xt),_(Ue))},e.\u0275cmp=se({type:e,selectors:[["app-checkout-bank-payment"]],inputs:{EcommerceSettings:"EcommerceSettings",WebsiteId:"WebsiteId",Order:"Order",InPreviewMode:"InPreviewMode"},standalone:!0,features:[ae],decls:13,vars:7,consts:[["novalidate","",1,"contact-page-form",3,"ngSubmit"],["checkoutPaymentForm","ngForm"],[1,"row"],[1,"col"],["type","submit",1,"btn","btn-primary",3,"disabled"],[4,"ngIf"],[1,"text-danger"]],template:function(r,o){if(r&1){let s=X();d(0,"form",0,1),N("ngSubmit",function(){M(s);let l=Y(1);return T(o.CheckoutSubmit(l.value,l.valid))}),d(2,"div",2)(3,"div",3)(4,"p"),g(5),p(),d(6,"button",4),w(7,GM,2,0,"span",5)(8,qM,2,0,"span",5),p()()(),d(9,"div")(10,"p",6),g(11),R(12,"async"),p()()()}r&2&&(u(5),P(o.EcommerceSettings==null||o.EcommerceSettings.PaymentOptions==null||o.EcommerceSettings.PaymentOptions.BankPayment==null?null:o.EcommerceSettings.PaymentOptions.BankPayment.Details),u(),f("disabled",o.PaymentInProgress||o.InPreviewMode),u(),f("ngIf",o.PaymentInProgress),u(),f("ngIf",!o.PaymentInProgress),u(3),P(ie(12,5,o.PendingOrderError$)))},dependencies:[ke,Te,Ci,Jt,Kn,Zn,vn]});let t=e;return t})(),PP=(()=>{let e=class e{constructor(n,r){this.stripeService=n,this.api=r,this.OrderReference="",this.PendingOrderError$=new De,this.StripeClientSecret="",this.StripeError="",this.Ready=!1,this.PaymentInProgress=!1,this.stripeLoading$=new oe(!0),this.StripeLoading=this.stripeLoading$.asObservable().pipe(bl(0))}ngOnInit(){this.InPreviewMode?(this.stripeLoading$.next(!1),this.PendingOrderError$.next("Payments are disabled while in website preview mode.")):(this.Stripe=this.stripeService.StripeObject$,this.PendingOrder=this.api.InitPayment(this.WebsiteId,this.Order),this.PaymentDetails=_n([this.PendingOrder,this.Stripe]).pipe(j(([n,r])=>({PendingOrder:n,Stripe:r})),ge(n=>{this.OrderReference=n.PendingOrder.data.orderRef,this.StripeElementsSetup(n.Stripe,n.PendingOrder.data.secret)}),ft(n=>(this.stripeLoading$.next(!1),n.error?.data&&this.PendingOrderError$.next(n.error.data),V()))),this.stripeService.GetStripeObject())}CheckoutSubmit(n,r){return en(this,null,function*(){if(r){this.PaymentInProgress=!0,this.StripeError="";let{error:o}=yield this.StripeObject.Instance.confirmPayment({elements:this.StripeElements,confirmParams:{return_url:"https://"+location.hostname+"/checkout-order-status/?orderRef="+this.OrderReference+"&paymentMethod=card-payment",receipt_email:this.Order.Email}});o.type==="card_error"||o.type==="validation_error"||o.type==="invalid_request_error"?this.StripeError=o.message:this.StripeError="An unexpected error occurred.",this.PaymentInProgress=!1}})}StripeElementsSetup(n,r){if(n.Elements&&n.Instance){this.StripeObject=n;let o={theme:"stripe"};this.StripeElements=n.Instance.elements({clientSecret:r,appearance:o});let s={layout:{type:"tabs",defaultCollapsed:!1}},a=this.StripeElements.create("payment",s);a.on("change",l=>{l.complete?this.Ready=!0:this.Ready=!1}),a.mount("#payment-element"),this.stripeLoading$.next(!1)}}};e.\u0275fac=function(r){return new(r||e)(_(iy),_(Xt))},e.\u0275cmp=se({type:e,selectors:[["app-checkout-card-payment"]],inputs:{WebsiteId:"WebsiteId",Order:"Order",InPreviewMode:"InPreviewMode"},standalone:!0,features:[ae],decls:18,vars:13,consts:[["novalidate","",1,"contact-page-form",3,"ngSubmit"],["checkoutPaymentForm","ngForm"],[4,"ngIf"],[3,"hidden"],["id","payment-element"],[1,"row","align-items-center","mt-3"],[1,"col-auto"],["type","submit",1,"btn","btn-primary",3,"disabled"],[1,"text-danger","mt-3"],[1,"text-danger"],[1,"placeholder-wave"],[1,"placeholder","placeholder","col-6"],[1,"placeholder","placeholder-lg","col-12"],[1,"placeholder","placeholder-lg","col-6"],["href","#",1,"btn","btn-primary","disabled","placeholder","col-4"],[1,"loader-wrapper"],[1,"loader"]],template:function(r,o){if(r&1){let s=X();d(0,"form",0,1),N("ngSubmit",function(){M(s);let l=Y(1);return T(o.CheckoutSubmit(l.value,l.valid))}),w(2,YM,12,0,"div",2),R(3,"async"),d(4,"div",3),R(5,"async"),S(6,"div",4),d(7,"div",5)(8,"div",6)(9,"button",7),w(10,ZM,4,0,"span",2)(11,KM,2,0,"span",2),p()()(),d(12,"p",8),g(13),p()(),d(14,"div")(15,"p",9),g(16),R(17,"async"),p()()()}r&2&&(u(2),f("ngIf",ie(3,7,o.StripeLoading)),u(2),f("hidden",!ie(5,9,o.PaymentDetails)),u(5),f("disabled",o.PaymentInProgress||!o.Ready||o.InPreviewMode),u(),f("ngIf",o.PaymentInProgress),u(),f("ngIf",!o.PaymentInProgress),u(2),P(o.StripeError),u(3),P(ie(17,11,o.PendingOrderError$)))},dependencies:[ke,Te,Ci,Jt,Kn,Zn,vn]});let t=e;return t})(),OP=(()=>{let e=class e{constructor(n,r){this.api=n,this.router=r,this.PendingOrderError$=new De,this.PaymentInProgress=!1}ngOnInit(){}CheckoutSubmit(n,r){return en(this,null,function*(){r&&(this.PaymentInProgress=!0,this.InitOrderSubscription=this.api.InitPayment(this.WebsiteId,this.Order).subscribe(o=>{this.router.navigate(["checkout-order-status"],{queryParams:{orderRef:o.data.orderRef,paymentMethod:"cash-payment"}})},o=>this.PendingOrderError$.next(o)))})}ngOnDestroy(){this.InitOrderSubscription&&this.InitOrderSubscription.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)(_(Xt),_(Ue))},e.\u0275cmp=se({type:e,selectors:[["app-checkout-cash-payment"]],inputs:{EcommerceSettings:"EcommerceSettings",WebsiteId:"WebsiteId",Order:"Order",InPreviewMode:"InPreviewMode"},standalone:!0,features:[ae],decls:15,vars:8,consts:[["novalidate","",1,"contact-page-form",3,"ngSubmit"],["checkoutPaymentForm","ngForm"],[1,"row"],[1,"col"],["type","submit",1,"btn","btn-primary",3,"disabled"],[4,"ngIf"],[1,"text-danger"]],template:function(r,o){if(r&1){let s=X();d(0,"form",0,1),N("ngSubmit",function(){M(s);let l=Y(1);return T(o.CheckoutSubmit(l.value,l.valid))}),d(2,"div",2)(3,"div",3)(4,"p"),g(5),p(),d(6,"p"),g(7),p(),d(8,"button",4),w(9,QM,2,0,"span",5)(10,JM,2,0,"span",5),p()()(),d(11,"div")(12,"p",6),g(13),R(14,"async"),p()()()}r&2&&(u(5),P(o.EcommerceSettings==null||o.EcommerceSettings.PaymentOptions==null||o.EcommerceSettings.PaymentOptions.CashPayment==null?null:o.EcommerceSettings.PaymentOptions.CashPayment.Details),u(2),P(o.EcommerceSettings==null||o.EcommerceSettings.ClickAndCollect==null?null:o.EcommerceSettings.ClickAndCollect.PickupAddress),u(),f("disabled",o.PaymentInProgress||o.InPreviewMode),u(),f("ngIf",o.PaymentInProgress),u(),f("ngIf",!o.PaymentInProgress),u(3),P(ie(14,6,o.PendingOrderError$)))},dependencies:[ke,Te,Ci,Jt,Kn,Zn,vn]});let t=e;return t})(),AP=(()=>{let e=class e{constructor(n){this.IsBrowser=ct(n),this.PayPalLoaded$=new oe(!1)}EnablePayPal(n,r){if(this.IsBrowser&&n){let o=document.createElement("script");o.id="",o.type="text/javascript",o.src="https://www.paypal.com/sdk/js?client-id="+n+"&disable-funding=credit,card&currency="+r,o.onload=()=>{this.InitPayPal()},document.getElementsByTagName("body")[0].appendChild(o)}}InitPayPal(){this.PayPalLoaded$.next(!0)}};e.\u0275fac=function(r){return new(r||e)(D(_e))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),kP=(()=>{let e=class e{constructor(){this.ShowProductsPage$=new oe(!0),this.ShowArticlesPage$=new oe(!0),this.ShowCheckoutPage$=new oe(!0),this.ShowCustomPagesPage$=new oe(!0),this.ShowServicesPage$=new oe(!0),this.ShowProjectsPage$=new oe(!0)}ShowArticlesPage(n){this.ShowArticlesPage$.next(n)}ShowProductsPage(n){this.ShowProductsPage$.next(n)}ShowCheckoutPage(n){this.ShowCheckoutPage$.next(n)}ShowCustomPagesPage(n){this.ShowCustomPagesPage$.next(n)}ShowServicesPage(n){this.ShowServicesPage$.next(n)}ShowProjectsPage(n){this.ShowProjectsPage$.next(n)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),NP=(()=>{let e=class e{constructor(n,r,o,s,a){this.router=n,this.paypalService=r,this.api=o,this.utils=s,this.pageVisibility=a,this.OrderReference="",this.PendingOrderError$=new De,this.PayPalStatusMessage="",this.Ready=!1,this.PaymentInProgress=!1}ngOnInit(){this.PayPal=this.paypalService.PayPalLoaded$.pipe(ge(n=>{n&&this.PayPalButtonsSetup()}))}PayPalButtonsSetup(){paypal&&paypal.Buttons({createOrder:(n,r)=>(this.Order.PaymentDetails.PaymentMethod="PAYPAL",this.api.InitPayment(this.WebsiteId,this.Order).toPromise().then(o=>o.data.payPalOrder.id)),onApprove:(n,r)=>r.order.capture().then(o=>{o.purchase_units[0].payments.captures[0].status==="COMPLETED"&&(this.PaymentInProgress=!0,this.utils.TrackPurchase(this.Order,this.Order.Currency),this.pageVisibility.ShowCheckoutPage(!1),this.router.navigate(["checkout-order-status"],{queryParams:{orderRef:o.purchase_units[0].reference_id,paymentMethod:"paypal"}}))}),onCancel:n=>{this.PayPalStatusMessage="PayPal Order cancelled"},onError:n=>{this.PayPalStatusMessage="Error processing PayPal Order"}}).render("#paypal-button-container")}};e.\u0275fac=function(r){return new(r||e)(_(Ue),_(AP),_(Xt),_(Cn),_(kP))},e.\u0275cmp=se({type:e,selectors:[["app-checkout-paypal-payment"]],inputs:{WebsiteId:"WebsiteId",Order:"Order",InPreviewMode:"InPreviewMode"},standalone:!0,features:[ae],decls:5,vars:4,consts:[[3,"hidden"],["id","paypal-button-container"],[1,"text-danger","mb-0"]],template:function(r,o){r&1&&(d(0,"div",0),R(1,"async"),S(2,"div",1),d(3,"p",2),g(4),p()()),r&2&&(f("hidden",!ie(1,2,o.PayPal)),u(4),P(o.PayPalStatusMessage))},dependencies:[ke,Ci]});let t=e;return t})(),AL=(()=>{let e=class e{constructor(n,r,o){this.shoppingCart=n,this.api=r,this.utils=o,this.EcommerceSettings={},this.IntegrationSettings={},this.WebsiteShippingOption="",this.PrimaryColour="#D0D7D4",this.InPreviewMode=!1,this.CheckoutStepChanged=new ve,this.Currency="",this.CurrentPaymentOption="",this.StripeClientSecret="",this.CurrentCheckoutStep=1,this.CheckoutStepsCompleted=0,this.CurrentDeliveryOption="",this.StarShipItError="",this.PurchaseFailedMessage="",this.EmailInvalid=!1,this.LoadingStripePayment=!1,this.LoadingShippingOptions=!1,this.IsPickup=!1,this.UseSameBillingAddress=!0,this.SubTotal=0,this.PickupDetailsInvalid=!1,this.Countries=this.shoppingCart.CountryList,this.DeliveryOptionsSelectionMap={"Free pickup":{Checked:!1}},this.PaymentOptionsSelectionMap={CREDIT_CARD:{Checked:!1},BANK_PAYMENT:{Checked:!1},CASH_ON_PICKUP:{Checked:!1},AFTERPAY:{Checked:!1},PAYPAL:{Checked:!1}},this.StarShipItRates=[],this.paymentOptionUpdatedSubject=new oe(""),this.PaymentOption$=this.paymentOptionUpdatedSubject.asObservable(),this.PromoApplied=this.shoppingCart.PromotionApplied,this.PromoSubscription=this.PromoApplied.subscribe(s=>{s?this.Order.PaymentDetails.PromotionsUsed=[s]:this.Order.PaymentDetails.PromotionsUsed=[],this.CurrentPaymentOption&&(this.PaymentOptionsSelectionMap[this.CurrentPaymentOption].Checked=!1),this.CurrentPaymentOption=""})}ngOnInit(){if(this.Currency=this.utils.GetCurrency(this.EcommerceSettings),this.Order.Currency=this.Currency,this.EcommerceSettings&&this.EcommerceSettings.Delivery)for(let n=0;n<this.EcommerceSettings.Delivery.Fees.length;n++)this.DeliveryOptionsSelectionMap[this.EcommerceSettings.Delivery.Fees[n].Label]={Checked:!1};this.CartItemsUpdatedSubscription=this.shoppingCart.CartItems$.subscribe(n=>{this.Order.Items=n})}SetCheckoutStep(n){this.CurrentCheckoutStep=n}CheckoutGoBack(){this.Order.ShippingDetails.Method==="PICKUP"?this.CurrentCheckoutStep=1:this.CurrentCheckoutStep--,this.CheckoutStepChanged.emit({CurrentStep:this.CurrentCheckoutStep,Order:this.Order}),this.CurrentPaymentOption=""}SubmitCheckoutDetailsStep(n,r){if(r){switch(this.UseSameBillingAddress&&(this.Order.TaxDetails.BillingAddress=Object.assign({},this.Order.DeliveryDetails)),this.Order.TaxDetails.ShippingAddress=Object.assign({},this.Order.DeliveryDetails),this.LoadingShippingOptions=!0,this.Order.Name=this.Order.FirstName+" "+this.Order.LastName,this.WebsiteShippingOption){case"STAR_SHIP_IT":this.StarShipItError="",this.api.GetStarShipItRates(this.WebsiteId,this.Order).subscribe(o=>{o.data.forEach(a=>{this.DeliveryOptionsSelectionMap[a.service_code]={Checked:!1}}),o.data.forEach(a=>{this.StarShipItRates.push({Label:a.service_code,Value:a.total_price})}),this.LoadingShippingOptions=!1},o=>{let s=o.error.data.substring(6),a=JSON.parse(s),l=JSON.parse(a);this.LoadingShippingOptions=!1,this.StarShipItError="[StarShipIt Shipping]: ",l.errors.forEach(c=>{this.StarShipItError+=c.details})});break;default:this.LoadingShippingOptions=!1;break}this.CurrentCheckoutStep=2,this.CheckoutStepChanged.emit({CurrentStep:2,Order:this.Order}),this.CheckoutStepsCompleted++,this.scrollAnchor.nativeElement.scrollIntoView({behavior:"smooth"}),this.utils.TrackBeginCheckout(this.Order.Items,this.Currency)}}ProceedWithPickup(){if(!this.Order.FirstName||!this.Order.LastName||!this.Order.Phone)this.PickupDetailsInvalid=!0;else if(this.PickupDetailsInvalid=!1,this.Order.Email&&this.Order.Email.indexOf("@")!==-1){this.Order.Name=this.Order.FirstName+" "+this.Order.LastName;let n={Code:"NZ"};this.Currency==="AUD"&&(n.Code="AU"),this.Currency==="USD"&&(n.Code="US"),this.Order.DeliveryDetails={Address1:"",Address2:"",City:"",Country:n,PostCode:""},this.Order.TaxDetails.BillingAddress=Object.assign({},this.Order.DeliveryDetails),this.Order.TaxDetails.ShippingAddress=Object.assign({},this.Order.DeliveryDetails),this.DeliveryOptionsSelectionMap["Free pickup"]={Checked:!0},this.Order.ShippingDetails={Method:"PICKUP",Option:{Label:"Pickup",Value:0}},this.CurrentCheckoutStep=3,this.CheckoutStepChanged.emit({CurrentStep:3,Order:this.Order}),this.CheckoutStepsCompleted=this.CheckoutStepsCompleted+2,this.LoadingStripePayment=!0,this.utils.TrackBeginCheckout(this.Order.Items,this.Currency)}else this.EmailInvalid=!0}SubmitCheckoutShippingStep(){this.CurrentDeliveryOption&&(this.CurrentCheckoutStep=3,this.CheckoutStepChanged.emit({CurrentStep:3,Order:this.Order}),this.CheckoutStepsCompleted++,this.InPreviewMode||(this.LoadingStripePayment=!0,this.utils.TrackAddShippingInfo(this.Order.Items,this.Order.ShippingDetails.Option.Label,this.Currency)))}UpdateDeliveryOption(n,r){let o=n.target;this.CurrentDeliveryOption="";let s=Object.keys(this.DeliveryOptionsSelectionMap);for(let a=0;a<s.length;a++)this.DeliveryOptionsSelectionMap[s[a]].Checked=!1;if(o.checked)switch(this.WebsiteShippingOption){case"STAR_SHIP_IT":this.CurrentDeliveryOption=r.Label,this.DeliveryOptionsSelectionMap[r.Label]={Checked:!0},this.Order.ShippingDetails={Method:this.WebsiteShippingOption,Option:r};break;case"MANUAL":this.CurrentDeliveryOption=r.Label,this.DeliveryOptionsSelectionMap[r.Label]={Checked:!0},this.Order.ShippingDetails={Method:this.WebsiteShippingOption,Option:r};break}this.shoppingCart.GetCartSummary(this.Order,this.EcommerceSettings)}UpdatePaymentOption(n,r){let o=n.target;this.CurrentPaymentOption=r,this.Order.PaymentDetails.PaymentMethod=this.CurrentPaymentOption;let s=Object.keys(this.PaymentOptionsSelectionMap);for(let a=0;a<s.length;a++)this.PaymentOptionsSelectionMap[s[a]].Checked=!1;o.checked&&(this.PaymentOptionsSelectionMap[r]={Checked:!0})}ngOnDestroy(){this.CartItemsUpdatedSubscription&&this.CartItemsUpdatedSubscription.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)(_(Oo),_(Xt),_(Cn))},e.\u0275cmp=se({type:e,selectors:[["app-checkout-steps"]],viewQuery:function(r,o){if(r&1&&Qi(XM,5),r&2){let s;Ln(s=Vn())&&(o.scrollAnchor=s.first)}},inputs:{WebsiteId:"WebsiteId",Order:"Order",EcommerceSettings:"EcommerceSettings",IntegrationSettings:"IntegrationSettings",StripeObject:"StripeObject",WebsiteShippingOption:"WebsiteShippingOption",PrimaryColour:"PrimaryColour",InPreviewMode:"InPreviewMode"},outputs:{CheckoutStepChanged:"CheckoutStepChanged"},standalone:!0,features:[ae],decls:191,vars:90,consts:[[1,"container-fluid","p-0",3,"hidden"],["scrollAnchor",""],[1,"row","no-gutters","align-items-center","mb-2","pb-1"],[1,"col-auto"],["type","button",1,"btn","btn-link","checkout-step-link",3,"ngClass","click"],[1,"col-auto","p-0","ps-sm-2","pe-sm-2"],["type","button",1,"btn","btn-link","checkout-step-link",3,"ngClass","disabled","click"],["class","card card-outline mb-4",4,"ngIf"],[1,"checkout-step",3,"hidden"],["novalidate","",3,"ngSubmit"],["checkoutStepDetailsForm","ngForm"],[1,"card","mb-4"],[1,"card-header","background-primary",3,"ngStyle"],[1,"row"],[1,"col"],[1,"mb-0",3,"readableTextColour"],[1,"card-body"],[1,"row","align-items-center"],[1,"col-xl-6"],[1,"form-floating","mb-1"],["type","email","aria-labelledby","checkoutEmailLabel","placeholder","Your email address","autocomplete","email","name","Email","required","",1,"form-control",3,"ngModel","ngModelChange"],["email","ngModel"],["id","checkoutEmailLabel"],[3,"hidden"],[1,"text-danger"],[1,"col-xl-6","pt-3","pt-md-1"],[1,"form-check"],["type","checkbox","name","NewsletterSignup","id","checkoutNewsletterSignup",1,"form-check-input",3,"ngModel","ngModelChange"],["newsletterSignup","ngModel"],["for","checkoutNewsletterSignup",1,"form-check-label","form-label"],[1,"card","mb-3"],["class","form-group mb-4",4,"ngIf"],[1,"col-sm-6","col-md-12","col-xl-6"],[1,"form-floating"],["type","text","aria-labelledby","checkoutFirstnameLabel","placeholder","First name","autocomplete","given-name","name","FirstName","required","",1,"form-control",3,"ngModel","ngModelChange"],["firstName","ngModel"],["id","checkoutFirstnameLabel"],["type","text","aria-labelledby","checkoutLastnameLabel","placeholder","Last name","autocomplete","family-name","name","LastName","required","",1,"form-control",3,"ngModel","ngModelChange"],["lastName","ngModel"],["id","checkoutLastnameLabel"],[1,"form-floating","mt-3","mb-1"],["type","tel","aria-labelledby","checkoutPhoneLabel","placeholder","Phone number","autocomplete","tel","name","Phone",1,"form-control",3,"ngModel","ngModelChange"],["phone","ngModel"],["id","checkoutPhoneLabel"],["type","text","aria-labelledby","checkoutAddressLabel","placeholder","Address Line 1","autocomplete","address-line1","name","Address","required","",1,"form-control",3,"ngModel","ngModelChange"],["address","ngModel"],["id","checkoutAddressLabel"],[1,"form-floating","mt-1","mb-3"],["type","text","placeholder","Address Line 2","autocomplete","address-line2","name","Address2",1,"form-control",3,"ngModel","ngModelChange"],["address2","ngModel"],[1,"form-floating","mb-3"],["type","text","aria-labelledby","checkoutCityLabel","placeholder","City","autocomplete","address-level2","name","City","required","",1,"form-control",3,"ngModel","ngModelChange"],["city","ngModel"],["id","checkoutCityLabel"],["type","text","aria-labelledby","checkoutPostcodeLabel","placeholder","Post code","autocomplete","postal-code","name","PostCode","required","",1,"form-control",3,"ngModel","ngModelChange"],["postCode","ngModel"],["id","checkoutPostcodeLabel"],["aria-labelledby","checkoutCountryLabel","placeholder","Country","autocomplete","country","name","Country","required","",1,"form-select",3,"ngModel","ngModelChange"],["country","ngModel"],["disabled","",3,"ngValue"],[3,"ngValue",4,"ngFor","ngForOf"],["id","checkoutCountryLabel"],[1,"form-check","mt-3","mb-3"],["type","checkbox","name","useDifferentBillingAddress","id","useDifferentBillingAddressCheckbox",1,"form-check-input",3,"ngModel","ngModelChange"],["for","useDifferentBillingAddressCheckbox",1,"form-check-label"],["class","card mb-3",3,"hidden",4,"ngIf"],["type","button",1,"btn","btn-primary",3,"ngStyle","readableTextColour","hidden","click"],["type","submit",1,"btn","btn-primary",3,"ngStyle","readableTextColour","hidden"],["class","card-body",4,"ngIf"],["type","button",1,"btn","btn-primary",3,"ngStyle","readableTextColour","disabled","click"],["class","row align-items-center pt-3 pb-3 border-bottom",3,"hidden",4,"ngIf"],["class","row pt-3 pb-3 border-bottom",4,"ngIf"],["class","row pt-3 pb-3",4,"ngIf"],[1,"card"],[1,"card-body","background-light-gray"],["class","fst-italic mb-0 text-info",4,"ngIf"],[4,"ngIf"],["type","button",1,"btn","btn-sm","btn-secondary","mt-3",3,"hidden","click"],[1,"card","card-outline","mb-4"],[1,"mb-2","fw-bold",3,"readableTextColour"],[1,"mb-1"],[1,"form-group","mb-4"],["type","checkbox","name","Pickup","id","checkoutPickup",1,"form-check-input",3,"ngModel","ngModelChange"],["checkoutPickup","ngModel"],["for","checkoutPickup",1,"form-check-label"],[3,"ngValue"],[1,"card","mb-3",3,"hidden"],["type","text","aria-labelledby","checkoutBillingAddressLabel","placeholder","Address Line 1","autocomplete","address-line1","name","BillingAddress","required","",1,"form-control",3,"ngModel","ngModelChange"],["billingAddress","ngModel"],["id","checkoutBillingAddressLabel"],["type","text","placeholder","Address Line 2","autocomplete","address-line2","name","BillingAddress2",1,"form-control",3,"ngModel","ngModelChange"],["billingAddress2","ngModel"],[1,"col-6","col-md-12","col-xl-6"],["type","text","aria-labelledby","checkoutBillingCityLabel","placeholder","City","autocomplete","address-level2","name","BillingCity","required","",1,"form-control",3,"ngModel","ngModelChange"],["billingCity","ngModel"],["id","checkoutBillingCityLabel"],["aria-labelledby","checkoutBillingCountryLabel","placeholder","Country","autocomplete","country","name","BillingCountry","required","",1,"form-select",3,"ngModel","ngModelChange"],["billingCountry","ngModel"],["id","checkoutBillingCountryLabel"],[1,"loader-wrapper",3,"hidden"],[1,"loader"],["class","text-danger",4,"ngIf"],[1,"form-floating","mt-4"],["aria-labelledby","inputMessageLabel","name","Notes","maxlength","1000",1,"form-control",2,"height","100px",3,"ngModel","ngModelChange"],["notes","ngModel"],["id","inputMessageLabel"],["class","row pt-3 pb-3 border-bottom",4,"ngFor","ngForOf"],["class","text-muted fst-italic",4,"ngIf"],[1,"row","pt-3","pb-3","border-bottom"],["type","checkbox",1,"form-check-input",3,"id","name","ngModel","ngModelChange","change"],[1,"form-check-label",3,"for"],[1,"text-muted","fst-italic"],["routerLink","/contact"],[1,"row","pt-3","pb-3"],["type","checkbox","id","CurrentPickupOption","name","CurrentPickupOption",1,"form-check-input",3,"ngModel","ngModelChange","change"],["for","CurrentPickupOption",1,"form-check-label"],[1,"row","align-items-center","pt-3","pb-3","border-bottom",3,"hidden"],["id","cardPaymentOption","type","checkbox","name","PaymentCardOption",1,"form-check-input",3,"ngModel","ngModelChange","change"],["for","cardPaymentOption",1,"form-check-label","form-label","mb-0"],[1,"row","align-items-center","justify-content-end","no-gutters"],["src","assets/visa-logo.png","height","14","alt","visa payment logo","loading","lazy"],["src","assets/mastercard-logo.png","height","16","alt","mastercard payment logo","loading","lazy"],["src","assets/american-express-logo.png","height","16","alt","american express payment logo","loading","lazy"],["src","assets/jcb.gif","height","18","alt","jcb logo","loading","lazy"],["src","assets/unionpay-logo.png","height","18","alt","china unionpay logo","loading","lazy"],["id","afterpayOption","type","checkbox","name","CashPaymentOption",1,"form-check-input",3,"ngModel","ngModelChange","change"],["for","afterpayOption",1,"form-check-label","form-label"],[1,"col","text-end"],["src","assets/afterpay-button.png","height","30","alt","afterpay logo button","loading","lazy"],["id","payPalOption","type","checkbox","name","PayPalPaymentOption",1,"form-check-input",3,"ngModel","ngModelChange","change"],["for","payPalOption",1,"form-check-label","form-label"],["src","assets/paypal-logo.png","height","22","alt","paypal logo","loading","lazy"],["id","bankPaymentOption","type","checkbox","name","BankPaymentOption",1,"form-check-input",3,"ngModel","ngModelChange","change"],["for","bankPaymentOption",1,"form-check-label","form-label"],["id","cashPickupOption","type","checkbox","name","CashPaymentOption",1,"form-check-input",3,"ngModel","ngModelChange","change"],["for","cashPickupOption",1,"form-check-label","form-label"],[1,"fst-italic","mb-0","text-info"],[3,"WebsiteId","Order","InPreviewMode"],[3,"WebsiteId","Order","EcommerceSettings","InPreviewMode"]],template:function(r,o){if(r&1){let s=X();d(0,"div",0),S(1,"span",null,1),d(3,"div",2)(4,"div",3)(5,"button",4),N("click",function(){return o.SetCheckoutStep(1)}),g(6,"Details"),p()(),d(7,"div",5)(8,"b"),g(9,">"),p()(),d(10,"div",3)(11,"button",6),N("click",function(){return o.SetCheckoutStep(2)}),g(12," Delivery "),p()(),d(13,"div",5)(14,"b"),g(15,">"),p()(),d(16,"div",3)(17,"button",6),N("click",function(){return o.SetCheckoutStep(3)}),g(18," Payment "),p()()(),w(19,eT,6,2,"div",7),d(20,"div",8)(21,"form",9,10),N("ngSubmit",function(){M(s);let l=Y(22);return T(o.SubmitCheckoutDetailsStep(l.value,l.valid))}),d(23,"div",11)(24,"div",12)(25,"div",13)(26,"div",14)(27,"h5",15),g(28,"Contact Details"),p()()()(),d(29,"div",16)(30,"div",17)(31,"div",18)(32,"div",19)(33,"input",20,21),$("ngModelChange",function(l){return H(o.Order.Email,l)||(o.Order.Email=l),l}),p(),d(35,"label",22),g(36,"Email"),p()(),d(37,"div",23)(38,"small",24)(39,"i"),g(40,"Contact email is required."),p()()(),d(41,"div",23)(42,"small",24)(43,"i"),g(44,"Email is required for pickup"),p()()()(),d(45,"div",25)(46,"div",26)(47,"input",27,28),$("ngModelChange",function(l){return H(o.Order.NewsletterSignup,l)||(o.Order.NewsletterSignup=l),l}),p(),d(49,"label",29),g(50," Email me with news and offers "),p()()()()()(),d(51,"div",30)(52,"div",12)(53,"div",13)(54,"div",14)(55,"h5",15),g(56,"Shipping Information"),p()()()(),d(57,"div",16),w(58,tT,6,1,"div",31),d(59,"div",17)(60,"div",32)(61,"div",33)(62,"input",34,35),$("ngModelChange",function(l){return H(o.Order.FirstName,l)||(o.Order.FirstName=l),l}),p(),d(64,"label",36),g(65,"First name"),p()(),d(66,"div",23)(67,"small",24)(68,"i"),g(69,"First name is required."),p()()(),d(70,"div",23)(71,"small",24)(72,"i"),g(73,"First name is required."),p()()()(),d(74,"div",32)(75,"div",33)(76,"input",37,38),$("ngModelChange",function(l){return H(o.Order.LastName,l)||(o.Order.LastName=l),l}),p(),d(78,"label",39),g(79,"Last name"),p()(),d(80,"div",23)(81,"small",24)(82,"i"),g(83,"Last name is required."),p()()(),d(84,"div",23)(85,"small",24)(86,"i"),g(87,"Last name is required."),p()()()()(),d(88,"div",23)(89,"div",17)(90,"div",18)(91,"div",40)(92,"input",41,42),$("ngModelChange",function(l){return H(o.Order.Phone,l)||(o.Order.Phone=l),l}),p(),d(94,"label",43),g(95,"Phone"),p()(),d(96,"div",23)(97,"small",24)(98,"i"),g(99,"Phone is required for pickup."),p()()()()()(),d(100,"div",23)(101,"div",40)(102,"input",44,45),$("ngModelChange",function(l){return H(o.Order.DeliveryDetails.Address1,l)||(o.Order.DeliveryDetails.Address1=l),l}),p(),d(104,"label",46),g(105,"Address Line 1"),p()(),d(106,"div",23)(107,"small",24)(108,"i"),g(109,"Address is required."),p()()(),d(110,"div",47)(111,"input",48,49),$("ngModelChange",function(l){return H(o.Order.DeliveryDetails.Address2,l)||(o.Order.DeliveryDetails.Address2=l),l}),p(),d(113,"label"),g(114,"Address Line 2"),p()(),d(115,"div",13)(116,"div",32)(117,"div",50)(118,"input",51,52),$("ngModelChange",function(l){return H(o.Order.DeliveryDetails.City,l)||(o.Order.DeliveryDetails.City=l),l}),p(),d(120,"label",53),g(121,"City"),p()(),d(122,"div",23)(123,"small",24)(124,"i"),g(125,"City is required."),p()()()(),d(126,"div",32)(127,"div",50)(128,"input",54,55),$("ngModelChange",function(l){return H(o.Order.DeliveryDetails.PostCode,l)||(o.Order.DeliveryDetails.PostCode=l),l}),p(),d(130,"label",56),g(131,"Post code"),p()(),d(132,"div",23)(133,"small",24)(134,"i"),g(135,"Post code is required."),p()()()()(),d(136,"div",50)(137,"select",57,58),$("ngModelChange",function(l){return H(o.Order.DeliveryDetails.Country,l)||(o.Order.DeliveryDetails.Country=l),l}),d(139,"option",59),g(140,"Choose Country"),p(),w(141,nT,2,2,"option",60),R(142,"sortByOrder"),p(),d(143,"label",61),g(144,"Country"),p()(),d(145,"div",23)(146,"small",24)(147,"i"),g(148,"Country is required."),p()()(),d(149,"div",62)(150,"input",63),$("ngModelChange",function(l){return H(o.UseSameBillingAddress,l)||(o.UseSameBillingAddress=l),l}),p(),d(151,"label",64),g(152," Use shipping address for billing address "),p()()()()(),w(153,rT,46,16,"div",65),d(154,"button",66),N("click",function(){return o.ProceedWithPickup()}),g(155,"Continue to next step"),p(),d(156,"button",67),g(157,"Continue to Delivery"),p()()(),d(158,"div",8)(159,"div",30)(160,"div",12)(161,"div",13)(162,"div",14)(163,"h5",15),g(164,"Shipping Option"),p()()()(),w(165,pT,14,7,"div",68),p(),d(166,"button",69),N("click",function(){return o.SubmitCheckoutShippingStep()}),g(167,"Continue to Payment"),p()(),d(168,"div",8)(169,"div",30)(170,"div",12)(171,"div",13)(172,"div",14)(173,"h5",15),g(174,"Payment Method"),p()()()(),d(175,"div",16),w(176,fT,18,2,"div",70)(177,hT,8,1,"div",71)(178,mT,8,1,"div",71)(179,gT,6,1,"div",71)(180,vT,6,1,"div",72),p()(),d(181,"div",73)(182,"div",74),w(183,yT,2,0,"p",75)(184,CT,2,3,"div",76)(185,bT,2,3,"div",76)(186,_T,2,3,"div",76)(187,ST,2,4,"div",76)(188,IT,2,4,"div",76),p()()(),d(189,"button",77),N("click",function(){return o.CheckoutGoBack()}),g(190,"< Go back"),p()()}if(r&2){let s=Y(22),a=Y(34),l=Y(63),c=Y(77),h=Y(103),m=Y(119),v=Y(129),C=Y(138);f("hidden",o.Order.Items.length<1),u(5),f("ngClass",Z(70,xp,o.CurrentCheckoutStep===1)),u(6),f("ngClass",Z(72,xp,o.CurrentCheckoutStep===2))("disabled",o.CheckoutStepsCompleted<2),u(6),f("ngClass",Z(74,xp,o.CurrentCheckoutStep===3))("disabled",o.CheckoutStepsCompleted<3),u(2),f("ngIf",o.EcommerceSettings.CheckoutMessage),u(),f("hidden",o.CurrentCheckoutStep!==1),u(4),f("ngStyle",Z(76,Ne,o.PrimaryColour)),u(3),f("readableTextColour",o.PrimaryColour),u(6),U("ngModel",o.Order.Email),u(4),f("hidden",a.valid||a.pristine&&!s.submitted||o.EmailInvalid),u(4),f("hidden",!o.EmailInvalid),u(6),U("ngModel",o.Order.NewsletterSignup),u(5),f("ngStyle",Z(78,Ne,o.PrimaryColour)),u(3),f("readableTextColour",o.PrimaryColour),u(3),f("ngIf",o.EcommerceSettings==null||o.EcommerceSettings.ClickAndCollect==null?null:o.EcommerceSettings.ClickAndCollect.PickupAddress),u(4),U("ngModel",o.Order.FirstName),u(4),f("hidden",l.valid||l.pristine&&!s.submitted),u(4),f("hidden",!o.PickupDetailsInvalid),u(6),U("ngModel",o.Order.LastName),u(4),f("hidden",c.valid||c.pristine&&!s.submitted||!o.PickupDetailsInvalid),u(4),f("hidden",!o.PickupDetailsInvalid),u(4),f("hidden",!o.IsPickup),u(4),U("ngModel",o.Order.Phone),u(4),f("hidden",!o.PickupDetailsInvalid),u(4),f("hidden",o.IsPickup),u(2),U("ngModel",o.Order.DeliveryDetails.Address1),u(4),f("hidden",h.valid||h.pristine&&!s.submitted),u(5),U("ngModel",o.Order.DeliveryDetails.Address2),u(7),U("ngModel",o.Order.DeliveryDetails.City),u(4),f("hidden",m.valid||m.pristine&&!s.submitted),u(6),U("ngModel",o.Order.DeliveryDetails.PostCode),u(4),f("hidden",v.valid||v.pristine&&!s.submitted),u(5),U("ngModel",o.Order.DeliveryDetails.Country),u(2),f("ngValue",""),u(2),f("ngForOf",ie(142,68,o.Countries)),u(4),f("hidden",C.valid||C.pristine&&!s.submitted),u(5),U("ngModel",o.UseSameBillingAddress),u(3),f("ngIf",!o.UseSameBillingAddress),u(),f("ngStyle",Z(80,Ne,o.PrimaryColour))("readableTextColour",o.PrimaryColour)("hidden",!o.IsPickup),u(2),f("ngStyle",Z(82,Ne,o.PrimaryColour))("readableTextColour",o.PrimaryColour)("hidden",o.IsPickup),u(2),f("hidden",o.CurrentCheckoutStep!==2),u(2),f("ngStyle",Z(84,Ne,o.PrimaryColour)),u(3),f("readableTextColour",o.PrimaryColour),u(2),f("ngIf",o.DeliveryOptionsSelectionMap),u(),f("ngStyle",Z(86,Ne,o.PrimaryColour))("readableTextColour",o.PrimaryColour)("disabled",!o.CurrentDeliveryOption),u(2),f("hidden",o.CurrentCheckoutStep!==3),u(2),f("ngStyle",Z(88,Ne,o.PrimaryColour)),u(3),f("readableTextColour",o.PrimaryColour),u(3),f("ngIf",o.PaymentOptionsSelectionMap),u(),f("ngIf",(o.EcommerceSettings==null||o.EcommerceSettings.Stripe==null?null:o.EcommerceSettings.Stripe.AfterpayEnabled)&&!o.IsPickup),u(),f("ngIf",o.IntegrationSettings.PayPal==null?null:o.IntegrationSettings.PayPal.ClientId),u(),f("ngIf",o.EcommerceSettings==null||o.EcommerceSettings.PaymentOptions==null||o.EcommerceSettings.PaymentOptions.BankPayment==null?null:o.EcommerceSettings.PaymentOptions.BankPayment.Details),u(),f("ngIf",o.EcommerceSettings==null||o.EcommerceSettings.PaymentOptions==null||o.EcommerceSettings.PaymentOptions.CashPayment==null?null:o.EcommerceSettings.PaymentOptions.CashPayment.Details),u(3),f("ngIf",!o.CurrentPaymentOption),u(),f("ngIf",o.CurrentPaymentOption==="CREDIT_CARD"),u(),f("ngIf",o.CurrentPaymentOption==="AFTERPAY"),u(),f("ngIf",o.CurrentPaymentOption==="PAYPAL"),u(),f("ngIf",o.CurrentPaymentOption==="BANK_PAYMENT"),u(),f("ngIf",o.CurrentPaymentOption==="CASH_ON_PICKUP"),u(),f("hidden",o.CurrentCheckoutStep<2)}},dependencies:[ke,Pt,yt,Te,Ct,Jt,Kn,Qv,Xv,Yn,vp,nl,br,Zn,_r,rl,Si,vn,ol,Po,PP,MP,NP,TP,OP,Ot],styles:[".checkout-step-link[_ngcontent-%COMP%]{color:dark-gray;text-decoration:none}.checkout-step-link-active[_ngcontent-%COMP%]{font-weight:700}.card-footer[_ngcontent-%COMP%]{background:none}.loader-wrapper[_ngcontent-%COMP%]{width:33px;height:33px;overflow:hidden}.loader[_ngcontent-%COMP%], .loader[_ngcontent-%COMP%]:after{border-radius:50%;width:32px;height:32px}.loader[_ngcontent-%COMP%]{font-size:10px;position:relative;text-indent:-9999em;border-top:6px solid rgba(0,0,0,.2);border-right:6px solid rgba(0,0,0,.2);border-bottom:6px solid rgba(0,0,0,.2);border-left:6px solid #000;-webkit-transform:translateZ(0);-ms-transform:translateZ(0);transform:translateZ(0);-webkit-animation:_ngcontent-%COMP%_load8 1.1s infinite linear;animation:_ngcontent-%COMP%_load8 1.1s infinite linear}@-webkit-keyframes _ngcontent-%COMP%_load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes _ngcontent-%COMP%_load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}"]});let t=e;return t})(),kL=(()=>{let e=class e{constructor(n){this.cartService=n,this.Currency=""}ngOnInit(){}UpdatePrice(){this.Item.Quantity<1&&(this.Item.Quantity=1),this.cartService.ItemsUpdated()}RemoveFromCart(){this.cartService.RemoveItemByIndex(this.Index,this.Currency)}};e.\u0275fac=function(r){return new(r||e)(_(Oo))},e.\u0275cmp=se({type:e,selectors:[["app-checkout-items"]],inputs:{Item:"Item",Index:"Index",Currency:"Currency",CurrentCheckoutStep:"CurrentCheckoutStep"},standalone:!0,features:[ae],decls:35,vars:21,consts:[[1,"row","align-items-center"],[1,"col-10","col-sm-6","col-md-6","col-xl-6","order-0"],[1,"col-sm-3","col-md-3"],[3,"routerLink"],["loading","lazy",1,"img-fluid","checkout-item-thumb",3,"src","alt"],[1,"col-sm-9","col-md-9"],[1,"mb-0"],[4,"ngFor","ngForOf"],[1,"row","d-flex","d-sm-none","mt-2"],[1,"col-auto"],["type","number","min","1","max","100","name","Quantity","required","",1,"form-control","form-control-sm",3,"ngModel","disabled","ngModelChange","change"],[1,"text-lg","d-flex","d-sm-none","mt-2"],[1,"col-12","col-sm-2","col-lg-2","order-4","order-sm-1","d-none","d-sm-flex","ps-0","pe-0"],[1,"row"],[1,"col-12","col-sm-2","col-md-3","order-3","order-sm-2","d-none","d-sm-flex"],[1,"col-2","col-sm-2","col-md-1","order-2","order-sm-4"],[1,"col","text-sm-right","item-price-col"],["type","button",1,"btn",3,"disabled","click"],["src","assets/cancel-red.png","width","12","height","12","alt","remove item from cart icon","loading","lazy"],["class","mb-0",4,"ngIf"],[1,"text-muted"]],template:function(r,o){r&1&&(d(0,"div",0)(1,"div",1)(2,"div",0)(3,"div",2)(4,"a",3),S(5,"img",4),p()(),d(6,"div",5)(7,"p",6)(8,"a",3),g(9),R(10,"decodeHtml"),p()(),w(11,xT,2,1,"div",7),d(12,"div",8)(13,"div",9),g(14,"Qty"),p(),d(15,"div",9)(16,"input",10),$("ngModelChange",function(a){return H(o.Item.Quantity,a)||(o.Item.Quantity=a),a}),N("change",function(){return o.UpdatePrice()}),p()()(),d(17,"p",11),g(18),R(19,"formatPrice"),p()()()(),d(20,"div",12)(21,"div",13)(22,"div",9)(23,"input",10),$("ngModelChange",function(a){return H(o.Item.Quantity,a)||(o.Item.Quantity=a),a}),N("change",function(){return o.UpdatePrice()}),p()()()(),d(24,"div",14)(25,"div",13)(26,"div",9)(27,"p",6),g(28),R(29,"formatPrice"),p()()()(),d(30,"div",15)(31,"div",13)(32,"div",16)(33,"button",17),N("click",function(){return o.RemoveFromCart()}),S(34,"img",18),p()()()()()),r&2&&(u(4),Se("routerLink","/products/",o.Item.Slug,""),u(),f("src",o.Item.Image==null?null:o.Item.Image.URL,ue)("alt",o.Item.Image==null?null:o.Item.Image.Name),u(3),Se("routerLink","/products/",o.Item.Slug,""),u(),P(ie(10,13,o.Item.Name)),u(2),f("ngForOf",o.Item.Variations==null?null:o.Item.Variations.Variations),u(5),U("ngModel",o.Item.Quantity),f("disabled",o.CurrentCheckoutStep===3),u(2),P(Ie(19,15,o.Item.Price,o.Currency)),u(5),U("ngModel",o.Item.Quantity),f("disabled",o.CurrentCheckoutStep===3),u(5),P(Ie(29,18,o.Item.Price,o.Currency)),u(5),f("disabled",o.CurrentCheckoutStep===3))},dependencies:[Io,Qt,Jt,Yn,Sp,br,_r,wp,Ip,Si,Po,ke,yt,Te,Ir],styles:[".item-description[_ngcontent-%COMP%]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.checkout-item-thumb[_ngcontent-%COMP%]{max-height:50px}.item-price-col[_ngcontent-%COMP%]{padding:0}"]});let t=e;return t})(),NL=(()=>{let e=class e{constructor(n,r,o){this.shoppingCart=n,this.api=r,this.utils=o,this.Currency="",this.ShowPromoCodeInput=!1,this.PromoCode="",this.PromoCheckResult="",this.DiscountApplied=!1,this.CheckingPromo=!1,this.Total=this.shoppingCart.CartSummary$.pipe(j(s=>s?.Total)),this.SubTotal=this.shoppingCart.CartSummary$.pipe(j(s=>s.SubTotal)),this.TotalItems=this.shoppingCart.CartSummary$.pipe(j(s=>s?.TotalItems)),this.DiscountAmount=this.shoppingCart.CartSummary$.pipe(j(s=>s?.Discount)),this.Taxes=this.shoppingCart.CartSummary$.pipe(j(s=>s?.Taxes))}ngOnInit(){}ToggleShowPromoCode(){this.ShowPromoCodeInput?this.ShowPromoCodeInput=!1:this.ShowPromoCodeInput=!0}ApplyPromoCode(n,r,o){this.CheckingPromo=!0,this.api.CheckPromoCode(n,r,this.WebsiteId).subscribe(s=>{this.shoppingCart.ApplyPromotion(r),this.DiscountApplied=!0,this.shoppingCart.GetCartSummary(n,o,s.data),this.CheckingPromo=!1,this.PromoCheckResult="",this.utils.TrackAction("apply-promo-code",r)},s=>{console.dir(s),this.PromoCode="",this.PromoCheckResult=s.error.data,this.CheckingPromo=!1})}RemovePromoCode(n,r){this.DiscountApplied=!1,this.PromoCode="",this.shoppingCart.ApplyPromotion(""),this.shoppingCart.GetCartSummary(n,r)}};e.\u0275fac=function(r){return new(r||e)(_(Oo),_(Xt),_(Cn))},e.\u0275cmp=se({type:e,selectors:[["app-checkout-summary"]],inputs:{WebsiteId:"WebsiteId",Order:"Order",EcommerceSettings:"EcommerceSettings",CartDetails:"CartDetails",Currency:"Currency",SecondaryColour:"SecondaryColour",CurrentCheckoutStep:"CurrentCheckoutStep"},standalone:!0,features:[ae],decls:8,vars:5,consts:[[1,"row"],[1,"col-sm-5","mt-3","pt-2"],[4,"ngIf"],[1,"col","mt-3"],[1,"mb-1","small","fw-bold"],[1,"small","text-muted","fst-italic"],[1,"mb-2","small","text-muted","fst-italic"],["class","container pt-2 mb-2",4,"ngIf"],[1,"container","pt-2","mb-2"],[1,"row","justify-content-end","text-end"],[1,"col-auto"],[1,"col-5"],["class","mb-0 position-relative",4,"ngIf"],[1,"mb-0","position-relative"],["class","fst-italic text-success promo-description",4,"ngIf"],[1,"fst-italic","text-success","promo-description"],["class","container pt-2 mb-2 border-top",4,"ngIf"],[1,"container","pt-2","mb-2","border-top"],[1,"fst-italic"],["class","mb-0",4,"ngIf"],[1,"mb-0"],["class","fst-italic text-success",4,"ngIf"],[1,"fst-italic","text-success"],[1,"col"],[1,"pt-2","mb-2"],[1,"row","justify-content-end","mt-3"],["class","pt-2 mb-2 border-top text-end",4,"ngIf"],["class","input-group input-group-sm",4,"ngIf"],[1,"text-danger","fst-italic","mb-0"],["class","row justify-content-end text-end",4,"ngFor","ngForOf"],["class","mb-0 text-decoration-underline",4,"ngIf"],[1,"mb-0","text-decoration-underline"],[1,"pt-2","mb-2","border-top","text-end"],["type","button",1,"btn","btn-sm","btn-link",3,"click"],[1,"input-group","input-group-sm"],["type","text","placeholder","Promo code","name","PromoCode",1,"form-control",3,"disabled","ngModel","ngModelChange"],["type","button","class","btn btn-sm btn-danger",3,"click",4,"ngIf"],[1,"btn","btn-sm",3,"readableTextColour","ngStyle","disabled","click"],["class","loader-wrapper",4,"ngIf"],["type","button",1,"btn","btn-sm","btn-danger",3,"click"],[1,"loader-wrapper"],[1,"loader"]],template:function(r,o){r&1&&(d(0,"div",0)(1,"div",1),w(2,DT,5,1,"div",2)(3,ET,17,9,"div",2),p(),d(4,"div",3),w(5,AT,3,3,"div",2)(6,jT,3,2,"div",2)(7,QT,10,7,"div",2),p()()),r&2&&(u(2),f("ngIf",o.Order.ShippingDetails.Option&&o.Order.ShippingDetails.Method==="PICKUP"),u(),f("ngIf",o.Order.ShippingDetails.Option&&o.Order.ShippingDetails.Method!=="PICKUP"),u(2),f("ngIf",o.CurrentCheckoutStep>0),u(),f("ngIf",o.CurrentCheckoutStep>1),u(),f("ngIf",o.CurrentCheckoutStep>2))},dependencies:[ke,yt,Te,Ct,Ci,Po,Jt,Yn,br,Si,Ot],styles:[".promo-description[_ngcontent-%COMP%]{position:absolute;right:0;top:-20px}"]});let t=e;return t})();var FL=(()=>{let e=class e{constructor(){}ngOnInit(){}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=se({type:e,selectors:[["app-announcement-header-banner"]],inputs:{Text:"Text",BackgroundColour:"BackgroundColour"},standalone:!0,features:[ae],decls:3,vars:5,consts:[[1,"row","announcement-banner",3,"ngStyle"],[1,"col","text-center","pb-1","pt-1"],[1,"mb-0",3,"readableTextColour","decodeHtml"]],template:function(r,o){r&1&&(d(0,"div",0)(1,"div",1),S(2,"p",2),p()()),r&2&&(f("ngStyle",Z(3,Ne,o.BackgroundColour)),u(2),f("readableTextColour",o.BackgroundColour)("decodeHtml",o.Text))},dependencies:[ke,Ct,_P,Ot],styles:["@media screen and (max-width: 990px){.announcement-banner[_ngcontent-%COMP%]{margin-top:55px}}"]});let t=e;return t})(),RL=(()=>{let e=class e{constructor(){this.LayoutType=1,this.CustomPages=[],this.PrimaryColour="#ffffff",this.BackgroundColour=""}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=se({type:e,selectors:[["app-custom-pages-thumbnails"]],inputs:{LayoutType:"LayoutType",CustomPages:"CustomPages",PrimaryColour:"PrimaryColour",BackgroundColour:"BackgroundColour"},standalone:!0,features:[ae],decls:2,vars:2,consts:[["class","row justify-content-center",4,"ngIf"],["class","row",4,"ngIf"],[1,"row","justify-content-center"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],[1,"t1-custompage-square"],[3,"routerLink"],["fill","","placeholder","",1,"img-fit",3,"ngSrc","alt","loaderParams"],[1,"row"],[1,"t2-custompage-square"],[1,"t2-custompage-title"],[3,"routerLink","readableTextColour","background"],[1,"text-muted","fst-italic","fw-normal","pb-3","mb-5"]],template:function(r,o){r&1&&w(0,XT,2,1,"div",0)(1,tP,2,1,"div",1),r&2&&(f("ngIf",o.LayoutType===1),u(),f("ngIf",o.LayoutType===2))},dependencies:[yt,Te,tr,Qt,Pt,Ir,Ot],styles:['.t1-custompage-square[_ngcontent-%COMP%]{text-align:center;position:relative;width:100%;height:325px;margin-bottom:24px}.t1-custompage-square[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{object-fit:cover;object-position:center}.t1-custompage-square[_ngcontent-%COMP%]:hover   img[_ngcontent-%COMP%]{filter:brightness(.8)}.t1-custompage-square[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{position:absolute;z-index:2;inset:0;text-decoration:none}.t1-custompage-square[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{position:relative;z-index:2;top:50%;transform:translateY(-50%);color:#fff;text-shadow:1px 1px black}.t2-custompage-square[_ngcontent-%COMP%]{position:relative}.t2-custompage-square[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none}.t2-custompage-title[_ngcontent-%COMP%]{font-size:1.2rem;margin-bottom:8px;font-weight:700;position:relative}.t2-custompage-title[_ngcontent-%COMP%]:before{content:".";position:absolute;top:-5px;left:-10px}']});let t=e;return t})(),LL=(()=>{let e=class e{constructor(){this.Articles=[],this.LayoutType=1,this.PrimaryColour="#ffffff"}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=se({type:e,selectors:[["app-recent-articles"]],inputs:{Articles:"Articles",LayoutType:"LayoutType",PrimaryColour:"PrimaryColour"},standalone:!0,features:[ae],decls:4,vars:4,consts:[["class","row justify-content-center mt-5 mb-5",4,"ngIf"],["class","row justify-content-center",4,"ngIf"],["class","row justify-content-center",3,"ngStyle",4,"ngIf"],[1,"row","justify-content-center","mt-5","mb-5"],["class","col-lg-4 mb-4 mb-lg-0",4,"ngFor","ngForOf"],[1,"col-lg-4","mb-4","mb-lg-0"],[1,"row","align-items-center"],["class","col-auto",4,"ngIf"],[1,"col"],["tabindex","0",3,"routerLink"],[1,"mb-0","text-muted"],[1,"col-auto"],["tabindex","0",1,"t1-article-thumbnail",3,"routerLink"],["fill","","placeholder","",1,"rounded",3,"ngSrc","alt","loaderParams"],[1,"row","justify-content-center"],[1,"col-xl-8"],[1,"row"],["class","col-lg-6 mb-4",4,"ngFor","ngForOf"],[1,"col-lg-6","mb-4"],["class","col position-relative h-100",4,"ngIf"],[1,"text-justify"],[1,"text-muted","fst-italic"],[1,"text-underline",3,"routerLink"],[1,"col","position-relative","h-100"],["tabindex","0",1,"t2-article-thumbnail",3,"routerLink"],["fill","","placeholder","",3,"ngSrc","alt","loaderParams"],[1,"row","justify-content-center",3,"ngStyle"],[1,"col-xl-10","pt-5","pb-5","mt-5","mb-5"],[1,"mb-0","mt-3","text-end","fst-italic"],["routerLink","/articles",1,"text-underline",3,"readableTextColour"],[1,"fw-bold"],["tabindex","0",1,"t3-article-thumbnail",3,"routerLink","readableTextColour"],[1,"mb-0","border-top","pt-2",3,"readableTextColour"],[1,"col-xl-8","pt-5","pb-5"],[1,"row","mt-4"],[1,"mb-0","text-end","fst-italic"],[3,"routerLink","readableTextColour"],[3,"readableTextColour"],[1,"fst-italic","border-top","pt-2",3,"readableTextColour"],[1,"text-underline",3,"routerLink","readableTextColour"]],template:function(r,o){r&1&&w(0,rP,4,7,"div",0)(1,aP,6,7,"div",1)(2,uP,9,11,"div",2)(3,fP,9,11,"div",2),r&2&&(f("ngIf",o.LayoutType===1),u(),f("ngIf",o.LayoutType===2),u(),f("ngIf",o.LayoutType===3),u(),f("ngIf",o.LayoutType===4))},dependencies:[yt,Ct,tr,Qt,xP,wP,IP,Te,Ot],styles:[".t1-article-thumbnail[_ngcontent-%COMP%]{display:inline-block;width:125px;height:125px;position:relative;text-decoration:none}.t2-article-thumbnail[_ngcontent-%COMP%]{width:100%;height:300px;position:relative;display:inline-block;text-decoration:none}.t3-article-thumbnail[_ngcontent-%COMP%]{text-decoration:none}.t1-article-thumbnail[_ngcontent-%COMP%]   img[_ngcontent-%COMP%], .t2-article-thumbnail[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{object-fit:cover;object-position:center;border:1px solid #e0e0e0}"]});let t=e;return t})();var VL=(()=>{let e=class e{constructor(n,r){this.http=n,this.IsBrowser=ct(r),this.GoogleMapsLoaded$=new oe(!1)}InitGoogleMaps(){this.IsBrowser&&this.LoadGoogleMaps().subscribe({complete:()=>{this.GoogleMapsLoaded$.next(!0)},error:n=>console.log(n)})}LoadGoogleMaps(){return this.http.jsonp("https://maps.googleapis.com/maps/api/js?key=AIzaSyAW2ePyPVVCq4LubfKmtIvr9_RAR99dtvA","callback")}};e.\u0275fac=function(r){return new(r||e)(D(ir),D(_e))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),jL=(()=>{let e=class e{constructor(n){this.TagManagerLoaded=!1,this.TagManagerInitialised=!1,this.IsBrowser=ct(n),this.tagManagerLoadedSubject=new De,this.TagManagerLoadedSubscription=this.tagManagerLoadedSubject.asObservable()}EnableGoogleTagManager(n){if(!this.TagManagerLoaded&&n&&this.IsBrowser){let r=document.createElement("script");r.id="",r.async=!0,r.type="text/javascript",r.innerHTML='(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({"gtm.start":new Date().getTime(),event:"gtm.js"});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!="dataLayer"?"&l="+l:"";j.async=true;j.src="https://www.googletagmanager.com/gtm.js?id="+i+dl;f.parentNode.insertBefore(j,f);})(window,document,"script","dataLayer","'+n+'");',r.onload=()=>{this.InitTagManager()},document.getElementsByTagName("head")[0].appendChild(r);let o=document.createElement("noscript");o.innerHTML='<iframe src="https://www.googletagmanager.com/ns.html?id='+n+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>',document.getElementsByTagName("body")[0].appendChild(o),this.TagManagerLoaded=!0}}InitTagManager(){this.TagManagerInitialised=!0,this.tagManagerLoadedSubject.next()}};e.\u0275fac=function(r){return new(r||e)(D(_e))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),BL=(()=>{let e=class e{constructor(n,r){this.shoppingCart=n,this.IsBrowser=ct(r),this.IsBrowser&&(this.link=document.createElement("link"))}SetCanonicalURL(n,r){if(this.IsBrowser&&r){let o=r+n;this.link.setAttribute("rel","canonical"),document.head.appendChild(this.link),this.link.setAttribute("href",o)}}SetStructuredDataProduct(n,r){if(this.IsBrowser&&r){let o="";this.shoppingCart.CheckStockLevelStatus(n)?o="InStock":o="OutOfStock";let a=document.createElement("script");a.type="application/ld+json",a.innerHTML=`{
        "@context": "https://schema.org/",
        "@type": "Product",
        "name": "`+n.Name+`",
        "image": [
          "`+n.Image.URL+`"
          ],
        "description": "`+(n.ShortDescription||"")+`",
        "offers": {
          "@type": "Offer",
          "url": "`+r+"/products/"+n.Slug+`",
          "priceCurrency": "NZD",
          "price": "`+n.Price+`",
          "availability": "https://schema.org/`+o+`"
        }
      }`,document.getElementsByTagName("body")[0].appendChild(a)}}SetStructuredDataArticle(n,r,o,s){if(this.IsBrowser&&r&&n&&n.DateAuthored){let a=document.createElement("script");a.type="application/ld+json",a.innerHTML=`{
        "@context": "https://schema.org",
        "@type": "Article",
        "mainEntityOfPage": {
          "@type": "WebPage",
          "@id": "`+r+"/articles/"+n.Slug+`"
        },
        "headline": "`+n.Title+`",
        "image": [
          "`+n.Image?.URL+`"
        ],
        "datePublished": "`+new Date(n.DateAuthored.year,n.DateAuthored.month,n.DateAuthored.day).toISOString()+`",
        "dateModified": "`+new Date(n.DateAuthored.year,n.DateAuthored.month,n.DateAuthored.day).toISOString()+`",
        "author": {
          "@type": "Person",
          "name": "`+n.Author+`",
          "url": "`+r+`"
        },
         "publisher": {
          "@type": "Organization",
          "name": "`+o+`",
          "logo": {
            "@type": "ImageObject",
            "url": "`+s+`"
          }
        }
      }`,document.getElementsByTagName("body")[0].appendChild(a)}}SetStructuredDataLocalBusiness(n,r,o,s){if(n){let a=n.split(","),l="",c="",h="",m="",v="",C=!1;for(let k=0;k<a.length;k++)if(k===0&&a[k].match(/\d+/g)?.join("")&&(C=!0),k!==0){let L=a[k].match(/\d{4,}/g)?.join("");L&&(m=L,a[k]=a[k].replace(m,""))}a.length<4?(l=a[0]?.trim(),c="",h=a[1]?.trim(),v=a[2]?.trim()):(l=a[0].trim(),c=a[1]?.trim(),h=a[2]?.trim(),v=a[3]?.trim());let I={"New Zealand":"NZ",Australia:"AU"};if(I[v]&&(v=I[v]),this.IsBrowser&&o&&C){let k=document.createElement("script");k.type="application/ld+json",k.innerHTML=`{
          "@context": "https://schema.org",
          "@type": "LocalBusiness",
          "name": "`+s+`",
          "address": {
            "@type": "PostalAddress",
            "streetAddress": "`+l+`",
            "addressLocality": "`+c+`",
            "addressRegion": "`+h+`",
            "postalCode": "`+m+`",
            "addressCountry": "`+v+`"
          },
          "url": "`+o+`",
          "telephone": "`+r+`"
        }`,document.getElementsByTagName("body")[0].appendChild(k)}}}};e.\u0275fac=function(r){return new(r||e)(D(Oo),D(_e))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var UL=(()=>{let e=class e{constructor(n){this.renderer=n,this.PreviewActive=new ve}ngOnInit(){}ngOnChanges(n){n.ImagePreviewURL&&n.ImagePreviewURL.currentValue&&!n.ImagePreviewURL.firstChange&&this.DrawMainImage(n.ImagePreviewURL.currentValue)}ShowImagePreview(n){let r=n.offsetX,o=n.offsetY,s=this.MainImageCanvasCtx.getImageData(r,o,1,1);if(s.data[0]===0&&s.data[1]===0&&s.data[2]===0)this.PreviewActive.emit(!1);else{this.renderer.setStyle(this.productMainImagePreviewContainer.nativeElement,"display","block");let a=this.MainImageCanvasCtx.getImageData(r-75,o-75,150,150);this.PreviewImageCanvasCtx.putImageData(a,0,0),this.PreviewActive.emit(!0)}}DrawMainImage(n){this.MainImageCanvasCtx=this.productMainImageCanvas.nativeElement.getContext("2d",{willReadFrequently:!0});let r=new Image;r.crossOrigin="anonymous",r.onload=()=>{this.productMainImageCanvas.nativeElement.width=this.productMainImageCanvas.nativeElement.offsetParent.offsetWidth;let o=r.width/r.height,s=this.productMainImageCanvas.nativeElement.width/this.productMainImageCanvas.nativeElement.height,a,l,c,h;o<s?(a=this.productMainImageCanvas.nativeElement.height,l=r.width*(a/r.height),c=(this.productMainImageCanvas.nativeElement.width-l)/2,h=0):o>s?(l=this.productMainImageCanvas.nativeElement.width,a=r.height*(l/r.width),c=0,h=(this.productMainImageCanvas.nativeElement.height-a)/2):(a=this.productMainImageCanvas.nativeElement.height,l=this.productMainImageCanvas.nativeElement.width,c=0,h=0),this.MainImageCanvasCtx.drawImage(r,c,h,l,a)},r.src=n}HideProductImagePreview(){this.renderer.setStyle(this.productMainImagePreviewContainer.nativeElement,"display","none"),this.PreviewActive.emit(!1)}ngAfterViewInit(){this.productMainImageCanvas.nativeElement.offsetParent&&(this.PreviewImageCanvasCtx=this.productMainImagePreviewCanvas.nativeElement.getContext("2d"),this.productMainImagePreviewCanvas.nativeElement.width=this.productMainImageCanvas.nativeElement.offsetParent.offsetWidth/2,this.DrawMainImage(this.ImagePreviewURL))}};e.\u0275fac=function(r){return new(r||e)(_(Be))},e.\u0275cmp=se({type:e,selectors:[["app-ecom2-product-image-preview"]],viewQuery:function(r,o){if(r&1&&(Qi(hP,5),Qi(mP,5),Qi(gP,7),Qi(vP,5)),r&2){let s;Ln(s=Vn())&&(o.productMainImageCanvas=s.first),Ln(s=Vn())&&(o.productMainImage=s.first),Ln(s=Vn())&&(o.productMainImagePreviewCanvas=s.first),Ln(s=Vn())&&(o.productMainImagePreviewContainer=s.first)}},inputs:{ImagePreviewURL:"ImagePreviewURL"},outputs:{PreviewActive:"PreviewActive"},standalone:!0,features:[We,ae],decls:8,vars:0,consts:[[1,"image-container"],["height","350",1,"d-none","d-md-flex",3,"mousemove","mouseout"],["productMainImageCanvas",""],[1,"preview-container"],[1,"image-preview-container"],["productMainImagePreviewContainer",""],[1,"image-preview"],["productMainImagePreviewCanvas",""]],template:function(r,o){r&1&&(d(0,"div",0)(1,"canvas",1,2),N("mousemove",function(a){return o.ShowImagePreview(a)})("mouseout",function(){return o.HideProductImagePreview()}),p()(),d(3,"div",3)(4,"div",4,5),S(6,"canvas",6,7),p()())},styles:[".preview-container[_ngcontent-%COMP%]{position:absolute;top:0;width:100%}.image-container[_ngcontent-%COMP%]{position:relative}.image-preview-container[_ngcontent-%COMP%]{position:relative;width:100%;z-index:100;left:100%;top:0;display:none}.image-preview[_ngcontent-%COMP%]{width:100%;height:350px;position:absolute;top:0;background-color:#fff;background-repeat:no-repeat;background-position:center}"]});let t=e;return t})();export{E as a,he as b,Op as c,en as d,ee as e,oe as f,j as g,_n as h,Re as i,ht as j,$e as k,ge as l,A as m,ve as n,se as o,jt as p,ne as q,M as r,T as s,Oe as t,x as u,$t as v,_e as w,vF as x,hu as y,D as z,b as A,We as B,ue as C,o_ as D,u as E,_ as F,xc as G,Rr as H,mi as I,de as J,w as K,f as L,d as M,p as N,S as O,KS as P,QS as Q,X as R,N as S,y as T,bF as U,_F as V,Se as W,g as X,P as Y,Ve as Z,U as _,H as $,$ as aa,ae as ba,fn as ca,Z as da,vi as ea,R as fa,ie as ga,Ie as ha,zt as ia,Ae as ja,Pt as ka,yt as la,Te as ma,Ct as na,Ci as oa,ct as pa,UI as qa,tr as ra,JF as sa,XF as ta,eR as ua,tR as va,T0 as wa,yR as xa,R0 as ya,L0 as za,Od as Aa,CR as Ba,dt as Ca,Gn as Da,Dx as Ea,Ue as Fa,Qt as Ga,LD as Ha,LR as Ia,VR as Ja,HD as Ka,Yn as La,br as Ma,Si as Na,Sp as Oa,nl as Pa,Qv as Qa,Xv as Ra,wp as Sa,Jt as Ta,Ot as Ua,ny as Va,Xt as Wa,Cn as Xa,bL as Ya,_L as Za,Ir as _a,SL as $a,IL as ab,bP as bb,wL as cb,xL as db,_P as eb,IP as fb,DL as gb,Po as hb,wP as ib,xP as jb,EL as kb,ML as lb,TL as mb,PL as nb,Oo as ob,OL as pb,iy as qb,AP as rb,kP as sb,AL as tb,kL as ub,NL as vb,FL as wb,RL as xb,LL as yb,VL as zb,jL as Ab,BL as Bb,UL as Cb};
