@motopays/pay-form 2.6.2 → 2.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/CHANGELOG.md +17 -8
  2. package/index.js +1 -1
  3. package/package.json +2 -2
package/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  (()=>{"use strict";var e,v={},p={};function n(e){var a=p[e];if(void 0!==a)return a.exports;var r=p[e]={exports:{}};return v[e].call(r.exports,r,r.exports,n),r.exports}n.m=v,e=[],n.O=(a,r,l,o)=>{if(!r){var u=1/0;for(f=0;f<e.length;f++){for(var[r,l,o]=e[f],_=!0,t=0;t<r.length;t++)(!1&o||u>=o)&&Object.keys(n.O).every(h=>n.O[h](r[t]))?r.splice(t--,1):(_=!1,o<u&&(u=o));if(_){e.splice(f--,1);var s=l();void 0!==s&&(a=s)}}return a}o=o||0;for(var f=e.length;f>0&&e[f-1][2]>o;f--)e[f]=e[f-1];e[f]=[r,l,o]},n.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return n.d(a,{a}),a},n.d=(e,a)=>{for(var r in a)n.o(a,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:a[r]})},n.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),(()=>{var e={121:0};n.O.j=l=>0===e[l];var a=(l,o)=>{var t,s,[f,u,_]=o,c=0;if(f.some(d=>0!==e[d])){for(t in u)n.o(u,t)&&(n.m[t]=u[t]);if(_)var b=_(n)}for(l&&l(o);c<f.length;c++)n.o(e,s=f[c])&&e[s]&&e[s][0](),e[s]=0;return n.O(b)},r=self.webpackChunk_motopays_pay_form=self.webpackChunk_motopays_pay_form||[];r.forEach(a.bind(null,0)),r.push=a.bind(null,r.push.bind(r))})()})();
2
2
  "use strict";(self.webpackChunk_motopays_pay_form=self.webpackChunk_motopays_pay_form||[]).push([[461],{935:()=>{const te=globalThis;function ee(e){return(te.__Zone_symbol_prefix||"__zone_symbol__")+e}const ke=Object.getOwnPropertyDescriptor,Ne=Object.defineProperty,Le=Object.getPrototypeOf,_t=Object.create,Et=Array.prototype.slice,Ie="addEventListener",Me="removeEventListener",Ze=ee(Ie),Ae=ee(Me),ae="true",le="false",ve=ee("");function je(e,r){return Zone.current.wrap(e,r)}function He(e,r,c,t,i){return Zone.current.scheduleMacroTask(e,r,c,t,i)}const j=ee,we=typeof window<"u",Te=we?window:void 0,$=we&&Te||globalThis,Tt="removeAttribute";function xe(e,r){for(let c=e.length-1;c>=0;c--)"function"==typeof e[c]&&(e[c]=je(e[c],r+"_"+c));return e}function We(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&typeof e.set>"u")}const qe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Re=!("nw"in $)&&typeof $.process<"u"&&"[object process]"===$.process.toString(),Ve=!Re&&!qe&&!(!we||!Te.HTMLElement),Xe=typeof $.process<"u"&&"[object process]"===$.process.toString()&&!qe&&!(!we||!Te.HTMLElement),Ce={},yt=j("enable_beforeunload"),Ye=function(e){if(!(e=e||$.event))return;let r=Ce[e.type];r||(r=Ce[e.type]=j("ON_PROPERTY"+e.type));const c=this||e.target||$,t=c[r];let i;return Ve&&c===Te&&"error"===e.type?(i=t&&t.call(this,e.message,e.filename,e.lineno,e.colno,e.error),!0===i&&e.preventDefault()):(i=t&&t.apply(this,arguments),"beforeunload"===e.type&&$[yt]&&"string"==typeof i?e.returnValue=i:null!=i&&!i&&e.preventDefault()),i};function $e(e,r,c){let t=ke(e,r);if(!t&&c&&ke(c,r)&&(t={enumerable:!0,configurable:!0}),!t||!t.configurable)return;const i=j("on"+r+"patched");if(e.hasOwnProperty(i)&&e[i])return;delete t.writable,delete t.value;const u=t.get,E=t.set,T=r.slice(2);let m=Ce[T];m||(m=Ce[T]=j("ON_PROPERTY"+T)),t.set=function(D){let d=this;!d&&e===$&&(d=$),d&&("function"==typeof d[m]&&d.removeEventListener(T,Ye),E&&E.call(d,null),d[m]=D,"function"==typeof D&&d.addEventListener(T,Ye,!1))},t.get=function(){let D=this;if(!D&&e===$&&(D=$),!D)return null;const d=D[m];if(d)return d;if(u){let w=u.call(this);if(w)return t.set.call(this,w),"function"==typeof D[Tt]&&D.removeAttribute(r),w}return null},Ne(e,r,t),e[i]=!0}function Je(e,r,c){if(r)for(let t=0;t<r.length;t++)$e(e,"on"+r[t],c);else{const t=[];for(const i in e)"on"==i.slice(0,2)&&t.push(i);for(let i=0;i<t.length;i++)$e(e,t[i],c)}}const re=j("originalInstance");function be(e){const r=$[e];if(!r)return;$[j(e)]=r,$[e]=function(){const i=xe(arguments,e);switch(i.length){case 0:this[re]=new r;break;case 1:this[re]=new r(i[0]);break;case 2:this[re]=new r(i[0],i[1]);break;case 3:this[re]=new r(i[0],i[1],i[2]);break;case 4:this[re]=new r(i[0],i[1],i[2],i[3]);break;default:throw new Error("Arg list too long.")}},fe($[e],r);const c=new r(function(){});let t;for(t in c)"XMLHttpRequest"===e&&"responseBlob"===t||function(i){"function"==typeof c[i]?$[e].prototype[i]=function(){return this[re][i].apply(this[re],arguments)}:Ne($[e].prototype,i,{set:function(u){"function"==typeof u?(this[re][i]=je(u,e+"."+i),fe(this[re][i],u)):this[re][i]=u},get:function(){return this[re][i]}})}(t);for(t in r)"prototype"!==t&&r.hasOwnProperty(t)&&($[e][t]=r[t])}function ue(e,r,c){let t=e;for(;t&&!t.hasOwnProperty(r);)t=Le(t);!t&&e[r]&&(t=e);const i=j(r);let u=null;if(t&&(!(u=t[i])||!t.hasOwnProperty(i))&&(u=t[i]=t[r],We(t&&ke(t,r)))){const T=c(u,i,r);t[r]=function(){return T(this,arguments)},fe(t[r],u)}return u}function mt(e,r,c){let t=null;function i(u){const E=u.data;return E.args[E.cbIdx]=function(){u.invoke.apply(this,arguments)},t.apply(E.target,E.args),u}t=ue(e,r,u=>function(E,T){const m=c(E,T);return m.cbIdx>=0&&"function"==typeof T[m.cbIdx]?He(m.name,T[m.cbIdx],m,i):u.apply(E,T)})}function fe(e,r){e[j("OriginalDelegate")]=r}let Ke=!1,Ge=!1;function kt(){if(Ke)return Ge;Ke=!0;try{const e=Te.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(Ge=!0)}catch{}return Ge}function Qe(e){return"function"==typeof e}function et(e){return"number"==typeof e}let ge=!1;if(typeof window<"u")try{const e=Object.defineProperty({},"passive",{get:function(){ge=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{ge=!1}const vt={useG:!0},ne={},tt={},nt=new RegExp("^"+ve+"(\\w+)(true|false)$"),rt=j("propagationStopped");function ot(e,r){const c=(r?r(e):e)+le,t=(r?r(e):e)+ae,i=ve+c,u=ve+t;ne[e]={},ne[e][le]=i,ne[e][ae]=u}function bt(e,r,c,t){const i=t&&t.add||Ie,u=t&&t.rm||Me,E=t&&t.listeners||"eventListeners",T=t&&t.rmAll||"removeAllListeners",m=j(i),D="."+i+":",d="prependListener",w="."+d+":",Z=function(k,h,H){if(k.isRemoved)return;const V=k.callback;let Y;"object"==typeof V&&V.handleEvent&&(k.callback=g=>V.handleEvent(g),k.originalDelegate=V);try{k.invoke(k,h,[H])}catch(g){Y=g}const G=k.options;return G&&"object"==typeof G&&G.once&&h[u].call(h,H.type,k.originalDelegate?k.originalDelegate:k.callback,G),Y};function x(k,h,H){if(!(h=h||e.event))return;const V=k||h.target||e,Y=V[ne[h.type][H?ae:le]];if(Y){const G=[];if(1===Y.length){const g=Z(Y[0],V,h);g&&G.push(g)}else{const g=Y.slice();for(let z=0;z<g.length&&(!h||!0!==h[rt]);z++){const O=Z(g[z],V,h);O&&G.push(O)}}if(1===G.length)throw G[0];for(let g=0;g<G.length;g++){const z=G[g];r.nativeScheduleMicroTask(()=>{throw z})}}}const U=function(k){return x(this,k,!1)},J=function(k){return x(this,k,!0)};function K(k,h){if(!k)return!1;let H=!0;h&&void 0!==h.useG&&(H=h.useG);const V=h&&h.vh;let Y=!0;h&&void 0!==h.chkDup&&(Y=h.chkDup);let G=!1;h&&void 0!==h.rt&&(G=h.rt);let g=k;for(;g&&!g.hasOwnProperty(i);)g=Le(g);if(!g&&k[i]&&(g=k),!g||g[m])return!1;const z=h&&h.eventNameToString,O={},R=g[m]=g[i],b=g[j(u)]=g[u],S=g[j(E)]=g[E],Q=g[j(T)]=g[T];let W;h&&h.prepend&&(W=g[j(h.prepend)]=g[h.prepend]);const q=H?function(s){if(!O.isExisting)return R.call(O.target,O.eventName,O.capture?J:U,O.options)}:function(s){return R.call(O.target,O.eventName,s.invoke,O.options)},A=H?function(s){if(!s.isRemoved){const l=ne[s.eventName];let v;l&&(v=l[s.capture?ae:le]);const C=v&&s.target[v];if(C)for(let y=0;y<C.length;y++)if(C[y]===s){C.splice(y,1),s.isRemoved=!0,s.removeAbortListener&&(s.removeAbortListener(),s.removeAbortListener=null),0===C.length&&(s.allRemoved=!0,s.target[v]=null);break}}if(s.allRemoved)return b.call(s.target,s.eventName,s.capture?J:U,s.options)}:function(s){return b.call(s.target,s.eventName,s.invoke,s.options)},he=h&&h.diff?h.diff:function(s,l){const v=typeof l;return"function"===v&&s.callback===l||"object"===v&&s.originalDelegate===l},de=Zone[j("UNPATCHED_EVENTS")],oe=e[j("PASSIVE_EVENTS")],a=function(s,l,v,C,y=!1,L=!1){return function(){const I=this||e;let M=arguments[0];h&&h.transferEventName&&(M=h.transferEventName(M));let F=arguments[1];if(!F)return s.apply(this,arguments);if(Re&&"uncaughtException"===M)return s.apply(this,arguments);let B=!1;if("function"!=typeof F){if(!F.handleEvent)return s.apply(this,arguments);B=!0}if(V&&!V(s,F,I,arguments))return;const Ee=ge&&!!oe&&-1!==oe.indexOf(M),ie=function f(s){if("object"==typeof s&&null!==s){const l={...s};return s.signal&&(l.signal=s.signal),l}return s}(function N(s,l){return!ge&&"object"==typeof s&&s?!!s.capture:ge&&l?"boolean"==typeof s?{capture:s,passive:!0}:s?"object"==typeof s&&!1!==s.passive?{...s,passive:!0}:s:{passive:!0}:s}(arguments[2],Ee)),me=ie?.signal;if(me?.aborted)return;if(de)for(let ce=0;ce<de.length;ce++)if(M===de[ce])return Ee?s.call(I,M,F,ie):s.apply(this,arguments);const Be=!!ie&&("boolean"==typeof ie||ie.capture),lt=!(!ie||"object"!=typeof ie)&&ie.once,At=Zone.current;let Ue=ne[M];Ue||(ot(M,z),Ue=ne[M]);const ut=Ue[Be?ae:le];let Se,pe=I[ut],ft=!1;if(pe){if(ft=!0,Y)for(let ce=0;ce<pe.length;ce++)if(he(pe[ce],F))return}else pe=I[ut]=[];const ht=I.constructor.name,dt=tt[ht];dt&&(Se=dt[M]),Se||(Se=ht+l+(z?z(M):M)),O.options=ie,lt&&(O.options.once=!1),O.target=I,O.capture=Be,O.eventName=M,O.isExisting=ft;const Pe=H?vt:void 0;Pe&&(Pe.taskData=O),me&&(O.options.signal=void 0);const se=At.scheduleEventTask(Se,F,Pe,v,C);if(me){O.options.signal=me;const ce=()=>se.zone.cancelTask(se);s.call(me,"abort",ce,{once:!0}),se.removeAbortListener=()=>me.removeEventListener("abort",ce)}return O.target=null,Pe&&(Pe.taskData=null),lt&&(O.options.once=!0),!ge&&"boolean"==typeof se.options||(se.options=ie),se.target=I,se.capture=Be,se.eventName=M,B&&(se.originalDelegate=F),L?pe.unshift(se):pe.push(se),y?I:void 0}};return g[i]=a(R,D,q,A,G),W&&(g[d]=a(W,w,function(s){return W.call(O.target,O.eventName,s.invoke,O.options)},A,G,!0)),g[u]=function(){const s=this||e;let l=arguments[0];h&&h.transferEventName&&(l=h.transferEventName(l));const v=arguments[2],C=!!v&&("boolean"==typeof v||v.capture),y=arguments[1];if(!y)return b.apply(this,arguments);if(V&&!V(b,y,s,arguments))return;const L=ne[l];let I;L&&(I=L[C?ae:le]);const M=I&&s[I];if(M)for(let F=0;F<M.length;F++){const B=M[F];if(he(B,y))return M.splice(F,1),B.isRemoved=!0,0!==M.length||(B.allRemoved=!0,s[I]=null,C||"string"!=typeof l)||(s[ve+"ON_PROPERTY"+l]=null),B.zone.cancelTask(B),G?s:void 0}return b.apply(this,arguments)},g[E]=function(){const s=this||e;let l=arguments[0];h&&h.transferEventName&&(l=h.transferEventName(l));const v=[],C=st(s,z?z(l):l);for(let y=0;y<C.length;y++){const L=C[y];v.push(L.originalDelegate?L.originalDelegate:L.callback)}return v},g[T]=function(){const s=this||e;let l=arguments[0];if(l){h&&h.transferEventName&&(l=h.transferEventName(l));const v=ne[l];if(v){const L=s[v[le]],I=s[v[ae]];if(L){const M=L.slice();for(let F=0;F<M.length;F++){const B=M[F];this[u].call(this,l,B.originalDelegate?B.originalDelegate:B.callback,B.options)}}if(I){const M=I.slice();for(let F=0;F<M.length;F++){const B=M[F];this[u].call(this,l,B.originalDelegate?B.originalDelegate:B.callback,B.options)}}}}else{const v=Object.keys(s);for(let C=0;C<v.length;C++){const L=nt.exec(v[C]);let I=L&&L[1];I&&"removeListener"!==I&&this[T].call(this,I)}this[T].call(this,"removeListener")}if(G)return this},fe(g[i],R),fe(g[u],b),Q&&fe(g[T],Q),S&&fe(g[E],S),!0}let X=[];for(let k=0;k<c.length;k++)X[k]=K(c[k],t);return X}function st(e,r){if(!r){const u=[];for(let E in e){const T=nt.exec(E);let m=T&&T[1];if(m&&(!r||m===r)){const D=e[E];if(D)for(let d=0;d<D.length;d++)u.push(D[d])}}return u}let c=ne[r];c||(ot(r),c=ne[r]);const t=e[c[le]],i=e[c[ae]];return t?i?t.concat(i):t.slice():i?i.slice():[]}function Pt(e,r){const c=e.Event;c&&c.prototype&&r.patchMethod(c.prototype,"stopImmediatePropagation",t=>function(i,u){i[rt]=!0,t&&t.apply(i,u)})}const De=j("zoneTask");function ye(e,r,c,t){let i=null,u=null;c+=t;const E={};function T(D){const d=D.data;d.args[0]=function(){return D.invoke.apply(this,arguments)};const w=i.apply(e,d.args);return et(w)?d.handleId=w:(d.handle=w,d.isRefreshable=Qe(w.refresh)),D}function m(D){const{handle:d,handleId:w}=D.data;return u.call(e,d??w)}i=ue(e,r+=t,D=>function(d,w){if(Qe(w[0])){const Z={isRefreshable:!1,isPeriodic:"Interval"===t,delay:"Timeout"===t||"Interval"===t?w[1]||0:void 0,args:w},x=w[0];w[0]=function(){try{return x.apply(this,arguments)}finally{const{handle:H,handleId:V,isPeriodic:Y,isRefreshable:G}=Z;!Y&&!G&&(V?delete E[V]:H&&(H[De]=null))}};const U=He(r,w[0],Z,T,m);if(!U)return U;const{handleId:J,handle:K,isRefreshable:X,isPeriodic:k}=U.data;if(J)E[J]=U;else if(K&&(K[De]=U,X&&!k)){const h=K.refresh;K.refresh=function(){const{zone:H,state:V}=U;return"notScheduled"===V?(U._state="scheduled",H._updateTaskCount(U,1)):"running"===V&&(U._state="scheduling"),h.call(this)}}return K??J??U}return D.apply(e,w)}),u=ue(e,c,D=>function(d,w){const Z=w[0];let x;et(Z)?(x=E[Z],delete E[Z]):(x=Z?.[De],x?Z[De]=null:x=Z),x?.type?x.cancelFn&&x.zone.cancelTask(x):D.apply(e,w)})}function it(e,r,c){if(!c||0===c.length)return r;const t=c.filter(u=>u.target===e);if(!t||0===t.length)return r;const i=t[0].ignoreProperties;return r.filter(u=>-1===i.indexOf(u))}function ct(e,r,c,t){e&&Je(e,it(e,r,c),t)}function Fe(e){return Object.getOwnPropertyNames(e).filter(r=>r.startsWith("on")&&r.length>2).map(r=>r.substring(2))}function It(e,r,c,t,i){const u=Zone.__symbol__(t);if(r[u])return;const E=r[u]=r[t];r[t]=function(T,m,D){return m&&m.prototype&&i.forEach(function(d){const w=`${c}.${t}::`+d,Z=m.prototype;try{if(Z.hasOwnProperty(d)){const x=e.ObjectGetOwnPropertyDescriptor(Z,d);x&&x.value?(x.value=e.wrapWithCurrentZone(x.value,w),e._redefineProperty(m.prototype,d,x)):Z[d]&&(Z[d]=e.wrapWithCurrentZone(Z[d],w))}else Z[d]&&(Z[d]=e.wrapWithCurrentZone(Z[d],w))}catch{}}),E.call(r,T,m,D)},e.attachOriginToPatched(r[t],E)}const at=function Oe(){const e=globalThis,r=!0===e[ee("forceDuplicateZoneCheck")];if(e.Zone&&(r||"function"!=typeof e.Zone.__symbol__))throw new Error("Zone already loaded.");return e.Zone??=function ze(){const e=te.performance;function r(N){e&&e.mark&&e.mark(N)}function c(N,_){e&&e.measure&&e.measure(N,_)}r("Zone");let t=(()=>{class N{static#e=this.__symbol__=ee;static assertZonePatched(){if(te.Promise!==O.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let n=N.current;for(;n.parent;)n=n.parent;return n}static get current(){return b.zone}static get currentTask(){return S}static __load_patch(n,o,p=!1){if(O.hasOwnProperty(n)){const P=!0===te[ee("forceDuplicateZoneCheck")];if(!p&&P)throw Error("Already loaded patch: "+n)}else if(!te["__Zone_disable_"+n]){const P="Zone:"+n;r(P),O[n]=o(te,N,R),c(P,P)}}get parent(){return this._parent}get name(){return this._name}constructor(n,o){this._parent=n,this._name=o?o.name||"unnamed":"<root>",this._properties=o&&o.properties||{},this._zoneDelegate=new u(this,this._parent&&this._parent._zoneDelegate,o)}get(n){const o=this.getZoneWith(n);if(o)return o._properties[n]}getZoneWith(n){let o=this;for(;o;){if(o._properties.hasOwnProperty(n))return o;o=o._parent}return null}fork(n){if(!n)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,n)}wrap(n,o){if("function"!=typeof n)throw new Error("Expecting function got: "+n);const p=this._zoneDelegate.intercept(this,n,o),P=this;return function(){return P.runGuarded(p,this,arguments,o)}}run(n,o,p,P){b={parent:b,zone:this};try{return this._zoneDelegate.invoke(this,n,o,p,P)}finally{b=b.parent}}runGuarded(n,o=null,p,P){b={parent:b,zone:this};try{try{return this._zoneDelegate.invoke(this,n,o,p,P)}catch(q){if(this._zoneDelegate.handleError(this,q))throw q}}finally{b=b.parent}}runTask(n,o,p){if(n.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(n.zone||K).name+"; Execution: "+this.name+")");const P=n,{type:q,data:{isPeriodic:A=!1,isRefreshable:_e=!1}={}}=n;if(n.state===X&&(q===z||q===g))return;const he=n.state!=H;he&&P._transitionTo(H,h);const de=S;S=P,b={parent:b,zone:this};try{q==g&&n.data&&!A&&!_e&&(n.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,P,o,p)}catch(oe){if(this._zoneDelegate.handleError(this,oe))throw oe}}finally{const oe=n.state;if(oe!==X&&oe!==Y)if(q==z||A||_e&&oe===k)he&&P._transitionTo(h,H,k);else{const f=P._zoneDelegates;this._updateTaskCount(P,-1),he&&P._transitionTo(X,H,X),_e&&(P._zoneDelegates=f)}b=b.parent,S=de}}scheduleTask(n){if(n.zone&&n.zone!==this){let p=this;for(;p;){if(p===n.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${n.zone.name}`);p=p.parent}}n._transitionTo(k,X);const o=[];n._zoneDelegates=o,n._zone=this;try{n=this._zoneDelegate.scheduleTask(this,n)}catch(p){throw n._transitionTo(Y,k,X),this._zoneDelegate.handleError(this,p),p}return n._zoneDelegates===o&&this._updateTaskCount(n,1),n.state==k&&n._transitionTo(h,k),n}scheduleMicroTask(n,o,p,P){return this.scheduleTask(new E(G,n,o,p,P,void 0))}scheduleMacroTask(n,o,p,P,q){return this.scheduleTask(new E(g,n,o,p,P,q))}scheduleEventTask(n,o,p,P,q){return this.scheduleTask(new E(z,n,o,p,P,q))}cancelTask(n){if(n.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(n.zone||K).name+"; Execution: "+this.name+")");if(n.state===h||n.state===H){n._transitionTo(V,h,H);try{this._zoneDelegate.cancelTask(this,n)}catch(o){throw n._transitionTo(Y,V),this._zoneDelegate.handleError(this,o),o}return this._updateTaskCount(n,-1),n._transitionTo(X,V),n.runCount=-1,n}}_updateTaskCount(n,o){const p=n._zoneDelegates;-1==o&&(n._zoneDelegates=null);for(let P=0;P<p.length;P++)p[P]._updateTaskCount(n.type,o)}}return N})();const i={name:"",onHasTask:(N,_,n,o)=>N.hasTask(n,o),onScheduleTask:(N,_,n,o)=>N.scheduleTask(n,o),onInvokeTask:(N,_,n,o,p,P)=>N.invokeTask(n,o,p,P),onCancelTask:(N,_,n,o)=>N.cancelTask(n,o)};class u{get zone(){return this._zone}constructor(_,n,o){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this._zone=_,this._parentDelegate=n,this._forkZS=o&&(o&&o.onFork?o:n._forkZS),this._forkDlgt=o&&(o.onFork?n:n._forkDlgt),this._forkCurrZone=o&&(o.onFork?this._zone:n._forkCurrZone),this._interceptZS=o&&(o.onIntercept?o:n._interceptZS),this._interceptDlgt=o&&(o.onIntercept?n:n._interceptDlgt),this._interceptCurrZone=o&&(o.onIntercept?this._zone:n._interceptCurrZone),this._invokeZS=o&&(o.onInvoke?o:n._invokeZS),this._invokeDlgt=o&&(o.onInvoke?n:n._invokeDlgt),this._invokeCurrZone=o&&(o.onInvoke?this._zone:n._invokeCurrZone),this._handleErrorZS=o&&(o.onHandleError?o:n._handleErrorZS),this._handleErrorDlgt=o&&(o.onHandleError?n:n._handleErrorDlgt),this._handleErrorCurrZone=o&&(o.onHandleError?this._zone:n._handleErrorCurrZone),this._scheduleTaskZS=o&&(o.onScheduleTask?o:n._scheduleTaskZS),this._scheduleTaskDlgt=o&&(o.onScheduleTask?n:n._scheduleTaskDlgt),this._scheduleTaskCurrZone=o&&(o.onScheduleTask?this._zone:n._scheduleTaskCurrZone),this._invokeTaskZS=o&&(o.onInvokeTask?o:n._invokeTaskZS),this._invokeTaskDlgt=o&&(o.onInvokeTask?n:n._invokeTaskDlgt),this._invokeTaskCurrZone=o&&(o.onInvokeTask?this._zone:n._invokeTaskCurrZone),this._cancelTaskZS=o&&(o.onCancelTask?o:n._cancelTaskZS),this._cancelTaskDlgt=o&&(o.onCancelTask?n:n._cancelTaskDlgt),this._cancelTaskCurrZone=o&&(o.onCancelTask?this._zone:n._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const p=o&&o.onHasTask;(p||n&&n._hasTaskZS)&&(this._hasTaskZS=p?o:i,this._hasTaskDlgt=n,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,o.onScheduleTask||(this._scheduleTaskZS=i,this._scheduleTaskDlgt=n,this._scheduleTaskCurrZone=this._zone),o.onInvokeTask||(this._invokeTaskZS=i,this._invokeTaskDlgt=n,this._invokeTaskCurrZone=this._zone),o.onCancelTask||(this._cancelTaskZS=i,this._cancelTaskDlgt=n,this._cancelTaskCurrZone=this._zone))}fork(_,n){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,_,n):new t(_,n)}intercept(_,n,o){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,_,n,o):n}invoke(_,n,o,p,P){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,_,n,o,p,P):n.apply(o,p)}handleError(_,n){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,_,n)}scheduleTask(_,n){let o=n;if(this._scheduleTaskZS)this._hasTaskZS&&o._zoneDelegates.push(this._hasTaskDlgtOwner),o=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,_,n),o||(o=n);else if(n.scheduleFn)n.scheduleFn(n);else{if(n.type!=G)throw new Error("Task is missing scheduleFn.");U(n)}return o}invokeTask(_,n,o,p){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,_,n,o,p):n.callback.apply(o,p)}cancelTask(_,n){let o;if(this._cancelTaskZS)o=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,_,n);else{if(!n.cancelFn)throw Error("Task is not cancelable");o=n.cancelFn(n)}return o}hasTask(_,n){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,_,n)}catch(o){this.handleError(_,o)}}_updateTaskCount(_,n){const o=this._taskCounts,p=o[_],P=o[_]=p+n;if(P<0)throw new Error("More tasks executed then were scheduled.");0!=p&&0!=P||this.hasTask(this._zone,{microTask:o.microTask>0,macroTask:o.macroTask>0,eventTask:o.eventTask>0,change:_})}}class E{constructor(_,n,o,p,P,q){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=_,this.source=n,this.data=p,this.scheduleFn=P,this.cancelFn=q,!o)throw new Error("callback is not defined");this.callback=o;const A=this;this.invoke=_===z&&p&&p.useG?E.invokeTask:function(){return E.invokeTask.call(te,A,this,arguments)}}static invokeTask(_,n,o){_||(_=this),Q++;try{return _.runCount++,_.zone.runTask(_,n,o)}finally{1==Q&&J(),Q--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(X,k)}_transitionTo(_,n,o){if(this._state!==n&&this._state!==o)throw new Error(`${this.type} '${this.source}': can not transition to '${_}', expecting state '${n}'${o?" or '"+o+"'":""}, was '${this._state}'.`);this._state=_,_==X&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const T=ee("setTimeout"),m=ee("Promise"),D=ee("then");let Z,d=[],w=!1;function x(N){if(Z||te[m]&&(Z=te[m].resolve(0)),Z){let _=Z[D];_||(_=Z.then),_.call(Z,N)}else te[T](N,0)}function U(N){0===Q&&0===d.length&&x(J),N&&d.push(N)}function J(){if(!w){for(w=!0;d.length;){const N=d;d=[];for(let _=0;_<N.length;_++){const n=N[_];try{n.zone.runTask(n,null,null)}catch(o){R.onUnhandledError(o)}}}R.microtaskDrainDone(),w=!1}}const K={name:"NO ZONE"},X="notScheduled",k="scheduling",h="scheduled",H="running",V="canceling",Y="unknown",G="microTask",g="macroTask",z="eventTask",O={},R={symbol:ee,currentZoneFrame:()=>b,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:U,showUncaughtError:()=>!t[ee("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:x};let b={parent:null,zone:new t(null,null)},S=null,Q=0;function W(){}return c("Zone","Zone"),t}(),e.Zone}();(function Zt(e){(function Nt(e){e.__load_patch("ZoneAwarePromise",(r,c,t)=>{const i=Object.getOwnPropertyDescriptor,u=Object.defineProperty,T=t.symbol,m=[],D=!1!==r[T("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],d=T("Promise"),w=T("then"),Z="__creationTrace__";t.onUnhandledError=f=>{if(t.showUncaughtError()){const a=f&&f.rejection;a?console.error("Unhandled Promise rejection:",a instanceof Error?a.message:a,"; Zone:",f.zone.name,"; Task:",f.task&&f.task.source,"; Value:",a,a instanceof Error?a.stack:void 0):console.error(f)}},t.microtaskDrainDone=()=>{for(;m.length;){const f=m.shift();try{f.zone.runGuarded(()=>{throw f.throwOriginal?f.rejection:f})}catch(a){U(a)}}};const x=T("unhandledPromiseRejectionHandler");function U(f){t.onUnhandledError(f);try{const a=c[x];"function"==typeof a&&a.call(this,f)}catch{}}function J(f){return f&&f.then}function K(f){return f}function X(f){return A.reject(f)}const k=T("state"),h=T("value"),H=T("finally"),V=T("parentPromiseValue"),Y=T("parentPromiseState"),G="Promise.then",g=null,z=!0,O=!1,R=0;function b(f,a){return s=>{try{N(f,a,s)}catch(l){N(f,!1,l)}}}const S=function(){let f=!1;return function(s){return function(){f||(f=!0,s.apply(null,arguments))}}},Q="Promise resolved with itself",W=T("currentTaskTrace");function N(f,a,s){const l=S();if(f===s)throw new TypeError(Q);if(f[k]===g){let v=null;try{("object"==typeof s||"function"==typeof s)&&(v=s&&s.then)}catch(C){return l(()=>{N(f,!1,C)})(),f}if(a!==O&&s instanceof A&&s.hasOwnProperty(k)&&s.hasOwnProperty(h)&&s[k]!==g)n(s),N(f,s[k],s[h]);else if(a!==O&&"function"==typeof v)try{v.call(s,l(b(f,a)),l(b(f,!1)))}catch(C){l(()=>{N(f,!1,C)})()}else{f[k]=a;const C=f[h];if(f[h]=s,f[H]===H&&a===z&&(f[k]=f[Y],f[h]=f[V]),a===O&&s instanceof Error){const y=c.currentTask&&c.currentTask.data&&c.currentTask.data[Z];y&&u(s,W,{configurable:!0,enumerable:!1,writable:!0,value:y})}for(let y=0;y<C.length;)o(f,C[y++],C[y++],C[y++],C[y++]);if(0==C.length&&a==O){f[k]=R;let y=s;try{throw new Error("Uncaught (in promise): "+function E(f){return f&&f.toString===Object.prototype.toString?(f.constructor&&f.constructor.name||"")+": "+JSON.stringify(f):f?f.toString():Object.prototype.toString.call(f)}(s)+(s&&s.stack?"\n"+s.stack:""))}catch(L){y=L}D&&(y.throwOriginal=!0),y.rejection=s,y.promise=f,y.zone=c.current,y.task=c.currentTask,m.push(y),t.scheduleMicroTask()}}}return f}const _=T("rejectionHandledHandler");function n(f){if(f[k]===R){try{const a=c[_];a&&"function"==typeof a&&a.call(this,{rejection:f[h],promise:f})}catch{}f[k]=O;for(let a=0;a<m.length;a++)f===m[a].promise&&m.splice(a,1)}}function o(f,a,s,l,v){n(f);const C=f[k],y=C?"function"==typeof l?l:K:"function"==typeof v?v:X;a.scheduleMicroTask(G,()=>{try{const L=f[h],I=!!s&&H===s[H];I&&(s[V]=L,s[Y]=C);const M=a.run(y,void 0,I&&y!==X&&y!==K?[]:[L]);N(s,!0,M)}catch(L){N(s,!1,L)}},s)}const P=function(){},q=r.AggregateError;class A{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(a){return a instanceof A?a:N(new this(null),z,a)}static reject(a){return N(new this(null),O,a)}static withResolvers(){const a={};return a.promise=new A((s,l)=>{a.resolve=s,a.reject=l}),a}static any(a){if(!a||"function"!=typeof a[Symbol.iterator])return Promise.reject(new q([],"All promises were rejected"));const s=[];let l=0;try{for(let y of a)l++,s.push(A.resolve(y))}catch{return Promise.reject(new q([],"All promises were rejected"))}if(0===l)return Promise.reject(new q([],"All promises were rejected"));let v=!1;const C=[];return new A((y,L)=>{for(let I=0;I<s.length;I++)s[I].then(M=>{v||(v=!0,y(M))},M=>{C.push(M),l--,0===l&&(v=!0,L(new q(C,"All promises were rejected")))})})}static race(a){let s,l,v=new this((L,I)=>{s=L,l=I});function C(L){s(L)}function y(L){l(L)}for(let L of a)J(L)||(L=this.resolve(L)),L.then(C,y);return v}static all(a){return A.allWithCallback(a)}static allSettled(a){return(this&&this.prototype instanceof A?this:A).allWithCallback(a,{thenCallback:l=>({status:"fulfilled",value:l}),errorCallback:l=>({status:"rejected",reason:l})})}static allWithCallback(a,s){let l,v,C=new this((M,F)=>{l=M,v=F}),y=2,L=0;const I=[];for(let M of a){J(M)||(M=this.resolve(M));const F=L;try{M.then(B=>{I[F]=s?s.thenCallback(B):B,y--,0===y&&l(I)},B=>{s?(I[F]=s.errorCallback(B),y--,0===y&&l(I)):v(B)})}catch(B){v(B)}y++,L++}return y-=2,0===y&&l(I),C}constructor(a){const s=this;if(!(s instanceof A))throw new Error("Must be an instanceof Promise.");s[k]=g,s[h]=[];try{const l=S();a&&a(l(b(s,z)),l(b(s,O)))}catch(l){N(s,!1,l)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return A}then(a,s){let l=this.constructor?.[Symbol.species];(!l||"function"!=typeof l)&&(l=this.constructor||A);const v=new l(P),C=c.current;return this[k]==g?this[h].push(C,v,a,s):o(this,C,v,a,s),v}catch(a){return this.then(null,a)}finally(a){let s=this.constructor?.[Symbol.species];(!s||"function"!=typeof s)&&(s=A);const l=new s(P);l[H]=H;const v=c.current;return this[k]==g?this[h].push(v,l,a,a):o(this,v,l,a,a),l}}A.resolve=A.resolve,A.reject=A.reject,A.race=A.race,A.all=A.all;const _e=r[d]=r.Promise;r.Promise=A;const he=T("thenPatched");function de(f){const a=f.prototype,s=i(a,"then");if(s&&(!1===s.writable||!s.configurable))return;const l=a.then;a[w]=l,f.prototype.then=function(v,C){return new A((L,I)=>{l.call(this,L,I)}).then(v,C)},f[he]=!0}return t.patchThen=de,_e&&(de(_e),ue(r,"fetch",f=>function oe(f){return function(a,s){let l=f.apply(a,s);if(l instanceof A)return l;let v=l.constructor;return v[he]||de(v),l}}(f))),Promise[c.__symbol__("uncaughtPromiseErrors")]=m,A})})(e),function Lt(e){e.__load_patch("toString",r=>{const c=Function.prototype.toString,t=j("OriginalDelegate"),i=j("Promise"),u=j("Error"),E=function(){if("function"==typeof this){const d=this[t];if(d)return"function"==typeof d?c.call(d):Object.prototype.toString.call(d);if(this===Promise){const w=r[i];if(w)return c.call(w)}if(this===Error){const w=r[u];if(w)return c.call(w)}}return c.call(this)};E[t]=c,Function.prototype.toString=E;const T=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":T.call(this)}})}(e),function Mt(e){e.__load_patch("util",(r,c,t)=>{const i=Fe(r);t.patchOnProperties=Je,t.patchMethod=ue,t.bindArguments=xe,t.patchMacroTask=mt;const u=c.__symbol__("BLACK_LISTED_EVENTS"),E=c.__symbol__("UNPATCHED_EVENTS");r[E]&&(r[u]=r[E]),r[u]&&(c[u]=c[E]=r[u]),t.patchEventPrototype=Pt,t.patchEventTarget=bt,t.isIEOrEdge=kt,t.ObjectDefineProperty=Ne,t.ObjectGetOwnPropertyDescriptor=ke,t.ObjectCreate=_t,t.ArraySlice=Et,t.patchClass=be,t.wrapWithCurrentZone=je,t.filterProperties=it,t.attachOriginToPatched=fe,t._redefineProperty=Object.defineProperty,t.patchCallbacks=It,t.getGlobalObjects=()=>({globalSources:tt,zoneSymbolEventNames:ne,eventNames:i,isBrowser:Ve,isMix:Xe,isNode:Re,TRUE_STR:ae,FALSE_STR:le,ZONE_SYMBOL_PREFIX:ve,ADD_EVENT_LISTENER_STR:Ie,REMOVE_EVENT_LISTENER_STR:Me})})}(e)})(at),function Ot(e){e.__load_patch("legacy",r=>{const c=r[e.__symbol__("legacyPatch")];c&&c()}),e.__load_patch("timers",r=>{const c="set",t="clear";ye(r,c,t,"Timeout"),ye(r,c,t,"Interval"),ye(r,c,t,"Immediate")}),e.__load_patch("requestAnimationFrame",r=>{ye(r,"request","cancel","AnimationFrame"),ye(r,"mozRequest","mozCancel","AnimationFrame"),ye(r,"webkitRequest","webkitCancel","AnimationFrame")}),e.__load_patch("blocking",(r,c)=>{const t=["alert","prompt","confirm"];for(let i=0;i<t.length;i++)ue(r,t[i],(E,T,m)=>function(D,d){return c.current.run(E,r,d,m)})}),e.__load_patch("EventTarget",(r,c,t)=>{(function Dt(e,r){r.patchEventPrototype(e,r)})(r,t),function Ct(e,r){if(Zone[r.symbol("patchEventTarget")])return;const{eventNames:c,zoneSymbolEventNames:t,TRUE_STR:i,FALSE_STR:u,ZONE_SYMBOL_PREFIX:E}=r.getGlobalObjects();for(let m=0;m<c.length;m++){const D=c[m],Z=E+(D+u),x=E+(D+i);t[D]={},t[D][u]=Z,t[D][i]=x}const T=e.EventTarget;T&&T.prototype&&r.patchEventTarget(e,r,[T&&T.prototype])}(r,t);const i=r.XMLHttpRequestEventTarget;i&&i.prototype&&t.patchEventTarget(r,t,[i.prototype])}),e.__load_patch("MutationObserver",(r,c,t)=>{be("MutationObserver"),be("WebKitMutationObserver")}),e.__load_patch("IntersectionObserver",(r,c,t)=>{be("IntersectionObserver")}),e.__load_patch("FileReader",(r,c,t)=>{be("FileReader")}),e.__load_patch("on_property",(r,c,t)=>{!function St(e,r){if(Re&&!Xe||Zone[e.symbol("patchEvents")])return;const c=r.__Zone_ignore_on_properties;let t=[];if(Ve){const i=window;t=t.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const u=function pt(){try{const e=Te.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:i,ignoreProperties:["error"]}]:[];ct(i,Fe(i),c&&c.concat(u),Le(i))}t=t.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let i=0;i<t.length;i++){const u=r[t[i]];u&&u.prototype&&ct(u.prototype,Fe(u.prototype),c)}}(t,r)}),e.__load_patch("customElements",(r,c,t)=>{!function Rt(e,r){const{isBrowser:c,isMix:t}=r.getGlobalObjects();(c||t)&&e.customElements&&"customElements"in e&&r.patchCallbacks(r,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"])}(r,t)}),e.__load_patch("XHR",(r,c)=>{!function D(d){const w=d.XMLHttpRequest;if(!w)return;const Z=w.prototype;let U=Z[Ze],J=Z[Ae];if(!U){const R=d.XMLHttpRequestEventTarget;if(R){const b=R.prototype;U=b[Ze],J=b[Ae]}}const K="readystatechange",X="scheduled";function k(R){const b=R.data,S=b.target;S[E]=!1,S[m]=!1;const Q=S[u];U||(U=S[Ze],J=S[Ae]),Q&&J.call(S,K,Q);const W=S[u]=()=>{if(S.readyState===S.DONE)if(!b.aborted&&S[E]&&R.state===X){const _=S[c.__symbol__("loadfalse")];if(0!==S.status&&_&&_.length>0){const n=R.invoke;R.invoke=function(){const o=S[c.__symbol__("loadfalse")];for(let p=0;p<o.length;p++)o[p]===R&&o.splice(p,1);!b.aborted&&R.state===X&&n.call(R)},_.push(R)}else R.invoke()}else!b.aborted&&!1===S[E]&&(S[m]=!0)};return U.call(S,K,W),S[t]||(S[t]=R),z.apply(S,b.args),S[E]=!0,R}function h(){}function H(R){const b=R.data;return b.aborted=!0,O.apply(b.target,b.args)}const V=ue(Z,"open",()=>function(R,b){return R[i]=0==b[2],R[T]=b[1],V.apply(R,b)}),G=j("fetchTaskAborting"),g=j("fetchTaskScheduling"),z=ue(Z,"send",()=>function(R,b){if(!0===c.current[g]||R[i])return z.apply(R,b);{const S={target:R,url:R[T],isPeriodic:!1,args:b,aborted:!1},Q=He("XMLHttpRequest.send",h,S,k,H);R&&!0===R[m]&&!S.aborted&&Q.state===X&&Q.invoke()}}),O=ue(Z,"abort",()=>function(R,b){const S=function x(R){return R[t]}(R);if(S&&"string"==typeof S.type){if(null==S.cancelFn||S.data&&S.data.aborted)return;S.zone.cancelTask(S)}else if(!0===c.current[G])return O.apply(R,b)})}(r);const t=j("xhrTask"),i=j("xhrSync"),u=j("xhrListener"),E=j("xhrScheduled"),T=j("xhrURL"),m=j("xhrErrorBeforeScheduled")}),e.__load_patch("geolocation",r=>{r.navigator&&r.navigator.geolocation&&function gt(e,r){const c=e.constructor.name;for(let t=0;t<r.length;t++){const i=r[t],u=e[i];if(u){if(!We(ke(e,i)))continue;e[i]=(T=>{const m=function(){return T.apply(this,xe(arguments,c+"."+i))};return fe(m,T),m})(u)}}}(r.navigator.geolocation,["getCurrentPosition","watchPosition"])}),e.__load_patch("PromiseRejectionEvent",(r,c)=>{function t(i){return function(u){st(r,i).forEach(T=>{const m=r.PromiseRejectionEvent;if(m){const D=new m(i,{promise:u.promise,reason:u.rejection});T.invoke(D)}})}}r.PromiseRejectionEvent&&(c[j("unhandledPromiseRejectionHandler")]=t("unhandledrejection"),c[j("rejectionHandledHandler")]=t("rejectionhandled"))}),e.__load_patch("queueMicrotask",(r,c,t)=>{!function wt(e,r){r.patchMethod(e,"queueMicrotask",c=>function(t,i){Zone.current.scheduleMicroTask("queueMicrotask",i[0])})}(r,t)})}(at)}},te=>{te(te.s=935)}]);
3
- "use strict";(self.webpackChunk_motopays_pay_form=self.webpackChunk_motopays_pay_form||[]).push([[792],{409:(On,Ue,lt)=>{function tt(e,n){return Object.is(e,n)}let ye=null,ze=!1,we=1;const Qe=Symbol("SIGNAL");function q(e){const n=ye;return ye=e,n}const Nt={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 ri(e){if(ze)throw new Error("");if(null===ye)return;ye.consumerOnSignalRead(e);const n=ye.nextProducerIndex++;Fc(ye),n<ye.producerNode.length&&ye.producerNode[n]!==e&&Uo(ye)&&Rc(ye.producerNode[n],ye.producerIndexOfThis[n]),ye.producerNode[n]!==e&&(ye.producerNode[n]=e,ye.producerIndexOfThis[n]=Uo(ye)?g_(e,ye,n):0),ye.producerLastReadVersion[n]=e.version}function _s(e){if((!Uo(e)||e.dirty)&&(e.dirty||e.lastCleanEpoch!==we)){if(!e.producerMustRecompute(e)&&!Fr(e))return e.dirty=!1,void(e.lastCleanEpoch=we);e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=we}}function Kn(e){if(void 0===e.liveConsumerNode)return;const n=ze;ze=!0;try{for(const t of e.liveConsumerNode)t.dirty||Le(t)}finally{ze=n}}function de(){return!1!==ye?.consumerAllowSignalWrites}function Le(e){e.dirty=!0,Kn(e),e.consumerMarkedDirty?.(e)}function ut(e){return e&&(e.nextProducerIndex=0),q(e)}function Rn(e,n){if(q(n),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(Uo(e))for(let t=e.nextProducerIndex;t<e.producerNode.length;t++)Rc(e.producerNode[t],e.producerIndexOfThis[t]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Fr(e){Fc(e);for(let n=0;n<e.producerNode.length;n++){const t=e.producerNode[n],r=e.producerLastReadVersion[n];if(r!==t.version||(_s(t),r!==t.version))return!0}return!1}function mf(e){if(Fc(e),Uo(e))for(let n=0;n<e.producerNode.length;n++)Rc(e.producerNode[n],e.producerIndexOfThis[n]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function g_(e,n,t){if(y_(e),0===e.liveConsumerNode.length&&__(e))for(let r=0;r<e.producerNode.length;r++)e.producerIndexOfThis[r]=g_(e.producerNode[r],e,r);return e.liveConsumerIndexOfThis.push(t),e.liveConsumerNode.push(n)-1}function Rc(e,n){if(y_(e),1===e.liveConsumerNode.length&&__(e))for(let r=0;r<e.producerNode.length;r++)Rc(e.producerNode[r],e.producerIndexOfThis[r]);const t=e.liveConsumerNode.length-1;if(e.liveConsumerNode[n]=e.liveConsumerNode[t],e.liveConsumerIndexOfThis[n]=e.liveConsumerIndexOfThis[t],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,n<e.liveConsumerNode.length){const r=e.liveConsumerIndexOfThis[n],i=e.liveConsumerNode[n];Fc(i),i.producerIndexOfThis[r]=n}}function Uo(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function Fc(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function y_(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function __(e){return void 0!==e.producerNode}const gf=Symbol("UNSET"),yf=Symbol("COMPUTING"),Lc=Symbol("ERRORED"),j1={...Nt,value:gf,dirty:!0,error:null,equal:tt,producerMustRecompute:e=>e.value===gf||e.value===yf,producerRecomputeValue(e){if(e.value===yf)throw new Error("Detected cycle in computations.");const n=e.value;e.value=yf;const t=ut(e);let r;try{r=e.computation()}catch(i){r=Lc,e.error=i}finally{Rn(e,t)}n!==gf&&n!==Lc&&r!==Lc&&e.equal(n,r)?e.value=n:(e.value=r,e.version++)}};let v_=function H1(){throw new Error};function C_(){v_()}let Vc=null;function _f(e,n){de()||C_(),e.equal(e.value,n)||(e.value=n,function z1(e){e.version++,function pf(){we++}(),Kn(e),Vc?.()}(e))}const b_={...Nt,equal:tt,value:void 0};const vf=()=>{},W1={...Nt,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{null!==e.schedule&&e.schedule(e.ref)},hasRun:!1,cleanupFn:vf};function Xe(e){return"function"==typeof e}function Cf(e){const t=e(r=>{Error.call(r),r.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const bf=Cf(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((r,i)=>`${i+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function Bc(e,n){if(e){const t=e.indexOf(n);0<=t&&e.splice(t,1)}}class mn{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(const s of t)s.remove(this);else t.remove(this);const{initialTeardown:r}=this;if(Xe(r))try{r()}catch(s){n=s instanceof bf?s.errors:[s]}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const s of i)try{D_(s)}catch(o){n=n??[],o instanceof bf?n=[...n,...o.errors]:n.push(o)}}if(n)throw new bf(n)}}add(n){var t;if(n&&n!==this)if(this.closed)D_(n);else{if(n instanceof mn){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(n)}}_hasParent(n){const{_parentage:t}=this;return t===n||Array.isArray(t)&&t.includes(n)}_addParent(n){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n}_removeParent(n){const{_parentage:t}=this;t===n?this._parentage=null:Array.isArray(t)&&Bc(t,n)}remove(n){const{_finalizers:t}=this;t&&Bc(t,n),n instanceof mn&&n._removeParent(this)}}mn.EMPTY=(()=>{const e=new mn;return e.closed=!0,e})();const E_=mn.EMPTY;function w_(e){return e instanceof mn||e&&"closed"in e&&Xe(e.remove)&&Xe(e.add)&&Xe(e.unsubscribe)}function D_(e){Xe(e)?e():e.unsubscribe()}const Ii={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},jc={setTimeout(e,n,...t){const{delegate:r}=jc;return r?.setTimeout?r.setTimeout(e,n,...t):setTimeout(e,n,...t)},clearTimeout(e){const{delegate:n}=jc;return(n?.clearTimeout||clearTimeout)(e)},delegate:void 0};function S_(e){jc.setTimeout(()=>{const{onUnhandledError:n}=Ii;if(!n)throw e;n(e)})}function Ef(){}const Z1=wf("C",void 0,void 0);function wf(e,n,t){return{kind:e,value:n,error:t}}let Ai=null;function Hc(e){if(Ii.useDeprecatedSynchronousErrorHandling){const n=!Ai;if(n&&(Ai={errorThrown:!1,error:null}),e(),n){const{errorThrown:t,error:r}=Ai;if(Ai=null,t)throw r}}else e()}class Df extends mn{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,w_(n)&&n.add(this)):this.destination=tx}static create(n,t,r){return new Tf(n,t,r)}next(n){this.isStopped?Mf(function K1(e){return wf("N",e,void 0)}(n),this):this._next(n)}error(n){this.isStopped?Mf(function Y1(e){return wf("E",void 0,e)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?Mf(Z1,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const X1=Function.prototype.bind;function Sf(e,n){return X1.call(e,n)}class J1{constructor(n){this.partialObserver=n}next(n){const{partialObserver:t}=this;if(t.next)try{t.next(n)}catch(r){Uc(r)}}error(n){const{partialObserver:t}=this;if(t.error)try{t.error(n)}catch(r){Uc(r)}else Uc(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(t){Uc(t)}}}class Tf extends Df{constructor(n,t,r){let i;if(super(),Xe(n)||!n)i={next:n??void 0,error:t??void 0,complete:r??void 0};else{let s;this&&Ii.useDeprecatedNextContext?(s=Object.create(n),s.unsubscribe=()=>this.unsubscribe(),i={next:n.next&&Sf(n.next,s),error:n.error&&Sf(n.error,s),complete:n.complete&&Sf(n.complete,s)}):i=n}this.destination=new J1(i)}}function Uc(e){Ii.useDeprecatedSynchronousErrorHandling?function Q1(e){Ii.useDeprecatedSynchronousErrorHandling&&Ai&&(Ai.errorThrown=!0,Ai.error=e)}(e):S_(e)}function Mf(e,n){const{onStoppedNotification:t}=Ii;t&&jc.setTimeout(()=>t(e,n))}const tx={closed:!0,next:Ef,error:function ex(e){throw e},complete:Ef},If="function"==typeof Symbol&&Symbol.observable||"@@observable";function Af(e){return e}let nt=(()=>{class e{constructor(t){t&&(this._subscribe=t)}lift(t){const r=new e;return r.source=this,r.operator=t,r}subscribe(t,r,i){const s=function rx(e){return e&&e instanceof Df||function nx(e){return e&&Xe(e.next)&&Xe(e.error)&&Xe(e.complete)}(e)&&w_(e)}(t)?t:new Tf(t,r,i);return Hc(()=>{const{operator:o,source:a}=this;s.add(o?o.call(s,a):a?this._subscribe(s):this._trySubscribe(s))}),s}_trySubscribe(t){try{return this._subscribe(t)}catch(r){t.error(r)}}forEach(t,r){return new(r=M_(r))((i,s)=>{const o=new Tf({next:a=>{try{t(a)}catch(c){s(c),o.unsubscribe()}},error:s,complete:i});this.subscribe(o)})}_subscribe(t){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(t)}[If](){return this}pipe(...t){return function T_(e){return 0===e.length?Af:1===e.length?e[0]:function(t){return e.reduce((r,i)=>i(r),t)}}(t)(this)}toPromise(t){return new(t=M_(t))((r,i)=>{let s;this.subscribe(o=>s=o,o=>i(o),()=>r(s))})}}return e.create=n=>new e(n),e})();function M_(e){var n;return null!==(n=e??Ii.Promise)&&void 0!==n?n:Promise}const ix=Cf(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let kt=(()=>{class e extends nt{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const r=new I_(this,this);return r.operator=t,r}_throwIfClosed(){if(this.closed)throw new ix}next(t){Hc(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(t)}})}error(t){Hc(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:r}=this;for(;r.length;)r.shift().error(t)}})}complete(){Hc(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:r,isStopped:i,observers:s}=this;return r||i?E_:(this.currentObservers=null,s.push(t),new mn(()=>{this.currentObservers=null,Bc(s,t)}))}_checkFinalizedStatuses(t){const{hasError:r,thrownError:i,isStopped:s}=this;r?t.error(i):s&&t.complete()}asObservable(){const t=new nt;return t.source=this,t}}return e.create=(n,t)=>new I_(n,t),e})();class I_ extends kt{constructor(n,t){super(),this.destination=n,this.source=t}next(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,n)}error(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,n)}complete(){var n,t;null===(t=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===t||t.call(n)}_subscribe(n){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(n))&&void 0!==r?r:E_}}class sx extends kt{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const t=super._subscribe(n);return!t.closed&&n.next(this._value),t}getValue(){const{hasError:n,thrownError:t,_value:r}=this;if(n)throw t;return this._throwIfClosed(),r}next(n){super.next(this._value=n)}}function gn(e){return n=>{if(function ox(e){return Xe(e?.lift)}(n))return n.lift(function(t){try{return e(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function sn(e,n,t,r,i){return new ax(e,n,t,r,i)}class ax extends Df{constructor(n,t,r,i,s,o){super(n),this.onFinalize=s,this.shouldUnsubscribe=o,this._next=t?function(a){try{t(a)}catch(c){n.error(c)}}:super._next,this._error=i?function(a){try{i(a)}catch(c){n.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:t}=this;super.unsubscribe(),!t&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function Pt(e,n){return gn((t,r)=>{let i=0;t.subscribe(sn(r,s=>{r.next(e.call(n,s,i++))}))})}typeof navigator<"u"&&navigator,typeof navigator<"u"&&!/Opera/.test(navigator.userAgent)&&navigator,typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||navigator),typeof navigator<"u"&&!/Opera|WebKit/.test(navigator.userAgent)&&navigator,typeof navigator<"u"&&navigator;const Z_="https://g.co/ng/security#xss";class E extends Error{constructor(n,t){super(function vs(e,n){return`NG0${Math.abs(e)}${n?": "+n:""}`}(n,t)),this.code=n}}const qc=Symbol("InputSignalNode#UNSET"),Y_={...b_,transformFn:void 0,applyValueToInputSignal(e,n){_f(e,n)}};function K_(e,n){const t=Object.create(Y_);function r(){if(ri(t),t.value===qc)throw new E(-950,!1);return t.value}return t.value=e,t.transformFn=n?.transform,r[Qe]=t,r}function Lr(e){return{toString:e}.toString()}const Cs="__annotations__",bs="__parameters__",Es="__prop__metadata__";function Q_(e,n,t,r,i){return Lr(()=>{const s=Lf(n);function o(...a){if(this instanceof o)return s.call(this,...a),this;const c=new o(...a);return function(u){return i&&i(u,...a),(u.hasOwnProperty(Cs)?u[Cs]:Object.defineProperty(u,Cs,{value:[]})[Cs]).push(c),r&&r(u),u}}return t&&(o.prototype=Object.create(t.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function Lf(e){return function(...t){if(e){const r=e(...t);for(const i in r)this[i]=r[i]}}}function ws(e,n,t){return Lr(()=>{const r=Lf(n);function i(...s){if(this instanceof i)return r.apply(this,s),this;const o=new i(...s);return a.annotation=o,a;function a(c,l,u){const d=c.hasOwnProperty(bs)?c[bs]:Object.defineProperty(c,bs,{value:[]})[bs];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(o),c}}return t&&(i.prototype=Object.create(t.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}const $e=globalThis;function Te(e){for(let n in e)if(e[n]===Te)return n;throw Error("Could not find renamed property on target object.")}function aN(e,n){for(const t in n)n.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=n[t])}function Ct(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Ct).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const n=e.toString();if(null==n)return""+n;const t=n.indexOf("\n");return-1===t?n:n.substring(0,t)}function Vf(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n}const cN=Te({__forward_ref__:Te});function De(e){return e.__forward_ref__=De,e.toString=function(){return Ct(this())},e}function W(e){return Wc(e)?e():e}function Wc(e){return"function"==typeof e&&e.hasOwnProperty(cN)&&e.__forward_ref__===De}function R(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function ft(e){return{providers:e.providers||[],imports:e.imports||[]}}function Zc(e){return X_(e,Kc)||X_(e,J_)}function X_(e,n){return e.hasOwnProperty(n)?e[n]:null}function Yc(e){return e&&(e.hasOwnProperty(Bf)||e.hasOwnProperty(hN))?e[Bf]:null}const Kc=Te({\u0275prov:Te}),Bf=Te({\u0275inj:Te}),J_=Te({ngInjectableDef:Te}),hN=Te({ngInjectorDef:Te});class N{constructor(n,t){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=R({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Gf(e){return e&&!!e.\u0275providers}const Go=Te({\u0275cmp:Te}),zf=Te({\u0275dir:Te}),qf=Te({\u0275pipe:Te}),tv=Te({\u0275mod:Te}),Vr=Te({\u0275fac:Te}),zo=Te({__NG_ELEMENT_ID__:Te}),nv=Te({__NG_ENV_ID__:Te});function X(e){return"string"==typeof e?e:null==e?"":String(e)}function Wf(e,n){throw new E(-201,!1)}var ue=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(ue||{});let Zf;function rv(){return Zf}function on(e){const n=Zf;return Zf=e,n}function iv(e,n,t){const r=Zc(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:t&ue.Optional?null:void 0!==n?n:void Wf()}const qo={},Yf="__NG_DI_FLAG__",Qc="ngTempTokenPath",vN=/\n/gm,sv="__source";let Ds;function oi(e){const n=Ds;return Ds=e,n}function EN(e,n=ue.Default){if(void 0===Ds)throw new E(-203,!1);return null===Ds?iv(e,void 0,n):Ds.get(e,n&ue.Optional?null:void 0,n)}function k(e,n=ue.Default){return(rv()||EN)(W(e),n)}function A(e,n=ue.Default){return k(e,Xc(n))}function Xc(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Kf(e){const n=[];for(let t=0;t<e.length;t++){const r=W(e[t]);if(Array.isArray(r)){if(0===r.length)throw new E(900,!1);let i,s=ue.Default;for(let o=0;o<r.length;o++){const a=r[o],c=wN(a);"number"==typeof c?-1===c?i=a.token:s|=c:i=a}n.push(k(i,s))}else n.push(k(r))}return n}function Wo(e,n){return e[Yf]=n,e.prototype[Yf]=n,e}function wN(e){return e[Yf]}const TN=Wo(ws("Inject",e=>({token:e})),-1),Qf=Wo(ws("Optional"),8),MN=Wo(ws("Self"),2),Xf=Wo(ws("SkipSelf"),4),IN=Wo(ws("Host"),1);function Ni(e,n){return e.hasOwnProperty(Vr)?e[Vr]:null}function Ss(e,n){e.forEach(t=>Array.isArray(t)?Ss(t,n):n(t))}function av(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function Jc(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function el(e,n){const t=[];for(let r=0;r<e;r++)t.push(n);return t}function vn(e,n,t){let r=Ts(e,n);return r>=0?e[1|r]=t:(r=~r,function cv(e,n,t,r){let i=e.length;if(i==n)e.push(t,r);else if(1===i)e.push(r,e[0]),e[0]=t;else{for(i--,e.push(e[i-1],e[i]);i>n;)e[i]=e[i-2],i--;e[n]=t,e[n+1]=r}}(e,r,n,t)),r}function eh(e,n){const t=Ts(e,n);if(t>=0)return e[1|t]}function Ts(e,n){return function lv(e,n,t){let r=0,i=e.length>>t;for(;i!==r;){const s=r+(i-r>>1),o=e[s<<t];if(n===o)return s<<t;o>n?i=s:r=s+1}return~(i<<t)}(e,n,1)}const yr={},fe=[],_r=new N(""),uv=new N("",-1),th=new N("");class tl{get(n,t=qo){if(t===qo){const r=new Error(`NullInjectorError: No provider for ${Ct(n)}!`);throw r.name="NullInjectorError",r}return t}}var nl=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(nl||{}),Qn=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Qn||{}),ai=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(ai||{});function xN(e,n,t){let r=e.length;for(;;){const i=e.indexOf(n,t);if(-1===i)return i;if(0===i||e.charCodeAt(i-1)<=32){const s=n.length;if(i+s===r||e.charCodeAt(i+s)<=32)return i}t=i+1}}function nh(e,n,t){let r=0;for(;r<t.length;){const i=t[r];if("number"==typeof i){if(0!==i)break;r++;const s=t[r++],o=t[r++],a=t[r++];e.setAttribute(n,o,a,s)}else{const s=i,o=t[++r];fv(s)?e.setProperty(n,s,o):e.setAttribute(n,s,o),r++}}return r}function dv(e){return 3===e||4===e||6===e}function fv(e){return 64===e.charCodeAt(0)}function Zo(e,n){if(null!==n&&0!==n.length)if(null===e||0===e.length)e=n.slice();else{let t=-1;for(let r=0;r<n.length;r++){const i=n[r];"number"==typeof i?t=i:0===t||hv(e,t,i,null,-1===t||2===t?n[++r]:null)}}return e}function hv(e,n,t,r,i){let s=0,o=e.length;if(-1===n)o=-1;else for(;s<e.length;){const a=e[s++];if("number"==typeof a){if(a===n){o=-1;break}if(a>n){o=s-1;break}}}for(;s<e.length;){const a=e[s];if("number"==typeof a)break;if(a===t){if(null===r)return void(null!==i&&(e[s+1]=i));if(r===e[s+1])return void(e[s+2]=i)}s++,null!==r&&s++,null!==i&&s++}-1!==o&&(e.splice(o,0,n),s=o+1),e.splice(s++,0,t),null!==r&&e.splice(s++,0,r),null!==i&&e.splice(s++,0,i)}const pv="ng-template";function NN(e,n,t,r){let i=0;if(r){for(;i<n.length&&"string"==typeof n[i];i+=2)if("class"===n[i]&&-1!==xN(n[i+1].toLowerCase(),t,0))return!0}else if(rh(e))return!1;if(i=n.indexOf(1,i),i>-1){let s;for(;++i<n.length&&"string"==typeof(s=n[i]);)if(s.toLowerCase()===t)return!0}return!1}function rh(e){return 4===e.type&&e.value!==pv}function kN(e,n,t){return n===(4!==e.type||t?e.value:pv)}function PN(e,n,t){let r=4;const i=e.attrs,s=null!==i?function FN(e){for(let n=0;n<e.length;n++)if(dv(e[n]))return n;return e.length}(i):0;let o=!1;for(let a=0;a<n.length;a++){const c=n[a];if("number"!=typeof c){if(!o)if(4&r){if(r=2|1&r,""!==c&&!kN(e,c,t)||""===c&&1===n.length){if(Xn(r))return!1;o=!0}}else if(8&r){if(null===i||!NN(e,i,c,t)){if(Xn(r))return!1;o=!0}}else{const l=n[++a],u=ON(c,i,rh(e),t);if(-1===u){if(Xn(r))return!1;o=!0;continue}if(""!==l){let d;if(d=u>s?"":i[u+1].toLowerCase(),2&r&&l!==d){if(Xn(r))return!1;o=!0}}}}else{if(!o&&!Xn(r)&&!Xn(c))return!1;if(o&&Xn(c))continue;o=!1,r=c|1&r}}return Xn(r)||o}function Xn(e){return!(1&e)}function ON(e,n,t,r){if(null===n)return-1;let i=0;if(r||!t){let s=!1;for(;i<n.length;){const o=n[i];if(o===e)return i;if(3===o||6===o)s=!0;else{if(1===o||2===o){let a=n[++i];for(;"string"==typeof a;)a=n[++i];continue}if(4===o)break;if(0===o){i+=4;continue}}i+=s?1:2}return-1}return function LN(e,n){let t=e.indexOf(4);if(t>-1)for(t++;t<e.length;){const r=e[t];if("number"==typeof r)return-1;if(r===n)return t;t++}return-1}(n,e)}function mv(e,n,t=!1){for(let r=0;r<n.length;r++)if(PN(e,n[r],t))return!0;return!1}function VN(e,n){e:for(let t=0;t<n.length;t++){const r=n[t];if(e.length===r.length){for(let i=0;i<e.length;i++)if(e[i]!==r[i])continue e;return!0}}return!1}function gv(e,n){return e?":not("+n.trim()+")":n}function BN(e){let n=e[0],t=1,r=2,i="",s=!1;for(;t<e.length;){let o=e[t];if("string"==typeof o)if(2&r){const a=e[++t];i+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else 8&r?i+="."+o:4&r&&(i+=" "+o);else""!==i&&!Xn(o)&&(n+=gv(s,i),i=""),r=o,s=s||!Xn(r);t++}return""!==i&&(n+=gv(s,i)),n}function Me(e){return Lr(()=>{const n=_v(e),t={...n,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===nl.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Qn.Emulated,styles:e.styles||fe,_:null,schemas:e.schemas||null,tView:null,id:""};vv(t);const r=e.dependencies;return t.directiveDefs=rl(r,!1),t.pipeDefs=rl(r,!0),t.id=function zN(e){let n=0;const t=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const i of t)n=Math.imul(31,n)+i.charCodeAt(0)|0;return n+=2147483648,"c"+n}(t),t})}function UN(e){return ae(e)||Et(e)}function $N(e){return null!==e}function bt(e){return Lr(()=>({type:e.type,bootstrap:e.bootstrap||fe,declarations:e.declarations||fe,imports:e.imports||fe,exports:e.exports||fe,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function yv(e,n){if(null==e)return yr;const t={};for(const r in e)if(e.hasOwnProperty(r)){const i=e[r];let s,o,a=ai.None;Array.isArray(i)?(a=i[0],s=i[1],o=i[2]??s):(s=i,o=i),n?(t[s]=a!==ai.None?[r,a]:r,n[s]=o):t[s]=r}return t}function Z(e){return Lr(()=>{const n=_v(e);return vv(n),n})}function ht(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function ae(e){return e[Go]||null}function Et(e){return e[zf]||null}function Ot(e){return e[qf]||null}function _v(e){const n={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:e.inputs||yr,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||fe,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:yv(e.inputs,n),outputs:yv(e.outputs),debugInfo:null}}function vv(e){e.features?.forEach(n=>n(e))}function rl(e,n){if(!e)return null;const t=n?Ot:UN;return()=>("function"==typeof e?e():e).map(r=>t(r)).filter($N)}function Ms(e){return{\u0275providers:e}}function qN(...e){return{\u0275providers:ih(0,e),\u0275fromNgModule:!0}}function ih(e,...n){const t=[],r=new Set;let i;const s=o=>{t.push(o)};return Ss(n,o=>{const a=o;il(a,s,[],r)&&(i||=[],i.push(a))}),void 0!==i&&Cv(i,s),t}function Cv(e,n){for(let t=0;t<e.length;t++){const{ngModule:r,providers:i}=e[t];sh(i,s=>{n(s,r)})}}function il(e,n,t,r){if(!(e=W(e)))return!1;let i=null,s=Yc(e);const o=!s&&ae(e);if(s||o){if(o&&!o.standalone)return!1;i=e}else{const c=e.ngModule;if(s=Yc(c),!s)return!1;i=c}const a=r.has(i);if(o){if(a)return!1;if(r.add(i),o.dependencies){const c="function"==typeof o.dependencies?o.dependencies():o.dependencies;for(const l of c)il(l,n,t,r)}}else{if(!s)return!1;{if(null!=s.imports&&!a){let l;r.add(i);try{Ss(s.imports,u=>{il(u,n,t,r)&&(l||=[],l.push(u))})}finally{}void 0!==l&&Cv(l,n)}if(!a){const l=Ni(i)||(()=>new i);n({provide:i,useFactory:l,deps:fe},i),n({provide:th,useValue:i,multi:!0},i),n({provide:_r,useValue:()=>k(i),multi:!0},i)}const c=s.providers;if(null!=c&&!a){const l=e;sh(c,u=>{n(u,l)})}}}return i!==e&&void 0!==e.providers}function sh(e,n){for(let t of e)Gf(t)&&(t=t.\u0275providers),Array.isArray(t)?sh(t,n):n(t)}const WN=Te({provide:String,useValue:Te});function oh(e){return null!==e&&"object"==typeof e&&WN in e}function Pi(e){return"function"==typeof e}const ah=new N(""),sl={},YN={};let ch;function ol(){return void 0===ch&&(ch=new tl),ch}class Fn{}class Is extends Fn{get destroyed(){return this._destroyed}constructor(n,t,r,i){super(),this.parent=t,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,uh(n,o=>this.processProvider(o)),this.records.set(uv,As(void 0,this)),i.has("environment")&&this.records.set(Fn,As(void 0,this));const s=this.records.get(ah);null!=s&&"string"==typeof s.value&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(th,fe,ue.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const n=q(null);try{for(const r of this._ngOnDestroyHooks)r.ngOnDestroy();const t=this._onDestroyHooks;this._onDestroyHooks=[];for(const r of t)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),q(n)}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const t=oi(this),r=on(void 0);try{return n()}finally{oi(t),on(r)}}get(n,t=qo,r=ue.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(nv))return n[nv](this);r=Xc(r);const s=oi(this),o=on(void 0);try{if(!(r&ue.SkipSelf)){let c=this.records.get(n);if(void 0===c){const l=function ek(e){return"function"==typeof e||"object"==typeof e&&e instanceof N}(n)&&Zc(n);c=l&&this.injectableDefInScope(l)?As(lh(n),sl):null,this.records.set(n,c)}if(null!=c)return this.hydrate(n,c)}return(r&ue.Self?ol():this.parent).get(n,t=r&ue.Optional&&t===qo?null:t)}catch(a){if("NullInjectorError"===a.name){if((a[Qc]=a[Qc]||[]).unshift(Ct(n)),s)throw a;return function DN(e,n,t,r){const i=e[Qc];throw n[sv]&&i.unshift(n[sv]),e.message=function SN(e,n,t,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let i=Ct(n);if(Array.isArray(n))i=n.map(Ct).join(" -> ");else if("object"==typeof n){let s=[];for(let o in n)if(n.hasOwnProperty(o)){let a=n[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):Ct(a)))}i=`{${s.join(", ")}}`}return`${t}${r?"("+r+")":""}[${i}]: ${e.replace(vN,"\n ")}`}("\n"+e.message,i,t,r),e.ngTokenPath=i,e[Qc]=null,e}(a,n,"R3InjectorError",this.source)}throw a}finally{on(o),oi(s)}}resolveInjectorInitializers(){const n=q(null),t=oi(this),r=on(void 0);try{const s=this.get(_r,fe,ue.Self);for(const o of s)o()}finally{oi(t),on(r),q(n)}}toString(){const n=[],t=this.records;for(const r of t.keys())n.push(Ct(r));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new E(205,!1)}processProvider(n){let t=Pi(n=W(n))?n:W(n&&n.provide);const r=function QN(e){return oh(e)?As(void 0,e.useValue):As(wv(e),sl)}(n);if(!Pi(n)&&!0===n.multi){let i=this.records.get(t);i||(i=As(void 0,sl,!0),i.factory=()=>Kf(i.multi),this.records.set(t,i)),t=n,i.multi.push(n)}this.records.set(t,r)}hydrate(n,t){const r=q(null);try{return t.value===sl&&(t.value=YN,t.value=t.factory()),"object"==typeof t.value&&t.value&&function JN(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{q(r)}}injectableDefInScope(n){if(!n.providedIn)return!1;const t=W(n.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(n){const t=this._onDestroyHooks.indexOf(n);-1!==t&&this._onDestroyHooks.splice(t,1)}}function lh(e){const n=Zc(e),t=null!==n?n.factory:Ni(e);if(null!==t)return t;if(e instanceof N)throw new E(204,!1);if(e instanceof Function)return function KN(e){if(e.length>0)throw new E(204,!1);const t=function fN(e){return e&&(e[Kc]||e[J_])||null}(e);return null!==t?()=>t.factory(e):()=>new e}(e);throw new E(204,!1)}function wv(e,n,t){let r;if(Pi(e)){const i=W(e);return Ni(i)||lh(i)}if(oh(e))r=()=>W(e.useValue);else if(function Ev(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...Kf(e.deps||[]));else if(function bv(e){return!(!e||!e.useExisting)}(e))r=()=>k(W(e.useExisting));else{const i=W(e&&(e.useClass||e.provide));if(!function XN(e){return!!e.deps}(e))return Ni(i)||lh(i);r=()=>new i(...Kf(e.deps))}return r}function As(e,n,t=!1){return{factory:e,value:n,multi:t?[]:void 0}}function uh(e,n){for(const t of e)Array.isArray(t)?uh(t,n):t&&Gf(t)?uh(t.\u0275providers,n):n(t)}function Dv(){return void 0!==rv()||null!=function bN(){return Ds}()}function wt(e){const n=$e.ng;if(n&&n.\u0275compilerFacade)return n.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}const Sv={\u0275\u0275defineInjectable:R,\u0275\u0275defineInjector:ft,\u0275\u0275inject:k,\u0275\u0275invalidFactoryDep:function ov(e){throw new E(202,!1)},resolveForwardRef:W},ik=Function;function Yo(e){return"function"==typeof e}const sk=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\).*)\)/,ok=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,ak=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,ck=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{[^}]*super\(\.\.\.arguments\)/;class uk{constructor(n){this._reflect=n||$e.Reflect}factory(n){return(...t)=>new n(...t)}_zipTypesAndAnnotations(n,t){let r;r=el(typeof n>"u"?t.length:n.length);for(let i=0;i<r.length;i++)r[i]=typeof n>"u"?[]:n[i]&&n[i]!=Object?[n[i]]:[],t&&null!=t[i]&&(r[i]=r[i].concat(t[i]));return r}_ownParameters(n,t){if(function lk(e){return sk.test(e)||ck.test(e)||ok.test(e)&&!ak.test(e)}(n.toString()))return null;if(n.parameters&&n.parameters!==t.parameters)return n.parameters;const i=n.ctorParameters;if(i&&i!==t.ctorParameters){const a="function"==typeof i?i():i,c=a.map(u=>u&&u.type),l=a.map(u=>u&&fh(u.decorators));return this._zipTypesAndAnnotations(c,l)}const s=n.hasOwnProperty(bs)&&n[bs],o=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",n);return o||s?this._zipTypesAndAnnotations(o,s):el(n.length)}parameters(n){if(!Yo(n))return[];const t=al(n);let r=this._ownParameters(n,t);return!r&&t!==Object&&(r=this.parameters(t)),r||[]}_ownAnnotations(n,t){if(n.annotations&&n.annotations!==t.annotations){let r=n.annotations;return"function"==typeof r&&r.annotations&&(r=r.annotations),r}return n.decorators&&n.decorators!==t.decorators?fh(n.decorators):n.hasOwnProperty(Cs)?n[Cs]:null}annotations(n){if(!Yo(n))return[];const t=al(n),r=this._ownAnnotations(n,t)||[];return(t!==Object?this.annotations(t):[]).concat(r)}_ownPropMetadata(n,t){if(n.propMetadata&&n.propMetadata!==t.propMetadata){let r=n.propMetadata;return"function"==typeof r&&r.propMetadata&&(r=r.propMetadata),r}if(n.propDecorators&&n.propDecorators!==t.propDecorators){const r=n.propDecorators,i={};return Object.keys(r).forEach(s=>{i[s]=fh(r[s])}),i}return n.hasOwnProperty(Es)?n[Es]:null}propMetadata(n){if(!Yo(n))return{};const t=al(n),r={};if(t!==Object){const s=this.propMetadata(t);Object.keys(s).forEach(o=>{r[o]=s[o]})}const i=this._ownPropMetadata(n,t);return i&&Object.keys(i).forEach(s=>{const o=[];r.hasOwnProperty(s)&&o.push(...r[s]),o.push(...i[s]),r[s]=o}),r}ownPropMetadata(n){return Yo(n)&&this._ownPropMetadata(n,al(n))||{}}hasLifecycleHook(n,t){return n instanceof ik&&t in n.prototype}}function fh(e){return e?e.map(n=>new(0,n.type.annotationCls)(...n.args?n.args:[])):[]}function al(e){const n=e.prototype?Object.getPrototypeOf(e.prototype):null;return(n?n.constructor:null)||Object}const qe=0,I=1,H=2,pt=3,Jn=4,Rt=5,zt=6,Ns=7,Ve=8,mt=9,vr=10,Y=11,Ko=12,Tv=13,ks=14,We=15,Oi=16,Ps=17,Br=18,Os=19,Mv=20,ci=21,cl=22,Ln=23,V=25,hh=1,Cr=7,Rs=9,rt=10;var ul=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(ul||{});function Dt(e){return Array.isArray(e)&&"object"==typeof e[hh]}function Ht(e){return Array.isArray(e)&&!0===e[hh]}function ph(e){return!!(4&e.flags)}function Ri(e){return e.componentOffset>-1}function dl(e){return!(1&~e.flags)}function er(e){return!!e.template}function Xo(e){return!!(512&e[H])}class kv{constructor(n,t,r){this.previousValue=n,this.currentValue=t,this.firstChange=r}isFirstChange(){return this.firstChange}}function Pv(e,n,t,r){null!==n?n.applyValueToInputSignal(n,r):e[t]=r}function tr(){return Ov}function Ov(e){return e.type.prototype.ngOnChanges&&(e.setInput=pk),hk}function hk(){const e=Fv(this),n=e?.current;if(n){const t=e.previous;if(t===yr)e.previous=n;else for(let r in n)t[r]=n[r];e.current=null,this.ngOnChanges(n)}}function pk(e,n,t,r,i){const s=this.declaredInputs[r],o=Fv(e)||function mk(e,n){return e[Rv]=n}(e,{previous:yr,current:null}),a=o.current||(o.current={}),c=o.previous,l=c[s];a[s]=new kv(l&&l.currentValue,t,c===yr),Pv(e,n,i,t)}tr.ngInherit=!0;const Rv="__ngSimpleChanges__";function Fv(e){return e[Rv]||null}const br=function(e,n,t){};function he(e){for(;Array.isArray(e);)e=e[qe];return e}function Jo(e,n){return he(n[e])}function qt(e,n){return he(n[e.index])}function ea(e,n){return e.data[n]}function Fi(e,n){return e[n]}function Cn(e,n){const t=n[e];return Dt(t)?t:t[qe]}function vh(e){return!(128&~e[H])}function Vn(e,n){return null==n?null:e[n]}function Bv(e){e[Ps]=0}function jv(e){1024&e[H]||(e[H]|=1024,vh(e)&&hl(e))}function fl(e){return!!(9216&e[H]||e[Ln]?.dirty)}function Ch(e){e[vr].changeDetectionScheduler?.notify(8),64&e[H]&&(e[H]|=1024),fl(e)&&hl(e)}function hl(e){e[vr].changeDetectionScheduler?.notify(0);let n=jr(e);for(;null!==n&&!(8192&n[H])&&(n[H]|=8192,vh(n));)n=jr(n)}function pl(e,n){if(!(256&~e[H]))throw new E(911,!1);null===e[ci]&&(e[ci]=[]),e[ci].push(n)}function jr(e){const n=e[pt];return Ht(n)?n[pt]:n}const K={lFrame:Jv(null),bindingsEnabled:!0,skipHydrationRootTNode:null};let Uv=!1;function $v(){return K.bindingsEnabled}function Li(){return null!==K.skipHydrationRootTNode}function b(){return K.lFrame.lView}function oe(){return K.lFrame.tView}function ne(e){return K.lFrame.contextLView=e,e[Ve]}function re(e){return K.lFrame.contextLView=null,e}function Ie(){let e=Gv();for(;null!==e&&64===e.type;)e=e.parent;return e}function Gv(){return K.lFrame.currentTNode}function nr(e,n){const t=K.lFrame;t.currentTNode=e,t.isParent=n}function wh(){return K.lFrame.isParent}function Dh(){K.lFrame.isParent=!1}function zv(){return K.lFrame.contextLView}function Wv(){return Uv}function Zv(e){Uv=e}function Wt(){const e=K.lFrame;let n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}function rr(){return K.lFrame.bindingIndex++}function Ur(e){const n=K.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}function Ak(e,n){const t=K.lFrame;t.bindingIndex=t.bindingRootIndex=e,Sh(n)}function Sh(e){K.lFrame.currentDirectiveIndex=e}function Th(e){const n=K.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}function gl(e){K.lFrame.currentQueryIndex=e}function Nk(e){const n=e[I];return 2===n.type?n.declTNode:1===n.type?e[Rt]:null}function Qv(e,n,t){if(t&ue.SkipSelf){let i=n,s=e;for(;!(i=i.parent,null!==i||t&ue.Host||(i=Nk(s),null===i||(s=s[ks],10&i.type))););if(null===i)return!1;n=i,e=s}const r=K.lFrame=Xv();return r.currentTNode=n,r.lView=e,!0}function Ih(e){const n=Xv(),t=e[I];K.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function Xv(){const e=K.lFrame,n=null===e?null:e.child;return null===n?Jv(e):n}function Jv(e){const n={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:e,child:null,inI18n:!1};return null!==e&&(e.child=n),n}function eC(){const e=K.lFrame;return K.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const tC=eC;function Ah(){const e=eC();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Ft(){return K.lFrame.selectedIndex}function Vi(e){K.lFrame.selectedIndex=e}function Be(){const e=K.lFrame;return ea(e.tView,e.selectedIndex)}let rC=!0;function na(){return rC}function Er(e){rC=e}function yl(e,n){for(let t=n.directiveStart,r=n.directiveEnd;t<r;t++){const s=e.data[t].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:l,ngOnDestroy:u}=s;o&&(e.contentHooks??=[]).push(-t,o),a&&((e.contentHooks??=[]).push(t,a),(e.contentCheckHooks??=[]).push(t,a)),c&&(e.viewHooks??=[]).push(-t,c),l&&((e.viewHooks??=[]).push(t,l),(e.viewCheckHooks??=[]).push(t,l)),null!=u&&(e.destroyHooks??=[]).push(t,u)}}function _l(e,n,t){iC(e,n,3,t)}function vl(e,n,t,r){(3&e[H])===t&&iC(e,n,t,r)}function xh(e,n){let t=e[H];(3&t)===n&&(t&=16383,t+=1,e[H]=t)}function iC(e,n,t,r){const s=r??-1,o=n.length-1;let a=0;for(let c=void 0!==r?65535&e[Ps]:0;c<o;c++)if("number"==typeof n[c+1]){if(a=n[c],null!=r&&a>=r)break}else n[c]<0&&(e[Ps]+=65536),(a<s||-1==s)&&(Vk(e,t,n,c),e[Ps]=(4294901760&e[Ps])+c+2),c++}function sC(e,n){br(4,e,n);const t=q(null);try{n.call(e)}finally{q(t),br(5,e,n)}}function Vk(e,n,t,r){const i=t[r]<0,s=t[r+1],a=e[i?-t[r]:t[r]];i?e[H]>>14<e[Ps]>>16&&(3&e[H])===n&&(e[H]+=16384,sC(a,s)):sC(a,s)}const Fs=-1;class ra{constructor(n,t,r){this.factory=n,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=r}}const kh={};class Bi{constructor(n,t){this.injector=n,this.parentInjector=t}get(n,t,r){r=Xc(r);const i=this.injector.get(n,kh,r);return i!==kh||t===kh?i:this.parentInjector.get(n,t,r)}}function Ph(e){return e!==Fs}function ia(e){return 32767&e}function sa(e,n){let t=function Uk(e){return e>>16}(e),r=n;for(;t>0;)r=r[ks],t--;return r}let Oh=!0;function Cl(e){const n=Oh;return Oh=e,n}const aC=255,cC=5;let Gk=0;const wr={};function bl(e,n){const t=lC(e,n);if(-1!==t)return t;const r=n[I];r.firstCreatePass&&(e.injectorIndex=n.length,Rh(r.data,e),Rh(n,null),Rh(r.blueprint,null));const i=El(e,n),s=e.injectorIndex;if(Ph(i)){const o=ia(i),a=sa(i,n),c=a[I].data;for(let l=0;l<8;l++)n[s+l]=a[o+l]|c[o+l]}return n[s+8]=i,s}function Rh(e,n){e.push(0,0,0,0,0,0,0,0,n)}function lC(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function El(e,n){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let t=0,r=null,i=n;for(;null!==i;){if(r=gC(i),null===r)return Fs;if(t++,i=i[ks],-1!==r.injectorIndex)return r.injectorIndex|t<<16}return Fs}function Fh(e,n,t){!function zk(e,n,t){let r;"string"==typeof t?r=t.charCodeAt(0)||0:t.hasOwnProperty(zo)&&(r=t[zo]),null==r&&(r=t[zo]=Gk++);const i=r&aC;n.data[e+(i>>cC)]|=1<<i}(e,n,t)}function uC(e,n,t){if(t&ue.Optional||void 0!==e)return e;Wf()}function dC(e,n,t,r){if(t&ue.Optional&&void 0===r&&(r=null),!(t&(ue.Self|ue.Host))){const i=e[mt],s=on(void 0);try{return i?i.get(n,r,t&ue.Optional):iv(n,r,t&ue.Optional)}finally{on(s)}}return uC(r,0,t)}function fC(e,n,t,r=ue.Default,i){if(null!==e){if(2048&n[H]&&!(r&ue.Self)){const o=function Kk(e,n,t,r,i){let s=e,o=n;for(;null!==s&&null!==o&&2048&o[H]&&!(512&o[H]);){const a=hC(s,o,t,r|ue.Self,wr);if(a!==wr)return a;let c=s.parent;if(!c){const l=o[Mv];if(l){const u=l.get(t,wr,r);if(u!==wr)return u}c=gC(o),o=o[ks]}s=c}return i}(e,n,t,r,wr);if(o!==wr)return o}const s=hC(e,n,t,r,wr);if(s!==wr)return s}return dC(n,t,r,i)}function hC(e,n,t,r,i){const s=function Zk(e){if("string"==typeof e)return e.charCodeAt(0)||0;const n=e.hasOwnProperty(zo)?e[zo]:void 0;return"number"==typeof n?n>=0?n&aC:Yk:n}(t);if("function"==typeof s){if(!Qv(n,e,r))return r&ue.Host?uC(i,0,r):dC(n,t,r,i);try{let o;if(o=s(r),null!=o||r&ue.Optional)return o;Wf()}finally{tC()}}else if("number"==typeof s){let o=null,a=lC(e,n),c=Fs,l=r&ue.Host?n[We][Rt]:null;for((-1===a||r&ue.SkipSelf)&&(c=-1===a?El(e,n):n[a+8],c!==Fs&&mC(r,!1)?(o=n[I],a=ia(c),n=sa(c,n)):a=-1);-1!==a;){const u=n[I];if(pC(s,a,u.data)){const d=Wk(a,n,t,o,r,l);if(d!==wr)return d}c=n[a+8],c!==Fs&&mC(r,n[I].data[a+8]===l)&&pC(s,a,n)?(o=u,a=ia(c),n=sa(c,n)):a=-1}}return i}function Wk(e,n,t,r,i,s){const o=n[I],a=o.data[e+8],u=function wl(e,n,t,r,i){const s=e.providerIndexes,o=n.data,a=1048575&s,c=e.directiveStart,u=s>>20,f=i?a+u:e.directiveEnd;for(let h=r?a:a+u;h<f;h++){const p=o[h];if(h<c&&t===p||h>=c&&p.type===t)return h}if(i){const h=o[c];if(h&&er(h)&&h.type===t)return c}return null}(a,o,t,null==r?Ri(a)&&Oh:r!=o&&!!(3&a.type),i&ue.Host&&s===a);return null!==u?ji(n,o,u,a):wr}function ji(e,n,t,r){let i=e[t];const s=n.data;if(function Bk(e){return e instanceof ra}(i)){const o=i;o.resolving&&function gN(e,n){throw n&&n.join(" > "),new E(-200,e)}(function _e(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():X(e)}(s[t]));const a=Cl(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?on(o.injectImpl):null;Qv(e,r,ue.Default);try{i=e[t]=o.factory(void 0,s,e,r),n.firstCreatePass&&t>=r.directiveStart&&function Lk(e,n,t){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:s}=n.type.prototype;if(r){const o=Ov(n);(t.preOrderHooks??=[]).push(e,o),(t.preOrderCheckHooks??=[]).push(e,o)}i&&(t.preOrderHooks??=[]).push(0-e,i),s&&((t.preOrderHooks??=[]).push(e,s),(t.preOrderCheckHooks??=[]).push(e,s))}(t,s[t],n)}finally{null!==l&&on(l),Cl(a),o.resolving=!1,tC()}}return i}function pC(e,n,t){return!!(t[n+(e>>cC)]&1<<e)}function mC(e,n){return!(e&ue.Self||e&ue.Host&&n)}class St{constructor(n,t){this._tNode=n,this._lView=t}get(n,t,r){return fC(this._tNode,this._lView,n,Xc(r),t)}}function Yk(){return new St(Ie(),b())}function Lt(e){return Lr(()=>{const n=e.prototype.constructor,t=n[Vr]||Lh(n),r=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){const s=i[Vr]||Lh(i);if(s&&s!==t)return s;i=Object.getPrototypeOf(i)}return s=>new s})}function Lh(e){return Wc(e)?()=>{const n=Lh(W(e));return n&&n()}:Ni(e)}function gC(e){const n=e[I],t=n.type;return 2===t?n.declTNode:1===t?e[Rt]:null}const Qk=ws("Attribute",e=>({attributeName:e,__NG_ELEMENT_ID__:()=>function Dl(e){return function qk(e,n){if("class"===n)return e.classes;if("style"===n)return e.styles;const t=e.attrs;if(t){const r=t.length;let i=0;for(;i<r;){const s=t[i];if(dv(s))break;if(0===s)i+=2;else if("number"==typeof s)for(i++;i<r&&"string"==typeof t[i];)i++;else{if(s===n)return t[i+1];i+=2}}}return null}(Ie(),e)}(e)}));let yC=null;function Sl(e){return _C(function Vh(){return yC=yC||new uk}().parameters(e))}function _C(e){return e.map(n=>function Xk(e){const n={token:null,attribute:null,host:!1,optional:!1,self:!1,skipSelf:!1};if(Array.isArray(e)&&e.length>0)for(let t=0;t<e.length;t++){const r=e[t];if(void 0===r)continue;const i=Object.getPrototypeOf(r);if(r instanceof Qf||"Optional"===i.ngMetadataName)n.optional=!0;else if(r instanceof Xf||"SkipSelf"===i.ngMetadataName)n.skipSelf=!0;else if(r instanceof MN||"Self"===i.ngMetadataName)n.self=!0;else if(r instanceof IN||"Host"===i.ngMetadataName)n.host=!0;else if(r instanceof TN)n.token=r.token;else if(r instanceof Qk){if(void 0===r.attributeName)throw new E(204,!1);n.attribute=r.attributeName}else n.token=r}else n.token=void 0===e||Array.isArray(e)&&0===e.length?null:e;return n}(n))}const eP=Te({provide:String,useValue:Te});function vC(e){return void 0!==e.useClass}function CC(e){return void 0!==e.useFactory}const iP=Q_("Injectable",void 0,void 0,void 0,(e,n)=>function Jk(e,n){let t=null,r=null;e.hasOwnProperty(Kc)||Object.defineProperty(e,Kc,{get:()=>(null===t&&(t=wt().compileInjectable(Sv,`ng:///${e.name}/\u0275prov.js`,function rP(e,n){const t=n||{providedIn:null},r={name:e.name,type:e,typeArgumentCount:0,providedIn:t.providedIn};return(vC(t)||CC(t))&&void 0!==t.deps&&(r.deps=_C(t.deps)),vC(t)?r.useClass=t.useClass:function tP(e){return eP in e}(t)?r.useValue=t.useValue:CC(t)?r.useFactory=t.useFactory:function nP(e){return void 0!==e.useExisting}(t)&&(r.useExisting=t.useExisting),r}(e,n))),t)}),e.hasOwnProperty(Vr)||Object.defineProperty(e,Vr,{get:()=>{if(null===r){const i=wt();r=i.compileFactory(Sv,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,typeArgumentCount:0,deps:Sl(e),target:i.FactoryTarget.Injectable})}return r},configurable:!0})}(e,n));function bC(e,n=null,t=null,r){const i=EC(e,n,t,r);return i.resolveInjectorInitializers(),i}function EC(e,n=null,t=null,r,i=new Set){const s=[t||fe,qN(e)];return r=r||("object"==typeof e?void 0:Ct(e)),new Is(s,n||ol(),r||null,i)}class Ne{static#e=this.THROW_IF_NOT_FOUND=qo;static#t=this.NULL=new tl;static create(n,t){if(Array.isArray(n))return bC({name:""},t,n,"");{const r=n.name??"";return bC({name:r},n.parent,n.providers,r)}}static#n=this.\u0275prov=R({token:Ne,providedIn:"any",factory:()=>k(uv)});static#r=this.__NG_ELEMENT_ID__=-1}new N("").__NG_ELEMENT_ID__=e=>{const n=Ie();if(null===n)throw new E(204,!1);if(2&n.type)return n.value;if(e&ue.Optional)return null;throw new E(204,!1)};function Bh(e){return e.ngOriginalError}const DC=!0;let oa=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=aP;static#t=this.__NG_ENV_ID__=t=>t}return e})();class oP extends oa{constructor(n){super(),this._lView=n}onDestroy(n){return pl(this._lView,n),()=>function bh(e,n){if(null===e[ci])return;const t=e[ci].indexOf(n);-1!==t&&e[ci].splice(t,1)}(this._lView,n)}}function aP(){return new oP(b())}let Hi=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new sx(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const t=this.taskId++;return this.pendingTasks.add(t),t}remove(t){this.pendingTasks.delete(t),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static#e=this.\u0275prov=R({token:e,providedIn:"root",factory:()=>new e})}return e})();const ve=class cP extends kt{constructor(n=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=n,Dv()&&(this.destroyRef=A(oa,{optional:!0})??void 0,this.pendingTasks=A(Hi,{optional:!0})??void 0)}emit(n){const t=q(null);try{super.next(n)}finally{q(t)}}subscribe(n,t,r){let i=n,s=t||(()=>null),o=r;if(n&&"object"==typeof n){const c=n;i=c.next?.bind(c),s=c.error?.bind(c),o=c.complete?.bind(c)}this.__isAsync&&(s=this.wrapInTimeout(s),i&&(i=this.wrapInTimeout(i)),o&&(o=this.wrapInTimeout(o)));const a=super.subscribe({next:i,error:s,complete:o});return n instanceof mn&&n.add(a),a}wrapInTimeout(n){return t=>{const r=this.pendingTasks?.add();setTimeout(()=>{n(t),void 0!==r&&this.pendingTasks?.remove(r)})}}};function Tl(...e){}function SC(e){let n,t;function r(){e=Tl;try{void 0!==t&&"function"==typeof cancelAnimationFrame&&cancelAnimationFrame(t),void 0!==n&&clearTimeout(n)}catch{}}return n=setTimeout(()=>{e(),r()}),"function"==typeof requestAnimationFrame&&(t=requestAnimationFrame(()=>{e(),r()})),()=>r()}function TC(e){return queueMicrotask(()=>e()),()=>{e=Tl}}const jh="isAngularZone",Ml=jh+"_ID";let lP=0;class pe{constructor(n){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);const{enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:s=DC}=n;if(typeof Zone>"u")throw new E(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!i&&r,o.shouldCoalesceRunChangeDetection=i,o.callbackScheduled=!1,o.scheduleInRootZone=s,function fP(e){const n=()=>{!function dP(e){function n(){SC(()=>{e.callbackScheduled=!1,Uh(e),e.isCheckStableRunning=!0,Hh(e),e.isCheckStableRunning=!1})}e.isCheckStableRunning||e.callbackScheduled||(e.callbackScheduled=!0,e.scheduleInRootZone?Zone.root.run(()=>{n()}):e._outer.run(()=>{n()}),Uh(e))}(e)},t=lP++;e._inner=e._inner.fork({name:"angular",properties:{[jh]:!0,[Ml]:t,[Ml+t]:!0},onInvokeTask:(r,i,s,o,a,c)=>{if(function hP(e){return AC(e,"__ignore_ng_zone__")}(c))return r.invokeTask(s,o,a,c);try{return MC(e),r.invokeTask(s,o,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&n(),IC(e)}},onInvoke:(r,i,s,o,a,c,l)=>{try{return MC(e),r.invoke(s,o,a,c,l)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!function pP(e){return AC(e,"__scheduler_tick__")}(c)&&n(),IC(e)}},onHasTask:(r,i,s,o)=>{r.hasTask(s,o),i===s&&("microTask"==o.change?(e._hasPendingMicrotasks=o.microTask,Uh(e),Hh(e)):"macroTask"==o.change&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(r,i,s,o)=>(r.handleError(s,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get(jh)}static assertInAngularZone(){if(!pe.isInAngularZone())throw new E(909,!1)}static assertNotInAngularZone(){if(pe.isInAngularZone())throw new E(909,!1)}run(n,t,r){return this._inner.run(n,t,r)}runTask(n,t,r,i){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+i,n,uP,Tl,Tl);try{return s.runTask(o,t,r)}finally{s.cancelTask(o)}}runGuarded(n,t,r){return this._inner.runGuarded(n,t,r)}runOutsideAngular(n){return this._outer.run(n)}}const uP={};function Hh(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Uh(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&!0===e.callbackScheduled)}function MC(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function IC(e){e._nesting--,Hh(e)}class $h{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ve,this.onMicrotaskEmpty=new ve,this.onStable=new ve,this.onError=new ve}run(n,t,r){return n.apply(t,r)}runGuarded(n,t,r){return n.apply(t,r)}runOutsideAngular(n){return n()}runTask(n,t,r,i){return n.apply(t,r)}}function AC(e,n){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0]?.data?.[n]}class Dr{constructor(){this._console=console}handleError(n){const t=this._findOriginalError(n);this._console.error("ERROR",n),t&&this._console.error("ORIGINAL ERROR",t)}_findOriginalError(n){let t=n&&Bh(n);for(;t&&Bh(t);)t=Bh(t);return t||null}}const gP=new N("",{providedIn:"root",factory:()=>{const e=A(pe),n=A(Dr);return t=>e.runOutsideAngular(()=>n.handleError(t))}});function NC(e,n){return K_(e,n)}const _P=(NC.required=function yP(e){return K_(qc,e)},NC);function vP(){return Bs(Ie(),b())}function Bs(e,n){return new cn(qt(e,n))}let cn=(()=>{class e{constructor(t){this.nativeElement=t}static#e=this.__NG_ELEMENT_ID__=vP}return e})();function ca(e){return!(128&~e.flags)}Symbol;const qh=new Map;let EP=0;function Wh(e){qh.delete(e[Os])}const Il="__ngContext__";function Ut(e,n){Dt(n)?(e[Il]=n[Os],function DP(e){qh.set(e[Os],e)}(n)):e[Il]=n}function UC(e){return GC(e[Ko])}function $C(e){return GC(e[Jn])}function GC(e){for(;null!==e&&!Ht(e);)e=e[Jn];return e}let Yh;function li(){if(void 0!==Yh)return Yh;if(typeof document<"u")return document;throw new E(210,!1)}const Hs=new N("",{providedIn:"root",factory:()=>HP}),HP="ng",XC=new N(""),$r=new N("",{providedIn:"platform",factory:()=>"unknown"}),JC=new N(""),eb=new N("",{providedIn:"root",factory:()=>li().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let tb=()=>null;function np(e,n,t=!1){return tb(e,n,t)}const lb=new N("",{providedIn:"root",factory:()=>!1});let Ll,Vl;function Gs(e){return function ap(){if(void 0===Ll&&(Ll=null,$e.trustedTypes))try{Ll=$e.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Ll}()?.createHTML(e)||e}function fb(e){return function cp(){if(void 0===Vl&&(Vl=null,$e.trustedTypes))try{Vl=$e.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Vl}()?.createHTML(e)||e}class $i{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Z_})`}}class tO extends $i{getTypeName(){return"HTML"}}class nO extends $i{getTypeName(){return"Style"}}class rO extends $i{getTypeName(){return"Script"}}class iO extends $i{getTypeName(){return"URL"}}class sO extends $i{getTypeName(){return"ResourceURL"}}function bn(e){return e instanceof $i?e.changingThisBreaksApplicationSecurity:e}function Sr(e,n){const t=function oO(e){return e instanceof $i&&e.getTypeName()||null}(e);if(null!=t&&t!==n){if("ResourceURL"===t&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${t} (see ${Z_})`)}return t===n}class fO{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n="<body><remove></remove>"+n;try{const t=(new window.DOMParser).parseFromString(Gs(n),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(n):(t.firstChild?.remove(),t)}catch{return null}}}class hO{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const t=this.inertDocument.createElement("template");return t.innerHTML=Gs(n),t}}const mO=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Bl(e){return(e=String(e)).match(mO)?e:"unsafe:"+e}function Gr(e){const n={};for(const t of e.split(","))n[t]=!0;return n}function ma(...e){const n={};for(const t of e)for(const r in t)t.hasOwnProperty(r)&&(n[r]=!0);return n}const gb=Gr("area,br,col,hr,img,wbr"),yb=Gr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),_b=Gr("rp,rt"),lp=ma(gb,ma(yb,Gr("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")),ma(_b,Gr("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")),ma(_b,yb)),up=Gr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),vb=ma(up,Gr("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"),Gr("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")),gO=Gr("script,style,template");class yO{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let t=n.firstChild,r=!0,i=[];for(;t;)if(t.nodeType===Node.ELEMENT_NODE?r=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,r&&t.firstChild)i.push(t),t=CO(t);else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let s=vO(t);if(s){t=s;break}t=i.pop()}return this.buf.join("")}startElement(n){const t=Cb(n).toLowerCase();if(!lp.hasOwnProperty(t))return this.sanitizedSomething=!0,!gO.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const r=n.attributes;for(let i=0;i<r.length;i++){const s=r.item(i),o=s.name,a=o.toLowerCase();if(!vb.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let c=s.value;up[a]&&(c=Bl(c)),this.buf.push(" ",o,'="',Eb(c),'"')}return this.buf.push(">"),!0}endElement(n){const t=Cb(n).toLowerCase();lp.hasOwnProperty(t)&&!gb.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(n){this.buf.push(Eb(n))}}function vO(e){const n=e.nextSibling;if(n&&e!==n.previousSibling)throw bb(n);return n}function CO(e){const n=e.firstChild;if(n&&function _O(e,n){return(e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(e,n))throw bb(n);return n}function Cb(e){const n=e.nodeName;return"string"==typeof n?n:"FORM"}function bb(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}const bO=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,EO=/([^\#-~ |!])/g;function Eb(e){return e.replace(/&/g,"&amp;").replace(bO,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(EO,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let jl;function wb(e,n){let t=null;try{jl=jl||function mb(e){const n=new hO(e);return function pO(){try{return!!(new window.DOMParser).parseFromString(Gs(""),"text/html")}catch{return!1}}()?new fO(n):n}(e);let r=n?String(n):"";t=jl.getInertBodyElement(r);let i=5,s=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=s,s=t.innerHTML,t=jl.getInertBodyElement(r)}while(r!==s);return Gs((new yO).sanitizeChildren(dp(t)||t))}finally{if(t){const r=dp(t)||t;for(;r.firstChild;)r.firstChild.remove()}}}function dp(e){return"content"in e&&function wO(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var En=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(En||{});function Tr(e){const n=ya();return n?fb(n.sanitize(En.HTML,e)||""):Sr(e,"HTML")?fb(bn(e)):wb(li(),X(e))}function ga(e){const n=ya();return n?n.sanitize(En.URL,e)||"":Sr(e,"URL")?bn(e):Bl(X(e))}function ya(){const e=b();return e&&e[vr].sanitizer}const xO=/^>|^->|<!--|-->|--!>|<!-$/g,NO=/(<|>)/g,kO="\u200b$1\u200b";function Ab(e){return e.ownerDocument}var ui=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(ui||{});let pp;function mp(e,n){return pp(e,n)}function qs(e,n,t,r,i){if(null!=r){let s,o=!1;Ht(r)?s=r:Dt(r)&&(o=!0,r=r[qe]);const a=he(r);0===e&&null!==t?null==i?Vb(n,t,a):Gi(n,t,a,i||null,!0):1===e&&null!==t?Gi(n,t,a,i||null,!0):2===e?function va(e,n,t){e.removeChild(null,n,t)}(n,a,o):3===e&&n.destroyNode(a),null!=s&&function QO(e,n,t,r,i){const s=t[Cr];s!==he(t)&&qs(n,e,r,s,i);for(let a=rt;a<t.length;a++){const c=t[a];ql(c[I],c,e,n,r,s)}}(n,e,s,t,i)}}function yp(e,n){return e.createComment(function Sb(e){return e.replace(xO,n=>n.replace(NO,kO))}(n))}function $l(e,n,t){return e.createElement(n,t)}function Rb(e,n){n[vr].changeDetectionScheduler?.notify(9),ql(e,n,n[Y],2,null,null)}function Fb(e,n){const t=e[Rs],r=n[pt];(Dt(r)||n[We]!==r[pt][We])&&(e[H]|=ul.HasTransplantedViews),null===t?e[Rs]=[n]:t.push(n)}function _p(e,n){const t=e[Rs],r=t.indexOf(n);t.splice(r,1)}function _a(e,n){if(e.length<=rt)return;const t=rt+n,r=e[t];if(r){const i=r[Oi];null!==i&&i!==e&&_p(i,r),n>0&&(e[t-1][Jn]=r[Jn]);const s=Jc(e,rt+n);!function $O(e,n){Rb(e,n),n[qe]=null,n[Rt]=null}(r[I],r);const o=s[Br];null!==o&&o.detachView(s[I]),r[pt]=null,r[Jn]=null,r[H]&=-129}return r}function Gl(e,n){if(!(256&n[H])){const t=n[Y];t.destroyNode&&ql(e,n,t,3,null,null),function zO(e){let n=e[Ko];if(!n)return vp(e[I],e);for(;n;){let t=null;if(Dt(n))t=n[Ko];else{const r=n[rt];r&&(t=r)}if(!t){for(;n&&!n[Jn]&&n!==e;)Dt(n)&&vp(n[I],n),n=n[pt];null===n&&(n=e),Dt(n)&&vp(n[I],n),t=n&&n[Jn]}n=t}}(n)}}function vp(e,n){if(256&n[H])return;const t=q(null);try{n[H]&=-129,n[H]|=256,n[Ln]&&mf(n[Ln]),function ZO(e,n){let t;if(null!=e&&null!=(t=e.destroyHooks))for(let r=0;r<t.length;r+=2){const i=n[t[r]];if(!(i instanceof ra)){const s=t[r+1];if(Array.isArray(s))for(let o=0;o<s.length;o+=2){const a=i[s[o]],c=s[o+1];br(4,a,c);try{c.call(a)}finally{br(5,a,c)}}else{br(4,i,s);try{s.call(i)}finally{br(5,i,s)}}}}}(e,n),function WO(e,n){const t=e.cleanup,r=n[Ns];if(null!==t)for(let s=0;s<t.length-1;s+=2)if("string"==typeof t[s]){const o=t[s+3];o>=0?r[o]():r[-o].unsubscribe(),s+=2}else t[s].call(r[t[s+1]]);null!==r&&(n[Ns]=null);const i=n[ci];if(null!==i){n[ci]=null;for(let s=0;s<i.length;s++)(0,i[s])()}}(e,n),1===n[I].type&&n[Y].destroy();const r=n[Oi];if(null!==r&&Ht(n[pt])){r!==n[pt]&&_p(r,n);const i=n[Br];null!==i&&i.detachView(e)}Wh(n)}finally{q(t)}}function Cp(e,n,t){return function Lb(e,n,t){let r=n;for(;null!==r&&168&r.type;)r=(n=r).parent;if(null===r)return t[qe];{const{componentOffset:i}=r;if(i>-1){const{encapsulation:s}=e.data[r.directiveStart+i];if(s===Qn.None||s===Qn.Emulated)return null}return qt(r,t)}}(e,n.parent,t)}function Gi(e,n,t,r,i){e.insertBefore(n,t,r,i)}function Vb(e,n,t){e.appendChild(n,t)}function Bb(e,n,t,r,i){null!==r?Gi(e,n,t,r,i):Vb(e,n,t)}function bp(e,n){return e.parentNode(n)}function jb(e,n,t){return Ub(e,n,t)}let Ep,Ub=function Hb(e,n,t){return 40&e.type?qt(e,t):null};function zl(e,n,t,r){const i=Cp(e,r,n),s=n[Y],a=jb(r.parent||n[Rt],r,n);if(null!=i)if(Array.isArray(t))for(let c=0;c<t.length;c++)Bb(s,i,t[c],a,!1);else Bb(s,i,t,a,!1);void 0!==Ep&&Ep(s,r,n,t,i)}function zi(e,n){if(null!==n){const t=n.type;if(3&t)return qt(n,e);if(4&t)return wp(-1,e[n.index]);if(8&t){const r=n.child;if(null!==r)return zi(e,r);{const i=e[n.index];return Ht(i)?wp(-1,i):he(i)}}if(128&t)return zi(e,n.next);if(32&t)return mp(n,e)()||he(e[n.index]);{const r=Gb(e,n);return null!==r?Array.isArray(r)?r[0]:zi(jr(e[We]),r):zi(e,n.next)}}return null}function Gb(e,n){return null!==n?e[We][Rt].projection[n.projection]:null}function wp(e,n){const t=rt+e+1;if(t<n.length){const r=n[t],i=r[I].firstChild;if(null!==i)return zi(r,i)}return n[Cr]}function Dp(e,n,t,r,i,s,o){for(;null!=t;){if(128===t.type){t=t.next;continue}const a=r[t.index],c=t.type;if(o&&0===n&&(a&&Ut(he(a),r),t.flags|=2),32&~t.flags)if(8&c)Dp(e,n,t.child,r,i,s,!1),qs(n,e,i,a,s);else if(32&c){const l=mp(t,r);let u;for(;u=l();)qs(n,e,i,u,s);qs(n,e,i,a,s)}else 16&c?qb(e,n,r,t,i,s):qs(n,e,i,a,s);t=o?t.projectionNext:t.next}}function ql(e,n,t,r,i,s){Dp(t,r,e.firstChild,n,i,s,!1)}function qb(e,n,t,r,i,s){const o=t[We],c=o[Rt].projection[r.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++)qs(n,e,i,c[l],s);else{let l=c;const u=o[pt];ca(r)&&(l.flags|=128),Dp(e,n,l,u,i,s,!0)}}function Wb(e,n,t){""===t?e.removeAttribute(n,"class"):e.setAttribute(n,"class",t)}function Zb(e,n,t){const{mergedAttrs:r,classes:i,styles:s}=t;null!==r&&nh(e,n,r),null!==i&&Wb(e,n,i),null!==s&&function JO(e,n,t){e.setAttribute(n,"style",t)}(e,n,s)}const J={};function C(e=1){Yb(oe(),b(),Ft()+e,!1)}function Yb(e,n,t,r){if(!r)if(3&~n[H]){const s=e.preOrderHooks;null!==s&&vl(n,s,0,t)}else{const s=e.preOrderCheckHooks;null!==s&&_l(n,s,t)}Vi(t)}function v(e,n=ue.Default){const t=b();return null===t?k(e,n):fC(Ie(),t,W(e),n)}function Kb(e,n,t,r,i,s){const o=q(null);try{let a=null;i&ai.SignalBased&&(a=n[r][Qe]),null!==a&&void 0!==a.transformFn&&(s=a.transformFn(s)),i&ai.HasDecoratorInputTransform&&(s=e.inputTransforms[r].call(n,s)),null!==e.setInput?e.setInput(n,a,s,t,r):Pv(n,a,r,s)}finally{q(o)}}function Wl(e,n,t,r,i,s,o,a,c,l,u){const d=n.blueprint.slice();return d[qe]=i,d[H]=204|r,(null!==l||e&&2048&e[H])&&(d[H]|=2048),Bv(d),d[pt]=d[ks]=e,d[Ve]=t,d[vr]=o||e&&e[vr],d[Y]=a||e&&e[Y],d[mt]=c||e&&e[mt]||null,d[Rt]=s,d[Os]=function wP(){return EP++}(),d[zt]=u,d[Mv]=l,d[We]=2==n.type?e[We]:d,d}function qi(e,n,t,r,i){let s=e.data[n];if(null===s)s=function Sp(e,n,t,r,i){const s=Gv(),o=wh(),c=e.data[n]=function cR(e,n,t,r,i,s){let o=n?n.injectorIndex:-1,a=0;return Li()&&(a|=128),{type:t,index:r,insertBeforeIndex:null,injectorIndex:o,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?s:s&&s.parent,t,n,r,i);return null===e.firstChild&&(e.firstChild=c),null!==s&&(o?null==s.child&&null!==c.parent&&(s.child=c):null===s.next&&(s.next=c,c.prev=s)),c}(e,n,t,r,i),function Ik(){return K.lFrame.inI18n}()&&(s.flags|=32);else if(64&s.type){s.type=t,s.value=r,s.attrs=i;const o=function ta(){const e=K.lFrame,n=e.currentTNode;return e.isParent?n:n.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return nr(s,!0),s}function Ca(e,n,t,r){if(0===t)return-1;const i=n.length;for(let s=0;s<t;s++)n.push(r),e.blueprint.push(r),e.data.push(null);return i}function Qb(e,n,t,r,i){const s=Ft(),o=2&r;try{Vi(-1),o&&n.length>V&&Yb(e,n,V,!1),br(o?2:0,i),t(r,i)}finally{Vi(s),br(o?3:1,i)}}function Tp(e,n,t){if(ph(n)){const r=q(null);try{const s=n.directiveEnd;for(let o=n.directiveStart;o<s;o++){const a=e.data[o];a.contentQueries&&a.contentQueries(1,t[o],o)}}finally{q(r)}}}function Mp(e,n,t){$v()&&(function mR(e,n,t,r){const i=t.directiveStart,s=t.directiveEnd;Ri(t)&&function ER(e,n,t){const r=qt(n,e),i=Xb(t);let o=16;t.signals?o=4096:t.onPush&&(o=64);const a=Zl(e,Wl(e,i,null,o,r,n,null,e[vr].rendererFactory.createRenderer(r,t),null,null,null));e[n.index]=a}(n,t,e.data[i+t.componentOffset]),e.firstCreatePass||bl(t,n),Ut(r,n);const o=t.initialInputs;for(let a=i;a<s;a++){const c=e.data[a],l=ji(n,e,a,t);Ut(l,n),null!==o&&wR(0,a-i,l,c,0,o),er(c)&&(Cn(t.index,n)[Ve]=ji(n,e,a,t))}}(e,n,t,qt(t,n)),!(64&~t.flags)&&rE(e,n,t))}function Ip(e,n,t=qt){const r=n.localNames;if(null!==r){let i=n.index+1;for(let s=0;s<r.length;s+=2){const o=r[s+1],a=-1===o?t(n,e):e[o];e[i++]=a}}}function Xb(e){const n=e.tView;return null===n||n.incompleteFirstPass?e.tView=Ap(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):n}function Ap(e,n,t,r,i,s,o,a,c,l,u){const d=V+r,f=d+i,h=function nR(e,n){const t=[];for(let r=0;r<n;r++)t.push(r<e?null:J);return t}(d,f),p="function"==typeof l?l():l;return h[I]={type:e,blueprint:h,template:t,queries:null,viewQuery:a,declTNode:n,data:h.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:f,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:"function"==typeof s?s():s,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:c,consts:p,incompleteFirstPass:!1,ssrId:u}}let Jb=()=>null;function eE(e,n,t,r,i){for(let s in n){if(!n.hasOwnProperty(s))continue;const o=n[s];if(void 0===o)continue;r??={};let a,c=ai.None;Array.isArray(o)?(a=o[0],c=o[1]):a=o;let l=s;if(null!==i){if(!i.hasOwnProperty(s))continue;l=i[s]}0===e?tE(r,t,l,a,c):tE(r,t,l,a)}return r}function tE(e,n,t,r,i){let s;e.hasOwnProperty(t)?(s=e[t]).push(n,r):s=e[t]=[n,r],void 0!==i&&s.push(i)}function un(e,n,t,r,i,s,o,a){const c=qt(n,t);let u,l=n.inputs;!a&&null!=l&&(u=l[r])?(Op(e,t,u,r,i),Ri(n)&&function dR(e,n){const t=Cn(n,e);16&t[H]||(t[H]|=64)}(t,n.index)):3&n.type&&(r=function uR(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),i=null!=o?o(i,n.value||"",r):i,s.setProperty(c,r,i))}function xp(e,n,t,r){if($v()){const i=null===r?null:{"":-1},s=function yR(e,n){const t=e.directiveRegistry;let r=null,i=null;if(t)for(let s=0;s<t.length;s++){const o=t[s];if(mv(n,o.selectors,!1))if(r||(r=[]),er(o))if(null!==o.findHostDirectiveDefs){const a=[];i=i||new Map,o.findHostDirectiveDefs(o,a,i),r.unshift(...a,o),Np(e,n,a.length)}else r.unshift(o),Np(e,n,0);else i=i||new Map,o.findHostDirectiveDefs?.(o,r,i),r.push(o)}return null===r?null:[r,i]}(e,t);let o,a;null===s?o=a=null:[o,a]=s,null!==o&&nE(e,n,t,o,i,a),i&&function _R(e,n,t){if(n){const r=e.localNames=[];for(let i=0;i<n.length;i+=2){const s=t[n[i+1]];if(null==s)throw new E(-301,!1);r.push(n[i],s)}}}(t,r,i)}t.mergedAttrs=Zo(t.mergedAttrs,t.attrs)}function nE(e,n,t,r,i,s){for(let l=0;l<r.length;l++)Fh(bl(t,n),e,r[l].type);!function CR(e,n,t){e.flags|=1,e.directiveStart=n,e.directiveEnd=n+t,e.providerIndexes=n}(t,e.data.length,r.length);for(let l=0;l<r.length;l++){const u=r[l];u.providersResolver&&u.providersResolver(u)}let o=!1,a=!1,c=Ca(e,n,r.length,null);for(let l=0;l<r.length;l++){const u=r[l];t.mergedAttrs=Zo(t.mergedAttrs,u.hostAttrs),bR(e,t,n,c,u),vR(c,u,i),null!==u.contentQueries&&(t.flags|=4),(null!==u.hostBindings||null!==u.hostAttrs||0!==u.hostVars)&&(t.flags|=64);const d=u.type.prototype;!o&&(d.ngOnChanges||d.ngOnInit||d.ngDoCheck)&&((e.preOrderHooks??=[]).push(t.index),o=!0),!a&&(d.ngOnChanges||d.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(t.index),a=!0),c++}!function lR(e,n,t){const i=n.directiveEnd,s=e.data,o=n.attrs,a=[];let c=null,l=null;for(let u=n.directiveStart;u<i;u++){const d=s[u],f=t?t.get(d):null,p=f?f.outputs:null;c=eE(0,d.inputs,u,c,f?f.inputs:null),l=eE(1,d.outputs,u,l,p);const m=null===c||null===o||rh(n)?null:DR(c,u,o);a.push(m)}null!==c&&(c.hasOwnProperty("class")&&(n.flags|=8),c.hasOwnProperty("style")&&(n.flags|=16)),n.initialInputs=a,n.inputs=c,n.outputs=l}(e,t,s)}function rE(e,n,t){const r=t.directiveStart,i=t.directiveEnd,s=t.index,o=function xk(){return K.lFrame.currentDirectiveIndex}();try{Vi(s);for(let a=r;a<i;a++){const c=e.data[a],l=n[a];Sh(a),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&gR(c,l)}}finally{Vi(-1),Sh(o)}}function gR(e,n){null!==e.hostBindings&&e.hostBindings(1,n)}function Np(e,n,t){n.componentOffset=t,(e.components??=[]).push(n.index)}function vR(e,n,t){if(t){if(n.exportAs)for(let r=0;r<n.exportAs.length;r++)t[n.exportAs[r]]=e;er(n)&&(t[""]=e)}}function bR(e,n,t,r,i){e.data[r]=i;const s=i.factory||(i.factory=Ni(i.type)),o=new ra(s,er(i),v);e.blueprint[r]=o,t[r]=o,function hR(e,n,t,r,i){const s=i.hostBindings;if(s){let o=e.hostBindingOpCodes;null===o&&(o=e.hostBindingOpCodes=[]);const a=~n.index;(function pR(e){let n=e.length;for(;n>0;){const t=e[--n];if("number"==typeof t&&t<0)return t}return 0})(o)!=a&&o.push(a),o.push(t,r,s)}}(e,n,r,Ca(e,t,i.hostVars,J),i)}function Mr(e,n,t,r,i,s){const o=qt(e,n);!function kp(e,n,t,r,i,s,o){if(null==s)e.removeAttribute(n,i,t);else{const a=null==o?X(s):o(s,r||"",i);e.setAttribute(n,i,a,t)}}(n[Y],o,s,e.value,t,r,i)}function wR(e,n,t,r,i,s){const o=s[n];if(null!==o)for(let a=0;a<o.length;)Kb(r,t,o[a++],o[a++],o[a++],o[a++])}function DR(e,n,t){let r=null,i=0;for(;i<t.length;){const s=t[i];if(0!==s)if(5!==s){if("number"==typeof s)break;if(e.hasOwnProperty(s)){null===r&&(r=[]);const o=e[s];for(let a=0;a<o.length;a+=3)if(o[a]===n){r.push(s,o[a+1],o[a+2],t[i+1]);break}}i+=2}else i+=2;else i+=4}return r}function iE(e,n,t,r){return[e,!0,0,n,null,r,null,t,null,null]}function sE(e,n){const t=e.contentQueries;if(null!==t){const r=q(null);try{for(let i=0;i<t.length;i+=2){const o=t[i+1];if(-1!==o){const a=e.data[o];gl(t[i]),a.contentQueries(2,n[o],o)}}}finally{q(r)}}}function Zl(e,n){return e[Ko]?e[Tv][Jn]=n:e[Ko]=n,e[Tv]=n,n}function Pp(e,n,t){gl(0);const r=q(null);try{n(e,t)}finally{q(r)}}function cE(e,n,t){return(null===e||er(e))&&(t=function _h(e){for(;Array.isArray(e);){if("object"==typeof e[hh])return e;e=e[qe]}return null}(t[n.index])),t[Y]}function Yl(e,n){const t=e[mt],r=t?t.get(Dr,null):null;r&&r.handleError(n)}function Op(e,n,t,r,i){for(let s=0;s<t.length;){const o=t[s++],a=t[s++],c=t[s++];Kb(e.data[o],n[o],r,a,c,i)}}function SR(e,n){const t=Cn(n,e),r=t[I];!function TR(e,n){for(let t=n.length;t<e.blueprint.length;t++)n.push(e.blueprint[t])}(r,t);const i=t[qe];null!==i&&null===t[zt]&&(t[zt]=np(i,t[mt])),Rp(r,t,t[Ve])}function Rp(e,n,t){Ih(n);try{const r=e.viewQuery;null!==r&&Pp(1,r,t);const i=e.template;null!==i&&Qb(e,n,i,1,t),e.firstCreatePass&&(e.firstCreatePass=!1),n[Br]?.finishViewCreation(e),e.staticContentQueries&&sE(e,n),e.staticViewQueries&&Pp(2,e.viewQuery,t);const s=e.components;null!==s&&function MR(e,n){for(let t=0;t<n.length;t++)SR(e,n[t])}(n,s)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{n[H]&=-5,Ah()}}function Ws(e,n,t,r){const i=q(null);try{const s=n.tView,c=Wl(e,s,t,4096&e[H]?4096:16,null,n,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null);c[Oi]=e[n.index];const u=e[Br];return null!==u&&(c[Br]=u.createEmbeddedView(s)),Rp(s,c,t),c}finally{q(i)}}function lE(e,n){const t=rt+n;if(t<e.length)return e[t]}function Wi(e,n){return!n||null===n.firstChild||ca(e)}function Zs(e,n,t,r=!0){const i=n[I];if(function qO(e,n,t,r){const i=rt+r,s=t.length;r>0&&(t[i-1][Jn]=n),r<s-rt?(n[Jn]=t[i],av(t,rt+r,n)):(t.push(n),n[Jn]=null),n[pt]=t;const o=n[Oi];null!==o&&t!==o&&Fb(o,n);const a=n[Br];null!==a&&a.insertView(e),Ch(n),n[H]|=128}(i,n,e,t),r){const o=wp(t,e),a=n[Y],c=bp(a,e[Cr]);null!==c&&function GO(e,n,t,r,i,s){r[qe]=i,r[Rt]=n,ql(e,r,t,1,i,s)}(i,e[Rt],a,n,c,o)}const s=n[zt];null!==s&&null!==s.firstChild&&(s.firstChild=null)}function Fp(e,n){const t=_a(e,n);return void 0!==t&&Gl(t[I],t),t}function ba(e,n,t,r,i=!1){for(;null!==t;){if(128===t.type){t=i?t.projectionNext:t.next;continue}const s=n[t.index];null!==s&&r.push(he(s)),Ht(s)&&uE(s,r);const o=t.type;if(8&o)ba(e,n,t.child,r);else if(32&o){const a=mp(t,n);let c;for(;c=a();)r.push(c)}else if(16&o){const a=Gb(n,t);if(Array.isArray(a))r.push(...a);else{const c=jr(n[We]);ba(c[I],c,a,r,!0)}}t=i?t.projectionNext:t.next}return r}function uE(e,n){for(let t=rt;t<e.length;t++){const r=e[t],i=r[I].firstChild;null!==i&&ba(r[I],r,i,n)}e[Cr]!==e[qe]&&n.push(e[Cr])}let dE=[];const NR={...Nt,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{hl(e.lView)},consumerOnSignalRead(){this.lView[Ln]=this}},PR={...Nt,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let n=jr(e.lView);for(;n&&!fE(n[I]);)n=jr(n);n&&jv(n)},consumerOnSignalRead(){this.lView[Ln]=this}};function fE(e){return 2!==e.type}const OR=100;function Kl(e,n=!0,t=0){const r=e[vr],i=r.rendererFactory;i.begin?.();try{!function RR(e,n){const t=Wv();try{Zv(!0),Lp(e,n);let r=0;for(;fl(e);){if(r===OR)throw new E(103,!1);r++,Lp(e,1)}}finally{Zv(t)}}(e,t)}catch(o){throw n&&Yl(e,o),o}finally{i.end?.(),r.inlineEffectRunner?.flush()}}function FR(e,n,t,r){const i=n[H];if(!(256&~i))return;n[vr].inlineEffectRunner?.flush(),Ih(n);let a=!0,c=null,l=null;fE(e)?(l=function IR(e){return e[Ln]??function AR(e){const n=dE.pop()??Object.create(NR);return n.lView=e,n}(e)}(n),c=ut(l)):null===function It(){return ye}()?(a=!1,l=function kR(e){const n=e[Ln]??Object.create(PR);return n.lView=e,n}(n),c=ut(l)):n[Ln]&&(mf(n[Ln]),n[Ln]=null);try{Bv(n),function Yv(e){return K.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==t&&Qb(e,n,t,2,r);const u=!(3&~i);if(u){const h=e.preOrderCheckHooks;null!==h&&_l(n,h,null)}else{const h=e.preOrderHooks;null!==h&&vl(n,h,0,null),xh(n,0)}if(function LR(e){for(let n=UC(e);null!==n;n=$C(n)){if(!(n[H]&ul.HasTransplantedViews))continue;const t=n[Rs];for(let r=0;r<t.length;r++)jv(t[r])}}(n),pE(n,0),null!==e.contentQueries&&sE(e,n),u){const h=e.contentCheckHooks;null!==h&&_l(n,h)}else{const h=e.contentHooks;null!==h&&vl(n,h,1),xh(n,1)}!function tR(e,n){const t=e.hostBindingOpCodes;if(null!==t)try{for(let r=0;r<t.length;r++){const i=t[r];if(i<0)Vi(~i);else{const s=i,o=t[++r],a=t[++r];Ak(o,s),a(2,n[s])}}}finally{Vi(-1)}}(e,n);const d=e.components;null!==d&&gE(n,d,0);const f=e.viewQuery;if(null!==f&&Pp(2,f,r),u){const h=e.viewCheckHooks;null!==h&&_l(n,h)}else{const h=e.viewHooks;null!==h&&vl(n,h,2),xh(n,2)}if(!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),n[cl]){for(const h of n[cl])h();n[cl]=null}n[H]&=-73}catch(u){throw hl(n),u}finally{null!==l&&(Rn(l,c),a&&function xR(e){e.lView[Ln]!==e&&(e.lView=null,dE.push(e))}(l)),Ah()}}function pE(e,n){for(let t=UC(e);null!==t;t=$C(t))for(let r=rt;r<t.length;r++)mE(t[r],n)}function VR(e,n,t){mE(Cn(n,e),t)}function mE(e,n){vh(e)&&Lp(e,n)}function Lp(e,n){const r=e[I],i=e[H],s=e[Ln];let o=!!(0===n&&16&i);if(o||=!!(64&i&&0===n),o||=!!(1024&i),o||=!(!s?.dirty||!Fr(s)),o||=!1,s&&(s.dirty=!1),e[H]&=-9217,o)FR(r,e,r.template,e[Ve]);else if(8192&i){pE(e,1);const a=r.components;null!==a&&gE(e,a,1)}}function gE(e,n,t){for(let r=0;r<n.length;r++)VR(e,n[r],t)}function Ea(e,n){const t=Wv()?64:1088;for(e[vr].changeDetectionScheduler?.notify(n);e;){e[H]|=t;const r=jr(e);if(Xo(e)&&!r)return e;e=r}return null}class wa{get rootNodes(){const n=this._lView,t=n[I];return ba(t,n,t.firstChild,[])}constructor(n,t,r=!0){this._lView=n,this._cdRefInjectingView=t,this.notifyErrorHandler=r,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[Ve]}set context(n){this._lView[Ve]=n}get destroyed(){return!(256&~this._lView[H])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[pt];if(Ht(n)){const t=n[8],r=t?t.indexOf(this):-1;r>-1&&(_a(n,r),Jc(t,r))}this._attachedToViewContainer=!1}Gl(this._lView[I],this._lView)}onDestroy(n){pl(this._lView,n)}markForCheck(){Ea(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[H]&=-129}reattach(){Ch(this._lView),this._lView[H]|=128}detectChanges(){this._lView[H]|=1024,Kl(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new E(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;const n=Xo(this._lView),t=this._lView[Oi];null!==t&&!n&&_p(t,this._lView),Rb(this._lView[I],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new E(902,!1);this._appRef=n;const t=Xo(this._lView),r=this._lView[Oi];null!==r&&!t&&Fb(r,this._lView),Ch(this._lView)}}let Ir=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=HR}return e})();const BR=Ir,jR=class extends BR{constructor(n,t,r){super(),this._declarationLView=n,this._declarationTContainer=t,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,t){return this.createEmbeddedViewImpl(n,t)}createEmbeddedViewImpl(n,t,r){const i=Ws(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:t,dehydratedView:r});return new wa(i)}};function HR(){return Ql(Ie(),b())}function Ql(e,n){return 4&e.type?new jR(n,e,Bs(e,n)):null}let LE=()=>null;function Yi(e,n){return LE(e,n)}class Ks{}const Na=new N("",{providedIn:"root",factory:()=>!1}),VE=new N(""),Zp=new N("");class PF{}class BE{}class RF{resolveComponentFactory(n){throw function OF(e){const n=Error(`No component factory found for ${Ct(e)}.`);return n.ngComponent=e,n}(n)}}class Ki{static#e=this.NULL=new RF}class ru{}let Ar=(()=>{class e{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function FF(){const e=b(),t=Cn(Ie().index,e);return(Dt(t)?t:e)[Y]}()}return e})(),LF=(()=>{class e{static#e=this.\u0275prov=R({token:e,providedIn:"root",factory:()=>null})}return e})();function su(e,n,t){let r=t?e.styles:null,i=t?e.classes:null,s=0;if(null!==n)for(let o=0;o<n.length;o++){const a=n[o];"number"==typeof a?s=a:1==s?i=Vf(i,a):2==s&&(r=Vf(r,a+": "+n[++o]+";"))}t?e.styles=r:e.stylesWithoutHost=r,t?e.classes=i:e.classesWithoutHost=i}class $E extends Ki{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const t=ae(n);return new Oa(t,this.ngModule)}}function GE(e,n){const t=[];for(const r in e){if(!e.hasOwnProperty(r))continue;const i=e[r];if(void 0===i)continue;const s=Array.isArray(i),o=s?i[0]:i;t.push(n?{propName:o,templateName:r,isSignal:!!((s?i[1]:ai.None)&ai.SignalBased)}:{propName:o,templateName:r})}return t}class Oa extends BE{get inputs(){const n=this.componentDef,t=n.inputTransforms,r=GE(n.inputs,!0);if(null!==t)for(const i of r)t.hasOwnProperty(i.propName)&&(i.transform=t[i.propName]);return r}get outputs(){return GE(this.componentDef.outputs,!1)}constructor(n,t){super(),this.componentDef=n,this.ngModule=t,this.componentType=n.type,this.selector=function jN(e){return e.map(BN).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!t}create(n,t,r,i){const s=q(null);try{let o=(i=i||this.ngModule)instanceof Fn?i:i?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const a=o?new Bi(n,o):n,c=a.get(ru,null);if(null===c)throw new E(407,!1);const d={rendererFactory:c,sanitizer:a.get(LF,null),inlineEffectRunner:null,changeDetectionScheduler:a.get(Ks,null)},f=c.createRenderer(null,this.componentDef),h=this.componentDef.selectors[0][0]||"div",p=r?function rR(e,n,t,r){const s=r.get(lb,!1)||t===Qn.ShadowDom,o=e.selectRootElement(n,s);return function iR(e){Jb(e)}(o),o}(f,r,this.componentDef.encapsulation,a):$l(f,h,function jF(e){const n=e.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(h));let m=512;this.componentDef.signals?m|=4096:this.componentDef.onPush||(m|=16);let g=null;null!==p&&(g=np(p,a,!0));const _=Ap(0,null,null,1,0,null,null,null,null,null,null),y=Wl(null,_,null,m,null,null,d,f,a,null,g);Ih(y);let w,D,M=null;try{const F=this.componentDef;let j,L=null;F.findHostDirectiveDefs?(j=[],L=new Map,F.findHostDirectiveDefs(F,j,L),j.push(F)):j=[F];const Ye=function UF(e,n){const t=e[I],r=V;return e[r]=n,qi(t,r,2,"#host",null)}(y,p);M=function $F(e,n,t,r,i,s,o){const a=i[I];!function GF(e,n,t,r){for(const i of e)n.mergedAttrs=Zo(n.mergedAttrs,i.hostAttrs);null!==n.mergedAttrs&&(su(n,n.mergedAttrs,!0),null!==t&&Zb(r,t,n))}(r,e,n,o);let c=null;null!==n&&(c=np(n,i[mt]));const l=s.rendererFactory.createRenderer(n,t);let u=16;t.signals?u=4096:t.onPush&&(u=64);const d=Wl(i,Xb(t),null,u,i[e.index],e,s,l,null,null,c);return a.firstCreatePass&&Np(a,e,r.length-1),Zl(i,d),i[e.index]=d}(Ye,p,F,j,y,d,f),D=ea(_,V),p&&function qF(e,n,t,r){if(r)nh(e,t,["ng-version","18.2.3"]);else{const{attrs:i,classes:s}=function HN(e){const n=[],t=[];let r=1,i=2;for(;r<e.length;){let s=e[r];if("string"==typeof s)2===i?""!==s&&n.push(s,e[++r]):8===i&&t.push(s);else{if(!Xn(i))break;i=s}r++}return{attrs:n,classes:t}}(n.selectors[0]);i&&nh(e,t,i),s&&s.length>0&&Wb(e,t,s.join(" "))}}(f,F,p,r),void 0!==t&&function WF(e,n,t){const r=e.projection=[];for(let i=0;i<n.length;i++){const s=t[i];r.push(null!=s?Array.from(s):null)}}(D,this.ngContentSelectors,t),w=function zF(e,n,t,r,i,s){const o=Ie(),a=i[I],c=qt(o,i);nE(a,i,o,t,null,r);for(let u=0;u<t.length;u++)Ut(ji(i,a,o.directiveStart+u,o),i);rE(a,i,o),c&&Ut(c,i);const l=ji(i,a,o.directiveStart+o.componentOffset,o);if(e[Ve]=i[Ve]=l,null!==s)for(const u of s)u(l,n);return Tp(a,o,i),l}(M,F,j,L,y,[ZF]),Rp(_,y,null)}catch(F){throw null!==M&&Wh(M),Wh(y),F}finally{Ah()}return new HF(this.componentType,w,Bs(D,y),y,D)}finally{q(s)}}}class HF extends PF{constructor(n,t,r,i,s){super(),this.location=r,this._rootLView=i,this._tNode=s,this.previousInputValues=null,this.instance=t,this.hostView=this.changeDetectorRef=new wa(i,void 0,!1),this.componentType=n}setInput(n,t){const r=this._tNode.inputs;let i;if(null!==r&&(i=r[n])){if(this.previousInputValues??=new Map,this.previousInputValues.has(n)&&Object.is(this.previousInputValues.get(n),t))return;const s=this._rootLView;Op(s[I],s,i,n,t),this.previousInputValues.set(n,t),Ea(Cn(this._tNode.index,s),1)}}get injector(){return new St(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}function ZF(){const e=Ie();yl(b()[I],e)}let ir=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=YF}return e})();function YF(){return function WE(e,n){let t;const r=n[e.index];return Ht(r)?t=r:(t=iE(r,n,null,e),n[e.index]=t,Zl(n,t)),ZE(t,n,e,r),new zE(t,e,n)}(Ie(),b())}const KF=ir,zE=class extends KF{constructor(n,t,r){super(),this._lContainer=n,this._hostTNode=t,this._hostLView=r}get element(){return Bs(this._hostTNode,this._hostLView)}get injector(){return new St(this._hostTNode,this._hostLView)}get parentInjector(){const n=El(this._hostTNode,this._hostLView);if(Ph(n)){const t=sa(n,this._hostLView),r=ia(n);return new St(t[I].data[r+8],t)}return new St(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const t=qE(this._lContainer);return null!==t&&t[n]||null}get length(){return this._lContainer.length-rt}createEmbeddedView(n,t,r){let i,s;"number"==typeof r?i=r:null!=r&&(i=r.index,s=r.injector);const o=Yi(this._lContainer,n.ssrId),a=n.createEmbeddedViewImpl(t||{},s,o);return this.insertImpl(a,i,Wi(this._hostTNode,o)),a}createComponent(n,t,r,i,s){const o=n&&!Yo(n);let a;if(o)a=t;else{const p=t||{};a=p.index,r=p.injector,i=p.projectableNodes,s=p.environmentInjector||p.ngModuleRef}const c=o?n:new Oa(ae(n)),l=r||this.parentInjector;if(!s&&null==c.ngModule){const m=(o?l:this.parentInjector).get(Fn,null);m&&(s=m)}const u=ae(c.componentType??{}),d=Yi(this._lContainer,u?.id??null),h=c.create(l,i,d?.firstChild??null,s);return this.insertImpl(h.hostView,a,Wi(this._hostTNode,d)),h}insert(n,t){return this.insertImpl(n,t,!0)}insertImpl(n,t,r){const i=n._lView;if(function vk(e){return Ht(e[pt])}(i)){const a=this.indexOf(n);if(-1!==a)this.detach(a);else{const c=i[pt],l=new zE(c,c[Rt],c[pt]);l.detach(l.indexOf(n))}}const s=this._adjustIndex(t),o=this._lContainer;return Zs(o,i,s,r),n.attachToViewContainerRef(),av(Qp(o),s,n),n}move(n,t){return this.insert(n,t)}indexOf(n){const t=qE(this._lContainer);return null!==t?t.indexOf(n):-1}remove(n){const t=this._adjustIndex(n,-1),r=_a(this._lContainer,t);r&&(Jc(Qp(this._lContainer),t),Gl(r[I],r))}detach(n){const t=this._adjustIndex(n,-1),r=_a(this._lContainer,t);return r&&null!=Jc(Qp(this._lContainer),t)?new wa(r):null}_adjustIndex(n,t=0){return n??this.length+t}};function qE(e){return e[8]}function Qp(e){return e[8]||(e[8]=[])}let ZE=function KE(e,n,t,r){if(e[Cr])return;let i;i=8&t.type?he(r):function QF(e,n){const t=e[Y],r=t.createComment(""),i=qt(n,e);return Gi(t,bp(t,i),r,function YO(e,n){return e.nextSibling(n)}(t,i),!1),r}(n,t),e[Cr]=i},Xp=()=>!1;const iw=new Set;function Zt(e){iw.has(e)||(iw.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function se(e,n){Zt("NgSignals");const t=function $1(e){const n=Object.create(b_);n.value=e;const t=()=>(ri(n),n.value);return t[Qe]=n,t}(e),r=t[Qe];return n?.equal&&(r.equal=n.equal),t.set=i=>_f(r,i),t.update=i=>function G1(e,n){de()||C_(),_f(e,n(e.value))}(r,i),t.asReadonly=ow.bind(t),t}function ow(){const e=this[Qe];if(void 0===e.readonlyFn){const n=()=>this();n[Qe]=e,e.readonlyFn=n}return e.readonlyFn}function aw(e){return function sw(e){return"function"==typeof e&&void 0!==e[Qe]}(e)&&"function"==typeof e.set}function me(e){let n=function _w(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),t=!0;const r=[e];for(;n;){let i;if(er(e))i=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new E(903,!1);i=n.\u0275dir}if(i){if(t){r.push(i);const o=e;o.inputs=au(e.inputs),o.inputTransforms=au(e.inputTransforms),o.declaredInputs=au(e.declaredInputs),o.outputs=au(e.outputs);const a=i.hostBindings;a&&CL(e,a);const c=i.viewQuery,l=i.contentQueries;if(c&&_L(e,c),l&&vL(e,l),gL(e,i),aN(e.outputs,i.outputs),er(i)&&i.data.animation){const u=e.data;u.animation=(u.animation||[]).concat(i.data.animation)}}const s=i.features;if(s)for(let o=0;o<s.length;o++){const a=s[o];a&&a.ngInherit&&a(e),a===me&&(t=!1)}}n=Object.getPrototypeOf(n)}!function yL(e){let n=0,t=null;for(let r=e.length-1;r>=0;r--){const i=e[r];i.hostVars=n+=i.hostVars,i.hostAttrs=Zo(i.hostAttrs,t=Zo(t,i.hostAttrs))}}(r)}function gL(e,n){for(const t in n.inputs){if(!n.inputs.hasOwnProperty(t)||e.inputs.hasOwnProperty(t))continue;const r=n.inputs[t];if(void 0!==r&&(e.inputs[t]=r,e.declaredInputs[t]=n.declaredInputs[t],null!==n.inputTransforms)){const i=Array.isArray(r)?r[0]:r;if(!n.inputTransforms.hasOwnProperty(i))continue;e.inputTransforms??={},e.inputTransforms[i]=n.inputTransforms[i]}}}function au(e){return e===yr?{}:e===fe?[]:e}function _L(e,n){const t=e.viewQuery;e.viewQuery=t?(r,i)=>{n(r,i),t(r,i)}:n}function vL(e,n){const t=e.contentQueries;e.contentQueries=t?(r,i,s)=>{n(r,i,s),t(r,i,s)}:n}function CL(e,n){const t=e.hostBindings;e.hostBindings=t?(r,i)=>{n(r,i),t(r,i)}:n}class Xi{}class ML{}class am extends Xi{constructor(n,t,r,i=!0){super(),this.ngModuleType=n,this._parent=t,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new $E(this);const s=function jt(e,n){const t=e[tv]||null;if(!t&&!0===n)throw new Error(`Type ${Ct(e)} does not have '\u0275mod' property.`);return t}(n);this._bootstrapComponents=function wn(e){return e instanceof Function?e():e}(s.bootstrap),this._r3Injector=EC(n,t,[{provide:Xi,useValue:this},{provide:Ki,useValue:this.componentFactoryResolver},...r],Ct(n),new Set(["environment"])),i&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class cm extends ML{constructor(n){super(),this.moduleType=n}create(n){return new am(this.moduleType,n,[])}}class Ew extends Xi{constructor(n){super(),this.componentFactoryResolver=new $E(this),this.instance=null;const t=new Is([...n.providers,{provide:Xi,useValue:this},{provide:Ki,useValue:this.componentFactoryResolver}],n.parent||ol(),n.debugName,new Set(["environment"]));this.injector=t,n.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function xr(e,n,t){return e[n]=t}function it(e,n,t){return!Object.is(e[n],t)&&(e[n]=t,!0)}function Ji(e,n,t,r){const i=it(e,n,t);return it(e,n+1,r)||i}function La(e,n,t,r,i,s,o,a,c,l){const u=t+V,d=n.firstCreatePass?function OL(e,n,t,r,i,s,o,a,c){const l=n.consts,u=qi(n,e,4,o||null,a||null);xp(n,t,u,Vn(l,c)),yl(n,u);const d=u.tView=Ap(2,u,r,i,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,l,null);return null!==n.queries&&(n.queries.template(n,u),d.queries=n.queries.embeddedTView(u)),u}(u,n,e,r,i,s,o,a,c):n.data[u];nr(d,!1);const f=Dw(n,e,d,t);na()&&zl(n,e,f,d),Ut(f,e);const h=iE(f,e,f,d);return e[u]=h,Zl(e,h),function YE(e,n,t){return Xp(e,n,t)}(h,d,e),dl(d)&&Mp(n,e,d),null!=c&&Ip(e,d,l),d}function ee(e,n,t,r,i,s,o,a){const c=b(),l=oe();return La(c,l,e,n,t,r,i,Vn(l.consts,s),o,a),ee}let Dw=function Sw(e,n,t,r){return Er(!0),n[Y].createComment("")};var eo=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(eo||{});let Nw=(()=>{class e{constructor(){this.impl=null}execute(){this.impl?.execute()}static#e=this.\u0275prov=R({token:e,providedIn:"root",factory:()=>new e})}return e})();class ja{constructor(){this.ngZone=A(pe),this.scheduler=A(Ks),this.errorHandler=A(Dr,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static#e=this.PHASES=[eo.EarlyRead,eo.Write,eo.MixedReadWrite,eo.Read];execute(){this.executing=!0;for(const n of ja.PHASES)for(const t of this.sequences)if(!t.erroredOrDestroyed&&t.hooks[n])try{t.pipelinedValue=this.ngZone.runOutsideAngular(()=>t.hooks[n](t.pipelinedValue))}catch(r){t.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(const n of this.sequences)n.afterRun(),n.once&&this.sequences.delete(n);for(const n of this.deferredRegistrations)this.sequences.add(n);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(n){this.executing?this.deferredRegistrations.add(n):(this.sequences.add(n),this.scheduler.notify(6))}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=!0,n.pipelinedValue=void 0,n.once=!0):(this.sequences.delete(n),this.deferredRegistrations.delete(n))}static#t=this.\u0275prov=R({token:ja,providedIn:"root",factory:()=>new ja})}function At(e,n,t,r){const i=b();return it(i,rr(),n)&&(oe(),Mr(Be(),i,e,n,t,r)),At}function mu(e,n){return e<<17|n<<2}function hi(e){return e>>17&32767}function bm(e){return 2|e}function ts(e){return(131068&e)>>2}function Em(e,n){return-131069&e|n<<2}function wm(e){return 1|e}function sD(e,n,t,r){const i=e[t+1],s=null===n;let o=r?hi(i):ts(i),a=!1;for(;0!==o&&(!1===a||s);){const l=e[o+1];E2(e[o],n)&&(a=!0,e[o+1]=r?wm(l):bm(l)),o=r?hi(l):ts(l)}a&&(e[t+1]=r?bm(i):wm(i))}function E2(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&Ts(e,n)>=0}const Tt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function oD(e){return e.substring(Tt.key,Tt.keyEnd)}function aD(e,n){const t=Tt.textEnd;return t===n?-1:(n=Tt.keyEnd=function T2(e,n,t){for(;n<t&&e.charCodeAt(n)>32;)n++;return n}(e,Tt.key=n,t),go(e,n,t))}function go(e,n,t){for(;n<t&&e.charCodeAt(n)<=32;)n++;return n}function P(e,n,t){const r=b();return it(r,rr(),n)&&un(oe(),Be(),r,e,n,r[Y],t,!1),P}function Dm(e,n,t,r,i){const o=i?"class":"style";Op(e,t,n.inputs[o],o,r)}function yo(e,n,t){return sr(e,n,t,!1),yo}function Yt(e,n){return sr(e,n,null,!0),Yt}function qr(e){!function or(e,n,t,r){const i=oe(),s=Ur(2);i.firstUpdatePass&&hD(i,null,s,r);const o=b();if(t!==J&&it(o,s,t)){const a=i.data[Ft()];if(yD(a,r)&&!fD(i,s)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;null!==c&&(t=Vf(c,t||"")),Dm(i,a,o,t,r)}else!function F2(e,n,t,r,i,s,o,a){i===J&&(i=fe);let c=0,l=0,u=0<i.length?i[0]:null,d=0<s.length?s[0]:null;for(;null!==u||null!==d;){const f=c<i.length?i[c+1]:void 0,h=l<s.length?s[l+1]:void 0;let m,p=null;u===d?(c+=2,l+=2,f!==h&&(p=d,m=h)):null===d||null!==u&&u<d?(c+=2,p=u):(l+=2,p=d,m=h),null!==p&&mD(e,n,t,r,p,m,o,a),u=c<i.length?i[c]:null,d=l<s.length?s[l]:null}}(i,a,o,o[Y],o[s+1],o[s+1]=function O2(e,n,t){if(null==t||""===t)return fe;const r=[],i=bn(t);if(Array.isArray(i))for(let s=0;s<i.length;s++)e(r,i[s],!0);else if("object"==typeof i)for(const s in i)i.hasOwnProperty(s)&&e(r,s,i[s]);else"string"==typeof i&&n(r,i);return r}(e,n,t),r,s)}}(R2,kr,e,!0)}function kr(e,n){for(let t=function D2(e){return function lD(e){Tt.key=0,Tt.keyEnd=0,Tt.value=0,Tt.valueEnd=0,Tt.textEnd=e.length}(e),aD(e,go(e,0,Tt.textEnd))}(n);t>=0;t=aD(n,t))vn(e,oD(n),!0)}function sr(e,n,t,r){const i=b(),s=oe(),o=Ur(2);s.firstUpdatePass&&hD(s,e,o,r),n!==J&&it(i,o,n)&&mD(s,s.data[Ft()],i,i[Y],e,i[o+1]=function L2(e,n){return null==e||""===e||("string"==typeof n?e+=n:"object"==typeof e&&(e=Ct(bn(e)))),e}(n,t),r,o)}function fD(e,n){return n>=e.expandoStartIndex}function hD(e,n,t,r){const i=e.data;if(null===i[t+1]){const s=i[Ft()],o=fD(e,t);yD(s,r)&&null===n&&!o&&(n=!1),n=function x2(e,n,t,r){const i=Th(e);let s=r?n.residualClasses:n.residualStyles;if(null===i)0===(r?n.classBindings:n.styleBindings)&&(t=Ua(t=Sm(null,e,n,t,r),n.attrs,r),s=null);else{const o=n.directiveStylingLast;if(-1===o||e[o]!==i)if(t=Sm(i,e,n,t,r),null===s){let c=function N2(e,n,t){const r=t?n.classBindings:n.styleBindings;if(0!==ts(r))return e[hi(r)]}(e,n,r);void 0!==c&&Array.isArray(c)&&(c=Sm(null,e,n,c[1],r),c=Ua(c,n.attrs,r),function k2(e,n,t,r){e[hi(t?n.classBindings:n.styleBindings)]=r}(e,n,r,c))}else s=function P2(e,n,t){let r;const i=n.directiveEnd;for(let s=1+n.directiveStylingLast;s<i;s++)r=Ua(r,e[s].hostAttrs,t);return Ua(r,n.attrs,t)}(e,n,r)}return void 0!==s&&(r?n.residualClasses=s:n.residualStyles=s),t}(i,s,n,r),function C2(e,n,t,r,i,s){let o=s?n.classBindings:n.styleBindings,a=hi(o),c=ts(o);e[r]=t;let u,l=!1;if(Array.isArray(t)?(u=t[1],(null===u||Ts(t,u)>0)&&(l=!0)):u=t,i)if(0!==c){const f=hi(e[a+1]);e[r+1]=mu(f,a),0!==f&&(e[f+1]=Em(e[f+1],r)),e[a+1]=function _2(e,n){return 131071&e|n<<17}(e[a+1],r)}else e[r+1]=mu(a,0),0!==a&&(e[a+1]=Em(e[a+1],r)),a=r;else e[r+1]=mu(c,0),0===a?a=r:e[c+1]=Em(e[c+1],r),c=r;l&&(e[r+1]=bm(e[r+1])),sD(e,u,r,!0),sD(e,u,r,!1),function b2(e,n,t,r,i){const s=i?e.residualClasses:e.residualStyles;null!=s&&"string"==typeof n&&Ts(s,n)>=0&&(t[r+1]=wm(t[r+1]))}(n,u,e,r,s),o=mu(a,c),s?n.classBindings=o:n.styleBindings=o}(i,s,n,t,o,r)}}function Sm(e,n,t,r,i){let s=null;const o=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a<o&&(s=n[a],r=Ua(r,s.hostAttrs,i),s!==e);)a++;return null!==e&&(t.directiveStylingLast=a),r}function Ua(e,n,t){const r=t?1:2;let i=-1;if(null!==n)for(let s=0;s<n.length;s++){const o=n[s];"number"==typeof o?i=o:i===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),vn(e,o,!!t||n[++s]))}return void 0===e?null:e}function R2(e,n,t){const r=String(n);""!==r&&!r.includes(" ")&&vn(e,r,t)}function mD(e,n,t,r,i,s,o,a){if(!(3&n.type))return;const c=e.data,l=c[a+1],u=function v2(e){return!(1&~e)}(l)?gD(c,n,t,i,ts(l),o):void 0;gu(u)||(gu(s)||function y2(e){return!(2&~e)}(l)&&(s=gD(c,null,t,i,a,o)),function XO(e,n,t,r,i){if(n)i?e.addClass(t,r):e.removeClass(t,r);else{let s=-1===r.indexOf("-")?void 0:ui.DashCase;null==i?e.removeStyle(t,r,s):("string"==typeof i&&i.endsWith("!important")&&(i=i.slice(0,-10),s|=ui.Important),e.setStyle(t,r,i,s))}}(r,o,Jo(Ft(),t),i,s))}function gD(e,n,t,r,i,s){const o=null===n;let a;for(;i>0;){const c=e[i],l=Array.isArray(c),u=l?c[1]:c,d=null===u;let f=t[i+1];f===J&&(f=d?fe:void 0);let h=d?eh(f,r):u===r?f:void 0;if(l&&!gu(h)&&(h=eh(c,r)),gu(h)&&(a=h,o))return a;const p=e[i+1];i=o?hi(p):ts(p)}if(null!==n){let c=s?n.residualClasses:n.residualStyles;null!=c&&(a=eh(c,r))}return a}function gu(e){return void 0!==e}function yD(e,n){return!!(e.flags&(n?8:16))}class Z2{destroy(n){}updateValue(n,t){}swap(n,t){const r=Math.min(n,t),i=Math.max(n,t),s=this.detach(i);if(i-r>1){const o=this.detach(r);this.attach(r,s),this.attach(i,o)}else this.attach(r,s)}move(n,t){this.attach(t,this.detach(n))}}function Tm(e,n,t,r,i){return e===t&&Object.is(n,r)?1:Object.is(i(e,n),i(t,r))?-1:0}function Mm(e,n,t,r){return!(void 0===n||!n.has(r)||(e.attach(t,n.get(r)),n.delete(r),0))}function _D(e,n,t,r,i){if(Mm(e,n,r,t(r,i)))e.updateValue(r,i);else{const s=e.create(r,i);e.attach(r,s)}}function vD(e,n,t,r){const i=new Set;for(let s=n;s<=t;s++)i.add(r(s,e.at(s)));return i}class CD{constructor(){this.kvMap=new Map,this._vMap=void 0}has(n){return this.kvMap.has(n)}delete(n){if(!this.has(n))return!1;const t=this.kvMap.get(n);return void 0!==this._vMap&&this._vMap.has(t)?(this.kvMap.set(n,this._vMap.get(t)),this._vMap.delete(t)):this.kvMap.delete(n),!0}get(n){return this.kvMap.get(n)}set(n,t){if(this.kvMap.has(n)){let r=this.kvMap.get(n);void 0===this._vMap&&(this._vMap=new Map);const i=this._vMap;for(;i.has(r);)r=i.get(r);i.set(r,t)}else this.kvMap.set(n,t)}forEach(n){for(let[t,r]of this.kvMap)if(n(r,t),void 0!==this._vMap){const i=this._vMap;for(;i.has(r);)r=i.get(r),n(r,t)}}}function ie(e,n){Zt("NgControlFlow");const t=b(),r=rr(),i=t[r]!==J?t[r]:-1,s=-1!==i?yu(t,V+i):void 0;if(it(t,r,e)){const a=q(null);try{if(void 0!==s&&Fp(s,0),-1!==e){const c=V+e,l=yu(t,c),u=Im(t[I],c),d=Yi(l,u.tView.ssrId);Zs(l,Ws(t,u,n,{dehydratedView:d}),0,Wi(u,d))}}finally{q(a)}}else if(void 0!==s){const a=lE(s,0);void 0!==a&&(a[Ve]=n)}}class K2{constructor(n,t,r){this.lContainer=n,this.$implicit=t,this.$index=r}get $count(){return this.lContainer.length-rt}}function ar(e){return e}function bD(e,n){return n}class Q2{constructor(n,t,r){this.hasEmptyBlock=n,this.trackByFn=t,this.liveCollection=r}}function dn(e,n,t,r,i,s,o,a,c,l,u,d,f){Zt("NgControlFlow");const h=b(),p=oe(),m=void 0!==c,g=b(),_=a?o.bind(g[We][Ve]):o,y=new Q2(m,_);g[V+e]=y,La(h,p,e+1,n,t,r,i,Vn(p.consts,s)),m&&La(h,p,e+2,c,l,u,d,Vn(p.consts,f))}class X2 extends Z2{constructor(n,t,r){super(),this.lContainer=n,this.hostLView=t,this.templateTNode=r,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-rt}at(n){return this.getLView(n)[Ve].$implicit}attach(n,t){const r=t[zt];this.needsIndexUpdate||=n!==this.length,Zs(this.lContainer,t,n,Wi(this.templateTNode,r))}detach(n){return this.needsIndexUpdate||=n!==this.length-1,function J2(e,n){return _a(e,n)}(this.lContainer,n)}create(n,t){const r=Yi(this.lContainer,this.templateTNode.tView.ssrId),i=Ws(this.hostLView,this.templateTNode,new K2(this.lContainer,t,n),{dehydratedView:r});return this.operationsCounter?.recordCreate(),i}destroy(n){Gl(n[I],n),this.operationsCounter?.recordDestroy()}updateValue(n,t){this.getLView(n)[Ve].$implicit=t}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let n=0;n<this.length;n++)this.getLView(n)[Ve].$index=n}getLView(n){return function eV(e,n){return lE(e,n)}(this.lContainer,n)}}function fn(e){const n=q(null),t=Ft();try{const r=b(),i=r[I],s=r[t],o=t+1,a=yu(r,o);if(void 0===s.liveCollection){const l=Im(i,o);s.liveCollection=new X2(a,r,l)}else s.liveCollection.reset();const c=s.liveCollection;if(function Y2(e,n,t){let r,i,s=0,o=e.length-1;if(Array.isArray(n)){let c=n.length-1;for(;s<=o&&s<=c;){const l=e.at(s),u=n[s],d=Tm(s,l,s,u,t);if(0!==d){d<0&&e.updateValue(s,u),s++;continue}const f=e.at(o),h=n[c],p=Tm(o,f,c,h,t);if(0!==p){p<0&&e.updateValue(o,h),o--,c--;continue}const m=t(s,l),g=t(o,f),_=t(s,u);if(Object.is(_,g)){const y=t(c,h);Object.is(y,m)?(e.swap(s,o),e.updateValue(o,h),c--,o--):e.move(o,s),e.updateValue(s,u),s++}else if(r??=new CD,i??=vD(e,s,o,t),Mm(e,r,s,_))e.updateValue(s,u),s++,o++;else if(i.has(_))r.set(m,e.detach(s)),o--;else{const y=e.create(s,n[s]);e.attach(s,y),s++,o++}}for(;s<=c;)_D(e,r,t,s,n[s]),s++}else if(null!=n){const c=n[Symbol.iterator]();let l=c.next();for(;!l.done&&s<=o;){const u=e.at(s),d=l.value,f=Tm(s,u,s,d,t);if(0!==f)f<0&&e.updateValue(s,d),s++,l=c.next();else{r??=new CD,i??=vD(e,s,o,t);const h=t(s,d);if(Mm(e,r,s,h))e.updateValue(s,d),s++,o++,l=c.next();else if(i.has(h)){const p=t(s,u);r.set(p,e.detach(s)),o--}else e.attach(s,e.create(s,d)),s++,o++,l=c.next()}}for(;!l.done;)_D(e,r,t,e.length,l.value),l=c.next()}for(;s<=o;)e.destroy(e.detach(o--));r?.forEach(c=>{e.destroy(c)})}(c,e,s.trackByFn),c.updateIndexes(),s.hasEmptyBlock){const l=rr(),u=0===c.length;if(it(r,l,u)){const d=t+2,f=yu(r,d);if(u){const h=Im(i,d),p=Yi(f,h.tView.ssrId);Zs(f,Ws(r,h,void 0,{dehydratedView:p}),0,Wi(h,p))}else Fp(f,0)}}}finally{q(n)}}function yu(e,n){return e[n]}function Im(e,n){return ea(e,n)}function S(e,n,t,r){const i=b(),s=oe(),o=V+e,a=i[Y],c=s.firstCreatePass?function tV(e,n,t,r,i,s){const o=n.consts,c=qi(n,e,2,r,Vn(o,i));return xp(n,t,c,Vn(o,s)),null!==c.attrs&&su(c,c.attrs,!1),null!==c.mergedAttrs&&su(c,c.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,c),c}(o,s,i,n,t,r):s.data[o],l=ED(s,i,c,a,n,e);i[o]=l;const u=dl(c);return nr(c,!0),Zb(a,l,c),!function Xs(e){return!(32&~e.flags)}(c)&&na()&&zl(s,i,l,c),0===function Ck(){return K.lFrame.elementDepthCount}()&&Ut(l,i),function bk(){K.lFrame.elementDepthCount++}(),u&&(Mp(s,i,c),Tp(s,c,i)),null!==r&&Ip(i,c),S}function T(){let e=Ie();wh()?Dh():(e=e.parent,nr(e,!1));const n=e;(function wk(e){return K.skipHydrationRootTNode===e})(n)&&function Mk(){K.skipHydrationRootTNode=null}(),function Ek(){K.lFrame.elementDepthCount--}();const t=oe();return t.firstCreatePass&&(yl(t,e),ph(e)&&t.queries.elementEnd(e)),null!=n.classesWithoutHost&&function jk(e){return!!(8&e.flags)}(n)&&Dm(t,n,b(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function Hk(e){return!!(16&e.flags)}(n)&&Dm(t,n,b(),n.stylesWithoutHost,!1),T}function ge(e,n,t,r){return S(e,n,t,r),T(),ge}let ED=(e,n,t,r,i,s)=>(Er(!0),$l(r,i,function nC(){return K.lFrame.currentNamespace}()));function _o(e,n,t){const r=b(),i=oe(),s=e+V,o=i.firstCreatePass?function iV(e,n,t,r,i){const s=n.consts,o=Vn(s,r),a=qi(n,e,8,"ng-container",o);return null!==o&&su(a,o,!0),xp(n,t,a,Vn(s,i)),null!==n.queries&&n.queries.elementStart(n,a),a}(s,i,r,n,t):i.data[s];nr(o,!0);const a=wD(i,r,o,e);return r[s]=a,na()&&zl(i,r,a,o),Ut(a,r),dl(o)&&(Mp(i,r,o),Tp(i,o,r)),null!=t&&Ip(r,o),_o}function vo(){let e=Ie();const n=oe();return wh()?Dh():(e=e.parent,nr(e,!1)),n.firstCreatePass&&(yl(n,e),ph(e)&&n.queries.elementEnd(e)),vo}function pi(e,n,t){return _o(e,n,t),vo(),pi}let wD=(e,n,t,r)=>(Er(!0),yp(n[Y],""));function at(){return b()}function _u(e,n,t){const r=b();if(it(r,rr(),n)){const s=oe(),o=Be();un(s,o,r,e,n,cE(Th(s.data),o,r),t,!0)}return _u}const vu="en-US";let MD=vu,zD=(e,n,t)=>{};function te(e,n,t,r){const i=b(),s=oe(),o=Ie();return Nm(s,i,i[Y],o,e,n,r),te}function Nm(e,n,t,r,i,s,o){const a=dl(r),l=e.firstCreatePass&&function aE(e){return e.cleanup??=[]}(e),u=n[Ve],d=function oE(e){return e[Ns]??=[]}(n);let f=!0;if(3&r.type||o){const m=qt(r,n),g=o?o(m):m,_=d.length,y=o?D=>o(he(D[r.index])):r.index;let w=null;if(!o&&a&&(w=function QV(e,n,t,r){const i=e.cleanup;if(null!=i)for(let s=0;s<i.length-1;s+=2){const o=i[s];if(o===t&&i[s+1]===r){const a=n[Ns],c=i[s+2];return a.length>c?a[c]:null}"string"==typeof o&&(s+=2)}return null}(e,n,i,r.index)),null!==w)(w.__ngLastListenerFn__||w).__ngNextListenerFn__=s,w.__ngLastListenerFn__=s,f=!1;else{s=YD(r,n,u,s),zD(m,i,s);const D=t.listen(g,i,s);d.push(s,D),l&&l.push(i,y,_,_+1)}}else s=YD(r,n,u,s);const h=r.outputs;let p;if(f&&null!==h&&(p=h[i])){const m=p.length;if(m)for(let g=0;g<m;g+=2){const M=n[p[g]][p[g+1]].subscribe(s),F=d.length;d.push(s,M),l&&l.push(i,r.index,F,-(F+1))}}}function ZD(e,n,t,r){const i=q(null);try{return br(6,n,t),!1!==t(r)}catch(s){return Yl(e,s),!1}finally{br(7,n,t),q(i)}}function YD(e,n,t,r){return function i(s){if(s===Function)return r;Ea(e.componentOffset>-1?Cn(e.index,n):n,5);let a=ZD(n,t,r,s),c=i.__ngNextListenerFn__;for(;c;)a=ZD(n,t,c,s)&&a,c=c.__ngNextListenerFn__;return a}}function x(e=1){return function kk(e){return(K.lFrame.contextLView=function Hv(e,n){for(;e>0;)n=n[ks],e--;return n}(e,K.lFrame.contextLView))[Ve]}(e)}function XV(e,n){let t=null;const r=function RN(e){const n=e.attrs;if(null!=n){const t=n.indexOf(5);if(!(1&t))return n[t+1]}return null}(e);for(let i=0;i<n.length;i++){const s=n[i];if("*"!==s){if(null===r?mv(e,s,!0):VN(r,s))return i}else t=i}return t}function km(e,n=0,t,r,i,s){const o=b(),a=oe(),c=r?e+1:null;null!==c&&La(o,a,c,r,i,s,null,t);const l=qi(a,V+e,16,null,t||null);null===l.projection&&(l.projection=n),Dh();const d=!o[zt]||Li();null===o[We][Rt].projection[l.projection]&&null!==c?function JV(e,n,t){const r=V+t,i=n.data[r],s=e[r],o=Yi(s,i.tView.ssrId);Zs(s,Ws(e,i,void 0,{dehydratedView:o}),0,Wi(i,o))}(o,a,c):d&&32&~l.flags&&function KO(e,n,t){qb(n[Y],0,n,t,Cp(e,t,n),jb(t.parent||n[Rt],t,n))}(a,o,l)}function Om(e,n,t,r){t>=e.data.length&&(e.data[t]=null,e.blueprint[t]=null),n[t]=r}function wu(e){return Fi(zv(),V+e)}function $(e,n=""){const t=b(),r=oe(),i=e+V,s=r.firstCreatePass?qi(r,i,1,n,null):r.data[i],o=g0(r,t,s,n,e);t[i]=o,na()&&zl(r,t,o,s),nr(s,!1)}let g0=(e,n,t,r,i)=>(Er(!0),function gp(e,n){return e.createText(n)}(n[Y],r));function gt(e){return ke("",e,""),gt}function ke(e,n,t){const r=b(),i=function ao(e,n,t,r){return it(e,rr(),t)?n+X(t)+r:J}(r,e,n,t);return i!==J&&function zr(e,n,t){const r=Jo(n,e);!function Ob(e,n,t){e.setValue(n,t)}(e[Y],r,t)}(r,Ft(),i),ke}function Rm(e,n,t){aw(n)&&(n=n());const r=b();return it(r,rr(),n)&&un(oe(),Be(),r,e,n,r[Y],t,!1),Rm}function Fm(e,n){const t=b(),r=oe(),i=Ie();return Nm(r,t,t[Y],i,e,n),Fm}const T0={};function Tn(e){const n=oe(),t=b(),r=e+V;return nr(qi(n,r,128,null,null),!1),Om(n,t,r,T0),Tn}function $t(e){return Zt("NgLet"),Om(oe(),b(),Ft(),e),e}function Pe(e){const t=Fi(zv(),V+e);if(t===T0)throw new E(314,!1);return t}function Lm(e,n,t,r,i){if(e=W(e),Array.isArray(e))for(let s=0;s<e.length;s++)Lm(e[s],n,t,r,i);else{const s=oe(),o=b(),a=Ie();let c=Pi(e)?e:W(e.provide);const l=wv(e),u=1048575&a.providerIndexes,d=a.directiveStart,f=a.providerIndexes>>20;if(Pi(e)||!e.multi){const h=new ra(l,i,v),p=Bm(c,n,i?u:u+f,d);-1===p?(Fh(bl(a,o),s,c),Vm(s,e,n.length),n.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),t.push(h),o.push(h)):(t[p]=h,o[p]=h)}else{const h=Bm(c,n,u+f,d),p=Bm(c,n,u,u+f),g=p>=0&&t[p];if(i&&!g||!i&&!(h>=0&&t[h])){Fh(bl(a,o),s,c);const _=function bB(e,n,t,r,i){const s=new ra(e,t,v);return s.multi=[],s.index=n,s.componentProviders=0,M0(s,i,r&&!t),s}(i?CB:vB,t.length,i,r,l);!i&&g&&(t[p].providerFactory=_),Vm(s,e,n.length,0),n.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),t.push(_),o.push(_)}else Vm(s,e,h>-1?h:p,M0(t[i?p:h],l,!i&&r));!i&&r&&g&&t[p].componentProviders++}}}function Vm(e,n,t,r){const i=Pi(n),s=function ZN(e){return!!e.useClass}(n);if(i||s){const c=(s?W(n.useClass):n).prototype.ngOnDestroy;if(c){const l=e.destroyHooks||(e.destroyHooks=[]);if(!i&&n.multi){const u=l.indexOf(t);-1===u?l.push(t,[r,c]):l[u+1].push(r,c)}else l.push(t,c)}}}function M0(e,n,t){return t&&e.componentProviders++,e.multi.push(n)-1}function Bm(e,n,t,r){for(let i=t;i<r;i++)if(n[i]===e)return i;return-1}function vB(e,n,t,r){return jm(this.multi,[])}function CB(e,n,t,r){const i=this.multi;let s;if(this.providerFactory){const o=this.providerFactory.componentProviders,a=ji(t,t[I],this.providerFactory.index,r);s=a.slice(0,o),jm(i,s);for(let c=o;c<a.length;c++)s.push(a[c])}else s=[],jm(i,s);return s}function jm(e,n){for(let t=0;t<e.length;t++)n.push((0,e[t])());return n}function Oe(e,n=[]){return t=>{t.providersResolver=(r,i)=>function _B(e,n,t){const r=oe();if(r.firstCreatePass){const i=er(e);Lm(t,r.data,r.blueprint,i,!0),Lm(n,r.data,r.blueprint,i,!1)}}(r,i?i(e):e,n)}}let EB=(()=>{class e{constructor(t){this._injector=t,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t)){const r=ih(0,t.type),i=r.length>0?function ww(e,n,t=null){return new Ew({providers:e,parent:n,debugName:t,runEnvironmentInitializers:!0}).injector}([r],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t,i)}return this.cachedInjectors.get(t)}ngOnDestroy(){try{for(const t of this.cachedInjectors.values())null!==t&&t.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=R({token:e,providedIn:"environment",factory:()=>new e(k(Fn))})}return e})();function Hm(e){Zt("NgStandalone"),e.getStandaloneInjector=n=>n.get(EB).getOrCreateStandaloneInjector(e)}function Za(e,n){const t=e[n];return t===J?void 0:t}function k0(e,n,t,r,i,s){const o=n+t;return it(e,o,i)?xr(e,o+1,s?r.call(s,i):r(i)):Za(e,o+1)}function P0(e,n,t,r,i,s,o){const a=n+t;return Ji(e,a,i,s)?xr(e,a+2,o?r.call(o,i,s):r(i,s)):Za(e,a+2)}function O0(e,n,t,r,i,s,o,a){const c=n+t;return function lu(e,n,t,r,i){const s=Ji(e,n,t,r);return it(e,n+2,i)||s}(e,c,i,s,o)?xr(e,c+3,a?r.call(a,i,s,o):r(i,s,o)):Za(e,c+3)}function R0(e,n,t,r,i,s,o,a,c){const l=n+t;return function Bn(e,n,t,r,i,s){const o=Ji(e,n,t,r);return Ji(e,n+2,i,s)||o}(e,l,i,s,o,a)?xr(e,l+4,c?r.call(c,i,s,o,a):r(i,s,o,a)):Za(e,l+4)}function Ce(e,n){const t=oe();let r;const i=e+V;t.firstCreatePass?(r=function OB(e,n){if(n)for(let t=n.length-1;t>=0;t--){const r=n[t];if(e===r.name)return r}}(n,t.pipeRegistry),t.data[i]=r,r.onDestroy&&(t.destroyHooks??=[]).push(i,r.onDestroy)):r=t.data[i];const s=r.factory||(r.factory=Ni(r.type)),a=on(v);try{const c=Cl(!1),l=s();return Cl(c),Om(t,b(),i,l),l}finally{on(a)}}function Ya(e,n,t){const r=e+V,i=b(),s=Fi(i,r);return Ka(i,r)?k0(i,Wt(),n,s.transform,t,s):s.transform(t)}function xt(e,n,t,r){const i=e+V,s=b(),o=Fi(s,i);return Ka(s,i)?P0(s,Wt(),n,o.transform,t,r,o):o.transform(t,r)}function mi(e,n,t,r,i){const s=e+V,o=b(),a=Fi(o,s);return Ka(o,s)?O0(o,Wt(),n,a.transform,t,r,i,a):a.transform(t,r,i)}function Um(e,n,t,r,i,s){const o=e+V,a=b(),c=Fi(a,o);return Ka(a,o)?R0(a,Wt(),n,c.transform,t,r,i,s,c):c.transform(t,r,i,s)}function Ka(e,n){return e[I].data[n].pure}function Tu(e,n){return Ql(e,n)}const nS=new N(""),Au=new N("");let Km,Zm=(()=>{class e{constructor(t,r,i){this._ngZone=t,this.registry=r,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,Km||(function Aj(e){Km=e}(i),i.addToWindow(r)),this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{pe.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb()}});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(t)||(clearTimeout(r.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,r,i){let s=-1;r&&r>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==s),t()},r)),this._callbacks.push({doneCb:t,timeoutId:s,updateCb:i})}whenStable(t,r,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,r,i),this._runCallbacksIfReady()}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,r,i){return[]}static#e=this.\u0275fac=function(r){return new(r||e)(k(pe),k(Ym),k(Au))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})(),Ym=(()=>{class e{constructor(){this._applications=new Map}registerApplication(t,r){this._applications.set(t,r)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,r=!0){return Km?.findTestabilityInTree(this,t,r)??null}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function xu(e){return!!e&&"function"==typeof e.then}function rS(e){return!!e&&"function"==typeof e.subscribe}const Qm=new N("");let iS=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,r)=>{this.resolve=t,this.reject=r}),this.appInits=A(Qm,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const t=[];for(const i of this.appInits){const s=i();if(xu(s))t.push(s);else if(rS(s)){const o=new Promise((a,c)=>{s.subscribe({complete:a,error:c})});t.push(o)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(t).then(()=>{r()}).catch(i=>{this.reject(i)}),0===t.length&&r(),this.initialized=!0}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Xm=new N("");function oS(e,n){return Array.isArray(n)?n.reduce(oS,e):{...e,...n}}let jn=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=A(gP),this.afterRenderManager=A(Nw),this.zonelessEnabled=A(Na),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new kt,this.afterTick=new kt,this.componentTypes=[],this.components=[],this.isStable=A(Hi).hasPendingTasks.pipe(Pt(t=>!t)),this._injector=A(Fn)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let t;return new Promise(r=>{t=this.isStable.subscribe({next:i=>{i&&r()}})}).finally(()=>{t.unsubscribe()})}get injector(){return this._injector}bootstrap(t,r){const i=t instanceof BE;if(!this._injector.get(iS).done)throw!i&&function ki(e){const n=ae(e)||Et(e)||Ot(e);return null!==n&&n.standalone}(t),new E(405,!1);let o;o=i?t:this._injector.get(Ki).resolveComponentFactory(t),this.componentTypes.push(o.componentType);const a=function xj(e){return e.isBoundToModule}(o)?void 0:this._injector.get(Xi),l=o.create(Ne.NULL,[],r||o.selector,a),u=l.location.nativeElement,d=l.injector.get(nS,null);return d?.registerApplication(u),l.onDestroy(()=>{this.detachView(l.hostView),Nu(this.components,l),d?.unregisterApplication(u)}),this._loadComponent(l),l}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new E(101,!1);const t=q(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,q(t),this.afterTick.next()}}synchronize(){let t=null;this._injector.destroyed||(t=this._injector.get(ru,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;0!==this.dirtyFlags&&r++<10;)this.synchronizeOnce(t)}synchronizeOnce(t){if(this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0,7&this.dirtyFlags){const r=!!(1&this.dirtyFlags);this.dirtyFlags&=-8,this.dirtyFlags|=8,this.beforeRender.next(r);for(let{_lView:i,notifyErrorHandler:s}of this._views)Pj(i,s,r,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),7&this.dirtyFlags)return}else t?.begin?.(),t?.end?.();8&this.dirtyFlags&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){this.allViews.some(({_lView:t})=>fl(t))?this.dirtyFlags|=2:this.dirtyFlags&=-8}attachView(t){const r=t;this._views.push(r),r.attachToAppRef(this)}detachView(t){const r=t;Nu(this._views,r),r.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t);const r=this._injector.get(Xm,[]);[...this._bootstrapListeners,...r].forEach(i=>i(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>Nu(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new E(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Nu(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function Pj(e,n,t,r){(t||fl(e))&&Kl(e,n,t&&!r?0:1)}let Lj=(()=>{class e{constructor(){this.zone=A(pe),this.changeDetectionScheduler=A(Ks),this.applicationRef=A(jn)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Jm({ngZoneFactory:e,ignoreChangesOutsideZone:n,scheduleInRootZone:t}){return e??=()=>new pe({...eg(),scheduleInRootZone:t}),[{provide:pe,useFactory:e},{provide:_r,multi:!0,useFactory:()=>{const r=A(Lj,{optional:!0});return()=>r.initialize()}},{provide:_r,multi:!0,useFactory:()=>{const r=A(Bj);return()=>{r.initialize()}}},!0===n?{provide:VE,useValue:!0}:[],{provide:Zp,useValue:t??DC}]}function eg(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}let Bj=(()=>{class e{constructor(){this.subscription=new mn,this.initialized=!1,this.zone=A(pe),this.pendingTasks=A(Hi)}initialize(){if(this.initialized)return;this.initialized=!0;let t=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(t=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{pe.assertNotInAngularZone(),queueMicrotask(()=>{null!==t&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(t),t=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{pe.assertInAngularZone(),t??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ec=(()=>{class e{constructor(){this.appRef=A(jn),this.taskService=A(Hi),this.ngZone=A(pe),this.zonelessEnabled=A(Na),this.disableScheduling=A(VE,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new mn,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Ml):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(A(Zp,{optional:!0})??!1),this.cancelScheduledCallback=null,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof $h||!this.zoneIsDefined)}notify(t){if(!this.zonelessEnabled&&5===t)return;switch(t){case 0:this.appRef.dirtyFlags|=2;break;case 3:case 2:case 4:case 5:case 1:this.appRef.dirtyFlags|=4;break;case 7:this.appRef.deferredDirtyFlags|=8;break;default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;const r=this.useMicrotaskScheduler?TC:SC;this.pendingRenderTaskId=this.taskService.add(),this.cancelScheduledCallback=this.scheduleInRootZone?Zone.root.run(()=>r(()=>this.tick())):this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||null!==this.pendingRenderTaskId||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Ml+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;!this.zonelessEnabled&&7&this.appRef.dirtyFlags&&(this.appRef.dirtyFlags|=1);const t=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(t),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,TC(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(t)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,null!==this.pendingRenderTaskId){const t=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(t)}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const gi=new N("",{providedIn:"root",factory:()=>A(gi,ue.Optional|ue.SkipSelf)||function jj(){return typeof $localize<"u"&&$localize.locale||vu}()}),ng=new N("");function Pu(e){return!!e.platformInjector}let hS=(()=>{class e{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,r){const i=r?.scheduleInRootZone,o=r?.ignoreChangesOutsideZone,a=[Jm({ngZoneFactory:()=>function mP(e="zone.js",n){return"noop"===e?new $h:"zone.js"===e?new pe(n):e}(r?.ngZone,{...eg({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}),scheduleInRootZone:i}),ignoreChangesOutsideZone:o}),{provide:Ks,useExisting:ec}],c=function AL(e,n,t){return new am(e,n,t,!1)}(t.moduleType,this.injector,a);return function fS(e){const n=Pu(e)?e.r3Injector:e.moduleRef.injector,t=n.get(pe);return t.run(()=>{Pu(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();const r=n.get(Dr,null);let i;if(t.runOutsideAngular(()=>{i=t.onError.subscribe({next:s=>{r.handleError(s)}})}),Pu(e)){const s=()=>n.destroy(),o=e.platformInjector.get(ng);o.add(s),n.onDestroy(()=>{i.unsubscribe(),o.delete(s)})}else e.moduleRef.onDestroy(()=>{Nu(e.allPlatformModules,e.moduleRef),i.unsubscribe()});return function kj(e,n,t){try{const r=t();return xu(r)?r.catch(i=>{throw n.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw n.runOutsideAngular(()=>e.handleError(r)),r}}(r,t,()=>{const s=n.get(iS);return s.runInitializers(),s.donePromise.then(()=>{if(function hV(e){"string"==typeof e&&(MD=e.toLowerCase().replace(/_/g,"-"))}(n.get(gi,vu)||vu),Pu(e)){const a=n.get(jn);return void 0!==e.rootComponent&&a.bootstrap(e.rootComponent),a}return function qj(e,n){const t=e.injector.get(jn);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>t.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new E(-403,!1);e.instance.ngDoBootstrap(t)}n.push(e)}(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}({moduleRef:c,allPlatformModules:this._modules})}bootstrapModule(t,r=[]){const i=oS({},r);return function Fj(e,n,t){const r=new cm(t);return Promise.resolve(r)}(0,0,t).then(s=>this.bootstrapModuleFactory(s,i))}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new E(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const t=this._injector.get(ng,null);t&&(t.forEach(r=>r()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(r){return new(r||e)(k(Ne))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),yi=null;const pS=new N("");function mS(e,n,t=[]){const r=`Platform: ${n}`,i=new N(r);return(s=[])=>{let o=rg();if(!o||o.injector.get(pS,!1)){const a=[...t,...s,{provide:i,useValue:!0}];e?e(a):function Wj(e){if(yi&&!yi.get(pS,!1))throw new E(400,!1);(function sS(){!function U1(e){v_=e}(()=>{throw new E(600,!1)})})(),yi=e;const n=e.get(hS);(function yS(e){e.get(XC,null)?.forEach(t=>t())})(e)}(function gS(e=[],n){return Ne.create({name:n,providers:[{provide:ah,useValue:"platform"},{provide:ng,useValue:new Set([()=>yi=null])},...e]})}(a,r))}return function Zj(){const n=rg();if(!n)throw new E(401,!1);return n}()}}function rg(){return yi?.get(hS)??null}let wo=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=Kj}return e})();function Kj(e){return function Qj(e,n,t){if(Ri(e)&&!t){const r=Cn(e.index,n);return new wa(r,r)}return 175&e.type?new wa(n[We],n):null}(Ie(),b(),!(16&~e))}const l3=mS(null,"core",[]);let u3=(()=>{class e{constructor(t){}static#e=this.\u0275fac=function(r){return new(r||e)(k(jn))};static#t=this.\u0275mod=bt({type:e});static#n=this.\u0275inj=ft({})}return e})();const $S=new N("");function ce(e,n){Zt("NgSignals");const t=function B1(e){const n=Object.create(j1);n.computation=e;const t=()=>{if(_s(n),ri(n),n.value===Lc)throw n.error;return n.value};return t[Qe]=n,t}(e);return n?.equal&&(t[Qe].equal=n.equal),t}function Hn(e){const n=q(null);try{return e()}finally{q(n)}}const U3=new N("",{providedIn:"root",factory:()=>A($3)});let $3=(()=>{class e{static#e=this.\u0275prov=R({token:e,providedIn:"root",factory:()=>new G3})}return e})();class G3{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=A(Hi),this.taskId=null}scheduleEffect(n){if(this.enqueue(n),null===this.taskId){const t=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(t),this.taskId=null})}}enqueue(n){const t=n.creationZone;this.queues.has(t)||this.queues.set(t,new Set);const r=this.queues.get(t);r.has(n)||(this.queuedEffectCount++,r.add(n))}flush(){for(;this.queuedEffectCount>0;)for(const[n,t]of this.queues)null===n?this.flushQueue(t):n.run(()=>this.flushQueue(t))}flushQueue(n){for(const t of n)n.delete(t),this.queuedEffectCount--,t.run()}}class z3{constructor(n,t,r,i,s,o){this.scheduler=n,this.effectFn=t,this.creationZone=r,this.injector=s,this.watcher=function q1(e,n,t){const r=Object.create(W1);t&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=n;const i=c=>{r.cleanupFn=c};return r.ref={notify:()=>Le(r),run:()=>{if(null===r.fn)return;if(function Ke(){return ze}())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(r.dirty=!1,r.hasRun&&!Fr(r))return;r.hasRun=!0;const c=ut(r);try{r.cleanupFn(),r.cleanupFn=vf,r.fn(i)}finally{Rn(r,c)}},cleanup:()=>r.cleanupFn(),destroy:()=>function o(c){(function s(c){return null===c.fn&&null===c.schedule})(c)||(mf(c),c.cleanupFn(),c.fn=null,c.schedule=null,c.cleanupFn=vf)}(r),[Qe]:r},r.ref}(a=>this.runEffect(a),()=>this.schedule(),o),this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}runEffect(n){try{this.effectFn(n)}catch(t){this.injector.get(Dr,null,{optional:!0})?.handleError(t)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}}function $u(e,n){Zt("NgSignals"),!n?.injector&&function dh(e){if(!Dv())throw new E(-203,!1)}();const t=n?.injector??A(Ne),r=!0!==n?.manualCleanup?t.get(oa):null,i=new z3(t.get(U3),e,typeof Zone>"u"?null:Zone.current,r,t,n?.allowSignalWrites??!1),s=t.get(wo,null,{optional:!0});return s&&8&s._lView[H]?(s._lView[cl]??=[]).push(i.watcher.notify):i.watcher.notify(),i}let JS=null;function ic(){return JS}class W3{}const Vt=new N("");function cT(e,n){n=encodeURIComponent(n);for(const t of e.split(";")){const r=t.indexOf("="),[i,s]=-1==r?[t,""]:[t.slice(0,r),t.slice(r+1)];if(i.trim()===n)return decodeURIComponent(s)}return null}const Eg=/\s+/,lT=[];let wg=(()=>{class e{constructor(t,r){this._ngEl=t,this._renderer=r,this.initialClasses=lT,this.stateMap=new Map}set klass(t){this.initialClasses=null!=t?t.trim().split(Eg):lT}set ngClass(t){this.rawClass="string"==typeof t?t.trim().split(Eg):t}ngDoCheck(){for(const r of this.initialClasses)this._updateState(r,!0);const t=this.rawClass;if(Array.isArray(t)||t instanceof Set)for(const r of t)this._updateState(r,!0);else if(null!=t)for(const r of Object.keys(t))this._updateState(r,!!t[r]);this._applyStateDiff()}_updateState(t,r){const i=this.stateMap.get(t);void 0!==i?(i.enabled!==r&&(i.changed=!0,i.enabled=r),i.touched=!0):this.stateMap.set(t,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(const t of this.stateMap){const r=t[0],i=t[1];i.changed?(this._toggleClass(r,i.enabled),i.changed=!1):i.touched||(i.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),i.touched=!1}}_toggleClass(t,r){(t=t.trim()).length>0&&t.split(Eg).forEach(i=>{r?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}static#e=this.\u0275fac=function(r){return new(r||e)(v(cn),v(Ar))};static#t=this.\u0275dir=Z({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0})}return e})(),td=(()=>{class e{constructor(t){this._viewContainerRef=t,this.ngComponentOutlet=null,this._inputsUsed=new Map}_needToReCreateNgModuleInstance(t){return void 0!==t.ngComponentOutletNgModule||void 0!==t.ngComponentOutletNgModuleFactory}_needToReCreateComponentInstance(t){return void 0!==t.ngComponentOutlet||void 0!==t.ngComponentOutletContent||void 0!==t.ngComponentOutletInjector||this._needToReCreateNgModuleInstance(t)}ngOnChanges(t){if(this._needToReCreateComponentInstance(t)&&(this._viewContainerRef.clear(),this._inputsUsed.clear(),this._componentRef=void 0,this.ngComponentOutlet)){const r=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;this._needToReCreateNgModuleInstance(t)&&(this._moduleRef?.destroy(),this._moduleRef=this.ngComponentOutletNgModule?function IL(e,n){return new am(e,n??null,[])}(this.ngComponentOutletNgModule,uT(r)):this.ngComponentOutletNgModuleFactory?this.ngComponentOutletNgModuleFactory.create(uT(r)):void 0),this._componentRef=this._viewContainerRef.createComponent(this.ngComponentOutlet,{injector:r,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}ngDoCheck(){if(this._componentRef){if(this.ngComponentOutletInputs)for(const t of Object.keys(this.ngComponentOutletInputs))this._inputsUsed.set(t,!0);this._applyInputStateDiff(this._componentRef)}}ngOnDestroy(){this._moduleRef?.destroy()}_applyInputStateDiff(t){for(const[r,i]of this._inputsUsed)i?(t.setInput(r,this.ngComponentOutletInputs[r]),this._inputsUsed.set(r,!1)):(t.setInput(r,void 0),this._inputsUsed.delete(r))}static#e=this.\u0275fac=function(r){return new(r||e)(v(ir))};static#t=this.\u0275dir=Z({type:e,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInputs:"ngComponentOutletInputs",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},standalone:!0,features:[tr]})}return e})();function uT(e){return e.get(Xi).injector}let nd=(()=>{class e{constructor(t,r){this._viewContainer=t,this._context=new RH,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){fT("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){fT("ngIfElse",t),this._elseTemplateRef=t,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(t,r){return!0}static#e=this.\u0275fac=function(r){return new(r||e)(v(ir),v(Ir))};static#t=this.\u0275dir=Z({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return e})();class RH{constructor(){this.$implicit=null,this.ngIf=null}}function fT(e,n){if(n&&!n.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Ct(n)}'.`)}let pT=(()=>{class e{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(t){if(this._shouldRecreateView(t)){const r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const i=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,i,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(t){return!!t.ngTemplateOutlet||!!t.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(t,r,i)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,r,i),get:(t,r,i)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,i)}})}static#e=this.\u0275fac=function(r){return new(r||e)(v(ir))};static#t=this.\u0275dir=Z({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[tr]})}return e})();let Ig=(()=>{class e{transform(t,r,i){if(null==t)return null;if(!this.supports(t))throw function lr(e,n){return new E(2100,!1)}();return t.slice(r,i)}supports(t){return"string"==typeof t||Array.isArray(t)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275pipe=ht({name:"slice",type:e,pure:!1,standalone:!0})}return e})(),Ag=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=bt({type:e});static#n=this.\u0275inj=ft({})}return e})();const gT="browser";function yT(e){return"server"===e}class _T{}class VU extends W3{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Pg extends VU{static makeCurrent(){!function q3(e){JS??=e}(new Pg)}onAndCancel(n,t,r){return n.addEventListener(t,r),()=>{n.removeEventListener(t,r)}}dispatchEvent(n,t){n.dispatchEvent(t)}remove(n){n.remove()}createElement(n,t){return(t=t||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,t){return"window"===t?window:"document"===t?n:"body"===t?n.body:null}getBaseHref(n){const t=function BU(){return cc=cc||document.querySelector("base"),cc?cc.getAttribute("href"):null}();return null==t?null:function jU(e){return new URL(e,document.baseURI).pathname}(t)}resetBaseElement(){cc=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return cT(document.cookie,n)}}let cc=null,UU=(()=>{class e{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})();const od=new N("");let IT=(()=>{class e{constructor(t,r){this._zone=r,this._eventNameToPlugin=new Map,t.forEach(i=>{i.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,r,i){return this._findPluginFor(r).addEventListener(t,r,i)}getZone(){return this._zone}_findPluginFor(t){let r=this._eventNameToPlugin.get(t);if(r)return r;if(r=this._plugins.find(s=>s.supports(t)),!r)throw new E(5101,!1);return this._eventNameToPlugin.set(t,r),r}static#e=this.\u0275fac=function(r){return new(r||e)(k(od),k(pe))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})();class Og{constructor(n){this._doc=n}}const Rg="ng-app-id";let AT=(()=>{class e{constructor(t,r,i,s={}){this.doc=t,this.appId=r,this.nonce=i,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=yT(s),this.resetHostNodes()}addStyles(t){for(const r of t)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(t){for(const r of t)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const t=this.styleNodesInDOM;t&&(t.forEach(r=>r.remove()),t.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(const r of this.getAllStyles())this.addStyleToHost(t,r)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(const r of this.hostNodes)this.addStyleToHost(r,t)}onStyleRemoved(t){const r=this.styleRef;r.get(t)?.elements?.forEach(i=>i.remove()),r.delete(t)}collectServerRenderedStyles(){const t=this.doc.head?.querySelectorAll(`style[${Rg}="${this.appId}"]`);if(t?.length){const r=new Map;return t.forEach(i=>{null!=i.textContent&&r.set(i.textContent,i)}),r}return null}changeUsageCount(t,r){const i=this.styleRef;if(i.has(t)){const s=i.get(t);return s.usage+=r,s.usage}return i.set(t,{usage:r,elements:[]}),r}getStyleElement(t,r){const i=this.styleNodesInDOM,s=i?.get(r);if(s?.parentNode===t)return i.delete(r),s.removeAttribute(Rg),s;{const o=this.doc.createElement("style");return this.nonce&&o.setAttribute("nonce",this.nonce),o.textContent=r,this.platformIsServer&&o.setAttribute(Rg,this.appId),t.appendChild(o),o}}addStyleToHost(t,r){const i=this.getStyleElement(t,r),s=this.styleRef,o=s.get(r)?.elements;o?o.push(i):s.set(r,{elements:[i],usage:1})}resetHostNodes(){const t=this.hostNodes;t.clear(),t.add(this.doc.head)}static#e=this.\u0275fac=function(r){return new(r||e)(k(Vt),k(Hs),k(eb,8),k($r))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})();const Fg={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Lg=/%COMP%/g,qU=new N("",{providedIn:"root",factory:()=>!0});function NT(e,n){return n.map(t=>t.replace(Lg,e))}let Vg=(()=>{class e{constructor(t,r,i,s,o,a,c,l=null){this.eventManager=t,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=s,this.doc=o,this.platformId=a,this.ngZone=c,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=yT(a),this.defaultRenderer=new Bg(t,o,c,this.platformIsServer)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Qn.ShadowDom&&(r={...r,encapsulation:Qn.Emulated});const i=this.getOrCreateRenderer(t,r);return i instanceof PT?i.applyToHost(t):i instanceof jg&&i.applyStyles(),i}getOrCreateRenderer(t,r){const i=this.rendererByCompId;let s=i.get(r.id);if(!s){const o=this.doc,a=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case Qn.Emulated:s=new PT(c,l,r,this.appId,u,o,a,d);break;case Qn.ShadowDom:return new KU(c,l,t,r,o,a,this.nonce,d);default:s=new jg(c,l,r,u,o,a,d)}i.set(r.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(r){return new(r||e)(k(IT),k(AT),k(Hs),k(qU),k(Vt),k($r),k(pe),k(eb))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})();class Bg{constructor(n,t,r,i){this.eventManager=n,this.doc=t,this.ngZone=r,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(n,t){return t?this.doc.createElementNS(Fg[t]||t,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,t){(kT(n)?n.content:n).appendChild(t)}insertBefore(n,t,r){n&&(kT(n)?n.content:n).insertBefore(t,r)}removeChild(n,t){t.remove()}selectRootElement(n,t){let r="string"==typeof n?this.doc.querySelector(n):n;if(!r)throw new E(-5104,!1);return t||(r.textContent=""),r}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,t,r,i){if(i){t=i+":"+t;const s=Fg[i];s?n.setAttributeNS(s,t,r):n.setAttribute(t,r)}else n.setAttribute(t,r)}removeAttribute(n,t,r){if(r){const i=Fg[r];i?n.removeAttributeNS(i,t):n.removeAttribute(`${r}:${t}`)}else n.removeAttribute(t)}addClass(n,t){n.classList.add(t)}removeClass(n,t){n.classList.remove(t)}setStyle(n,t,r,i){i&(ui.DashCase|ui.Important)?n.style.setProperty(t,r,i&ui.Important?"important":""):n.style[t]=r}removeStyle(n,t,r){r&ui.DashCase?n.style.removeProperty(t):n.style[t]=""}setProperty(n,t,r){null!=n&&(n[t]=r)}setValue(n,t){n.nodeValue=t}listen(n,t,r){if("string"==typeof n&&!(n=ic().getGlobalEventTarget(this.doc,n)))throw new Error(`Unsupported event target ${n} for event ${t}`);return this.eventManager.addEventListener(n,t,this.decoratePreventDefault(r))}decoratePreventDefault(n){return t=>{if("__ngUnwrap__"===t)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(t)):n(t))&&t.preventDefault()}}}function kT(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class KU extends Bg{constructor(n,t,r,i,s,o,a,c){super(n,s,o,c),this.sharedStylesHost=t,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=NT(i.id,i.styles);for(const u of l){const d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=u,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,t){return super.appendChild(this.nodeOrShadowRoot(n),t)}insertBefore(n,t,r){return super.insertBefore(this.nodeOrShadowRoot(n),t,r)}removeChild(n,t){return super.removeChild(null,t)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class jg extends Bg{constructor(n,t,r,i,s,o,a,c){super(n,s,o,a),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=i,this.styles=c?NT(c,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class PT extends jg{constructor(n,t,r,i,s,o,a,c){const l=i+"-"+r.id;super(n,t,r,s,o,a,c,l),this.contentAttr=function WU(e){return"_ngcontent-%COMP%".replace(Lg,e)}(l),this.hostAttr=function ZU(e){return"_nghost-%COMP%".replace(Lg,e)}(l)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,t){const r=super.createElement(n,t);return super.setAttribute(r,this.contentAttr,""),r}}let QU=(()=>{class e extends Og{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,i){return t.addEventListener(r,i,!1),()=>this.removeEventListener(t,r,i)}removeEventListener(t,r,i){return t.removeEventListener(r,i)}static#e=this.\u0275fac=function(r){return new(r||e)(k(Vt))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})(),XU=(()=>{class e extends Og{constructor(t){super(t),this.delegate=A($S,{optional:!0})}supports(t){return!!this.delegate&&this.delegate.supports(t)}addEventListener(t,r,i){return this.delegate.addEventListener(t,r,i)}removeEventListener(t,r,i){return this.delegate.removeEventListener(t,r,i)}static#e=this.\u0275fac=function(r){return new(r||e)(k(Vt))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})();const OT=["alt","control","meta","shift"],JU={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},e$={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let t$=(()=>{class e extends Og{constructor(t){super(t)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,r,i){const s=e.parseEventName(r),o=e.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ic().onAndCancel(t,s.domEventName,o))}static parseEventName(t){const r=t.toLowerCase().split("."),i=r.shift();if(0===r.length||"keydown"!==i&&"keyup"!==i)return null;const s=e._normalizeKey(r.pop());let o="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),o="code."),OT.forEach(l=>{const u=r.indexOf(l);u>-1&&(r.splice(u,1),o+=l+".")}),o+=s,0!=r.length||0===s.length)return null;const c={};return c.domEventName=i,c.fullKey=o,c}static matchEventFullKeyCode(t,r){let i=JU[t.key]||t.key,s="";return r.indexOf("code.")>-1&&(i=t.code,s="code."),!(null==i||!i)&&(i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),OT.forEach(o=>{o!==i&&(0,e$[o])(t)&&(s+=o+".")}),s+=i,s===r)}static eventCallback(t,r,i){return s=>{e.matchEventFullKeyCode(s,t)&&i.runGuarded(()=>r(s))}}static _normalizeKey(t){return"esc"===t?"escape":t}static#e=this.\u0275fac=function(r){return new(r||e)(k(Vt))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})();const s$=mS(l3,"browser",[{provide:$r,useValue:gT},{provide:XC,useValue:function n$(){Pg.makeCurrent()},multi:!0},{provide:Vt,useFactory:function i$(){return function jP(e){Yh=e}(document),document},deps:[]}]),o$=new N(""),LT=[{provide:Au,useClass:class HU{addToWindow(n){$e.getAngularTestability=(r,i=!0)=>{const s=n.findTestabilityInTree(r,i);if(null==s)throw new E(5103,!1);return s},$e.getAllAngularTestabilities=()=>n.getAllTestabilities(),$e.getAllAngularRootElements=()=>n.getAllRootElements(),$e.frameworkStabilizers||($e.frameworkStabilizers=[]),$e.frameworkStabilizers.push(r=>{const i=$e.getAllAngularTestabilities();let s=i.length;const o=function(){s--,0==s&&r()};i.forEach(a=>{a.whenStable(o)})})}findTestabilityInTree(n,t,r){return null==t?null:n.getTestability(t)??(r?ic().isShadowRoot(t)?this.findTestabilityInTree(n,t.host,!0):this.findTestabilityInTree(n,t.parentElement,!0):null)}},deps:[]},{provide:nS,useClass:Zm,deps:[pe,Ym,Au]},{provide:Zm,useClass:Zm,deps:[pe,Ym,Au]}],VT=[{provide:ah,useValue:"root"},{provide:Dr,useFactory:function r$(){return new Dr},deps:[]},{provide:od,useClass:QU,multi:!0,deps:[Vt,pe,$r]},{provide:od,useClass:t$,multi:!0,deps:[Vt]},{provide:od,useClass:XU,multi:!0},Vg,AT,IT,{provide:ru,useExisting:Vg},{provide:_T,useClass:UU,deps:[]},[]];let ad=(()=>{class e{constructor(t){}static withServerTransition(t){return{ngModule:e,providers:[{provide:Hs,useValue:t.appId}]}}static#e=this.\u0275fac=function(r){return new(r||e)(k(o$,12))};static#t=this.\u0275mod=bt({type:e});static#n=this.\u0275inj=ft({providers:[...VT,...LT],imports:[Ag,u3]})}return e})(),Hg=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=R({token:e,factory:function(r){let i=null;return i=r?new(r||e):k(u$),i},providedIn:"root"})}return e})(),u$=(()=>{class e extends Hg{constructor(t){super(),this._doc=t}sanitize(t,r){if(null==r)return null;switch(t){case En.NONE:return r;case En.HTML:return Sr(r,"HTML")?bn(r):wb(this._doc,String(r)).toString();case En.STYLE:return Sr(r,"Style")?bn(r):r;case En.SCRIPT:if(Sr(r,"Script"))return bn(r);throw new E(5200,!1);case En.URL:return Sr(r,"URL")?bn(r):Bl(String(r));case En.RESOURCE_URL:if(Sr(r,"ResourceURL"))return bn(r);throw new E(5201,!1);default:throw new E(5202,!1)}}bypassSecurityTrustHtml(t){return function aO(e){return new tO(e)}(t)}bypassSecurityTrustStyle(t){return function cO(e){return new nO(e)}(t)}bypassSecurityTrustScript(t){return function lO(e){return new rO(e)}(t)}bypassSecurityTrustUrl(t){return function uO(e){return new iO(e)}(t)}bypassSecurityTrustResourceUrl(t){return function dO(e){return new sO(e)}(t)}static#e=this.\u0275fac=function(r){return new(r||e)(k(Vt))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Ug={now:()=>(Ug.delegate||Date).now(),delegate:void 0};class d$ extends kt{constructor(n=1/0,t=1/0,r=Ug){super(),this._bufferSize=n,this._windowTime=t,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=t===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,t)}next(n){const{isStopped:t,_buffer:r,_infiniteTimeWindow:i,_timestampProvider:s,_windowTime:o}=this;t||(r.push(n),!i&&r.push(s.now()+o)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();const t=this._innerSubscribe(n),{_infiniteTimeWindow:r,_buffer:i}=this,s=i.slice();for(let o=0;o<s.length&&!n.closed;o+=r?1:2)n.next(s[o]);return this._checkFinalizedStatuses(n),t}_trimBuffer(){const{_bufferSize:n,_timestampProvider:t,_buffer:r,_infiniteTimeWindow:i}=this,s=(i?1:2)*n;if(n<1/0&&s<r.length&&r.splice(0,r.length-s),!i){const o=t.now();let a=0;for(let c=1;c<r.length&&r[c]<=o;c+=2)a=c;a&&r.splice(0,a+1)}}}var ld=function(){return ld=Object.assign||function(n){for(var t,r=1,i=arguments.length;r<i;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(n[s]=t[s]);return n},ld.apply(this,arguments)};function Gn(e,n,t,r){return new(t||(t=Promise))(function(s,o){function a(u){try{l(r.next(u))}catch(d){o(d)}}function c(u){try{l(r.throw(u))}catch(d){o(d)}}function l(u){u.done?s(u.value):function i(s){return s instanceof t?s:new t(function(o){o(s)})}(u.value).then(a,c)}l((r=r.apply(e,n||[])).next())})}function ur(e,n){var r,i,s,o,t={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(l){return function(u){return function c(l){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(t=0)),t;)try{if(r=1,i&&(s=2&l[0]?i.return:l[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,l[1])).done)return s;switch(i=0,s&&(l=[2&l[0],s.value]),l[0]){case 0:case 1:s=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,i=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(!(s=(s=t.trys).length>0&&s[s.length-1])&&(6===l[0]||2===l[0])){t=0;continue}if(3===l[0]&&(!s||l[1]>s[0]&&l[1]<s[3])){t.label=l[1];break}if(6===l[0]&&t.label<s[1]){t.label=s[1],s=l;break}if(s&&t.label<s[2]){t.label=s[2],t.ops.push(l);break}s[2]&&t.ops.pop(),t.trys.pop();continue}l=n.call(e,t)}catch(u){l=[6,u],i=0}finally{r=s=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,u])}}}function qg(e,n,t){if(t||2===arguments.length)for(var s,r=0,i=n.length;r<i;r++)(s||!(r in n))&&(s||(s=Array.prototype.slice.call(n,0,r)),s[r]=n[r]);return e.concat(s||Array.prototype.slice.call(n))}function _i(e){return this instanceof _i?(this.v=e,this):new _i(e)}function $T(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function zg(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],r=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(s){t[s]=e[s]&&function(o){return new Promise(function(a,c){!function i(s,o,a,c){Promise.resolve(c).then(function(l){s({value:l,done:a})},o)}(a,c,(o=e[s](o)).done,o.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const GT=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function zT(e){return Xe(e?.then)}function qT(e){return Xe(e[If])}function WT(e){return Symbol.asyncIterator&&Xe(e?.[Symbol.asyncIterator])}function ZT(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const YT=function N$(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function KT(e){return Xe(e?.[YT])}function QT(e){return function UT(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=t.apply(e,n||[]),s=[];return i={},a("next"),a("throw"),a("return",function o(h){return function(p){return Promise.resolve(p).then(h,d)}}),i[Symbol.asyncIterator]=function(){return this},i;function a(h,p){r[h]&&(i[h]=function(m){return new Promise(function(g,_){s.push([h,m,g,_])>1||c(h,m)})},p&&(i[h]=p(i[h])))}function c(h,p){try{!function l(h){h.value instanceof _i?Promise.resolve(h.value.v).then(u,d):f(s[0][2],h)}(r[h](p))}catch(m){f(s[0][3],m)}}function u(h){c("next",h)}function d(h){c("throw",h)}function f(h,p){h(p),s.shift(),s.length&&c(s[0][0],s[0][1])}}(this,arguments,function*(){const t=e.getReader();try{for(;;){const{value:r,done:i}=yield _i(t.read());if(i)return yield _i(void 0);yield yield _i(r)}}finally{t.releaseLock()}})}function XT(e){return Xe(e?.getReader)}function dr(e){if(e instanceof nt)return e;if(null!=e){if(qT(e))return function k$(e){return new nt(n=>{const t=e[If]();if(Xe(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(GT(e))return function P$(e){return new nt(n=>{for(let t=0;t<e.length&&!n.closed;t++)n.next(e[t]);n.complete()})}(e);if(zT(e))return function O$(e){return new nt(n=>{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,S_)})}(e);if(WT(e))return JT(e);if(KT(e))return function R$(e){return new nt(n=>{for(const t of e)if(n.next(t),n.closed)return;n.complete()})}(e);if(XT(e))return function F$(e){return JT(QT(e))}(e)}throw ZT(e)}function JT(e){return new nt(n=>{(function L$(e,n){var t,r,i,s;return Gn(this,void 0,void 0,function*(){try{for(t=$T(e);!(r=yield t.next()).done;)if(n.next(r.value),n.closed)return}catch(o){i={error:o}}finally{try{r&&!r.done&&(s=t.return)&&(yield s.call(t))}finally{if(i)throw i.error}}n.complete()})})(e,n).catch(t=>n.error(t))})}function vi(e,n,t,r=0,i=!1){const s=n.schedule(function(){t(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(s),!i)return s}function ud(e,n,t=1/0){return Xe(n)?ud((r,i)=>Pt((s,o)=>n(r,s,i,o))(dr(e(r,i))),t):("number"==typeof n&&(t=n),gn((r,i)=>function V$(e,n,t,r,i,s,o,a){const c=[];let l=0,u=0,d=!1;const f=()=>{d&&!c.length&&!l&&n.complete()},h=m=>l<r?p(m):c.push(m),p=m=>{s&&n.next(m),l++;let g=!1;dr(t(m,u++)).subscribe(sn(n,_=>{i?.(_),s?h(_):n.next(_)},()=>{g=!0},void 0,()=>{if(g)try{for(l--;c.length&&l<r;){const _=c.shift();o?vi(n,o,()=>p(_)):p(_)}f()}catch(_){n.error(_)}}))};return e.subscribe(sn(n,h,()=>{d=!0,f()})),()=>{a?.()}}(r,i,e,t)))}function eM(e=1/0){return ud(Af,e)}const tM=new nt(e=>e.complete());function nM(e){return e&&Xe(e.schedule)}function Wg(e){return e[e.length-1]}function dd(e){return nM(Wg(e))?e.pop():void 0}function rM(e,n=0){return gn((t,r)=>{t.subscribe(sn(r,i=>vi(r,e,()=>r.next(i),n),()=>vi(r,e,()=>r.complete(),n),i=>vi(r,e,()=>r.error(i),n)))})}function iM(e,n=0){return gn((t,r)=>{r.add(e.schedule(()=>t.subscribe(r),n))})}function sM(e,n){if(!e)throw new Error("Iterable cannot be null");return new nt(t=>{vi(t,n,()=>{const r=e[Symbol.asyncIterator]();vi(t,n,()=>{r.next().then(i=>{i.done?t.complete():t.next(i.value)})},0,!0)})})}function Ci(e,n){return n?function W$(e,n){if(null!=e){if(qT(e))return function U$(e,n){return dr(e).pipe(iM(n),rM(n))}(e,n);if(GT(e))return function G$(e,n){return new nt(t=>{let r=0;return n.schedule(function(){r===e.length?t.complete():(t.next(e[r++]),t.closed||this.schedule())})})}(e,n);if(zT(e))return function $$(e,n){return dr(e).pipe(iM(n),rM(n))}(e,n);if(WT(e))return sM(e,n);if(KT(e))return function z$(e,n){return new nt(t=>{let r;return vi(t,n,()=>{r=e[YT](),vi(t,n,()=>{let i,s;try{({value:i,done:s}=r.next())}catch(o){return void t.error(o)}s?t.complete():t.next(i)},0,!0)}),()=>Xe(r?.return)&&r.return()})}(e,n);if(XT(e))return function q$(e,n){return sM(QT(e),n)}(e,n)}throw ZT(e)}(e,n):dr(e)}function oM(e,n){return gn((t,r)=>{let i=null,s=0,o=!1;const a=()=>o&&!i&&r.complete();t.subscribe(sn(r,c=>{i?.unsubscribe();let l=0;const u=s++;dr(e(c,u)).subscribe(i=sn(r,d=>r.next(n?n(c,d,u,l++):d),()=>{i=null,a()}))},()=>{o=!0,a()}))})}const fd={schedule(e,n){const t=setTimeout(e,n);return()=>clearTimeout(t)},scheduleBeforeRender(e){if(typeof window>"u")return fd.schedule(e,0);if(typeof window.requestAnimationFrame>"u")return fd.schedule(e,16);const n=window.requestAnimationFrame(e);return()=>window.cancelAnimationFrame(n)}};let Zg;function r4(e,n,t){let r=t;return function K$(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}(e)&&n.some((i,s)=>!("*"===i||!function X$(e,n){if(!Zg){const t=Element.prototype;Zg=t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE&&Zg.call(e,n)}(e,i)||(r=s,0))),r}class s4{constructor(n,t){this.componentFactory=t.get(Ki).resolveComponentFactory(n)}create(n){return new o4(this.componentFactory,n)}}class o4{constructor(n,t){this.componentFactory=n,this.injector=t,this.eventEmitters=new d$(1),this.events=this.eventEmitters.pipe(oM(r=>function Z$(...e){const n=dd(e),t=function H$(e,n){return"number"==typeof Wg(e)?e.pop():n}(e,1/0),r=e;return r.length?1===r.length?dr(r[0]):eM(t)(Ci(r,n)):tM}(...r))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:r})=>r)),this.ngZone=this.injector.get(pe),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(n){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(n)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=fd.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(n){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(n):this.componentRef.instance[n])}setInputValue(n,t,r){this.runInZone(()=>{r&&(t=r.call(this.componentRef?.instance,t)),null!==this.componentRef?function J$(e,n){return e===n||e!=e&&n!=n}(t,this.getInputValue(n))&&(void 0!==t||!this.unchangedInputs.has(n))||(this.recordInputChange(n,t),this.unchangedInputs.delete(n),this.hasInputChanges=!0,this.componentRef.instance[n]=t,this.scheduleDetectChanges()):this.initialInputValues.set(n,t)})}initializeComponent(n){const t=Ne.create({providers:[],parent:this.injector}),r=function n4(e,n){const t=e.childNodes,r=n.map(()=>[]);let i=-1;n.some((s,o)=>"*"===s&&(i=o,!0));for(let s=0,o=t.length;s<o;++s){const a=t[s],c=r4(a,n,i);-1!==c&&r[c].push(a)}return r}(n,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,r,n),this.viewChangeDetectorRef=this.componentRef.injector.get(wo),this.implementsOnChanges=function Q$(e){return"function"==typeof e}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(jn).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:n,transform:t})=>{this.initialInputValues.has(n)&&this.setInputValue(n,this.initialInputValues.get(n),t)}),this.initialInputValues.clear()}initializeOutputs(n){const t=this.componentFactory.outputs.map(({propName:r,templateName:i})=>n.instance[r].pipe(Pt(o=>({name:i,value:o}))));this.eventEmitters.next(t)}callNgOnChanges(n){if(!this.implementsOnChanges||null===this.inputChanges)return;const t=this.inputChanges;this.inputChanges=null,n.instance.ngOnChanges(t)}markViewForCheck(n){this.hasInputChanges&&(this.hasInputChanges=!1,n.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=fd.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(n,t){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const r=this.inputChanges[n];if(r)return void(r.currentValue=t);const i=this.unchangedInputs.has(n),s=i?void 0:this.getInputValue(n);this.inputChanges[n]=new kv(s,t,i)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(n){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(n):n()}}class a4 extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}class Ae{constructor(n,t){this.type=n,this.payload=t}}const pn={phoneNumber:{length:{min:4,max:30}},card:{code:{lengths:{"american-express":[3,4]}},number:{length:{min:13,max:19}},holder:{length:{min:1,max:128}}},keys:{apmsCollapse:"apms-collapse"}};function aM(e,n,t,r,i,s,o){try{var a=e[s](o),c=a.value}catch(l){return void t(l)}a.done?n(c):Promise.resolve(c).then(r,i)}function ss(e){return function(){var n=this,t=arguments;return new Promise(function(r,i){var s=e.apply(n,t);function o(c){aM(s,r,i,o,a,"next",c)}function a(c){aM(s,r,i,o,a,"throw",c)}o(void 0)})}}function hd(e,n){return new Promise(function(t){return setTimeout(t,e,n)})}function pd(e){return!!e&&"function"==typeof e.then}function lM(e,n){try{var t=e();pd(t)?t.then(function(r){return n(!0,r)},function(r){return n(!1,r)}):n(!0,t)}catch(r){n(!1,r)}}function uM(e,n,t){return void 0===t&&(t=16),Gn(this,void 0,void 0,function(){var r,i,s,o;return ur(this,function(a){switch(a.label){case 0:r=Array(e.length),i=Date.now(),s=0,a.label=1;case 1:return s<e.length?(r[s]=n(e[s],s),(o=Date.now())>=i+t?(i=o,[4,new Promise(function(e){var n=new MessageChannel;n.port1.onmessage=function(){return e()},n.port2.postMessage(null)})]):[3,3]):[3,4];case 2:a.sent(),a.label=3;case 3:return++s,[3,1];case 4:return[2,r]}})})}function lc(e){return e.then(void 0,function(){}),e}function Yg(e){return parseInt(e)}function fr(e){return parseFloat(e)}function Yr(e,n){return"number"==typeof e&&isNaN(e)?n:e}function Jt(e){return e.reduce(function(n,t){return n+(t?1:0)},0)}function dM(e,n){if(void 0===n&&(n=1),Math.abs(n)>=1)return Math.round(e/n)*n;var t=1/n;return Math.round(e*t)/t}function bi(e,n){var u=0,d=0,f=0,h=0;f+=(h+=(65535&e[1])+(65535&n[1]))>>>16,h&=65535,d+=(f+=(e[1]>>>16)+(n[1]>>>16))>>>16,f&=65535,u+=(d+=(65535&e[0])+(65535&n[0]))>>>16,u+=(e[0]>>>16)+(n[0]>>>16),e[0]=(u&=65535)<<16|(d&=65535),e[1]=f<<16|h}function zn(e,n){var r=65535&e[0],i=e[1]>>>16,s=65535&e[1],a=65535&n[0],c=n[1]>>>16,l=65535&n[1],u=0,d=0,f=0,h=0;f+=(h+=s*l)>>>16,h&=65535,d+=(f+=i*l)>>>16,f&=65535,d+=(f+=s*c)>>>16,f&=65535,u+=(d+=r*l)>>>16,d&=65535,u+=(d+=i*c)>>>16,d&=65535,u+=(d+=s*a)>>>16,u+=(e[0]>>>16)*l+r*c+i*a+s*(n[0]>>>16),e[0]=(u&=65535)<<16|(d&=65535),e[1]=f<<16|h}function To(e,n){var t=e[0];32==(n%=64)?(e[0]=e[1],e[1]=t):n<32?(e[0]=t<<n|e[1]>>>32-n,e[1]=e[1]<<n|t>>>32-n):(e[0]=e[1]<<(n-=32)|t>>>32-n,e[1]=t<<n|e[1]>>>32-n)}function In(e,n){0!=(n%=64)&&(n<32?(e[0]=e[1]>>>32-n,e[1]=e[1]<<n):(e[0]=e[1]<<n-32,e[1]=0))}function Ze(e,n){e[0]^=n[0],e[1]^=n[1]}var m4=[4283543511,3981806797],g4=[3301882366,444984403];function fM(e){var n=[0,e[0]>>>1];Ze(e,n),zn(e,m4),n[1]=e[0]>>>1,Ze(e,n),zn(e,g4),n[1]=e[0]>>>1,Ze(e,n)}var md=[2277735313,289559509],gd=[1291169091,658871167],hM=[0,5],y4=[0,1390208809],_4=[0,944331445];function mM(){var e=window,n=navigator;return Jt(["MSCSSMatrix"in e,"msSetImmediate"in e,"msIndexedDB"in e,"msMaxTouchPoints"in n,"msPointerEnabled"in n])>=4}function uc(){var e=window,n=navigator;return Jt(["webkitPersistentStorage"in n,"webkitTemporaryStorage"in n,0===n.vendor.indexOf("Google"),"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function hr(){var e=window;return Jt(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,0===navigator.vendor.indexOf("Apple"),"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function Kg(){var e=window,n=e.HTMLElement,t=e.Document;return Jt(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),n&&!("autocapitalize"in n.prototype),t&&"pointerLockElement"in t.prototype])>=4}function dc(){var e=window;return function b4(e){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))}(e.print)&&"[object WebPageNamespace]"===String(e.browser)}function gM(){var e,n,t=window;return Jt(["buildID"in navigator,"MozAppearance"in(null!==(n=null===(e=document.documentElement)||void 0===e?void 0:e.style)&&void 0!==n?n:{}),"onmozfullscreenchange"in t,"mozInnerScreenX"in t,"CSSMozDocumentRule"in t,"CanvasCaptureMediaStream"in t])>=4}function fc(){var e=window,n=navigator,t=e.CSS,r=e.HTMLButtonElement;return Jt([!("getStorageUpdates"in n),r&&"popover"in r.prototype,"CSSCounterStyleRule"in e,t.supports("font-size-adjust: ex-height 0.5"),t.supports("text-transform: full-width")])>=4}function x4(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function Qg(){var e=uc(),n=gM(),t=window,r=navigator,i="connection";return e?Jt([!("SharedWorker"in t),r[i]&&"ontypechange"in r[i],!("sinkId"in new Audio)])>=2:!!n&&Jt(["onorientationchange"in t,"orientation"in t,/android/i.test(r.appVersion)])>=2}function yM(e){var n=new Error(e);return n.name=e,n}function _M(e,n,t){var r,i,s;return void 0===t&&(t=50),Gn(this,void 0,void 0,function(){var o,a;return ur(this,function(c){switch(c.label){case 0:o=document,c.label=1;case 1:return o.body?[3,3]:[4,hd(t)];case 2:return c.sent(),[3,1];case 3:a=o.createElement("iframe"),c.label=4;case 4:return c.trys.push([4,,10,11]),[4,new Promise(function(l,u){var d=!1,f=function(){d=!0,l()};a.onload=f,a.onerror=function(g){d=!0,u(g)};var p=a.style;p.setProperty("display","block","important"),p.position="absolute",p.top="0",p.left="0",p.visibility="hidden",n&&"srcdoc"in a?a.srcdoc=n:a.src="about:blank",o.body.appendChild(a);var m=function(){var g,_;d||("complete"===(null===(_=null===(g=a.contentWindow)||void 0===g?void 0:g.document)||void 0===_?void 0:_.readyState)?f():setTimeout(m,10))};m()})];case 5:c.sent(),c.label=6;case 6:return null!==(i=null===(r=a.contentWindow)||void 0===r?void 0:r.document)&&void 0!==i&&i.body?[3,8]:[4,hd(t)];case 7:return c.sent(),[3,6];case 8:return[4,e(a,a.contentWindow)];case 9:return[2,c.sent()];case 10:return null===(s=a.parentNode)||void 0===s||s.removeChild(a),[7];case 11:return[2]}})})}function V4(e){for(var n=function h4(e){for(var n,t,r="Unexpected syntax '".concat(e,"'"),i=/^\s*([a-z-]*)(.*)$/i.exec(e),s=i[1]||void 0,o={},a=/([.:#][\w-]+|\[.+?\])/gi,c=function(f,h){o[f]=o[f]||[],o[f].push(h)};;){var l=a.exec(i[2]);if(!l)break;var u=l[0];switch(u[0]){case".":c("class",u.slice(1));break;case"#":c("id",u.slice(1));break;case"[":var d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(u);if(!d)throw new Error(r);c(d[1],null!==(t=null!==(n=d[4])&&void 0!==n?n:d[5])&&void 0!==t?t:"");break;default:throw new Error(r)}}return[s,o]}(e),r=n[1],i=document.createElement(n[0]??"div"),s=0,o=Object.keys(r);s<o.length;s++){var a=o[s],c=r[a].join(" ");"style"===a?B4(i.style,c):i.setAttribute(a,c)}return i}function B4(e,n){for(var t=0,r=n.split(";");t<r.length;t++){var s=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(r[t]);s&&e.setProperty(s[1],s[2],s[4]||"")}}var Mo=["monospace","sans-serif","serif"],vM=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function Xg(e){return e.toDataURL()}var yd,Jg;function ey(){var e=screen;return[Yr(fr(e.availTop),null),Yr(fr(e.width)-fr(e.availWidth)-Yr(fr(e.availLeft),0),null),Yr(fr(e.height)-fr(e.availHeight)-Yr(fr(e.availTop),0),null),Yr(fr(e.availLeft),null)]}function ty(e){for(var n=0;n<4;++n)if(e[n])return!1;return!0}function M8(e){var n;return Gn(this,void 0,void 0,function(){var t,r,i,s,o,a,c;return ur(this,function(l){switch(l.label){case 0:for(t=document,r=t.createElement("div"),i=new Array(e.length),s={},CM(r),c=0;c<e.length;++c)"DIALOG"===(o=V4(e[c])).tagName&&o.show(),CM(a=t.createElement("div")),a.appendChild(o),r.appendChild(a),i[c]=o;l.label=1;case 1:return t.body?[3,3]:[4,hd(50)];case 2:return l.sent(),[3,1];case 3:t.body.appendChild(r);try{for(c=0;c<e.length;++c)i[c].offsetParent||(s[e[c]]=!0)}finally{null===(n=r.parentNode)||void 0===n||n.removeChild(r)}return[2,s]}})})}function CM(e){e.style.setProperty("visibility","hidden","important"),e.style.setProperty("display","block","important")}function bM(e){return matchMedia("(inverted-colors: ".concat(e,")")).matches}function EM(e){return matchMedia("(forced-colors: ".concat(e,")")).matches}function Io(e){return matchMedia("(prefers-contrast: ".concat(e,")")).matches}function wM(e){return matchMedia("(prefers-reduced-motion: ".concat(e,")")).matches}function DM(e){return matchMedia("(prefers-reduced-transparency: ".concat(e,")")).matches}function SM(e){return matchMedia("(dynamic-range: ".concat(e,")")).matches}var Se=Math,en=function(){return 0},ny={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]},Z8=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),Y8=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),K8=["FRAGMENT_SHADER","VERTEX_SHADER"],Q8=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],IM="WEBGL_debug_renderer_info";function AM(e){if(e.webgl)return e.webgl.context;var t,n=document.createElement("canvas");n.addEventListener("webglCreateContextError",function(){return t=void 0});for(var r=0,i=["webgl","experimental-webgl"];r<i.length;r++){var s=i[r];try{t=n.getContext(s)}catch{}if(t)break}return e.webgl={context:t},t}function t5(e,n,t){var r=e.getShaderPrecisionFormat(e[n],e[t]);return r?[r.rangeMin,r.rangeMax,r.precision]:[]}function xM(e){return Object.keys(e.__proto__).filter(n5)}function n5(e){return"string"==typeof e&&!e.match(/[^A-Z0-9_x]/)}function NM(){return gM()}function kM(e){return"function"==typeof e.getParameter}var s5={fonts:function $4(){var e=this;return _M(function(n,t){var r=t.document;return Gn(e,void 0,void 0,function(){var i,s,o,a,c,l,d,f,h,p,m;return ur(this,function(g){for((i=r.body).style.fontSize="48px",(s=r.createElement("div")).style.setProperty("visibility","hidden","important"),o={},a={},l=function(_,y){return c("'".concat(_,"',").concat(y))},d=function(){for(var _={},y=function(F){_[F]=Mo.map(function(j){return l(F,j)})},w=0,D=vM;w<D.length;w++)y(D[w]);return _},f=function(_){return Mo.some(function(y,w){return _[w].offsetWidth!==o[y]||_[w].offsetHeight!==a[y]})},h=Mo.map(c=function(_){var y=r.createElement("span"),w=y.style;return w.position="absolute",w.top="0",w.left="0",w.fontFamily=_,y.textContent="mmMwWLliI0O&1",s.appendChild(y),y}),p=d(),i.appendChild(s),m=0;m<Mo.length;m++)o[Mo[m]]=h[m].offsetWidth,a[Mo[m]]=h[m].offsetHeight;return[2,vM.filter(function(_){return f(p[_])})]})})})},domBlockers:function S8(e){var t=(void 0===e?{}:e).debug;return Gn(this,void 0,void 0,function(){var r,i,o,a,c;return ur(this,function(l){switch(l.label){case 0:return function T8(){return hr()||Qg()}()?(r=function D8(){var e=atob;return{abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',e("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",e("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",e("LnNwb25zb3JpdA=="),".ylamainos",e("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",e("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",e("LmhlYWRlci1ibG9ja2VkLWFk"),e("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",e("I2FkXzMwMFgyNTA="),e("I2Jhbm5lcmZsb2F0MjI="),e("I2NhbXBhaWduLWJhbm5lcg=="),e("I0FkLUNvbnRlbnQ=")],adGuardChinese:[e("LlppX2FkX2FfSA=="),e("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",e("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),e("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",e("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",e("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",e("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),e("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),e("LmFkZ29vZ2xl"),e("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[e("YW1wLWF1dG8tYWRz"),e("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",e("I2FkX2ludmlld19hcmVh")],adGuardRussian:[e("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),e("LnJlY2xhbWE="),'div[id^="smi2adblock"]',e("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[e("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),e("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",e("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),e("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),e("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",e("I3Jla2xhbWk="),e("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),e("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),e("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[e("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",e("LndpZGdldF9wb19hZHNfd2lkZ2V0"),e("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",e("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[e("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),e("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",e("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",e("I3Jla2xhbW5pLWJveA=="),e("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",e("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[e("I2FkdmVydGVudGll"),e("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",e("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",e("LnNwb25zb3JsaW5rZ3J1ZW4="),e("I3dlcmJ1bmdza3k="),e("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),e("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[e("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",e("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[e("LnJla2xhbW9zX3RhcnBhcw=="),e("LnJla2xhbW9zX251b3JvZG9z"),e("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),e("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),e("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[e("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[e("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),e("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",e("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[e("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),e("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),e("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",e("LmFkX19tYWlu"),e("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[e("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[e("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),e("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[e("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),e("I2xpdmVyZUFkV3JhcHBlcg=="),e("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),e("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[e("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",e("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),e("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),e("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[e("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),e("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),e("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",e("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),e("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),e("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),e("ZGl2I3NrYXBpZWNfYWQ=")],ro:[e("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),e("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),e("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[e("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),e("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),e("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",e("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),e("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",e("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]}}(),i=Object.keys(r),[4,M8((c=[]).concat.apply(c,i.map(function(u){return r[u]})))]):[2,void 0];case 1:return o=l.sent(),t&&function I8(e,n){for(var t="DOM blockers debug:\n```",r=0,i=Object.keys(e);r<i.length;r++){var s=i[r];t+="\n".concat(s,":");for(var o=0,a=e[s];o<a.length;o++){var c=a[o];t+="\n ".concat(n[c]?"\u{1f6ab}":"\u27a1\ufe0f"," ").concat(c)}}console.log("".concat(t,"\n```"))}(r,o),(a=i.filter(function(u){var d=r[u];return Jt(d.map(function(h){return o[h]}))>.6*d.length})).sort(),[2,a]}})})},fontPreferences:function j8(){return function H8(e,n){return void 0===n&&(n=4e3),_M(function(t,r){var i=r.document,s=i.body,o=s.style;o.width="".concat(n,"px"),o.webkitTextSizeAdjust=o.textSizeAdjust="none",uc()?s.style.zoom="".concat(1/r.devicePixelRatio):hr()&&(s.style.zoom="reset");var a=i.createElement("div");return a.textContent=qg([],Array(n/20|0),!0).map(function(){return"word"}).join(" "),s.appendChild(a),e(i,s)},'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}(function(e,n){for(var t={},r={},i=0,s=Object.keys(ny);i<s.length;i++){var a=ny[o=s[i]],c=a[0],l=void 0===c?{}:c,u=a[1],d=void 0===u?"mmMwWLliI0fiflO&1":u,f=e.createElement("span");f.textContent=d,f.style.whiteSpace="nowrap";for(var h=0,p=Object.keys(l);h<p.length;h++){var m=p[h],g=l[m];void 0!==g&&(f.style[m]=g)}t[o]=f,n.append(e.createElement("br"),f)}for(var _=0,y=Object.keys(ny);_<y.length;_++){var o;r[o=y[_]]=t[o].getBoundingClientRect().width}return r})},audio:function k4(){return function R4(){return hr()&&fc()&&dc()||uc()&&function N4(){var e=navigator,n=window,t=Audio.prototype,r=n.visualViewport;return Jt(["srLatency"in t,"srChannelCount"in t,"devicePosture"in e,r&&"segments"in r,"getTextInformation"in Image.prototype])>=3}()&&function T4(){var e=window,n=e.URLPattern;return Jt(["union"in Set.prototype,"Iterator"in e,n&&"hasRegExpGroups"in n.prototype,"RGB8"in WebGLRenderingContext.prototype])>=3}()}()?-4:function P4(){var e=window,n=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!n)return-2;if(function O4(){return hr()&&!Kg()&&!function M4(){var e=window;return Jt(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}()}())return-1;var i=new n(1,5e3,44100),s=i.createOscillator();s.type="triangle",s.frequency.value=1e4;var o=i.createDynamicsCompressor();o.threshold.value=-50,o.knee.value=40,o.ratio.value=12,o.attack.value=0,o.release.value=.25,s.connect(o),o.connect(i.destination),s.start(0);var a=function F4(e){var s=function(){},o=new Promise(function(a,c){var l=!1,u=0,d=0;e.oncomplete=function(p){return a(p.renderedBuffer)};var f=function(){setTimeout(function(){return c(yM("timeout"))},Math.min(500,d+5e3-Date.now()))},h=function(){try{var p=e.startRendering();switch(pd(p)&&lc(p),e.state){case"running":d=Date.now(),l&&f();break;case"suspended":document.hidden||u++,l&&u>=3?c(yM("suspended")):setTimeout(h,500)}}catch(m){c(m)}};h(),s=function(){l||(l=!0,d>0&&f())}});return[o,s]}(i),l=a[1],u=lc(a[0].then(function(d){return function L4(e){for(var n=0,t=0;t<e.length;++t)n+=Math.abs(e[t]);return n}(d.getChannelData(0).subarray(4500))},function(d){if("timeout"===d.name||"suspended"===d.name)return-3;throw d}));return function(){return l(),u}}()},screenFrame:function d8(){var e=this;if(hr()&&fc()&&dc())return function(){return Promise.resolve(void 0)};var n=function u8(){var e=this;return function l8(){if(void 0===Jg){var e=function(){var n=ey();ty(n)?Jg=setTimeout(e,2500):(yd=n,Jg=void 0)};e()}}(),function(){return Gn(e,void 0,void 0,function(){var n;return ur(this,function(t){switch(t.label){case 0:return ty(n=ey())?yd?[2,qg([],yd,!0)]:function A4(){var e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}()?[4,x4()]:[3,2]:[3,2];case 1:t.sent(),n=ey(),t.label=2;case 2:return ty(n)||(yd=n),[2,n]}})})}}();return function(){return Gn(e,void 0,void 0,function(){var t,r;return ur(this,function(i){switch(i.label){case 0:return[4,n()];case 1:return t=i.sent(),[2,[(r=function(s){return null===s?null:dM(s,10)})(t[0]),r(t[1]),r(t[2]),r(t[3])]]}})})}},canvas:function z4(){return function q4(e){var n,r,i,t=!1,s=function W4(){var e=document.createElement("canvas");return e.width=1,e.height=1,[e,e.getContext("2d")]}(),o=s[0],a=s[1];return function Z4(e,n){return!(!n||!e.toDataURL)}(o,a)?(t=function Y4(e){return e.rect(0,0,10,10),e.rect(2,2,6,6),!e.isPointInPath(5,5,"evenodd")}(a),e?r=i="skipped":(n=function K4(e,n){!function Q4(e,n){e.width=240,e.height=60,n.textBaseline="alphabetic",n.fillStyle="#f60",n.fillRect(100,1,62,20),n.fillStyle="#069",n.font='11pt "Times New Roman"';var t="Cwm fjordbank gly ".concat("\u{1f603}");n.fillText(t,2,15),n.fillStyle="rgba(102, 204, 0, 0.2)",n.font="18pt Arial",n.fillText(t,4,45)}(e,n);var t=Xg(e);return t!==Xg(e)?["unstable","unstable"]:(function X4(e,n){e.width=122,e.height=110,n.globalCompositeOperation="multiply";for(var t=0,r=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];t<r.length;t++){var i=r[t],o=i[1],a=i[2];n.fillStyle=i[0],n.beginPath(),n.arc(o,a,40,0,2*Math.PI,!0),n.closePath(),n.fill()}n.fillStyle="#f9c",n.arc(60,60,60,0,2*Math.PI,!0),n.arc(60,60,20,0,2*Math.PI,!0),n.fill("evenodd")}(e,n),[Xg(e),t])}(o,a),r=n[0],i=n[1])):r=i="unsupported",{winding:t,geometry:r,text:i}}(function J4(){return hr()&&fc()&&dc()}())},osCpu:function t8(){return navigator.oscpu},languages:function n8(){var e=navigator,n=[],t=e.language||e.userLanguage||e.browserLanguage||e.systemLanguage;if(void 0!==t&&n.push([t]),Array.isArray(e.languages))uc()&&function S4(){var e=window;return Jt([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}()||n.push(e.languages);else if("string"==typeof e.languages){var r=e.languages;r&&n.push(r.split(","))}return n},colorDepth:function r8(){return window.screen.colorDepth},deviceMemory:function i8(){return Yr(fr(navigator.deviceMemory),void 0)},screenResolution:function s8(){if(!(hr()&&fc()&&dc()))return function o8(){var e=screen,n=function(r){return Yr(Yg(r),null)},t=[n(e.width),n(e.height)];return t.sort().reverse(),t}()},hardwareConcurrency:function f8(){return Yr(Yg(navigator.hardwareConcurrency),void 0)},timezone:function h8(){var e,n=null===(e=window.Intl)||void 0===e?void 0:e.DateTimeFormat;if(n){var t=(new n).resolvedOptions().timeZone;if(t)return t}var r=-function p8(){var e=(new Date).getFullYear();return Math.max(fr(new Date(e,0,1).getTimezoneOffset()),fr(new Date(e,6,1).getTimezoneOffset()))}();return"UTC".concat(r>=0?"+":"").concat(r)},sessionStorage:function m8(){try{return!!window.sessionStorage}catch{return!0}},localStorage:function g8(){try{return!!window.localStorage}catch{return!0}},indexedDB:function y8(){if(!mM()&&!function D4(){var e=window,n=navigator;return Jt(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in n,"msSaveBlob"in n])>=3&&!mM()}())try{return!!window.indexedDB}catch{return!0}},openDatabase:function _8(){return!!window.openDatabase},cpuClass:function v8(){return navigator.cpuClass},platform:function C8(){var e=navigator.platform;return"MacIntel"===e&&hr()&&!Kg()?function I4(){if("iPad"===navigator.platform)return!0;var e=screen,n=e.width/e.height;return Jt(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,n>.65&&n<1.53])>=2}()?"iPad":"iPhone":e},plugins:function G4(){var e=navigator.plugins;if(e){for(var n=[],t=0;t<e.length;++t){var r=e[t];if(r){for(var i=[],s=0;s<r.length;++s){var o=r[s];i.push({type:o.type,suffixes:o.suffixes})}n.push({name:r.name,description:r.description,mimeTypes:i})}}return n}},touchSupport:function e8(){var t,e=navigator,n=0;void 0!==e.maxTouchPoints?n=Yg(e.maxTouchPoints):void 0!==e.msMaxTouchPoints&&(n=e.msMaxTouchPoints);try{document.createEvent("TouchEvent"),t=!0}catch{t=!1}return{maxTouchPoints:n,touchEvent:t,touchStart:"ontouchstart"in window}},vendor:function b8(){return navigator.vendor||""},vendorFlavors:function E8(){for(var e=[],n=0,t=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];n<t.length;n++){var r=t[n],i=window[r];i&&"object"==typeof i&&e.push(r)}return e.sort()},cookiesEnabled:function w8(){var e=document;try{e.cookie="cookietest=1; SameSite=Strict;";var n=-1!==e.cookie.indexOf("cookietest=");return e.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",n}catch{return!1}},colorGamut:function A8(){for(var e=0,n=["rec2020","p3","srgb"];e<n.length;e++){var t=n[e];if(matchMedia("(color-gamut: ".concat(t,")")).matches)return t}},invertedColors:function x8(){return!!bM("inverted")||!bM("none")&&void 0},forcedColors:function N8(){return!!EM("active")||!EM("none")&&void 0},monochrome:function P8(){if(matchMedia("(min-monochrome: 0)").matches){for(var e=0;e<=100;++e)if(matchMedia("(max-monochrome: ".concat(e,")")).matches)return e;throw new Error("Too high value")}},contrast:function O8(){return Io("no-preference")?0:Io("high")||Io("more")?1:Io("low")||Io("less")?-1:Io("forced")?10:void 0},reducedMotion:function R8(){return!!wM("reduce")||!wM("no-preference")&&void 0},reducedTransparency:function F8(){return!!DM("reduce")||!DM("no-preference")&&void 0},hdr:function L8(){return!!SM("high")||!SM("standard")&&void 0},math:function V8(){var L,n=Se.acosh||en,t=Se.asin||en,r=Se.asinh||en,i=Se.atanh||en,s=Se.atan||en,o=Se.sin||en,a=Se.sinh||en,c=Se.cos||en,l=Se.cosh||en,u=Se.tan||en,d=Se.tanh||en,f=Se.exp||en,h=Se.expm1||en,p=Se.log1p||en;return{acos:(Se.acos||en)(.12312423423423424),acosh:n(1e308),acoshPf:(L=1e154,Se.log(L+Se.sqrt(L*L-1))),asin:t(.12312423423423424),asinh:r(1),asinhPf:Se.log(1+Se.sqrt(2)),atanh:i(.5),atanhPf:Se.log(3)/2,atan:s(.5),sin:o(-1e300),sinh:a(1),sinhPf:Se.exp(1)-1/Se.exp(1)/2,cos:c(10.000000000123),cosh:l(1),coshPf:(Se.exp(1)+1/Se.exp(1))/2,tan:u(-1e300),tanh:d(1),tanhPf:(Se.exp(2)-1)/(Se.exp(2)+1),exp:f(1),expm1:h(1),expm1Pf:Se.exp(1)-1,log1p:p(10),log1pPf:Se.log(11),powPI:Se.pow(Se.PI,-100)}},pdfViewerEnabled:function U8(){return navigator.pdfViewerEnabled},architecture:function $8(){var e=new Float32Array(1),n=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],n[3]},applePay:function G8(){var e=window.ApplePaySession;if("function"!=typeof e?.canMakePayments)return-1;if(function j4(){for(var e=window;;){var n=e.parent;if(!n||n===e)return!1;try{if(n.location.origin!==e.location.origin)return!0}catch(t){if(t instanceof Error&&"SecurityError"===t.name)return!0;throw t}e=n}}())return-3;try{return e.canMakePayments()?1:0}catch(n){return function q8(e){if(e instanceof Error&&"InvalidAccessError"===e.name&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}(n)}},privateClickMeasurement:function W8(){var e,n=document.createElement("a"),t=null!==(e=n.attributionSourceId)&&void 0!==e?e:n.attributionsourceid;return void 0===t?void 0:String(t)},audioBaseLatency:function i5(){var e;return Qg()||hr()?window.AudioContext&&null!==(e=(new AudioContext).baseLatency)&&void 0!==e?e:-1:-2},webGlBasics:function J8(e){var n,t,r,i,s,o,c=AM(e.cache);if(!c)return-1;if(!kM(c))return-2;var l=NM()?null:c.getExtension(IM);return{version:(null===(n=c.getParameter(c.VERSION))||void 0===n?void 0:n.toString())||"",vendor:(null===(t=c.getParameter(c.VENDOR))||void 0===t?void 0:t.toString())||"",vendorUnmasked:l?null===(r=c.getParameter(l.UNMASKED_VENDOR_WEBGL))||void 0===r?void 0:r.toString():"",renderer:(null===(i=c.getParameter(c.RENDERER))||void 0===i?void 0:i.toString())||"",rendererUnmasked:l?null===(s=c.getParameter(l.UNMASKED_RENDERER_WEBGL))||void 0===s?void 0:s.toString():"",shadingLanguageVersion:(null===(o=c.getParameter(c.SHADING_LANGUAGE_VERSION))||void 0===o?void 0:o.toString())||""}},webGlExtensions:function e5(e){var t=AM(e.cache);if(!t)return-1;if(!kM(t))return-2;var r=t.getSupportedExtensions(),i=t.getContextAttributes(),s=[],o=[],a=[],c=[],l=[];if(i)for(var u=0,d=Object.keys(i);u<d.length;u++){var f=d[u];o.push("".concat(f,"=").concat(i[f]))}for(var p=0,m=xM(t);p<m.length;p++){var _=t[g=m[p]];a.push("".concat(g,"=").concat(_).concat(Z8.has(_)?"=".concat(t.getParameter(_)):""))}if(r)for(var y=0,w=r;y<w.length;y++){var D=w[y];if(!(D===IM&&NM()||"WEBGL_polygon_mode"===D&&(uc()||hr()))){var M=t.getExtension(D);if(!M){s.push(D);continue}for(var F=0,j=xM(M);F<j.length;F++){var g;_=M[g=j[F]],c.push("".concat(g,"=").concat(_).concat(Y8.has(_)?"=".concat(t.getParameter(_)):""))}}}for(var L=0,Ye=K8;L<Ye.length;L++)for(var et=Ye[L],ct=0,nn=Q8;ct<nn.length;ct++){var Mi=nn[ct],Wn=t5(t,et,Mi);l.push("".concat(et,".").concat(Mi,"=").concat(Wn.join(",")))}return c.sort(),a.sort(),{contextAttributes:o,parameters:a,shaderPrecisions:l,extensions:r,extensionParameters:c,unsupportedExtensions:s}}},a5="$ if upgrade to Pro: https://fpjs.dev/pro";function PM(e){return JSON.stringify(e,function(n,t){return t instanceof Error?function C4(e){var n;return ld({name:e.name,message:e.message,stack:null===(n=e.stack)||void 0===n?void 0:n.split("\n")},e)}(t):t},2)}function OM(e){return function v4(e,n){var u,t=function p4(e){for(var n=new Uint8Array(e.length),t=0;t<e.length;t++){var r=e.charCodeAt(t);if(r>127)return(new TextEncoder).encode(e);n[t]=r}return n}(e),r=[0,t.length],i=r[1]%16,s=r[1]-i,o=[0,n=n||0],a=[0,n],c=[0,0],l=[0,0];for(u=0;u<s;u+=16)c[0]=t[u+4]|t[u+5]<<8|t[u+6]<<16|t[u+7]<<24,c[1]=t[u]|t[u+1]<<8|t[u+2]<<16|t[u+3]<<24,l[0]=t[u+12]|t[u+13]<<8|t[u+14]<<16|t[u+15]<<24,l[1]=t[u+8]|t[u+9]<<8|t[u+10]<<16|t[u+11]<<24,zn(c,md),To(c,31),zn(c,gd),Ze(o,c),To(o,27),bi(o,a),zn(o,hM),bi(o,y4),zn(l,gd),To(l,33),zn(l,md),Ze(a,l),To(a,31),bi(a,o),zn(a,hM),bi(a,_4);c[0]=0,c[1]=0,l[0]=0,l[1]=0;var d=[0,0];switch(i){case 15:d[1]=t[u+14],In(d,48),Ze(l,d);case 14:d[1]=t[u+13],In(d,40),Ze(l,d);case 13:d[1]=t[u+12],In(d,32),Ze(l,d);case 12:d[1]=t[u+11],In(d,24),Ze(l,d);case 11:d[1]=t[u+10],In(d,16),Ze(l,d);case 10:d[1]=t[u+9],In(d,8),Ze(l,d);case 9:d[1]=t[u+8],Ze(l,d),zn(l,gd),To(l,33),zn(l,md),Ze(a,l);case 8:d[1]=t[u+7],In(d,56),Ze(c,d);case 7:d[1]=t[u+6],In(d,48),Ze(c,d);case 6:d[1]=t[u+5],In(d,40),Ze(c,d);case 5:d[1]=t[u+4],In(d,32),Ze(c,d);case 4:d[1]=t[u+3],In(d,24),Ze(c,d);case 3:d[1]=t[u+2],In(d,16),Ze(c,d);case 2:d[1]=t[u+1],In(d,8),Ze(c,d);case 1:d[1]=t[u],Ze(c,d),zn(c,md),To(c,31),zn(c,gd),Ze(o,c)}return Ze(o,r),Ze(a,r),bi(o,a),bi(a,o),fM(o),fM(a),bi(o,a),bi(a,o),("00000000"+(o[0]>>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)+("00000000"+(a[0]>>>0).toString(16)).slice(-8)+("00000000"+(a[1]>>>0).toString(16)).slice(-8)}(function d5(e){for(var n="",t=0,r=Object.keys(e).sort();t<r.length;t++){var i=r[t],s=e[i],o="error"in s?"error":JSON.stringify(s.value);n+="".concat(n?"|":"").concat(i.replace(/([:|\\])/g,"\\$1"),":").concat(o)}return n}(e))}function h5(e){return void 0===e&&(e=50),function u4(e,n){void 0===n&&(n=1/0);var t=window.requestIdleCallback;return t?new Promise(function(r){return t.call(window,function(){return r()},{timeout:n})}):hd(Math.min(e,n))}(e,2*e)}function p5(e,n){var t=Date.now();return{get:function(r){return Gn(this,void 0,void 0,function(){var i,s,o;return ur(this,function(a){switch(a.label){case 0:return i=Date.now(),[4,e()];case 1:return s=a.sent(),o=function f5(e){var n,t=function c5(e){var n=function l5(e){if(Qg())return.4;if(hr())return!Kg()||fc()&&dc()?.3:.5;var n="value"in e.platform?e.platform.value:"";return/^Win/.test(n)?.6:/^Mac/.test(n)?.5:.7}(e),t=function u5(e){return dM(.99+.01*e,1e-4)}(n);return{score:n,comment:a5.replace(/\$/g,"".concat(t))}}(e);return{get visitorId(){return void 0===n&&(n=OM(this.components)),n},set visitorId(r){n=r},confidence:t,components:e,version:"4.5.1"}}(s),(n||r?.debug)&&console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(o.version,"\nuserAgent: ").concat(navigator.userAgent,"\ntimeBetweenLoadAndGet: ").concat(i-t,"\nvisitorId: ").concat(o.visitorId,"\ncomponents: ").concat(PM(s),"\n```")),[2,o]}})})}}}var y5={load:function g5(e){var n;return void 0===e&&(e={}),Gn(this,void 0,void 0,function(){var r,i;return ur(this,function(s){switch(s.label){case 0:return(!(null!==(n=e.monitoring)&&void 0!==n)||n)&&function m5(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat("4.5.1","/npm-monitoring"),!0),e.send()}catch(n){console.error(n)}}(),r=e.debug,[4,h5(e.delayFallback)];case 1:return s.sent(),i=function o5(e){return function w4(e,n,t,r){var i=Object.keys(e).filter(function(o){return function f4(e,n){return!function d4(e,n){for(var t=0,r=e.length;t<r;++t)if(e[t]===n)return!0;return!1}(e,n)}(t,o)}),s=lc(uM(i,function(o){return function E4(e,n){var t=lc(new Promise(function(r){var i=Date.now();lM(e.bind(null,n),function(){for(var s=[],o=0;o<arguments.length;o++)s[o]=arguments[o];var a=Date.now()-i;if(!s[0])return r(function(){return{error:s[1],duration:a}});var c=s[1];if(function pM(e){return"function"!=typeof e}(c))return r(function(){return{value:c,duration:a}});r(function(){return new Promise(function(l){var u=Date.now();lM(c,function(){for(var d=[],f=0;f<arguments.length;f++)d[f]=arguments[f];var h=a+Date.now()-u;if(!d[0])return l({error:d[1],duration:h});l({value:d[1],duration:h})})})})})}));return function(){return t.then(function(i){return i()})}}(e[o],n)},r));return function(){return Gn(this,void 0,void 0,function(){var c,l,u,d;return ur(this,function(f){switch(f.label){case 0:return[4,s];case 1:return[4,uM(f.sent(),function(h){return lc(h())},r)];case 2:return c=f.sent(),[4,Promise.all(c)];case 3:for(l=f.sent(),u={},d=0;d<i.length;++d)u[i[d]]=l[d];return[2,u]}})})}}(s5,e,[])}({cache:{},debug:r}),[2,p5(i,r)]}})})},hashComponents:OM,componentsToDebugString:PM},RM=function(e){return e[e.SMALL=1]="SMALL",e[e.MEDIUM=2]="MEDIUM",e[e.LARGE=3]="LARGE",e[e.EXTRA_LARGE=4]="EXTRA_LARGE",e[e.FULL_SCREEN=5]="FULL_SCREEN",e}(RM||{});const C5=y5.load();function b5(){return new nt(e=>{(function E5(){return ry.apply(this,arguments)})().then(n=>{e.next(n),e.complete()}).catch(n=>{e.error(n)})})}function ry(){return(ry=ss(function*(){const e={};e.browserData=function _5(){const e=screen.height||window.innerHeight,n=screen.width||window.innerWidth,t=RM.FULL_SCREEN;return{timezoneOffsetUtcMinutes:(new Date).getTimezoneOffset(),locale:navigator.language,userAgent:navigator.userAgent,javaEnabled:navigator.javaEnabled()||!1,javaScriptEnabled:!0,colorDepth:screen.colorDepth,width:n,height:e,challengeWindowSize:t}}();try{const n=yield(yield C5).get();e.id=n.visitorId,e.fonts=n.components.fonts.value;const t=navigator,r=t.getBattery?t.getBattery():void 0;let i;r&&(i=yield r,e.batteryLevelAndChargingStatus=i?`level: ${i.level??"unknown"}; charging: ${i.charging??"unknown"}`:void 0);const s=t.connection||t.mozConnection||t.webkitConnection;e.networkParameters=s?`type: ${s.type??"unknown"}; effectiveType: ${s.effectiveType??"unknown"}`:void 0}catch{}return e})).apply(this,arguments)}class _d{constructor(){this.emitEnabled=!0,this.optionalEmitEnabled=!0,this.emitter=new ve}emit(n,t){this.emitEnabled&&(!t||t&&this.optionalEmitEnabled)&&this.emitter.emit(n)}}let xe=(()=>{class e{constructor(){this.componentsStates={availableCardBrands:se({isRequired:!1,canShowError:!1,isValid:!0,filled:!0,enabled:!0}),cardList:se({isRequired:!1,canShowError:!1,isValid:!0,filled:!0,enabled:!0}),cardForm:se({isRequired:!0,canShowError:!1,isValid:!0,filled:!1,enabled:!0}),additionalForm:se({isRequired:!1,canShowError:!1,isValid:!0,filled:!1,enabled:!0}),chargeTerms:se({isRequired:!0,canShowError:!1,isValid:!0,filled:!1,enabled:!0}),payButton:se({isRequired:!0,canShowError:!1,isValid:!0,filled:!1,enabled:!0}),apmList:se({isRequired:!1,canShowError:!1,isValid:!0,filled:!0,enabled:!0}),userPreferences:se({isRequired:!0,canShowError:!1,isValid:!0,filled:!1,enabled:!0}),merchantInfo:se({isRequired:!1,canShowError:!1,isValid:!0,filled:!0,enabled:!0}),protectedBy:se({isRequired:!1,canShowError:!1,isValid:!0,filled:!0,enabled:!0}),master:se({isRequired:!0,canShowError:!1,isValid:!0,filled:!1,enabled:!0})},this.visibility={availableCardBrands:ce(()=>this.componentsStates.availableCardBrands().enabled&&!!this.data.settings()?.components?.some(t=>"available-card-brands"===t)),cardList:ce(()=>this.componentsStates.cardList().enabled&&!!this.data.settings()?.components?.some(t=>"card-list"===t)),cardForm:ce(()=>this.componentsStates.cardForm().enabled&&!!this.data.settings()?.components?.some(t=>"requisites"===t)),additionalForm:ce(()=>this.componentsStates.cardForm().enabled&&this.componentsStates.additionalForm().enabled&&!!this.data.settings()?.components?.some(t=>"phone-number"===t)),chargeTerms:ce(()=>this.componentsStates.chargeTerms().enabled&&!!this.data.settings()?.components?.some(t=>"charge-terms"===t)&&!this.visibility.noMethods()),payButton:ce(()=>(this.componentsStates.cardList().enabled||this.componentsStates.cardForm().enabled)&&this.componentsStates.payButton().enabled&&!!this.data.settings()?.components?.some(t=>"pay-button"===t)),apmList:ce(()=>this.componentsStates.apmList().enabled&&!!this.data.settings()?.components?.some(t=>"apm-list"===t)),userPreferences:ce(()=>this.componentsStates.userPreferences().enabled&&!!this.data.settings()?.components?.some(t=>"user-preferences"===t)&&!this.visibility.noMethods()),merchantInfo:ce(()=>this.componentsStates.merchantInfo().enabled&&!!this.data.settings()?.components?.some(t=>"merchant-info"===t)),protectedBy:ce(()=>this.componentsStates.protectedBy().enabled&&!!this.data.settings()?.components?.some(t=>"protected-by"===t)),noMethods:ce(()=>!this.componentsStates.cardForm().enabled&&!this.componentsStates.cardList().enabled&&!this.componentsStates.apmList().enabled),master:ce(()=>this.componentsStates.master().enabled&&!!this.data.settings()?.components?.some(t=>"master"===t)&&!this.visibility.noMethods())},this.data={payment:se(void 0),settings:se(void 0),userProvidedInfo:se({}),loadedPaymentSystems:se([]),loadedExistingCards:se([]),deviceInfo:se(void 0),state:se({type:"empty",payload:void 0}),paymentSystemsLoading:se(!1),cardsLoading:se(!1)},this.computed={isLoading:ce(()=>this.data.paymentSystemsLoading()||this.data.cardsLoading()),paymentAvailability:ce(()=>{const t=this.data.settings(),r={canPay:{byCard:!1,byApm:!1},isPayButtonDisabled:!1};if(!t)return r;let i=!0,s=!0;for(let c in this.componentsStates)if(this.componentsStates.hasOwnProperty(c)){const l=this.componentsStates[c]();i=i&&(l.isValid||!l.enabled),s=s&&(l.filled||!l.enabled)}const o=this.componentsStates.chargeTerms(),a=this.componentsStates.master();return r.canPay.byApm=t.components.includes("master")?!a.enabled||a.isValid:!t.components.includes("charge-terms")||!o.enabled||o.isValid,"disabled"!=t.requiredFieldsBehavior?.buttonStateUntilFilled||s?"hidden-enabled"!=t.requiredFieldsBehavior?.buttonStateUntilFilled||s?i?{canPay:{...r.canPay,byCard:!0}}:r:{...r,buttonDisableClass:"hidden-enabled-element",elementDisableClass:"hidden-enabled-element"}:{...r,elementDisableClass:"disabled-element",isPayButtonDisabled:!0}})},this.events={analytics:new _d,error:new _d,close:new _d,paid:new _d},this.callbacks={},this.clients={googlePay:void 0}}updateCanShowError(t){for(let r in this.componentsStates)this.componentsStates.hasOwnProperty(r)&&this.componentsStates[r].update(i=>i.canShowError===t?i:{...i,canShowError:t})}updateCanShowErrorForApm(t){this.componentsStates.chargeTerms.update(r=>({...r,canShowError:t})),this.componentsStates.master.update(r=>({...r,canShowError:t}))}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})();function vd(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}function iy(e,...n){if(!n.length)return e;const t=n.shift();if(vd(e)&&vd(t))for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){const i=t[r];e[r]=vd(i)&&vd(e[r])?iy(e[r],i):i}return iy(e,...n)}function w5(...e){return iy({},...e)}function FM(e){return"string"==typeof e||e instanceof String?JSON.parse(e):e}const LM={header:"Checkout",errors:{notCheckedCheckboxes:"Please check these boxes",invalidCardHolder:"Invalid cardholder name",invalidCardNumber:"Invalid card number",invalidCardExpiration:"Invalid card date",invalidCvv:"Invalid card code",invalidPhoneNumber:"Invalid phone number"},requisites:{paymentDetailsHeader:"Payment details",cardNumberPlaceholder:"Card number",cardExpirationPlaceholder:"MM/YY",cvvHint:"CVV (Card Verification Value)",cardHolderHeader:"Name on card",cardHolderPlaceholder:"Name on card"},phone:{header:"Phone",placeholder:"Phone number"},apms:{or:"OR",orUseAlternative:"or use alternative methods"},totalHeader:"Total",pay:"Pay",availableCardBrandsHeader:"Payment methods",transactionProtectedBy:"Your transactions are protected by",existingCards:{manageCardsHeader:"Manage cards",addNewCard:"Add new card",removeCard:"Remove card"},paymentResult:{success:"We placed your order",failure:{main:"Something went wrong",paymentFailed:"Payment failed."}},paymentProcessing:"payment processing",notifications:{cardDeleted:{title:"Successful",text:"Card has been deleted"},error:{default:{title:"Attention!",text:"Unable to process the payment"}}},noAvailablePaymentMethods:"No available payment methods...",close:"Close",master:{selectAll:""},confirmPayment:"Confirm payment"},S5={urls:{},availableCardBrands:["mastercard","visa"],chargeTerms:void 0,isCloseButtonVisible:!0,isProblemTipsListVisible:!1,isTaxVisible:!1,isSignatureRequired:!1,isHeaderVisible:!0,closePaymentRedirect:!0,languageSettings:{code:"en-US",languages:{"en-US":LM,"es-ES":{header:"Verificar",errors:{notCheckedCheckboxes:"Debe marcar estas casillas",invalidCardHolder:"Nombre del titular de la tarjeta no v\xe1lido",invalidCardNumber:"N\xfamero de tarjeta no v\xe1lido",invalidCardExpiration:"Fecha de la tarjeta no v\xe1lida",invalidCvv:"C\xf3digo de la tarjeta no v\xe1lido",invalidPhoneNumber:"N\xfamero de tel\xe9fono no v\xe1lido"},requisites:{paymentDetailsHeader:"Detalles del pago",cardNumberPlaceholder:"N\xfamero de tarjeta",cardExpirationPlaceholder:"MM/AA",cvvHint:"CVV (Valor de verificaci\xf3n de la tarjeta)",cardHolderHeader:"Nombre en la tarjeta",cardHolderPlaceholder:"Nombre en la tarjeta"},phone:{header:"Tel\xe9fono",placeholder:"N\xfamero de tel\xe9fono"},apms:{or:"O",orUseAlternative:"o usar m\xe9todos alternativos"},totalHeader:"Total",pay:"Pagar",availableCardBrandsHeader:"M\xe9todos de pago",transactionProtectedBy:"Sus transacciones est\xe1n protegidas por",existingCards:{manageCardsHeader:"Gestionar tarjetas",addNewCard:"A\xf1adir nueva tarjeta",removeCard:"Eliminar tarjeta"},paymentResult:{success:"Hemos realizado su pedido",failure:{main:"Algo sali\xf3 mal",paymentFailed:"El pago no se ha procesado."}},paymentProcessing:"Procesando el pago\u2026",notifications:{cardDeleted:{title:"Exitoso",text:"Se ha eliminado la tarjeta."},error:{default:{title:"\xa1Atenci\xf3n!",text:"No se ha podido procesar el pago."}}},noAvailablePaymentMethods:"No hay m\xe9todos de pago disponibles\u2026",close:"Cerrar",master:{selectAll:""},confirmPayment:"Confirmar el pago"},"fr-FR":{header:"Paiement",errors:{notCheckedCheckboxes:"Veuillez cocher les cases suivantes",invalidCardHolder:"Nom du titulaire de la carte invalide",invalidCardNumber:"Num\xe9ro de carte non valide",invalidCardExpiration:"Date de la carte invalide",invalidCvv:"Code de carte invalide",invalidPhoneNumber:"Num\xe9ro de t\xe9l\xe9phone invalide"},requisites:{paymentDetailsHeader:"Modalit\xe9s de paiement",cardNumberPlaceholder:"Num\xe9ro de carte",cardExpirationPlaceholder:"MM/AA",cvvHint:"CVV (Valeur de v\xe9rification de la carte)",cardHolderHeader:"Nom sur la carte",cardHolderPlaceholder:"Nom sur la carte"},phone:{header:"T\xe9l\xe9phone",placeholder:"Num\xe9ro de t\xe9l\xe9phone"},apms:{or:"OU",orUseAlternative:"ou utilisez des m\xe9thodes alternatives"},totalHeader:"Total",pay:"Payer",availableCardBrandsHeader:"Modes de paiement",transactionProtectedBy:"Vos transactions sont prot\xe9g\xe9es par",existingCards:{manageCardsHeader:"G\xe9rer les cartes",addNewCard:"Ajoutez une nouvelle carte",removeCard:"Supprimer la carte"},paymentResult:{success:"Nous avons pass\xe9 votre commande",failure:{main:"Une erreur est survenue",paymentFailed:"Le paiement a \xe9chou\xe9."}},paymentProcessing:"traitement du paiement",notifications:{cardDeleted:{title:"R\xe9ussie",text:"La carte a \xe9t\xe9 supprim\xe9e"},error:{default:{title:"Attention !",text:"Impossible de traiter le paiement"}}},noAvailablePaymentMethods:"Aucune m\xe9thode de paiement disponible...",close:"Fermer",master:{selectAll:""},confirmPayment:"Confirmer le Paiement"}}},merchantInfo:void 0,userPreferences:void 0,components:["available-card-brands","no-methods","card-list","requisites","phone-number","charge-terms","pay-button","apm-list","user-preferences","merchant-info","protected-by"],resultComponentsStructure:{aboveResult:["available-card-brands"],belowResult:["merchant-info","protected-by"]},events:{analytics:{optional:!1,required:!1},error:!0},requiredFieldsBehavior:{buttonStateUntilFilled:"enabled",markAsInvalidUntilCorrect:!1,showStars:!1},apmsCollapse:!1,googlePay:{allowedAuthMethods:["CRYPTOGRAM_3DS","PAN_ONLY"],button:{buttonSizeMode:"fill",buttonRadius:4}}};function T5(e,n){if(1&e&&(S(0,"div",1),ge(1,"img",2),T()),2&e){const t=x();C(),P("src",t.src,ga)("alt",t.alt)}}let Ao=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=Me({type:e,selectors:[["moto-picture"]],inputs:{src:"src",alt:"alt"},decls:1,vars:1,consts:[["class","__ndb-picture",4,"ngIf"],[1,"__ndb-picture"],[1,"__ndb-picture-tag",3,"src","alt"]],template:function(r,i){1&r&&ee(0,T5,2,2,"div",0),2&r&&P("ngIf",i.src)},dependencies:[nd],styles:[".__ndb-picture[_ngcontent-%COMP%]{height:inherit;width:inherit}.__ndb-picture-tag[_ngcontent-%COMP%]{height:100%;width:100%;object-fit:cover}"],changeDetection:0})}return e})();var xo=function(e){return e.default="default-card-icon",e.mastercard="master-card-icon",e.maestro="maestro",e.visa="visa-card-icon-new",e.discover="discover",e.jcb="jcb",e["american-express"]="american-express",e.unionpay="unionpay",e}(xo||{});const No_customHeaders_skipToastr="X-Skip-Toastr";let M5=(()=>{class e{transform(t){const r=xo[t];let i=r?.toString();if(i&&(r==xo.visa&&(i+="-brand"),r==xo.mastercard&&(i+="-brand"),r))return`https://cdn.motopays.com/images/${i}.svg`}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275pipe=ht({name:"brandLogo",type:e,pure:!0})}return e})();function I5(e,n){1&e&&ge(0,"moto-picture",4),2&e&&P("src",n)}function A5(e,n){if(1&e&&(ee(0,I5,1,1,"moto-picture",4),Ce(1,"brandLogo")),2&e){let t;ie((t=Ya(1,1,n.$implicit))?0:-1,t)}}let BM=(()=>{class e{constructor(t){this.context=t}ngOnInit(){this.settings=this.context.data.settings}static#e=this.\u0275fac=function(r){return new(r||e)(v(xe))};static#t=this.\u0275cmp=Me({type:e,selectors:[["moto-available-card-brands"]],decls:8,vars:1,consts:[[1,"__ndb-brands"],[1,"__ndb-brands-paymentsheader"],[1,"fz-14","fw-500"],[1,"__ndb-brands-payments"],[1,"__ndb-brands-payments-logo",3,"src"]],template:function(r,i){if(1&r&&(Tn(0),S(1,"div",0)(2,"div",1)(3,"h6",2),$(4),T()(),S(5,"div",3),dn(6,A5,2,3,null,null,ar),T()()),2&r){const s=i.settings();C(4),ke(" ",s.language.availableCardBrandsHeader," "),C(2),fn(s.availableCardBrands)}},dependencies:[Ao,M5],styles:["[_ngcontent-%COMP%]:root{--ndb-button-bg: #2c8ee8;--ndb-button-disabled-bg: rgba(201, 204, 216, .3);--ndb-button-hover-bg: #1467b4;--ndb-button-color: #fff;--ndb-card-border-color: #c9ccd8}.__ndb-brands[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px}.__ndb-brands-payments[_ngcontent-%COMP%]{gap:10px;display:flex;justify-content:center}.__ndb-brands-payments-logo[_ngcontent-%COMP%]{height:24px;width:36px}.__ndb-brands-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:10px}.__ndb-brands-paymentsheader[_ngcontent-%COMP%]{justify-content:center;display:flex;align-items:center;gap:10px}"],changeDetection:0})}return e})();class x5{constructor(n,t=se(!1)){this.item=n,this.selected=t}setSelected(n){this.selected.set(n)}}var Q=function(e){return e[e.State=0]="State",e[e.Transition=1]="Transition",e[e.Sequence=2]="Sequence",e[e.Group=3]="Group",e[e.Animate=4]="Animate",e[e.Keyframes=5]="Keyframes",e[e.Style=6]="Style",e[e.Trigger=7]="Trigger",e[e.Reference=8]="Reference",e[e.AnimateChild=9]="AnimateChild",e[e.AnimateRef=10]="AnimateRef",e[e.Query=11]="Query",e[e.Stagger=12]="Stagger",e}(Q||{});const Kr="*";function ko(e,n){return{type:Q.Trigger,name:e,definitions:n,options:{}}}function pr(e,n=null){return{type:Q.Animate,styles:n,timings:e}}function Je(e){return{type:Q.Style,styles:e,offset:null}}function hc(e,n,t){return{type:Q.State,name:e,styles:n,options:t}}function mr(e,n,t=null){return{type:Q.Transition,expr:e,animation:n,options:t}}class pc{constructor(n=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const t="start"==n?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}class jM{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let t=0,r=0,i=0;const s=this.players.length;0==s?queueMicrotask(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++t==s&&this._onFinish()}),o.onDestroy(()=>{++r==s&&this._onDestroy()}),o.onStart(()=>{++i==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const t=n*this.totalTime;this.players.forEach(r=>{const i=r.totalTime?Math.min(1,t/r.totalTime):1;r.setPosition(i)})}getPosition(){const n=this.players.reduce((t,r)=>null===t||r.totalTime>t.totalTime?r:t,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const t="start"==n?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}const mc_animation_defaultAnimateMc=0;class oy{constructor(n){this.animationTime=mc_animation_defaultAnimateMc,Object.assign(this,n)}}const F5=ko("ANHeight",[mr(":enter",[Je({overflow:"hidden",height:"0px"}),pr(mc_animation_defaultAnimateMc,Je({height:"*",overflow:"hidden"}))]),mr(":leave",[Je({height:"*",overflow:"hidden"}),pr(mc_animation_defaultAnimateMc,Je({height:"0px",overflow:"hidden"}))])]),L5=ko("ANScale",[mr(":enter",[Je({opacity:0,transform:"scale(0)"}),pr(mc_animation_defaultAnimateMc,Je({opacity:1,transform:"scale(1)"}))]),mr(":leave",pr(mc_animation_defaultAnimateMc,Je({opacity:0,transform:"scale(0)"})))]),Cd=e=>{const n=new oy({animationName:"ANTransform",fromStyles:{opacity:"0",transform:"translateY(-100%)"},toStyles:{opacity:"1",transform:"translateY(0%)"}}),t=Object.assign(n,e),{animationName:r,animationTime:i,fromStyles:s,toStyles:o}=t;return ko(r,[mr(":enter",[Je(s),pr(i,Je(o))]),mr(":leave",[Je(o),pr(i,Je(s))])])},V5=e=>{const n=new oy({animationName:"ANStates",fromState:"a",toState:"b"}),t=Object.assign(n,e),{animationName:r,animationTime:i,fromStyles:s,toStyles:o,fromState:a,toState:c}=t;return ko(r,[hc(a,Je(s)),hc(c,Je(o)),mr(`${a}<=>${c}`,pr(i))])},B5=e=>{const n=new oy({animationName:"ANStates"}),t=Object.assign(n,e),{animationName:r,animationTime:i,fromStyles:s,toStyles:o}=t;return ko(r,[mr(":enter",[Je(s),pr(i,Je(o))]),mr(":leave",[Je(o),pr(i,Je(s))])])};var j5=lt(634),ay=lt.n(j5);function An(...e){return Ci(e,dd(e))}function Po(e){return gn((n,t)=>{let s,r=null,i=!1;r=n.subscribe(sn(t,void 0,void 0,o=>{s=dr(e(o,Po(e)(n))),r?(r.unsubscribe(),r=null,s.subscribe(t)):i=!0})),i&&(r.unsubscribe(),r=null,s.subscribe(t))})}function Oo(e,n){return Xe(n)?ud(e,n,1):ud(e,1)}function HM(e,n){return gn((t,r)=>{let i=0;t.subscribe(sn(r,s=>e.call(n,s,i++)&&r.next(s)))})}class bd{}class Ed{}class xn{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?"string"==typeof n?this.lazyInit=()=>{this.headers=new Map,n.split("\n").forEach(t=>{const r=t.indexOf(":");if(r>0){const i=t.slice(0,r),s=i.toLowerCase(),o=t.slice(r+1).trim();this.maybeSetNormalizedName(i,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((t,r)=>{this.setHeaderEntries(r,t)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([t,r])=>{this.setHeaderEntries(t,r)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const t=this.headers.get(n.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,t){return this.clone({name:n,value:t,op:"a"})}set(n,t){return this.clone({name:n,value:t,op:"s"})}delete(n,t){return this.clone({name:n,value:t,op:"d"})}maybeSetNormalizedName(n,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,n)}init(){this.lazyInit&&(this.lazyInit instanceof xn?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(t=>{this.headers.set(t,n.headers.get(t)),this.normalizedNames.set(t,n.normalizedNames.get(t))})}clone(n){const t=new xn;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof xn?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([n]),t}applyUpdate(n){const t=n.name.toLowerCase();switch(n.op){case"a":case"s":let r=n.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(n.name,t);const i=("a"===n.op?this.headers.get(t):void 0)||[];i.push(...r),this.headers.set(t,i);break;case"d":const s=n.value;if(s){let o=this.headers.get(t);if(!o)return;o=o.filter(a=>-1===s.indexOf(a)),0===o.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,o)}else this.headers.delete(t),this.normalizedNames.delete(t)}}setHeaderEntries(n,t){const r=(Array.isArray(t)?t:[t]).map(s=>s.toString()),i=n.toLowerCase();this.headers.set(i,r),this.maybeSetNormalizedName(n,i)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>n(this.normalizedNames.get(t),this.headers.get(t)))}}class $5{encodeKey(n){return UM(n)}encodeValue(n){return UM(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const z5=/%(\d[a-f0-9])/gi,q5={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function UM(e){return encodeURIComponent(e).replace(z5,(n,t)=>q5[t]??n)}function wd(e){return`${e}`}class Qr{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new $5,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function G5(e,n){const t=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(i=>{const s=i.indexOf("="),[o,a]=-1==s?[n.decodeKey(i),""]:[n.decodeKey(i.slice(0,s)),n.decodeValue(i.slice(s+1))],c=t.get(o)||[];c.push(a),t.set(o,c)}),t}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(t=>{const r=n.fromObject[t],i=Array.isArray(r)?r.map(wd):[wd(r)];this.map.set(t,i)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const t=this.map.get(n);return t?t[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,t){return this.clone({param:n,value:t,op:"a"})}appendAll(n){const t=[];return Object.keys(n).forEach(r=>{const i=n[r];Array.isArray(i)?i.forEach(s=>{t.push({param:r,value:s,op:"a"})}):t.push({param:r,value:i,op:"a"})}),this.clone(t)}set(n,t){return this.clone({param:n,value:t,op:"s"})}delete(n,t){return this.clone({param:n,value:t,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const t=this.encoder.encodeKey(n);return this.map.get(n).map(r=>t+"="+this.encoder.encodeValue(r)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const t=new Qr({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(n),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const t=("a"===n.op?this.map.get(n.param):void 0)||[];t.push(wd(n.value)),this.map.set(n.param,t);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let r=this.map.get(n.param)||[];const i=r.indexOf(wd(n.value));-1!==i&&r.splice(i,1),r.length>0?this.map.set(n.param,r):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class W5{constructor(){this.map=new Map}set(n,t){return this.map.set(n,t),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function $M(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function GM(e){return typeof Blob<"u"&&e instanceof Blob}function zM(e){return typeof FormData<"u"&&e instanceof FormData}class gc{constructor(n,t,r,i){let s;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function Z5(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==r?r:null,s=i):s=r,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params),this.transferCache=s.transferCache),this.headers??=new xn,this.context??=new W5,this.params){const o=this.params.toString();if(0===o.length)this.urlWithParams=t;else{const a=t.indexOf("?");this.urlWithParams=t+(-1===a?"?":a<t.length-1?"&":"")+o}}else this.params=new Qr,this.urlWithParams=t}serializeBody(){return null===this.body?null:"string"==typeof this.body||$M(this.body)||GM(this.body)||zM(this.body)||function Y5(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}(this.body)?this.body:this.body instanceof Qr?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||zM(this.body)?null:GM(this.body)?this.body.type||null:$M(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Qr?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(n={}){const t=n.method||this.method,r=n.url||this.url,i=n.responseType||this.responseType,s=n.transferCache??this.transferCache,o=void 0!==n.body?n.body:this.body,a=n.withCredentials??this.withCredentials,c=n.reportProgress??this.reportProgress;let l=n.headers||this.headers,u=n.params||this.params;const d=n.context??this.context;return void 0!==n.setHeaders&&(l=Object.keys(n.setHeaders).reduce((f,h)=>f.set(h,n.setHeaders[h]),l)),n.setParams&&(u=Object.keys(n.setParams).reduce((f,h)=>f.set(h,n.setParams[h]),u)),new gc(t,r,o,{params:u,headers:l,context:d,reportProgress:c,responseType:i,withCredentials:a,transferCache:s})}}var Ei=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(Ei||{});class cy{constructor(n,t=200,r="OK"){this.headers=n.headers||new xn,this.status=void 0!==n.status?n.status:t,this.statusText=n.statusText||r,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class Dd extends cy{constructor(n={}){super(n),this.type=Ei.ResponseHeader}clone(n={}){return new Dd({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class os extends cy{constructor(n={}){super(n),this.type=Ei.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new os({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class Ro extends cy{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function ly(e,n){return{body:n,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,transferCache:e.transferCache}}let Sd=(()=>{class e{constructor(t){this.handler=t}request(t,r,i={}){let s;if(t instanceof gc)s=t;else{let c,l;c=i.headers instanceof xn?i.headers:new xn(i.headers),i.params&&(l=i.params instanceof Qr?i.params:new Qr({fromObject:i.params})),s=new gc(t,r,void 0!==i.body?i.body:null,{headers:c,context:i.context,params:l,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache})}const o=An(s).pipe(Oo(c=>this.handler.handle(c)));if(t instanceof gc||"events"===i.observe)return o;const a=o.pipe(HM(c=>c instanceof os));switch(i.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(Pt(c=>{if(null!==c.body&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return a.pipe(Pt(c=>{if(null!==c.body&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return a.pipe(Pt(c=>{if(null!==c.body&&"string"!=typeof c.body)throw new Error("Response is not a string.");return c.body}));default:return a.pipe(Pt(c=>c.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(t,r={}){return this.request("DELETE",t,r)}get(t,r={}){return this.request("GET",t,r)}head(t,r={}){return this.request("HEAD",t,r)}jsonp(t,r){return this.request("JSONP",t,{params:(new Qr).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,r={}){return this.request("OPTIONS",t,r)}patch(t,r,i={}){return this.request("PATCH",t,ly(i,r))}post(t,r,i={}){return this.request("POST",t,ly(i,r))}put(t,r,i={}){return this.request("PUT",t,ly(i,r))}static#e=this.\u0275fac=function(r){return new(r||e)(k(bd))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})();const X5=/^\)\]\}',?\n/;function WM(e){if(e.url)return e.url;const n="X-Request-URL".toLocaleLowerCase();return e.headers.get(n)}let uy=(()=>{class e{constructor(){this.fetchImpl=A(e6,{optional:!0})?.fetch??((...t)=>globalThis.fetch(...t)),this.ngZone=A(pe)}handle(t){return new nt(r=>{const i=new AbortController;return this.doRequest(t,i.signal,r).then(dy,s=>r.error(new Ro({error:s}))),()=>i.abort()})}doRequest(t,r,i){var s=this;return ss(function*(){const o=s.createRequestInit(t);let a;try{const p=s.ngZone.runOutsideAngular(()=>s.fetchImpl(t.urlWithParams,{signal:r,...o}));(function t6(e){e.then(dy,dy)})(p),i.next({type:Ei.Sent}),a=yield p}catch(p){return void i.error(new Ro({error:p,status:p.status??0,statusText:p.statusText,url:t.urlWithParams,headers:p.headers}))}const c=new xn(a.headers),l=a.statusText,u=WM(a)??t.urlWithParams;let d=a.status,f=null;if(t.reportProgress&&i.next(new Dd({headers:c,status:d,statusText:l,url:u})),a.body){const p=a.headers.get("content-length"),m=[],g=a.body.getReader();let y,w,_=0;const D=typeof Zone<"u"&&Zone.current;yield s.ngZone.runOutsideAngular(ss(function*(){for(;;){const{done:F,value:j}=yield g.read();if(F)break;if(m.push(j),_+=j.length,t.reportProgress){w="text"===t.responseType?(w??"")+(y??=new TextDecoder).decode(j,{stream:!0}):void 0;const L=()=>i.next({type:Ei.DownloadProgress,total:p?+p:void 0,loaded:_,partialText:w});D?D.run(L):L()}}}));const M=s.concatChunks(m,_);try{const F=a.headers.get("Content-Type")??"";f=s.parseBody(t,M,F)}catch(F){return void i.error(new Ro({error:F,headers:new xn(a.headers),status:a.status,statusText:a.statusText,url:WM(a)??t.urlWithParams}))}}0===d&&(d=f?200:0),d>=200&&d<300?(i.next(new os({body:f,headers:c,status:d,statusText:l,url:u})),i.complete()):i.error(new Ro({error:f,headers:c,status:d,statusText:l,url:u}))})()}parseBody(t,r,i){switch(t.responseType){case"json":const s=(new TextDecoder).decode(r).replace(X5,"");return""===s?null:JSON.parse(s);case"text":return(new TextDecoder).decode(r);case"blob":return new Blob([r],{type:i});case"arraybuffer":return r.buffer}}createRequestInit(t){const r={},i=t.withCredentials?"include":void 0;if(t.headers.forEach((s,o)=>r[s]=o.join(",")),t.headers.has("Accept")||(r.Accept="application/json, text/plain, */*"),!t.headers.has("Content-Type")){const s=t.detectContentTypeHeader();null!==s&&(r["Content-Type"]=s)}return{body:t.serializeBody(),method:t.method,headers:r,credentials:i}}concatChunks(t,r){const i=new Uint8Array(r);let s=0;for(const o of t)i.set(o,s),s+=o.length;return i}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})();class e6{}function dy(){}function ZM(e,n){return n(e)}const yc=new N(""),YM=new N(""),KM=new N("",{providedIn:"root",factory:()=>!0});let QM=(()=>{class e extends bd{constructor(t,r){super(),this.backend=t,this.injector=r,this.chain=null,this.pendingTasks=A(Hi),this.contributeToStability=A(KM)}handle(t){if(null===this.chain){const r=Array.from(new Set([...this.injector.get(yc),...this.injector.get(YM,[])]));this.chain=r.reduceRight((i,s)=>function r6(e,n,t){return(r,i)=>function tk(e,n){e instanceof Is&&e.assertNotDestroyed();const r=oi(e),i=on(void 0);try{return n()}finally{oi(r),on(i)}}(t,()=>n(r,s=>e(s,i)))}(i,s,this.injector),ZM)}if(this.contributeToStability){const r=this.pendingTasks.add();return this.chain(t,i=>this.backend.handle(i)).pipe(function U5(e){return gn((n,t)=>{try{n.subscribe(t)}finally{t.add(e)}})}(()=>this.pendingTasks.remove(r)))}return this.chain(t,r=>this.backend.handle(r))}static#e=this.\u0275fac=function(r){return new(r||e)(k(Ed),k(Fn))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})();const u6=/^\)\]\}',?\n/;let JM=(()=>{class e{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new E(-2800,!1);const r=this.xhrFactory;return(r.\u0275loadImpl?Ci(r.\u0275loadImpl()):An(null)).pipe(oM(()=>new nt(s=>{const o=r.build();if(o.open(t.method,t.urlWithParams),t.withCredentials&&(o.withCredentials=!0),t.headers.forEach((m,g)=>o.setRequestHeader(m,g.join(","))),t.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const m=t.detectContentTypeHeader();null!==m&&o.setRequestHeader("Content-Type",m)}if(t.responseType){const m=t.responseType.toLowerCase();o.responseType="json"!==m?m:"text"}const a=t.serializeBody();let c=null;const l=()=>{if(null!==c)return c;const m=o.statusText||"OK",g=new xn(o.getAllResponseHeaders()),_=function d6(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(o)||t.url;return c=new Dd({headers:g,status:o.status,statusText:m,url:_}),c},u=()=>{let{headers:m,status:g,statusText:_,url:y}=l(),w=null;204!==g&&(w=typeof o.response>"u"?o.responseText:o.response),0===g&&(g=w?200:0);let D=g>=200&&g<300;if("json"===t.responseType&&"string"==typeof w){const M=w;w=w.replace(u6,"");try{w=""!==w?JSON.parse(w):null}catch(F){w=M,D&&(D=!1,w={error:F,text:w})}}D?(s.next(new os({body:w,headers:m,status:g,statusText:_,url:y||void 0})),s.complete()):s.error(new Ro({error:w,headers:m,status:g,statusText:_,url:y||void 0}))},d=m=>{const{url:g}=l(),_=new Ro({error:m,status:o.status||0,statusText:o.statusText||"Unknown Error",url:g||void 0});s.error(_)};let f=!1;const h=m=>{f||(s.next(l()),f=!0);let g={type:Ei.DownloadProgress,loaded:m.loaded};m.lengthComputable&&(g.total=m.total),"text"===t.responseType&&o.responseText&&(g.partialText=o.responseText),s.next(g)},p=m=>{let g={type:Ei.UploadProgress,loaded:m.loaded};m.lengthComputable&&(g.total=m.total),s.next(g)};return o.addEventListener("load",u),o.addEventListener("error",d),o.addEventListener("timeout",d),o.addEventListener("abort",d),t.reportProgress&&(o.addEventListener("progress",h),null!==a&&o.upload&&o.upload.addEventListener("progress",p)),o.send(a),s.next({type:Ei.Sent}),()=>{o.removeEventListener("error",d),o.removeEventListener("abort",d),o.removeEventListener("load",u),o.removeEventListener("timeout",d),t.reportProgress&&(o.removeEventListener("progress",h),null!==a&&o.upload&&o.upload.removeEventListener("progress",p)),o.readyState!==o.DONE&&o.abort()}})))}static#e=this.\u0275fac=function(r){return new(r||e)(k(_T))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})();const fy=new N(""),eI=new N("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),tI=new N("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class nI{}let p6=(()=>{class e{constructor(t,r,i){this.doc=t,this.platform=r,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=cT(t,this.cookieName),this.lastCookieString=t),this.lastToken}static#e=this.\u0275fac=function(r){return new(r||e)(k(Vt),k($r),k(eI))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})();function m6(e,n){const t=e.url.toLowerCase();if(!A(fy)||"GET"===e.method||"HEAD"===e.method||t.startsWith("http://")||t.startsWith("https://"))return n(e);const r=A(nI).getToken(),i=A(tI);return null!=r&&!e.headers.has(i)&&(e=e.clone({headers:e.headers.set(i,r)})),n(e)}var wi=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}(wi||{});function g6(...e){const n=[Sd,JM,QM,{provide:bd,useExisting:QM},{provide:Ed,useFactory:()=>A(uy,{optional:!0})??A(JM)},{provide:yc,useValue:m6,multi:!0},{provide:fy,useValue:!0},{provide:nI,useClass:p6}];for(const t of e)n.push(...t.\u0275providers);return Ms(n)}function y6(e){return function as(e,n){return{\u0275kind:e,\u0275providers:n}}(wi.Interceptors,e.map(n=>({provide:yc,useValue:n,multi:!0})))}class T6 extends mn{constructor(n,t){super()}schedule(n,t=0){return this}}const Md={setInterval(e,n,...t){const{delegate:r}=Md;return r?.setInterval?r.setInterval(e,n,...t):setInterval(e,n,...t)},clearInterval(e){const{delegate:n}=Md;return(n?.clearInterval||clearInterval)(e)},delegate:void 0};class _c{constructor(n,t=_c.now){this.schedulerActionCtor=n,this.now=t}schedule(n,t=0,r){return new this.schedulerActionCtor(this,n).schedule(r,t)}}_c.now=Ug.now;const dI=new class I6 extends _c{constructor(n,t=_c.now){super(n,t),this.actions=[],this._active=!1}flush(n){const{actions:t}=this;if(this._active)return void t.push(n);let r;this._active=!0;do{if(r=n.execute(n.state,n.delay))break}while(n=t.shift());if(this._active=!1,r){for(;n=t.shift();)n.unsubscribe();throw r}}}(class M6 extends T6{constructor(n,t){super(n,t),this.scheduler=n,this.work=t,this.pending=!1}schedule(n,t=0){var r;if(this.closed)return this;this.state=n;const i=this.id,s=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(s,i,t)),this.pending=!0,this.delay=t,this.id=null!==(r=this.id)&&void 0!==r?r:this.requestAsyncId(s,this.id,t),this}requestAsyncId(n,t,r=0){return Md.setInterval(n.flush.bind(n,this),r)}recycleAsyncId(n,t,r=0){if(null!=r&&this.delay===r&&!1===this.pending)return t;null!=t&&Md.clearInterval(t)}execute(n,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(n,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,t){let i,r=!1;try{this.work(n)}catch(s){r=!0,i=s||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),i}unsubscribe(){if(!this.closed){const{id:n,scheduler:t}=this,{actions:r}=t;this.work=this.state=this.scheduler=null,this.pending=!1,Bc(r,this),null!=n&&(this.id=this.recycleAsyncId(t,n,null)),this.delay=null,super.unsubscribe()}}}),A6=dI;function fI(e=0,n,t=A6){let r=-1;return null!=n&&(nM(n)?t=n:r=n),new nt(i=>{let s=function x6(e){return e instanceof Date&&!isNaN(e)}(e)?+e-t.now():e;s<0&&(s=0);let o=0;return t.schedule(function(){i.closed||(i.next(o++),0<=r?this.schedule(void 0,r):i.complete())},s)})}function hy(e,n){const t=Xe(e)?e:()=>e,r=i=>i.error(t());return new nt(n?i=>n.schedule(r,0,i):r)}function py(e){return new Qr({fromObject:e})}function hI(e){const n=Object.entries(e).reduce((t,[r,i])=>(t[r]=String(i),t),{});return new xn(n)}const pI="Watchdog fake error";function Xr(e,n){return`${e.endsWith("/")?e.slice(0,-1):e}${n.startsWith("/")?n:`/${n}`}`}let my=(()=>{class e{constructor(t,r){this.http=t,this.context=r}getExistingCards(){const{merchantId:t,userAuthToken:r}=this.context.data.payment();if(!r)return An([]);const i=py({merchantId:t}),s=hI({[No_customHeaders_skipToastr]:!0}),o=Xr(this.host(),"/api/UserPaymentMethods");return this.http.get(o,{params:i,headers:s}).pipe(Pt(a=>a.map(c=>({...c,name:c.name.toLocaleLowerCase(),type:c.type.toLocaleLowerCase()}))),Pt(a=>a.filter(c=>"card"===c.type)),Po(()=>An([])))}removeCard(t){const{merchantId:r}=this.context.data.payment(),i=py({merchantId:r}),s=Xr(this.host(),`/api/UserPaymentMethods/${t}`);return this.http.delete(s,{params:i})}host(){return this.context.data.settings().urls.billingProfiles}static#e=this.\u0275fac=function(r){return new(r||e)(k(Sd),k(xe))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})();const mI=["toast-component",""];function P6(e,n){if(1&e){const t=at();S(0,"button",5),te("click",function(){return ne(t),re(x().remove())}),S(1,"span",6),$(2,"\xd7"),T()()}}function O6(e,n){if(1&e&&(_o(0),$(1),vo()),2&e){const t=x(2);C(),ke("[",t.duplicatesCount+1,"]")}}function R6(e,n){if(1&e&&(S(0,"div"),$(1),ee(2,O6,2,1,"ng-container",4),T()),2&e){const t=x();qr(t.options.titleClass),At("aria-label",t.title),C(),ke(" ",t.title," "),C(),P("ngIf",t.duplicatesCount)}}function F6(e,n){if(1&e&&ge(0,"div",7),2&e){const t=x();qr(t.options.messageClass),P("innerHTML",t.message,Tr)}}function L6(e,n){if(1&e&&(S(0,"div",8),$(1),T()),2&e){const t=x();qr(t.options.messageClass),At("aria-label",t.message),C(),ke(" ",t.message," ")}}function V6(e,n){if(1&e&&(S(0,"div"),ge(1,"div",9),T()),2&e){const t=x();C(),yo("width",t.width()+"%")}}class z6{_attachedHost;component;viewContainerRef;injector;constructor(n,t){this.component=n,this.injector=t}attach(n,t){return this._attachedHost=n,n.attach(this,t)}detach(){const n=this._attachedHost;if(n)return this._attachedHost=void 0,n.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(n){this._attachedHost=n}}class q6{_attachedPortal;_disposeFn;attach(n,t){return this._attachedPortal=n,this.attachComponentPortal(n,t)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(n){this._disposeFn=n}}class W6{_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new kt;_activate=new kt;_manualClose=new kt;_resetTimeout=new kt;_countDuplicate=new kt;constructor(n){this._overlayRef=n}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(n,t){n&&this._resetTimeout.next(),t&&this._countDuplicate.next(++this.duplicatesCount)}}class Id{toastId;config;message;title;toastType;toastRef;_onTap=new kt;_onAction=new kt;constructor(n,t,r,i,s,o){this.toastId=n,this.config=t,this.message=r,this.title=i,this.toastType=s,this.toastRef=o,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(n){this._onAction.next(n)}onAction(){return this._onAction.asObservable()}}const yI=new N("ToastConfig");class Z6 extends q6{_hostDomElement;_componentFactoryResolver;_appRef;constructor(n,t,r){super(),this._hostDomElement=n,this._componentFactoryResolver=t,this._appRef=r}attachComponentPortal(n,t){const r=this._componentFactoryResolver.resolveComponentFactory(n.component);let i;return i=r.create(n.injector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()}),t?this._hostDomElement.insertBefore(this._getComponentRootNode(i),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(i)),i}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}let Y6=(()=>{class e{_document=A(Vt);_containerElement;ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t=this._document.createElement("div");t.classList.add("overlay-container"),t.setAttribute("aria-live","polite"),this._document.body.appendChild(t),this._containerElement=t}static \u0275fac=function(r){return new(r||e)};static \u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class K6{_portalHost;constructor(n){this._portalHost=n}attach(n,t=!0){return this._portalHost.attach(n,t)}detach(){return this._portalHost.detach()}}let Q6=(()=>{class e{_overlayContainer=A(Y6);_componentFactoryResolver=A(Ki);_appRef=A(jn);_document=A(Vt);_paneElements=new Map;create(t,r){return this._createOverlayRef(this.getPaneElement(t,r))}getPaneElement(t="",r){return this._paneElements.get(r)||this._paneElements.set(r,{}),this._paneElements.get(r)[t]||(this._paneElements.get(r)[t]=this._createPaneElement(t,r)),this._paneElements.get(r)[t]}_createPaneElement(t,r){const i=this._document.createElement("div");return i.id="toast-container",i.classList.add(t),i.classList.add("toast-container"),r?r.getContainerElement().appendChild(i):this._overlayContainer.getContainerElement().appendChild(i),i}_createPortalHost(t){return new Z6(t,this._componentFactoryResolver,this._appRef)}_createOverlayRef(t){return new K6(this._createPortalHost(t))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),vc=(()=>{class e{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(t,r,i,s,o){this.overlay=r,this._injector=i,this.sanitizer=s,this.ngZone=o,this.toastrConfig={...t.default,...t.config},t.config.iconClasses&&(this.toastrConfig.iconClasses={...t.default.iconClasses,...t.config.iconClasses})}show(t,r,i={},s=""){return this._preBuildNotification(s,t,r,this.applyConfig(i))}success(t,r,i={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",t,r,this.applyConfig(i))}error(t,r,i={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",t,r,this.applyConfig(i))}info(t,r,i={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",t,r,this.applyConfig(i))}warning(t,r,i={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",t,r,this.applyConfig(i))}clear(t){for(const r of this.toasts)if(void 0!==t){if(r.toastId===t)return void r.toastRef.manualClose()}else r.toastRef.manualClose()}remove(t){const r=this._findToast(t);if(!r||(r.activeToast.toastRef.close(),this.toasts.splice(r.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){const i=this.toasts[this.currentlyActive].toastRef;i.isInactive()||(this.currentlyActive=this.currentlyActive+1,i.activate())}return!0}findDuplicate(t="",r="",i,s){const{includeTitleDuplicates:o}=this.toastrConfig;for(const a of this.toasts)if((!o||o&&a.title===t)&&a.message===r)return a.toastRef.onDuplicate(i,s),a;return null}applyConfig(t={}){return{...this.toastrConfig,...t}}_findToast(t){for(let r=0;r<this.toasts.length;r++)if(this.toasts[r].toastId===t)return{index:r,activeToast:this.toasts[r]};return null}_preBuildNotification(t,r,i,s){return s.onActivateTick?this.ngZone.run(()=>this._buildNotification(t,r,i,s)):this._buildNotification(t,r,i,s)}_buildNotification(t,r,i,s){if(!s.toastComponent)throw new Error("toastComponent required");const o=this.findDuplicate(i,r,this.toastrConfig.resetTimeoutOnDuplicate&&s.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&i||r)&&this.toastrConfig.preventDuplicates&&null!==o)return o;this.previousToastMessage=r;let a=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(a=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const c=this.overlay.create(s.positionClass,this.overlayContainer);this.index=this.index+1;let l=r;r&&s.enableHtml&&(l=this.sanitizer.sanitize(En.HTML,r));const u=new W6(c),d=new Id(this.index,s,l,i,t,u),h=Ne.create({providers:[{provide:Id,useValue:d}],parent:this._injector}),p=new z6(s.toastComponent,h),m=c.attach(p,s.newestOnTop);u.componentInstance=m.instance;const g={toastId:this.index,title:i||"",message:r||"",toastRef:u,onShown:u.afterActivate(),onHidden:u.afterClosed(),onTap:d.onTap(),onAction:d.onAction(),portal:m};return a||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{g.toastRef.activate()})),this.toasts.push(g),g}static \u0275fac=function(r){return new(r||e)(k(yI),k(Q6),k(Ne),k(Hg),k(pe))};static \u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const X6={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing",toastComponent:(()=>{class e{toastrService;toastPackage;ngZone;message;title;options;duplicatesCount;originalTimeout;width=se(-1);toastClasses="";state;get _state(){return this.state()}get displayStyle(){if("inactive"===this.state().value)return"none"}timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(t,r,i){this.toastrService=t,this.toastPackage=r,this.ngZone=i,this.message=r.message,this.title=r.title,this.options=r.config,this.originalTimeout=r.config.timeOut,this.toastClasses=`${r.toastType} ${r.config.toastClass}`,this.sub=r.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=r.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=r.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=r.toastRef.countDuplicate().subscribe(s=>{this.duplicatesCount=s}),this.state=se({value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state.update(t=>({...t,value:"active"})),!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width()||100===this.width()||!this.options.timeOut)return;const t=(new Date).getTime();this.width.set((this.hideTime-t)/this.options.timeOut*100),"increasing"===this.options.progressAnimation&&this.width.update(i=>100-i),this.width()<=0&&this.width.set(0),this.width()>=100&&this.width.set(100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state.update(t=>({...t,value:"active"})),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state().value&&(clearTimeout(this.timeout),this.state.update(t=>({...t,value:"removed"})),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state().value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state().value&&"extendedTimeOut"!==this.options.disableTimeOut&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width.set(0))}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state().value||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(t,r){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(t),r)):this.timeout=setTimeout(()=>t(),r)}outsideInterval(t,r){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(t),r)):this.intervalId=setInterval(()=>t(),r)}runInsideAngular(t){this.ngZone?this.ngZone.run(()=>t()):t()}static \u0275fac=function(r){return new(r||e)(v(vc),v(Id),v(pe))};static \u0275cmp=Me({type:e,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(r,i){1&r&&te("click",function(){return i.tapToast()})("mouseenter",function(){return i.stickAround()})("mouseleave",function(){return i.delayedHideToast()}),2&r&&(_u("@flyInOut",i._state),qr(i.toastClasses),yo("display",i.displayStyle))},standalone:!0,features:[Hm],attrs:mI,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(r,i){1&r&&ee(0,P6,3,0,"button",0)(1,R6,3,5,"div",1)(2,F6,1,3,"div",2)(3,L6,2,4,"div",3)(4,V6,2,2,"div",4),2&r&&(P("ngIf",i.options.closeButton),C(),P("ngIf",i.title),C(),P("ngIf",i.message&&i.options.enableHtml),C(),P("ngIf",i.message&&!i.options.enableHtml),C(),P("ngIf",i.options.progressBar))},dependencies:[nd],encapsulation:2,data:{animation:[ko("flyInOut",[hc("inactive",Je({opacity:0})),hc("active",Je({opacity:1})),hc("removed",Je({opacity:0})),mr("inactive => active",pr("{{ easeTime }}ms {{ easing }}")),mr("active => removed",pr("{{ easeTime }}ms {{ easing }}"))])]},changeDetection:0})}return e})()},J6=(e={})=>Ms([{provide:yI,useValue:{default:X6,config:e}}]);let eG=(()=>{class e{static forRoot(t={}){return{ngModule:e,providers:[J6(t)]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=bt({type:e});static \u0275inj=ft({})}return e})();const{isArray:tG}=Array,{getPrototypeOf:nG,prototype:rG,keys:iG}=Object;const{isArray:aG}=Array;function uG(e,n){return e.reduce((t,r,i)=>(t[r]=n[i],t),{})}function _I(...e){const n=function j$(e){return Xe(Wg(e))?e.pop():void 0}(e),{args:t,keys:r}=function sG(e){if(1===e.length){const n=e[0];if(tG(n))return{args:n,keys:null};if(function oG(e){return e&&"object"==typeof e&&nG(e)===rG}(n)){const t=iG(n);return{args:t.map(r=>n[r]),keys:t}}}return{args:e,keys:null}}(e),i=new nt(s=>{const{length:o}=t;if(!o)return void s.complete();const a=new Array(o);let c=o,l=o;for(let u=0;u<o;u++){let d=!1;dr(t[u]).subscribe(sn(s,f=>{d||(d=!0,l--),a[u]=f},()=>c--,void 0,()=>{(!c||!d)&&(l||s.next(r?uG(r,a):a),s.complete())}))}});return n?i.pipe(function lG(e){return Pt(n=>function cG(e,n){return aG(n)?e(...n):e(n)}(e,n))}(n)):i}function vI(e){return e&&e.replace(/\s+/g," ").trim()}let Fo=(()=>{class e{constructor(t,r,i){this.context=t,this.http=r,this.mapper=i}getAvailablePaymentSystems(){const{currency:t,userId:r,merchantId:i}=this.context.data.payment(),s=py({currency:t,payerId:r}),o=Xr(this.host(),`/api/merchants/${i}/settings`);return this.http.get(o,{params:s}).pipe(Pt(a=>{const c=new Set;return{payments:a.payments.filter(u=>!c.has(u.name)&&(c.add(u.name),!0))}}),Po(()=>An({payments:[]})))}getPaymentInfo(t){const{merchantId:r}=this.context.data.payment(),i=Xr(this.host(),`/api/merchants/${r}/payments/${t}`);return this.http.get(i)}getGooglePaySettings(){const{merchantId:t}=this.context.data.payment(),r=Xr(this.host(),`/api/googlepay/${t}/settings`);return this.http.get(r).pipe(Pt(i=>({...i,allowedCardNetworks:i.allowedCardNetworks.map(s=>s.toUpperCase())})))}pay(){const t=this.context.data.payment(),r=this.context.data.settings(),i=this.context.data.userProvidedInfo(),s=this.context.data.deviceInfo(),o={...s?.browserData};t.ipAddress&&(o.ipAddress=t.ipAddress);const c={headers:hI(o)},l=Xr(this.host(),`/api/merchants/${t.merchantId}/payments`);let u=this.mapper.mapPaymentRequest(t,i,r,s),d="default";return"invoice-overridden"===r.paymentFlow.type&&this.context.callbacks.createInvoice?d="invoice-overridden":"payment-overridden"===r.paymentFlow.type&&this.context.callbacks.makePayment&&(d="payment-overridden"),"card"===u.requisites.type&&r.paymentFlow.tokenizeCard?this.getSecretKey().pipe(Oo(f=>Ci(this.encrypt(u.requisites,f))),Oo(f=>"default"!==d?this.getCardTokenData(f,t.merchantId).pipe(Pt(h=>h.token),Po(()=>An(f)),Oo(h=>(u.requisites={type:"card",paymentToken:h},this.makeCallback(d,u,l,c)))):(u.requisites={type:"card",paymentToken:f},this.http.post(l,u,c)))):"default"!==d?this.makeCallback(d,u,l,c):this.http.post(l,u,c)}getCardTokenData(t,r){const i=Xr(this.host(),`api/CardData/${r}/tokenize`);return this.http.post(i,{ei:2,invoice:t,es:{uo:!0}})}makeCallback(t,r,i,s){if("invoice-overridden"===t)return this.createInvoiceCallback(r).pipe(Oo(o=>this.http.post(i,o,s)));if("payment-overridden"===t)return this.makePaymentCallback(r);throw new Error("Not implemented flow type")}getSecretKey(){const t=Xr(this.host(),"/api/security/key/2?formatId=2&size=4096");return this.http.get(t)}encrypt(t,r){var i=this;return ss(function*(){const s=JSON.stringify(t),o=function hG(e){return function pG(e){const n=new ArrayBuffer(e.length),t=new Uint8Array(n);for(let r=0,i=e.length;r<i;r++)t[r]=e.charCodeAt(r);return n}(atob(e))}(r);try{const a=yield window.crypto.subtle.importKey("spki",o,{name:"RSA-OAEP",hash:"SHA-1"},!1,["encrypt"]),c=(new TextEncoder).encode(s);return function fG(e){return btoa(String.fromCharCode(...new Uint8Array(e)))}(yield window.crypto.subtle.encrypt({name:"RSA-OAEP"},a,c))}catch(a){throw i.context.events.error.emit(a),a}})()}makePaymentCallback(t){return new nt(r=>(this.context.callbacks.makePayment(t).then(i=>{r.next(i),r.complete()}).catch(i=>r.error(i)),()=>{}))}createInvoiceCallback(t){return new nt(r=>(this.context.callbacks.createInvoice(t).then(i=>{r.next(i),r.complete()}).catch(i=>r.error(i)),()=>{}))}host(){return this.context.data.settings().urls.processing}static#e=this.\u0275fac=function(r){return new(r||e)(k(xe),k(Sd),k(fs))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})();const CI=new N("moto-window-document",{providedIn:"root",factory:()=>window}),bI=new N("LANGUAGE_TOKEN",{factory:()=>A(CI).navigator.language}),EI=new N("APPLE_PAY_JS_SERVICE_TOKEN");function gy(e,n,t){return n&&t&&"net"==t?e+n:e}let yy=(()=>{class e{constructor(t,r){this.clientLanguage=t,this.applePayJsService=r,this.name="applepay"}get defaultCountryCode(){if(!this.clientLanguage)return"GB";if(this.clientLanguage.match(/-/)){const[t,r]=this.clientLanguage.split("-");return r}return this.clientLanguage}isAvailable(t){return t.userAuthToken?this.applePayJsService.canMakePayment():An(!1)}pay(t,r){const{amount:i,currency:s,description:o,billingAddress:a,merchantId:c,userAuthToken:l,tax:u,amountType:d}=t,f=a?.country?a.country:this.defaultCountryCode,h={total:{amount:gy(i,u,d).toString(),currency:s.toUpperCase(),label:o},countryCode:f.toUpperCase(),merchantId:c,userToken:l,processingUrl:r};return this.applePayJsService.pay(h).pipe(Pt(({payment:p})=>JSON.stringify(p)))}static#e=this.\u0275fac=function(r){return new(r||e)(k(bI),k(EI))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})(),wI=(()=>{class e{constructor(t){this.context=t,this.versionData={apiVersion:2,apiVersionMinor:0}}setData(t){this.settings=t,this.paymentMethodSpec={type:"CARD",parameters:{allowedCardNetworks:t.allowedCardNetworks,allowedAuthMethods:this.context.data.settings().googlePay.allowedAuthMethods}}}isAvailable(){return this.context.clients.googlePay&&this.paymentMethodSpec?Ci(this.context.clients.googlePay.isReadyToPay({...this.versionData,allowedPaymentMethods:[this.paymentMethodSpec]}).then(t=>t.result)):An(!1)}pay(t){if(!this.paymentMethodSpec||!this.settings)return hy(()=>"Something went wrong");const r={...this.versionData,allowedPaymentMethods:[{...this.paymentMethodSpec,tokenizationSpecification:{type:"PAYMENT_GATEWAY",parameters:{gateway:this.settings.gateway.name,gatewayMerchantId:this.settings.gateway.merchantId}}}],merchantInfo:{merchantId:this.settings.merchant.id,merchantName:this.settings.merchant.name},transactionInfo:{totalPriceStatus:"FINAL",totalPrice:t.price,currencyCode:t.currency,countryCode:t.countryCode,transactionId:t.paymentId}};return Ci(this.context.clients.googlePay.loadPaymentData(r).then(i=>i.paymentMethodData.tokenizationData.token))}static#e=this.\u0275fac=function(r){return new(r||e)(k(xe))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})(),_y=(()=>{class e{constructor(t,r,i,s){this.clientLanguage=t,this.googlePayJsService=r,this.context=i,this.processing=s,this.name="googlepay"}get defaultCountryCode(){if(!this.clientLanguage)return"GB";if(this.clientLanguage.match(/-/)){const[t,r]=this.clientLanguage.split("-");return r}return this.clientLanguage}isAvailable(t){return t.userAuthToken?this.processing.getGooglePaySettings().pipe(Oo(r=>(this.context.clients.googlePay=new google.payments.api.PaymentsClient({environment:r.isTest?"TEST":"PRODUCTION"}),this.googlePayJsService.setData(r),this.googlePayJsService.isAvailable())),Po(()=>An(!1))):An(!1)}pay(t){const{paymentId:r,amount:i,currency:s,billingAddress:o,tax:a,amountType:c}=t,u={countryCode:o?.country?o.country:this.defaultCountryCode,currency:s.toUpperCase(),paymentId:r,price:gy(i,a,c).toString()};return this.googlePayJsService.pay(u)}static#e=this.\u0275fac=function(r){return new(r||e)(k(bI),k(wI),k(xe),k(Fo))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})(),vy=(()=>{class e{constructor(t,r,i,s,o){this.context=t,this.processingService=r,this.billingProfilesService=i,this.applePayService=s,this.googlePayService=o}refreshExistingCards(t){let r;this.context.data.cardsLoading.set(!0),r=t?An(t):this.billingProfilesService.getExistingCards().pipe(Pt(i=>i.concat().sort(s=>s.isDefault?-1:1))),r.subscribe(i=>{i.length?(this.context.componentsStates.cardForm.update(s=>({...s,enabled:!1})),this.context.componentsStates.cardList().enabled||this.context.componentsStates.cardList.update(s=>({...s,enabled:!0}))):(this.context.componentsStates.cardForm.update(s=>({...s,enabled:!0})),this.context.componentsStates.cardList.update(s=>({...s,enabled:!1})),"existing-card"===this.context.data.userProvidedInfo()?.requisites?.type&&this.context.data.userProvidedInfo.update(s=>({...s,requisites:void 0,paymentSystemName:void 0}))),this.context.data.loadedExistingCards.set(i),this.context.data.cardsLoading.set(!1)})}refreshPaymentSystems(){this.context.data.paymentSystemsLoading.set(!0),this.processingService.getAvailablePaymentSystems().subscribe(t=>{const r=t.payments.map(a=>a.name),i=this.context.data.payment(),o=[this.applePayService,this.googlePayService].filter(a=>r.includes(a.name)).map(a=>({name:a.name,isAvailable$:a.isAvailable(i)}));o.length>0?_I(o.map(a=>a.isAvailable$)).subscribe(a=>{const c=o.filter((u,d)=>!a[d]).map(u=>u.name),l=t.payments.filter(u=>!c.includes(u.name));this.applyPaymentSystems(l)}):this.applyPaymentSystems(t.payments)})}applyPaymentSystems(t){this.context.data.loadedPaymentSystems.set(t),t.some(r=>"card"===r.name)||(this.context.componentsStates.cardForm.update(r=>({...r,enabled:!1,isRequired:!1})),this.context.componentsStates.additionalForm.update(r=>({...r,enabled:!1,isRequired:!1})),this.context.componentsStates.cardList.update(r=>({...r,enabled:!1,isRequired:!1}))),t.some(r=>"card"!==r.name)||this.context.componentsStates.apmList.update(r=>({...r,enabled:!1,isRequired:!1})),this.context.data.paymentSystemsLoading.set(!1)}static#e=this.\u0275fac=function(r){return new(r||e)(k(xe),k(Fo),k(my),k(yy),k(_y))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})(),DI=(()=>{class e{constructor(t,r){this._renderer=t,this._elementRef=r,this.onChange=i=>{},this.onTouched=()=>{}}setProperty(t,r){this._renderer.setProperty(this._elementRef.nativeElement,t,r)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}static#e=this.\u0275fac=function(r){return new(r||e)(v(Ar),v(cn))};static#t=this.\u0275dir=Z({type:e})}return e})(),cs=(()=>{class e extends DI{static#e=this.\u0275fac=(()=>{let t;return function(i){return(t||(t=Lt(e)))(i||e)}})();static#t=this.\u0275dir=Z({type:e,features:[me]})}return e})();const Nn=new N(""),mG={provide:Nn,useExisting:De(()=>Cc),multi:!0};let Cc=(()=>{class e extends cs{writeValue(t){this.setProperty("checked",t)}static#e=this.\u0275fac=(()=>{let t;return function(i){return(t||(t=Lt(e)))(i||e)}})();static#t=this.\u0275dir=Z({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,i){1&r&&te("change",function(o){return i.onChange(o.target.checked)})("blur",function(){return i.onTouched()})},features:[Oe([mG]),me]})}return e})();const gG={provide:Nn,useExisting:De(()=>Ad),multi:!0},_G=new N("");let Ad=(()=>{class e extends DI{constructor(t,r,i){super(t,r),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function yG(){const e=ic()?ic().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(t){this.setProperty("value",t??"")}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}static#e=this.\u0275fac=function(r){return new(r||e)(v(Ar),v(cn),v(_G,8))};static#t=this.\u0275dir=Z({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,i){1&r&&te("input",function(o){return i._handleInput(o.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(o){return i._compositionEnd(o.target.value)})},features:[Oe([gG]),me]})}return e})();function Di(e){return null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}function SI(e){return null!=e&&"number"==typeof e.length}const Bt=new N(""),Si=new N(""),vG=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Pr{static min(n){return function TI(e){return n=>{if(Di(n.value)||Di(e))return null;const t=parseFloat(n.value);return!isNaN(t)&&t<e?{min:{min:e,actual:n.value}}:null}}(n)}static max(n){return function MI(e){return n=>{if(Di(n.value)||Di(e))return null;const t=parseFloat(n.value);return!isNaN(t)&&t>e?{max:{max:e,actual:n.value}}:null}}(n)}static required(n){return function II(e){return Di(e.value)?{required:!0}:null}(n)}static requiredTrue(n){return function AI(e){return!0===e.value?null:{required:!0}}(n)}static email(n){return function xI(e){return Di(e.value)||vG.test(e.value)?null:{email:!0}}(n)}static minLength(n){return NI(n)}static maxLength(n){return kI(n)}static pattern(n){return function PI(e){if(!e)return xd;let n,t;return"string"==typeof e?(t="","^"!==e.charAt(0)&&(t+="^"),t+=e,"$"!==e.charAt(e.length-1)&&(t+="$"),n=new RegExp(t)):(t=e.toString(),n=e),r=>{if(Di(r.value))return null;const i=r.value;return n.test(i)?null:{pattern:{requiredPattern:t,actualValue:i}}}}(n)}static nullValidator(n){return null}static compose(n){return BI(n)}static composeAsync(n){return jI(n)}}function NI(e){return n=>Di(n.value)||!SI(n.value)?null:n.value.length<e?{minlength:{requiredLength:e,actualLength:n.value.length}}:null}function kI(e){return n=>SI(n.value)&&n.value.length>e?{maxlength:{requiredLength:e,actualLength:n.value.length}}:null}function xd(e){return null}function OI(e){return null!=e}function RI(e){return xu(e)?Ci(e):e}function FI(e){let n={};return e.forEach(t=>{n=null!=t?{...n,...t}:n}),0===Object.keys(n).length?null:n}function LI(e,n){return n.map(t=>t(e))}function VI(e){return e.map(n=>function CG(e){return!e.validate}(n)?n:t=>n.validate(t))}function BI(e){if(!e)return null;const n=e.filter(OI);return 0==n.length?null:function(t){return FI(LI(t,n))}}function Cy(e){return null!=e?BI(VI(e)):null}function jI(e){if(!e)return null;const n=e.filter(OI);return 0==n.length?null:function(t){return _I(LI(t,n).map(RI)).pipe(Pt(FI))}}function by(e){return null!=e?jI(VI(e)):null}function HI(e,n){return null===e?[n]:Array.isArray(e)?[...e,n]:[e,n]}function UI(e){return e._rawValidators}function $I(e){return e._rawAsyncValidators}function Ey(e){return e?Array.isArray(e)?e:[e]:[]}function Nd(e,n){return Array.isArray(e)?e.includes(n):e===n}function GI(e,n){const t=Ey(n);return Ey(e).forEach(i=>{Nd(t,i)||t.push(i)}),t}function zI(e,n){return Ey(n).filter(t=>!Nd(e,t))}class qI{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(n){this._rawValidators=n||[],this._composedValidatorFn=Cy(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=by(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,t){return!!this.control&&this.control.hasError(n,t)}getError(n,t){return this.control?this.control.getError(n,t):null}}class tn extends qI{get formDirective(){return null}get path(){return null}}class Jr extends qI{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class WI{constructor(n){this._cd=n}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}}let ei=(()=>{class e extends WI{constructor(t){super(t)}static#e=this.\u0275fac=function(r){return new(r||e)(v(Jr,2))};static#t=this.\u0275dir=Z({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,i){2&r&&Yt("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[me]})}return e})(),kd=(()=>{class e extends WI{constructor(t){super(t)}static#e=this.\u0275fac=function(r){return new(r||e)(v(tn,10))};static#t=this.\u0275dir=Z({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,i){2&r&&Yt("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},features:[me]})}return e})();const bc="VALID",Od="INVALID",Lo="PENDING",Ec="DISABLED";class Vo{}class YI extends Vo{constructor(n,t){super(),this.value=n,this.source=t}}class Sy extends Vo{constructor(n,t){super(),this.pristine=n,this.source=t}}class Ty extends Vo{constructor(n,t){super(),this.touched=n,this.source=t}}class Rd extends Vo{constructor(n,t){super(),this.status=n,this.source=t}}class SG extends Vo{constructor(n){super(),this.source=n}}class TG extends Vo{constructor(n){super(),this.source=n}}function My(e){return(Fd(e)?e.validators:e)||null}function Iy(e,n){return(Fd(n)?n.asyncValidators:e)||null}function Fd(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function KI(e,n,t){const r=e.controls;if(!(n?Object.keys(r):r).length)throw new E(1e3,"");if(!r[t])throw new E(1001,"")}function QI(e,n,t){e._forEachChild((r,i)=>{if(void 0===t[i])throw new E(1002,"")})}class Ld{constructor(n,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=ce(()=>this.statusReactive()),this.statusReactive=se(void 0),this._pristine=ce(()=>this.pristineReactive()),this.pristineReactive=se(!0),this._touched=ce(()=>this.touchedReactive()),this.touchedReactive=se(!1),this._events=new kt,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get status(){return Hn(this.statusReactive)}set status(n){Hn(()=>this.statusReactive.set(n))}get valid(){return this.status===bc}get invalid(){return this.status===Od}get pending(){return this.status==Lo}get disabled(){return this.status===Ec}get enabled(){return this.status!==Ec}get pristine(){return Hn(this.pristineReactive)}set pristine(n){Hn(()=>this.pristineReactive.set(n))}get dirty(){return!this.pristine}get touched(){return Hn(this.touchedReactive)}set touched(n){Hn(()=>this.touchedReactive.set(n))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(GI(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(GI(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(zI(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(zI(n,this._rawAsyncValidators))}hasValidator(n){return Nd(this._rawValidators,n)}hasAsyncValidator(n){return Nd(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){const t=!1===this.touched;this.touched=!0;const r=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsTouched({...n,sourceControl:r}),t&&!1!==n.emitEvent&&this._events.next(new Ty(!0,r))}markAllAsTouched(n={}){this.markAsTouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsTouched(n))}markAsUntouched(n={}){const t=!0===this.touched;this.touched=!1,this._pendingTouched=!1;const r=n.sourceControl??this;this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:r})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,r),t&&!1!==n.emitEvent&&this._events.next(new Ty(!1,r))}markAsDirty(n={}){const t=!0===this.pristine;this.pristine=!1;const r=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsDirty({...n,sourceControl:r}),t&&!1!==n.emitEvent&&this._events.next(new Sy(!1,r))}markAsPristine(n={}){const t=!1===this.pristine;this.pristine=!0,this._pendingDirty=!1;const r=n.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:n.emitEvent})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n,r),t&&!1!==n.emitEvent&&this._events.next(new Sy(!0,r))}markAsPending(n={}){this.status=Lo;const t=n.sourceControl??this;!1!==n.emitEvent&&(this._events.next(new Rd(this.status,t)),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.markAsPending({...n,sourceControl:t})}disable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=Ec,this.errors=null,this._forEachChild(i=>{i.disable({...n,onlySelf:!0})}),this._updateValue();const r=n.sourceControl??this;!1!==n.emitEvent&&(this._events.next(new YI(this.value,r)),this._events.next(new Rd(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:t},this),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=bc,this._forEachChild(r=>{r.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:t},this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(n,t){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine({},t),this._parent._updateTouched({},t))}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){const r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===bc||this.status===Lo)&&this._runAsyncValidator(r,n.emitEvent)}const t=n.sourceControl??this;!1!==n.emitEvent&&(this._events.next(new YI(this.value,t)),this._events.next(new Rd(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity({...n,sourceControl:t})}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ec:bc}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n,t){if(this.asyncValidator){this.status=Lo,this._hasOwnPendingAsyncValidator={emitEvent:!1!==t};const r=RI(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{emitEvent:t,shouldHaveEmitted:n})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();const n=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,n}return!1}setErrors(n,t={}){this.errors=n,this._updateControlsErrors(!1!==t.emitEvent,this,t.shouldHaveEmitted)}get(n){let t=n;return null==t||(Array.isArray(t)||(t=t.split(".")),0===t.length)?null:t.reduce((r,i)=>r&&r._find(i),this)}getError(n,t){const r=t?this.get(t):this;return r&&r.errors?r.errors[n]:null}hasError(n,t){return!!this.getError(n,t)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n,t,r){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),(n||r)&&this._events.next(new Rd(this.status,t)),this._parent&&this._parent._updateControlsErrors(n,t,r)}_initObservables(){this.valueChanges=new ve,this.statusChanges=new ve}_calculateStatus(){return this._allControlsDisabled()?Ec:this.errors?Od:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Lo)?Lo:this._anyControlsHaveStatus(Od)?Od:bc}_anyControlsHaveStatus(n){return this._anyControls(t=>t.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n,t){const r=!this._anyControlsDirty(),i=this.pristine!==r;this.pristine=r,this._parent&&!n.onlySelf&&this._parent._updatePristine(n,t),i&&this._events.next(new Sy(this.pristine,t))}_updateTouched(n={},t){this.touched=this._anyControlsTouched(),this._events.next(new Ty(this.touched,t)),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,t)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){Fd(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function MG(e){return Array.isArray(e)?Cy(e):e||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function IG(e){return Array.isArray(e)?by(e):e||null}(this._rawAsyncValidators)}}class wc extends Ld{constructor(n,t,r){super(My(t),Iy(r,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,t){return this.controls[n]?this.controls[n]:(this.controls[n]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(n,t,r={}){this.registerControl(n,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(n,t={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(n,t,r={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],t&&this.registerControl(n,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,t={}){QI(this,0,n),Object.keys(n).forEach(r=>{KI(this,!0,r),this.controls[r].setValue(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(Object.keys(n).forEach(r=>{const i=this.controls[r];i&&i.patchValue(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n={},t={}){this._forEachChild((r,i)=>{r.reset(n?n[i]:null,{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(n,t,r)=>(n[r]=t.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(t,r)=>!!r._syncPendingControls()||t);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(t=>{const r=this.controls[t];r&&n(r,t)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[t,r]of Object.entries(this.controls))if(this.contains(t)&&n(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(t,r,i)=>((r.enabled||this.disabled)&&(t[i]=r.value),t))}_reduceChildren(n,t){let r=n;return this._forEachChild((i,s)=>{r=t(r,i,s)}),r}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}class XI extends wc{}const ls=new N("CallSetDisabledState",{providedIn:"root",factory:()=>Dc}),Dc="always";function Vd(e,n){return[...n.path,e]}function Sc(e,n,t=Dc){Ay(e,n),n.valueAccessor.writeValue(e.value),(e.disabled||"always"===t)&&n.valueAccessor.setDisabledState?.(e.disabled),function xG(e,n){n.valueAccessor.registerOnChange(t=>{e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&JI(e,n)})}(e,n),function kG(e,n){const t=(r,i)=>{n.valueAccessor.writeValue(r),i&&n.viewToModelUpdate(r)};e.registerOnChange(t),n._registerOnDestroy(()=>{e._unregisterOnChange(t)})}(e,n),function NG(e,n){n.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&JI(e,n),"submit"!==e.updateOn&&e.markAsTouched()})}(e,n),function AG(e,n){if(n.valueAccessor.setDisabledState){const t=r=>{n.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(t),n._registerOnDestroy(()=>{e._unregisterOnDisabledChange(t)})}}(e,n)}function Bd(e,n,t=!0){const r=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(r),n.valueAccessor.registerOnTouched(r)),Hd(e,n),e&&(n._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function jd(e,n){e.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(n)})}function Ay(e,n){const t=UI(e);null!==n.validator?e.setValidators(HI(t,n.validator)):"function"==typeof t&&e.setValidators([t]);const r=$I(e);null!==n.asyncValidator?e.setAsyncValidators(HI(r,n.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const i=()=>e.updateValueAndValidity();jd(n._rawValidators,i),jd(n._rawAsyncValidators,i)}function Hd(e,n){let t=!1;if(null!==e){if(null!==n.validator){const i=UI(e);if(Array.isArray(i)&&i.length>0){const s=i.filter(o=>o!==n.validator);s.length!==i.length&&(t=!0,e.setValidators(s))}}if(null!==n.asyncValidator){const i=$I(e);if(Array.isArray(i)&&i.length>0){const s=i.filter(o=>o!==n.asyncValidator);s.length!==i.length&&(t=!0,e.setAsyncValidators(s))}}}const r=()=>{};return jd(n._rawValidators,r),jd(n._rawAsyncValidators,r),t}function JI(e,n){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function Ny(e,n){if(!e.hasOwnProperty("model"))return!1;const t=e.model;return!!t.isFirstChange()||!Object.is(n,t.currentValue)}function ky(e,n){if(!n)return null;let t,r,i;return Array.isArray(n),n.forEach(s=>{s.constructor===Ad?t=s:function RG(e){return Object.getPrototypeOf(e.constructor)===cs}(s)?r=s:i=s}),i||r||t||null}function nA(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function rA(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}Promise.resolve();const Mc=class extends Ld{constructor(n=null,t,r){super(My(t),Iy(r,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Fd(t)&&(t.nonNullable||t.initialValueIsDefault)&&(this.defaultValue=rA(n)?n.value:n)}setValue(n,t={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(n,t={}){this.setValue(n,t)}reset(n=this.defaultValue,t={}){this._applyFormState(n),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){nA(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){nA(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){rA(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};let iA=(()=>{class e extends tn{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Vd(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static#e=this.\u0275fac=(()=>{let t;return function(i){return(t||(t=Lt(e)))(i||e)}})();static#t=this.\u0275dir=Z({type:e,features:[me]})}return e})();const jG={provide:Jr,useExisting:De(()=>us)},oA=Promise.resolve();let us=(()=>{class e extends Jr{constructor(t,r,i,s,o,a){super(),this._changeDetectorRef=o,this.callSetDisabledState=a,this.control=new Mc,this._registered=!1,this.name="",this.update=new ve,this._parent=t,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=ky(0,s)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){const r=t.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),Ny(t,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(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Sc(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()}_updateValue(t){oA.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){const r=t.isDisabled.currentValue,i=0!==r&&function fg(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}(r);oA.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?Vd(t,this._parent):[t]}static#e=this.\u0275fac=function(r){return new(r||e)(v(tn,9),v(Bt,10),v(Si,10),v(Nn,10),v(wo,8),v(ls,8))};static#t=this.\u0275dir=Z({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Oe([jG]),me,tr]})}return e})(),Ud=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275dir=Z({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return e})();const Oy=new N(""),qG={provide:tn,useExisting:De(()=>Bo)};let Bo=(()=>{class e extends tn{get submitted(){return Hn(this._submittedReactive)}set submitted(t){this._submittedReactive.set(t)}constructor(t,r,i){super(),this.callSetDisabledState=i,this._submitted=ce(()=>this._submittedReactive()),this._submittedReactive=se(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new ve,this._setValidators(t),this._setAsyncValidators(r)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Hd(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const r=this.form.get(t.path);return Sc(r,t,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),r}getControl(t){return this.form.get(t.path)}removeControl(t){Bd(t.control||null,t,!1),function FG(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,r){this.form.get(t.path).setValue(r)}onSubmit(t){return this._submittedReactive.set(!0),function tA(e,n){e._syncPendingControls(),n.forEach(t=>{const r=t.control;"submit"===r.updateOn&&r._pendingChange&&(t.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(t),this.form._events.next(new SG(this.control)),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this._submittedReactive.set(!1),this.form._events.next(new TG(this.form))}_updateDomValue(){this.directives.forEach(t=>{const r=t.control,i=this.form.get(t.path);r!==i&&(Bd(r||null,t),(e=>e instanceof Mc)(i)&&(Sc(i,t,this.callSetDisabledState),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const r=this.form.get(t.path);(function eA(e,n){Ay(e,n)})(r,t),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const r=this.form.get(t.path);r&&function PG(e,n){return Hd(e,n)}(r,t)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ay(this.form,this),this._oldForm&&Hd(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(r){return new(r||e)(v(Bt,10),v(Si,10),v(ls,8))};static#t=this.\u0275dir=Z({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,i){1&r&&te("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Oe([qG]),me,tr]})}return e})();const WG={provide:tn,useExisting:De(()=>$d)};let $d=(()=>{class e extends iA{constructor(t,r,i){super(),this.name=null,this._parent=t,this._setValidators(r),this._setAsyncValidators(i)}_checkParentType(){dA(this._parent)}static#e=this.\u0275fac=function(r){return new(r||e)(v(tn,13),v(Bt,10),v(Si,10))};static#t=this.\u0275dir=Z({type:e,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},features:[Oe([WG]),me]})}return e})();const ZG={provide:tn,useExisting:De(()=>Gd)};let Gd=(()=>{class e extends tn{constructor(t,r,i){super(),this.name=null,this._parent=t,this._setValidators(r),this._setAsyncValidators(i)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Vd(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){dA(this._parent)}static#e=this.\u0275fac=function(r){return new(r||e)(v(tn,13),v(Bt,10),v(Si,10))};static#t=this.\u0275dir=Z({type:e,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},features:[Oe([ZG]),me]})}return e})();function dA(e){return!(e instanceof $d||e instanceof Bo||e instanceof Gd)}const YG={provide:Jr,useExisting:De(()=>Ic)};let Ic=(()=>{class e extends Jr{set isDisabled(t){}static#e=this._ngModelWarningSentOnce=!1;constructor(t,r,i,s,o){super(),this._ngModelWarningConfig=o,this._added=!1,this.name=null,this.update=new ve,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=ky(0,s)}ngOnChanges(t){this._added||this._setUpControl(),Ny(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return Vd(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static#t=this.\u0275fac=function(r){return new(r||e)(v(tn,13),v(Bt,10),v(Si,10),v(Nn,10),v(Oy,8))};static#n=this.\u0275dir=Z({type:e,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[Oe([YG]),me,tr]})}return e})();function pA(e){return"number"==typeof e?e:parseInt(e,10)}let ds=(()=>{class e{constructor(){this._validator=xd}ngOnChanges(t){if(this.inputName in t){const r=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):xd,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return null!=t}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275dir=Z({type:e,features:[tr]})}return e})();const az={provide:Bt,useExisting:De(()=>zd),multi:!0};let zd=(()=>{class e extends ds{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=t=>pA(t),this.createValidator=t=>NI(t)}static#e=this.\u0275fac=(()=>{let t;return function(i){return(t||(t=Lt(e)))(i||e)}})();static#t=this.\u0275dir=Z({type:e,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(r,i){2&r&&At("minlength",i._enabled?i.minlength:null)},inputs:{minlength:"minlength"},features:[Oe([az]),me]})}return e})();const cz={provide:Bt,useExisting:De(()=>Ac),multi:!0};let Ac=(()=>{class e extends ds{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=t=>pA(t),this.createValidator=t=>kI(t)}static#e=this.\u0275fac=(()=>{let t;return function(i){return(t||(t=Lt(e)))(i||e)}})();static#t=this.\u0275dir=Z({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(r,i){2&r&&At("maxlength",i._enabled?i.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Oe([cz]),me]})}return e})(),bA=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=bt({type:e});static#n=this.\u0275inj=ft({})}return e})();class EA extends Ld{constructor(n,t,r){super(My(t),Iy(r,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,t={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(n,t,r={}){this.controls.splice(n,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(n,t={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(n,t,r={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),t&&(this.controls.splice(i,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,t={}){QI(this,0,n),n.forEach((r,i)=>{KI(this,!1,i),this.at(i).setValue(r,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(n.forEach((r,i)=>{this.at(i)&&this.at(i).patchValue(r,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n=[],t={}){this._forEachChild((r,i)=>{r.reset(n[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((t,r)=>!!r._syncPendingControls()||t,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((t,r)=>{n(t,r)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(t=>t.enabled&&n(t))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}function wA(e){return!!e&&(void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn)}let Vy=(()=>{class e{constructor(){this.useNonNullable=!1}get nonNullable(){const t=new e;return t.useNonNullable=!0,t}group(t,r=null){const i=this._reduceControls(t);let s={};return wA(r)?s=r:null!==r&&(s.validators=r.validator,s.asyncValidators=r.asyncValidator),new wc(i,s)}record(t,r=null){const i=this._reduceControls(t);return new XI(i,r)}control(t,r,i){let s={};return this.useNonNullable?(wA(r)?s=r:(s.validators=r,s.asyncValidators=i),new Mc(t,{...s,nonNullable:!0})):new Mc(t,r,i)}array(t,r,i){const s=t.map(o=>this._createControl(o));return new EA(s,r,i)}_reduceControls(t){const r={};return Object.keys(t).forEach(i=>{r[i]=this._createControl(t[i])}),r}_createControl(t){return t instanceof Mc||t instanceof Ld?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),DA=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:ls,useValue:t.callSetDisabledState??Dc}]}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=bt({type:e});static#n=this.\u0275inj=ft({imports:[bA]})}return e})(),SA=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:Oy,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:ls,useValue:t.callSetDisabledState??Dc}]}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=bt({type:e});static#n=this.\u0275inj=ft({imports:[bA]})}return e})();function TA(...e){return function dz(){return eM(1)}()(Ci(e,dd(e)))}function MA(...e){const n=dd(e);return gn((t,r)=>{(n?TA(e,t,n):TA(e,t)).subscribe(r)})}function IA(e,n=dI){return gn((t,r)=>{let i=null,s=null,o=null;const a=()=>{if(i){i.unsubscribe(),i=null;const l=s;s=null,r.next(l)}};function c(){const l=o+e,u=n.now();if(u<l)return i=this.schedule(void 0,l-u),void r.add(i);a()}t.subscribe(sn(r,l=>{s=l,o=n.now(),i||(i=n.schedule(c,e),r.add(i))},()=>{a(),r.complete()},void 0,()=>{s=i=null}))})}function By(e,n,t,r,i,s,o){e.valueChanges.pipe(MA(null),IA(50),function fz(){return gn((e,n)=>{let t,r=!1;e.subscribe(sn(n,i=>{const s=t;t=i,r&&n.next([s,i]),r=!0}))})}(),HM(([a,c])=>JSON.stringify(a)!==JSON.stringify(c)),t.untilDestroy()).subscribe(([a,c])=>{const l={...n()};let u=!1;!r()&&l.canShowError&&(u=!0,l.canShowError=!1);const d=i(c);l.filled!==d&&(u=!0,l.filled=d),u&&n.update(f=>({...l})),s&&s(c,o)}),e.statusChanges.pipe(MA(e.status),t.untilDestroy()).subscribe(a=>{n.update(c=>({...c,isValid:"VALID"===a}))})}const qd=new N("ngx-mask config"),AA=new N("new ngx-mask config"),xA=new N("initial ngx-mask config"),yz={suffix:"",prefix:"",thousandSeparator:" ",decimalMarker:[".",","],clearIfNotMatch:!1,showTemplate:!1,showMaskTyped:!1,placeHolderCharacter:"_",dropSpecialCharacters:!0,hiddenInput:void 0,shownMaskExpression:"",separatorLimit:"",allowNegativeNumbers:!1,validation:!0,specialCharacters:["-","/","(",")",".",":"," ","+",",","@","[","]",'"',"'"],leadZeroDateTime:!1,apm:!1,leadZero:!1,keepCharacterPositions:!1,triggerOnMaskChange:!1,inputTransformFn:e=>e,outputTransformFn:e=>e,maskFilled:new ve,patterns:{0:{pattern:new RegExp("\\d")},9:{pattern:new RegExp("\\d"),optional:!0},X:{pattern:new RegExp("\\d"),symbol:"*"},A:{pattern:new RegExp("[a-zA-Z0-9]")},S:{pattern:new RegExp("[a-zA-Z]")},U:{pattern:new RegExp("[A-Z]")},L:{pattern:new RegExp("[a-z]")},d:{pattern:new RegExp("\\d")},m:{pattern:new RegExp("\\d")},M:{pattern:new RegExp("\\d")},H:{pattern:new RegExp("\\d")},h:{pattern:new RegExp("\\d")},s:{pattern:new RegExp("\\d")}}},_z=["Hh:m0:s0","Hh:m0","m0:s0"],vz=["percent","Hh","s0","m0","separator","d0/M0/0000","d0/M0","d0","M0"];let Cz=(()=>{class e{constructor(){this._config=A(qd),this.dropSpecialCharacters=this._config.dropSpecialCharacters,this.hiddenInput=this._config.hiddenInput,this.clearIfNotMatch=this._config.clearIfNotMatch,this.specialCharacters=this._config.specialCharacters,this.patterns=this._config.patterns,this.prefix=this._config.prefix,this.suffix=this._config.suffix,this.thousandSeparator=this._config.thousandSeparator,this.decimalMarker=this._config.decimalMarker,this.showMaskTyped=this._config.showMaskTyped,this.placeHolderCharacter=this._config.placeHolderCharacter,this.validation=this._config.validation,this.separatorLimit=this._config.separatorLimit,this.allowNegativeNumbers=this._config.allowNegativeNumbers,this.leadZeroDateTime=this._config.leadZeroDateTime,this.leadZero=this._config.leadZero,this.apm=this._config.apm,this.inputTransformFn=this._config.inputTransformFn,this.outputTransformFn=this._config.outputTransformFn,this.keepCharacterPositions=this._config.keepCharacterPositions,this._shift=new Set,this.maskExpression="",this.actualValue="",this.showKeepCharacterExp="",this.shownMaskExpression="",this.deletedSpecialCharacter=!1,this._formatWithSeparators=(t,r,i,s)=>{let o=[],a="";if(Array.isArray(i)){const f=new RegExp(i.map(h=>"[\\^$.|?*+()".indexOf(h)>=0?`\\${h}`:h).join("|"));o=t.split(f),a=t.match(f)?.[0]??""}else o=t.split(i),a=i;const c=o.length>1?`${a}${o[1]}`:"";let l=o[0]??"";const u=this.separatorLimit.replace(/\s/g,"");u&&+u&&(l="-"===l[0]?`-${l.slice(1,l.length).slice(0,u.length)}`:l.slice(0,u.length));const d=/(\d+)(\d{3})/;for(;r&&d.test(l);)l=l.replace(d,"$1"+r+"$2");return void 0===s?l+c:0===s?l:l+c.substring(0,s+1)},this.percentage=t=>{const r=t.replace(",","."),i=Number(r);return!isNaN(i)&&i>=0&&i<=100},this.getPrecision=t=>{const r=t.split(".");return r.length>1?Number(r[r.length-1]):1/0},this.checkAndRemoveSuffix=t=>{for(let r=this.suffix?.length-1;r>=0;r--){const i=this.suffix.substring(r,this.suffix?.length);if(t.includes(i)&&r!==this.suffix?.length-1&&(r-1<0||!t.includes(this.suffix.substring(r-1,this.suffix?.length))))return t.replace(i,"")}return t},this.checkInputPrecision=(t,r,i)=>{if(r<1/0){if(Array.isArray(i)){const c=i.find(l=>l!==this.thousandSeparator);i=c||i[0]}const s=new RegExp(this._charToRegExpExpression(i)+`\\d{${r}}.*$`),o=t.match(s),a=(o&&o[0]?.length)??0;a-1>r&&(t=t.substring(0,t.length-(a-1-r))),0===r&&this._compareOrIncludes(t[t.length-1],i,this.thousandSeparator)&&(t=t.substring(0,t.length-1))}return t}}applyMaskWithPattern(t,r){const[i,s]=r;return this.customPattern=s,this.applyMask(t,i)}applyMask(t,r,i=0,s=!1,o=!1,a=()=>{}){if(!r||"string"!=typeof t)return"";let c=0,l="",u=!1,d=!1,f=1,h=!1;t.slice(0,this.prefix.length)===this.prefix&&!this.showMaskTyped&&(t=t.slice(this.prefix.length,t.length)),this.suffix&&t?.length>0&&(t=this.checkAndRemoveSuffix(t)),"("===t&&this.prefix&&(t="");const p=t.toString().split("");if(this.allowNegativeNumbers&&"-"===t.slice(c,c+1)&&(l+=t.slice(c,c+1)),"IP"===r){const D=t.split(".");this.ipError=this._validIP(D),r="099.099.099.099"}const m=[];for(let D=0;D<t.length;D++)t[D]?.match("\\d")&&m.push(t[D]??"");if("CPF_CNPJ"===r&&(this.cpfCnpjError=11!==m.length&&14!==m.length,r=m.length>11?"00.000.000/0000-00":"000.000.000-00"),r.startsWith("percent")){if(t.match("[a-z]|[A-Z]")||t.match(/[-!$%^&*()_+|~=`{}\[\]:";'<>?,\/.]/)&&!o){t=this._stripToDecimal(t);const F=this.getPrecision(r);t=this.checkInputPrecision(t,F,this.decimalMarker)}const D="string"==typeof this.decimalMarker?this.decimalMarker:".";if(t.indexOf(D)>0&&!this.percentage(t.substring(0,t.indexOf(D)))){let F=t.substring(0,t.indexOf(D)-1);this.allowNegativeNumbers&&"-"===t.slice(c,c+1)&&!o&&(F=t.substring(0,t.indexOf(D))),t=`${F}${t.substring(t.indexOf(D),t.length)}`}let M="";M=this.allowNegativeNumbers&&"-"===t.slice(c,c+1)?t.slice(c+1,c+t.length):t,l=this.percentage(M)?this._splitPercentZero(t):this._splitPercentZero(t.substring(0,t.length-1))}else if(r.startsWith("separator")){(t.match("[w\u0430-\u044f\u0410-\u042f]")||t.match("[\u0401\u0451\u0410-\u044f]")||t.match("[a-z]|[A-Z]")||t.match(/[-@#!$%\\^&*()_\xa3\xac'+|~=`{}\]:";<>.?/]/)||t.match("[^A-Za-z0-9,]"))&&(t=this._stripToDecimal(t)),t="-"===t[0]&&this.allowNegativeNumbers?t.length>2&&"0"===t[1]&&t[2]!==this.thousandSeparator&&!this._compareOrIncludes(t[2],this.decimalMarker,this.thousandSeparator)&&!o?t.slice(0,t.length-1):t:t.length>1&&"0"===t[0]&&t[1]!==this.thousandSeparator&&!this._compareOrIncludes(t[1],this.decimalMarker,this.thousandSeparator)&&!o?t.slice(0,t.length-1):t,o&&(t=this._compareOrIncludes(t[t.length-1],this.decimalMarker,this.thousandSeparator)?t.slice(0,t.length-1):t);const D=this._charToRegExpExpression(this.thousandSeparator);let M='@#!$%^&*()_+|~=`{}\\[\\]:\\s,\\.";<>?\\/'.replace(D,"");if(Array.isArray(this.decimalMarker))for(const ct of this.decimalMarker)M=M.replace(this._charToRegExpExpression(ct),"");else M=M.replace(this._charToRegExpExpression(this.decimalMarker),"");const F=new RegExp("["+M+"]");(t.match(F)||1===t.length&&this._compareOrIncludes(t,this.decimalMarker,this.thousandSeparator))&&(t=t.substring(0,t.length-1));const j=this.getPrecision(r),L=(t=this.checkInputPrecision(t,j,this.decimalMarker)).replace(new RegExp(D,"g"),"");l=this._formatWithSeparators(L,this.thousandSeparator,this.decimalMarker,j);const Ye=l.indexOf(",")-t.indexOf(","),et=l.length-t.length;if(et>0&&l[i]!==this.thousandSeparator){d=!0;let ct=0;do{this._shift.add(i+ct),ct++}while(ct<et)}else l[i-1]===this.decimalMarker||-4===et||-3===et||","===l[i]?(this._shift.clear(),this._shift.add(i-1)):0!==Ye&&i>0&&!(l.indexOf(",")>=i&&i>3)||!(l.indexOf(".")>=i&&i>3)&&et<=0?(this._shift.clear(),d=!0,f=et,this._shift.add(i+=et)):this._shift.clear()}else for(let D=0,M=p[0];D<p.length&&c!==r.length;D++,M=p[D]??""){const F="*"in this.patterns;if(this._checkSymbolMask(M,r[c]??"")&&"?"===r[c+1])l+=M,c+=2;else if("*"===r[c+1]&&u&&this._checkSymbolMask(M,r[c+2]??""))l+=M,c+=3,u=!1;else if(this._checkSymbolMask(M,r[c]??"")&&"*"===r[c+1]&&!F)l+=M,u=!0;else if("?"===r[c+1]&&this._checkSymbolMask(M,r[c+2]??""))l+=M,c+=3;else if(this._checkSymbolMask(M,r[c]??"")){if("H"===r[c]&&(this.apm?Number(M)>9:Number(M)>2)){i+=1,c+=1,this._shiftStep(r,c,p.length),D--,this.leadZeroDateTime&&(l+="0");continue}if("h"===r[c]&&(this.apm?1===l.length&&Number(l)>1||"1"===l&&Number(M)>2||1===t.slice(c-1,c).length&&Number(t.slice(c-1,c))>2||"1"===t.slice(c-1,c)&&Number(M)>2:"2"===l&&Number(M)>3||("2"===l.slice(c-2,c)||"2"===l.slice(c-3,c)||"2"===l.slice(c-4,c)||"2"===l.slice(c-1,c))&&Number(M)>3&&c>10)){i+=1,c+=1,D--;continue}if(("m"===r[c]||"s"===r[c])&&Number(M)>5){i+=1,c+=1,this._shiftStep(r,c,p.length),D--,this.leadZeroDateTime&&(l+="0");continue}const j=31,L=t[c],Ye=t[c+1],et=t[c+2],ct=t[c-1],nn=t[c-2],Mi=t[c-3],Wn=t.slice(c-3,c-1),gs=t.slice(c-1,c+1),O=t.slice(c,c+2),B=t.slice(c-2,c);if("d"===r[c]){const G="M0"===r.slice(0,2),le="M0"===r.slice(0,2)&&this.specialCharacters.includes(nn);if(Number(M)>3&&this.leadZeroDateTime||!G&&(Number(O)>j||Number(gs)>j||this.specialCharacters.includes(Ye))||(le?Number(gs)>j||!this.specialCharacters.includes(L)&&this.specialCharacters.includes(et)||this.specialCharacters.includes(L):Number(O)>j||this.specialCharacters.includes(Ye))){i+=1,c+=1,this._shiftStep(r,c,p.length),D--,this.leadZeroDateTime&&(l+="0");continue}}if("M"===r[c]){const le=0===c&&(Number(M)>2||Number(O)>12||this.specialCharacters.includes(Ye)),vt=r.slice(c+2,c+3),Zn=Wn.includes(vt)&&(this.specialCharacters.includes(nn)&&Number(gs)>12&&!this.specialCharacters.includes(L)||this.specialCharacters.includes(L)||this.specialCharacters.includes(Mi)&&Number(B)>12&&!this.specialCharacters.includes(ct)||this.specialCharacters.includes(ct)),rn=Number(Wn)<=j&&!this.specialCharacters.includes(Wn)&&this.specialCharacters.includes(ct)&&(Number(O)>12||this.specialCharacters.includes(Ye)),Rr=Number(O)>12&&5===c||this.specialCharacters.includes(Ye)&&5===c,Ge=Number(Wn)>j&&!this.specialCharacters.includes(Wn)&&!this.specialCharacters.includes(B)&&Number(B)>12,ff=Number(Wn)<=j&&!this.specialCharacters.includes(Wn)&&!this.specialCharacters.includes(ct)&&Number(gs)>12;if(Number(M)>1&&this.leadZeroDateTime||le||Zn||ff||Ge||rn||Rr&&!this.leadZeroDateTime){i+=1,c+=1,this._shiftStep(r,c,p.length),D--,this.leadZeroDateTime&&(l+="0");continue}}l+=M,c++}else" "===M&&" "===r[c]||"/"===M&&"/"===r[c]?(l+=M,c++):-1!==this.specialCharacters.indexOf(r[c]??"")?(l+=r[c],c++,this._shiftStep(r,c,p.length),D--):"9"===r[c]&&this.showMaskTyped?this._shiftStep(r,c,p.length):this.patterns[r[c]??""]&&this.patterns[r[c]??""]?.optional?(p[c]&&"099.099.099.099"!==r&&"000.000.000-00"!==r&&"00.000.000/0000-00"!==r&&!r.match(/^9+\.0+$/)&&!this.patterns[r[c]??""]?.optional&&(l+=p[c]),r.includes("9*")&&r.includes("0*")&&c++,c++,D--):"*"===this.maskExpression[c+1]&&this._findSpecialChar(this.maskExpression[c+2]??"")&&this._findSpecialChar(M)===this.maskExpression[c+2]&&u||"?"===this.maskExpression[c+1]&&this._findSpecialChar(this.maskExpression[c+2]??"")&&this._findSpecialChar(M)===this.maskExpression[c+2]&&u?(c+=3,l+=M):this.showMaskTyped&&this.specialCharacters.indexOf(M)<0&&M!==this.placeHolderCharacter&&1===this.placeHolderCharacter.length&&(h=!0)}l.length+1===r.length&&-1!==this.specialCharacters.indexOf(r[r.length-1]??"")&&(l+=r[r.length-1]);let g=i+1;for(;this._shift.has(g);)f++,g++;let _=s&&!r.startsWith("separator")?c:this._shift.has(i)?f:0;h&&_--,a(_,d),f<0&&this._shift.clear();let y=!1;o&&(y=p.every(D=>this.specialCharacters.includes(D)));let w=`${this.prefix}${y?"":l}${this.suffix}`;if(0===l.length&&(w=this.dropSpecialCharacters?`${l}`:`${this.prefix}${l}`),l.includes("-")&&this.prefix&&this.allowNegativeNumbers){if(o&&"-"===l)return"";w=`-${this.prefix}${l.split("-").join("")}${this.suffix}`}return w}_findDropSpecialChar(t){return Array.isArray(this.dropSpecialCharacters)?this.dropSpecialCharacters.find(r=>r===t):this._findSpecialChar(t)}_findSpecialChar(t){return this.specialCharacters.find(r=>r===t)}_checkSymbolMask(t,r){return this.patterns=this.customPattern?this.customPattern:this.patterns,(this.patterns[r]?.pattern&&this.patterns[r]?.pattern.test(t))??!1}_stripToDecimal(t){return t.split("").filter((r,i)=>{const s="string"==typeof this.decimalMarker?r===this.decimalMarker:this.decimalMarker.includes(r);return r.match("^-?\\d")||r===this.thousandSeparator||s||"-"===r&&0===i&&this.allowNegativeNumbers}).join("")}_charToRegExpExpression(t){return t&&(" "===t?"\\s":"[\\^$.|?*+()".indexOf(t)>=0?`\\${t}`:t)}_shiftStep(t,r,i){const s=/[*?]/g.test(t.slice(0,r))?i:r;this._shift.add(s+this.prefix.length||0)}_compareOrIncludes(t,r,i){return Array.isArray(r)?r.filter(s=>s!==i).includes(t):t===r}_validIP(t){return!(4===t.length&&!t.some((r,i)=>t.length!==i+1?""===r||Number(r)>255:""===r||Number(r.substring(0,3))>255))}_splitPercentZero(t){const r=t.indexOf("string"==typeof this.decimalMarker?this.decimalMarker:".");if(-1===r){const i=parseInt(t,10);return isNaN(i)?"":i.toString()}{const i=parseInt(t.substring(0,r),10),s=t.substring(r+1),o=isNaN(i)?"":i.toString();return""===o?"":o+("string"==typeof this.decimalMarker?this.decimalMarker:".")+s}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e})(),jy=(()=>{class e extends Cz{constructor(){super(...arguments),this.isNumberValue=!1,this.maskIsShown="",this.selStart=null,this.selEnd=null,this.writingValue=!1,this.maskChanged=!1,this._maskExpressionArray=[],this.triggerOnMaskChange=!1,this._emitValue=!1,this._previousValue="",this._currentValue="",this.onChange=t=>{},this.document=A(Vt),this._config=A(qd),this._elementRef=A(cn,{optional:!0}),this._renderer=A(Ar,{optional:!0})}applyMask(t,r,i=0,s=!1,o=!1,a=()=>{}){if(!r)return t!==this.actualValue?this.actualValue:t;if(this.maskIsShown=this.showMaskTyped?this.showMaskInInput():"","IP"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(t||"#")),"CPF_CNPJ"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(t||"#")),!t&&this.showMaskTyped)return this.formControlResult(this.prefix),this.prefix+this.maskIsShown;const c=t&&"number"==typeof this.selStart?t[this.selStart]??"":"";let l="";if(void 0!==this.hiddenInput&&!this.writingValue){let h=t&&1===t.length?t.split(""):this.actualValue.split("");"object"==typeof this.selStart&&"object"==typeof this.selEnd?(this.selStart=Number(this.selStart),this.selEnd=Number(this.selEnd)):""!==t&&h.length?"number"==typeof this.selStart&&"number"==typeof this.selEnd&&(t.length>h.length?h.splice(this.selStart,0,c):t.length<h.length&&(h.length-t.length==1?h.splice(o?this.selStart-1:t.length-1,1):h.splice(this.selStart,this.selEnd-this.selStart))):h=[],this.showMaskTyped&&(this.hiddenInput||(t=this.removeMask(t))),l=this.actualValue.length&&h.length<=t.length?this.shiftTypedSymbols(h.join("")):t}if(s&&(this.hiddenInput||!this.hiddenInput)&&(l=t),this.deletedSpecialCharacter&&i&&(this.specialCharacters.includes(this.actualValue.slice(i,i+1))?i+=1:"M0"!==r.slice(i-1,i+1)&&(i-=2),this.deletedSpecialCharacter=!1),this.showMaskTyped&&1===this.placeHolderCharacter.length&&!this.leadZeroDateTime&&(t=this.removeMask(t)),l=this.maskChanged?t:l&&l.length?l:t,this.showMaskTyped&&this.keepCharacterPositions&&this.actualValue&&!s){const h=this.dropSpecialCharacters?this.removeMask(this.actualValue):this.actualValue;return this.formControlResult(h),this.actualValue?this.actualValue:this.prefix+this.maskIsShown+this.suffix}const u=super.applyMask(l,r,i,s,o,a);if(this.actualValue=this.getActualValue(u),"."===this.thousandSeparator&&"."===this.decimalMarker&&(this.decimalMarker=","),this.maskExpression.startsWith("separator")&&!0===this.dropSpecialCharacters&&(this.specialCharacters=this.specialCharacters.filter(h=>!this._compareOrIncludes(h,this.decimalMarker,this.thousandSeparator))),(u||""===u)&&(this._previousValue=this._currentValue,this._currentValue=u,this._emitValue=this._previousValue!==this._currentValue||this.maskChanged||this._previousValue===this._currentValue&&s),this._emitValue&&this.formControlResult(u),!this.showMaskTyped||this.showMaskTyped&&this.hiddenInput)return this.hiddenInput?o?this.hideInput(u,this.maskExpression):this.hideInput(u,this.maskExpression)+this.maskIsShown.slice(u.length):u;const d=u.length,f=this.prefix+this.maskIsShown;if(this.maskExpression.includes("H")){const h=this._numberSkipedSymbols(u);return u+f.slice(d+h)}return"IP"===this.maskExpression||"CPF_CNPJ"===this.maskExpression?u+f:u+f.slice(d)}_numberSkipedSymbols(t){const r=/(^|\D)(\d\D)/g;let i=r.exec(t),s=0;for(;null!=i;)s+=1,i=r.exec(t);return s}applyValueChanges(t,r,i,s=()=>{}){const o=this._elementRef?.nativeElement;o&&(o.value=this.applyMask(o.value,this.maskExpression,t,r,i,s),o!==this._getActiveElement()&&this.clearIfNotMatchFn())}hideInput(t,r){return t.split("").map((i,s)=>this.patterns&&this.patterns[r[s]??""]&&this.patterns[r[s]??""]?.symbol?this.patterns[r[s]??""]?.symbol:i).join("")}getActualValue(t){const r=t.split("").filter((i,s)=>{const o=this.maskExpression[s]??"";return this._checkSymbolMask(i,o)||this.specialCharacters.includes(o)&&i===o});return r.join("")===t?r.join(""):t}shiftTypedSymbols(t){let r="";return(t&&t.split("").map((s,o)=>{if(this.specialCharacters.includes(t[o+1]??"")&&t[o+1]!==this.maskExpression[o+1])return r=s,t[o+1];if(r.length){const a=r;return r="",a}return s})||[]).join("")}numberToString(t){return!t&&0!==t||this.maskExpression.startsWith("separator")&&(this.leadZero||!this.dropSpecialCharacters)||this.maskExpression.startsWith("separator")&&this.separatorLimit.length>14&&String(t).length>14?String(t):Number(t).toLocaleString("fullwide",{useGrouping:!1,maximumFractionDigits:20}).replace("/-/","-")}showMaskInInput(t){if(this.showMaskTyped&&this.shownMaskExpression){if(this.maskExpression.length!==this.shownMaskExpression.length)throw new Error("Mask expression must match mask placeholder length");return this.shownMaskExpression}if(this.showMaskTyped){if(t){if("IP"===this.maskExpression)return this._checkForIp(t);if("CPF_CNPJ"===this.maskExpression)return this._checkForCpfCnpj(t)}return this.placeHolderCharacter.length===this.maskExpression.length?this.placeHolderCharacter:this.maskExpression.replace(/\w/g,this.placeHolderCharacter)}return""}clearIfNotMatchFn(){const t=this._elementRef?.nativeElement;t&&this.clearIfNotMatch&&this.prefix.length+this.maskExpression.length+this.suffix.length!==t.value.replace(this.placeHolderCharacter,"").length&&(this.formElementProperty=["value",""],this.applyMask("",this.maskExpression))}set formElementProperty([t,r]){!this._renderer||!this._elementRef||Promise.resolve().then(()=>this._renderer?.setProperty(this._elementRef?.nativeElement,t,r))}checkDropSpecialCharAmount(t){return t.split("").filter(i=>this._findDropSpecialChar(i)).length}removeMask(t){return this._removeMask(this._removeSuffix(this._removePrefix(t)),this.specialCharacters.concat("_").concat(this.placeHolderCharacter))}_checkForIp(t){if("#"===t)return`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`;const r=[];for(let i=0;i<t.length;i++){const s=t[i]??"";s&&s.match("\\d")&&r.push(s)}return r.length<=3?`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`:r.length>3&&r.length<=6?`${this.placeHolderCharacter}.${this.placeHolderCharacter}`:r.length>6&&r.length<=9?this.placeHolderCharacter:""}_checkForCpfCnpj(t){const r=`${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`,i=`${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}/${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`;if("#"===t)return r;const s=[];for(let o=0;o<t.length;o++){const a=t[o]??"";a&&a.match("\\d")&&s.push(a)}return s.length<=3?r.slice(s.length,r.length):s.length>3&&s.length<=6?r.slice(s.length+1,r.length):s.length>6&&s.length<=9?r.slice(s.length+2,r.length):s.length>9&&s.length<11?r.slice(s.length+3,r.length):11===s.length?"":12===s.length?i.slice(17===t.length?16:15,i.length):s.length>12&&s.length<=14?i.slice(s.length+4,i.length):""}_getActiveElement(t=this.document){const r=t?.activeElement?.shadowRoot;return r?.activeElement?this._getActiveElement(r):t.activeElement}formControlResult(t){if(this.writingValue||!this.triggerOnMaskChange&&this.maskChanged)return this.maskChanged&&this.onChange(this.outputTransformFn(this._toNumber(this._checkSymbols(this._removeSuffix(this._removePrefix(t)))))),void(this.maskChanged=!1);Array.isArray(this.dropSpecialCharacters)?this.onChange(this.outputTransformFn(this._toNumber(this._checkSymbols(this._removeMask(this._removeSuffix(this._removePrefix(t)),this.dropSpecialCharacters))))):this.onChange(this.outputTransformFn(this._toNumber(this.dropSpecialCharacters||!this.dropSpecialCharacters&&this.prefix===t?this._checkSymbols(this._removeSuffix(this._removePrefix(t))):t)))}_toNumber(t){if(!this.isNumberValue||""===t||this.maskExpression.startsWith("separator")&&(this.leadZero||!this.dropSpecialCharacters))return t;if(String(t).length>16&&this.separatorLimit.length>14)return String(t);const r=Number(t);if(this.maskExpression.startsWith("separator")&&Number.isNaN(r)){const i=String(t).replace(",",".");return Number(i)}return Number.isNaN(r)?t:r}_removeMask(t,r){return this.maskExpression.startsWith("percent")&&t.includes(".")?t:t&&t.replace(this._regExpForRemove(r),"")}_removePrefix(t){return this.prefix?t&&t.replace(this.prefix,""):t}_removeSuffix(t){return this.suffix?t&&t.replace(this.suffix,""):t}_retrieveSeparatorValue(t){const r=Array.isArray(this.dropSpecialCharacters)?this.specialCharacters.filter(i=>this.dropSpecialCharacters.includes(i)):this.specialCharacters;return this._removeMask(t,r)}_regExpForRemove(t){return new RegExp(t.map(r=>`\\${r}`).join("|"),"gi")}_replaceDecimalMarkerToDot(t){const r=Array.isArray(this.decimalMarker)?this.decimalMarker:[this.decimalMarker];return t.replace(this._regExpForRemove(r),".")}_checkSymbols(t){if(""===t)return t;this.maskExpression.startsWith("percent")&&","===this.decimalMarker&&(t=t.replace(",","."));const r=this._retrieveSeparatorPrecision(this.maskExpression),i=this._replaceDecimalMarkerToDot(this._retrieveSeparatorValue(t));return this.isNumberValue&&r?t===this.decimalMarker?null:this.separatorLimit.length>14?String(i):this._checkPrecision(this.maskExpression,i):i}_retrieveSeparatorPrecision(t){const r=t.match(new RegExp("^separator\\.([^d]*)"));return r?Number(r[1]):null}_checkPrecision(t,r){const i=t.slice(10,11);return t.indexOf("2")>0||this.leadZero&&Number(i)>1?(","===this.decimalMarker&&this.leadZero&&(r=r.replace(",",".")),this.leadZero?Number(r).toFixed(Number(i)):Number(r).toFixed(2)):this.numberToString(r)}_repeatPatternSymbols(t){return t.match(/{[0-9]+}/)&&t.split("").reduce((r,i,s)=>{if(this._start="{"===i?s:this._start,"}"!==i)return this._findSpecialChar(i)?r+i:r;this._end=s;const o=Number(t.slice(this._start+1,this._end)),a=new Array(o+1).join(t[this._start-1]);if(t.slice(0,this._start).length>1&&t.includes("S")){const c=t.slice(0,this._start-1);return c.includes("{")?r+a:c+r+a}return r+a},"")||t}currentLocaleDecimalMarker(){return 1.1.toLocaleString().substring(1,2)}}return e.\u0275fac=(()=>{let n;return function(r){return(n||(n=Lt(e)))(r||e)}})(),e.\u0275prov=R({token:e,factory:e.\u0275fac}),e})(),bz=(()=>{class e{constructor(){this.maskExpression="",this.specialCharacters=[],this.patterns={},this.prefix="",this.suffix="",this.thousandSeparator=" ",this.decimalMarker=".",this.dropSpecialCharacters=null,this.hiddenInput=null,this.showMaskTyped=null,this.placeHolderCharacter=null,this.shownMaskExpression=null,this.showTemplate=null,this.clearIfNotMatch=null,this.validation=null,this.separatorLimit=null,this.allowNegativeNumbers=null,this.leadZeroDateTime=null,this.leadZero=null,this.triggerOnMaskChange=null,this.apm=null,this.inputTransformFn=null,this.outputTransformFn=null,this.keepCharacterPositions=null,this.maskFilled=new ve,this._maskValue="",this._position=null,this._maskExpressionArray=[],this._justPasted=!1,this._isComposing=!1,this.document=A(Vt),this._maskService=A(jy,{self:!0}),this._config=A(qd),this.onChange=t=>{},this.onTouch=()=>{}}ngOnChanges(t){const{maskExpression:r,specialCharacters:i,patterns:s,prefix:o,suffix:a,thousandSeparator:c,decimalMarker:l,dropSpecialCharacters:u,hiddenInput:d,showMaskTyped:f,placeHolderCharacter:h,shownMaskExpression:p,showTemplate:m,clearIfNotMatch:g,validation:_,separatorLimit:y,allowNegativeNumbers:w,leadZeroDateTime:D,leadZero:M,triggerOnMaskChange:F,apm:j,inputTransformFn:L,outputTransformFn:Ye,keepCharacterPositions:et}=t;if(r&&(r.currentValue!==r.previousValue&&!r.firstChange&&(this._maskService.maskChanged=!0),w&&(this._maskService.allowNegativeNumbers=w.currentValue,this._maskService.allowNegativeNumbers&&(this._maskService.specialCharacters=this._maskService.specialCharacters.filter(ct=>"-"!==ct))),r.currentValue&&r.currentValue.split("||").length>1?(this._maskExpressionArray=r.currentValue.split("||").sort((ct,nn)=>ct.length-nn.length),this._setMask()):(this._maskExpressionArray=[],this._maskValue=r.currentValue||"",this._maskService.maskExpression=this._maskValue)),i){if(!i.currentValue||!Array.isArray(i.currentValue))return;this._maskService.specialCharacters=i.currentValue||[]}s&&s.currentValue&&(this._maskService.patterns=s.currentValue),j&&j.currentValue&&(this._maskService.apm=j.currentValue),o&&(this._maskService.prefix=o.currentValue),a&&(this._maskService.suffix=a.currentValue),c&&(this._maskService.thousandSeparator=c.currentValue),l&&(this._maskService.decimalMarker=l.currentValue),u&&(this._maskService.dropSpecialCharacters=u.currentValue),d&&(this._maskService.hiddenInput=d.currentValue),f&&(this._maskService.showMaskTyped=f.currentValue),h&&(this._maskService.placeHolderCharacter=h.currentValue),p&&(this._maskService.shownMaskExpression=p.currentValue),m&&(this._maskService.showTemplate=m.currentValue),g&&(this._maskService.clearIfNotMatch=g.currentValue),_&&(this._maskService.validation=_.currentValue),y&&(this._maskService.separatorLimit=y.currentValue),D&&(this._maskService.leadZeroDateTime=D.currentValue),M&&(this._maskService.leadZero=M.currentValue),F&&(this._maskService.triggerOnMaskChange=F.currentValue),L&&(this._maskService.inputTransformFn=L.currentValue),Ye&&(this._maskService.outputTransformFn=Ye.currentValue),et&&(this._maskService.keepCharacterPositions=et.currentValue),this._applyMask()}validate({value:t}){if(!this._maskService.validation||!this._maskValue)return null;if(this._maskService.ipError)return this._createValidationError(t);if(this._maskService.cpfCnpjError)return this._createValidationError(t);if(this._maskValue.startsWith("separator")||vz.includes(this._maskValue)||this._maskService.clearIfNotMatch)return null;if(_z.includes(this._maskValue))return this._validateTime(t);if(t&&t.toString().length>=1){let r=0;if(this._maskValue.startsWith("percent"))return null;for(const i in this._maskService.patterns)if(this._maskService.patterns[i]?.optional&&(this._maskValue.indexOf(i)!==this._maskValue.lastIndexOf(i)?r+=this._maskValue.split("").filter(o=>o===i).join("").length:-1!==this._maskValue.indexOf(i)&&r++,-1!==this._maskValue.indexOf(i)&&t.toString().length>=this._maskValue.indexOf(i)||r===this._maskValue.length))return null;if(1===this._maskValue.indexOf("{")&&t.toString().length===this._maskValue.length+Number((this._maskValue.split("{")[1]??"").split("}")[0])-4)return null;if(this._maskValue.indexOf("*")>1&&t.toString().length<this._maskValue.indexOf("*")||this._maskValue.indexOf("?")>1&&t.toString().length<this._maskValue.indexOf("?")||1===this._maskValue.indexOf("{"))return this._createValidationError(t);if(-1===this._maskValue.indexOf("*")||-1===this._maskValue.indexOf("?")){t="number"==typeof t?String(t):t;const i=this._maskValue.split("*"),s=this._maskService.dropSpecialCharacters?this._maskValue.length-this._maskService.checkDropSpecialCharAmount(this._maskValue)-r:this.prefix?this._maskValue.length+this.prefix.length-r:this._maskValue.length-r;if(1===i.length&&t.toString().length<s)return this._createValidationError(t);if(i.length>1){const o=i[i.length-1];if(o&&this._maskService.specialCharacters.includes(o[0])&&String(t).includes(o[0]??"")&&!this.dropSpecialCharacters){const a=t.split(o[0]);return a[a.length-1].length===o.length-1?null:this._createValidationError(t)}return(o&&!this._maskService.specialCharacters.includes(o[0])||!o||this._maskService.dropSpecialCharacters)&&t.length>=s-1?null:this._createValidationError(t)}}if(1===this._maskValue.indexOf("*")||1===this._maskValue.indexOf("?"))return null}return t&&this.maskFilled.emit(),null}onPaste(){this._justPasted=!0}onModelChange(t){(""===t||null==t)&&this._maskService.actualValue&&(this._maskService.actualValue=this._maskService.getActualValue(""))}onInput(t){if(this._isComposing)return;const r=t.target,i=this._maskService.inputTransformFn(r.value);if("number"!==r.type)if("string"==typeof i||"number"==typeof i){if(r.value=i.toString(),this._inputValue=r.value,this._setMask(),!this._maskValue)return void this.onChange(r.value);let s=1===r.selectionStart?r.selectionStart+this._maskService.prefix.length:r.selectionStart;if(this.showMaskTyped&&this.keepCharacterPositions&&1===this._maskService.placeHolderCharacter.length){const l=r.value.slice(s-1,s),u=this.prefix.length,d=this._maskService._checkSymbolMask(l,this._maskService.maskExpression[s-1-u]??""),f=this._maskService._checkSymbolMask(l,this._maskService.maskExpression[s+1-u]??""),h=this._maskService.selStart===this._maskService.selEnd,p=Number(this._maskService.selStart)-u,m=Number(this._maskService.selEnd)-u;if("Backspace"===this._code)if(h){if(!this._maskService.specialCharacters.includes(this._maskService.maskExpression.slice(s-this.prefix.length,s+1-this.prefix.length))&&h)if(1===p&&this.prefix)this._maskService.actualValue=this.prefix+this._maskService.placeHolderCharacter+r.value.split(this.prefix).join("").split(this.suffix).join("")+this.suffix,s-=1;else{const g=r.value.substring(0,s),_=r.value.substring(s);this._maskService.actualValue=g+this._maskService.placeHolderCharacter+_}}else this._maskService.actualValue=this._maskService.selStart===u?this.prefix+this._maskService.maskIsShown.slice(0,m)+this._inputValue.split(this.prefix).join(""):this._maskService.selStart===this._maskService.maskIsShown.length+u?this._inputValue+this._maskService.maskIsShown.slice(p,m):this.prefix+this._inputValue.split(this.prefix).join("").slice(0,p)+this._maskService.maskIsShown.slice(p,m)+this._maskService.actualValue.slice(m+u,this._maskService.maskIsShown.length+u)+this.suffix;"Backspace"!==this._code&&(d||f||!h?this._maskService.specialCharacters.includes(r.value.slice(s,s+1))&&f&&!this._maskService.specialCharacters.includes(r.value.slice(s+1,s+2))?(this._maskService.actualValue=r.value.slice(0,s-1)+r.value.slice(s,s+1)+l+r.value.slice(s+2),s+=1):d&&(this._maskService.actualValue=r.value.slice(0,s-1)+l+r.value.slice(s+1).split(this.suffix).join("")+this.suffix):s=Number(r.selectionStart)-1)}let o=0,a=!1;if("Delete"===this._code&&(this._maskService.deletedSpecialCharacter=!0),this._inputValue.length>=this._maskService.maskExpression.length-1&&"Backspace"!==this._code&&"d0/M0/0000"===this._maskService.maskExpression&&s<10){const l=this._inputValue.slice(s-1,s);r.value=this._inputValue.slice(0,s-1)+l+this._inputValue.slice(s+1)}if("Hh:m0:s0"===this._maskService.maskExpression&&this.apm&&(this._justPasted&&"00"===r.value.slice(0,2)&&(r.value=r.value.slice(1,2)+r.value.slice(2,r.value.length)),r.value="00"===r.value?"0":r.value),this._maskService.applyValueChanges(s,this._justPasted,"Backspace"===this._code||"Delete"===this._code,(l,u)=>{this._justPasted=!1,o=l,a=u}),this._getActiveElement()!==r)return;this._maskExpressionArray.length&&(s="Backspace"===this._code?this.specialCharacters.includes(this._inputValue.slice(s-1,s))?s-1:s:1===r.selectionStart?r.selectionStart+this._maskService.prefix.length:r.selectionStart),this._position=1===this._position&&1===this._inputValue.length?null:this._position;let c=this._position?this._inputValue.length+s+o:s+("Backspace"!==this._code||a?o:0);c>this._getActualInputLength()&&(c=this._getActualInputLength()),c<0&&(c=0),r.setSelectionRange(c,c),this._position=null}else console.warn("Ngx-mask writeValue work with string | number, your current value:",typeof i);else this._maskService.applyValueChanges(r.value.length,this._justPasted,"Backspace"===this._code||"Delete"===this._code)}onCompositionStart(){this._isComposing=!0}onCompositionEnd(t){this._isComposing=!1,this._justPasted=!0,this.onInput(t)}onBlur(t){if(this._maskValue){const r=t.target;if(this.leadZero&&r.value.length>0&&"string"==typeof this.decimalMarker){const i=this._maskService.maskExpression,s=Number(this._maskService.maskExpression.slice(i.length-1,i.length));if(s>1){r.value=this.suffix?r.value.split(this.suffix).join(""):r.value;const o=r.value.split(this.decimalMarker)[1];r.value=r.value.includes(this.decimalMarker)?r.value+"0".repeat(s-o.length)+this.suffix:r.value+this.decimalMarker+"0".repeat(s)+this.suffix,this._maskService.actualValue=r.value}}this._maskService.clearIfNotMatchFn()}this.onTouch()}onClick(t){if(!this._maskValue)return;const r=t.target;null!==r&&null!==r.selectionStart&&r.selectionStart===r.selectionEnd&&r.selectionStart>this._maskService.prefix.length&&38!==t.keyCode&&this._maskService.showMaskTyped&&!this.keepCharacterPositions&&(this._maskService.maskIsShown=this._maskService.showMaskInInput(),r.setSelectionRange&&this._maskService.prefix+this._maskService.maskIsShown===r.value?(r.focus(),r.setSelectionRange(0,0)):r.selectionStart>this._maskService.actualValue.length&&r.setSelectionRange(this._maskService.actualValue.length,this._maskService.actualValue.length));const o=r&&(r.value===this._maskService.prefix?this._maskService.prefix+this._maskService.maskIsShown:r.value);r&&r.value!==o&&(r.value=o),r&&"number"!==r.type&&(r.selectionStart||r.selectionEnd)<=this._maskService.prefix.length?r.selectionStart=this._maskService.prefix.length:r&&r.selectionEnd>this._getActualInputLength()&&(r.selectionEnd=this._getActualInputLength())}onKeyDown(t){if(!this._maskValue)return;if(this._isComposing)return void("Enter"===t.key&&this.onCompositionEnd(t));this._code=t.code?t.code:t.key;const r=t.target;if(this._inputValue=r.value,this._setMask(),"number"!==r.type){if("ArrowUp"===t.key&&t.preventDefault(),"ArrowLeft"===t.key||"Backspace"===t.key||"Delete"===t.key){if("Backspace"===t.key&&0===r.value.length&&(r.selectionStart=r.selectionEnd),"Backspace"===t.key&&0!==r.selectionStart)if(this.specialCharacters=this.specialCharacters?.length?this.specialCharacters:this._config.specialCharacters,this.prefix.length>1&&r.selectionStart<=this.prefix.length)r.setSelectionRange(this.prefix.length,r.selectionEnd);else if(this._inputValue.length!==r.selectionStart&&1!==r.selectionStart)for(;this.specialCharacters.includes((this._inputValue[r.selectionStart-1]??"").toString())&&(this.prefix.length>=1&&r.selectionStart>this.prefix.length||0===this.prefix.length);)r.setSelectionRange(r.selectionStart-1,r.selectionEnd);this.checkSelectionOnDeletion(r),this._maskService.prefix.length&&r.selectionStart<=this._maskService.prefix.length&&r.selectionEnd<=this._maskService.prefix.length&&t.preventDefault(),"Backspace"===t.key&&!r.readOnly&&0===r.selectionStart&&r.selectionEnd===r.value.length&&0!==r.value.length&&(this._position=this._maskService.prefix?this._maskService.prefix.length:0,this._maskService.applyMask(this._maskService.prefix,this._maskService.maskExpression,this._position))}this.suffix&&this.suffix.length>1&&this._inputValue.length-this.suffix.length<r.selectionStart?r.setSelectionRange(this._inputValue.length-this.suffix.length,this._inputValue.length):("KeyA"===t.code&&t.ctrlKey||"KeyA"===t.code&&t.metaKey)&&(r.setSelectionRange(0,this._getActualInputLength()),t.preventDefault()),this._maskService.selStart=r.selectionStart,this._maskService.selEnd=r.selectionEnd}}writeValue(t){var r=this;return ss(function*(){if("object"==typeof t&&null!==t&&"value"in t&&("disable"in t&&r.setDisabledState(!!t.disable),t=t.value),null!==t&&(t=r.inputTransformFn?r.inputTransformFn(t):t),"string"==typeof t||"number"==typeof t||null===t){let i=t;if("number"==typeof i||r._maskValue.startsWith("separator")){i=String(i);const s=r._maskService.currentLocaleDecimalMarker();Array.isArray(r._maskService.decimalMarker)||(i=r._maskService.decimalMarker!==s?i.replace(s,r._maskService.decimalMarker):i),r._maskService.leadZero&&i&&r.maskExpression&&!1!==r.dropSpecialCharacters&&(i=r._maskService._checkPrecision(r._maskService.maskExpression,i)),","===r._maskService.decimalMarker&&(i=i.toString().replace(".",",")),r.maskExpression?.startsWith("separator")&&r.leadZero&&requestAnimationFrame(()=>{r._maskService.applyMask(i?.toString()??"",r._maskService.maskExpression)}),r._maskService.isNumberValue=!0}"string"!=typeof i&&(i=""),r._inputValue=i,r._setMask(),i&&r._maskService.maskExpression||r._maskService.maskExpression&&(r._maskService.prefix||r._maskService.showMaskTyped)?("function"!=typeof r.inputTransformFn&&(r._maskService.writingValue=!0),r._maskService.formElementProperty=["value",r._maskService.applyMask(i,r._maskService.maskExpression)],"function"!=typeof r.inputTransformFn&&(r._maskService.writingValue=!1)):r._maskService.formElementProperty=["value",i],r._inputValue=i}else console.warn("Ngx-mask writeValue work with string | number, your current value:",typeof t)})()}registerOnChange(t){this._maskService.onChange=this.onChange=t}registerOnTouched(t){this.onTouch=t}_getActiveElement(t=this.document){const r=t?.activeElement?.shadowRoot;return r?.activeElement?this._getActiveElement(r):t.activeElement}checkSelectionOnDeletion(t){t.selectionStart=Math.min(Math.max(this.prefix.length,t.selectionStart),this._inputValue.length-this.suffix.length),t.selectionEnd=Math.min(Math.max(this.prefix.length,t.selectionEnd),this._inputValue.length-this.suffix.length)}setDisabledState(t){this._maskService.formElementProperty=["disabled",t]}_applyMask(){this._maskService.maskExpression=this._maskService._repeatPatternSymbols(this._maskValue||""),this._maskService.formElementProperty=["value",this._maskService.applyMask(this._inputValue,this._maskService.maskExpression)]}_validateTime(t){const r=this._maskValue.split("").filter(i=>":"!==i).length;return t&&(0==+(t[t.length-1]??-1)&&t.length<r||t.length<=r-2)?this._createValidationError(t):null}_getActualInputLength(){return this._maskService.actualValue.length||this._maskService.actualValue.length+this._maskService.prefix.length}_createValidationError(t){return{mask:{requiredMask:this._maskValue,actualValue:t}}}_setMask(){this._maskExpressionArray.some(t=>{if(t.split("").some(i=>this._maskService.specialCharacters.includes(i))&&this._inputValue&&!t.includes("S")||t.includes("{")){const i=this._maskService.removeMask(this._inputValue)?.length<=this._maskService.removeMask(t)?.length;if(i)return this._maskValue=this.maskExpression=this._maskService.maskExpression=t.includes("{")?this._maskService._repeatPatternSymbols(t):t,i;{const s=this._maskExpressionArray[this._maskExpressionArray.length-1]??"";this._maskValue=this.maskExpression=this._maskService.maskExpression=s.includes("{")?this._maskService._repeatPatternSymbols(s):s}}else{const i=this._inputValue?.split("").every((s,o)=>{const a=t.charAt(o);return this._maskService._checkSymbolMask(s,a)});if(i)return this._maskValue=this.maskExpression=this._maskService.maskExpression=t,i}})}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Z({type:e,selectors:[["input","mask",""],["textarea","mask",""]],hostBindings:function(t,r){1&t&&te("paste",function(){return r.onPaste()})("ngModelChange",function(s){return r.onModelChange(s)})("input",function(s){return r.onInput(s)})("compositionstart",function(s){return r.onCompositionStart(s)})("compositionend",function(s){return r.onCompositionEnd(s)})("blur",function(s){return r.onBlur(s)})("click",function(s){return r.onClick(s)})("keydown",function(s){return r.onKeyDown(s)})},inputs:{maskExpression:[0,"mask","maskExpression"],specialCharacters:"specialCharacters",patterns:"patterns",prefix:"prefix",suffix:"suffix",thousandSeparator:"thousandSeparator",decimalMarker:"decimalMarker",dropSpecialCharacters:"dropSpecialCharacters",hiddenInput:"hiddenInput",showMaskTyped:"showMaskTyped",placeHolderCharacter:"placeHolderCharacter",shownMaskExpression:"shownMaskExpression",showTemplate:"showTemplate",clearIfNotMatch:"clearIfNotMatch",validation:"validation",separatorLimit:"separatorLimit",allowNegativeNumbers:"allowNegativeNumbers",leadZeroDateTime:"leadZeroDateTime",leadZero:"leadZero",triggerOnMaskChange:"triggerOnMaskChange",apm:"apm",inputTransformFn:"inputTransformFn",outputTransformFn:"outputTransformFn",keepCharacterPositions:"keepCharacterPositions"},outputs:{maskFilled:"maskFilled"},features:[Oe([{provide:Nn,useExisting:De(()=>e),multi:!0},{provide:Bt,useExisting:De(()=>e),multi:!0},jy]),tr]}),e})();function Ez(e,n){return n instanceof Function?{...e,...n()}:{...e,...n}}let NA=(()=>{class e{static forRoot(t){return{ngModule:e,providers:[{provide:AA,useValue:t},{provide:xA,useValue:yz},{provide:qd,useFactory:Ez,deps:[xA,AA]},jy]}}static forChild(){return{ngModule:e}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=ft({}),e})();const wz=[[["prefix"]],[["suffix"]]],Dz=["prefix","suffix"];let Hy=(()=>{class e{constructor(t,r){this.cdr=t,this.injector=r,this.value=null,this.disabled=!1,this.onChange=i=>{},this.onTouched=()=>{},this.trimAfterPaste=!1,this.autocomplete="false",this.password=!1,this.transparent=!1,this.placeholder="Enter a value...",this.type="text",this.validate=!0,this.dropSpecialCharacters=!0,this._paste=new ve}ngOnInit(){this.initFormControl()}initFormControl(){this.formControl=this.injector.get(Jr)}get isInvalidControl(){return"invalid"===this.status||function hz(e){const{invalid:n,pristine:t,touched:r}=e;return!(!n||!r||t)}(this.formControl)&&this.validate}setValue(t){this.value=vI(t),this.onChange(t),this.cdr.detectChanges()}paste(t){t.stopPropagation(),setTimeout(()=>{this._paste.emit(t.target.value),this.cdr.detectChanges()})}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}writeValue(t){this.value=vI(t),this.cdr.detectChanges()}setDisabledState(t){this.disabled=t,this.cdr.detectChanges()}static#e=this.\u0275fac=function(r){return new(r||e)(v(wo),v(Ne))};static#t=this.\u0275cmp=Me({type:e,selectors:[["moto-form-input"]],inputs:{formControlName:"formControlName",minlength:"minlength",maxlength:"maxlength",trimAfterPaste:"trimAfterPaste",autocomplete:"autocomplete",password:"password",transparent:"transparent",placeholder:"placeholder",type:"type",mask:"mask",validate:"validate",dropSpecialCharacters:"dropSpecialCharacters",status:"status"},outputs:{_paste:"paste"},features:[Oe([{provide:Nn,useExisting:De(()=>e),multi:!0}])],ngContentSelectors:Dz,decls:8,vars:13,consts:[["inputRef",""],[1,"__ndb-form-control"],[1,"__ndb-form-control-affix"],[1,"__ndb-input-container"],[1,"__ndb-form-control-input",3,"ngModelChange","blur","paste","type","placeholder","minlength","maxlength","mask","dropSpecialCharacters","ngModel"]],template:function(r,i){if(1&r){const s=at();(function KD(e){const n=b()[We][Rt];if(!n.projection){const r=n.projection=el(e?e.length:1,null),i=r.slice();let s=n.child;for(;null!==s;){if(128!==s.type){const o=e?XV(s,e):0;null!==o&&(i[o]?i[o].projectionNext=s:r[o]=s,i[o]=s)}s=s.next}}})(wz),S(0,"div",1)(1,"div",2),km(2),T(),S(3,"div",3)(4,"input",4,0),te("ngModelChange",function(a){return ne(s),re(i.setValue(a))})("blur",function(){return ne(s),re(i.onTouched())})("paste",function(a){return ne(s),re(i.paste(a))}),T()(),S(6,"div",2),km(7,1),T()()}2&r&&(Yt("transparent",i.transparent)("invalid",i.isInvalidControl),C(4),P("type",i.type)("placeholder",i.placeholder)("minlength",i.minlength)("maxlength",i.maxlength)("mask",i.mask)("dropSpecialCharacters",i.dropSpecialCharacters)("ngModel",i.value),At("data-locator",i.formControlName||i.placeholder)("autocomplete",i.autocomplete))},dependencies:[bz,Ad,ei,zd,Ac,us],styles:["[_ngcontent-%COMP%]:root{--ndb-button-bg: #2c8ee8;--ndb-button-disabled-bg: rgba(201, 204, 216, .3);--ndb-button-hover-bg: #1467b4;--ndb-button-color: #fff;--ndb-card-border-color: #c9ccd8}.__ndb-form-control[_ngcontent-%COMP%]{border:1px solid #c9ccd8;border-radius:4px;display:flex;align-items:center;box-shadow:0 2px #29304d14;padding:17px 10px}.__ndb-form-control-affix[_ngcontent-%COMP%]{display:flex;align-items:center;gap:3px}.__ndb-form-control.invalid[_ngcontent-%COMP%]{border:1px solid #f44336;color:#f44336}.__ndb-form-control.invalid[_ngcontent-%COMP%] .__ndb-form-control-input[_ngcontent-%COMP%]::placeholder{color:#eb001b}.__ndb-form-control.transparent[_ngcontent-%COMP%]{border:none;box-shadow:none}.__ndb-form-control[_ngcontent-%COMP%] .__ndb-input-container[_ngcontent-%COMP%]{display:flex;flex-grow:1}.__ndb-form-control-input[_ngcontent-%COMP%]{display:block;width:100%;max-width:100%;border:none;outline:none;flex-grow:1}.__ndb-form-control-input[_ngcontent-%COMP%]::placeholder{color:#707797}"],changeDetection:0})}return e})();var kA=function(e){return e.mastercard="CVC Card Verification Code",e.visa="CVV (Card Verification Value)",e["american-express"]="CID (Card Identification Number)",e.unionpay="CVN (Card Verification Number)",e.jcb="CVV (Card Verification Value)",e.maestro="CVV (Card Verification Value)",e.discover="CID (Card Identification Number)",e}(kA||{});let Wd=(()=>{class e{transform(t,r,i=null,s=null){const[o]=ay()(t);if(!o)return"code"===r&&s?s[i]:i;switch(r){case"logo":return this.getLogo(o);case"payment-system":return o.niceType;case"card-number-mask":return"0000 0000 0000 0000 000";case"secure-text":return kA[o.type];case"code":if(s){const c=s[o.code.name];if(c)return c}return o.code.name;case"code-mask":{const{size:a}=o.code;return Array.from({length:a}).fill("0").join("")}}}getLogo(t){if(t)return`https://cdn.motopays.com/images/${xo[t.type]||xo.default}.svg`}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275pipe=ht({name:"cardInfo",type:e,pure:!0})}return e})(),PA=(()=>{class e{constructor(){this.selectEvent=new ve,this.removeEvent=new ve,this.optionsClickedEvent=new ve,this.isOpenPopup=!1,this.popupId=function v5(e=1){return window.crypto.getRandomValues(new Uint32Array(e)).toString()}()}hidePopup(t){t.closest("[data-card-popup]")?.getAttribute("data-card-popup")===this.popupId||(this.isOpenPopup=!1)}onOptionsClick(t){t.isPopupClick=!0,this.optionsClickedEvent.emit(this.option),this.isOpenPopup=!this.isOpenPopup}select(t){t.isPopupClick||this.option.selected()||this.selectEvent.emit(this.option)}remove(t){t.isPopupClick=!0,this.removeEvent.emit(this.option.item),this.isOpenPopup=!1}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=Me({type:e,selectors:[["moto-card"]],hostBindings:function(r,i){1&r&&te("click",function(o){return i.hidePopup(o.target)},0,Ab)},inputs:{option:"option",language:"language"},outputs:{selectEvent:"select",removeEvent:"remove",optionsClickedEvent:"optionsClicked"},decls:18,vars:26,consts:[[1,"__ndb-card",3,"click"],["data-locator","card-active-circle",1,"__ndb-card-active-circle",3,"id"],["alt","card logo",1,"__ndb-card-logo",3,"src"],[1,"__ndb-card-payment-name","fz-14","fw-500"],[1,"__ndb-card-number","fz-14","fw-500"],[1,"__ndb-card-more"],[1,"material-icons","pointer","__ndb-card-more-icon","description-text","fz-18",3,"click"],[1,"__ndb-card-more-popup"],["data-locator","remove-btn",1,"__ndb-card-more-popup-item","fz-14","fw-500",3,"click","id"]],template:function(r,i){1&r&&(S(0,"div",0),te("click",function(o){return i.select(o)}),ge(1,"div",1),Ce(2,"slice"),ge(3,"moto-picture",2),Ce(4,"cardInfo"),S(5,"span",3),$(6),Ce(7,"cardInfo"),T(),S(8,"span",4),$(9),Ce(10,"slice"),T(),S(11,"div",5)(12,"i",6),te("click",function(o){return i.onOptionsClick(o)}),$(13,"more_vert"),T(),S(14,"div",7)(15,"span",8),Ce(16,"slice"),te("click",function(o){return i.remove(o)}),$(17),T()()()()),2&r&&(C(),Yt("selected",i.option.selected()),P("id","select-card-"+xt(2,11,i.option.item.name,-6)+"-button"),C(2),P("src",xt(4,14,i.option.item.name,"logo")),C(3),gt(xt(7,17,i.option.item.name,"payment-system")),C(3),gt(xt(10,20,i.option.item.name,-6)),C(2),At("data-card-popup",i.popupId),C(3),Yt("open",i.isOpenPopup),C(),P("id","remove-card-"+xt(16,23,i.option.item.name,-6)+"-button"),C(2),gt(i.language.existingCards.removeCard))},dependencies:[Ao,Ig,Wd],styles:['[_ngcontent-%COMP%]:root{--ndb-button-bg: #2c8ee8;--ndb-button-disabled-bg: rgba(201, 204, 216, .3);--ndb-button-hover-bg: #1467b4;--ndb-button-color: #fff;--ndb-card-border-color: #c9ccd8}.__ndb-card[_ngcontent-%COMP%]{display:flex;align-items:center;border:1px solid var(--ndb-card-border-color);border-radius:8px;padding:14px;gap:10px}@media (max-width: 768px){.__ndb-card[_ngcontent-%COMP%]{padding:4px}}.__ndb-card-active-circle[_ngcontent-%COMP%]{position:relative;height:15px;width:15px;min-height:15px;min-width:15px;border:1px solid #c9ccd8;border-radius:50%;cursor:pointer}.__ndb-card-active-circle.selected[_ngcontent-%COMP%]:after{content:"";position:absolute;top:0;left:0;height:100%;width:100%;border:4px solid #e53;box-sizing:border-box;border-radius:50%}.__ndb-card-more[_ngcontent-%COMP%]{position:relative;display:flex;margin-left:auto}.__ndb-card-more-icon[_ngcontent-%COMP%]{margin:auto}.__ndb-card-more-popup[_ngcontent-%COMP%]{display:none;position:absolute;z-index:1;top:calc(100% + 10px);left:50%;transform:translate(-60%);background-color:#fff;border-radius:8px;box-shadow:0 4px 12px #29304d1f;white-space:nowrap;overflow:hidden;animation:_ngcontent-%COMP%_show-popup .3s cubic-bezier(.25,.1,.25,1)}@media (max-width: 768px){.__ndb-card-more-popup[_ngcontent-%COMP%]{top:calc(100% + 5px);transform:translate(-70%);animation:_ngcontent-%COMP%_mobile-show-popup .3s cubic-bezier(.25,.1,.25,1)}}.__ndb-card-more-popup.open[_ngcontent-%COMP%]{display:flex;flex-direction:column}.__ndb-card-more-popup-item[_ngcontent-%COMP%]{padding:16px 12px;cursor:pointer;transition:background-color .3s cubic-bezier(.25,.1,.25,1)}@media (max-width: 768px){.__ndb-card-more-popup-item[_ngcontent-%COMP%]{font-size:12px}}.__ndb-card-more-popup-item[_ngcontent-%COMP%]:hover{background-color:#c9ccd84d}@keyframes _ngcontent-%COMP%_show-popup{0%{opacity:0;transform:translate(-60%,50%)}to{opacity:1;transform:translate(-60%)}}@keyframes _ngcontent-%COMP%_mobile-show-popup{0%{opacity:0;transform:translate(-70%,50%)}to{opacity:1;transform:translate(-70%)}}'],changeDetection:0})}return e})();function Sz(e,n){if(1&e){const t=at();S(0,"moto-card",9),te("select",function(i){return ne(t),re(x().selectCard(i))})("remove",function(i){return ne(t),re(x().removeCard(i))})("optionsClicked",function(i){return ne(t),re(x().onOptionsClick(i))}),T()}if(2&e){const t=n.$implicit;x();const r=Pe(0);P("option",t)("language",r)}}function Tz(e,n){if(1&e&&(S(0,"span",10),$(1),T()),2&e){x(2);const t=Pe(0);P("@ANTransform",void 0),C(),gt(t.errors.invalidCvv)}}function Mz(e,n){if(1&e){const t=at();ee(0,Tz,2,2,"span",10),S(1,"div",11)(2,"moto-form-input",12),Ce(3,"cardInfo"),Ce(4,"cardInfo"),te("ngModelChange",function(i){return ne(t),re(x().onCvvChange(i))}),S(5,"div",13),Ce(6,"cardInfo"),S(7,"i",14),$(8,"error"),T()()()()}if(2&e){x();const t=Pe(0),r=Pe(1),i=Pe(2);ie(i?0:-1),C(),Yt("invalid",i),C(),P("mask",mi(3,11,r.name,"code-mask","000"))("dropSpecialCharacters",!1)("placeholder",Um(4,15,r.name,"code","CVV",t.requisites.cvvPlaceholder))("transparent",!0)("validate",!1)("status",i?"invalid":"valid")("ngModel",r.cvv),C(3),At("data-tooltip",mi(6,20,r.name,"secure-text",t.requisites.cvvHint))}}function Iz(e,n){if(1&e){const t=at();S(0,"button",15),te("click",function(){return ne(t),re(x().showCardForm())})("focusin",function(){return ne(t),re(x().onAddCardFocus())}),S(1,"i",16),$(2,"add"),T(),S(3,"span",17),$(4),T()()}if(2&e){x();const t=Pe(0);C(4),gt(t.existingCards.addNewCard)}}let Uy=(()=>{class e{constructor(t,r,i,s){this.billingProfiles=t,this.context=r,this.toastr=i,this.refreshService=s,this.isCardListShown=se(!0),this.selectedCard=se(void 0),this.isCvvError=ce(()=>{const o=this.selectedCard(),a=this.isCardFormVisible();return!(!o?.updateCardDetails||(o?.cvv||a)&&function H5(e,n){if(!e||!n)return!1;const[t]=ay()(e),r=!!t?.code.size&&!!n,i=pn.card.code.lengths[t?.type];return r&&(t?.code.size===n?.length||i?.includes(n?.length??0))}(o?.name,o?.cvv))}),this.cardFormState=this.context.componentsStates.cardForm,this.componentState=this.context.componentsStates.cardList,this.isCardFormVisible=this.context.visibility.cardForm,this.settings=this.context.data.settings,this.loadedExistingCards=this.context.data.loadedExistingCards,this.cardOptions=ce(()=>this.loadedExistingCards().map(a=>new x5(a))),$u(()=>{const o=this.cardOptions();o?.length&&Hn(()=>{this.selectCardImpl(o[0],o)})}),$u(()=>{const o=this.isCvvError();Hn(()=>{this.componentState.update(a=>({...a,isValid:!o}))})})}showCardForm(){this.context.events.analytics.emit(new Ae("add-card-button-click")),this.isCardListShown.set(!1),this.cardFormState.update(t=>({...t,enabled:!0})),this.context.data.userProvidedInfo.update(t=>({...t,requisites:void 0,paymentSystemName:void 0})),this.resetSelected()}getSelectedCard(){return this.cardOptions().find(t=>t.selected())}removeCard(t){this.context.events.analytics.emit(new Ae("remove-card-button-click",{last4Digits:t.name.slice(-4)})),this.billingProfiles.removeCard(t.id).subscribe(r=>{this.refreshService.refreshExistingCards(this.loadedExistingCards().filter(s=>s.id!==t.id));const i=this.settings().language.notifications.cardDeleted;this.toastr.success(i.text,i.title)})}toggleCardList(){this.isCardListShown.update(t=>!t),this.context.events.analytics.emit(new Ae("cards-toggle-button-click",{toggle:this.isCardListShown()}))}onOptionsClick(t){this.context.events.analytics.emit(new Ae("card-options-button-click",{last4Digits:t.item.name.slice(-4)}))}selectCard(t){this.context.events.analytics.emit(new Ae("select-card-button-click",{last4Digits:t.item.name.slice(-4)})),this.selectCardImpl(t,this.cardOptions())}onAddCardFocus(){this.context.events.analytics.emit(new Ae("add-card-button-focus"),!0)}onCvvChange(t){this.getSelectedCard().item.cvv=t,this.selectedCard.update(r=>r&&{...r,cvv:t}),this.context.data.userProvidedInfo.update(r=>({...r,paymentSystemName:"card",requisites:{type:"existing-card",value:{...r.requisites?.value,cvv:t}}}))}selectCardImpl(t,r){r.find(s=>s.selected())?.setSelected(!1),t.setSelected(!0),this.selectedCard.set(t.item),this.context.data.userProvidedInfo.update(s=>({...s,paymentSystemName:"card",requisites:{type:"existing-card",value:t.item}})),this.cardFormState().enabled&&this.cardFormState.update(s=>({...s,enabled:!1}))}resetSelected(){this.getSelectedCard()?.setSelected(!1),this.selectedCard.set(void 0)}static#e=this.\u0275fac=function(r){return new(r||e)(v(my),v(xe),v(vc),v(vy))};static#t=this.\u0275cmp=Me({type:e,selectors:[["moto-card-list"]],decls:15,vars:9,consts:[[1,"__ndb-card-list"],["id","toggle-card-list-button",1,"__ndb-card-list-toggle",3,"click"],[1,"fw-700"],[1,"material-icons","font-description","__ndb-card-list-toggle-icon"],[1,"block"],[1,"__ndb-card-list-options"],[1,"__ndb-card-list-options-item",3,"option","language"],[1,"__ndb-form-stage-controls","__ndb-form-stage-controls_credentials",3,"invalid"],["id","add-card-button",1,"full-width"],[1,"__ndb-card-list-options-item",3,"select","remove","optionsClicked","option","language"],["data-locator","existing-card-cvv-error",1,"__ndb-form-stage-header-error","fz-14","fw-500","font-error"],[1,"__ndb-form-stage-controls","__ndb-form-stage-controls_credentials"],["id","existing-card-cvv-field","type","tel",3,"ngModelChange","mask","dropSpecialCharacters","placeholder","transparent","validate","status","ngModel"],["tabindex","-1","ngProjectAs","suffix",5,["suffix"]],[1,"material-icons","font-description","block","fz-18","cursor-default"],["id","add-card-button",1,"full-width",3,"click","focusin"],[1,"material-icons","fz-18"],[1,"text"]],template:function(r,i){if(1&r){const s=at();Tn(0)(1)(2),S(3,"div",0)(4,"div",1),te("click",function(){return ne(s),re(i.toggleCardList())}),S(5,"span",2),$(6),T(),S(7,"i",3),$(8,"keyboard_arrow_up"),T()(),S(9,"div",4)(10,"div",5),dn(11,Sz,1,2,"moto-card",6,ar),T()(),ee(13,Mz,9,24,"div",7)(14,Iz,5,1,"button",8),T()}if(2&r){const s=$t(i.settings().language);C();const o=$t(i.selectedCard());C(),$t(i.isCvvError()&&i.componentState().canShowError),C(4),gt(s.existingCards.manageCardsHeader),C(),Yt("active",i.isCardListShown()),C(2),P("@ANToggleList",i.isCardListShown()?"show":"hide"),C(2),fn(i.cardOptions()),C(2),ie(null!=o&&o.updateCardDetails&&i.isCardListShown()?13:-1),C(),ie(i.isCardFormVisible()?-1:14)}},dependencies:[ei,us,Hy,PA,Wd],styles:["[_ngcontent-%COMP%]:root{--ndb-button-bg: #2c8ee8;--ndb-button-disabled-bg: rgba(201, 204, 216, .3);--ndb-button-hover-bg: #1467b4;--ndb-button-color: #fff;--ndb-card-border-color: #c9ccd8}.full-width[_ngcontent-%COMP%]{width:100%}@media (min-width: 769px){.ndb-mobile[_ngcontent-%COMP%]{display:none}}@media (max-width: 768px){.ndb-desktop[_ngcontent-%COMP%]{display:none}}.margin-auto[_ngcontent-%COMP%]{margin:auto}.flex[_ngcontent-%COMP%]{display:flex}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.none[_ngcontent-%COMP%]{display:none}.block[_ngcontent-%COMP%]{display:block}.events-none[_ngcontent-%COMP%]{pointer-events:none}.cursor-default[_ngcontent-%COMP%]{cursor:default}.pointer[_ngcontent-%COMP%]{cursor:pointer}.bold[_ngcontent-%COMP%]{font-weight:700!important}.font-middle[_ngcontent-%COMP%]{vertical-align:middle}.rotate[_ngcontent-%COMP%], .__ndb-card-list-toggle-icon.active[_ngcontent-%COMP%]{transform:rotate(-180deg)}.__ndb-card-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:20px}.__ndb-card-list-options[_ngcontent-%COMP%]{display:flex;flex-direction:column}.__ndb-card-list-options-item[_ngcontent-%COMP%]{width:100%}.__ndb-card-list-options-item[_ngcontent-%COMP%]:not(:first-child){margin-top:10px}.__ndb-card-list-toggle[_ngcontent-%COMP%]{display:flex;align-items:center;gap:5px;cursor:pointer;-webkit-user-select:none;user-select:none}.__ndb-card-list-toggle-icon[_ngcontent-%COMP%]{transform:rotate(0);transition:transform .3s cubic-bezier(.25,.1,.25,1)}"],data:{animation:[F5,L5,V5({animationName:"ANToggleList",fromState:"hide",toState:"show",fromStyles:{height:"0px",overflow:"hidden"},toStyles:{height:"*"}})]},changeDetection:0})}return e})(),OA=(()=>{class e{constructor(){this.detector$=new kt}detectChanges(){this.detector$.next()}listenChangeDetection(){return this.detector$.asObservable()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})(),Zd=(()=>{class e{constructor(t){this.injector=t,this.unsubscriber$=new kt,this.childrenDetector$=new kt}ngOnDestroy(){this.unsubscribe()}listenChildrenDetection(t){const r="local"===t,i="global"===t,s="full"===t;this.childrenDetector$.asObservable().pipe(IA(10),this.untilDestroy()).subscribe(()=>{(r||s)&&this.localDetect(),(i||s)&&this.globalDetect()})}localDetect(){this.injector.get(wo).detectChanges()}globalDetect(){this.injector.get(OA).detectChanges()}detect(){this.localDetect(),this.globalDetect()}untilDestroy(){return function Az(e){return gn((n,t)=>{dr(e).subscribe(sn(t,()=>t.complete(),Ef)),!t.closed&&n.subscribe(t)})}(this.unsubscriber$.asObservable())}unsubscribe(){this.unsubscriber$.next()}static#e=this.\u0275fac=function(r){return new(r||e)(v(Ne))};static#t=this.\u0275cmp=Me({type:e,selectors:[["ng-component"]],decls:0,vars:0,template:function(r,i){},encapsulation:2})}return e})();class Yd{static luhnAlgorithm({value:n}){return n&&function xz(e){return/^\d+$/.test(e)&&!(e.split("").reverse().map(function(n,t){return n=parseInt(n,10),t%2==0?n:(n*=2)>9?n-9:n}).reduce(function(n,t){return n+t})%10)}(n)?void 0:{luhnAlgorithm:!0}}static cardExpiration({value:n}){const t={expiration:!0};if(n){if(n.length<4)return t;const i=+(new Date).getFullYear().toString().slice(-2),[s,o,a,c]=n.split(""),l=`${s}${o}`;return+l<1||+l>12||+`${a}${c}`<i?t:void 0}return t}static cardNumberLength({value:n}){const t=n?.length||0;return t>=pn.card.number.length.min&&t<=pn.card.number.length.max?void 0:{cardLength:!0}}static cardCodeLength(n="cardNumber"){return({value:t,parent:r})=>{const i=r?.get(n),[s]=ay()(i?.value),o=!!s?.code.size&&!!t,a=pn.card.code.lengths[s?.type];return o&&(s?.code.size===t?.length||a?.includes(t?.length))?null:{cardCodeLength:!0}}}}function Nz(e,n){if(1&e&&(S(0,"span",4),$(1),T()),2&e){const t=x();P("@ANTransform",void 0),C(),gt(t.paymentsErrorMsg())}}function kz(e,n){if(1&e&&(S(0,"span",15),$(1),T()),2&e){x();const t=Pe(2);P("@ANTransform",void 0),C(),gt(t.errors.invalidCardHolder)}}let RA=(()=>{class e extends Zd{constructor(t,r,i){super(t),this.injector=t,this.fb=r,this.context=i,this.constants=pn}ngOnInit(){this.settings=this.context.data.settings,this.componentState=this.context.componentsStates.cardForm,this.initForm(),this.initComputedFields(),By(this.form,this.componentState,this,()=>!!this.settings().requiredFieldsBehavior?.markAsInvalidUntilCorrect,this.areRequiredFieldsFilled,this.onUpdate,this.context)}pasteCardNumber(t){const r=function dG(e){return e.replace(/\s/g,"")}(t);this.form.get("cardCredentials").get("cardNumber").setValue(r,{onlySelf:!0}),function gz(e,n,t=null,r=!0){n.forEach(i=>{const s=e.get(i);s||function uz(e){throw new Error(e)}(`Invalid form control name: "${i}"`),s.reset(t),r&&s.updateValueAndValidity()})}(this.form.get("cardCredentials"),["expiration","cvv"]),this.detect()}resetForm(){this.form.reset(),this.localDetect()}onFocus(t){switch(t){case"number":this.context.events.analytics.emit(new Ae("card-number-field-focus"),!0);break;case"cvv":this.context.events.analytics.emit(new Ae("cvv-field-focus"),!0);break;case"holder":this.context.events.analytics.emit(new Ae("card-holder-field-focus"),!0);break;case"expiration":this.context.events.analytics.emit(new Ae("expiration-date-field-focus"),!0)}}initForm(){this.form=this.fb.group({cardCredentials:this.fb.group({cardNumber:[null,[Pr.required,Yd.luhnAlgorithm,Yd.cardNumberLength]],expiration:[null,[Pr.required,Pr.minLength(4),Pr.maxLength(4),Yd.cardExpiration]],cvv:[null,[Pr.required,Yd.cardCodeLength()]]}),cardHolder:[null,[Pr.required,Pr.maxLength(pn.card.holder.length.max)]]})}initComputedFields(){this.isCredentialsErrorShown=ce(()=>{const t=this.form.get("cardCredentials");return this.componentState().canShowError&&t.invalid}),this.isCardHolderErrorShown=ce(()=>{const t=this.form.get("cardHolder");return this.componentState().canShowError&&t.invalid}),this.paymentDetailsHeader=ce(()=>{const t=this.settings();return`${t.language.requisites.paymentDetailsHeader}${this.componentState().isRequired&&t.requiredFieldsBehavior?.showStars?" *":""}`}),this.nameOnCardHeader=ce(()=>{const t=this.settings();return`${t.language.requisites.cardHolderHeader}${this.componentState().isRequired&&t.requiredFieldsBehavior?.showStars?" *":""}`}),this.paymentsErrorMsg=ce(()=>{const t=this.form.get("cardCredentials"),[r]=function mz(e){return function pz(e){return Object.entries(e.controls).filter(([,n])=>n.invalid)}(e).map(([n])=>n)}(t),i=this.settings().language.errors;switch(this.componentState(),r){case"cardNumber":return i.invalidCardNumber;case"expiration":return i.invalidCardExpiration;case"cvv":return i.invalidCvv}})}areRequiredFieldsFilled(t){const{cardCredentials:r,cardHolder:i}=t;return r?.cvv&&r?.cardNumber&&r?.expiration&&i}onUpdate(t,r){const{cardCredentials:i,cardHolder:s}=t;r.data.userProvidedInfo.update(o=>({...o,paymentSystemName:"card",requisites:{type:"card",value:{cvv:i.cvv,expiration:i.expiration,number:i.cardNumber,holder:s}}}))}static#e=this.\u0275fac=function(r){return new(r||e)(v(Ne),v(Vy),v(xe))};static#t=this.\u0275cmp=Me({type:e,selectors:[["moto-card-form"]],features:[me],decls:32,vars:49,consts:[[1,"__ndb-form",3,"formGroup"],[1,"__ndb-form-stage"],[1,"__ndb-form-stage-header"],[1,"__ndb-form-stage-header-title","fz-14","fw-500"],["data-locator","card-credentials-error",1,"__ndb-form-stage-header-error","fz-14","fw-500","font-error"],["formGroupName","cardCredentials",1,"__ndb-form-stage-controls","__ndb-form-stage-controls_credentials"],["id","card-number-field","formControlName","cardNumber","type","tel","autocomplete","cc-number",1,"__ndb-form-stage-controls_card-number",3,"paste","focusin","placeholder","mask","transparent","validate","status"],["ngProjectAs","suffix",5,["suffix"],1,"__ndb-form-stage-controls_card-number-logo",3,"src"],[1,"__ndb-form-stage-controls-separator","__ndb-form-stage-controls-separator_x"],[1,"__ndb-form-stage-controls-group"],["id","card-expiration-field","formControlName","expiration","mask","00 / 00","type","tel","autocomplete","cc-exp",1,"__ndb-form-stage-controls_expiration",3,"focusin","placeholder","transparent","validate","status"],[1,"__ndb-form-stage-controls-separator","__ndb-form-stage-controls-separator_y"],["id","card-cvv-field","formControlName","cvv","type","tel",1,"__ndb-form-stage-controls_cvv",3,"focusin","mask","dropSpecialCharacters","placeholder","transparent","validate","status"],["tabindex","-1","ngProjectAs","suffix",5,["suffix"]],[1,"material-icons","font-description","block","fz-18","cursor-default"],["data-locator","card-holder-error",1,"__ndb-form-stage-header-error","fz-14","fw-500","font-error"],[1,"__ndb-form-stage-controls"],["id","card-holder-field","formControlName","cardHolder","autocomplete","cc-name",3,"focusin","placeholder","maxlength","validate","status"]],template:function(r,i){if(1&r){const s=at();Tn(0)(1)(2),S(3,"form",0)(4,"div",1)(5,"div",2)(6,"h6",3),$(7),T(),ee(8,Nz,2,2,"span",4),T(),S(9,"div",5)(10,"moto-form-input",6),Ce(11,"cardInfo"),te("paste",function(a){return ne(s),re(i.pasteCardNumber(a))})("focusin",function(){return ne(s),re(i.onFocus("number"))}),ge(12,"moto-picture",7),Ce(13,"cardInfo"),T(),ge(14,"div",8),S(15,"div",9)(16,"moto-form-input",10),te("focusin",function(){return ne(s),re(i.onFocus("expiration"))}),T(),ge(17,"div",11),S(18,"moto-form-input",12),Ce(19,"cardInfo"),Ce(20,"cardInfo"),te("focusin",function(){return ne(s),re(i.onFocus("cvv"))}),S(21,"div",13),Ce(22,"cardInfo"),S(23,"i",14),$(24,"error"),T()()()()()(),S(25,"div",1)(26,"div",2)(27,"h6",3),$(28),T(),ee(29,kz,2,2,"span",15),T(),S(30,"div",16)(31,"moto-form-input",17),te("focusin",function(){return ne(s),re(i.onFocus("holder"))}),T()()()()}if(2&r){const s=i.isCardHolderErrorShown(),o=i.isCredentialsErrorShown();C(2);const a=$t(i.settings().language);C(),P("formGroup",i.form),C(4),ke(" ",i.paymentDetailsHeader()," "),C(),ie(o?8:-1),C(),Yt("invalid",o),C(),P("placeholder",a.requisites.cardNumberPlaceholder)("mask",mi(11,29,i.form.value.cardCredentials.cardNumber,"card-number-mask","0000 0000 0000 0000"))("transparent",!0)("validate",!1)("status",o?"invalid":"valid"),C(2),P("src",xt(13,33,i.form.value.cardCredentials.cardNumber,"logo")),C(4),P("placeholder",a.requisites.cardExpirationPlaceholder)("transparent",!0)("validate",!1)("status",o?"invalid":"valid"),C(2),P("mask",mi(19,36,i.form.value.cardCredentials.cardNumber,"code-mask","000"))("dropSpecialCharacters",!1)("placeholder",Um(20,40,i.form.value.cardCredentials.cardNumber,"code","CVV",a.requisites.cvvPlaceholder))("transparent",!0)("validate",!1)("status",o?"invalid":"valid"),C(3),At("data-tooltip",mi(22,45,i.form.value.cardCredentials.cardNumber,"secure-text",a.requisites.cvvHint)),C(7),ke(" ",i.nameOnCardHeader()," "),C(),ie(s?29:-1),C(2),P("placeholder",a.requisites.cardHolderPlaceholder)("maxlength",i.constants.card.holder.length.max)("validate",!1)("status",s?"invalid":"valid")}},dependencies:[Ud,ei,kd,Ac,Bo,Ic,$d,Ao,Hy,Wd],data:{animation:[Cd()]},changeDetection:0})}return e})();function Pz(e,n){if(1&e&&(S(0,"span",4),$(1),T()),2&e){x();const t=Pe(0);P("@ANTransform",void 0),C(),ke(" ",t.errors.invalidPhoneNumber,"")}}let FA=(()=>{class e extends Zd{constructor(t,r,i){super(t),this.injector=t,this.fb=r,this.context=i,this.phoneConstants=pn.phoneNumber}ngOnInit(){this.componentState=this.context.componentsStates.additionalForm,this.cardFormState=this.context.componentsStates.cardForm,this.settings=this.context.data.settings,this.initComputed(),this.initForm(),By(this.form,this.componentState,this,()=>!!this.settings().requiredFieldsBehavior?.markAsInvalidUntilCorrect,t=>!!t.phoneNumber)}onFocus(){this.context.events.analytics.emit(new Ae("number-field-focus"),!0)}initForm(){this.form=this.fb.group({phoneNumber:["",[Pr.minLength(pn.phoneNumber.length.min),Pr.maxLength(pn.phoneNumber.length.max)]]})}initComputed(){this.header=ce(()=>{const t=this.settings();return`${t.language.phone.header}${this.componentState().isRequired&&t.requiredFieldsBehavior?.showStars?" *":""}`}),this.isErrorShown=ce(()=>{const t=this.componentState();return t.canShowError&&!t.isValid})}static#e=this.\u0275fac=function(r){return new(r||e)(v(Ne),v(Vy),v(xe))};static#t=this.\u0275cmp=Me({type:e,selectors:[["moto-additional-form"]],features:[me],decls:10,vars:9,consts:[[1,"__ndb-form",3,"formGroup"],[1,"__ndb-form-stage"],[1,"__ndb-form-stage-header"],[1,"__ndb-form-stage-header-title","fz-14","fw-500"],["data-locator","phone-error",1,"__ndb-form-stage-header-error","fz-14","fw-500","font-error"],[1,"__ndb-form-stage-controls"],["id","phone-number-field","formControlName","phoneNumber","autocomplete","tel","type","tel",3,"focusin","placeholder","minlength","maxlength","validate","status"]],template:function(r,i){if(1&r){const s=at();Tn(0)(1),S(2,"form",0)(3,"div",1)(4,"div",2)(5,"h6",3),$(6),T(),ee(7,Pz,2,2,"span",4),T(),S(8,"div",5)(9,"moto-form-input",6),te("focusin",function(){return ne(s),re(i.onFocus())}),T()()()()}if(2&r){const s=$t(i.settings().language),o=i.isErrorShown();C(2),P("formGroup",i.form),C(4),gt(i.header()),C(),ie(o?7:-1),C(2),P("placeholder",s.phone.placeholder)("minlength",i.phoneConstants.length.min)("maxlength",i.phoneConstants.length.max)("validate",!1)("status",o?"invalid":"valid")}},dependencies:[Ud,ei,kd,zd,Ac,Bo,Ic,Hy],data:{animation:[Cd()]},changeDetection:0})}return e})(),jo=(()=>{class e{constructor(t){this.sanitizer=t}transform(t,r){if(!t)return t;const i=this.parseLinks(t,r);return this.sanitizer.bypassSecurityTrustHtml(i)}parseLinks(t,r){return t.replace(/\{\s*href:\s*['"]([^'"]+)['"],\s*text:\s*['"]([^'"]+)['"]\s*\}/g,`<a href="$1" ${r?`class="${r}"`:""} target="_blank">$2</a>`)}static#e=this.\u0275fac=function(r){return new(r||e)(v(Hg,16))};static#t=this.\u0275pipe=ht({name:"linkify",type:e,pure:!0})}return e})();function Oz(e,n){if(1&e){const t=at();S(0,"label",5)(1,"input",6),te("ngModelChange",function(i){ne(t);const s=x(),o=s.$implicit,a=s.$index;return re(x(2).onChange(o,a,i))})("focusin",function(){ne(t);const i=x(),s=i.$implicit,o=i.$index;return re(x(2).onFocus(s,o))}),T(),ge(2,"span",7)(3,"span",8),Ce(4,"linkify"),T()}if(2&e){const t=x(),r=t.$implicit,i=t.$index,s=x(2),o=Pe(1),a=Pe(2);C(),P("name","charge-term-"+i)("id","charge-term-"+i)("formControlName",i),C(),Yt("circle","circle"===(null==o?null:o.shape))("square","square"===(null==o?null:o.shape))("invalid",a&&!s.form.get("checkboxes").get(i.toString()).value),C(),P("innerHTML",xt(4,10,r,"__ndb-settings-checkboxes-checkbox-link fz-12 fw-500 font-description"),Tr)}}function Rz(e,n){1&e&&ee(0,Oz,5,13,"label",5),2&e&&ie(n.$implicit?0:-1)}function Fz(e,n){if(1&e&&(S(0,"form",1),_o(1,4),dn(2,Rz,1,1,null,null,ar),vo(),T()),2&e){const t=x(),r=Pe(1);P("formGroup",t.form),C(2),fn(r.checkboxes)}}function Lz(e,n){if(1&e&&(S(0,"p",2),Ce(1,"linkify"),$(2),T()),2&e){x();const t=Pe(1);P("innerHTML",xt(1,2,t.text,"fz-12 fw-500 font-description"),Tr),C(2),ke(" ",t.text," ")}}function Vz(e,n){if(1&e&&(S(0,"span",3),$(1),T()),2&e){x();const t=Pe(0);P("@ANTransform",void 0),C(),ke(" ",t.language.errors.notCheckedCheckboxes," ")}}let LA=(()=>{class e extends Zd{constructor(t,r,i){super(r),this.context=t,this.injector=r,this.fb=i}ngOnInit(){this.settings=this.context.data.settings,this.componentState=this.context.componentsStates.chargeTerms,this.isErrorShown=ce(()=>this.componentState().canShowError&&!this.componentState().isValid),this.initForm()?By(this.form,this.componentState,this,()=>!!this.settings().requiredFieldsBehavior?.markAsInvalidUntilCorrect,()=>!0):this.componentState.update(t=>({...t,isValid:!0}))}onChange(t,r,i){this.context.events.analytics.emit(new Ae(i?`charge-term-checkbox-${r}-check`:`charge-term-checkbox-${r}-uncheck`,{text:t}))}onFocus(t,r){this.context.events.analytics.emit(new Ae(`charge-term-checkbox-${r}-focus`,{text:t}),!0)}initForm(){const t=this.settings().chargeTerms;if(!t.checkboxes?.length)return!1;const r=t.checkboxes.map(()=>this.fb.control(!1,Pr.requiredTrue));return this.form=this.fb.group({checkboxes:this.fb.array(r)}),!0}static#e=this.\u0275fac=function(r){return new(r||e)(v(xe),v(Ne),v(Vy))};static#t=this.\u0275cmp=Me({type:e,selectors:[["moto-charge-terms"]],features:[me],decls:7,vars:6,consts:[[1,"__ndb-settings"],[1,"__ndb-settings-checkboxes",3,"formGroup"],[1,"__ndb-settings-text","fz-11","fw-500",3,"innerHTML"],["data-locator","charge-terms-error",1,"fz-14","fw-500","font-error"],["formArrayName","checkboxes"],[1,"__ndb-settings-checkboxes-checkbox","fz-11","fw-500","font-description"],["type","checkbox",1,"__ndb-settings-checkboxes-checkbox-input",3,"ngModelChange","focusin","name","id","formControlName"],[1,"__ndb-settings-checkboxes-checkbox-checkmark"],[1,"__ndb-settings-checkboxes-checkbox-text",3,"innerHTML"]],template:function(r,i){if(1&r&&(Tn(0)(1)(2),S(3,"div",0),ee(4,Fz,4,1,"form",1)(5,Lz,3,5,"p",2)(6,Vz,2,2,"span",3),T()),2&r){const s=$t(i.settings());C();const o=$t(s.chargeTerms);C();const a=$t(i.isErrorShown());C(2),ie(null!=o.checkboxes&&o.checkboxes.length?4:-1),C(),ie(o.text?5:-1),C(),ie(a?6:-1)}},dependencies:[Ud,Cc,ei,kd,Bo,Ic,Gd,jo],data:{animation:[Cd()]},changeDetection:0})}return e})();function $y(e){const n=function jz(e){return`\n <!DOCTYPE html>\n <html>\n <head>\n <meta charset="UTF-8">\n <meta name="viewport" content="width=device-width, initial-scale=1.0">\n <meta name="description" content="Waiting payment approval">\n\n <title>Moto pay</title>\n </head>\n <body>\n <div class="waiting">\n <div class="section">\n <h2 class="waiting__title">${e.paymentProcessing}</h2>\n <div class="section__content __ndb-spinner-container">\n <div class="spinner">\n <div class="lds-ring">\n <div></div>\n <div></div>\n <div></div>\n <div></div>\n </div>\n <div class="spinner__extra"></div>\n </div>\n </div>\n </div>\n </div>\n </body>\n </html>`}(e);let o=n.replace("</head>",'<style>\n\n .waiting__title {\n position: relative;\n z-index: 101;\n font-family: "Poppins", Helvetica, Arial, sans-serif;\n color: #29304d;\n font-size: 16px;\n margin: 0;\n text-align: center;\n transform: translateY(108px);\n }\n .__ndb__moto-modal-backdrop {\n background-color: #e5e5e5 !important;\n }\n .__ndb__moto-modal .header {\n margin: 0;\n }\n .section__content {\n margin: 0 auto;\n width: 870px;\n }\n @media screen and (max-width: 1000px) {\n .section__content {\n width: 720px;\n }\n }\n @media screen and (max-width: 768px) {\n .section__content {\n width: 375px;\n }\n }\n @media screen and (max-width: 375px) {\n .section__content {\n width: 320px;\n }\n }\n .spinner {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n height: 330px;\n }\n .spinner_small {\n height: 70px;\n }\n .spinner_extra {\n height: 550px;\n }\n .lds-ring {\n display: inline-block;\n position: relative;\n width: 80px;\n height: 80px;\n }\n .lds-ring div {\n box-sizing: border-box;\n display: block;\n position: absolute;\n width: 64px;\n height: 64px;\n margin: 8px;\n border: 8px solid #6936d3;\n border-radius: 50%;\n animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;\n border-color: #6936d3 transparent transparent transparent;\n }\n .lds-ring div:nth-child(1) {\n animation-delay: -0.45s;\n }\n .lds-ring div:nth-child(2) {\n animation-delay: -0.3s;\n }\n .lds-ring div:nth-child(3) {\n animation-delay: -0.15s;\n }\n @keyframes lds-ring {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n }\n</style>\n</head>');return o=o.replace("</body>","<script>\n\n const messageKey = '__moto_pay_message';\n\n function inputTemplate(name, value) {\n return `<input type=\"hidden\" name=\"${name}\" value=\"${value}\" />`;\n }\n \n function formTemplate(redirectUrl, inputsTpl) {\n return `<form action=\"${redirectUrl}\" method=\"post\">${inputsTpl}</form>`;\n }\n \n function makeFormTemplate(threeDsData) {\n const inputsTemplate = Object.entries(threeDsData).reduce((accum, [key, value]) => {\n const inputTpl = inputTemplate(key, value);\n return (accum += `${inputTpl}\n`);\n }, '');\n const template = formTemplate(threeDsData.acsurl, inputsTemplate);\n return template;\n }\n \n function simpleRedirect(url) {\n window.location.replace(url);\n }\n \n function postRedirect(threeDsData) {\n const template = makeFormTemplate(threeDsData);\n \n setTimeout(() => {\n document.body.innerHTML = template;\n const form = document.body.querySelector('form');\n form.submit();\n });\n }\n \n function onMessageReceived(event) {\n if (event.data && event.data.key == messageKey) {\n if (event.data.type == 'simpleRedirect') {\n simpleRedirect(event.data?.redirectData?.location);\n }\n \n if (event.data.type == 'postRedirect') {\n postRedirect(event.data.threeDsData);\n }\n }\n }\n\n window.addEventListener('message', onMessageReceived, false);\n \n<\/script>\n</body>"),o}iP();class Kd{constructor(){this.postMessageKey="__moto_pay_message"}tryOpenBlankWindow(n){return this.window||(this.window=window.open("","_blank")??void 0,n&&this.window?.document?.write(n)),this.window}threeDsRedirect(n){this.window?.postMessage({key:this.postMessageKey,type:"postRedirect",threeDsData:n})}redirect(n){this.window?.postMessage({key:this.postMessageKey,type:"simpleRedirect",redirectData:n})}closeWindow(){this.window?.close(),this.window=void 0}}let VA=(()=>{class e{constructor(t){this.window=t}transform(t,r){return Number(t).toLocaleString(this.window.navigator.language,{style:"currency",currency:r})}static#e=this.\u0275fac=function(r){return new(r||e)(v(CI,16))};static#t=this.\u0275pipe=ht({name:"currencySymbol",type:e,pure:!0})}return e})(),Uz=(()=>{class e{transform(t,r,i){return gy(t,r,i)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275pipe=ht({name:"price",type:e,pure:!0})}return e})();function $z(e,n){if(1&e&&(S(0,"span",4),$(1),T()),2&e){x();const t=Pe(3);C(),gt(t.taxDescription)}}function Gz(e,n){if(1&e&&(ge(0,"div",9),S(1,"div",10),ge(2,"moto-picture",11),Ce(3,"cardInfo"),S(4,"span",12),$(5),Ce(6,"slice"),T()()),2&e){const t=n;C(2),P("src",xt(3,2,t.name,"logo")),C(3),ke(" \u2022\u2022",xt(6,5,t.name,-4)," ")}}let BA=(()=>{class e{constructor(t,r,i){this.context=t,this.processing=r,this.windowService=i}ngOnInit(){this.settings=this.context.data.settings,this.payment=this.context.data.payment,this.userProvidedInfo=this.context.data.userProvidedInfo,this.paymentAvailability=this.context.computed.paymentAvailability,this.existingCard=ce(()=>{const t=this.userProvidedInfo();if("existing-card"===t?.requisites?.type&&t.requisites?.value)return t.requisites.value})}pay(){if(this.context.events.analytics.emit(new Ae("pay-button-click")),!this.context.computed.paymentAvailability().canPay.byCard)return void this.context.updateCanShowError(!0);this.windowService.tryOpenBlankWindow($y(this.settings().language));const t=this.processing.pay();this.context.data.state.set({type:"payLoading",payload:{observable:t}})}onFocus(){this.context.events.analytics.emit(new Ae("pay-button-focus"),!0)}static#e=this.\u0275fac=function(r){return new(r||e)(v(xe),v(Fo),v(Kd))};static#t=this.\u0275cmp=Me({type:e,selectors:[["moto-pay-button"]],decls:23,vars:23,consts:[[1,"__ndb-pay"],[1,"__ndb-pay-info"],[1,"__ndb-pay-title","fz-18","fw-600"],["data-locator","total-cost",1,"fz-24","fw-700"],["id","tax-description",1,"fz-11","fw-500","font-description"],["id","pay-button","data-locator","btn-submit",1,"__ndb-pay-btn","button-submit","full-width",3,"click","focusin","ngClass","disabled"],[1,"__ndb-pay-btn-content"],[1,"__ndb-pay-btn-cost-side"],["data-locator","btn-submit-cost"],[1,"__ndb-pay-btn-separator"],[1,"__ndb-pay-btn-card-side"],[1,"__ndb-pay-btn-card-side-logo",3,"src"],["data-locator","btn-submit-card-number",1,"__ndb-pay-btn-card-side-number"]],template:function(r,i){if(1&r){const s=at();Tn(0)(1)(2)(3),S(4,"div",0)(5,"div",1)(6,"span",2),$(7),T(),S(8,"span",3),$(9),Ce(10,"price"),Ce(11,"currencySymbol"),T()(),ee(12,$z,2,1,"span",4),S(13,"button",5),te("click",function(){return ne(s),re(i.pay())})("focusin",function(){return ne(s),re(i.onFocus())}),S(14,"div",6)(15,"div",7)(16,"span"),$(17),S(18,"span",8),$(19),Ce(20,"price"),Ce(21,"currencySymbol"),T()()(),ee(22,Gz,7,8),T()()()}if(2&r){let s;const o=i.payment(),a=i.paymentAvailability(),c=i.settings();C(3);const l=$t(c.language);C(4),gt(l.totalHeader),C(2),gt(xt(11,13,mi(10,9,o.amount,o.tax,o.amountType),o.currency)),C(3),ie(c.isTaxVisible&&l.taxDescription?12:-1),C(),P("ngClass",a.buttonDisableClass)("disabled",a.isPayButtonDisabled),C(4),ke(" ",l.pay," "),C(2),ke(" ",xt(21,20,mi(20,16,o.amount,o.tax,o.amountType),o.currency)," "),C(3),ie((s=i.existingCard())?22:-1,s)}},dependencies:[wg,Ao,VA,Ig,Uz,Wd],styles:["[_ngcontent-%COMP%]:root{--ndb-button-bg: #2c8ee8;--ndb-button-disabled-bg: rgba(201, 204, 216, .3);--ndb-button-hover-bg: #1467b4;--ndb-button-color: #fff;--ndb-card-border-color: #c9ccd8}.full-width[_ngcontent-%COMP%]{width:100%}@media (min-width: 769px){.ndb-mobile[_ngcontent-%COMP%]{display:none}}@media (max-width: 768px){.ndb-desktop[_ngcontent-%COMP%]{display:none}}.margin-auto[_ngcontent-%COMP%]{margin:auto}.flex[_ngcontent-%COMP%]{display:flex}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.none[_ngcontent-%COMP%]{display:none}.block[_ngcontent-%COMP%]{display:block}.events-none[_ngcontent-%COMP%]{pointer-events:none}.cursor-default[_ngcontent-%COMP%]{cursor:default}.pointer[_ngcontent-%COMP%]{cursor:pointer}.bold[_ngcontent-%COMP%]{font-weight:700!important}.font-middle[_ngcontent-%COMP%]{vertical-align:middle}.rotate[_ngcontent-%COMP%]{transform:rotate(-180deg)}.__ndb-pay[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.__ndb-pay-info[_ngcontent-%COMP%]{display:flex;width:100%;align-items:center;justify-content:space-between;gap:20px;margin-bottom:7px}.__ndb-pay-btn[_ngcontent-%COMP%]{margin-top:7px}.__ndb-pay-btn-content[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:16px;width:100%}.__ndb-pay-btn-separator[_ngcontent-%COMP%]{width:2px;height:18px;opacity:.3;background-color:var(--ndb-button-color)}.__ndb-pay-btn-card-side[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px}.__ndb-pay-btn-card-side-logo[_ngcontent-%COMP%]{height:24px;width:36px}"],changeDetection:0})}return e})(),Qd=(()=>{class e{constructor(){this.signals={}}getOrSetItemSignal(t,r){const i=window.sessionStorage.getItem(t);return i?this.signals[t]?JSON.stringify(this.signals[t]())!==i&&this.signals[t].set(JSON.parse(i)):this.signals[t]=se(JSON.parse(i)):this.setItem(t,r),this.signals[t]}setItem(t,r){window.sessionStorage.setItem(t,JSON.stringify(r)),this.signals[t]?this.signals[t].set(r):this.signals[t]=se(r)}removeItem(t){window.sessionStorage.removeItem(t),this.signals[t]?.set(void 0)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})(),qz=(()=>{class e{constructor(t,r){this.renderer=t,this.elRef=r,this.buttonClick=new ve,this.buttonStyle="white-outline",this.locale="en-US",this.type="continue"}ngAfterViewInit(){this.createButton()}ngOnDestroy(){this.buttonClickListener&&(this.buttonClickListener(),this.buttonClickListener=void 0)}createButton(){const t=this.renderer.createElement("apple-pay-button");this.renderer.setAttribute(t,"type",this.type),this.renderer.setAttribute(t,"buttonstyle",this.buttonStyle),this.renderer.setAttribute(t,"locale",this.locale),this.buttonClickListener=this.renderer.listen(t,"click",r=>this.buttonClick.emit(r)),this.renderer.appendChild(this.elRef.nativeElement,t),this.renderer.setStyle(t,"display","inline-block")}static#e=this.\u0275fac=function(r){return new(r||e)(v(Ar),v(cn))};static#t=this.\u0275dir=Z({type:e,selectors:[["","motoApplePayButton",""]],inputs:{buttonStyle:"buttonStyle",locale:"locale",type:"type"},outputs:{buttonClick:"buttonClick"}})}return e})(),Wz=(()=>{class e{constructor(t,r,i){this.renderer=t,this.elRef=r,this.context=i,this.buttonClick=new ve}ngAfterViewInit(){this.createButton()}ngOnDestroy(){this.buttonClickListener&&(this.buttonClickListener(),this.buttonClickListener=void 0)}createButton(){if(!this.context.clients.googlePay)return;const t=this.context.clients.googlePay.createButton({...this.context.data.settings()?.googlePay.button,onClick:r=>this.buttonClick.emit(r)});this.renderer.appendChild(this.elRef.nativeElement,t),this.renderer.setStyle(t,"display","inline-block")}static#e=this.\u0275fac=function(r){return new(r||e)(v(Ar),v(cn),v(xe))};static#t=this.\u0275dir=Z({type:e,selectors:[["","motoGooglePayButton",""]],outputs:{buttonClick:"buttonClick"}})}return e})(),Zz=(()=>{class e{set _let(t){this.context.let=t}constructor(t,r){this.viewContainer=t,this.tpl=r,this.context={let:null}}ngOnInit(){this.viewContainer.createEmbeddedView(this.tpl,this.context)}static#e=this.\u0275fac=function(r){return new(r||e)(v(ir),v(Ir))};static#t=this.\u0275dir=Z({type:e,selectors:[["","let",""]],inputs:{_let:[0,"let","_let"]}})}return e})();const Yz=(e,n)=>n.name,Kz=(e,n)=>({applepay:e,googlepay:n}),Qz=e=>({$implicit:e});function Xz(e,n){if(1&e){const t=at();S(0,"div",5)(1,"span",7),te("click",function(){return ne(t),re(x(2).apmsCollapseClick())}),$(2),T()()}if(2&e){x(2);const t=Pe(2);C(),P("ngClass",t.apmsCollapse?"__ndb-apm-list__delimiter-text__apms-collapse":""),C(),gt(t.apmsCollapse?t.language.apms.orUseAlternative:t.language.apms.or)}}function Jz(e,n){if(1&e&&pi(0,8),2&e){const t=n.$implicit,r=x(2).let;x();const i=wu(5);P("ngTemplateOutlet",t.logo?i:r[t.name])("ngTemplateOutletContext",function x0(e,n,t,r){return k0(b(),Wt(),e,n,t,r)}(2,Qz,t))}}function e9(e,n){if(1&e&&(S(0,"div",6),dn(1,Jz,1,4,"ng-container",8,Yz),T()),2&e){x(2);const t=Pe(0);C(),fn(t)}}function t9(e,n){if(1&e&&(S(0,"div",4),ee(1,Xz,3,2,"div",5)(2,e9,3,0,"div",6),T()),2&e){let t;const r=x(),i=Pe(2);C(),ie(r.cardPaymentAvailable()?1:-1),C(),ie(i.apmsCollapse&&r.apmsCollapsed&&(null===(t=r.apmsCollapsed())||void 0===t||t)?-1:2)}}function n9(e,n){if(1&e){const t=at();S(0,"button",9),te("focusin",function(){const i=ne(t).$implicit;return re(x().onFocus(i))})("click",function(){const i=ne(t).$implicit;return re(x().pay(i))}),ge(1,"img",10),T()}if(2&e){const t=n.$implicit;x();const r=Pe(1);P("id","apm-"+(null==t?null:t.name)+"-button")("ngClass",r.elementDisableClass),C(),P("src",t.logo,ga)("alt",t.name)}}function r9(e,n){if(1&e){const t=at();S(0,"div",11),te("buttonClick",function(){const i=ne(t).$implicit;return re(x().pay(i))})("focusin",function(){const i=ne(t).$implicit;return re(x().onFocus(i))}),T()}2&e&&(x(),P("ngClass",Pe(1).elementDisableClass))}function i9(e,n){if(1&e){const t=at();S(0,"div",12),te("buttonClick",function(){const i=ne(t).$implicit;return re(x().pay(i))})("focusin",function(){const i=ne(t).$implicit;return re(x().onFocus(i))}),T()}2&e&&(x(),P("ngClass",Pe(1).elementDisableClass))}let jA=(()=>{class e{constructor(t,r,i,s,o,a,c){this.context=t,this.processingService=r,this.mapper=i,this.applePayService=s,this.googlePayService=o,this.sessionStorage=a,this.windowService=c,this.apms=se([])}ngOnInit(){this.settings=this.context.data.settings,this.paymentInfo=this.context.data.payment,this.settings().apmsCollapse&&(this.apmsCollapsed=this.sessionStorage.getOrSetItemSignal(pn.keys.apmsCollapse,!0)),this.paymentAvailability=this.context.computed.paymentAvailability,this.apms=ce(()=>{let t=this.context.data.loadedPaymentSystems().filter(i=>"card"!==i.name);return this.mapper.mapApms(t)}),this.cardPaymentAvailable=ce(()=>this.context.componentsStates.cardForm().enabled||this.context.componentsStates.cardList().enabled)}pay(t){var i,r=this;if(this.context.events.analytics.emit(new Ae(`${t.name}-button-click`)),this.paymentAvailability().canPay.byApm)if("applepay"===t.name){const i=Xr(this.settings().urls.processing,`api/applepay/${this.paymentInfo().merchantId}/merchantValidation`);this.applePayService.pay(this.paymentInfo(),i).subscribe({next:s=>{t.token=s,this.makePaymentAndRedirect(t)},error:()=>this.apmTokenError()})}else"googlepay"===t.name?this.googlePayService.pay(this.paymentInfo()).subscribe({next:(i=ss(function*(s){t.token=s,yield r.redirectForConfirmation(),r.windowService.tryOpenBlankWindow($y(r.settings().language)),r.makePaymentAndRedirect(t)}),function(o){return i.apply(this,arguments)}),error:()=>this.apmTokenError()}):(this.windowService.tryOpenBlankWindow($y(this.settings().language)),this.makePaymentAndRedirect(t));else this.context.updateCanShowErrorForApm(!0)}onFocus(t){this.context.events.analytics.emit(new Ae(`${t.name}-button-focus`),!0)}apmsCollapseClick(){if(this.settings().apmsCollapse){const t=this.apmsCollapsed();this.sessionStorage.setItem(pn.keys.apmsCollapse,!t),this.context.events.analytics.emit(new Ae("apms-show-button-click",{show:t}))}}makePaymentAndRedirect(t){this.context.data.userProvidedInfo.update(i=>({...i,paymentSystemName:t.name,requisites:{type:"apm",value:t}}));const r=this.processingService.pay();this.context.data.state.set({type:"payLoading",payload:{observable:r}})}redirectForConfirmation(){const{promise:t,resolve:r}=function zz(){let e,n;return{promise:new Promise((r,i)=>{e=r,n=i}),resolve:e,reject:n}}();return this.context.data.state.set({type:"confirmation",payload:{resolvePromise:r}}),t}apmTokenError(){this.windowService.closeWindow(),this.context.data.state.set({type:"result",payload:{}})}static#e=this.\u0275fac=function(r){return new(r||e)(v(xe),v(Fo),v(fs),v(yy),v(_y),v(Qd),v(Kd))};static#t=this.\u0275cmp=Me({type:e,selectors:[["moto-apm-list"]],decls:10,vars:7,consts:[["apmDefaultRef",""],["applePayRef",""],["googlePayRef",""],["class","__ndb-apm-list",4,"let"],[1,"__ndb-apm-list"],[1,"__ndb-apm-list__delimiter"],[1,"__ndb-apm-list-apms"],["id","apms-collapse-button",1,"__ndb-apm-list__delimiter-text","fz-12",3,"click","ngClass"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"__ndb-apm-list-apms__item",3,"focusin","click","id","ngClass"],[1,"__ndb-apm-list-apms__item-img",3,"src","alt"],["id","apm-applepay-button","motoApplePayButton","",1,"__ndb-apm-list-apms__item","moto-apple-pay-button",3,"buttonClick","focusin","ngClass"],["id","apm-googlepay-button","motoGooglePayButton","",1,"__ndb-apm-list-apms__item","moto-google-pay-button",3,"buttonClick","focusin","ngClass"]],template:function(r,i){if(1&r&&(Tn(0)(1)(2),ee(3,t9,3,2,"div",3)(4,n9,2,4,"ng-template",null,0,Tu)(6,r9,1,1,"ng-template",null,1,Tu)(8,i9,1,1,"ng-template",null,2,Tu)),2&r){const s=wu(7),o=wu(9);$t(i.apms()),C(),$t(i.paymentAvailability()),C(),$t(i.settings()),C(),P("let",function N0(e,n,t,r,i){return P0(b(),Wt(),e,n,t,r,i)}(4,Kz,s,o))}},dependencies:[wg,pT,qz,Wz,Zz],styles:['[_ngcontent-%COMP%]:root{--ndb-button-bg: #2c8ee8;--ndb-button-disabled-bg: rgba(201, 204, 216, .3);--ndb-button-hover-bg: #1467b4;--ndb-button-color: #fff;--ndb-card-border-color: #c9ccd8}.__ndb-apm-list__delimiter[_ngcontent-%COMP%]{margin-bottom:28px;display:flex;flex-direction:row;justify-content:center;align-items:center}.__ndb-apm-list__delimiter[_ngcontent-%COMP%]:before, .__ndb-apm-list__delimiter[_ngcontent-%COMP%]:after{content:"";height:1px;flex:1;background-color:#c9ccd8}.__ndb-apm-list__delimiter[_ngcontent-%COMP%]:before{margin-right:10px}.__ndb-apm-list__delimiter[_ngcontent-%COMP%]:after{margin-left:10px}.__ndb-apm-list__delimiter-text[_ngcontent-%COMP%]{font-weight:500;color:#636b8a}.__ndb-apm-list__delimiter-text__apms-collapse[_ngcontent-%COMP%]{-webkit-text-decoration:underline #636b8a dotted;text-decoration:underline #636b8a dotted;cursor:pointer;-webkit-user-select:none;user-select:none}.__ndb-apm-list-apms[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px}.__ndb-apm-list-apms__item[_ngcontent-%COMP%]{position:relative;width:100%;height:60px;display:flex;flex-direction:row;justify-content:center;align-items:center;background-color:#e8eaf3;transition:box-shadow .25s ease-out;will-change:box-shadow;border-radius:4px}.__ndb-apm-list-apms__item[_ngcontent-%COMP%]:hover:not(.disabled-element):not(.hidden-enabled-element){box-shadow:0 2px 3px #2f45704d}.__ndb-apm-list-apms__item[_ngcontent-%COMP%]:not(.disabled-element):not(.hidden-enabled-element){cursor:pointer}.__ndb-apm-list-apms__item-img[_ngcontent-%COMP%]{position:absolute;width:60%;height:100%;left:20%;top:0;object-fit:contain}.moto-apple-pay-button[_ngcontent-%COMP%]{--apple-pay-button-height: 60px;--apple-pay-button-width: 100%;width:100%;height:60px;padding:0}.moto-google-pay-button[_ngcontent-%COMP%]{width:100%;height:60px;padding:0}'],changeDetection:0})}return e})();function s9(e,n){if(1&e){const t=at();S(0,"label",3)(1,"input",4),Fm("ngModelChange",function(i){ne(t);const s=x().$implicit;return function S0(e,n){const t=aw(e);return t&&e.set(n),t}(s.value,i)||(s.value=i),re(i)}),te("ngModelChange",function(){ne(t);const i=x(),s=i.$implicit,o=i.$index;return re(x(2).onChange(s,o))})("focusin",function(){ne(t);const i=x(),s=i.$implicit,o=i.$index;return re(x(2).onFocus(s,o))}),T(),ge(2,"span",5)(3,"span",6),Ce(4,"linkify"),T()}if(2&e){const t=x().$implicit;x(2);const r=Pe(0);C(),P("name","user-preference-"+t.name)("id","user-preference-"+t.name),Rm("ngModel",t.value),C(),Yt("circle","circle"===(null==r.userPreferences?null:r.userPreferences.shape))("square","square"===(null==r.userPreferences?null:r.userPreferences.shape)),C(),P("innerHTML",xt(4,8,t.text,"__ndb-settings-checkboxes-checkbox-link fz-12 fw-500 font-description"),Tr)}}function o9(e,n){1&e&&ee(0,s9,5,11,"label",3),2&e&&ie(n.$implicit.text?0:-1)}function a9(e,n){if(1&e&&(S(0,"div",1),dn(1,o9,1,1,null,null,ar),T()),2&e){const t=x();C(),fn(t.userPreferenceCheckboxes)}}function c9(e,n){1&e&&(ge(0,"p",2),Ce(1,"linkify")),2&e&&(x(),P("innerHTML",xt(1,1,Pe(0).userPreferences.text,"fz-12 fw-500 font-description"),Tr))}let HA=(()=>{class e extends Zd{constructor(t,r){super(t),this.injector=t,this.context=r,this.userPreferenceCheckboxes=[]}ngOnInit(){this.settings=this.context.data.settings,this.update(this.settings().userPreferences)}reset(){this.update(this.settings().userPreferences)}onChange(t,r){this.context.data.userProvidedInfo.update(s=>({...s,userPreferences:this.userPreferenceCheckboxes}));this.context.events.analytics.emit(new Ae(t.value?`user-preference-checkbox-${r}-check`:`user-preference-checkbox-${r}-uncheck`,{name:t.name,text:t.text}))}onFocus(t,r){this.context.events.analytics.emit(new Ae(`user-preference-checkbox-${r}-focus`,{name:t.name,text:t.text}),!0)}update(t){t?.checkboxes?.length?(this.userPreferenceCheckboxes=t.checkboxes.map(r=>({name:r.name,text:r.text,value:!!r.defaultValue})),this.context.data.userProvidedInfo.update(r=>({...r,userPreferences:this.userPreferenceCheckboxes})),this.localDetect()):this.userPreferenceCheckboxes=[]}static#e=this.\u0275fac=function(r){return new(r||e)(v(Ne),v(xe))};static#t=this.\u0275cmp=Me({type:e,selectors:[["moto-user-preferences"]],features:[me],decls:4,vars:3,consts:[[1,"__ndb-settings"],[1,"__ndb-settings-checkboxes"],[1,"__ndb-settings-text","fz-11","fw-500",3,"innerHTML"],[1,"__ndb-settings-checkboxes-checkbox","fz-11","fw-500","font-description"],["type","checkbox",1,"__ndb-settings-checkboxes-checkbox-input",3,"ngModelChange","focusin","name","id","ngModel"],[1,"__ndb-settings-checkboxes-checkbox-checkmark"],[1,"__ndb-settings-checkboxes-checkbox-text",3,"innerHTML"]],template:function(r,i){if(1&r&&(Tn(0),S(1,"div",0),ee(2,a9,3,0,"div",1)(3,c9,2,4,"p",2),T()),2&r){const s=$t(i.settings());C(2),ie(i.userPreferenceCheckboxes.length?2:-1),C(),ie(null!=s&&null!=s.userPreferences&&s.userPreferences.text?3:-1)}},dependencies:[Cc,ei,us,jo],changeDetection:0})}return e})();function l9(e,n){1&e&&(S(0,"span",4),$(1,"\xb7"),T())}function u9(e,n){if(1&e&&(S(0,"a",3),$(1),T(),ee(2,l9,2,0,"span",4)),2&e){const t=n.$implicit,r=n.$index,i=n.$count;P("href",t.href,ga),C(),ke(" ",t.text," "),C(),ie(r!==i-1?2:-1)}}function d9(e,n){if(1&e&&(S(0,"div",1),dn(1,u9,3,3,null,null,ar),T()),2&e){x(2);const t=Pe(0);C(),fn(t.links)}}function f9(e,n){1&e&&(ge(0,"p",2),Ce(1,"linkify")),2&e&&(x(2),P("innerHTML",xt(1,1,Pe(0).text,"__ndb-merchant-info-checkbox-link fz-12 fw-500 font-description"),Tr))}function h9(e,n){if(1&e&&(S(0,"div",0),ee(1,d9,3,0,"div",1)(2,f9,2,4,"p",2),T()),2&e){x();const t=Pe(0);C(),ie(null!=t.links&&t.links.length?1:-1),C(),ie(t.text?2:-1)}}let UA=(()=>{class e{constructor(t){this.context=t}ngOnInit(){this.settings=this.context.data.settings}static#e=this.\u0275fac=function(r){return new(r||e)(v(xe))};static#t=this.\u0275cmp=Me({type:e,selectors:[["moto-merchant-info"]],decls:2,vars:2,consts:[[1,".__ndb-merchant-info"],[1,"__ndb-merchant-info-links"],[1,"__ndb-merchant-info-description","fz-11","fw-500","font-description",3,"innerHTML"],["target","_blank",1,"__ndb-merchant-info-links-link","fz-12","fw-500","font-description",3,"href"],[1,"__ndb-merchant-info-links-separator","fz-12","fw-500","font-description"]],template:function(r,i){if(1&r&&(Tn(0),ee(1,h9,3,2,"div",0)),2&r){const s=$t(i.settings().merchantInfo);C(),ie(null!=s.links&&s.links.length||s.text?1:-1)}},dependencies:[jo],styles:["[_ngcontent-%COMP%]:root{--ndb-button-bg: #2c8ee8;--ndb-button-disabled-bg: rgba(201, 204, 216, .3);--ndb-button-hover-bg: #1467b4;--ndb-button-color: #fff;--ndb-card-border-color: #c9ccd8}.__ndb-merchant-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:28px;padding:0 28px 28px}@media (max-width: 768px){.__ndb-merchant-info[_ngcontent-%COMP%]{padding-bottom:14px}}.__ndb-merchant-info-links[_ngcontent-%COMP%]{display:flex;justify-content:center;flex-wrap:wrap}.__ndb-merchant-info-links-link[_ngcontent-%COMP%]{white-space:nowrap;text-decoration-line:underline}.__ndb-merchant-info-links-separator[_ngcontent-%COMP%]{margin:0 10px;white-space:nowrap}.__ndb-merchant-info-description[_ngcontent-%COMP%]{text-align:left;line-height:1.1;color:#000}"],changeDetection:0})}return e})(),$A=(()=>{class e{transform(t){return`https://cdn.motopays.com/images/${t}`}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275pipe=ht({name:"image",type:e,pure:!0})}return e})();function p9(e,n){1&e&&(ge(0,"moto-picture",3),Ce(1,"image")),2&e&&P("src",Ya(1,1,"visa-secure.svg"))}function m9(e,n){1&e&&(ge(0,"moto-picture",3),Ce(1,"image")),2&e&&P("src",Ya(1,1,"master-card-secure.svg"))}function g9(e,n){if(1&e&&(S(0,"div",0)(1,"p",1),$(2),T(),S(3,"div",2),ee(4,p9,2,3,"moto-picture",3)(5,m9,2,3,"moto-picture",3),T()()),2&e){const t=x();C(2),ke(" ",t.settings().language.transactionProtectedBy," "),C(2),ie(t.isVisaAvailable()?4:-1),C(),ie(t.isMastercardAvailable()?5:-1)}}let GA=(()=>{class e{constructor(t){this.context=t}ngOnInit(){this.settings=this.context.data.settings,this.isMastercardAvailable=ce(()=>!!this.settings().availableCardBrands?.some(t=>"mastercard"===t)),this.isVisaAvailable=ce(()=>!!this.settings().availableCardBrands?.some(t=>"visa"===t))}static#e=this.\u0275fac=function(r){return new(r||e)(v(xe))};static#t=this.\u0275cmp=Me({type:e,selectors:[["moto-protected-by"]],decls:1,vars:1,consts:[[1,"__ndb-secure"],[1,"__ndb-secure-phrase","fz-12","fw-500","font-description"],[1,"__ndb-secure-logos"],[1,"__ndb-secure-logos-logo",3,"src"]],template:function(r,i){1&r&&ee(0,g9,6,3,"div",0),2&r&&ie(i.isMastercardAvailable()||i.isVisaAvailable()?0:-1)},dependencies:[Ao,$A],styles:["[_ngcontent-%COMP%]:root{--ndb-button-bg: #2c8ee8;--ndb-button-disabled-bg: rgba(201, 204, 216, .3);--ndb-button-hover-bg: #1467b4;--ndb-button-color: #fff;--ndb-card-border-color: #c9ccd8}.__ndb-secure[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;gap:10px}.__ndb-secure-phrase[_ngcontent-%COMP%]{color:#000}.__ndb-secure-logos[_ngcontent-%COMP%]{display:flex;justify-content:center;gap:2px}.__ndb-secure-logos-logo[_ngcontent-%COMP%]{height:40px;width:max-content}"],changeDetection:0})}return e})(),zA=(()=>{class e{constructor(t){this.context=t}ngOnInit(){this.settings=this.context.data.settings}static#e=this.\u0275fac=function(r){return new(r||e)(v(xe))};static#t=this.\u0275cmp=Me({type:e,selectors:[["moto-no-payments"]],decls:2,vars:1,consts:[[1,"__ndb-no-methods"]],template:function(r,i){1&r&&(S(0,"h2",0),$(1),T()),2&r&&(C(),ke(" ",i.settings().language.noAvailablePaymentMethods,"\n"))},styles:[".__ndb-no-methods[_ngcontent-%COMP%]{text-align:center}"],changeDetection:0})}return e})(),y9=(()=>{class e{constructor(){this.shape="circle",this.invalid=!1,this.inputFocus=new ve,this.value=se("unchecked"),this.disabled=se(!1),this.onChange=()=>{},this.onTouched=()=>{}}writeValue(t){this.value.set(t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled.set(t)}onValueChanged(t){const r=t?"checked":"unchecked";this.value.set(r),this.onChange(r)}onBlur(){this.onTouched()}onInputFocus(t){this.inputFocus.emit(t)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=Me({type:e,selectors:[["moto-checkbox"]],inputs:{id:"id",text:"text",shape:"shape",invalid:"invalid"},outputs:{inputFocus:"inputFocus"},features:[Oe([{provide:Nn,useExisting:De(()=>e),multi:!0}])],decls:5,vars:16,consts:[[1,"__ndb-checkbox","fz-11","fw-500","font-description"],["type","checkbox",1,"__ndb-checkbox-input",3,"ngModelChange","focusin","blur","name","id","disabled","ngModel"],[1,"__ndb-checkbox-checkmark"],[1,"__ndb-checkbox-text",3,"innerHTML"]],template:function(r,i){1&r&&(S(0,"label",0)(1,"input",1),te("ngModelChange",function(o){return i.onValueChanged(o)})("focusin",function(o){return i.onInputFocus(o)})("blur",function(){return i.onBlur()}),T(),ge(2,"span",2)(3,"span",3),Ce(4,"linkify"),T()),2&r&&(C(),P("name",i.id)("id",i.id)("disabled",i.disabled())("ngModel","checked"===i.value()),C(),Yt("circle","circle"===i.shape)("square","square"===i.shape)("intermediate","intermediate"===i.value())("invalid",i.invalid),C(),P("innerHTML",xt(4,13,i.text,"__ndb-checkbox-link fz-12 fw-500 font-description"),Tr))},dependencies:[Cc,ei,us,jo],changeDetection:0})}return e})();const _9=(e,n)=>n.id;function v9(e,n){if(1&e){const t=at();S(0,"moto-checkbox",5),te("inputFocus",function(){return ne(t),re(x(2).onMasterFocus())})("ngModelChange",function(i){return ne(t),re(x(2).onMasterChange(i))}),T()}if(2&e){const t=x(2);P("shape",t.masterShape)("text",t.masterText)("ngModel",t.masterState())}}function C9(e,n){if(1&e){const t=at();S(0,"moto-checkbox",7),te("inputFocus",function(){ne(t);const i=x(),s=i.$implicit,o=i.$index;return re(x(2).onCheckboxFocus(s,o))})("ngModelChange",function(i){ne(t);const s=x(),o=s.$implicit,a=s.$index;return re(x(2).onCheckboxChange(o,a,i))}),T()}if(2&e){const t=x().$implicit,r=x(2);Yt("underMaster",r.isMaster),P("invalid",r.showError()&&t.isRequired&&!t.value)("shape",t.shape)("text",t.text)("id",t.id)("ngModel",t.value?"checked":"unchecked")}}function b9(e,n){1&e&&ee(0,C9,1,7,"moto-checkbox",6),2&e&&ie(n.$implicit?0:-1)}function E9(e,n){if(1&e&&(S(0,"div",1),ee(1,v9,1,3,"moto-checkbox",4),dn(2,b9,1,1,null,null,_9),T()),2&e){const t=x();C(),ie(t.isMaster?1:-1),C(),fn(t.checkboxes())}}function w9(e,n){if(1&e&&(S(0,"p",2),Ce(1,"linkify"),$(2),T()),2&e){const t=x();P("innerHTML",xt(1,2,t.footerText,"fz-12 fw-500 font-description"),Tr),C(2),ke(" ",t.footerText," ")}}function D9(e,n){if(1&e&&(S(0,"span",3),$(1),T()),2&e){const t=x();P("@ANTransform",void 0),C(),ke(" ",t.errorText," ")}}let S9=(()=>{class e{constructor(){this.provideErrors=_P(!1),this.errorText="",this.isMaster=!1,this.masterText="",this.masterShape="circle",this.checkboxes=se([]),this.changed=new ve,this.masterFocus=new ve,this.masterClick=new ve,this.checkboxFocus=new ve,this.isValidChanged=new ve,this.masterState=ce(()=>{if(!this.isMaster)return"unchecked";const t=this.checkboxes();return t.every(r=>r.value)?"checked":t.some(r=>r.value)?"intermediate":"unchecked"}),this.showError=ce(()=>this.provideErrors()&&this.checkboxes().some(t=>t.isRequired&&!t.value))}set checkboxesInput(t){this.checkboxes.set([...t])}onCheckboxChange(t,r,i){const s=[...this.checkboxes()];s[r]={...s[r],value:"checked"===i},this.checkboxes.set(s),this.changed.emit({checkboxes:s,concrete:{checkbox:{...t,value:"checked"===i},index:r}})}onMasterChange(t){const r=this.checkboxes().map(i=>({...i,value:"checked"===t}));this.checkboxes.set(r),this.changed.emit({checkboxes:r}),this.masterClick.emit(t)}onCheckboxFocus(t,r){this.checkboxFocus.emit({checkbox:t,index:r})}onMasterFocus(){this.masterFocus.emit()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=Me({type:e,selectors:[["moto-checkbox-container"]],inputs:{provideErrors:[1,"provideErrors"],errorText:"errorText",footerText:"footerText",isMaster:"isMaster",masterText:"masterText",masterShape:"masterShape",checkboxesInput:[0,"checkboxes","checkboxesInput"]},outputs:{changed:"changed",masterFocus:"masterFocus",masterClick:"masterClick",checkboxFocus:"checkboxFocus",isValidChanged:"isValidChanged"},decls:4,vars:3,consts:[[1,"__ndb-settings"],[1,"__ndb-settings-checkboxes"],[1,"__ndb-settings-text","fz-11","fw-500",3,"innerHTML"],[1,"fz-14","fw-500","font-error"],[3,"shape","text","ngModel"],[3,"inputFocus","ngModelChange","shape","text","ngModel"],[3,"underMaster","invalid","shape","text","id","ngModel"],[3,"inputFocus","ngModelChange","invalid","shape","text","id","ngModel"]],template:function(r,i){1&r&&(S(0,"div",0),ee(1,E9,4,1,"div",1)(2,w9,3,5,"p",2)(3,D9,2,2,"span",3),T()),2&r&&(C(),ie(i.checkboxes().length?1:-1),C(),ie(i.footerText?2:-1),C(),ie(i.showError()?3:-1))},dependencies:[ei,us,y9,jo],data:{animation:[Cd()]},changeDetection:0})}return e})(),qA=(()=>{class e{constructor(t){this.context=t,this.checkboxes=se([]),this.hasInvalidRequired=ce(()=>this.checkboxes().some(r=>r.isRequired&&!r.value))}ngOnInit(){this.settings=this.context.data.settings,this.componentState=this.context.componentsStates.master,this.showError=ce(()=>{const t=this.componentState(),r=this.hasInvalidRequired();return t.canShowError&&r}),this.update()}reset(){this.update()}onChanged(t){if(t.concrete){const{checkbox:r,index:i}=t.concrete;this.checkboxes.update(s=>s.map(o=>o.id===r.id?{...o,value:r.value}:o)),this.emitAnalytics(r,i)}else{const r=t.checkboxes;this.checkboxes.update(i=>i.map(s=>{const o=r.find(a=>a.id===s.id);return o?{...s,value:o.value}:s}))}this.updateContextData(),this.updateComponentState()}onFocus(t,r){this.context.events.analytics.emit(new Ae(`${"user-preferences"===t.type?"user-preference-checkbox":"charge-term-checkbox"}-${r}-focus`,{name:t.id,text:t.text??""}),!0)}onMasterFocus(){this.context.events.analytics.emit(new Ae("master-focus"),!0)}onMasterClick(){this.context.events.analytics.emit(new Ae("master-click"))}emitAnalytics(t,r){this.context.events.analytics.emit(new Ae(`${"user-preferences"===t.type?"user-preference-checkbox":"charge-term-checkbox"}-${r}-${t.value?"check":"uncheck"}`,{name:t.id,text:t.text??""}))}update(){const t=this.settings(),r=t.chargeTerms?.checkboxes?.map((s,o)=>({id:"charge-term-"+o,initId:o.toString(),text:s,value:!1,isRequired:!0,shape:t.chargeTerms?.shape??"circle",type:"charge-terms"}))??[],i=t.userPreferences?.checkboxes?.map(s=>({id:"user-preference-"+s.name,initId:s.name,text:s.text,value:!!s.defaultValue,isRequired:!1,shape:t.userPreferences?.shape??"square",type:"user-preferences"}))??[];this.checkboxes.set([...r,...i]),this.updateContextData(),this.updateComponentState()}updateComponentState(){const t=this.checkboxes(),i=!this.hasInvalidRequired(),s=!!this.settings().requiredFieldsBehavior?.markAsInvalidUntilCorrect,o=t.every(a=>!a.isRequired||a.value);this.componentState.update(a=>{let c={...a},l=!1;return a.filled!==o&&(c.filled=o,l=!0),!s&&i&&a.canShowError&&(c.canShowError=!1,l=!0),a.isValid!==i&&(c.isValid=i,l=!0),l?c:a})}updateContextData(){this.context.data.userProvidedInfo.update(t=>({...t,userPreferences:this.checkboxes().filter(r=>"user-preferences"===r.type).map(r=>({name:r.initId,value:r.value}))}))}static#e=this.\u0275fac=function(r){return new(r||e)(v(xe))};static#t=this.\u0275cmp=Me({type:e,selectors:[["moto-merged-checkboxes"]],decls:4,vars:7,consts:[[3,"changed","checkboxFocus","masterFocus","masterClick","checkboxes","isMaster","masterShape","masterText","provideErrors","footerText","errorText"]],template:function(r,i){if(1&r){const s=at();Tn(0)(1)(2),S(3,"moto-checkbox-container",0),te("changed",function(a){return ne(s),re(i.onChanged(a))})("checkboxFocus",function(a){return ne(s),re(i.onFocus(a.checkbox,a.index))})("masterFocus",function(){return ne(s),re(i.onMasterFocus())})("masterClick",function(){return ne(s),re(i.onMasterClick())}),T()}if(2&r){let s,o,a,c;const l=i.settings(),u=null!==(s=null==l.chargeTerms?null:l.chargeTerms.text)&&void 0!==s?s:null==l||null==l.userPreferences?null:l.userPreferences.text,d=null!==(o=null==l.language||null==l.language.errors?null:l.language.errors.notCheckedCheckboxes)&&void 0!==o?o:"";C(3),P("checkboxes",i.checkboxes())("isMaster",!0)("masterShape",null!==(a=null==l.master?null:l.master.shape)&&void 0!==a?a:"square")("masterText",null!==(c=null==l.master?null:l.master.text)&&void 0!==c?c:"")("provideErrors",i.showError())("footerText",u)("errorText",d)}},dependencies:[S9],changeDetection:0})}return e})(),fs=(()=>{class e{mapApms(t){return t.map(r=>({...r}))}mapPaymentRequest(t,r,i,s){let o=t.details;r.userPreferences?.length&&(o=r.userPreferences.reduce((l,u)=>(l[u.name]=u.value,l),o||{}));const a={amount:t.amount,amountType:this.mapAmountType(t.amountType),tax:t.tax,currency:t.currency,description:t.description?.substring(0,127),details:o?JSON.stringify(o):void 0,type:this.mapOrderType(t.orderType)},c={id:t.userId,email:t.email,phoneNumber:r.phoneNumber??t.phoneNumber,ipAddress:t.ipAddress,deviceInfo:s,billingAddress:t.billingAddress};return{id:t.paymentId,initiator:this.mapInitiatorType(t.initiator)??"Customer",returnUrl:t.returnUrl,webhookUrl:t.webhookUrl,order:a,payer:c,requisites:this.mapRequisites(r.requisites),signature:t.signature,rejectionPreferences:{showResolvingTips:i.isProblemTipsListVisible??!1}}}mapComponents(t,r){return t.map(i=>{switch(i){case"available-card-brands":return{component:BM,visible:r.availableCardBrands};case"no-methods":return{component:zA,visible:r.noMethods};case"card-list":return{component:Uy,visible:r.cardList};case"requisites":return{component:RA,visible:r.cardForm};case"phone-number":return{component:FA,visible:r.additionalForm};case"charge-terms":return{component:LA,visible:r.chargeTerms};case"pay-button":return{component:BA,visible:r.payButton};case"apm-list":return{component:jA,visible:r.apmList};case"user-preferences":return{component:HA,visible:r.userPreferences};case"merchant-info":return{component:UA,visible:r.merchantInfo};case"protected-by":return{component:GA,visible:r.protectedBy};case"master":return{component:qA,visible:r.master}}})}mapInterfaceSettingsToDomain(t){let r=t.languageSettings.code;t.languageSettings.languages[r]||(r="en-US");const i=t.languageSettings.languages[r],s=t.chargeTerms?{text:t.chargeTerms.text?t.chargeTerms.text[r]:void 0,checkboxes:t.chargeTerms.checkboxes?.length?t.chargeTerms.checkboxes.map(l=>l[r]).filter(l=>!!l):void 0,shape:t.chargeTerms.shape}:void 0,o=t.userPreferences?{text:t.userPreferences.text?t.userPreferences.text[r]:void 0,checkboxes:t.userPreferences.checkboxes?.length?t.userPreferences.checkboxes.map(l=>({name:l.name,defaultValue:l.defaultValue,text:l.text[r]})).filter(l=>!!l.text):void 0,shape:t.userPreferences.shape}:void 0,a=t.merchantInfo?{links:t.merchantInfo.links?.length?t.merchantInfo.links.map(l=>({href:l.href,text:l.text[r]})).filter(l=>!!l.text):void 0,text:t.merchantInfo.text?t.merchantInfo.text[r]:void 0}:void 0,c=t.master?{shape:t.master?.shape,text:t.master?.text?t.master.text[r]:void 0}:void 0;return{availableCardBrands:t.availableCardBrands,closePaymentRedirect:t.closePaymentRedirect,isTaxVisible:t.isTaxVisible,components:t.components,events:t.events,isCloseButtonVisible:t.isCloseButtonVisible,isHeaderVisible:t.isHeaderVisible,isProblemTipsListVisible:t.isProblemTipsListVisible,isSignatureRequired:t.isSignatureRequired,language:i??LM,requiredFieldsBehavior:{buttonStateUntilFilled:t.requiredFieldsBehavior.buttonStateUntilFilled,markAsInvalidUntilCorrect:t.requiredFieldsBehavior.markAsInvalidUntilCorrect,showStars:t.requiredFieldsBehavior.showStars},resultComponentsStructure:t.resultComponentsStructure,urls:t.urls,chargeTerms:s,userPreferences:o,merchantInfo:a,apmsCollapse:!!t.apmsCollapse,paymentFlow:{tokenizeCard:t.paymentFlow?.tokenizeCard??!0,type:t.paymentFlow?.type??"default"},master:c,googlePay:{allowedAuthMethods:t.googlePay?.allowedAuthMethods??["CRYPTOGRAM_3DS","PAN_ONLY"],button:t.googlePay?.button??{buttonSizeMode:"fill",buttonRadius:4}}}}mapRequisites(t){switch(t.type){case"apm":const r=t.value;return{type:r.name,paymentToken:r.token};case"existing-card":const i=t.value;return{anchor:i.rebill,type:"rebill",cvv:i.cvv};case"card":const s=t.value;return{cardHolder:s.holder,cardNumber:s.number,expiration:s.expiration,cvv:s.cvv,type:"card"};default:throw new Error("Unknown requisites type")}}mapInitiatorType(t){if(t){if("customer"===t)return"Customer";if("merchant"===t)return"Merchant";throw new Error("Unknown payment initiator type")}}mapAmountType(t){if(t){if("gross"===t)return"Gross";if("gross-without-gst"===t)return"GrossWithoutGst";if("net"===t)return"Net";throw new Error("Unknown amount type")}}mapOrderType(t){if(t){if("free-trial"===t)return"FreeTrial";if("regular"===t)return"Regular";if("gems"===t)return"Gems";throw new Error("Unknown order type")}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})(),WA=(()=>{class e{constructor(t){this.mapper=t}preparePaymentOrError(t){let r=FM(t);return this.validatePayment(r)||(r.userAuthToken&&!/^[^\s]+\s+/i.test(r.userAuthToken)&&(r.userAuthToken=`Bearer ${r.userAuthToken}`),r.currency&&(r.currency=r.currency.toUpperCase()),r.amount=+r.amount,r.tax&&(r.tax=+r.tax),r)}prepareSettingsOrError(t){let r=FM(t);const i=this.validateSettings(r);if(i)return i;const s=w5(S5,r);return this.mapper.mapInterfaceSettingsToDomain(s)}validateModelsCompatibility(t,r){return!t.signature&&r.isSignatureRequired?"not-exist-signature":t.userAuthToken||"default"===r.paymentFlow.type?void 0:"not-exist-auth-for-payment-flow"}validatePayment(t){return t?t.userId?t.paymentId?t.merchantId?null==t.amount||null==t.amount?"not-exist-amount":t.email?t.currency?void 0:"not-exist-currency":"not-exist-email":"not-exist-merchant-id":"not-exist-payment-id":"not-exist-customer-id":"not-exist-payment"}validateSettings(t){return t?t.urls&&t.urls.billingProfiles&&t.urls.processing?t.components?.includes("master")&&t.components?.some(r=>"user-preferences"===r||"charge-terms"===r)?"master-conflict":void 0:"invalid-urls":"not-exist-settings"}static#e=this.\u0275fac=function(r){return new(r||e)(k(fs))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})();function T9(e,n){if(1&e){const t=at();S(0,"div",2)(1,"i",3),te("click",function(){return ne(t),re(x().close())}),$(2,"close"),T()()}if(2&e){let t;x();const r=Pe(0);At("data-tooltip",null!==(t=null==r||null==r.language?null:r.language.close)&&void 0!==t?t:"Close")}}let ZA=(()=>{class e{constructor(t){this.context=t}ngOnInit(){this.settings=this.context.data.settings}close(){this.context.events.close.emit()}static#e=this.\u0275fac=function(r){return new(r||e)(v(xe))};static#t=this.\u0275cmp=Me({type:e,selectors:[["moto-header"]],decls:5,vars:3,consts:[[1,"__ndb-header"],[1,"__ndb-header-title","fz-24","fw-700"],[1,"__ndb-header-close"],[1,"material-icons","pointer",3,"click"]],template:function(r,i){if(1&r&&(Tn(0),S(1,"header",0)(2,"h6",1),$(3),T(),ee(4,T9,3,1,"div",2),T()),2&r){let s,o;const a=$t(i.settings());C(3),ke(" ",null!==(s=null==a||null==a.language?null:a.language.header)&&void 0!==s?s:"Checkout"," "),C(),ie(null===(o=null==a?null:a.isCloseButtonVisible)||void 0===o||o?4:-1)}},styles:["[_ngcontent-%COMP%]:root{--ndb-button-bg: #2c8ee8;--ndb-button-disabled-bg: rgba(201, 204, 216, .3);--ndb-button-hover-bg: #1467b4;--ndb-button-color: #fff;--ndb-card-border-color: #c9ccd8}.__ndb-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:28px;border-bottom:1px solid #c9ccd8}@media (max-width: 768px){.__ndb-header[_ngcontent-%COMP%]{padding:20px}}.__ndb-header-close[_ngcontent-%COMP%]{display:flex;align-items:center}"],changeDetection:0})}return e})(),YA=(()=>{class e{constructor(){this.shadow=!0}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=Me({type:e,selectors:[["moto-loader"]],hostVars:1,hostBindings:function(r,i){2&r&&_u("@ANFade",i.fadeAnimation)},inputs:{shadow:"shadow"},decls:3,vars:5,consts:[[1,"__ndb-loader"],["alt","spinner",1,"__ndb-loader-picture",3,"src"]],template:function(r,i){1&r&&(S(0,"div",0),ge(1,"moto-picture",1),Ce(2,"image"),T()),2&r&&(Yt("shadow",i.shadow),C(),P("src",Ya(2,3,"spinner-small.gif")))},dependencies:[Ao,$A],styles:[".__ndb-loader[_ngcontent-%COMP%]{border-radius:4px}.__ndb-loader[_ngcontent-%COMP%]:not(.shadow){height:40px;width:40px}.__ndb-loader.shadow[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:100%;width:100%;background-color:#fff9;display:flex}.__ndb-loader.shadow[_ngcontent-%COMP%] .__ndb-loader-picture[_ngcontent-%COMP%]{margin:auto;height:40px;width:40px}"],data:{animation:[B5({animationName:"ANFade",fromStyles:{opacity:"0"},toStyles:{opacity:"1"}})]},changeDetection:0})}return e})();function M9(e,n){1&e&&pi(0)}function I9(e,n){1&e&&ee(0,M9,1,0,"ng-container",0),2&e&&P("ngComponentOutlet",x().$implicit.component)}function A9(e,n){1&e&&ee(0,I9,1,1,"ng-container"),2&e&&ie(n.$implicit.visible()?0:-1)}function x9(e,n){1&e&&ge(0,"moto-loader")}let N9=(()=>{class e{constructor(t,r,i){this.context=t,this.mapper=r,this.refreshService=i,this.components=[]}ngOnInit(){this.isLoaderShown=this.context.computed.isLoading,this.refreshService.refreshPaymentSystems(),this.refreshService.refreshExistingCards(),this.components=this.mapper.mapComponents(this.context.data.settings().components,this.context.visibility)}static#e=this.\u0275fac=function(r){return new(r||e)(v(xe),v(fs),v(vy))};static#t=this.\u0275cmp=Me({type:e,selectors:[["moto-pay-form"]],decls:3,vars:1,consts:[[4,"ngComponentOutlet"]],template:function(r,i){1&r&&(dn(0,A9,1,1,null,null,bD),ee(2,x9,1,0,"moto-loader")),2&r&&(fn(i.components),C(2),ie(i.isLoaderShown()?2:-1))},dependencies:[YA,td],styles:["[_nghost-%COMP%]{display:flex;gap:28px;flex-direction:column}"],changeDetection:0})}return e})();const KA={message:"You cannot make a payment!",errors:{"not-exist-payment":'Input parameter "payment" is required in the payment model',"not-exist-customer-id":'The field "userId" is required in the payment model',"not-exist-payment-id":"The field paymentId is required in the payment model","not-exist-settings":'Input parameter "settings" is required in the payment model',"not-exist-signature":'The field "signature" is configured as required in the payment model',"not-exist-amount":'The field "amount" is required in the payment model',"not-exist-currency":'The field "currency" is required in the payment model',"not-exist-email":'The field "email" is required in the payment model',"not-exist-merchant-id":'The field "merchant id" is required in the payment model',"invalid-urls":'The field "urls" is required and processing/billingProfiles must to be set',"not-exist-auth-for-payment-flow":'The field "userAuthToken" is required for selected payment flow',"master-conflict":'Components cannot contain a "master" together with "user-preferences"/"charge-terms" at the same time'}};let k9=(()=>{class e{constructor(t){this.context=t}ngOnInit(){const t=this.context.data.state().payload;this.error=KA.errors[t.error],this.message=KA.message}static#e=this.\u0275fac=function(r){return new(r||e)(v(xe))};static#t=this.\u0275cmp=Me({type:e,selectors:[["moto-invalid-pay-form"]],decls:7,vars:2,consts:[[1,"__ndb-error-content"],[1,"material-icons-round","__ndb-error-content-icon"],[1,"__ndb-error-content-header","fz-24","fw-700"],[1,"__ndb-error-content-description","fz-14","fw-500","font-center"]],template:function(r,i){1&r&&(S(0,"div",0)(1,"i",1),$(2,"cancel"),T(),S(3,"h6",2),$(4),T(),S(5,"p",3),$(6),T()()),2&r&&(C(4),gt(i.error),C(2),ke(" ",i.message," "))},styles:[".__ndb-error-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:10px;padding:28px}@media (max-width: 768px){.__ndb-error-content[_ngcontent-%COMP%]{padding:14px 20px}}.__ndb-error-content-icon[_ngcontent-%COMP%]{font-size:95px;color:#000;margin-bottom:10px}.__ndb-error-content-header[_ngcontent-%COMP%], .__ndb-error-content-description[_ngcontent-%COMP%]{width:100%;text-align:center}"],changeDetection:0})}return e})(),P9=(()=>{class e{constructor(t,r,i,s){this.context=t,this.processing=r,this.sessionStorage=i,this.windowService=s}ngOnInit(){this.settings=this.context.data.settings,this.context.data.state().payload.observable.subscribe({next:r=>this.afterPay(r),error:r=>this.showResult(void 0,r)})}afterPay(t){"needAction"===t.payment?.state?(this.handleConfirmation(t.action),this.waitingPaymentCompleted(t)):(this.showResult(t),this.windowService.closeWindow())}handleConfirmation(t){switch(t.name){case"3ds":this.windowService.threeDsRedirect(t.data);break;case"redirect":this.windowService.redirect(t.data);break;default:throw new Error("Unexpected action name")}}waitingPaymentCompleted(t){(function k6(e,n,t){return e.pipe(Pt(r=>{if(n(r))return r;throw new Error(pI)}),function N6(e=1/0){let n;n=e&&"object"==typeof e?e:{count:e};const{count:t=1/0,delay:r,resetOnSuccess:i=!1}=n;return t<=0?Af:gn((s,o)=>{let c,a=0;const l=()=>{let u=!1;c=s.subscribe(sn(o,d=>{i&&(a=0),o.next(d)},void 0,d=>{if(a++<t){const f=()=>{c?(c.unsubscribe(),c=null,l()):u=!0};if(null!=r){const h="number"==typeof r?fI(r):dr(r(d,a)),p=sn(o,()=>{p.unsubscribe(),f()},()=>{o.complete()});h.subscribe(p)}else f()}else o.error(d)})),u&&(c.unsubscribe(),c=null,l())};l()})}({delay:r=>r.message==pI?fI(t):hy(()=>r)}))})(this.processing.getPaymentInfo(t.payment.paymentId),i=>"needAction"!=i.payment.state,1500).subscribe({next:i=>this.showResult(i),error:i=>{this.showResult(void 0,i),this.context.events.error.emit(i)}})}showResult(t,r){const i=this.settings();i.closePaymentRedirect&&this.windowService.closeWindow(),i.apmsCollapse&&t&&"rejected"===t.payment.state&&"card"===t.payment.info.paymentType&&this.sessionStorage.setItem(pn.keys.apmsCollapse,!1),this.context.data.state.set({type:"result",payload:{result:t,error:r}}),t&&this.context.events.paid.emit(t)}static#e=this.\u0275fac=function(r){return new(r||e)(v(xe),v(Fo),v(Qd),v(Kd))};static#t=this.\u0275cmp=Me({type:e,selectors:[["moto-processing"]],decls:12,vars:1,consts:[[1,"waiting"],[1,"section"],[1,"waiting__title"],[1,"section__content","__ndb-spinner-container"],[1,"spinner"],[1,"lds-ring"],[1,"spinner__extra"]],template:function(r,i){1&r&&(S(0,"div",0)(1,"div",1)(2,"h2",2),$(3),T(),S(4,"div",3)(5,"div",4)(6,"div",5),ge(7,"div")(8,"div")(9,"div")(10,"div"),T(),ge(11,"div",6),T()()()()),2&r&&(C(3),gt(i.settings().language.paymentProcessing))},styles:[".waiting__title[_ngcontent-%COMP%]{position:relative;z-index:101;font-family:Poppins,Helvetica,Arial,sans-serif;color:#29304d;font-size:16px;margin:0;text-align:center;transform:translateY(108px)}.__ndb__moto-modal-backdrop[_ngcontent-%COMP%]{background-color:#e5e5e5!important}.__ndb__moto-modal[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{margin:0}.section__content[_ngcontent-%COMP%]{margin:0 auto}.spinner[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;height:330px}.spinner_small[_ngcontent-%COMP%]{height:70px}.spinner_extra[_ngcontent-%COMP%]{height:550px}.lds-ring[_ngcontent-%COMP%]{display:inline-block;position:relative;width:80px;height:80px}.lds-ring[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{box-sizing:border-box;display:block;position:absolute;width:64px;height:64px;margin:8px;border:8px solid #6936d3;border-radius:50%;animation:_ngcontent-%COMP%_lds-ring 1.2s cubic-bezier(.5,0,.5,1) infinite;border-color:#6936d3 transparent transparent transparent}.lds-ring[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(1){animation-delay:-.45s}.lds-ring[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(2){animation-delay:-.3s}.lds-ring[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(3){animation-delay:-.15s}@keyframes _ngcontent-%COMP%_lds-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"],changeDetection:0})}return e})();function O9(e,n){1&e&&pi(0)}function R9(e,n){1&e&&ee(0,O9,1,0,"ng-container",5),2&e&&P("ngComponentOutlet",x().$implicit.component)}function F9(e,n){1&e&&ee(0,R9,1,1,"ng-container"),2&e&&ie(n.$implicit.visible()?0:-1)}function L9(e,n){if(1&e&&(S(0,"p",3),$(1),T()),2&e){const t=x();C(),ke(" ",t.resultModel.description," ")}}function V9(e,n){if(1&e&&(S(0,"li",6)(1,"p",7),$(2),T()()),2&e){const t=n.$implicit;C(2),ke(" ",t," ")}}function B9(e,n){if(1&e&&(S(0,"ul",4),dn(1,V9,3,1,"li",6,ar),T()),2&e){const t=x();C(),fn(null==t.paymentResult.payment.rejectionDetails?null:t.paymentResult.payment.rejectionDetails.problemSolvingTips)}}function j9(e,n){1&e&&pi(0)}function H9(e,n){1&e&&ee(0,j9,1,0,"ng-container",5),2&e&&P("ngComponentOutlet",x().$implicit.component)}function U9(e,n){1&e&&ee(0,H9,1,1,"ng-container"),2&e&&ie(n.$implicit.visible()?0:-1)}let $9=(()=>{class e{constructor(t,r){this.context=t,this.mapper=r,this.aboveComponents=[],this.belowComponents=[]}ngOnInit(){const t=this.context.data.state().payload;this.paymentResult=t.result,this.error=t.error,this.settings=this.context.data.settings,this.resultModel=this.getResultModel(),this.initAdditionalComponents()}getResultModel(){const t=this.settings().language;if(!this.paymentResult||this.error)return{icon:"cancel",title:t.paymentResult.failure.main,description:t.paymentResult.failure.paymentFailed};switch(this.paymentResult.payment.state){case"completed":return{icon:"check_circle",description:void 0,title:t.paymentResult.success};case"rejected":return{icon:"cancel",title:t.paymentResult.failure.main,description:t.paymentResult.failure.paymentFailed};default:throw new Error("unknown result")}}initAdditionalComponents(){const t=this.settings().resultComponentsStructure;t.aboveResult.length&&(this.aboveComponents=this.mapper.mapComponents(t.aboveResult,this.context.visibility)),t.belowResult.length&&(this.belowComponents=this.mapper.mapComponents(t.belowResult,this.context.visibility))}static#e=this.\u0275fac=function(r){return new(r||e)(v(xe),v(fs))};static#t=this.\u0275cmp=Me({type:e,selectors:[["moto-result"]],decls:11,vars:4,consts:[[1,"__ndb-result"],[1,"material-icons-round","__ndb-result-icon"],[1,"__ndb-result-header","fz-24","fw-700"],[1,"__ndb-result-description","fz-14","fw-500","font-center"],[1,"__ndb-result-tips"],[4,"ngComponentOutlet"],[1,"__ndb-result-tips-tip"],[1,"__ndb-result-tips-tip-text","fz-11","fw-500","font-center"]],template:function(r,i){1&r&&(dn(0,F9,1,1,null,null,ar),S(2,"div",0)(3,"i",1),$(4),T(),S(5,"h6",2),$(6),T(),ee(7,L9,2,1,"p",3)(8,B9,3,0,"ul",4),T(),dn(9,U9,1,1,null,null,ar)),2&r&&(fn(i.aboveComponents),C(4),gt(i.resultModel.icon),C(2),gt(i.resultModel.title),C(),ie(i.resultModel.description?7:-1),C(),ie(i.paymentResult&&i.settings().isProblemTipsListVisible&&null!=i.paymentResult.payment.rejectionDetails&&null!=i.paymentResult.payment.rejectionDetails.problemSolvingTips&&i.paymentResult.payment.rejectionDetails.problemSolvingTips.length?8:-1),C(),fn(i.belowComponents))},dependencies:[td],styles:["[_nghost-%COMP%]{display:flex;gap:28px;flex-direction:column}.__ndb-result[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:10px}@media (max-width: 768px){.__ndb-result[_ngcontent-%COMP%]{padding:14px 20px}}.__ndb-result-icon[_ngcontent-%COMP%]{font-size:95px;color:#000;margin-bottom:10px}.__ndb-result-header[_ngcontent-%COMP%], .__ndb-result-description[_ngcontent-%COMP%]{width:100%;text-align:center}.__ndb-result-tips[_ngcontent-%COMP%]{gap:5px;padding-inline-start:0px}.__ndb-result-tips-tip[_ngcontent-%COMP%]{list-style-type:disc}.__ndb-result-tips-tip-text[_ngcontent-%COMP%]{width:100%;text-align:left}"],changeDetection:0})}return e})();function G9(e,n){1&e&&pi(0)}function z9(e,n){1&e&&ee(0,G9,1,0,"ng-container",2),2&e&&P("ngComponentOutlet",x().$implicit.component)}function q9(e,n){1&e&&ee(0,z9,1,1,"ng-container"),2&e&&ie(n.$implicit.visible()?0:-1)}function W9(e,n){1&e&&pi(0)}function Z9(e,n){1&e&&ee(0,W9,1,0,"ng-container",2),2&e&&P("ngComponentOutlet",x().$implicit.component)}function Y9(e,n){1&e&&ee(0,Z9,1,1,"ng-container"),2&e&&ie(n.$implicit.visible()?0:-1)}let K9=(()=>{class e{constructor(t,r){this.context=t,this.mapper=r,this.aboveComponents=[],this.belowComponents=[],this.confirmed=se(!1)}ngOnInit(){this.settings=this.context.data.settings,this.initAdditionalComponents(),setTimeout(()=>{this.onClick()},6e4)}onClick(){this.confirmed()||(this.context.data.state().payload.resolvePromise(),this.confirmed.set(!0))}initAdditionalComponents(){const t=this.settings().resultComponentsStructure;t.aboveResult.length&&(this.aboveComponents=this.mapper.mapComponents(t.aboveResult,this.context.visibility)),t.belowResult.length&&(this.belowComponents=this.mapper.mapComponents(t.belowResult,this.context.visibility))}static#e=this.\u0275fac=function(r){return new(r||e)(v(xe),v(fs))};static#t=this.\u0275cmp=Me({type:e,selectors:[["moto-confirmation"]],decls:7,vars:2,consts:[[1,"__ndb-confirmation"],["id","moto-confirmation",1,"__ndb-pay-btn","button-submit",3,"click","disabled"],[4,"ngComponentOutlet"]],template:function(r,i){1&r&&(dn(0,q9,1,1,null,null,ar),S(2,"div",0)(3,"button",1),te("click",function(){return i.onClick()}),$(4),T()(),dn(5,Y9,1,1,null,null,ar)),2&r&&(fn(i.aboveComponents),C(3),P("disabled",i.confirmed()),C(),gt(i.settings().language.confirmPayment),C(),fn(i.belowComponents))},dependencies:[td],styles:[".__ndb-confirmation[_ngcontent-%COMP%]{padding:56px 0;text-align:center}"],changeDetection:0})}return e})();function Q9(e,n){1&e&&ge(0,"moto-header")}function X9(e,n){1&e&&ge(0,"moto-pay-form")}function J9(e,n){1&e&&ge(0,"moto-invalid-pay-form")}function eq(e,n){1&e&&ge(0,"moto-processing")}function tq(e,n){1&e&&ge(0,"moto-result")}function nq(e,n){1&e&&ge(0,"moto-confirmation")}function rq(e,n){}let iq=(()=>{class e{constructor(t,r,i,s){this.context=t,this.dataHandler=r,this.sessionStorage=i,this.toastr=s,this.state=this.context.data.state,this.closeEvent=t.events.close.emitter,this.paidEvent=t.events.paid.emitter,this.analyticsEvent=t.events.analytics.emitter,this.error=t.events.error.emitter,$u(()=>{this.context.computed.isLoading()?this.context.events.analytics.emit(new Ae("init-start")):this.context.events.analytics.emit(new Ae("loading-finish"))})}ngOnInit(){this.closeEvent=this.context.events.close.emitter,this.analyticsEvent=this.context.events.analytics.emitter,this.paidEvent=this.context.events.paid.emitter,this.error=this.context.events.error.emitter,b5().subscribe(t=>{this.context.data.deviceInfo.set(t)}),this.settingsSignal=ce(()=>this.context.data.settings())}ngOnChanges(t){if(t.payment){const r=this.dataHandler.preparePaymentOrError(t.payment.currentValue);if("string"==typeof r)return void this.state.set({type:"invalid",payload:{error:r}});this.context.data.payment.set(r)}if(t.settings){const r=this.dataHandler.prepareSettingsOrError(t.settings.currentValue);if("string"==typeof r)return void this.state.set({type:"invalid",payload:{error:r}});this.context.data.settings.set(r)}this.validate(!!t.settings||!!t.payment)}ngOnDestroy(){this.context.data.settings()?.apmsCollapse&&this.sessionStorage.removeItem(pn.keys.apmsCollapse);const t=this.toastr.toastrConfig;setTimeout(()=>{if(document.querySelector("moto-payment-form"))return;this.toastr?.clear();const i=document.getElementById("toast-container");i&&(i.innerHTML="")},(t?.timeOut??5e3)+(t?.extendedTimeOut??1e3)+500)}validate(t){const r=this.context.data.settings(),i=this.context.data.payment(),s=this.dataHandler.validateModelsCompatibility(i,r);s?this.state.set({type:"invalid",payload:{error:s}}):(this.applySettings(),this.context.callbacks.createInvoice=this.createInvoice?o=>this.createInvoice(o):void 0,this.context.callbacks.makePayment=this.makePayment?o=>this.makePayment(o):void 0,this.context.data.settings()?.requiredFieldsBehavior?.markAsInvalidUntilCorrect?this.context.updateCanShowError(!0):this.context.updateCanShowError(!1),t&&this.context.data.userProvidedInfo.set({}),this.state.set({type:"correct",payload:{}}))}applySettings(){const t=this.context.data.settings(),r=t.components,i=this.context.componentsStates;(!t.availableCardBrands.length||!r.some(s=>"available-card-brands"===s))&&i.availableCardBrands.update(s=>({...s,enabled:!1,isRequired:!1})),(!t.chargeTerms?.checkboxes?.length&&!t.chargeTerms?.text||!r.some(s=>"charge-terms"===s))&&i.chargeTerms.update(s=>({...s,enabled:!1,isRequired:!1})),(!t.userPreferences?.checkboxes?.length&&!t.userPreferences?.text||!r.some(s=>"user-preferences"===s))&&i.userPreferences.update(s=>({...s,enabled:!1,isRequired:!1})),r.some(s=>"phone-number"===s)||i.additionalForm.update(s=>({...s,enabled:!1,isRequired:!1})),(!t.merchantInfo?.text&&!t.merchantInfo?.links?.length||!r.some(s=>"merchant-info"===s))&&i.merchantInfo.update(s=>({...s,enabled:!1,isRequired:!1})),r.some(s=>"apm-list"===s)||i.apmList.update(s=>({...s,enabled:!1,isRequired:!1})),r.some(s=>"requisites"===s)||i.cardForm.update(s=>({...s,enabled:!1,isRequired:!1})),r.some(s=>"card-list"===s)||i.cardList.update(s=>({...s,enabled:!1,isRequired:!1})),r.some(s=>"pay-button"===s)||i.payButton.update(s=>({...s,enabled:!1,isRequired:!1})),(!t.availableCardBrands.length||!r.some(s=>"protected-by"===s))&&i.protectedBy.update(s=>({...s,enabled:!1,isRequired:!1})),r.some(s=>"master"===s)?(i.chargeTerms.update(s=>({...s,enabled:!1,isRequired:!1})),i.userPreferences.update(s=>({...s,enabled:!1,isRequired:!1}))):i.master.update(s=>({...s,enabled:!1,isRequired:!1})),this.context.events.analytics.emitEnabled=t.events.analytics.required,this.context.events.analytics.optionalEmitEnabled=t.events.analytics.optional,this.context.events.error.emitEnabled=t.events.error,t.apmsCollapse&&this.sessionStorage.getOrSetItemSignal(pn.keys.apmsCollapse,!0)}static#e=this.\u0275fac=function(r){return new(r||e)(v(xe),v(WA),v(Qd),v(vc))};static#t=this.\u0275cmp=Me({type:e,selectors:[["moto-payment-form"]],inputs:{payment:"payment",settings:"settings",createInvoice:"createInvoice",makePayment:"makePayment"},outputs:{closeEvent:"close",paidEvent:"paid",analyticsEvent:"analyticsTracked",error:"error"},features:[tr],decls:10,vars:2,consts:[[1,"__ndb-wrapper"],[1,"__ndb-wrapper-content"],[1,"__ndb-wrapper-content-main"]],template:function(r,i){if(1&r&&(S(0,"div",0)(1,"div",1),ee(2,Q9,1,0,"moto-header"),S(3,"div",2),ee(4,X9,1,0,"moto-pay-form")(5,J9,1,0,"moto-invalid-pay-form")(6,eq,1,0,"moto-processing")(7,tq,1,0,"moto-result")(8,nq,1,0,"moto-confirmation")(9,rq,0,0),T()()()),2&r){let s,o;C(2),ie(null===(s=null==(s=i.settingsSignal())?null:s.isHeaderVisible)||void 0===s||s?2:-1),C(2),ie("correct"===(o=i.state().type)?4:"invalid"===o?5:"payLoading"===o?6:"result"===o?7:"confirmation"===o?8:"empty"===o?9:-1)}},dependencies:[ZA,N9,k9,P9,$9,K9],styles:["[_ngcontent-%COMP%]:root{--ndb-button-bg: #2c8ee8;--ndb-button-disabled-bg: rgba(201, 204, 216, .3);--ndb-button-hover-bg: #1467b4;--ndb-button-color: #fff;--ndb-card-border-color: #c9ccd8}.__ndb-wrapper[_ngcontent-%COMP%]{max-width:560px;width:100%;margin:0 auto;transition:max-width .3s cubic-bezier(.25,.1,.25,1)}@media (max-width: 768px){.__ndb-wrapper[_ngcontent-%COMP%]{max-width:318px}}.__ndb-wrapper-content[_ngcontent-%COMP%]{margin:0 auto;position:relative;border:1px solid #c9ccd8;box-shadow:inset 0 -1px #29304d1a;border-radius:4px}.__ndb-wrapper-content-main[_ngcontent-%COMP%]{padding:28px;gap:40px;flex-direction:column;display:flex}"],changeDetection:0})}return e})(),QA=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=bt({type:e});static#n=this.\u0275inj=ft({})}return e})();function XA(e){return new E(3e3,!1)}function Ti(e){switch(e.length){case 0:return new pc;case 1:return e[0];default:return new jM(e)}}function JA(e,n,t=new Map,r=new Map){const i=[],s=[];let o=-1,a=null;if(n.forEach(c=>{const l=c.get("offset"),u=l==o,d=u&&a||new Map;c.forEach((f,h)=>{let p=h,m=f;if("offset"!==h)switch(p=e.normalizePropertyName(p,i),m){case"!":m=t.get(h);break;case Kr:m=r.get(h);break;default:m=e.normalizeStyleValue(h,p,m,i)}d.set(p,m)}),u||s.push(d),a=d,o=l}),i.length)throw function Mq(){return new E(3502,!1)}();return s}function Gy(e,n,t,r){switch(n){case"start":e.onStart(()=>r(t&&zy(t,"start",e)));break;case"done":e.onDone(()=>r(t&&zy(t,"done",e)));break;case"destroy":e.onDestroy(()=>r(t&&zy(t,"destroy",e)))}}function zy(e,n,t){const s=qy(e.element,e.triggerName,e.fromState,e.toState,n||e.phaseName,t.totalTime??e.totalTime,!!t.disabled),o=e._data;return null!=o&&(s._data=o),s}function qy(e,n,t,r,i="",s=0,o){return{element:e,triggerName:n,fromState:t,toState:r,phaseName:i,totalTime:s,disabled:!!o}}function kn(e,n,t){let r=e.get(n);return r||e.set(n,r=t),r}function e1(e){const n=e.indexOf(":");return[e.substring(1,n),e.slice(n+1)]}const Bq=typeof document>"u"?null:document.documentElement;function Wy(e){const n=e.parentNode||e.host||null;return n===Bq?null:n}let hs=null,t1=!1;function n1(e,n){for(;n;){if(n===e)return!0;n=Wy(n)}return!1}function r1(e,n,t){if(t)return Array.from(e.querySelectorAll(n));const r=e.querySelector(n);return r?[r]:[]}let Zy=(()=>{class e{validateStyleProperty(t){return function Hq(e){hs||(hs=function Uq(){return typeof document<"u"?document.body:null}()||{},t1=!!hs.style&&"WebkitAppearance"in hs.style);let n=!0;return hs.style&&!function jq(e){return"ebkit"==e.substring(1,6)}(e)&&(n=e in hs.style,!n&&t1&&(n="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in hs.style)),n}(t)}containsElement(t,r){return n1(t,r)}getParentElement(t){return Wy(t)}query(t,r,i){return r1(t,r,i)}computeStyle(t,r,i){return i||""}animate(t,r,i,s,o,a=[],c){return new pc(i,s)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})();class Yy{static#e=this.NOOP=new Zy}class Ky{}const Gq=1e3,Qy="ng-enter",Xd="ng-leave",Jd="ng-trigger",ef=".ng-trigger",s1="ng-animating",Xy=".ng-animating";function ti(e){if("number"==typeof e)return e;const n=e.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:Jy(parseFloat(n[1]),n[2])}function Jy(e,n){return"s"===n?e*Gq:e}function tf(e,n,t){return e.hasOwnProperty("duration")?e:function qq(e,n,t){let i,s=0,o="";if("string"==typeof e){const a=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return n.push(XA()),{duration:0,delay:0,easing:""};i=Jy(parseFloat(a[1]),a[2]);const c=a[3];null!=c&&(s=Jy(parseFloat(c),a[4]));const l=a[5];l&&(o=l)}else i=e;if(!t){let a=!1,c=n.length;i<0&&(n.push(function sq(){return new E(3100,!1)}()),a=!0),s<0&&(n.push(function oq(){return new E(3101,!1)}()),a=!0),a&&n.splice(c,0,XA())}return{duration:i,delay:s,easing:o}}(e,n,t)}function Or(e,n,t){n.forEach((r,i)=>{const s=t_(i);t&&!t.has(i)&&t.set(i,e.style[s]),e.style[s]=r})}function ps(e,n){n.forEach((t,r)=>{const i=t_(r);e.style[i]=""})}function xc(e){return Array.isArray(e)?1==e.length?e[0]:function N5(e,n=null){return{type:Q.Sequence,steps:e,options:n}}(e):e}const e_=new RegExp("{{\\s*(.+?)\\s*}}","g");function a1(e){let n=[];if("string"==typeof e){let t;for(;t=e_.exec(e);)n.push(t[1]);e_.lastIndex=0}return n}function Nc(e,n,t){const r=`${e}`,i=r.replace(e_,(s,o)=>{let a=n[o];return null==a&&(t.push(function cq(){return new E(3003,!1)}()),a=""),a.toString()});return i==r?e:i}const Yq=/-+([a-z0-9])/g;function t_(e){return e.replace(Yq,(...n)=>n[1].toUpperCase())}function Pn(e,n,t){switch(n.type){case Q.Trigger:return e.visitTrigger(n,t);case Q.State:return e.visitState(n,t);case Q.Transition:return e.visitTransition(n,t);case Q.Sequence:return e.visitSequence(n,t);case Q.Group:return e.visitGroup(n,t);case Q.Animate:return e.visitAnimate(n,t);case Q.Keyframes:return e.visitKeyframes(n,t);case Q.Style:return e.visitStyle(n,t);case Q.Reference:return e.visitReference(n,t);case Q.AnimateChild:return e.visitAnimateChild(n,t);case Q.AnimateRef:return e.visitAnimateRef(n,t);case Q.Query:return e.visitQuery(n,t);case Q.Stagger:return e.visitStagger(n,t);default:throw function lq(){return new E(3004,!1)}()}}function n_(e,n){return window.getComputedStyle(e)[n]}const Xq=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class c1 extends Ky{normalizePropertyName(n,t){return t_(n)}normalizeStyleValue(n,t,r,i){let s="";const o=r.toString().trim();if(Xq.has(t)&&0!==r&&"0"!==r)if("number"==typeof r)s="px";else{const a=r.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push(function uq(){return new E(3005,!1)}())}return o+s}}const nf="*";const rf=new Set(["true","1"]),sf=new Set(["false","0"]);function l1(e,n){const t=rf.has(e)||sf.has(e),r=rf.has(n)||sf.has(n);return(i,s)=>{let o=e==nf||e==i,a=n==nf||n==s;return!o&&t&&"boolean"==typeof i&&(o=i?rf.has(e):sf.has(e)),!a&&r&&"boolean"==typeof s&&(a=s?rf.has(n):sf.has(n)),o&&a}}const nW=new RegExp("s*:selfs*,?","g");function r_(e,n,t,r){return new rW(e).build(n,t,r)}class rW{constructor(n){this._driver=n}build(n,t,r){const i=new oW(t);return this._resetContextStyleTimingState(i),Pn(this,xc(n),i)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,t){let r=t.queryCount=0,i=t.depCount=0;const s=[],o=[];return"@"==n.name.charAt(0)&&t.errors.push(function dq(){return new E(3006,!1)}()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==Q.State){const c=a,l=c.name;l.toString().split(/\s*,\s*/).forEach(u=>{c.name=u,s.push(this.visitState(c,t))}),c.name=l}else if(a.type==Q.Transition){const c=this.visitTransition(a,t);r+=c.queryCount,i+=c.depCount,o.push(c)}else t.errors.push(function fq(){return new E(3007,!1)}())}),{type:Q.Trigger,name:n.name,states:s,transitions:o,queryCount:r,depCount:i,options:null}}visitState(n,t){const r=this.visitStyle(n.styles,t),i=n.options&&n.options.params||null;if(r.containsDynamicStyles){const s=new Set,o=i||{};r.styles.forEach(a=>{a instanceof Map&&a.forEach(c=>{a1(c).forEach(l=>{o.hasOwnProperty(l)||s.add(l)})})}),s.size&&t.errors.push(function hq(){return new E(3008,!1)}(0,s.values()))}return{type:Q.State,name:n.name,style:r,options:i?{params:i}:null}}visitTransition(n,t){t.queryCount=0,t.depCount=0;const r=Pn(this,xc(n.animation),t),i=function Jq(e,n){const t=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(r=>function eW(e,n,t){if(":"==e[0]){const c=function tW(e,n){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,r)=>parseFloat(r)>parseFloat(t);case":decrement":return(t,r)=>parseFloat(r)<parseFloat(t);default:return n.push(function wq(){return new E(3016,!1)}()),"* => *"}}(e,t);if("function"==typeof c)return void n.push(c);e=c}const r=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return t.push(function Eq(){return new E(3015,!1)}()),n;const i=r[1],s=r[2],o=r[3];n.push(l1(i,o)),"<"==s[0]&&(i!=nf||o!=nf)&&n.push(l1(o,i))}(r,t,n)):t.push(e),t}(n.expr,t.errors);return{type:Q.Transition,matchers:i,animation:r,queryCount:t.queryCount,depCount:t.depCount,options:ms(n.options)}}visitSequence(n,t){return{type:Q.Sequence,steps:n.steps.map(r=>Pn(this,r,t)),options:ms(n.options)}}visitGroup(n,t){const r=t.currentTime;let i=0;const s=n.steps.map(o=>{t.currentTime=r;const a=Pn(this,o,t);return i=Math.max(i,t.currentTime),a});return t.currentTime=i,{type:Q.Group,steps:s,options:ms(n.options)}}visitAnimate(n,t){const r=function cW(e,n){if(e.hasOwnProperty("duration"))return e;if("number"==typeof e)return i_(tf(e,n).duration,0,"");const t=e;if(t.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=i_(0,0,"");return s.dynamic=!0,s.strValue=t,s}const i=tf(t,n);return i_(i.duration,i.delay,i.easing)}(n.timings,t.errors);t.currentAnimateTimings=r;let i,s=n.styles?n.styles:Je({});if(s.type==Q.Keyframes)i=this.visitKeyframes(s,t);else{let o=n.styles,a=!1;if(!o){a=!0;const l={};r.easing&&(l.easing=r.easing),o=Je(l)}t.currentTime+=r.duration+r.delay;const c=this.visitStyle(o,t);c.isEmptyStep=a,i=c}return t.currentAnimateTimings=null,{type:Q.Animate,timings:r,style:i,options:null}}visitStyle(n,t){const r=this._makeStyleAst(n,t);return this._validateStyleAst(r,t),r}_makeStyleAst(n,t){const r=[],i=Array.isArray(n.styles)?n.styles:[n.styles];for(let a of i)"string"==typeof a?a===Kr?r.push(a):t.errors.push(new E(3002,!1)):r.push(new Map(Object.entries(a)));let s=!1,o=null;return r.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!s))for(let c of a.values())if(c.toString().indexOf("{{")>=0){s=!0;break}}),{type:Q.Style,styles:r,easing:o,offset:n.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(n,t){const r=t.currentAnimateTimings;let i=t.currentTime,s=t.currentTime;r&&s>0&&(s-=r.duration+r.delay),n.styles.forEach(o=>{"string"!=typeof o&&o.forEach((a,c)=>{const l=t.collectedStyles.get(t.currentQuerySelector),u=l.get(c);let d=!0;u&&(s!=i&&s>=u.startTime&&i<=u.endTime&&(t.errors.push(function mq(){return new E(3010,!1)}()),d=!1),s=u.startTime),d&&l.set(c,{startTime:s,endTime:i}),t.options&&function Zq(e,n,t){const r=n.params||{},i=a1(e);i.length&&i.forEach(s=>{r.hasOwnProperty(s)||t.push(function aq(){return new E(3001,!1)}())})}(a,t.options,t.errors)})})}visitKeyframes(n,t){const r={type:Q.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function gq(){return new E(3011,!1)}()),r;let s=0;const o=[];let a=!1,c=!1,l=0;const u=n.steps.map(_=>{const y=this._makeStyleAst(_,t);let w=null!=y.offset?y.offset:function aW(e){if("string"==typeof e)return null;let n=null;if(Array.isArray(e))e.forEach(t=>{if(t instanceof Map&&t.has("offset")){const r=t;n=parseFloat(r.get("offset")),r.delete("offset")}});else if(e instanceof Map&&e.has("offset")){const t=e;n=parseFloat(t.get("offset")),t.delete("offset")}return n}(y.styles),D=0;return null!=w&&(s++,D=y.offset=w),c=c||D<0||D>1,a=a||D<l,l=D,o.push(D),y});c&&t.errors.push(function yq(){return new E(3012,!1)}()),a&&t.errors.push(function _q(){return new E(3200,!1)}());const d=n.steps.length;let f=0;s>0&&s<d?t.errors.push(function vq(){return new E(3202,!1)}()):0==s&&(f=1/(d-1));const h=d-1,p=t.currentTime,m=t.currentAnimateTimings,g=m.duration;return u.forEach((_,y)=>{const w=f>0?y==h?1:f*y:o[y],D=w*g;t.currentTime=p+m.delay+D,m.duration=D,this._validateStyleAst(_,t),_.offset=w,r.styles.push(_)}),r}visitReference(n,t){return{type:Q.Reference,animation:Pn(this,xc(n.animation),t),options:ms(n.options)}}visitAnimateChild(n,t){return t.depCount++,{type:Q.AnimateChild,options:ms(n.options)}}visitAnimateRef(n,t){return{type:Q.AnimateRef,animation:this.visitReference(n.animation,t),options:ms(n.options)}}visitQuery(n,t){const r=t.currentQuerySelector,i=n.options||{};t.queryCount++,t.currentQuery=n;const[s,o]=function iW(e){const n=!!e.split(/\s*,\s*/).find(t=>":self"==t);return n&&(e=e.replace(nW,"")),e=e.replace(/@\*/g,ef).replace(/@\w+/g,t=>ef+"-"+t.slice(1)).replace(/:animating/g,Xy),[e,n]}(n.selector);t.currentQuerySelector=r.length?r+" "+s:s,kn(t.collectedStyles,t.currentQuerySelector,new Map);const a=Pn(this,xc(n.animation),t);return t.currentQuery=null,t.currentQuerySelector=r,{type:Q.Query,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:o,animation:a,originalSelector:n.selector,options:ms(n.options)}}visitStagger(n,t){t.currentQuery||t.errors.push(function Cq(){return new E(3013,!1)}());const r="full"===n.timings?{duration:0,delay:0,easing:"full"}:tf(n.timings,t.errors,!0);return{type:Q.Stagger,animation:Pn(this,xc(n.animation),t),timings:r,options:null}}}class oW{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function ms(e){return e?(e={...e}).params&&(e.params=function sW(e){return e?{...e}:null}(e.params)):e={},e}function i_(e,n,t){return{duration:e,delay:n,easing:t}}function s_(e,n,t,r,i,s,o=null,a=!1){return{type:1,element:e,keyframes:n,preStyleProps:t,postStyleProps:r,duration:i,delay:s,totalTime:i+s,easing:o,subTimeline:a}}class af{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,t){let r=this._map.get(n);r||this._map.set(n,r=[]),r.push(...t)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const dW=new RegExp(":enter","g"),hW=new RegExp(":leave","g");function o_(e,n,t,r,i,s=new Map,o=new Map,a,c,l=[]){return(new pW).buildKeyframes(e,n,t,r,i,s,o,a,c,l)}class pW{buildKeyframes(n,t,r,i,s,o,a,c,l,u=[]){l=l||new af;const d=new a_(n,t,l,i,s,u,[]);d.options=c;const f=c.delay?ti(c.delay):0;d.currentTimeline.delayNextStep(f),d.currentTimeline.setStyles([o],null,d.errors,c),Pn(this,r,d);const h=d.timelines.filter(p=>p.containsAnimation());if(h.length&&a.size){let p;for(let m=h.length-1;m>=0;m--){const g=h[m];if(g.element===t){p=g;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,d.errors,c)}return h.length?h.map(p=>p.buildKeyframes()):[s_(t,[],[],[],0,f,"",!1)]}visitTrigger(n,t){}visitState(n,t){}visitTransition(n,t){}visitAnimateChild(n,t){const r=t.subInstructions.get(t.element);if(r){const i=t.createSubContext(n.options),s=t.currentTimeline.currentTime,o=this._visitSubInstructions(r,i,i.options);s!=o&&t.transformIntoNewTimeline(o)}t.previousNode=n}visitAnimateRef(n,t){const r=t.createSubContext(n.options);r.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],t,r),this.visitReference(n.animation,r),t.transformIntoNewTimeline(r.currentTimeline.currentTime),t.previousNode=n}_applyAnimationRefDelays(n,t,r){for(const i of n){const s=i?.delay;if(s){const o="number"==typeof s?s:ti(Nc(s,i?.params??{},t.errors));r.delayNextStep(o)}}}_visitSubInstructions(n,t,r){let s=t.currentTimeline.currentTime;const o=null!=r.duration?ti(r.duration):null,a=null!=r.delay?ti(r.delay):null;return 0!==o&&n.forEach(c=>{const l=t.appendInstructionToTimeline(c,o,a);s=Math.max(s,l.duration+l.delay)}),s}visitReference(n,t){t.updateOptions(n.options,!0),Pn(this,n.animation,t),t.previousNode=n}visitSequence(n,t){const r=t.subContextCount;let i=t;const s=n.options;if(s&&(s.params||s.delay)&&(i=t.createSubContext(s),i.transformIntoNewTimeline(),null!=s.delay)){i.previousNode.type==Q.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=cf);const o=ti(s.delay);i.delayNextStep(o)}n.steps.length&&(n.steps.forEach(o=>Pn(this,o,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),t.previousNode=n}visitGroup(n,t){const r=[];let i=t.currentTimeline.currentTime;const s=n.options&&n.options.delay?ti(n.options.delay):0;n.steps.forEach(o=>{const a=t.createSubContext(n.options);s&&a.delayNextStep(s),Pn(this,o,a),i=Math.max(i,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(i),t.previousNode=n}_visitTiming(n,t){if(n.dynamic){const r=n.strValue;return tf(t.params?Nc(r,t.params,t.errors):r,t.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,t){const r=t.currentAnimateTimings=this._visitTiming(n.timings,t),i=t.currentTimeline;r.delay&&(t.incrementTime(r.delay),i.snapshotCurrentStyles());const s=n.style;s.type==Q.Keyframes?this.visitKeyframes(s,t):(t.incrementTime(r.duration),this.visitStyle(s,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=n}visitStyle(n,t){const r=t.currentTimeline,i=t.currentAnimateTimings;!i&&r.hasCurrentStyleProperties()&&r.forwardFrame();const s=i&&i.easing||n.easing;n.isEmptyStep?r.applyEmptyStep(s):r.setStyles(n.styles,s,t.errors,t.options),t.previousNode=n}visitKeyframes(n,t){const r=t.currentAnimateTimings,i=t.currentTimeline.duration,s=r.duration,a=t.createSubContext().currentTimeline;a.easing=r.easing,n.styles.forEach(c=>{a.forwardTime((c.offset||0)*s),a.setStyles(c.styles,c.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(i+s),t.previousNode=n}visitQuery(n,t){const r=t.currentTimeline.currentTime,i=n.options||{},s=i.delay?ti(i.delay):0;s&&(t.previousNode.type===Q.Style||0==r&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=cf);let o=r;const a=t.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=a.length;let c=null;a.forEach((l,u)=>{t.currentQueryIndex=u;const d=t.createSubContext(n.options,l);s&&d.delayNextStep(s),l===t.element&&(c=d.currentTimeline),Pn(this,n.animation,d),d.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,d.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),c&&(t.currentTimeline.mergeTimelineCollectedStyles(c),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=n}visitStagger(n,t){const r=t.parentContext,i=t.currentTimeline,s=n.timings,o=Math.abs(s.duration),a=o*(t.currentQueryTotal-1);let c=o*t.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":c=a-c;break;case"full":c=r.currentStaggerTime}const u=t.currentTimeline;c&&u.delayNextStep(c);const d=u.currentTime;Pn(this,n.animation,t),t.previousNode=n,r.currentStaggerTime=i.currentTime-d+(i.startTime-r.currentTimeline.startTime)}}const cf={};class a_{constructor(n,t,r,i,s,o,a,c){this._driver=n,this.element=t,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=cf,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new lf(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,t){if(!n)return;const r=n;let i=this.options;null!=r.duration&&(i.duration=ti(r.duration)),null!=r.delay&&(i.delay=ti(r.delay));const s=r.params;if(s){let o=i.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=Nc(s[a],o,this.errors))})}}_copyOptions(){const n={};if(this.options){const t=this.options.params;if(t){const r=n.params={};Object.keys(t).forEach(i=>{r[i]=t[i]})}}return n}createSubContext(n=null,t,r){const i=t||this.element,s=new a_(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(n),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(n){return this.previousNode=cf,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,t,r){const i={duration:t??n.duration,delay:this.currentTimeline.currentTime+(r??0)+n.delay,easing:""},s=new mW(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,i,n.stretchStartingKeyframe);return this.timelines.push(s),i}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,t,r,i,s,o){let a=[];if(i&&a.push(this.element),n.length>0){n=(n=n.replace(dW,"."+this._enterClassName)).replace(hW,"."+this._leaveClassName);let l=this._driver.query(this.element,n,1!=r);0!==r&&(l=r<0?l.slice(l.length+r,l.length):l.slice(0,r)),a.push(...l)}return!s&&0==a.length&&o.push(function bq(){return new E(3014,!1)}()),a}}class lf{constructor(n,t,r,i){this._driver=n,this.element=t,this.startTime=r,this._elementTimelineStylesLookup=i,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const t=1===this._keyframes.size&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+n),t&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,t){return this.applyStylesToKeyframe(),new lf(this._driver,n,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,t){this._localTimelineStyles.set(n,t),this._globalTimelineStyles.set(n,t),this._styleSummary.set(n,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[t,r]of this._globalTimelineStyles)this._backFill.set(t,r||Kr),this._currentKeyframe.set(t,Kr);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,t,r,i){t&&this._previousKeyframe.set("easing",t);const s=i&&i.params||{},o=function gW(e,n){const t=new Map;let r;return e.forEach(i=>{if("*"===i){r??=n.keys();for(let s of r)t.set(s,Kr)}else for(let[s,o]of i)t.set(s,o)}),t}(n,this._globalTimelineStyles);for(let[a,c]of o){const l=Nc(c,s,r);this._pendingStyles.set(a,l),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Kr),this._updateStyle(a,l)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,t)=>{this._currentKeyframe.set(t,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,n)}))}snapshotCurrentStyles(){for(let[n,t]of this._localTimelineStyles)this._pendingStyles.set(n,t),this._updateStyle(n,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let t in this._currentKeyframe)n.push(t);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((t,r)=>{const i=this._styleSummary.get(r);(!i||t.time>i.time)&&this._updateStyle(r,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,t=new Set,r=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((a,c)=>{const l=new Map([...this._backFill,...a]);l.forEach((u,d)=>{"!"===u?n.add(d):u===Kr&&t.add(d)}),r||l.set("offset",c/this.duration),i.push(l)});const s=[...n.values()],o=[...t.values()];if(r){const a=i[0],c=new Map(a);a.set("offset",0),c.set("offset",1),i=[a,c]}return s_(this.element,i,s,o,this.duration,this.startTime,this.easing,!1)}}class mW extends lf{constructor(n,t,r,i,s,o,a=!1){super(n,t,o.delay),this.keyframes=r,this.preStyleProps=i,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:t,duration:r,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){const s=[],o=r+t,a=t/o,c=new Map(n[0]);c.set("offset",0),s.push(c);const l=new Map(n[0]);l.set("offset",f1(a)),s.push(l);const u=n.length-1;for(let d=1;d<=u;d++){let f=new Map(n[d]);const h=f.get("offset");f.set("offset",f1((t+h*r)/o)),s.push(f)}r=o,t=0,i="",n=s}return s_(this.element,n,this.preStyleProps,this.postStyleProps,r,t,i,!0)}}function f1(e,n=3){const t=Math.pow(10,n-1);return Math.round(e*t)/t}function h1(e,n,t,r,i,s,o,a,c,l,u,d,f){return{type:0,element:e,triggerName:n,isRemovalTransition:i,fromState:t,fromStyles:s,toState:r,toStyles:o,timelines:a,queriedElements:c,preStyleProps:l,postStyleProps:u,totalTime:d,errors:f}}const c_={};class p1{constructor(n,t,r){this._triggerName=n,this.ast=t,this._stateStyles=r}match(n,t,r,i){return function yW(e,n,t,r,i){return e.some(s=>s(n,t,r,i))}(this.ast.matchers,n,t,r,i)}buildStyles(n,t,r){let i=this._stateStyles.get("*");return void 0!==n&&(i=this._stateStyles.get(n?.toString())||i),i?i.buildStyles(t,r):new Map}build(n,t,r,i,s,o,a,c,l,u){const d=[],f=this.ast.options&&this.ast.options.params||c_,p=this.buildStyles(r,a&&a.params||c_,d),m=c&&c.params||c_,g=this.buildStyles(i,m,d),_=new Set,y=new Map,w=new Map,D="void"===i,M={params:m1(m,f),delay:this.ast.options?.delay},F=u?[]:o_(n,t,this.ast.animation,s,o,p,g,M,l,d);let j=0;return F.forEach(L=>{j=Math.max(L.duration+L.delay,j)}),d.length?h1(t,this._triggerName,r,i,D,p,g,[],[],y,w,j,d):(F.forEach(L=>{const Ye=L.element,et=kn(y,Ye,new Set);L.preStyleProps.forEach(nn=>et.add(nn));const ct=kn(w,Ye,new Set);L.postStyleProps.forEach(nn=>ct.add(nn)),Ye!==t&&_.add(Ye)}),h1(t,this._triggerName,r,i,D,p,g,F,[..._.values()],y,w,j))}}function m1(e,n){const t={...n};return Object.entries(e).forEach(([r,i])=>{null!=i&&(t[r]=i)}),t}class _W{constructor(n,t,r){this.styles=n,this.defaultParams=t,this.normalizer=r}buildStyles(n,t){const r=new Map,i=m1(n,this.defaultParams);return this.styles.styles.forEach(s=>{"string"!=typeof s&&s.forEach((o,a)=>{o&&(o=Nc(o,i,t));const c=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,c,o,t),r.set(a,o)})}),r}}class CW{constructor(n,t,r){this.name=n,this.ast=t,this._normalizer=r,this.transitionFactories=[],this.states=new Map,t.states.forEach(i=>{this.states.set(i.name,new _W(i.style,i.options&&i.options.params||{},r))}),g1(this.states,"true","1"),g1(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new p1(n,i,this.states))}),this.fallbackTransition=function bW(e,n){return new p1(e,{type:Q.Transition,animation:{type:Q.Sequence,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,t,r,i){return this.transitionFactories.find(o=>o.match(n,t,r,i))||null}matchStyles(n,t,r){return this.fallbackTransition.buildStyles(n,t,r)}}function g1(e,n,t){e.has(n)?e.has(t)||e.set(t,e.get(n)):e.has(t)&&e.set(n,e.get(t))}const EW=new af;class wW{constructor(n,t,r){this.bodyNode=n,this._driver=t,this._normalizer=r,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,t){const r=[],s=r_(this._driver,t,r,[]);if(r.length)throw function Iq(){return new E(3503,!1)}();this._animations.set(n,s)}_buildPlayer(n,t,r){const i=n.element,s=JA(this._normalizer,n.keyframes,t,r);return this._driver.animate(i,s,n.duration,n.delay,n.easing,[],!0)}create(n,t,r={}){const i=[],s=this._animations.get(n);let o;const a=new Map;if(s?(o=o_(this._driver,t,s,Qy,Xd,new Map,new Map,r,EW,i),o.forEach(u=>{const d=kn(a,u.element,new Map);u.postStyleProps.forEach(f=>d.set(f,null))})):(i.push(function Aq(){return new E(3300,!1)}()),o=[]),i.length)throw function xq(){return new E(3504,!1)}();a.forEach((u,d)=>{u.forEach((f,h)=>{u.set(h,this._driver.computeStyle(d,h,Kr))})});const l=Ti(o.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(n,l),l.onDestroy(()=>this.destroy(n)),this.players.push(l),l}destroy(n){const t=this._getPlayer(n);t.destroy(),this._playersById.delete(n);const r=this.players.indexOf(t);r>=0&&this.players.splice(r,1)}_getPlayer(n){const t=this._playersById.get(n);if(!t)throw function Nq(){return new E(3301,!1)}();return t}listen(n,t,r,i){const s=qy(t,"","","");return Gy(this._getPlayer(n),r,s,i),()=>{}}command(n,t,r,i){if("register"==r)return void this.register(n,i[0]);if("create"==r)return void this.create(n,t,i[0]||{});const s=this._getPlayer(n);switch(r){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(n)}}}const y1="ng-animate-queued",l_="ng-animate-disabled",IW=[],_1={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},AW={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},gr="__ng_removed";class u_{get params(){return this.options.params}constructor(n,t=""){this.namespaceId=t;const r=n&&n.hasOwnProperty("value");if(this.value=function PW(e){return e??null}(r?n.value:n),r){const{value:s,...o}=n;this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){const t=n.params;if(t){const r=this.options.params;Object.keys(t).forEach(i=>{null==r[i]&&(r[i]=t[i])})}}}const kc="void",d_=new u_(kc);class xW{constructor(n,t,r){this.id=n,this.hostElement=t,this._engine=r,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,qn(t,this._hostClassName)}listen(n,t,r,i){if(!this._triggers.has(t))throw function kq(){return new E(3302,!1)}();if(null==r||0==r.length)throw function Pq(){return new E(3303,!1)}();if(!function OW(e){return"start"==e||"done"==e}(r))throw function Oq(){return new E(3400,!1)}();const s=kn(this._elementListeners,n,[]),o={name:t,phase:r,callback:i};s.push(o);const a=kn(this._engine.statesByElement,n,new Map);return a.has(t)||(qn(n,Jd),qn(n,Jd+"-"+t),a.set(t,d_)),()=>{this._engine.afterFlush(()=>{const c=s.indexOf(o);c>=0&&s.splice(c,1),this._triggers.has(t)||a.delete(t)})}}register(n,t){return!this._triggers.has(n)&&(this._triggers.set(n,t),!0)}_getTrigger(n){const t=this._triggers.get(n);if(!t)throw function Rq(){return new E(3401,!1)}();return t}trigger(n,t,r,i=!0){const s=this._getTrigger(t),o=new f_(this.id,t,n);let a=this._engine.statesByElement.get(n);a||(qn(n,Jd),qn(n,Jd+"-"+t),this._engine.statesByElement.set(n,a=new Map));let c=a.get(t);const l=new u_(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&c&&l.absorbOptions(c.options),a.set(t,l),c||(c=d_),l.value!==kc&&c.value===l.value){if(!function LW(e,n){const t=Object.keys(e),r=Object.keys(n);if(t.length!=r.length)return!1;for(let i=0;i<t.length;i++){const s=t[i];if(!n.hasOwnProperty(s)||e[s]!==n[s])return!1}return!0}(c.params,l.params)){const m=[],g=s.matchStyles(c.value,c.params,m),_=s.matchStyles(l.value,l.params,m);m.length?this._engine.reportError(m):this._engine.afterFlush(()=>{ps(n,g),Or(n,_)})}return}const f=kn(this._engine.playersByElement,n,[]);f.forEach(m=>{m.namespaceId==this.id&&m.triggerName==t&&m.queued&&m.destroy()});let h=s.matchTransition(c.value,l.value,n,l.params),p=!1;if(!h){if(!i)return;h=s.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:t,transition:h,fromState:c,toState:l,player:o,isFallbackTransition:p}),p||(qn(n,y1),o.onStart(()=>{Ho(n,y1)})),o.onDone(()=>{let m=this.players.indexOf(o);m>=0&&this.players.splice(m,1);const g=this._engine.playersByElement.get(n);if(g){let _=g.indexOf(o);_>=0&&g.splice(_,1)}}),this.players.push(o),f.push(o),o}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(t=>t.delete(n)),this._elementListeners.forEach((t,r)=>{this._elementListeners.set(r,t.filter(i=>i.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const t=this._engine.playersByElement.get(n);t&&(t.forEach(r=>r.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,t){const r=this._engine.driver.query(n,ef,!0);r.forEach(i=>{if(i[gr])return;const s=this._engine.fetchNamespacesByElement(i);s.size?s.forEach(o=>o.triggerLeaveAnimation(i,t,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(n,t,r,i){const s=this._engine.statesByElement.get(n),o=new Map;if(s){const a=[];if(s.forEach((c,l)=>{if(o.set(l,c.value),this._triggers.has(l)){const u=this.trigger(n,l,kc,i);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,t,o),r&&Ti(a).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const t=this._elementListeners.get(n),r=this._engine.statesByElement.get(n);if(t&&r){const i=new Set;t.forEach(s=>{const o=s.name;if(i.has(o))return;i.add(o);const c=this._triggers.get(o).fallbackTransition,l=r.get(o)||d_,u=new u_(kc),d=new f_(this.id,o,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:o,transition:c,fromState:l,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(n,t){const r=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,t),this.triggerLeaveAnimation(n,t,!0))return;let i=!1;if(r.totalAnimations){const s=r.players.length?r.playersByQueriedElement.get(n):[];if(s&&s.length)i=!0;else{let o=n;for(;o=o.parentNode;)if(r.statesByElement.get(o)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(n),i)r.markElementAsRemoved(this.id,n,!1,t);else{const s=n[gr];(!s||s===_1)&&(r.afterFlush(()=>this.clearElementCache(n)),r.destroyInnerAnimations(n),r._onRemovalComplete(n,t))}}insertNode(n,t){qn(n,this._hostClassName)}drainQueuedTransitions(n){const t=[];return this._queue.forEach(r=>{const i=r.player;if(i.destroyed)return;const s=r.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==r.triggerName){const c=qy(s,r.triggerName,r.fromState.value,r.toState.value);c._data=n,Gy(r.player,a.phase,c,a.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(r)}),this._queue=[],t.sort((r,i)=>{const s=r.transition.ast.depCount,o=i.transition.ast.depCount;return 0==s||0==o?s-o:this._engine.driver.containsElement(r.element,i.element)?1:-1})}destroy(n){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}}class NW{_onRemovalComplete(n,t){this.onRemovalComplete(n,t)}constructor(n,t,r){this.bodyNode=n,this.driver=t,this._normalizer=r,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(i,s)=>{}}get queuedPlayers(){const n=[];return this._namespaceList.forEach(t=>{t.players.forEach(r=>{r.queued&&n.push(r)})}),n}createNamespace(n,t){const r=new xW(n,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(r,t):(this.newHostElements.set(t,r),this.collectEnterElement(t)),this._namespaceLookup[n]=r}_balanceNamespaceList(n,t){const r=this._namespaceList,i=this.namespacesByHostElement;if(r.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){const c=i.get(a);if(c){const l=r.indexOf(c);r.splice(l+1,0,n),o=!0;break}a=this.driver.getParentElement(a)}o||r.unshift(n)}else r.push(n);return i.set(t,n),n}register(n,t){let r=this._namespaceLookup[n];return r||(r=this.createNamespace(n,t)),r}registerTrigger(n,t,r){let i=this._namespaceLookup[n];i&&i.register(t,r)&&this.totalAnimations++}destroy(n,t){n&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const r=this._fetchNamespace(n);this.namespacesByHostElement.delete(r.hostElement);const i=this._namespaceList.indexOf(r);i>=0&&this._namespaceList.splice(i,1),r.destroy(t),delete this._namespaceLookup[n]}))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const t=new Set,r=this.statesByElement.get(n);if(r)for(let i of r.values())if(i.namespaceId){const s=this._fetchNamespace(i.namespaceId);s&&t.add(s)}return t}trigger(n,t,r,i){if(uf(t)){const s=this._fetchNamespace(n);if(s)return s.trigger(t,r,i),!0}return!1}insertNode(n,t,r,i){if(!uf(t))return;const s=t[gr];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(n){const o=this._fetchNamespace(n);o&&o.insertNode(t,r)}i&&this.collectEnterElement(t)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,t){t?this.disabledNodes.has(n)||(this.disabledNodes.add(n),qn(n,l_)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),Ho(n,l_))}removeNode(n,t,r){if(uf(t)){const i=n?this._fetchNamespace(n):null;i?i.removeNode(t,r):this.markElementAsRemoved(n,t,!1,r);const s=this.namespacesByHostElement.get(t);s&&s.id!==n&&s.removeNode(t,r)}else this._onRemovalComplete(t,r)}markElementAsRemoved(n,t,r,i,s){this.collectedLeaveElements.push(t),t[gr]={namespaceId:n,setForRemoval:i,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:s}}listen(n,t,r,i,s){return uf(t)?this._fetchNamespace(n).listen(t,r,i,s):()=>{}}_buildInstruction(n,t,r,i,s){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,r,i,n.fromState.options,n.toState.options,t,s)}destroyInnerAnimations(n){let t=this.driver.query(n,ef,!0);t.forEach(r=>this.destroyActiveAnimationsForElement(r)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(n,Xy,!0),t.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(n){const t=this.playersByElement.get(n);t&&t.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(n){const t=this.playersByQueriedElement.get(n);t&&t.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return Ti(this.players).onDone(()=>n());n()})}processLeaveNode(n){const t=n[gr];if(t&&t.setForRemoval){if(n[gr]=_1,t.namespaceId){this.destroyInnerAnimations(n);const r=this._fetchNamespace(t.namespaceId);r&&r.clearElementCache(n)}this._onRemovalComplete(n,t.setForRemoval)}n.classList?.contains(l_)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(n=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,i)=>this._balanceNamespaceList(r,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;r<this.collectedEnterElements.length;r++)qn(this.collectedEnterElements[r],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const r=[];try{t=this._flushAnimations(r,n)}finally{for(let i=0;i<r.length;i++)r[i]()}}else for(let r=0;r<this.collectedLeaveElements.length;r++)this.processLeaveNode(this.collectedLeaveElements[r]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(r=>r()),this._flushFns=[],this._whenQuietFns.length){const r=this._whenQuietFns;this._whenQuietFns=[],t.length?Ti(t).onDone(()=>{r.forEach(i=>i())}):r.forEach(i=>i())}}reportError(n){throw function Fq(){return new E(3402,!1)}()}_flushAnimations(n,t){const r=new af,i=[],s=new Map,o=[],a=new Map,c=new Map,l=new Map,u=new Set;this.disabledNodes.forEach(O=>{u.add(O);const B=this.driver.query(O,".ng-animate-queued",!0);for(let G=0;G<B.length;G++)u.add(B[G])});const d=this.bodyNode,f=Array.from(this.statesByElement.keys()),h=b1(f,this.collectedEnterElements),p=new Map;let m=0;h.forEach((O,B)=>{const G=Qy+m++;p.set(B,G),O.forEach(le=>qn(le,G))});const g=[],_=new Set,y=new Set;for(let O=0;O<this.collectedLeaveElements.length;O++){const B=this.collectedLeaveElements[O],G=B[gr];G&&G.setForRemoval&&(g.push(B),_.add(B),G.hasAnimation?this.driver.query(B,".ng-star-inserted",!0).forEach(le=>_.add(le)):y.add(B))}const w=new Map,D=b1(f,Array.from(_));D.forEach((O,B)=>{const G=Xd+m++;w.set(B,G),O.forEach(le=>qn(le,G))}),n.push(()=>{h.forEach((O,B)=>{const G=p.get(B);O.forEach(le=>Ho(le,G))}),D.forEach((O,B)=>{const G=w.get(B);O.forEach(le=>Ho(le,G))}),g.forEach(O=>{this.processLeaveNode(O)})});const M=[],F=[];for(let O=this._namespaceList.length-1;O>=0;O--)this._namespaceList[O].drainQueuedTransitions(t).forEach(G=>{const le=G.player,vt=G.element;if(M.push(le),this.collectedEnterElements.length){const Gt=vt[gr];if(Gt&&Gt.setForMove){if(Gt.previousTriggersValues&&Gt.previousTriggersValues.has(G.triggerName)){const ys=Gt.previousTriggersValues.get(G.triggerName),Yn=this.statesByElement.get(G.element);if(Yn&&Yn.has(G.triggerName)){const hf=Yn.get(G.triggerName);hf.value=ys,Yn.set(G.triggerName,hf)}}return void le.destroy()}}const Zn=!d||!this.driver.containsElement(d,vt),rn=w.get(vt),Rr=p.get(vt),Ge=this._buildInstruction(G,r,Rr,rn,Zn);if(Ge.errors&&Ge.errors.length)return void F.push(Ge);if(Zn)return le.onStart(()=>ps(vt,Ge.fromStyles)),le.onDestroy(()=>Or(vt,Ge.toStyles)),void i.push(le);if(G.isFallbackTransition)return le.onStart(()=>ps(vt,Ge.fromStyles)),le.onDestroy(()=>Or(vt,Ge.toStyles)),void i.push(le);const ff=[];Ge.timelines.forEach(Gt=>{Gt.stretchStartingKeyframe=!0,this.disabledNodes.has(Gt.element)||ff.push(Gt)}),Ge.timelines=ff,r.append(vt,Ge.timelines),o.push({instruction:Ge,player:le,element:vt}),Ge.queriedElements.forEach(Gt=>kn(a,Gt,[]).push(le)),Ge.preStyleProps.forEach((Gt,ys)=>{if(Gt.size){let Yn=c.get(ys);Yn||c.set(ys,Yn=new Set),Gt.forEach((hf,m_)=>Yn.add(m_))}}),Ge.postStyleProps.forEach((Gt,ys)=>{let Yn=l.get(ys);Yn||l.set(ys,Yn=new Set),Gt.forEach((hf,m_)=>Yn.add(m_))})});if(F.length){const O=[];F.forEach(B=>{O.push(function Lq(){return new E(3505,!1)}())}),M.forEach(B=>B.destroy()),this.reportError(O)}const j=new Map,L=new Map;o.forEach(O=>{const B=O.element;r.has(B)&&(L.set(B,B),this._beforeAnimationBuild(O.player.namespaceId,O.instruction,j))}),i.forEach(O=>{const B=O.element;this._getPreviousPlayers(B,!1,O.namespaceId,O.triggerName,null).forEach(le=>{kn(j,B,[]).push(le),le.destroy()})});const Ye=g.filter(O=>w1(O,c,l)),et=new Map;C1(et,this.driver,y,l,Kr).forEach(O=>{w1(O,c,l)&&Ye.push(O)});const nn=new Map;h.forEach((O,B)=>{C1(nn,this.driver,new Set(O),c,"!")}),Ye.forEach(O=>{const B=et.get(O),G=nn.get(O);et.set(O,new Map([...B?.entries()??[],...G?.entries()??[]]))});const Mi=[],Wn=[],gs={};o.forEach(O=>{const{element:B,player:G,instruction:le}=O;if(r.has(B)){if(u.has(B))return G.onDestroy(()=>Or(B,le.toStyles)),G.disabled=!0,G.overrideTotalTime(le.totalTime),void i.push(G);let vt=gs;if(L.size>1){let rn=B;const Rr=[];for(;rn=rn.parentNode;){const Ge=L.get(rn);if(Ge){vt=Ge;break}Rr.push(rn)}Rr.forEach(Ge=>L.set(Ge,vt))}const Zn=this._buildAnimation(G.namespaceId,le,j,s,nn,et);if(G.setRealPlayer(Zn),vt===gs)Mi.push(G);else{const rn=this.playersByElement.get(vt);rn&&rn.length&&(G.parentPlayer=Ti(rn)),i.push(G)}}else ps(B,le.fromStyles),G.onDestroy(()=>Or(B,le.toStyles)),Wn.push(G),u.has(B)&&i.push(G)}),Wn.forEach(O=>{const B=s.get(O.element);if(B&&B.length){const G=Ti(B);O.setRealPlayer(G)}}),i.forEach(O=>{O.parentPlayer?O.syncPlayerEvents(O.parentPlayer):O.destroy()});for(let O=0;O<g.length;O++){const B=g[O],G=B[gr];if(Ho(B,Xd),G&&G.hasAnimation)continue;let le=[];if(a.size){let Zn=a.get(B);Zn&&Zn.length&&le.push(...Zn);let rn=this.driver.query(B,Xy,!0);for(let Rr=0;Rr<rn.length;Rr++){let Ge=a.get(rn[Rr]);Ge&&Ge.length&&le.push(...Ge)}}const vt=le.filter(Zn=>!Zn.destroyed);vt.length?RW(this,B,vt):this.processLeaveNode(B)}return g.length=0,Mi.forEach(O=>{this.players.push(O),O.onDone(()=>{O.destroy();const B=this.players.indexOf(O);this.players.splice(B,1)}),O.play()}),Mi}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,t,r,i,s){let o=[];if(t){const a=this.playersByQueriedElement.get(n);a&&(o=a)}else{const a=this.playersByElement.get(n);if(a){const c=!s||s==kc;a.forEach(l=>{l.queued||!c&&l.triggerName!=i||o.push(l)})}}return(r||i)&&(o=o.filter(a=>!(r&&r!=a.namespaceId||i&&i!=a.triggerName))),o}_beforeAnimationBuild(n,t,r){const s=t.element,o=t.isRemovalTransition?void 0:n,a=t.isRemovalTransition?void 0:t.triggerName;for(const c of t.timelines){const l=c.element,u=l!==s,d=kn(r,l,[]);this._getPreviousPlayers(l,u,o,a,t.toState).forEach(h=>{const p=h.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),h.destroy(),d.push(h)})}ps(s,t.fromStyles)}_buildAnimation(n,t,r,i,s,o){const a=t.triggerName,c=t.element,l=[],u=new Set,d=new Set,f=t.timelines.map(p=>{const m=p.element;u.add(m);const g=m[gr];if(g&&g.removedBeforeQueried)return new pc(p.duration,p.delay);const _=m!==c,y=function FW(e){const n=[];return E1(e,n),n}((r.get(m)||IW).map(j=>j.getRealPlayer())).filter(j=>!!j.element&&j.element===m),w=s.get(m),D=o.get(m),M=JA(this._normalizer,p.keyframes,w,D),F=this._buildPlayer(p,M,y);if(p.subTimeline&&i&&d.add(m),_){const j=new f_(n,a,m);j.setRealPlayer(F),l.push(j)}return F});l.forEach(p=>{kn(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function kW(e,n,t){let r=e.get(n);if(r){if(r.length){const i=r.indexOf(t);r.splice(i,1)}0==r.length&&e.delete(n)}return r}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>qn(p,s1));const h=Ti(f);return h.onDestroy(()=>{u.forEach(p=>Ho(p,s1)),Or(c,t.toStyles)}),d.forEach(p=>{kn(i,p,[]).push(h)}),h}_buildPlayer(n,t,r){return t.length>0?this.driver.animate(n.element,t,n.duration,n.delay,n.easing,r):new pc(n.duration,n.delay)}}class f_{constructor(n,t,r){this.namespaceId=n,this.triggerName=t,this.element=r,this._player=new pc,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((t,r)=>{t.forEach(i=>Gy(n,r,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const t=this._player;t.triggerCallback&&n.onStart(()=>t.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,t){kn(this._queuedCallbacks,n,[]).push(t)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const t=this._player;t.triggerCallback&&t.triggerCallback(n)}}function uf(e){return e&&1===e.nodeType}function v1(e,n){const t=e.style.display;return e.style.display=n??"none",t}function C1(e,n,t,r,i){const s=[];t.forEach(c=>s.push(v1(c)));const o=[];r.forEach((c,l)=>{const u=new Map;c.forEach(d=>{const f=n.computeStyle(l,d,i);u.set(d,f),(!f||0==f.length)&&(l[gr]=AW,o.push(l))}),e.set(l,u)});let a=0;return t.forEach(c=>v1(c,s[a++])),o}function b1(e,n){const t=new Map;if(e.forEach(a=>t.set(a,[])),0==n.length)return t;const i=new Set(n),s=new Map;function o(a){if(!a)return 1;let c=s.get(a);if(c)return c;const l=a.parentNode;return c=t.has(l)?l:i.has(l)?1:o(l),s.set(a,c),c}return n.forEach(a=>{const c=o(a);1!==c&&t.get(c).push(a)}),t}function qn(e,n){e.classList?.add(n)}function Ho(e,n){e.classList?.remove(n)}function RW(e,n,t){Ti(t).onDone(()=>e.processLeaveNode(n))}function E1(e,n){for(let t=0;t<e.length;t++){const r=e[t];r instanceof jM?E1(r.players,n):n.push(r)}}function w1(e,n,t){const r=t.get(e);if(!r)return!1;let i=n.get(e);return i?r.forEach(s=>i.add(s)):n.set(e,r),t.delete(e),!0}class Pc{constructor(n,t,r){this._driver=t,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(i,s)=>{},this._transitionEngine=new NW(n.body,t,r),this._timelineEngine=new wW(n.body,t,r),this._transitionEngine.onRemovalComplete=(i,s)=>this.onRemovalComplete(i,s)}registerTrigger(n,t,r,i,s){const o=n+"-"+i;let a=this._triggerCache[o];if(!a){const c=[],u=r_(this._driver,s,c,[]);if(c.length)throw function Tq(){return new E(3404,!1)}();a=function vW(e,n,t){return new CW(e,n,t)}(i,u,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,i,a)}register(n,t){this._transitionEngine.register(n,t)}destroy(n,t){this._transitionEngine.destroy(n,t)}onInsert(n,t,r,i){this._transitionEngine.insertNode(n,t,r,i)}onRemove(n,t,r){this._transitionEngine.removeNode(n,t,r)}disableAnimations(n,t){this._transitionEngine.markElementAsDisabled(n,t)}process(n,t,r,i){if("@"==r.charAt(0)){const[s,o]=e1(r);this._timelineEngine.command(s,t,o,i)}else this._transitionEngine.trigger(n,t,r,i)}listen(n,t,r,i,s){if("@"==r.charAt(0)){const[o,a]=e1(r);return this._timelineEngine.listen(o,t,a,s)}return this._transitionEngine.listen(n,t,r,i,s)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(n){this._transitionEngine.afterFlushAnimationsDone(n)}}class Oc{static#e=this.initialStylesByElement=new WeakMap;constructor(n,t,r){this._element=n,this._startStyles=t,this._endStyles=r,this._state=0;let i=Oc.initialStylesByElement.get(n);i||Oc.initialStylesByElement.set(n,i=new Map),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&Or(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Or(this._element,this._initialStyles),this._endStyles&&(Or(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Oc.initialStylesByElement.delete(this._element),this._startStyles&&(ps(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ps(this._element,this._endStyles),this._endStyles=null),Or(this._element,this._initialStyles),this._state=3)}}function h_(e){let n=null;return e.forEach((t,r)=>{(function BW(e){return"display"===e||"position"===e})(r)&&(n=n||new Map,n.set(r,t))}),n}class D1{constructor(n,t,r,i){this.element=n,this.keyframes=t,this.options=r,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map;const t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const t=[];return n.forEach(r=>{t.push(Object.fromEntries(r))}),t}_triggerWebAnimation(n,t,r){return n.animate(this._convertKeyframesToObject(t),r)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((r,i)=>{"offset"!==i&&n.set(i,this._finished?r:n_(this.element,i))}),this.currentSnapshot=n}triggerCallback(n){const t="start"===n?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}class S1{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}containsElement(n,t){return n1(n,t)}getParentElement(n){return Wy(n)}query(n,t,r){return r1(n,t,r)}computeStyle(n,t,r){return n_(n,t)}animate(n,t,r,i,s,o=[]){const c={duration:r,delay:i,fill:0==i?"both":"forwards"};s&&(c.easing=s);const l=new Map,u=o.filter(h=>h instanceof D1);(function Kq(e,n){return 0===e||0===n})(r,i)&&u.forEach(h=>{h.currentSnapshot.forEach((p,m)=>l.set(m,p))});let d=function Wq(e){return e.length?e[0]instanceof Map?e:e.map(n=>new Map(Object.entries(n))):[]}(t).map(h=>new Map(h));d=function Qq(e,n,t){if(t.size&&n.length){let r=n[0],i=[];if(t.forEach((s,o)=>{r.has(o)||i.push(o),r.set(o,s)}),i.length)for(let s=1;s<n.length;s++){let o=n[s];i.forEach(a=>o.set(a,n_(e,a)))}}return n}(n,d,l);const f=function VW(e,n){let t=null,r=null;return Array.isArray(n)&&n.length?(t=h_(n[0]),n.length>1&&(r=h_(n[n.length-1]))):n instanceof Map&&(t=h_(n)),t||r?new Oc(e,t,r):null}(n,d);return new D1(n,d,c,f)}}const T1="@.disabled";class M1{constructor(n,t,r,i){this.namespaceId=n,this.delegate=t,this.engine=r,this._onDestroy=i,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(n){this.delegate.destroyNode?.(n)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(n,t){return this.delegate.createElement(n,t)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,t){this.delegate.appendChild(n,t),this.engine.onInsert(this.namespaceId,t,n,!1)}insertBefore(n,t,r,i=!0){this.delegate.insertBefore(n,t,r),this.engine.onInsert(this.namespaceId,t,n,i)}removeChild(n,t,r){this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(n,t){return this.delegate.selectRootElement(n,t)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,t,r,i){this.delegate.setAttribute(n,t,r,i)}removeAttribute(n,t,r){this.delegate.removeAttribute(n,t,r)}addClass(n,t){this.delegate.addClass(n,t)}removeClass(n,t){this.delegate.removeClass(n,t)}setStyle(n,t,r,i){this.delegate.setStyle(n,t,r,i)}removeStyle(n,t,r){this.delegate.removeStyle(n,t,r)}setProperty(n,t,r){"@"==t.charAt(0)&&t==T1?this.disableAnimations(n,!!r):this.delegate.setProperty(n,t,r)}setValue(n,t){this.delegate.setValue(n,t)}listen(n,t,r){return this.delegate.listen(n,t,r)}disableAnimations(n,t){this.engine.disableAnimations(n,t)}}class jW extends M1{constructor(n,t,r,i,s){super(t,r,i,s),this.factory=n,this.namespaceId=t}setProperty(n,t,r){"@"==t.charAt(0)?"."==t.charAt(1)&&t==T1?this.disableAnimations(n,r=void 0===r||!!r):this.engine.process(this.namespaceId,n,t.slice(1),r):this.delegate.setProperty(n,t,r)}listen(n,t,r){if("@"==t.charAt(0)){const i=function HW(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(n);let s=t.slice(1),o="";return"@"!=s.charAt(0)&&([s,o]=function UW(e){const n=e.indexOf(".");return[e.substring(0,n),e.slice(n+1)]}(s)),this.engine.listen(this.namespaceId,i,s,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,r,a)})}return this.delegate.listen(n,t,r)}}class $W{constructor(n,t,r){this.delegate=n,this.engine=t,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(i,s)=>{s?.removeChild(null,i)}}createRenderer(n,t){const i=this.delegate.createRenderer(n,t);if(!n||!t?.data?.animation){const l=this._rendererCache;let u=l.get(i);return u||(u=new M1("",i,this.engine,()=>l.delete(i)),l.set(i,u)),u}const s=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,n);const a=l=>{Array.isArray(l)?l.forEach(a):this.engine.registerTrigger(s,o,n,l.name,l)};return t.data.animation.forEach(a),new jW(this,o,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(n,t,r){if(n>=0&&n<this._microtaskId)return void this._zone.run(()=>t(r));const i=this._animationCallbacksBuffer;0==i.length&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(s=>{const[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),i.push([t,r])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}const I1=[{provide:Ky,useFactory:function zW(){return new c1}},{provide:Pc,useClass:(()=>{class e extends Pc{constructor(t,r,i){super(t,r,i)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(r){return new(r||e)(k(Vt),k(Yy),k(Ky))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})()},{provide:ru,useFactory:function qW(e,n,t){return new $W(e,n,t)},deps:[Vg,Pc,pe]}],p_=[{provide:Yy,useFactory:()=>new S1},{provide:JC,useValue:"BrowserAnimations"},...I1],A1=[{provide:Yy,useClass:Zy},{provide:JC,useValue:"NoopAnimations"},...I1];let x1=(()=>{class e{static withConfig(t){return{ngModule:e,providers:t.disableAnimations?A1:p_}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=bt({type:e});static#n=this.\u0275inj=ft({providers:p_,imports:[ad]})}return e})();const N1={merchantCapabilities:["supports3DS"],supportedNetworks:["visa","masterCard","amex","discover"]},WW=Cf(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}),k1=new N("APPLE_PAY_SESSION_TOKEN",{factory:()=>A(Vt).defaultView.ApplePaySession});let P1=(()=>{class e{constructor(t){this.applePaySession=t}canMakePayments(){return ApplePaySession.canMakePayments()}createPaySession(t,r,i){return new nt(s=>{const o=a=>{s.error(a),console.error(a)};try{const a=new this.applePaySession(t,r),c=(l,u)=>{a.abort(),o({event:l,error:u})};a.onvalidatemerchant=function(){var l=ss(function*(u){try{const d=yield function ZW(e,n){const t="object"==typeof n;return new Promise((r,i)=>{let o,s=!1;e.subscribe({next:a=>{o=a,s=!0},error:i,complete:()=>{s?r(o):t?r(n.defaultValue):i(new WW)}})})}(i(u));a.completeMerchantValidation(d)}catch(d){c(u,d)}});return function(u){return l.apply(this,arguments)}}(),a.onpaymentmethodselected=l=>{const u={newTotal:{...r.total}};a.completePaymentMethodSelection(u)},a.onshippingmethodselected=l=>{a.completeShippingMethodSelection({})},a.onshippingcontactselected=l=>{a.completeShippingContactSelection({})},a.onpaymentauthorized=l=>{a.completePayment({status:ApplePaySession.STATUS_SUCCESS}),s.next(l),s.complete()},a.oncancel=l=>{o(l)},a.begin()}catch(a){o(a)}})}static#e=this.\u0275fac=function(r){return new(r||e)(k(k1))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})(),O1=(()=>{class e{constructor(t,r){this.nativeService=t,this.http=r}canMakePayment(){return An(this.nativeService.canMakePayments())}pay(t){const{version:r=10}=t;return this.nativeService.createPaySession(r,this.mapData(t),s=>this.validate(s,t))}validate(t,r){const{validationURL:i}=t,{merchantId:s,processingUrl:o,userToken:a}=r;return this.http.post(o,{validationUrl:i},{params:{merchantId:s},headers:a?{Authorization:a}:void 0})}mapData(t){const{total:r,countryCode:i,supportedNetworks:s=N1.supportedNetworks,merchantCapabilities:o=N1.merchantCapabilities}=t;return{countryCode:i,currencyCode:r.currency,supportedNetworks:s,merchantCapabilities:o,total:{amount:r.amount,label:r.label}}}static#e=this.\u0275fac=function(r){return new(r||e)(k(P1),k(Sd))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})();const YW=new N("APPLE_PAY_SESSION_SUPPORT_TOKEN",{factory:()=>!!A(k1)});let R1=(()=>{class e{constructor(t,r){this.doc=t,this.platformId=r,this.loadPromises=new Map}load(t){if(!function lU(e){return e===gT}(this.platformId))return Promise.resolve();if(this.loadPromises.has(t))return this.loadPromises.get(t);const r=new Promise((i,s)=>{const o=this.doc.querySelector(`script[src="${t}"]`);if(o)return o.addEventListener("load",()=>i(),{once:!0}),void o.addEventListener("error",()=>s(new Error(`Script ${t} failed to load`)),{once:!0});const a=this.doc.createElement("script");a.src=t,a.async=!0,a.onload=()=>i(),a.onerror=()=>s(new Error(`Script ${t} failed to load`)),this.doc.head.appendChild(a)});return this.loadPromises.set(t,r),r}static#e=this.\u0275fac=function(r){return new(r||e)(k(Vt),k($r))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const KW={canMakePayment:()=>An(!1),pay(e){throw new Error("not implemented")}};function QW(e){return()=>{try{return e.load("https://applepay.cdn-apple.com/jsapi/v1.3.2/apple-pay-sdk.js").catch(n=>{console.warn("Apple Pay preload failed (network or CDN issue):",n)})}catch(n){return void console.warn("Apple Pay preload threw synchronously:",n)}}}let F1=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=bt({type:e});static#n=this.\u0275inj=ft({providers:[P1,O1,{provide:Qm,deps:[R1],useFactory:QW,multi:!0},{provide:EI,deps:[YW,O1],useFactory:(t,r)=>t?r:KW}]})}return e})();function XW(e){return()=>{try{return e.load("https://pay.google.com/gp/p/js/pay.js").catch(n=>{console.warn("Google Pay preload failed (network or CDN issue):",n)})}catch(n){return void console.warn("Google Pay preload threw synchronously:",n)}}}let L1=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=bt({type:e});static#n=this.\u0275inj=ft({providers:[wI,{provide:Qm,deps:[R1],useFactory:XW,multi:!0}]})}return e})(),V1=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=bt({type:e});static#n=this.\u0275inj=ft({providers:[OA],imports:[NA.forRoot(),QA,SA,DA,Ag,ad,x1,F1,L1,NA,QA,SA,DA,Ag,ad,x1,F1,L1]})}return e})(),JW=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=bt({type:e});static#n=this.\u0275inj=ft({providers:[xe,fs,vy,yy,_y,Qd,Kd],imports:[V1]})}return e})(),e7=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=bt({type:e});static#n=this.\u0275inj=ft({providers:[my,Fo]})}return e})(),t7=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=bt({type:e});static#n=this.\u0275inj=ft({providers:[WA]})}return e})();function n7(e,n){let t=e;const r=A(xe),i=A(vc),s=r.data.settings().language,o=!!e.headers.get(No_customHeaders_skipToastr);return o&&(t=e.clone({headers:e.headers.delete(No_customHeaders_skipToastr)})),n(t).pipe(Po(a=>(o||i.error(s.notifications.error.default.text,s.notifications.error.default.title),r.events.error.emit(a),hy(()=>a))))}function r7(e,n){let t=e;const r=A(xe);if(!e.headers.get("Authorization")){const s=r.data.payment()?.userAuthToken;s&&(t=e.clone({headers:e.headers.append("Authorization",s)}))}return n(t)}let i7=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=bt({type:e});static#n=this.\u0275inj=ft({providers:[g6(y6([n7,r7]))],imports:[eG.forRoot(),JW,V1,e7,t7]})}return e})(),s7=(()=>{class e{constructor(t){this.injector=t}ngDoBootstrap(t){const{injector:r}=this,i=function c4(e,n){const t=function t4(e,n){return n.get(Ki).resolveComponentFactory(e).inputs}(e,n.injector),r=n.strategyFactory||new s4(e,n.injector),i=function e4(e){const n={};return e.forEach(({propName:t,templateName:r,transform:i})=>{n[function Y$(e){return e.replace(/[A-Z]/g,n=>`-${n.toLowerCase()}`)}(r)]=[t,i]}),n}(t);class s extends a4{static#e=this.observedAttributes=Object.keys(i);get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=r.create(this.injector||n.injector);t.forEach(({propName:c,transform:l})=>{if(!this.hasOwnProperty(c))return;const u=this[c];delete this[c],a.setInputValue(c,u,l)})}return this._ngElementStrategy}constructor(a){super(),this.injector=a}attributeChangedCallback(a,c,l,u){const[d,f]=i[a];this.ngElementStrategy.setInputValue(d,l,f)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{const c=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(c)})}}return t.forEach(({propName:o,transform:a})=>{Object.defineProperty(s.prototype,o,{get(){return this.ngElementStrategy.getInputValue(o)},set(c){this.ngElementStrategy.setInputValue(o,c,a)},configurable:!0,enumerable:!0})}),s}(iq,{injector:r});customElements.define("moto-payment-form",i)}static#e=this.\u0275fac=function(r){return new(r||e)(k(Ne))};static#t=this.\u0275mod=bt({type:e});static#n=this.\u0275inj=ft({imports:[ad,i7]})}return e})();s$().bootstrapModule(s7).catch(e=>console.log(e))},634:function(On,Ue,lt){var tt=this&&this.__assign||function(){return tt=Object.assign||function(de){for(var Le,ut=1,Rn=arguments.length;ut<Rn;ut++)for(var Fr in Le=arguments[ut])Object.prototype.hasOwnProperty.call(Le,Fr)&&(de[Fr]=Le[Fr]);return de},tt.apply(this,arguments)},ye=lt(990),ze=lt(402),we=lt(987),Qe=lt(250),q=lt(507),It={},Ke={VISA:"visa",MASTERCARD:"mastercard",AMERICAN_EXPRESS:"american-express",DINERS_CLUB:"diners-club",DISCOVER:"discover",JCB:"jcb",UNIONPAY:"unionpay",MAESTRO:"maestro",ELO:"elo",MIR:"mir",HIPER:"hiper",HIPERCARD:"hipercard"},ni=[Ke.VISA,Ke.MASTERCARD,Ke.AMERICAN_EXPRESS,Ke.DINERS_CLUB,Ke.DISCOVER,Ke.JCB,Ke.UNIONPAY,Ke.MAESTRO,Ke.ELO,Ke.MIR,Ke.HIPER,Ke.HIPERCARD],Nt=(0,q.clone)(ni);function ri(de){return It[de]||ye[de]}function _s(de,Le){void 0===Le&&(Le=!1);var ut=Nt.indexOf(de);if(!Le&&-1===ut)throw new Error('"'+de+'" is not a supported card type.');return ut}function Kn(de){var Le=[];if(!(0,we.isValidInputType)(de))return Le;if(0===de.length)return function pf(){return Nt.map(function(de){return(0,q.clone)(ri(de))})}();Nt.forEach(function(Rn){var Fr=ri(Rn);(0,ze.addMatchingCardsToResults)(de,Fr,Le)});var ut=(0,Qe.findBestMatch)(Le);return ut?[ut]:Le}Kn.getTypeInfo=function(de){return(0,q.clone)(ri(de))},Kn.removeCard=function(de){var Le=_s(de);Nt.splice(Le,1)},Kn.addCard=function(de){var Le=_s(de.type,!0);It[de.type]=de,-1===Le&&Nt.push(de.type)},Kn.updateCard=function(de,Le){var ut=It[de]||ye[de];if(!ut)throw new Error('"'.concat(de,"\" is not a recognized type. Use `addCard` instead.'"));if(Le.type&&ut.type!==Le.type)throw new Error("Cannot overwrite type parameter.");var Rn=(0,q.clone)(ut);Rn=tt(tt({},Rn),Le),It[Rn.type]=Rn},Kn.changeOrder=function(de,Le){var ut=_s(de);Nt.splice(ut,1),Nt.splice(Le,0,de)},Kn.resetModifications=function(){Nt=(0,q.clone)(ni),It={}},Kn.types=Ke,On.exports=Kn},402:(On,Ue,lt)=>{Object.defineProperty(Ue,"__esModule",{value:!0}),Ue.addMatchingCardsToResults=void 0;var tt=lt(507),ye=lt(595);Ue.addMatchingCardsToResults=function ze(we,Qe,q){var It,Ke;for(It=0;It<Qe.patterns.length;It++){var ni=Qe.patterns[It];if((0,ye.matches)(we,ni)){var Nt=(0,tt.clone)(Qe);Ke=Array.isArray(ni)?String(ni[0]).length:String(ni).length,we.length>=Ke&&(Nt.matchStrength=Ke),q.push(Nt);break}}}},990:On=>{On.exports={visa:{niceType:"Visa",type:"visa",patterns:[4],gaps:[4,8,12],lengths:[16,18,19],code:{name:"CVV",size:3}},mastercard:{niceType:"Mastercard",type:"mastercard",patterns:[[51,55],[2221,2229],[223,229],[23,26],[270,271],2720],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}},"american-express":{niceType:"American Express",type:"american-express",patterns:[34,37],gaps:[4,10],lengths:[15],code:{name:"CID",size:4}},"diners-club":{niceType:"Diners Club",type:"diners-club",patterns:[[300,305],36,38,39],gaps:[4,10],lengths:[14,16,19],code:{name:"CVV",size:3}},discover:{niceType:"Discover",type:"discover",patterns:[6011,[644,649],65],gaps:[4,8,12],lengths:[16,19],code:{name:"CID",size:3}},jcb:{niceType:"JCB",type:"jcb",patterns:[2131,1800,[3528,3589]],gaps:[4,8,12],lengths:[16,17,18,19],code:{name:"CVV",size:3}},unionpay:{niceType:"UnionPay",type:"unionpay",patterns:[620,[62100,62182],[62184,62187],[62185,62197],[62200,62205],[622010,622999],622018,[62207,62209],[623,626],6270,6272,6276,[627700,627779],[627781,627799],[6282,6289],6291,6292,810,[8110,8131],[8132,8151],[8152,8163],[8164,8171]],gaps:[4,8,12],lengths:[14,15,16,17,18,19],code:{name:"CVN",size:3}},maestro:{niceType:"Maestro",type:"maestro",patterns:[493698,[5e5,504174],[504176,506698],[506779,508999],[56,59],63,67,6],gaps:[4,8,12],lengths:[12,13,14,15,16,17,18,19],code:{name:"CVC",size:3}},elo:{niceType:"Elo",type:"elo",patterns:[401178,401179,438935,457631,457632,431274,451416,457393,504175,[506699,506778],[509e3,509999],627780,636297,636368,[650031,650033],[650035,650051],[650405,650439],[650485,650538],[650541,650598],[650700,650718],[650720,650727],[650901,650978],[651652,651679],[655e3,655019],[655021,655058]],gaps:[4,8,12],lengths:[16],code:{name:"CVE",size:3}},mir:{niceType:"Mir",type:"mir",patterns:[[2200,2204]],gaps:[4,8,12],lengths:[16,17,18,19],code:{name:"CVP2",size:3}},hiper:{niceType:"Hiper",type:"hiper",patterns:[637095,63737423,63743358,637568,637599,637609,637612],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}},hipercard:{niceType:"Hipercard",type:"hipercard",patterns:[606282],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}}}},507:(On,Ue)=>{Object.defineProperty(Ue,"__esModule",{value:!0}),Ue.clone=void 0,Ue.clone=function lt(tt){return tt?JSON.parse(JSON.stringify(tt)):null}},250:(On,Ue)=>{Object.defineProperty(Ue,"__esModule",{value:!0}),Ue.findBestMatch=void 0,Ue.findBestMatch=function tt(ye){return function lt(ye){var ze=ye.filter(function(we){return we.matchStrength}).length;return ze>0&&ze===ye.length}(ye)?ye.reduce(function(ze,we){return!ze||Number(ze.matchStrength)<Number(we.matchStrength)?we:ze}):null}},987:(On,Ue)=>{Object.defineProperty(Ue,"__esModule",{value:!0}),Ue.isValidInputType=void 0,Ue.isValidInputType=function lt(tt){return"string"==typeof tt||tt instanceof String}},595:(On,Ue)=>{Object.defineProperty(Ue,"__esModule",{value:!0}),Ue.matches=void 0,Ue.matches=function ye(ze,we){return Array.isArray(we)?function lt(ze,we,Qe){var q=String(we).length,It=ze.substr(0,q),Ke=parseInt(It,10);return we=parseInt(String(we).substr(0,It.length),10),Qe=parseInt(String(Qe).substr(0,It.length),10),Ke>=we&&Ke<=Qe}(ze,we[0],we[1]):function tt(ze,we){return(we=String(we)).substring(0,ze.length)===ze.substring(0,we.length)}(ze,we)}}},On=>{On(On.s=409)}]);
3
+ "use strict";(self.webpackChunk_motopays_pay_form=self.webpackChunk_motopays_pay_form||[]).push([[792],{409:(On,Ue,lt)=>{function tt(e,n){return Object.is(e,n)}let ye=null,ze=!1,we=1;const Qe=Symbol("SIGNAL");function q(e){const n=ye;return ye=e,n}const Nt={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 ri(e){if(ze)throw new Error("");if(null===ye)return;ye.consumerOnSignalRead(e);const n=ye.nextProducerIndex++;Fc(ye),n<ye.producerNode.length&&ye.producerNode[n]!==e&&Uo(ye)&&Rc(ye.producerNode[n],ye.producerIndexOfThis[n]),ye.producerNode[n]!==e&&(ye.producerNode[n]=e,ye.producerIndexOfThis[n]=Uo(ye)?g_(e,ye,n):0),ye.producerLastReadVersion[n]=e.version}function _s(e){if((!Uo(e)||e.dirty)&&(e.dirty||e.lastCleanEpoch!==we)){if(!e.producerMustRecompute(e)&&!Fr(e))return e.dirty=!1,void(e.lastCleanEpoch=we);e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=we}}function Kn(e){if(void 0===e.liveConsumerNode)return;const n=ze;ze=!0;try{for(const t of e.liveConsumerNode)t.dirty||Le(t)}finally{ze=n}}function de(){return!1!==ye?.consumerAllowSignalWrites}function Le(e){e.dirty=!0,Kn(e),e.consumerMarkedDirty?.(e)}function ut(e){return e&&(e.nextProducerIndex=0),q(e)}function Rn(e,n){if(q(n),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(Uo(e))for(let t=e.nextProducerIndex;t<e.producerNode.length;t++)Rc(e.producerNode[t],e.producerIndexOfThis[t]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Fr(e){Fc(e);for(let n=0;n<e.producerNode.length;n++){const t=e.producerNode[n],r=e.producerLastReadVersion[n];if(r!==t.version||(_s(t),r!==t.version))return!0}return!1}function mf(e){if(Fc(e),Uo(e))for(let n=0;n<e.producerNode.length;n++)Rc(e.producerNode[n],e.producerIndexOfThis[n]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function g_(e,n,t){if(y_(e),0===e.liveConsumerNode.length&&__(e))for(let r=0;r<e.producerNode.length;r++)e.producerIndexOfThis[r]=g_(e.producerNode[r],e,r);return e.liveConsumerIndexOfThis.push(t),e.liveConsumerNode.push(n)-1}function Rc(e,n){if(y_(e),1===e.liveConsumerNode.length&&__(e))for(let r=0;r<e.producerNode.length;r++)Rc(e.producerNode[r],e.producerIndexOfThis[r]);const t=e.liveConsumerNode.length-1;if(e.liveConsumerNode[n]=e.liveConsumerNode[t],e.liveConsumerIndexOfThis[n]=e.liveConsumerIndexOfThis[t],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,n<e.liveConsumerNode.length){const r=e.liveConsumerIndexOfThis[n],i=e.liveConsumerNode[n];Fc(i),i.producerIndexOfThis[r]=n}}function Uo(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function Fc(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function y_(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function __(e){return void 0!==e.producerNode}const gf=Symbol("UNSET"),yf=Symbol("COMPUTING"),Lc=Symbol("ERRORED"),j1={...Nt,value:gf,dirty:!0,error:null,equal:tt,producerMustRecompute:e=>e.value===gf||e.value===yf,producerRecomputeValue(e){if(e.value===yf)throw new Error("Detected cycle in computations.");const n=e.value;e.value=yf;const t=ut(e);let r;try{r=e.computation()}catch(i){r=Lc,e.error=i}finally{Rn(e,t)}n!==gf&&n!==Lc&&r!==Lc&&e.equal(n,r)?e.value=n:(e.value=r,e.version++)}};let v_=function H1(){throw new Error};function C_(){v_()}let Vc=null;function _f(e,n){de()||C_(),e.equal(e.value,n)||(e.value=n,function z1(e){e.version++,function pf(){we++}(),Kn(e),Vc?.()}(e))}const b_={...Nt,equal:tt,value:void 0};const vf=()=>{},W1={...Nt,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{null!==e.schedule&&e.schedule(e.ref)},hasRun:!1,cleanupFn:vf};function Xe(e){return"function"==typeof e}function Cf(e){const t=e(r=>{Error.call(r),r.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const bf=Cf(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((r,i)=>`${i+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function Bc(e,n){if(e){const t=e.indexOf(n);0<=t&&e.splice(t,1)}}class mn{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(const s of t)s.remove(this);else t.remove(this);const{initialTeardown:r}=this;if(Xe(r))try{r()}catch(s){n=s instanceof bf?s.errors:[s]}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const s of i)try{D_(s)}catch(o){n=n??[],o instanceof bf?n=[...n,...o.errors]:n.push(o)}}if(n)throw new bf(n)}}add(n){var t;if(n&&n!==this)if(this.closed)D_(n);else{if(n instanceof mn){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(n)}}_hasParent(n){const{_parentage:t}=this;return t===n||Array.isArray(t)&&t.includes(n)}_addParent(n){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n}_removeParent(n){const{_parentage:t}=this;t===n?this._parentage=null:Array.isArray(t)&&Bc(t,n)}remove(n){const{_finalizers:t}=this;t&&Bc(t,n),n instanceof mn&&n._removeParent(this)}}mn.EMPTY=(()=>{const e=new mn;return e.closed=!0,e})();const E_=mn.EMPTY;function w_(e){return e instanceof mn||e&&"closed"in e&&Xe(e.remove)&&Xe(e.add)&&Xe(e.unsubscribe)}function D_(e){Xe(e)?e():e.unsubscribe()}const Ii={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},jc={setTimeout(e,n,...t){const{delegate:r}=jc;return r?.setTimeout?r.setTimeout(e,n,...t):setTimeout(e,n,...t)},clearTimeout(e){const{delegate:n}=jc;return(n?.clearTimeout||clearTimeout)(e)},delegate:void 0};function S_(e){jc.setTimeout(()=>{const{onUnhandledError:n}=Ii;if(!n)throw e;n(e)})}function Ef(){}const Z1=wf("C",void 0,void 0);function wf(e,n,t){return{kind:e,value:n,error:t}}let Ai=null;function Hc(e){if(Ii.useDeprecatedSynchronousErrorHandling){const n=!Ai;if(n&&(Ai={errorThrown:!1,error:null}),e(),n){const{errorThrown:t,error:r}=Ai;if(Ai=null,t)throw r}}else e()}class Df extends mn{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,w_(n)&&n.add(this)):this.destination=tx}static create(n,t,r){return new Tf(n,t,r)}next(n){this.isStopped?Mf(function K1(e){return wf("N",e,void 0)}(n),this):this._next(n)}error(n){this.isStopped?Mf(function Y1(e){return wf("E",void 0,e)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?Mf(Z1,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const X1=Function.prototype.bind;function Sf(e,n){return X1.call(e,n)}class J1{constructor(n){this.partialObserver=n}next(n){const{partialObserver:t}=this;if(t.next)try{t.next(n)}catch(r){Uc(r)}}error(n){const{partialObserver:t}=this;if(t.error)try{t.error(n)}catch(r){Uc(r)}else Uc(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(t){Uc(t)}}}class Tf extends Df{constructor(n,t,r){let i;if(super(),Xe(n)||!n)i={next:n??void 0,error:t??void 0,complete:r??void 0};else{let s;this&&Ii.useDeprecatedNextContext?(s=Object.create(n),s.unsubscribe=()=>this.unsubscribe(),i={next:n.next&&Sf(n.next,s),error:n.error&&Sf(n.error,s),complete:n.complete&&Sf(n.complete,s)}):i=n}this.destination=new J1(i)}}function Uc(e){Ii.useDeprecatedSynchronousErrorHandling?function Q1(e){Ii.useDeprecatedSynchronousErrorHandling&&Ai&&(Ai.errorThrown=!0,Ai.error=e)}(e):S_(e)}function Mf(e,n){const{onStoppedNotification:t}=Ii;t&&jc.setTimeout(()=>t(e,n))}const tx={closed:!0,next:Ef,error:function ex(e){throw e},complete:Ef},If="function"==typeof Symbol&&Symbol.observable||"@@observable";function Af(e){return e}let nt=(()=>{class e{constructor(t){t&&(this._subscribe=t)}lift(t){const r=new e;return r.source=this,r.operator=t,r}subscribe(t,r,i){const s=function rx(e){return e&&e instanceof Df||function nx(e){return e&&Xe(e.next)&&Xe(e.error)&&Xe(e.complete)}(e)&&w_(e)}(t)?t:new Tf(t,r,i);return Hc(()=>{const{operator:o,source:a}=this;s.add(o?o.call(s,a):a?this._subscribe(s):this._trySubscribe(s))}),s}_trySubscribe(t){try{return this._subscribe(t)}catch(r){t.error(r)}}forEach(t,r){return new(r=M_(r))((i,s)=>{const o=new Tf({next:a=>{try{t(a)}catch(c){s(c),o.unsubscribe()}},error:s,complete:i});this.subscribe(o)})}_subscribe(t){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(t)}[If](){return this}pipe(...t){return function T_(e){return 0===e.length?Af:1===e.length?e[0]:function(t){return e.reduce((r,i)=>i(r),t)}}(t)(this)}toPromise(t){return new(t=M_(t))((r,i)=>{let s;this.subscribe(o=>s=o,o=>i(o),()=>r(s))})}}return e.create=n=>new e(n),e})();function M_(e){var n;return null!==(n=e??Ii.Promise)&&void 0!==n?n:Promise}const ix=Cf(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let kt=(()=>{class e extends nt{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const r=new I_(this,this);return r.operator=t,r}_throwIfClosed(){if(this.closed)throw new ix}next(t){Hc(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(t)}})}error(t){Hc(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:r}=this;for(;r.length;)r.shift().error(t)}})}complete(){Hc(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:r,isStopped:i,observers:s}=this;return r||i?E_:(this.currentObservers=null,s.push(t),new mn(()=>{this.currentObservers=null,Bc(s,t)}))}_checkFinalizedStatuses(t){const{hasError:r,thrownError:i,isStopped:s}=this;r?t.error(i):s&&t.complete()}asObservable(){const t=new nt;return t.source=this,t}}return e.create=(n,t)=>new I_(n,t),e})();class I_ extends kt{constructor(n,t){super(),this.destination=n,this.source=t}next(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,n)}error(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,n)}complete(){var n,t;null===(t=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===t||t.call(n)}_subscribe(n){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(n))&&void 0!==r?r:E_}}class sx extends kt{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const t=super._subscribe(n);return!t.closed&&n.next(this._value),t}getValue(){const{hasError:n,thrownError:t,_value:r}=this;if(n)throw t;return this._throwIfClosed(),r}next(n){super.next(this._value=n)}}function gn(e){return n=>{if(function ox(e){return Xe(e?.lift)}(n))return n.lift(function(t){try{return e(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function sn(e,n,t,r,i){return new ax(e,n,t,r,i)}class ax extends Df{constructor(n,t,r,i,s,o){super(n),this.onFinalize=s,this.shouldUnsubscribe=o,this._next=t?function(a){try{t(a)}catch(c){n.error(c)}}:super._next,this._error=i?function(a){try{i(a)}catch(c){n.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:t}=this;super.unsubscribe(),!t&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function Pt(e,n){return gn((t,r)=>{let i=0;t.subscribe(sn(r,s=>{r.next(e.call(n,s,i++))}))})}typeof navigator<"u"&&navigator,typeof navigator<"u"&&!/Opera/.test(navigator.userAgent)&&navigator,typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||navigator),typeof navigator<"u"&&!/Opera|WebKit/.test(navigator.userAgent)&&navigator,typeof navigator<"u"&&navigator;const Z_="https://g.co/ng/security#xss";class E extends Error{constructor(n,t){super(function vs(e,n){return`NG0${Math.abs(e)}${n?": "+n:""}`}(n,t)),this.code=n}}const qc=Symbol("InputSignalNode#UNSET"),Y_={...b_,transformFn:void 0,applyValueToInputSignal(e,n){_f(e,n)}};function K_(e,n){const t=Object.create(Y_);function r(){if(ri(t),t.value===qc)throw new E(-950,!1);return t.value}return t.value=e,t.transformFn=n?.transform,r[Qe]=t,r}function Lr(e){return{toString:e}.toString()}const Cs="__annotations__",bs="__parameters__",Es="__prop__metadata__";function Q_(e,n,t,r,i){return Lr(()=>{const s=Lf(n);function o(...a){if(this instanceof o)return s.call(this,...a),this;const c=new o(...a);return function(u){return i&&i(u,...a),(u.hasOwnProperty(Cs)?u[Cs]:Object.defineProperty(u,Cs,{value:[]})[Cs]).push(c),r&&r(u),u}}return t&&(o.prototype=Object.create(t.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function Lf(e){return function(...t){if(e){const r=e(...t);for(const i in r)this[i]=r[i]}}}function ws(e,n,t){return Lr(()=>{const r=Lf(n);function i(...s){if(this instanceof i)return r.apply(this,s),this;const o=new i(...s);return a.annotation=o,a;function a(c,l,u){const d=c.hasOwnProperty(bs)?c[bs]:Object.defineProperty(c,bs,{value:[]})[bs];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(o),c}}return t&&(i.prototype=Object.create(t.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}const $e=globalThis;function Te(e){for(let n in e)if(e[n]===Te)return n;throw Error("Could not find renamed property on target object.")}function aN(e,n){for(const t in n)n.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=n[t])}function Ct(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Ct).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const n=e.toString();if(null==n)return""+n;const t=n.indexOf("\n");return-1===t?n:n.substring(0,t)}function Vf(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n}const cN=Te({__forward_ref__:Te});function De(e){return e.__forward_ref__=De,e.toString=function(){return Ct(this())},e}function W(e){return Wc(e)?e():e}function Wc(e){return"function"==typeof e&&e.hasOwnProperty(cN)&&e.__forward_ref__===De}function R(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function ft(e){return{providers:e.providers||[],imports:e.imports||[]}}function Zc(e){return X_(e,Kc)||X_(e,J_)}function X_(e,n){return e.hasOwnProperty(n)?e[n]:null}function Yc(e){return e&&(e.hasOwnProperty(Bf)||e.hasOwnProperty(hN))?e[Bf]:null}const Kc=Te({\u0275prov:Te}),Bf=Te({\u0275inj:Te}),J_=Te({ngInjectableDef:Te}),hN=Te({ngInjectorDef:Te});class N{constructor(n,t){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=R({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Gf(e){return e&&!!e.\u0275providers}const Go=Te({\u0275cmp:Te}),zf=Te({\u0275dir:Te}),qf=Te({\u0275pipe:Te}),tv=Te({\u0275mod:Te}),Vr=Te({\u0275fac:Te}),zo=Te({__NG_ELEMENT_ID__:Te}),nv=Te({__NG_ENV_ID__:Te});function X(e){return"string"==typeof e?e:null==e?"":String(e)}function Wf(e,n){throw new E(-201,!1)}var ue=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(ue||{});let Zf;function rv(){return Zf}function on(e){const n=Zf;return Zf=e,n}function iv(e,n,t){const r=Zc(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:t&ue.Optional?null:void 0!==n?n:void Wf()}const qo={},Yf="__NG_DI_FLAG__",Qc="ngTempTokenPath",vN=/\n/gm,sv="__source";let Ds;function oi(e){const n=Ds;return Ds=e,n}function EN(e,n=ue.Default){if(void 0===Ds)throw new E(-203,!1);return null===Ds?iv(e,void 0,n):Ds.get(e,n&ue.Optional?null:void 0,n)}function k(e,n=ue.Default){return(rv()||EN)(W(e),n)}function A(e,n=ue.Default){return k(e,Xc(n))}function Xc(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Kf(e){const n=[];for(let t=0;t<e.length;t++){const r=W(e[t]);if(Array.isArray(r)){if(0===r.length)throw new E(900,!1);let i,s=ue.Default;for(let o=0;o<r.length;o++){const a=r[o],c=wN(a);"number"==typeof c?-1===c?i=a.token:s|=c:i=a}n.push(k(i,s))}else n.push(k(r))}return n}function Wo(e,n){return e[Yf]=n,e.prototype[Yf]=n,e}function wN(e){return e[Yf]}const TN=Wo(ws("Inject",e=>({token:e})),-1),Qf=Wo(ws("Optional"),8),MN=Wo(ws("Self"),2),Xf=Wo(ws("SkipSelf"),4),IN=Wo(ws("Host"),1);function Ni(e,n){return e.hasOwnProperty(Vr)?e[Vr]:null}function Ss(e,n){e.forEach(t=>Array.isArray(t)?Ss(t,n):n(t))}function av(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function Jc(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function el(e,n){const t=[];for(let r=0;r<e;r++)t.push(n);return t}function vn(e,n,t){let r=Ts(e,n);return r>=0?e[1|r]=t:(r=~r,function cv(e,n,t,r){let i=e.length;if(i==n)e.push(t,r);else if(1===i)e.push(r,e[0]),e[0]=t;else{for(i--,e.push(e[i-1],e[i]);i>n;)e[i]=e[i-2],i--;e[n]=t,e[n+1]=r}}(e,r,n,t)),r}function eh(e,n){const t=Ts(e,n);if(t>=0)return e[1|t]}function Ts(e,n){return function lv(e,n,t){let r=0,i=e.length>>t;for(;i!==r;){const s=r+(i-r>>1),o=e[s<<t];if(n===o)return s<<t;o>n?i=s:r=s+1}return~(i<<t)}(e,n,1)}const yr={},fe=[],_r=new N(""),uv=new N("",-1),th=new N("");class tl{get(n,t=qo){if(t===qo){const r=new Error(`NullInjectorError: No provider for ${Ct(n)}!`);throw r.name="NullInjectorError",r}return t}}var nl=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(nl||{}),Qn=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Qn||{}),ai=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(ai||{});function xN(e,n,t){let r=e.length;for(;;){const i=e.indexOf(n,t);if(-1===i)return i;if(0===i||e.charCodeAt(i-1)<=32){const s=n.length;if(i+s===r||e.charCodeAt(i+s)<=32)return i}t=i+1}}function nh(e,n,t){let r=0;for(;r<t.length;){const i=t[r];if("number"==typeof i){if(0!==i)break;r++;const s=t[r++],o=t[r++],a=t[r++];e.setAttribute(n,o,a,s)}else{const s=i,o=t[++r];fv(s)?e.setProperty(n,s,o):e.setAttribute(n,s,o),r++}}return r}function dv(e){return 3===e||4===e||6===e}function fv(e){return 64===e.charCodeAt(0)}function Zo(e,n){if(null!==n&&0!==n.length)if(null===e||0===e.length)e=n.slice();else{let t=-1;for(let r=0;r<n.length;r++){const i=n[r];"number"==typeof i?t=i:0===t||hv(e,t,i,null,-1===t||2===t?n[++r]:null)}}return e}function hv(e,n,t,r,i){let s=0,o=e.length;if(-1===n)o=-1;else for(;s<e.length;){const a=e[s++];if("number"==typeof a){if(a===n){o=-1;break}if(a>n){o=s-1;break}}}for(;s<e.length;){const a=e[s];if("number"==typeof a)break;if(a===t){if(null===r)return void(null!==i&&(e[s+1]=i));if(r===e[s+1])return void(e[s+2]=i)}s++,null!==r&&s++,null!==i&&s++}-1!==o&&(e.splice(o,0,n),s=o+1),e.splice(s++,0,t),null!==r&&e.splice(s++,0,r),null!==i&&e.splice(s++,0,i)}const pv="ng-template";function NN(e,n,t,r){let i=0;if(r){for(;i<n.length&&"string"==typeof n[i];i+=2)if("class"===n[i]&&-1!==xN(n[i+1].toLowerCase(),t,0))return!0}else if(rh(e))return!1;if(i=n.indexOf(1,i),i>-1){let s;for(;++i<n.length&&"string"==typeof(s=n[i]);)if(s.toLowerCase()===t)return!0}return!1}function rh(e){return 4===e.type&&e.value!==pv}function kN(e,n,t){return n===(4!==e.type||t?e.value:pv)}function PN(e,n,t){let r=4;const i=e.attrs,s=null!==i?function FN(e){for(let n=0;n<e.length;n++)if(dv(e[n]))return n;return e.length}(i):0;let o=!1;for(let a=0;a<n.length;a++){const c=n[a];if("number"!=typeof c){if(!o)if(4&r){if(r=2|1&r,""!==c&&!kN(e,c,t)||""===c&&1===n.length){if(Xn(r))return!1;o=!0}}else if(8&r){if(null===i||!NN(e,i,c,t)){if(Xn(r))return!1;o=!0}}else{const l=n[++a],u=ON(c,i,rh(e),t);if(-1===u){if(Xn(r))return!1;o=!0;continue}if(""!==l){let d;if(d=u>s?"":i[u+1].toLowerCase(),2&r&&l!==d){if(Xn(r))return!1;o=!0}}}}else{if(!o&&!Xn(r)&&!Xn(c))return!1;if(o&&Xn(c))continue;o=!1,r=c|1&r}}return Xn(r)||o}function Xn(e){return!(1&e)}function ON(e,n,t,r){if(null===n)return-1;let i=0;if(r||!t){let s=!1;for(;i<n.length;){const o=n[i];if(o===e)return i;if(3===o||6===o)s=!0;else{if(1===o||2===o){let a=n[++i];for(;"string"==typeof a;)a=n[++i];continue}if(4===o)break;if(0===o){i+=4;continue}}i+=s?1:2}return-1}return function LN(e,n){let t=e.indexOf(4);if(t>-1)for(t++;t<e.length;){const r=e[t];if("number"==typeof r)return-1;if(r===n)return t;t++}return-1}(n,e)}function mv(e,n,t=!1){for(let r=0;r<n.length;r++)if(PN(e,n[r],t))return!0;return!1}function VN(e,n){e:for(let t=0;t<n.length;t++){const r=n[t];if(e.length===r.length){for(let i=0;i<e.length;i++)if(e[i]!==r[i])continue e;return!0}}return!1}function gv(e,n){return e?":not("+n.trim()+")":n}function BN(e){let n=e[0],t=1,r=2,i="",s=!1;for(;t<e.length;){let o=e[t];if("string"==typeof o)if(2&r){const a=e[++t];i+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else 8&r?i+="."+o:4&r&&(i+=" "+o);else""!==i&&!Xn(o)&&(n+=gv(s,i),i=""),r=o,s=s||!Xn(r);t++}return""!==i&&(n+=gv(s,i)),n}function Me(e){return Lr(()=>{const n=_v(e),t={...n,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===nl.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Qn.Emulated,styles:e.styles||fe,_:null,schemas:e.schemas||null,tView:null,id:""};vv(t);const r=e.dependencies;return t.directiveDefs=rl(r,!1),t.pipeDefs=rl(r,!0),t.id=function zN(e){let n=0;const t=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const i of t)n=Math.imul(31,n)+i.charCodeAt(0)|0;return n+=2147483648,"c"+n}(t),t})}function UN(e){return ae(e)||Et(e)}function $N(e){return null!==e}function bt(e){return Lr(()=>({type:e.type,bootstrap:e.bootstrap||fe,declarations:e.declarations||fe,imports:e.imports||fe,exports:e.exports||fe,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function yv(e,n){if(null==e)return yr;const t={};for(const r in e)if(e.hasOwnProperty(r)){const i=e[r];let s,o,a=ai.None;Array.isArray(i)?(a=i[0],s=i[1],o=i[2]??s):(s=i,o=i),n?(t[s]=a!==ai.None?[r,a]:r,n[s]=o):t[s]=r}return t}function Z(e){return Lr(()=>{const n=_v(e);return vv(n),n})}function ht(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function ae(e){return e[Go]||null}function Et(e){return e[zf]||null}function Ot(e){return e[qf]||null}function _v(e){const n={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:e.inputs||yr,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||fe,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:yv(e.inputs,n),outputs:yv(e.outputs),debugInfo:null}}function vv(e){e.features?.forEach(n=>n(e))}function rl(e,n){if(!e)return null;const t=n?Ot:UN;return()=>("function"==typeof e?e():e).map(r=>t(r)).filter($N)}function Ms(e){return{\u0275providers:e}}function qN(...e){return{\u0275providers:ih(0,e),\u0275fromNgModule:!0}}function ih(e,...n){const t=[],r=new Set;let i;const s=o=>{t.push(o)};return Ss(n,o=>{const a=o;il(a,s,[],r)&&(i||=[],i.push(a))}),void 0!==i&&Cv(i,s),t}function Cv(e,n){for(let t=0;t<e.length;t++){const{ngModule:r,providers:i}=e[t];sh(i,s=>{n(s,r)})}}function il(e,n,t,r){if(!(e=W(e)))return!1;let i=null,s=Yc(e);const o=!s&&ae(e);if(s||o){if(o&&!o.standalone)return!1;i=e}else{const c=e.ngModule;if(s=Yc(c),!s)return!1;i=c}const a=r.has(i);if(o){if(a)return!1;if(r.add(i),o.dependencies){const c="function"==typeof o.dependencies?o.dependencies():o.dependencies;for(const l of c)il(l,n,t,r)}}else{if(!s)return!1;{if(null!=s.imports&&!a){let l;r.add(i);try{Ss(s.imports,u=>{il(u,n,t,r)&&(l||=[],l.push(u))})}finally{}void 0!==l&&Cv(l,n)}if(!a){const l=Ni(i)||(()=>new i);n({provide:i,useFactory:l,deps:fe},i),n({provide:th,useValue:i,multi:!0},i),n({provide:_r,useValue:()=>k(i),multi:!0},i)}const c=s.providers;if(null!=c&&!a){const l=e;sh(c,u=>{n(u,l)})}}}return i!==e&&void 0!==e.providers}function sh(e,n){for(let t of e)Gf(t)&&(t=t.\u0275providers),Array.isArray(t)?sh(t,n):n(t)}const WN=Te({provide:String,useValue:Te});function oh(e){return null!==e&&"object"==typeof e&&WN in e}function Pi(e){return"function"==typeof e}const ah=new N(""),sl={},YN={};let ch;function ol(){return void 0===ch&&(ch=new tl),ch}class Fn{}class Is extends Fn{get destroyed(){return this._destroyed}constructor(n,t,r,i){super(),this.parent=t,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,uh(n,o=>this.processProvider(o)),this.records.set(uv,As(void 0,this)),i.has("environment")&&this.records.set(Fn,As(void 0,this));const s=this.records.get(ah);null!=s&&"string"==typeof s.value&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(th,fe,ue.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const n=q(null);try{for(const r of this._ngOnDestroyHooks)r.ngOnDestroy();const t=this._onDestroyHooks;this._onDestroyHooks=[];for(const r of t)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),q(n)}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const t=oi(this),r=on(void 0);try{return n()}finally{oi(t),on(r)}}get(n,t=qo,r=ue.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(nv))return n[nv](this);r=Xc(r);const s=oi(this),o=on(void 0);try{if(!(r&ue.SkipSelf)){let c=this.records.get(n);if(void 0===c){const l=function ek(e){return"function"==typeof e||"object"==typeof e&&e instanceof N}(n)&&Zc(n);c=l&&this.injectableDefInScope(l)?As(lh(n),sl):null,this.records.set(n,c)}if(null!=c)return this.hydrate(n,c)}return(r&ue.Self?ol():this.parent).get(n,t=r&ue.Optional&&t===qo?null:t)}catch(a){if("NullInjectorError"===a.name){if((a[Qc]=a[Qc]||[]).unshift(Ct(n)),s)throw a;return function DN(e,n,t,r){const i=e[Qc];throw n[sv]&&i.unshift(n[sv]),e.message=function SN(e,n,t,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let i=Ct(n);if(Array.isArray(n))i=n.map(Ct).join(" -> ");else if("object"==typeof n){let s=[];for(let o in n)if(n.hasOwnProperty(o)){let a=n[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):Ct(a)))}i=`{${s.join(", ")}}`}return`${t}${r?"("+r+")":""}[${i}]: ${e.replace(vN,"\n ")}`}("\n"+e.message,i,t,r),e.ngTokenPath=i,e[Qc]=null,e}(a,n,"R3InjectorError",this.source)}throw a}finally{on(o),oi(s)}}resolveInjectorInitializers(){const n=q(null),t=oi(this),r=on(void 0);try{const s=this.get(_r,fe,ue.Self);for(const o of s)o()}finally{oi(t),on(r),q(n)}}toString(){const n=[],t=this.records;for(const r of t.keys())n.push(Ct(r));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new E(205,!1)}processProvider(n){let t=Pi(n=W(n))?n:W(n&&n.provide);const r=function QN(e){return oh(e)?As(void 0,e.useValue):As(wv(e),sl)}(n);if(!Pi(n)&&!0===n.multi){let i=this.records.get(t);i||(i=As(void 0,sl,!0),i.factory=()=>Kf(i.multi),this.records.set(t,i)),t=n,i.multi.push(n)}this.records.set(t,r)}hydrate(n,t){const r=q(null);try{return t.value===sl&&(t.value=YN,t.value=t.factory()),"object"==typeof t.value&&t.value&&function JN(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{q(r)}}injectableDefInScope(n){if(!n.providedIn)return!1;const t=W(n.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(n){const t=this._onDestroyHooks.indexOf(n);-1!==t&&this._onDestroyHooks.splice(t,1)}}function lh(e){const n=Zc(e),t=null!==n?n.factory:Ni(e);if(null!==t)return t;if(e instanceof N)throw new E(204,!1);if(e instanceof Function)return function KN(e){if(e.length>0)throw new E(204,!1);const t=function fN(e){return e&&(e[Kc]||e[J_])||null}(e);return null!==t?()=>t.factory(e):()=>new e}(e);throw new E(204,!1)}function wv(e,n,t){let r;if(Pi(e)){const i=W(e);return Ni(i)||lh(i)}if(oh(e))r=()=>W(e.useValue);else if(function Ev(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...Kf(e.deps||[]));else if(function bv(e){return!(!e||!e.useExisting)}(e))r=()=>k(W(e.useExisting));else{const i=W(e&&(e.useClass||e.provide));if(!function XN(e){return!!e.deps}(e))return Ni(i)||lh(i);r=()=>new i(...Kf(e.deps))}return r}function As(e,n,t=!1){return{factory:e,value:n,multi:t?[]:void 0}}function uh(e,n){for(const t of e)Array.isArray(t)?uh(t,n):t&&Gf(t)?uh(t.\u0275providers,n):n(t)}function Dv(){return void 0!==rv()||null!=function bN(){return Ds}()}function wt(e){const n=$e.ng;if(n&&n.\u0275compilerFacade)return n.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}const Sv={\u0275\u0275defineInjectable:R,\u0275\u0275defineInjector:ft,\u0275\u0275inject:k,\u0275\u0275invalidFactoryDep:function ov(e){throw new E(202,!1)},resolveForwardRef:W},ik=Function;function Yo(e){return"function"==typeof e}const sk=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\).*)\)/,ok=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,ak=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,ck=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{[^}]*super\(\.\.\.arguments\)/;class uk{constructor(n){this._reflect=n||$e.Reflect}factory(n){return(...t)=>new n(...t)}_zipTypesAndAnnotations(n,t){let r;r=el(typeof n>"u"?t.length:n.length);for(let i=0;i<r.length;i++)r[i]=typeof n>"u"?[]:n[i]&&n[i]!=Object?[n[i]]:[],t&&null!=t[i]&&(r[i]=r[i].concat(t[i]));return r}_ownParameters(n,t){if(function lk(e){return sk.test(e)||ck.test(e)||ok.test(e)&&!ak.test(e)}(n.toString()))return null;if(n.parameters&&n.parameters!==t.parameters)return n.parameters;const i=n.ctorParameters;if(i&&i!==t.ctorParameters){const a="function"==typeof i?i():i,c=a.map(u=>u&&u.type),l=a.map(u=>u&&fh(u.decorators));return this._zipTypesAndAnnotations(c,l)}const s=n.hasOwnProperty(bs)&&n[bs],o=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",n);return o||s?this._zipTypesAndAnnotations(o,s):el(n.length)}parameters(n){if(!Yo(n))return[];const t=al(n);let r=this._ownParameters(n,t);return!r&&t!==Object&&(r=this.parameters(t)),r||[]}_ownAnnotations(n,t){if(n.annotations&&n.annotations!==t.annotations){let r=n.annotations;return"function"==typeof r&&r.annotations&&(r=r.annotations),r}return n.decorators&&n.decorators!==t.decorators?fh(n.decorators):n.hasOwnProperty(Cs)?n[Cs]:null}annotations(n){if(!Yo(n))return[];const t=al(n),r=this._ownAnnotations(n,t)||[];return(t!==Object?this.annotations(t):[]).concat(r)}_ownPropMetadata(n,t){if(n.propMetadata&&n.propMetadata!==t.propMetadata){let r=n.propMetadata;return"function"==typeof r&&r.propMetadata&&(r=r.propMetadata),r}if(n.propDecorators&&n.propDecorators!==t.propDecorators){const r=n.propDecorators,i={};return Object.keys(r).forEach(s=>{i[s]=fh(r[s])}),i}return n.hasOwnProperty(Es)?n[Es]:null}propMetadata(n){if(!Yo(n))return{};const t=al(n),r={};if(t!==Object){const s=this.propMetadata(t);Object.keys(s).forEach(o=>{r[o]=s[o]})}const i=this._ownPropMetadata(n,t);return i&&Object.keys(i).forEach(s=>{const o=[];r.hasOwnProperty(s)&&o.push(...r[s]),o.push(...i[s]),r[s]=o}),r}ownPropMetadata(n){return Yo(n)&&this._ownPropMetadata(n,al(n))||{}}hasLifecycleHook(n,t){return n instanceof ik&&t in n.prototype}}function fh(e){return e?e.map(n=>new(0,n.type.annotationCls)(...n.args?n.args:[])):[]}function al(e){const n=e.prototype?Object.getPrototypeOf(e.prototype):null;return(n?n.constructor:null)||Object}const qe=0,I=1,H=2,pt=3,Jn=4,Rt=5,zt=6,Ns=7,Ve=8,mt=9,vr=10,Y=11,Ko=12,Tv=13,ks=14,We=15,Oi=16,Ps=17,Br=18,Os=19,Mv=20,ci=21,cl=22,Ln=23,V=25,hh=1,Cr=7,Rs=9,rt=10;var ul=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(ul||{});function Dt(e){return Array.isArray(e)&&"object"==typeof e[hh]}function Ht(e){return Array.isArray(e)&&!0===e[hh]}function ph(e){return!!(4&e.flags)}function Ri(e){return e.componentOffset>-1}function dl(e){return!(1&~e.flags)}function er(e){return!!e.template}function Xo(e){return!!(512&e[H])}class kv{constructor(n,t,r){this.previousValue=n,this.currentValue=t,this.firstChange=r}isFirstChange(){return this.firstChange}}function Pv(e,n,t,r){null!==n?n.applyValueToInputSignal(n,r):e[t]=r}function tr(){return Ov}function Ov(e){return e.type.prototype.ngOnChanges&&(e.setInput=pk),hk}function hk(){const e=Fv(this),n=e?.current;if(n){const t=e.previous;if(t===yr)e.previous=n;else for(let r in n)t[r]=n[r];e.current=null,this.ngOnChanges(n)}}function pk(e,n,t,r,i){const s=this.declaredInputs[r],o=Fv(e)||function mk(e,n){return e[Rv]=n}(e,{previous:yr,current:null}),a=o.current||(o.current={}),c=o.previous,l=c[s];a[s]=new kv(l&&l.currentValue,t,c===yr),Pv(e,n,i,t)}tr.ngInherit=!0;const Rv="__ngSimpleChanges__";function Fv(e){return e[Rv]||null}const br=function(e,n,t){};function he(e){for(;Array.isArray(e);)e=e[qe];return e}function Jo(e,n){return he(n[e])}function qt(e,n){return he(n[e.index])}function ea(e,n){return e.data[n]}function Fi(e,n){return e[n]}function Cn(e,n){const t=n[e];return Dt(t)?t:t[qe]}function vh(e){return!(128&~e[H])}function Vn(e,n){return null==n?null:e[n]}function Bv(e){e[Ps]=0}function jv(e){1024&e[H]||(e[H]|=1024,vh(e)&&hl(e))}function fl(e){return!!(9216&e[H]||e[Ln]?.dirty)}function Ch(e){e[vr].changeDetectionScheduler?.notify(8),64&e[H]&&(e[H]|=1024),fl(e)&&hl(e)}function hl(e){e[vr].changeDetectionScheduler?.notify(0);let n=jr(e);for(;null!==n&&!(8192&n[H])&&(n[H]|=8192,vh(n));)n=jr(n)}function pl(e,n){if(!(256&~e[H]))throw new E(911,!1);null===e[ci]&&(e[ci]=[]),e[ci].push(n)}function jr(e){const n=e[pt];return Ht(n)?n[pt]:n}const K={lFrame:Jv(null),bindingsEnabled:!0,skipHydrationRootTNode:null};let Uv=!1;function $v(){return K.bindingsEnabled}function Li(){return null!==K.skipHydrationRootTNode}function b(){return K.lFrame.lView}function oe(){return K.lFrame.tView}function ne(e){return K.lFrame.contextLView=e,e[Ve]}function re(e){return K.lFrame.contextLView=null,e}function Ie(){let e=Gv();for(;null!==e&&64===e.type;)e=e.parent;return e}function Gv(){return K.lFrame.currentTNode}function nr(e,n){const t=K.lFrame;t.currentTNode=e,t.isParent=n}function wh(){return K.lFrame.isParent}function Dh(){K.lFrame.isParent=!1}function zv(){return K.lFrame.contextLView}function Wv(){return Uv}function Zv(e){Uv=e}function Wt(){const e=K.lFrame;let n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}function rr(){return K.lFrame.bindingIndex++}function Ur(e){const n=K.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}function Ak(e,n){const t=K.lFrame;t.bindingIndex=t.bindingRootIndex=e,Sh(n)}function Sh(e){K.lFrame.currentDirectiveIndex=e}function Th(e){const n=K.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}function gl(e){K.lFrame.currentQueryIndex=e}function Nk(e){const n=e[I];return 2===n.type?n.declTNode:1===n.type?e[Rt]:null}function Qv(e,n,t){if(t&ue.SkipSelf){let i=n,s=e;for(;!(i=i.parent,null!==i||t&ue.Host||(i=Nk(s),null===i||(s=s[ks],10&i.type))););if(null===i)return!1;n=i,e=s}const r=K.lFrame=Xv();return r.currentTNode=n,r.lView=e,!0}function Ih(e){const n=Xv(),t=e[I];K.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function Xv(){const e=K.lFrame,n=null===e?null:e.child;return null===n?Jv(e):n}function Jv(e){const n={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:e,child:null,inI18n:!1};return null!==e&&(e.child=n),n}function eC(){const e=K.lFrame;return K.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const tC=eC;function Ah(){const e=eC();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Ft(){return K.lFrame.selectedIndex}function Vi(e){K.lFrame.selectedIndex=e}function Be(){const e=K.lFrame;return ea(e.tView,e.selectedIndex)}let rC=!0;function na(){return rC}function Er(e){rC=e}function yl(e,n){for(let t=n.directiveStart,r=n.directiveEnd;t<r;t++){const s=e.data[t].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:l,ngOnDestroy:u}=s;o&&(e.contentHooks??=[]).push(-t,o),a&&((e.contentHooks??=[]).push(t,a),(e.contentCheckHooks??=[]).push(t,a)),c&&(e.viewHooks??=[]).push(-t,c),l&&((e.viewHooks??=[]).push(t,l),(e.viewCheckHooks??=[]).push(t,l)),null!=u&&(e.destroyHooks??=[]).push(t,u)}}function _l(e,n,t){iC(e,n,3,t)}function vl(e,n,t,r){(3&e[H])===t&&iC(e,n,t,r)}function xh(e,n){let t=e[H];(3&t)===n&&(t&=16383,t+=1,e[H]=t)}function iC(e,n,t,r){const s=r??-1,o=n.length-1;let a=0;for(let c=void 0!==r?65535&e[Ps]:0;c<o;c++)if("number"==typeof n[c+1]){if(a=n[c],null!=r&&a>=r)break}else n[c]<0&&(e[Ps]+=65536),(a<s||-1==s)&&(Vk(e,t,n,c),e[Ps]=(4294901760&e[Ps])+c+2),c++}function sC(e,n){br(4,e,n);const t=q(null);try{n.call(e)}finally{q(t),br(5,e,n)}}function Vk(e,n,t,r){const i=t[r]<0,s=t[r+1],a=e[i?-t[r]:t[r]];i?e[H]>>14<e[Ps]>>16&&(3&e[H])===n&&(e[H]+=16384,sC(a,s)):sC(a,s)}const Fs=-1;class ra{constructor(n,t,r){this.factory=n,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=r}}const kh={};class Bi{constructor(n,t){this.injector=n,this.parentInjector=t}get(n,t,r){r=Xc(r);const i=this.injector.get(n,kh,r);return i!==kh||t===kh?i:this.parentInjector.get(n,t,r)}}function Ph(e){return e!==Fs}function ia(e){return 32767&e}function sa(e,n){let t=function Uk(e){return e>>16}(e),r=n;for(;t>0;)r=r[ks],t--;return r}let Oh=!0;function Cl(e){const n=Oh;return Oh=e,n}const aC=255,cC=5;let Gk=0;const wr={};function bl(e,n){const t=lC(e,n);if(-1!==t)return t;const r=n[I];r.firstCreatePass&&(e.injectorIndex=n.length,Rh(r.data,e),Rh(n,null),Rh(r.blueprint,null));const i=El(e,n),s=e.injectorIndex;if(Ph(i)){const o=ia(i),a=sa(i,n),c=a[I].data;for(let l=0;l<8;l++)n[s+l]=a[o+l]|c[o+l]}return n[s+8]=i,s}function Rh(e,n){e.push(0,0,0,0,0,0,0,0,n)}function lC(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function El(e,n){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let t=0,r=null,i=n;for(;null!==i;){if(r=gC(i),null===r)return Fs;if(t++,i=i[ks],-1!==r.injectorIndex)return r.injectorIndex|t<<16}return Fs}function Fh(e,n,t){!function zk(e,n,t){let r;"string"==typeof t?r=t.charCodeAt(0)||0:t.hasOwnProperty(zo)&&(r=t[zo]),null==r&&(r=t[zo]=Gk++);const i=r&aC;n.data[e+(i>>cC)]|=1<<i}(e,n,t)}function uC(e,n,t){if(t&ue.Optional||void 0!==e)return e;Wf()}function dC(e,n,t,r){if(t&ue.Optional&&void 0===r&&(r=null),!(t&(ue.Self|ue.Host))){const i=e[mt],s=on(void 0);try{return i?i.get(n,r,t&ue.Optional):iv(n,r,t&ue.Optional)}finally{on(s)}}return uC(r,0,t)}function fC(e,n,t,r=ue.Default,i){if(null!==e){if(2048&n[H]&&!(r&ue.Self)){const o=function Kk(e,n,t,r,i){let s=e,o=n;for(;null!==s&&null!==o&&2048&o[H]&&!(512&o[H]);){const a=hC(s,o,t,r|ue.Self,wr);if(a!==wr)return a;let c=s.parent;if(!c){const l=o[Mv];if(l){const u=l.get(t,wr,r);if(u!==wr)return u}c=gC(o),o=o[ks]}s=c}return i}(e,n,t,r,wr);if(o!==wr)return o}const s=hC(e,n,t,r,wr);if(s!==wr)return s}return dC(n,t,r,i)}function hC(e,n,t,r,i){const s=function Zk(e){if("string"==typeof e)return e.charCodeAt(0)||0;const n=e.hasOwnProperty(zo)?e[zo]:void 0;return"number"==typeof n?n>=0?n&aC:Yk:n}(t);if("function"==typeof s){if(!Qv(n,e,r))return r&ue.Host?uC(i,0,r):dC(n,t,r,i);try{let o;if(o=s(r),null!=o||r&ue.Optional)return o;Wf()}finally{tC()}}else if("number"==typeof s){let o=null,a=lC(e,n),c=Fs,l=r&ue.Host?n[We][Rt]:null;for((-1===a||r&ue.SkipSelf)&&(c=-1===a?El(e,n):n[a+8],c!==Fs&&mC(r,!1)?(o=n[I],a=ia(c),n=sa(c,n)):a=-1);-1!==a;){const u=n[I];if(pC(s,a,u.data)){const d=Wk(a,n,t,o,r,l);if(d!==wr)return d}c=n[a+8],c!==Fs&&mC(r,n[I].data[a+8]===l)&&pC(s,a,n)?(o=u,a=ia(c),n=sa(c,n)):a=-1}}return i}function Wk(e,n,t,r,i,s){const o=n[I],a=o.data[e+8],u=function wl(e,n,t,r,i){const s=e.providerIndexes,o=n.data,a=1048575&s,c=e.directiveStart,u=s>>20,f=i?a+u:e.directiveEnd;for(let h=r?a:a+u;h<f;h++){const p=o[h];if(h<c&&t===p||h>=c&&p.type===t)return h}if(i){const h=o[c];if(h&&er(h)&&h.type===t)return c}return null}(a,o,t,null==r?Ri(a)&&Oh:r!=o&&!!(3&a.type),i&ue.Host&&s===a);return null!==u?ji(n,o,u,a):wr}function ji(e,n,t,r){let i=e[t];const s=n.data;if(function Bk(e){return e instanceof ra}(i)){const o=i;o.resolving&&function gN(e,n){throw n&&n.join(" > "),new E(-200,e)}(function _e(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():X(e)}(s[t]));const a=Cl(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?on(o.injectImpl):null;Qv(e,r,ue.Default);try{i=e[t]=o.factory(void 0,s,e,r),n.firstCreatePass&&t>=r.directiveStart&&function Lk(e,n,t){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:s}=n.type.prototype;if(r){const o=Ov(n);(t.preOrderHooks??=[]).push(e,o),(t.preOrderCheckHooks??=[]).push(e,o)}i&&(t.preOrderHooks??=[]).push(0-e,i),s&&((t.preOrderHooks??=[]).push(e,s),(t.preOrderCheckHooks??=[]).push(e,s))}(t,s[t],n)}finally{null!==l&&on(l),Cl(a),o.resolving=!1,tC()}}return i}function pC(e,n,t){return!!(t[n+(e>>cC)]&1<<e)}function mC(e,n){return!(e&ue.Self||e&ue.Host&&n)}class St{constructor(n,t){this._tNode=n,this._lView=t}get(n,t,r){return fC(this._tNode,this._lView,n,Xc(r),t)}}function Yk(){return new St(Ie(),b())}function Lt(e){return Lr(()=>{const n=e.prototype.constructor,t=n[Vr]||Lh(n),r=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){const s=i[Vr]||Lh(i);if(s&&s!==t)return s;i=Object.getPrototypeOf(i)}return s=>new s})}function Lh(e){return Wc(e)?()=>{const n=Lh(W(e));return n&&n()}:Ni(e)}function gC(e){const n=e[I],t=n.type;return 2===t?n.declTNode:1===t?e[Rt]:null}const Qk=ws("Attribute",e=>({attributeName:e,__NG_ELEMENT_ID__:()=>function Dl(e){return function qk(e,n){if("class"===n)return e.classes;if("style"===n)return e.styles;const t=e.attrs;if(t){const r=t.length;let i=0;for(;i<r;){const s=t[i];if(dv(s))break;if(0===s)i+=2;else if("number"==typeof s)for(i++;i<r&&"string"==typeof t[i];)i++;else{if(s===n)return t[i+1];i+=2}}}return null}(Ie(),e)}(e)}));let yC=null;function Sl(e){return _C(function Vh(){return yC=yC||new uk}().parameters(e))}function _C(e){return e.map(n=>function Xk(e){const n={token:null,attribute:null,host:!1,optional:!1,self:!1,skipSelf:!1};if(Array.isArray(e)&&e.length>0)for(let t=0;t<e.length;t++){const r=e[t];if(void 0===r)continue;const i=Object.getPrototypeOf(r);if(r instanceof Qf||"Optional"===i.ngMetadataName)n.optional=!0;else if(r instanceof Xf||"SkipSelf"===i.ngMetadataName)n.skipSelf=!0;else if(r instanceof MN||"Self"===i.ngMetadataName)n.self=!0;else if(r instanceof IN||"Host"===i.ngMetadataName)n.host=!0;else if(r instanceof TN)n.token=r.token;else if(r instanceof Qk){if(void 0===r.attributeName)throw new E(204,!1);n.attribute=r.attributeName}else n.token=r}else n.token=void 0===e||Array.isArray(e)&&0===e.length?null:e;return n}(n))}const eP=Te({provide:String,useValue:Te});function vC(e){return void 0!==e.useClass}function CC(e){return void 0!==e.useFactory}const iP=Q_("Injectable",void 0,void 0,void 0,(e,n)=>function Jk(e,n){let t=null,r=null;e.hasOwnProperty(Kc)||Object.defineProperty(e,Kc,{get:()=>(null===t&&(t=wt().compileInjectable(Sv,`ng:///${e.name}/\u0275prov.js`,function rP(e,n){const t=n||{providedIn:null},r={name:e.name,type:e,typeArgumentCount:0,providedIn:t.providedIn};return(vC(t)||CC(t))&&void 0!==t.deps&&(r.deps=_C(t.deps)),vC(t)?r.useClass=t.useClass:function tP(e){return eP in e}(t)?r.useValue=t.useValue:CC(t)?r.useFactory=t.useFactory:function nP(e){return void 0!==e.useExisting}(t)&&(r.useExisting=t.useExisting),r}(e,n))),t)}),e.hasOwnProperty(Vr)||Object.defineProperty(e,Vr,{get:()=>{if(null===r){const i=wt();r=i.compileFactory(Sv,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,typeArgumentCount:0,deps:Sl(e),target:i.FactoryTarget.Injectable})}return r},configurable:!0})}(e,n));function bC(e,n=null,t=null,r){const i=EC(e,n,t,r);return i.resolveInjectorInitializers(),i}function EC(e,n=null,t=null,r,i=new Set){const s=[t||fe,qN(e)];return r=r||("object"==typeof e?void 0:Ct(e)),new Is(s,n||ol(),r||null,i)}class Ne{static#e=this.THROW_IF_NOT_FOUND=qo;static#t=this.NULL=new tl;static create(n,t){if(Array.isArray(n))return bC({name:""},t,n,"");{const r=n.name??"";return bC({name:r},n.parent,n.providers,r)}}static#n=this.\u0275prov=R({token:Ne,providedIn:"any",factory:()=>k(uv)});static#r=this.__NG_ELEMENT_ID__=-1}new N("").__NG_ELEMENT_ID__=e=>{const n=Ie();if(null===n)throw new E(204,!1);if(2&n.type)return n.value;if(e&ue.Optional)return null;throw new E(204,!1)};function Bh(e){return e.ngOriginalError}const DC=!0;let oa=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=aP;static#t=this.__NG_ENV_ID__=t=>t}return e})();class oP extends oa{constructor(n){super(),this._lView=n}onDestroy(n){return pl(this._lView,n),()=>function bh(e,n){if(null===e[ci])return;const t=e[ci].indexOf(n);-1!==t&&e[ci].splice(t,1)}(this._lView,n)}}function aP(){return new oP(b())}let Hi=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new sx(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const t=this.taskId++;return this.pendingTasks.add(t),t}remove(t){this.pendingTasks.delete(t),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static#e=this.\u0275prov=R({token:e,providedIn:"root",factory:()=>new e})}return e})();const ve=class cP extends kt{constructor(n=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=n,Dv()&&(this.destroyRef=A(oa,{optional:!0})??void 0,this.pendingTasks=A(Hi,{optional:!0})??void 0)}emit(n){const t=q(null);try{super.next(n)}finally{q(t)}}subscribe(n,t,r){let i=n,s=t||(()=>null),o=r;if(n&&"object"==typeof n){const c=n;i=c.next?.bind(c),s=c.error?.bind(c),o=c.complete?.bind(c)}this.__isAsync&&(s=this.wrapInTimeout(s),i&&(i=this.wrapInTimeout(i)),o&&(o=this.wrapInTimeout(o)));const a=super.subscribe({next:i,error:s,complete:o});return n instanceof mn&&n.add(a),a}wrapInTimeout(n){return t=>{const r=this.pendingTasks?.add();setTimeout(()=>{n(t),void 0!==r&&this.pendingTasks?.remove(r)})}}};function Tl(...e){}function SC(e){let n,t;function r(){e=Tl;try{void 0!==t&&"function"==typeof cancelAnimationFrame&&cancelAnimationFrame(t),void 0!==n&&clearTimeout(n)}catch{}}return n=setTimeout(()=>{e(),r()}),"function"==typeof requestAnimationFrame&&(t=requestAnimationFrame(()=>{e(),r()})),()=>r()}function TC(e){return queueMicrotask(()=>e()),()=>{e=Tl}}const jh="isAngularZone",Ml=jh+"_ID";let lP=0;class pe{constructor(n){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);const{enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:s=DC}=n;if(typeof Zone>"u")throw new E(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!i&&r,o.shouldCoalesceRunChangeDetection=i,o.callbackScheduled=!1,o.scheduleInRootZone=s,function fP(e){const n=()=>{!function dP(e){function n(){SC(()=>{e.callbackScheduled=!1,Uh(e),e.isCheckStableRunning=!0,Hh(e),e.isCheckStableRunning=!1})}e.isCheckStableRunning||e.callbackScheduled||(e.callbackScheduled=!0,e.scheduleInRootZone?Zone.root.run(()=>{n()}):e._outer.run(()=>{n()}),Uh(e))}(e)},t=lP++;e._inner=e._inner.fork({name:"angular",properties:{[jh]:!0,[Ml]:t,[Ml+t]:!0},onInvokeTask:(r,i,s,o,a,c)=>{if(function hP(e){return AC(e,"__ignore_ng_zone__")}(c))return r.invokeTask(s,o,a,c);try{return MC(e),r.invokeTask(s,o,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&n(),IC(e)}},onInvoke:(r,i,s,o,a,c,l)=>{try{return MC(e),r.invoke(s,o,a,c,l)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!function pP(e){return AC(e,"__scheduler_tick__")}(c)&&n(),IC(e)}},onHasTask:(r,i,s,o)=>{r.hasTask(s,o),i===s&&("microTask"==o.change?(e._hasPendingMicrotasks=o.microTask,Uh(e),Hh(e)):"macroTask"==o.change&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(r,i,s,o)=>(r.handleError(s,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get(jh)}static assertInAngularZone(){if(!pe.isInAngularZone())throw new E(909,!1)}static assertNotInAngularZone(){if(pe.isInAngularZone())throw new E(909,!1)}run(n,t,r){return this._inner.run(n,t,r)}runTask(n,t,r,i){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+i,n,uP,Tl,Tl);try{return s.runTask(o,t,r)}finally{s.cancelTask(o)}}runGuarded(n,t,r){return this._inner.runGuarded(n,t,r)}runOutsideAngular(n){return this._outer.run(n)}}const uP={};function Hh(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Uh(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&!0===e.callbackScheduled)}function MC(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function IC(e){e._nesting--,Hh(e)}class $h{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ve,this.onMicrotaskEmpty=new ve,this.onStable=new ve,this.onError=new ve}run(n,t,r){return n.apply(t,r)}runGuarded(n,t,r){return n.apply(t,r)}runOutsideAngular(n){return n()}runTask(n,t,r,i){return n.apply(t,r)}}function AC(e,n){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0]?.data?.[n]}class Dr{constructor(){this._console=console}handleError(n){const t=this._findOriginalError(n);this._console.error("ERROR",n),t&&this._console.error("ORIGINAL ERROR",t)}_findOriginalError(n){let t=n&&Bh(n);for(;t&&Bh(t);)t=Bh(t);return t||null}}const gP=new N("",{providedIn:"root",factory:()=>{const e=A(pe),n=A(Dr);return t=>e.runOutsideAngular(()=>n.handleError(t))}});function NC(e,n){return K_(e,n)}const _P=(NC.required=function yP(e){return K_(qc,e)},NC);function vP(){return Bs(Ie(),b())}function Bs(e,n){return new cn(qt(e,n))}let cn=(()=>{class e{constructor(t){this.nativeElement=t}static#e=this.__NG_ELEMENT_ID__=vP}return e})();function ca(e){return!(128&~e.flags)}Symbol;const qh=new Map;let EP=0;function Wh(e){qh.delete(e[Os])}const Il="__ngContext__";function Ut(e,n){Dt(n)?(e[Il]=n[Os],function DP(e){qh.set(e[Os],e)}(n)):e[Il]=n}function UC(e){return GC(e[Ko])}function $C(e){return GC(e[Jn])}function GC(e){for(;null!==e&&!Ht(e);)e=e[Jn];return e}let Yh;function li(){if(void 0!==Yh)return Yh;if(typeof document<"u")return document;throw new E(210,!1)}const Hs=new N("",{providedIn:"root",factory:()=>HP}),HP="ng",XC=new N(""),$r=new N("",{providedIn:"platform",factory:()=>"unknown"}),JC=new N(""),eb=new N("",{providedIn:"root",factory:()=>li().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let tb=()=>null;function np(e,n,t=!1){return tb(e,n,t)}const lb=new N("",{providedIn:"root",factory:()=>!1});let Ll,Vl;function Gs(e){return function ap(){if(void 0===Ll&&(Ll=null,$e.trustedTypes))try{Ll=$e.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Ll}()?.createHTML(e)||e}function fb(e){return function cp(){if(void 0===Vl&&(Vl=null,$e.trustedTypes))try{Vl=$e.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Vl}()?.createHTML(e)||e}class $i{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Z_})`}}class tO extends $i{getTypeName(){return"HTML"}}class nO extends $i{getTypeName(){return"Style"}}class rO extends $i{getTypeName(){return"Script"}}class iO extends $i{getTypeName(){return"URL"}}class sO extends $i{getTypeName(){return"ResourceURL"}}function bn(e){return e instanceof $i?e.changingThisBreaksApplicationSecurity:e}function Sr(e,n){const t=function oO(e){return e instanceof $i&&e.getTypeName()||null}(e);if(null!=t&&t!==n){if("ResourceURL"===t&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${t} (see ${Z_})`)}return t===n}class fO{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n="<body><remove></remove>"+n;try{const t=(new window.DOMParser).parseFromString(Gs(n),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(n):(t.firstChild?.remove(),t)}catch{return null}}}class hO{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const t=this.inertDocument.createElement("template");return t.innerHTML=Gs(n),t}}const mO=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Bl(e){return(e=String(e)).match(mO)?e:"unsafe:"+e}function Gr(e){const n={};for(const t of e.split(","))n[t]=!0;return n}function ma(...e){const n={};for(const t of e)for(const r in t)t.hasOwnProperty(r)&&(n[r]=!0);return n}const gb=Gr("area,br,col,hr,img,wbr"),yb=Gr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),_b=Gr("rp,rt"),lp=ma(gb,ma(yb,Gr("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")),ma(_b,Gr("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")),ma(_b,yb)),up=Gr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),vb=ma(up,Gr("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"),Gr("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")),gO=Gr("script,style,template");class yO{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let t=n.firstChild,r=!0,i=[];for(;t;)if(t.nodeType===Node.ELEMENT_NODE?r=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,r&&t.firstChild)i.push(t),t=CO(t);else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let s=vO(t);if(s){t=s;break}t=i.pop()}return this.buf.join("")}startElement(n){const t=Cb(n).toLowerCase();if(!lp.hasOwnProperty(t))return this.sanitizedSomething=!0,!gO.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const r=n.attributes;for(let i=0;i<r.length;i++){const s=r.item(i),o=s.name,a=o.toLowerCase();if(!vb.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let c=s.value;up[a]&&(c=Bl(c)),this.buf.push(" ",o,'="',Eb(c),'"')}return this.buf.push(">"),!0}endElement(n){const t=Cb(n).toLowerCase();lp.hasOwnProperty(t)&&!gb.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(n){this.buf.push(Eb(n))}}function vO(e){const n=e.nextSibling;if(n&&e!==n.previousSibling)throw bb(n);return n}function CO(e){const n=e.firstChild;if(n&&function _O(e,n){return(e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(e,n))throw bb(n);return n}function Cb(e){const n=e.nodeName;return"string"==typeof n?n:"FORM"}function bb(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}const bO=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,EO=/([^\#-~ |!])/g;function Eb(e){return e.replace(/&/g,"&amp;").replace(bO,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(EO,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let jl;function wb(e,n){let t=null;try{jl=jl||function mb(e){const n=new hO(e);return function pO(){try{return!!(new window.DOMParser).parseFromString(Gs(""),"text/html")}catch{return!1}}()?new fO(n):n}(e);let r=n?String(n):"";t=jl.getInertBodyElement(r);let i=5,s=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=s,s=t.innerHTML,t=jl.getInertBodyElement(r)}while(r!==s);return Gs((new yO).sanitizeChildren(dp(t)||t))}finally{if(t){const r=dp(t)||t;for(;r.firstChild;)r.firstChild.remove()}}}function dp(e){return"content"in e&&function wO(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var En=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(En||{});function Tr(e){const n=ya();return n?fb(n.sanitize(En.HTML,e)||""):Sr(e,"HTML")?fb(bn(e)):wb(li(),X(e))}function ga(e){const n=ya();return n?n.sanitize(En.URL,e)||"":Sr(e,"URL")?bn(e):Bl(X(e))}function ya(){const e=b();return e&&e[vr].sanitizer}const xO=/^>|^->|<!--|-->|--!>|<!-$/g,NO=/(<|>)/g,kO="\u200b$1\u200b";function Ab(e){return e.ownerDocument}var ui=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(ui||{});let pp;function mp(e,n){return pp(e,n)}function qs(e,n,t,r,i){if(null!=r){let s,o=!1;Ht(r)?s=r:Dt(r)&&(o=!0,r=r[qe]);const a=he(r);0===e&&null!==t?null==i?Vb(n,t,a):Gi(n,t,a,i||null,!0):1===e&&null!==t?Gi(n,t,a,i||null,!0):2===e?function va(e,n,t){e.removeChild(null,n,t)}(n,a,o):3===e&&n.destroyNode(a),null!=s&&function QO(e,n,t,r,i){const s=t[Cr];s!==he(t)&&qs(n,e,r,s,i);for(let a=rt;a<t.length;a++){const c=t[a];ql(c[I],c,e,n,r,s)}}(n,e,s,t,i)}}function yp(e,n){return e.createComment(function Sb(e){return e.replace(xO,n=>n.replace(NO,kO))}(n))}function $l(e,n,t){return e.createElement(n,t)}function Rb(e,n){n[vr].changeDetectionScheduler?.notify(9),ql(e,n,n[Y],2,null,null)}function Fb(e,n){const t=e[Rs],r=n[pt];(Dt(r)||n[We]!==r[pt][We])&&(e[H]|=ul.HasTransplantedViews),null===t?e[Rs]=[n]:t.push(n)}function _p(e,n){const t=e[Rs],r=t.indexOf(n);t.splice(r,1)}function _a(e,n){if(e.length<=rt)return;const t=rt+n,r=e[t];if(r){const i=r[Oi];null!==i&&i!==e&&_p(i,r),n>0&&(e[t-1][Jn]=r[Jn]);const s=Jc(e,rt+n);!function $O(e,n){Rb(e,n),n[qe]=null,n[Rt]=null}(r[I],r);const o=s[Br];null!==o&&o.detachView(s[I]),r[pt]=null,r[Jn]=null,r[H]&=-129}return r}function Gl(e,n){if(!(256&n[H])){const t=n[Y];t.destroyNode&&ql(e,n,t,3,null,null),function zO(e){let n=e[Ko];if(!n)return vp(e[I],e);for(;n;){let t=null;if(Dt(n))t=n[Ko];else{const r=n[rt];r&&(t=r)}if(!t){for(;n&&!n[Jn]&&n!==e;)Dt(n)&&vp(n[I],n),n=n[pt];null===n&&(n=e),Dt(n)&&vp(n[I],n),t=n&&n[Jn]}n=t}}(n)}}function vp(e,n){if(256&n[H])return;const t=q(null);try{n[H]&=-129,n[H]|=256,n[Ln]&&mf(n[Ln]),function ZO(e,n){let t;if(null!=e&&null!=(t=e.destroyHooks))for(let r=0;r<t.length;r+=2){const i=n[t[r]];if(!(i instanceof ra)){const s=t[r+1];if(Array.isArray(s))for(let o=0;o<s.length;o+=2){const a=i[s[o]],c=s[o+1];br(4,a,c);try{c.call(a)}finally{br(5,a,c)}}else{br(4,i,s);try{s.call(i)}finally{br(5,i,s)}}}}}(e,n),function WO(e,n){const t=e.cleanup,r=n[Ns];if(null!==t)for(let s=0;s<t.length-1;s+=2)if("string"==typeof t[s]){const o=t[s+3];o>=0?r[o]():r[-o].unsubscribe(),s+=2}else t[s].call(r[t[s+1]]);null!==r&&(n[Ns]=null);const i=n[ci];if(null!==i){n[ci]=null;for(let s=0;s<i.length;s++)(0,i[s])()}}(e,n),1===n[I].type&&n[Y].destroy();const r=n[Oi];if(null!==r&&Ht(n[pt])){r!==n[pt]&&_p(r,n);const i=n[Br];null!==i&&i.detachView(e)}Wh(n)}finally{q(t)}}function Cp(e,n,t){return function Lb(e,n,t){let r=n;for(;null!==r&&168&r.type;)r=(n=r).parent;if(null===r)return t[qe];{const{componentOffset:i}=r;if(i>-1){const{encapsulation:s}=e.data[r.directiveStart+i];if(s===Qn.None||s===Qn.Emulated)return null}return qt(r,t)}}(e,n.parent,t)}function Gi(e,n,t,r,i){e.insertBefore(n,t,r,i)}function Vb(e,n,t){e.appendChild(n,t)}function Bb(e,n,t,r,i){null!==r?Gi(e,n,t,r,i):Vb(e,n,t)}function bp(e,n){return e.parentNode(n)}function jb(e,n,t){return Ub(e,n,t)}let Ep,Ub=function Hb(e,n,t){return 40&e.type?qt(e,t):null};function zl(e,n,t,r){const i=Cp(e,r,n),s=n[Y],a=jb(r.parent||n[Rt],r,n);if(null!=i)if(Array.isArray(t))for(let c=0;c<t.length;c++)Bb(s,i,t[c],a,!1);else Bb(s,i,t,a,!1);void 0!==Ep&&Ep(s,r,n,t,i)}function zi(e,n){if(null!==n){const t=n.type;if(3&t)return qt(n,e);if(4&t)return wp(-1,e[n.index]);if(8&t){const r=n.child;if(null!==r)return zi(e,r);{const i=e[n.index];return Ht(i)?wp(-1,i):he(i)}}if(128&t)return zi(e,n.next);if(32&t)return mp(n,e)()||he(e[n.index]);{const r=Gb(e,n);return null!==r?Array.isArray(r)?r[0]:zi(jr(e[We]),r):zi(e,n.next)}}return null}function Gb(e,n){return null!==n?e[We][Rt].projection[n.projection]:null}function wp(e,n){const t=rt+e+1;if(t<n.length){const r=n[t],i=r[I].firstChild;if(null!==i)return zi(r,i)}return n[Cr]}function Dp(e,n,t,r,i,s,o){for(;null!=t;){if(128===t.type){t=t.next;continue}const a=r[t.index],c=t.type;if(o&&0===n&&(a&&Ut(he(a),r),t.flags|=2),32&~t.flags)if(8&c)Dp(e,n,t.child,r,i,s,!1),qs(n,e,i,a,s);else if(32&c){const l=mp(t,r);let u;for(;u=l();)qs(n,e,i,u,s);qs(n,e,i,a,s)}else 16&c?qb(e,n,r,t,i,s):qs(n,e,i,a,s);t=o?t.projectionNext:t.next}}function ql(e,n,t,r,i,s){Dp(t,r,e.firstChild,n,i,s,!1)}function qb(e,n,t,r,i,s){const o=t[We],c=o[Rt].projection[r.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++)qs(n,e,i,c[l],s);else{let l=c;const u=o[pt];ca(r)&&(l.flags|=128),Dp(e,n,l,u,i,s,!0)}}function Wb(e,n,t){""===t?e.removeAttribute(n,"class"):e.setAttribute(n,"class",t)}function Zb(e,n,t){const{mergedAttrs:r,classes:i,styles:s}=t;null!==r&&nh(e,n,r),null!==i&&Wb(e,n,i),null!==s&&function JO(e,n,t){e.setAttribute(n,"style",t)}(e,n,s)}const J={};function C(e=1){Yb(oe(),b(),Ft()+e,!1)}function Yb(e,n,t,r){if(!r)if(3&~n[H]){const s=e.preOrderHooks;null!==s&&vl(n,s,0,t)}else{const s=e.preOrderCheckHooks;null!==s&&_l(n,s,t)}Vi(t)}function v(e,n=ue.Default){const t=b();return null===t?k(e,n):fC(Ie(),t,W(e),n)}function Kb(e,n,t,r,i,s){const o=q(null);try{let a=null;i&ai.SignalBased&&(a=n[r][Qe]),null!==a&&void 0!==a.transformFn&&(s=a.transformFn(s)),i&ai.HasDecoratorInputTransform&&(s=e.inputTransforms[r].call(n,s)),null!==e.setInput?e.setInput(n,a,s,t,r):Pv(n,a,r,s)}finally{q(o)}}function Wl(e,n,t,r,i,s,o,a,c,l,u){const d=n.blueprint.slice();return d[qe]=i,d[H]=204|r,(null!==l||e&&2048&e[H])&&(d[H]|=2048),Bv(d),d[pt]=d[ks]=e,d[Ve]=t,d[vr]=o||e&&e[vr],d[Y]=a||e&&e[Y],d[mt]=c||e&&e[mt]||null,d[Rt]=s,d[Os]=function wP(){return EP++}(),d[zt]=u,d[Mv]=l,d[We]=2==n.type?e[We]:d,d}function qi(e,n,t,r,i){let s=e.data[n];if(null===s)s=function Sp(e,n,t,r,i){const s=Gv(),o=wh(),c=e.data[n]=function cR(e,n,t,r,i,s){let o=n?n.injectorIndex:-1,a=0;return Li()&&(a|=128),{type:t,index:r,insertBeforeIndex:null,injectorIndex:o,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?s:s&&s.parent,t,n,r,i);return null===e.firstChild&&(e.firstChild=c),null!==s&&(o?null==s.child&&null!==c.parent&&(s.child=c):null===s.next&&(s.next=c,c.prev=s)),c}(e,n,t,r,i),function Ik(){return K.lFrame.inI18n}()&&(s.flags|=32);else if(64&s.type){s.type=t,s.value=r,s.attrs=i;const o=function ta(){const e=K.lFrame,n=e.currentTNode;return e.isParent?n:n.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return nr(s,!0),s}function Ca(e,n,t,r){if(0===t)return-1;const i=n.length;for(let s=0;s<t;s++)n.push(r),e.blueprint.push(r),e.data.push(null);return i}function Qb(e,n,t,r,i){const s=Ft(),o=2&r;try{Vi(-1),o&&n.length>V&&Yb(e,n,V,!1),br(o?2:0,i),t(r,i)}finally{Vi(s),br(o?3:1,i)}}function Tp(e,n,t){if(ph(n)){const r=q(null);try{const s=n.directiveEnd;for(let o=n.directiveStart;o<s;o++){const a=e.data[o];a.contentQueries&&a.contentQueries(1,t[o],o)}}finally{q(r)}}}function Mp(e,n,t){$v()&&(function mR(e,n,t,r){const i=t.directiveStart,s=t.directiveEnd;Ri(t)&&function ER(e,n,t){const r=qt(n,e),i=Xb(t);let o=16;t.signals?o=4096:t.onPush&&(o=64);const a=Zl(e,Wl(e,i,null,o,r,n,null,e[vr].rendererFactory.createRenderer(r,t),null,null,null));e[n.index]=a}(n,t,e.data[i+t.componentOffset]),e.firstCreatePass||bl(t,n),Ut(r,n);const o=t.initialInputs;for(let a=i;a<s;a++){const c=e.data[a],l=ji(n,e,a,t);Ut(l,n),null!==o&&wR(0,a-i,l,c,0,o),er(c)&&(Cn(t.index,n)[Ve]=ji(n,e,a,t))}}(e,n,t,qt(t,n)),!(64&~t.flags)&&rE(e,n,t))}function Ip(e,n,t=qt){const r=n.localNames;if(null!==r){let i=n.index+1;for(let s=0;s<r.length;s+=2){const o=r[s+1],a=-1===o?t(n,e):e[o];e[i++]=a}}}function Xb(e){const n=e.tView;return null===n||n.incompleteFirstPass?e.tView=Ap(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):n}function Ap(e,n,t,r,i,s,o,a,c,l,u){const d=V+r,f=d+i,h=function nR(e,n){const t=[];for(let r=0;r<n;r++)t.push(r<e?null:J);return t}(d,f),p="function"==typeof l?l():l;return h[I]={type:e,blueprint:h,template:t,queries:null,viewQuery:a,declTNode:n,data:h.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:f,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:"function"==typeof s?s():s,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:c,consts:p,incompleteFirstPass:!1,ssrId:u}}let Jb=()=>null;function eE(e,n,t,r,i){for(let s in n){if(!n.hasOwnProperty(s))continue;const o=n[s];if(void 0===o)continue;r??={};let a,c=ai.None;Array.isArray(o)?(a=o[0],c=o[1]):a=o;let l=s;if(null!==i){if(!i.hasOwnProperty(s))continue;l=i[s]}0===e?tE(r,t,l,a,c):tE(r,t,l,a)}return r}function tE(e,n,t,r,i){let s;e.hasOwnProperty(t)?(s=e[t]).push(n,r):s=e[t]=[n,r],void 0!==i&&s.push(i)}function un(e,n,t,r,i,s,o,a){const c=qt(n,t);let u,l=n.inputs;!a&&null!=l&&(u=l[r])?(Op(e,t,u,r,i),Ri(n)&&function dR(e,n){const t=Cn(n,e);16&t[H]||(t[H]|=64)}(t,n.index)):3&n.type&&(r=function uR(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),i=null!=o?o(i,n.value||"",r):i,s.setProperty(c,r,i))}function xp(e,n,t,r){if($v()){const i=null===r?null:{"":-1},s=function yR(e,n){const t=e.directiveRegistry;let r=null,i=null;if(t)for(let s=0;s<t.length;s++){const o=t[s];if(mv(n,o.selectors,!1))if(r||(r=[]),er(o))if(null!==o.findHostDirectiveDefs){const a=[];i=i||new Map,o.findHostDirectiveDefs(o,a,i),r.unshift(...a,o),Np(e,n,a.length)}else r.unshift(o),Np(e,n,0);else i=i||new Map,o.findHostDirectiveDefs?.(o,r,i),r.push(o)}return null===r?null:[r,i]}(e,t);let o,a;null===s?o=a=null:[o,a]=s,null!==o&&nE(e,n,t,o,i,a),i&&function _R(e,n,t){if(n){const r=e.localNames=[];for(let i=0;i<n.length;i+=2){const s=t[n[i+1]];if(null==s)throw new E(-301,!1);r.push(n[i],s)}}}(t,r,i)}t.mergedAttrs=Zo(t.mergedAttrs,t.attrs)}function nE(e,n,t,r,i,s){for(let l=0;l<r.length;l++)Fh(bl(t,n),e,r[l].type);!function CR(e,n,t){e.flags|=1,e.directiveStart=n,e.directiveEnd=n+t,e.providerIndexes=n}(t,e.data.length,r.length);for(let l=0;l<r.length;l++){const u=r[l];u.providersResolver&&u.providersResolver(u)}let o=!1,a=!1,c=Ca(e,n,r.length,null);for(let l=0;l<r.length;l++){const u=r[l];t.mergedAttrs=Zo(t.mergedAttrs,u.hostAttrs),bR(e,t,n,c,u),vR(c,u,i),null!==u.contentQueries&&(t.flags|=4),(null!==u.hostBindings||null!==u.hostAttrs||0!==u.hostVars)&&(t.flags|=64);const d=u.type.prototype;!o&&(d.ngOnChanges||d.ngOnInit||d.ngDoCheck)&&((e.preOrderHooks??=[]).push(t.index),o=!0),!a&&(d.ngOnChanges||d.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(t.index),a=!0),c++}!function lR(e,n,t){const i=n.directiveEnd,s=e.data,o=n.attrs,a=[];let c=null,l=null;for(let u=n.directiveStart;u<i;u++){const d=s[u],f=t?t.get(d):null,p=f?f.outputs:null;c=eE(0,d.inputs,u,c,f?f.inputs:null),l=eE(1,d.outputs,u,l,p);const m=null===c||null===o||rh(n)?null:DR(c,u,o);a.push(m)}null!==c&&(c.hasOwnProperty("class")&&(n.flags|=8),c.hasOwnProperty("style")&&(n.flags|=16)),n.initialInputs=a,n.inputs=c,n.outputs=l}(e,t,s)}function rE(e,n,t){const r=t.directiveStart,i=t.directiveEnd,s=t.index,o=function xk(){return K.lFrame.currentDirectiveIndex}();try{Vi(s);for(let a=r;a<i;a++){const c=e.data[a],l=n[a];Sh(a),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&gR(c,l)}}finally{Vi(-1),Sh(o)}}function gR(e,n){null!==e.hostBindings&&e.hostBindings(1,n)}function Np(e,n,t){n.componentOffset=t,(e.components??=[]).push(n.index)}function vR(e,n,t){if(t){if(n.exportAs)for(let r=0;r<n.exportAs.length;r++)t[n.exportAs[r]]=e;er(n)&&(t[""]=e)}}function bR(e,n,t,r,i){e.data[r]=i;const s=i.factory||(i.factory=Ni(i.type)),o=new ra(s,er(i),v);e.blueprint[r]=o,t[r]=o,function hR(e,n,t,r,i){const s=i.hostBindings;if(s){let o=e.hostBindingOpCodes;null===o&&(o=e.hostBindingOpCodes=[]);const a=~n.index;(function pR(e){let n=e.length;for(;n>0;){const t=e[--n];if("number"==typeof t&&t<0)return t}return 0})(o)!=a&&o.push(a),o.push(t,r,s)}}(e,n,r,Ca(e,t,i.hostVars,J),i)}function Mr(e,n,t,r,i,s){const o=qt(e,n);!function kp(e,n,t,r,i,s,o){if(null==s)e.removeAttribute(n,i,t);else{const a=null==o?X(s):o(s,r||"",i);e.setAttribute(n,i,a,t)}}(n[Y],o,s,e.value,t,r,i)}function wR(e,n,t,r,i,s){const o=s[n];if(null!==o)for(let a=0;a<o.length;)Kb(r,t,o[a++],o[a++],o[a++],o[a++])}function DR(e,n,t){let r=null,i=0;for(;i<t.length;){const s=t[i];if(0!==s)if(5!==s){if("number"==typeof s)break;if(e.hasOwnProperty(s)){null===r&&(r=[]);const o=e[s];for(let a=0;a<o.length;a+=3)if(o[a]===n){r.push(s,o[a+1],o[a+2],t[i+1]);break}}i+=2}else i+=2;else i+=4}return r}function iE(e,n,t,r){return[e,!0,0,n,null,r,null,t,null,null]}function sE(e,n){const t=e.contentQueries;if(null!==t){const r=q(null);try{for(let i=0;i<t.length;i+=2){const o=t[i+1];if(-1!==o){const a=e.data[o];gl(t[i]),a.contentQueries(2,n[o],o)}}}finally{q(r)}}}function Zl(e,n){return e[Ko]?e[Tv][Jn]=n:e[Ko]=n,e[Tv]=n,n}function Pp(e,n,t){gl(0);const r=q(null);try{n(e,t)}finally{q(r)}}function cE(e,n,t){return(null===e||er(e))&&(t=function _h(e){for(;Array.isArray(e);){if("object"==typeof e[hh])return e;e=e[qe]}return null}(t[n.index])),t[Y]}function Yl(e,n){const t=e[mt],r=t?t.get(Dr,null):null;r&&r.handleError(n)}function Op(e,n,t,r,i){for(let s=0;s<t.length;){const o=t[s++],a=t[s++],c=t[s++];Kb(e.data[o],n[o],r,a,c,i)}}function SR(e,n){const t=Cn(n,e),r=t[I];!function TR(e,n){for(let t=n.length;t<e.blueprint.length;t++)n.push(e.blueprint[t])}(r,t);const i=t[qe];null!==i&&null===t[zt]&&(t[zt]=np(i,t[mt])),Rp(r,t,t[Ve])}function Rp(e,n,t){Ih(n);try{const r=e.viewQuery;null!==r&&Pp(1,r,t);const i=e.template;null!==i&&Qb(e,n,i,1,t),e.firstCreatePass&&(e.firstCreatePass=!1),n[Br]?.finishViewCreation(e),e.staticContentQueries&&sE(e,n),e.staticViewQueries&&Pp(2,e.viewQuery,t);const s=e.components;null!==s&&function MR(e,n){for(let t=0;t<n.length;t++)SR(e,n[t])}(n,s)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{n[H]&=-5,Ah()}}function Ws(e,n,t,r){const i=q(null);try{const s=n.tView,c=Wl(e,s,t,4096&e[H]?4096:16,null,n,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null);c[Oi]=e[n.index];const u=e[Br];return null!==u&&(c[Br]=u.createEmbeddedView(s)),Rp(s,c,t),c}finally{q(i)}}function lE(e,n){const t=rt+n;if(t<e.length)return e[t]}function Wi(e,n){return!n||null===n.firstChild||ca(e)}function Zs(e,n,t,r=!0){const i=n[I];if(function qO(e,n,t,r){const i=rt+r,s=t.length;r>0&&(t[i-1][Jn]=n),r<s-rt?(n[Jn]=t[i],av(t,rt+r,n)):(t.push(n),n[Jn]=null),n[pt]=t;const o=n[Oi];null!==o&&t!==o&&Fb(o,n);const a=n[Br];null!==a&&a.insertView(e),Ch(n),n[H]|=128}(i,n,e,t),r){const o=wp(t,e),a=n[Y],c=bp(a,e[Cr]);null!==c&&function GO(e,n,t,r,i,s){r[qe]=i,r[Rt]=n,ql(e,r,t,1,i,s)}(i,e[Rt],a,n,c,o)}const s=n[zt];null!==s&&null!==s.firstChild&&(s.firstChild=null)}function Fp(e,n){const t=_a(e,n);return void 0!==t&&Gl(t[I],t),t}function ba(e,n,t,r,i=!1){for(;null!==t;){if(128===t.type){t=i?t.projectionNext:t.next;continue}const s=n[t.index];null!==s&&r.push(he(s)),Ht(s)&&uE(s,r);const o=t.type;if(8&o)ba(e,n,t.child,r);else if(32&o){const a=mp(t,n);let c;for(;c=a();)r.push(c)}else if(16&o){const a=Gb(n,t);if(Array.isArray(a))r.push(...a);else{const c=jr(n[We]);ba(c[I],c,a,r,!0)}}t=i?t.projectionNext:t.next}return r}function uE(e,n){for(let t=rt;t<e.length;t++){const r=e[t],i=r[I].firstChild;null!==i&&ba(r[I],r,i,n)}e[Cr]!==e[qe]&&n.push(e[Cr])}let dE=[];const NR={...Nt,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{hl(e.lView)},consumerOnSignalRead(){this.lView[Ln]=this}},PR={...Nt,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let n=jr(e.lView);for(;n&&!fE(n[I]);)n=jr(n);n&&jv(n)},consumerOnSignalRead(){this.lView[Ln]=this}};function fE(e){return 2!==e.type}const OR=100;function Kl(e,n=!0,t=0){const r=e[vr],i=r.rendererFactory;i.begin?.();try{!function RR(e,n){const t=Wv();try{Zv(!0),Lp(e,n);let r=0;for(;fl(e);){if(r===OR)throw new E(103,!1);r++,Lp(e,1)}}finally{Zv(t)}}(e,t)}catch(o){throw n&&Yl(e,o),o}finally{i.end?.(),r.inlineEffectRunner?.flush()}}function FR(e,n,t,r){const i=n[H];if(!(256&~i))return;n[vr].inlineEffectRunner?.flush(),Ih(n);let a=!0,c=null,l=null;fE(e)?(l=function IR(e){return e[Ln]??function AR(e){const n=dE.pop()??Object.create(NR);return n.lView=e,n}(e)}(n),c=ut(l)):null===function It(){return ye}()?(a=!1,l=function kR(e){const n=e[Ln]??Object.create(PR);return n.lView=e,n}(n),c=ut(l)):n[Ln]&&(mf(n[Ln]),n[Ln]=null);try{Bv(n),function Yv(e){return K.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==t&&Qb(e,n,t,2,r);const u=!(3&~i);if(u){const h=e.preOrderCheckHooks;null!==h&&_l(n,h,null)}else{const h=e.preOrderHooks;null!==h&&vl(n,h,0,null),xh(n,0)}if(function LR(e){for(let n=UC(e);null!==n;n=$C(n)){if(!(n[H]&ul.HasTransplantedViews))continue;const t=n[Rs];for(let r=0;r<t.length;r++)jv(t[r])}}(n),pE(n,0),null!==e.contentQueries&&sE(e,n),u){const h=e.contentCheckHooks;null!==h&&_l(n,h)}else{const h=e.contentHooks;null!==h&&vl(n,h,1),xh(n,1)}!function tR(e,n){const t=e.hostBindingOpCodes;if(null!==t)try{for(let r=0;r<t.length;r++){const i=t[r];if(i<0)Vi(~i);else{const s=i,o=t[++r],a=t[++r];Ak(o,s),a(2,n[s])}}}finally{Vi(-1)}}(e,n);const d=e.components;null!==d&&gE(n,d,0);const f=e.viewQuery;if(null!==f&&Pp(2,f,r),u){const h=e.viewCheckHooks;null!==h&&_l(n,h)}else{const h=e.viewHooks;null!==h&&vl(n,h,2),xh(n,2)}if(!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),n[cl]){for(const h of n[cl])h();n[cl]=null}n[H]&=-73}catch(u){throw hl(n),u}finally{null!==l&&(Rn(l,c),a&&function xR(e){e.lView[Ln]!==e&&(e.lView=null,dE.push(e))}(l)),Ah()}}function pE(e,n){for(let t=UC(e);null!==t;t=$C(t))for(let r=rt;r<t.length;r++)mE(t[r],n)}function VR(e,n,t){mE(Cn(n,e),t)}function mE(e,n){vh(e)&&Lp(e,n)}function Lp(e,n){const r=e[I],i=e[H],s=e[Ln];let o=!!(0===n&&16&i);if(o||=!!(64&i&&0===n),o||=!!(1024&i),o||=!(!s?.dirty||!Fr(s)),o||=!1,s&&(s.dirty=!1),e[H]&=-9217,o)FR(r,e,r.template,e[Ve]);else if(8192&i){pE(e,1);const a=r.components;null!==a&&gE(e,a,1)}}function gE(e,n,t){for(let r=0;r<n.length;r++)VR(e,n[r],t)}function Ea(e,n){const t=Wv()?64:1088;for(e[vr].changeDetectionScheduler?.notify(n);e;){e[H]|=t;const r=jr(e);if(Xo(e)&&!r)return e;e=r}return null}class wa{get rootNodes(){const n=this._lView,t=n[I];return ba(t,n,t.firstChild,[])}constructor(n,t,r=!0){this._lView=n,this._cdRefInjectingView=t,this.notifyErrorHandler=r,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[Ve]}set context(n){this._lView[Ve]=n}get destroyed(){return!(256&~this._lView[H])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[pt];if(Ht(n)){const t=n[8],r=t?t.indexOf(this):-1;r>-1&&(_a(n,r),Jc(t,r))}this._attachedToViewContainer=!1}Gl(this._lView[I],this._lView)}onDestroy(n){pl(this._lView,n)}markForCheck(){Ea(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[H]&=-129}reattach(){Ch(this._lView),this._lView[H]|=128}detectChanges(){this._lView[H]|=1024,Kl(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new E(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;const n=Xo(this._lView),t=this._lView[Oi];null!==t&&!n&&_p(t,this._lView),Rb(this._lView[I],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new E(902,!1);this._appRef=n;const t=Xo(this._lView),r=this._lView[Oi];null!==r&&!t&&Fb(r,this._lView),Ch(this._lView)}}let Ir=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=HR}return e})();const BR=Ir,jR=class extends BR{constructor(n,t,r){super(),this._declarationLView=n,this._declarationTContainer=t,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,t){return this.createEmbeddedViewImpl(n,t)}createEmbeddedViewImpl(n,t,r){const i=Ws(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:t,dehydratedView:r});return new wa(i)}};function HR(){return Ql(Ie(),b())}function Ql(e,n){return 4&e.type?new jR(n,e,Bs(e,n)):null}let LE=()=>null;function Yi(e,n){return LE(e,n)}class Ks{}const Na=new N("",{providedIn:"root",factory:()=>!1}),VE=new N(""),Zp=new N("");class PF{}class BE{}class RF{resolveComponentFactory(n){throw function OF(e){const n=Error(`No component factory found for ${Ct(e)}.`);return n.ngComponent=e,n}(n)}}class Ki{static#e=this.NULL=new RF}class ru{}let Ar=(()=>{class e{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function FF(){const e=b(),t=Cn(Ie().index,e);return(Dt(t)?t:e)[Y]}()}return e})(),LF=(()=>{class e{static#e=this.\u0275prov=R({token:e,providedIn:"root",factory:()=>null})}return e})();function su(e,n,t){let r=t?e.styles:null,i=t?e.classes:null,s=0;if(null!==n)for(let o=0;o<n.length;o++){const a=n[o];"number"==typeof a?s=a:1==s?i=Vf(i,a):2==s&&(r=Vf(r,a+": "+n[++o]+";"))}t?e.styles=r:e.stylesWithoutHost=r,t?e.classes=i:e.classesWithoutHost=i}class $E extends Ki{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const t=ae(n);return new Oa(t,this.ngModule)}}function GE(e,n){const t=[];for(const r in e){if(!e.hasOwnProperty(r))continue;const i=e[r];if(void 0===i)continue;const s=Array.isArray(i),o=s?i[0]:i;t.push(n?{propName:o,templateName:r,isSignal:!!((s?i[1]:ai.None)&ai.SignalBased)}:{propName:o,templateName:r})}return t}class Oa extends BE{get inputs(){const n=this.componentDef,t=n.inputTransforms,r=GE(n.inputs,!0);if(null!==t)for(const i of r)t.hasOwnProperty(i.propName)&&(i.transform=t[i.propName]);return r}get outputs(){return GE(this.componentDef.outputs,!1)}constructor(n,t){super(),this.componentDef=n,this.ngModule=t,this.componentType=n.type,this.selector=function jN(e){return e.map(BN).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!t}create(n,t,r,i){const s=q(null);try{let o=(i=i||this.ngModule)instanceof Fn?i:i?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const a=o?new Bi(n,o):n,c=a.get(ru,null);if(null===c)throw new E(407,!1);const d={rendererFactory:c,sanitizer:a.get(LF,null),inlineEffectRunner:null,changeDetectionScheduler:a.get(Ks,null)},f=c.createRenderer(null,this.componentDef),h=this.componentDef.selectors[0][0]||"div",p=r?function rR(e,n,t,r){const s=r.get(lb,!1)||t===Qn.ShadowDom,o=e.selectRootElement(n,s);return function iR(e){Jb(e)}(o),o}(f,r,this.componentDef.encapsulation,a):$l(f,h,function jF(e){const n=e.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(h));let m=512;this.componentDef.signals?m|=4096:this.componentDef.onPush||(m|=16);let g=null;null!==p&&(g=np(p,a,!0));const _=Ap(0,null,null,1,0,null,null,null,null,null,null),y=Wl(null,_,null,m,null,null,d,f,a,null,g);Ih(y);let w,D,M=null;try{const F=this.componentDef;let j,L=null;F.findHostDirectiveDefs?(j=[],L=new Map,F.findHostDirectiveDefs(F,j,L),j.push(F)):j=[F];const Ye=function UF(e,n){const t=e[I],r=V;return e[r]=n,qi(t,r,2,"#host",null)}(y,p);M=function $F(e,n,t,r,i,s,o){const a=i[I];!function GF(e,n,t,r){for(const i of e)n.mergedAttrs=Zo(n.mergedAttrs,i.hostAttrs);null!==n.mergedAttrs&&(su(n,n.mergedAttrs,!0),null!==t&&Zb(r,t,n))}(r,e,n,o);let c=null;null!==n&&(c=np(n,i[mt]));const l=s.rendererFactory.createRenderer(n,t);let u=16;t.signals?u=4096:t.onPush&&(u=64);const d=Wl(i,Xb(t),null,u,i[e.index],e,s,l,null,null,c);return a.firstCreatePass&&Np(a,e,r.length-1),Zl(i,d),i[e.index]=d}(Ye,p,F,j,y,d,f),D=ea(_,V),p&&function qF(e,n,t,r){if(r)nh(e,t,["ng-version","18.2.3"]);else{const{attrs:i,classes:s}=function HN(e){const n=[],t=[];let r=1,i=2;for(;r<e.length;){let s=e[r];if("string"==typeof s)2===i?""!==s&&n.push(s,e[++r]):8===i&&t.push(s);else{if(!Xn(i))break;i=s}r++}return{attrs:n,classes:t}}(n.selectors[0]);i&&nh(e,t,i),s&&s.length>0&&Wb(e,t,s.join(" "))}}(f,F,p,r),void 0!==t&&function WF(e,n,t){const r=e.projection=[];for(let i=0;i<n.length;i++){const s=t[i];r.push(null!=s?Array.from(s):null)}}(D,this.ngContentSelectors,t),w=function zF(e,n,t,r,i,s){const o=Ie(),a=i[I],c=qt(o,i);nE(a,i,o,t,null,r);for(let u=0;u<t.length;u++)Ut(ji(i,a,o.directiveStart+u,o),i);rE(a,i,o),c&&Ut(c,i);const l=ji(i,a,o.directiveStart+o.componentOffset,o);if(e[Ve]=i[Ve]=l,null!==s)for(const u of s)u(l,n);return Tp(a,o,i),l}(M,F,j,L,y,[ZF]),Rp(_,y,null)}catch(F){throw null!==M&&Wh(M),Wh(y),F}finally{Ah()}return new HF(this.componentType,w,Bs(D,y),y,D)}finally{q(s)}}}class HF extends PF{constructor(n,t,r,i,s){super(),this.location=r,this._rootLView=i,this._tNode=s,this.previousInputValues=null,this.instance=t,this.hostView=this.changeDetectorRef=new wa(i,void 0,!1),this.componentType=n}setInput(n,t){const r=this._tNode.inputs;let i;if(null!==r&&(i=r[n])){if(this.previousInputValues??=new Map,this.previousInputValues.has(n)&&Object.is(this.previousInputValues.get(n),t))return;const s=this._rootLView;Op(s[I],s,i,n,t),this.previousInputValues.set(n,t),Ea(Cn(this._tNode.index,s),1)}}get injector(){return new St(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}function ZF(){const e=Ie();yl(b()[I],e)}let ir=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=YF}return e})();function YF(){return function WE(e,n){let t;const r=n[e.index];return Ht(r)?t=r:(t=iE(r,n,null,e),n[e.index]=t,Zl(n,t)),ZE(t,n,e,r),new zE(t,e,n)}(Ie(),b())}const KF=ir,zE=class extends KF{constructor(n,t,r){super(),this._lContainer=n,this._hostTNode=t,this._hostLView=r}get element(){return Bs(this._hostTNode,this._hostLView)}get injector(){return new St(this._hostTNode,this._hostLView)}get parentInjector(){const n=El(this._hostTNode,this._hostLView);if(Ph(n)){const t=sa(n,this._hostLView),r=ia(n);return new St(t[I].data[r+8],t)}return new St(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const t=qE(this._lContainer);return null!==t&&t[n]||null}get length(){return this._lContainer.length-rt}createEmbeddedView(n,t,r){let i,s;"number"==typeof r?i=r:null!=r&&(i=r.index,s=r.injector);const o=Yi(this._lContainer,n.ssrId),a=n.createEmbeddedViewImpl(t||{},s,o);return this.insertImpl(a,i,Wi(this._hostTNode,o)),a}createComponent(n,t,r,i,s){const o=n&&!Yo(n);let a;if(o)a=t;else{const p=t||{};a=p.index,r=p.injector,i=p.projectableNodes,s=p.environmentInjector||p.ngModuleRef}const c=o?n:new Oa(ae(n)),l=r||this.parentInjector;if(!s&&null==c.ngModule){const m=(o?l:this.parentInjector).get(Fn,null);m&&(s=m)}const u=ae(c.componentType??{}),d=Yi(this._lContainer,u?.id??null),h=c.create(l,i,d?.firstChild??null,s);return this.insertImpl(h.hostView,a,Wi(this._hostTNode,d)),h}insert(n,t){return this.insertImpl(n,t,!0)}insertImpl(n,t,r){const i=n._lView;if(function vk(e){return Ht(e[pt])}(i)){const a=this.indexOf(n);if(-1!==a)this.detach(a);else{const c=i[pt],l=new zE(c,c[Rt],c[pt]);l.detach(l.indexOf(n))}}const s=this._adjustIndex(t),o=this._lContainer;return Zs(o,i,s,r),n.attachToViewContainerRef(),av(Qp(o),s,n),n}move(n,t){return this.insert(n,t)}indexOf(n){const t=qE(this._lContainer);return null!==t?t.indexOf(n):-1}remove(n){const t=this._adjustIndex(n,-1),r=_a(this._lContainer,t);r&&(Jc(Qp(this._lContainer),t),Gl(r[I],r))}detach(n){const t=this._adjustIndex(n,-1),r=_a(this._lContainer,t);return r&&null!=Jc(Qp(this._lContainer),t)?new wa(r):null}_adjustIndex(n,t=0){return n??this.length+t}};function qE(e){return e[8]}function Qp(e){return e[8]||(e[8]=[])}let ZE=function KE(e,n,t,r){if(e[Cr])return;let i;i=8&t.type?he(r):function QF(e,n){const t=e[Y],r=t.createComment(""),i=qt(n,e);return Gi(t,bp(t,i),r,function YO(e,n){return e.nextSibling(n)}(t,i),!1),r}(n,t),e[Cr]=i},Xp=()=>!1;const iw=new Set;function Zt(e){iw.has(e)||(iw.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function se(e,n){Zt("NgSignals");const t=function $1(e){const n=Object.create(b_);n.value=e;const t=()=>(ri(n),n.value);return t[Qe]=n,t}(e),r=t[Qe];return n?.equal&&(r.equal=n.equal),t.set=i=>_f(r,i),t.update=i=>function G1(e,n){de()||C_(),_f(e,n(e.value))}(r,i),t.asReadonly=ow.bind(t),t}function ow(){const e=this[Qe];if(void 0===e.readonlyFn){const n=()=>this();n[Qe]=e,e.readonlyFn=n}return e.readonlyFn}function aw(e){return function sw(e){return"function"==typeof e&&void 0!==e[Qe]}(e)&&"function"==typeof e.set}function me(e){let n=function _w(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),t=!0;const r=[e];for(;n;){let i;if(er(e))i=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new E(903,!1);i=n.\u0275dir}if(i){if(t){r.push(i);const o=e;o.inputs=au(e.inputs),o.inputTransforms=au(e.inputTransforms),o.declaredInputs=au(e.declaredInputs),o.outputs=au(e.outputs);const a=i.hostBindings;a&&CL(e,a);const c=i.viewQuery,l=i.contentQueries;if(c&&_L(e,c),l&&vL(e,l),gL(e,i),aN(e.outputs,i.outputs),er(i)&&i.data.animation){const u=e.data;u.animation=(u.animation||[]).concat(i.data.animation)}}const s=i.features;if(s)for(let o=0;o<s.length;o++){const a=s[o];a&&a.ngInherit&&a(e),a===me&&(t=!1)}}n=Object.getPrototypeOf(n)}!function yL(e){let n=0,t=null;for(let r=e.length-1;r>=0;r--){const i=e[r];i.hostVars=n+=i.hostVars,i.hostAttrs=Zo(i.hostAttrs,t=Zo(t,i.hostAttrs))}}(r)}function gL(e,n){for(const t in n.inputs){if(!n.inputs.hasOwnProperty(t)||e.inputs.hasOwnProperty(t))continue;const r=n.inputs[t];if(void 0!==r&&(e.inputs[t]=r,e.declaredInputs[t]=n.declaredInputs[t],null!==n.inputTransforms)){const i=Array.isArray(r)?r[0]:r;if(!n.inputTransforms.hasOwnProperty(i))continue;e.inputTransforms??={},e.inputTransforms[i]=n.inputTransforms[i]}}}function au(e){return e===yr?{}:e===fe?[]:e}function _L(e,n){const t=e.viewQuery;e.viewQuery=t?(r,i)=>{n(r,i),t(r,i)}:n}function vL(e,n){const t=e.contentQueries;e.contentQueries=t?(r,i,s)=>{n(r,i,s),t(r,i,s)}:n}function CL(e,n){const t=e.hostBindings;e.hostBindings=t?(r,i)=>{n(r,i),t(r,i)}:n}class Xi{}class ML{}class am extends Xi{constructor(n,t,r,i=!0){super(),this.ngModuleType=n,this._parent=t,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new $E(this);const s=function jt(e,n){const t=e[tv]||null;if(!t&&!0===n)throw new Error(`Type ${Ct(e)} does not have '\u0275mod' property.`);return t}(n);this._bootstrapComponents=function wn(e){return e instanceof Function?e():e}(s.bootstrap),this._r3Injector=EC(n,t,[{provide:Xi,useValue:this},{provide:Ki,useValue:this.componentFactoryResolver},...r],Ct(n),new Set(["environment"])),i&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class cm extends ML{constructor(n){super(),this.moduleType=n}create(n){return new am(this.moduleType,n,[])}}class Ew extends Xi{constructor(n){super(),this.componentFactoryResolver=new $E(this),this.instance=null;const t=new Is([...n.providers,{provide:Xi,useValue:this},{provide:Ki,useValue:this.componentFactoryResolver}],n.parent||ol(),n.debugName,new Set(["environment"]));this.injector=t,n.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function xr(e,n,t){return e[n]=t}function it(e,n,t){return!Object.is(e[n],t)&&(e[n]=t,!0)}function Ji(e,n,t,r){const i=it(e,n,t);return it(e,n+1,r)||i}function La(e,n,t,r,i,s,o,a,c,l){const u=t+V,d=n.firstCreatePass?function OL(e,n,t,r,i,s,o,a,c){const l=n.consts,u=qi(n,e,4,o||null,a||null);xp(n,t,u,Vn(l,c)),yl(n,u);const d=u.tView=Ap(2,u,r,i,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,l,null);return null!==n.queries&&(n.queries.template(n,u),d.queries=n.queries.embeddedTView(u)),u}(u,n,e,r,i,s,o,a,c):n.data[u];nr(d,!1);const f=Dw(n,e,d,t);na()&&zl(n,e,f,d),Ut(f,e);const h=iE(f,e,f,d);return e[u]=h,Zl(e,h),function YE(e,n,t){return Xp(e,n,t)}(h,d,e),dl(d)&&Mp(n,e,d),null!=c&&Ip(e,d,l),d}function ee(e,n,t,r,i,s,o,a){const c=b(),l=oe();return La(c,l,e,n,t,r,i,Vn(l.consts,s),o,a),ee}let Dw=function Sw(e,n,t,r){return Er(!0),n[Y].createComment("")};var eo=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(eo||{});let Nw=(()=>{class e{constructor(){this.impl=null}execute(){this.impl?.execute()}static#e=this.\u0275prov=R({token:e,providedIn:"root",factory:()=>new e})}return e})();class ja{constructor(){this.ngZone=A(pe),this.scheduler=A(Ks),this.errorHandler=A(Dr,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static#e=this.PHASES=[eo.EarlyRead,eo.Write,eo.MixedReadWrite,eo.Read];execute(){this.executing=!0;for(const n of ja.PHASES)for(const t of this.sequences)if(!t.erroredOrDestroyed&&t.hooks[n])try{t.pipelinedValue=this.ngZone.runOutsideAngular(()=>t.hooks[n](t.pipelinedValue))}catch(r){t.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(const n of this.sequences)n.afterRun(),n.once&&this.sequences.delete(n);for(const n of this.deferredRegistrations)this.sequences.add(n);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(n){this.executing?this.deferredRegistrations.add(n):(this.sequences.add(n),this.scheduler.notify(6))}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=!0,n.pipelinedValue=void 0,n.once=!0):(this.sequences.delete(n),this.deferredRegistrations.delete(n))}static#t=this.\u0275prov=R({token:ja,providedIn:"root",factory:()=>new ja})}function At(e,n,t,r){const i=b();return it(i,rr(),n)&&(oe(),Mr(Be(),i,e,n,t,r)),At}function mu(e,n){return e<<17|n<<2}function hi(e){return e>>17&32767}function bm(e){return 2|e}function ts(e){return(131068&e)>>2}function Em(e,n){return-131069&e|n<<2}function wm(e){return 1|e}function sD(e,n,t,r){const i=e[t+1],s=null===n;let o=r?hi(i):ts(i),a=!1;for(;0!==o&&(!1===a||s);){const l=e[o+1];E2(e[o],n)&&(a=!0,e[o+1]=r?wm(l):bm(l)),o=r?hi(l):ts(l)}a&&(e[t+1]=r?bm(i):wm(i))}function E2(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&Ts(e,n)>=0}const Tt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function oD(e){return e.substring(Tt.key,Tt.keyEnd)}function aD(e,n){const t=Tt.textEnd;return t===n?-1:(n=Tt.keyEnd=function T2(e,n,t){for(;n<t&&e.charCodeAt(n)>32;)n++;return n}(e,Tt.key=n,t),go(e,n,t))}function go(e,n,t){for(;n<t&&e.charCodeAt(n)<=32;)n++;return n}function P(e,n,t){const r=b();return it(r,rr(),n)&&un(oe(),Be(),r,e,n,r[Y],t,!1),P}function Dm(e,n,t,r,i){const o=i?"class":"style";Op(e,t,n.inputs[o],o,r)}function yo(e,n,t){return sr(e,n,t,!1),yo}function Yt(e,n){return sr(e,n,null,!0),Yt}function qr(e){!function or(e,n,t,r){const i=oe(),s=Ur(2);i.firstUpdatePass&&hD(i,null,s,r);const o=b();if(t!==J&&it(o,s,t)){const a=i.data[Ft()];if(yD(a,r)&&!fD(i,s)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;null!==c&&(t=Vf(c,t||"")),Dm(i,a,o,t,r)}else!function F2(e,n,t,r,i,s,o,a){i===J&&(i=fe);let c=0,l=0,u=0<i.length?i[0]:null,d=0<s.length?s[0]:null;for(;null!==u||null!==d;){const f=c<i.length?i[c+1]:void 0,h=l<s.length?s[l+1]:void 0;let m,p=null;u===d?(c+=2,l+=2,f!==h&&(p=d,m=h)):null===d||null!==u&&u<d?(c+=2,p=u):(l+=2,p=d,m=h),null!==p&&mD(e,n,t,r,p,m,o,a),u=c<i.length?i[c]:null,d=l<s.length?s[l]:null}}(i,a,o,o[Y],o[s+1],o[s+1]=function O2(e,n,t){if(null==t||""===t)return fe;const r=[],i=bn(t);if(Array.isArray(i))for(let s=0;s<i.length;s++)e(r,i[s],!0);else if("object"==typeof i)for(const s in i)i.hasOwnProperty(s)&&e(r,s,i[s]);else"string"==typeof i&&n(r,i);return r}(e,n,t),r,s)}}(R2,kr,e,!0)}function kr(e,n){for(let t=function D2(e){return function lD(e){Tt.key=0,Tt.keyEnd=0,Tt.value=0,Tt.valueEnd=0,Tt.textEnd=e.length}(e),aD(e,go(e,0,Tt.textEnd))}(n);t>=0;t=aD(n,t))vn(e,oD(n),!0)}function sr(e,n,t,r){const i=b(),s=oe(),o=Ur(2);s.firstUpdatePass&&hD(s,e,o,r),n!==J&&it(i,o,n)&&mD(s,s.data[Ft()],i,i[Y],e,i[o+1]=function L2(e,n){return null==e||""===e||("string"==typeof n?e+=n:"object"==typeof e&&(e=Ct(bn(e)))),e}(n,t),r,o)}function fD(e,n){return n>=e.expandoStartIndex}function hD(e,n,t,r){const i=e.data;if(null===i[t+1]){const s=i[Ft()],o=fD(e,t);yD(s,r)&&null===n&&!o&&(n=!1),n=function x2(e,n,t,r){const i=Th(e);let s=r?n.residualClasses:n.residualStyles;if(null===i)0===(r?n.classBindings:n.styleBindings)&&(t=Ua(t=Sm(null,e,n,t,r),n.attrs,r),s=null);else{const o=n.directiveStylingLast;if(-1===o||e[o]!==i)if(t=Sm(i,e,n,t,r),null===s){let c=function N2(e,n,t){const r=t?n.classBindings:n.styleBindings;if(0!==ts(r))return e[hi(r)]}(e,n,r);void 0!==c&&Array.isArray(c)&&(c=Sm(null,e,n,c[1],r),c=Ua(c,n.attrs,r),function k2(e,n,t,r){e[hi(t?n.classBindings:n.styleBindings)]=r}(e,n,r,c))}else s=function P2(e,n,t){let r;const i=n.directiveEnd;for(let s=1+n.directiveStylingLast;s<i;s++)r=Ua(r,e[s].hostAttrs,t);return Ua(r,n.attrs,t)}(e,n,r)}return void 0!==s&&(r?n.residualClasses=s:n.residualStyles=s),t}(i,s,n,r),function C2(e,n,t,r,i,s){let o=s?n.classBindings:n.styleBindings,a=hi(o),c=ts(o);e[r]=t;let u,l=!1;if(Array.isArray(t)?(u=t[1],(null===u||Ts(t,u)>0)&&(l=!0)):u=t,i)if(0!==c){const f=hi(e[a+1]);e[r+1]=mu(f,a),0!==f&&(e[f+1]=Em(e[f+1],r)),e[a+1]=function _2(e,n){return 131071&e|n<<17}(e[a+1],r)}else e[r+1]=mu(a,0),0!==a&&(e[a+1]=Em(e[a+1],r)),a=r;else e[r+1]=mu(c,0),0===a?a=r:e[c+1]=Em(e[c+1],r),c=r;l&&(e[r+1]=bm(e[r+1])),sD(e,u,r,!0),sD(e,u,r,!1),function b2(e,n,t,r,i){const s=i?e.residualClasses:e.residualStyles;null!=s&&"string"==typeof n&&Ts(s,n)>=0&&(t[r+1]=wm(t[r+1]))}(n,u,e,r,s),o=mu(a,c),s?n.classBindings=o:n.styleBindings=o}(i,s,n,t,o,r)}}function Sm(e,n,t,r,i){let s=null;const o=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a<o&&(s=n[a],r=Ua(r,s.hostAttrs,i),s!==e);)a++;return null!==e&&(t.directiveStylingLast=a),r}function Ua(e,n,t){const r=t?1:2;let i=-1;if(null!==n)for(let s=0;s<n.length;s++){const o=n[s];"number"==typeof o?i=o:i===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),vn(e,o,!!t||n[++s]))}return void 0===e?null:e}function R2(e,n,t){const r=String(n);""!==r&&!r.includes(" ")&&vn(e,r,t)}function mD(e,n,t,r,i,s,o,a){if(!(3&n.type))return;const c=e.data,l=c[a+1],u=function v2(e){return!(1&~e)}(l)?gD(c,n,t,i,ts(l),o):void 0;gu(u)||(gu(s)||function y2(e){return!(2&~e)}(l)&&(s=gD(c,null,t,i,a,o)),function XO(e,n,t,r,i){if(n)i?e.addClass(t,r):e.removeClass(t,r);else{let s=-1===r.indexOf("-")?void 0:ui.DashCase;null==i?e.removeStyle(t,r,s):("string"==typeof i&&i.endsWith("!important")&&(i=i.slice(0,-10),s|=ui.Important),e.setStyle(t,r,i,s))}}(r,o,Jo(Ft(),t),i,s))}function gD(e,n,t,r,i,s){const o=null===n;let a;for(;i>0;){const c=e[i],l=Array.isArray(c),u=l?c[1]:c,d=null===u;let f=t[i+1];f===J&&(f=d?fe:void 0);let h=d?eh(f,r):u===r?f:void 0;if(l&&!gu(h)&&(h=eh(c,r)),gu(h)&&(a=h,o))return a;const p=e[i+1];i=o?hi(p):ts(p)}if(null!==n){let c=s?n.residualClasses:n.residualStyles;null!=c&&(a=eh(c,r))}return a}function gu(e){return void 0!==e}function yD(e,n){return!!(e.flags&(n?8:16))}class Z2{destroy(n){}updateValue(n,t){}swap(n,t){const r=Math.min(n,t),i=Math.max(n,t),s=this.detach(i);if(i-r>1){const o=this.detach(r);this.attach(r,s),this.attach(i,o)}else this.attach(r,s)}move(n,t){this.attach(t,this.detach(n))}}function Tm(e,n,t,r,i){return e===t&&Object.is(n,r)?1:Object.is(i(e,n),i(t,r))?-1:0}function Mm(e,n,t,r){return!(void 0===n||!n.has(r)||(e.attach(t,n.get(r)),n.delete(r),0))}function _D(e,n,t,r,i){if(Mm(e,n,r,t(r,i)))e.updateValue(r,i);else{const s=e.create(r,i);e.attach(r,s)}}function vD(e,n,t,r){const i=new Set;for(let s=n;s<=t;s++)i.add(r(s,e.at(s)));return i}class CD{constructor(){this.kvMap=new Map,this._vMap=void 0}has(n){return this.kvMap.has(n)}delete(n){if(!this.has(n))return!1;const t=this.kvMap.get(n);return void 0!==this._vMap&&this._vMap.has(t)?(this.kvMap.set(n,this._vMap.get(t)),this._vMap.delete(t)):this.kvMap.delete(n),!0}get(n){return this.kvMap.get(n)}set(n,t){if(this.kvMap.has(n)){let r=this.kvMap.get(n);void 0===this._vMap&&(this._vMap=new Map);const i=this._vMap;for(;i.has(r);)r=i.get(r);i.set(r,t)}else this.kvMap.set(n,t)}forEach(n){for(let[t,r]of this.kvMap)if(n(r,t),void 0!==this._vMap){const i=this._vMap;for(;i.has(r);)r=i.get(r),n(r,t)}}}function ie(e,n){Zt("NgControlFlow");const t=b(),r=rr(),i=t[r]!==J?t[r]:-1,s=-1!==i?yu(t,V+i):void 0;if(it(t,r,e)){const a=q(null);try{if(void 0!==s&&Fp(s,0),-1!==e){const c=V+e,l=yu(t,c),u=Im(t[I],c),d=Yi(l,u.tView.ssrId);Zs(l,Ws(t,u,n,{dehydratedView:d}),0,Wi(u,d))}}finally{q(a)}}else if(void 0!==s){const a=lE(s,0);void 0!==a&&(a[Ve]=n)}}class K2{constructor(n,t,r){this.lContainer=n,this.$implicit=t,this.$index=r}get $count(){return this.lContainer.length-rt}}function ar(e){return e}function bD(e,n){return n}class Q2{constructor(n,t,r){this.hasEmptyBlock=n,this.trackByFn=t,this.liveCollection=r}}function dn(e,n,t,r,i,s,o,a,c,l,u,d,f){Zt("NgControlFlow");const h=b(),p=oe(),m=void 0!==c,g=b(),_=a?o.bind(g[We][Ve]):o,y=new Q2(m,_);g[V+e]=y,La(h,p,e+1,n,t,r,i,Vn(p.consts,s)),m&&La(h,p,e+2,c,l,u,d,Vn(p.consts,f))}class X2 extends Z2{constructor(n,t,r){super(),this.lContainer=n,this.hostLView=t,this.templateTNode=r,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-rt}at(n){return this.getLView(n)[Ve].$implicit}attach(n,t){const r=t[zt];this.needsIndexUpdate||=n!==this.length,Zs(this.lContainer,t,n,Wi(this.templateTNode,r))}detach(n){return this.needsIndexUpdate||=n!==this.length-1,function J2(e,n){return _a(e,n)}(this.lContainer,n)}create(n,t){const r=Yi(this.lContainer,this.templateTNode.tView.ssrId),i=Ws(this.hostLView,this.templateTNode,new K2(this.lContainer,t,n),{dehydratedView:r});return this.operationsCounter?.recordCreate(),i}destroy(n){Gl(n[I],n),this.operationsCounter?.recordDestroy()}updateValue(n,t){this.getLView(n)[Ve].$implicit=t}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let n=0;n<this.length;n++)this.getLView(n)[Ve].$index=n}getLView(n){return function eV(e,n){return lE(e,n)}(this.lContainer,n)}}function fn(e){const n=q(null),t=Ft();try{const r=b(),i=r[I],s=r[t],o=t+1,a=yu(r,o);if(void 0===s.liveCollection){const l=Im(i,o);s.liveCollection=new X2(a,r,l)}else s.liveCollection.reset();const c=s.liveCollection;if(function Y2(e,n,t){let r,i,s=0,o=e.length-1;if(Array.isArray(n)){let c=n.length-1;for(;s<=o&&s<=c;){const l=e.at(s),u=n[s],d=Tm(s,l,s,u,t);if(0!==d){d<0&&e.updateValue(s,u),s++;continue}const f=e.at(o),h=n[c],p=Tm(o,f,c,h,t);if(0!==p){p<0&&e.updateValue(o,h),o--,c--;continue}const m=t(s,l),g=t(o,f),_=t(s,u);if(Object.is(_,g)){const y=t(c,h);Object.is(y,m)?(e.swap(s,o),e.updateValue(o,h),c--,o--):e.move(o,s),e.updateValue(s,u),s++}else if(r??=new CD,i??=vD(e,s,o,t),Mm(e,r,s,_))e.updateValue(s,u),s++,o++;else if(i.has(_))r.set(m,e.detach(s)),o--;else{const y=e.create(s,n[s]);e.attach(s,y),s++,o++}}for(;s<=c;)_D(e,r,t,s,n[s]),s++}else if(null!=n){const c=n[Symbol.iterator]();let l=c.next();for(;!l.done&&s<=o;){const u=e.at(s),d=l.value,f=Tm(s,u,s,d,t);if(0!==f)f<0&&e.updateValue(s,d),s++,l=c.next();else{r??=new CD,i??=vD(e,s,o,t);const h=t(s,d);if(Mm(e,r,s,h))e.updateValue(s,d),s++,o++,l=c.next();else if(i.has(h)){const p=t(s,u);r.set(p,e.detach(s)),o--}else e.attach(s,e.create(s,d)),s++,o++,l=c.next()}}for(;!l.done;)_D(e,r,t,e.length,l.value),l=c.next()}for(;s<=o;)e.destroy(e.detach(o--));r?.forEach(c=>{e.destroy(c)})}(c,e,s.trackByFn),c.updateIndexes(),s.hasEmptyBlock){const l=rr(),u=0===c.length;if(it(r,l,u)){const d=t+2,f=yu(r,d);if(u){const h=Im(i,d),p=Yi(f,h.tView.ssrId);Zs(f,Ws(r,h,void 0,{dehydratedView:p}),0,Wi(h,p))}else Fp(f,0)}}}finally{q(n)}}function yu(e,n){return e[n]}function Im(e,n){return ea(e,n)}function S(e,n,t,r){const i=b(),s=oe(),o=V+e,a=i[Y],c=s.firstCreatePass?function tV(e,n,t,r,i,s){const o=n.consts,c=qi(n,e,2,r,Vn(o,i));return xp(n,t,c,Vn(o,s)),null!==c.attrs&&su(c,c.attrs,!1),null!==c.mergedAttrs&&su(c,c.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,c),c}(o,s,i,n,t,r):s.data[o],l=ED(s,i,c,a,n,e);i[o]=l;const u=dl(c);return nr(c,!0),Zb(a,l,c),!function Xs(e){return!(32&~e.flags)}(c)&&na()&&zl(s,i,l,c),0===function Ck(){return K.lFrame.elementDepthCount}()&&Ut(l,i),function bk(){K.lFrame.elementDepthCount++}(),u&&(Mp(s,i,c),Tp(s,c,i)),null!==r&&Ip(i,c),S}function T(){let e=Ie();wh()?Dh():(e=e.parent,nr(e,!1));const n=e;(function wk(e){return K.skipHydrationRootTNode===e})(n)&&function Mk(){K.skipHydrationRootTNode=null}(),function Ek(){K.lFrame.elementDepthCount--}();const t=oe();return t.firstCreatePass&&(yl(t,e),ph(e)&&t.queries.elementEnd(e)),null!=n.classesWithoutHost&&function jk(e){return!!(8&e.flags)}(n)&&Dm(t,n,b(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function Hk(e){return!!(16&e.flags)}(n)&&Dm(t,n,b(),n.stylesWithoutHost,!1),T}function ge(e,n,t,r){return S(e,n,t,r),T(),ge}let ED=(e,n,t,r,i,s)=>(Er(!0),$l(r,i,function nC(){return K.lFrame.currentNamespace}()));function _o(e,n,t){const r=b(),i=oe(),s=e+V,o=i.firstCreatePass?function iV(e,n,t,r,i){const s=n.consts,o=Vn(s,r),a=qi(n,e,8,"ng-container",o);return null!==o&&su(a,o,!0),xp(n,t,a,Vn(s,i)),null!==n.queries&&n.queries.elementStart(n,a),a}(s,i,r,n,t):i.data[s];nr(o,!0);const a=wD(i,r,o,e);return r[s]=a,na()&&zl(i,r,a,o),Ut(a,r),dl(o)&&(Mp(i,r,o),Tp(i,o,r)),null!=t&&Ip(r,o),_o}function vo(){let e=Ie();const n=oe();return wh()?Dh():(e=e.parent,nr(e,!1)),n.firstCreatePass&&(yl(n,e),ph(e)&&n.queries.elementEnd(e)),vo}function pi(e,n,t){return _o(e,n,t),vo(),pi}let wD=(e,n,t,r)=>(Er(!0),yp(n[Y],""));function at(){return b()}function _u(e,n,t){const r=b();if(it(r,rr(),n)){const s=oe(),o=Be();un(s,o,r,e,n,cE(Th(s.data),o,r),t,!0)}return _u}const vu="en-US";let MD=vu,zD=(e,n,t)=>{};function te(e,n,t,r){const i=b(),s=oe(),o=Ie();return Nm(s,i,i[Y],o,e,n,r),te}function Nm(e,n,t,r,i,s,o){const a=dl(r),l=e.firstCreatePass&&function aE(e){return e.cleanup??=[]}(e),u=n[Ve],d=function oE(e){return e[Ns]??=[]}(n);let f=!0;if(3&r.type||o){const m=qt(r,n),g=o?o(m):m,_=d.length,y=o?D=>o(he(D[r.index])):r.index;let w=null;if(!o&&a&&(w=function QV(e,n,t,r){const i=e.cleanup;if(null!=i)for(let s=0;s<i.length-1;s+=2){const o=i[s];if(o===t&&i[s+1]===r){const a=n[Ns],c=i[s+2];return a.length>c?a[c]:null}"string"==typeof o&&(s+=2)}return null}(e,n,i,r.index)),null!==w)(w.__ngLastListenerFn__||w).__ngNextListenerFn__=s,w.__ngLastListenerFn__=s,f=!1;else{s=YD(r,n,u,s),zD(m,i,s);const D=t.listen(g,i,s);d.push(s,D),l&&l.push(i,y,_,_+1)}}else s=YD(r,n,u,s);const h=r.outputs;let p;if(f&&null!==h&&(p=h[i])){const m=p.length;if(m)for(let g=0;g<m;g+=2){const M=n[p[g]][p[g+1]].subscribe(s),F=d.length;d.push(s,M),l&&l.push(i,r.index,F,-(F+1))}}}function ZD(e,n,t,r){const i=q(null);try{return br(6,n,t),!1!==t(r)}catch(s){return Yl(e,s),!1}finally{br(7,n,t),q(i)}}function YD(e,n,t,r){return function i(s){if(s===Function)return r;Ea(e.componentOffset>-1?Cn(e.index,n):n,5);let a=ZD(n,t,r,s),c=i.__ngNextListenerFn__;for(;c;)a=ZD(n,t,c,s)&&a,c=c.__ngNextListenerFn__;return a}}function x(e=1){return function kk(e){return(K.lFrame.contextLView=function Hv(e,n){for(;e>0;)n=n[ks],e--;return n}(e,K.lFrame.contextLView))[Ve]}(e)}function XV(e,n){let t=null;const r=function RN(e){const n=e.attrs;if(null!=n){const t=n.indexOf(5);if(!(1&t))return n[t+1]}return null}(e);for(let i=0;i<n.length;i++){const s=n[i];if("*"!==s){if(null===r?mv(e,s,!0):VN(r,s))return i}else t=i}return t}function km(e,n=0,t,r,i,s){const o=b(),a=oe(),c=r?e+1:null;null!==c&&La(o,a,c,r,i,s,null,t);const l=qi(a,V+e,16,null,t||null);null===l.projection&&(l.projection=n),Dh();const d=!o[zt]||Li();null===o[We][Rt].projection[l.projection]&&null!==c?function JV(e,n,t){const r=V+t,i=n.data[r],s=e[r],o=Yi(s,i.tView.ssrId);Zs(s,Ws(e,i,void 0,{dehydratedView:o}),0,Wi(i,o))}(o,a,c):d&&32&~l.flags&&function KO(e,n,t){qb(n[Y],0,n,t,Cp(e,t,n),jb(t.parent||n[Rt],t,n))}(a,o,l)}function Om(e,n,t,r){t>=e.data.length&&(e.data[t]=null,e.blueprint[t]=null),n[t]=r}function wu(e){return Fi(zv(),V+e)}function $(e,n=""){const t=b(),r=oe(),i=e+V,s=r.firstCreatePass?qi(r,i,1,n,null):r.data[i],o=g0(r,t,s,n,e);t[i]=o,na()&&zl(r,t,o,s),nr(s,!1)}let g0=(e,n,t,r,i)=>(Er(!0),function gp(e,n){return e.createText(n)}(n[Y],r));function gt(e){return ke("",e,""),gt}function ke(e,n,t){const r=b(),i=function ao(e,n,t,r){return it(e,rr(),t)?n+X(t)+r:J}(r,e,n,t);return i!==J&&function zr(e,n,t){const r=Jo(n,e);!function Ob(e,n,t){e.setValue(n,t)}(e[Y],r,t)}(r,Ft(),i),ke}function Rm(e,n,t){aw(n)&&(n=n());const r=b();return it(r,rr(),n)&&un(oe(),Be(),r,e,n,r[Y],t,!1),Rm}function Fm(e,n){const t=b(),r=oe(),i=Ie();return Nm(r,t,t[Y],i,e,n),Fm}const T0={};function Tn(e){const n=oe(),t=b(),r=e+V;return nr(qi(n,r,128,null,null),!1),Om(n,t,r,T0),Tn}function $t(e){return Zt("NgLet"),Om(oe(),b(),Ft(),e),e}function Pe(e){const t=Fi(zv(),V+e);if(t===T0)throw new E(314,!1);return t}function Lm(e,n,t,r,i){if(e=W(e),Array.isArray(e))for(let s=0;s<e.length;s++)Lm(e[s],n,t,r,i);else{const s=oe(),o=b(),a=Ie();let c=Pi(e)?e:W(e.provide);const l=wv(e),u=1048575&a.providerIndexes,d=a.directiveStart,f=a.providerIndexes>>20;if(Pi(e)||!e.multi){const h=new ra(l,i,v),p=Bm(c,n,i?u:u+f,d);-1===p?(Fh(bl(a,o),s,c),Vm(s,e,n.length),n.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),t.push(h),o.push(h)):(t[p]=h,o[p]=h)}else{const h=Bm(c,n,u+f,d),p=Bm(c,n,u,u+f),g=p>=0&&t[p];if(i&&!g||!i&&!(h>=0&&t[h])){Fh(bl(a,o),s,c);const _=function bB(e,n,t,r,i){const s=new ra(e,t,v);return s.multi=[],s.index=n,s.componentProviders=0,M0(s,i,r&&!t),s}(i?CB:vB,t.length,i,r,l);!i&&g&&(t[p].providerFactory=_),Vm(s,e,n.length,0),n.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),t.push(_),o.push(_)}else Vm(s,e,h>-1?h:p,M0(t[i?p:h],l,!i&&r));!i&&r&&g&&t[p].componentProviders++}}}function Vm(e,n,t,r){const i=Pi(n),s=function ZN(e){return!!e.useClass}(n);if(i||s){const c=(s?W(n.useClass):n).prototype.ngOnDestroy;if(c){const l=e.destroyHooks||(e.destroyHooks=[]);if(!i&&n.multi){const u=l.indexOf(t);-1===u?l.push(t,[r,c]):l[u+1].push(r,c)}else l.push(t,c)}}}function M0(e,n,t){return t&&e.componentProviders++,e.multi.push(n)-1}function Bm(e,n,t,r){for(let i=t;i<r;i++)if(n[i]===e)return i;return-1}function vB(e,n,t,r){return jm(this.multi,[])}function CB(e,n,t,r){const i=this.multi;let s;if(this.providerFactory){const o=this.providerFactory.componentProviders,a=ji(t,t[I],this.providerFactory.index,r);s=a.slice(0,o),jm(i,s);for(let c=o;c<a.length;c++)s.push(a[c])}else s=[],jm(i,s);return s}function jm(e,n){for(let t=0;t<e.length;t++)n.push((0,e[t])());return n}function Oe(e,n=[]){return t=>{t.providersResolver=(r,i)=>function _B(e,n,t){const r=oe();if(r.firstCreatePass){const i=er(e);Lm(t,r.data,r.blueprint,i,!0),Lm(n,r.data,r.blueprint,i,!1)}}(r,i?i(e):e,n)}}let EB=(()=>{class e{constructor(t){this._injector=t,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t)){const r=ih(0,t.type),i=r.length>0?function ww(e,n,t=null){return new Ew({providers:e,parent:n,debugName:t,runEnvironmentInitializers:!0}).injector}([r],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t,i)}return this.cachedInjectors.get(t)}ngOnDestroy(){try{for(const t of this.cachedInjectors.values())null!==t&&t.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=R({token:e,providedIn:"environment",factory:()=>new e(k(Fn))})}return e})();function Hm(e){Zt("NgStandalone"),e.getStandaloneInjector=n=>n.get(EB).getOrCreateStandaloneInjector(e)}function Za(e,n){const t=e[n];return t===J?void 0:t}function k0(e,n,t,r,i,s){const o=n+t;return it(e,o,i)?xr(e,o+1,s?r.call(s,i):r(i)):Za(e,o+1)}function P0(e,n,t,r,i,s,o){const a=n+t;return Ji(e,a,i,s)?xr(e,a+2,o?r.call(o,i,s):r(i,s)):Za(e,a+2)}function O0(e,n,t,r,i,s,o,a){const c=n+t;return function lu(e,n,t,r,i){const s=Ji(e,n,t,r);return it(e,n+2,i)||s}(e,c,i,s,o)?xr(e,c+3,a?r.call(a,i,s,o):r(i,s,o)):Za(e,c+3)}function R0(e,n,t,r,i,s,o,a,c){const l=n+t;return function Bn(e,n,t,r,i,s){const o=Ji(e,n,t,r);return Ji(e,n+2,i,s)||o}(e,l,i,s,o,a)?xr(e,l+4,c?r.call(c,i,s,o,a):r(i,s,o,a)):Za(e,l+4)}function Ce(e,n){const t=oe();let r;const i=e+V;t.firstCreatePass?(r=function OB(e,n){if(n)for(let t=n.length-1;t>=0;t--){const r=n[t];if(e===r.name)return r}}(n,t.pipeRegistry),t.data[i]=r,r.onDestroy&&(t.destroyHooks??=[]).push(i,r.onDestroy)):r=t.data[i];const s=r.factory||(r.factory=Ni(r.type)),a=on(v);try{const c=Cl(!1),l=s();return Cl(c),Om(t,b(),i,l),l}finally{on(a)}}function Ya(e,n,t){const r=e+V,i=b(),s=Fi(i,r);return Ka(i,r)?k0(i,Wt(),n,s.transform,t,s):s.transform(t)}function xt(e,n,t,r){const i=e+V,s=b(),o=Fi(s,i);return Ka(s,i)?P0(s,Wt(),n,o.transform,t,r,o):o.transform(t,r)}function mi(e,n,t,r,i){const s=e+V,o=b(),a=Fi(o,s);return Ka(o,s)?O0(o,Wt(),n,a.transform,t,r,i,a):a.transform(t,r,i)}function Um(e,n,t,r,i,s){const o=e+V,a=b(),c=Fi(a,o);return Ka(a,o)?R0(a,Wt(),n,c.transform,t,r,i,s,c):c.transform(t,r,i,s)}function Ka(e,n){return e[I].data[n].pure}function Tu(e,n){return Ql(e,n)}const nS=new N(""),Au=new N("");let Km,Zm=(()=>{class e{constructor(t,r,i){this._ngZone=t,this.registry=r,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,Km||(function Aj(e){Km=e}(i),i.addToWindow(r)),this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{pe.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb()}});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(t)||(clearTimeout(r.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,r,i){let s=-1;r&&r>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==s),t()},r)),this._callbacks.push({doneCb:t,timeoutId:s,updateCb:i})}whenStable(t,r,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,r,i),this._runCallbacksIfReady()}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,r,i){return[]}static#e=this.\u0275fac=function(r){return new(r||e)(k(pe),k(Ym),k(Au))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})(),Ym=(()=>{class e{constructor(){this._applications=new Map}registerApplication(t,r){this._applications.set(t,r)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,r=!0){return Km?.findTestabilityInTree(this,t,r)??null}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function xu(e){return!!e&&"function"==typeof e.then}function rS(e){return!!e&&"function"==typeof e.subscribe}const Qm=new N("");let iS=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,r)=>{this.resolve=t,this.reject=r}),this.appInits=A(Qm,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const t=[];for(const i of this.appInits){const s=i();if(xu(s))t.push(s);else if(rS(s)){const o=new Promise((a,c)=>{s.subscribe({complete:a,error:c})});t.push(o)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(t).then(()=>{r()}).catch(i=>{this.reject(i)}),0===t.length&&r(),this.initialized=!0}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Xm=new N("");function oS(e,n){return Array.isArray(n)?n.reduce(oS,e):{...e,...n}}let jn=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=A(gP),this.afterRenderManager=A(Nw),this.zonelessEnabled=A(Na),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new kt,this.afterTick=new kt,this.componentTypes=[],this.components=[],this.isStable=A(Hi).hasPendingTasks.pipe(Pt(t=>!t)),this._injector=A(Fn)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let t;return new Promise(r=>{t=this.isStable.subscribe({next:i=>{i&&r()}})}).finally(()=>{t.unsubscribe()})}get injector(){return this._injector}bootstrap(t,r){const i=t instanceof BE;if(!this._injector.get(iS).done)throw!i&&function ki(e){const n=ae(e)||Et(e)||Ot(e);return null!==n&&n.standalone}(t),new E(405,!1);let o;o=i?t:this._injector.get(Ki).resolveComponentFactory(t),this.componentTypes.push(o.componentType);const a=function xj(e){return e.isBoundToModule}(o)?void 0:this._injector.get(Xi),l=o.create(Ne.NULL,[],r||o.selector,a),u=l.location.nativeElement,d=l.injector.get(nS,null);return d?.registerApplication(u),l.onDestroy(()=>{this.detachView(l.hostView),Nu(this.components,l),d?.unregisterApplication(u)}),this._loadComponent(l),l}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new E(101,!1);const t=q(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,q(t),this.afterTick.next()}}synchronize(){let t=null;this._injector.destroyed||(t=this._injector.get(ru,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;0!==this.dirtyFlags&&r++<10;)this.synchronizeOnce(t)}synchronizeOnce(t){if(this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0,7&this.dirtyFlags){const r=!!(1&this.dirtyFlags);this.dirtyFlags&=-8,this.dirtyFlags|=8,this.beforeRender.next(r);for(let{_lView:i,notifyErrorHandler:s}of this._views)Pj(i,s,r,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),7&this.dirtyFlags)return}else t?.begin?.(),t?.end?.();8&this.dirtyFlags&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){this.allViews.some(({_lView:t})=>fl(t))?this.dirtyFlags|=2:this.dirtyFlags&=-8}attachView(t){const r=t;this._views.push(r),r.attachToAppRef(this)}detachView(t){const r=t;Nu(this._views,r),r.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t);const r=this._injector.get(Xm,[]);[...this._bootstrapListeners,...r].forEach(i=>i(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>Nu(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new E(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Nu(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function Pj(e,n,t,r){(t||fl(e))&&Kl(e,n,t&&!r?0:1)}let Lj=(()=>{class e{constructor(){this.zone=A(pe),this.changeDetectionScheduler=A(Ks),this.applicationRef=A(jn)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Jm({ngZoneFactory:e,ignoreChangesOutsideZone:n,scheduleInRootZone:t}){return e??=()=>new pe({...eg(),scheduleInRootZone:t}),[{provide:pe,useFactory:e},{provide:_r,multi:!0,useFactory:()=>{const r=A(Lj,{optional:!0});return()=>r.initialize()}},{provide:_r,multi:!0,useFactory:()=>{const r=A(Bj);return()=>{r.initialize()}}},!0===n?{provide:VE,useValue:!0}:[],{provide:Zp,useValue:t??DC}]}function eg(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}let Bj=(()=>{class e{constructor(){this.subscription=new mn,this.initialized=!1,this.zone=A(pe),this.pendingTasks=A(Hi)}initialize(){if(this.initialized)return;this.initialized=!0;let t=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(t=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{pe.assertNotInAngularZone(),queueMicrotask(()=>{null!==t&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(t),t=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{pe.assertInAngularZone(),t??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ec=(()=>{class e{constructor(){this.appRef=A(jn),this.taskService=A(Hi),this.ngZone=A(pe),this.zonelessEnabled=A(Na),this.disableScheduling=A(VE,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new mn,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Ml):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(A(Zp,{optional:!0})??!1),this.cancelScheduledCallback=null,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof $h||!this.zoneIsDefined)}notify(t){if(!this.zonelessEnabled&&5===t)return;switch(t){case 0:this.appRef.dirtyFlags|=2;break;case 3:case 2:case 4:case 5:case 1:this.appRef.dirtyFlags|=4;break;case 7:this.appRef.deferredDirtyFlags|=8;break;default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;const r=this.useMicrotaskScheduler?TC:SC;this.pendingRenderTaskId=this.taskService.add(),this.cancelScheduledCallback=this.scheduleInRootZone?Zone.root.run(()=>r(()=>this.tick())):this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||null!==this.pendingRenderTaskId||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Ml+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;!this.zonelessEnabled&&7&this.appRef.dirtyFlags&&(this.appRef.dirtyFlags|=1);const t=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(t),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,TC(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(t)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,null!==this.pendingRenderTaskId){const t=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(t)}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const gi=new N("",{providedIn:"root",factory:()=>A(gi,ue.Optional|ue.SkipSelf)||function jj(){return typeof $localize<"u"&&$localize.locale||vu}()}),ng=new N("");function Pu(e){return!!e.platformInjector}let hS=(()=>{class e{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,r){const i=r?.scheduleInRootZone,o=r?.ignoreChangesOutsideZone,a=[Jm({ngZoneFactory:()=>function mP(e="zone.js",n){return"noop"===e?new $h:"zone.js"===e?new pe(n):e}(r?.ngZone,{...eg({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}),scheduleInRootZone:i}),ignoreChangesOutsideZone:o}),{provide:Ks,useExisting:ec}],c=function AL(e,n,t){return new am(e,n,t,!1)}(t.moduleType,this.injector,a);return function fS(e){const n=Pu(e)?e.r3Injector:e.moduleRef.injector,t=n.get(pe);return t.run(()=>{Pu(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();const r=n.get(Dr,null);let i;if(t.runOutsideAngular(()=>{i=t.onError.subscribe({next:s=>{r.handleError(s)}})}),Pu(e)){const s=()=>n.destroy(),o=e.platformInjector.get(ng);o.add(s),n.onDestroy(()=>{i.unsubscribe(),o.delete(s)})}else e.moduleRef.onDestroy(()=>{Nu(e.allPlatformModules,e.moduleRef),i.unsubscribe()});return function kj(e,n,t){try{const r=t();return xu(r)?r.catch(i=>{throw n.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw n.runOutsideAngular(()=>e.handleError(r)),r}}(r,t,()=>{const s=n.get(iS);return s.runInitializers(),s.donePromise.then(()=>{if(function hV(e){"string"==typeof e&&(MD=e.toLowerCase().replace(/_/g,"-"))}(n.get(gi,vu)||vu),Pu(e)){const a=n.get(jn);return void 0!==e.rootComponent&&a.bootstrap(e.rootComponent),a}return function qj(e,n){const t=e.injector.get(jn);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>t.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new E(-403,!1);e.instance.ngDoBootstrap(t)}n.push(e)}(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}({moduleRef:c,allPlatformModules:this._modules})}bootstrapModule(t,r=[]){const i=oS({},r);return function Fj(e,n,t){const r=new cm(t);return Promise.resolve(r)}(0,0,t).then(s=>this.bootstrapModuleFactory(s,i))}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new E(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const t=this._injector.get(ng,null);t&&(t.forEach(r=>r()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(r){return new(r||e)(k(Ne))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),yi=null;const pS=new N("");function mS(e,n,t=[]){const r=`Platform: ${n}`,i=new N(r);return(s=[])=>{let o=rg();if(!o||o.injector.get(pS,!1)){const a=[...t,...s,{provide:i,useValue:!0}];e?e(a):function Wj(e){if(yi&&!yi.get(pS,!1))throw new E(400,!1);(function sS(){!function U1(e){v_=e}(()=>{throw new E(600,!1)})})(),yi=e;const n=e.get(hS);(function yS(e){e.get(XC,null)?.forEach(t=>t())})(e)}(function gS(e=[],n){return Ne.create({name:n,providers:[{provide:ah,useValue:"platform"},{provide:ng,useValue:new Set([()=>yi=null])},...e]})}(a,r))}return function Zj(){const n=rg();if(!n)throw new E(401,!1);return n}()}}function rg(){return yi?.get(hS)??null}let wo=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=Kj}return e})();function Kj(e){return function Qj(e,n,t){if(Ri(e)&&!t){const r=Cn(e.index,n);return new wa(r,r)}return 175&e.type?new wa(n[We],n):null}(Ie(),b(),!(16&~e))}const lH=mS(null,"core",[]);let uH=(()=>{class e{constructor(t){}static#e=this.\u0275fac=function(r){return new(r||e)(k(jn))};static#t=this.\u0275mod=bt({type:e});static#n=this.\u0275inj=ft({})}return e})();const $S=new N("");function ce(e,n){Zt("NgSignals");const t=function B1(e){const n=Object.create(j1);n.computation=e;const t=()=>{if(_s(n),ri(n),n.value===Lc)throw n.error;return n.value};return t[Qe]=n,t}(e);return n?.equal&&(t[Qe].equal=n.equal),t}function Hn(e){const n=q(null);try{return e()}finally{q(n)}}const UH=new N("",{providedIn:"root",factory:()=>A($H)});let $H=(()=>{class e{static#e=this.\u0275prov=R({token:e,providedIn:"root",factory:()=>new GH})}return e})();class GH{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=A(Hi),this.taskId=null}scheduleEffect(n){if(this.enqueue(n),null===this.taskId){const t=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(t),this.taskId=null})}}enqueue(n){const t=n.creationZone;this.queues.has(t)||this.queues.set(t,new Set);const r=this.queues.get(t);r.has(n)||(this.queuedEffectCount++,r.add(n))}flush(){for(;this.queuedEffectCount>0;)for(const[n,t]of this.queues)null===n?this.flushQueue(t):n.run(()=>this.flushQueue(t))}flushQueue(n){for(const t of n)n.delete(t),this.queuedEffectCount--,t.run()}}class zH{constructor(n,t,r,i,s,o){this.scheduler=n,this.effectFn=t,this.creationZone=r,this.injector=s,this.watcher=function q1(e,n,t){const r=Object.create(W1);t&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=n;const i=c=>{r.cleanupFn=c};return r.ref={notify:()=>Le(r),run:()=>{if(null===r.fn)return;if(function Ke(){return ze}())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(r.dirty=!1,r.hasRun&&!Fr(r))return;r.hasRun=!0;const c=ut(r);try{r.cleanupFn(),r.cleanupFn=vf,r.fn(i)}finally{Rn(r,c)}},cleanup:()=>r.cleanupFn(),destroy:()=>function o(c){(function s(c){return null===c.fn&&null===c.schedule})(c)||(mf(c),c.cleanupFn(),c.fn=null,c.schedule=null,c.cleanupFn=vf)}(r),[Qe]:r},r.ref}(a=>this.runEffect(a),()=>this.schedule(),o),this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}runEffect(n){try{this.effectFn(n)}catch(t){this.injector.get(Dr,null,{optional:!0})?.handleError(t)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}}function $u(e,n){Zt("NgSignals"),!n?.injector&&function dh(e){if(!Dv())throw new E(-203,!1)}();const t=n?.injector??A(Ne),r=!0!==n?.manualCleanup?t.get(oa):null,i=new zH(t.get(UH),e,typeof Zone>"u"?null:Zone.current,r,t,n?.allowSignalWrites??!1),s=t.get(wo,null,{optional:!0});return s&&8&s._lView[H]?(s._lView[cl]??=[]).push(i.watcher.notify):i.watcher.notify(),i}let JS=null;function ic(){return JS}class WH{}const Vt=new N("");function cT(e,n){n=encodeURIComponent(n);for(const t of e.split(";")){const r=t.indexOf("="),[i,s]=-1==r?[t,""]:[t.slice(0,r),t.slice(r+1)];if(i.trim()===n)return decodeURIComponent(s)}return null}const Eg=/\s+/,lT=[];let wg=(()=>{class e{constructor(t,r){this._ngEl=t,this._renderer=r,this.initialClasses=lT,this.stateMap=new Map}set klass(t){this.initialClasses=null!=t?t.trim().split(Eg):lT}set ngClass(t){this.rawClass="string"==typeof t?t.trim().split(Eg):t}ngDoCheck(){for(const r of this.initialClasses)this._updateState(r,!0);const t=this.rawClass;if(Array.isArray(t)||t instanceof Set)for(const r of t)this._updateState(r,!0);else if(null!=t)for(const r of Object.keys(t))this._updateState(r,!!t[r]);this._applyStateDiff()}_updateState(t,r){const i=this.stateMap.get(t);void 0!==i?(i.enabled!==r&&(i.changed=!0,i.enabled=r),i.touched=!0):this.stateMap.set(t,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(const t of this.stateMap){const r=t[0],i=t[1];i.changed?(this._toggleClass(r,i.enabled),i.changed=!1):i.touched||(i.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),i.touched=!1}}_toggleClass(t,r){(t=t.trim()).length>0&&t.split(Eg).forEach(i=>{r?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}static#e=this.\u0275fac=function(r){return new(r||e)(v(cn),v(Ar))};static#t=this.\u0275dir=Z({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0})}return e})(),td=(()=>{class e{constructor(t){this._viewContainerRef=t,this.ngComponentOutlet=null,this._inputsUsed=new Map}_needToReCreateNgModuleInstance(t){return void 0!==t.ngComponentOutletNgModule||void 0!==t.ngComponentOutletNgModuleFactory}_needToReCreateComponentInstance(t){return void 0!==t.ngComponentOutlet||void 0!==t.ngComponentOutletContent||void 0!==t.ngComponentOutletInjector||this._needToReCreateNgModuleInstance(t)}ngOnChanges(t){if(this._needToReCreateComponentInstance(t)&&(this._viewContainerRef.clear(),this._inputsUsed.clear(),this._componentRef=void 0,this.ngComponentOutlet)){const r=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;this._needToReCreateNgModuleInstance(t)&&(this._moduleRef?.destroy(),this._moduleRef=this.ngComponentOutletNgModule?function IL(e,n){return new am(e,n??null,[])}(this.ngComponentOutletNgModule,uT(r)):this.ngComponentOutletNgModuleFactory?this.ngComponentOutletNgModuleFactory.create(uT(r)):void 0),this._componentRef=this._viewContainerRef.createComponent(this.ngComponentOutlet,{injector:r,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}ngDoCheck(){if(this._componentRef){if(this.ngComponentOutletInputs)for(const t of Object.keys(this.ngComponentOutletInputs))this._inputsUsed.set(t,!0);this._applyInputStateDiff(this._componentRef)}}ngOnDestroy(){this._moduleRef?.destroy()}_applyInputStateDiff(t){for(const[r,i]of this._inputsUsed)i?(t.setInput(r,this.ngComponentOutletInputs[r]),this._inputsUsed.set(r,!1)):(t.setInput(r,void 0),this._inputsUsed.delete(r))}static#e=this.\u0275fac=function(r){return new(r||e)(v(ir))};static#t=this.\u0275dir=Z({type:e,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInputs:"ngComponentOutletInputs",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},standalone:!0,features:[tr]})}return e})();function uT(e){return e.get(Xi).injector}let nd=(()=>{class e{constructor(t,r){this._viewContainer=t,this._context=new R3,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){fT("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){fT("ngIfElse",t),this._elseTemplateRef=t,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(t,r){return!0}static#e=this.\u0275fac=function(r){return new(r||e)(v(ir),v(Ir))};static#t=this.\u0275dir=Z({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return e})();class R3{constructor(){this.$implicit=null,this.ngIf=null}}function fT(e,n){if(n&&!n.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Ct(n)}'.`)}let pT=(()=>{class e{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(t){if(this._shouldRecreateView(t)){const r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const i=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,i,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(t){return!!t.ngTemplateOutlet||!!t.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(t,r,i)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,r,i),get:(t,r,i)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,i)}})}static#e=this.\u0275fac=function(r){return new(r||e)(v(ir))};static#t=this.\u0275dir=Z({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[tr]})}return e})();let Ig=(()=>{class e{transform(t,r,i){if(null==t)return null;if(!this.supports(t))throw function lr(e,n){return new E(2100,!1)}();return t.slice(r,i)}supports(t){return"string"==typeof t||Array.isArray(t)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275pipe=ht({name:"slice",type:e,pure:!1,standalone:!0})}return e})(),Ag=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=bt({type:e});static#n=this.\u0275inj=ft({})}return e})();const gT="browser";function yT(e){return"server"===e}class _T{}class VU extends WH{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Pg extends VU{static makeCurrent(){!function qH(e){JS??=e}(new Pg)}onAndCancel(n,t,r){return n.addEventListener(t,r),()=>{n.removeEventListener(t,r)}}dispatchEvent(n,t){n.dispatchEvent(t)}remove(n){n.remove()}createElement(n,t){return(t=t||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,t){return"window"===t?window:"document"===t?n:"body"===t?n.body:null}getBaseHref(n){const t=function BU(){return cc=cc||document.querySelector("base"),cc?cc.getAttribute("href"):null}();return null==t?null:function jU(e){return new URL(e,document.baseURI).pathname}(t)}resetBaseElement(){cc=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return cT(document.cookie,n)}}let cc=null,UU=(()=>{class e{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})();const od=new N("");let IT=(()=>{class e{constructor(t,r){this._zone=r,this._eventNameToPlugin=new Map,t.forEach(i=>{i.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,r,i){return this._findPluginFor(r).addEventListener(t,r,i)}getZone(){return this._zone}_findPluginFor(t){let r=this._eventNameToPlugin.get(t);if(r)return r;if(r=this._plugins.find(s=>s.supports(t)),!r)throw new E(5101,!1);return this._eventNameToPlugin.set(t,r),r}static#e=this.\u0275fac=function(r){return new(r||e)(k(od),k(pe))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})();class Og{constructor(n){this._doc=n}}const Rg="ng-app-id";let AT=(()=>{class e{constructor(t,r,i,s={}){this.doc=t,this.appId=r,this.nonce=i,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=yT(s),this.resetHostNodes()}addStyles(t){for(const r of t)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(t){for(const r of t)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const t=this.styleNodesInDOM;t&&(t.forEach(r=>r.remove()),t.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(const r of this.getAllStyles())this.addStyleToHost(t,r)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(const r of this.hostNodes)this.addStyleToHost(r,t)}onStyleRemoved(t){const r=this.styleRef;r.get(t)?.elements?.forEach(i=>i.remove()),r.delete(t)}collectServerRenderedStyles(){const t=this.doc.head?.querySelectorAll(`style[${Rg}="${this.appId}"]`);if(t?.length){const r=new Map;return t.forEach(i=>{null!=i.textContent&&r.set(i.textContent,i)}),r}return null}changeUsageCount(t,r){const i=this.styleRef;if(i.has(t)){const s=i.get(t);return s.usage+=r,s.usage}return i.set(t,{usage:r,elements:[]}),r}getStyleElement(t,r){const i=this.styleNodesInDOM,s=i?.get(r);if(s?.parentNode===t)return i.delete(r),s.removeAttribute(Rg),s;{const o=this.doc.createElement("style");return this.nonce&&o.setAttribute("nonce",this.nonce),o.textContent=r,this.platformIsServer&&o.setAttribute(Rg,this.appId),t.appendChild(o),o}}addStyleToHost(t,r){const i=this.getStyleElement(t,r),s=this.styleRef,o=s.get(r)?.elements;o?o.push(i):s.set(r,{elements:[i],usage:1})}resetHostNodes(){const t=this.hostNodes;t.clear(),t.add(this.doc.head)}static#e=this.\u0275fac=function(r){return new(r||e)(k(Vt),k(Hs),k(eb,8),k($r))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})();const Fg={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Lg=/%COMP%/g,qU=new N("",{providedIn:"root",factory:()=>!0});function NT(e,n){return n.map(t=>t.replace(Lg,e))}let Vg=(()=>{class e{constructor(t,r,i,s,o,a,c,l=null){this.eventManager=t,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=s,this.doc=o,this.platformId=a,this.ngZone=c,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=yT(a),this.defaultRenderer=new Bg(t,o,c,this.platformIsServer)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Qn.ShadowDom&&(r={...r,encapsulation:Qn.Emulated});const i=this.getOrCreateRenderer(t,r);return i instanceof PT?i.applyToHost(t):i instanceof jg&&i.applyStyles(),i}getOrCreateRenderer(t,r){const i=this.rendererByCompId;let s=i.get(r.id);if(!s){const o=this.doc,a=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case Qn.Emulated:s=new PT(c,l,r,this.appId,u,o,a,d);break;case Qn.ShadowDom:return new KU(c,l,t,r,o,a,this.nonce,d);default:s=new jg(c,l,r,u,o,a,d)}i.set(r.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(r){return new(r||e)(k(IT),k(AT),k(Hs),k(qU),k(Vt),k($r),k(pe),k(eb))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})();class Bg{constructor(n,t,r,i){this.eventManager=n,this.doc=t,this.ngZone=r,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(n,t){return t?this.doc.createElementNS(Fg[t]||t,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,t){(kT(n)?n.content:n).appendChild(t)}insertBefore(n,t,r){n&&(kT(n)?n.content:n).insertBefore(t,r)}removeChild(n,t){t.remove()}selectRootElement(n,t){let r="string"==typeof n?this.doc.querySelector(n):n;if(!r)throw new E(-5104,!1);return t||(r.textContent=""),r}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,t,r,i){if(i){t=i+":"+t;const s=Fg[i];s?n.setAttributeNS(s,t,r):n.setAttribute(t,r)}else n.setAttribute(t,r)}removeAttribute(n,t,r){if(r){const i=Fg[r];i?n.removeAttributeNS(i,t):n.removeAttribute(`${r}:${t}`)}else n.removeAttribute(t)}addClass(n,t){n.classList.add(t)}removeClass(n,t){n.classList.remove(t)}setStyle(n,t,r,i){i&(ui.DashCase|ui.Important)?n.style.setProperty(t,r,i&ui.Important?"important":""):n.style[t]=r}removeStyle(n,t,r){r&ui.DashCase?n.style.removeProperty(t):n.style[t]=""}setProperty(n,t,r){null!=n&&(n[t]=r)}setValue(n,t){n.nodeValue=t}listen(n,t,r){if("string"==typeof n&&!(n=ic().getGlobalEventTarget(this.doc,n)))throw new Error(`Unsupported event target ${n} for event ${t}`);return this.eventManager.addEventListener(n,t,this.decoratePreventDefault(r))}decoratePreventDefault(n){return t=>{if("__ngUnwrap__"===t)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(t)):n(t))&&t.preventDefault()}}}function kT(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class KU extends Bg{constructor(n,t,r,i,s,o,a,c){super(n,s,o,c),this.sharedStylesHost=t,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=NT(i.id,i.styles);for(const u of l){const d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=u,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,t){return super.appendChild(this.nodeOrShadowRoot(n),t)}insertBefore(n,t,r){return super.insertBefore(this.nodeOrShadowRoot(n),t,r)}removeChild(n,t){return super.removeChild(null,t)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class jg extends Bg{constructor(n,t,r,i,s,o,a,c){super(n,s,o,a),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=i,this.styles=c?NT(c,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class PT extends jg{constructor(n,t,r,i,s,o,a,c){const l=i+"-"+r.id;super(n,t,r,s,o,a,c,l),this.contentAttr=function WU(e){return"_ngcontent-%COMP%".replace(Lg,e)}(l),this.hostAttr=function ZU(e){return"_nghost-%COMP%".replace(Lg,e)}(l)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,t){const r=super.createElement(n,t);return super.setAttribute(r,this.contentAttr,""),r}}let QU=(()=>{class e extends Og{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,i){return t.addEventListener(r,i,!1),()=>this.removeEventListener(t,r,i)}removeEventListener(t,r,i){return t.removeEventListener(r,i)}static#e=this.\u0275fac=function(r){return new(r||e)(k(Vt))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})(),XU=(()=>{class e extends Og{constructor(t){super(t),this.delegate=A($S,{optional:!0})}supports(t){return!!this.delegate&&this.delegate.supports(t)}addEventListener(t,r,i){return this.delegate.addEventListener(t,r,i)}removeEventListener(t,r,i){return this.delegate.removeEventListener(t,r,i)}static#e=this.\u0275fac=function(r){return new(r||e)(k(Vt))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})();const OT=["alt","control","meta","shift"],JU={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},e$={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let t$=(()=>{class e extends Og{constructor(t){super(t)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,r,i){const s=e.parseEventName(r),o=e.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ic().onAndCancel(t,s.domEventName,o))}static parseEventName(t){const r=t.toLowerCase().split("."),i=r.shift();if(0===r.length||"keydown"!==i&&"keyup"!==i)return null;const s=e._normalizeKey(r.pop());let o="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),o="code."),OT.forEach(l=>{const u=r.indexOf(l);u>-1&&(r.splice(u,1),o+=l+".")}),o+=s,0!=r.length||0===s.length)return null;const c={};return c.domEventName=i,c.fullKey=o,c}static matchEventFullKeyCode(t,r){let i=JU[t.key]||t.key,s="";return r.indexOf("code.")>-1&&(i=t.code,s="code."),!(null==i||!i)&&(i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),OT.forEach(o=>{o!==i&&(0,e$[o])(t)&&(s+=o+".")}),s+=i,s===r)}static eventCallback(t,r,i){return s=>{e.matchEventFullKeyCode(s,t)&&i.runGuarded(()=>r(s))}}static _normalizeKey(t){return"esc"===t?"escape":t}static#e=this.\u0275fac=function(r){return new(r||e)(k(Vt))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})();const s$=mS(lH,"browser",[{provide:$r,useValue:gT},{provide:XC,useValue:function n$(){Pg.makeCurrent()},multi:!0},{provide:Vt,useFactory:function i$(){return function jP(e){Yh=e}(document),document},deps:[]}]),o$=new N(""),LT=[{provide:Au,useClass:class HU{addToWindow(n){$e.getAngularTestability=(r,i=!0)=>{const s=n.findTestabilityInTree(r,i);if(null==s)throw new E(5103,!1);return s},$e.getAllAngularTestabilities=()=>n.getAllTestabilities(),$e.getAllAngularRootElements=()=>n.getAllRootElements(),$e.frameworkStabilizers||($e.frameworkStabilizers=[]),$e.frameworkStabilizers.push(r=>{const i=$e.getAllAngularTestabilities();let s=i.length;const o=function(){s--,0==s&&r()};i.forEach(a=>{a.whenStable(o)})})}findTestabilityInTree(n,t,r){return null==t?null:n.getTestability(t)??(r?ic().isShadowRoot(t)?this.findTestabilityInTree(n,t.host,!0):this.findTestabilityInTree(n,t.parentElement,!0):null)}},deps:[]},{provide:nS,useClass:Zm,deps:[pe,Ym,Au]},{provide:Zm,useClass:Zm,deps:[pe,Ym,Au]}],VT=[{provide:ah,useValue:"root"},{provide:Dr,useFactory:function r$(){return new Dr},deps:[]},{provide:od,useClass:QU,multi:!0,deps:[Vt,pe,$r]},{provide:od,useClass:t$,multi:!0,deps:[Vt]},{provide:od,useClass:XU,multi:!0},Vg,AT,IT,{provide:ru,useExisting:Vg},{provide:_T,useClass:UU,deps:[]},[]];let ad=(()=>{class e{constructor(t){}static withServerTransition(t){return{ngModule:e,providers:[{provide:Hs,useValue:t.appId}]}}static#e=this.\u0275fac=function(r){return new(r||e)(k(o$,12))};static#t=this.\u0275mod=bt({type:e});static#n=this.\u0275inj=ft({providers:[...VT,...LT],imports:[Ag,uH]})}return e})(),Hg=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=R({token:e,factory:function(r){let i=null;return i=r?new(r||e):k(u$),i},providedIn:"root"})}return e})(),u$=(()=>{class e extends Hg{constructor(t){super(),this._doc=t}sanitize(t,r){if(null==r)return null;switch(t){case En.NONE:return r;case En.HTML:return Sr(r,"HTML")?bn(r):wb(this._doc,String(r)).toString();case En.STYLE:return Sr(r,"Style")?bn(r):r;case En.SCRIPT:if(Sr(r,"Script"))return bn(r);throw new E(5200,!1);case En.URL:return Sr(r,"URL")?bn(r):Bl(String(r));case En.RESOURCE_URL:if(Sr(r,"ResourceURL"))return bn(r);throw new E(5201,!1);default:throw new E(5202,!1)}}bypassSecurityTrustHtml(t){return function aO(e){return new tO(e)}(t)}bypassSecurityTrustStyle(t){return function cO(e){return new nO(e)}(t)}bypassSecurityTrustScript(t){return function lO(e){return new rO(e)}(t)}bypassSecurityTrustUrl(t){return function uO(e){return new iO(e)}(t)}bypassSecurityTrustResourceUrl(t){return function dO(e){return new sO(e)}(t)}static#e=this.\u0275fac=function(r){return new(r||e)(k(Vt))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Ug={now:()=>(Ug.delegate||Date).now(),delegate:void 0};class d$ extends kt{constructor(n=1/0,t=1/0,r=Ug){super(),this._bufferSize=n,this._windowTime=t,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=t===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,t)}next(n){const{isStopped:t,_buffer:r,_infiniteTimeWindow:i,_timestampProvider:s,_windowTime:o}=this;t||(r.push(n),!i&&r.push(s.now()+o)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();const t=this._innerSubscribe(n),{_infiniteTimeWindow:r,_buffer:i}=this,s=i.slice();for(let o=0;o<s.length&&!n.closed;o+=r?1:2)n.next(s[o]);return this._checkFinalizedStatuses(n),t}_trimBuffer(){const{_bufferSize:n,_timestampProvider:t,_buffer:r,_infiniteTimeWindow:i}=this,s=(i?1:2)*n;if(n<1/0&&s<r.length&&r.splice(0,r.length-s),!i){const o=t.now();let a=0;for(let c=1;c<r.length&&r[c]<=o;c+=2)a=c;a&&r.splice(0,a+1)}}}var ld=function(){return ld=Object.assign||function(n){for(var t,r=1,i=arguments.length;r<i;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(n[s]=t[s]);return n},ld.apply(this,arguments)};function Gn(e,n,t,r){return new(t||(t=Promise))(function(s,o){function a(u){try{l(r.next(u))}catch(d){o(d)}}function c(u){try{l(r.throw(u))}catch(d){o(d)}}function l(u){u.done?s(u.value):function i(s){return s instanceof t?s:new t(function(o){o(s)})}(u.value).then(a,c)}l((r=r.apply(e,n||[])).next())})}function ur(e,n){var r,i,s,o,t={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(l){return function(u){return function c(l){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(t=0)),t;)try{if(r=1,i&&(s=2&l[0]?i.return:l[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,l[1])).done)return s;switch(i=0,s&&(l=[2&l[0],s.value]),l[0]){case 0:case 1:s=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,i=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(!(s=(s=t.trys).length>0&&s[s.length-1])&&(6===l[0]||2===l[0])){t=0;continue}if(3===l[0]&&(!s||l[1]>s[0]&&l[1]<s[3])){t.label=l[1];break}if(6===l[0]&&t.label<s[1]){t.label=s[1],s=l;break}if(s&&t.label<s[2]){t.label=s[2],t.ops.push(l);break}s[2]&&t.ops.pop(),t.trys.pop();continue}l=n.call(e,t)}catch(u){l=[6,u],i=0}finally{r=s=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,u])}}}function qg(e,n,t){if(t||2===arguments.length)for(var s,r=0,i=n.length;r<i;r++)(s||!(r in n))&&(s||(s=Array.prototype.slice.call(n,0,r)),s[r]=n[r]);return e.concat(s||Array.prototype.slice.call(n))}function _i(e){return this instanceof _i?(this.v=e,this):new _i(e)}function $T(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function zg(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],r=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(s){t[s]=e[s]&&function(o){return new Promise(function(a,c){!function i(s,o,a,c){Promise.resolve(c).then(function(l){s({value:l,done:a})},o)}(a,c,(o=e[s](o)).done,o.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const GT=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function zT(e){return Xe(e?.then)}function qT(e){return Xe(e[If])}function WT(e){return Symbol.asyncIterator&&Xe(e?.[Symbol.asyncIterator])}function ZT(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const YT=function N$(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function KT(e){return Xe(e?.[YT])}function QT(e){return function UT(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=t.apply(e,n||[]),s=[];return i={},a("next"),a("throw"),a("return",function o(h){return function(p){return Promise.resolve(p).then(h,d)}}),i[Symbol.asyncIterator]=function(){return this},i;function a(h,p){r[h]&&(i[h]=function(m){return new Promise(function(g,_){s.push([h,m,g,_])>1||c(h,m)})},p&&(i[h]=p(i[h])))}function c(h,p){try{!function l(h){h.value instanceof _i?Promise.resolve(h.value.v).then(u,d):f(s[0][2],h)}(r[h](p))}catch(m){f(s[0][3],m)}}function u(h){c("next",h)}function d(h){c("throw",h)}function f(h,p){h(p),s.shift(),s.length&&c(s[0][0],s[0][1])}}(this,arguments,function*(){const t=e.getReader();try{for(;;){const{value:r,done:i}=yield _i(t.read());if(i)return yield _i(void 0);yield yield _i(r)}}finally{t.releaseLock()}})}function XT(e){return Xe(e?.getReader)}function dr(e){if(e instanceof nt)return e;if(null!=e){if(qT(e))return function k$(e){return new nt(n=>{const t=e[If]();if(Xe(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(GT(e))return function P$(e){return new nt(n=>{for(let t=0;t<e.length&&!n.closed;t++)n.next(e[t]);n.complete()})}(e);if(zT(e))return function O$(e){return new nt(n=>{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,S_)})}(e);if(WT(e))return JT(e);if(KT(e))return function R$(e){return new nt(n=>{for(const t of e)if(n.next(t),n.closed)return;n.complete()})}(e);if(XT(e))return function F$(e){return JT(QT(e))}(e)}throw ZT(e)}function JT(e){return new nt(n=>{(function L$(e,n){var t,r,i,s;return Gn(this,void 0,void 0,function*(){try{for(t=$T(e);!(r=yield t.next()).done;)if(n.next(r.value),n.closed)return}catch(o){i={error:o}}finally{try{r&&!r.done&&(s=t.return)&&(yield s.call(t))}finally{if(i)throw i.error}}n.complete()})})(e,n).catch(t=>n.error(t))})}function vi(e,n,t,r=0,i=!1){const s=n.schedule(function(){t(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(s),!i)return s}function ud(e,n,t=1/0){return Xe(n)?ud((r,i)=>Pt((s,o)=>n(r,s,i,o))(dr(e(r,i))),t):("number"==typeof n&&(t=n),gn((r,i)=>function V$(e,n,t,r,i,s,o,a){const c=[];let l=0,u=0,d=!1;const f=()=>{d&&!c.length&&!l&&n.complete()},h=m=>l<r?p(m):c.push(m),p=m=>{s&&n.next(m),l++;let g=!1;dr(t(m,u++)).subscribe(sn(n,_=>{i?.(_),s?h(_):n.next(_)},()=>{g=!0},void 0,()=>{if(g)try{for(l--;c.length&&l<r;){const _=c.shift();o?vi(n,o,()=>p(_)):p(_)}f()}catch(_){n.error(_)}}))};return e.subscribe(sn(n,h,()=>{d=!0,f()})),()=>{a?.()}}(r,i,e,t)))}function eM(e=1/0){return ud(Af,e)}const tM=new nt(e=>e.complete());function nM(e){return e&&Xe(e.schedule)}function Wg(e){return e[e.length-1]}function dd(e){return nM(Wg(e))?e.pop():void 0}function rM(e,n=0){return gn((t,r)=>{t.subscribe(sn(r,i=>vi(r,e,()=>r.next(i),n),()=>vi(r,e,()=>r.complete(),n),i=>vi(r,e,()=>r.error(i),n)))})}function iM(e,n=0){return gn((t,r)=>{r.add(e.schedule(()=>t.subscribe(r),n))})}function sM(e,n){if(!e)throw new Error("Iterable cannot be null");return new nt(t=>{vi(t,n,()=>{const r=e[Symbol.asyncIterator]();vi(t,n,()=>{r.next().then(i=>{i.done?t.complete():t.next(i.value)})},0,!0)})})}function Ci(e,n){return n?function W$(e,n){if(null!=e){if(qT(e))return function U$(e,n){return dr(e).pipe(iM(n),rM(n))}(e,n);if(GT(e))return function G$(e,n){return new nt(t=>{let r=0;return n.schedule(function(){r===e.length?t.complete():(t.next(e[r++]),t.closed||this.schedule())})})}(e,n);if(zT(e))return function $$(e,n){return dr(e).pipe(iM(n),rM(n))}(e,n);if(WT(e))return sM(e,n);if(KT(e))return function z$(e,n){return new nt(t=>{let r;return vi(t,n,()=>{r=e[YT](),vi(t,n,()=>{let i,s;try{({value:i,done:s}=r.next())}catch(o){return void t.error(o)}s?t.complete():t.next(i)},0,!0)}),()=>Xe(r?.return)&&r.return()})}(e,n);if(XT(e))return function q$(e,n){return sM(QT(e),n)}(e,n)}throw ZT(e)}(e,n):dr(e)}function oM(e,n){return gn((t,r)=>{let i=null,s=0,o=!1;const a=()=>o&&!i&&r.complete();t.subscribe(sn(r,c=>{i?.unsubscribe();let l=0;const u=s++;dr(e(c,u)).subscribe(i=sn(r,d=>r.next(n?n(c,d,u,l++):d),()=>{i=null,a()}))},()=>{o=!0,a()}))})}const fd={schedule(e,n){const t=setTimeout(e,n);return()=>clearTimeout(t)},scheduleBeforeRender(e){if(typeof window>"u")return fd.schedule(e,0);if(typeof window.requestAnimationFrame>"u")return fd.schedule(e,16);const n=window.requestAnimationFrame(e);return()=>window.cancelAnimationFrame(n)}};let Zg;function r4(e,n,t){let r=t;return function K$(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}(e)&&n.some((i,s)=>!("*"===i||!function X$(e,n){if(!Zg){const t=Element.prototype;Zg=t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE&&Zg.call(e,n)}(e,i)||(r=s,0))),r}class s4{constructor(n,t){this.componentFactory=t.get(Ki).resolveComponentFactory(n)}create(n){return new o4(this.componentFactory,n)}}class o4{constructor(n,t){this.componentFactory=n,this.injector=t,this.eventEmitters=new d$(1),this.events=this.eventEmitters.pipe(oM(r=>function Z$(...e){const n=dd(e),t=function H$(e,n){return"number"==typeof Wg(e)?e.pop():n}(e,1/0),r=e;return r.length?1===r.length?dr(r[0]):eM(t)(Ci(r,n)):tM}(...r))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:r})=>r)),this.ngZone=this.injector.get(pe),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(n){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(n)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=fd.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(n){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(n):this.componentRef.instance[n])}setInputValue(n,t,r){this.runInZone(()=>{r&&(t=r.call(this.componentRef?.instance,t)),null!==this.componentRef?function J$(e,n){return e===n||e!=e&&n!=n}(t,this.getInputValue(n))&&(void 0!==t||!this.unchangedInputs.has(n))||(this.recordInputChange(n,t),this.unchangedInputs.delete(n),this.hasInputChanges=!0,this.componentRef.instance[n]=t,this.scheduleDetectChanges()):this.initialInputValues.set(n,t)})}initializeComponent(n){const t=Ne.create({providers:[],parent:this.injector}),r=function n4(e,n){const t=e.childNodes,r=n.map(()=>[]);let i=-1;n.some((s,o)=>"*"===s&&(i=o,!0));for(let s=0,o=t.length;s<o;++s){const a=t[s],c=r4(a,n,i);-1!==c&&r[c].push(a)}return r}(n,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,r,n),this.viewChangeDetectorRef=this.componentRef.injector.get(wo),this.implementsOnChanges=function Q$(e){return"function"==typeof e}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(jn).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:n,transform:t})=>{this.initialInputValues.has(n)&&this.setInputValue(n,this.initialInputValues.get(n),t)}),this.initialInputValues.clear()}initializeOutputs(n){const t=this.componentFactory.outputs.map(({propName:r,templateName:i})=>n.instance[r].pipe(Pt(o=>({name:i,value:o}))));this.eventEmitters.next(t)}callNgOnChanges(n){if(!this.implementsOnChanges||null===this.inputChanges)return;const t=this.inputChanges;this.inputChanges=null,n.instance.ngOnChanges(t)}markViewForCheck(n){this.hasInputChanges&&(this.hasInputChanges=!1,n.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=fd.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(n,t){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const r=this.inputChanges[n];if(r)return void(r.currentValue=t);const i=this.unchangedInputs.has(n),s=i?void 0:this.getInputValue(n);this.inputChanges[n]=new kv(s,t,i)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(n){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(n):n()}}class a4 extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}class Ae{constructor(n,t){this.type=n,this.payload=t}}const pn={phoneNumber:{length:{min:4,max:30}},card:{code:{lengths:{"american-express":[3,4]}},number:{length:{min:13,max:19}},holder:{length:{min:1,max:128}}},keys:{apmsCollapse:"apms-collapse"}};function aM(e,n,t,r,i,s,o){try{var a=e[s](o),c=a.value}catch(l){return void t(l)}a.done?n(c):Promise.resolve(c).then(r,i)}function ss(e){return function(){var n=this,t=arguments;return new Promise(function(r,i){var s=e.apply(n,t);function o(c){aM(s,r,i,o,a,"next",c)}function a(c){aM(s,r,i,o,a,"throw",c)}o(void 0)})}}function hd(e,n){return new Promise(function(t){return setTimeout(t,e,n)})}function pd(e){return!!e&&"function"==typeof e.then}function lM(e,n){try{var t=e();pd(t)?t.then(function(r){return n(!0,r)},function(r){return n(!1,r)}):n(!0,t)}catch(r){n(!1,r)}}function uM(e,n,t){return void 0===t&&(t=16),Gn(this,void 0,void 0,function(){var r,i,s,o;return ur(this,function(a){switch(a.label){case 0:r=Array(e.length),i=Date.now(),s=0,a.label=1;case 1:return s<e.length?(r[s]=n(e[s],s),(o=Date.now())>=i+t?(i=o,[4,new Promise(function(e){var n=new MessageChannel;n.port1.onmessage=function(){return e()},n.port2.postMessage(null)})]):[3,3]):[3,4];case 2:a.sent(),a.label=3;case 3:return++s,[3,1];case 4:return[2,r]}})})}function lc(e){return e.then(void 0,function(){}),e}function Yg(e){return parseInt(e)}function fr(e){return parseFloat(e)}function Yr(e,n){return"number"==typeof e&&isNaN(e)?n:e}function Jt(e){return e.reduce(function(n,t){return n+(t?1:0)},0)}function dM(e,n){if(void 0===n&&(n=1),Math.abs(n)>=1)return Math.round(e/n)*n;var t=1/n;return Math.round(e*t)/t}function bi(e,n){var u=0,d=0,f=0,h=0;f+=(h+=(65535&e[1])+(65535&n[1]))>>>16,h&=65535,d+=(f+=(e[1]>>>16)+(n[1]>>>16))>>>16,f&=65535,u+=(d+=(65535&e[0])+(65535&n[0]))>>>16,u+=(e[0]>>>16)+(n[0]>>>16),e[0]=(u&=65535)<<16|(d&=65535),e[1]=f<<16|h}function zn(e,n){var r=65535&e[0],i=e[1]>>>16,s=65535&e[1],a=65535&n[0],c=n[1]>>>16,l=65535&n[1],u=0,d=0,f=0,h=0;f+=(h+=s*l)>>>16,h&=65535,d+=(f+=i*l)>>>16,f&=65535,d+=(f+=s*c)>>>16,f&=65535,u+=(d+=r*l)>>>16,d&=65535,u+=(d+=i*c)>>>16,d&=65535,u+=(d+=s*a)>>>16,u+=(e[0]>>>16)*l+r*c+i*a+s*(n[0]>>>16),e[0]=(u&=65535)<<16|(d&=65535),e[1]=f<<16|h}function To(e,n){var t=e[0];32==(n%=64)?(e[0]=e[1],e[1]=t):n<32?(e[0]=t<<n|e[1]>>>32-n,e[1]=e[1]<<n|t>>>32-n):(e[0]=e[1]<<(n-=32)|t>>>32-n,e[1]=t<<n|e[1]>>>32-n)}function In(e,n){0!=(n%=64)&&(n<32?(e[0]=e[1]>>>32-n,e[1]=e[1]<<n):(e[0]=e[1]<<n-32,e[1]=0))}function Ze(e,n){e[0]^=n[0],e[1]^=n[1]}var m4=[4283543511,3981806797],g4=[3301882366,444984403];function fM(e){var n=[0,e[0]>>>1];Ze(e,n),zn(e,m4),n[1]=e[0]>>>1,Ze(e,n),zn(e,g4),n[1]=e[0]>>>1,Ze(e,n)}var md=[2277735313,289559509],gd=[1291169091,658871167],hM=[0,5],y4=[0,1390208809],_4=[0,944331445];function mM(){var e=window,n=navigator;return Jt(["MSCSSMatrix"in e,"msSetImmediate"in e,"msIndexedDB"in e,"msMaxTouchPoints"in n,"msPointerEnabled"in n])>=4}function uc(){var e=window,n=navigator;return Jt(["webkitPersistentStorage"in n,"webkitTemporaryStorage"in n,0===n.vendor.indexOf("Google"),"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function hr(){var e=window;return Jt(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,0===navigator.vendor.indexOf("Apple"),"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function Kg(){var e=window,n=e.HTMLElement,t=e.Document;return Jt(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),n&&!("autocapitalize"in n.prototype),t&&"pointerLockElement"in t.prototype])>=4}function dc(){var e=window;return function b4(e){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))}(e.print)&&"[object WebPageNamespace]"===String(e.browser)}function gM(){var e,n,t=window;return Jt(["buildID"in navigator,"MozAppearance"in(null!==(n=null===(e=document.documentElement)||void 0===e?void 0:e.style)&&void 0!==n?n:{}),"onmozfullscreenchange"in t,"mozInnerScreenX"in t,"CSSMozDocumentRule"in t,"CanvasCaptureMediaStream"in t])>=4}function fc(){var e=window,n=navigator,t=e.CSS,r=e.HTMLButtonElement;return Jt([!("getStorageUpdates"in n),r&&"popover"in r.prototype,"CSSCounterStyleRule"in e,t.supports("font-size-adjust: ex-height 0.5"),t.supports("text-transform: full-width")])>=4}function x4(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function Qg(){var e=uc(),n=gM(),t=window,r=navigator,i="connection";return e?Jt([!("SharedWorker"in t),r[i]&&"ontypechange"in r[i],!("sinkId"in new Audio)])>=2:!!n&&Jt(["onorientationchange"in t,"orientation"in t,/android/i.test(r.appVersion)])>=2}function yM(e){var n=new Error(e);return n.name=e,n}function _M(e,n,t){var r,i,s;return void 0===t&&(t=50),Gn(this,void 0,void 0,function(){var o,a;return ur(this,function(c){switch(c.label){case 0:o=document,c.label=1;case 1:return o.body?[3,3]:[4,hd(t)];case 2:return c.sent(),[3,1];case 3:a=o.createElement("iframe"),c.label=4;case 4:return c.trys.push([4,,10,11]),[4,new Promise(function(l,u){var d=!1,f=function(){d=!0,l()};a.onload=f,a.onerror=function(g){d=!0,u(g)};var p=a.style;p.setProperty("display","block","important"),p.position="absolute",p.top="0",p.left="0",p.visibility="hidden",n&&"srcdoc"in a?a.srcdoc=n:a.src="about:blank",o.body.appendChild(a);var m=function(){var g,_;d||("complete"===(null===(_=null===(g=a.contentWindow)||void 0===g?void 0:g.document)||void 0===_?void 0:_.readyState)?f():setTimeout(m,10))};m()})];case 5:c.sent(),c.label=6;case 6:return null!==(i=null===(r=a.contentWindow)||void 0===r?void 0:r.document)&&void 0!==i&&i.body?[3,8]:[4,hd(t)];case 7:return c.sent(),[3,6];case 8:return[4,e(a,a.contentWindow)];case 9:return[2,c.sent()];case 10:return null===(s=a.parentNode)||void 0===s||s.removeChild(a),[7];case 11:return[2]}})})}function V4(e){for(var n=function h4(e){for(var n,t,r="Unexpected syntax '".concat(e,"'"),i=/^\s*([a-z-]*)(.*)$/i.exec(e),s=i[1]||void 0,o={},a=/([.:#][\w-]+|\[.+?\])/gi,c=function(f,h){o[f]=o[f]||[],o[f].push(h)};;){var l=a.exec(i[2]);if(!l)break;var u=l[0];switch(u[0]){case".":c("class",u.slice(1));break;case"#":c("id",u.slice(1));break;case"[":var d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(u);if(!d)throw new Error(r);c(d[1],null!==(t=null!==(n=d[4])&&void 0!==n?n:d[5])&&void 0!==t?t:"");break;default:throw new Error(r)}}return[s,o]}(e),r=n[1],i=document.createElement(n[0]??"div"),s=0,o=Object.keys(r);s<o.length;s++){var a=o[s],c=r[a].join(" ");"style"===a?B4(i.style,c):i.setAttribute(a,c)}return i}function B4(e,n){for(var t=0,r=n.split(";");t<r.length;t++){var s=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(r[t]);s&&e.setProperty(s[1],s[2],s[4]||"")}}var Mo=["monospace","sans-serif","serif"],vM=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function Xg(e){return e.toDataURL()}var yd,Jg;function ey(){var e=screen;return[Yr(fr(e.availTop),null),Yr(fr(e.width)-fr(e.availWidth)-Yr(fr(e.availLeft),0),null),Yr(fr(e.height)-fr(e.availHeight)-Yr(fr(e.availTop),0),null),Yr(fr(e.availLeft),null)]}function ty(e){for(var n=0;n<4;++n)if(e[n])return!1;return!0}function M8(e){var n;return Gn(this,void 0,void 0,function(){var t,r,i,s,o,a,c;return ur(this,function(l){switch(l.label){case 0:for(t=document,r=t.createElement("div"),i=new Array(e.length),s={},CM(r),c=0;c<e.length;++c)"DIALOG"===(o=V4(e[c])).tagName&&o.show(),CM(a=t.createElement("div")),a.appendChild(o),r.appendChild(a),i[c]=o;l.label=1;case 1:return t.body?[3,3]:[4,hd(50)];case 2:return l.sent(),[3,1];case 3:t.body.appendChild(r);try{for(c=0;c<e.length;++c)i[c].offsetParent||(s[e[c]]=!0)}finally{null===(n=r.parentNode)||void 0===n||n.removeChild(r)}return[2,s]}})})}function CM(e){e.style.setProperty("visibility","hidden","important"),e.style.setProperty("display","block","important")}function bM(e){return matchMedia("(inverted-colors: ".concat(e,")")).matches}function EM(e){return matchMedia("(forced-colors: ".concat(e,")")).matches}function Io(e){return matchMedia("(prefers-contrast: ".concat(e,")")).matches}function wM(e){return matchMedia("(prefers-reduced-motion: ".concat(e,")")).matches}function DM(e){return matchMedia("(prefers-reduced-transparency: ".concat(e,")")).matches}function SM(e){return matchMedia("(dynamic-range: ".concat(e,")")).matches}var Se=Math,en=function(){return 0},ny={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]},Z8=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),Y8=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),K8=["FRAGMENT_SHADER","VERTEX_SHADER"],Q8=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],IM="WEBGL_debug_renderer_info";function AM(e){if(e.webgl)return e.webgl.context;var t,n=document.createElement("canvas");n.addEventListener("webglCreateContextError",function(){return t=void 0});for(var r=0,i=["webgl","experimental-webgl"];r<i.length;r++){var s=i[r];try{t=n.getContext(s)}catch{}if(t)break}return e.webgl={context:t},t}function t5(e,n,t){var r=e.getShaderPrecisionFormat(e[n],e[t]);return r?[r.rangeMin,r.rangeMax,r.precision]:[]}function xM(e){return Object.keys(e.__proto__).filter(n5)}function n5(e){return"string"==typeof e&&!e.match(/[^A-Z0-9_x]/)}function NM(){return gM()}function kM(e){return"function"==typeof e.getParameter}var s5={fonts:function $4(){var e=this;return _M(function(n,t){var r=t.document;return Gn(e,void 0,void 0,function(){var i,s,o,a,c,l,d,f,h,p,m;return ur(this,function(g){for((i=r.body).style.fontSize="48px",(s=r.createElement("div")).style.setProperty("visibility","hidden","important"),o={},a={},l=function(_,y){return c("'".concat(_,"',").concat(y))},d=function(){for(var _={},y=function(F){_[F]=Mo.map(function(j){return l(F,j)})},w=0,D=vM;w<D.length;w++)y(D[w]);return _},f=function(_){return Mo.some(function(y,w){return _[w].offsetWidth!==o[y]||_[w].offsetHeight!==a[y]})},h=Mo.map(c=function(_){var y=r.createElement("span"),w=y.style;return w.position="absolute",w.top="0",w.left="0",w.fontFamily=_,y.textContent="mmMwWLliI0O&1",s.appendChild(y),y}),p=d(),i.appendChild(s),m=0;m<Mo.length;m++)o[Mo[m]]=h[m].offsetWidth,a[Mo[m]]=h[m].offsetHeight;return[2,vM.filter(function(_){return f(p[_])})]})})})},domBlockers:function S8(e){var t=(void 0===e?{}:e).debug;return Gn(this,void 0,void 0,function(){var r,i,o,a,c;return ur(this,function(l){switch(l.label){case 0:return function T8(){return hr()||Qg()}()?(r=function D8(){var e=atob;return{abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',e("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",e("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",e("LnNwb25zb3JpdA=="),".ylamainos",e("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",e("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",e("LmhlYWRlci1ibG9ja2VkLWFk"),e("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",e("I2FkXzMwMFgyNTA="),e("I2Jhbm5lcmZsb2F0MjI="),e("I2NhbXBhaWduLWJhbm5lcg=="),e("I0FkLUNvbnRlbnQ=")],adGuardChinese:[e("LlppX2FkX2FfSA=="),e("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",e("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),e("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",e("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",e("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",e("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),e("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),e("LmFkZ29vZ2xl"),e("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[e("YW1wLWF1dG8tYWRz"),e("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",e("I2FkX2ludmlld19hcmVh")],adGuardRussian:[e("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),e("LnJlY2xhbWE="),'div[id^="smi2adblock"]',e("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[e("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),e("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",e("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),e("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),e("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",e("I3Jla2xhbWk="),e("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),e("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),e("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[e("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",e("LndpZGdldF9wb19hZHNfd2lkZ2V0"),e("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",e("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[e("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),e("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",e("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",e("I3Jla2xhbW5pLWJveA=="),e("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",e("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[e("I2FkdmVydGVudGll"),e("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",e("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",e("LnNwb25zb3JsaW5rZ3J1ZW4="),e("I3dlcmJ1bmdza3k="),e("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),e("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[e("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",e("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[e("LnJla2xhbW9zX3RhcnBhcw=="),e("LnJla2xhbW9zX251b3JvZG9z"),e("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),e("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),e("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[e("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[e("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),e("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",e("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[e("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),e("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),e("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",e("LmFkX19tYWlu"),e("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[e("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[e("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),e("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[e("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),e("I2xpdmVyZUFkV3JhcHBlcg=="),e("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),e("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[e("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",e("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),e("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),e("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[e("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),e("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),e("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",e("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),e("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),e("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),e("ZGl2I3NrYXBpZWNfYWQ=")],ro:[e("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),e("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),e("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[e("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),e("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),e("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",e("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),e("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",e("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]}}(),i=Object.keys(r),[4,M8((c=[]).concat.apply(c,i.map(function(u){return r[u]})))]):[2,void 0];case 1:return o=l.sent(),t&&function I8(e,n){for(var t="DOM blockers debug:\n```",r=0,i=Object.keys(e);r<i.length;r++){var s=i[r];t+="\n".concat(s,":");for(var o=0,a=e[s];o<a.length;o++){var c=a[o];t+="\n ".concat(n[c]?"\u{1f6ab}":"\u27a1\ufe0f"," ").concat(c)}}console.log("".concat(t,"\n```"))}(r,o),(a=i.filter(function(u){var d=r[u];return Jt(d.map(function(h){return o[h]}))>.6*d.length})).sort(),[2,a]}})})},fontPreferences:function j8(){return function H8(e,n){return void 0===n&&(n=4e3),_M(function(t,r){var i=r.document,s=i.body,o=s.style;o.width="".concat(n,"px"),o.webkitTextSizeAdjust=o.textSizeAdjust="none",uc()?s.style.zoom="".concat(1/r.devicePixelRatio):hr()&&(s.style.zoom="reset");var a=i.createElement("div");return a.textContent=qg([],Array(n/20|0),!0).map(function(){return"word"}).join(" "),s.appendChild(a),e(i,s)},'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}(function(e,n){for(var t={},r={},i=0,s=Object.keys(ny);i<s.length;i++){var a=ny[o=s[i]],c=a[0],l=void 0===c?{}:c,u=a[1],d=void 0===u?"mmMwWLliI0fiflO&1":u,f=e.createElement("span");f.textContent=d,f.style.whiteSpace="nowrap";for(var h=0,p=Object.keys(l);h<p.length;h++){var m=p[h],g=l[m];void 0!==g&&(f.style[m]=g)}t[o]=f,n.append(e.createElement("br"),f)}for(var _=0,y=Object.keys(ny);_<y.length;_++){var o;r[o=y[_]]=t[o].getBoundingClientRect().width}return r})},audio:function k4(){return function R4(){return hr()&&fc()&&dc()||uc()&&function N4(){var e=navigator,n=window,t=Audio.prototype,r=n.visualViewport;return Jt(["srLatency"in t,"srChannelCount"in t,"devicePosture"in e,r&&"segments"in r,"getTextInformation"in Image.prototype])>=3}()&&function T4(){var e=window,n=e.URLPattern;return Jt(["union"in Set.prototype,"Iterator"in e,n&&"hasRegExpGroups"in n.prototype,"RGB8"in WebGLRenderingContext.prototype])>=3}()}()?-4:function P4(){var e=window,n=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!n)return-2;if(function O4(){return hr()&&!Kg()&&!function M4(){var e=window;return Jt(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}()}())return-1;var i=new n(1,5e3,44100),s=i.createOscillator();s.type="triangle",s.frequency.value=1e4;var o=i.createDynamicsCompressor();o.threshold.value=-50,o.knee.value=40,o.ratio.value=12,o.attack.value=0,o.release.value=.25,s.connect(o),o.connect(i.destination),s.start(0);var a=function F4(e){var s=function(){},o=new Promise(function(a,c){var l=!1,u=0,d=0;e.oncomplete=function(p){return a(p.renderedBuffer)};var f=function(){setTimeout(function(){return c(yM("timeout"))},Math.min(500,d+5e3-Date.now()))},h=function(){try{var p=e.startRendering();switch(pd(p)&&lc(p),e.state){case"running":d=Date.now(),l&&f();break;case"suspended":document.hidden||u++,l&&u>=3?c(yM("suspended")):setTimeout(h,500)}}catch(m){c(m)}};h(),s=function(){l||(l=!0,d>0&&f())}});return[o,s]}(i),l=a[1],u=lc(a[0].then(function(d){return function L4(e){for(var n=0,t=0;t<e.length;++t)n+=Math.abs(e[t]);return n}(d.getChannelData(0).subarray(4500))},function(d){if("timeout"===d.name||"suspended"===d.name)return-3;throw d}));return function(){return l(),u}}()},screenFrame:function d8(){var e=this;if(hr()&&fc()&&dc())return function(){return Promise.resolve(void 0)};var n=function u8(){var e=this;return function l8(){if(void 0===Jg){var e=function(){var n=ey();ty(n)?Jg=setTimeout(e,2500):(yd=n,Jg=void 0)};e()}}(),function(){return Gn(e,void 0,void 0,function(){var n;return ur(this,function(t){switch(t.label){case 0:return ty(n=ey())?yd?[2,qg([],yd,!0)]:function A4(){var e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}()?[4,x4()]:[3,2]:[3,2];case 1:t.sent(),n=ey(),t.label=2;case 2:return ty(n)||(yd=n),[2,n]}})})}}();return function(){return Gn(e,void 0,void 0,function(){var t,r;return ur(this,function(i){switch(i.label){case 0:return[4,n()];case 1:return t=i.sent(),[2,[(r=function(s){return null===s?null:dM(s,10)})(t[0]),r(t[1]),r(t[2]),r(t[3])]]}})})}},canvas:function z4(){return function q4(e){var n,r,i,t=!1,s=function W4(){var e=document.createElement("canvas");return e.width=1,e.height=1,[e,e.getContext("2d")]}(),o=s[0],a=s[1];return function Z4(e,n){return!(!n||!e.toDataURL)}(o,a)?(t=function Y4(e){return e.rect(0,0,10,10),e.rect(2,2,6,6),!e.isPointInPath(5,5,"evenodd")}(a),e?r=i="skipped":(n=function K4(e,n){!function Q4(e,n){e.width=240,e.height=60,n.textBaseline="alphabetic",n.fillStyle="#f60",n.fillRect(100,1,62,20),n.fillStyle="#069",n.font='11pt "Times New Roman"';var t="Cwm fjordbank gly ".concat("\u{1f603}");n.fillText(t,2,15),n.fillStyle="rgba(102, 204, 0, 0.2)",n.font="18pt Arial",n.fillText(t,4,45)}(e,n);var t=Xg(e);return t!==Xg(e)?["unstable","unstable"]:(function X4(e,n){e.width=122,e.height=110,n.globalCompositeOperation="multiply";for(var t=0,r=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];t<r.length;t++){var i=r[t],o=i[1],a=i[2];n.fillStyle=i[0],n.beginPath(),n.arc(o,a,40,0,2*Math.PI,!0),n.closePath(),n.fill()}n.fillStyle="#f9c",n.arc(60,60,60,0,2*Math.PI,!0),n.arc(60,60,20,0,2*Math.PI,!0),n.fill("evenodd")}(e,n),[Xg(e),t])}(o,a),r=n[0],i=n[1])):r=i="unsupported",{winding:t,geometry:r,text:i}}(function J4(){return hr()&&fc()&&dc()}())},osCpu:function t8(){return navigator.oscpu},languages:function n8(){var e=navigator,n=[],t=e.language||e.userLanguage||e.browserLanguage||e.systemLanguage;if(void 0!==t&&n.push([t]),Array.isArray(e.languages))uc()&&function S4(){var e=window;return Jt([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}()||n.push(e.languages);else if("string"==typeof e.languages){var r=e.languages;r&&n.push(r.split(","))}return n},colorDepth:function r8(){return window.screen.colorDepth},deviceMemory:function i8(){return Yr(fr(navigator.deviceMemory),void 0)},screenResolution:function s8(){if(!(hr()&&fc()&&dc()))return function o8(){var e=screen,n=function(r){return Yr(Yg(r),null)},t=[n(e.width),n(e.height)];return t.sort().reverse(),t}()},hardwareConcurrency:function f8(){return Yr(Yg(navigator.hardwareConcurrency),void 0)},timezone:function h8(){var e,n=null===(e=window.Intl)||void 0===e?void 0:e.DateTimeFormat;if(n){var t=(new n).resolvedOptions().timeZone;if(t)return t}var r=-function p8(){var e=(new Date).getFullYear();return Math.max(fr(new Date(e,0,1).getTimezoneOffset()),fr(new Date(e,6,1).getTimezoneOffset()))}();return"UTC".concat(r>=0?"+":"").concat(r)},sessionStorage:function m8(){try{return!!window.sessionStorage}catch{return!0}},localStorage:function g8(){try{return!!window.localStorage}catch{return!0}},indexedDB:function y8(){if(!mM()&&!function D4(){var e=window,n=navigator;return Jt(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in n,"msSaveBlob"in n])>=3&&!mM()}())try{return!!window.indexedDB}catch{return!0}},openDatabase:function _8(){return!!window.openDatabase},cpuClass:function v8(){return navigator.cpuClass},platform:function C8(){var e=navigator.platform;return"MacIntel"===e&&hr()&&!Kg()?function I4(){if("iPad"===navigator.platform)return!0;var e=screen,n=e.width/e.height;return Jt(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,n>.65&&n<1.53])>=2}()?"iPad":"iPhone":e},plugins:function G4(){var e=navigator.plugins;if(e){for(var n=[],t=0;t<e.length;++t){var r=e[t];if(r){for(var i=[],s=0;s<r.length;++s){var o=r[s];i.push({type:o.type,suffixes:o.suffixes})}n.push({name:r.name,description:r.description,mimeTypes:i})}}return n}},touchSupport:function e8(){var t,e=navigator,n=0;void 0!==e.maxTouchPoints?n=Yg(e.maxTouchPoints):void 0!==e.msMaxTouchPoints&&(n=e.msMaxTouchPoints);try{document.createEvent("TouchEvent"),t=!0}catch{t=!1}return{maxTouchPoints:n,touchEvent:t,touchStart:"ontouchstart"in window}},vendor:function b8(){return navigator.vendor||""},vendorFlavors:function E8(){for(var e=[],n=0,t=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];n<t.length;n++){var r=t[n],i=window[r];i&&"object"==typeof i&&e.push(r)}return e.sort()},cookiesEnabled:function w8(){var e=document;try{e.cookie="cookietest=1; SameSite=Strict;";var n=-1!==e.cookie.indexOf("cookietest=");return e.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",n}catch{return!1}},colorGamut:function A8(){for(var e=0,n=["rec2020","p3","srgb"];e<n.length;e++){var t=n[e];if(matchMedia("(color-gamut: ".concat(t,")")).matches)return t}},invertedColors:function x8(){return!!bM("inverted")||!bM("none")&&void 0},forcedColors:function N8(){return!!EM("active")||!EM("none")&&void 0},monochrome:function P8(){if(matchMedia("(min-monochrome: 0)").matches){for(var e=0;e<=100;++e)if(matchMedia("(max-monochrome: ".concat(e,")")).matches)return e;throw new Error("Too high value")}},contrast:function O8(){return Io("no-preference")?0:Io("high")||Io("more")?1:Io("low")||Io("less")?-1:Io("forced")?10:void 0},reducedMotion:function R8(){return!!wM("reduce")||!wM("no-preference")&&void 0},reducedTransparency:function F8(){return!!DM("reduce")||!DM("no-preference")&&void 0},hdr:function L8(){return!!SM("high")||!SM("standard")&&void 0},math:function V8(){var L,n=Se.acosh||en,t=Se.asin||en,r=Se.asinh||en,i=Se.atanh||en,s=Se.atan||en,o=Se.sin||en,a=Se.sinh||en,c=Se.cos||en,l=Se.cosh||en,u=Se.tan||en,d=Se.tanh||en,f=Se.exp||en,h=Se.expm1||en,p=Se.log1p||en;return{acos:(Se.acos||en)(.12312423423423424),acosh:n(1e308),acoshPf:(L=1e154,Se.log(L+Se.sqrt(L*L-1))),asin:t(.12312423423423424),asinh:r(1),asinhPf:Se.log(1+Se.sqrt(2)),atanh:i(.5),atanhPf:Se.log(3)/2,atan:s(.5),sin:o(-1e300),sinh:a(1),sinhPf:Se.exp(1)-1/Se.exp(1)/2,cos:c(10.000000000123),cosh:l(1),coshPf:(Se.exp(1)+1/Se.exp(1))/2,tan:u(-1e300),tanh:d(1),tanhPf:(Se.exp(2)-1)/(Se.exp(2)+1),exp:f(1),expm1:h(1),expm1Pf:Se.exp(1)-1,log1p:p(10),log1pPf:Se.log(11),powPI:Se.pow(Se.PI,-100)}},pdfViewerEnabled:function U8(){return navigator.pdfViewerEnabled},architecture:function $8(){var e=new Float32Array(1),n=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],n[3]},applePay:function G8(){var e=window.ApplePaySession;if("function"!=typeof e?.canMakePayments)return-1;if(function j4(){for(var e=window;;){var n=e.parent;if(!n||n===e)return!1;try{if(n.location.origin!==e.location.origin)return!0}catch(t){if(t instanceof Error&&"SecurityError"===t.name)return!0;throw t}e=n}}())return-3;try{return e.canMakePayments()?1:0}catch(n){return function q8(e){if(e instanceof Error&&"InvalidAccessError"===e.name&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}(n)}},privateClickMeasurement:function W8(){var e,n=document.createElement("a"),t=null!==(e=n.attributionSourceId)&&void 0!==e?e:n.attributionsourceid;return void 0===t?void 0:String(t)},audioBaseLatency:function i5(){var e;return Qg()||hr()?window.AudioContext&&null!==(e=(new AudioContext).baseLatency)&&void 0!==e?e:-1:-2},webGlBasics:function J8(e){var n,t,r,i,s,o,c=AM(e.cache);if(!c)return-1;if(!kM(c))return-2;var l=NM()?null:c.getExtension(IM);return{version:(null===(n=c.getParameter(c.VERSION))||void 0===n?void 0:n.toString())||"",vendor:(null===(t=c.getParameter(c.VENDOR))||void 0===t?void 0:t.toString())||"",vendorUnmasked:l?null===(r=c.getParameter(l.UNMASKED_VENDOR_WEBGL))||void 0===r?void 0:r.toString():"",renderer:(null===(i=c.getParameter(c.RENDERER))||void 0===i?void 0:i.toString())||"",rendererUnmasked:l?null===(s=c.getParameter(l.UNMASKED_RENDERER_WEBGL))||void 0===s?void 0:s.toString():"",shadingLanguageVersion:(null===(o=c.getParameter(c.SHADING_LANGUAGE_VERSION))||void 0===o?void 0:o.toString())||""}},webGlExtensions:function e5(e){var t=AM(e.cache);if(!t)return-1;if(!kM(t))return-2;var r=t.getSupportedExtensions(),i=t.getContextAttributes(),s=[],o=[],a=[],c=[],l=[];if(i)for(var u=0,d=Object.keys(i);u<d.length;u++){var f=d[u];o.push("".concat(f,"=").concat(i[f]))}for(var p=0,m=xM(t);p<m.length;p++){var _=t[g=m[p]];a.push("".concat(g,"=").concat(_).concat(Z8.has(_)?"=".concat(t.getParameter(_)):""))}if(r)for(var y=0,w=r;y<w.length;y++){var D=w[y];if(!(D===IM&&NM()||"WEBGL_polygon_mode"===D&&(uc()||hr()))){var M=t.getExtension(D);if(!M){s.push(D);continue}for(var F=0,j=xM(M);F<j.length;F++){var g;_=M[g=j[F]],c.push("".concat(g,"=").concat(_).concat(Y8.has(_)?"=".concat(t.getParameter(_)):""))}}}for(var L=0,Ye=K8;L<Ye.length;L++)for(var et=Ye[L],ct=0,nn=Q8;ct<nn.length;ct++){var Mi=nn[ct],Wn=t5(t,et,Mi);l.push("".concat(et,".").concat(Mi,"=").concat(Wn.join(",")))}return c.sort(),a.sort(),{contextAttributes:o,parameters:a,shaderPrecisions:l,extensions:r,extensionParameters:c,unsupportedExtensions:s}}},a5="$ if upgrade to Pro: https://fpjs.dev/pro";function PM(e){return JSON.stringify(e,function(n,t){return t instanceof Error?function C4(e){var n;return ld({name:e.name,message:e.message,stack:null===(n=e.stack)||void 0===n?void 0:n.split("\n")},e)}(t):t},2)}function OM(e){return function v4(e,n){var u,t=function p4(e){for(var n=new Uint8Array(e.length),t=0;t<e.length;t++){var r=e.charCodeAt(t);if(r>127)return(new TextEncoder).encode(e);n[t]=r}return n}(e),r=[0,t.length],i=r[1]%16,s=r[1]-i,o=[0,n=n||0],a=[0,n],c=[0,0],l=[0,0];for(u=0;u<s;u+=16)c[0]=t[u+4]|t[u+5]<<8|t[u+6]<<16|t[u+7]<<24,c[1]=t[u]|t[u+1]<<8|t[u+2]<<16|t[u+3]<<24,l[0]=t[u+12]|t[u+13]<<8|t[u+14]<<16|t[u+15]<<24,l[1]=t[u+8]|t[u+9]<<8|t[u+10]<<16|t[u+11]<<24,zn(c,md),To(c,31),zn(c,gd),Ze(o,c),To(o,27),bi(o,a),zn(o,hM),bi(o,y4),zn(l,gd),To(l,33),zn(l,md),Ze(a,l),To(a,31),bi(a,o),zn(a,hM),bi(a,_4);c[0]=0,c[1]=0,l[0]=0,l[1]=0;var d=[0,0];switch(i){case 15:d[1]=t[u+14],In(d,48),Ze(l,d);case 14:d[1]=t[u+13],In(d,40),Ze(l,d);case 13:d[1]=t[u+12],In(d,32),Ze(l,d);case 12:d[1]=t[u+11],In(d,24),Ze(l,d);case 11:d[1]=t[u+10],In(d,16),Ze(l,d);case 10:d[1]=t[u+9],In(d,8),Ze(l,d);case 9:d[1]=t[u+8],Ze(l,d),zn(l,gd),To(l,33),zn(l,md),Ze(a,l);case 8:d[1]=t[u+7],In(d,56),Ze(c,d);case 7:d[1]=t[u+6],In(d,48),Ze(c,d);case 6:d[1]=t[u+5],In(d,40),Ze(c,d);case 5:d[1]=t[u+4],In(d,32),Ze(c,d);case 4:d[1]=t[u+3],In(d,24),Ze(c,d);case 3:d[1]=t[u+2],In(d,16),Ze(c,d);case 2:d[1]=t[u+1],In(d,8),Ze(c,d);case 1:d[1]=t[u],Ze(c,d),zn(c,md),To(c,31),zn(c,gd),Ze(o,c)}return Ze(o,r),Ze(a,r),bi(o,a),bi(a,o),fM(o),fM(a),bi(o,a),bi(a,o),("00000000"+(o[0]>>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)+("00000000"+(a[0]>>>0).toString(16)).slice(-8)+("00000000"+(a[1]>>>0).toString(16)).slice(-8)}(function d5(e){for(var n="",t=0,r=Object.keys(e).sort();t<r.length;t++){var i=r[t],s=e[i],o="error"in s?"error":JSON.stringify(s.value);n+="".concat(n?"|":"").concat(i.replace(/([:|\\])/g,"\\$1"),":").concat(o)}return n}(e))}function h5(e){return void 0===e&&(e=50),function u4(e,n){void 0===n&&(n=1/0);var t=window.requestIdleCallback;return t?new Promise(function(r){return t.call(window,function(){return r()},{timeout:n})}):hd(Math.min(e,n))}(e,2*e)}function p5(e,n){var t=Date.now();return{get:function(r){return Gn(this,void 0,void 0,function(){var i,s,o;return ur(this,function(a){switch(a.label){case 0:return i=Date.now(),[4,e()];case 1:return s=a.sent(),o=function f5(e){var n,t=function c5(e){var n=function l5(e){if(Qg())return.4;if(hr())return!Kg()||fc()&&dc()?.3:.5;var n="value"in e.platform?e.platform.value:"";return/^Win/.test(n)?.6:/^Mac/.test(n)?.5:.7}(e),t=function u5(e){return dM(.99+.01*e,1e-4)}(n);return{score:n,comment:a5.replace(/\$/g,"".concat(t))}}(e);return{get visitorId(){return void 0===n&&(n=OM(this.components)),n},set visitorId(r){n=r},confidence:t,components:e,version:"4.5.1"}}(s),(n||r?.debug)&&console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(o.version,"\nuserAgent: ").concat(navigator.userAgent,"\ntimeBetweenLoadAndGet: ").concat(i-t,"\nvisitorId: ").concat(o.visitorId,"\ncomponents: ").concat(PM(s),"\n```")),[2,o]}})})}}}var y5={load:function g5(e){var n;return void 0===e&&(e={}),Gn(this,void 0,void 0,function(){var r,i;return ur(this,function(s){switch(s.label){case 0:return(!(null!==(n=e.monitoring)&&void 0!==n)||n)&&function m5(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat("4.5.1","/npm-monitoring"),!0),e.send()}catch(n){console.error(n)}}(),r=e.debug,[4,h5(e.delayFallback)];case 1:return s.sent(),i=function o5(e){return function w4(e,n,t,r){var i=Object.keys(e).filter(function(o){return function f4(e,n){return!function d4(e,n){for(var t=0,r=e.length;t<r;++t)if(e[t]===n)return!0;return!1}(e,n)}(t,o)}),s=lc(uM(i,function(o){return function E4(e,n){var t=lc(new Promise(function(r){var i=Date.now();lM(e.bind(null,n),function(){for(var s=[],o=0;o<arguments.length;o++)s[o]=arguments[o];var a=Date.now()-i;if(!s[0])return r(function(){return{error:s[1],duration:a}});var c=s[1];if(function pM(e){return"function"!=typeof e}(c))return r(function(){return{value:c,duration:a}});r(function(){return new Promise(function(l){var u=Date.now();lM(c,function(){for(var d=[],f=0;f<arguments.length;f++)d[f]=arguments[f];var h=a+Date.now()-u;if(!d[0])return l({error:d[1],duration:h});l({value:d[1],duration:h})})})})})}));return function(){return t.then(function(i){return i()})}}(e[o],n)},r));return function(){return Gn(this,void 0,void 0,function(){var c,l,u,d;return ur(this,function(f){switch(f.label){case 0:return[4,s];case 1:return[4,uM(f.sent(),function(h){return lc(h())},r)];case 2:return c=f.sent(),[4,Promise.all(c)];case 3:for(l=f.sent(),u={},d=0;d<i.length;++d)u[i[d]]=l[d];return[2,u]}})})}}(s5,e,[])}({cache:{},debug:r}),[2,p5(i,r)]}})})},hashComponents:OM,componentsToDebugString:PM},RM=function(e){return e[e.SMALL=1]="SMALL",e[e.MEDIUM=2]="MEDIUM",e[e.LARGE=3]="LARGE",e[e.EXTRA_LARGE=4]="EXTRA_LARGE",e[e.FULL_SCREEN=5]="FULL_SCREEN",e}(RM||{});const C5=y5.load();function b5(){return new nt(e=>{(function E5(){return ry.apply(this,arguments)})().then(n=>{e.next(n),e.complete()}).catch(n=>{e.error(n)})})}function ry(){return(ry=ss(function*(){const e={};e.browserData=function _5(){const e=screen.height||window.innerHeight,n=screen.width||window.innerWidth,t=RM.FULL_SCREEN;return{timezoneOffsetUtcMinutes:(new Date).getTimezoneOffset(),locale:navigator.language,userAgent:navigator.userAgent,javaEnabled:navigator.javaEnabled()||!1,javaScriptEnabled:!0,colorDepth:screen.colorDepth,width:n,height:e,challengeWindowSize:t}}();try{const n=yield(yield C5).get();e.id=n.visitorId,e.fonts=n.components.fonts.value;const t=navigator,r=t.getBattery?t.getBattery():void 0;let i;r&&(i=yield r,e.batteryLevelAndChargingStatus=i?`level: ${i.level??"unknown"}; charging: ${i.charging??"unknown"}`:void 0);const s=t.connection||t.mozConnection||t.webkitConnection;e.networkParameters=s?`type: ${s.type??"unknown"}; effectiveType: ${s.effectiveType??"unknown"}`:void 0}catch{}return e})).apply(this,arguments)}class _d{constructor(){this.emitEnabled=!0,this.optionalEmitEnabled=!0,this.emitter=new ve}emit(n,t){this.emitEnabled&&(!t||t&&this.optionalEmitEnabled)&&this.emitter.emit(n)}}let xe=(()=>{class e{constructor(){this.componentsStates={availableCardBrands:se({isRequired:!1,canShowError:!1,isValid:!0,filled:!0,enabled:!0}),cardList:se({isRequired:!1,canShowError:!1,isValid:!0,filled:!0,enabled:!0}),cardForm:se({isRequired:!0,canShowError:!1,isValid:!0,filled:!1,enabled:!0}),additionalForm:se({isRequired:!1,canShowError:!1,isValid:!0,filled:!1,enabled:!0}),chargeTerms:se({isRequired:!0,canShowError:!1,isValid:!0,filled:!1,enabled:!0}),payButton:se({isRequired:!0,canShowError:!1,isValid:!0,filled:!1,enabled:!0}),apmList:se({isRequired:!1,canShowError:!1,isValid:!0,filled:!0,enabled:!0}),userPreferences:se({isRequired:!0,canShowError:!1,isValid:!0,filled:!1,enabled:!0}),merchantInfo:se({isRequired:!1,canShowError:!1,isValid:!0,filled:!0,enabled:!0}),protectedBy:se({isRequired:!1,canShowError:!1,isValid:!0,filled:!0,enabled:!0}),master:se({isRequired:!0,canShowError:!1,isValid:!0,filled:!1,enabled:!0})},this.visibility={availableCardBrands:ce(()=>this.componentsStates.availableCardBrands().enabled&&!!this.data.settings()?.components?.some(t=>"available-card-brands"===t)),cardList:ce(()=>this.componentsStates.cardList().enabled&&!!this.data.settings()?.components?.some(t=>"card-list"===t)),cardForm:ce(()=>this.componentsStates.cardForm().enabled&&!!this.data.settings()?.components?.some(t=>"requisites"===t)),additionalForm:ce(()=>this.componentsStates.cardForm().enabled&&this.componentsStates.additionalForm().enabled&&!!this.data.settings()?.components?.some(t=>"phone-number"===t)),chargeTerms:ce(()=>this.componentsStates.chargeTerms().enabled&&!!this.data.settings()?.components?.some(t=>"charge-terms"===t)&&!this.visibility.noMethods()),payButton:ce(()=>(this.componentsStates.cardList().enabled||this.componentsStates.cardForm().enabled)&&this.componentsStates.payButton().enabled&&!!this.data.settings()?.components?.some(t=>"pay-button"===t)),apmList:ce(()=>this.componentsStates.apmList().enabled&&!!this.data.settings()?.components?.some(t=>"apm-list"===t)),userPreferences:ce(()=>this.componentsStates.userPreferences().enabled&&!!this.data.settings()?.components?.some(t=>"user-preferences"===t)&&!this.visibility.noMethods()),merchantInfo:ce(()=>this.componentsStates.merchantInfo().enabled&&!!this.data.settings()?.components?.some(t=>"merchant-info"===t)),protectedBy:ce(()=>this.componentsStates.protectedBy().enabled&&!!this.data.settings()?.components?.some(t=>"protected-by"===t)),noMethods:ce(()=>!this.componentsStates.cardForm().enabled&&!this.componentsStates.cardList().enabled&&!this.componentsStates.apmList().enabled),master:ce(()=>this.componentsStates.master().enabled&&!!this.data.settings()?.components?.some(t=>"master"===t)&&!this.visibility.noMethods())},this.data={payment:se(void 0),settings:se(void 0),userProvidedInfo:se({}),loadedPaymentSystems:se([]),loadedExistingCards:se([]),deviceInfo:se(void 0),state:se({type:"empty",payload:void 0}),paymentSystemsLoading:se(!1),cardsLoading:se(!1)},this.computed={isLoading:ce(()=>this.data.paymentSystemsLoading()||this.data.cardsLoading()),paymentAvailability:ce(()=>{const t=this.data.settings(),r={canPay:{byCard:!1,byApm:!1},isPayButtonDisabled:!1};if(!t)return r;let i=!0,s=!0;for(let c in this.componentsStates)if(this.componentsStates.hasOwnProperty(c)){const l=this.componentsStates[c]();i=i&&(l.isValid||!l.enabled),s=s&&(l.filled||!l.enabled)}const o=this.componentsStates.chargeTerms(),a=this.componentsStates.master();return r.canPay.byApm=t.components.includes("master")?!a.enabled||a.isValid:!t.components.includes("charge-terms")||!o.enabled||o.isValid,"disabled"!=t.requiredFieldsBehavior?.buttonStateUntilFilled||s?"hidden-enabled"!=t.requiredFieldsBehavior?.buttonStateUntilFilled||s?i?{canPay:{...r.canPay,byCard:!0}}:r:{...r,buttonDisableClass:"hidden-enabled-element",elementDisableClass:"hidden-enabled-element"}:{...r,elementDisableClass:"disabled-element",isPayButtonDisabled:!0}})},this.events={analytics:new _d,error:new _d,close:new _d,paid:new _d},this.callbacks={},this.clients={googlePay:void 0}}updateCanShowError(t){for(let r in this.componentsStates)this.componentsStates.hasOwnProperty(r)&&this.componentsStates[r].update(i=>i.canShowError===t?i:{...i,canShowError:t})}updateCanShowErrorForApm(t){this.componentsStates.chargeTerms.update(r=>({...r,canShowError:t})),this.componentsStates.master.update(r=>({...r,canShowError:t}))}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})();function vd(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}function iy(e,...n){if(!n.length)return e;const t=n.shift();if(vd(e)&&vd(t))for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){const i=t[r];e[r]=vd(i)&&vd(e[r])?iy(e[r],i):i}return iy(e,...n)}function w5(...e){return iy({},...e)}function FM(e){return"string"==typeof e||e instanceof String?JSON.parse(e):e}const LM={header:"Checkout",errors:{notCheckedCheckboxes:"Please check these boxes",invalidCardHolder:"Invalid cardholder name",invalidCardNumber:"Invalid card number",invalidCardExpiration:"Invalid card date",invalidCvv:"Invalid card code",invalidPhoneNumber:"Invalid phone number"},requisites:{paymentDetailsHeader:"Payment details",cardNumberPlaceholder:"Card number",cardExpirationPlaceholder:"MM/YY",cvvHint:"CVV (Card Verification Value)",cardHolderHeader:"Name on card",cardHolderPlaceholder:"Name on card"},phone:{header:"Phone",placeholder:"Phone number"},apms:{or:"OR",orUseAlternative:"or use alternative methods"},totalHeader:"Total",pay:"Pay",availableCardBrandsHeader:"Payment methods",transactionProtectedBy:"Your transactions are protected by",existingCards:{manageCardsHeader:"Manage cards",addNewCard:"Add new card",removeCard:"Remove card"},paymentResult:{success:"We placed your order",failure:{main:"Something went wrong",paymentFailed:"Payment failed."}},paymentProcessing:"payment processing",notifications:{cardDeleted:{title:"Successful",text:"Card has been deleted"},error:{default:{title:"Attention!",text:"Unable to process the payment"}}},noAvailablePaymentMethods:"No available payment methods...",close:"Close",master:{selectAll:""},confirmPayment:"Confirm payment"},S5={urls:{},availableCardBrands:["mastercard","visa"],chargeTerms:void 0,isCloseButtonVisible:!0,isProblemTipsListVisible:!1,isTaxVisible:!1,isSignatureRequired:!1,isHeaderVisible:!0,closePaymentRedirect:!0,languageSettings:{code:"en-US",languages:{"en-US":LM,"es-ES":{header:"Verificar",errors:{notCheckedCheckboxes:"Debe marcar estas casillas",invalidCardHolder:"Nombre del titular de la tarjeta no v\xe1lido",invalidCardNumber:"N\xfamero de tarjeta no v\xe1lido",invalidCardExpiration:"Fecha de la tarjeta no v\xe1lida",invalidCvv:"C\xf3digo de la tarjeta no v\xe1lido",invalidPhoneNumber:"N\xfamero de tel\xe9fono no v\xe1lido"},requisites:{paymentDetailsHeader:"Detalles del pago",cardNumberPlaceholder:"N\xfamero de tarjeta",cardExpirationPlaceholder:"MM/AA",cvvHint:"CVV (Valor de verificaci\xf3n de la tarjeta)",cardHolderHeader:"Nombre en la tarjeta",cardHolderPlaceholder:"Nombre en la tarjeta"},phone:{header:"Tel\xe9fono",placeholder:"N\xfamero de tel\xe9fono"},apms:{or:"O",orUseAlternative:"o usar m\xe9todos alternativos"},totalHeader:"Total",pay:"Pagar",availableCardBrandsHeader:"M\xe9todos de pago",transactionProtectedBy:"Sus transacciones est\xe1n protegidas por",existingCards:{manageCardsHeader:"Gestionar tarjetas",addNewCard:"A\xf1adir nueva tarjeta",removeCard:"Eliminar tarjeta"},paymentResult:{success:"Hemos realizado su pedido",failure:{main:"Algo sali\xf3 mal",paymentFailed:"El pago no se ha procesado."}},paymentProcessing:"Procesando el pago\u2026",notifications:{cardDeleted:{title:"Exitoso",text:"Se ha eliminado la tarjeta."},error:{default:{title:"\xa1Atenci\xf3n!",text:"No se ha podido procesar el pago."}}},noAvailablePaymentMethods:"No hay m\xe9todos de pago disponibles\u2026",close:"Cerrar",master:{selectAll:""},confirmPayment:"Confirmar el pago"},"fr-FR":{header:"Paiement",errors:{notCheckedCheckboxes:"Veuillez cocher les cases suivantes",invalidCardHolder:"Nom du titulaire de la carte invalide",invalidCardNumber:"Num\xe9ro de carte non valide",invalidCardExpiration:"Date de la carte invalide",invalidCvv:"Code de carte invalide",invalidPhoneNumber:"Num\xe9ro de t\xe9l\xe9phone invalide"},requisites:{paymentDetailsHeader:"Modalit\xe9s de paiement",cardNumberPlaceholder:"Num\xe9ro de carte",cardExpirationPlaceholder:"MM/AA",cvvHint:"CVV (Valeur de v\xe9rification de la carte)",cardHolderHeader:"Nom sur la carte",cardHolderPlaceholder:"Nom sur la carte"},phone:{header:"T\xe9l\xe9phone",placeholder:"Num\xe9ro de t\xe9l\xe9phone"},apms:{or:"OU",orUseAlternative:"ou utilisez des m\xe9thodes alternatives"},totalHeader:"Total",pay:"Payer",availableCardBrandsHeader:"Modes de paiement",transactionProtectedBy:"Vos transactions sont prot\xe9g\xe9es par",existingCards:{manageCardsHeader:"G\xe9rer les cartes",addNewCard:"Ajoutez une nouvelle carte",removeCard:"Supprimer la carte"},paymentResult:{success:"Nous avons pass\xe9 votre commande",failure:{main:"Une erreur est survenue",paymentFailed:"Le paiement a \xe9chou\xe9."}},paymentProcessing:"traitement du paiement",notifications:{cardDeleted:{title:"R\xe9ussie",text:"La carte a \xe9t\xe9 supprim\xe9e"},error:{default:{title:"Attention !",text:"Impossible de traiter le paiement"}}},noAvailablePaymentMethods:"Aucune m\xe9thode de paiement disponible...",close:"Fermer",master:{selectAll:""},confirmPayment:"Confirmer le Paiement"}}},merchantInfo:void 0,userPreferences:void 0,components:["available-card-brands","no-methods","card-list","requisites","phone-number","charge-terms","pay-button","apm-list","user-preferences","merchant-info","protected-by"],resultComponentsStructure:{aboveResult:["available-card-brands"],belowResult:["merchant-info","protected-by"]},events:{analytics:{optional:!1,required:!1},error:!0},requiredFieldsBehavior:{buttonStateUntilFilled:"enabled",markAsInvalidUntilCorrect:!1,showStars:!1},apmsCollapse:!1,googlePay:{allowedAuthMethods:["CRYPTOGRAM_3DS","PAN_ONLY"],button:{buttonSizeMode:"fill",buttonRadius:4}}};function T5(e,n){if(1&e&&(S(0,"div",1),ge(1,"img",2),T()),2&e){const t=x();C(),P("src",t.src,ga)("alt",t.alt)}}let Ao=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=Me({type:e,selectors:[["moto-picture"]],inputs:{src:"src",alt:"alt"},decls:1,vars:1,consts:[["class","__ndb-picture",4,"ngIf"],[1,"__ndb-picture"],[1,"__ndb-picture-tag",3,"src","alt"]],template:function(r,i){1&r&&ee(0,T5,2,2,"div",0),2&r&&P("ngIf",i.src)},dependencies:[nd],styles:[".__ndb-picture[_ngcontent-%COMP%]{height:inherit;width:inherit}.__ndb-picture-tag[_ngcontent-%COMP%]{height:100%;width:100%;object-fit:cover}"],changeDetection:0})}return e})();var xo=function(e){return e.default="default-card-icon",e.mastercard="master-card-icon",e.maestro="maestro",e.visa="visa-card-icon-new",e.discover="discover",e.jcb="jcb",e["american-express"]="american-express",e.unionpay="unionpay",e}(xo||{});const No_customHeaders_skipToastr="X-Skip-Toastr";let M5=(()=>{class e{transform(t){const r=xo[t];let i=r?.toString();if(i&&(r==xo.visa&&(i+="-brand"),r==xo.mastercard&&(i+="-brand"),r))return`https://cdn.motopays.com/images/${i}.svg`}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275pipe=ht({name:"brandLogo",type:e,pure:!0})}return e})();function I5(e,n){1&e&&ge(0,"moto-picture",4),2&e&&P("src",n)}function A5(e,n){if(1&e&&(ee(0,I5,1,1,"moto-picture",4),Ce(1,"brandLogo")),2&e){let t;ie((t=Ya(1,1,n.$implicit))?0:-1,t)}}let BM=(()=>{class e{constructor(t){this.context=t}ngOnInit(){this.settings=this.context.data.settings}static#e=this.\u0275fac=function(r){return new(r||e)(v(xe))};static#t=this.\u0275cmp=Me({type:e,selectors:[["moto-available-card-brands"]],decls:8,vars:1,consts:[[1,"__ndb-brands"],[1,"__ndb-brands-paymentsheader"],[1,"fz-14","fw-500"],[1,"__ndb-brands-payments"],[1,"__ndb-brands-payments-logo",3,"src"]],template:function(r,i){if(1&r&&(Tn(0),S(1,"div",0)(2,"div",1)(3,"h6",2),$(4),T()(),S(5,"div",3),dn(6,A5,2,3,null,null,ar),T()()),2&r){const s=i.settings();C(4),ke(" ",s.language.availableCardBrandsHeader," "),C(2),fn(s.availableCardBrands)}},dependencies:[Ao,M5],styles:["[_ngcontent-%COMP%]:root{--ndb-button-bg: #2c8ee8;--ndb-button-disabled-bg: rgba(201, 204, 216, .3);--ndb-button-hover-bg: #1467b4;--ndb-button-color: #fff;--ndb-card-border-color: #c9ccd8}.__ndb-brands[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px}.__ndb-brands-payments[_ngcontent-%COMP%]{gap:10px;display:flex;justify-content:center}.__ndb-brands-payments-logo[_ngcontent-%COMP%]{height:24px;width:36px}.__ndb-brands-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:10px}.__ndb-brands-paymentsheader[_ngcontent-%COMP%]{justify-content:center;display:flex;align-items:center;gap:10px}"],changeDetection:0})}return e})();class x5{constructor(n,t=se(!1)){this.item=n,this.selected=t}setSelected(n){this.selected.set(n)}}var Q=function(e){return e[e.State=0]="State",e[e.Transition=1]="Transition",e[e.Sequence=2]="Sequence",e[e.Group=3]="Group",e[e.Animate=4]="Animate",e[e.Keyframes=5]="Keyframes",e[e.Style=6]="Style",e[e.Trigger=7]="Trigger",e[e.Reference=8]="Reference",e[e.AnimateChild=9]="AnimateChild",e[e.AnimateRef=10]="AnimateRef",e[e.Query=11]="Query",e[e.Stagger=12]="Stagger",e}(Q||{});const Kr="*";function ko(e,n){return{type:Q.Trigger,name:e,definitions:n,options:{}}}function pr(e,n=null){return{type:Q.Animate,styles:n,timings:e}}function Je(e){return{type:Q.Style,styles:e,offset:null}}function hc(e,n,t){return{type:Q.State,name:e,styles:n,options:t}}function mr(e,n,t=null){return{type:Q.Transition,expr:e,animation:n,options:t}}class pc{constructor(n=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const t="start"==n?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}class jM{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let t=0,r=0,i=0;const s=this.players.length;0==s?queueMicrotask(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++t==s&&this._onFinish()}),o.onDestroy(()=>{++r==s&&this._onDestroy()}),o.onStart(()=>{++i==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const t=n*this.totalTime;this.players.forEach(r=>{const i=r.totalTime?Math.min(1,t/r.totalTime):1;r.setPosition(i)})}getPosition(){const n=this.players.reduce((t,r)=>null===t||r.totalTime>t.totalTime?r:t,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const t="start"==n?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}const mc_animation_defaultAnimateMc=0;class oy{constructor(n){this.animationTime=mc_animation_defaultAnimateMc,Object.assign(this,n)}}const F5=ko("ANHeight",[mr(":enter",[Je({overflow:"hidden",height:"0px"}),pr(mc_animation_defaultAnimateMc,Je({height:"*",overflow:"hidden"}))]),mr(":leave",[Je({height:"*",overflow:"hidden"}),pr(mc_animation_defaultAnimateMc,Je({height:"0px",overflow:"hidden"}))])]),L5=ko("ANScale",[mr(":enter",[Je({opacity:0,transform:"scale(0)"}),pr(mc_animation_defaultAnimateMc,Je({opacity:1,transform:"scale(1)"}))]),mr(":leave",pr(mc_animation_defaultAnimateMc,Je({opacity:0,transform:"scale(0)"})))]),Cd=e=>{const n=new oy({animationName:"ANTransform",fromStyles:{opacity:"0",transform:"translateY(-100%)"},toStyles:{opacity:"1",transform:"translateY(0%)"}}),t=Object.assign(n,e),{animationName:r,animationTime:i,fromStyles:s,toStyles:o}=t;return ko(r,[mr(":enter",[Je(s),pr(i,Je(o))]),mr(":leave",[Je(o),pr(i,Je(s))])])},V5=e=>{const n=new oy({animationName:"ANStates",fromState:"a",toState:"b"}),t=Object.assign(n,e),{animationName:r,animationTime:i,fromStyles:s,toStyles:o,fromState:a,toState:c}=t;return ko(r,[hc(a,Je(s)),hc(c,Je(o)),mr(`${a}<=>${c}`,pr(i))])},B5=e=>{const n=new oy({animationName:"ANStates"}),t=Object.assign(n,e),{animationName:r,animationTime:i,fromStyles:s,toStyles:o}=t;return ko(r,[mr(":enter",[Je(s),pr(i,Je(o))]),mr(":leave",[Je(o),pr(i,Je(s))])])};var j5=lt(634),ay=lt.n(j5);function An(...e){return Ci(e,dd(e))}function Po(e){return gn((n,t)=>{let s,r=null,i=!1;r=n.subscribe(sn(t,void 0,void 0,o=>{s=dr(e(o,Po(e)(n))),r?(r.unsubscribe(),r=null,s.subscribe(t)):i=!0})),i&&(r.unsubscribe(),r=null,s.subscribe(t))})}function Oo(e,n){return Xe(n)?ud(e,n,1):ud(e,1)}function HM(e,n){return gn((t,r)=>{let i=0;t.subscribe(sn(r,s=>e.call(n,s,i++)&&r.next(s)))})}class bd{}class Ed{}class xn{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?"string"==typeof n?this.lazyInit=()=>{this.headers=new Map,n.split("\n").forEach(t=>{const r=t.indexOf(":");if(r>0){const i=t.slice(0,r),s=i.toLowerCase(),o=t.slice(r+1).trim();this.maybeSetNormalizedName(i,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((t,r)=>{this.setHeaderEntries(r,t)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([t,r])=>{this.setHeaderEntries(t,r)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const t=this.headers.get(n.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,t){return this.clone({name:n,value:t,op:"a"})}set(n,t){return this.clone({name:n,value:t,op:"s"})}delete(n,t){return this.clone({name:n,value:t,op:"d"})}maybeSetNormalizedName(n,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,n)}init(){this.lazyInit&&(this.lazyInit instanceof xn?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(t=>{this.headers.set(t,n.headers.get(t)),this.normalizedNames.set(t,n.normalizedNames.get(t))})}clone(n){const t=new xn;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof xn?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([n]),t}applyUpdate(n){const t=n.name.toLowerCase();switch(n.op){case"a":case"s":let r=n.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(n.name,t);const i=("a"===n.op?this.headers.get(t):void 0)||[];i.push(...r),this.headers.set(t,i);break;case"d":const s=n.value;if(s){let o=this.headers.get(t);if(!o)return;o=o.filter(a=>-1===s.indexOf(a)),0===o.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,o)}else this.headers.delete(t),this.normalizedNames.delete(t)}}setHeaderEntries(n,t){const r=(Array.isArray(t)?t:[t]).map(s=>s.toString()),i=n.toLowerCase();this.headers.set(i,r),this.maybeSetNormalizedName(n,i)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>n(this.normalizedNames.get(t),this.headers.get(t)))}}class $5{encodeKey(n){return UM(n)}encodeValue(n){return UM(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const z5=/%(\d[a-f0-9])/gi,q5={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function UM(e){return encodeURIComponent(e).replace(z5,(n,t)=>q5[t]??n)}function wd(e){return`${e}`}class Qr{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new $5,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function G5(e,n){const t=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(i=>{const s=i.indexOf("="),[o,a]=-1==s?[n.decodeKey(i),""]:[n.decodeKey(i.slice(0,s)),n.decodeValue(i.slice(s+1))],c=t.get(o)||[];c.push(a),t.set(o,c)}),t}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(t=>{const r=n.fromObject[t],i=Array.isArray(r)?r.map(wd):[wd(r)];this.map.set(t,i)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const t=this.map.get(n);return t?t[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,t){return this.clone({param:n,value:t,op:"a"})}appendAll(n){const t=[];return Object.keys(n).forEach(r=>{const i=n[r];Array.isArray(i)?i.forEach(s=>{t.push({param:r,value:s,op:"a"})}):t.push({param:r,value:i,op:"a"})}),this.clone(t)}set(n,t){return this.clone({param:n,value:t,op:"s"})}delete(n,t){return this.clone({param:n,value:t,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const t=this.encoder.encodeKey(n);return this.map.get(n).map(r=>t+"="+this.encoder.encodeValue(r)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const t=new Qr({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(n),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const t=("a"===n.op?this.map.get(n.param):void 0)||[];t.push(wd(n.value)),this.map.set(n.param,t);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let r=this.map.get(n.param)||[];const i=r.indexOf(wd(n.value));-1!==i&&r.splice(i,1),r.length>0?this.map.set(n.param,r):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class W5{constructor(){this.map=new Map}set(n,t){return this.map.set(n,t),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function $M(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function GM(e){return typeof Blob<"u"&&e instanceof Blob}function zM(e){return typeof FormData<"u"&&e instanceof FormData}class gc{constructor(n,t,r,i){let s;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function Z5(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==r?r:null,s=i):s=r,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params),this.transferCache=s.transferCache),this.headers??=new xn,this.context??=new W5,this.params){const o=this.params.toString();if(0===o.length)this.urlWithParams=t;else{const a=t.indexOf("?");this.urlWithParams=t+(-1===a?"?":a<t.length-1?"&":"")+o}}else this.params=new Qr,this.urlWithParams=t}serializeBody(){return null===this.body?null:"string"==typeof this.body||$M(this.body)||GM(this.body)||zM(this.body)||function Y5(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}(this.body)?this.body:this.body instanceof Qr?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||zM(this.body)?null:GM(this.body)?this.body.type||null:$M(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Qr?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(n={}){const t=n.method||this.method,r=n.url||this.url,i=n.responseType||this.responseType,s=n.transferCache??this.transferCache,o=void 0!==n.body?n.body:this.body,a=n.withCredentials??this.withCredentials,c=n.reportProgress??this.reportProgress;let l=n.headers||this.headers,u=n.params||this.params;const d=n.context??this.context;return void 0!==n.setHeaders&&(l=Object.keys(n.setHeaders).reduce((f,h)=>f.set(h,n.setHeaders[h]),l)),n.setParams&&(u=Object.keys(n.setParams).reduce((f,h)=>f.set(h,n.setParams[h]),u)),new gc(t,r,o,{params:u,headers:l,context:d,reportProgress:c,responseType:i,withCredentials:a,transferCache:s})}}var Ei=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(Ei||{});class cy{constructor(n,t=200,r="OK"){this.headers=n.headers||new xn,this.status=void 0!==n.status?n.status:t,this.statusText=n.statusText||r,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class Dd extends cy{constructor(n={}){super(n),this.type=Ei.ResponseHeader}clone(n={}){return new Dd({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class os extends cy{constructor(n={}){super(n),this.type=Ei.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new os({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class Ro extends cy{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function ly(e,n){return{body:n,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,transferCache:e.transferCache}}let Sd=(()=>{class e{constructor(t){this.handler=t}request(t,r,i={}){let s;if(t instanceof gc)s=t;else{let c,l;c=i.headers instanceof xn?i.headers:new xn(i.headers),i.params&&(l=i.params instanceof Qr?i.params:new Qr({fromObject:i.params})),s=new gc(t,r,void 0!==i.body?i.body:null,{headers:c,context:i.context,params:l,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache})}const o=An(s).pipe(Oo(c=>this.handler.handle(c)));if(t instanceof gc||"events"===i.observe)return o;const a=o.pipe(HM(c=>c instanceof os));switch(i.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(Pt(c=>{if(null!==c.body&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return a.pipe(Pt(c=>{if(null!==c.body&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return a.pipe(Pt(c=>{if(null!==c.body&&"string"!=typeof c.body)throw new Error("Response is not a string.");return c.body}));default:return a.pipe(Pt(c=>c.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(t,r={}){return this.request("DELETE",t,r)}get(t,r={}){return this.request("GET",t,r)}head(t,r={}){return this.request("HEAD",t,r)}jsonp(t,r){return this.request("JSONP",t,{params:(new Qr).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,r={}){return this.request("OPTIONS",t,r)}patch(t,r,i={}){return this.request("PATCH",t,ly(i,r))}post(t,r,i={}){return this.request("POST",t,ly(i,r))}put(t,r,i={}){return this.request("PUT",t,ly(i,r))}static#e=this.\u0275fac=function(r){return new(r||e)(k(bd))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})();const X5=/^\)\]\}',?\n/;function WM(e){if(e.url)return e.url;const n="X-Request-URL".toLocaleLowerCase();return e.headers.get(n)}let uy=(()=>{class e{constructor(){this.fetchImpl=A(e6,{optional:!0})?.fetch??((...t)=>globalThis.fetch(...t)),this.ngZone=A(pe)}handle(t){return new nt(r=>{const i=new AbortController;return this.doRequest(t,i.signal,r).then(dy,s=>r.error(new Ro({error:s}))),()=>i.abort()})}doRequest(t,r,i){var s=this;return ss(function*(){const o=s.createRequestInit(t);let a;try{const p=s.ngZone.runOutsideAngular(()=>s.fetchImpl(t.urlWithParams,{signal:r,...o}));(function t6(e){e.then(dy,dy)})(p),i.next({type:Ei.Sent}),a=yield p}catch(p){return void i.error(new Ro({error:p,status:p.status??0,statusText:p.statusText,url:t.urlWithParams,headers:p.headers}))}const c=new xn(a.headers),l=a.statusText,u=WM(a)??t.urlWithParams;let d=a.status,f=null;if(t.reportProgress&&i.next(new Dd({headers:c,status:d,statusText:l,url:u})),a.body){const p=a.headers.get("content-length"),m=[],g=a.body.getReader();let y,w,_=0;const D=typeof Zone<"u"&&Zone.current;yield s.ngZone.runOutsideAngular(ss(function*(){for(;;){const{done:F,value:j}=yield g.read();if(F)break;if(m.push(j),_+=j.length,t.reportProgress){w="text"===t.responseType?(w??"")+(y??=new TextDecoder).decode(j,{stream:!0}):void 0;const L=()=>i.next({type:Ei.DownloadProgress,total:p?+p:void 0,loaded:_,partialText:w});D?D.run(L):L()}}}));const M=s.concatChunks(m,_);try{const F=a.headers.get("Content-Type")??"";f=s.parseBody(t,M,F)}catch(F){return void i.error(new Ro({error:F,headers:new xn(a.headers),status:a.status,statusText:a.statusText,url:WM(a)??t.urlWithParams}))}}0===d&&(d=f?200:0),d>=200&&d<300?(i.next(new os({body:f,headers:c,status:d,statusText:l,url:u})),i.complete()):i.error(new Ro({error:f,headers:c,status:d,statusText:l,url:u}))})()}parseBody(t,r,i){switch(t.responseType){case"json":const s=(new TextDecoder).decode(r).replace(X5,"");return""===s?null:JSON.parse(s);case"text":return(new TextDecoder).decode(r);case"blob":return new Blob([r],{type:i});case"arraybuffer":return r.buffer}}createRequestInit(t){const r={},i=t.withCredentials?"include":void 0;if(t.headers.forEach((s,o)=>r[s]=o.join(",")),t.headers.has("Accept")||(r.Accept="application/json, text/plain, */*"),!t.headers.has("Content-Type")){const s=t.detectContentTypeHeader();null!==s&&(r["Content-Type"]=s)}return{body:t.serializeBody(),method:t.method,headers:r,credentials:i}}concatChunks(t,r){const i=new Uint8Array(r);let s=0;for(const o of t)i.set(o,s),s+=o.length;return i}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})();class e6{}function dy(){}function ZM(e,n){return n(e)}const yc=new N(""),YM=new N(""),KM=new N("",{providedIn:"root",factory:()=>!0});let QM=(()=>{class e extends bd{constructor(t,r){super(),this.backend=t,this.injector=r,this.chain=null,this.pendingTasks=A(Hi),this.contributeToStability=A(KM)}handle(t){if(null===this.chain){const r=Array.from(new Set([...this.injector.get(yc),...this.injector.get(YM,[])]));this.chain=r.reduceRight((i,s)=>function r6(e,n,t){return(r,i)=>function tk(e,n){e instanceof Is&&e.assertNotDestroyed();const r=oi(e),i=on(void 0);try{return n()}finally{oi(r),on(i)}}(t,()=>n(r,s=>e(s,i)))}(i,s,this.injector),ZM)}if(this.contributeToStability){const r=this.pendingTasks.add();return this.chain(t,i=>this.backend.handle(i)).pipe(function U5(e){return gn((n,t)=>{try{n.subscribe(t)}finally{t.add(e)}})}(()=>this.pendingTasks.remove(r)))}return this.chain(t,r=>this.backend.handle(r))}static#e=this.\u0275fac=function(r){return new(r||e)(k(Ed),k(Fn))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})();const u6=/^\)\]\}',?\n/;let JM=(()=>{class e{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new E(-2800,!1);const r=this.xhrFactory;return(r.\u0275loadImpl?Ci(r.\u0275loadImpl()):An(null)).pipe(oM(()=>new nt(s=>{const o=r.build();if(o.open(t.method,t.urlWithParams),t.withCredentials&&(o.withCredentials=!0),t.headers.forEach((m,g)=>o.setRequestHeader(m,g.join(","))),t.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const m=t.detectContentTypeHeader();null!==m&&o.setRequestHeader("Content-Type",m)}if(t.responseType){const m=t.responseType.toLowerCase();o.responseType="json"!==m?m:"text"}const a=t.serializeBody();let c=null;const l=()=>{if(null!==c)return c;const m=o.statusText||"OK",g=new xn(o.getAllResponseHeaders()),_=function d6(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(o)||t.url;return c=new Dd({headers:g,status:o.status,statusText:m,url:_}),c},u=()=>{let{headers:m,status:g,statusText:_,url:y}=l(),w=null;204!==g&&(w=typeof o.response>"u"?o.responseText:o.response),0===g&&(g=w?200:0);let D=g>=200&&g<300;if("json"===t.responseType&&"string"==typeof w){const M=w;w=w.replace(u6,"");try{w=""!==w?JSON.parse(w):null}catch(F){w=M,D&&(D=!1,w={error:F,text:w})}}D?(s.next(new os({body:w,headers:m,status:g,statusText:_,url:y||void 0})),s.complete()):s.error(new Ro({error:w,headers:m,status:g,statusText:_,url:y||void 0}))},d=m=>{const{url:g}=l(),_=new Ro({error:m,status:o.status||0,statusText:o.statusText||"Unknown Error",url:g||void 0});s.error(_)};let f=!1;const h=m=>{f||(s.next(l()),f=!0);let g={type:Ei.DownloadProgress,loaded:m.loaded};m.lengthComputable&&(g.total=m.total),"text"===t.responseType&&o.responseText&&(g.partialText=o.responseText),s.next(g)},p=m=>{let g={type:Ei.UploadProgress,loaded:m.loaded};m.lengthComputable&&(g.total=m.total),s.next(g)};return o.addEventListener("load",u),o.addEventListener("error",d),o.addEventListener("timeout",d),o.addEventListener("abort",d),t.reportProgress&&(o.addEventListener("progress",h),null!==a&&o.upload&&o.upload.addEventListener("progress",p)),o.send(a),s.next({type:Ei.Sent}),()=>{o.removeEventListener("error",d),o.removeEventListener("abort",d),o.removeEventListener("load",u),o.removeEventListener("timeout",d),t.reportProgress&&(o.removeEventListener("progress",h),null!==a&&o.upload&&o.upload.removeEventListener("progress",p)),o.readyState!==o.DONE&&o.abort()}})))}static#e=this.\u0275fac=function(r){return new(r||e)(k(_T))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})();const fy=new N(""),eI=new N("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),tI=new N("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class nI{}let p6=(()=>{class e{constructor(t,r,i){this.doc=t,this.platform=r,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=cT(t,this.cookieName),this.lastCookieString=t),this.lastToken}static#e=this.\u0275fac=function(r){return new(r||e)(k(Vt),k($r),k(eI))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})();function m6(e,n){const t=e.url.toLowerCase();if(!A(fy)||"GET"===e.method||"HEAD"===e.method||t.startsWith("http://")||t.startsWith("https://"))return n(e);const r=A(nI).getToken(),i=A(tI);return null!=r&&!e.headers.has(i)&&(e=e.clone({headers:e.headers.set(i,r)})),n(e)}var wi=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}(wi||{});function g6(...e){const n=[Sd,JM,QM,{provide:bd,useExisting:QM},{provide:Ed,useFactory:()=>A(uy,{optional:!0})??A(JM)},{provide:yc,useValue:m6,multi:!0},{provide:fy,useValue:!0},{provide:nI,useClass:p6}];for(const t of e)n.push(...t.\u0275providers);return Ms(n)}function y6(e){return function as(e,n){return{\u0275kind:e,\u0275providers:n}}(wi.Interceptors,e.map(n=>({provide:yc,useValue:n,multi:!0})))}class T6 extends mn{constructor(n,t){super()}schedule(n,t=0){return this}}const Md={setInterval(e,n,...t){const{delegate:r}=Md;return r?.setInterval?r.setInterval(e,n,...t):setInterval(e,n,...t)},clearInterval(e){const{delegate:n}=Md;return(n?.clearInterval||clearInterval)(e)},delegate:void 0};class _c{constructor(n,t=_c.now){this.schedulerActionCtor=n,this.now=t}schedule(n,t=0,r){return new this.schedulerActionCtor(this,n).schedule(r,t)}}_c.now=Ug.now;const dI=new class I6 extends _c{constructor(n,t=_c.now){super(n,t),this.actions=[],this._active=!1}flush(n){const{actions:t}=this;if(this._active)return void t.push(n);let r;this._active=!0;do{if(r=n.execute(n.state,n.delay))break}while(n=t.shift());if(this._active=!1,r){for(;n=t.shift();)n.unsubscribe();throw r}}}(class M6 extends T6{constructor(n,t){super(n,t),this.scheduler=n,this.work=t,this.pending=!1}schedule(n,t=0){var r;if(this.closed)return this;this.state=n;const i=this.id,s=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(s,i,t)),this.pending=!0,this.delay=t,this.id=null!==(r=this.id)&&void 0!==r?r:this.requestAsyncId(s,this.id,t),this}requestAsyncId(n,t,r=0){return Md.setInterval(n.flush.bind(n,this),r)}recycleAsyncId(n,t,r=0){if(null!=r&&this.delay===r&&!1===this.pending)return t;null!=t&&Md.clearInterval(t)}execute(n,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(n,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,t){let i,r=!1;try{this.work(n)}catch(s){r=!0,i=s||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),i}unsubscribe(){if(!this.closed){const{id:n,scheduler:t}=this,{actions:r}=t;this.work=this.state=this.scheduler=null,this.pending=!1,Bc(r,this),null!=n&&(this.id=this.recycleAsyncId(t,n,null)),this.delay=null,super.unsubscribe()}}}),A6=dI;function fI(e=0,n,t=A6){let r=-1;return null!=n&&(nM(n)?t=n:r=n),new nt(i=>{let s=function x6(e){return e instanceof Date&&!isNaN(e)}(e)?+e-t.now():e;s<0&&(s=0);let o=0;return t.schedule(function(){i.closed||(i.next(o++),0<=r?this.schedule(void 0,r):i.complete())},s)})}function hy(e,n){const t=Xe(e)?e:()=>e,r=i=>i.error(t());return new nt(n?i=>n.schedule(r,0,i):r)}function py(e){return new Qr({fromObject:e})}function hI(e){const n=Object.entries(e).reduce((t,[r,i])=>(t[r]=String(i),t),{});return new xn(n)}const pI="Watchdog fake error";function Xr(e,n){return`${e.endsWith("/")?e.slice(0,-1):e}${n.startsWith("/")?n:`/${n}`}`}let my=(()=>{class e{constructor(t,r){this.http=t,this.context=r}getExistingCards(){const{merchantId:t,userAuthToken:r}=this.context.data.payment();if(!r)return An([]);const i=py({merchantId:t}),s=hI({[No_customHeaders_skipToastr]:!0}),o=Xr(this.host(),"/api/UserPaymentMethods");return this.http.get(o,{params:i,headers:s}).pipe(Pt(a=>a.map(c=>({...c,name:c.name.toLocaleLowerCase(),type:c.type.toLocaleLowerCase()}))),Pt(a=>a.filter(c=>"card"===c.type)),Po(()=>An([])))}removeCard(t){const{merchantId:r}=this.context.data.payment(),i=py({merchantId:r}),s=Xr(this.host(),`/api/UserPaymentMethods/${t}`);return this.http.delete(s,{params:i})}host(){return this.context.data.settings().urls.billingProfiles}static#e=this.\u0275fac=function(r){return new(r||e)(k(Sd),k(xe))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})();const mI=["toast-component",""];function P6(e,n){if(1&e){const t=at();S(0,"button",5),te("click",function(){return ne(t),re(x().remove())}),S(1,"span",6),$(2,"\xd7"),T()()}}function O6(e,n){if(1&e&&(_o(0),$(1),vo()),2&e){const t=x(2);C(),ke("[",t.duplicatesCount+1,"]")}}function R6(e,n){if(1&e&&(S(0,"div"),$(1),ee(2,O6,2,1,"ng-container",4),T()),2&e){const t=x();qr(t.options.titleClass),At("aria-label",t.title),C(),ke(" ",t.title," "),C(),P("ngIf",t.duplicatesCount)}}function F6(e,n){if(1&e&&ge(0,"div",7),2&e){const t=x();qr(t.options.messageClass),P("innerHTML",t.message,Tr)}}function L6(e,n){if(1&e&&(S(0,"div",8),$(1),T()),2&e){const t=x();qr(t.options.messageClass),At("aria-label",t.message),C(),ke(" ",t.message," ")}}function V6(e,n){if(1&e&&(S(0,"div"),ge(1,"div",9),T()),2&e){const t=x();C(),yo("width",t.width()+"%")}}class z6{_attachedHost;component;viewContainerRef;injector;constructor(n,t){this.component=n,this.injector=t}attach(n,t){return this._attachedHost=n,n.attach(this,t)}detach(){const n=this._attachedHost;if(n)return this._attachedHost=void 0,n.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(n){this._attachedHost=n}}class q6{_attachedPortal;_disposeFn;attach(n,t){return this._attachedPortal=n,this.attachComponentPortal(n,t)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(n){this._disposeFn=n}}class W6{_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new kt;_activate=new kt;_manualClose=new kt;_resetTimeout=new kt;_countDuplicate=new kt;constructor(n){this._overlayRef=n}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(n,t){n&&this._resetTimeout.next(),t&&this._countDuplicate.next(++this.duplicatesCount)}}class Id{toastId;config;message;title;toastType;toastRef;_onTap=new kt;_onAction=new kt;constructor(n,t,r,i,s,o){this.toastId=n,this.config=t,this.message=r,this.title=i,this.toastType=s,this.toastRef=o,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(n){this._onAction.next(n)}onAction(){return this._onAction.asObservable()}}const yI=new N("ToastConfig");class Z6 extends q6{_hostDomElement;_componentFactoryResolver;_appRef;constructor(n,t,r){super(),this._hostDomElement=n,this._componentFactoryResolver=t,this._appRef=r}attachComponentPortal(n,t){const r=this._componentFactoryResolver.resolveComponentFactory(n.component);let i;return i=r.create(n.injector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()}),t?this._hostDomElement.insertBefore(this._getComponentRootNode(i),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(i)),i}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}let Y6=(()=>{class e{_document=A(Vt);_containerElement;ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t=this._document.createElement("div");t.classList.add("overlay-container"),t.setAttribute("aria-live","polite"),this._document.body.appendChild(t),this._containerElement=t}static \u0275fac=function(r){return new(r||e)};static \u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class K6{_portalHost;constructor(n){this._portalHost=n}attach(n,t=!0){return this._portalHost.attach(n,t)}detach(){return this._portalHost.detach()}}let Q6=(()=>{class e{_overlayContainer=A(Y6);_componentFactoryResolver=A(Ki);_appRef=A(jn);_document=A(Vt);_paneElements=new Map;create(t,r){return this._createOverlayRef(this.getPaneElement(t,r))}getPaneElement(t="",r){return this._paneElements.get(r)||this._paneElements.set(r,{}),this._paneElements.get(r)[t]||(this._paneElements.get(r)[t]=this._createPaneElement(t,r)),this._paneElements.get(r)[t]}_createPaneElement(t,r){const i=this._document.createElement("div");return i.id="toast-container",i.classList.add(t),i.classList.add("toast-container"),r?r.getContainerElement().appendChild(i):this._overlayContainer.getContainerElement().appendChild(i),i}_createPortalHost(t){return new Z6(t,this._componentFactoryResolver,this._appRef)}_createOverlayRef(t){return new K6(this._createPortalHost(t))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),vc=(()=>{class e{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(t,r,i,s,o){this.overlay=r,this._injector=i,this.sanitizer=s,this.ngZone=o,this.toastrConfig={...t.default,...t.config},t.config.iconClasses&&(this.toastrConfig.iconClasses={...t.default.iconClasses,...t.config.iconClasses})}show(t,r,i={},s=""){return this._preBuildNotification(s,t,r,this.applyConfig(i))}success(t,r,i={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",t,r,this.applyConfig(i))}error(t,r,i={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",t,r,this.applyConfig(i))}info(t,r,i={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",t,r,this.applyConfig(i))}warning(t,r,i={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",t,r,this.applyConfig(i))}clear(t){for(const r of this.toasts)if(void 0!==t){if(r.toastId===t)return void r.toastRef.manualClose()}else r.toastRef.manualClose()}remove(t){const r=this._findToast(t);if(!r||(r.activeToast.toastRef.close(),this.toasts.splice(r.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){const i=this.toasts[this.currentlyActive].toastRef;i.isInactive()||(this.currentlyActive=this.currentlyActive+1,i.activate())}return!0}findDuplicate(t="",r="",i,s){const{includeTitleDuplicates:o}=this.toastrConfig;for(const a of this.toasts)if((!o||o&&a.title===t)&&a.message===r)return a.toastRef.onDuplicate(i,s),a;return null}applyConfig(t={}){return{...this.toastrConfig,...t}}_findToast(t){for(let r=0;r<this.toasts.length;r++)if(this.toasts[r].toastId===t)return{index:r,activeToast:this.toasts[r]};return null}_preBuildNotification(t,r,i,s){return s.onActivateTick?this.ngZone.run(()=>this._buildNotification(t,r,i,s)):this._buildNotification(t,r,i,s)}_buildNotification(t,r,i,s){if(!s.toastComponent)throw new Error("toastComponent required");const o=this.findDuplicate(i,r,this.toastrConfig.resetTimeoutOnDuplicate&&s.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&i||r)&&this.toastrConfig.preventDuplicates&&null!==o)return o;this.previousToastMessage=r;let a=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(a=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const c=this.overlay.create(s.positionClass,this.overlayContainer);this.index=this.index+1;let l=r;r&&s.enableHtml&&(l=this.sanitizer.sanitize(En.HTML,r));const u=new W6(c),d=new Id(this.index,s,l,i,t,u),h=Ne.create({providers:[{provide:Id,useValue:d}],parent:this._injector}),p=new z6(s.toastComponent,h),m=c.attach(p,s.newestOnTop);u.componentInstance=m.instance;const g={toastId:this.index,title:i||"",message:r||"",toastRef:u,onShown:u.afterActivate(),onHidden:u.afterClosed(),onTap:d.onTap(),onAction:d.onAction(),portal:m};return a||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{g.toastRef.activate()})),this.toasts.push(g),g}static \u0275fac=function(r){return new(r||e)(k(yI),k(Q6),k(Ne),k(Hg),k(pe))};static \u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const X6={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing",toastComponent:(()=>{class e{toastrService;toastPackage;ngZone;message;title;options;duplicatesCount;originalTimeout;width=se(-1);toastClasses="";state;get _state(){return this.state()}get displayStyle(){if("inactive"===this.state().value)return"none"}timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(t,r,i){this.toastrService=t,this.toastPackage=r,this.ngZone=i,this.message=r.message,this.title=r.title,this.options=r.config,this.originalTimeout=r.config.timeOut,this.toastClasses=`${r.toastType} ${r.config.toastClass}`,this.sub=r.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=r.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=r.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=r.toastRef.countDuplicate().subscribe(s=>{this.duplicatesCount=s}),this.state=se({value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state.update(t=>({...t,value:"active"})),!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width()||100===this.width()||!this.options.timeOut)return;const t=(new Date).getTime();this.width.set((this.hideTime-t)/this.options.timeOut*100),"increasing"===this.options.progressAnimation&&this.width.update(i=>100-i),this.width()<=0&&this.width.set(0),this.width()>=100&&this.width.set(100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state.update(t=>({...t,value:"active"})),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state().value&&(clearTimeout(this.timeout),this.state.update(t=>({...t,value:"removed"})),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state().value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state().value&&"extendedTimeOut"!==this.options.disableTimeOut&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width.set(0))}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state().value||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(t,r){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(t),r)):this.timeout=setTimeout(()=>t(),r)}outsideInterval(t,r){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(t),r)):this.intervalId=setInterval(()=>t(),r)}runInsideAngular(t){this.ngZone?this.ngZone.run(()=>t()):t()}static \u0275fac=function(r){return new(r||e)(v(vc),v(Id),v(pe))};static \u0275cmp=Me({type:e,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(r,i){1&r&&te("click",function(){return i.tapToast()})("mouseenter",function(){return i.stickAround()})("mouseleave",function(){return i.delayedHideToast()}),2&r&&(_u("@flyInOut",i._state),qr(i.toastClasses),yo("display",i.displayStyle))},standalone:!0,features:[Hm],attrs:mI,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(r,i){1&r&&ee(0,P6,3,0,"button",0)(1,R6,3,5,"div",1)(2,F6,1,3,"div",2)(3,L6,2,4,"div",3)(4,V6,2,2,"div",4),2&r&&(P("ngIf",i.options.closeButton),C(),P("ngIf",i.title),C(),P("ngIf",i.message&&i.options.enableHtml),C(),P("ngIf",i.message&&!i.options.enableHtml),C(),P("ngIf",i.options.progressBar))},dependencies:[nd],encapsulation:2,data:{animation:[ko("flyInOut",[hc("inactive",Je({opacity:0})),hc("active",Je({opacity:1})),hc("removed",Je({opacity:0})),mr("inactive => active",pr("{{ easeTime }}ms {{ easing }}")),mr("active => removed",pr("{{ easeTime }}ms {{ easing }}"))])]},changeDetection:0})}return e})()},J6=(e={})=>Ms([{provide:yI,useValue:{default:X6,config:e}}]);let eG=(()=>{class e{static forRoot(t={}){return{ngModule:e,providers:[J6(t)]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=bt({type:e});static \u0275inj=ft({})}return e})();const{isArray:tG}=Array,{getPrototypeOf:nG,prototype:rG,keys:iG}=Object;const{isArray:aG}=Array;function uG(e,n){return e.reduce((t,r,i)=>(t[r]=n[i],t),{})}function _I(...e){const n=function j$(e){return Xe(Wg(e))?e.pop():void 0}(e),{args:t,keys:r}=function sG(e){if(1===e.length){const n=e[0];if(tG(n))return{args:n,keys:null};if(function oG(e){return e&&"object"==typeof e&&nG(e)===rG}(n)){const t=iG(n);return{args:t.map(r=>n[r]),keys:t}}}return{args:e,keys:null}}(e),i=new nt(s=>{const{length:o}=t;if(!o)return void s.complete();const a=new Array(o);let c=o,l=o;for(let u=0;u<o;u++){let d=!1;dr(t[u]).subscribe(sn(s,f=>{d||(d=!0,l--),a[u]=f},()=>c--,void 0,()=>{(!c||!d)&&(l||s.next(r?uG(r,a):a),s.complete())}))}});return n?i.pipe(function lG(e){return Pt(n=>function cG(e,n){return aG(n)?e(...n):e(n)}(e,n))}(n)):i}function vI(e){return e&&e.replace(/\s+/g," ").trim()}let Fo=(()=>{class e{constructor(t,r,i){this.context=t,this.http=r,this.mapper=i}getAvailablePaymentSystems(){const{currency:t,userId:r,merchantId:i}=this.context.data.payment(),s=py({currency:t,payerId:r}),o=Xr(this.host(),`/api/merchants/${i}/settings`);return this.http.get(o,{params:s}).pipe(Pt(a=>{const c=new Set;return{payments:a.payments.filter(u=>!c.has(u.name)&&(c.add(u.name),!0))}}),Po(()=>An({payments:[]})))}getPaymentInfo(t){const{merchantId:r}=this.context.data.payment(),i=Xr(this.host(),`/api/merchants/${r}/payments/${t}`);return this.http.get(i)}getGooglePaySettings(){const{merchantId:t}=this.context.data.payment(),r=Xr(this.host(),`/api/googlepay/${t}/settings`);return this.http.get(r).pipe(Pt(i=>({...i,allowedCardNetworks:i.allowedCardNetworks.map(s=>s.toUpperCase())})))}pay(){const t=this.context.data.payment(),r=this.context.data.settings(),i=this.context.data.userProvidedInfo(),s=this.context.data.deviceInfo(),o={...s?.browserData};t.ipAddress&&(o.ipAddress=t.ipAddress);const c={headers:hI(o)},l=Xr(this.host(),`/api/merchants/${t.merchantId}/payments`);let u=this.mapper.mapPaymentRequest(t,i,r,s),d="default";return"invoice-overridden"===r.paymentFlow.type&&this.context.callbacks.createInvoice?d="invoice-overridden":"payment-overridden"===r.paymentFlow.type&&this.context.callbacks.makePayment&&(d="payment-overridden"),"card"===u.requisites.type&&r.paymentFlow.tokenizeCard?this.getSecretKey().pipe(Oo(f=>Ci(this.encrypt(u.requisites,f))),Oo(f=>"default"!==d?this.getCardTokenData(f,t.merchantId).pipe(Pt(h=>h.token),Po(()=>An(f)),Oo(h=>(u.requisites={type:"card",paymentToken:h},this.makeCallback(d,u,l,c)))):(u.requisites={type:"card",paymentToken:f},this.http.post(l,u,c)))):"default"!==d?this.makeCallback(d,u,l,c):this.http.post(l,u,c)}getCardTokenData(t,r){const i=Xr(this.host(),`api/CardData/${r}/tokenize`);return this.http.post(i,{ei:2,invoice:t,es:{uo:!0}})}makeCallback(t,r,i,s){if("invoice-overridden"===t)return this.createInvoiceCallback(r).pipe(Oo(o=>this.http.post(i,o,s)));if("payment-overridden"===t)return this.makePaymentCallback(r);throw new Error("Not implemented flow type")}getSecretKey(){const t=Xr(this.host(),"/api/security/key/2?formatId=2&size=4096");return this.http.get(t)}encrypt(t,r){var i=this;return ss(function*(){const s=JSON.stringify(t),o=function hG(e){return function pG(e){const n=new ArrayBuffer(e.length),t=new Uint8Array(n);for(let r=0,i=e.length;r<i;r++)t[r]=e.charCodeAt(r);return n}(atob(e))}(r);try{const a=yield window.crypto.subtle.importKey("spki",o,{name:"RSA-OAEP",hash:"SHA-1"},!1,["encrypt"]),c=(new TextEncoder).encode(s);return function fG(e){return btoa(String.fromCharCode(...new Uint8Array(e)))}(yield window.crypto.subtle.encrypt({name:"RSA-OAEP"},a,c))}catch(a){throw i.context.events.error.emit(a),a}})()}makePaymentCallback(t){return new nt(r=>(this.context.callbacks.makePayment(t).then(i=>{r.next(i),r.complete()}).catch(i=>r.error(i)),()=>{}))}createInvoiceCallback(t){return new nt(r=>(this.context.callbacks.createInvoice(t).then(i=>{r.next(i),r.complete()}).catch(i=>r.error(i)),()=>{}))}host(){return this.context.data.settings().urls.processing}static#e=this.\u0275fac=function(r){return new(r||e)(k(xe),k(Sd),k(fs))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})();const CI=new N("moto-window-document",{providedIn:"root",factory:()=>window}),bI=new N("LANGUAGE_TOKEN",{factory:()=>A(CI).navigator.language}),EI=new N("APPLE_PAY_JS_SERVICE_TOKEN");function gy(e,n,t){return n&&t&&"net"==t?e+n:e}let yy=(()=>{class e{constructor(t,r){this.clientLanguage=t,this.applePayJsService=r,this.name="applepay"}get defaultCountryCode(){if(!this.clientLanguage)return"GB";if(this.clientLanguage.match(/-/)){const[t,r]=this.clientLanguage.split("-");return r}return this.clientLanguage}isAvailable(t){return t.userAuthToken?this.applePayJsService.canMakePayment():An(!1)}pay(t,r){const{amount:i,currency:s,description:o,billingAddress:a,merchantId:c,userAuthToken:l,tax:u,amountType:d}=t,f=a?.country?a.country:this.defaultCountryCode,h={total:{amount:gy(i,u,d).toString(),currency:s.toUpperCase(),label:o},countryCode:f.toUpperCase(),merchantId:c,userToken:l,processingUrl:r};return this.applePayJsService.pay(h).pipe(Pt(({payment:p})=>JSON.stringify(p)))}static#e=this.\u0275fac=function(r){return new(r||e)(k(bI),k(EI))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})(),wI=(()=>{class e{constructor(t){this.context=t,this.versionData={apiVersion:2,apiVersionMinor:0}}setData(t){this.settings=t,this.paymentMethodSpec={type:"CARD",parameters:{allowedCardNetworks:t.allowedCardNetworks,allowedAuthMethods:this.context.data.settings().googlePay.allowedAuthMethods}}}isAvailable(){return this.context.clients.googlePay&&this.paymentMethodSpec?Ci(this.context.clients.googlePay.isReadyToPay({...this.versionData,allowedPaymentMethods:[this.paymentMethodSpec]}).then(t=>t.result)):An(!1)}pay(t){if(!this.paymentMethodSpec||!this.settings)return hy(()=>"Something went wrong");const r={...this.versionData,allowedPaymentMethods:[{...this.paymentMethodSpec,tokenizationSpecification:{type:"PAYMENT_GATEWAY",parameters:{gateway:this.settings.gateway.name,gatewayMerchantId:this.settings.gateway.merchantId}}}],merchantInfo:{merchantId:this.settings.merchant.id,merchantName:this.settings.merchant.name},transactionInfo:{totalPriceStatus:"FINAL",totalPrice:t.price,currencyCode:t.currency,countryCode:t.countryCode,transactionId:t.paymentId}};return Ci(this.context.clients.googlePay.loadPaymentData(r).then(i=>i.paymentMethodData.tokenizationData.token))}static#e=this.\u0275fac=function(r){return new(r||e)(k(xe))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})(),_y=(()=>{class e{constructor(t,r,i,s){this.clientLanguage=t,this.googlePayJsService=r,this.context=i,this.processing=s,this.name="googlepay"}get defaultCountryCode(){if(!this.clientLanguage)return"GB";if(this.clientLanguage.match(/-/)){const[r,i]=this.clientLanguage.split("-");return i}return 2===this.clientLanguage.length?this.clientLanguage:"GB"}isAvailable(t){return t.userAuthToken?this.processing.getGooglePaySettings().pipe(Oo(r=>(this.context.clients.googlePay=new google.payments.api.PaymentsClient({environment:r.isTest?"TEST":"PRODUCTION"}),this.googlePayJsService.setData(r),this.googlePayJsService.isAvailable())),Po(()=>An(!1))):An(!1)}pay(t){const{paymentId:r,amount:i,currency:s,billingAddress:o,tax:a,amountType:c}=t,u={countryCode:(o?.country?o.country:this.defaultCountryCode).toUpperCase(),currency:s.toUpperCase(),paymentId:r,price:gy(i,a,c).toString()};return this.googlePayJsService.pay(u)}static#e=this.\u0275fac=function(r){return new(r||e)(k(bI),k(wI),k(xe),k(Fo))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})(),vy=(()=>{class e{constructor(t,r,i,s,o){this.context=t,this.processingService=r,this.billingProfilesService=i,this.applePayService=s,this.googlePayService=o}refreshExistingCards(t){let r;this.context.data.cardsLoading.set(!0),r=t?An(t):this.billingProfilesService.getExistingCards().pipe(Pt(i=>i.concat().sort(s=>s.isDefault?-1:1))),r.subscribe(i=>{i.length?(this.context.componentsStates.cardForm.update(s=>({...s,enabled:!1})),this.context.componentsStates.cardList().enabled||this.context.componentsStates.cardList.update(s=>({...s,enabled:!0}))):(this.context.componentsStates.cardForm.update(s=>({...s,enabled:!0})),this.context.componentsStates.cardList.update(s=>({...s,enabled:!1})),"existing-card"===this.context.data.userProvidedInfo()?.requisites?.type&&this.context.data.userProvidedInfo.update(s=>({...s,requisites:void 0,paymentSystemName:void 0}))),this.context.data.loadedExistingCards.set(i),this.context.data.cardsLoading.set(!1)})}refreshPaymentSystems(){this.context.data.paymentSystemsLoading.set(!0),this.processingService.getAvailablePaymentSystems().subscribe(t=>{const r=t.payments.map(a=>a.name),i=this.context.data.payment(),o=[this.applePayService,this.googlePayService].filter(a=>r.includes(a.name)).map(a=>({name:a.name,isAvailable$:a.isAvailable(i)}));o.length>0?_I(o.map(a=>a.isAvailable$)).subscribe(a=>{const c=o.filter((u,d)=>!a[d]).map(u=>u.name),l=t.payments.filter(u=>!c.includes(u.name));this.applyPaymentSystems(l)}):this.applyPaymentSystems(t.payments)})}applyPaymentSystems(t){this.context.data.loadedPaymentSystems.set(t),t.some(r=>"card"===r.name)||(this.context.componentsStates.cardForm.update(r=>({...r,enabled:!1,isRequired:!1})),this.context.componentsStates.additionalForm.update(r=>({...r,enabled:!1,isRequired:!1})),this.context.componentsStates.cardList.update(r=>({...r,enabled:!1,isRequired:!1}))),t.some(r=>"card"!==r.name)||this.context.componentsStates.apmList.update(r=>({...r,enabled:!1,isRequired:!1})),this.context.data.paymentSystemsLoading.set(!1)}static#e=this.\u0275fac=function(r){return new(r||e)(k(xe),k(Fo),k(my),k(yy),k(_y))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})(),DI=(()=>{class e{constructor(t,r){this._renderer=t,this._elementRef=r,this.onChange=i=>{},this.onTouched=()=>{}}setProperty(t,r){this._renderer.setProperty(this._elementRef.nativeElement,t,r)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}static#e=this.\u0275fac=function(r){return new(r||e)(v(Ar),v(cn))};static#t=this.\u0275dir=Z({type:e})}return e})(),cs=(()=>{class e extends DI{static#e=this.\u0275fac=(()=>{let t;return function(i){return(t||(t=Lt(e)))(i||e)}})();static#t=this.\u0275dir=Z({type:e,features:[me]})}return e})();const Nn=new N(""),mG={provide:Nn,useExisting:De(()=>Cc),multi:!0};let Cc=(()=>{class e extends cs{writeValue(t){this.setProperty("checked",t)}static#e=this.\u0275fac=(()=>{let t;return function(i){return(t||(t=Lt(e)))(i||e)}})();static#t=this.\u0275dir=Z({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,i){1&r&&te("change",function(o){return i.onChange(o.target.checked)})("blur",function(){return i.onTouched()})},features:[Oe([mG]),me]})}return e})();const gG={provide:Nn,useExisting:De(()=>Ad),multi:!0},_G=new N("");let Ad=(()=>{class e extends DI{constructor(t,r,i){super(t,r),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function yG(){const e=ic()?ic().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(t){this.setProperty("value",t??"")}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}static#e=this.\u0275fac=function(r){return new(r||e)(v(Ar),v(cn),v(_G,8))};static#t=this.\u0275dir=Z({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,i){1&r&&te("input",function(o){return i._handleInput(o.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(o){return i._compositionEnd(o.target.value)})},features:[Oe([gG]),me]})}return e})();function Di(e){return null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}function SI(e){return null!=e&&"number"==typeof e.length}const Bt=new N(""),Si=new N(""),vG=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Pr{static min(n){return function TI(e){return n=>{if(Di(n.value)||Di(e))return null;const t=parseFloat(n.value);return!isNaN(t)&&t<e?{min:{min:e,actual:n.value}}:null}}(n)}static max(n){return function MI(e){return n=>{if(Di(n.value)||Di(e))return null;const t=parseFloat(n.value);return!isNaN(t)&&t>e?{max:{max:e,actual:n.value}}:null}}(n)}static required(n){return function II(e){return Di(e.value)?{required:!0}:null}(n)}static requiredTrue(n){return function AI(e){return!0===e.value?null:{required:!0}}(n)}static email(n){return function xI(e){return Di(e.value)||vG.test(e.value)?null:{email:!0}}(n)}static minLength(n){return NI(n)}static maxLength(n){return kI(n)}static pattern(n){return function PI(e){if(!e)return xd;let n,t;return"string"==typeof e?(t="","^"!==e.charAt(0)&&(t+="^"),t+=e,"$"!==e.charAt(e.length-1)&&(t+="$"),n=new RegExp(t)):(t=e.toString(),n=e),r=>{if(Di(r.value))return null;const i=r.value;return n.test(i)?null:{pattern:{requiredPattern:t,actualValue:i}}}}(n)}static nullValidator(n){return null}static compose(n){return BI(n)}static composeAsync(n){return jI(n)}}function NI(e){return n=>Di(n.value)||!SI(n.value)?null:n.value.length<e?{minlength:{requiredLength:e,actualLength:n.value.length}}:null}function kI(e){return n=>SI(n.value)&&n.value.length>e?{maxlength:{requiredLength:e,actualLength:n.value.length}}:null}function xd(e){return null}function OI(e){return null!=e}function RI(e){return xu(e)?Ci(e):e}function FI(e){let n={};return e.forEach(t=>{n=null!=t?{...n,...t}:n}),0===Object.keys(n).length?null:n}function LI(e,n){return n.map(t=>t(e))}function VI(e){return e.map(n=>function CG(e){return!e.validate}(n)?n:t=>n.validate(t))}function BI(e){if(!e)return null;const n=e.filter(OI);return 0==n.length?null:function(t){return FI(LI(t,n))}}function Cy(e){return null!=e?BI(VI(e)):null}function jI(e){if(!e)return null;const n=e.filter(OI);return 0==n.length?null:function(t){return _I(LI(t,n).map(RI)).pipe(Pt(FI))}}function by(e){return null!=e?jI(VI(e)):null}function HI(e,n){return null===e?[n]:Array.isArray(e)?[...e,n]:[e,n]}function UI(e){return e._rawValidators}function $I(e){return e._rawAsyncValidators}function Ey(e){return e?Array.isArray(e)?e:[e]:[]}function Nd(e,n){return Array.isArray(e)?e.includes(n):e===n}function GI(e,n){const t=Ey(n);return Ey(e).forEach(i=>{Nd(t,i)||t.push(i)}),t}function zI(e,n){return Ey(n).filter(t=>!Nd(e,t))}class qI{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(n){this._rawValidators=n||[],this._composedValidatorFn=Cy(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=by(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,t){return!!this.control&&this.control.hasError(n,t)}getError(n,t){return this.control?this.control.getError(n,t):null}}class tn extends qI{get formDirective(){return null}get path(){return null}}class Jr extends qI{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class WI{constructor(n){this._cd=n}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}}let ei=(()=>{class e extends WI{constructor(t){super(t)}static#e=this.\u0275fac=function(r){return new(r||e)(v(Jr,2))};static#t=this.\u0275dir=Z({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,i){2&r&&Yt("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[me]})}return e})(),kd=(()=>{class e extends WI{constructor(t){super(t)}static#e=this.\u0275fac=function(r){return new(r||e)(v(tn,10))};static#t=this.\u0275dir=Z({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,i){2&r&&Yt("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},features:[me]})}return e})();const bc="VALID",Od="INVALID",Lo="PENDING",Ec="DISABLED";class Vo{}class YI extends Vo{constructor(n,t){super(),this.value=n,this.source=t}}class Sy extends Vo{constructor(n,t){super(),this.pristine=n,this.source=t}}class Ty extends Vo{constructor(n,t){super(),this.touched=n,this.source=t}}class Rd extends Vo{constructor(n,t){super(),this.status=n,this.source=t}}class SG extends Vo{constructor(n){super(),this.source=n}}class TG extends Vo{constructor(n){super(),this.source=n}}function My(e){return(Fd(e)?e.validators:e)||null}function Iy(e,n){return(Fd(n)?n.asyncValidators:e)||null}function Fd(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function KI(e,n,t){const r=e.controls;if(!(n?Object.keys(r):r).length)throw new E(1e3,"");if(!r[t])throw new E(1001,"")}function QI(e,n,t){e._forEachChild((r,i)=>{if(void 0===t[i])throw new E(1002,"")})}class Ld{constructor(n,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=ce(()=>this.statusReactive()),this.statusReactive=se(void 0),this._pristine=ce(()=>this.pristineReactive()),this.pristineReactive=se(!0),this._touched=ce(()=>this.touchedReactive()),this.touchedReactive=se(!1),this._events=new kt,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get status(){return Hn(this.statusReactive)}set status(n){Hn(()=>this.statusReactive.set(n))}get valid(){return this.status===bc}get invalid(){return this.status===Od}get pending(){return this.status==Lo}get disabled(){return this.status===Ec}get enabled(){return this.status!==Ec}get pristine(){return Hn(this.pristineReactive)}set pristine(n){Hn(()=>this.pristineReactive.set(n))}get dirty(){return!this.pristine}get touched(){return Hn(this.touchedReactive)}set touched(n){Hn(()=>this.touchedReactive.set(n))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(GI(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(GI(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(zI(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(zI(n,this._rawAsyncValidators))}hasValidator(n){return Nd(this._rawValidators,n)}hasAsyncValidator(n){return Nd(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){const t=!1===this.touched;this.touched=!0;const r=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsTouched({...n,sourceControl:r}),t&&!1!==n.emitEvent&&this._events.next(new Ty(!0,r))}markAllAsTouched(n={}){this.markAsTouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsTouched(n))}markAsUntouched(n={}){const t=!0===this.touched;this.touched=!1,this._pendingTouched=!1;const r=n.sourceControl??this;this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:r})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,r),t&&!1!==n.emitEvent&&this._events.next(new Ty(!1,r))}markAsDirty(n={}){const t=!0===this.pristine;this.pristine=!1;const r=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsDirty({...n,sourceControl:r}),t&&!1!==n.emitEvent&&this._events.next(new Sy(!1,r))}markAsPristine(n={}){const t=!1===this.pristine;this.pristine=!0,this._pendingDirty=!1;const r=n.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:n.emitEvent})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n,r),t&&!1!==n.emitEvent&&this._events.next(new Sy(!0,r))}markAsPending(n={}){this.status=Lo;const t=n.sourceControl??this;!1!==n.emitEvent&&(this._events.next(new Rd(this.status,t)),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.markAsPending({...n,sourceControl:t})}disable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=Ec,this.errors=null,this._forEachChild(i=>{i.disable({...n,onlySelf:!0})}),this._updateValue();const r=n.sourceControl??this;!1!==n.emitEvent&&(this._events.next(new YI(this.value,r)),this._events.next(new Rd(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:t},this),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=bc,this._forEachChild(r=>{r.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:t},this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(n,t){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine({},t),this._parent._updateTouched({},t))}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){const r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===bc||this.status===Lo)&&this._runAsyncValidator(r,n.emitEvent)}const t=n.sourceControl??this;!1!==n.emitEvent&&(this._events.next(new YI(this.value,t)),this._events.next(new Rd(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity({...n,sourceControl:t})}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ec:bc}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n,t){if(this.asyncValidator){this.status=Lo,this._hasOwnPendingAsyncValidator={emitEvent:!1!==t};const r=RI(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{emitEvent:t,shouldHaveEmitted:n})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();const n=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,n}return!1}setErrors(n,t={}){this.errors=n,this._updateControlsErrors(!1!==t.emitEvent,this,t.shouldHaveEmitted)}get(n){let t=n;return null==t||(Array.isArray(t)||(t=t.split(".")),0===t.length)?null:t.reduce((r,i)=>r&&r._find(i),this)}getError(n,t){const r=t?this.get(t):this;return r&&r.errors?r.errors[n]:null}hasError(n,t){return!!this.getError(n,t)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n,t,r){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),(n||r)&&this._events.next(new Rd(this.status,t)),this._parent&&this._parent._updateControlsErrors(n,t,r)}_initObservables(){this.valueChanges=new ve,this.statusChanges=new ve}_calculateStatus(){return this._allControlsDisabled()?Ec:this.errors?Od:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Lo)?Lo:this._anyControlsHaveStatus(Od)?Od:bc}_anyControlsHaveStatus(n){return this._anyControls(t=>t.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n,t){const r=!this._anyControlsDirty(),i=this.pristine!==r;this.pristine=r,this._parent&&!n.onlySelf&&this._parent._updatePristine(n,t),i&&this._events.next(new Sy(this.pristine,t))}_updateTouched(n={},t){this.touched=this._anyControlsTouched(),this._events.next(new Ty(this.touched,t)),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,t)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){Fd(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function MG(e){return Array.isArray(e)?Cy(e):e||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function IG(e){return Array.isArray(e)?by(e):e||null}(this._rawAsyncValidators)}}class wc extends Ld{constructor(n,t,r){super(My(t),Iy(r,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,t){return this.controls[n]?this.controls[n]:(this.controls[n]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(n,t,r={}){this.registerControl(n,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(n,t={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(n,t,r={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],t&&this.registerControl(n,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,t={}){QI(this,0,n),Object.keys(n).forEach(r=>{KI(this,!0,r),this.controls[r].setValue(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(Object.keys(n).forEach(r=>{const i=this.controls[r];i&&i.patchValue(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n={},t={}){this._forEachChild((r,i)=>{r.reset(n?n[i]:null,{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(n,t,r)=>(n[r]=t.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(t,r)=>!!r._syncPendingControls()||t);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(t=>{const r=this.controls[t];r&&n(r,t)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[t,r]of Object.entries(this.controls))if(this.contains(t)&&n(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(t,r,i)=>((r.enabled||this.disabled)&&(t[i]=r.value),t))}_reduceChildren(n,t){let r=n;return this._forEachChild((i,s)=>{r=t(r,i,s)}),r}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}class XI extends wc{}const ls=new N("CallSetDisabledState",{providedIn:"root",factory:()=>Dc}),Dc="always";function Vd(e,n){return[...n.path,e]}function Sc(e,n,t=Dc){Ay(e,n),n.valueAccessor.writeValue(e.value),(e.disabled||"always"===t)&&n.valueAccessor.setDisabledState?.(e.disabled),function xG(e,n){n.valueAccessor.registerOnChange(t=>{e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&JI(e,n)})}(e,n),function kG(e,n){const t=(r,i)=>{n.valueAccessor.writeValue(r),i&&n.viewToModelUpdate(r)};e.registerOnChange(t),n._registerOnDestroy(()=>{e._unregisterOnChange(t)})}(e,n),function NG(e,n){n.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&JI(e,n),"submit"!==e.updateOn&&e.markAsTouched()})}(e,n),function AG(e,n){if(n.valueAccessor.setDisabledState){const t=r=>{n.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(t),n._registerOnDestroy(()=>{e._unregisterOnDisabledChange(t)})}}(e,n)}function Bd(e,n,t=!0){const r=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(r),n.valueAccessor.registerOnTouched(r)),Hd(e,n),e&&(n._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function jd(e,n){e.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(n)})}function Ay(e,n){const t=UI(e);null!==n.validator?e.setValidators(HI(t,n.validator)):"function"==typeof t&&e.setValidators([t]);const r=$I(e);null!==n.asyncValidator?e.setAsyncValidators(HI(r,n.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const i=()=>e.updateValueAndValidity();jd(n._rawValidators,i),jd(n._rawAsyncValidators,i)}function Hd(e,n){let t=!1;if(null!==e){if(null!==n.validator){const i=UI(e);if(Array.isArray(i)&&i.length>0){const s=i.filter(o=>o!==n.validator);s.length!==i.length&&(t=!0,e.setValidators(s))}}if(null!==n.asyncValidator){const i=$I(e);if(Array.isArray(i)&&i.length>0){const s=i.filter(o=>o!==n.asyncValidator);s.length!==i.length&&(t=!0,e.setAsyncValidators(s))}}}const r=()=>{};return jd(n._rawValidators,r),jd(n._rawAsyncValidators,r),t}function JI(e,n){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function Ny(e,n){if(!e.hasOwnProperty("model"))return!1;const t=e.model;return!!t.isFirstChange()||!Object.is(n,t.currentValue)}function ky(e,n){if(!n)return null;let t,r,i;return Array.isArray(n),n.forEach(s=>{s.constructor===Ad?t=s:function RG(e){return Object.getPrototypeOf(e.constructor)===cs}(s)?r=s:i=s}),i||r||t||null}function nA(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function rA(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}Promise.resolve();const Mc=class extends Ld{constructor(n=null,t,r){super(My(t),Iy(r,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Fd(t)&&(t.nonNullable||t.initialValueIsDefault)&&(this.defaultValue=rA(n)?n.value:n)}setValue(n,t={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(n,t={}){this.setValue(n,t)}reset(n=this.defaultValue,t={}){this._applyFormState(n),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){nA(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){nA(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){rA(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};let iA=(()=>{class e extends tn{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Vd(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static#e=this.\u0275fac=(()=>{let t;return function(i){return(t||(t=Lt(e)))(i||e)}})();static#t=this.\u0275dir=Z({type:e,features:[me]})}return e})();const jG={provide:Jr,useExisting:De(()=>us)},oA=Promise.resolve();let us=(()=>{class e extends Jr{constructor(t,r,i,s,o,a){super(),this._changeDetectorRef=o,this.callSetDisabledState=a,this.control=new Mc,this._registered=!1,this.name="",this.update=new ve,this._parent=t,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=ky(0,s)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){const r=t.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),Ny(t,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(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Sc(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()}_updateValue(t){oA.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){const r=t.isDisabled.currentValue,i=0!==r&&function fg(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}(r);oA.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?Vd(t,this._parent):[t]}static#e=this.\u0275fac=function(r){return new(r||e)(v(tn,9),v(Bt,10),v(Si,10),v(Nn,10),v(wo,8),v(ls,8))};static#t=this.\u0275dir=Z({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Oe([jG]),me,tr]})}return e})(),Ud=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275dir=Z({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return e})();const Oy=new N(""),qG={provide:tn,useExisting:De(()=>Bo)};let Bo=(()=>{class e extends tn{get submitted(){return Hn(this._submittedReactive)}set submitted(t){this._submittedReactive.set(t)}constructor(t,r,i){super(),this.callSetDisabledState=i,this._submitted=ce(()=>this._submittedReactive()),this._submittedReactive=se(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new ve,this._setValidators(t),this._setAsyncValidators(r)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Hd(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const r=this.form.get(t.path);return Sc(r,t,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),r}getControl(t){return this.form.get(t.path)}removeControl(t){Bd(t.control||null,t,!1),function FG(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,r){this.form.get(t.path).setValue(r)}onSubmit(t){return this._submittedReactive.set(!0),function tA(e,n){e._syncPendingControls(),n.forEach(t=>{const r=t.control;"submit"===r.updateOn&&r._pendingChange&&(t.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(t),this.form._events.next(new SG(this.control)),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this._submittedReactive.set(!1),this.form._events.next(new TG(this.form))}_updateDomValue(){this.directives.forEach(t=>{const r=t.control,i=this.form.get(t.path);r!==i&&(Bd(r||null,t),(e=>e instanceof Mc)(i)&&(Sc(i,t,this.callSetDisabledState),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const r=this.form.get(t.path);(function eA(e,n){Ay(e,n)})(r,t),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const r=this.form.get(t.path);r&&function PG(e,n){return Hd(e,n)}(r,t)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ay(this.form,this),this._oldForm&&Hd(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(r){return new(r||e)(v(Bt,10),v(Si,10),v(ls,8))};static#t=this.\u0275dir=Z({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,i){1&r&&te("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Oe([qG]),me,tr]})}return e})();const WG={provide:tn,useExisting:De(()=>$d)};let $d=(()=>{class e extends iA{constructor(t,r,i){super(),this.name=null,this._parent=t,this._setValidators(r),this._setAsyncValidators(i)}_checkParentType(){dA(this._parent)}static#e=this.\u0275fac=function(r){return new(r||e)(v(tn,13),v(Bt,10),v(Si,10))};static#t=this.\u0275dir=Z({type:e,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},features:[Oe([WG]),me]})}return e})();const ZG={provide:tn,useExisting:De(()=>Gd)};let Gd=(()=>{class e extends tn{constructor(t,r,i){super(),this.name=null,this._parent=t,this._setValidators(r),this._setAsyncValidators(i)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Vd(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){dA(this._parent)}static#e=this.\u0275fac=function(r){return new(r||e)(v(tn,13),v(Bt,10),v(Si,10))};static#t=this.\u0275dir=Z({type:e,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},features:[Oe([ZG]),me]})}return e})();function dA(e){return!(e instanceof $d||e instanceof Bo||e instanceof Gd)}const YG={provide:Jr,useExisting:De(()=>Ic)};let Ic=(()=>{class e extends Jr{set isDisabled(t){}static#e=this._ngModelWarningSentOnce=!1;constructor(t,r,i,s,o){super(),this._ngModelWarningConfig=o,this._added=!1,this.name=null,this.update=new ve,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=ky(0,s)}ngOnChanges(t){this._added||this._setUpControl(),Ny(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return Vd(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static#t=this.\u0275fac=function(r){return new(r||e)(v(tn,13),v(Bt,10),v(Si,10),v(Nn,10),v(Oy,8))};static#n=this.\u0275dir=Z({type:e,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[Oe([YG]),me,tr]})}return e})();function pA(e){return"number"==typeof e?e:parseInt(e,10)}let ds=(()=>{class e{constructor(){this._validator=xd}ngOnChanges(t){if(this.inputName in t){const r=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):xd,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return null!=t}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275dir=Z({type:e,features:[tr]})}return e})();const az={provide:Bt,useExisting:De(()=>zd),multi:!0};let zd=(()=>{class e extends ds{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=t=>pA(t),this.createValidator=t=>NI(t)}static#e=this.\u0275fac=(()=>{let t;return function(i){return(t||(t=Lt(e)))(i||e)}})();static#t=this.\u0275dir=Z({type:e,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(r,i){2&r&&At("minlength",i._enabled?i.minlength:null)},inputs:{minlength:"minlength"},features:[Oe([az]),me]})}return e})();const cz={provide:Bt,useExisting:De(()=>Ac),multi:!0};let Ac=(()=>{class e extends ds{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=t=>pA(t),this.createValidator=t=>kI(t)}static#e=this.\u0275fac=(()=>{let t;return function(i){return(t||(t=Lt(e)))(i||e)}})();static#t=this.\u0275dir=Z({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(r,i){2&r&&At("maxlength",i._enabled?i.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Oe([cz]),me]})}return e})(),bA=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=bt({type:e});static#n=this.\u0275inj=ft({})}return e})();class EA extends Ld{constructor(n,t,r){super(My(t),Iy(r,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,t={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(n,t,r={}){this.controls.splice(n,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(n,t={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(n,t,r={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),t&&(this.controls.splice(i,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,t={}){QI(this,0,n),n.forEach((r,i)=>{KI(this,!1,i),this.at(i).setValue(r,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(n.forEach((r,i)=>{this.at(i)&&this.at(i).patchValue(r,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n=[],t={}){this._forEachChild((r,i)=>{r.reset(n[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((t,r)=>!!r._syncPendingControls()||t,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((t,r)=>{n(t,r)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(t=>t.enabled&&n(t))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}function wA(e){return!!e&&(void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn)}let Vy=(()=>{class e{constructor(){this.useNonNullable=!1}get nonNullable(){const t=new e;return t.useNonNullable=!0,t}group(t,r=null){const i=this._reduceControls(t);let s={};return wA(r)?s=r:null!==r&&(s.validators=r.validator,s.asyncValidators=r.asyncValidator),new wc(i,s)}record(t,r=null){const i=this._reduceControls(t);return new XI(i,r)}control(t,r,i){let s={};return this.useNonNullable?(wA(r)?s=r:(s.validators=r,s.asyncValidators=i),new Mc(t,{...s,nonNullable:!0})):new Mc(t,r,i)}array(t,r,i){const s=t.map(o=>this._createControl(o));return new EA(s,r,i)}_reduceControls(t){const r={};return Object.keys(t).forEach(i=>{r[i]=this._createControl(t[i])}),r}_createControl(t){return t instanceof Mc||t instanceof Ld?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),DA=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:ls,useValue:t.callSetDisabledState??Dc}]}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=bt({type:e});static#n=this.\u0275inj=ft({imports:[bA]})}return e})(),SA=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:Oy,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:ls,useValue:t.callSetDisabledState??Dc}]}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=bt({type:e});static#n=this.\u0275inj=ft({imports:[bA]})}return e})();function TA(...e){return function dz(){return eM(1)}()(Ci(e,dd(e)))}function MA(...e){const n=dd(e);return gn((t,r)=>{(n?TA(e,t,n):TA(e,t)).subscribe(r)})}function IA(e,n=dI){return gn((t,r)=>{let i=null,s=null,o=null;const a=()=>{if(i){i.unsubscribe(),i=null;const l=s;s=null,r.next(l)}};function c(){const l=o+e,u=n.now();if(u<l)return i=this.schedule(void 0,l-u),void r.add(i);a()}t.subscribe(sn(r,l=>{s=l,o=n.now(),i||(i=n.schedule(c,e),r.add(i))},()=>{a(),r.complete()},void 0,()=>{s=i=null}))})}function By(e,n,t,r,i,s,o){e.valueChanges.pipe(MA(null),IA(50),function fz(){return gn((e,n)=>{let t,r=!1;e.subscribe(sn(n,i=>{const s=t;t=i,r&&n.next([s,i]),r=!0}))})}(),HM(([a,c])=>JSON.stringify(a)!==JSON.stringify(c)),t.untilDestroy()).subscribe(([a,c])=>{const l={...n()};let u=!1;!r()&&l.canShowError&&(u=!0,l.canShowError=!1);const d=i(c);l.filled!==d&&(u=!0,l.filled=d),u&&n.update(f=>({...l})),s&&s(c,o)}),e.statusChanges.pipe(MA(e.status),t.untilDestroy()).subscribe(a=>{n.update(c=>({...c,isValid:"VALID"===a}))})}const qd=new N("ngx-mask config"),AA=new N("new ngx-mask config"),xA=new N("initial ngx-mask config"),yz={suffix:"",prefix:"",thousandSeparator:" ",decimalMarker:[".",","],clearIfNotMatch:!1,showTemplate:!1,showMaskTyped:!1,placeHolderCharacter:"_",dropSpecialCharacters:!0,hiddenInput:void 0,shownMaskExpression:"",separatorLimit:"",allowNegativeNumbers:!1,validation:!0,specialCharacters:["-","/","(",")",".",":"," ","+",",","@","[","]",'"',"'"],leadZeroDateTime:!1,apm:!1,leadZero:!1,keepCharacterPositions:!1,triggerOnMaskChange:!1,inputTransformFn:e=>e,outputTransformFn:e=>e,maskFilled:new ve,patterns:{0:{pattern:new RegExp("\\d")},9:{pattern:new RegExp("\\d"),optional:!0},X:{pattern:new RegExp("\\d"),symbol:"*"},A:{pattern:new RegExp("[a-zA-Z0-9]")},S:{pattern:new RegExp("[a-zA-Z]")},U:{pattern:new RegExp("[A-Z]")},L:{pattern:new RegExp("[a-z]")},d:{pattern:new RegExp("\\d")},m:{pattern:new RegExp("\\d")},M:{pattern:new RegExp("\\d")},H:{pattern:new RegExp("\\d")},h:{pattern:new RegExp("\\d")},s:{pattern:new RegExp("\\d")}}},_z=["Hh:m0:s0","Hh:m0","m0:s0"],vz=["percent","Hh","s0","m0","separator","d0/M0/0000","d0/M0","d0","M0"];let Cz=(()=>{class e{constructor(){this._config=A(qd),this.dropSpecialCharacters=this._config.dropSpecialCharacters,this.hiddenInput=this._config.hiddenInput,this.clearIfNotMatch=this._config.clearIfNotMatch,this.specialCharacters=this._config.specialCharacters,this.patterns=this._config.patterns,this.prefix=this._config.prefix,this.suffix=this._config.suffix,this.thousandSeparator=this._config.thousandSeparator,this.decimalMarker=this._config.decimalMarker,this.showMaskTyped=this._config.showMaskTyped,this.placeHolderCharacter=this._config.placeHolderCharacter,this.validation=this._config.validation,this.separatorLimit=this._config.separatorLimit,this.allowNegativeNumbers=this._config.allowNegativeNumbers,this.leadZeroDateTime=this._config.leadZeroDateTime,this.leadZero=this._config.leadZero,this.apm=this._config.apm,this.inputTransformFn=this._config.inputTransformFn,this.outputTransformFn=this._config.outputTransformFn,this.keepCharacterPositions=this._config.keepCharacterPositions,this._shift=new Set,this.maskExpression="",this.actualValue="",this.showKeepCharacterExp="",this.shownMaskExpression="",this.deletedSpecialCharacter=!1,this._formatWithSeparators=(t,r,i,s)=>{let o=[],a="";if(Array.isArray(i)){const f=new RegExp(i.map(h=>"[\\^$.|?*+()".indexOf(h)>=0?`\\${h}`:h).join("|"));o=t.split(f),a=t.match(f)?.[0]??""}else o=t.split(i),a=i;const c=o.length>1?`${a}${o[1]}`:"";let l=o[0]??"";const u=this.separatorLimit.replace(/\s/g,"");u&&+u&&(l="-"===l[0]?`-${l.slice(1,l.length).slice(0,u.length)}`:l.slice(0,u.length));const d=/(\d+)(\d{3})/;for(;r&&d.test(l);)l=l.replace(d,"$1"+r+"$2");return void 0===s?l+c:0===s?l:l+c.substring(0,s+1)},this.percentage=t=>{const r=t.replace(",","."),i=Number(r);return!isNaN(i)&&i>=0&&i<=100},this.getPrecision=t=>{const r=t.split(".");return r.length>1?Number(r[r.length-1]):1/0},this.checkAndRemoveSuffix=t=>{for(let r=this.suffix?.length-1;r>=0;r--){const i=this.suffix.substring(r,this.suffix?.length);if(t.includes(i)&&r!==this.suffix?.length-1&&(r-1<0||!t.includes(this.suffix.substring(r-1,this.suffix?.length))))return t.replace(i,"")}return t},this.checkInputPrecision=(t,r,i)=>{if(r<1/0){if(Array.isArray(i)){const c=i.find(l=>l!==this.thousandSeparator);i=c||i[0]}const s=new RegExp(this._charToRegExpExpression(i)+`\\d{${r}}.*$`),o=t.match(s),a=(o&&o[0]?.length)??0;a-1>r&&(t=t.substring(0,t.length-(a-1-r))),0===r&&this._compareOrIncludes(t[t.length-1],i,this.thousandSeparator)&&(t=t.substring(0,t.length-1))}return t}}applyMaskWithPattern(t,r){const[i,s]=r;return this.customPattern=s,this.applyMask(t,i)}applyMask(t,r,i=0,s=!1,o=!1,a=()=>{}){if(!r||"string"!=typeof t)return"";let c=0,l="",u=!1,d=!1,f=1,h=!1;t.slice(0,this.prefix.length)===this.prefix&&!this.showMaskTyped&&(t=t.slice(this.prefix.length,t.length)),this.suffix&&t?.length>0&&(t=this.checkAndRemoveSuffix(t)),"("===t&&this.prefix&&(t="");const p=t.toString().split("");if(this.allowNegativeNumbers&&"-"===t.slice(c,c+1)&&(l+=t.slice(c,c+1)),"IP"===r){const D=t.split(".");this.ipError=this._validIP(D),r="099.099.099.099"}const m=[];for(let D=0;D<t.length;D++)t[D]?.match("\\d")&&m.push(t[D]??"");if("CPF_CNPJ"===r&&(this.cpfCnpjError=11!==m.length&&14!==m.length,r=m.length>11?"00.000.000/0000-00":"000.000.000-00"),r.startsWith("percent")){if(t.match("[a-z]|[A-Z]")||t.match(/[-!$%^&*()_+|~=`{}\[\]:";'<>?,\/.]/)&&!o){t=this._stripToDecimal(t);const F=this.getPrecision(r);t=this.checkInputPrecision(t,F,this.decimalMarker)}const D="string"==typeof this.decimalMarker?this.decimalMarker:".";if(t.indexOf(D)>0&&!this.percentage(t.substring(0,t.indexOf(D)))){let F=t.substring(0,t.indexOf(D)-1);this.allowNegativeNumbers&&"-"===t.slice(c,c+1)&&!o&&(F=t.substring(0,t.indexOf(D))),t=`${F}${t.substring(t.indexOf(D),t.length)}`}let M="";M=this.allowNegativeNumbers&&"-"===t.slice(c,c+1)?t.slice(c+1,c+t.length):t,l=this.percentage(M)?this._splitPercentZero(t):this._splitPercentZero(t.substring(0,t.length-1))}else if(r.startsWith("separator")){(t.match("[w\u0430-\u044f\u0410-\u042f]")||t.match("[\u0401\u0451\u0410-\u044f]")||t.match("[a-z]|[A-Z]")||t.match(/[-@#!$%\\^&*()_\xa3\xac'+|~=`{}\]:";<>.?/]/)||t.match("[^A-Za-z0-9,]"))&&(t=this._stripToDecimal(t)),t="-"===t[0]&&this.allowNegativeNumbers?t.length>2&&"0"===t[1]&&t[2]!==this.thousandSeparator&&!this._compareOrIncludes(t[2],this.decimalMarker,this.thousandSeparator)&&!o?t.slice(0,t.length-1):t:t.length>1&&"0"===t[0]&&t[1]!==this.thousandSeparator&&!this._compareOrIncludes(t[1],this.decimalMarker,this.thousandSeparator)&&!o?t.slice(0,t.length-1):t,o&&(t=this._compareOrIncludes(t[t.length-1],this.decimalMarker,this.thousandSeparator)?t.slice(0,t.length-1):t);const D=this._charToRegExpExpression(this.thousandSeparator);let M='@#!$%^&*()_+|~=`{}\\[\\]:\\s,\\.";<>?\\/'.replace(D,"");if(Array.isArray(this.decimalMarker))for(const ct of this.decimalMarker)M=M.replace(this._charToRegExpExpression(ct),"");else M=M.replace(this._charToRegExpExpression(this.decimalMarker),"");const F=new RegExp("["+M+"]");(t.match(F)||1===t.length&&this._compareOrIncludes(t,this.decimalMarker,this.thousandSeparator))&&(t=t.substring(0,t.length-1));const j=this.getPrecision(r),L=(t=this.checkInputPrecision(t,j,this.decimalMarker)).replace(new RegExp(D,"g"),"");l=this._formatWithSeparators(L,this.thousandSeparator,this.decimalMarker,j);const Ye=l.indexOf(",")-t.indexOf(","),et=l.length-t.length;if(et>0&&l[i]!==this.thousandSeparator){d=!0;let ct=0;do{this._shift.add(i+ct),ct++}while(ct<et)}else l[i-1]===this.decimalMarker||-4===et||-3===et||","===l[i]?(this._shift.clear(),this._shift.add(i-1)):0!==Ye&&i>0&&!(l.indexOf(",")>=i&&i>3)||!(l.indexOf(".")>=i&&i>3)&&et<=0?(this._shift.clear(),d=!0,f=et,this._shift.add(i+=et)):this._shift.clear()}else for(let D=0,M=p[0];D<p.length&&c!==r.length;D++,M=p[D]??""){const F="*"in this.patterns;if(this._checkSymbolMask(M,r[c]??"")&&"?"===r[c+1])l+=M,c+=2;else if("*"===r[c+1]&&u&&this._checkSymbolMask(M,r[c+2]??""))l+=M,c+=3,u=!1;else if(this._checkSymbolMask(M,r[c]??"")&&"*"===r[c+1]&&!F)l+=M,u=!0;else if("?"===r[c+1]&&this._checkSymbolMask(M,r[c+2]??""))l+=M,c+=3;else if(this._checkSymbolMask(M,r[c]??"")){if("H"===r[c]&&(this.apm?Number(M)>9:Number(M)>2)){i+=1,c+=1,this._shiftStep(r,c,p.length),D--,this.leadZeroDateTime&&(l+="0");continue}if("h"===r[c]&&(this.apm?1===l.length&&Number(l)>1||"1"===l&&Number(M)>2||1===t.slice(c-1,c).length&&Number(t.slice(c-1,c))>2||"1"===t.slice(c-1,c)&&Number(M)>2:"2"===l&&Number(M)>3||("2"===l.slice(c-2,c)||"2"===l.slice(c-3,c)||"2"===l.slice(c-4,c)||"2"===l.slice(c-1,c))&&Number(M)>3&&c>10)){i+=1,c+=1,D--;continue}if(("m"===r[c]||"s"===r[c])&&Number(M)>5){i+=1,c+=1,this._shiftStep(r,c,p.length),D--,this.leadZeroDateTime&&(l+="0");continue}const j=31,L=t[c],Ye=t[c+1],et=t[c+2],ct=t[c-1],nn=t[c-2],Mi=t[c-3],Wn=t.slice(c-3,c-1),gs=t.slice(c-1,c+1),O=t.slice(c,c+2),B=t.slice(c-2,c);if("d"===r[c]){const G="M0"===r.slice(0,2),le="M0"===r.slice(0,2)&&this.specialCharacters.includes(nn);if(Number(M)>3&&this.leadZeroDateTime||!G&&(Number(O)>j||Number(gs)>j||this.specialCharacters.includes(Ye))||(le?Number(gs)>j||!this.specialCharacters.includes(L)&&this.specialCharacters.includes(et)||this.specialCharacters.includes(L):Number(O)>j||this.specialCharacters.includes(Ye))){i+=1,c+=1,this._shiftStep(r,c,p.length),D--,this.leadZeroDateTime&&(l+="0");continue}}if("M"===r[c]){const le=0===c&&(Number(M)>2||Number(O)>12||this.specialCharacters.includes(Ye)),vt=r.slice(c+2,c+3),Zn=Wn.includes(vt)&&(this.specialCharacters.includes(nn)&&Number(gs)>12&&!this.specialCharacters.includes(L)||this.specialCharacters.includes(L)||this.specialCharacters.includes(Mi)&&Number(B)>12&&!this.specialCharacters.includes(ct)||this.specialCharacters.includes(ct)),rn=Number(Wn)<=j&&!this.specialCharacters.includes(Wn)&&this.specialCharacters.includes(ct)&&(Number(O)>12||this.specialCharacters.includes(Ye)),Rr=Number(O)>12&&5===c||this.specialCharacters.includes(Ye)&&5===c,Ge=Number(Wn)>j&&!this.specialCharacters.includes(Wn)&&!this.specialCharacters.includes(B)&&Number(B)>12,ff=Number(Wn)<=j&&!this.specialCharacters.includes(Wn)&&!this.specialCharacters.includes(ct)&&Number(gs)>12;if(Number(M)>1&&this.leadZeroDateTime||le||Zn||ff||Ge||rn||Rr&&!this.leadZeroDateTime){i+=1,c+=1,this._shiftStep(r,c,p.length),D--,this.leadZeroDateTime&&(l+="0");continue}}l+=M,c++}else" "===M&&" "===r[c]||"/"===M&&"/"===r[c]?(l+=M,c++):-1!==this.specialCharacters.indexOf(r[c]??"")?(l+=r[c],c++,this._shiftStep(r,c,p.length),D--):"9"===r[c]&&this.showMaskTyped?this._shiftStep(r,c,p.length):this.patterns[r[c]??""]&&this.patterns[r[c]??""]?.optional?(p[c]&&"099.099.099.099"!==r&&"000.000.000-00"!==r&&"00.000.000/0000-00"!==r&&!r.match(/^9+\.0+$/)&&!this.patterns[r[c]??""]?.optional&&(l+=p[c]),r.includes("9*")&&r.includes("0*")&&c++,c++,D--):"*"===this.maskExpression[c+1]&&this._findSpecialChar(this.maskExpression[c+2]??"")&&this._findSpecialChar(M)===this.maskExpression[c+2]&&u||"?"===this.maskExpression[c+1]&&this._findSpecialChar(this.maskExpression[c+2]??"")&&this._findSpecialChar(M)===this.maskExpression[c+2]&&u?(c+=3,l+=M):this.showMaskTyped&&this.specialCharacters.indexOf(M)<0&&M!==this.placeHolderCharacter&&1===this.placeHolderCharacter.length&&(h=!0)}l.length+1===r.length&&-1!==this.specialCharacters.indexOf(r[r.length-1]??"")&&(l+=r[r.length-1]);let g=i+1;for(;this._shift.has(g);)f++,g++;let _=s&&!r.startsWith("separator")?c:this._shift.has(i)?f:0;h&&_--,a(_,d),f<0&&this._shift.clear();let y=!1;o&&(y=p.every(D=>this.specialCharacters.includes(D)));let w=`${this.prefix}${y?"":l}${this.suffix}`;if(0===l.length&&(w=this.dropSpecialCharacters?`${l}`:`${this.prefix}${l}`),l.includes("-")&&this.prefix&&this.allowNegativeNumbers){if(o&&"-"===l)return"";w=`-${this.prefix}${l.split("-").join("")}${this.suffix}`}return w}_findDropSpecialChar(t){return Array.isArray(this.dropSpecialCharacters)?this.dropSpecialCharacters.find(r=>r===t):this._findSpecialChar(t)}_findSpecialChar(t){return this.specialCharacters.find(r=>r===t)}_checkSymbolMask(t,r){return this.patterns=this.customPattern?this.customPattern:this.patterns,(this.patterns[r]?.pattern&&this.patterns[r]?.pattern.test(t))??!1}_stripToDecimal(t){return t.split("").filter((r,i)=>{const s="string"==typeof this.decimalMarker?r===this.decimalMarker:this.decimalMarker.includes(r);return r.match("^-?\\d")||r===this.thousandSeparator||s||"-"===r&&0===i&&this.allowNegativeNumbers}).join("")}_charToRegExpExpression(t){return t&&(" "===t?"\\s":"[\\^$.|?*+()".indexOf(t)>=0?`\\${t}`:t)}_shiftStep(t,r,i){const s=/[*?]/g.test(t.slice(0,r))?i:r;this._shift.add(s+this.prefix.length||0)}_compareOrIncludes(t,r,i){return Array.isArray(r)?r.filter(s=>s!==i).includes(t):t===r}_validIP(t){return!(4===t.length&&!t.some((r,i)=>t.length!==i+1?""===r||Number(r)>255:""===r||Number(r.substring(0,3))>255))}_splitPercentZero(t){const r=t.indexOf("string"==typeof this.decimalMarker?this.decimalMarker:".");if(-1===r){const i=parseInt(t,10);return isNaN(i)?"":i.toString()}{const i=parseInt(t.substring(0,r),10),s=t.substring(r+1),o=isNaN(i)?"":i.toString();return""===o?"":o+("string"==typeof this.decimalMarker?this.decimalMarker:".")+s}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e})(),jy=(()=>{class e extends Cz{constructor(){super(...arguments),this.isNumberValue=!1,this.maskIsShown="",this.selStart=null,this.selEnd=null,this.writingValue=!1,this.maskChanged=!1,this._maskExpressionArray=[],this.triggerOnMaskChange=!1,this._emitValue=!1,this._previousValue="",this._currentValue="",this.onChange=t=>{},this.document=A(Vt),this._config=A(qd),this._elementRef=A(cn,{optional:!0}),this._renderer=A(Ar,{optional:!0})}applyMask(t,r,i=0,s=!1,o=!1,a=()=>{}){if(!r)return t!==this.actualValue?this.actualValue:t;if(this.maskIsShown=this.showMaskTyped?this.showMaskInInput():"","IP"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(t||"#")),"CPF_CNPJ"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(t||"#")),!t&&this.showMaskTyped)return this.formControlResult(this.prefix),this.prefix+this.maskIsShown;const c=t&&"number"==typeof this.selStart?t[this.selStart]??"":"";let l="";if(void 0!==this.hiddenInput&&!this.writingValue){let h=t&&1===t.length?t.split(""):this.actualValue.split("");"object"==typeof this.selStart&&"object"==typeof this.selEnd?(this.selStart=Number(this.selStart),this.selEnd=Number(this.selEnd)):""!==t&&h.length?"number"==typeof this.selStart&&"number"==typeof this.selEnd&&(t.length>h.length?h.splice(this.selStart,0,c):t.length<h.length&&(h.length-t.length==1?h.splice(o?this.selStart-1:t.length-1,1):h.splice(this.selStart,this.selEnd-this.selStart))):h=[],this.showMaskTyped&&(this.hiddenInput||(t=this.removeMask(t))),l=this.actualValue.length&&h.length<=t.length?this.shiftTypedSymbols(h.join("")):t}if(s&&(this.hiddenInput||!this.hiddenInput)&&(l=t),this.deletedSpecialCharacter&&i&&(this.specialCharacters.includes(this.actualValue.slice(i,i+1))?i+=1:"M0"!==r.slice(i-1,i+1)&&(i-=2),this.deletedSpecialCharacter=!1),this.showMaskTyped&&1===this.placeHolderCharacter.length&&!this.leadZeroDateTime&&(t=this.removeMask(t)),l=this.maskChanged?t:l&&l.length?l:t,this.showMaskTyped&&this.keepCharacterPositions&&this.actualValue&&!s){const h=this.dropSpecialCharacters?this.removeMask(this.actualValue):this.actualValue;return this.formControlResult(h),this.actualValue?this.actualValue:this.prefix+this.maskIsShown+this.suffix}const u=super.applyMask(l,r,i,s,o,a);if(this.actualValue=this.getActualValue(u),"."===this.thousandSeparator&&"."===this.decimalMarker&&(this.decimalMarker=","),this.maskExpression.startsWith("separator")&&!0===this.dropSpecialCharacters&&(this.specialCharacters=this.specialCharacters.filter(h=>!this._compareOrIncludes(h,this.decimalMarker,this.thousandSeparator))),(u||""===u)&&(this._previousValue=this._currentValue,this._currentValue=u,this._emitValue=this._previousValue!==this._currentValue||this.maskChanged||this._previousValue===this._currentValue&&s),this._emitValue&&this.formControlResult(u),!this.showMaskTyped||this.showMaskTyped&&this.hiddenInput)return this.hiddenInput?o?this.hideInput(u,this.maskExpression):this.hideInput(u,this.maskExpression)+this.maskIsShown.slice(u.length):u;const d=u.length,f=this.prefix+this.maskIsShown;if(this.maskExpression.includes("H")){const h=this._numberSkipedSymbols(u);return u+f.slice(d+h)}return"IP"===this.maskExpression||"CPF_CNPJ"===this.maskExpression?u+f:u+f.slice(d)}_numberSkipedSymbols(t){const r=/(^|\D)(\d\D)/g;let i=r.exec(t),s=0;for(;null!=i;)s+=1,i=r.exec(t);return s}applyValueChanges(t,r,i,s=()=>{}){const o=this._elementRef?.nativeElement;o&&(o.value=this.applyMask(o.value,this.maskExpression,t,r,i,s),o!==this._getActiveElement()&&this.clearIfNotMatchFn())}hideInput(t,r){return t.split("").map((i,s)=>this.patterns&&this.patterns[r[s]??""]&&this.patterns[r[s]??""]?.symbol?this.patterns[r[s]??""]?.symbol:i).join("")}getActualValue(t){const r=t.split("").filter((i,s)=>{const o=this.maskExpression[s]??"";return this._checkSymbolMask(i,o)||this.specialCharacters.includes(o)&&i===o});return r.join("")===t?r.join(""):t}shiftTypedSymbols(t){let r="";return(t&&t.split("").map((s,o)=>{if(this.specialCharacters.includes(t[o+1]??"")&&t[o+1]!==this.maskExpression[o+1])return r=s,t[o+1];if(r.length){const a=r;return r="",a}return s})||[]).join("")}numberToString(t){return!t&&0!==t||this.maskExpression.startsWith("separator")&&(this.leadZero||!this.dropSpecialCharacters)||this.maskExpression.startsWith("separator")&&this.separatorLimit.length>14&&String(t).length>14?String(t):Number(t).toLocaleString("fullwide",{useGrouping:!1,maximumFractionDigits:20}).replace("/-/","-")}showMaskInInput(t){if(this.showMaskTyped&&this.shownMaskExpression){if(this.maskExpression.length!==this.shownMaskExpression.length)throw new Error("Mask expression must match mask placeholder length");return this.shownMaskExpression}if(this.showMaskTyped){if(t){if("IP"===this.maskExpression)return this._checkForIp(t);if("CPF_CNPJ"===this.maskExpression)return this._checkForCpfCnpj(t)}return this.placeHolderCharacter.length===this.maskExpression.length?this.placeHolderCharacter:this.maskExpression.replace(/\w/g,this.placeHolderCharacter)}return""}clearIfNotMatchFn(){const t=this._elementRef?.nativeElement;t&&this.clearIfNotMatch&&this.prefix.length+this.maskExpression.length+this.suffix.length!==t.value.replace(this.placeHolderCharacter,"").length&&(this.formElementProperty=["value",""],this.applyMask("",this.maskExpression))}set formElementProperty([t,r]){!this._renderer||!this._elementRef||Promise.resolve().then(()=>this._renderer?.setProperty(this._elementRef?.nativeElement,t,r))}checkDropSpecialCharAmount(t){return t.split("").filter(i=>this._findDropSpecialChar(i)).length}removeMask(t){return this._removeMask(this._removeSuffix(this._removePrefix(t)),this.specialCharacters.concat("_").concat(this.placeHolderCharacter))}_checkForIp(t){if("#"===t)return`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`;const r=[];for(let i=0;i<t.length;i++){const s=t[i]??"";s&&s.match("\\d")&&r.push(s)}return r.length<=3?`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`:r.length>3&&r.length<=6?`${this.placeHolderCharacter}.${this.placeHolderCharacter}`:r.length>6&&r.length<=9?this.placeHolderCharacter:""}_checkForCpfCnpj(t){const r=`${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`,i=`${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}/${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`;if("#"===t)return r;const s=[];for(let o=0;o<t.length;o++){const a=t[o]??"";a&&a.match("\\d")&&s.push(a)}return s.length<=3?r.slice(s.length,r.length):s.length>3&&s.length<=6?r.slice(s.length+1,r.length):s.length>6&&s.length<=9?r.slice(s.length+2,r.length):s.length>9&&s.length<11?r.slice(s.length+3,r.length):11===s.length?"":12===s.length?i.slice(17===t.length?16:15,i.length):s.length>12&&s.length<=14?i.slice(s.length+4,i.length):""}_getActiveElement(t=this.document){const r=t?.activeElement?.shadowRoot;return r?.activeElement?this._getActiveElement(r):t.activeElement}formControlResult(t){if(this.writingValue||!this.triggerOnMaskChange&&this.maskChanged)return this.maskChanged&&this.onChange(this.outputTransformFn(this._toNumber(this._checkSymbols(this._removeSuffix(this._removePrefix(t)))))),void(this.maskChanged=!1);Array.isArray(this.dropSpecialCharacters)?this.onChange(this.outputTransformFn(this._toNumber(this._checkSymbols(this._removeMask(this._removeSuffix(this._removePrefix(t)),this.dropSpecialCharacters))))):this.onChange(this.outputTransformFn(this._toNumber(this.dropSpecialCharacters||!this.dropSpecialCharacters&&this.prefix===t?this._checkSymbols(this._removeSuffix(this._removePrefix(t))):t)))}_toNumber(t){if(!this.isNumberValue||""===t||this.maskExpression.startsWith("separator")&&(this.leadZero||!this.dropSpecialCharacters))return t;if(String(t).length>16&&this.separatorLimit.length>14)return String(t);const r=Number(t);if(this.maskExpression.startsWith("separator")&&Number.isNaN(r)){const i=String(t).replace(",",".");return Number(i)}return Number.isNaN(r)?t:r}_removeMask(t,r){return this.maskExpression.startsWith("percent")&&t.includes(".")?t:t&&t.replace(this._regExpForRemove(r),"")}_removePrefix(t){return this.prefix?t&&t.replace(this.prefix,""):t}_removeSuffix(t){return this.suffix?t&&t.replace(this.suffix,""):t}_retrieveSeparatorValue(t){const r=Array.isArray(this.dropSpecialCharacters)?this.specialCharacters.filter(i=>this.dropSpecialCharacters.includes(i)):this.specialCharacters;return this._removeMask(t,r)}_regExpForRemove(t){return new RegExp(t.map(r=>`\\${r}`).join("|"),"gi")}_replaceDecimalMarkerToDot(t){const r=Array.isArray(this.decimalMarker)?this.decimalMarker:[this.decimalMarker];return t.replace(this._regExpForRemove(r),".")}_checkSymbols(t){if(""===t)return t;this.maskExpression.startsWith("percent")&&","===this.decimalMarker&&(t=t.replace(",","."));const r=this._retrieveSeparatorPrecision(this.maskExpression),i=this._replaceDecimalMarkerToDot(this._retrieveSeparatorValue(t));return this.isNumberValue&&r?t===this.decimalMarker?null:this.separatorLimit.length>14?String(i):this._checkPrecision(this.maskExpression,i):i}_retrieveSeparatorPrecision(t){const r=t.match(new RegExp("^separator\\.([^d]*)"));return r?Number(r[1]):null}_checkPrecision(t,r){const i=t.slice(10,11);return t.indexOf("2")>0||this.leadZero&&Number(i)>1?(","===this.decimalMarker&&this.leadZero&&(r=r.replace(",",".")),this.leadZero?Number(r).toFixed(Number(i)):Number(r).toFixed(2)):this.numberToString(r)}_repeatPatternSymbols(t){return t.match(/{[0-9]+}/)&&t.split("").reduce((r,i,s)=>{if(this._start="{"===i?s:this._start,"}"!==i)return this._findSpecialChar(i)?r+i:r;this._end=s;const o=Number(t.slice(this._start+1,this._end)),a=new Array(o+1).join(t[this._start-1]);if(t.slice(0,this._start).length>1&&t.includes("S")){const c=t.slice(0,this._start-1);return c.includes("{")?r+a:c+r+a}return r+a},"")||t}currentLocaleDecimalMarker(){return 1.1.toLocaleString().substring(1,2)}}return e.\u0275fac=(()=>{let n;return function(r){return(n||(n=Lt(e)))(r||e)}})(),e.\u0275prov=R({token:e,factory:e.\u0275fac}),e})(),bz=(()=>{class e{constructor(){this.maskExpression="",this.specialCharacters=[],this.patterns={},this.prefix="",this.suffix="",this.thousandSeparator=" ",this.decimalMarker=".",this.dropSpecialCharacters=null,this.hiddenInput=null,this.showMaskTyped=null,this.placeHolderCharacter=null,this.shownMaskExpression=null,this.showTemplate=null,this.clearIfNotMatch=null,this.validation=null,this.separatorLimit=null,this.allowNegativeNumbers=null,this.leadZeroDateTime=null,this.leadZero=null,this.triggerOnMaskChange=null,this.apm=null,this.inputTransformFn=null,this.outputTransformFn=null,this.keepCharacterPositions=null,this.maskFilled=new ve,this._maskValue="",this._position=null,this._maskExpressionArray=[],this._justPasted=!1,this._isComposing=!1,this.document=A(Vt),this._maskService=A(jy,{self:!0}),this._config=A(qd),this.onChange=t=>{},this.onTouch=()=>{}}ngOnChanges(t){const{maskExpression:r,specialCharacters:i,patterns:s,prefix:o,suffix:a,thousandSeparator:c,decimalMarker:l,dropSpecialCharacters:u,hiddenInput:d,showMaskTyped:f,placeHolderCharacter:h,shownMaskExpression:p,showTemplate:m,clearIfNotMatch:g,validation:_,separatorLimit:y,allowNegativeNumbers:w,leadZeroDateTime:D,leadZero:M,triggerOnMaskChange:F,apm:j,inputTransformFn:L,outputTransformFn:Ye,keepCharacterPositions:et}=t;if(r&&(r.currentValue!==r.previousValue&&!r.firstChange&&(this._maskService.maskChanged=!0),w&&(this._maskService.allowNegativeNumbers=w.currentValue,this._maskService.allowNegativeNumbers&&(this._maskService.specialCharacters=this._maskService.specialCharacters.filter(ct=>"-"!==ct))),r.currentValue&&r.currentValue.split("||").length>1?(this._maskExpressionArray=r.currentValue.split("||").sort((ct,nn)=>ct.length-nn.length),this._setMask()):(this._maskExpressionArray=[],this._maskValue=r.currentValue||"",this._maskService.maskExpression=this._maskValue)),i){if(!i.currentValue||!Array.isArray(i.currentValue))return;this._maskService.specialCharacters=i.currentValue||[]}s&&s.currentValue&&(this._maskService.patterns=s.currentValue),j&&j.currentValue&&(this._maskService.apm=j.currentValue),o&&(this._maskService.prefix=o.currentValue),a&&(this._maskService.suffix=a.currentValue),c&&(this._maskService.thousandSeparator=c.currentValue),l&&(this._maskService.decimalMarker=l.currentValue),u&&(this._maskService.dropSpecialCharacters=u.currentValue),d&&(this._maskService.hiddenInput=d.currentValue),f&&(this._maskService.showMaskTyped=f.currentValue),h&&(this._maskService.placeHolderCharacter=h.currentValue),p&&(this._maskService.shownMaskExpression=p.currentValue),m&&(this._maskService.showTemplate=m.currentValue),g&&(this._maskService.clearIfNotMatch=g.currentValue),_&&(this._maskService.validation=_.currentValue),y&&(this._maskService.separatorLimit=y.currentValue),D&&(this._maskService.leadZeroDateTime=D.currentValue),M&&(this._maskService.leadZero=M.currentValue),F&&(this._maskService.triggerOnMaskChange=F.currentValue),L&&(this._maskService.inputTransformFn=L.currentValue),Ye&&(this._maskService.outputTransformFn=Ye.currentValue),et&&(this._maskService.keepCharacterPositions=et.currentValue),this._applyMask()}validate({value:t}){if(!this._maskService.validation||!this._maskValue)return null;if(this._maskService.ipError)return this._createValidationError(t);if(this._maskService.cpfCnpjError)return this._createValidationError(t);if(this._maskValue.startsWith("separator")||vz.includes(this._maskValue)||this._maskService.clearIfNotMatch)return null;if(_z.includes(this._maskValue))return this._validateTime(t);if(t&&t.toString().length>=1){let r=0;if(this._maskValue.startsWith("percent"))return null;for(const i in this._maskService.patterns)if(this._maskService.patterns[i]?.optional&&(this._maskValue.indexOf(i)!==this._maskValue.lastIndexOf(i)?r+=this._maskValue.split("").filter(o=>o===i).join("").length:-1!==this._maskValue.indexOf(i)&&r++,-1!==this._maskValue.indexOf(i)&&t.toString().length>=this._maskValue.indexOf(i)||r===this._maskValue.length))return null;if(1===this._maskValue.indexOf("{")&&t.toString().length===this._maskValue.length+Number((this._maskValue.split("{")[1]??"").split("}")[0])-4)return null;if(this._maskValue.indexOf("*")>1&&t.toString().length<this._maskValue.indexOf("*")||this._maskValue.indexOf("?")>1&&t.toString().length<this._maskValue.indexOf("?")||1===this._maskValue.indexOf("{"))return this._createValidationError(t);if(-1===this._maskValue.indexOf("*")||-1===this._maskValue.indexOf("?")){t="number"==typeof t?String(t):t;const i=this._maskValue.split("*"),s=this._maskService.dropSpecialCharacters?this._maskValue.length-this._maskService.checkDropSpecialCharAmount(this._maskValue)-r:this.prefix?this._maskValue.length+this.prefix.length-r:this._maskValue.length-r;if(1===i.length&&t.toString().length<s)return this._createValidationError(t);if(i.length>1){const o=i[i.length-1];if(o&&this._maskService.specialCharacters.includes(o[0])&&String(t).includes(o[0]??"")&&!this.dropSpecialCharacters){const a=t.split(o[0]);return a[a.length-1].length===o.length-1?null:this._createValidationError(t)}return(o&&!this._maskService.specialCharacters.includes(o[0])||!o||this._maskService.dropSpecialCharacters)&&t.length>=s-1?null:this._createValidationError(t)}}if(1===this._maskValue.indexOf("*")||1===this._maskValue.indexOf("?"))return null}return t&&this.maskFilled.emit(),null}onPaste(){this._justPasted=!0}onModelChange(t){(""===t||null==t)&&this._maskService.actualValue&&(this._maskService.actualValue=this._maskService.getActualValue(""))}onInput(t){if(this._isComposing)return;const r=t.target,i=this._maskService.inputTransformFn(r.value);if("number"!==r.type)if("string"==typeof i||"number"==typeof i){if(r.value=i.toString(),this._inputValue=r.value,this._setMask(),!this._maskValue)return void this.onChange(r.value);let s=1===r.selectionStart?r.selectionStart+this._maskService.prefix.length:r.selectionStart;if(this.showMaskTyped&&this.keepCharacterPositions&&1===this._maskService.placeHolderCharacter.length){const l=r.value.slice(s-1,s),u=this.prefix.length,d=this._maskService._checkSymbolMask(l,this._maskService.maskExpression[s-1-u]??""),f=this._maskService._checkSymbolMask(l,this._maskService.maskExpression[s+1-u]??""),h=this._maskService.selStart===this._maskService.selEnd,p=Number(this._maskService.selStart)-u,m=Number(this._maskService.selEnd)-u;if("Backspace"===this._code)if(h){if(!this._maskService.specialCharacters.includes(this._maskService.maskExpression.slice(s-this.prefix.length,s+1-this.prefix.length))&&h)if(1===p&&this.prefix)this._maskService.actualValue=this.prefix+this._maskService.placeHolderCharacter+r.value.split(this.prefix).join("").split(this.suffix).join("")+this.suffix,s-=1;else{const g=r.value.substring(0,s),_=r.value.substring(s);this._maskService.actualValue=g+this._maskService.placeHolderCharacter+_}}else this._maskService.actualValue=this._maskService.selStart===u?this.prefix+this._maskService.maskIsShown.slice(0,m)+this._inputValue.split(this.prefix).join(""):this._maskService.selStart===this._maskService.maskIsShown.length+u?this._inputValue+this._maskService.maskIsShown.slice(p,m):this.prefix+this._inputValue.split(this.prefix).join("").slice(0,p)+this._maskService.maskIsShown.slice(p,m)+this._maskService.actualValue.slice(m+u,this._maskService.maskIsShown.length+u)+this.suffix;"Backspace"!==this._code&&(d||f||!h?this._maskService.specialCharacters.includes(r.value.slice(s,s+1))&&f&&!this._maskService.specialCharacters.includes(r.value.slice(s+1,s+2))?(this._maskService.actualValue=r.value.slice(0,s-1)+r.value.slice(s,s+1)+l+r.value.slice(s+2),s+=1):d&&(this._maskService.actualValue=r.value.slice(0,s-1)+l+r.value.slice(s+1).split(this.suffix).join("")+this.suffix):s=Number(r.selectionStart)-1)}let o=0,a=!1;if("Delete"===this._code&&(this._maskService.deletedSpecialCharacter=!0),this._inputValue.length>=this._maskService.maskExpression.length-1&&"Backspace"!==this._code&&"d0/M0/0000"===this._maskService.maskExpression&&s<10){const l=this._inputValue.slice(s-1,s);r.value=this._inputValue.slice(0,s-1)+l+this._inputValue.slice(s+1)}if("Hh:m0:s0"===this._maskService.maskExpression&&this.apm&&(this._justPasted&&"00"===r.value.slice(0,2)&&(r.value=r.value.slice(1,2)+r.value.slice(2,r.value.length)),r.value="00"===r.value?"0":r.value),this._maskService.applyValueChanges(s,this._justPasted,"Backspace"===this._code||"Delete"===this._code,(l,u)=>{this._justPasted=!1,o=l,a=u}),this._getActiveElement()!==r)return;this._maskExpressionArray.length&&(s="Backspace"===this._code?this.specialCharacters.includes(this._inputValue.slice(s-1,s))?s-1:s:1===r.selectionStart?r.selectionStart+this._maskService.prefix.length:r.selectionStart),this._position=1===this._position&&1===this._inputValue.length?null:this._position;let c=this._position?this._inputValue.length+s+o:s+("Backspace"!==this._code||a?o:0);c>this._getActualInputLength()&&(c=this._getActualInputLength()),c<0&&(c=0),r.setSelectionRange(c,c),this._position=null}else console.warn("Ngx-mask writeValue work with string | number, your current value:",typeof i);else this._maskService.applyValueChanges(r.value.length,this._justPasted,"Backspace"===this._code||"Delete"===this._code)}onCompositionStart(){this._isComposing=!0}onCompositionEnd(t){this._isComposing=!1,this._justPasted=!0,this.onInput(t)}onBlur(t){if(this._maskValue){const r=t.target;if(this.leadZero&&r.value.length>0&&"string"==typeof this.decimalMarker){const i=this._maskService.maskExpression,s=Number(this._maskService.maskExpression.slice(i.length-1,i.length));if(s>1){r.value=this.suffix?r.value.split(this.suffix).join(""):r.value;const o=r.value.split(this.decimalMarker)[1];r.value=r.value.includes(this.decimalMarker)?r.value+"0".repeat(s-o.length)+this.suffix:r.value+this.decimalMarker+"0".repeat(s)+this.suffix,this._maskService.actualValue=r.value}}this._maskService.clearIfNotMatchFn()}this.onTouch()}onClick(t){if(!this._maskValue)return;const r=t.target;null!==r&&null!==r.selectionStart&&r.selectionStart===r.selectionEnd&&r.selectionStart>this._maskService.prefix.length&&38!==t.keyCode&&this._maskService.showMaskTyped&&!this.keepCharacterPositions&&(this._maskService.maskIsShown=this._maskService.showMaskInInput(),r.setSelectionRange&&this._maskService.prefix+this._maskService.maskIsShown===r.value?(r.focus(),r.setSelectionRange(0,0)):r.selectionStart>this._maskService.actualValue.length&&r.setSelectionRange(this._maskService.actualValue.length,this._maskService.actualValue.length));const o=r&&(r.value===this._maskService.prefix?this._maskService.prefix+this._maskService.maskIsShown:r.value);r&&r.value!==o&&(r.value=o),r&&"number"!==r.type&&(r.selectionStart||r.selectionEnd)<=this._maskService.prefix.length?r.selectionStart=this._maskService.prefix.length:r&&r.selectionEnd>this._getActualInputLength()&&(r.selectionEnd=this._getActualInputLength())}onKeyDown(t){if(!this._maskValue)return;if(this._isComposing)return void("Enter"===t.key&&this.onCompositionEnd(t));this._code=t.code?t.code:t.key;const r=t.target;if(this._inputValue=r.value,this._setMask(),"number"!==r.type){if("ArrowUp"===t.key&&t.preventDefault(),"ArrowLeft"===t.key||"Backspace"===t.key||"Delete"===t.key){if("Backspace"===t.key&&0===r.value.length&&(r.selectionStart=r.selectionEnd),"Backspace"===t.key&&0!==r.selectionStart)if(this.specialCharacters=this.specialCharacters?.length?this.specialCharacters:this._config.specialCharacters,this.prefix.length>1&&r.selectionStart<=this.prefix.length)r.setSelectionRange(this.prefix.length,r.selectionEnd);else if(this._inputValue.length!==r.selectionStart&&1!==r.selectionStart)for(;this.specialCharacters.includes((this._inputValue[r.selectionStart-1]??"").toString())&&(this.prefix.length>=1&&r.selectionStart>this.prefix.length||0===this.prefix.length);)r.setSelectionRange(r.selectionStart-1,r.selectionEnd);this.checkSelectionOnDeletion(r),this._maskService.prefix.length&&r.selectionStart<=this._maskService.prefix.length&&r.selectionEnd<=this._maskService.prefix.length&&t.preventDefault(),"Backspace"===t.key&&!r.readOnly&&0===r.selectionStart&&r.selectionEnd===r.value.length&&0!==r.value.length&&(this._position=this._maskService.prefix?this._maskService.prefix.length:0,this._maskService.applyMask(this._maskService.prefix,this._maskService.maskExpression,this._position))}this.suffix&&this.suffix.length>1&&this._inputValue.length-this.suffix.length<r.selectionStart?r.setSelectionRange(this._inputValue.length-this.suffix.length,this._inputValue.length):("KeyA"===t.code&&t.ctrlKey||"KeyA"===t.code&&t.metaKey)&&(r.setSelectionRange(0,this._getActualInputLength()),t.preventDefault()),this._maskService.selStart=r.selectionStart,this._maskService.selEnd=r.selectionEnd}}writeValue(t){var r=this;return ss(function*(){if("object"==typeof t&&null!==t&&"value"in t&&("disable"in t&&r.setDisabledState(!!t.disable),t=t.value),null!==t&&(t=r.inputTransformFn?r.inputTransformFn(t):t),"string"==typeof t||"number"==typeof t||null===t){let i=t;if("number"==typeof i||r._maskValue.startsWith("separator")){i=String(i);const s=r._maskService.currentLocaleDecimalMarker();Array.isArray(r._maskService.decimalMarker)||(i=r._maskService.decimalMarker!==s?i.replace(s,r._maskService.decimalMarker):i),r._maskService.leadZero&&i&&r.maskExpression&&!1!==r.dropSpecialCharacters&&(i=r._maskService._checkPrecision(r._maskService.maskExpression,i)),","===r._maskService.decimalMarker&&(i=i.toString().replace(".",",")),r.maskExpression?.startsWith("separator")&&r.leadZero&&requestAnimationFrame(()=>{r._maskService.applyMask(i?.toString()??"",r._maskService.maskExpression)}),r._maskService.isNumberValue=!0}"string"!=typeof i&&(i=""),r._inputValue=i,r._setMask(),i&&r._maskService.maskExpression||r._maskService.maskExpression&&(r._maskService.prefix||r._maskService.showMaskTyped)?("function"!=typeof r.inputTransformFn&&(r._maskService.writingValue=!0),r._maskService.formElementProperty=["value",r._maskService.applyMask(i,r._maskService.maskExpression)],"function"!=typeof r.inputTransformFn&&(r._maskService.writingValue=!1)):r._maskService.formElementProperty=["value",i],r._inputValue=i}else console.warn("Ngx-mask writeValue work with string | number, your current value:",typeof t)})()}registerOnChange(t){this._maskService.onChange=this.onChange=t}registerOnTouched(t){this.onTouch=t}_getActiveElement(t=this.document){const r=t?.activeElement?.shadowRoot;return r?.activeElement?this._getActiveElement(r):t.activeElement}checkSelectionOnDeletion(t){t.selectionStart=Math.min(Math.max(this.prefix.length,t.selectionStart),this._inputValue.length-this.suffix.length),t.selectionEnd=Math.min(Math.max(this.prefix.length,t.selectionEnd),this._inputValue.length-this.suffix.length)}setDisabledState(t){this._maskService.formElementProperty=["disabled",t]}_applyMask(){this._maskService.maskExpression=this._maskService._repeatPatternSymbols(this._maskValue||""),this._maskService.formElementProperty=["value",this._maskService.applyMask(this._inputValue,this._maskService.maskExpression)]}_validateTime(t){const r=this._maskValue.split("").filter(i=>":"!==i).length;return t&&(0==+(t[t.length-1]??-1)&&t.length<r||t.length<=r-2)?this._createValidationError(t):null}_getActualInputLength(){return this._maskService.actualValue.length||this._maskService.actualValue.length+this._maskService.prefix.length}_createValidationError(t){return{mask:{requiredMask:this._maskValue,actualValue:t}}}_setMask(){this._maskExpressionArray.some(t=>{if(t.split("").some(i=>this._maskService.specialCharacters.includes(i))&&this._inputValue&&!t.includes("S")||t.includes("{")){const i=this._maskService.removeMask(this._inputValue)?.length<=this._maskService.removeMask(t)?.length;if(i)return this._maskValue=this.maskExpression=this._maskService.maskExpression=t.includes("{")?this._maskService._repeatPatternSymbols(t):t,i;{const s=this._maskExpressionArray[this._maskExpressionArray.length-1]??"";this._maskValue=this.maskExpression=this._maskService.maskExpression=s.includes("{")?this._maskService._repeatPatternSymbols(s):s}}else{const i=this._inputValue?.split("").every((s,o)=>{const a=t.charAt(o);return this._maskService._checkSymbolMask(s,a)});if(i)return this._maskValue=this.maskExpression=this._maskService.maskExpression=t,i}})}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Z({type:e,selectors:[["input","mask",""],["textarea","mask",""]],hostBindings:function(t,r){1&t&&te("paste",function(){return r.onPaste()})("ngModelChange",function(s){return r.onModelChange(s)})("input",function(s){return r.onInput(s)})("compositionstart",function(s){return r.onCompositionStart(s)})("compositionend",function(s){return r.onCompositionEnd(s)})("blur",function(s){return r.onBlur(s)})("click",function(s){return r.onClick(s)})("keydown",function(s){return r.onKeyDown(s)})},inputs:{maskExpression:[0,"mask","maskExpression"],specialCharacters:"specialCharacters",patterns:"patterns",prefix:"prefix",suffix:"suffix",thousandSeparator:"thousandSeparator",decimalMarker:"decimalMarker",dropSpecialCharacters:"dropSpecialCharacters",hiddenInput:"hiddenInput",showMaskTyped:"showMaskTyped",placeHolderCharacter:"placeHolderCharacter",shownMaskExpression:"shownMaskExpression",showTemplate:"showTemplate",clearIfNotMatch:"clearIfNotMatch",validation:"validation",separatorLimit:"separatorLimit",allowNegativeNumbers:"allowNegativeNumbers",leadZeroDateTime:"leadZeroDateTime",leadZero:"leadZero",triggerOnMaskChange:"triggerOnMaskChange",apm:"apm",inputTransformFn:"inputTransformFn",outputTransformFn:"outputTransformFn",keepCharacterPositions:"keepCharacterPositions"},outputs:{maskFilled:"maskFilled"},features:[Oe([{provide:Nn,useExisting:De(()=>e),multi:!0},{provide:Bt,useExisting:De(()=>e),multi:!0},jy]),tr]}),e})();function Ez(e,n){return n instanceof Function?{...e,...n()}:{...e,...n}}let NA=(()=>{class e{static forRoot(t){return{ngModule:e,providers:[{provide:AA,useValue:t},{provide:xA,useValue:yz},{provide:qd,useFactory:Ez,deps:[xA,AA]},jy]}}static forChild(){return{ngModule:e}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=ft({}),e})();const wz=[[["prefix"]],[["suffix"]]],Dz=["prefix","suffix"];let Hy=(()=>{class e{constructor(t,r){this.cdr=t,this.injector=r,this.value=null,this.disabled=!1,this.onChange=i=>{},this.onTouched=()=>{},this.trimAfterPaste=!1,this.autocomplete="false",this.password=!1,this.transparent=!1,this.placeholder="Enter a value...",this.type="text",this.validate=!0,this.dropSpecialCharacters=!0,this._paste=new ve}ngOnInit(){this.initFormControl()}initFormControl(){this.formControl=this.injector.get(Jr)}get isInvalidControl(){return"invalid"===this.status||function hz(e){const{invalid:n,pristine:t,touched:r}=e;return!(!n||!r||t)}(this.formControl)&&this.validate}setValue(t){this.value=vI(t),this.onChange(t),this.cdr.detectChanges()}paste(t){t.stopPropagation(),setTimeout(()=>{this._paste.emit(t.target.value),this.cdr.detectChanges()})}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}writeValue(t){this.value=vI(t),this.cdr.detectChanges()}setDisabledState(t){this.disabled=t,this.cdr.detectChanges()}static#e=this.\u0275fac=function(r){return new(r||e)(v(wo),v(Ne))};static#t=this.\u0275cmp=Me({type:e,selectors:[["moto-form-input"]],inputs:{formControlName:"formControlName",minlength:"minlength",maxlength:"maxlength",trimAfterPaste:"trimAfterPaste",autocomplete:"autocomplete",password:"password",transparent:"transparent",placeholder:"placeholder",type:"type",mask:"mask",validate:"validate",dropSpecialCharacters:"dropSpecialCharacters",status:"status"},outputs:{_paste:"paste"},features:[Oe([{provide:Nn,useExisting:De(()=>e),multi:!0}])],ngContentSelectors:Dz,decls:8,vars:13,consts:[["inputRef",""],[1,"__ndb-form-control"],[1,"__ndb-form-control-affix"],[1,"__ndb-input-container"],[1,"__ndb-form-control-input",3,"ngModelChange","blur","paste","type","placeholder","minlength","maxlength","mask","dropSpecialCharacters","ngModel"]],template:function(r,i){if(1&r){const s=at();(function KD(e){const n=b()[We][Rt];if(!n.projection){const r=n.projection=el(e?e.length:1,null),i=r.slice();let s=n.child;for(;null!==s;){if(128!==s.type){const o=e?XV(s,e):0;null!==o&&(i[o]?i[o].projectionNext=s:r[o]=s,i[o]=s)}s=s.next}}})(wz),S(0,"div",1)(1,"div",2),km(2),T(),S(3,"div",3)(4,"input",4,0),te("ngModelChange",function(a){return ne(s),re(i.setValue(a))})("blur",function(){return ne(s),re(i.onTouched())})("paste",function(a){return ne(s),re(i.paste(a))}),T()(),S(6,"div",2),km(7,1),T()()}2&r&&(Yt("transparent",i.transparent)("invalid",i.isInvalidControl),C(4),P("type",i.type)("placeholder",i.placeholder)("minlength",i.minlength)("maxlength",i.maxlength)("mask",i.mask)("dropSpecialCharacters",i.dropSpecialCharacters)("ngModel",i.value),At("data-locator",i.formControlName||i.placeholder)("autocomplete",i.autocomplete))},dependencies:[bz,Ad,ei,zd,Ac,us],styles:["[_ngcontent-%COMP%]:root{--ndb-button-bg: #2c8ee8;--ndb-button-disabled-bg: rgba(201, 204, 216, .3);--ndb-button-hover-bg: #1467b4;--ndb-button-color: #fff;--ndb-card-border-color: #c9ccd8}.__ndb-form-control[_ngcontent-%COMP%]{border:1px solid #c9ccd8;border-radius:4px;display:flex;align-items:center;box-shadow:0 2px #29304d14;padding:17px 10px}.__ndb-form-control-affix[_ngcontent-%COMP%]{display:flex;align-items:center;gap:3px}.__ndb-form-control.invalid[_ngcontent-%COMP%]{border:1px solid #f44336;color:#f44336}.__ndb-form-control.invalid[_ngcontent-%COMP%] .__ndb-form-control-input[_ngcontent-%COMP%]::placeholder{color:#eb001b}.__ndb-form-control.transparent[_ngcontent-%COMP%]{border:none;box-shadow:none}.__ndb-form-control[_ngcontent-%COMP%] .__ndb-input-container[_ngcontent-%COMP%]{display:flex;flex-grow:1}.__ndb-form-control-input[_ngcontent-%COMP%]{display:block;width:100%;max-width:100%;border:none;outline:none;flex-grow:1}.__ndb-form-control-input[_ngcontent-%COMP%]::placeholder{color:#707797}"],changeDetection:0})}return e})();var kA=function(e){return e.mastercard="CVC Card Verification Code",e.visa="CVV (Card Verification Value)",e["american-express"]="CID (Card Identification Number)",e.unionpay="CVN (Card Verification Number)",e.jcb="CVV (Card Verification Value)",e.maestro="CVV (Card Verification Value)",e.discover="CID (Card Identification Number)",e}(kA||{});let Wd=(()=>{class e{transform(t,r,i=null,s=null){const[o]=ay()(t);if(!o)return"code"===r&&s?s[i]:i;switch(r){case"logo":return this.getLogo(o);case"payment-system":return o.niceType;case"card-number-mask":return"0000 0000 0000 0000 000";case"secure-text":return kA[o.type];case"code":if(s){const c=s[o.code.name];if(c)return c}return o.code.name;case"code-mask":{const{size:a}=o.code;return Array.from({length:a}).fill("0").join("")}}}getLogo(t){if(t)return`https://cdn.motopays.com/images/${xo[t.type]||xo.default}.svg`}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275pipe=ht({name:"cardInfo",type:e,pure:!0})}return e})(),PA=(()=>{class e{constructor(){this.selectEvent=new ve,this.removeEvent=new ve,this.optionsClickedEvent=new ve,this.isOpenPopup=!1,this.popupId=function v5(e=1){return window.crypto.getRandomValues(new Uint32Array(e)).toString()}()}hidePopup(t){t.closest("[data-card-popup]")?.getAttribute("data-card-popup")===this.popupId||(this.isOpenPopup=!1)}onOptionsClick(t){t.isPopupClick=!0,this.optionsClickedEvent.emit(this.option),this.isOpenPopup=!this.isOpenPopup}select(t){t.isPopupClick||this.option.selected()||this.selectEvent.emit(this.option)}remove(t){t.isPopupClick=!0,this.removeEvent.emit(this.option.item),this.isOpenPopup=!1}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=Me({type:e,selectors:[["moto-card"]],hostBindings:function(r,i){1&r&&te("click",function(o){return i.hidePopup(o.target)},0,Ab)},inputs:{option:"option",language:"language"},outputs:{selectEvent:"select",removeEvent:"remove",optionsClickedEvent:"optionsClicked"},decls:18,vars:26,consts:[[1,"__ndb-card",3,"click"],["data-locator","card-active-circle",1,"__ndb-card-active-circle",3,"id"],["alt","card logo",1,"__ndb-card-logo",3,"src"],[1,"__ndb-card-payment-name","fz-14","fw-500"],[1,"__ndb-card-number","fz-14","fw-500"],[1,"__ndb-card-more"],[1,"material-icons","pointer","__ndb-card-more-icon","description-text","fz-18",3,"click"],[1,"__ndb-card-more-popup"],["data-locator","remove-btn",1,"__ndb-card-more-popup-item","fz-14","fw-500",3,"click","id"]],template:function(r,i){1&r&&(S(0,"div",0),te("click",function(o){return i.select(o)}),ge(1,"div",1),Ce(2,"slice"),ge(3,"moto-picture",2),Ce(4,"cardInfo"),S(5,"span",3),$(6),Ce(7,"cardInfo"),T(),S(8,"span",4),$(9),Ce(10,"slice"),T(),S(11,"div",5)(12,"i",6),te("click",function(o){return i.onOptionsClick(o)}),$(13,"more_vert"),T(),S(14,"div",7)(15,"span",8),Ce(16,"slice"),te("click",function(o){return i.remove(o)}),$(17),T()()()()),2&r&&(C(),Yt("selected",i.option.selected()),P("id","select-card-"+xt(2,11,i.option.item.name,-6)+"-button"),C(2),P("src",xt(4,14,i.option.item.name,"logo")),C(3),gt(xt(7,17,i.option.item.name,"payment-system")),C(3),gt(xt(10,20,i.option.item.name,-6)),C(2),At("data-card-popup",i.popupId),C(3),Yt("open",i.isOpenPopup),C(),P("id","remove-card-"+xt(16,23,i.option.item.name,-6)+"-button"),C(2),gt(i.language.existingCards.removeCard))},dependencies:[Ao,Ig,Wd],styles:['[_ngcontent-%COMP%]:root{--ndb-button-bg: #2c8ee8;--ndb-button-disabled-bg: rgba(201, 204, 216, .3);--ndb-button-hover-bg: #1467b4;--ndb-button-color: #fff;--ndb-card-border-color: #c9ccd8}.__ndb-card[_ngcontent-%COMP%]{display:flex;align-items:center;border:1px solid var(--ndb-card-border-color);border-radius:8px;padding:14px;gap:10px}@media (max-width: 768px){.__ndb-card[_ngcontent-%COMP%]{padding:4px}}.__ndb-card-active-circle[_ngcontent-%COMP%]{position:relative;height:15px;width:15px;min-height:15px;min-width:15px;border:1px solid #c9ccd8;border-radius:50%;cursor:pointer}.__ndb-card-active-circle.selected[_ngcontent-%COMP%]:after{content:"";position:absolute;top:0;left:0;height:100%;width:100%;border:4px solid #e53;box-sizing:border-box;border-radius:50%}.__ndb-card-more[_ngcontent-%COMP%]{position:relative;display:flex;margin-left:auto}.__ndb-card-more-icon[_ngcontent-%COMP%]{margin:auto}.__ndb-card-more-popup[_ngcontent-%COMP%]{display:none;position:absolute;z-index:1;top:calc(100% + 10px);left:50%;transform:translate(-60%);background-color:#fff;border-radius:8px;box-shadow:0 4px 12px #29304d1f;white-space:nowrap;overflow:hidden;animation:_ngcontent-%COMP%_show-popup .3s cubic-bezier(.25,.1,.25,1)}@media (max-width: 768px){.__ndb-card-more-popup[_ngcontent-%COMP%]{top:calc(100% + 5px);transform:translate(-70%);animation:_ngcontent-%COMP%_mobile-show-popup .3s cubic-bezier(.25,.1,.25,1)}}.__ndb-card-more-popup.open[_ngcontent-%COMP%]{display:flex;flex-direction:column}.__ndb-card-more-popup-item[_ngcontent-%COMP%]{padding:16px 12px;cursor:pointer;transition:background-color .3s cubic-bezier(.25,.1,.25,1)}@media (max-width: 768px){.__ndb-card-more-popup-item[_ngcontent-%COMP%]{font-size:12px}}.__ndb-card-more-popup-item[_ngcontent-%COMP%]:hover{background-color:#c9ccd84d}@keyframes _ngcontent-%COMP%_show-popup{0%{opacity:0;transform:translate(-60%,50%)}to{opacity:1;transform:translate(-60%)}}@keyframes _ngcontent-%COMP%_mobile-show-popup{0%{opacity:0;transform:translate(-70%,50%)}to{opacity:1;transform:translate(-70%)}}'],changeDetection:0})}return e})();function Sz(e,n){if(1&e){const t=at();S(0,"moto-card",9),te("select",function(i){return ne(t),re(x().selectCard(i))})("remove",function(i){return ne(t),re(x().removeCard(i))})("optionsClicked",function(i){return ne(t),re(x().onOptionsClick(i))}),T()}if(2&e){const t=n.$implicit;x();const r=Pe(0);P("option",t)("language",r)}}function Tz(e,n){if(1&e&&(S(0,"span",10),$(1),T()),2&e){x(2);const t=Pe(0);P("@ANTransform",void 0),C(),gt(t.errors.invalidCvv)}}function Mz(e,n){if(1&e){const t=at();ee(0,Tz,2,2,"span",10),S(1,"div",11)(2,"moto-form-input",12),Ce(3,"cardInfo"),Ce(4,"cardInfo"),te("ngModelChange",function(i){return ne(t),re(x().onCvvChange(i))}),S(5,"div",13),Ce(6,"cardInfo"),S(7,"i",14),$(8,"error"),T()()()()}if(2&e){x();const t=Pe(0),r=Pe(1),i=Pe(2);ie(i?0:-1),C(),Yt("invalid",i),C(),P("mask",mi(3,11,r.name,"code-mask","000"))("dropSpecialCharacters",!1)("placeholder",Um(4,15,r.name,"code","CVV",t.requisites.cvvPlaceholder))("transparent",!0)("validate",!1)("status",i?"invalid":"valid")("ngModel",r.cvv),C(3),At("data-tooltip",mi(6,20,r.name,"secure-text",t.requisites.cvvHint))}}function Iz(e,n){if(1&e){const t=at();S(0,"button",15),te("click",function(){return ne(t),re(x().showCardForm())})("focusin",function(){return ne(t),re(x().onAddCardFocus())}),S(1,"i",16),$(2,"add"),T(),S(3,"span",17),$(4),T()()}if(2&e){x();const t=Pe(0);C(4),gt(t.existingCards.addNewCard)}}let Uy=(()=>{class e{constructor(t,r,i,s){this.billingProfiles=t,this.context=r,this.toastr=i,this.refreshService=s,this.isCardListShown=se(!0),this.selectedCard=se(void 0),this.isCvvError=ce(()=>{const o=this.selectedCard(),a=this.isCardFormVisible();return!(!o?.updateCardDetails||(o?.cvv||a)&&function H5(e,n){if(!e||!n)return!1;const[t]=ay()(e),r=!!t?.code.size&&!!n,i=pn.card.code.lengths[t?.type];return r&&(t?.code.size===n?.length||i?.includes(n?.length??0))}(o?.name,o?.cvv))}),this.cardFormState=this.context.componentsStates.cardForm,this.componentState=this.context.componentsStates.cardList,this.isCardFormVisible=this.context.visibility.cardForm,this.settings=this.context.data.settings,this.loadedExistingCards=this.context.data.loadedExistingCards,this.cardOptions=ce(()=>this.loadedExistingCards().map(a=>new x5(a))),$u(()=>{const o=this.cardOptions();o?.length&&Hn(()=>{this.selectCardImpl(o[0],o)})}),$u(()=>{const o=this.isCvvError();Hn(()=>{this.componentState.update(a=>({...a,isValid:!o}))})})}showCardForm(){this.context.events.analytics.emit(new Ae("add-card-button-click")),this.isCardListShown.set(!1),this.cardFormState.update(t=>({...t,enabled:!0})),this.context.data.userProvidedInfo.update(t=>({...t,requisites:void 0,paymentSystemName:void 0})),this.resetSelected()}getSelectedCard(){return this.cardOptions().find(t=>t.selected())}removeCard(t){this.context.events.analytics.emit(new Ae("remove-card-button-click",{last4Digits:t.name.slice(-4)})),this.billingProfiles.removeCard(t.id).subscribe(r=>{this.refreshService.refreshExistingCards(this.loadedExistingCards().filter(s=>s.id!==t.id));const i=this.settings().language.notifications.cardDeleted;this.toastr.success(i.text,i.title)})}toggleCardList(){this.isCardListShown.update(t=>!t),this.context.events.analytics.emit(new Ae("cards-toggle-button-click",{toggle:this.isCardListShown()}))}onOptionsClick(t){this.context.events.analytics.emit(new Ae("card-options-button-click",{last4Digits:t.item.name.slice(-4)}))}selectCard(t){this.context.events.analytics.emit(new Ae("select-card-button-click",{last4Digits:t.item.name.slice(-4)})),this.selectCardImpl(t,this.cardOptions())}onAddCardFocus(){this.context.events.analytics.emit(new Ae("add-card-button-focus"),!0)}onCvvChange(t){this.getSelectedCard().item.cvv=t,this.selectedCard.update(r=>r&&{...r,cvv:t}),this.context.data.userProvidedInfo.update(r=>({...r,paymentSystemName:"card",requisites:{type:"existing-card",value:{...r.requisites?.value,cvv:t}}}))}selectCardImpl(t,r){r.find(s=>s.selected())?.setSelected(!1),t.setSelected(!0),this.selectedCard.set(t.item),this.context.data.userProvidedInfo.update(s=>({...s,paymentSystemName:"card",requisites:{type:"existing-card",value:t.item}})),this.cardFormState().enabled&&this.cardFormState.update(s=>({...s,enabled:!1}))}resetSelected(){this.getSelectedCard()?.setSelected(!1),this.selectedCard.set(void 0)}static#e=this.\u0275fac=function(r){return new(r||e)(v(my),v(xe),v(vc),v(vy))};static#t=this.\u0275cmp=Me({type:e,selectors:[["moto-card-list"]],decls:15,vars:9,consts:[[1,"__ndb-card-list"],["id","toggle-card-list-button",1,"__ndb-card-list-toggle",3,"click"],[1,"fw-700"],[1,"material-icons","font-description","__ndb-card-list-toggle-icon"],[1,"block"],[1,"__ndb-card-list-options"],[1,"__ndb-card-list-options-item",3,"option","language"],[1,"__ndb-form-stage-controls","__ndb-form-stage-controls_credentials",3,"invalid"],["id","add-card-button",1,"full-width"],[1,"__ndb-card-list-options-item",3,"select","remove","optionsClicked","option","language"],["data-locator","existing-card-cvv-error",1,"__ndb-form-stage-header-error","fz-14","fw-500","font-error"],[1,"__ndb-form-stage-controls","__ndb-form-stage-controls_credentials"],["id","existing-card-cvv-field","type","tel",3,"ngModelChange","mask","dropSpecialCharacters","placeholder","transparent","validate","status","ngModel"],["tabindex","-1","ngProjectAs","suffix",5,["suffix"]],[1,"material-icons","font-description","block","fz-18","cursor-default"],["id","add-card-button",1,"full-width",3,"click","focusin"],[1,"material-icons","fz-18"],[1,"text"]],template:function(r,i){if(1&r){const s=at();Tn(0)(1)(2),S(3,"div",0)(4,"div",1),te("click",function(){return ne(s),re(i.toggleCardList())}),S(5,"span",2),$(6),T(),S(7,"i",3),$(8,"keyboard_arrow_up"),T()(),S(9,"div",4)(10,"div",5),dn(11,Sz,1,2,"moto-card",6,ar),T()(),ee(13,Mz,9,24,"div",7)(14,Iz,5,1,"button",8),T()}if(2&r){const s=$t(i.settings().language);C();const o=$t(i.selectedCard());C(),$t(i.isCvvError()&&i.componentState().canShowError),C(4),gt(s.existingCards.manageCardsHeader),C(),Yt("active",i.isCardListShown()),C(2),P("@ANToggleList",i.isCardListShown()?"show":"hide"),C(2),fn(i.cardOptions()),C(2),ie(null!=o&&o.updateCardDetails&&i.isCardListShown()?13:-1),C(),ie(i.isCardFormVisible()?-1:14)}},dependencies:[ei,us,Hy,PA,Wd],styles:["[_ngcontent-%COMP%]:root{--ndb-button-bg: #2c8ee8;--ndb-button-disabled-bg: rgba(201, 204, 216, .3);--ndb-button-hover-bg: #1467b4;--ndb-button-color: #fff;--ndb-card-border-color: #c9ccd8}.full-width[_ngcontent-%COMP%]{width:100%}@media (min-width: 769px){.ndb-mobile[_ngcontent-%COMP%]{display:none}}@media (max-width: 768px){.ndb-desktop[_ngcontent-%COMP%]{display:none}}.margin-auto[_ngcontent-%COMP%]{margin:auto}.flex[_ngcontent-%COMP%]{display:flex}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.none[_ngcontent-%COMP%]{display:none}.block[_ngcontent-%COMP%]{display:block}.events-none[_ngcontent-%COMP%]{pointer-events:none}.cursor-default[_ngcontent-%COMP%]{cursor:default}.pointer[_ngcontent-%COMP%]{cursor:pointer}.bold[_ngcontent-%COMP%]{font-weight:700!important}.font-middle[_ngcontent-%COMP%]{vertical-align:middle}.rotate[_ngcontent-%COMP%], .__ndb-card-list-toggle-icon.active[_ngcontent-%COMP%]{transform:rotate(-180deg)}.__ndb-card-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:20px}.__ndb-card-list-options[_ngcontent-%COMP%]{display:flex;flex-direction:column}.__ndb-card-list-options-item[_ngcontent-%COMP%]{width:100%}.__ndb-card-list-options-item[_ngcontent-%COMP%]:not(:first-child){margin-top:10px}.__ndb-card-list-toggle[_ngcontent-%COMP%]{display:flex;align-items:center;gap:5px;cursor:pointer;-webkit-user-select:none;user-select:none}.__ndb-card-list-toggle-icon[_ngcontent-%COMP%]{transform:rotate(0);transition:transform .3s cubic-bezier(.25,.1,.25,1)}"],data:{animation:[F5,L5,V5({animationName:"ANToggleList",fromState:"hide",toState:"show",fromStyles:{height:"0px",overflow:"hidden"},toStyles:{height:"*"}})]},changeDetection:0})}return e})(),OA=(()=>{class e{constructor(){this.detector$=new kt}detectChanges(){this.detector$.next()}listenChangeDetection(){return this.detector$.asObservable()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})(),Zd=(()=>{class e{constructor(t){this.injector=t,this.unsubscriber$=new kt,this.childrenDetector$=new kt}ngOnDestroy(){this.unsubscribe()}listenChildrenDetection(t){const r="local"===t,i="global"===t,s="full"===t;this.childrenDetector$.asObservable().pipe(IA(10),this.untilDestroy()).subscribe(()=>{(r||s)&&this.localDetect(),(i||s)&&this.globalDetect()})}localDetect(){this.injector.get(wo).detectChanges()}globalDetect(){this.injector.get(OA).detectChanges()}detect(){this.localDetect(),this.globalDetect()}untilDestroy(){return function Az(e){return gn((n,t)=>{dr(e).subscribe(sn(t,()=>t.complete(),Ef)),!t.closed&&n.subscribe(t)})}(this.unsubscriber$.asObservable())}unsubscribe(){this.unsubscriber$.next()}static#e=this.\u0275fac=function(r){return new(r||e)(v(Ne))};static#t=this.\u0275cmp=Me({type:e,selectors:[["ng-component"]],decls:0,vars:0,template:function(r,i){},encapsulation:2})}return e})();class Yd{static luhnAlgorithm({value:n}){return n&&function xz(e){return/^\d+$/.test(e)&&!(e.split("").reverse().map(function(n,t){return n=parseInt(n,10),t%2==0?n:(n*=2)>9?n-9:n}).reduce(function(n,t){return n+t})%10)}(n)?void 0:{luhnAlgorithm:!0}}static cardExpiration({value:n}){const t={expiration:!0};if(n){if(n.length<4)return t;const i=+(new Date).getFullYear().toString().slice(-2),[s,o,a,c]=n.split(""),l=`${s}${o}`;return+l<1||+l>12||+`${a}${c}`<i?t:void 0}return t}static cardNumberLength({value:n}){const t=n?.length||0;return t>=pn.card.number.length.min&&t<=pn.card.number.length.max?void 0:{cardLength:!0}}static cardCodeLength(n="cardNumber"){return({value:t,parent:r})=>{const i=r?.get(n),[s]=ay()(i?.value),o=!!s?.code.size&&!!t,a=pn.card.code.lengths[s?.type];return o&&(s?.code.size===t?.length||a?.includes(t?.length))?null:{cardCodeLength:!0}}}}function Nz(e,n){if(1&e&&(S(0,"span",4),$(1),T()),2&e){const t=x();P("@ANTransform",void 0),C(),gt(t.paymentsErrorMsg())}}function kz(e,n){if(1&e&&(S(0,"span",15),$(1),T()),2&e){x();const t=Pe(2);P("@ANTransform",void 0),C(),gt(t.errors.invalidCardHolder)}}let RA=(()=>{class e extends Zd{constructor(t,r,i){super(t),this.injector=t,this.fb=r,this.context=i,this.constants=pn}ngOnInit(){this.settings=this.context.data.settings,this.componentState=this.context.componentsStates.cardForm,this.initForm(),this.initComputedFields(),By(this.form,this.componentState,this,()=>!!this.settings().requiredFieldsBehavior?.markAsInvalidUntilCorrect,this.areRequiredFieldsFilled,this.onUpdate,this.context)}pasteCardNumber(t){const r=function dG(e){return e.replace(/\s/g,"")}(t);this.form.get("cardCredentials").get("cardNumber").setValue(r,{onlySelf:!0}),function gz(e,n,t=null,r=!0){n.forEach(i=>{const s=e.get(i);s||function uz(e){throw new Error(e)}(`Invalid form control name: "${i}"`),s.reset(t),r&&s.updateValueAndValidity()})}(this.form.get("cardCredentials"),["expiration","cvv"]),this.detect()}resetForm(){this.form.reset(),this.localDetect()}onFocus(t){switch(t){case"number":this.context.events.analytics.emit(new Ae("card-number-field-focus"),!0);break;case"cvv":this.context.events.analytics.emit(new Ae("cvv-field-focus"),!0);break;case"holder":this.context.events.analytics.emit(new Ae("card-holder-field-focus"),!0);break;case"expiration":this.context.events.analytics.emit(new Ae("expiration-date-field-focus"),!0)}}initForm(){this.form=this.fb.group({cardCredentials:this.fb.group({cardNumber:[null,[Pr.required,Yd.luhnAlgorithm,Yd.cardNumberLength]],expiration:[null,[Pr.required,Pr.minLength(4),Pr.maxLength(4),Yd.cardExpiration]],cvv:[null,[Pr.required,Yd.cardCodeLength()]]}),cardHolder:[null,[Pr.required,Pr.maxLength(pn.card.holder.length.max)]]})}initComputedFields(){this.isCredentialsErrorShown=ce(()=>{const t=this.form.get("cardCredentials");return this.componentState().canShowError&&t.invalid}),this.isCardHolderErrorShown=ce(()=>{const t=this.form.get("cardHolder");return this.componentState().canShowError&&t.invalid}),this.paymentDetailsHeader=ce(()=>{const t=this.settings();return`${t.language.requisites.paymentDetailsHeader}${this.componentState().isRequired&&t.requiredFieldsBehavior?.showStars?" *":""}`}),this.nameOnCardHeader=ce(()=>{const t=this.settings();return`${t.language.requisites.cardHolderHeader}${this.componentState().isRequired&&t.requiredFieldsBehavior?.showStars?" *":""}`}),this.paymentsErrorMsg=ce(()=>{const t=this.form.get("cardCredentials"),[r]=function mz(e){return function pz(e){return Object.entries(e.controls).filter(([,n])=>n.invalid)}(e).map(([n])=>n)}(t),i=this.settings().language.errors;switch(this.componentState(),r){case"cardNumber":return i.invalidCardNumber;case"expiration":return i.invalidCardExpiration;case"cvv":return i.invalidCvv}})}areRequiredFieldsFilled(t){const{cardCredentials:r,cardHolder:i}=t;return r?.cvv&&r?.cardNumber&&r?.expiration&&i}onUpdate(t,r){const{cardCredentials:i,cardHolder:s}=t;r.data.userProvidedInfo.update(o=>({...o,paymentSystemName:"card",requisites:{type:"card",value:{cvv:i.cvv,expiration:i.expiration,number:i.cardNumber,holder:s}}}))}static#e=this.\u0275fac=function(r){return new(r||e)(v(Ne),v(Vy),v(xe))};static#t=this.\u0275cmp=Me({type:e,selectors:[["moto-card-form"]],features:[me],decls:32,vars:49,consts:[[1,"__ndb-form",3,"formGroup"],[1,"__ndb-form-stage"],[1,"__ndb-form-stage-header"],[1,"__ndb-form-stage-header-title","fz-14","fw-500"],["data-locator","card-credentials-error",1,"__ndb-form-stage-header-error","fz-14","fw-500","font-error"],["formGroupName","cardCredentials",1,"__ndb-form-stage-controls","__ndb-form-stage-controls_credentials"],["id","card-number-field","formControlName","cardNumber","type","tel","autocomplete","cc-number",1,"__ndb-form-stage-controls_card-number",3,"paste","focusin","placeholder","mask","transparent","validate","status"],["ngProjectAs","suffix",5,["suffix"],1,"__ndb-form-stage-controls_card-number-logo",3,"src"],[1,"__ndb-form-stage-controls-separator","__ndb-form-stage-controls-separator_x"],[1,"__ndb-form-stage-controls-group"],["id","card-expiration-field","formControlName","expiration","mask","00 / 00","type","tel","autocomplete","cc-exp",1,"__ndb-form-stage-controls_expiration",3,"focusin","placeholder","transparent","validate","status"],[1,"__ndb-form-stage-controls-separator","__ndb-form-stage-controls-separator_y"],["id","card-cvv-field","formControlName","cvv","type","tel",1,"__ndb-form-stage-controls_cvv",3,"focusin","mask","dropSpecialCharacters","placeholder","transparent","validate","status"],["tabindex","-1","ngProjectAs","suffix",5,["suffix"]],[1,"material-icons","font-description","block","fz-18","cursor-default"],["data-locator","card-holder-error",1,"__ndb-form-stage-header-error","fz-14","fw-500","font-error"],[1,"__ndb-form-stage-controls"],["id","card-holder-field","formControlName","cardHolder","autocomplete","cc-name",3,"focusin","placeholder","maxlength","validate","status"]],template:function(r,i){if(1&r){const s=at();Tn(0)(1)(2),S(3,"form",0)(4,"div",1)(5,"div",2)(6,"h6",3),$(7),T(),ee(8,Nz,2,2,"span",4),T(),S(9,"div",5)(10,"moto-form-input",6),Ce(11,"cardInfo"),te("paste",function(a){return ne(s),re(i.pasteCardNumber(a))})("focusin",function(){return ne(s),re(i.onFocus("number"))}),ge(12,"moto-picture",7),Ce(13,"cardInfo"),T(),ge(14,"div",8),S(15,"div",9)(16,"moto-form-input",10),te("focusin",function(){return ne(s),re(i.onFocus("expiration"))}),T(),ge(17,"div",11),S(18,"moto-form-input",12),Ce(19,"cardInfo"),Ce(20,"cardInfo"),te("focusin",function(){return ne(s),re(i.onFocus("cvv"))}),S(21,"div",13),Ce(22,"cardInfo"),S(23,"i",14),$(24,"error"),T()()()()()(),S(25,"div",1)(26,"div",2)(27,"h6",3),$(28),T(),ee(29,kz,2,2,"span",15),T(),S(30,"div",16)(31,"moto-form-input",17),te("focusin",function(){return ne(s),re(i.onFocus("holder"))}),T()()()()}if(2&r){const s=i.isCardHolderErrorShown(),o=i.isCredentialsErrorShown();C(2);const a=$t(i.settings().language);C(),P("formGroup",i.form),C(4),ke(" ",i.paymentDetailsHeader()," "),C(),ie(o?8:-1),C(),Yt("invalid",o),C(),P("placeholder",a.requisites.cardNumberPlaceholder)("mask",mi(11,29,i.form.value.cardCredentials.cardNumber,"card-number-mask","0000 0000 0000 0000"))("transparent",!0)("validate",!1)("status",o?"invalid":"valid"),C(2),P("src",xt(13,33,i.form.value.cardCredentials.cardNumber,"logo")),C(4),P("placeholder",a.requisites.cardExpirationPlaceholder)("transparent",!0)("validate",!1)("status",o?"invalid":"valid"),C(2),P("mask",mi(19,36,i.form.value.cardCredentials.cardNumber,"code-mask","000"))("dropSpecialCharacters",!1)("placeholder",Um(20,40,i.form.value.cardCredentials.cardNumber,"code","CVV",a.requisites.cvvPlaceholder))("transparent",!0)("validate",!1)("status",o?"invalid":"valid"),C(3),At("data-tooltip",mi(22,45,i.form.value.cardCredentials.cardNumber,"secure-text",a.requisites.cvvHint)),C(7),ke(" ",i.nameOnCardHeader()," "),C(),ie(s?29:-1),C(2),P("placeholder",a.requisites.cardHolderPlaceholder)("maxlength",i.constants.card.holder.length.max)("validate",!1)("status",s?"invalid":"valid")}},dependencies:[Ud,ei,kd,Ac,Bo,Ic,$d,Ao,Hy,Wd],data:{animation:[Cd()]},changeDetection:0})}return e})();function Pz(e,n){if(1&e&&(S(0,"span",4),$(1),T()),2&e){x();const t=Pe(0);P("@ANTransform",void 0),C(),ke(" ",t.errors.invalidPhoneNumber,"")}}let FA=(()=>{class e extends Zd{constructor(t,r,i){super(t),this.injector=t,this.fb=r,this.context=i,this.phoneConstants=pn.phoneNumber}ngOnInit(){this.componentState=this.context.componentsStates.additionalForm,this.cardFormState=this.context.componentsStates.cardForm,this.settings=this.context.data.settings,this.initComputed(),this.initForm(),By(this.form,this.componentState,this,()=>!!this.settings().requiredFieldsBehavior?.markAsInvalidUntilCorrect,t=>!!t.phoneNumber)}onFocus(){this.context.events.analytics.emit(new Ae("number-field-focus"),!0)}initForm(){this.form=this.fb.group({phoneNumber:["",[Pr.minLength(pn.phoneNumber.length.min),Pr.maxLength(pn.phoneNumber.length.max)]]})}initComputed(){this.header=ce(()=>{const t=this.settings();return`${t.language.phone.header}${this.componentState().isRequired&&t.requiredFieldsBehavior?.showStars?" *":""}`}),this.isErrorShown=ce(()=>{const t=this.componentState();return t.canShowError&&!t.isValid})}static#e=this.\u0275fac=function(r){return new(r||e)(v(Ne),v(Vy),v(xe))};static#t=this.\u0275cmp=Me({type:e,selectors:[["moto-additional-form"]],features:[me],decls:10,vars:9,consts:[[1,"__ndb-form",3,"formGroup"],[1,"__ndb-form-stage"],[1,"__ndb-form-stage-header"],[1,"__ndb-form-stage-header-title","fz-14","fw-500"],["data-locator","phone-error",1,"__ndb-form-stage-header-error","fz-14","fw-500","font-error"],[1,"__ndb-form-stage-controls"],["id","phone-number-field","formControlName","phoneNumber","autocomplete","tel","type","tel",3,"focusin","placeholder","minlength","maxlength","validate","status"]],template:function(r,i){if(1&r){const s=at();Tn(0)(1),S(2,"form",0)(3,"div",1)(4,"div",2)(5,"h6",3),$(6),T(),ee(7,Pz,2,2,"span",4),T(),S(8,"div",5)(9,"moto-form-input",6),te("focusin",function(){return ne(s),re(i.onFocus())}),T()()()()}if(2&r){const s=$t(i.settings().language),o=i.isErrorShown();C(2),P("formGroup",i.form),C(4),gt(i.header()),C(),ie(o?7:-1),C(2),P("placeholder",s.phone.placeholder)("minlength",i.phoneConstants.length.min)("maxlength",i.phoneConstants.length.max)("validate",!1)("status",o?"invalid":"valid")}},dependencies:[Ud,ei,kd,zd,Ac,Bo,Ic,Hy],data:{animation:[Cd()]},changeDetection:0})}return e})(),jo=(()=>{class e{constructor(t){this.sanitizer=t}transform(t,r){if(!t)return t;const i=this.parseLinks(t,r);return this.sanitizer.bypassSecurityTrustHtml(i)}parseLinks(t,r){return t.replace(/\{\s*href:\s*['"]([^'"]+)['"],\s*text:\s*['"]([^'"]+)['"]\s*\}/g,`<a href="$1" ${r?`class="${r}"`:""} target="_blank">$2</a>`)}static#e=this.\u0275fac=function(r){return new(r||e)(v(Hg,16))};static#t=this.\u0275pipe=ht({name:"linkify",type:e,pure:!0})}return e})();function Oz(e,n){if(1&e){const t=at();S(0,"label",5)(1,"input",6),te("ngModelChange",function(i){ne(t);const s=x(),o=s.$implicit,a=s.$index;return re(x(2).onChange(o,a,i))})("focusin",function(){ne(t);const i=x(),s=i.$implicit,o=i.$index;return re(x(2).onFocus(s,o))}),T(),ge(2,"span",7)(3,"span",8),Ce(4,"linkify"),T()}if(2&e){const t=x(),r=t.$implicit,i=t.$index,s=x(2),o=Pe(1),a=Pe(2);C(),P("name","charge-term-"+i)("id","charge-term-"+i)("formControlName",i),C(),Yt("circle","circle"===(null==o?null:o.shape))("square","square"===(null==o?null:o.shape))("invalid",a&&!s.form.get("checkboxes").get(i.toString()).value),C(),P("innerHTML",xt(4,10,r,"__ndb-settings-checkboxes-checkbox-link fz-12 fw-500 font-description"),Tr)}}function Rz(e,n){1&e&&ee(0,Oz,5,13,"label",5),2&e&&ie(n.$implicit?0:-1)}function Fz(e,n){if(1&e&&(S(0,"form",1),_o(1,4),dn(2,Rz,1,1,null,null,ar),vo(),T()),2&e){const t=x(),r=Pe(1);P("formGroup",t.form),C(2),fn(r.checkboxes)}}function Lz(e,n){if(1&e&&(S(0,"p",2),Ce(1,"linkify"),$(2),T()),2&e){x();const t=Pe(1);P("innerHTML",xt(1,2,t.text,"fz-12 fw-500 font-description"),Tr),C(2),ke(" ",t.text," ")}}function Vz(e,n){if(1&e&&(S(0,"span",3),$(1),T()),2&e){x();const t=Pe(0);P("@ANTransform",void 0),C(),ke(" ",t.language.errors.notCheckedCheckboxes," ")}}let LA=(()=>{class e extends Zd{constructor(t,r,i){super(r),this.context=t,this.injector=r,this.fb=i}ngOnInit(){this.settings=this.context.data.settings,this.componentState=this.context.componentsStates.chargeTerms,this.isErrorShown=ce(()=>this.componentState().canShowError&&!this.componentState().isValid),this.initForm()?By(this.form,this.componentState,this,()=>!!this.settings().requiredFieldsBehavior?.markAsInvalidUntilCorrect,()=>!0):this.componentState.update(t=>({...t,isValid:!0}))}onChange(t,r,i){this.context.events.analytics.emit(new Ae(i?`charge-term-checkbox-${r}-check`:`charge-term-checkbox-${r}-uncheck`,{text:t}))}onFocus(t,r){this.context.events.analytics.emit(new Ae(`charge-term-checkbox-${r}-focus`,{text:t}),!0)}initForm(){const t=this.settings().chargeTerms;if(!t.checkboxes?.length)return!1;const r=t.checkboxes.map(()=>this.fb.control(!1,Pr.requiredTrue));return this.form=this.fb.group({checkboxes:this.fb.array(r)}),!0}static#e=this.\u0275fac=function(r){return new(r||e)(v(xe),v(Ne),v(Vy))};static#t=this.\u0275cmp=Me({type:e,selectors:[["moto-charge-terms"]],features:[me],decls:7,vars:6,consts:[[1,"__ndb-settings"],[1,"__ndb-settings-checkboxes",3,"formGroup"],[1,"__ndb-settings-text","fz-11","fw-500",3,"innerHTML"],["data-locator","charge-terms-error",1,"fz-14","fw-500","font-error"],["formArrayName","checkboxes"],[1,"__ndb-settings-checkboxes-checkbox","fz-11","fw-500","font-description"],["type","checkbox",1,"__ndb-settings-checkboxes-checkbox-input",3,"ngModelChange","focusin","name","id","formControlName"],[1,"__ndb-settings-checkboxes-checkbox-checkmark"],[1,"__ndb-settings-checkboxes-checkbox-text",3,"innerHTML"]],template:function(r,i){if(1&r&&(Tn(0)(1)(2),S(3,"div",0),ee(4,Fz,4,1,"form",1)(5,Lz,3,5,"p",2)(6,Vz,2,2,"span",3),T()),2&r){const s=$t(i.settings());C();const o=$t(s.chargeTerms);C();const a=$t(i.isErrorShown());C(2),ie(null!=o.checkboxes&&o.checkboxes.length?4:-1),C(),ie(o.text?5:-1),C(),ie(a?6:-1)}},dependencies:[Ud,Cc,ei,kd,Bo,Ic,Gd,jo],data:{animation:[Cd()]},changeDetection:0})}return e})();function $y(e){const n=function jz(e){return`\n <!DOCTYPE html>\n <html>\n <head>\n <meta charset="UTF-8">\n <meta name="viewport" content="width=device-width, initial-scale=1.0">\n <meta name="description" content="Waiting payment approval">\n\n <title>Moto pay</title>\n </head>\n <body>\n <div class="waiting">\n <div class="section">\n <h2 class="waiting__title">${e.paymentProcessing}</h2>\n <div class="section__content __ndb-spinner-container">\n <div class="spinner">\n <div class="lds-ring">\n <div></div>\n <div></div>\n <div></div>\n <div></div>\n </div>\n <div class="spinner__extra"></div>\n </div>\n </div>\n </div>\n </div>\n </body>\n </html>`}(e);let o=n.replace("</head>",'<style>\n\n .waiting__title {\n position: relative;\n z-index: 101;\n font-family: "Poppins", Helvetica, Arial, sans-serif;\n color: #29304d;\n font-size: 16px;\n margin: 0;\n text-align: center;\n transform: translateY(108px);\n }\n .__ndb__moto-modal-backdrop {\n background-color: #e5e5e5 !important;\n }\n .__ndb__moto-modal .header {\n margin: 0;\n }\n .section__content {\n margin: 0 auto;\n width: 870px;\n }\n @media screen and (max-width: 1000px) {\n .section__content {\n width: 720px;\n }\n }\n @media screen and (max-width: 768px) {\n .section__content {\n width: 375px;\n }\n }\n @media screen and (max-width: 375px) {\n .section__content {\n width: 320px;\n }\n }\n .spinner {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n height: 330px;\n }\n .spinner_small {\n height: 70px;\n }\n .spinner_extra {\n height: 550px;\n }\n .lds-ring {\n display: inline-block;\n position: relative;\n width: 80px;\n height: 80px;\n }\n .lds-ring div {\n box-sizing: border-box;\n display: block;\n position: absolute;\n width: 64px;\n height: 64px;\n margin: 8px;\n border: 8px solid #6936d3;\n border-radius: 50%;\n animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;\n border-color: #6936d3 transparent transparent transparent;\n }\n .lds-ring div:nth-child(1) {\n animation-delay: -0.45s;\n }\n .lds-ring div:nth-child(2) {\n animation-delay: -0.3s;\n }\n .lds-ring div:nth-child(3) {\n animation-delay: -0.15s;\n }\n @keyframes lds-ring {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n }\n</style>\n</head>');return o=o.replace("</body>","<script>\n\n const messageKey = '__moto_pay_message';\n\n function inputTemplate(name, value) {\n return `<input type=\"hidden\" name=\"${name}\" value=\"${value}\" />`;\n }\n \n function formTemplate(redirectUrl, inputsTpl) {\n return `<form action=\"${redirectUrl}\" method=\"post\">${inputsTpl}</form>`;\n }\n \n function makeFormTemplate(threeDsData) {\n const inputsTemplate = Object.entries(threeDsData).reduce((accum, [key, value]) => {\n const inputTpl = inputTemplate(key, value);\n return (accum += `${inputTpl}\n`);\n }, '');\n const template = formTemplate(threeDsData.acsurl, inputsTemplate);\n return template;\n }\n \n function simpleRedirect(url) {\n window.location.replace(url);\n }\n \n function postRedirect(threeDsData) {\n const template = makeFormTemplate(threeDsData);\n \n setTimeout(() => {\n document.body.innerHTML = template;\n const form = document.body.querySelector('form');\n form.submit();\n });\n }\n \n function onMessageReceived(event) {\n if (event.data && event.data.key == messageKey) {\n if (event.data.type == 'simpleRedirect') {\n simpleRedirect(event.data?.redirectData?.location);\n }\n \n if (event.data.type == 'postRedirect') {\n postRedirect(event.data.threeDsData);\n }\n }\n }\n\n window.addEventListener('message', onMessageReceived, false);\n \n<\/script>\n</body>"),o}iP();class Kd{constructor(){this.postMessageKey="__moto_pay_message"}tryOpenBlankWindow(n){return this.window||(this.window=window.open("","_blank")??void 0,n&&this.window?.document?.write(n)),this.window}threeDsRedirect(n){this.window?.postMessage({key:this.postMessageKey,type:"postRedirect",threeDsData:n})}redirect(n){this.window?.postMessage({key:this.postMessageKey,type:"simpleRedirect",redirectData:n})}closeWindow(){this.window?.close(),this.window=void 0}}let VA=(()=>{class e{constructor(t){this.window=t}transform(t,r){return Number(t).toLocaleString(this.window.navigator.language,{style:"currency",currency:r})}static#e=this.\u0275fac=function(r){return new(r||e)(v(CI,16))};static#t=this.\u0275pipe=ht({name:"currencySymbol",type:e,pure:!0})}return e})(),Uz=(()=>{class e{transform(t,r,i){return gy(t,r,i)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275pipe=ht({name:"price",type:e,pure:!0})}return e})();function $z(e,n){if(1&e&&(S(0,"span",4),$(1),T()),2&e){x();const t=Pe(3);C(),gt(t.taxDescription)}}function Gz(e,n){if(1&e&&(ge(0,"div",9),S(1,"div",10),ge(2,"moto-picture",11),Ce(3,"cardInfo"),S(4,"span",12),$(5),Ce(6,"slice"),T()()),2&e){const t=n;C(2),P("src",xt(3,2,t.name,"logo")),C(3),ke(" \u2022\u2022",xt(6,5,t.name,-4)," ")}}let BA=(()=>{class e{constructor(t,r,i){this.context=t,this.processing=r,this.windowService=i}ngOnInit(){this.settings=this.context.data.settings,this.payment=this.context.data.payment,this.userProvidedInfo=this.context.data.userProvidedInfo,this.paymentAvailability=this.context.computed.paymentAvailability,this.existingCard=ce(()=>{const t=this.userProvidedInfo();if("existing-card"===t?.requisites?.type&&t.requisites?.value)return t.requisites.value})}pay(){if(this.context.events.analytics.emit(new Ae("pay-button-click")),!this.context.computed.paymentAvailability().canPay.byCard)return void this.context.updateCanShowError(!0);this.windowService.tryOpenBlankWindow($y(this.settings().language));const t=this.processing.pay();this.context.data.state.set({type:"payLoading",payload:{observable:t}})}onFocus(){this.context.events.analytics.emit(new Ae("pay-button-focus"),!0)}static#e=this.\u0275fac=function(r){return new(r||e)(v(xe),v(Fo),v(Kd))};static#t=this.\u0275cmp=Me({type:e,selectors:[["moto-pay-button"]],decls:23,vars:23,consts:[[1,"__ndb-pay"],[1,"__ndb-pay-info"],[1,"__ndb-pay-title","fz-18","fw-600"],["data-locator","total-cost",1,"fz-24","fw-700"],["id","tax-description",1,"fz-11","fw-500","font-description"],["id","pay-button","data-locator","btn-submit",1,"__ndb-pay-btn","button-submit","full-width",3,"click","focusin","ngClass","disabled"],[1,"__ndb-pay-btn-content"],[1,"__ndb-pay-btn-cost-side"],["data-locator","btn-submit-cost"],[1,"__ndb-pay-btn-separator"],[1,"__ndb-pay-btn-card-side"],[1,"__ndb-pay-btn-card-side-logo",3,"src"],["data-locator","btn-submit-card-number",1,"__ndb-pay-btn-card-side-number"]],template:function(r,i){if(1&r){const s=at();Tn(0)(1)(2)(3),S(4,"div",0)(5,"div",1)(6,"span",2),$(7),T(),S(8,"span",3),$(9),Ce(10,"price"),Ce(11,"currencySymbol"),T()(),ee(12,$z,2,1,"span",4),S(13,"button",5),te("click",function(){return ne(s),re(i.pay())})("focusin",function(){return ne(s),re(i.onFocus())}),S(14,"div",6)(15,"div",7)(16,"span"),$(17),S(18,"span",8),$(19),Ce(20,"price"),Ce(21,"currencySymbol"),T()()(),ee(22,Gz,7,8),T()()()}if(2&r){let s;const o=i.payment(),a=i.paymentAvailability(),c=i.settings();C(3);const l=$t(c.language);C(4),gt(l.totalHeader),C(2),gt(xt(11,13,mi(10,9,o.amount,o.tax,o.amountType),o.currency)),C(3),ie(c.isTaxVisible&&l.taxDescription?12:-1),C(),P("ngClass",a.buttonDisableClass)("disabled",a.isPayButtonDisabled),C(4),ke(" ",l.pay," "),C(2),ke(" ",xt(21,20,mi(20,16,o.amount,o.tax,o.amountType),o.currency)," "),C(3),ie((s=i.existingCard())?22:-1,s)}},dependencies:[wg,Ao,VA,Ig,Uz,Wd],styles:["[_ngcontent-%COMP%]:root{--ndb-button-bg: #2c8ee8;--ndb-button-disabled-bg: rgba(201, 204, 216, .3);--ndb-button-hover-bg: #1467b4;--ndb-button-color: #fff;--ndb-card-border-color: #c9ccd8}.full-width[_ngcontent-%COMP%]{width:100%}@media (min-width: 769px){.ndb-mobile[_ngcontent-%COMP%]{display:none}}@media (max-width: 768px){.ndb-desktop[_ngcontent-%COMP%]{display:none}}.margin-auto[_ngcontent-%COMP%]{margin:auto}.flex[_ngcontent-%COMP%]{display:flex}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.none[_ngcontent-%COMP%]{display:none}.block[_ngcontent-%COMP%]{display:block}.events-none[_ngcontent-%COMP%]{pointer-events:none}.cursor-default[_ngcontent-%COMP%]{cursor:default}.pointer[_ngcontent-%COMP%]{cursor:pointer}.bold[_ngcontent-%COMP%]{font-weight:700!important}.font-middle[_ngcontent-%COMP%]{vertical-align:middle}.rotate[_ngcontent-%COMP%]{transform:rotate(-180deg)}.__ndb-pay[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.__ndb-pay-info[_ngcontent-%COMP%]{display:flex;width:100%;align-items:center;justify-content:space-between;gap:20px;margin-bottom:7px}.__ndb-pay-btn[_ngcontent-%COMP%]{margin-top:7px}.__ndb-pay-btn-content[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:16px;width:100%}.__ndb-pay-btn-separator[_ngcontent-%COMP%]{width:2px;height:18px;opacity:.3;background-color:var(--ndb-button-color)}.__ndb-pay-btn-card-side[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px}.__ndb-pay-btn-card-side-logo[_ngcontent-%COMP%]{height:24px;width:36px}"],changeDetection:0})}return e})(),Qd=(()=>{class e{constructor(){this.signals={}}getOrSetItemSignal(t,r){const i=window.sessionStorage.getItem(t);return i?this.signals[t]?JSON.stringify(this.signals[t]())!==i&&this.signals[t].set(JSON.parse(i)):this.signals[t]=se(JSON.parse(i)):this.setItem(t,r),this.signals[t]}setItem(t,r){window.sessionStorage.setItem(t,JSON.stringify(r)),this.signals[t]?this.signals[t].set(r):this.signals[t]=se(r)}removeItem(t){window.sessionStorage.removeItem(t),this.signals[t]?.set(void 0)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})(),qz=(()=>{class e{constructor(t,r){this.renderer=t,this.elRef=r,this.buttonClick=new ve,this.buttonStyle="white-outline",this.locale="en-US",this.type="continue"}ngAfterViewInit(){this.createButton()}ngOnDestroy(){this.buttonClickListener&&(this.buttonClickListener(),this.buttonClickListener=void 0)}createButton(){const t=this.renderer.createElement("apple-pay-button");this.renderer.setAttribute(t,"type",this.type),this.renderer.setAttribute(t,"buttonstyle",this.buttonStyle),this.renderer.setAttribute(t,"locale",this.locale),this.buttonClickListener=this.renderer.listen(t,"click",r=>this.buttonClick.emit(r)),this.renderer.appendChild(this.elRef.nativeElement,t),this.renderer.setStyle(t,"display","inline-block")}static#e=this.\u0275fac=function(r){return new(r||e)(v(Ar),v(cn))};static#t=this.\u0275dir=Z({type:e,selectors:[["","motoApplePayButton",""]],inputs:{buttonStyle:"buttonStyle",locale:"locale",type:"type"},outputs:{buttonClick:"buttonClick"}})}return e})();const Wz=new Set(["buttonSizeMode","buttonRadius","buttonSize","buttonColor","buttonType","buttonVariant","buttonLocale"]);let Zz=(()=>{class e{constructor(t,r,i){this.renderer=t,this.elRef=r,this.context=i,this.buttonClick=new ve}ngAfterViewInit(){this.createButton()}ngOnDestroy(){if(this._button){this._captureHandler&&(this._button.removeEventListener("click",this._captureHandler,!0),this._button.removeEventListener("pointerdown",this._captureHandler,!0),this._button.removeEventListener("touchstart",this._captureHandler,!0));try{this.renderer.removeChild(this.elRef.nativeElement,this._button)}catch{}this._button=void 0,this._captureHandler=void 0}}isPayDisabled(){const t=this.context.computed.paymentAvailability?.();return!(!t?.isPayButtonDisabled&&t?.canPay?.byApm)}createButton(){if(!this.context.clients.googlePay)return;const t=this.context.data.settings()?.googlePay.button||{},i={...Object.fromEntries(Object.entries(t).filter(([s])=>Wz.has(s))),onClick:s=>this.buttonClick.emit(s)};this._captureHandler=s=>{if(this.isPayDisabled())return this.context.updateCanShowErrorForApm(!0),s.preventDefault?.(),void s.stopImmediatePropagation?.()};try{const s=this.context.clients.googlePay.createButton(i);s.addEventListener("click",this._captureHandler,!0),s.addEventListener("pointerdown",this._captureHandler,!0),s.addEventListener("touchstart",this._captureHandler,!0),this._button=s,this.renderer.appendChild(this.elRef.nativeElement,s),this.renderer.setStyle(s,"display","inline-block")}catch(s){console.error("Google Pay SDK createButton failed \u2014 cannot create Google Pay button",s)}}static#e=this.\u0275fac=function(r){return new(r||e)(v(Ar),v(cn),v(xe))};static#t=this.\u0275dir=Z({type:e,selectors:[["","motoGooglePayButton",""]],outputs:{buttonClick:"buttonClick"}})}return e})(),Yz=(()=>{class e{set _let(t){this.context.let=t}constructor(t,r){this.viewContainer=t,this.tpl=r,this.context={let:null}}ngOnInit(){this.viewContainer.createEmbeddedView(this.tpl,this.context)}static#e=this.\u0275fac=function(r){return new(r||e)(v(ir),v(Ir))};static#t=this.\u0275dir=Z({type:e,selectors:[["","let",""]],inputs:{_let:[0,"let","_let"]}})}return e})();const Kz=(e,n)=>n.name,Qz=(e,n)=>({applepay:e,googlepay:n}),Xz=e=>({$implicit:e});function Jz(e,n){if(1&e){const t=at();S(0,"div",5)(1,"span",7),te("click",function(){return ne(t),re(x(2).apmsCollapseClick())}),$(2),T()()}if(2&e){x(2);const t=Pe(2);C(),P("ngClass",t.apmsCollapse?"__ndb-apm-list__delimiter-text__apms-collapse":""),C(),gt(t.apmsCollapse?t.language.apms.orUseAlternative:t.language.apms.or)}}function e9(e,n){if(1&e&&pi(0,8),2&e){const t=n.$implicit,r=x(2).let;x();const i=wu(5);P("ngTemplateOutlet",t.logo?i:r[t.name])("ngTemplateOutletContext",function x0(e,n,t,r){return k0(b(),Wt(),e,n,t,r)}(2,Xz,t))}}function t9(e,n){if(1&e&&(S(0,"div",6),dn(1,e9,1,4,"ng-container",8,Kz),T()),2&e){x(2);const t=Pe(0);C(),fn(t)}}function n9(e,n){if(1&e&&(S(0,"div",4),ee(1,Jz,3,2,"div",5)(2,t9,3,0,"div",6),T()),2&e){let t;const r=x(),i=Pe(2);C(),ie(r.cardPaymentAvailable()?1:-1),C(),ie(i.apmsCollapse&&r.apmsCollapsed&&(null===(t=r.apmsCollapsed())||void 0===t||t)?-1:2)}}function r9(e,n){if(1&e){const t=at();S(0,"button",9),te("focusin",function(){const i=ne(t).$implicit;return re(x().onFocus(i))})("click",function(){const i=ne(t).$implicit;return re(x().pay(i))}),ge(1,"img",10),T()}if(2&e){const t=n.$implicit;x();const r=Pe(1);P("id","apm-"+(null==t?null:t.name)+"-button")("ngClass",r.elementDisableClass),C(),P("src",t.logo,ga)("alt",t.name)}}function i9(e,n){if(1&e){const t=at();S(0,"div",11),te("buttonClick",function(){const i=ne(t).$implicit;return re(x().pay(i))})("focusin",function(){const i=ne(t).$implicit;return re(x().onFocus(i))}),T()}2&e&&(x(),P("ngClass",Pe(1).elementDisableClass))}function s9(e,n){if(1&e){const t=at();S(0,"div",12),te("buttonClick",function(){const i=ne(t).$implicit;return re(x().pay(i))})("focusin",function(){const i=ne(t).$implicit;return re(x().onFocus(i))}),T()}2&e&&(x(),P("ngClass",Pe(1).elementDisableClass))}let jA=(()=>{class e{constructor(t,r,i,s,o,a,c){this.context=t,this.processingService=r,this.mapper=i,this.applePayService=s,this.googlePayService=o,this.sessionStorage=a,this.windowService=c,this.apms=se([])}ngOnInit(){this.settings=this.context.data.settings,this.paymentInfo=this.context.data.payment,this.settings().apmsCollapse&&(this.apmsCollapsed=this.sessionStorage.getOrSetItemSignal(pn.keys.apmsCollapse,!0)),this.paymentAvailability=this.context.computed.paymentAvailability,this.apms=ce(()=>{let t=this.context.data.loadedPaymentSystems().filter(i=>"card"!==i.name);return this.mapper.mapApms(t)}),this.cardPaymentAvailable=ce(()=>this.context.componentsStates.cardForm().enabled||this.context.componentsStates.cardList().enabled)}pay(t){var i,r=this;if(this.context.events.analytics.emit(new Ae(`${t.name}-button-click`)),this.paymentAvailability().canPay.byApm)if("applepay"===t.name){const i=Xr(this.settings().urls.processing,`api/applepay/${this.paymentInfo().merchantId}/merchantValidation`);this.applePayService.pay(this.paymentInfo(),i).subscribe({next:s=>{t.token=s,this.makePaymentAndRedirect(t)},error:()=>this.apmTokenError()})}else"googlepay"===t.name?this.googlePayService.pay(this.paymentInfo()).subscribe({next:(i=ss(function*(s){t.token=s,yield r.redirectForConfirmation(),r.windowService.tryOpenBlankWindow($y(r.settings().language)),r.makePaymentAndRedirect(t)}),function(o){return i.apply(this,arguments)}),error:()=>this.apmTokenError()}):(this.windowService.tryOpenBlankWindow($y(this.settings().language)),this.makePaymentAndRedirect(t));else this.context.updateCanShowErrorForApm(!0)}onFocus(t){this.context.events.analytics.emit(new Ae(`${t.name}-button-focus`),!0)}apmsCollapseClick(){if(this.settings().apmsCollapse){const t=this.apmsCollapsed();this.sessionStorage.setItem(pn.keys.apmsCollapse,!t),this.context.events.analytics.emit(new Ae("apms-show-button-click",{show:t}))}}makePaymentAndRedirect(t){this.context.data.userProvidedInfo.update(i=>({...i,paymentSystemName:t.name,requisites:{type:"apm",value:t}}));const r=this.processingService.pay();this.context.data.state.set({type:"payLoading",payload:{observable:r}})}redirectForConfirmation(){const{promise:t,resolve:r}=function zz(){let e,n;return{promise:new Promise((r,i)=>{e=r,n=i}),resolve:e,reject:n}}();return this.context.data.state.set({type:"confirmation",payload:{resolvePromise:r}}),t}apmTokenError(){this.windowService.closeWindow(),this.context.data.state.set({type:"result",payload:{}})}static#e=this.\u0275fac=function(r){return new(r||e)(v(xe),v(Fo),v(fs),v(yy),v(_y),v(Qd),v(Kd))};static#t=this.\u0275cmp=Me({type:e,selectors:[["moto-apm-list"]],decls:10,vars:7,consts:[["apmDefaultRef",""],["applePayRef",""],["googlePayRef",""],["class","__ndb-apm-list",4,"let"],[1,"__ndb-apm-list"],[1,"__ndb-apm-list__delimiter"],[1,"__ndb-apm-list-apms"],["id","apms-collapse-button",1,"__ndb-apm-list__delimiter-text","fz-12",3,"click","ngClass"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"__ndb-apm-list-apms__item",3,"focusin","click","id","ngClass"],[1,"__ndb-apm-list-apms__item-img",3,"src","alt"],["id","apm-applepay-button","motoApplePayButton","",1,"__ndb-apm-list-apms__item","moto-apple-pay-button",3,"buttonClick","focusin","ngClass"],["id","apm-googlepay-button","motoGooglePayButton","",1,"__ndb-apm-list-apms__item","moto-google-pay-button",3,"buttonClick","focusin","ngClass"]],template:function(r,i){if(1&r&&(Tn(0)(1)(2),ee(3,n9,3,2,"div",3)(4,r9,2,4,"ng-template",null,0,Tu)(6,i9,1,1,"ng-template",null,1,Tu)(8,s9,1,1,"ng-template",null,2,Tu)),2&r){const s=wu(7),o=wu(9);$t(i.apms()),C(),$t(i.paymentAvailability()),C(),$t(i.settings()),C(),P("let",function N0(e,n,t,r,i){return P0(b(),Wt(),e,n,t,r,i)}(4,Qz,s,o))}},dependencies:[wg,pT,qz,Zz,Yz],styles:['[_ngcontent-%COMP%]:root{--ndb-button-bg: #2c8ee8;--ndb-button-disabled-bg: rgba(201, 204, 216, .3);--ndb-button-hover-bg: #1467b4;--ndb-button-color: #fff;--ndb-card-border-color: #c9ccd8}.__ndb-apm-list__delimiter[_ngcontent-%COMP%]{margin-bottom:28px;display:flex;flex-direction:row;justify-content:center;align-items:center}.__ndb-apm-list__delimiter[_ngcontent-%COMP%]:before, .__ndb-apm-list__delimiter[_ngcontent-%COMP%]:after{content:"";height:1px;flex:1;background-color:#c9ccd8}.__ndb-apm-list__delimiter[_ngcontent-%COMP%]:before{margin-right:10px}.__ndb-apm-list__delimiter[_ngcontent-%COMP%]:after{margin-left:10px}.__ndb-apm-list__delimiter-text[_ngcontent-%COMP%]{font-weight:500;color:#636b8a}.__ndb-apm-list__delimiter-text__apms-collapse[_ngcontent-%COMP%]{-webkit-text-decoration:underline #636b8a dotted;text-decoration:underline #636b8a dotted;cursor:pointer;-webkit-user-select:none;user-select:none}.__ndb-apm-list-apms[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px}.__ndb-apm-list-apms__item[_ngcontent-%COMP%]{position:relative;width:100%;height:60px;display:flex;flex-direction:row;justify-content:center;align-items:center;background-color:#e8eaf3;transition:box-shadow .25s ease-out;will-change:box-shadow;border-radius:4px}.__ndb-apm-list-apms__item[_ngcontent-%COMP%]:hover:not(.disabled-element):not(.hidden-enabled-element){box-shadow:0 2px 3px #2f45704d}.__ndb-apm-list-apms__item[_ngcontent-%COMP%]:not(.disabled-element):not(.hidden-enabled-element){cursor:pointer}.__ndb-apm-list-apms__item-img[_ngcontent-%COMP%]{position:absolute;width:60%;height:100%;left:20%;top:0;object-fit:contain}.moto-apple-pay-button[_ngcontent-%COMP%]{--apple-pay-button-height: 60px;--apple-pay-button-width: 100%;width:100%;height:60px;padding:0}.moto-google-pay-button[_ngcontent-%COMP%]{width:100%;height:60px;padding:0}'],changeDetection:0})}return e})();function o9(e,n){if(1&e){const t=at();S(0,"label",3)(1,"input",4),Fm("ngModelChange",function(i){ne(t);const s=x().$implicit;return function S0(e,n){const t=aw(e);return t&&e.set(n),t}(s.value,i)||(s.value=i),re(i)}),te("ngModelChange",function(){ne(t);const i=x(),s=i.$implicit,o=i.$index;return re(x(2).onChange(s,o))})("focusin",function(){ne(t);const i=x(),s=i.$implicit,o=i.$index;return re(x(2).onFocus(s,o))}),T(),ge(2,"span",5)(3,"span",6),Ce(4,"linkify"),T()}if(2&e){const t=x().$implicit;x(2);const r=Pe(0);C(),P("name","user-preference-"+t.name)("id","user-preference-"+t.name),Rm("ngModel",t.value),C(),Yt("circle","circle"===(null==r.userPreferences?null:r.userPreferences.shape))("square","square"===(null==r.userPreferences?null:r.userPreferences.shape)),C(),P("innerHTML",xt(4,8,t.text,"__ndb-settings-checkboxes-checkbox-link fz-12 fw-500 font-description"),Tr)}}function a9(e,n){1&e&&ee(0,o9,5,11,"label",3),2&e&&ie(n.$implicit.text?0:-1)}function c9(e,n){if(1&e&&(S(0,"div",1),dn(1,a9,1,1,null,null,ar),T()),2&e){const t=x();C(),fn(t.userPreferenceCheckboxes)}}function l9(e,n){1&e&&(ge(0,"p",2),Ce(1,"linkify")),2&e&&(x(),P("innerHTML",xt(1,1,Pe(0).userPreferences.text,"fz-12 fw-500 font-description"),Tr))}let HA=(()=>{class e extends Zd{constructor(t,r){super(t),this.injector=t,this.context=r,this.userPreferenceCheckboxes=[]}ngOnInit(){this.settings=this.context.data.settings,this.update(this.settings().userPreferences)}reset(){this.update(this.settings().userPreferences)}onChange(t,r){this.context.data.userProvidedInfo.update(s=>({...s,userPreferences:this.userPreferenceCheckboxes}));this.context.events.analytics.emit(new Ae(t.value?`user-preference-checkbox-${r}-check`:`user-preference-checkbox-${r}-uncheck`,{name:t.name,text:t.text}))}onFocus(t,r){this.context.events.analytics.emit(new Ae(`user-preference-checkbox-${r}-focus`,{name:t.name,text:t.text}),!0)}update(t){t?.checkboxes?.length?(this.userPreferenceCheckboxes=t.checkboxes.map(r=>({name:r.name,text:r.text,value:!!r.defaultValue})),this.context.data.userProvidedInfo.update(r=>({...r,userPreferences:this.userPreferenceCheckboxes})),this.localDetect()):this.userPreferenceCheckboxes=[]}static#e=this.\u0275fac=function(r){return new(r||e)(v(Ne),v(xe))};static#t=this.\u0275cmp=Me({type:e,selectors:[["moto-user-preferences"]],features:[me],decls:4,vars:3,consts:[[1,"__ndb-settings"],[1,"__ndb-settings-checkboxes"],[1,"__ndb-settings-text","fz-11","fw-500",3,"innerHTML"],[1,"__ndb-settings-checkboxes-checkbox","fz-11","fw-500","font-description"],["type","checkbox",1,"__ndb-settings-checkboxes-checkbox-input",3,"ngModelChange","focusin","name","id","ngModel"],[1,"__ndb-settings-checkboxes-checkbox-checkmark"],[1,"__ndb-settings-checkboxes-checkbox-text",3,"innerHTML"]],template:function(r,i){if(1&r&&(Tn(0),S(1,"div",0),ee(2,c9,3,0,"div",1)(3,l9,2,4,"p",2),T()),2&r){const s=$t(i.settings());C(2),ie(i.userPreferenceCheckboxes.length?2:-1),C(),ie(null!=s&&null!=s.userPreferences&&s.userPreferences.text?3:-1)}},dependencies:[Cc,ei,us,jo],changeDetection:0})}return e})();function u9(e,n){1&e&&(S(0,"span",4),$(1,"\xb7"),T())}function d9(e,n){if(1&e&&(S(0,"a",3),$(1),T(),ee(2,u9,2,0,"span",4)),2&e){const t=n.$implicit,r=n.$index,i=n.$count;P("href",t.href,ga),C(),ke(" ",t.text," "),C(),ie(r!==i-1?2:-1)}}function f9(e,n){if(1&e&&(S(0,"div",1),dn(1,d9,3,3,null,null,ar),T()),2&e){x(2);const t=Pe(0);C(),fn(t.links)}}function h9(e,n){1&e&&(ge(0,"p",2),Ce(1,"linkify")),2&e&&(x(2),P("innerHTML",xt(1,1,Pe(0).text,"__ndb-merchant-info-checkbox-link fz-12 fw-500 font-description"),Tr))}function p9(e,n){if(1&e&&(S(0,"div",0),ee(1,f9,3,0,"div",1)(2,h9,2,4,"p",2),T()),2&e){x();const t=Pe(0);C(),ie(null!=t.links&&t.links.length?1:-1),C(),ie(t.text?2:-1)}}let UA=(()=>{class e{constructor(t){this.context=t}ngOnInit(){this.settings=this.context.data.settings}static#e=this.\u0275fac=function(r){return new(r||e)(v(xe))};static#t=this.\u0275cmp=Me({type:e,selectors:[["moto-merchant-info"]],decls:2,vars:2,consts:[[1,".__ndb-merchant-info"],[1,"__ndb-merchant-info-links"],[1,"__ndb-merchant-info-description","fz-11","fw-500","font-description",3,"innerHTML"],["target","_blank",1,"__ndb-merchant-info-links-link","fz-12","fw-500","font-description",3,"href"],[1,"__ndb-merchant-info-links-separator","fz-12","fw-500","font-description"]],template:function(r,i){if(1&r&&(Tn(0),ee(1,p9,3,2,"div",0)),2&r){const s=$t(i.settings().merchantInfo);C(),ie(null!=s.links&&s.links.length||s.text?1:-1)}},dependencies:[jo],styles:["[_ngcontent-%COMP%]:root{--ndb-button-bg: #2c8ee8;--ndb-button-disabled-bg: rgba(201, 204, 216, .3);--ndb-button-hover-bg: #1467b4;--ndb-button-color: #fff;--ndb-card-border-color: #c9ccd8}.__ndb-merchant-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:28px;padding:0 28px 28px}@media (max-width: 768px){.__ndb-merchant-info[_ngcontent-%COMP%]{padding-bottom:14px}}.__ndb-merchant-info-links[_ngcontent-%COMP%]{display:flex;justify-content:center;flex-wrap:wrap}.__ndb-merchant-info-links-link[_ngcontent-%COMP%]{white-space:nowrap;text-decoration-line:underline}.__ndb-merchant-info-links-separator[_ngcontent-%COMP%]{margin:0 10px;white-space:nowrap}.__ndb-merchant-info-description[_ngcontent-%COMP%]{text-align:left;line-height:1.1;color:#000}"],changeDetection:0})}return e})(),$A=(()=>{class e{transform(t){return`https://cdn.motopays.com/images/${t}`}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275pipe=ht({name:"image",type:e,pure:!0})}return e})();function m9(e,n){1&e&&(ge(0,"moto-picture",3),Ce(1,"image")),2&e&&P("src",Ya(1,1,"visa-secure.svg"))}function g9(e,n){1&e&&(ge(0,"moto-picture",3),Ce(1,"image")),2&e&&P("src",Ya(1,1,"master-card-secure.svg"))}function y9(e,n){if(1&e&&(S(0,"div",0)(1,"p",1),$(2),T(),S(3,"div",2),ee(4,m9,2,3,"moto-picture",3)(5,g9,2,3,"moto-picture",3),T()()),2&e){const t=x();C(2),ke(" ",t.settings().language.transactionProtectedBy," "),C(2),ie(t.isVisaAvailable()?4:-1),C(),ie(t.isMastercardAvailable()?5:-1)}}let GA=(()=>{class e{constructor(t){this.context=t}ngOnInit(){this.settings=this.context.data.settings,this.isMastercardAvailable=ce(()=>!!this.settings().availableCardBrands?.some(t=>"mastercard"===t)),this.isVisaAvailable=ce(()=>!!this.settings().availableCardBrands?.some(t=>"visa"===t))}static#e=this.\u0275fac=function(r){return new(r||e)(v(xe))};static#t=this.\u0275cmp=Me({type:e,selectors:[["moto-protected-by"]],decls:1,vars:1,consts:[[1,"__ndb-secure"],[1,"__ndb-secure-phrase","fz-12","fw-500","font-description"],[1,"__ndb-secure-logos"],[1,"__ndb-secure-logos-logo",3,"src"]],template:function(r,i){1&r&&ee(0,y9,6,3,"div",0),2&r&&ie(i.isMastercardAvailable()||i.isVisaAvailable()?0:-1)},dependencies:[Ao,$A],styles:["[_ngcontent-%COMP%]:root{--ndb-button-bg: #2c8ee8;--ndb-button-disabled-bg: rgba(201, 204, 216, .3);--ndb-button-hover-bg: #1467b4;--ndb-button-color: #fff;--ndb-card-border-color: #c9ccd8}.__ndb-secure[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;gap:10px}.__ndb-secure-phrase[_ngcontent-%COMP%]{color:#000}.__ndb-secure-logos[_ngcontent-%COMP%]{display:flex;justify-content:center;gap:2px}.__ndb-secure-logos-logo[_ngcontent-%COMP%]{height:40px;width:max-content}"],changeDetection:0})}return e})(),zA=(()=>{class e{constructor(t){this.context=t}ngOnInit(){this.settings=this.context.data.settings}static#e=this.\u0275fac=function(r){return new(r||e)(v(xe))};static#t=this.\u0275cmp=Me({type:e,selectors:[["moto-no-payments"]],decls:2,vars:1,consts:[[1,"__ndb-no-methods"]],template:function(r,i){1&r&&(S(0,"h2",0),$(1),T()),2&r&&(C(),ke(" ",i.settings().language.noAvailablePaymentMethods,"\n"))},styles:[".__ndb-no-methods[_ngcontent-%COMP%]{text-align:center}"],changeDetection:0})}return e})(),_9=(()=>{class e{constructor(){this.shape="circle",this.invalid=!1,this.inputFocus=new ve,this.value=se("unchecked"),this.disabled=se(!1),this.onChange=()=>{},this.onTouched=()=>{}}writeValue(t){this.value.set(t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled.set(t)}onValueChanged(t){const r=t?"checked":"unchecked";this.value.set(r),this.onChange(r)}onBlur(){this.onTouched()}onInputFocus(t){this.inputFocus.emit(t)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=Me({type:e,selectors:[["moto-checkbox"]],inputs:{id:"id",text:"text",shape:"shape",invalid:"invalid"},outputs:{inputFocus:"inputFocus"},features:[Oe([{provide:Nn,useExisting:De(()=>e),multi:!0}])],decls:5,vars:16,consts:[[1,"__ndb-checkbox","fz-11","fw-500","font-description"],["type","checkbox",1,"__ndb-checkbox-input",3,"ngModelChange","focusin","blur","name","id","disabled","ngModel"],[1,"__ndb-checkbox-checkmark"],[1,"__ndb-checkbox-text",3,"innerHTML"]],template:function(r,i){1&r&&(S(0,"label",0)(1,"input",1),te("ngModelChange",function(o){return i.onValueChanged(o)})("focusin",function(o){return i.onInputFocus(o)})("blur",function(){return i.onBlur()}),T(),ge(2,"span",2)(3,"span",3),Ce(4,"linkify"),T()),2&r&&(C(),P("name",i.id)("id",i.id)("disabled",i.disabled())("ngModel","checked"===i.value()),C(),Yt("circle","circle"===i.shape)("square","square"===i.shape)("intermediate","intermediate"===i.value())("invalid",i.invalid),C(),P("innerHTML",xt(4,13,i.text,"__ndb-checkbox-link fz-12 fw-500 font-description"),Tr))},dependencies:[Cc,ei,us,jo],changeDetection:0})}return e})();const v9=(e,n)=>n.id;function C9(e,n){if(1&e){const t=at();S(0,"moto-checkbox",5),te("inputFocus",function(){return ne(t),re(x(2).onMasterFocus())})("ngModelChange",function(i){return ne(t),re(x(2).onMasterChange(i))}),T()}if(2&e){const t=x(2);P("shape",t.masterShape)("text",t.masterText)("ngModel",t.masterState())}}function b9(e,n){if(1&e){const t=at();S(0,"moto-checkbox",7),te("inputFocus",function(){ne(t);const i=x(),s=i.$implicit,o=i.$index;return re(x(2).onCheckboxFocus(s,o))})("ngModelChange",function(i){ne(t);const s=x(),o=s.$implicit,a=s.$index;return re(x(2).onCheckboxChange(o,a,i))}),T()}if(2&e){const t=x().$implicit,r=x(2);Yt("underMaster",r.isMaster),P("invalid",r.showError()&&t.isRequired&&!t.value)("shape",t.shape)("text",t.text)("id",t.id)("ngModel",t.value?"checked":"unchecked")}}function E9(e,n){1&e&&ee(0,b9,1,7,"moto-checkbox",6),2&e&&ie(n.$implicit?0:-1)}function w9(e,n){if(1&e&&(S(0,"div",1),ee(1,C9,1,3,"moto-checkbox",4),dn(2,E9,1,1,null,null,v9),T()),2&e){const t=x();C(),ie(t.isMaster?1:-1),C(),fn(t.checkboxes())}}function D9(e,n){if(1&e&&(S(0,"p",2),Ce(1,"linkify"),$(2),T()),2&e){const t=x();P("innerHTML",xt(1,2,t.footerText,"fz-12 fw-500 font-description"),Tr),C(2),ke(" ",t.footerText," ")}}function S9(e,n){if(1&e&&(S(0,"span",3),$(1),T()),2&e){const t=x();P("@ANTransform",void 0),C(),ke(" ",t.errorText," ")}}let T9=(()=>{class e{constructor(){this.provideErrors=_P(!1),this.errorText="",this.isMaster=!1,this.masterText="",this.masterShape="circle",this.checkboxes=se([]),this.changed=new ve,this.masterFocus=new ve,this.masterClick=new ve,this.checkboxFocus=new ve,this.isValidChanged=new ve,this.masterState=ce(()=>{if(!this.isMaster)return"unchecked";const t=this.checkboxes();return t.every(r=>r.value)?"checked":t.some(r=>r.value)?"intermediate":"unchecked"}),this.showError=ce(()=>this.provideErrors()&&this.checkboxes().some(t=>t.isRequired&&!t.value))}set checkboxesInput(t){this.checkboxes.set([...t])}onCheckboxChange(t,r,i){const s=[...this.checkboxes()];s[r]={...s[r],value:"checked"===i},this.checkboxes.set(s),this.changed.emit({checkboxes:s,concrete:{checkbox:{...t,value:"checked"===i},index:r}})}onMasterChange(t){const r=this.checkboxes().map(i=>({...i,value:"checked"===t}));this.checkboxes.set(r),this.changed.emit({checkboxes:r}),this.masterClick.emit(t)}onCheckboxFocus(t,r){this.checkboxFocus.emit({checkbox:t,index:r})}onMasterFocus(){this.masterFocus.emit()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=Me({type:e,selectors:[["moto-checkbox-container"]],inputs:{provideErrors:[1,"provideErrors"],errorText:"errorText",footerText:"footerText",isMaster:"isMaster",masterText:"masterText",masterShape:"masterShape",checkboxesInput:[0,"checkboxes","checkboxesInput"]},outputs:{changed:"changed",masterFocus:"masterFocus",masterClick:"masterClick",checkboxFocus:"checkboxFocus",isValidChanged:"isValidChanged"},decls:4,vars:3,consts:[[1,"__ndb-settings"],[1,"__ndb-settings-checkboxes"],[1,"__ndb-settings-text","fz-11","fw-500",3,"innerHTML"],[1,"fz-14","fw-500","font-error"],[3,"shape","text","ngModel"],[3,"inputFocus","ngModelChange","shape","text","ngModel"],[3,"underMaster","invalid","shape","text","id","ngModel"],[3,"inputFocus","ngModelChange","invalid","shape","text","id","ngModel"]],template:function(r,i){1&r&&(S(0,"div",0),ee(1,w9,4,1,"div",1)(2,D9,3,5,"p",2)(3,S9,2,2,"span",3),T()),2&r&&(C(),ie(i.checkboxes().length?1:-1),C(),ie(i.footerText?2:-1),C(),ie(i.showError()?3:-1))},dependencies:[ei,us,_9,jo],data:{animation:[Cd()]},changeDetection:0})}return e})(),qA=(()=>{class e{constructor(t){this.context=t,this.checkboxes=se([]),this.hasInvalidRequired=ce(()=>this.checkboxes().some(r=>r.isRequired&&!r.value))}ngOnInit(){this.settings=this.context.data.settings,this.componentState=this.context.componentsStates.master,this.showError=ce(()=>{const t=this.componentState(),r=this.hasInvalidRequired();return t.canShowError&&r}),this.update()}reset(){this.update()}onChanged(t){if(t.concrete){const{checkbox:r,index:i}=t.concrete;this.checkboxes.update(s=>s.map(o=>o.id===r.id?{...o,value:r.value}:o)),this.emitAnalytics(r,i)}else{const r=t.checkboxes;this.checkboxes.update(i=>i.map(s=>{const o=r.find(a=>a.id===s.id);return o?{...s,value:o.value}:s}))}this.updateContextData(),this.updateComponentState()}onFocus(t,r){this.context.events.analytics.emit(new Ae(`${"user-preferences"===t.type?"user-preference-checkbox":"charge-term-checkbox"}-${r}-focus`,{name:t.id,text:t.text??""}),!0)}onMasterFocus(){this.context.events.analytics.emit(new Ae("master-focus"),!0)}onMasterClick(){this.context.events.analytics.emit(new Ae("master-click"))}emitAnalytics(t,r){this.context.events.analytics.emit(new Ae(`${"user-preferences"===t.type?"user-preference-checkbox":"charge-term-checkbox"}-${r}-${t.value?"check":"uncheck"}`,{name:t.id,text:t.text??""}))}update(){const t=this.settings(),r=t.chargeTerms?.checkboxes?.map((s,o)=>({id:"charge-term-"+o,initId:o.toString(),text:s,value:!1,isRequired:!0,shape:t.chargeTerms?.shape??"circle",type:"charge-terms"}))??[],i=t.userPreferences?.checkboxes?.map(s=>({id:"user-preference-"+s.name,initId:s.name,text:s.text,value:!!s.defaultValue,isRequired:!1,shape:t.userPreferences?.shape??"square",type:"user-preferences"}))??[];this.checkboxes.set([...r,...i]),this.updateContextData(),this.updateComponentState()}updateComponentState(){const t=this.checkboxes(),i=!this.hasInvalidRequired(),s=!!this.settings().requiredFieldsBehavior?.markAsInvalidUntilCorrect,o=t.every(a=>!a.isRequired||a.value);this.componentState.update(a=>{let c={...a},l=!1;return a.filled!==o&&(c.filled=o,l=!0),!s&&i&&a.canShowError&&(c.canShowError=!1,l=!0),a.isValid!==i&&(c.isValid=i,l=!0),l?c:a})}updateContextData(){this.context.data.userProvidedInfo.update(t=>({...t,userPreferences:this.checkboxes().filter(r=>"user-preferences"===r.type).map(r=>({name:r.initId,value:r.value}))}))}static#e=this.\u0275fac=function(r){return new(r||e)(v(xe))};static#t=this.\u0275cmp=Me({type:e,selectors:[["moto-merged-checkboxes"]],decls:4,vars:7,consts:[[3,"changed","checkboxFocus","masterFocus","masterClick","checkboxes","isMaster","masterShape","masterText","provideErrors","footerText","errorText"]],template:function(r,i){if(1&r){const s=at();Tn(0)(1)(2),S(3,"moto-checkbox-container",0),te("changed",function(a){return ne(s),re(i.onChanged(a))})("checkboxFocus",function(a){return ne(s),re(i.onFocus(a.checkbox,a.index))})("masterFocus",function(){return ne(s),re(i.onMasterFocus())})("masterClick",function(){return ne(s),re(i.onMasterClick())}),T()}if(2&r){let s,o,a,c;const l=i.settings(),u=null!==(s=null==l.chargeTerms?null:l.chargeTerms.text)&&void 0!==s?s:null==l||null==l.userPreferences?null:l.userPreferences.text,d=null!==(o=null==l.language||null==l.language.errors?null:l.language.errors.notCheckedCheckboxes)&&void 0!==o?o:"";C(3),P("checkboxes",i.checkboxes())("isMaster",!0)("masterShape",null!==(a=null==l.master?null:l.master.shape)&&void 0!==a?a:"square")("masterText",null!==(c=null==l.master?null:l.master.text)&&void 0!==c?c:"")("provideErrors",i.showError())("footerText",u)("errorText",d)}},dependencies:[T9],changeDetection:0})}return e})(),fs=(()=>{class e{mapApms(t){return t.map(r=>({...r}))}mapPaymentRequest(t,r,i,s){let o=t.details;r.userPreferences?.length&&(o=r.userPreferences.reduce((l,u)=>(l[u.name]=u.value,l),o||{}));const a={amount:t.amount,amountType:this.mapAmountType(t.amountType),tax:t.tax,currency:t.currency,description:t.description?.substring(0,127),details:o?JSON.stringify(o):void 0,type:this.mapOrderType(t.orderType)},c={id:t.userId,email:t.email,phoneNumber:r.phoneNumber??t.phoneNumber,ipAddress:t.ipAddress,deviceInfo:s,billingAddress:t.billingAddress};return{id:t.paymentId,initiator:this.mapInitiatorType(t.initiator)??"Customer",returnUrl:t.returnUrl,webhookUrl:t.webhookUrl,order:a,payer:c,requisites:this.mapRequisites(r.requisites),signature:t.signature,rejectionPreferences:{showResolvingTips:i.isProblemTipsListVisible??!1}}}mapComponents(t,r){return t.map(i=>{switch(i){case"available-card-brands":return{component:BM,visible:r.availableCardBrands};case"no-methods":return{component:zA,visible:r.noMethods};case"card-list":return{component:Uy,visible:r.cardList};case"requisites":return{component:RA,visible:r.cardForm};case"phone-number":return{component:FA,visible:r.additionalForm};case"charge-terms":return{component:LA,visible:r.chargeTerms};case"pay-button":return{component:BA,visible:r.payButton};case"apm-list":return{component:jA,visible:r.apmList};case"user-preferences":return{component:HA,visible:r.userPreferences};case"merchant-info":return{component:UA,visible:r.merchantInfo};case"protected-by":return{component:GA,visible:r.protectedBy};case"master":return{component:qA,visible:r.master}}})}mapInterfaceSettingsToDomain(t){let r=t.languageSettings.code;t.languageSettings.languages[r]||(r="en-US");const i=t.languageSettings.languages[r],s=t.chargeTerms?{text:t.chargeTerms.text?t.chargeTerms.text[r]:void 0,checkboxes:t.chargeTerms.checkboxes?.length?t.chargeTerms.checkboxes.map(l=>l[r]).filter(l=>!!l):void 0,shape:t.chargeTerms.shape}:void 0,o=t.userPreferences?{text:t.userPreferences.text?t.userPreferences.text[r]:void 0,checkboxes:t.userPreferences.checkboxes?.length?t.userPreferences.checkboxes.map(l=>({name:l.name,defaultValue:l.defaultValue,text:l.text[r]})).filter(l=>!!l.text):void 0,shape:t.userPreferences.shape}:void 0,a=t.merchantInfo?{links:t.merchantInfo.links?.length?t.merchantInfo.links.map(l=>({href:l.href,text:l.text[r]})).filter(l=>!!l.text):void 0,text:t.merchantInfo.text?t.merchantInfo.text[r]:void 0}:void 0,c=t.master?{shape:t.master?.shape,text:t.master?.text?t.master.text[r]:void 0}:void 0;return{availableCardBrands:t.availableCardBrands,closePaymentRedirect:t.closePaymentRedirect,isTaxVisible:t.isTaxVisible,components:t.components,events:t.events,isCloseButtonVisible:t.isCloseButtonVisible,isHeaderVisible:t.isHeaderVisible,isProblemTipsListVisible:t.isProblemTipsListVisible,isSignatureRequired:t.isSignatureRequired,language:i??LM,requiredFieldsBehavior:{buttonStateUntilFilled:t.requiredFieldsBehavior.buttonStateUntilFilled,markAsInvalidUntilCorrect:t.requiredFieldsBehavior.markAsInvalidUntilCorrect,showStars:t.requiredFieldsBehavior.showStars},resultComponentsStructure:t.resultComponentsStructure,urls:t.urls,chargeTerms:s,userPreferences:o,merchantInfo:a,apmsCollapse:!!t.apmsCollapse,paymentFlow:{tokenizeCard:t.paymentFlow?.tokenizeCard??!0,type:t.paymentFlow?.type??"default"},master:c,googlePay:{allowedAuthMethods:t.googlePay?.allowedAuthMethods??["CRYPTOGRAM_3DS","PAN_ONLY"],button:t.googlePay?.button??{buttonSizeMode:"fill",buttonRadius:4}}}}mapRequisites(t){switch(t.type){case"apm":const r=t.value;return{type:r.name,paymentToken:r.token};case"existing-card":const i=t.value;return{anchor:i.rebill,type:"rebill",cvv:i.cvv};case"card":const s=t.value;return{cardHolder:s.holder,cardNumber:s.number,expiration:s.expiration,cvv:s.cvv,type:"card"};default:throw new Error("Unknown requisites type")}}mapInitiatorType(t){if(t){if("customer"===t)return"Customer";if("merchant"===t)return"Merchant";throw new Error("Unknown payment initiator type")}}mapAmountType(t){if(t){if("gross"===t)return"Gross";if("gross-without-gst"===t)return"GrossWithoutGst";if("net"===t)return"Net";throw new Error("Unknown amount type")}}mapOrderType(t){if(t){if("free-trial"===t)return"FreeTrial";if("regular"===t)return"Regular";if("gems"===t)return"Gems";throw new Error("Unknown order type")}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})(),WA=(()=>{class e{constructor(t){this.mapper=t}preparePaymentOrError(t){let r=FM(t);return this.validatePayment(r)||(r.userAuthToken&&!/^[^\s]+\s+/i.test(r.userAuthToken)&&(r.userAuthToken=`Bearer ${r.userAuthToken}`),r.currency&&(r.currency=r.currency.toUpperCase()),r.amount=+r.amount,r.tax&&(r.tax=+r.tax),r)}prepareSettingsOrError(t){let r=FM(t);const i=this.validateSettings(r);if(i)return i;const s=w5(S5,r);return this.mapper.mapInterfaceSettingsToDomain(s)}validateModelsCompatibility(t,r){return!t.signature&&r.isSignatureRequired?"not-exist-signature":t.userAuthToken||"default"===r.paymentFlow.type?void 0:"not-exist-auth-for-payment-flow"}validatePayment(t){return t?t.userId?t.paymentId?t.merchantId?null==t.amount||null==t.amount?"not-exist-amount":t.email?t.currency?void 0:"not-exist-currency":"not-exist-email":"not-exist-merchant-id":"not-exist-payment-id":"not-exist-customer-id":"not-exist-payment"}validateSettings(t){return t?t.urls&&t.urls.billingProfiles&&t.urls.processing?t.components?.includes("master")&&t.components?.some(r=>"user-preferences"===r||"charge-terms"===r)?"master-conflict":void 0:"invalid-urls":"not-exist-settings"}static#e=this.\u0275fac=function(r){return new(r||e)(k(fs))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})();function M9(e,n){if(1&e){const t=at();S(0,"div",2)(1,"i",3),te("click",function(){return ne(t),re(x().close())}),$(2,"close"),T()()}if(2&e){let t;x();const r=Pe(0);At("data-tooltip",null!==(t=null==r||null==r.language?null:r.language.close)&&void 0!==t?t:"Close")}}let ZA=(()=>{class e{constructor(t){this.context=t}ngOnInit(){this.settings=this.context.data.settings}close(){this.context.events.close.emit()}static#e=this.\u0275fac=function(r){return new(r||e)(v(xe))};static#t=this.\u0275cmp=Me({type:e,selectors:[["moto-header"]],decls:5,vars:3,consts:[[1,"__ndb-header"],[1,"__ndb-header-title","fz-24","fw-700"],[1,"__ndb-header-close"],[1,"material-icons","pointer",3,"click"]],template:function(r,i){if(1&r&&(Tn(0),S(1,"header",0)(2,"h6",1),$(3),T(),ee(4,M9,3,1,"div",2),T()),2&r){let s,o;const a=$t(i.settings());C(3),ke(" ",null!==(s=null==a||null==a.language?null:a.language.header)&&void 0!==s?s:"Checkout"," "),C(),ie(null===(o=null==a?null:a.isCloseButtonVisible)||void 0===o||o?4:-1)}},styles:["[_ngcontent-%COMP%]:root{--ndb-button-bg: #2c8ee8;--ndb-button-disabled-bg: rgba(201, 204, 216, .3);--ndb-button-hover-bg: #1467b4;--ndb-button-color: #fff;--ndb-card-border-color: #c9ccd8}.__ndb-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:28px;border-bottom:1px solid #c9ccd8}@media (max-width: 768px){.__ndb-header[_ngcontent-%COMP%]{padding:20px}}.__ndb-header-close[_ngcontent-%COMP%]{display:flex;align-items:center}"],changeDetection:0})}return e})(),YA=(()=>{class e{constructor(){this.shadow=!0}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=Me({type:e,selectors:[["moto-loader"]],hostVars:1,hostBindings:function(r,i){2&r&&_u("@ANFade",i.fadeAnimation)},inputs:{shadow:"shadow"},decls:3,vars:5,consts:[[1,"__ndb-loader"],["alt","spinner",1,"__ndb-loader-picture",3,"src"]],template:function(r,i){1&r&&(S(0,"div",0),ge(1,"moto-picture",1),Ce(2,"image"),T()),2&r&&(Yt("shadow",i.shadow),C(),P("src",Ya(2,3,"spinner-small.gif")))},dependencies:[Ao,$A],styles:[".__ndb-loader[_ngcontent-%COMP%]{border-radius:4px}.__ndb-loader[_ngcontent-%COMP%]:not(.shadow){height:40px;width:40px}.__ndb-loader.shadow[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:100%;width:100%;background-color:#fff9;display:flex}.__ndb-loader.shadow[_ngcontent-%COMP%] .__ndb-loader-picture[_ngcontent-%COMP%]{margin:auto;height:40px;width:40px}"],data:{animation:[B5({animationName:"ANFade",fromStyles:{opacity:"0"},toStyles:{opacity:"1"}})]},changeDetection:0})}return e})();function I9(e,n){1&e&&pi(0)}function A9(e,n){1&e&&ee(0,I9,1,0,"ng-container",0),2&e&&P("ngComponentOutlet",x().$implicit.component)}function x9(e,n){1&e&&ee(0,A9,1,1,"ng-container"),2&e&&ie(n.$implicit.visible()?0:-1)}function N9(e,n){1&e&&ge(0,"moto-loader")}let k9=(()=>{class e{constructor(t,r,i){this.context=t,this.mapper=r,this.refreshService=i,this.components=[]}ngOnInit(){this.isLoaderShown=this.context.computed.isLoading,this.refreshService.refreshPaymentSystems(),this.refreshService.refreshExistingCards(),this.components=this.mapper.mapComponents(this.context.data.settings().components,this.context.visibility)}static#e=this.\u0275fac=function(r){return new(r||e)(v(xe),v(fs),v(vy))};static#t=this.\u0275cmp=Me({type:e,selectors:[["moto-pay-form"]],decls:3,vars:1,consts:[[4,"ngComponentOutlet"]],template:function(r,i){1&r&&(dn(0,x9,1,1,null,null,bD),ee(2,N9,1,0,"moto-loader")),2&r&&(fn(i.components),C(2),ie(i.isLoaderShown()?2:-1))},dependencies:[YA,td],styles:["[_nghost-%COMP%]{display:flex;gap:28px;flex-direction:column}"],changeDetection:0})}return e})();const KA={message:"You cannot make a payment!",errors:{"not-exist-payment":'Input parameter "payment" is required in the payment model',"not-exist-customer-id":'The field "userId" is required in the payment model',"not-exist-payment-id":"The field paymentId is required in the payment model","not-exist-settings":'Input parameter "settings" is required in the payment model',"not-exist-signature":'The field "signature" is configured as required in the payment model',"not-exist-amount":'The field "amount" is required in the payment model',"not-exist-currency":'The field "currency" is required in the payment model',"not-exist-email":'The field "email" is required in the payment model',"not-exist-merchant-id":'The field "merchant id" is required in the payment model',"invalid-urls":'The field "urls" is required and processing/billingProfiles must to be set',"not-exist-auth-for-payment-flow":'The field "userAuthToken" is required for selected payment flow',"master-conflict":'Components cannot contain a "master" together with "user-preferences"/"charge-terms" at the same time'}};let P9=(()=>{class e{constructor(t){this.context=t}ngOnInit(){const t=this.context.data.state().payload;this.error=KA.errors[t.error],this.message=KA.message}static#e=this.\u0275fac=function(r){return new(r||e)(v(xe))};static#t=this.\u0275cmp=Me({type:e,selectors:[["moto-invalid-pay-form"]],decls:7,vars:2,consts:[[1,"__ndb-error-content"],[1,"material-icons-round","__ndb-error-content-icon"],[1,"__ndb-error-content-header","fz-24","fw-700"],[1,"__ndb-error-content-description","fz-14","fw-500","font-center"]],template:function(r,i){1&r&&(S(0,"div",0)(1,"i",1),$(2,"cancel"),T(),S(3,"h6",2),$(4),T(),S(5,"p",3),$(6),T()()),2&r&&(C(4),gt(i.error),C(2),ke(" ",i.message," "))},styles:[".__ndb-error-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:10px;padding:28px}@media (max-width: 768px){.__ndb-error-content[_ngcontent-%COMP%]{padding:14px 20px}}.__ndb-error-content-icon[_ngcontent-%COMP%]{font-size:95px;color:#000;margin-bottom:10px}.__ndb-error-content-header[_ngcontent-%COMP%], .__ndb-error-content-description[_ngcontent-%COMP%]{width:100%;text-align:center}"],changeDetection:0})}return e})(),O9=(()=>{class e{constructor(t,r,i,s){this.context=t,this.processing=r,this.sessionStorage=i,this.windowService=s}ngOnInit(){this.settings=this.context.data.settings,this.context.data.state().payload.observable.subscribe({next:r=>this.afterPay(r),error:r=>this.showResult(void 0,r)})}afterPay(t){"needAction"===t.payment?.state?(this.handleConfirmation(t.action),this.waitingPaymentCompleted(t)):(this.showResult(t),this.windowService.closeWindow())}handleConfirmation(t){switch(t.name){case"3ds":this.windowService.threeDsRedirect(t.data);break;case"redirect":this.windowService.redirect(t.data);break;default:throw new Error("Unexpected action name")}}waitingPaymentCompleted(t){(function k6(e,n,t){return e.pipe(Pt(r=>{if(n(r))return r;throw new Error(pI)}),function N6(e=1/0){let n;n=e&&"object"==typeof e?e:{count:e};const{count:t=1/0,delay:r,resetOnSuccess:i=!1}=n;return t<=0?Af:gn((s,o)=>{let c,a=0;const l=()=>{let u=!1;c=s.subscribe(sn(o,d=>{i&&(a=0),o.next(d)},void 0,d=>{if(a++<t){const f=()=>{c?(c.unsubscribe(),c=null,l()):u=!0};if(null!=r){const h="number"==typeof r?fI(r):dr(r(d,a)),p=sn(o,()=>{p.unsubscribe(),f()},()=>{o.complete()});h.subscribe(p)}else f()}else o.error(d)})),u&&(c.unsubscribe(),c=null,l())};l()})}({delay:r=>r.message==pI?fI(t):hy(()=>r)}))})(this.processing.getPaymentInfo(t.payment.paymentId),i=>"needAction"!=i.payment.state,1500).subscribe({next:i=>this.showResult(i),error:i=>{this.showResult(void 0,i),this.context.events.error.emit(i)}})}showResult(t,r){const i=this.settings();i.closePaymentRedirect&&this.windowService.closeWindow(),i.apmsCollapse&&t&&"rejected"===t.payment.state&&"card"===t.payment.info.paymentType&&this.sessionStorage.setItem(pn.keys.apmsCollapse,!1),this.context.data.state.set({type:"result",payload:{result:t,error:r}}),t&&this.context.events.paid.emit(t)}static#e=this.\u0275fac=function(r){return new(r||e)(v(xe),v(Fo),v(Qd),v(Kd))};static#t=this.\u0275cmp=Me({type:e,selectors:[["moto-processing"]],decls:12,vars:1,consts:[[1,"waiting"],[1,"section"],[1,"waiting__title"],[1,"section__content","__ndb-spinner-container"],[1,"spinner"],[1,"lds-ring"],[1,"spinner__extra"]],template:function(r,i){1&r&&(S(0,"div",0)(1,"div",1)(2,"h2",2),$(3),T(),S(4,"div",3)(5,"div",4)(6,"div",5),ge(7,"div")(8,"div")(9,"div")(10,"div"),T(),ge(11,"div",6),T()()()()),2&r&&(C(3),gt(i.settings().language.paymentProcessing))},styles:[".waiting__title[_ngcontent-%COMP%]{position:relative;z-index:101;font-family:Poppins,Helvetica,Arial,sans-serif;color:#29304d;font-size:16px;margin:0;text-align:center;transform:translateY(108px)}.__ndb__moto-modal-backdrop[_ngcontent-%COMP%]{background-color:#e5e5e5!important}.__ndb__moto-modal[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{margin:0}.section__content[_ngcontent-%COMP%]{margin:0 auto}.spinner[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;height:330px}.spinner_small[_ngcontent-%COMP%]{height:70px}.spinner_extra[_ngcontent-%COMP%]{height:550px}.lds-ring[_ngcontent-%COMP%]{display:inline-block;position:relative;width:80px;height:80px}.lds-ring[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{box-sizing:border-box;display:block;position:absolute;width:64px;height:64px;margin:8px;border:8px solid #6936d3;border-radius:50%;animation:_ngcontent-%COMP%_lds-ring 1.2s cubic-bezier(.5,0,.5,1) infinite;border-color:#6936d3 transparent transparent transparent}.lds-ring[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(1){animation-delay:-.45s}.lds-ring[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(2){animation-delay:-.3s}.lds-ring[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(3){animation-delay:-.15s}@keyframes _ngcontent-%COMP%_lds-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"],changeDetection:0})}return e})();function R9(e,n){1&e&&pi(0)}function F9(e,n){1&e&&ee(0,R9,1,0,"ng-container",5),2&e&&P("ngComponentOutlet",x().$implicit.component)}function L9(e,n){1&e&&ee(0,F9,1,1,"ng-container"),2&e&&ie(n.$implicit.visible()?0:-1)}function V9(e,n){if(1&e&&(S(0,"p",3),$(1),T()),2&e){const t=x();C(),ke(" ",t.resultModel.description," ")}}function B9(e,n){if(1&e&&(S(0,"li",6)(1,"p",7),$(2),T()()),2&e){const t=n.$implicit;C(2),ke(" ",t," ")}}function j9(e,n){if(1&e&&(S(0,"ul",4),dn(1,B9,3,1,"li",6,ar),T()),2&e){const t=x();C(),fn(null==t.paymentResult.payment.rejectionDetails?null:t.paymentResult.payment.rejectionDetails.problemSolvingTips)}}function H9(e,n){1&e&&pi(0)}function U9(e,n){1&e&&ee(0,H9,1,0,"ng-container",5),2&e&&P("ngComponentOutlet",x().$implicit.component)}function $9(e,n){1&e&&ee(0,U9,1,1,"ng-container"),2&e&&ie(n.$implicit.visible()?0:-1)}let G9=(()=>{class e{constructor(t,r){this.context=t,this.mapper=r,this.aboveComponents=[],this.belowComponents=[]}ngOnInit(){const t=this.context.data.state().payload;this.paymentResult=t.result,this.error=t.error,this.settings=this.context.data.settings,this.resultModel=this.getResultModel(),this.initAdditionalComponents()}getResultModel(){const t=this.settings().language;if(!this.paymentResult||this.error)return{icon:"cancel",title:t.paymentResult.failure.main,description:t.paymentResult.failure.paymentFailed};switch(this.paymentResult.payment.state){case"completed":return{icon:"check_circle",description:void 0,title:t.paymentResult.success};case"rejected":return{icon:"cancel",title:t.paymentResult.failure.main,description:t.paymentResult.failure.paymentFailed};default:throw new Error("unknown result")}}initAdditionalComponents(){const t=this.settings().resultComponentsStructure;t.aboveResult.length&&(this.aboveComponents=this.mapper.mapComponents(t.aboveResult,this.context.visibility)),t.belowResult.length&&(this.belowComponents=this.mapper.mapComponents(t.belowResult,this.context.visibility))}static#e=this.\u0275fac=function(r){return new(r||e)(v(xe),v(fs))};static#t=this.\u0275cmp=Me({type:e,selectors:[["moto-result"]],decls:11,vars:4,consts:[[1,"__ndb-result"],[1,"material-icons-round","__ndb-result-icon"],[1,"__ndb-result-header","fz-24","fw-700"],[1,"__ndb-result-description","fz-14","fw-500","font-center"],[1,"__ndb-result-tips"],[4,"ngComponentOutlet"],[1,"__ndb-result-tips-tip"],[1,"__ndb-result-tips-tip-text","fz-11","fw-500","font-center"]],template:function(r,i){1&r&&(dn(0,L9,1,1,null,null,ar),S(2,"div",0)(3,"i",1),$(4),T(),S(5,"h6",2),$(6),T(),ee(7,V9,2,1,"p",3)(8,j9,3,0,"ul",4),T(),dn(9,$9,1,1,null,null,ar)),2&r&&(fn(i.aboveComponents),C(4),gt(i.resultModel.icon),C(2),gt(i.resultModel.title),C(),ie(i.resultModel.description?7:-1),C(),ie(i.paymentResult&&i.settings().isProblemTipsListVisible&&null!=i.paymentResult.payment.rejectionDetails&&null!=i.paymentResult.payment.rejectionDetails.problemSolvingTips&&i.paymentResult.payment.rejectionDetails.problemSolvingTips.length?8:-1),C(),fn(i.belowComponents))},dependencies:[td],styles:["[_nghost-%COMP%]{display:flex;gap:28px;flex-direction:column}.__ndb-result[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:10px}@media (max-width: 768px){.__ndb-result[_ngcontent-%COMP%]{padding:14px 20px}}.__ndb-result-icon[_ngcontent-%COMP%]{font-size:95px;color:#000;margin-bottom:10px}.__ndb-result-header[_ngcontent-%COMP%], .__ndb-result-description[_ngcontent-%COMP%]{width:100%;text-align:center}.__ndb-result-tips[_ngcontent-%COMP%]{gap:5px;padding-inline-start:0px}.__ndb-result-tips-tip[_ngcontent-%COMP%]{list-style-type:disc}.__ndb-result-tips-tip-text[_ngcontent-%COMP%]{width:100%;text-align:left}"],changeDetection:0})}return e})();function z9(e,n){1&e&&pi(0)}function q9(e,n){1&e&&ee(0,z9,1,0,"ng-container",2),2&e&&P("ngComponentOutlet",x().$implicit.component)}function W9(e,n){1&e&&ee(0,q9,1,1,"ng-container"),2&e&&ie(n.$implicit.visible()?0:-1)}function Z9(e,n){1&e&&pi(0)}function Y9(e,n){1&e&&ee(0,Z9,1,0,"ng-container",2),2&e&&P("ngComponentOutlet",x().$implicit.component)}function K9(e,n){1&e&&ee(0,Y9,1,1,"ng-container"),2&e&&ie(n.$implicit.visible()?0:-1)}let Q9=(()=>{class e{constructor(t,r){this.context=t,this.mapper=r,this.aboveComponents=[],this.belowComponents=[],this.confirmed=se(!1)}ngOnInit(){this.settings=this.context.data.settings,this.initAdditionalComponents(),setTimeout(()=>{this.onClick()},6e4)}onClick(){this.confirmed()||(this.context.data.state().payload.resolvePromise(),this.confirmed.set(!0))}initAdditionalComponents(){const t=this.settings().resultComponentsStructure;t.aboveResult.length&&(this.aboveComponents=this.mapper.mapComponents(t.aboveResult,this.context.visibility)),t.belowResult.length&&(this.belowComponents=this.mapper.mapComponents(t.belowResult,this.context.visibility))}static#e=this.\u0275fac=function(r){return new(r||e)(v(xe),v(fs))};static#t=this.\u0275cmp=Me({type:e,selectors:[["moto-confirmation"]],decls:7,vars:2,consts:[[1,"__ndb-confirmation"],["id","moto-confirmation",1,"__ndb-pay-btn","button-submit",3,"click","disabled"],[4,"ngComponentOutlet"]],template:function(r,i){1&r&&(dn(0,W9,1,1,null,null,ar),S(2,"div",0)(3,"button",1),te("click",function(){return i.onClick()}),$(4),T()(),dn(5,K9,1,1,null,null,ar)),2&r&&(fn(i.aboveComponents),C(3),P("disabled",i.confirmed()),C(),gt(i.settings().language.confirmPayment),C(),fn(i.belowComponents))},dependencies:[td],styles:[".__ndb-confirmation[_ngcontent-%COMP%]{padding:56px 0;text-align:center}"],changeDetection:0})}return e})();function X9(e,n){1&e&&ge(0,"moto-header")}function J9(e,n){1&e&&ge(0,"moto-pay-form")}function eq(e,n){1&e&&ge(0,"moto-invalid-pay-form")}function tq(e,n){1&e&&ge(0,"moto-processing")}function nq(e,n){1&e&&ge(0,"moto-result")}function rq(e,n){1&e&&ge(0,"moto-confirmation")}function iq(e,n){}let sq=(()=>{class e{constructor(t,r,i,s){this.context=t,this.dataHandler=r,this.sessionStorage=i,this.toastr=s,this.state=this.context.data.state,this.closeEvent=t.events.close.emitter,this.paidEvent=t.events.paid.emitter,this.analyticsEvent=t.events.analytics.emitter,this.error=t.events.error.emitter,$u(()=>{this.context.computed.isLoading()?this.context.events.analytics.emit(new Ae("init-start")):this.context.events.analytics.emit(new Ae("loading-finish"))})}ngOnInit(){this.closeEvent=this.context.events.close.emitter,this.analyticsEvent=this.context.events.analytics.emitter,this.paidEvent=this.context.events.paid.emitter,this.error=this.context.events.error.emitter,b5().subscribe(t=>{this.context.data.deviceInfo.set(t)}),this.settingsSignal=ce(()=>this.context.data.settings())}ngOnChanges(t){if(t.payment){const r=this.dataHandler.preparePaymentOrError(t.payment.currentValue);if("string"==typeof r)return void this.state.set({type:"invalid",payload:{error:r}});this.context.data.payment.set(r)}if(t.settings){const r=this.dataHandler.prepareSettingsOrError(t.settings.currentValue);if("string"==typeof r)return void this.state.set({type:"invalid",payload:{error:r}});this.context.data.settings.set(r)}this.validate(!!t.settings||!!t.payment)}ngOnDestroy(){this.context.data.settings()?.apmsCollapse&&this.sessionStorage.removeItem(pn.keys.apmsCollapse);const t=this.toastr.toastrConfig;setTimeout(()=>{if(document.querySelector("moto-payment-form"))return;this.toastr?.clear();const i=document.getElementById("toast-container");i&&(i.innerHTML="")},(t?.timeOut??5e3)+(t?.extendedTimeOut??1e3)+500)}validate(t){const r=this.context.data.settings(),i=this.context.data.payment(),s=this.dataHandler.validateModelsCompatibility(i,r);s?this.state.set({type:"invalid",payload:{error:s}}):(this.applySettings(),this.context.callbacks.createInvoice=this.createInvoice?o=>this.createInvoice(o):void 0,this.context.callbacks.makePayment=this.makePayment?o=>this.makePayment(o):void 0,this.context.data.settings()?.requiredFieldsBehavior?.markAsInvalidUntilCorrect?this.context.updateCanShowError(!0):this.context.updateCanShowError(!1),t&&this.context.data.userProvidedInfo.set({}),this.state.set({type:"correct",payload:{}}))}applySettings(){const t=this.context.data.settings(),r=t.components,i=this.context.componentsStates;(!t.availableCardBrands.length||!r.some(s=>"available-card-brands"===s))&&i.availableCardBrands.update(s=>({...s,enabled:!1,isRequired:!1})),(!t.chargeTerms?.checkboxes?.length&&!t.chargeTerms?.text||!r.some(s=>"charge-terms"===s))&&i.chargeTerms.update(s=>({...s,enabled:!1,isRequired:!1})),(!t.userPreferences?.checkboxes?.length&&!t.userPreferences?.text||!r.some(s=>"user-preferences"===s))&&i.userPreferences.update(s=>({...s,enabled:!1,isRequired:!1})),r.some(s=>"phone-number"===s)||i.additionalForm.update(s=>({...s,enabled:!1,isRequired:!1})),(!t.merchantInfo?.text&&!t.merchantInfo?.links?.length||!r.some(s=>"merchant-info"===s))&&i.merchantInfo.update(s=>({...s,enabled:!1,isRequired:!1})),r.some(s=>"apm-list"===s)||i.apmList.update(s=>({...s,enabled:!1,isRequired:!1})),r.some(s=>"requisites"===s)||i.cardForm.update(s=>({...s,enabled:!1,isRequired:!1})),r.some(s=>"card-list"===s)||i.cardList.update(s=>({...s,enabled:!1,isRequired:!1})),r.some(s=>"pay-button"===s)||i.payButton.update(s=>({...s,enabled:!1,isRequired:!1})),(!t.availableCardBrands.length||!r.some(s=>"protected-by"===s))&&i.protectedBy.update(s=>({...s,enabled:!1,isRequired:!1})),r.some(s=>"master"===s)?(i.chargeTerms.update(s=>({...s,enabled:!1,isRequired:!1})),i.userPreferences.update(s=>({...s,enabled:!1,isRequired:!1}))):i.master.update(s=>({...s,enabled:!1,isRequired:!1})),this.context.events.analytics.emitEnabled=t.events.analytics.required,this.context.events.analytics.optionalEmitEnabled=t.events.analytics.optional,this.context.events.error.emitEnabled=t.events.error,t.apmsCollapse&&this.sessionStorage.getOrSetItemSignal(pn.keys.apmsCollapse,!0)}static#e=this.\u0275fac=function(r){return new(r||e)(v(xe),v(WA),v(Qd),v(vc))};static#t=this.\u0275cmp=Me({type:e,selectors:[["moto-payment-form"]],inputs:{payment:"payment",settings:"settings",createInvoice:"createInvoice",makePayment:"makePayment"},outputs:{closeEvent:"close",paidEvent:"paid",analyticsEvent:"analyticsTracked",error:"error"},features:[tr],decls:10,vars:2,consts:[[1,"__ndb-wrapper"],[1,"__ndb-wrapper-content"],[1,"__ndb-wrapper-content-main"]],template:function(r,i){if(1&r&&(S(0,"div",0)(1,"div",1),ee(2,X9,1,0,"moto-header"),S(3,"div",2),ee(4,J9,1,0,"moto-pay-form")(5,eq,1,0,"moto-invalid-pay-form")(6,tq,1,0,"moto-processing")(7,nq,1,0,"moto-result")(8,rq,1,0,"moto-confirmation")(9,iq,0,0),T()()()),2&r){let s,o;C(2),ie(null===(s=null==(s=i.settingsSignal())?null:s.isHeaderVisible)||void 0===s||s?2:-1),C(2),ie("correct"===(o=i.state().type)?4:"invalid"===o?5:"payLoading"===o?6:"result"===o?7:"confirmation"===o?8:"empty"===o?9:-1)}},dependencies:[ZA,k9,P9,O9,G9,Q9],styles:["[_ngcontent-%COMP%]:root{--ndb-button-bg: #2c8ee8;--ndb-button-disabled-bg: rgba(201, 204, 216, .3);--ndb-button-hover-bg: #1467b4;--ndb-button-color: #fff;--ndb-card-border-color: #c9ccd8}.__ndb-wrapper[_ngcontent-%COMP%]{max-width:560px;width:100%;margin:0 auto;transition:max-width .3s cubic-bezier(.25,.1,.25,1)}@media (max-width: 768px){.__ndb-wrapper[_ngcontent-%COMP%]{max-width:318px}}.__ndb-wrapper-content[_ngcontent-%COMP%]{margin:0 auto;position:relative;border:1px solid #c9ccd8;box-shadow:inset 0 -1px #29304d1a;border-radius:4px}.__ndb-wrapper-content-main[_ngcontent-%COMP%]{padding:28px;gap:40px;flex-direction:column;display:flex}"],changeDetection:0})}return e})(),QA=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=bt({type:e});static#n=this.\u0275inj=ft({})}return e})();function XA(e){return new E(3e3,!1)}function Ti(e){switch(e.length){case 0:return new pc;case 1:return e[0];default:return new jM(e)}}function JA(e,n,t=new Map,r=new Map){const i=[],s=[];let o=-1,a=null;if(n.forEach(c=>{const l=c.get("offset"),u=l==o,d=u&&a||new Map;c.forEach((f,h)=>{let p=h,m=f;if("offset"!==h)switch(p=e.normalizePropertyName(p,i),m){case"!":m=t.get(h);break;case Kr:m=r.get(h);break;default:m=e.normalizeStyleValue(h,p,m,i)}d.set(p,m)}),u||s.push(d),a=d,o=l}),i.length)throw function Iq(){return new E(3502,!1)}();return s}function Gy(e,n,t,r){switch(n){case"start":e.onStart(()=>r(t&&zy(t,"start",e)));break;case"done":e.onDone(()=>r(t&&zy(t,"done",e)));break;case"destroy":e.onDestroy(()=>r(t&&zy(t,"destroy",e)))}}function zy(e,n,t){const s=qy(e.element,e.triggerName,e.fromState,e.toState,n||e.phaseName,t.totalTime??e.totalTime,!!t.disabled),o=e._data;return null!=o&&(s._data=o),s}function qy(e,n,t,r,i="",s=0,o){return{element:e,triggerName:n,fromState:t,toState:r,phaseName:i,totalTime:s,disabled:!!o}}function kn(e,n,t){let r=e.get(n);return r||e.set(n,r=t),r}function e1(e){const n=e.indexOf(":");return[e.substring(1,n),e.slice(n+1)]}const jq=typeof document>"u"?null:document.documentElement;function Wy(e){const n=e.parentNode||e.host||null;return n===jq?null:n}let hs=null,t1=!1;function n1(e,n){for(;n;){if(n===e)return!0;n=Wy(n)}return!1}function r1(e,n,t){if(t)return Array.from(e.querySelectorAll(n));const r=e.querySelector(n);return r?[r]:[]}let Zy=(()=>{class e{validateStyleProperty(t){return function Uq(e){hs||(hs=function $q(){return typeof document<"u"?document.body:null}()||{},t1=!!hs.style&&"WebkitAppearance"in hs.style);let n=!0;return hs.style&&!function Hq(e){return"ebkit"==e.substring(1,6)}(e)&&(n=e in hs.style,!n&&t1&&(n="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in hs.style)),n}(t)}containsElement(t,r){return n1(t,r)}getParentElement(t){return Wy(t)}query(t,r,i){return r1(t,r,i)}computeStyle(t,r,i){return i||""}animate(t,r,i,s,o,a=[],c){return new pc(i,s)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})();class Yy{static#e=this.NOOP=new Zy}class Ky{}const zq=1e3,Qy="ng-enter",Xd="ng-leave",Jd="ng-trigger",ef=".ng-trigger",s1="ng-animating",Xy=".ng-animating";function ti(e){if("number"==typeof e)return e;const n=e.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:Jy(parseFloat(n[1]),n[2])}function Jy(e,n){return"s"===n?e*zq:e}function tf(e,n,t){return e.hasOwnProperty("duration")?e:function Wq(e,n,t){let i,s=0,o="";if("string"==typeof e){const a=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return n.push(XA()),{duration:0,delay:0,easing:""};i=Jy(parseFloat(a[1]),a[2]);const c=a[3];null!=c&&(s=Jy(parseFloat(c),a[4]));const l=a[5];l&&(o=l)}else i=e;if(!t){let a=!1,c=n.length;i<0&&(n.push(function oq(){return new E(3100,!1)}()),a=!0),s<0&&(n.push(function aq(){return new E(3101,!1)}()),a=!0),a&&n.splice(c,0,XA())}return{duration:i,delay:s,easing:o}}(e,n,t)}function Or(e,n,t){n.forEach((r,i)=>{const s=t_(i);t&&!t.has(i)&&t.set(i,e.style[s]),e.style[s]=r})}function ps(e,n){n.forEach((t,r)=>{const i=t_(r);e.style[i]=""})}function xc(e){return Array.isArray(e)?1==e.length?e[0]:function N5(e,n=null){return{type:Q.Sequence,steps:e,options:n}}(e):e}const e_=new RegExp("{{\\s*(.+?)\\s*}}","g");function a1(e){let n=[];if("string"==typeof e){let t;for(;t=e_.exec(e);)n.push(t[1]);e_.lastIndex=0}return n}function Nc(e,n,t){const r=`${e}`,i=r.replace(e_,(s,o)=>{let a=n[o];return null==a&&(t.push(function lq(){return new E(3003,!1)}()),a=""),a.toString()});return i==r?e:i}const Kq=/-+([a-z0-9])/g;function t_(e){return e.replace(Kq,(...n)=>n[1].toUpperCase())}function Pn(e,n,t){switch(n.type){case Q.Trigger:return e.visitTrigger(n,t);case Q.State:return e.visitState(n,t);case Q.Transition:return e.visitTransition(n,t);case Q.Sequence:return e.visitSequence(n,t);case Q.Group:return e.visitGroup(n,t);case Q.Animate:return e.visitAnimate(n,t);case Q.Keyframes:return e.visitKeyframes(n,t);case Q.Style:return e.visitStyle(n,t);case Q.Reference:return e.visitReference(n,t);case Q.AnimateChild:return e.visitAnimateChild(n,t);case Q.AnimateRef:return e.visitAnimateRef(n,t);case Q.Query:return e.visitQuery(n,t);case Q.Stagger:return e.visitStagger(n,t);default:throw function uq(){return new E(3004,!1)}()}}function n_(e,n){return window.getComputedStyle(e)[n]}const Jq=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class c1 extends Ky{normalizePropertyName(n,t){return t_(n)}normalizeStyleValue(n,t,r,i){let s="";const o=r.toString().trim();if(Jq.has(t)&&0!==r&&"0"!==r)if("number"==typeof r)s="px";else{const a=r.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push(function dq(){return new E(3005,!1)}())}return o+s}}const nf="*";const rf=new Set(["true","1"]),sf=new Set(["false","0"]);function l1(e,n){const t=rf.has(e)||sf.has(e),r=rf.has(n)||sf.has(n);return(i,s)=>{let o=e==nf||e==i,a=n==nf||n==s;return!o&&t&&"boolean"==typeof i&&(o=i?rf.has(e):sf.has(e)),!a&&r&&"boolean"==typeof s&&(a=s?rf.has(n):sf.has(n)),o&&a}}const rW=new RegExp("s*:selfs*,?","g");function r_(e,n,t,r){return new iW(e).build(n,t,r)}class iW{constructor(n){this._driver=n}build(n,t,r){const i=new aW(t);return this._resetContextStyleTimingState(i),Pn(this,xc(n),i)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,t){let r=t.queryCount=0,i=t.depCount=0;const s=[],o=[];return"@"==n.name.charAt(0)&&t.errors.push(function fq(){return new E(3006,!1)}()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==Q.State){const c=a,l=c.name;l.toString().split(/\s*,\s*/).forEach(u=>{c.name=u,s.push(this.visitState(c,t))}),c.name=l}else if(a.type==Q.Transition){const c=this.visitTransition(a,t);r+=c.queryCount,i+=c.depCount,o.push(c)}else t.errors.push(function hq(){return new E(3007,!1)}())}),{type:Q.Trigger,name:n.name,states:s,transitions:o,queryCount:r,depCount:i,options:null}}visitState(n,t){const r=this.visitStyle(n.styles,t),i=n.options&&n.options.params||null;if(r.containsDynamicStyles){const s=new Set,o=i||{};r.styles.forEach(a=>{a instanceof Map&&a.forEach(c=>{a1(c).forEach(l=>{o.hasOwnProperty(l)||s.add(l)})})}),s.size&&t.errors.push(function pq(){return new E(3008,!1)}(0,s.values()))}return{type:Q.State,name:n.name,style:r,options:i?{params:i}:null}}visitTransition(n,t){t.queryCount=0,t.depCount=0;const r=Pn(this,xc(n.animation),t),i=function eW(e,n){const t=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(r=>function tW(e,n,t){if(":"==e[0]){const c=function nW(e,n){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,r)=>parseFloat(r)>parseFloat(t);case":decrement":return(t,r)=>parseFloat(r)<parseFloat(t);default:return n.push(function Dq(){return new E(3016,!1)}()),"* => *"}}(e,t);if("function"==typeof c)return void n.push(c);e=c}const r=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return t.push(function wq(){return new E(3015,!1)}()),n;const i=r[1],s=r[2],o=r[3];n.push(l1(i,o)),"<"==s[0]&&(i!=nf||o!=nf)&&n.push(l1(o,i))}(r,t,n)):t.push(e),t}(n.expr,t.errors);return{type:Q.Transition,matchers:i,animation:r,queryCount:t.queryCount,depCount:t.depCount,options:ms(n.options)}}visitSequence(n,t){return{type:Q.Sequence,steps:n.steps.map(r=>Pn(this,r,t)),options:ms(n.options)}}visitGroup(n,t){const r=t.currentTime;let i=0;const s=n.steps.map(o=>{t.currentTime=r;const a=Pn(this,o,t);return i=Math.max(i,t.currentTime),a});return t.currentTime=i,{type:Q.Group,steps:s,options:ms(n.options)}}visitAnimate(n,t){const r=function lW(e,n){if(e.hasOwnProperty("duration"))return e;if("number"==typeof e)return i_(tf(e,n).duration,0,"");const t=e;if(t.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=i_(0,0,"");return s.dynamic=!0,s.strValue=t,s}const i=tf(t,n);return i_(i.duration,i.delay,i.easing)}(n.timings,t.errors);t.currentAnimateTimings=r;let i,s=n.styles?n.styles:Je({});if(s.type==Q.Keyframes)i=this.visitKeyframes(s,t);else{let o=n.styles,a=!1;if(!o){a=!0;const l={};r.easing&&(l.easing=r.easing),o=Je(l)}t.currentTime+=r.duration+r.delay;const c=this.visitStyle(o,t);c.isEmptyStep=a,i=c}return t.currentAnimateTimings=null,{type:Q.Animate,timings:r,style:i,options:null}}visitStyle(n,t){const r=this._makeStyleAst(n,t);return this._validateStyleAst(r,t),r}_makeStyleAst(n,t){const r=[],i=Array.isArray(n.styles)?n.styles:[n.styles];for(let a of i)"string"==typeof a?a===Kr?r.push(a):t.errors.push(new E(3002,!1)):r.push(new Map(Object.entries(a)));let s=!1,o=null;return r.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!s))for(let c of a.values())if(c.toString().indexOf("{{")>=0){s=!0;break}}),{type:Q.Style,styles:r,easing:o,offset:n.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(n,t){const r=t.currentAnimateTimings;let i=t.currentTime,s=t.currentTime;r&&s>0&&(s-=r.duration+r.delay),n.styles.forEach(o=>{"string"!=typeof o&&o.forEach((a,c)=>{const l=t.collectedStyles.get(t.currentQuerySelector),u=l.get(c);let d=!0;u&&(s!=i&&s>=u.startTime&&i<=u.endTime&&(t.errors.push(function gq(){return new E(3010,!1)}()),d=!1),s=u.startTime),d&&l.set(c,{startTime:s,endTime:i}),t.options&&function Yq(e,n,t){const r=n.params||{},i=a1(e);i.length&&i.forEach(s=>{r.hasOwnProperty(s)||t.push(function cq(){return new E(3001,!1)}())})}(a,t.options,t.errors)})})}visitKeyframes(n,t){const r={type:Q.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function yq(){return new E(3011,!1)}()),r;let s=0;const o=[];let a=!1,c=!1,l=0;const u=n.steps.map(_=>{const y=this._makeStyleAst(_,t);let w=null!=y.offset?y.offset:function cW(e){if("string"==typeof e)return null;let n=null;if(Array.isArray(e))e.forEach(t=>{if(t instanceof Map&&t.has("offset")){const r=t;n=parseFloat(r.get("offset")),r.delete("offset")}});else if(e instanceof Map&&e.has("offset")){const t=e;n=parseFloat(t.get("offset")),t.delete("offset")}return n}(y.styles),D=0;return null!=w&&(s++,D=y.offset=w),c=c||D<0||D>1,a=a||D<l,l=D,o.push(D),y});c&&t.errors.push(function _q(){return new E(3012,!1)}()),a&&t.errors.push(function vq(){return new E(3200,!1)}());const d=n.steps.length;let f=0;s>0&&s<d?t.errors.push(function Cq(){return new E(3202,!1)}()):0==s&&(f=1/(d-1));const h=d-1,p=t.currentTime,m=t.currentAnimateTimings,g=m.duration;return u.forEach((_,y)=>{const w=f>0?y==h?1:f*y:o[y],D=w*g;t.currentTime=p+m.delay+D,m.duration=D,this._validateStyleAst(_,t),_.offset=w,r.styles.push(_)}),r}visitReference(n,t){return{type:Q.Reference,animation:Pn(this,xc(n.animation),t),options:ms(n.options)}}visitAnimateChild(n,t){return t.depCount++,{type:Q.AnimateChild,options:ms(n.options)}}visitAnimateRef(n,t){return{type:Q.AnimateRef,animation:this.visitReference(n.animation,t),options:ms(n.options)}}visitQuery(n,t){const r=t.currentQuerySelector,i=n.options||{};t.queryCount++,t.currentQuery=n;const[s,o]=function sW(e){const n=!!e.split(/\s*,\s*/).find(t=>":self"==t);return n&&(e=e.replace(rW,"")),e=e.replace(/@\*/g,ef).replace(/@\w+/g,t=>ef+"-"+t.slice(1)).replace(/:animating/g,Xy),[e,n]}(n.selector);t.currentQuerySelector=r.length?r+" "+s:s,kn(t.collectedStyles,t.currentQuerySelector,new Map);const a=Pn(this,xc(n.animation),t);return t.currentQuery=null,t.currentQuerySelector=r,{type:Q.Query,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:o,animation:a,originalSelector:n.selector,options:ms(n.options)}}visitStagger(n,t){t.currentQuery||t.errors.push(function bq(){return new E(3013,!1)}());const r="full"===n.timings?{duration:0,delay:0,easing:"full"}:tf(n.timings,t.errors,!0);return{type:Q.Stagger,animation:Pn(this,xc(n.animation),t),timings:r,options:null}}}class aW{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function ms(e){return e?(e={...e}).params&&(e.params=function oW(e){return e?{...e}:null}(e.params)):e={},e}function i_(e,n,t){return{duration:e,delay:n,easing:t}}function s_(e,n,t,r,i,s,o=null,a=!1){return{type:1,element:e,keyframes:n,preStyleProps:t,postStyleProps:r,duration:i,delay:s,totalTime:i+s,easing:o,subTimeline:a}}class af{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,t){let r=this._map.get(n);r||this._map.set(n,r=[]),r.push(...t)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const fW=new RegExp(":enter","g"),pW=new RegExp(":leave","g");function o_(e,n,t,r,i,s=new Map,o=new Map,a,c,l=[]){return(new mW).buildKeyframes(e,n,t,r,i,s,o,a,c,l)}class mW{buildKeyframes(n,t,r,i,s,o,a,c,l,u=[]){l=l||new af;const d=new a_(n,t,l,i,s,u,[]);d.options=c;const f=c.delay?ti(c.delay):0;d.currentTimeline.delayNextStep(f),d.currentTimeline.setStyles([o],null,d.errors,c),Pn(this,r,d);const h=d.timelines.filter(p=>p.containsAnimation());if(h.length&&a.size){let p;for(let m=h.length-1;m>=0;m--){const g=h[m];if(g.element===t){p=g;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,d.errors,c)}return h.length?h.map(p=>p.buildKeyframes()):[s_(t,[],[],[],0,f,"",!1)]}visitTrigger(n,t){}visitState(n,t){}visitTransition(n,t){}visitAnimateChild(n,t){const r=t.subInstructions.get(t.element);if(r){const i=t.createSubContext(n.options),s=t.currentTimeline.currentTime,o=this._visitSubInstructions(r,i,i.options);s!=o&&t.transformIntoNewTimeline(o)}t.previousNode=n}visitAnimateRef(n,t){const r=t.createSubContext(n.options);r.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],t,r),this.visitReference(n.animation,r),t.transformIntoNewTimeline(r.currentTimeline.currentTime),t.previousNode=n}_applyAnimationRefDelays(n,t,r){for(const i of n){const s=i?.delay;if(s){const o="number"==typeof s?s:ti(Nc(s,i?.params??{},t.errors));r.delayNextStep(o)}}}_visitSubInstructions(n,t,r){let s=t.currentTimeline.currentTime;const o=null!=r.duration?ti(r.duration):null,a=null!=r.delay?ti(r.delay):null;return 0!==o&&n.forEach(c=>{const l=t.appendInstructionToTimeline(c,o,a);s=Math.max(s,l.duration+l.delay)}),s}visitReference(n,t){t.updateOptions(n.options,!0),Pn(this,n.animation,t),t.previousNode=n}visitSequence(n,t){const r=t.subContextCount;let i=t;const s=n.options;if(s&&(s.params||s.delay)&&(i=t.createSubContext(s),i.transformIntoNewTimeline(),null!=s.delay)){i.previousNode.type==Q.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=cf);const o=ti(s.delay);i.delayNextStep(o)}n.steps.length&&(n.steps.forEach(o=>Pn(this,o,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),t.previousNode=n}visitGroup(n,t){const r=[];let i=t.currentTimeline.currentTime;const s=n.options&&n.options.delay?ti(n.options.delay):0;n.steps.forEach(o=>{const a=t.createSubContext(n.options);s&&a.delayNextStep(s),Pn(this,o,a),i=Math.max(i,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(i),t.previousNode=n}_visitTiming(n,t){if(n.dynamic){const r=n.strValue;return tf(t.params?Nc(r,t.params,t.errors):r,t.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,t){const r=t.currentAnimateTimings=this._visitTiming(n.timings,t),i=t.currentTimeline;r.delay&&(t.incrementTime(r.delay),i.snapshotCurrentStyles());const s=n.style;s.type==Q.Keyframes?this.visitKeyframes(s,t):(t.incrementTime(r.duration),this.visitStyle(s,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=n}visitStyle(n,t){const r=t.currentTimeline,i=t.currentAnimateTimings;!i&&r.hasCurrentStyleProperties()&&r.forwardFrame();const s=i&&i.easing||n.easing;n.isEmptyStep?r.applyEmptyStep(s):r.setStyles(n.styles,s,t.errors,t.options),t.previousNode=n}visitKeyframes(n,t){const r=t.currentAnimateTimings,i=t.currentTimeline.duration,s=r.duration,a=t.createSubContext().currentTimeline;a.easing=r.easing,n.styles.forEach(c=>{a.forwardTime((c.offset||0)*s),a.setStyles(c.styles,c.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(i+s),t.previousNode=n}visitQuery(n,t){const r=t.currentTimeline.currentTime,i=n.options||{},s=i.delay?ti(i.delay):0;s&&(t.previousNode.type===Q.Style||0==r&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=cf);let o=r;const a=t.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=a.length;let c=null;a.forEach((l,u)=>{t.currentQueryIndex=u;const d=t.createSubContext(n.options,l);s&&d.delayNextStep(s),l===t.element&&(c=d.currentTimeline),Pn(this,n.animation,d),d.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,d.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),c&&(t.currentTimeline.mergeTimelineCollectedStyles(c),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=n}visitStagger(n,t){const r=t.parentContext,i=t.currentTimeline,s=n.timings,o=Math.abs(s.duration),a=o*(t.currentQueryTotal-1);let c=o*t.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":c=a-c;break;case"full":c=r.currentStaggerTime}const u=t.currentTimeline;c&&u.delayNextStep(c);const d=u.currentTime;Pn(this,n.animation,t),t.previousNode=n,r.currentStaggerTime=i.currentTime-d+(i.startTime-r.currentTimeline.startTime)}}const cf={};class a_{constructor(n,t,r,i,s,o,a,c){this._driver=n,this.element=t,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=cf,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new lf(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,t){if(!n)return;const r=n;let i=this.options;null!=r.duration&&(i.duration=ti(r.duration)),null!=r.delay&&(i.delay=ti(r.delay));const s=r.params;if(s){let o=i.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=Nc(s[a],o,this.errors))})}}_copyOptions(){const n={};if(this.options){const t=this.options.params;if(t){const r=n.params={};Object.keys(t).forEach(i=>{r[i]=t[i]})}}return n}createSubContext(n=null,t,r){const i=t||this.element,s=new a_(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(n),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(n){return this.previousNode=cf,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,t,r){const i={duration:t??n.duration,delay:this.currentTimeline.currentTime+(r??0)+n.delay,easing:""},s=new gW(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,i,n.stretchStartingKeyframe);return this.timelines.push(s),i}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,t,r,i,s,o){let a=[];if(i&&a.push(this.element),n.length>0){n=(n=n.replace(fW,"."+this._enterClassName)).replace(pW,"."+this._leaveClassName);let l=this._driver.query(this.element,n,1!=r);0!==r&&(l=r<0?l.slice(l.length+r,l.length):l.slice(0,r)),a.push(...l)}return!s&&0==a.length&&o.push(function Eq(){return new E(3014,!1)}()),a}}class lf{constructor(n,t,r,i){this._driver=n,this.element=t,this.startTime=r,this._elementTimelineStylesLookup=i,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const t=1===this._keyframes.size&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+n),t&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,t){return this.applyStylesToKeyframe(),new lf(this._driver,n,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,t){this._localTimelineStyles.set(n,t),this._globalTimelineStyles.set(n,t),this._styleSummary.set(n,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[t,r]of this._globalTimelineStyles)this._backFill.set(t,r||Kr),this._currentKeyframe.set(t,Kr);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,t,r,i){t&&this._previousKeyframe.set("easing",t);const s=i&&i.params||{},o=function yW(e,n){const t=new Map;let r;return e.forEach(i=>{if("*"===i){r??=n.keys();for(let s of r)t.set(s,Kr)}else for(let[s,o]of i)t.set(s,o)}),t}(n,this._globalTimelineStyles);for(let[a,c]of o){const l=Nc(c,s,r);this._pendingStyles.set(a,l),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Kr),this._updateStyle(a,l)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,t)=>{this._currentKeyframe.set(t,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,n)}))}snapshotCurrentStyles(){for(let[n,t]of this._localTimelineStyles)this._pendingStyles.set(n,t),this._updateStyle(n,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let t in this._currentKeyframe)n.push(t);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((t,r)=>{const i=this._styleSummary.get(r);(!i||t.time>i.time)&&this._updateStyle(r,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,t=new Set,r=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((a,c)=>{const l=new Map([...this._backFill,...a]);l.forEach((u,d)=>{"!"===u?n.add(d):u===Kr&&t.add(d)}),r||l.set("offset",c/this.duration),i.push(l)});const s=[...n.values()],o=[...t.values()];if(r){const a=i[0],c=new Map(a);a.set("offset",0),c.set("offset",1),i=[a,c]}return s_(this.element,i,s,o,this.duration,this.startTime,this.easing,!1)}}class gW extends lf{constructor(n,t,r,i,s,o,a=!1){super(n,t,o.delay),this.keyframes=r,this.preStyleProps=i,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:t,duration:r,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){const s=[],o=r+t,a=t/o,c=new Map(n[0]);c.set("offset",0),s.push(c);const l=new Map(n[0]);l.set("offset",f1(a)),s.push(l);const u=n.length-1;for(let d=1;d<=u;d++){let f=new Map(n[d]);const h=f.get("offset");f.set("offset",f1((t+h*r)/o)),s.push(f)}r=o,t=0,i="",n=s}return s_(this.element,n,this.preStyleProps,this.postStyleProps,r,t,i,!0)}}function f1(e,n=3){const t=Math.pow(10,n-1);return Math.round(e*t)/t}function h1(e,n,t,r,i,s,o,a,c,l,u,d,f){return{type:0,element:e,triggerName:n,isRemovalTransition:i,fromState:t,fromStyles:s,toState:r,toStyles:o,timelines:a,queriedElements:c,preStyleProps:l,postStyleProps:u,totalTime:d,errors:f}}const c_={};class p1{constructor(n,t,r){this._triggerName=n,this.ast=t,this._stateStyles=r}match(n,t,r,i){return function _W(e,n,t,r,i){return e.some(s=>s(n,t,r,i))}(this.ast.matchers,n,t,r,i)}buildStyles(n,t,r){let i=this._stateStyles.get("*");return void 0!==n&&(i=this._stateStyles.get(n?.toString())||i),i?i.buildStyles(t,r):new Map}build(n,t,r,i,s,o,a,c,l,u){const d=[],f=this.ast.options&&this.ast.options.params||c_,p=this.buildStyles(r,a&&a.params||c_,d),m=c&&c.params||c_,g=this.buildStyles(i,m,d),_=new Set,y=new Map,w=new Map,D="void"===i,M={params:m1(m,f),delay:this.ast.options?.delay},F=u?[]:o_(n,t,this.ast.animation,s,o,p,g,M,l,d);let j=0;return F.forEach(L=>{j=Math.max(L.duration+L.delay,j)}),d.length?h1(t,this._triggerName,r,i,D,p,g,[],[],y,w,j,d):(F.forEach(L=>{const Ye=L.element,et=kn(y,Ye,new Set);L.preStyleProps.forEach(nn=>et.add(nn));const ct=kn(w,Ye,new Set);L.postStyleProps.forEach(nn=>ct.add(nn)),Ye!==t&&_.add(Ye)}),h1(t,this._triggerName,r,i,D,p,g,F,[..._.values()],y,w,j))}}function m1(e,n){const t={...n};return Object.entries(e).forEach(([r,i])=>{null!=i&&(t[r]=i)}),t}class vW{constructor(n,t,r){this.styles=n,this.defaultParams=t,this.normalizer=r}buildStyles(n,t){const r=new Map,i=m1(n,this.defaultParams);return this.styles.styles.forEach(s=>{"string"!=typeof s&&s.forEach((o,a)=>{o&&(o=Nc(o,i,t));const c=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,c,o,t),r.set(a,o)})}),r}}class bW{constructor(n,t,r){this.name=n,this.ast=t,this._normalizer=r,this.transitionFactories=[],this.states=new Map,t.states.forEach(i=>{this.states.set(i.name,new vW(i.style,i.options&&i.options.params||{},r))}),g1(this.states,"true","1"),g1(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new p1(n,i,this.states))}),this.fallbackTransition=function EW(e,n){return new p1(e,{type:Q.Transition,animation:{type:Q.Sequence,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,t,r,i){return this.transitionFactories.find(o=>o.match(n,t,r,i))||null}matchStyles(n,t,r){return this.fallbackTransition.buildStyles(n,t,r)}}function g1(e,n,t){e.has(n)?e.has(t)||e.set(t,e.get(n)):e.has(t)&&e.set(n,e.get(t))}const wW=new af;class DW{constructor(n,t,r){this.bodyNode=n,this._driver=t,this._normalizer=r,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,t){const r=[],s=r_(this._driver,t,r,[]);if(r.length)throw function Aq(){return new E(3503,!1)}();this._animations.set(n,s)}_buildPlayer(n,t,r){const i=n.element,s=JA(this._normalizer,n.keyframes,t,r);return this._driver.animate(i,s,n.duration,n.delay,n.easing,[],!0)}create(n,t,r={}){const i=[],s=this._animations.get(n);let o;const a=new Map;if(s?(o=o_(this._driver,t,s,Qy,Xd,new Map,new Map,r,wW,i),o.forEach(u=>{const d=kn(a,u.element,new Map);u.postStyleProps.forEach(f=>d.set(f,null))})):(i.push(function xq(){return new E(3300,!1)}()),o=[]),i.length)throw function Nq(){return new E(3504,!1)}();a.forEach((u,d)=>{u.forEach((f,h)=>{u.set(h,this._driver.computeStyle(d,h,Kr))})});const l=Ti(o.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(n,l),l.onDestroy(()=>this.destroy(n)),this.players.push(l),l}destroy(n){const t=this._getPlayer(n);t.destroy(),this._playersById.delete(n);const r=this.players.indexOf(t);r>=0&&this.players.splice(r,1)}_getPlayer(n){const t=this._playersById.get(n);if(!t)throw function kq(){return new E(3301,!1)}();return t}listen(n,t,r,i){const s=qy(t,"","","");return Gy(this._getPlayer(n),r,s,i),()=>{}}command(n,t,r,i){if("register"==r)return void this.register(n,i[0]);if("create"==r)return void this.create(n,t,i[0]||{});const s=this._getPlayer(n);switch(r){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(n)}}}const y1="ng-animate-queued",l_="ng-animate-disabled",AW=[],_1={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},xW={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},gr="__ng_removed";class u_{get params(){return this.options.params}constructor(n,t=""){this.namespaceId=t;const r=n&&n.hasOwnProperty("value");if(this.value=function OW(e){return e??null}(r?n.value:n),r){const{value:s,...o}=n;this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){const t=n.params;if(t){const r=this.options.params;Object.keys(t).forEach(i=>{null==r[i]&&(r[i]=t[i])})}}}const kc="void",d_=new u_(kc);class NW{constructor(n,t,r){this.id=n,this.hostElement=t,this._engine=r,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,qn(t,this._hostClassName)}listen(n,t,r,i){if(!this._triggers.has(t))throw function Pq(){return new E(3302,!1)}();if(null==r||0==r.length)throw function Oq(){return new E(3303,!1)}();if(!function RW(e){return"start"==e||"done"==e}(r))throw function Rq(){return new E(3400,!1)}();const s=kn(this._elementListeners,n,[]),o={name:t,phase:r,callback:i};s.push(o);const a=kn(this._engine.statesByElement,n,new Map);return a.has(t)||(qn(n,Jd),qn(n,Jd+"-"+t),a.set(t,d_)),()=>{this._engine.afterFlush(()=>{const c=s.indexOf(o);c>=0&&s.splice(c,1),this._triggers.has(t)||a.delete(t)})}}register(n,t){return!this._triggers.has(n)&&(this._triggers.set(n,t),!0)}_getTrigger(n){const t=this._triggers.get(n);if(!t)throw function Fq(){return new E(3401,!1)}();return t}trigger(n,t,r,i=!0){const s=this._getTrigger(t),o=new f_(this.id,t,n);let a=this._engine.statesByElement.get(n);a||(qn(n,Jd),qn(n,Jd+"-"+t),this._engine.statesByElement.set(n,a=new Map));let c=a.get(t);const l=new u_(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&c&&l.absorbOptions(c.options),a.set(t,l),c||(c=d_),l.value!==kc&&c.value===l.value){if(!function VW(e,n){const t=Object.keys(e),r=Object.keys(n);if(t.length!=r.length)return!1;for(let i=0;i<t.length;i++){const s=t[i];if(!n.hasOwnProperty(s)||e[s]!==n[s])return!1}return!0}(c.params,l.params)){const m=[],g=s.matchStyles(c.value,c.params,m),_=s.matchStyles(l.value,l.params,m);m.length?this._engine.reportError(m):this._engine.afterFlush(()=>{ps(n,g),Or(n,_)})}return}const f=kn(this._engine.playersByElement,n,[]);f.forEach(m=>{m.namespaceId==this.id&&m.triggerName==t&&m.queued&&m.destroy()});let h=s.matchTransition(c.value,l.value,n,l.params),p=!1;if(!h){if(!i)return;h=s.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:t,transition:h,fromState:c,toState:l,player:o,isFallbackTransition:p}),p||(qn(n,y1),o.onStart(()=>{Ho(n,y1)})),o.onDone(()=>{let m=this.players.indexOf(o);m>=0&&this.players.splice(m,1);const g=this._engine.playersByElement.get(n);if(g){let _=g.indexOf(o);_>=0&&g.splice(_,1)}}),this.players.push(o),f.push(o),o}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(t=>t.delete(n)),this._elementListeners.forEach((t,r)=>{this._elementListeners.set(r,t.filter(i=>i.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const t=this._engine.playersByElement.get(n);t&&(t.forEach(r=>r.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,t){const r=this._engine.driver.query(n,ef,!0);r.forEach(i=>{if(i[gr])return;const s=this._engine.fetchNamespacesByElement(i);s.size?s.forEach(o=>o.triggerLeaveAnimation(i,t,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(n,t,r,i){const s=this._engine.statesByElement.get(n),o=new Map;if(s){const a=[];if(s.forEach((c,l)=>{if(o.set(l,c.value),this._triggers.has(l)){const u=this.trigger(n,l,kc,i);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,t,o),r&&Ti(a).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const t=this._elementListeners.get(n),r=this._engine.statesByElement.get(n);if(t&&r){const i=new Set;t.forEach(s=>{const o=s.name;if(i.has(o))return;i.add(o);const c=this._triggers.get(o).fallbackTransition,l=r.get(o)||d_,u=new u_(kc),d=new f_(this.id,o,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:o,transition:c,fromState:l,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(n,t){const r=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,t),this.triggerLeaveAnimation(n,t,!0))return;let i=!1;if(r.totalAnimations){const s=r.players.length?r.playersByQueriedElement.get(n):[];if(s&&s.length)i=!0;else{let o=n;for(;o=o.parentNode;)if(r.statesByElement.get(o)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(n),i)r.markElementAsRemoved(this.id,n,!1,t);else{const s=n[gr];(!s||s===_1)&&(r.afterFlush(()=>this.clearElementCache(n)),r.destroyInnerAnimations(n),r._onRemovalComplete(n,t))}}insertNode(n,t){qn(n,this._hostClassName)}drainQueuedTransitions(n){const t=[];return this._queue.forEach(r=>{const i=r.player;if(i.destroyed)return;const s=r.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==r.triggerName){const c=qy(s,r.triggerName,r.fromState.value,r.toState.value);c._data=n,Gy(r.player,a.phase,c,a.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(r)}),this._queue=[],t.sort((r,i)=>{const s=r.transition.ast.depCount,o=i.transition.ast.depCount;return 0==s||0==o?s-o:this._engine.driver.containsElement(r.element,i.element)?1:-1})}destroy(n){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}}class kW{_onRemovalComplete(n,t){this.onRemovalComplete(n,t)}constructor(n,t,r){this.bodyNode=n,this.driver=t,this._normalizer=r,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(i,s)=>{}}get queuedPlayers(){const n=[];return this._namespaceList.forEach(t=>{t.players.forEach(r=>{r.queued&&n.push(r)})}),n}createNamespace(n,t){const r=new NW(n,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(r,t):(this.newHostElements.set(t,r),this.collectEnterElement(t)),this._namespaceLookup[n]=r}_balanceNamespaceList(n,t){const r=this._namespaceList,i=this.namespacesByHostElement;if(r.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){const c=i.get(a);if(c){const l=r.indexOf(c);r.splice(l+1,0,n),o=!0;break}a=this.driver.getParentElement(a)}o||r.unshift(n)}else r.push(n);return i.set(t,n),n}register(n,t){let r=this._namespaceLookup[n];return r||(r=this.createNamespace(n,t)),r}registerTrigger(n,t,r){let i=this._namespaceLookup[n];i&&i.register(t,r)&&this.totalAnimations++}destroy(n,t){n&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const r=this._fetchNamespace(n);this.namespacesByHostElement.delete(r.hostElement);const i=this._namespaceList.indexOf(r);i>=0&&this._namespaceList.splice(i,1),r.destroy(t),delete this._namespaceLookup[n]}))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const t=new Set,r=this.statesByElement.get(n);if(r)for(let i of r.values())if(i.namespaceId){const s=this._fetchNamespace(i.namespaceId);s&&t.add(s)}return t}trigger(n,t,r,i){if(uf(t)){const s=this._fetchNamespace(n);if(s)return s.trigger(t,r,i),!0}return!1}insertNode(n,t,r,i){if(!uf(t))return;const s=t[gr];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(n){const o=this._fetchNamespace(n);o&&o.insertNode(t,r)}i&&this.collectEnterElement(t)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,t){t?this.disabledNodes.has(n)||(this.disabledNodes.add(n),qn(n,l_)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),Ho(n,l_))}removeNode(n,t,r){if(uf(t)){const i=n?this._fetchNamespace(n):null;i?i.removeNode(t,r):this.markElementAsRemoved(n,t,!1,r);const s=this.namespacesByHostElement.get(t);s&&s.id!==n&&s.removeNode(t,r)}else this._onRemovalComplete(t,r)}markElementAsRemoved(n,t,r,i,s){this.collectedLeaveElements.push(t),t[gr]={namespaceId:n,setForRemoval:i,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:s}}listen(n,t,r,i,s){return uf(t)?this._fetchNamespace(n).listen(t,r,i,s):()=>{}}_buildInstruction(n,t,r,i,s){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,r,i,n.fromState.options,n.toState.options,t,s)}destroyInnerAnimations(n){let t=this.driver.query(n,ef,!0);t.forEach(r=>this.destroyActiveAnimationsForElement(r)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(n,Xy,!0),t.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(n){const t=this.playersByElement.get(n);t&&t.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(n){const t=this.playersByQueriedElement.get(n);t&&t.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return Ti(this.players).onDone(()=>n());n()})}processLeaveNode(n){const t=n[gr];if(t&&t.setForRemoval){if(n[gr]=_1,t.namespaceId){this.destroyInnerAnimations(n);const r=this._fetchNamespace(t.namespaceId);r&&r.clearElementCache(n)}this._onRemovalComplete(n,t.setForRemoval)}n.classList?.contains(l_)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(n=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,i)=>this._balanceNamespaceList(r,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;r<this.collectedEnterElements.length;r++)qn(this.collectedEnterElements[r],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const r=[];try{t=this._flushAnimations(r,n)}finally{for(let i=0;i<r.length;i++)r[i]()}}else for(let r=0;r<this.collectedLeaveElements.length;r++)this.processLeaveNode(this.collectedLeaveElements[r]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(r=>r()),this._flushFns=[],this._whenQuietFns.length){const r=this._whenQuietFns;this._whenQuietFns=[],t.length?Ti(t).onDone(()=>{r.forEach(i=>i())}):r.forEach(i=>i())}}reportError(n){throw function Lq(){return new E(3402,!1)}()}_flushAnimations(n,t){const r=new af,i=[],s=new Map,o=[],a=new Map,c=new Map,l=new Map,u=new Set;this.disabledNodes.forEach(O=>{u.add(O);const B=this.driver.query(O,".ng-animate-queued",!0);for(let G=0;G<B.length;G++)u.add(B[G])});const d=this.bodyNode,f=Array.from(this.statesByElement.keys()),h=b1(f,this.collectedEnterElements),p=new Map;let m=0;h.forEach((O,B)=>{const G=Qy+m++;p.set(B,G),O.forEach(le=>qn(le,G))});const g=[],_=new Set,y=new Set;for(let O=0;O<this.collectedLeaveElements.length;O++){const B=this.collectedLeaveElements[O],G=B[gr];G&&G.setForRemoval&&(g.push(B),_.add(B),G.hasAnimation?this.driver.query(B,".ng-star-inserted",!0).forEach(le=>_.add(le)):y.add(B))}const w=new Map,D=b1(f,Array.from(_));D.forEach((O,B)=>{const G=Xd+m++;w.set(B,G),O.forEach(le=>qn(le,G))}),n.push(()=>{h.forEach((O,B)=>{const G=p.get(B);O.forEach(le=>Ho(le,G))}),D.forEach((O,B)=>{const G=w.get(B);O.forEach(le=>Ho(le,G))}),g.forEach(O=>{this.processLeaveNode(O)})});const M=[],F=[];for(let O=this._namespaceList.length-1;O>=0;O--)this._namespaceList[O].drainQueuedTransitions(t).forEach(G=>{const le=G.player,vt=G.element;if(M.push(le),this.collectedEnterElements.length){const Gt=vt[gr];if(Gt&&Gt.setForMove){if(Gt.previousTriggersValues&&Gt.previousTriggersValues.has(G.triggerName)){const ys=Gt.previousTriggersValues.get(G.triggerName),Yn=this.statesByElement.get(G.element);if(Yn&&Yn.has(G.triggerName)){const hf=Yn.get(G.triggerName);hf.value=ys,Yn.set(G.triggerName,hf)}}return void le.destroy()}}const Zn=!d||!this.driver.containsElement(d,vt),rn=w.get(vt),Rr=p.get(vt),Ge=this._buildInstruction(G,r,Rr,rn,Zn);if(Ge.errors&&Ge.errors.length)return void F.push(Ge);if(Zn)return le.onStart(()=>ps(vt,Ge.fromStyles)),le.onDestroy(()=>Or(vt,Ge.toStyles)),void i.push(le);if(G.isFallbackTransition)return le.onStart(()=>ps(vt,Ge.fromStyles)),le.onDestroy(()=>Or(vt,Ge.toStyles)),void i.push(le);const ff=[];Ge.timelines.forEach(Gt=>{Gt.stretchStartingKeyframe=!0,this.disabledNodes.has(Gt.element)||ff.push(Gt)}),Ge.timelines=ff,r.append(vt,Ge.timelines),o.push({instruction:Ge,player:le,element:vt}),Ge.queriedElements.forEach(Gt=>kn(a,Gt,[]).push(le)),Ge.preStyleProps.forEach((Gt,ys)=>{if(Gt.size){let Yn=c.get(ys);Yn||c.set(ys,Yn=new Set),Gt.forEach((hf,m_)=>Yn.add(m_))}}),Ge.postStyleProps.forEach((Gt,ys)=>{let Yn=l.get(ys);Yn||l.set(ys,Yn=new Set),Gt.forEach((hf,m_)=>Yn.add(m_))})});if(F.length){const O=[];F.forEach(B=>{O.push(function Vq(){return new E(3505,!1)}())}),M.forEach(B=>B.destroy()),this.reportError(O)}const j=new Map,L=new Map;o.forEach(O=>{const B=O.element;r.has(B)&&(L.set(B,B),this._beforeAnimationBuild(O.player.namespaceId,O.instruction,j))}),i.forEach(O=>{const B=O.element;this._getPreviousPlayers(B,!1,O.namespaceId,O.triggerName,null).forEach(le=>{kn(j,B,[]).push(le),le.destroy()})});const Ye=g.filter(O=>w1(O,c,l)),et=new Map;C1(et,this.driver,y,l,Kr).forEach(O=>{w1(O,c,l)&&Ye.push(O)});const nn=new Map;h.forEach((O,B)=>{C1(nn,this.driver,new Set(O),c,"!")}),Ye.forEach(O=>{const B=et.get(O),G=nn.get(O);et.set(O,new Map([...B?.entries()??[],...G?.entries()??[]]))});const Mi=[],Wn=[],gs={};o.forEach(O=>{const{element:B,player:G,instruction:le}=O;if(r.has(B)){if(u.has(B))return G.onDestroy(()=>Or(B,le.toStyles)),G.disabled=!0,G.overrideTotalTime(le.totalTime),void i.push(G);let vt=gs;if(L.size>1){let rn=B;const Rr=[];for(;rn=rn.parentNode;){const Ge=L.get(rn);if(Ge){vt=Ge;break}Rr.push(rn)}Rr.forEach(Ge=>L.set(Ge,vt))}const Zn=this._buildAnimation(G.namespaceId,le,j,s,nn,et);if(G.setRealPlayer(Zn),vt===gs)Mi.push(G);else{const rn=this.playersByElement.get(vt);rn&&rn.length&&(G.parentPlayer=Ti(rn)),i.push(G)}}else ps(B,le.fromStyles),G.onDestroy(()=>Or(B,le.toStyles)),Wn.push(G),u.has(B)&&i.push(G)}),Wn.forEach(O=>{const B=s.get(O.element);if(B&&B.length){const G=Ti(B);O.setRealPlayer(G)}}),i.forEach(O=>{O.parentPlayer?O.syncPlayerEvents(O.parentPlayer):O.destroy()});for(let O=0;O<g.length;O++){const B=g[O],G=B[gr];if(Ho(B,Xd),G&&G.hasAnimation)continue;let le=[];if(a.size){let Zn=a.get(B);Zn&&Zn.length&&le.push(...Zn);let rn=this.driver.query(B,Xy,!0);for(let Rr=0;Rr<rn.length;Rr++){let Ge=a.get(rn[Rr]);Ge&&Ge.length&&le.push(...Ge)}}const vt=le.filter(Zn=>!Zn.destroyed);vt.length?FW(this,B,vt):this.processLeaveNode(B)}return g.length=0,Mi.forEach(O=>{this.players.push(O),O.onDone(()=>{O.destroy();const B=this.players.indexOf(O);this.players.splice(B,1)}),O.play()}),Mi}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,t,r,i,s){let o=[];if(t){const a=this.playersByQueriedElement.get(n);a&&(o=a)}else{const a=this.playersByElement.get(n);if(a){const c=!s||s==kc;a.forEach(l=>{l.queued||!c&&l.triggerName!=i||o.push(l)})}}return(r||i)&&(o=o.filter(a=>!(r&&r!=a.namespaceId||i&&i!=a.triggerName))),o}_beforeAnimationBuild(n,t,r){const s=t.element,o=t.isRemovalTransition?void 0:n,a=t.isRemovalTransition?void 0:t.triggerName;for(const c of t.timelines){const l=c.element,u=l!==s,d=kn(r,l,[]);this._getPreviousPlayers(l,u,o,a,t.toState).forEach(h=>{const p=h.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),h.destroy(),d.push(h)})}ps(s,t.fromStyles)}_buildAnimation(n,t,r,i,s,o){const a=t.triggerName,c=t.element,l=[],u=new Set,d=new Set,f=t.timelines.map(p=>{const m=p.element;u.add(m);const g=m[gr];if(g&&g.removedBeforeQueried)return new pc(p.duration,p.delay);const _=m!==c,y=function LW(e){const n=[];return E1(e,n),n}((r.get(m)||AW).map(j=>j.getRealPlayer())).filter(j=>!!j.element&&j.element===m),w=s.get(m),D=o.get(m),M=JA(this._normalizer,p.keyframes,w,D),F=this._buildPlayer(p,M,y);if(p.subTimeline&&i&&d.add(m),_){const j=new f_(n,a,m);j.setRealPlayer(F),l.push(j)}return F});l.forEach(p=>{kn(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function PW(e,n,t){let r=e.get(n);if(r){if(r.length){const i=r.indexOf(t);r.splice(i,1)}0==r.length&&e.delete(n)}return r}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>qn(p,s1));const h=Ti(f);return h.onDestroy(()=>{u.forEach(p=>Ho(p,s1)),Or(c,t.toStyles)}),d.forEach(p=>{kn(i,p,[]).push(h)}),h}_buildPlayer(n,t,r){return t.length>0?this.driver.animate(n.element,t,n.duration,n.delay,n.easing,r):new pc(n.duration,n.delay)}}class f_{constructor(n,t,r){this.namespaceId=n,this.triggerName=t,this.element=r,this._player=new pc,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((t,r)=>{t.forEach(i=>Gy(n,r,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const t=this._player;t.triggerCallback&&n.onStart(()=>t.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,t){kn(this._queuedCallbacks,n,[]).push(t)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const t=this._player;t.triggerCallback&&t.triggerCallback(n)}}function uf(e){return e&&1===e.nodeType}function v1(e,n){const t=e.style.display;return e.style.display=n??"none",t}function C1(e,n,t,r,i){const s=[];t.forEach(c=>s.push(v1(c)));const o=[];r.forEach((c,l)=>{const u=new Map;c.forEach(d=>{const f=n.computeStyle(l,d,i);u.set(d,f),(!f||0==f.length)&&(l[gr]=xW,o.push(l))}),e.set(l,u)});let a=0;return t.forEach(c=>v1(c,s[a++])),o}function b1(e,n){const t=new Map;if(e.forEach(a=>t.set(a,[])),0==n.length)return t;const i=new Set(n),s=new Map;function o(a){if(!a)return 1;let c=s.get(a);if(c)return c;const l=a.parentNode;return c=t.has(l)?l:i.has(l)?1:o(l),s.set(a,c),c}return n.forEach(a=>{const c=o(a);1!==c&&t.get(c).push(a)}),t}function qn(e,n){e.classList?.add(n)}function Ho(e,n){e.classList?.remove(n)}function FW(e,n,t){Ti(t).onDone(()=>e.processLeaveNode(n))}function E1(e,n){for(let t=0;t<e.length;t++){const r=e[t];r instanceof jM?E1(r.players,n):n.push(r)}}function w1(e,n,t){const r=t.get(e);if(!r)return!1;let i=n.get(e);return i?r.forEach(s=>i.add(s)):n.set(e,r),t.delete(e),!0}class Pc{constructor(n,t,r){this._driver=t,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(i,s)=>{},this._transitionEngine=new kW(n.body,t,r),this._timelineEngine=new DW(n.body,t,r),this._transitionEngine.onRemovalComplete=(i,s)=>this.onRemovalComplete(i,s)}registerTrigger(n,t,r,i,s){const o=n+"-"+i;let a=this._triggerCache[o];if(!a){const c=[],u=r_(this._driver,s,c,[]);if(c.length)throw function Mq(){return new E(3404,!1)}();a=function CW(e,n,t){return new bW(e,n,t)}(i,u,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,i,a)}register(n,t){this._transitionEngine.register(n,t)}destroy(n,t){this._transitionEngine.destroy(n,t)}onInsert(n,t,r,i){this._transitionEngine.insertNode(n,t,r,i)}onRemove(n,t,r){this._transitionEngine.removeNode(n,t,r)}disableAnimations(n,t){this._transitionEngine.markElementAsDisabled(n,t)}process(n,t,r,i){if("@"==r.charAt(0)){const[s,o]=e1(r);this._timelineEngine.command(s,t,o,i)}else this._transitionEngine.trigger(n,t,r,i)}listen(n,t,r,i,s){if("@"==r.charAt(0)){const[o,a]=e1(r);return this._timelineEngine.listen(o,t,a,s)}return this._transitionEngine.listen(n,t,r,i,s)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(n){this._transitionEngine.afterFlushAnimationsDone(n)}}class Oc{static#e=this.initialStylesByElement=new WeakMap;constructor(n,t,r){this._element=n,this._startStyles=t,this._endStyles=r,this._state=0;let i=Oc.initialStylesByElement.get(n);i||Oc.initialStylesByElement.set(n,i=new Map),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&Or(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Or(this._element,this._initialStyles),this._endStyles&&(Or(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Oc.initialStylesByElement.delete(this._element),this._startStyles&&(ps(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ps(this._element,this._endStyles),this._endStyles=null),Or(this._element,this._initialStyles),this._state=3)}}function h_(e){let n=null;return e.forEach((t,r)=>{(function jW(e){return"display"===e||"position"===e})(r)&&(n=n||new Map,n.set(r,t))}),n}class D1{constructor(n,t,r,i){this.element=n,this.keyframes=t,this.options=r,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map;const t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const t=[];return n.forEach(r=>{t.push(Object.fromEntries(r))}),t}_triggerWebAnimation(n,t,r){return n.animate(this._convertKeyframesToObject(t),r)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((r,i)=>{"offset"!==i&&n.set(i,this._finished?r:n_(this.element,i))}),this.currentSnapshot=n}triggerCallback(n){const t="start"===n?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}class S1{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}containsElement(n,t){return n1(n,t)}getParentElement(n){return Wy(n)}query(n,t,r){return r1(n,t,r)}computeStyle(n,t,r){return n_(n,t)}animate(n,t,r,i,s,o=[]){const c={duration:r,delay:i,fill:0==i?"both":"forwards"};s&&(c.easing=s);const l=new Map,u=o.filter(h=>h instanceof D1);(function Qq(e,n){return 0===e||0===n})(r,i)&&u.forEach(h=>{h.currentSnapshot.forEach((p,m)=>l.set(m,p))});let d=function Zq(e){return e.length?e[0]instanceof Map?e:e.map(n=>new Map(Object.entries(n))):[]}(t).map(h=>new Map(h));d=function Xq(e,n,t){if(t.size&&n.length){let r=n[0],i=[];if(t.forEach((s,o)=>{r.has(o)||i.push(o),r.set(o,s)}),i.length)for(let s=1;s<n.length;s++){let o=n[s];i.forEach(a=>o.set(a,n_(e,a)))}}return n}(n,d,l);const f=function BW(e,n){let t=null,r=null;return Array.isArray(n)&&n.length?(t=h_(n[0]),n.length>1&&(r=h_(n[n.length-1]))):n instanceof Map&&(t=h_(n)),t||r?new Oc(e,t,r):null}(n,d);return new D1(n,d,c,f)}}const T1="@.disabled";class M1{constructor(n,t,r,i){this.namespaceId=n,this.delegate=t,this.engine=r,this._onDestroy=i,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(n){this.delegate.destroyNode?.(n)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(n,t){return this.delegate.createElement(n,t)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,t){this.delegate.appendChild(n,t),this.engine.onInsert(this.namespaceId,t,n,!1)}insertBefore(n,t,r,i=!0){this.delegate.insertBefore(n,t,r),this.engine.onInsert(this.namespaceId,t,n,i)}removeChild(n,t,r){this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(n,t){return this.delegate.selectRootElement(n,t)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,t,r,i){this.delegate.setAttribute(n,t,r,i)}removeAttribute(n,t,r){this.delegate.removeAttribute(n,t,r)}addClass(n,t){this.delegate.addClass(n,t)}removeClass(n,t){this.delegate.removeClass(n,t)}setStyle(n,t,r,i){this.delegate.setStyle(n,t,r,i)}removeStyle(n,t,r){this.delegate.removeStyle(n,t,r)}setProperty(n,t,r){"@"==t.charAt(0)&&t==T1?this.disableAnimations(n,!!r):this.delegate.setProperty(n,t,r)}setValue(n,t){this.delegate.setValue(n,t)}listen(n,t,r){return this.delegate.listen(n,t,r)}disableAnimations(n,t){this.engine.disableAnimations(n,t)}}class HW extends M1{constructor(n,t,r,i,s){super(t,r,i,s),this.factory=n,this.namespaceId=t}setProperty(n,t,r){"@"==t.charAt(0)?"."==t.charAt(1)&&t==T1?this.disableAnimations(n,r=void 0===r||!!r):this.engine.process(this.namespaceId,n,t.slice(1),r):this.delegate.setProperty(n,t,r)}listen(n,t,r){if("@"==t.charAt(0)){const i=function UW(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(n);let s=t.slice(1),o="";return"@"!=s.charAt(0)&&([s,o]=function $W(e){const n=e.indexOf(".");return[e.substring(0,n),e.slice(n+1)]}(s)),this.engine.listen(this.namespaceId,i,s,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,r,a)})}return this.delegate.listen(n,t,r)}}class GW{constructor(n,t,r){this.delegate=n,this.engine=t,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(i,s)=>{s?.removeChild(null,i)}}createRenderer(n,t){const i=this.delegate.createRenderer(n,t);if(!n||!t?.data?.animation){const l=this._rendererCache;let u=l.get(i);return u||(u=new M1("",i,this.engine,()=>l.delete(i)),l.set(i,u)),u}const s=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,n);const a=l=>{Array.isArray(l)?l.forEach(a):this.engine.registerTrigger(s,o,n,l.name,l)};return t.data.animation.forEach(a),new HW(this,o,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(n,t,r){if(n>=0&&n<this._microtaskId)return void this._zone.run(()=>t(r));const i=this._animationCallbacksBuffer;0==i.length&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(s=>{const[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),i.push([t,r])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}const I1=[{provide:Ky,useFactory:function qW(){return new c1}},{provide:Pc,useClass:(()=>{class e extends Pc{constructor(t,r,i){super(t,r,i)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(r){return new(r||e)(k(Vt),k(Yy),k(Ky))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})()},{provide:ru,useFactory:function WW(e,n,t){return new GW(e,n,t)},deps:[Vg,Pc,pe]}],p_=[{provide:Yy,useFactory:()=>new S1},{provide:JC,useValue:"BrowserAnimations"},...I1],A1=[{provide:Yy,useClass:Zy},{provide:JC,useValue:"NoopAnimations"},...I1];let x1=(()=>{class e{static withConfig(t){return{ngModule:e,providers:t.disableAnimations?A1:p_}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=bt({type:e});static#n=this.\u0275inj=ft({providers:p_,imports:[ad]})}return e})();const N1={merchantCapabilities:["supports3DS"],supportedNetworks:["visa","masterCard","amex","discover"]},ZW=Cf(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}),k1=new N("APPLE_PAY_SESSION_TOKEN",{factory:()=>A(Vt).defaultView.ApplePaySession});let P1=(()=>{class e{constructor(t){this.applePaySession=t}canMakePayments(){return ApplePaySession.canMakePayments()}createPaySession(t,r,i){return new nt(s=>{const o=a=>{s.error(a),console.error(a)};try{const a=new this.applePaySession(t,r),c=(l,u)=>{a.abort(),o({event:l,error:u})};a.onvalidatemerchant=function(){var l=ss(function*(u){try{const d=yield function YW(e,n){const t="object"==typeof n;return new Promise((r,i)=>{let o,s=!1;e.subscribe({next:a=>{o=a,s=!0},error:i,complete:()=>{s?r(o):t?r(n.defaultValue):i(new ZW)}})})}(i(u));a.completeMerchantValidation(d)}catch(d){c(u,d)}});return function(u){return l.apply(this,arguments)}}(),a.onpaymentmethodselected=l=>{const u={newTotal:{...r.total}};a.completePaymentMethodSelection(u)},a.onshippingmethodselected=l=>{a.completeShippingMethodSelection({})},a.onshippingcontactselected=l=>{a.completeShippingContactSelection({})},a.onpaymentauthorized=l=>{a.completePayment({status:ApplePaySession.STATUS_SUCCESS}),s.next(l),s.complete()},a.oncancel=l=>{o(l)},a.begin()}catch(a){o(a)}})}static#e=this.\u0275fac=function(r){return new(r||e)(k(k1))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})(),O1=(()=>{class e{constructor(t,r){this.nativeService=t,this.http=r}canMakePayment(){return An(this.nativeService.canMakePayments())}pay(t){const{version:r=10}=t;return this.nativeService.createPaySession(r,this.mapData(t),s=>this.validate(s,t))}validate(t,r){const{validationURL:i}=t,{merchantId:s,processingUrl:o,userToken:a}=r;return this.http.post(o,{validationUrl:i},{params:{merchantId:s},headers:a?{Authorization:a}:void 0})}mapData(t){const{total:r,countryCode:i,supportedNetworks:s=N1.supportedNetworks,merchantCapabilities:o=N1.merchantCapabilities}=t;return{countryCode:i,currencyCode:r.currency,supportedNetworks:s,merchantCapabilities:o,total:{amount:r.amount,label:r.label}}}static#e=this.\u0275fac=function(r){return new(r||e)(k(P1),k(Sd))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac})}return e})();const KW=new N("APPLE_PAY_SESSION_SUPPORT_TOKEN",{factory:()=>!!A(k1)});let R1=(()=>{class e{constructor(t,r){this.doc=t,this.platformId=r,this.loadPromises=new Map}load(t){if(!function lU(e){return e===gT}(this.platformId))return Promise.resolve();if(this.loadPromises.has(t))return this.loadPromises.get(t);const r=new Promise((i,s)=>{const o=this.doc.querySelector(`script[src="${t}"]`);if(o)return o.addEventListener("load",()=>i(),{once:!0}),void o.addEventListener("error",()=>s(new Error(`Script ${t} failed to load`)),{once:!0});const a=this.doc.createElement("script");a.src=t,a.async=!0,a.onload=()=>i(),a.onerror=()=>s(new Error(`Script ${t} failed to load`)),this.doc.head.appendChild(a)});return this.loadPromises.set(t,r),r}static#e=this.\u0275fac=function(r){return new(r||e)(k(Vt),k($r))};static#t=this.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const QW={canMakePayment:()=>An(!1),pay(e){throw new Error("not implemented")}};function XW(e){return()=>{try{return e.load("https://applepay.cdn-apple.com/jsapi/v1.3.2/apple-pay-sdk.js").catch(n=>{console.warn("Apple Pay preload failed (network or CDN issue):",n)})}catch(n){return void console.warn("Apple Pay preload threw synchronously:",n)}}}let F1=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=bt({type:e});static#n=this.\u0275inj=ft({providers:[P1,O1,{provide:Qm,deps:[R1],useFactory:XW,multi:!0},{provide:EI,deps:[KW,O1],useFactory:(t,r)=>t?r:QW}]})}return e})();function JW(e){return()=>{try{return e.load("https://pay.google.com/gp/p/js/pay.js").catch(n=>{console.warn("Google Pay preload failed (network or CDN issue):",n)})}catch(n){return void console.warn("Google Pay preload threw synchronously:",n)}}}let L1=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=bt({type:e});static#n=this.\u0275inj=ft({providers:[wI,{provide:Qm,deps:[R1],useFactory:JW,multi:!0}]})}return e})(),V1=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=bt({type:e});static#n=this.\u0275inj=ft({providers:[OA],imports:[NA.forRoot(),QA,SA,DA,Ag,ad,x1,F1,L1,NA,QA,SA,DA,Ag,ad,x1,F1,L1]})}return e})(),e7=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=bt({type:e});static#n=this.\u0275inj=ft({providers:[xe,fs,vy,yy,_y,Qd,Kd],imports:[V1]})}return e})(),t7=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=bt({type:e});static#n=this.\u0275inj=ft({providers:[my,Fo]})}return e})(),n7=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=bt({type:e});static#n=this.\u0275inj=ft({providers:[WA]})}return e})();function r7(e,n){let t=e;const r=A(xe),i=A(vc),s=r.data.settings().language,o=!!e.headers.get(No_customHeaders_skipToastr);return o&&(t=e.clone({headers:e.headers.delete(No_customHeaders_skipToastr)})),n(t).pipe(Po(a=>(o||i.error(s.notifications.error.default.text,s.notifications.error.default.title),r.events.error.emit(a),hy(()=>a))))}function i7(e,n){let t=e;const r=A(xe);if(!e.headers.get("Authorization")){const s=r.data.payment()?.userAuthToken;s&&(t=e.clone({headers:e.headers.append("Authorization",s)}))}return n(t)}let s7=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=bt({type:e});static#n=this.\u0275inj=ft({providers:[g6(y6([r7,i7]))],imports:[eG.forRoot(),e7,V1,t7,n7]})}return e})(),o7=(()=>{class e{constructor(t){this.injector=t}ngDoBootstrap(t){const{injector:r}=this,i=function c4(e,n){const t=function t4(e,n){return n.get(Ki).resolveComponentFactory(e).inputs}(e,n.injector),r=n.strategyFactory||new s4(e,n.injector),i=function e4(e){const n={};return e.forEach(({propName:t,templateName:r,transform:i})=>{n[function Y$(e){return e.replace(/[A-Z]/g,n=>`-${n.toLowerCase()}`)}(r)]=[t,i]}),n}(t);class s extends a4{static#e=this.observedAttributes=Object.keys(i);get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=r.create(this.injector||n.injector);t.forEach(({propName:c,transform:l})=>{if(!this.hasOwnProperty(c))return;const u=this[c];delete this[c],a.setInputValue(c,u,l)})}return this._ngElementStrategy}constructor(a){super(),this.injector=a}attributeChangedCallback(a,c,l,u){const[d,f]=i[a];this.ngElementStrategy.setInputValue(d,l,f)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{const c=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(c)})}}return t.forEach(({propName:o,transform:a})=>{Object.defineProperty(s.prototype,o,{get(){return this.ngElementStrategy.getInputValue(o)},set(c){this.ngElementStrategy.setInputValue(o,c,a)},configurable:!0,enumerable:!0})}),s}(sq,{injector:r});customElements.define("moto-payment-form",i)}static#e=this.\u0275fac=function(r){return new(r||e)(k(Ne))};static#t=this.\u0275mod=bt({type:e});static#n=this.\u0275inj=ft({imports:[ad,s7]})}return e})();s$().bootstrapModule(o7).catch(e=>console.log(e))},634:function(On,Ue,lt){var tt=this&&this.__assign||function(){return tt=Object.assign||function(de){for(var Le,ut=1,Rn=arguments.length;ut<Rn;ut++)for(var Fr in Le=arguments[ut])Object.prototype.hasOwnProperty.call(Le,Fr)&&(de[Fr]=Le[Fr]);return de},tt.apply(this,arguments)},ye=lt(990),ze=lt(402),we=lt(987),Qe=lt(250),q=lt(507),It={},Ke={VISA:"visa",MASTERCARD:"mastercard",AMERICAN_EXPRESS:"american-express",DINERS_CLUB:"diners-club",DISCOVER:"discover",JCB:"jcb",UNIONPAY:"unionpay",MAESTRO:"maestro",ELO:"elo",MIR:"mir",HIPER:"hiper",HIPERCARD:"hipercard"},ni=[Ke.VISA,Ke.MASTERCARD,Ke.AMERICAN_EXPRESS,Ke.DINERS_CLUB,Ke.DISCOVER,Ke.JCB,Ke.UNIONPAY,Ke.MAESTRO,Ke.ELO,Ke.MIR,Ke.HIPER,Ke.HIPERCARD],Nt=(0,q.clone)(ni);function ri(de){return It[de]||ye[de]}function _s(de,Le){void 0===Le&&(Le=!1);var ut=Nt.indexOf(de);if(!Le&&-1===ut)throw new Error('"'+de+'" is not a supported card type.');return ut}function Kn(de){var Le=[];if(!(0,we.isValidInputType)(de))return Le;if(0===de.length)return function pf(){return Nt.map(function(de){return(0,q.clone)(ri(de))})}();Nt.forEach(function(Rn){var Fr=ri(Rn);(0,ze.addMatchingCardsToResults)(de,Fr,Le)});var ut=(0,Qe.findBestMatch)(Le);return ut?[ut]:Le}Kn.getTypeInfo=function(de){return(0,q.clone)(ri(de))},Kn.removeCard=function(de){var Le=_s(de);Nt.splice(Le,1)},Kn.addCard=function(de){var Le=_s(de.type,!0);It[de.type]=de,-1===Le&&Nt.push(de.type)},Kn.updateCard=function(de,Le){var ut=It[de]||ye[de];if(!ut)throw new Error('"'.concat(de,"\" is not a recognized type. Use `addCard` instead.'"));if(Le.type&&ut.type!==Le.type)throw new Error("Cannot overwrite type parameter.");var Rn=(0,q.clone)(ut);Rn=tt(tt({},Rn),Le),It[Rn.type]=Rn},Kn.changeOrder=function(de,Le){var ut=_s(de);Nt.splice(ut,1),Nt.splice(Le,0,de)},Kn.resetModifications=function(){Nt=(0,q.clone)(ni),It={}},Kn.types=Ke,On.exports=Kn},402:(On,Ue,lt)=>{Object.defineProperty(Ue,"__esModule",{value:!0}),Ue.addMatchingCardsToResults=void 0;var tt=lt(507),ye=lt(595);Ue.addMatchingCardsToResults=function ze(we,Qe,q){var It,Ke;for(It=0;It<Qe.patterns.length;It++){var ni=Qe.patterns[It];if((0,ye.matches)(we,ni)){var Nt=(0,tt.clone)(Qe);Ke=Array.isArray(ni)?String(ni[0]).length:String(ni).length,we.length>=Ke&&(Nt.matchStrength=Ke),q.push(Nt);break}}}},990:On=>{On.exports={visa:{niceType:"Visa",type:"visa",patterns:[4],gaps:[4,8,12],lengths:[16,18,19],code:{name:"CVV",size:3}},mastercard:{niceType:"Mastercard",type:"mastercard",patterns:[[51,55],[2221,2229],[223,229],[23,26],[270,271],2720],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}},"american-express":{niceType:"American Express",type:"american-express",patterns:[34,37],gaps:[4,10],lengths:[15],code:{name:"CID",size:4}},"diners-club":{niceType:"Diners Club",type:"diners-club",patterns:[[300,305],36,38,39],gaps:[4,10],lengths:[14,16,19],code:{name:"CVV",size:3}},discover:{niceType:"Discover",type:"discover",patterns:[6011,[644,649],65],gaps:[4,8,12],lengths:[16,19],code:{name:"CID",size:3}},jcb:{niceType:"JCB",type:"jcb",patterns:[2131,1800,[3528,3589]],gaps:[4,8,12],lengths:[16,17,18,19],code:{name:"CVV",size:3}},unionpay:{niceType:"UnionPay",type:"unionpay",patterns:[620,[62100,62182],[62184,62187],[62185,62197],[62200,62205],[622010,622999],622018,[62207,62209],[623,626],6270,6272,6276,[627700,627779],[627781,627799],[6282,6289],6291,6292,810,[8110,8131],[8132,8151],[8152,8163],[8164,8171]],gaps:[4,8,12],lengths:[14,15,16,17,18,19],code:{name:"CVN",size:3}},maestro:{niceType:"Maestro",type:"maestro",patterns:[493698,[5e5,504174],[504176,506698],[506779,508999],[56,59],63,67,6],gaps:[4,8,12],lengths:[12,13,14,15,16,17,18,19],code:{name:"CVC",size:3}},elo:{niceType:"Elo",type:"elo",patterns:[401178,401179,438935,457631,457632,431274,451416,457393,504175,[506699,506778],[509e3,509999],627780,636297,636368,[650031,650033],[650035,650051],[650405,650439],[650485,650538],[650541,650598],[650700,650718],[650720,650727],[650901,650978],[651652,651679],[655e3,655019],[655021,655058]],gaps:[4,8,12],lengths:[16],code:{name:"CVE",size:3}},mir:{niceType:"Mir",type:"mir",patterns:[[2200,2204]],gaps:[4,8,12],lengths:[16,17,18,19],code:{name:"CVP2",size:3}},hiper:{niceType:"Hiper",type:"hiper",patterns:[637095,63737423,63743358,637568,637599,637609,637612],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}},hipercard:{niceType:"Hipercard",type:"hipercard",patterns:[606282],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}}}},507:(On,Ue)=>{Object.defineProperty(Ue,"__esModule",{value:!0}),Ue.clone=void 0,Ue.clone=function lt(tt){return tt?JSON.parse(JSON.stringify(tt)):null}},250:(On,Ue)=>{Object.defineProperty(Ue,"__esModule",{value:!0}),Ue.findBestMatch=void 0,Ue.findBestMatch=function tt(ye){return function lt(ye){var ze=ye.filter(function(we){return we.matchStrength}).length;return ze>0&&ze===ye.length}(ye)?ye.reduce(function(ze,we){return!ze||Number(ze.matchStrength)<Number(we.matchStrength)?we:ze}):null}},987:(On,Ue)=>{Object.defineProperty(Ue,"__esModule",{value:!0}),Ue.isValidInputType=void 0,Ue.isValidInputType=function lt(tt){return"string"==typeof tt||tt instanceof String}},595:(On,Ue)=>{Object.defineProperty(Ue,"__esModule",{value:!0}),Ue.matches=void 0,Ue.matches=function ye(ze,we){return Array.isArray(we)?function lt(ze,we,Qe){var q=String(we).length,It=ze.substr(0,q),Ke=parseInt(It,10);return we=parseInt(String(we).substr(0,It.length),10),Qe=parseInt(String(Qe).substr(0,It.length),10),Ke>=we&&Ke<=Qe}(ze,we[0],we[1]):function tt(ze,we){return(we=String(we)).substring(0,ze.length)===ze.substring(0,we.length)}(ze,we)}}},On=>{On(On.s=409)}]);