@motopays/pay-form 2.6.0 → 2.6.1-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +342 -342
- package/README.md +652 -652
- package/index.js +1 -1
- package/package.json +24 -24
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
|
-
(self.webpackChunk_motopays_pay_form=self.webpackChunk_motopays_pay_form||[]).push([[792],{771:(F,x,M)=>{"use strict";function D(e,n){return Object.is(e,n)}let ke=null,Ae=!1,xe=1;const z=Symbol("SIGNAL");function ie(e){const n=ke;return ke=e,n}const Ht={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 lr(e){if(Ae)throw new Error("");if(null===ke)return;ke.consumerOnSignalRead(e);const n=ke.nextProducerIndex++;Xs(ke),n<ke.producerNode.length&&ke.producerNode[n]!==e&&xi(ke)&&so(ke.producerNode[n],ke.producerIndexOfThis[n]),ke.producerNode[n]!==e&&(ke.producerNode[n]=e,ke.producerIndexOfThis[n]=xi(ke)?Ks(e,ke,n):0),ke.producerLastReadVersion[n]=e.version}function io(e){if((!xi(e)||e.dirty)&&(e.dirty||e.lastCleanEpoch!==xe)){if(!e.producerMustRecompute(e)&&!Ar(e))return e.dirty=!1,void(e.lastCleanEpoch=xe);e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=xe}}function Nn(e){if(void 0===e.liveConsumerNode)return;const n=Ae;Ae=!0;try{for(const t of e.liveConsumerNode)t.dirty||Te(t)}finally{Ae=n}}function Ie(){return!1!==ke?.consumerAllowSignalWrites}function Te(e){e.dirty=!0,Nn(e),e.consumerMarkedDirty?.(e)}function et(e){return e&&(e.nextProducerIndex=0),ie(e)}function pt(e,n){if(ie(n),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(xi(e))for(let t=e.nextProducerIndex;t<e.producerNode.length;t++)so(e.producerNode[t],e.producerIndexOfThis[t]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Ar(e){Xs(e);for(let n=0;n<e.producerNode.length;n++){const t=e.producerNode[n],r=e.producerLastReadVersion[n];if(r!==t.version||(io(t),r!==t.version))return!0}return!1}function oo(e){if(Xs(e),xi(e))for(let n=0;n<e.producerNode.length;n++)so(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 Ks(e,n,t){if(Qs(e),0===e.liveConsumerNode.length&&ao(e))for(let r=0;r<e.producerNode.length;r++)e.producerIndexOfThis[r]=Ks(e.producerNode[r],e,r);return e.liveConsumerIndexOfThis.push(t),e.liveConsumerNode.push(n)-1}function so(e,n){if(Qs(e),1===e.liveConsumerNode.length&&ao(e))for(let r=0;r<e.producerNode.length;r++)so(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];Xs(i),i.producerIndexOfThis[r]=n}}function xi(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function Xs(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Qs(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function ao(e){return void 0!==e.producerNode}const qu=Symbol("UNSET"),Bo=Symbol("COMPUTING"),Ho=Symbol("ERRORED"),Wu={...Ht,value:qu,dirty:!0,error:null,equal:D,producerMustRecompute:e=>e.value===qu||e.value===Bo,producerRecomputeValue(e){if(e.value===Bo)throw new Error("Detected cycle in computations.");const n=e.value;e.value=Bo;const t=et(e);let r;try{r=e.computation()}catch(i){r=Ho,e.error=i}finally{pt(e,t)}n!==qu&&n!==Ho&&r!==Ho&&e.equal(n,r)?e.value=n:(e.value=r,e.version++)}};let Zu=function uo(){throw new Error};function Js(){Zu()}let dr=null;function ki(e,n){Ie()||Js(),e.equal(e.value,n)||(e.value=n,function On(e){e.version++,function jo(){xe++}(),Nn(e),dr?.()}(e))}const ta={...Ht,equal:D,value:void 0};const Ni=()=>{},Nm={...Ht,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{null!==e.schedule&&e.schedule(e.ref)},hasRun:!1,cleanupFn:Ni};function at(e){return"function"==typeof e}function qn(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 ra=qn(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 Uo(e,n){if(e){const t=e.indexOf(n);0<=t&&e.splice(t,1)}}class ln{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 o of t)o.remove(this);else t.remove(this);const{initialTeardown:r}=this;if(at(r))try{r()}catch(o){n=o instanceof ra?o.errors:[o]}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const o of i)try{Ed(o)}catch(s){n=n??[],s instanceof ra?n=[...n,...s.errors]:n.push(s)}}if(n)throw new ra(n)}}add(n){var t;if(n&&n!==this)if(this.closed)Ed(n);else{if(n instanceof ln){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)&&Uo(t,n)}remove(n){const{_finalizers:t}=this;t&&Uo(t,n),n instanceof ln&&n._removeParent(this)}}ln.EMPTY=(()=>{const e=new ln;return e.closed=!0,e})();const wd=ln.EMPTY;function Cd(e){return e instanceof ln||e&&"closed"in e&&at(e.remove)&&at(e.add)&&at(e.unsubscribe)}function Ed(e){at(e)?e():e.unsubscribe()}const Oi={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ia={setTimeout(e,n,...t){const{delegate:r}=ia;return r?.setTimeout?r.setTimeout(e,n,...t):setTimeout(e,n,...t)},clearTimeout(e){const{delegate:n}=ia;return(n?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Dd(e){ia.setTimeout(()=>{const{onUnhandledError:n}=Oi;if(!n)throw e;n(e)})}function co(){}const Ri=Xu("C",void 0,void 0);function Xu(e,n,t){return{kind:e,value:n,error:t}}let Fi=null;function sa(e){if(Oi.useDeprecatedSynchronousErrorHandling){const n=!Fi;if(n&&(Fi={errorThrown:!1,error:null}),e(),n){const{errorThrown:t,error:r}=Fi;if(Fi=null,t)throw r}}else e()}class Rn extends ln{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,Cd(n)&&n.add(this)):this.destination=Lm}static create(n,t,r){return new aa(n,t,r)}next(n){this.isStopped?ca(function Om(e){return Xu("N",e,void 0)}(n),this):this._next(n)}error(n){this.isStopped?ca(function oa(e){return Xu("E",void 0,e)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?ca(Ri,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 Td=Function.prototype.bind;function Qu(e,n){return Td.call(e,n)}class Rm{constructor(n){this.partialObserver=n}next(n){const{partialObserver:t}=this;if(t.next)try{t.next(n)}catch(r){ua(r)}}error(n){const{partialObserver:t}=this;if(t.error)try{t.error(n)}catch(r){ua(r)}else ua(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(t){ua(t)}}}class aa extends Rn{constructor(n,t,r){let i;if(super(),at(n)||!n)i={next:n??void 0,error:t??void 0,complete:r??void 0};else{let o;this&&Oi.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),i={next:n.next&&Qu(n.next,o),error:n.error&&Qu(n.error,o),complete:n.complete&&Qu(n.complete,o)}):i=n}this.destination=new Rm(i)}}function ua(e){Oi.useDeprecatedSynchronousErrorHandling?function Sd(e){Oi.useDeprecatedSynchronousErrorHandling&&Fi&&(Fi.errorThrown=!0,Fi.error=e)}(e):Dd(e)}function ca(e,n){const{onStoppedNotification:t}=Oi;t&&ia.setTimeout(()=>t(e,n))}const Lm={closed:!0,next:co,error:function Fm(e){throw e},complete:co},la="function"==typeof Symbol&&Symbol.observable||"@@observable";function $o(e){return e}let bt=(()=>{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 o=function Md(e){return e&&e instanceof Rn||function ec(e){return e&&at(e.next)&&at(e.error)&&at(e.complete)}(e)&&Cd(e)}(t)?t:new aa(t,r,i);return sa(()=>{const{operator:s,source:u}=this;o.add(s?s.call(o,u):u?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(t){try{return this._subscribe(t)}catch(r){t.error(r)}}forEach(t,r){return new(r=Ju(r))((i,o)=>{const s=new aa({next:u=>{try{t(u)}catch(c){o(c),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(t){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(t)}[la](){return this}pipe(...t){return function da(e){return 0===e.length?$o:1===e.length?e[0]:function(t){return e.reduce((r,i)=>i(r),t)}}(t)(this)}toPromise(t){return new(t=Ju(t))((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return e.create=n=>new e(n),e})();function Ju(e){var n;return null!==(n=e??Oi.Promise)&&void 0!==n?n:Promise}const tc=qn(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let wt=(()=>{class e extends bt{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const r=new Id(this,this);return r.operator=t,r}_throwIfClosed(){if(this.closed)throw new tc}next(t){sa(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(t)}})}error(t){sa(()=>{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(){sa(()=>{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:o}=this;return r||i?wd:(this.currentObservers=null,o.push(t),new ln(()=>{this.currentObservers=null,Uo(o,t)}))}_checkFinalizedStatuses(t){const{hasError:r,thrownError:i,isStopped:o}=this;r?t.error(i):o&&t.complete()}asObservable(){const t=new bt;return t.source=this,t}}return e.create=(n,t)=>new Id(n,t),e})();class Id extends wt{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:wd}}class nc extends wt{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 Pd(e){return at(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 Qt(e,n,t,r,i){return new Ad(e,n,t,r,i)}class Ad extends Rn{constructor(n,t,r,i,o,s){super(n),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=t?function(u){try{t(u)}catch(c){n.error(c)}}:super._next,this._error=i?function(u){try{i(u)}catch(c){n.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(u){n.error(u)}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 Tt(e,n){return gn((t,r)=>{let i=0;t.subscribe(Qt(r,o=>{r.next(e.call(n,o,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 rf="https://g.co/ng/security#xss";class k extends Error{constructor(n,t){super(function lo(e,n){return`NG0${Math.abs(e)}${n?": "+n:""}`}(n,t)),this.code=n}}const Rr=Symbol("InputSignalNode#UNSET"),ui={...ta,transformFn:void 0,applyValueToInputSignal(e,n){ki(e,n)}};function ho(e,n){const t=Object.create(ui);function r(){if(lr(t),t.value===Rr)throw new k(-950,!1);return t.value}return t.value=e,t.transformFn=n?.transform,r[z]=t,r}function Fr(e){return{toString:e}.toString()}const po="__annotations__",Lr="__parameters__",Fn="__prop__metadata__";function _a(e,n,t,r,i){return Fr(()=>{const o=ns(n);function s(...u){if(this instanceof s)return o.call(this,...u),this;const c=new s(...u);return function(f){return i&&i(f,...u),(f.hasOwnProperty(po)?f[po]:Object.defineProperty(f,po,{value:[]})[po]).push(c),r&&r(f),f}}return t&&(s.prototype=Object.create(t.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s})}function ns(e){return function(...t){if(e){const r=e(...t);for(const i in r)this[i]=r[i]}}}function ci(e,n,t){return Fr(()=>{const r=ns(n);function i(...o){if(this instanceof i)return r.apply(this,o),this;const s=new i(...o);return u.annotation=s,u;function u(c,d,f){const m=c.hasOwnProperty(Lr)?c[Lr]:Object.defineProperty(c,Lr,{value:[]})[Lr];for(;m.length<=f;)m.push(null);return(m[f]=m[f]||[]).push(s),c}}return t&&(i.prototype=Object.create(t.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}const Xe=globalThis;function He(e){for(let n in e)if(e[n]===He)return n;throw Error("Could not find renamed property on target object.")}function af(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 ba(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n}const pg=He({__forward_ref__:He});function Ne(e){return e.__forward_ref__=Ne,e.toString=function(){return Ct(this())},e}function ae(e){return mo(e)?e():e}function mo(e){return"function"==typeof e&&e.hasOwnProperty(pg)&&e.__forward_ref__===Ne}function Y(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Et(e){return{providers:e.providers||[],imports:e.imports||[]}}function Ca(e){return Sc(e,Ea)||Sc(e,Mc)}function Sc(e,n){return e.hasOwnProperty(n)?e[n]:null}function go(e){return e&&(e.hasOwnProperty(Tc)||e.hasOwnProperty(ff))?e[Tc]:null}const Ea=He({\u0275prov:He}),Tc=He({\u0275inj:He}),Mc=He({ngInjectableDef:He}),ff=He({ngInjectorDef:He});class q{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=Y({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Ac(e){return e&&!!e.\u0275providers}const is=He({\u0275cmp:He}),os=He({\u0275dir:He}),Ta=He({\u0275pipe:He}),pf=He({\u0275mod:He}),vn=He({\u0275fac:He}),yo=He({__NG_ELEMENT_ID__:He}),xc=He({__NG_ENV_ID__:He});function W(e){return"string"==typeof e?e:null==e?"":String(e)}function Ma(e,n){throw new k(-201,!1)}var Se=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}(Se||{});let kc;function ss(){return kc}function nn(e){const n=kc;return kc=e,n}function Nc(e,n,t){const r=Ca(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:t&Se.Optional?null:void 0!==n?n:void Ma()}const us={},di="__NG_DI_FLAG__",Pa="ngTempTokenPath",Dg=/\n/gm,Bi="__source";let pr;function Oe(e){const n=pr;return pr=e,n}function a(e,n=Se.Default){if(void 0===pr)throw new k(-203,!1);return null===pr?Nc(e,void 0,n):pr.get(e,n&Se.Optional?null:void 0,n)}function l(e,n=Se.Default){return(ss()||a)(ae(e),n)}function p(e,n=Se.Default){return l(e,v(n))}function v(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function b(e){const n=[];for(let t=0;t<e.length;t++){const r=ae(e[t]);if(Array.isArray(r)){if(0===r.length)throw new k(900,!1);let i,o=Se.Default;for(let s=0;s<r.length;s++){const u=r[s],c=E(u);"number"==typeof c?-1===c?i=u.token:o|=c:i=u}n.push(l(i,o))}else n.push(l(r))}return n}function w(e,n){return e[di]=n,e.prototype[di]=n,e}function E(e){return e[di]}const X=w(ci("Inject",e=>({token:e})),-1),Ze=w(ci("Optional"),8),mt=w(ci("Self"),2),$t=w(ci("SkipSelf"),4),cs=w(ci("Host"),1);function _n(e,n){return e.hasOwnProperty(vn)?e[vn]:null}function Aa(e,n){e.forEach(t=>Array.isArray(t)?Aa(t,n):n(t))}function dw(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function yf(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function vf(e,n){const t=[];for(let r=0;r<e;r++)t.push(n);return t}function Yn(e,n,t){let r=xa(e,n);return r>=0?e[1|r]=t:(r=~r,function fw(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 Tg(e,n){const t=xa(e,n);if(t>=0)return e[1|t]}function xa(e,n){return function hw(e,n,t){let r=0,i=e.length>>t;for(;i!==r;){const o=r+(i-r>>1),s=e[o<<t];if(n===s)return o<<t;s>n?i=o:r=o+1}return~(i<<t)}(e,n,1)}const fi={},Re=[],hi=new q(""),pw=new q("",-1),Mg=new q("");class _f{get(n,t=us){if(t===us){const r=new Error(`NullInjectorError: No provider for ${Ct(n)}!`);throw r.name="NullInjectorError",r}return t}}var bf=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(bf||{}),jr=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(jr||{}),vo=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(vo||{});function $A(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 o=n.length;if(i+o===r||e.charCodeAt(i+o)<=32)return i}t=i+1}}function Ig(e,n,t){let r=0;for(;r<t.length;){const i=t[r];if("number"==typeof i){if(0!==i)break;r++;const o=t[r++],s=t[r++],u=t[r++];e.setAttribute(n,s,u,o)}else{const o=i,s=t[++r];gw(o)?e.setProperty(n,o,s):e.setAttribute(n,o,s),r++}}return r}function mw(e){return 3===e||4===e||6===e}function gw(e){return 64===e.charCodeAt(0)}function Oc(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||yw(e,t,i,null,-1===t||2===t?n[++r]:null)}}return e}function yw(e,n,t,r,i){let o=0,s=e.length;if(-1===n)s=-1;else for(;o<e.length;){const u=e[o++];if("number"==typeof u){if(u===n){s=-1;break}if(u>n){s=o-1;break}}}for(;o<e.length;){const u=e[o];if("number"==typeof u)break;if(u===t){if(null===r)return void(null!==i&&(e[o+1]=i));if(r===e[o+1])return void(e[o+2]=i)}o++,null!==r&&o++,null!==i&&o++}-1!==s&&(e.splice(s,0,n),o=s+1),e.splice(o++,0,t),null!==r&&e.splice(o++,0,r),null!==i&&e.splice(o++,0,i)}const vw="ng-template";function zA(e,n,t,r){let i=0;if(r){for(;i<n.length&&"string"==typeof n[i];i+=2)if("class"===n[i]&&-1!==$A(n[i+1].toLowerCase(),t,0))return!0}else if(Pg(e))return!1;if(i=n.indexOf(1,i),i>-1){let o;for(;++i<n.length&&"string"==typeof(o=n[i]);)if(o.toLowerCase()===t)return!0}return!1}function Pg(e){return 4===e.type&&e.value!==vw}function qA(e,n,t){return n===(4!==e.type||t?e.value:vw)}function WA(e,n,t){let r=4;const i=e.attrs,o=null!==i?function KA(e){for(let n=0;n<e.length;n++)if(mw(e[n]))return n;return e.length}(i):0;let s=!1;for(let u=0;u<n.length;u++){const c=n[u];if("number"!=typeof c){if(!s)if(4&r){if(r=2|1&r,""!==c&&!qA(e,c,t)||""===c&&1===n.length){if(Br(r))return!1;s=!0}}else if(8&r){if(null===i||!zA(e,i,c,t)){if(Br(r))return!1;s=!0}}else{const d=n[++u],f=ZA(c,i,Pg(e),t);if(-1===f){if(Br(r))return!1;s=!0;continue}if(""!==d){let m;if(m=f>o?"":i[f+1].toLowerCase(),2&r&&d!==m){if(Br(r))return!1;s=!0}}}}else{if(!s&&!Br(r)&&!Br(c))return!1;if(s&&Br(c))continue;s=!1,r=c|1&r}}return Br(r)||s}function Br(e){return!(1&e)}function ZA(e,n,t,r){if(null===n)return-1;let i=0;if(r||!t){let o=!1;for(;i<n.length;){const s=n[i];if(s===e)return i;if(3===s||6===s)o=!0;else{if(1===s||2===s){let u=n[++i];for(;"string"==typeof u;)u=n[++i];continue}if(4===s)break;if(0===s){i+=4;continue}}i+=o?1:2}return-1}return function XA(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 _w(e,n,t=!1){for(let r=0;r<n.length;r++)if(WA(e,n[r],t))return!0;return!1}function QA(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 bw(e,n){return e?":not("+n.trim()+")":n}function JA(e){let n=e[0],t=1,r=2,i="",o=!1;for(;t<e.length;){let s=e[t];if("string"==typeof s)if(2&r){const u=e[++t];i+="["+s+(u.length>0?'="'+u+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""!==i&&!Br(s)&&(n+=bw(o,i),i=""),r=s,o=o||!Br(r);t++}return""!==i&&(n+=bw(o,i)),n}function Ye(e){return Fr(()=>{const n=Cw(e),t={...n,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===bf.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||jr.Emulated,styles:e.styles||Re,_:null,schemas:e.schemas||null,tView:null,id:""};Ew(t);const r=e.dependencies;return t.directiveDefs=wf(r,!1),t.pipeDefs=wf(r,!0),t.id=function ox(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 nx(e){return Ee(e)||qt(e)}function rx(e){return null!==e}function zt(e){return Fr(()=>({type:e.type,bootstrap:e.bootstrap||Re,declarations:e.declarations||Re,imports:e.imports||Re,exports:e.exports||Re,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function ww(e,n){if(null==e)return fi;const t={};for(const r in e)if(e.hasOwnProperty(r)){const i=e[r];let o,s,u=vo.None;Array.isArray(i)?(u=i[0],o=i[1],s=i[2]??o):(o=i,s=i),n?(t[o]=u!==vo.None?[r,u]:r,n[o]=s):t[o]=r}return t}function le(e){return Fr(()=>{const n=Cw(e);return Ew(n),n})}function Ot(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 Ee(e){return e[is]||null}function qt(e){return e[os]||null}function rn(e){return e[Ta]||null}function Cw(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||fi,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||Re,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:ww(e.inputs,n),outputs:ww(e.outputs),debugInfo:null}}function Ew(e){e.features?.forEach(n=>n(e))}function wf(e,n){if(!e)return null;const t=n?rn:nx;return()=>("function"==typeof e?e():e).map(r=>t(r)).filter(rx)}function ka(e){return{\u0275providers:e}}function sx(...e){return{\u0275providers:Ag(0,e),\u0275fromNgModule:!0}}function Ag(e,...n){const t=[],r=new Set;let i;const o=s=>{t.push(s)};return Aa(n,s=>{const u=s;Cf(u,o,[],r)&&(i||=[],i.push(u))}),void 0!==i&&Dw(i,o),t}function Dw(e,n){for(let t=0;t<e.length;t++){const{ngModule:r,providers:i}=e[t];xg(i,o=>{n(o,r)})}}function Cf(e,n,t,r){if(!(e=ae(e)))return!1;let i=null,o=go(e);const s=!o&&Ee(e);if(o||s){if(s&&!s.standalone)return!1;i=e}else{const c=e.ngModule;if(o=go(c),!o)return!1;i=c}const u=r.has(i);if(s){if(u)return!1;if(r.add(i),s.dependencies){const c="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const d of c)Cf(d,n,t,r)}}else{if(!o)return!1;{if(null!=o.imports&&!u){let d;r.add(i);try{Aa(o.imports,f=>{Cf(f,n,t,r)&&(d||=[],d.push(f))})}finally{}void 0!==d&&Dw(d,n)}if(!u){const d=_n(i)||(()=>new i);n({provide:i,useFactory:d,deps:Re},i),n({provide:Mg,useValue:i,multi:!0},i),n({provide:hi,useValue:()=>l(i),multi:!0},i)}const c=o.providers;if(null!=c&&!u){const d=e;xg(c,f=>{n(f,d)})}}}return i!==e&&void 0!==e.providers}function xg(e,n){for(let t of e)Ac(t)&&(t=t.\u0275providers),Array.isArray(t)?xg(t,n):n(t)}const ax=He({provide:String,useValue:He});function kg(e){return null!==e&&"object"==typeof e&&ax in e}function ds(e){return"function"==typeof e}const Ng=new q(""),Ef={},cx={};let Og;function Df(){return void 0===Og&&(Og=new _f),Og}class mr{}class Na extends mr{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,Fg(n,s=>this.processProvider(s)),this.records.set(pw,Oa(void 0,this)),i.has("environment")&&this.records.set(mr,Oa(void 0,this));const o=this.records.get(Ng);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Mg,Re,Se.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const n=ie(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(),ie(n)}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const t=Oe(this),r=nn(void 0);try{return n()}finally{Oe(t),nn(r)}}get(n,t=us,r=Se.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(xc))return n[xc](this);r=v(r);const o=Oe(this),s=nn(void 0);try{if(!(r&Se.SkipSelf)){let c=this.records.get(n);if(void 0===c){const d=function px(e){return"function"==typeof e||"object"==typeof e&&e instanceof q}(n)&&Ca(n);c=d&&this.injectableDefInScope(d)?Oa(Rg(n),Ef):null,this.records.set(n,c)}if(null!=c)return this.hydrate(n,c)}return(r&Se.Self?Df():this.parent).get(n,t=r&Se.Optional&&t===us?null:t)}catch(u){if("NullInjectorError"===u.name){if((u[Pa]=u[Pa]||[]).unshift(Ct(n)),o)throw u;return function V(e,n,t,r){const i=e[Pa];throw n[Bi]&&i.unshift(n[Bi]),e.message=function O(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 o=[];for(let s in n)if(n.hasOwnProperty(s)){let u=n[s];o.push(s+":"+("string"==typeof u?JSON.stringify(u):Ct(u)))}i=`{${o.join(", ")}}`}return`${t}${r?"("+r+")":""}[${i}]: ${e.replace(Dg,"\n ")}`}("\n"+e.message,i,t,r),e.ngTokenPath=i,e[Pa]=null,e}(u,n,"R3InjectorError",this.source)}throw u}finally{nn(s),Oe(o)}}resolveInjectorInitializers(){const n=ie(null),t=Oe(this),r=nn(void 0);try{const o=this.get(hi,Re,Se.Self);for(const s of o)s()}finally{Oe(t),nn(r),ie(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 k(205,!1)}processProvider(n){let t=ds(n=ae(n))?n:ae(n&&n.provide);const r=function dx(e){return kg(e)?Oa(void 0,e.useValue):Oa(Mw(e),Ef)}(n);if(!ds(n)&&!0===n.multi){let i=this.records.get(t);i||(i=Oa(void 0,Ef,!0),i.factory=()=>b(i.multi),this.records.set(t,i)),t=n,i.multi.push(n)}this.records.set(t,r)}hydrate(n,t){const r=ie(null);try{return t.value===Ef&&(t.value=cx,t.value=t.factory()),"object"==typeof t.value&&t.value&&function hx(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{ie(r)}}injectableDefInScope(n){if(!n.providedIn)return!1;const t=ae(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 Rg(e){const n=Ca(e),t=null!==n?n.factory:_n(e);if(null!==t)return t;if(e instanceof q)throw new k(204,!1);if(e instanceof Function)return function lx(e){if(e.length>0)throw new k(204,!1);const t=function df(e){return e&&(e[Ea]||e[Mc])||null}(e);return null!==t?()=>t.factory(e):()=>new e}(e);throw new k(204,!1)}function Mw(e,n,t){let r;if(ds(e)){const i=ae(e);return _n(i)||Rg(i)}if(kg(e))r=()=>ae(e.useValue);else if(function Tw(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...b(e.deps||[]));else if(function Sw(e){return!(!e||!e.useExisting)}(e))r=()=>l(ae(e.useExisting));else{const i=ae(e&&(e.useClass||e.provide));if(!function fx(e){return!!e.deps}(e))return _n(i)||Rg(i);r=()=>new i(...b(e.deps))}return r}function Oa(e,n,t=!1){return{factory:e,value:n,multi:t?[]:void 0}}function Fg(e,n){for(const t of e)Array.isArray(t)?Fg(t,n):t&&Ac(t)?Fg(t.\u0275providers,n):n(t)}function Iw(){return void 0!==ss()||null!=function gf(){return pr}()}function Wt(e){const n=Xe.ng;if(n&&n.\u0275compilerFacade)return n.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}const Pw={\u0275\u0275defineInjectable:Y,\u0275\u0275defineInjector:Et,\u0275\u0275inject:l,\u0275\u0275invalidFactoryDep:function h(e){throw new k(202,!1)},resolveForwardRef:ae},vx=Function;function Rc(e){return"function"==typeof e}const _x=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\).*)\)/,bx=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,wx=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,Cx=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{[^}]*super\(\.\.\.arguments\)/;class Dx{constructor(n){this._reflect=n||Xe.Reflect}factory(n){return(...t)=>new n(...t)}_zipTypesAndAnnotations(n,t){let r;r=vf(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 Ex(e){return _x.test(e)||Cx.test(e)||bx.test(e)&&!wx.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 u="function"==typeof i?i():i,c=u.map(f=>f&&f.type),d=u.map(f=>f&&Vg(f.decorators));return this._zipTypesAndAnnotations(c,d)}const o=n.hasOwnProperty(Lr)&&n[Lr],s=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",n);return s||o?this._zipTypesAndAnnotations(s,o):vf(n.length)}parameters(n){if(!Rc(n))return[];const t=Sf(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?Vg(n.decorators):n.hasOwnProperty(po)?n[po]:null}annotations(n){if(!Rc(n))return[];const t=Sf(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(o=>{i[o]=Vg(r[o])}),i}return n.hasOwnProperty(Fn)?n[Fn]:null}propMetadata(n){if(!Rc(n))return{};const t=Sf(n),r={};if(t!==Object){const o=this.propMetadata(t);Object.keys(o).forEach(s=>{r[s]=o[s]})}const i=this._ownPropMetadata(n,t);return i&&Object.keys(i).forEach(o=>{const s=[];r.hasOwnProperty(o)&&s.push(...r[o]),s.push(...i[o]),r[o]=s}),r}ownPropMetadata(n){return Rc(n)&&this._ownPropMetadata(n,Sf(n))||{}}hasLifecycleHook(n,t){return n instanceof vx&&t in n.prototype}}function Vg(e){return e?e.map(n=>new(0,n.type.annotationCls)(...n.args?n.args:[])):[]}function Sf(e){const n=e.prototype?Object.getPrototypeOf(e.prototype):null;return(n?n.constructor:null)||Object}const gt=0,G=1,oe=2,Rt=3,Hr=4,on=5,bn=6,Fa=7,ut=8,Ft=9,pi=10,de=11,Fc=12,Aw=13,La=14,yt=15,fs=16,Va=17,Hi=18,ja=19,xw=20,_o=21,Tf=22,gr=23,ee=25,jg=1,mi=7,Ba=9,Mt=10;var If=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(If||{});function Zt(e){return Array.isArray(e)&&"object"==typeof e[jg]}function fn(e){return Array.isArray(e)&&!0===e[jg]}function Bg(e){return!!(4&e.flags)}function hs(e){return e.componentOffset>-1}function Pf(e){return!(1&~e.flags)}function Gr(e){return!!e.template}function Vc(e){return!!(512&e[oe])}class Fw{constructor(n,t,r){this.previousValue=n,this.currentValue=t,this.firstChange=r}isFirstChange(){return this.firstChange}}function Lw(e,n,t,r){null!==n?n.applyValueToInputSignal(n,r):e[t]=r}function Ur(){return Vw}function Vw(e){return e.type.prototype.ngOnChanges&&(e.setInput=Ix),Mx}function Mx(){const e=Bw(this),n=e?.current;if(n){const t=e.previous;if(t===fi)e.previous=n;else for(let r in n)t[r]=n[r];e.current=null,this.ngOnChanges(n)}}function Ix(e,n,t,r,i){const o=this.declaredInputs[r],s=Bw(e)||function Px(e,n){return e[jw]=n}(e,{previous:fi,current:null}),u=s.current||(s.current={}),c=s.previous,d=c[o];u[o]=new Fw(d&&d.currentValue,t,c===fi),Lw(e,n,i,t)}Ur.ngInherit=!0;const jw="__ngSimpleChanges__";function Bw(e){return e[jw]||null}const gi=function(e,n,t){};function Fe(e){for(;Array.isArray(e);)e=e[gt];return e}function jc(e,n){return Fe(n[e])}function wn(e,n){return Fe(n[e.index])}function Bc(e,n){return e.data[n]}function ps(e,n){return e[n]}function Kn(e,n){const t=n[e];return Zt(t)?t:t[gt]}function zg(e){return!(128&~e[oe])}function yr(e,n){return null==n?null:e[n]}function Uw(e){e[Va]=0}function $w(e){1024&e[oe]||(e[oe]|=1024,zg(e)&&xf(e))}function Af(e){return!!(9216&e[oe]||e[gr]?.dirty)}function qg(e){e[pi].changeDetectionScheduler?.notify(8),64&e[oe]&&(e[oe]|=1024),Af(e)&&xf(e)}function xf(e){e[pi].changeDetectionScheduler?.notify(0);let n=Gi(e);for(;null!==n&&!(8192&n[oe])&&(n[oe]|=8192,zg(n));)n=Gi(n)}function kf(e,n){if(!(256&~e[oe]))throw new k(911,!1);null===e[_o]&&(e[_o]=[]),e[_o].push(n)}function Gi(e){const n=e[Rt];return fn(n)?n[Rt]:n}const fe={lFrame:rC(null),bindingsEnabled:!0,skipHydrationRootTNode:null};let qw=!1;function Ww(){return fe.bindingsEnabled}function ms(){return null!==fe.skipHydrationRootTNode}function N(){return fe.lFrame.lView}function Ce(){return fe.lFrame.tView}function ye(e){return fe.lFrame.contextLView=e,e[ut]}function ve(e){return fe.lFrame.contextLView=null,e}function Ke(){let e=Zw();for(;null!==e&&64===e.type;)e=e.parent;return e}function Zw(){return fe.lFrame.currentTNode}function $r(e,n){const t=fe.lFrame;t.currentTNode=e,t.isParent=n}function Yg(){return fe.lFrame.isParent}function Kg(){fe.lFrame.isParent=!1}function Yw(){return fe.lFrame.contextLView}function Xw(){return qw}function Qw(e){qw=e}function Cn(){const e=fe.lFrame;let n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}function zr(){return fe.lFrame.bindingIndex++}function $i(e){const n=fe.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}function Ux(e,n){const t=fe.lFrame;t.bindingIndex=t.bindingRootIndex=e,Xg(n)}function Xg(e){fe.lFrame.currentDirectiveIndex=e}function Qg(e){const n=fe.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}function Of(e){fe.lFrame.currentQueryIndex=e}function zx(e){const n=e[G];return 2===n.type?n.declTNode:1===n.type?e[on]:null}function tC(e,n,t){if(t&Se.SkipSelf){let i=n,o=e;for(;!(i=i.parent,null!==i||t&Se.Host||(i=zx(o),null===i||(o=o[La],10&i.type))););if(null===i)return!1;n=i,e=o}const r=fe.lFrame=nC();return r.currentTNode=n,r.lView=e,!0}function e0(e){const n=nC(),t=e[G];fe.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function nC(){const e=fe.lFrame,n=null===e?null:e.child;return null===n?rC(e):n}function rC(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 iC(){const e=fe.lFrame;return fe.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const oC=iC;function t0(){const e=iC();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 sn(){return fe.lFrame.selectedIndex}function gs(e){fe.lFrame.selectedIndex=e}function ct(){const e=fe.lFrame;return Bc(e.tView,e.selectedIndex)}let aC=!0;function Gc(){return aC}function yi(e){aC=e}function Rf(e,n){for(let t=n.directiveStart,r=n.directiveEnd;t<r;t++){const o=e.data[t].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:u,ngAfterViewInit:c,ngAfterViewChecked:d,ngOnDestroy:f}=o;s&&(e.contentHooks??=[]).push(-t,s),u&&((e.contentHooks??=[]).push(t,u),(e.contentCheckHooks??=[]).push(t,u)),c&&(e.viewHooks??=[]).push(-t,c),d&&((e.viewHooks??=[]).push(t,d),(e.viewCheckHooks??=[]).push(t,d)),null!=f&&(e.destroyHooks??=[]).push(t,f)}}function Ff(e,n,t){uC(e,n,3,t)}function Lf(e,n,t,r){(3&e[oe])===t&&uC(e,n,t,r)}function n0(e,n){let t=e[oe];(3&t)===n&&(t&=16383,t+=1,e[oe]=t)}function uC(e,n,t,r){const o=r??-1,s=n.length-1;let u=0;for(let c=void 0!==r?65535&e[Va]:0;c<s;c++)if("number"==typeof n[c+1]){if(u=n[c],null!=r&&u>=r)break}else n[c]<0&&(e[Va]+=65536),(u<o||-1==o)&&(Qx(e,t,n,c),e[Va]=(4294901760&e[Va])+c+2),c++}function cC(e,n){gi(4,e,n);const t=ie(null);try{n.call(e)}finally{ie(t),gi(5,e,n)}}function Qx(e,n,t,r){const i=t[r]<0,o=t[r+1],u=e[i?-t[r]:t[r]];i?e[oe]>>14<e[Va]>>16&&(3&e[oe])===n&&(e[oe]+=16384,cC(u,o)):cC(u,o)}const Ha=-1;class Uc{constructor(n,t,r){this.factory=n,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=r}}const o0={};class ys{constructor(n,t){this.injector=n,this.parentInjector=t}get(n,t,r){r=v(r);const i=this.injector.get(n,o0,r);return i!==o0||t===o0?i:this.parentInjector.get(n,t,r)}}function s0(e){return e!==Ha}function $c(e){return 32767&e}function zc(e,n){let t=function nk(e){return e>>16}(e),r=n;for(;t>0;)r=r[La],t--;return r}let a0=!0;function Vf(e){const n=a0;return a0=e,n}const dC=255,fC=5;let ik=0;const vi={};function jf(e,n){const t=hC(e,n);if(-1!==t)return t;const r=n[G];r.firstCreatePass&&(e.injectorIndex=n.length,u0(r.data,e),u0(n,null),u0(r.blueprint,null));const i=Bf(e,n),o=e.injectorIndex;if(s0(i)){const s=$c(i),u=zc(i,n),c=u[G].data;for(let d=0;d<8;d++)n[o+d]=u[s+d]|c[s+d]}return n[o+8]=i,o}function u0(e,n){e.push(0,0,0,0,0,0,0,0,n)}function hC(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function Bf(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=bC(i),null===r)return Ha;if(t++,i=i[La],-1!==r.injectorIndex)return r.injectorIndex|t<<16}return Ha}function c0(e,n,t){!function ok(e,n,t){let r;"string"==typeof t?r=t.charCodeAt(0)||0:t.hasOwnProperty(yo)&&(r=t[yo]),null==r&&(r=t[yo]=ik++);const i=r&dC;n.data[e+(i>>fC)]|=1<<i}(e,n,t)}function pC(e,n,t){if(t&Se.Optional||void 0!==e)return e;Ma()}function mC(e,n,t,r){if(t&Se.Optional&&void 0===r&&(r=null),!(t&(Se.Self|Se.Host))){const i=e[Ft],o=nn(void 0);try{return i?i.get(n,r,t&Se.Optional):Nc(n,r,t&Se.Optional)}finally{nn(o)}}return pC(r,0,t)}function gC(e,n,t,r=Se.Default,i){if(null!==e){if(2048&n[oe]&&!(r&Se.Self)){const s=function lk(e,n,t,r,i){let o=e,s=n;for(;null!==o&&null!==s&&2048&s[oe]&&!(512&s[oe]);){const u=yC(o,s,t,r|Se.Self,vi);if(u!==vi)return u;let c=o.parent;if(!c){const d=s[xw];if(d){const f=d.get(t,vi,r);if(f!==vi)return f}c=bC(s),s=s[La]}o=c}return i}(e,n,t,r,vi);if(s!==vi)return s}const o=yC(e,n,t,r,vi);if(o!==vi)return o}return mC(n,t,r,i)}function yC(e,n,t,r,i){const o=function uk(e){if("string"==typeof e)return e.charCodeAt(0)||0;const n=e.hasOwnProperty(yo)?e[yo]:void 0;return"number"==typeof n?n>=0?n&dC:ck:n}(t);if("function"==typeof o){if(!tC(n,e,r))return r&Se.Host?pC(i,0,r):mC(n,t,r,i);try{let s;if(s=o(r),null!=s||r&Se.Optional)return s;Ma()}finally{oC()}}else if("number"==typeof o){let s=null,u=hC(e,n),c=Ha,d=r&Se.Host?n[yt][on]:null;for((-1===u||r&Se.SkipSelf)&&(c=-1===u?Bf(e,n):n[u+8],c!==Ha&&_C(r,!1)?(s=n[G],u=$c(c),n=zc(c,n)):u=-1);-1!==u;){const f=n[G];if(vC(o,u,f.data)){const m=ak(u,n,t,s,r,d);if(m!==vi)return m}c=n[u+8],c!==Ha&&_C(r,n[G].data[u+8]===d)&&vC(o,u,n)?(s=f,u=$c(c),n=zc(c,n)):u=-1}}return i}function ak(e,n,t,r,i,o){const s=n[G],u=s.data[e+8],f=function Hf(e,n,t,r,i){const o=e.providerIndexes,s=n.data,u=1048575&o,c=e.directiveStart,f=o>>20,g=i?u+f:e.directiveEnd;for(let y=r?u:u+f;y<g;y++){const _=s[y];if(y<c&&t===_||y>=c&&_.type===t)return y}if(i){const y=s[c];if(y&&Gr(y)&&y.type===t)return c}return null}(u,s,t,null==r?hs(u)&&a0:r!=s&&!!(3&u.type),i&Se.Host&&o===u);return null!==f?vs(n,s,f,u):vi}function vs(e,n,t,r){let i=e[t];const o=n.data;if(function Jx(e){return e instanceof Uc}(i)){const s=i;s.resolving&&function Ut(e,n){throw n&&n.join(" > "),new k(-200,e)}(function Pe(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():W(e)}(o[t]));const u=Vf(s.canSeeViewProviders);s.resolving=!0;const d=s.injectImpl?nn(s.injectImpl):null;tC(e,r,Se.Default);try{i=e[t]=s.factory(void 0,o,e,r),n.firstCreatePass&&t>=r.directiveStart&&function Xx(e,n,t){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=n.type.prototype;if(r){const s=Vw(n);(t.preOrderHooks??=[]).push(e,s),(t.preOrderCheckHooks??=[]).push(e,s)}i&&(t.preOrderHooks??=[]).push(0-e,i),o&&((t.preOrderHooks??=[]).push(e,o),(t.preOrderCheckHooks??=[]).push(e,o))}(t,o[t],n)}finally{null!==d&&nn(d),Vf(u),s.resolving=!1,oC()}}return i}function vC(e,n,t){return!!(t[n+(e>>fC)]&1<<e)}function _C(e,n){return!(e&Se.Self||e&Se.Host&&n)}class Yt{constructor(n,t){this._tNode=n,this._lView=t}get(n,t,r){return gC(this._tNode,this._lView,n,v(r),t)}}function ck(){return new Yt(Ke(),N())}function an(e){return Fr(()=>{const n=e.prototype.constructor,t=n[vn]||l0(n),r=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){const o=i[vn]||l0(i);if(o&&o!==t)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function l0(e){return mo(e)?()=>{const n=l0(ae(e));return n&&n()}:_n(e)}function bC(e){const n=e[G],t=n.type;return 2===t?n.declTNode:1===t?e[on]:null}const dk=ci("Attribute",e=>({attributeName:e,__NG_ELEMENT_ID__:()=>function Gf(e){return function sk(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 o=t[i];if(mw(o))break;if(0===o)i+=2;else if("number"==typeof o)for(i++;i<r&&"string"==typeof t[i];)i++;else{if(o===n)return t[i+1];i+=2}}}return null}(Ke(),e)}(e)}));let wC=null;function Uf(e){return CC(function d0(){return wC=wC||new Dx}().parameters(e))}function CC(e){return e.map(n=>function fk(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 Ze||"Optional"===i.ngMetadataName)n.optional=!0;else if(r instanceof $t||"SkipSelf"===i.ngMetadataName)n.skipSelf=!0;else if(r instanceof mt||"Self"===i.ngMetadataName)n.self=!0;else if(r instanceof cs||"Host"===i.ngMetadataName)n.host=!0;else if(r instanceof X)n.token=r.token;else if(r instanceof dk){if(void 0===r.attributeName)throw new k(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 pk=He({provide:String,useValue:He});function EC(e){return void 0!==e.useClass}function DC(e){return void 0!==e.useFactory}const vk=_a("Injectable",void 0,void 0,void 0,(e,n)=>function hk(e,n){let t=null,r=null;e.hasOwnProperty(Ea)||Object.defineProperty(e,Ea,{get:()=>(null===t&&(t=Wt().compileInjectable(Pw,`ng:///${e.name}/\u0275prov.js`,function yk(e,n){const t=n||{providedIn:null},r={name:e.name,type:e,typeArgumentCount:0,providedIn:t.providedIn};return(EC(t)||DC(t))&&void 0!==t.deps&&(r.deps=CC(t.deps)),EC(t)?r.useClass=t.useClass:function mk(e){return pk in e}(t)?r.useValue=t.useValue:DC(t)?r.useFactory=t.useFactory:function gk(e){return void 0!==e.useExisting}(t)&&(r.useExisting=t.useExisting),r}(e,n))),t)}),e.hasOwnProperty(vn)||Object.defineProperty(e,vn,{get:()=>{if(null===r){const i=Wt();r=i.compileFactory(Pw,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,typeArgumentCount:0,deps:Uf(e),target:i.FactoryTarget.Injectable})}return r},configurable:!0})}(e,n));function SC(e,n=null,t=null,r){const i=TC(e,n,t,r);return i.resolveInjectorInitializers(),i}function TC(e,n=null,t=null,r,i=new Set){const o=[t||Re,sx(e)];return r=r||("object"==typeof e?void 0:Ct(e)),new Na(o,n||Df(),r||null,i)}class tt{static#e=this.THROW_IF_NOT_FOUND=us;static#t=this.NULL=new _f;static create(n,t){if(Array.isArray(n))return SC({name:""},t,n,"");{const r=n.name??"";return SC({name:r},n.parent,n.providers,r)}}static#n=this.\u0275prov=Y({token:tt,providedIn:"any",factory:()=>l(pw)});static#r=this.__NG_ELEMENT_ID__=-1}new q("").__NG_ELEMENT_ID__=e=>{const n=Ke();if(null===n)throw new k(204,!1);if(2&n.type)return n.value;if(e&Se.Optional)return null;throw new k(204,!1)};function f0(e){return e.ngOriginalError}const IC=!0;let qc=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=wk;static#t=this.__NG_ENV_ID__=t=>t}return e})();class bk extends qc{constructor(n){super(),this._lView=n}onDestroy(n){return kf(this._lView,n),()=>function Wg(e,n){if(null===e[_o])return;const t=e[_o].indexOf(n);-1!==t&&e[_o].splice(t,1)}(this._lView,n)}}function wk(){return new bk(N())}let _s=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new nc(!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=Y({token:e,providedIn:"root",factory:()=>new e})}return e})();const Ge=class Ck extends wt{constructor(n=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=n,Iw()&&(this.destroyRef=p(qc,{optional:!0})??void 0,this.pendingTasks=p(_s,{optional:!0})??void 0)}emit(n){const t=ie(null);try{super.next(n)}finally{ie(t)}}subscribe(n,t,r){let i=n,o=t||(()=>null),s=r;if(n&&"object"==typeof n){const c=n;i=c.next?.bind(c),o=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(o=this.wrapInTimeout(o),i&&(i=this.wrapInTimeout(i)),s&&(s=this.wrapInTimeout(s)));const u=super.subscribe({next:i,error:o,complete:s});return n instanceof ln&&n.add(u),u}wrapInTimeout(n){return t=>{const r=this.pendingTasks?.add();setTimeout(()=>{n(t),void 0!==r&&this.pendingTasks?.remove(r)})}}};function $f(...e){}function PC(e){let n,t;function r(){e=$f;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 AC(e){return queueMicrotask(()=>e()),()=>{e=$f}}const h0="isAngularZone",zf=h0+"_ID";let Ek=0;class Le{constructor(n){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ge(!1),this.onMicrotaskEmpty=new Ge(!1),this.onStable=new Ge(!1),this.onError=new Ge(!1);const{enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:o=IC}=n;if(typeof Zone>"u")throw new k(908,!1);Zone.assertZonePatched();const s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!i&&r,s.shouldCoalesceRunChangeDetection=i,s.callbackScheduled=!1,s.scheduleInRootZone=o,function Tk(e){const n=()=>{!function Sk(e){function n(){PC(()=>{e.callbackScheduled=!1,m0(e),e.isCheckStableRunning=!0,p0(e),e.isCheckStableRunning=!1})}e.isCheckStableRunning||e.callbackScheduled||(e.callbackScheduled=!0,e.scheduleInRootZone?Zone.root.run(()=>{n()}):e._outer.run(()=>{n()}),m0(e))}(e)},t=Ek++;e._inner=e._inner.fork({name:"angular",properties:{[h0]:!0,[zf]:t,[zf+t]:!0},onInvokeTask:(r,i,o,s,u,c)=>{if(function Mk(e){return NC(e,"__ignore_ng_zone__")}(c))return r.invokeTask(o,s,u,c);try{return xC(e),r.invokeTask(o,s,u,c)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||e.shouldCoalesceRunChangeDetection)&&n(),kC(e)}},onInvoke:(r,i,o,s,u,c,d)=>{try{return xC(e),r.invoke(o,s,u,c,d)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!function Ik(e){return NC(e,"__scheduler_tick__")}(c)&&n(),kC(e)}},onHasTask:(r,i,o,s)=>{r.hasTask(o,s),i===o&&("microTask"==s.change?(e._hasPendingMicrotasks=s.microTask,m0(e),p0(e)):"macroTask"==s.change&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,i,o,s)=>(r.handleError(o,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}(s)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get(h0)}static assertInAngularZone(){if(!Le.isInAngularZone())throw new k(909,!1)}static assertNotInAngularZone(){if(Le.isInAngularZone())throw new k(909,!1)}run(n,t,r){return this._inner.run(n,t,r)}runTask(n,t,r,i){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,n,Dk,$f,$f);try{return o.runTask(s,t,r)}finally{o.cancelTask(s)}}runGuarded(n,t,r){return this._inner.runGuarded(n,t,r)}runOutsideAngular(n){return this._outer.run(n)}}const Dk={};function p0(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 m0(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&!0===e.callbackScheduled)}function xC(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function kC(e){e._nesting--,p0(e)}class g0{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ge,this.onMicrotaskEmpty=new Ge,this.onStable=new Ge,this.onError=new Ge}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 NC(e,n){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0]?.data?.[n]}class _i{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&&f0(n);for(;t&&f0(t);)t=f0(t);return t||null}}const Ak=new q("",{providedIn:"root",factory:()=>{const e=p(Le),n=p(_i);return t=>e.runOutsideAngular(()=>n.handleError(t))}});function RC(e,n){return ho(e,n)}const kk=(RC.required=function xk(e){return ho(Rr,e)},RC);function Nk(){return $a(Ke(),N())}function $a(e,n){return new jn(wn(e,n))}let jn=(()=>{class e{constructor(t){this.nativeElement=t}static#e=this.__NG_ELEMENT_ID__=Nk}return e})();function Zc(e){return!(128&~e.flags)}Symbol;const _0=new Map;let Fk=0;function b0(e){_0.delete(e[ja])}const qf="__ngContext__";function hn(e,n){Zt(n)?(e[qf]=n[ja],function Vk(e){_0.set(e[ja],e)}(n)):e[qf]=n}function qC(e){return ZC(e[Fc])}function WC(e){return ZC(e[Hr])}function ZC(e){for(;null!==e&&!fn(e);)e=e[Hr];return e}let C0;function bo(){if(void 0!==C0)return C0;if(typeof document<"u")return document;throw new k(210,!1)}const qa=new q("",{providedIn:"root",factory:()=>t2}),t2="ng",n1=new q(""),zi=new q("",{providedIn:"platform",factory:()=>"unknown"}),r1=new q(""),i1=new q("",{providedIn:"root",factory:()=>bo().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let o1=()=>null;function P0(e,n,t=!1){return o1(e,n,t)}const h1=new q("",{providedIn:"root",factory:()=>!1});let th,nh;function Ya(e){return function O0(){if(void 0===th&&(th=null,Xe.trustedTypes))try{th=Xe.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return th}()?.createHTML(e)||e}function g1(e){return function R0(){if(void 0===nh&&(nh=null,Xe.trustedTypes))try{nh=Xe.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return nh}()?.createHTML(e)||e}class ws{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${rf})`}}class m2 extends ws{getTypeName(){return"HTML"}}class g2 extends ws{getTypeName(){return"Style"}}class y2 extends ws{getTypeName(){return"Script"}}class v2 extends ws{getTypeName(){return"URL"}}class _2 extends ws{getTypeName(){return"ResourceURL"}}function Xn(e){return e instanceof ws?e.changingThisBreaksApplicationSecurity:e}function bi(e,n){const t=function b2(e){return e instanceof ws&&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 ${rf})`)}return t===n}class T2{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n="<body><remove></remove>"+n;try{const t=(new window.DOMParser).parseFromString(Ya(n),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(n):(t.firstChild?.remove(),t)}catch{return null}}}class M2{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const t=this.inertDocument.createElement("template");return t.innerHTML=Ya(n),t}}const P2=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function rh(e){return(e=String(e)).match(P2)?e:"unsafe:"+e}function qi(e){const n={};for(const t of e.split(","))n[t]=!0;return n}function tl(...e){const n={};for(const t of e)for(const r in t)t.hasOwnProperty(r)&&(n[r]=!0);return n}const b1=qi("area,br,col,hr,img,wbr"),w1=qi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),C1=qi("rp,rt"),F0=tl(b1,tl(w1,qi("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")),tl(C1,qi("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")),tl(C1,w1)),L0=qi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),E1=tl(L0,qi("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"),qi("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")),A2=qi("script,style,template");class x2{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=O2(t);else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let o=N2(t);if(o){t=o;break}t=i.pop()}return this.buf.join("")}startElement(n){const t=D1(n).toLowerCase();if(!F0.hasOwnProperty(t))return this.sanitizedSomething=!0,!A2.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const r=n.attributes;for(let i=0;i<r.length;i++){const o=r.item(i),s=o.name,u=s.toLowerCase();if(!E1.hasOwnProperty(u)){this.sanitizedSomething=!0;continue}let c=o.value;L0[u]&&(c=rh(c)),this.buf.push(" ",s,'="',T1(c),'"')}return this.buf.push(">"),!0}endElement(n){const t=D1(n).toLowerCase();F0.hasOwnProperty(t)&&!b1.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(n){this.buf.push(T1(n))}}function N2(e){const n=e.nextSibling;if(n&&e!==n.previousSibling)throw S1(n);return n}function O2(e){const n=e.firstChild;if(n&&function k2(e,n){return(e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(e,n))throw S1(n);return n}function D1(e){const n=e.nodeName;return"string"==typeof n?n:"FORM"}function S1(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}const R2=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,F2=/([^\#-~ |!])/g;function T1(e){return e.replace(/&/g,"&").replace(R2,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(F2,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let ih;function M1(e,n){let t=null;try{ih=ih||function _1(e){const n=new M2(e);return function I2(){try{return!!(new window.DOMParser).parseFromString(Ya(""),"text/html")}catch{return!1}}()?new T2(n):n}(e);let r=n?String(n):"";t=ih.getInertBodyElement(r);let i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=t.innerHTML,t=ih.getInertBodyElement(r)}while(r!==o);return Ya((new x2).sanitizeChildren(V0(t)||t))}finally{if(t){const r=V0(t)||t;for(;r.firstChild;)r.firstChild.remove()}}}function V0(e){return"content"in e&&function L2(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Qn=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}(Qn||{});function wi(e){const n=rl();return n?g1(n.sanitize(Qn.HTML,e)||""):bi(e,"HTML")?g1(Xn(e)):M1(bo(),W(e))}function nl(e){const n=rl();return n?n.sanitize(Qn.URL,e)||"":bi(e,"URL")?Xn(e):rh(W(e))}function rl(){const e=N();return e&&e[pi].sanitizer}const $2=/^>|^->|<!--|-->|--!>|<!-$/g,z2=/(<|>)/g,q2="\u200b$1\u200b";function N1(e){return e.ownerDocument}var wo=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(wo||{});let H0;function G0(e,n){return H0(e,n)}function Xa(e,n,t,r,i){if(null!=r){let o,s=!1;fn(r)?o=r:Zt(r)&&(s=!0,r=r[gt]);const u=Fe(r);0===e&&null!==t?null==i?G1(n,t,u):Cs(n,t,u,i||null,!0):1===e&&null!==t?Cs(n,t,u,i||null,!0):2===e?function ol(e,n,t){e.removeChild(null,n,t)}(n,u,s):3===e&&n.destroyNode(u),null!=o&&function dN(e,n,t,r,i){const o=t[mi];o!==Fe(t)&&Xa(n,e,r,o,i);for(let u=Mt;u<t.length;u++){const c=t[u];lh(c[G],c,e,n,r,o)}}(n,e,o,t,i)}}function $0(e,n){return e.createComment(function P1(e){return e.replace($2,n=>n.replace(z2,q2))}(n))}function ah(e,n,t){return e.createElement(n,t)}function j1(e,n){n[pi].changeDetectionScheduler?.notify(9),lh(e,n,n[de],2,null,null)}function B1(e,n){const t=e[Ba],r=n[Rt];(Zt(r)||n[yt]!==r[Rt][yt])&&(e[oe]|=If.HasTransplantedViews),null===t?e[Ba]=[n]:t.push(n)}function z0(e,n){const t=e[Ba],r=t.indexOf(n);t.splice(r,1)}function il(e,n){if(e.length<=Mt)return;const t=Mt+n,r=e[t];if(r){const i=r[fs];null!==i&&i!==e&&z0(i,r),n>0&&(e[t-1][Hr]=r[Hr]);const o=yf(e,Mt+n);!function rN(e,n){j1(e,n),n[gt]=null,n[on]=null}(r[G],r);const s=o[Hi];null!==s&&s.detachView(o[G]),r[Rt]=null,r[Hr]=null,r[oe]&=-129}return r}function uh(e,n){if(!(256&n[oe])){const t=n[de];t.destroyNode&&lh(e,n,t,3,null,null),function oN(e){let n=e[Fc];if(!n)return q0(e[G],e);for(;n;){let t=null;if(Zt(n))t=n[Fc];else{const r=n[Mt];r&&(t=r)}if(!t){for(;n&&!n[Hr]&&n!==e;)Zt(n)&&q0(n[G],n),n=n[Rt];null===n&&(n=e),Zt(n)&&q0(n[G],n),t=n&&n[Hr]}n=t}}(n)}}function q0(e,n){if(256&n[oe])return;const t=ie(null);try{n[oe]&=-129,n[oe]|=256,n[gr]&&oo(n[gr]),function uN(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 Uc)){const o=t[r+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){const u=i[o[s]],c=o[s+1];gi(4,u,c);try{c.call(u)}finally{gi(5,u,c)}}else{gi(4,i,o);try{o.call(i)}finally{gi(5,i,o)}}}}}(e,n),function aN(e,n){const t=e.cleanup,r=n[Fa];if(null!==t)for(let o=0;o<t.length-1;o+=2)if("string"==typeof t[o]){const s=t[o+3];s>=0?r[s]():r[-s].unsubscribe(),o+=2}else t[o].call(r[t[o+1]]);null!==r&&(n[Fa]=null);const i=n[_o];if(null!==i){n[_o]=null;for(let o=0;o<i.length;o++)(0,i[o])()}}(e,n),1===n[G].type&&n[de].destroy();const r=n[fs];if(null!==r&&fn(n[Rt])){r!==n[Rt]&&z0(r,n);const i=n[Hi];null!==i&&i.detachView(e)}b0(n)}finally{ie(t)}}function W0(e,n,t){return function H1(e,n,t){let r=n;for(;null!==r&&168&r.type;)r=(n=r).parent;if(null===r)return t[gt];{const{componentOffset:i}=r;if(i>-1){const{encapsulation:o}=e.data[r.directiveStart+i];if(o===jr.None||o===jr.Emulated)return null}return wn(r,t)}}(e,n.parent,t)}function Cs(e,n,t,r,i){e.insertBefore(n,t,r,i)}function G1(e,n,t){e.appendChild(n,t)}function U1(e,n,t,r,i){null!==r?Cs(e,n,t,r,i):G1(e,n,t)}function Z0(e,n){return e.parentNode(n)}function $1(e,n,t){return q1(e,n,t)}let Y0,q1=function z1(e,n,t){return 40&e.type?wn(e,t):null};function ch(e,n,t,r){const i=W0(e,r,n),o=n[de],u=$1(r.parent||n[on],r,n);if(null!=i)if(Array.isArray(t))for(let c=0;c<t.length;c++)U1(o,i,t[c],u,!1);else U1(o,i,t,u,!1);void 0!==Y0&&Y0(o,r,n,t,i)}function Es(e,n){if(null!==n){const t=n.type;if(3&t)return wn(n,e);if(4&t)return K0(-1,e[n.index]);if(8&t){const r=n.child;if(null!==r)return Es(e,r);{const i=e[n.index];return fn(i)?K0(-1,i):Fe(i)}}if(128&t)return Es(e,n.next);if(32&t)return G0(n,e)()||Fe(e[n.index]);{const r=Z1(e,n);return null!==r?Array.isArray(r)?r[0]:Es(Gi(e[yt]),r):Es(e,n.next)}}return null}function Z1(e,n){return null!==n?e[yt][on].projection[n.projection]:null}function K0(e,n){const t=Mt+e+1;if(t<n.length){const r=n[t],i=r[G].firstChild;if(null!==i)return Es(r,i)}return n[mi]}function X0(e,n,t,r,i,o,s){for(;null!=t;){if(128===t.type){t=t.next;continue}const u=r[t.index],c=t.type;if(s&&0===n&&(u&&hn(Fe(u),r),t.flags|=2),32&~t.flags)if(8&c)X0(e,n,t.child,r,i,o,!1),Xa(n,e,i,u,o);else if(32&c){const d=G0(t,r);let f;for(;f=d();)Xa(n,e,i,f,o);Xa(n,e,i,u,o)}else 16&c?K1(e,n,r,t,i,o):Xa(n,e,i,u,o);t=s?t.projectionNext:t.next}}function lh(e,n,t,r,i,o){X0(t,r,e.firstChild,n,i,o,!1)}function K1(e,n,t,r,i,o){const s=t[yt],c=s[on].projection[r.projection];if(Array.isArray(c))for(let d=0;d<c.length;d++)Xa(n,e,i,c[d],o);else{let d=c;const f=s[Rt];Zc(r)&&(d.flags|=128),X0(e,n,d,f,i,o,!0)}}function X1(e,n,t){""===t?e.removeAttribute(n,"class"):e.setAttribute(n,"class",t)}function Q1(e,n,t){const{mergedAttrs:r,classes:i,styles:o}=t;null!==r&&Ig(e,n,r),null!==i&&X1(e,n,i),null!==o&&function hN(e,n,t){e.setAttribute(n,"style",t)}(e,n,o)}const pe={};function A(e=1){J1(Ce(),N(),sn()+e,!1)}function J1(e,n,t,r){if(!r)if(3&~n[oe]){const o=e.preOrderHooks;null!==o&&Lf(n,o,0,t)}else{const o=e.preOrderCheckHooks;null!==o&&Ff(n,o,t)}gs(t)}function P(e,n=Se.Default){const t=N();return null===t?l(e,n):gC(Ke(),t,ae(e),n)}function eE(e,n,t,r,i,o){const s=ie(null);try{let u=null;i&vo.SignalBased&&(u=n[r][z]),null!==u&&void 0!==u.transformFn&&(o=u.transformFn(o)),i&vo.HasDecoratorInputTransform&&(o=e.inputTransforms[r].call(n,o)),null!==e.setInput?e.setInput(n,u,o,t,r):Lw(n,u,r,o)}finally{ie(s)}}function dh(e,n,t,r,i,o,s,u,c,d,f){const m=n.blueprint.slice();return m[gt]=i,m[oe]=204|r,(null!==d||e&&2048&e[oe])&&(m[oe]|=2048),Uw(m),m[Rt]=m[La]=e,m[ut]=t,m[pi]=s||e&&e[pi],m[de]=u||e&&e[de],m[Ft]=c||e&&e[Ft]||null,m[on]=o,m[ja]=function Lk(){return Fk++}(),m[bn]=f,m[xw]=d,m[yt]=2==n.type?e[yt]:m,m}function Ds(e,n,t,r,i){let o=e.data[n];if(null===o)o=function Q0(e,n,t,r,i){const o=Zw(),s=Yg(),c=e.data[n]=function CN(e,n,t,r,i,o){let s=n?n.injectorIndex:-1,u=0;return ms()&&(u|=128),{type:t,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:u,providerIndexes:0,value:i,attrs:o,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,s?o:o&&o.parent,t,n,r,i);return null===e.firstChild&&(e.firstChild=c),null!==o&&(s?null==o.child&&null!==c.parent&&(o.child=c):null===o.next&&(o.next=c,c.prev=o)),c}(e,n,t,r,i),function Gx(){return fe.lFrame.inI18n}()&&(o.flags|=32);else if(64&o.type){o.type=t,o.value=r,o.attrs=i;const s=function Hc(){const e=fe.lFrame,n=e.currentTNode;return e.isParent?n:n.parent}();o.injectorIndex=null===s?-1:s.injectorIndex}return $r(o,!0),o}function sl(e,n,t,r){if(0===t)return-1;const i=n.length;for(let o=0;o<t;o++)n.push(r),e.blueprint.push(r),e.data.push(null);return i}function tE(e,n,t,r,i){const o=sn(),s=2&r;try{gs(-1),s&&n.length>ee&&J1(e,n,ee,!1),gi(s?2:0,i),t(r,i)}finally{gs(o),gi(s?3:1,i)}}function J0(e,n,t){if(Bg(n)){const r=ie(null);try{const o=n.directiveEnd;for(let s=n.directiveStart;s<o;s++){const u=e.data[s];u.contentQueries&&u.contentQueries(1,t[s],s)}}finally{ie(r)}}}function ey(e,n,t){Ww()&&(function PN(e,n,t,r){const i=t.directiveStart,o=t.directiveEnd;hs(t)&&function FN(e,n,t){const r=wn(n,e),i=nE(t);let s=16;t.signals?s=4096:t.onPush&&(s=64);const u=fh(e,dh(e,i,null,s,r,n,null,e[pi].rendererFactory.createRenderer(r,t),null,null,null));e[n.index]=u}(n,t,e.data[i+t.componentOffset]),e.firstCreatePass||jf(t,n),hn(r,n);const s=t.initialInputs;for(let u=i;u<o;u++){const c=e.data[u],d=vs(n,e,u,t);hn(d,n),null!==s&&LN(0,u-i,d,c,0,s),Gr(c)&&(Kn(t.index,n)[ut]=vs(n,e,u,t))}}(e,n,t,wn(t,n)),!(64&~t.flags)&&aE(e,n,t))}function ty(e,n,t=wn){const r=n.localNames;if(null!==r){let i=n.index+1;for(let o=0;o<r.length;o+=2){const s=r[o+1],u=-1===s?t(n,e):e[s];e[i++]=u}}}function nE(e){const n=e.tView;return null===n||n.incompleteFirstPass?e.tView=ny(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):n}function ny(e,n,t,r,i,o,s,u,c,d,f){const m=ee+r,g=m+i,y=function gN(e,n){const t=[];for(let r=0;r<n;r++)t.push(r<e?null:pe);return t}(m,g),_="function"==typeof d?d():d;return y[G]={type:e,blueprint:y,template:t,queries:null,viewQuery:u,declTNode:n,data:y.slice().fill(null,m),bindingStartIndex:m,expandoStartIndex:g,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 o?o():o,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:c,consts:_,incompleteFirstPass:!1,ssrId:f}}let rE=()=>null;function iE(e,n,t,r,i){for(let o in n){if(!n.hasOwnProperty(o))continue;const s=n[o];if(void 0===s)continue;r??={};let u,c=vo.None;Array.isArray(s)?(u=s[0],c=s[1]):u=s;let d=o;if(null!==i){if(!i.hasOwnProperty(o))continue;d=i[o]}0===e?oE(r,t,d,u,c):oE(r,t,d,u)}return r}function oE(e,n,t,r,i){let o;e.hasOwnProperty(t)?(o=e[t]).push(n,r):o=e[t]=[n,r],void 0!==i&&o.push(i)}function Hn(e,n,t,r,i,o,s,u){const c=wn(n,t);let f,d=n.inputs;!u&&null!=d&&(f=d[r])?(ay(e,t,f,r,i),hs(n)&&function SN(e,n){const t=Kn(n,e);16&t[oe]||(t[oe]|=64)}(t,n.index)):3&n.type&&(r=function DN(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),i=null!=s?s(i,n.value||"",r):i,o.setProperty(c,r,i))}function ry(e,n,t,r){if(Ww()){const i=null===r?null:{"":-1},o=function xN(e,n){const t=e.directiveRegistry;let r=null,i=null;if(t)for(let o=0;o<t.length;o++){const s=t[o];if(_w(n,s.selectors,!1))if(r||(r=[]),Gr(s))if(null!==s.findHostDirectiveDefs){const u=[];i=i||new Map,s.findHostDirectiveDefs(s,u,i),r.unshift(...u,s),iy(e,n,u.length)}else r.unshift(s),iy(e,n,0);else i=i||new Map,s.findHostDirectiveDefs?.(s,r,i),r.push(s)}return null===r?null:[r,i]}(e,t);let s,u;null===o?s=u=null:[s,u]=o,null!==s&&sE(e,n,t,s,i,u),i&&function kN(e,n,t){if(n){const r=e.localNames=[];for(let i=0;i<n.length;i+=2){const o=t[n[i+1]];if(null==o)throw new k(-301,!1);r.push(n[i],o)}}}(t,r,i)}t.mergedAttrs=Oc(t.mergedAttrs,t.attrs)}function sE(e,n,t,r,i,o){for(let d=0;d<r.length;d++)c0(jf(t,n),e,r[d].type);!function ON(e,n,t){e.flags|=1,e.directiveStart=n,e.directiveEnd=n+t,e.providerIndexes=n}(t,e.data.length,r.length);for(let d=0;d<r.length;d++){const f=r[d];f.providersResolver&&f.providersResolver(f)}let s=!1,u=!1,c=sl(e,n,r.length,null);for(let d=0;d<r.length;d++){const f=r[d];t.mergedAttrs=Oc(t.mergedAttrs,f.hostAttrs),RN(e,t,n,c,f),NN(c,f,i),null!==f.contentQueries&&(t.flags|=4),(null!==f.hostBindings||null!==f.hostAttrs||0!==f.hostVars)&&(t.flags|=64);const m=f.type.prototype;!s&&(m.ngOnChanges||m.ngOnInit||m.ngDoCheck)&&((e.preOrderHooks??=[]).push(t.index),s=!0),!u&&(m.ngOnChanges||m.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(t.index),u=!0),c++}!function EN(e,n,t){const i=n.directiveEnd,o=e.data,s=n.attrs,u=[];let c=null,d=null;for(let f=n.directiveStart;f<i;f++){const m=o[f],g=t?t.get(m):null,_=g?g.outputs:null;c=iE(0,m.inputs,f,c,g?g.inputs:null),d=iE(1,m.outputs,f,d,_);const C=null===c||null===s||Pg(n)?null:VN(c,f,s);u.push(C)}null!==c&&(c.hasOwnProperty("class")&&(n.flags|=8),c.hasOwnProperty("style")&&(n.flags|=16)),n.initialInputs=u,n.inputs=c,n.outputs=d}(e,t,o)}function aE(e,n,t){const r=t.directiveStart,i=t.directiveEnd,o=t.index,s=function $x(){return fe.lFrame.currentDirectiveIndex}();try{gs(o);for(let u=r;u<i;u++){const c=e.data[u],d=n[u];Xg(u),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&AN(c,d)}}finally{gs(-1),Xg(s)}}function AN(e,n){null!==e.hostBindings&&e.hostBindings(1,n)}function iy(e,n,t){n.componentOffset=t,(e.components??=[]).push(n.index)}function NN(e,n,t){if(t){if(n.exportAs)for(let r=0;r<n.exportAs.length;r++)t[n.exportAs[r]]=e;Gr(n)&&(t[""]=e)}}function RN(e,n,t,r,i){e.data[r]=i;const o=i.factory||(i.factory=_n(i.type)),s=new Uc(o,Gr(i),P);e.blueprint[r]=s,t[r]=s,function MN(e,n,t,r,i){const o=i.hostBindings;if(o){let s=e.hostBindingOpCodes;null===s&&(s=e.hostBindingOpCodes=[]);const u=~n.index;(function IN(e){let n=e.length;for(;n>0;){const t=e[--n];if("number"==typeof t&&t<0)return t}return 0})(s)!=u&&s.push(u),s.push(t,r,o)}}(e,n,r,sl(e,t,i.hostVars,pe),i)}function Ci(e,n,t,r,i,o){const s=wn(e,n);!function oy(e,n,t,r,i,o,s){if(null==o)e.removeAttribute(n,i,t);else{const u=null==s?W(o):s(o,r||"",i);e.setAttribute(n,i,u,t)}}(n[de],s,o,e.value,t,r,i)}function LN(e,n,t,r,i,o){const s=o[n];if(null!==s)for(let u=0;u<s.length;)eE(r,t,s[u++],s[u++],s[u++],s[u++])}function VN(e,n,t){let r=null,i=0;for(;i<t.length;){const o=t[i];if(0!==o)if(5!==o){if("number"==typeof o)break;if(e.hasOwnProperty(o)){null===r&&(r=[]);const s=e[o];for(let u=0;u<s.length;u+=3)if(s[u]===n){r.push(o,s[u+1],s[u+2],t[i+1]);break}}i+=2}else i+=2;else i+=4}return r}function uE(e,n,t,r){return[e,!0,0,n,null,r,null,t,null,null]}function cE(e,n){const t=e.contentQueries;if(null!==t){const r=ie(null);try{for(let i=0;i<t.length;i+=2){const s=t[i+1];if(-1!==s){const u=e.data[s];Of(t[i]),u.contentQueries(2,n[s],s)}}}finally{ie(r)}}}function fh(e,n){return e[Fc]?e[Aw][Hr]=n:e[Fc]=n,e[Aw]=n,n}function sy(e,n,t){Of(0);const r=ie(null);try{n(e,t)}finally{ie(r)}}function fE(e,n,t){return(null===e||Gr(e))&&(t=function $g(e){for(;Array.isArray(e);){if("object"==typeof e[jg])return e;e=e[gt]}return null}(t[n.index])),t[de]}function hh(e,n){const t=e[Ft],r=t?t.get(_i,null):null;r&&r.handleError(n)}function ay(e,n,t,r,i){for(let o=0;o<t.length;){const s=t[o++],u=t[o++],c=t[o++];eE(e.data[s],n[s],r,u,c,i)}}function jN(e,n){const t=Kn(n,e),r=t[G];!function BN(e,n){for(let t=n.length;t<e.blueprint.length;t++)n.push(e.blueprint[t])}(r,t);const i=t[gt];null!==i&&null===t[bn]&&(t[bn]=P0(i,t[Ft])),uy(r,t,t[ut])}function uy(e,n,t){e0(n);try{const r=e.viewQuery;null!==r&&sy(1,r,t);const i=e.template;null!==i&&tE(e,n,i,1,t),e.firstCreatePass&&(e.firstCreatePass=!1),n[Hi]?.finishViewCreation(e),e.staticContentQueries&&cE(e,n),e.staticViewQueries&&sy(2,e.viewQuery,t);const o=e.components;null!==o&&function HN(e,n){for(let t=0;t<n.length;t++)jN(e,n[t])}(n,o)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{n[oe]&=-5,t0()}}function Qa(e,n,t,r){const i=ie(null);try{const o=n.tView,c=dh(e,o,t,4096&e[oe]?4096:16,null,n,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null);c[fs]=e[n.index];const f=e[Hi];return null!==f&&(c[Hi]=f.createEmbeddedView(o)),uy(o,c,t),c}finally{ie(i)}}function hE(e,n){const t=Mt+n;if(t<e.length)return e[t]}function Ss(e,n){return!n||null===n.firstChild||Zc(e)}function Ja(e,n,t,r=!0){const i=n[G];if(function sN(e,n,t,r){const i=Mt+r,o=t.length;r>0&&(t[i-1][Hr]=n),r<o-Mt?(n[Hr]=t[i],dw(t,Mt+r,n)):(t.push(n),n[Hr]=null),n[Rt]=t;const s=n[fs];null!==s&&t!==s&&B1(s,n);const u=n[Hi];null!==u&&u.insertView(e),qg(n),n[oe]|=128}(i,n,e,t),r){const s=K0(t,e),u=n[de],c=Z0(u,e[mi]);null!==c&&function iN(e,n,t,r,i,o){r[gt]=i,r[on]=n,lh(e,r,t,1,i,o)}(i,e[on],u,n,c,s)}const o=n[bn];null!==o&&null!==o.firstChild&&(o.firstChild=null)}function cy(e,n){const t=il(e,n);return void 0!==t&&uh(t[G],t),t}function al(e,n,t,r,i=!1){for(;null!==t;){if(128===t.type){t=i?t.projectionNext:t.next;continue}const o=n[t.index];null!==o&&r.push(Fe(o)),fn(o)&&pE(o,r);const s=t.type;if(8&s)al(e,n,t.child,r);else if(32&s){const u=G0(t,n);let c;for(;c=u();)r.push(c)}else if(16&s){const u=Z1(n,t);if(Array.isArray(u))r.push(...u);else{const c=Gi(n[yt]);al(c[G],c,u,r,!0)}}t=i?t.projectionNext:t.next}return r}function pE(e,n){for(let t=Mt;t<e.length;t++){const r=e[t],i=r[G].firstChild;null!==i&&al(r[G],r,i,n)}e[mi]!==e[gt]&&n.push(e[mi])}let mE=[];const zN={...Ht,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{xf(e.lView)},consumerOnSignalRead(){this.lView[gr]=this}},WN={...Ht,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let n=Gi(e.lView);for(;n&&!gE(n[G]);)n=Gi(n);n&&$w(n)},consumerOnSignalRead(){this.lView[gr]=this}};function gE(e){return 2!==e.type}const ZN=100;function ph(e,n=!0,t=0){const r=e[pi],i=r.rendererFactory;i.begin?.();try{!function YN(e,n){const t=Xw();try{Qw(!0),ly(e,n);let r=0;for(;Af(e);){if(r===ZN)throw new k(103,!1);r++,ly(e,1)}}finally{Qw(t)}}(e,t)}catch(s){throw n&&hh(e,s),s}finally{i.end?.(),r.inlineEffectRunner?.flush()}}function KN(e,n,t,r){const i=n[oe];if(!(256&~i))return;n[pi].inlineEffectRunner?.flush(),e0(n);let u=!0,c=null,d=null;gE(e)?(d=function GN(e){return e[gr]??function UN(e){const n=mE.pop()??Object.create(zN);return n.lView=e,n}(e)}(n),c=et(d)):null===function U(){return ke}()?(u=!1,d=function qN(e){const n=e[gr]??Object.create(WN);return n.lView=e,n}(n),c=et(d)):n[gr]&&(oo(n[gr]),n[gr]=null);try{Uw(n),function Jw(e){return fe.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==t&&tE(e,n,t,2,r);const f=!(3&~i);if(f){const y=e.preOrderCheckHooks;null!==y&&Ff(n,y,null)}else{const y=e.preOrderHooks;null!==y&&Lf(n,y,0,null),n0(n,0)}if(function XN(e){for(let n=qC(e);null!==n;n=WC(n)){if(!(n[oe]&If.HasTransplantedViews))continue;const t=n[Ba];for(let r=0;r<t.length;r++)$w(t[r])}}(n),vE(n,0),null!==e.contentQueries&&cE(e,n),f){const y=e.contentCheckHooks;null!==y&&Ff(n,y)}else{const y=e.contentHooks;null!==y&&Lf(n,y,1),n0(n,1)}!function mN(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)gs(~i);else{const o=i,s=t[++r],u=t[++r];Ux(s,o),u(2,n[o])}}}finally{gs(-1)}}(e,n);const m=e.components;null!==m&&bE(n,m,0);const g=e.viewQuery;if(null!==g&&sy(2,g,r),f){const y=e.viewCheckHooks;null!==y&&Ff(n,y)}else{const y=e.viewHooks;null!==y&&Lf(n,y,2),n0(n,2)}if(!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),n[Tf]){for(const y of n[Tf])y();n[Tf]=null}n[oe]&=-73}catch(f){throw xf(n),f}finally{null!==d&&(pt(d,c),u&&function $N(e){e.lView[gr]!==e&&(e.lView=null,mE.push(e))}(d)),t0()}}function vE(e,n){for(let t=qC(e);null!==t;t=WC(t))for(let r=Mt;r<t.length;r++)_E(t[r],n)}function QN(e,n,t){_E(Kn(n,e),t)}function _E(e,n){zg(e)&&ly(e,n)}function ly(e,n){const r=e[G],i=e[oe],o=e[gr];let s=!!(0===n&&16&i);if(s||=!!(64&i&&0===n),s||=!!(1024&i),s||=!(!o?.dirty||!Ar(o)),s||=!1,o&&(o.dirty=!1),e[oe]&=-9217,s)KN(r,e,r.template,e[ut]);else if(8192&i){vE(e,1);const u=r.components;null!==u&&bE(e,u,1)}}function bE(e,n,t){for(let r=0;r<n.length;r++)QN(e,n[r],t)}function ul(e,n){const t=Xw()?64:1088;for(e[pi].changeDetectionScheduler?.notify(n);e;){e[oe]|=t;const r=Gi(e);if(Vc(e)&&!r)return e;e=r}return null}class cl{get rootNodes(){const n=this._lView,t=n[G];return al(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[ut]}set context(n){this._lView[ut]=n}get destroyed(){return!(256&~this._lView[oe])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[Rt];if(fn(n)){const t=n[8],r=t?t.indexOf(this):-1;r>-1&&(il(n,r),yf(t,r))}this._attachedToViewContainer=!1}uh(this._lView[G],this._lView)}onDestroy(n){kf(this._lView,n)}markForCheck(){ul(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[oe]&=-129}reattach(){qg(this._lView),this._lView[oe]|=128}detectChanges(){this._lView[oe]|=1024,ph(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new k(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;const n=Vc(this._lView),t=this._lView[fs];null!==t&&!n&&z0(t,this._lView),j1(this._lView[G],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new k(902,!1);this._appRef=n;const t=Vc(this._lView),r=this._lView[fs];null!==r&&!t&&B1(r,this._lView),qg(this._lView)}}let Ei=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=tO}return e})();const JN=Ei,eO=class extends JN{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=Qa(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:t,dehydratedView:r});return new cl(i)}};function tO(){return mh(Ke(),N())}function mh(e,n){return 4&e.type?new eO(n,e,$a(e,n)):null}let HE=()=>null;function Ms(e,n){return HE(e,n)}class tu{}const yl=new q("",{providedIn:"root",factory:()=>!1}),GE=new q(""),wy=new q("");class WO{}class UE{}class YO{resolveComponentFactory(n){throw function ZO(e){const n=Error(`No component factory found for ${Ct(e)}.`);return n.ngComponent=e,n}(n)}}class Is{static#e=this.NULL=new YO}class wh{}let Di=(()=>{class e{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function KO(){const e=N(),t=Kn(Ke().index,e);return(Zt(t)?t:e)[de]}()}return e})(),XO=(()=>{class e{static#e=this.\u0275prov=Y({token:e,providedIn:"root",factory:()=>null})}return e})();function Eh(e,n,t){let r=t?e.styles:null,i=t?e.classes:null,o=0;if(null!==n)for(let s=0;s<n.length;s++){const u=n[s];"number"==typeof u?o=u:1==o?i=ba(i,u):2==o&&(r=ba(r,u+": "+n[++s]+";"))}t?e.styles=r:e.stylesWithoutHost=r,t?e.classes=i:e.classesWithoutHost=i}class WE extends Is{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const t=Ee(n);return new bl(t,this.ngModule)}}function ZE(e,n){const t=[];for(const r in e){if(!e.hasOwnProperty(r))continue;const i=e[r];if(void 0===i)continue;const o=Array.isArray(i),s=o?i[0]:i;t.push(n?{propName:s,templateName:r,isSignal:!!((o?i[1]:vo.None)&vo.SignalBased)}:{propName:s,templateName:r})}return t}class bl extends UE{get inputs(){const n=this.componentDef,t=n.inputTransforms,r=ZE(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 ZE(this.componentDef.outputs,!1)}constructor(n,t){super(),this.componentDef=n,this.ngModule=t,this.componentType=n.type,this.selector=function ex(e){return e.map(JA).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!t}create(n,t,r,i){const o=ie(null);try{let s=(i=i||this.ngModule)instanceof mr?i:i?.injector;s&&null!==this.componentDef.getStandaloneInjector&&(s=this.componentDef.getStandaloneInjector(s)||s);const u=s?new ys(n,s):n,c=u.get(wh,null);if(null===c)throw new k(407,!1);const m={rendererFactory:c,sanitizer:u.get(XO,null),inlineEffectRunner:null,changeDetectionScheduler:u.get(tu,null)},g=c.createRenderer(null,this.componentDef),y=this.componentDef.selectors[0][0]||"div",_=r?function yN(e,n,t,r){const o=r.get(h1,!1)||t===jr.ShadowDom,s=e.selectRootElement(n,o);return function vN(e){rE(e)}(s),s}(g,r,this.componentDef.encapsulation,u):ah(g,y,function eR(e){const n=e.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(y));let C=512;this.componentDef.signals?C|=4096:this.componentDef.onPush||(C|=16);let S=null;null!==_&&(S=P0(_,u,!0));const I=ny(0,null,null,1,0,null,null,null,null,null,null),T=dh(null,I,null,C,null,null,m,g,u,null,S);e0(T);let R,L,H=null;try{const Q=this.componentDef;let re,J=null;Q.findHostDirectiveDefs?(re=[],J=new Map,Q.findHostDirectiveDefs(Q,re,J),re.push(Q)):re=[Q];const _t=function nR(e,n){const t=e[G],r=ee;return e[r]=n,Ds(t,r,2,"#host",null)}(T,_);H=function rR(e,n,t,r,i,o,s){const u=i[G];!function iR(e,n,t,r){for(const i of e)n.mergedAttrs=Oc(n.mergedAttrs,i.hostAttrs);null!==n.mergedAttrs&&(Eh(n,n.mergedAttrs,!0),null!==t&&Q1(r,t,n))}(r,e,n,s);let c=null;null!==n&&(c=P0(n,i[Ft]));const d=o.rendererFactory.createRenderer(n,t);let f=16;t.signals?f=4096:t.onPush&&(f=64);const m=dh(i,nE(t),null,f,i[e.index],e,o,d,null,null,c);return u.firstCreatePass&&iy(u,e,r.length-1),fh(i,m),i[e.index]=m}(_t,_,Q,re,T,m,g),L=Bc(I,ee),_&&function sR(e,n,t,r){if(r)Ig(e,t,["ng-version","18.2.3"]);else{const{attrs:i,classes:o}=function tx(e){const n=[],t=[];let r=1,i=2;for(;r<e.length;){let o=e[r];if("string"==typeof o)2===i?""!==o&&n.push(o,e[++r]):8===i&&t.push(o);else{if(!Br(i))break;i=o}r++}return{attrs:n,classes:t}}(n.selectors[0]);i&&Ig(e,t,i),o&&o.length>0&&X1(e,t,o.join(" "))}}(g,Q,_,r),void 0!==t&&function aR(e,n,t){const r=e.projection=[];for(let i=0;i<n.length;i++){const o=t[i];r.push(null!=o?Array.from(o):null)}}(L,this.ngContentSelectors,t),R=function oR(e,n,t,r,i,o){const s=Ke(),u=i[G],c=wn(s,i);sE(u,i,s,t,null,r);for(let f=0;f<t.length;f++)hn(vs(i,u,s.directiveStart+f,s),i);aE(u,i,s),c&&hn(c,i);const d=vs(i,u,s.directiveStart+s.componentOffset,s);if(e[ut]=i[ut]=d,null!==o)for(const f of o)f(d,n);return J0(u,s,i),d}(H,Q,re,J,T,[uR]),uy(I,T,null)}catch(Q){throw null!==H&&b0(H),b0(T),Q}finally{t0()}return new tR(this.componentType,R,$a(L,T),T,L)}finally{ie(o)}}}class tR extends WO{constructor(n,t,r,i,o){super(),this.location=r,this._rootLView=i,this._tNode=o,this.previousInputValues=null,this.instance=t,this.hostView=this.changeDetectorRef=new cl(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 o=this._rootLView;ay(o[G],o,i,n,t),this.previousInputValues.set(n,t),ul(Kn(this._tNode.index,o),1)}}get injector(){return new Yt(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}function uR(){const e=Ke();Rf(N()[G],e)}let qr=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=cR}return e})();function cR(){return function XE(e,n){let t;const r=n[e.index];return fn(r)?t=r:(t=uE(r,n,null,e),n[e.index]=t,fh(n,t)),QE(t,n,e,r),new YE(t,e,n)}(Ke(),N())}const lR=qr,YE=class extends lR{constructor(n,t,r){super(),this._lContainer=n,this._hostTNode=t,this._hostLView=r}get element(){return $a(this._hostTNode,this._hostLView)}get injector(){return new Yt(this._hostTNode,this._hostLView)}get parentInjector(){const n=Bf(this._hostTNode,this._hostLView);if(s0(n)){const t=zc(n,this._hostLView),r=$c(n);return new Yt(t[G].data[r+8],t)}return new Yt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const t=KE(this._lContainer);return null!==t&&t[n]||null}get length(){return this._lContainer.length-Mt}createEmbeddedView(n,t,r){let i,o;"number"==typeof r?i=r:null!=r&&(i=r.index,o=r.injector);const s=Ms(this._lContainer,n.ssrId),u=n.createEmbeddedViewImpl(t||{},o,s);return this.insertImpl(u,i,Ss(this._hostTNode,s)),u}createComponent(n,t,r,i,o){const s=n&&!Rc(n);let u;if(s)u=t;else{const _=t||{};u=_.index,r=_.injector,i=_.projectableNodes,o=_.environmentInjector||_.ngModuleRef}const c=s?n:new bl(Ee(n)),d=r||this.parentInjector;if(!o&&null==c.ngModule){const C=(s?d:this.parentInjector).get(mr,null);C&&(o=C)}const f=Ee(c.componentType??{}),m=Ms(this._lContainer,f?.id??null),y=c.create(d,i,m?.firstChild??null,o);return this.insertImpl(y.hostView,u,Ss(this._hostTNode,m)),y}insert(n,t){return this.insertImpl(n,t,!0)}insertImpl(n,t,r){const i=n._lView;if(function Nx(e){return fn(e[Rt])}(i)){const u=this.indexOf(n);if(-1!==u)this.detach(u);else{const c=i[Rt],d=new YE(c,c[on],c[Rt]);d.detach(d.indexOf(n))}}const o=this._adjustIndex(t),s=this._lContainer;return Ja(s,i,o,r),n.attachToViewContainerRef(),dw(Dy(s),o,n),n}move(n,t){return this.insert(n,t)}indexOf(n){const t=KE(this._lContainer);return null!==t?t.indexOf(n):-1}remove(n){const t=this._adjustIndex(n,-1),r=il(this._lContainer,t);r&&(yf(Dy(this._lContainer),t),uh(r[G],r))}detach(n){const t=this._adjustIndex(n,-1),r=il(this._lContainer,t);return r&&null!=yf(Dy(this._lContainer),t)?new cl(r):null}_adjustIndex(n,t=0){return n??this.length+t}};function KE(e){return e[8]}function Dy(e){return e[8]||(e[8]=[])}let QE=function eD(e,n,t,r){if(e[mi])return;let i;i=8&t.type?Fe(r):function dR(e,n){const t=e[de],r=t.createComment(""),i=wn(n,e);return Cs(t,Z0(t,i),r,function cN(e,n){return e.nextSibling(n)}(t,i),!1),r}(n,t),e[mi]=i},Sy=()=>!1;const uD=new Set;function En(e){uD.has(e)||(uD.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function we(e,n){En("NgSignals");const t=function xm(e){const n=Object.create(ta);n.value=e;const t=()=>(lr(n),n.value);return t[z]=n,t}(e),r=t[z];return n?.equal&&(r.equal=n.equal),t.set=i=>ki(r,i),t.update=i=>function Go(e,n){Ie()||Js(),ki(e,n(e.value))}(r,i),t.asReadonly=lD.bind(t),t}function lD(){const e=this[z];if(void 0===e.readonlyFn){const n=()=>this();n[z]=e,e.readonlyFn=n}return e.readonlyFn}function dD(e){return function cD(e){return"function"==typeof e&&void 0!==e[z]}(e)&&"function"==typeof e.set}function Ve(e){let n=function CD(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),t=!0;const r=[e];for(;n;){let i;if(Gr(e))i=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new k(903,!1);i=n.\u0275dir}if(i){if(t){r.push(i);const s=e;s.inputs=Sh(e.inputs),s.inputTransforms=Sh(e.inputTransforms),s.declaredInputs=Sh(e.declaredInputs),s.outputs=Sh(e.outputs);const u=i.hostBindings;u&&OR(e,u);const c=i.viewQuery,d=i.contentQueries;if(c&&kR(e,c),d&&NR(e,d),AR(e,i),af(e.outputs,i.outputs),Gr(i)&&i.data.animation){const f=e.data;f.animation=(f.animation||[]).concat(i.data.animation)}}const o=i.features;if(o)for(let s=0;s<o.length;s++){const u=o[s];u&&u.ngInherit&&u(e),u===Ve&&(t=!1)}}n=Object.getPrototypeOf(n)}!function xR(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=Oc(i.hostAttrs,t=Oc(t,i.hostAttrs))}}(r)}function AR(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 Sh(e){return e===fi?{}:e===Re?[]:e}function kR(e,n){const t=e.viewQuery;e.viewQuery=t?(r,i)=>{n(r,i),t(r,i)}:n}function NR(e,n){const t=e.contentQueries;e.contentQueries=t?(r,i,o)=>{n(r,i,o),t(r,i,o)}:n}function OR(e,n){const t=e.hostBindings;e.hostBindings=t?(r,i)=>{n(r,i),t(r,i)}:n}class As{}class HR{}class Oy extends As{constructor(n,t,r,i=!0){super(),this.ngModuleType=n,this._parent=t,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new WE(this);const o=function dn(e,n){const t=e[pf]||null;if(!t&&!0===n)throw new Error(`Type ${Ct(e)} does not have '\u0275mod' property.`);return t}(n);this._bootstrapComponents=function Jn(e){return e instanceof Function?e():e}(o.bootstrap),this._r3Injector=TC(n,t,[{provide:As,useValue:this},{provide:Is,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 Ry extends HR{constructor(n){super(),this.moduleType=n}create(n){return new Oy(this.moduleType,n,[])}}class TD extends As{constructor(n){super(),this.componentFactoryResolver=new WE(this),this.instance=null;const t=new Na([...n.providers,{provide:As,useValue:this},{provide:Is,useValue:this.componentFactoryResolver}],n.parent||Df(),n.debugName,new Set(["environment"]));this.injector=t,n.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function Si(e,n,t){return e[n]=t}function It(e,n,t){return!Object.is(e[n],t)&&(e[n]=t,!0)}function xs(e,n,t,r){const i=It(e,n,t);return It(e,n+1,r)||i}function El(e,n,t,r,i,o,s,u,c,d){const f=t+ee,m=n.firstCreatePass?function ZR(e,n,t,r,i,o,s,u,c){const d=n.consts,f=Ds(n,e,4,s||null,u||null);ry(n,t,f,yr(d,c)),Rf(n,f);const m=f.tView=ny(2,f,r,i,o,n.directiveRegistry,n.pipeRegistry,null,n.schemas,d,null);return null!==n.queries&&(n.queries.template(n,f),m.queries=n.queries.embeddedTView(f)),f}(f,n,e,r,i,o,s,u,c):n.data[f];$r(m,!1);const g=ID(n,e,m,t);Gc()&&ch(n,e,g,m),hn(g,e);const y=uE(g,e,g,m);return e[f]=y,fh(e,y),function JE(e,n,t){return Sy(e,n,t)}(y,m,e),Pf(m)&&ey(n,e,m),null!=c&&ty(e,m,d),m}function me(e,n,t,r,i,o,s,u){const c=N(),d=Ce();return El(c,d,e,n,t,r,i,yr(d.consts,o),s,u),me}let ID=function PD(e,n,t,r){return yi(!0),n[de].createComment("")};var ou=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(ou||{});let RD=(()=>{class e{constructor(){this.impl=null}execute(){this.impl?.execute()}static#e=this.\u0275prov=Y({token:e,providedIn:"root",factory:()=>new e})}return e})();class Tl{constructor(){this.ngZone=p(Le),this.scheduler=p(tu),this.errorHandler=p(_i,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static#e=this.PHASES=[ou.EarlyRead,ou.Write,ou.MixedReadWrite,ou.Read];execute(){this.executing=!0;for(const n of Tl.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=Y({token:Tl,providedIn:"root",factory:()=>new Tl})}function Jt(e,n,t,r){const i=N();return It(i,zr(),n)&&(Ce(),Ci(ct(),i,e,n,t,r)),Jt}function Nh(e,n){return e<<17|n<<2}function Do(e){return e>>17&32767}function Zy(e){return 2|e}function Ns(e){return(131068&e)>>2}function Yy(e,n){return-131069&e|n<<2}function Ky(e){return 1|e}function c4(e,n,t,r){const i=e[t+1],o=null===n;let s=r?Do(i):Ns(i),u=!1;for(;0!==s&&(!1===u||o);){const d=e[s+1];FF(e[s],n)&&(u=!0,e[s+1]=r?Ky(d):Zy(d)),s=r?Do(d):Ns(d)}u&&(e[t+1]=r?Zy(i):Ky(i))}function FF(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&xa(e,n)>=0}const Kt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function l4(e){return e.substring(Kt.key,Kt.keyEnd)}function d4(e,n){const t=Kt.textEnd;return t===n?-1:(n=Kt.keyEnd=function BF(e,n,t){for(;n<t&&e.charCodeAt(n)>32;)n++;return n}(e,Kt.key=n,t),bu(e,n,t))}function bu(e,n,t){for(;n<t&&e.charCodeAt(n)<=32;)n++;return n}function Z(e,n,t){const r=N();return It(r,zr(),n)&&Hn(Ce(),ct(),r,e,n,r[de],t,!1),Z}function Xy(e,n,t,r,i){const s=i?"class":"style";ay(e,t,n.inputs[s],s,r)}function wu(e,n,t){return Wr(e,n,t,!1),wu}function Dn(e,n){return Wr(e,n,null,!0),Dn}function Zi(e){!function Zr(e,n,t,r){const i=Ce(),o=$i(2);i.firstUpdatePass&&y4(i,null,o,r);const s=N();if(t!==pe&&It(s,o,t)){const u=i.data[sn()];if(w4(u,r)&&!g4(i,o)){let c=r?u.classesWithoutHost:u.stylesWithoutHost;null!==c&&(t=ba(c,t||"")),Xy(i,u,s,t,r)}else!function KF(e,n,t,r,i,o,s,u){i===pe&&(i=Re);let c=0,d=0,f=0<i.length?i[0]:null,m=0<o.length?o[0]:null;for(;null!==f||null!==m;){const g=c<i.length?i[c+1]:void 0,y=d<o.length?o[d+1]:void 0;let C,_=null;f===m?(c+=2,d+=2,g!==y&&(_=m,C=y)):null===m||null!==f&&f<m?(c+=2,_=f):(d+=2,_=m,C=y),null!==_&&_4(e,n,t,r,_,C,s,u),f=c<i.length?i[c]:null,m=d<o.length?o[d]:null}}(i,u,s,s[de],s[o+1],s[o+1]=function ZF(e,n,t){if(null==t||""===t)return Re;const r=[],i=Xn(t);if(Array.isArray(i))for(let o=0;o<i.length;o++)e(r,i[o],!0);else if("object"==typeof i)for(const o in i)i.hasOwnProperty(o)&&e(r,o,i[o]);else"string"==typeof i&&n(r,i);return r}(e,n,t),r,o)}}(YF,Mi,e,!0)}function Mi(e,n){for(let t=function VF(e){return function h4(e){Kt.key=0,Kt.keyEnd=0,Kt.value=0,Kt.valueEnd=0,Kt.textEnd=e.length}(e),d4(e,bu(e,0,Kt.textEnd))}(n);t>=0;t=d4(n,t))Yn(e,l4(n),!0)}function Wr(e,n,t,r){const i=N(),o=Ce(),s=$i(2);o.firstUpdatePass&&y4(o,e,s,r),n!==pe&&It(i,s,n)&&_4(o,o.data[sn()],i,i[de],e,i[s+1]=function XF(e,n){return null==e||""===e||("string"==typeof n?e+=n:"object"==typeof e&&(e=Ct(Xn(e)))),e}(n,t),r,s)}function g4(e,n){return n>=e.expandoStartIndex}function y4(e,n,t,r){const i=e.data;if(null===i[t+1]){const o=i[sn()],s=g4(e,t);w4(o,r)&&null===n&&!s&&(n=!1),n=function $F(e,n,t,r){const i=Qg(e);let o=r?n.residualClasses:n.residualStyles;if(null===i)0===(r?n.classBindings:n.styleBindings)&&(t=Il(t=Qy(null,e,n,t,r),n.attrs,r),o=null);else{const s=n.directiveStylingLast;if(-1===s||e[s]!==i)if(t=Qy(i,e,n,t,r),null===o){let c=function zF(e,n,t){const r=t?n.classBindings:n.styleBindings;if(0!==Ns(r))return e[Do(r)]}(e,n,r);void 0!==c&&Array.isArray(c)&&(c=Qy(null,e,n,c[1],r),c=Il(c,n.attrs,r),function qF(e,n,t,r){e[Do(t?n.classBindings:n.styleBindings)]=r}(e,n,r,c))}else o=function WF(e,n,t){let r;const i=n.directiveEnd;for(let o=1+n.directiveStylingLast;o<i;o++)r=Il(r,e[o].hostAttrs,t);return Il(r,n.attrs,t)}(e,n,r)}return void 0!==o&&(r?n.residualClasses=o:n.residualStyles=o),t}(i,o,n,r),function OF(e,n,t,r,i,o){let s=o?n.classBindings:n.styleBindings,u=Do(s),c=Ns(s);e[r]=t;let f,d=!1;if(Array.isArray(t)?(f=t[1],(null===f||xa(t,f)>0)&&(d=!0)):f=t,i)if(0!==c){const g=Do(e[u+1]);e[r+1]=Nh(g,u),0!==g&&(e[g+1]=Yy(e[g+1],r)),e[u+1]=function kF(e,n){return 131071&e|n<<17}(e[u+1],r)}else e[r+1]=Nh(u,0),0!==u&&(e[u+1]=Yy(e[u+1],r)),u=r;else e[r+1]=Nh(c,0),0===u?u=r:e[c+1]=Yy(e[c+1],r),c=r;d&&(e[r+1]=Zy(e[r+1])),c4(e,f,r,!0),c4(e,f,r,!1),function RF(e,n,t,r,i){const o=i?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof n&&xa(o,n)>=0&&(t[r+1]=Ky(t[r+1]))}(n,f,e,r,o),s=Nh(u,c),o?n.classBindings=s:n.styleBindings=s}(i,o,n,t,s,r)}}function Qy(e,n,t,r,i){let o=null;const s=t.directiveEnd;let u=t.directiveStylingLast;for(-1===u?u=t.directiveStart:u++;u<s&&(o=n[u],r=Il(r,o.hostAttrs,i),o!==e);)u++;return null!==e&&(t.directiveStylingLast=u),r}function Il(e,n,t){const r=t?1:2;let i=-1;if(null!==n)for(let o=0;o<n.length;o++){const s=n[o];"number"==typeof s?i=s:i===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),Yn(e,s,!!t||n[++o]))}return void 0===e?null:e}function YF(e,n,t){const r=String(n);""!==r&&!r.includes(" ")&&Yn(e,r,t)}function _4(e,n,t,r,i,o,s,u){if(!(3&n.type))return;const c=e.data,d=c[u+1],f=function NF(e){return!(1&~e)}(d)?b4(c,n,t,i,Ns(d),s):void 0;Oh(f)||(Oh(o)||function xF(e){return!(2&~e)}(d)&&(o=b4(c,null,t,i,u,s)),function fN(e,n,t,r,i){if(n)i?e.addClass(t,r):e.removeClass(t,r);else{let o=-1===r.indexOf("-")?void 0:wo.DashCase;null==i?e.removeStyle(t,r,o):("string"==typeof i&&i.endsWith("!important")&&(i=i.slice(0,-10),o|=wo.Important),e.setStyle(t,r,i,o))}}(r,s,jc(sn(),t),i,o))}function b4(e,n,t,r,i,o){const s=null===n;let u;for(;i>0;){const c=e[i],d=Array.isArray(c),f=d?c[1]:c,m=null===f;let g=t[i+1];g===pe&&(g=m?Re:void 0);let y=m?Tg(g,r):f===r?g:void 0;if(d&&!Oh(y)&&(y=Tg(c,r)),Oh(y)&&(u=y,s))return u;const _=e[i+1];i=s?Do(_):Ns(_)}if(null!==n){let c=o?n.residualClasses:n.residualStyles;null!=c&&(u=Tg(c,r))}return u}function Oh(e){return void 0!==e}function w4(e,n){return!!(e.flags&(n?8:16))}class uL{destroy(n){}updateValue(n,t){}swap(n,t){const r=Math.min(n,t),i=Math.max(n,t),o=this.detach(i);if(i-r>1){const s=this.detach(r);this.attach(r,o),this.attach(i,s)}else this.attach(r,o)}move(n,t){this.attach(t,this.detach(n))}}function Jy(e,n,t,r,i){return e===t&&Object.is(n,r)?1:Object.is(i(e,n),i(t,r))?-1:0}function ev(e,n,t,r){return!(void 0===n||!n.has(r)||(e.attach(t,n.get(r)),n.delete(r),0))}function C4(e,n,t,r,i){if(ev(e,n,r,t(r,i)))e.updateValue(r,i);else{const o=e.create(r,i);e.attach(r,o)}}function E4(e,n,t,r){const i=new Set;for(let o=n;o<=t;o++)i.add(r(o,e.at(o)));return i}class D4{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 _e(e,n){En("NgControlFlow");const t=N(),r=zr(),i=t[r]!==pe?t[r]:-1,o=-1!==i?Rh(t,ee+i):void 0;if(It(t,r,e)){const u=ie(null);try{if(void 0!==o&&cy(o,0),-1!==e){const c=ee+e,d=Rh(t,c),f=tv(t[G],c),m=Ms(d,f.tView.ssrId);Ja(d,Qa(t,f,n,{dehydratedView:m}),0,Ss(f,m))}}finally{ie(u)}}else if(void 0!==o){const u=hE(o,0);void 0!==u&&(u[ut]=n)}}class lL{constructor(n,t,r){this.lContainer=n,this.$implicit=t,this.$index=r}get $count(){return this.lContainer.length-Mt}}function Yr(e){return e}function S4(e,n){return n}class dL{constructor(n,t,r){this.hasEmptyBlock=n,this.trackByFn=t,this.liveCollection=r}}function Gn(e,n,t,r,i,o,s,u,c,d,f,m,g){En("NgControlFlow");const y=N(),_=Ce(),C=void 0!==c,S=N(),I=u?s.bind(S[yt][ut]):s,T=new dL(C,I);S[ee+e]=T,El(y,_,e+1,n,t,r,i,yr(_.consts,o)),C&&El(y,_,e+2,c,d,f,m,yr(_.consts,g))}class fL extends uL{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-Mt}at(n){return this.getLView(n)[ut].$implicit}attach(n,t){const r=t[bn];this.needsIndexUpdate||=n!==this.length,Ja(this.lContainer,t,n,Ss(this.templateTNode,r))}detach(n){return this.needsIndexUpdate||=n!==this.length-1,function hL(e,n){return il(e,n)}(this.lContainer,n)}create(n,t){const r=Ms(this.lContainer,this.templateTNode.tView.ssrId),i=Qa(this.hostLView,this.templateTNode,new lL(this.lContainer,t,n),{dehydratedView:r});return this.operationsCounter?.recordCreate(),i}destroy(n){uh(n[G],n),this.operationsCounter?.recordDestroy()}updateValue(n,t){this.getLView(n)[ut].$implicit=t}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let n=0;n<this.length;n++)this.getLView(n)[ut].$index=n}getLView(n){return function pL(e,n){return hE(e,n)}(this.lContainer,n)}}function Un(e){const n=ie(null),t=sn();try{const r=N(),i=r[G],o=r[t],s=t+1,u=Rh(r,s);if(void 0===o.liveCollection){const d=tv(i,s);o.liveCollection=new fL(u,r,d)}else o.liveCollection.reset();const c=o.liveCollection;if(function cL(e,n,t){let r,i,o=0,s=e.length-1;if(Array.isArray(n)){let c=n.length-1;for(;o<=s&&o<=c;){const d=e.at(o),f=n[o],m=Jy(o,d,o,f,t);if(0!==m){m<0&&e.updateValue(o,f),o++;continue}const g=e.at(s),y=n[c],_=Jy(s,g,c,y,t);if(0!==_){_<0&&e.updateValue(s,y),s--,c--;continue}const C=t(o,d),S=t(s,g),I=t(o,f);if(Object.is(I,S)){const T=t(c,y);Object.is(T,C)?(e.swap(o,s),e.updateValue(s,y),c--,s--):e.move(s,o),e.updateValue(o,f),o++}else if(r??=new D4,i??=E4(e,o,s,t),ev(e,r,o,I))e.updateValue(o,f),o++,s++;else if(i.has(I))r.set(C,e.detach(o)),s--;else{const T=e.create(o,n[o]);e.attach(o,T),o++,s++}}for(;o<=c;)C4(e,r,t,o,n[o]),o++}else if(null!=n){const c=n[Symbol.iterator]();let d=c.next();for(;!d.done&&o<=s;){const f=e.at(o),m=d.value,g=Jy(o,f,o,m,t);if(0!==g)g<0&&e.updateValue(o,m),o++,d=c.next();else{r??=new D4,i??=E4(e,o,s,t);const y=t(o,m);if(ev(e,r,o,y))e.updateValue(o,m),o++,s++,d=c.next();else if(i.has(y)){const _=t(o,f);r.set(_,e.detach(o)),s--}else e.attach(o,e.create(o,m)),o++,s++,d=c.next()}}for(;!d.done;)C4(e,r,t,e.length,d.value),d=c.next()}for(;o<=s;)e.destroy(e.detach(s--));r?.forEach(c=>{e.destroy(c)})}(c,e,o.trackByFn),c.updateIndexes(),o.hasEmptyBlock){const d=zr(),f=0===c.length;if(It(r,d,f)){const m=t+2,g=Rh(r,m);if(f){const y=tv(i,m),_=Ms(g,y.tView.ssrId);Ja(g,Qa(r,y,void 0,{dehydratedView:_}),0,Ss(y,_))}else cy(g,0)}}}finally{ie(n)}}function Rh(e,n){return e[n]}function tv(e,n){return Bc(e,n)}function j(e,n,t,r){const i=N(),o=Ce(),s=ee+e,u=i[de],c=o.firstCreatePass?function mL(e,n,t,r,i,o){const s=n.consts,c=Ds(n,e,2,r,yr(s,i));return ry(n,t,c,yr(s,o)),null!==c.attrs&&Eh(c,c.attrs,!1),null!==c.mergedAttrs&&Eh(c,c.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,c),c}(s,o,i,n,t,r):o.data[s],d=T4(o,i,c,u,n,e);i[s]=d;const f=Pf(c);return $r(c,!0),Q1(u,d,c),!function ru(e){return!(32&~e.flags)}(c)&&Gc()&&ch(o,i,d,c),0===function Ox(){return fe.lFrame.elementDepthCount}()&&hn(d,i),function Rx(){fe.lFrame.elementDepthCount++}(),f&&(ey(o,i,c),J0(o,c,i)),null!==r&&ty(i,c),j}function B(){let e=Ke();Yg()?Kg():(e=e.parent,$r(e,!1));const n=e;(function Lx(e){return fe.skipHydrationRootTNode===e})(n)&&function Hx(){fe.skipHydrationRootTNode=null}(),function Fx(){fe.lFrame.elementDepthCount--}();const t=Ce();return t.firstCreatePass&&(Rf(t,e),Bg(e)&&t.queries.elementEnd(e)),null!=n.classesWithoutHost&&function ek(e){return!!(8&e.flags)}(n)&&Xy(t,n,N(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function tk(e){return!!(16&e.flags)}(n)&&Xy(t,n,N(),n.stylesWithoutHost,!1),B}function je(e,n,t,r){return j(e,n,t,r),B(),je}let T4=(e,n,t,r,i,o)=>(yi(!0),ah(r,i,function sC(){return fe.lFrame.currentNamespace}()));function Cu(e,n,t){const r=N(),i=Ce(),o=e+ee,s=i.firstCreatePass?function vL(e,n,t,r,i){const o=n.consts,s=yr(o,r),u=Ds(n,e,8,"ng-container",s);return null!==s&&Eh(u,s,!0),ry(n,t,u,yr(o,i)),null!==n.queries&&n.queries.elementStart(n,u),u}(o,i,r,n,t):i.data[o];$r(s,!0);const u=M4(i,r,s,e);return r[o]=u,Gc()&&ch(i,r,u,s),hn(u,r),Pf(s)&&(ey(i,r,s),J0(i,s,r)),null!=t&&ty(r,s),Cu}function Eu(){let e=Ke();const n=Ce();return Yg()?Kg():(e=e.parent,$r(e,!1)),n.firstCreatePass&&(Rf(n,e),Bg(e)&&n.queries.elementEnd(e)),Eu}function So(e,n,t){return Cu(e,n,t),Eu(),So}let M4=(e,n,t,r)=>(yi(!0),$0(n[de],""));function xt(){return N()}function Fh(e,n,t){const r=N();if(It(r,zr(),n)){const o=Ce(),s=ct();Hn(o,s,r,e,n,fE(Qg(o.data),s,r),t,!0)}return Fh}const Lh="en-US";let x4=Lh,Y4=(e,n,t)=>{};function ge(e,n,t,r){const i=N(),o=Ce(),s=Ke();return iv(o,i,i[de],s,e,n,r),ge}function iv(e,n,t,r,i,o,s){const u=Pf(r),d=e.firstCreatePass&&function dE(e){return e.cleanup??=[]}(e),f=n[ut],m=function lE(e){return e[Fa]??=[]}(n);let g=!0;if(3&r.type||s){const C=wn(r,n),S=s?s(C):C,I=m.length,T=s?L=>s(Fe(L[r.index])):r.index;let R=null;if(!s&&u&&(R=function d6(e,n,t,r){const i=e.cleanup;if(null!=i)for(let o=0;o<i.length-1;o+=2){const s=i[o];if(s===t&&i[o+1]===r){const u=n[Fa],c=i[o+2];return u.length>c?u[c]:null}"string"==typeof s&&(o+=2)}return null}(e,n,i,r.index)),null!==R)(R.__ngLastListenerFn__||R).__ngNextListenerFn__=o,R.__ngLastListenerFn__=o,g=!1;else{o=J4(r,n,f,o),Y4(C,i,o);const L=t.listen(S,i,o);m.push(o,L),d&&d.push(i,T,I,I+1)}}else o=J4(r,n,f,o);const y=r.outputs;let _;if(g&&null!==y&&(_=y[i])){const C=_.length;if(C)for(let S=0;S<C;S+=2){const H=n[_[S]][_[S+1]].subscribe(o),Q=m.length;m.push(o,H),d&&d.push(i,r.index,Q,-(Q+1))}}}function Q4(e,n,t,r){const i=ie(null);try{return gi(6,n,t),!1!==t(r)}catch(o){return hh(e,o),!1}finally{gi(7,n,t),ie(i)}}function J4(e,n,t,r){return function i(o){if(o===Function)return r;ul(e.componentOffset>-1?Kn(e.index,n):n,5);let u=Q4(n,t,r,o),c=i.__ngNextListenerFn__;for(;c;)u=Q4(n,t,c,o)&&u,c=c.__ngNextListenerFn__;return u}}function $(e=1){return function qx(e){return(fe.lFrame.contextLView=function zw(e,n){for(;e>0;)n=n[La],e--;return n}(e,fe.lFrame.contextLView))[ut]}(e)}function f6(e,n){let t=null;const r=function YA(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 o=n[i];if("*"!==o){if(null===r?_w(e,o,!0):QA(r,o))return i}else t=i}return t}function ov(e,n=0,t,r,i,o){const s=N(),u=Ce(),c=r?e+1:null;null!==c&&El(s,u,c,r,i,o,null,t);const d=Ds(u,ee+e,16,null,t||null);null===d.projection&&(d.projection=n),Kg();const m=!s[bn]||ms();null===s[yt][on].projection[d.projection]&&null!==c?function h6(e,n,t){const r=ee+t,i=n.data[r],o=e[r],s=Ms(o,i.tView.ssrId);Ja(o,Qa(e,i,void 0,{dehydratedView:s}),0,Ss(i,s))}(s,u,c):m&&32&~d.flags&&function lN(e,n,t){K1(n[de],0,n,t,W0(e,t,n),$1(t.parent||n[on],t,n))}(u,s,d)}function av(e,n,t,r){t>=e.data.length&&(e.data[t]=null,e.blueprint[t]=null),n[t]=r}function Hh(e){return ps(Yw(),ee+e)}function ue(e,n=""){const t=N(),r=Ce(),i=e+ee,o=r.firstCreatePass?Ds(r,i,1,n,null):r.data[i],s=_S(r,t,o,n,e);t[i]=s,Gc()&&ch(r,t,s,o),$r(o,!1)}let _S=(e,n,t,r,i)=>(yi(!0),function U0(e,n){return e.createText(n)}(n[de],r));function Lt(e){return nt("",e,""),Lt}function nt(e,n,t){const r=N(),i=function fu(e,n,t,r){return It(e,zr(),t)?n+W(t)+r:pe}(r,e,n,t);return i!==pe&&function Wi(e,n,t){const r=jc(n,e);!function V1(e,n,t){e.setValue(n,t)}(e[de],r,t)}(r,sn(),i),nt}function uv(e,n,t){dD(n)&&(n=n());const r=N();return It(r,zr(),n)&&Hn(Ce(),ct(),r,e,n,r[de],t,!1),uv}function cv(e,n){const t=N(),r=Ce(),i=Ke();return iv(r,t,t[de],i,e,n),cv}const PS={};function nr(e){const n=Ce(),t=N(),r=e+ee;return $r(Ds(n,r,128,null,null),!1),av(n,t,r,PS),nr}function pn(e){return En("NgLet"),av(Ce(),N(),sn(),e),e}function rt(e){const t=ps(Yw(),ee+e);if(t===PS)throw new k(314,!1);return t}function lv(e,n,t,r,i){if(e=ae(e),Array.isArray(e))for(let o=0;o<e.length;o++)lv(e[o],n,t,r,i);else{const o=Ce(),s=N(),u=Ke();let c=ds(e)?e:ae(e.provide);const d=Mw(e),f=1048575&u.providerIndexes,m=u.directiveStart,g=u.providerIndexes>>20;if(ds(e)||!e.multi){const y=new Uc(d,i,P),_=fv(c,n,i?f:f+g,m);-1===_?(c0(jf(u,s),o,c),dv(o,e,n.length),n.push(c),u.directiveStart++,u.directiveEnd++,i&&(u.providerIndexes+=1048576),t.push(y),s.push(y)):(t[_]=y,s[_]=y)}else{const y=fv(c,n,f+g,m),_=fv(c,n,f,f+g),S=_>=0&&t[_];if(i&&!S||!i&&!(y>=0&&t[y])){c0(jf(u,s),o,c);const I=function R6(e,n,t,r,i){const o=new Uc(e,t,P);return o.multi=[],o.index=n,o.componentProviders=0,AS(o,i,r&&!t),o}(i?O6:N6,t.length,i,r,d);!i&&S&&(t[_].providerFactory=I),dv(o,e,n.length,0),n.push(c),u.directiveStart++,u.directiveEnd++,i&&(u.providerIndexes+=1048576),t.push(I),s.push(I)}else dv(o,e,y>-1?y:_,AS(t[i?_:y],d,!i&&r));!i&&r&&S&&t[_].componentProviders++}}}function dv(e,n,t,r){const i=ds(n),o=function ux(e){return!!e.useClass}(n);if(i||o){const c=(o?ae(n.useClass):n).prototype.ngOnDestroy;if(c){const d=e.destroyHooks||(e.destroyHooks=[]);if(!i&&n.multi){const f=d.indexOf(t);-1===f?d.push(t,[r,c]):d[f+1].push(r,c)}else d.push(t,c)}}}function AS(e,n,t){return t&&e.componentProviders++,e.multi.push(n)-1}function fv(e,n,t,r){for(let i=t;i<r;i++)if(n[i]===e)return i;return-1}function N6(e,n,t,r){return hv(this.multi,[])}function O6(e,n,t,r){const i=this.multi;let o;if(this.providerFactory){const s=this.providerFactory.componentProviders,u=vs(t,t[G],this.providerFactory.index,r);o=u.slice(0,s),hv(i,o);for(let c=s;c<u.length;c++)o.push(u[c])}else o=[],hv(i,o);return o}function hv(e,n){for(let t=0;t<e.length;t++)n.push((0,e[t])());return n}function it(e,n=[]){return t=>{t.providersResolver=(r,i)=>function k6(e,n,t){const r=Ce();if(r.firstCreatePass){const i=Gr(e);lv(t,r.data,r.blueprint,i,!0),lv(n,r.data,r.blueprint,i,!1)}}(r,i?i(e):e,n)}}let F6=(()=>{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=Ag(0,t.type),i=r.length>0?function MD(e,n,t=null){return new TD({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=Y({token:e,providedIn:"environment",factory:()=>new e(l(mr))})}return e})();function pv(e){En("NgStandalone"),e.getStandaloneInjector=n=>n.get(F6).getOrCreateStandaloneInjector(e)}function Ol(e,n){const t=e[n];return t===pe?void 0:t}function RS(e,n,t,r,i,o){const s=n+t;return It(e,s,i)?Si(e,s+1,o?r.call(o,i):r(i)):Ol(e,s+1)}function FS(e,n,t,r,i,o,s){const u=n+t;return xs(e,u,i,o)?Si(e,u+2,s?r.call(s,i,o):r(i,o)):Ol(e,u+2)}function LS(e,n,t,r,i,o,s,u){const c=n+t;return function Mh(e,n,t,r,i){const o=xs(e,n,t,r);return It(e,n+2,i)||o}(e,c,i,o,s)?Si(e,c+3,u?r.call(u,i,o,s):r(i,o,s)):Ol(e,c+3)}function VS(e,n,t,r,i,o,s,u,c){const d=n+t;return function vr(e,n,t,r,i,o){const s=xs(e,n,t,r);return xs(e,n+2,i,o)||s}(e,d,i,o,s,u)?Si(e,d+4,c?r.call(c,i,o,s,u):r(i,o,s,u)):Ol(e,d+4)}function Ue(e,n){const t=Ce();let r;const i=e+ee;t.firstCreatePass?(r=function Z6(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 o=r.factory||(r.factory=_n(r.type)),u=nn(P);try{const c=Vf(!1),d=o();return Vf(c),av(t,N(),i,d),d}finally{nn(u)}}function Rl(e,n,t){const r=e+ee,i=N(),o=ps(i,r);return Fl(i,r)?RS(i,Cn(),n,o.transform,t,o):o.transform(t)}function en(e,n,t,r){const i=e+ee,o=N(),s=ps(o,i);return Fl(o,i)?FS(o,Cn(),n,s.transform,t,r,s):s.transform(t,r)}function To(e,n,t,r,i){const o=e+ee,s=N(),u=ps(s,o);return Fl(s,o)?LS(s,Cn(),n,u.transform,t,r,i,u):u.transform(t,r,i)}function mv(e,n,t,r,i,o){const s=e+ee,u=N(),c=ps(u,s);return Fl(u,s)?VS(u,Cn(),n,c.transform,t,r,i,o,c):c.transform(t,r,i,o)}function Fl(e,n){return e[G].data[n].pure}function $h(e,n){return mh(e,n)}const oT=new q(""),Wh=new q("");let Ev,wv=(()=>{class e{constructor(t,r,i){this._ngZone=t,this.registry=r,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,Ev||(function UV(e){Ev=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:()=>{Le.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 o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),t()},r)),this._callbacks.push({doneCb:t,timeoutId:o,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)(l(Le),l(Cv),l(Wh))};static#t=this.\u0275prov=Y({token:e,factory:e.\u0275fac})}return e})(),Cv=(()=>{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 Ev?.findTestabilityInTree(this,t,r)??null}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function Zh(e){return!!e&&"function"==typeof e.then}function sT(e){return!!e&&"function"==typeof e.subscribe}const aT=new q("");let uT=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,r)=>{this.resolve=t,this.reject=r}),this.appInits=p(aT,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const t=[];for(const i of this.appInits){const o=i();if(Zh(o))t.push(o);else if(sT(o)){const s=new Promise((u,c)=>{o.subscribe({complete:u,error:c})});t.push(s)}}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=Y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Dv=new q("");function lT(e,n){return Array.isArray(n)?n.reduce(lT,e):{...e,...n}}let _r=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=p(Ak),this.afterRenderManager=p(RD),this.zonelessEnabled=p(yl),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new wt,this.afterTick=new wt,this.componentTypes=[],this.components=[],this.isStable=p(_s).hasPendingTasks.pipe(Tt(t=>!t)),this._injector=p(mr)}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 UE;if(!this._injector.get(uT).done)throw!i&&function ls(e){const n=Ee(e)||qt(e)||rn(e);return null!==n&&n.standalone}(t),new k(405,!1);let s;s=i?t:this._injector.get(Is).resolveComponentFactory(t),this.componentTypes.push(s.componentType);const u=function $V(e){return e.isBoundToModule}(s)?void 0:this._injector.get(As),d=s.create(tt.NULL,[],r||s.selector,u),f=d.location.nativeElement,m=d.injector.get(oT,null);return m?.registerApplication(f),d.onDestroy(()=>{this.detachView(d.hostView),Yh(this.components,d),m?.unregisterApplication(f)}),this._loadComponent(d),d}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new k(101,!1);const t=ie(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,ie(t),this.afterTick.next()}}synchronize(){let t=null;this._injector.destroyed||(t=this._injector.get(wh,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:o}of this._views)WV(i,o,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})=>Af(t))?this.dirtyFlags|=2:this.dirtyFlags&=-8}attachView(t){const r=t;this._views.push(r),r.attachToAppRef(this)}detachView(t){const r=t;Yh(this._views,r),r.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t);const r=this._injector.get(Dv,[]);[...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),()=>Yh(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new k(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=Y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Yh(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function WV(e,n,t,r){(t||Af(e))&&ph(e,n,t&&!r?0:1)}let XV=(()=>{class e{constructor(){this.zone=p(Le),this.changeDetectionScheduler=p(tu),this.applicationRef=p(_r)}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=Y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Sv({ngZoneFactory:e,ignoreChangesOutsideZone:n,scheduleInRootZone:t}){return e??=()=>new Le({...Tv(),scheduleInRootZone:t}),[{provide:Le,useFactory:e},{provide:hi,multi:!0,useFactory:()=>{const r=p(XV,{optional:!0});return()=>r.initialize()}},{provide:hi,multi:!0,useFactory:()=>{const r=p(JV);return()=>{r.initialize()}}},!0===n?{provide:GE,useValue:!0}:[],{provide:wy,useValue:t??IC}]}function Tv(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}let JV=(()=>{class e{constructor(){this.subscription=new ln,this.initialized=!1,this.zone=p(Le),this.pendingTasks=p(_s)}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(()=>{Le.assertNotInAngularZone(),queueMicrotask(()=>{null!==t&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(t),t=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Le.assertInAngularZone(),t??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Bl=(()=>{class e{constructor(){this.appRef=p(_r),this.taskService=p(_s),this.ngZone=p(Le),this.zonelessEnabled=p(yl),this.disableScheduling=p(GE,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new ln,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(zf):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(p(wy,{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 g0||!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?AC:PC;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(zf+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,AC(()=>{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=Y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Mo=new q("",{providedIn:"root",factory:()=>p(Mo,Se.Optional|Se.SkipSelf)||function e5(){return typeof $localize<"u"&&$localize.locale||Lh}()}),Iv=new q("");function Xh(e){return!!e.platformInjector}let yT=(()=>{class e{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,r){const i=r?.scheduleInRootZone,s=r?.ignoreChangesOutsideZone,u=[Sv({ngZoneFactory:()=>function Pk(e="zone.js",n){return"noop"===e?new g0:"zone.js"===e?new Le(n):e}(r?.ngZone,{...Tv({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}),scheduleInRootZone:i}),ignoreChangesOutsideZone:s}),{provide:tu,useExisting:Bl}],c=function UR(e,n,t){return new Oy(e,n,t,!1)}(t.moduleType,this.injector,u);return function gT(e){const n=Xh(e)?e.r3Injector:e.moduleRef.injector,t=n.get(Le);return t.run(()=>{Xh(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();const r=n.get(_i,null);let i;if(t.runOutsideAngular(()=>{i=t.onError.subscribe({next:o=>{r.handleError(o)}})}),Xh(e)){const o=()=>n.destroy(),s=e.platformInjector.get(Iv);s.add(o),n.onDestroy(()=>{i.unsubscribe(),s.delete(o)})}else e.moduleRef.onDestroy(()=>{Yh(e.allPlatformModules,e.moduleRef),i.unsubscribe()});return function qV(e,n,t){try{const r=t();return Zh(r)?r.catch(i=>{throw n.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw n.runOutsideAngular(()=>e.handleError(r)),r}}(r,t,()=>{const o=n.get(uT);return o.runInitializers(),o.donePromise.then(()=>{if(function ML(e){"string"==typeof e&&(x4=e.toLowerCase().replace(/_/g,"-"))}(n.get(Mo,Lh)||Lh),Xh(e)){const u=n.get(_r);return void 0!==e.rootComponent&&u.bootstrap(e.rootComponent),u}return function s5(e,n){const t=e.injector.get(_r);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>t.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new k(-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=lT({},r);return function KV(e,n,t){const r=new Ry(t);return Promise.resolve(r)}(0,0,t).then(o=>this.bootstrapModuleFactory(o,i))}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new k(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const t=this._injector.get(Iv,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)(l(tt))};static#t=this.\u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),Io=null;const vT=new q("");function _T(e,n,t=[]){const r=`Platform: ${n}`,i=new q(r);return(o=[])=>{let s=Pv();if(!s||s.injector.get(vT,!1)){const u=[...t,...o,{provide:i,useValue:!0}];e?e(u):function a5(e){if(Io&&!Io.get(vT,!1))throw new k(400,!1);(function cT(){!function ea(e){Zu=e}(()=>{throw new k(600,!1)})})(),Io=e;const n=e.get(yT);(function wT(e){e.get(n1,null)?.forEach(t=>t())})(e)}(function bT(e=[],n){return tt.create({name:n,providers:[{provide:Ng,useValue:"platform"},{provide:Iv,useValue:new Set([()=>Io=null])},...e]})}(u,r))}return function u5(){const n=Pv();if(!n)throw new k(401,!1);return n}()}}function Pv(){return Io?.get(yT)??null}let Mu=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=l5}return e})();function l5(e){return function d5(e,n,t){if(hs(e)&&!t){const r=Kn(e.index,n);return new cl(r,r)}return 175&e.type?new cl(n[yt],n):null}(Ke(),N(),!(16&~e))}const E5=_T(null,"core",[]);let D5=(()=>{class e{constructor(t){}static#e=this.\u0275fac=function(r){return new(r||e)(l(_r))};static#t=this.\u0275mod=zt({type:e});static#n=this.\u0275inj=Et({})}return e})();const WT=new q("");function De(e,n){En("NgSignals");const t=function Am(e){const n=Object.create(Wu);n.computation=e;const t=()=>{if(io(n),lr(n),n.value===Ho)throw n.error;return n.value};return t[z]=n,t}(e);return n?.equal&&(t[z].equal=n.equal),t}function br(e){const n=ie(null);try{return e()}finally{ie(n)}}const n9=new q("",{providedIn:"root",factory:()=>p(r9)});let r9=(()=>{class e{static#e=this.\u0275prov=Y({token:e,providedIn:"root",factory:()=>new i9})}return e})();class i9{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=p(_s),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 o9{constructor(n,t,r,i,o,s){this.scheduler=n,this.effectFn=t,this.creationZone=r,this.injector=o,this.watcher=function km(e,n,t){const r=Object.create(Nm);t&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=n;const i=c=>{r.cleanupFn=c};return r.ref={notify:()=>Te(r),run:()=>{if(null===r.fn)return;if(function be(){return Ae}())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(r.dirty=!1,r.hasRun&&!Ar(r))return;r.hasRun=!0;const c=et(r);try{r.cleanupFn(),r.cleanupFn=Ni,r.fn(i)}finally{pt(r,c)}},cleanup:()=>r.cleanupFn(),destroy:()=>function s(c){(function o(c){return null===c.fn&&null===c.schedule})(c)||(oo(c),c.cleanupFn(),c.fn=null,c.schedule=null,c.cleanupFn=Ni)}(r),[z]:r},r.ref}(u=>this.runEffect(u),()=>this.schedule(),s),this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}runEffect(n){try{this.effectFn(n)}catch(t){this.injector.get(_i,null,{optional:!0})?.handleError(t)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}}function ap(e,n){En("NgSignals"),!n?.injector&&function Lg(e){if(!Iw())throw new k(-203,!1)}();const t=n?.injector??p(tt),r=!0!==n?.manualCleanup?t.get(qc):null,i=new o9(t.get(n9),e,typeof Zone>"u"?null:Zone.current,r,t,n?.allowSignalWrites??!1),o=t.get(Mu,null,{optional:!0});return o&&8&o._lView[oe]?(o._lView[Tf]??=[]).push(i.watcher.notify):i.watcher.notify(),i}let rM=null;function $l(){return rM}class a9{}const un=new q("");function fM(e,n){n=encodeURIComponent(n);for(const t of e.split(";")){const r=t.indexOf("="),[i,o]=-1==r?[t,""]:[t.slice(0,r),t.slice(r+1)];if(i.trim()===n)return decodeURIComponent(o)}return null}const Zv=/\s+/,hM=[];let Yv=(()=>{class e{constructor(t,r){this._ngEl=t,this._renderer=r,this.initialClasses=hM,this.stateMap=new Map}set klass(t){this.initialClasses=null!=t?t.trim().split(Zv):hM}set ngClass(t){this.rawClass="string"==typeof t?t.trim().split(Zv):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(Zv).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)(P(jn),P(Di))};static#t=this.\u0275dir=le({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0})}return e})(),_p=(()=>{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 GR(e,n){return new Oy(e,n??null,[])}(this.ngComponentOutletNgModule,pM(r)):this.ngComponentOutletNgModuleFactory?this.ngComponentOutletNgModuleFactory.create(pM(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)(P(qr))};static#t=this.\u0275dir=le({type:e,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInputs:"ngComponentOutletInputs",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},standalone:!0,features:[Ur]})}return e})();function pM(e){return e.get(As).injector}let bp=(()=>{class e{constructor(t,r){this._viewContainer=t,this._context=new Y9,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){gM("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){gM("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)(P(qr),P(Ei))};static#t=this.\u0275dir=le({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return e})();class Y9{constructor(){this.$implicit=null,this.ngIf=null}}function gM(e,n){if(n&&!n.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Ct(n)}'.`)}let vM=(()=>{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)(P(qr))};static#t=this.\u0275dir=le({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Ur]})}return e})();let e_=(()=>{class e{transform(t,r,i){if(null==t)return null;if(!this.supports(t))throw function Xr(e,n){return new k(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=Ot({name:"slice",type:e,pure:!1,standalone:!0})}return e})(),t_=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=zt({type:e});static#n=this.\u0275inj=Et({})}return e})();const bM="browser";function wM(e){return"server"===e}class CM{}class Qj extends a9{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class o_ extends Qj{static makeCurrent(){!function s9(e){rM??=e}(new o_)}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 Jj(){return Zl=Zl||document.querySelector("base"),Zl?Zl.getAttribute("href"):null}();return null==t?null:function e8(e){return new URL(e,document.baseURI).pathname}(t)}resetBaseElement(){Zl=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return fM(document.cookie,n)}}let Zl=null,n8=(()=>{class e{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Y({token:e,factory:e.\u0275fac})}return e})();const Dp=new q("");let kM=(()=>{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(o=>o.supports(t)),!r)throw new k(5101,!1);return this._eventNameToPlugin.set(t,r),r}static#e=this.\u0275fac=function(r){return new(r||e)(l(Dp),l(Le))};static#t=this.\u0275prov=Y({token:e,factory:e.\u0275fac})}return e})();class s_{constructor(n){this._doc=n}}const a_="ng-app-id";let NM=(()=>{class e{constructor(t,r,i,o={}){this.doc=t,this.appId=r,this.nonce=i,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=wM(o),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[${a_}="${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 o=i.get(t);return o.usage+=r,o.usage}return i.set(t,{usage:r,elements:[]}),r}getStyleElement(t,r){const i=this.styleNodesInDOM,o=i?.get(r);if(o?.parentNode===t)return i.delete(r),o.removeAttribute(a_),o;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(a_,this.appId),t.appendChild(s),s}}addStyleToHost(t,r){const i=this.getStyleElement(t,r),o=this.styleRef,s=o.get(r)?.elements;s?s.push(i):o.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)(l(un),l(qa),l(i1,8),l(zi))};static#t=this.\u0275prov=Y({token:e,factory:e.\u0275fac})}return e})();const u_={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},c_=/%COMP%/g,s8=new q("",{providedIn:"root",factory:()=>!0});function RM(e,n){return n.map(t=>t.replace(c_,e))}let l_=(()=>{class e{constructor(t,r,i,o,s,u,c,d=null){this.eventManager=t,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=u,this.ngZone=c,this.nonce=d,this.rendererByCompId=new Map,this.platformIsServer=wM(u),this.defaultRenderer=new d_(t,s,c,this.platformIsServer)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===jr.ShadowDom&&(r={...r,encapsulation:jr.Emulated});const i=this.getOrCreateRenderer(t,r);return i instanceof LM?i.applyToHost(t):i instanceof f_&&i.applyStyles(),i}getOrCreateRenderer(t,r){const i=this.rendererByCompId;let o=i.get(r.id);if(!o){const s=this.doc,u=this.ngZone,c=this.eventManager,d=this.sharedStylesHost,f=this.removeStylesOnCompDestroy,m=this.platformIsServer;switch(r.encapsulation){case jr.Emulated:o=new LM(c,d,r,this.appId,f,s,u,m);break;case jr.ShadowDom:return new l8(c,d,t,r,s,u,this.nonce,m);default:o=new f_(c,d,r,f,s,u,m)}i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(r){return new(r||e)(l(kM),l(NM),l(qa),l(s8),l(un),l(zi),l(Le),l(i1))};static#t=this.\u0275prov=Y({token:e,factory:e.\u0275fac})}return e})();class d_{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(u_[t]||t,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,t){(FM(n)?n.content:n).appendChild(t)}insertBefore(n,t,r){n&&(FM(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 k(-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 o=u_[i];o?n.setAttributeNS(o,t,r):n.setAttribute(t,r)}else n.setAttribute(t,r)}removeAttribute(n,t,r){if(r){const i=u_[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&(wo.DashCase|wo.Important)?n.style.setProperty(t,r,i&wo.Important?"important":""):n.style[t]=r}removeStyle(n,t,r){r&wo.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=$l().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 FM(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class l8 extends d_{constructor(n,t,r,i,o,s,u,c){super(n,o,s,c),this.sharedStylesHost=t,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const d=RM(i.id,i.styles);for(const f of d){const m=document.createElement("style");u&&m.setAttribute("nonce",u),m.textContent=f,this.shadowRoot.appendChild(m)}}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 f_ extends d_{constructor(n,t,r,i,o,s,u,c){super(n,o,s,u),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=i,this.styles=c?RM(c,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class LM extends f_{constructor(n,t,r,i,o,s,u,c){const d=i+"-"+r.id;super(n,t,r,o,s,u,c,d),this.contentAttr=function a8(e){return"_ngcontent-%COMP%".replace(c_,e)}(d),this.hostAttr=function u8(e){return"_nghost-%COMP%".replace(c_,e)}(d)}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 d8=(()=>{class e extends s_{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)(l(un))};static#t=this.\u0275prov=Y({token:e,factory:e.\u0275fac})}return e})(),f8=(()=>{class e extends s_{constructor(t){super(t),this.delegate=p(WT,{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)(l(un))};static#t=this.\u0275prov=Y({token:e,factory:e.\u0275fac})}return e})();const VM=["alt","control","meta","shift"],h8={"\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"},p8={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let m8=(()=>{class e extends s_{constructor(t){super(t)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,r,i){const o=e.parseEventName(r),s=e.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>$l().onAndCancel(t,o.domEventName,s))}static parseEventName(t){const r=t.toLowerCase().split("."),i=r.shift();if(0===r.length||"keydown"!==i&&"keyup"!==i)return null;const o=e._normalizeKey(r.pop());let s="",u=r.indexOf("code");if(u>-1&&(r.splice(u,1),s="code."),VM.forEach(d=>{const f=r.indexOf(d);f>-1&&(r.splice(f,1),s+=d+".")}),s+=o,0!=r.length||0===o.length)return null;const c={};return c.domEventName=i,c.fullKey=s,c}static matchEventFullKeyCode(t,r){let i=h8[t.key]||t.key,o="";return r.indexOf("code.")>-1&&(i=t.code,o="code."),!(null==i||!i)&&(i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),VM.forEach(s=>{s!==i&&(0,p8[s])(t)&&(o+=s+".")}),o+=i,o===r)}static eventCallback(t,r,i){return o=>{e.matchEventFullKeyCode(o,t)&&i.runGuarded(()=>r(o))}}static _normalizeKey(t){return"esc"===t?"escape":t}static#e=this.\u0275fac=function(r){return new(r||e)(l(un))};static#t=this.\u0275prov=Y({token:e,factory:e.\u0275fac})}return e})();const _8=_T(E5,"browser",[{provide:zi,useValue:bM},{provide:n1,useValue:function g8(){o_.makeCurrent()},multi:!0},{provide:un,useFactory:function v8(){return function e2(e){C0=e}(document),document},deps:[]}]),b8=new q(""),HM=[{provide:Wh,useClass:class t8{addToWindow(n){Xe.getAngularTestability=(r,i=!0)=>{const o=n.findTestabilityInTree(r,i);if(null==o)throw new k(5103,!1);return o},Xe.getAllAngularTestabilities=()=>n.getAllTestabilities(),Xe.getAllAngularRootElements=()=>n.getAllRootElements(),Xe.frameworkStabilizers||(Xe.frameworkStabilizers=[]),Xe.frameworkStabilizers.push(r=>{const i=Xe.getAllAngularTestabilities();let o=i.length;const s=function(){o--,0==o&&r()};i.forEach(u=>{u.whenStable(s)})})}findTestabilityInTree(n,t,r){return null==t?null:n.getTestability(t)??(r?$l().isShadowRoot(t)?this.findTestabilityInTree(n,t.host,!0):this.findTestabilityInTree(n,t.parentElement,!0):null)}},deps:[]},{provide:oT,useClass:wv,deps:[Le,Cv,Wh]},{provide:wv,useClass:wv,deps:[Le,Cv,Wh]}],GM=[{provide:Ng,useValue:"root"},{provide:_i,useFactory:function y8(){return new _i},deps:[]},{provide:Dp,useClass:d8,multi:!0,deps:[un,Le,zi]},{provide:Dp,useClass:m8,multi:!0,deps:[un]},{provide:Dp,useClass:f8,multi:!0},l_,NM,kM,{provide:wh,useExisting:l_},{provide:CM,useClass:n8,deps:[]},[]];let Sp=(()=>{class e{constructor(t){}static withServerTransition(t){return{ngModule:e,providers:[{provide:qa,useValue:t.appId}]}}static#e=this.\u0275fac=function(r){return new(r||e)(l(b8,12))};static#t=this.\u0275mod=zt({type:e});static#n=this.\u0275inj=Et({providers:[...GM,...HM],imports:[t_,D5]})}return e})(),h_=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Y({token:e,factory:function(r){let i=null;return i=r?new(r||e):l(D8),i},providedIn:"root"})}return e})(),D8=(()=>{class e extends h_{constructor(t){super(),this._doc=t}sanitize(t,r){if(null==r)return null;switch(t){case Qn.NONE:return r;case Qn.HTML:return bi(r,"HTML")?Xn(r):M1(this._doc,String(r)).toString();case Qn.STYLE:return bi(r,"Style")?Xn(r):r;case Qn.SCRIPT:if(bi(r,"Script"))return Xn(r);throw new k(5200,!1);case Qn.URL:return bi(r,"URL")?Xn(r):rh(String(r));case Qn.RESOURCE_URL:if(bi(r,"ResourceURL"))return Xn(r);throw new k(5201,!1);default:throw new k(5202,!1)}}bypassSecurityTrustHtml(t){return function w2(e){return new m2(e)}(t)}bypassSecurityTrustStyle(t){return function C2(e){return new g2(e)}(t)}bypassSecurityTrustScript(t){return function E2(e){return new y2(e)}(t)}bypassSecurityTrustUrl(t){return function D2(e){return new v2(e)}(t)}bypassSecurityTrustResourceUrl(t){return function S2(e){return new _2(e)}(t)}static#e=this.\u0275fac=function(r){return new(r||e)(l(un))};static#t=this.\u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const p_={now:()=>(p_.delegate||Date).now(),delegate:void 0};class S8 extends wt{constructor(n=1/0,t=1/0,r=p_){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:o,_windowTime:s}=this;t||(r.push(n),!i&&r.push(o.now()+s)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();const t=this._innerSubscribe(n),{_infiniteTimeWindow:r,_buffer:i}=this,o=i.slice();for(let s=0;s<o.length&&!n.closed;s+=r?1:2)n.next(o[s]);return this._checkFinalizedStatuses(n),t}_trimBuffer(){const{_bufferSize:n,_timestampProvider:t,_buffer:r,_infiniteTimeWindow:i}=this,o=(i?1:2)*n;if(n<1/0&&o<r.length&&r.splice(0,r.length-o),!i){const s=t.now();let u=0;for(let c=1;c<r.length&&r[c]<=s;c+=2)u=c;u&&r.splice(0,u+1)}}}var Mp=function(){return Mp=Object.assign||function(n){for(var t,r=1,i=arguments.length;r<i;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n},Mp.apply(this,arguments)};function Er(e,n,t,r){return new(t||(t=Promise))(function(o,s){function u(f){try{d(r.next(f))}catch(m){s(m)}}function c(f){try{d(r.throw(f))}catch(m){s(m)}}function d(f){f.done?o(f.value):function i(o){return o instanceof t?o:new t(function(s){s(o)})}(f.value).then(u,c)}d((r=r.apply(e,n||[])).next())})}function Qr(e,n){var r,i,o,s,t={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(d){return function(f){return function c(d){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,d[0]&&(t=0)),t;)try{if(r=1,i&&(o=2&d[0]?i.return:d[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,d[1])).done)return o;switch(i=0,o&&(d=[2&d[0],o.value]),d[0]){case 0:case 1:o=d;break;case 4:return t.label++,{value:d[1],done:!1};case 5:t.label++,i=d[1],d=[0];continue;case 7:d=t.ops.pop(),t.trys.pop();continue;default:if(!(o=(o=t.trys).length>0&&o[o.length-1])&&(6===d[0]||2===d[0])){t=0;continue}if(3===d[0]&&(!o||d[1]>o[0]&&d[1]<o[3])){t.label=d[1];break}if(6===d[0]&&t.label<o[1]){t.label=o[1],o=d;break}if(o&&t.label<o[2]){t.label=o[2],t.ops.push(d);break}o[2]&&t.ops.pop(),t.trys.pop();continue}d=n.call(e,t)}catch(f){d=[6,f],i=0}finally{r=o=0}if(5&d[0])throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}([d,f])}}}function v_(e,n,t){if(t||2===arguments.length)for(var o,r=0,i=n.length;r<i;r++)(o||!(r in n))&&(o||(o=Array.prototype.slice.call(n,0,r)),o[r]=n[r]);return e.concat(o||Array.prototype.slice.call(n))}function Po(e){return this instanceof Po?(this.v=e,this):new Po(e)}function WM(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 y_(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(o){t[o]=e[o]&&function(s){return new Promise(function(u,c){!function i(o,s,u,c){Promise.resolve(c).then(function(d){o({value:d,done:u})},s)}(u,c,(s=e[o](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const ZM=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function YM(e){return at(e?.then)}function KM(e){return at(e[la])}function XM(e){return Symbol.asyncIterator&&at(e?.[Symbol.asyncIterator])}function QM(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 JM=function z8(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function eI(e){return at(e?.[JM])}function tI(e){return function qM(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=t.apply(e,n||[]),o=[];return i={},u("next"),u("throw"),u("return",function s(y){return function(_){return Promise.resolve(_).then(y,m)}}),i[Symbol.asyncIterator]=function(){return this},i;function u(y,_){r[y]&&(i[y]=function(C){return new Promise(function(S,I){o.push([y,C,S,I])>1||c(y,C)})},_&&(i[y]=_(i[y])))}function c(y,_){try{!function d(y){y.value instanceof Po?Promise.resolve(y.value.v).then(f,m):g(o[0][2],y)}(r[y](_))}catch(C){g(o[0][3],C)}}function f(y){c("next",y)}function m(y){c("throw",y)}function g(y,_){y(_),o.shift(),o.length&&c(o[0][0],o[0][1])}}(this,arguments,function*(){const t=e.getReader();try{for(;;){const{value:r,done:i}=yield Po(t.read());if(i)return yield Po(void 0);yield yield Po(r)}}finally{t.releaseLock()}})}function nI(e){return at(e?.getReader)}function Jr(e){if(e instanceof bt)return e;if(null!=e){if(KM(e))return function q8(e){return new bt(n=>{const t=e[la]();if(at(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(ZM(e))return function W8(e){return new bt(n=>{for(let t=0;t<e.length&&!n.closed;t++)n.next(e[t]);n.complete()})}(e);if(YM(e))return function Z8(e){return new bt(n=>{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,Dd)})}(e);if(XM(e))return rI(e);if(eI(e))return function Y8(e){return new bt(n=>{for(const t of e)if(n.next(t),n.closed)return;n.complete()})}(e);if(nI(e))return function K8(e){return rI(tI(e))}(e)}throw QM(e)}function rI(e){return new bt(n=>{(function X8(e,n){var t,r,i,o;return Er(this,void 0,void 0,function*(){try{for(t=WM(e);!(r=yield t.next()).done;)if(n.next(r.value),n.closed)return}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=t.return)&&(yield o.call(t))}finally{if(i)throw i.error}}n.complete()})})(e,n).catch(t=>n.error(t))})}function Ao(e,n,t,r=0,i=!1){const o=n.schedule(function(){t(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function Ip(e,n,t=1/0){return at(n)?Ip((r,i)=>Tt((o,s)=>n(r,o,i,s))(Jr(e(r,i))),t):("number"==typeof n&&(t=n),gn((r,i)=>function Q8(e,n,t,r,i,o,s,u){const c=[];let d=0,f=0,m=!1;const g=()=>{m&&!c.length&&!d&&n.complete()},y=C=>d<r?_(C):c.push(C),_=C=>{o&&n.next(C),d++;let S=!1;Jr(t(C,f++)).subscribe(Qt(n,I=>{i?.(I),o?y(I):n.next(I)},()=>{S=!0},void 0,()=>{if(S)try{for(d--;c.length&&d<r;){const I=c.shift();s?Ao(n,s,()=>_(I)):_(I)}g()}catch(I){n.error(I)}}))};return e.subscribe(Qt(n,y,()=>{m=!0,g()})),()=>{u?.()}}(r,i,e,t)))}function iI(e=1/0){return Ip($o,e)}const oI=new bt(e=>e.complete());function sI(e){return e&&at(e.schedule)}function __(e){return e[e.length-1]}function Pp(e){return sI(__(e))?e.pop():void 0}function aI(e,n=0){return gn((t,r)=>{t.subscribe(Qt(r,i=>Ao(r,e,()=>r.next(i),n),()=>Ao(r,e,()=>r.complete(),n),i=>Ao(r,e,()=>r.error(i),n)))})}function uI(e,n=0){return gn((t,r)=>{r.add(e.schedule(()=>t.subscribe(r),n))})}function cI(e,n){if(!e)throw new Error("Iterable cannot be null");return new bt(t=>{Ao(t,n,()=>{const r=e[Symbol.asyncIterator]();Ao(t,n,()=>{r.next().then(i=>{i.done?t.complete():t.next(i.value)})},0,!0)})})}function xo(e,n){return n?function aB(e,n){if(null!=e){if(KM(e))return function nB(e,n){return Jr(e).pipe(uI(n),aI(n))}(e,n);if(ZM(e))return function iB(e,n){return new bt(t=>{let r=0;return n.schedule(function(){r===e.length?t.complete():(t.next(e[r++]),t.closed||this.schedule())})})}(e,n);if(YM(e))return function rB(e,n){return Jr(e).pipe(uI(n),aI(n))}(e,n);if(XM(e))return cI(e,n);if(eI(e))return function oB(e,n){return new bt(t=>{let r;return Ao(t,n,()=>{r=e[JM](),Ao(t,n,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){return void t.error(s)}o?t.complete():t.next(i)},0,!0)}),()=>at(r?.return)&&r.return()})}(e,n);if(nI(e))return function sB(e,n){return cI(tI(e),n)}(e,n)}throw QM(e)}(e,n):Jr(e)}function lI(e,n){return gn((t,r)=>{let i=null,o=0,s=!1;const u=()=>s&&!i&&r.complete();t.subscribe(Qt(r,c=>{i?.unsubscribe();let d=0;const f=o++;Jr(e(c,f)).subscribe(i=Qt(r,m=>r.next(n?n(c,m,f,d++):m),()=>{i=null,u()}))},()=>{s=!0,u()}))})}const Ap={schedule(e,n){const t=setTimeout(e,n);return()=>clearTimeout(t)},scheduleBeforeRender(e){if(typeof window>"u")return Ap.schedule(e,0);if(typeof window.requestAnimationFrame>"u")return Ap.schedule(e,16);const n=window.requestAnimationFrame(e);return()=>window.cancelAnimationFrame(n)}};let b_;function yB(e,n,t){let r=t;return function lB(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}(e)&&n.some((i,o)=>!("*"===i||!function fB(e,n){if(!b_){const t=Element.prototype;b_=t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE&&b_.call(e,n)}(e,i)||(r=o,0))),r}class _B{constructor(n,t){this.componentFactory=t.get(Is).resolveComponentFactory(n)}create(n){return new bB(this.componentFactory,n)}}class bB{constructor(n,t){this.componentFactory=n,this.injector=t,this.eventEmitters=new S8(1),this.events=this.eventEmitters.pipe(lI(r=>function uB(...e){const n=Pp(e),t=function tB(e,n){return"number"==typeof __(e)?e.pop():n}(e,1/0),r=e;return r.length?1===r.length?Jr(r[0]):iI(t)(xo(r,n)):oI}(...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(Le),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=Ap.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 hB(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=tt.create({providers:[],parent:this.injector}),r=function gB(e,n){const t=e.childNodes,r=n.map(()=>[]);let i=-1;n.some((o,s)=>"*"===o&&(i=s,!0));for(let o=0,s=t.length;o<s;++o){const u=t[o],c=yB(u,n,i);-1!==c&&r[c].push(u)}return r}(n,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,r,n),this.viewChangeDetectorRef=this.componentRef.injector.get(Mu),this.implementsOnChanges=function dB(e){return"function"==typeof e}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(_r).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(Tt(s=>({name:i,value:s}))));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=Ap.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),o=i?void 0:this.getInputValue(n);this.inputChanges[n]=new Fw(o,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 wB extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}class Qe{constructor(n,t){this.type=n,this.payload=t}}const zn={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 dI(e,n,t,r,i,o,s){try{var u=e[o](s),c=u.value}catch(d){return void t(d)}u.done?n(c):Promise.resolve(c).then(r,i)}function Ls(e){return function(){var n=this,t=arguments;return new Promise(function(r,i){var o=e.apply(n,t);function s(c){dI(o,r,i,s,u,"next",c)}function u(c){dI(o,r,i,s,u,"throw",c)}s(void 0)})}}function xp(e,n){return new Promise(function(t){return setTimeout(t,e,n)})}function kp(e){return!!e&&"function"==typeof e.then}function hI(e,n){try{var t=e();kp(t)?t.then(function(r){return n(!0,r)},function(r){return n(!1,r)}):n(!0,t)}catch(r){n(!1,r)}}function pI(e,n,t){return void 0===t&&(t=16),Er(this,void 0,void 0,function(){var r,i,o,s;return Qr(this,function(u){switch(u.label){case 0:r=Array(e.length),i=Date.now(),o=0,u.label=1;case 1:return o<e.length?(r[o]=n(e[o],o),(s=Date.now())>=i+t?(i=s,[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:u.sent(),u.label=3;case 3:return++o,[3,1];case 4:return[2,r]}})})}function Yl(e){return e.then(void 0,function(){}),e}function w_(e){return parseInt(e)}function ei(e){return parseFloat(e)}function Xi(e,n){return"number"==typeof e&&isNaN(e)?n:e}function In(e){return e.reduce(function(n,t){return n+(t?1:0)},0)}function mI(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 ko(e,n){var f=0,m=0,g=0,y=0;g+=(y+=(65535&e[1])+(65535&n[1]))>>>16,y&=65535,m+=(g+=(e[1]>>>16)+(n[1]>>>16))>>>16,g&=65535,f+=(m+=(65535&e[0])+(65535&n[0]))>>>16,f+=(e[0]>>>16)+(n[0]>>>16),e[0]=(f&=65535)<<16|(m&=65535),e[1]=g<<16|y}function Dr(e,n){var r=65535&e[0],i=e[1]>>>16,o=65535&e[1],u=65535&n[0],c=n[1]>>>16,d=65535&n[1],f=0,m=0,g=0,y=0;g+=(y+=o*d)>>>16,y&=65535,m+=(g+=i*d)>>>16,g&=65535,m+=(g+=o*c)>>>16,g&=65535,f+=(m+=r*d)>>>16,m&=65535,f+=(m+=i*c)>>>16,m&=65535,f+=(m+=o*u)>>>16,f+=(e[0]>>>16)*d+r*c+i*u+o*(n[0]>>>16),e[0]=(f&=65535)<<16|(m&=65535),e[1]=g<<16|y}function Au(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 ir(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 vt(e,n){e[0]^=n[0],e[1]^=n[1]}var PB=[4283543511,3981806797],AB=[3301882366,444984403];function gI(e){var n=[0,e[0]>>>1];vt(e,n),Dr(e,PB),n[1]=e[0]>>>1,vt(e,n),Dr(e,AB),n[1]=e[0]>>>1,vt(e,n)}var Np=[2277735313,289559509],Op=[1291169091,658871167],yI=[0,5],xB=[0,1390208809],kB=[0,944331445];function _I(){var e=window,n=navigator;return In(["MSCSSMatrix"in e,"msSetImmediate"in e,"msIndexedDB"in e,"msMaxTouchPoints"in n,"msPointerEnabled"in n])>=4}function Kl(){var e=window,n=navigator;return In(["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 ti(){var e=window;return In(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,0===navigator.vendor.indexOf("Apple"),"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function C_(){var e=window,n=e.HTMLElement,t=e.Document;return In(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),n&&!("autocapitalize"in n.prototype),t&&"pointerLockElement"in t.prototype])>=4}function Xl(){var e=window;return function RB(e){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))}(e.print)&&"[object WebPageNamespace]"===String(e.browser)}function bI(){var e,n,t=window;return In(["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 Ql(){var e=window,n=navigator,t=e.CSS,r=e.HTMLButtonElement;return In([!("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 $B(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function E_(){var e=Kl(),n=bI(),t=window,r=navigator,i="connection";return e?In([!("SharedWorker"in t),r[i]&&"ontypechange"in r[i],!("sinkId"in new Audio)])>=2:!!n&&In(["onorientationchange"in t,"orientation"in t,/android/i.test(r.appVersion)])>=2}function wI(e){var n=new Error(e);return n.name=e,n}function CI(e,n,t){var r,i,o;return void 0===t&&(t=50),Er(this,void 0,void 0,function(){var s,u;return Qr(this,function(c){switch(c.label){case 0:s=document,c.label=1;case 1:return s.body?[3,3]:[4,xp(t)];case 2:return c.sent(),[3,1];case 3:u=s.createElement("iframe"),c.label=4;case 4:return c.trys.push([4,,10,11]),[4,new Promise(function(d,f){var m=!1,g=function(){m=!0,d()};u.onload=g,u.onerror=function(S){m=!0,f(S)};var _=u.style;_.setProperty("display","block","important"),_.position="absolute",_.top="0",_.left="0",_.visibility="hidden",n&&"srcdoc"in u?u.srcdoc=n:u.src="about:blank",s.body.appendChild(u);var C=function(){var S,I;m||("complete"===(null===(I=null===(S=u.contentWindow)||void 0===S?void 0:S.document)||void 0===I?void 0:I.readyState)?g():setTimeout(C,10))};C()})];case 5:c.sent(),c.label=6;case 6:return null!==(i=null===(r=u.contentWindow)||void 0===r?void 0:r.document)&&void 0!==i&&i.body?[3,8]:[4,xp(t)];case 7:return c.sent(),[3,6];case 8:return[4,e(u,u.contentWindow)];case 9:return[2,c.sent()];case 10:return null===(o=u.parentNode)||void 0===o||o.removeChild(u),[7];case 11:return[2]}})})}function QB(e){for(var n=function MB(e){for(var n,t,r="Unexpected syntax '".concat(e,"'"),i=/^\s*([a-z-]*)(.*)$/i.exec(e),o=i[1]||void 0,s={},u=/([.:#][\w-]+|\[.+?\])/gi,c=function(g,y){s[g]=s[g]||[],s[g].push(y)};;){var d=u.exec(i[2]);if(!d)break;var f=d[0];switch(f[0]){case".":c("class",f.slice(1));break;case"#":c("id",f.slice(1));break;case"[":var m=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(f);if(!m)throw new Error(r);c(m[1],null!==(t=null!==(n=m[4])&&void 0!==n?n:m[5])&&void 0!==t?t:"");break;default:throw new Error(r)}}return[o,s]}(e),r=n[1],i=document.createElement(n[0]??"div"),o=0,s=Object.keys(r);o<s.length;o++){var u=s[o],c=r[u].join(" ");"style"===u?JB(i.style,c):i.setAttribute(u,c)}return i}function JB(e,n){for(var t=0,r=n.split(";");t<r.length;t++){var o=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(r[t]);o&&e.setProperty(o[1],o[2],o[4]||"")}}var xu=["monospace","sans-serif","serif"],EI=["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 D_(e){return e.toDataURL()}var Rp,S_;function T_(){var e=screen;return[Xi(ei(e.availTop),null),Xi(ei(e.width)-ei(e.availWidth)-Xi(ei(e.availLeft),0),null),Xi(ei(e.height)-ei(e.availHeight)-Xi(ei(e.availTop),0),null),Xi(ei(e.availLeft),null)]}function M_(e){for(var n=0;n<4;++n)if(e[n])return!1;return!0}function H7(e){var n;return Er(this,void 0,void 0,function(){var t,r,i,o,s,u,c;return Qr(this,function(d){switch(d.label){case 0:for(t=document,r=t.createElement("div"),i=new Array(e.length),o={},DI(r),c=0;c<e.length;++c)"DIALOG"===(s=QB(e[c])).tagName&&s.show(),DI(u=t.createElement("div")),u.appendChild(s),r.appendChild(u),i[c]=s;d.label=1;case 1:return t.body?[3,3]:[4,xp(50)];case 2:return d.sent(),[3,1];case 3:t.body.appendChild(r);try{for(c=0;c<e.length;++c)i[c].offsetParent||(o[e[c]]=!0)}finally{null===(n=r.parentNode)||void 0===n||n.removeChild(r)}return[2,o]}})})}function DI(e){e.style.setProperty("visibility","hidden","important"),e.style.setProperty("display","block","important")}function SI(e){return matchMedia("(inverted-colors: ".concat(e,")")).matches}function TI(e){return matchMedia("(forced-colors: ".concat(e,")")).matches}function ku(e){return matchMedia("(prefers-contrast: ".concat(e,")")).matches}function MI(e){return matchMedia("(prefers-reduced-motion: ".concat(e,")")).matches}function II(e){return matchMedia("(prefers-reduced-transparency: ".concat(e,")")).matches}function PI(e){return matchMedia("(dynamic-range: ".concat(e,")")).matches}var We=Math,Pn=function(){return 0},I_={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]},uH=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]),cH=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),lH=["FRAGMENT_SHADER","VERTEX_SHADER"],dH=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],kI="WEBGL_debug_renderer_info";function NI(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 o=i[r];try{t=n.getContext(o)}catch{}if(t)break}return e.webgl={context:t},t}function mH(e,n,t){var r=e.getShaderPrecisionFormat(e[n],e[t]);return r?[r.rangeMin,r.rangeMax,r.precision]:[]}function OI(e){return Object.keys(e.__proto__).filter(gH)}function gH(e){return"string"==typeof e&&!e.match(/[^A-Z0-9_x]/)}function RI(){return bI()}function FI(e){return"function"==typeof e.getParameter}var _H={fonts:function r7(){var e=this;return CI(function(n,t){var r=t.document;return Er(e,void 0,void 0,function(){var i,o,s,u,c,d,m,g,y,_,C;return Qr(this,function(S){for((i=r.body).style.fontSize="48px",(o=r.createElement("div")).style.setProperty("visibility","hidden","important"),s={},u={},d=function(I,T){return c("'".concat(I,"',").concat(T))},m=function(){for(var I={},T=function(Q){I[Q]=xu.map(function(re){return d(Q,re)})},R=0,L=EI;R<L.length;R++)T(L[R]);return I},g=function(I){return xu.some(function(T,R){return I[R].offsetWidth!==s[T]||I[R].offsetHeight!==u[T]})},y=xu.map(c=function(I){var T=r.createElement("span"),R=T.style;return R.position="absolute",R.top="0",R.left="0",R.fontFamily=I,T.textContent="mmMwWLliI0O&1",o.appendChild(T),T}),_=m(),i.appendChild(o),C=0;C<xu.length;C++)s[xu[C]]=y[C].offsetWidth,u[xu[C]]=y[C].offsetHeight;return[2,EI.filter(function(I){return g(_[I])})]})})})},domBlockers:function j7(e){var t=(void 0===e?{}:e).debug;return Er(this,void 0,void 0,function(){var r,i,s,u,c;return Qr(this,function(d){switch(d.label){case 0:return function B7(){return ti()||E_()}()?(r=function V7(){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,H7((c=[]).concat.apply(c,i.map(function(f){return r[f]})))]):[2,void 0];case 1:return s=d.sent(),t&&function G7(e,n){for(var t="DOM blockers debug:\n```",r=0,i=Object.keys(e);r<i.length;r++){var o=i[r];t+="\n".concat(o,":");for(var s=0,u=e[o];s<u.length;s++){var c=u[s];t+="\n ".concat(n[c]?"\u{1f6ab}":"\u27a1\ufe0f"," ").concat(c)}}console.log("".concat(t,"\n```"))}(r,s),(u=i.filter(function(f){var m=r[f];return In(m.map(function(y){return s[y]}))>.6*m.length})).sort(),[2,u]}})})},fontPreferences:function eH(){return function tH(e,n){return void 0===n&&(n=4e3),CI(function(t,r){var i=r.document,o=i.body,s=o.style;s.width="".concat(n,"px"),s.webkitTextSizeAdjust=s.textSizeAdjust="none",Kl()?o.style.zoom="".concat(1/r.devicePixelRatio):ti()&&(o.style.zoom="reset");var u=i.createElement("div");return u.textContent=v_([],Array(n/20|0),!0).map(function(){return"word"}).join(" "),o.appendChild(u),e(i,o)},'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}(function(e,n){for(var t={},r={},i=0,o=Object.keys(I_);i<o.length;i++){var u=I_[s=o[i]],c=u[0],d=void 0===c?{}:c,f=u[1],m=void 0===f?"mmMwWLliI0fiflO&1":f,g=e.createElement("span");g.textContent=m,g.style.whiteSpace="nowrap";for(var y=0,_=Object.keys(d);y<_.length;y++){var C=_[y],S=d[C];void 0!==S&&(g.style[C]=S)}t[s]=g,n.append(e.createElement("br"),g)}for(var I=0,T=Object.keys(I_);I<T.length;I++){var s;r[s=T[I]]=t[s].getBoundingClientRect().width}return r})},audio:function qB(){return function YB(){return ti()&&Ql()&&Xl()||Kl()&&function zB(){var e=navigator,n=window,t=Audio.prototype,r=n.visualViewport;return In(["srLatency"in t,"srChannelCount"in t,"devicePosture"in e,r&&"segments"in r,"getTextInformation"in Image.prototype])>=3}()&&function BB(){var e=window,n=e.URLPattern;return In(["union"in Set.prototype,"Iterator"in e,n&&"hasRegExpGroups"in n.prototype,"RGB8"in WebGLRenderingContext.prototype])>=3}()}()?-4:function WB(){var e=window,n=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!n)return-2;if(function ZB(){return ti()&&!C_()&&!function HB(){var e=window;return In(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}()}())return-1;var i=new n(1,5e3,44100),o=i.createOscillator();o.type="triangle",o.frequency.value=1e4;var s=i.createDynamicsCompressor();s.threshold.value=-50,s.knee.value=40,s.ratio.value=12,s.attack.value=0,s.release.value=.25,o.connect(s),s.connect(i.destination),o.start(0);var u=function KB(e){var o=function(){},s=new Promise(function(u,c){var d=!1,f=0,m=0;e.oncomplete=function(_){return u(_.renderedBuffer)};var g=function(){setTimeout(function(){return c(wI("timeout"))},Math.min(500,m+5e3-Date.now()))},y=function(){try{var _=e.startRendering();switch(kp(_)&&Yl(_),e.state){case"running":m=Date.now(),d&&g();break;case"suspended":document.hidden||f++,d&&f>=3?c(wI("suspended")):setTimeout(y,500)}}catch(C){c(C)}};y(),o=function(){d||(d=!0,m>0&&g())}});return[s,o]}(i),d=u[1],f=Yl(u[0].then(function(m){return function XB(e){for(var n=0,t=0;t<e.length;++t)n+=Math.abs(e[t]);return n}(m.getChannelData(0).subarray(4500))},function(m){if("timeout"===m.name||"suspended"===m.name)return-3;throw m}));return function(){return d(),f}}()},screenFrame:function S7(){var e=this;if(ti()&&Ql()&&Xl())return function(){return Promise.resolve(void 0)};var n=function D7(){var e=this;return function E7(){if(void 0===S_){var e=function(){var n=T_();M_(n)?S_=setTimeout(e,2500):(Rp=n,S_=void 0)};e()}}(),function(){return Er(e,void 0,void 0,function(){var n;return Qr(this,function(t){switch(t.label){case 0:return M_(n=T_())?Rp?[2,v_([],Rp,!0)]:function UB(){var e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}()?[4,$B()]:[3,2]:[3,2];case 1:t.sent(),n=T_(),t.label=2;case 2:return M_(n)||(Rp=n),[2,n]}})})}}();return function(){return Er(e,void 0,void 0,function(){var t,r;return Qr(this,function(i){switch(i.label){case 0:return[4,n()];case 1:return t=i.sent(),[2,[(r=function(o){return null===o?null:mI(o,10)})(t[0]),r(t[1]),r(t[2]),r(t[3])]]}})})}},canvas:function o7(){return function s7(e){var n,r,i,t=!1,o=function a7(){var e=document.createElement("canvas");return e.width=1,e.height=1,[e,e.getContext("2d")]}(),s=o[0],u=o[1];return function u7(e,n){return!(!n||!e.toDataURL)}(s,u)?(t=function c7(e){return e.rect(0,0,10,10),e.rect(2,2,6,6),!e.isPointInPath(5,5,"evenodd")}(u),e?r=i="skipped":(n=function l7(e,n){!function d7(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=D_(e);return t!==D_(e)?["unstable","unstable"]:(function f7(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],s=i[1],u=i[2];n.fillStyle=i[0],n.beginPath(),n.arc(s,u,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),[D_(e),t])}(s,u),r=n[0],i=n[1])):r=i="unsupported",{winding:t,geometry:r,text:i}}(function h7(){return ti()&&Ql()&&Xl()}())},osCpu:function m7(){return navigator.oscpu},languages:function g7(){var e=navigator,n=[],t=e.language||e.userLanguage||e.browserLanguage||e.systemLanguage;if(void 0!==t&&n.push([t]),Array.isArray(e.languages))Kl()&&function jB(){var e=window;return In([!("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 y7(){return window.screen.colorDepth},deviceMemory:function v7(){return Xi(ei(navigator.deviceMemory),void 0)},screenResolution:function _7(){if(!(ti()&&Ql()&&Xl()))return function b7(){var e=screen,n=function(r){return Xi(w_(r),null)},t=[n(e.width),n(e.height)];return t.sort().reverse(),t}()},hardwareConcurrency:function T7(){return Xi(w_(navigator.hardwareConcurrency),void 0)},timezone:function M7(){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 I7(){var e=(new Date).getFullYear();return Math.max(ei(new Date(e,0,1).getTimezoneOffset()),ei(new Date(e,6,1).getTimezoneOffset()))}();return"UTC".concat(r>=0?"+":"").concat(r)},sessionStorage:function P7(){try{return!!window.sessionStorage}catch{return!0}},localStorage:function A7(){try{return!!window.localStorage}catch{return!0}},indexedDB:function x7(){if(!_I()&&!function VB(){var e=window,n=navigator;return In(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in n,"msSaveBlob"in n])>=3&&!_I()}())try{return!!window.indexedDB}catch{return!0}},openDatabase:function k7(){return!!window.openDatabase},cpuClass:function N7(){return navigator.cpuClass},platform:function O7(){var e=navigator.platform;return"MacIntel"===e&&ti()&&!C_()?function GB(){if("iPad"===navigator.platform)return!0;var e=screen,n=e.width/e.height;return In(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,n>.65&&n<1.53])>=2}()?"iPad":"iPhone":e},plugins:function i7(){var e=navigator.plugins;if(e){for(var n=[],t=0;t<e.length;++t){var r=e[t];if(r){for(var i=[],o=0;o<r.length;++o){var s=r[o];i.push({type:s.type,suffixes:s.suffixes})}n.push({name:r.name,description:r.description,mimeTypes:i})}}return n}},touchSupport:function p7(){var t,e=navigator,n=0;void 0!==e.maxTouchPoints?n=w_(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 R7(){return navigator.vendor||""},vendorFlavors:function F7(){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 L7(){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 U7(){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 $7(){return!!SI("inverted")||!SI("none")&&void 0},forcedColors:function z7(){return!!TI("active")||!TI("none")&&void 0},monochrome:function W7(){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 Z7(){return ku("no-preference")?0:ku("high")||ku("more")?1:ku("low")||ku("less")?-1:ku("forced")?10:void 0},reducedMotion:function Y7(){return!!MI("reduce")||!MI("no-preference")&&void 0},reducedTransparency:function K7(){return!!II("reduce")||!II("no-preference")&&void 0},hdr:function X7(){return!!PI("high")||!PI("standard")&&void 0},math:function Q7(){var J,n=We.acosh||Pn,t=We.asin||Pn,r=We.asinh||Pn,i=We.atanh||Pn,o=We.atan||Pn,s=We.sin||Pn,u=We.sinh||Pn,c=We.cos||Pn,d=We.cosh||Pn,f=We.tan||Pn,m=We.tanh||Pn,g=We.exp||Pn,y=We.expm1||Pn,_=We.log1p||Pn;return{acos:(We.acos||Pn)(.12312423423423424),acosh:n(1e308),acoshPf:(J=1e154,We.log(J+We.sqrt(J*J-1))),asin:t(.12312423423423424),asinh:r(1),asinhPf:We.log(1+We.sqrt(2)),atanh:i(.5),atanhPf:We.log(3)/2,atan:o(.5),sin:s(-1e300),sinh:u(1),sinhPf:We.exp(1)-1/We.exp(1)/2,cos:c(10.000000000123),cosh:d(1),coshPf:(We.exp(1)+1/We.exp(1))/2,tan:f(-1e300),tanh:m(1),tanhPf:(We.exp(2)-1)/(We.exp(2)+1),exp:g(1),expm1:y(1),expm1Pf:We.exp(1)-1,log1p:_(10),log1pPf:We.log(11),powPI:We.pow(We.PI,-100)}},pdfViewerEnabled:function nH(){return navigator.pdfViewerEnabled},architecture:function rH(){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 iH(){var e=window.ApplePaySession;if("function"!=typeof e?.canMakePayments)return-1;if(function e7(){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 sH(e){if(e instanceof Error&&"InvalidAccessError"===e.name&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}(n)}},privateClickMeasurement:function aH(){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 vH(){var e;return E_()||ti()?window.AudioContext&&null!==(e=(new AudioContext).baseLatency)&&void 0!==e?e:-1:-2},webGlBasics:function hH(e){var n,t,r,i,o,s,c=NI(e.cache);if(!c)return-1;if(!FI(c))return-2;var d=RI()?null:c.getExtension(kI);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:d?null===(r=c.getParameter(d.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:d?null===(o=c.getParameter(d.UNMASKED_RENDERER_WEBGL))||void 0===o?void 0:o.toString():"",shadingLanguageVersion:(null===(s=c.getParameter(c.SHADING_LANGUAGE_VERSION))||void 0===s?void 0:s.toString())||""}},webGlExtensions:function pH(e){var t=NI(e.cache);if(!t)return-1;if(!FI(t))return-2;var r=t.getSupportedExtensions(),i=t.getContextAttributes(),o=[],s=[],u=[],c=[],d=[];if(i)for(var f=0,m=Object.keys(i);f<m.length;f++){var g=m[f];s.push("".concat(g,"=").concat(i[g]))}for(var _=0,C=OI(t);_<C.length;_++){var I=t[S=C[_]];u.push("".concat(S,"=").concat(I).concat(uH.has(I)?"=".concat(t.getParameter(I)):""))}if(r)for(var T=0,R=r;T<R.length;T++){var L=R[T];if(!(L===kI&&RI()||"WEBGL_polygon_mode"===L&&(Kl()||ti()))){var H=t.getExtension(L);if(!H){o.push(L);continue}for(var Q=0,re=OI(H);Q<re.length;Q++){var S;I=H[S=re[Q]],c.push("".concat(S,"=").concat(I).concat(cH.has(I)?"=".concat(t.getParameter(I)):""))}}}for(var J=0,_t=lH;J<_t.length;J++)for(var St=_t[J],kt=0,xn=dH;kt<xn.length;kt++){var Vo=xn[kt],Tr=mH(t,St,Vo);d.push("".concat(St,".").concat(Vo,"=").concat(Tr.join(",")))}return c.sort(),u.sort(),{contextAttributes:s,parameters:u,shaderPrecisions:d,extensions:r,extensionParameters:c,unsupportedExtensions:o}}},wH="$ if upgrade to Pro: https://fpjs.dev/pro";function LI(e){return JSON.stringify(e,function(n,t){return t instanceof Error?function OB(e){var n;return Mp({name:e.name,message:e.message,stack:null===(n=e.stack)||void 0===n?void 0:n.split("\n")},e)}(t):t},2)}function VI(e){return function NB(e,n){var f,t=function IB(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,o=r[1]-i,s=[0,n=n||0],u=[0,n],c=[0,0],d=[0,0];for(f=0;f<o;f+=16)c[0]=t[f+4]|t[f+5]<<8|t[f+6]<<16|t[f+7]<<24,c[1]=t[f]|t[f+1]<<8|t[f+2]<<16|t[f+3]<<24,d[0]=t[f+12]|t[f+13]<<8|t[f+14]<<16|t[f+15]<<24,d[1]=t[f+8]|t[f+9]<<8|t[f+10]<<16|t[f+11]<<24,Dr(c,Np),Au(c,31),Dr(c,Op),vt(s,c),Au(s,27),ko(s,u),Dr(s,yI),ko(s,xB),Dr(d,Op),Au(d,33),Dr(d,Np),vt(u,d),Au(u,31),ko(u,s),Dr(u,yI),ko(u,kB);c[0]=0,c[1]=0,d[0]=0,d[1]=0;var m=[0,0];switch(i){case 15:m[1]=t[f+14],ir(m,48),vt(d,m);case 14:m[1]=t[f+13],ir(m,40),vt(d,m);case 13:m[1]=t[f+12],ir(m,32),vt(d,m);case 12:m[1]=t[f+11],ir(m,24),vt(d,m);case 11:m[1]=t[f+10],ir(m,16),vt(d,m);case 10:m[1]=t[f+9],ir(m,8),vt(d,m);case 9:m[1]=t[f+8],vt(d,m),Dr(d,Op),Au(d,33),Dr(d,Np),vt(u,d);case 8:m[1]=t[f+7],ir(m,56),vt(c,m);case 7:m[1]=t[f+6],ir(m,48),vt(c,m);case 6:m[1]=t[f+5],ir(m,40),vt(c,m);case 5:m[1]=t[f+4],ir(m,32),vt(c,m);case 4:m[1]=t[f+3],ir(m,24),vt(c,m);case 3:m[1]=t[f+2],ir(m,16),vt(c,m);case 2:m[1]=t[f+1],ir(m,8),vt(c,m);case 1:m[1]=t[f],vt(c,m),Dr(c,Np),Au(c,31),Dr(c,Op),vt(s,c)}return vt(s,r),vt(u,r),ko(s,u),ko(u,s),gI(s),gI(u),ko(s,u),ko(u,s),("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)+("00000000"+(u[0]>>>0).toString(16)).slice(-8)+("00000000"+(u[1]>>>0).toString(16)).slice(-8)}(function SH(e){for(var n="",t=0,r=Object.keys(e).sort();t<r.length;t++){var i=r[t],o=e[i],s="error"in o?"error":JSON.stringify(o.value);n+="".concat(n?"|":"").concat(i.replace(/([:|\\])/g,"\\$1"),":").concat(s)}return n}(e))}function MH(e){return void 0===e&&(e=50),function DB(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})}):xp(Math.min(e,n))}(e,2*e)}function IH(e,n){var t=Date.now();return{get:function(r){return Er(this,void 0,void 0,function(){var i,o,s;return Qr(this,function(u){switch(u.label){case 0:return i=Date.now(),[4,e()];case 1:return o=u.sent(),s=function TH(e){var n,t=function CH(e){var n=function EH(e){if(E_())return.4;if(ti())return!C_()||Ql()&&Xl()?.3:.5;var n="value"in e.platform?e.platform.value:"";return/^Win/.test(n)?.6:/^Mac/.test(n)?.5:.7}(e),t=function DH(e){return mI(.99+.01*e,1e-4)}(n);return{score:n,comment:wH.replace(/\$/g,"".concat(t))}}(e);return{get visitorId(){return void 0===n&&(n=VI(this.components)),n},set visitorId(r){n=r},confidence:t,components:e,version:"4.5.1"}}(o),(n||r?.debug)&&console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(s.version,"\nuserAgent: ").concat(navigator.userAgent,"\ntimeBetweenLoadAndGet: ").concat(i-t,"\nvisitorId: ").concat(s.visitorId,"\ncomponents: ").concat(LI(o),"\n```")),[2,s]}})})}}}var xH={load:function AH(e){var n;return void 0===e&&(e={}),Er(this,void 0,void 0,function(){var r,i;return Qr(this,function(o){switch(o.label){case 0:return(!(null!==(n=e.monitoring)&&void 0!==n)||n)&&function PH(){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,MH(e.delayFallback)];case 1:return o.sent(),i=function bH(e){return function LB(e,n,t,r){var i=Object.keys(e).filter(function(s){return function TB(e,n){return!function SB(e,n){for(var t=0,r=e.length;t<r;++t)if(e[t]===n)return!0;return!1}(e,n)}(t,s)}),o=Yl(pI(i,function(s){return function FB(e,n){var t=Yl(new Promise(function(r){var i=Date.now();hI(e.bind(null,n),function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var u=Date.now()-i;if(!o[0])return r(function(){return{error:o[1],duration:u}});var c=o[1];if(function vI(e){return"function"!=typeof e}(c))return r(function(){return{value:c,duration:u}});r(function(){return new Promise(function(d){var f=Date.now();hI(c,function(){for(var m=[],g=0;g<arguments.length;g++)m[g]=arguments[g];var y=u+Date.now()-f;if(!m[0])return d({error:m[1],duration:y});d({value:m[1],duration:y})})})})})}));return function(){return t.then(function(i){return i()})}}(e[s],n)},r));return function(){return Er(this,void 0,void 0,function(){var c,d,f,m;return Qr(this,function(g){switch(g.label){case 0:return[4,o];case 1:return[4,pI(g.sent(),function(y){return Yl(y())},r)];case 2:return c=g.sent(),[4,Promise.all(c)];case 3:for(d=g.sent(),f={},m=0;m<i.length;++m)f[i[m]]=d[m];return[2,f]}})})}}(_H,e,[])}({cache:{},debug:r}),[2,IH(i,r)]}})})},hashComponents:VI,componentsToDebugString:LI},jI=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}(jI||{});const OH=xH.load();function RH(){return new bt(e=>{(function FH(){return P_.apply(this,arguments)})().then(n=>{e.next(n),e.complete()}).catch(n=>{e.error(n)})})}function P_(){return(P_=Ls(function*(){const e={};e.browserData=function kH(){const e=screen.height||window.innerHeight,n=screen.width||window.innerWidth,t=jI.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 OH).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 o=t.connection||t.mozConnection||t.webkitConnection;e.networkParameters=o?`type: ${o.type??"unknown"}; effectiveType: ${o.effectiveType??"unknown"}`:void 0}catch{}return e})).apply(this,arguments)}class Fp{constructor(){this.emitEnabled=!0,this.optionalEmitEnabled=!0,this.emitter=new Ge}emit(n,t){this.emitEnabled&&(!t||t&&this.optionalEmitEnabled)&&this.emitter.emit(n)}}let Je=(()=>{class e{constructor(){this.componentsStates={availableCardBrands:we({isRequired:!1,canShowError:!1,isValid:!0,filled:!0,enabled:!0}),cardList:we({isRequired:!1,canShowError:!1,isValid:!0,filled:!0,enabled:!0}),cardForm:we({isRequired:!0,canShowError:!1,isValid:!0,filled:!1,enabled:!0}),additionalForm:we({isRequired:!1,canShowError:!1,isValid:!0,filled:!1,enabled:!0}),chargeTerms:we({isRequired:!0,canShowError:!1,isValid:!0,filled:!1,enabled:!0}),payButton:we({isRequired:!0,canShowError:!1,isValid:!0,filled:!1,enabled:!0}),apmList:we({isRequired:!1,canShowError:!1,isValid:!0,filled:!0,enabled:!0}),userPreferences:we({isRequired:!0,canShowError:!1,isValid:!0,filled:!1,enabled:!0}),merchantInfo:we({isRequired:!1,canShowError:!1,isValid:!0,filled:!0,enabled:!0}),protectedBy:we({isRequired:!1,canShowError:!1,isValid:!0,filled:!0,enabled:!0}),master:we({isRequired:!0,canShowError:!1,isValid:!0,filled:!1,enabled:!0})},this.visibility={availableCardBrands:De(()=>this.componentsStates.availableCardBrands().enabled&&!!this.data.settings()?.components?.some(t=>"available-card-brands"===t)),cardList:De(()=>this.componentsStates.cardList().enabled&&!!this.data.settings()?.components?.some(t=>"card-list"===t)),cardForm:De(()=>this.componentsStates.cardForm().enabled&&!!this.data.settings()?.components?.some(t=>"requisites"===t)),additionalForm:De(()=>this.componentsStates.cardForm().enabled&&this.componentsStates.additionalForm().enabled&&!!this.data.settings()?.components?.some(t=>"phone-number"===t)),chargeTerms:De(()=>this.componentsStates.chargeTerms().enabled&&!!this.data.settings()?.components?.some(t=>"charge-terms"===t)&&!this.visibility.noMethods()),payButton:De(()=>(this.componentsStates.cardList().enabled||this.componentsStates.cardForm().enabled)&&this.componentsStates.payButton().enabled&&!!this.data.settings()?.components?.some(t=>"pay-button"===t)),apmList:De(()=>this.componentsStates.apmList().enabled&&!!this.data.settings()?.components?.some(t=>"apm-list"===t)),userPreferences:De(()=>this.componentsStates.userPreferences().enabled&&!!this.data.settings()?.components?.some(t=>"user-preferences"===t)&&!this.visibility.noMethods()),merchantInfo:De(()=>this.componentsStates.merchantInfo().enabled&&!!this.data.settings()?.components?.some(t=>"merchant-info"===t)),protectedBy:De(()=>this.componentsStates.protectedBy().enabled&&!!this.data.settings()?.components?.some(t=>"protected-by"===t)),noMethods:De(()=>!this.componentsStates.cardForm().enabled&&!this.componentsStates.cardList().enabled&&!this.componentsStates.apmList().enabled),master:De(()=>this.componentsStates.master().enabled&&!!this.data.settings()?.components?.some(t=>"master"===t)&&!this.visibility.noMethods())},this.data={payment:we(void 0),settings:we(void 0),userProvidedInfo:we({}),loadedPaymentSystems:we([]),loadedExistingCards:we([]),deviceInfo:we(void 0),state:we({type:"empty",payload:void 0}),paymentSystemsLoading:we(!1),cardsLoading:we(!1)},this.computed={isLoading:De(()=>this.data.paymentSystemsLoading()||this.data.cardsLoading()),paymentAvailability:De(()=>{const t=this.data.settings(),r={canPay:{byCard:!1,byApm:!1},isPayButtonDisabled:!1};if(!t)return r;let i=!0,o=!0;for(let c in this.componentsStates)if(this.componentsStates.hasOwnProperty(c)){const d=this.componentsStates[c]();i=i&&(d.isValid||!d.enabled),o=o&&(d.filled||!d.enabled)}const s=this.componentsStates.chargeTerms(),u=this.componentsStates.master();return r.canPay.byApm=t.components.includes("master")?!u.enabled||u.isValid:!t.components.includes("charge-terms")||!s.enabled||s.isValid,"disabled"!=t.requiredFieldsBehavior?.buttonStateUntilFilled||o?"hidden-enabled"!=t.requiredFieldsBehavior?.buttonStateUntilFilled||o?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 Fp,error:new Fp,close:new Fp,paid:new Fp},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=Y({token:e,factory:e.\u0275fac})}return e})();function Lp(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}function A_(e,...n){if(!n.length)return e;const t=n.shift();if(Lp(e)&&Lp(t))for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){const i=t[r];e[r]=Lp(i)&&Lp(e[r])?A_(e[r],i):i}return A_(e,...n)}function LH(...e){return A_({},...e)}function BI(e){return"string"==typeof e||e instanceof String?JSON.parse(e):e}const HI={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"},jH={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":HI,"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 BH(e,n){if(1&e&&(j(0,"div",1),je(1,"img",2),B()),2&e){const t=$();A(),Z("src",t.src,nl)("alt",t.alt)}}let Nu=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=Ye({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&&me(0,BH,2,2,"div",0),2&r&&Z("ngIf",i.src)},dependencies:[bp],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 Ou=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}(Ou||{});const Ru_customHeaders_skipToastr="X-Skip-Toastr";let HH=(()=>{class e{transform(t){const r=Ou[t];let i=r?.toString();if(i&&(r==Ou.visa&&(i+="-brand"),r==Ou.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=Ot({name:"brandLogo",type:e,pure:!0})}return e})();function GH(e,n){1&e&&je(0,"moto-picture",4),2&e&&Z("src",n)}function UH(e,n){if(1&e&&(me(0,GH,1,1,"moto-picture",4),Ue(1,"brandLogo")),2&e){let t;_e((t=Rl(1,1,n.$implicit))?0:-1,t)}}let UI=(()=>{class e{constructor(t){this.context=t}ngOnInit(){this.settings=this.context.data.settings}static#e=this.\u0275fac=function(r){return new(r||e)(P(Je))};static#t=this.\u0275cmp=Ye({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&&(nr(0),j(1,"div",0)(2,"div",1)(3,"h6",2),ue(4),B()(),j(5,"div",3),Gn(6,UH,2,3,null,null,Yr),B()()),2&r){const o=i.settings();A(4),nt(" ",o.language.availableCardBrandsHeader," "),A(2),Un(o.availableCardBrands)}},dependencies:[Nu,HH],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 $H{constructor(n,t=we(!1)){this.item=n,this.selected=t}setSelected(n){this.selected.set(n)}}var he=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}(he||{});const Qi="*";function Fu(e,n){return{type:he.Trigger,name:e,definitions:n,options:{}}}function ni(e,n=null){return{type:he.Animate,styles:n,timings:e}}function Dt(e){return{type:he.Style,styles:e,offset:null}}function Jl(e,n,t){return{type:he.State,name:e,styles:n,options:t}}function ri(e,n,t=null){return{type:he.Transition,expr:e,animation:n,options:t}}class ed{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 $I{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 o=this.players.length;0==o?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++t==o&&this._onFinish()}),s.onDestroy(()=>{++r==o&&this._onDestroy()}),s.onStart(()=>{++i==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,u)=>Math.max(s,u.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 td_animation_defaultAnimateMc=0;class k_{constructor(n){this.animationTime=td_animation_defaultAnimateMc,Object.assign(this,n)}}const KH=Fu("ANHeight",[ri(":enter",[Dt({overflow:"hidden",height:"0px"}),ni(td_animation_defaultAnimateMc,Dt({height:"*",overflow:"hidden"}))]),ri(":leave",[Dt({height:"*",overflow:"hidden"}),ni(td_animation_defaultAnimateMc,Dt({height:"0px",overflow:"hidden"}))])]),XH=Fu("ANScale",[ri(":enter",[Dt({opacity:0,transform:"scale(0)"}),ni(td_animation_defaultAnimateMc,Dt({opacity:1,transform:"scale(1)"}))]),ri(":leave",ni(td_animation_defaultAnimateMc,Dt({opacity:0,transform:"scale(0)"})))]),Vp=e=>{const n=new k_({animationName:"ANTransform",fromStyles:{opacity:"0",transform:"translateY(-100%)"},toStyles:{opacity:"1",transform:"translateY(0%)"}}),t=Object.assign(n,e),{animationName:r,animationTime:i,fromStyles:o,toStyles:s}=t;return Fu(r,[ri(":enter",[Dt(o),ni(i,Dt(s))]),ri(":leave",[Dt(s),ni(i,Dt(o))])])},QH=e=>{const n=new k_({animationName:"ANStates",fromState:"a",toState:"b"}),t=Object.assign(n,e),{animationName:r,animationTime:i,fromStyles:o,toStyles:s,fromState:u,toState:c}=t;return Fu(r,[Jl(u,Dt(o)),Jl(c,Dt(s)),ri(`${u}<=>${c}`,ni(i))])},JH=e=>{const n=new k_({animationName:"ANStates"}),t=Object.assign(n,e),{animationName:r,animationTime:i,fromStyles:o,toStyles:s}=t;return Fu(r,[ri(":enter",[Dt(o),ni(i,Dt(s))]),ri(":leave",[Dt(s),ni(i,Dt(o))])])};var eG=M(634),N_=M.n(eG);function or(...e){return xo(e,Pp(e))}function Lu(e){return gn((n,t)=>{let o,r=null,i=!1;r=n.subscribe(Qt(t,void 0,void 0,s=>{o=Jr(e(s,Lu(e)(n))),r?(r.unsubscribe(),r=null,o.subscribe(t)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(t))})}function Vu(e,n){return at(n)?Ip(e,n,1):Ip(e,1)}function zI(e,n){return gn((t,r)=>{let i=0;t.subscribe(Qt(r,o=>e.call(n,o,i++)&&r.next(o)))})}class jp{}class Bp{}class sr{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),o=i.toLowerCase(),s=t.slice(r+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}: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 sr?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 sr;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof sr?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 o=n.value;if(o){let s=this.headers.get(t);if(!s)return;s=s.filter(u=>-1===o.indexOf(u)),0===s.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,s)}else this.headers.delete(t),this.normalizedNames.delete(t)}}setHeaderEntries(n,t){const r=(Array.isArray(t)?t:[t]).map(o=>o.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 rG{encodeKey(n){return qI(n)}encodeValue(n){return qI(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const oG=/%(\d[a-f0-9])/gi,sG={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function qI(e){return encodeURIComponent(e).replace(oG,(n,t)=>sG[t]??n)}function Hp(e){return`${e}`}class Ji{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new rG,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function iG(e,n){const t=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(i=>{const o=i.indexOf("="),[s,u]=-1==o?[n.decodeKey(i),""]:[n.decodeKey(i.slice(0,o)),n.decodeValue(i.slice(o+1))],c=t.get(s)||[];c.push(u),t.set(s,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(Hp):[Hp(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(o=>{t.push({param:r,value:o,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 Ji({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(Hp(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(Hp(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 aG{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 WI(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function ZI(e){return typeof Blob<"u"&&e instanceof Blob}function YI(e){return typeof FormData<"u"&&e instanceof FormData}class nd{constructor(n,t,r,i){let o;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function uG(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,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new sr,this.context??=new aG,this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=t;else{const u=t.indexOf("?");this.urlWithParams=t+(-1===u?"?":u<t.length-1?"&":"")+s}}else this.params=new Ji,this.urlWithParams=t}serializeBody(){return null===this.body?null:"string"==typeof this.body||WI(this.body)||ZI(this.body)||YI(this.body)||function cG(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}(this.body)?this.body:this.body instanceof Ji?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||YI(this.body)?null:ZI(this.body)?this.body.type||null:WI(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Ji?"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,o=n.transferCache??this.transferCache,s=void 0!==n.body?n.body:this.body,u=n.withCredentials??this.withCredentials,c=n.reportProgress??this.reportProgress;let d=n.headers||this.headers,f=n.params||this.params;const m=n.context??this.context;return void 0!==n.setHeaders&&(d=Object.keys(n.setHeaders).reduce((g,y)=>g.set(y,n.setHeaders[y]),d)),n.setParams&&(f=Object.keys(n.setParams).reduce((g,y)=>g.set(y,n.setParams[y]),f)),new nd(t,r,s,{params:f,headers:d,context:m,reportProgress:c,responseType:i,withCredentials:u,transferCache:o})}}var No=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}(No||{});class O_{constructor(n,t=200,r="OK"){this.headers=n.headers||new sr,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 Gp extends O_{constructor(n={}){super(n),this.type=No.ResponseHeader}clone(n={}){return new Gp({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 Vs extends O_{constructor(n={}){super(n),this.type=No.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new Vs({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 ju extends O_{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 R_(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 Up=(()=>{class e{constructor(t){this.handler=t}request(t,r,i={}){let o;if(t instanceof nd)o=t;else{let c,d;c=i.headers instanceof sr?i.headers:new sr(i.headers),i.params&&(d=i.params instanceof Ji?i.params:new Ji({fromObject:i.params})),o=new nd(t,r,void 0!==i.body?i.body:null,{headers:c,context:i.context,params:d,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache})}const s=or(o).pipe(Vu(c=>this.handler.handle(c)));if(t instanceof nd||"events"===i.observe)return s;const u=s.pipe(zI(c=>c instanceof Vs));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return u.pipe(Tt(c=>{if(null!==c.body&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return u.pipe(Tt(c=>{if(null!==c.body&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return u.pipe(Tt(c=>{if(null!==c.body&&"string"!=typeof c.body)throw new Error("Response is not a string.");return c.body}));default:return u.pipe(Tt(c=>c.body))}case"response":return u;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 Ji).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,R_(i,r))}post(t,r,i={}){return this.request("POST",t,R_(i,r))}put(t,r,i={}){return this.request("PUT",t,R_(i,r))}static#e=this.\u0275fac=function(r){return new(r||e)(l(jp))};static#t=this.\u0275prov=Y({token:e,factory:e.\u0275fac})}return e})();const fG=/^\)\]\}',?\n/;function XI(e){if(e.url)return e.url;const n="X-Request-URL".toLocaleLowerCase();return e.headers.get(n)}let F_=(()=>{class e{constructor(){this.fetchImpl=p(pG,{optional:!0})?.fetch??((...t)=>globalThis.fetch(...t)),this.ngZone=p(Le)}handle(t){return new bt(r=>{const i=new AbortController;return this.doRequest(t,i.signal,r).then(L_,o=>r.error(new ju({error:o}))),()=>i.abort()})}doRequest(t,r,i){var o=this;return Ls(function*(){const s=o.createRequestInit(t);let u;try{const _=o.ngZone.runOutsideAngular(()=>o.fetchImpl(t.urlWithParams,{signal:r,...s}));(function mG(e){e.then(L_,L_)})(_),i.next({type:No.Sent}),u=yield _}catch(_){return void i.error(new ju({error:_,status:_.status??0,statusText:_.statusText,url:t.urlWithParams,headers:_.headers}))}const c=new sr(u.headers),d=u.statusText,f=XI(u)??t.urlWithParams;let m=u.status,g=null;if(t.reportProgress&&i.next(new Gp({headers:c,status:m,statusText:d,url:f})),u.body){const _=u.headers.get("content-length"),C=[],S=u.body.getReader();let T,R,I=0;const L=typeof Zone<"u"&&Zone.current;yield o.ngZone.runOutsideAngular(Ls(function*(){for(;;){const{done:Q,value:re}=yield S.read();if(Q)break;if(C.push(re),I+=re.length,t.reportProgress){R="text"===t.responseType?(R??"")+(T??=new TextDecoder).decode(re,{stream:!0}):void 0;const J=()=>i.next({type:No.DownloadProgress,total:_?+_:void 0,loaded:I,partialText:R});L?L.run(J):J()}}}));const H=o.concatChunks(C,I);try{const Q=u.headers.get("Content-Type")??"";g=o.parseBody(t,H,Q)}catch(Q){return void i.error(new ju({error:Q,headers:new sr(u.headers),status:u.status,statusText:u.statusText,url:XI(u)??t.urlWithParams}))}}0===m&&(m=g?200:0),m>=200&&m<300?(i.next(new Vs({body:g,headers:c,status:m,statusText:d,url:f})),i.complete()):i.error(new ju({error:g,headers:c,status:m,statusText:d,url:f}))})()}parseBody(t,r,i){switch(t.responseType){case"json":const o=(new TextDecoder).decode(r).replace(fG,"");return""===o?null:JSON.parse(o);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((o,s)=>r[o]=s.join(",")),t.headers.has("Accept")||(r.Accept="application/json, text/plain, */*"),!t.headers.has("Content-Type")){const o=t.detectContentTypeHeader();null!==o&&(r["Content-Type"]=o)}return{body:t.serializeBody(),method:t.method,headers:r,credentials:i}}concatChunks(t,r){const i=new Uint8Array(r);let o=0;for(const s of t)i.set(s,o),o+=s.length;return i}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Y({token:e,factory:e.\u0275fac})}return e})();class pG{}function L_(){}function QI(e,n){return n(e)}const rd=new q(""),JI=new q(""),e3=new q("",{providedIn:"root",factory:()=>!0});let t3=(()=>{class e extends jp{constructor(t,r){super(),this.backend=t,this.injector=r,this.chain=null,this.pendingTasks=p(_s),this.contributeToStability=p(e3)}handle(t){if(null===this.chain){const r=Array.from(new Set([...this.injector.get(rd),...this.injector.get(JI,[])]));this.chain=r.reduceRight((i,o)=>function yG(e,n,t){return(r,i)=>function mx(e,n){e instanceof Na&&e.assertNotDestroyed();const r=Oe(e),i=nn(void 0);try{return n()}finally{Oe(r),nn(i)}}(t,()=>n(r,o=>e(o,i)))}(i,o,this.injector),QI)}if(this.contributeToStability){const r=this.pendingTasks.add();return this.chain(t,i=>this.backend.handle(i)).pipe(function nG(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)(l(Bp),l(mr))};static#t=this.\u0275prov=Y({token:e,factory:e.\u0275fac})}return e})();const DG=/^\)\]\}',?\n/;let r3=(()=>{class e{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new k(-2800,!1);const r=this.xhrFactory;return(r.\u0275loadImpl?xo(r.\u0275loadImpl()):or(null)).pipe(lI(()=>new bt(o=>{const s=r.build();if(s.open(t.method,t.urlWithParams),t.withCredentials&&(s.withCredentials=!0),t.headers.forEach((C,S)=>s.setRequestHeader(C,S.join(","))),t.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const C=t.detectContentTypeHeader();null!==C&&s.setRequestHeader("Content-Type",C)}if(t.responseType){const C=t.responseType.toLowerCase();s.responseType="json"!==C?C:"text"}const u=t.serializeBody();let c=null;const d=()=>{if(null!==c)return c;const C=s.statusText||"OK",S=new sr(s.getAllResponseHeaders()),I=function SG(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(s)||t.url;return c=new Gp({headers:S,status:s.status,statusText:C,url:I}),c},f=()=>{let{headers:C,status:S,statusText:I,url:T}=d(),R=null;204!==S&&(R=typeof s.response>"u"?s.responseText:s.response),0===S&&(S=R?200:0);let L=S>=200&&S<300;if("json"===t.responseType&&"string"==typeof R){const H=R;R=R.replace(DG,"");try{R=""!==R?JSON.parse(R):null}catch(Q){R=H,L&&(L=!1,R={error:Q,text:R})}}L?(o.next(new Vs({body:R,headers:C,status:S,statusText:I,url:T||void 0})),o.complete()):o.error(new ju({error:R,headers:C,status:S,statusText:I,url:T||void 0}))},m=C=>{const{url:S}=d(),I=new ju({error:C,status:s.status||0,statusText:s.statusText||"Unknown Error",url:S||void 0});o.error(I)};let g=!1;const y=C=>{g||(o.next(d()),g=!0);let S={type:No.DownloadProgress,loaded:C.loaded};C.lengthComputable&&(S.total=C.total),"text"===t.responseType&&s.responseText&&(S.partialText=s.responseText),o.next(S)},_=C=>{let S={type:No.UploadProgress,loaded:C.loaded};C.lengthComputable&&(S.total=C.total),o.next(S)};return s.addEventListener("load",f),s.addEventListener("error",m),s.addEventListener("timeout",m),s.addEventListener("abort",m),t.reportProgress&&(s.addEventListener("progress",y),null!==u&&s.upload&&s.upload.addEventListener("progress",_)),s.send(u),o.next({type:No.Sent}),()=>{s.removeEventListener("error",m),s.removeEventListener("abort",m),s.removeEventListener("load",f),s.removeEventListener("timeout",m),t.reportProgress&&(s.removeEventListener("progress",y),null!==u&&s.upload&&s.upload.removeEventListener("progress",_)),s.readyState!==s.DONE&&s.abort()}})))}static#e=this.\u0275fac=function(r){return new(r||e)(l(CM))};static#t=this.\u0275prov=Y({token:e,factory:e.\u0275fac})}return e})();const V_=new q(""),i3=new q("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),o3=new q("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class s3{}let IG=(()=>{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=fM(t,this.cookieName),this.lastCookieString=t),this.lastToken}static#e=this.\u0275fac=function(r){return new(r||e)(l(un),l(zi),l(i3))};static#t=this.\u0275prov=Y({token:e,factory:e.\u0275fac})}return e})();function PG(e,n){const t=e.url.toLowerCase();if(!p(V_)||"GET"===e.method||"HEAD"===e.method||t.startsWith("http://")||t.startsWith("https://"))return n(e);const r=p(s3).getToken(),i=p(o3);return null!=r&&!e.headers.has(i)&&(e=e.clone({headers:e.headers.set(i,r)})),n(e)}var Oo=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}(Oo||{});function AG(...e){const n=[Up,r3,t3,{provide:jp,useExisting:t3},{provide:Bp,useFactory:()=>p(F_,{optional:!0})??p(r3)},{provide:rd,useValue:PG,multi:!0},{provide:V_,useValue:!0},{provide:s3,useClass:IG}];for(const t of e)n.push(...t.\u0275providers);return ka(n)}function xG(e){return function js(e,n){return{\u0275kind:e,\u0275providers:n}}(Oo.Interceptors,e.map(n=>({provide:rd,useValue:n,multi:!0})))}class BG extends ln{constructor(n,t){super()}schedule(n,t=0){return this}}const zp={setInterval(e,n,...t){const{delegate:r}=zp;return r?.setInterval?r.setInterval(e,n,...t):setInterval(e,n,...t)},clearInterval(e){const{delegate:n}=zp;return(n?.clearInterval||clearInterval)(e)},delegate:void 0};class id{constructor(n,t=id.now){this.schedulerActionCtor=n,this.now=t}schedule(n,t=0,r){return new this.schedulerActionCtor(this,n).schedule(r,t)}}id.now=p_.now;const m3=new class GG extends id{constructor(n,t=id.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 HG extends BG{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,o=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(o,i,t)),this.pending=!0,this.delay=t,this.id=null!==(r=this.id)&&void 0!==r?r:this.requestAsyncId(o,this.id,t),this}requestAsyncId(n,t,r=0){return zp.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&&zp.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(o){r=!0,i=o||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,Uo(r,this),null!=n&&(this.id=this.recycleAsyncId(t,n,null)),this.delay=null,super.unsubscribe()}}}),UG=m3;function g3(e=0,n,t=UG){let r=-1;return null!=n&&(sI(n)?t=n:r=n),new bt(i=>{let o=function $G(e){return e instanceof Date&&!isNaN(e)}(e)?+e-t.now():e;o<0&&(o=0);let s=0;return t.schedule(function(){i.closed||(i.next(s++),0<=r?this.schedule(void 0,r):i.complete())},o)})}function j_(e,n){const t=at(e)?e:()=>e,r=i=>i.error(t());return new bt(n?i=>n.schedule(r,0,i):r)}function B_(e){return new Ji({fromObject:e})}function y3(e){const n=Object.entries(e).reduce((t,[r,i])=>(t[r]=String(i),t),{});return new sr(n)}const v3="Watchdog fake error";function eo(e,n){return`${e.endsWith("/")?e.slice(0,-1):e}${n.startsWith("/")?n:`/${n}`}`}let H_=(()=>{class e{constructor(t,r){this.http=t,this.context=r}getExistingCards(){const{merchantId:t,userAuthToken:r}=this.context.data.payment();if(!r)return or([]);const i=B_({merchantId:t}),o=y3({[Ru_customHeaders_skipToastr]:!0}),s=eo(this.host(),"/api/UserPaymentMethods");return this.http.get(s,{params:i,headers:o}).pipe(Tt(u=>u.map(c=>({...c,name:c.name.toLocaleLowerCase(),type:c.type.toLocaleLowerCase()}))),Tt(u=>u.filter(c=>"card"===c.type)),Lu(()=>or([])))}removeCard(t){const{merchantId:r}=this.context.data.payment(),i=B_({merchantId:r}),o=eo(this.host(),`/api/UserPaymentMethods/${t}`);return this.http.delete(o,{params:i})}host(){return this.context.data.settings().urls.billingProfiles}static#e=this.\u0275fac=function(r){return new(r||e)(l(Up),l(Je))};static#t=this.\u0275prov=Y({token:e,factory:e.\u0275fac})}return e})();const _3=["toast-component",""];function WG(e,n){if(1&e){const t=xt();j(0,"button",5),ge("click",function(){return ye(t),ve($().remove())}),j(1,"span",6),ue(2,"\xd7"),B()()}}function ZG(e,n){if(1&e&&(Cu(0),ue(1),Eu()),2&e){const t=$(2);A(),nt("[",t.duplicatesCount+1,"]")}}function YG(e,n){if(1&e&&(j(0,"div"),ue(1),me(2,ZG,2,1,"ng-container",4),B()),2&e){const t=$();Zi(t.options.titleClass),Jt("aria-label",t.title),A(),nt(" ",t.title," "),A(),Z("ngIf",t.duplicatesCount)}}function KG(e,n){if(1&e&&je(0,"div",7),2&e){const t=$();Zi(t.options.messageClass),Z("innerHTML",t.message,wi)}}function XG(e,n){if(1&e&&(j(0,"div",8),ue(1),B()),2&e){const t=$();Zi(t.options.messageClass),Jt("aria-label",t.message),A(),nt(" ",t.message," ")}}function QG(e,n){if(1&e&&(j(0,"div"),je(1,"div",9),B()),2&e){const t=$();A(),wu("width",t.width()+"%")}}class oU{_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 sU{_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 aU{_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new wt;_activate=new wt;_manualClose=new wt;_resetTimeout=new wt;_countDuplicate=new wt;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 qp{toastId;config;message;title;toastType;toastRef;_onTap=new wt;_onAction=new wt;constructor(n,t,r,i,o,s){this.toastId=n,this.config=t,this.message=r,this.title=i,this.toastType=o,this.toastRef=s,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 w3=new q("ToastConfig");class uU extends sU{_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 cU=(()=>{class e{_document=p(un);_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=Y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class lU{_portalHost;constructor(n){this._portalHost=n}attach(n,t=!0){return this._portalHost.attach(n,t)}detach(){return this._portalHost.detach()}}let dU=(()=>{class e{_overlayContainer=p(cU);_componentFactoryResolver=p(Is);_appRef=p(_r);_document=p(un);_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 uU(t,this._componentFactoryResolver,this._appRef)}_createOverlayRef(t){return new lU(this._createPortalHost(t))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),od=(()=>{class e{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(t,r,i,o,s){this.overlay=r,this._injector=i,this.sanitizer=o,this.ngZone=s,this.toastrConfig={...t.default,...t.config},t.config.iconClasses&&(this.toastrConfig.iconClasses={...t.default.iconClasses,...t.config.iconClasses})}show(t,r,i={},o=""){return this._preBuildNotification(o,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,o){const{includeTitleDuplicates:s}=this.toastrConfig;for(const u of this.toasts)if((!s||s&&u.title===t)&&u.message===r)return u.toastRef.onDuplicate(i,o),u;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,o){return o.onActivateTick?this.ngZone.run(()=>this._buildNotification(t,r,i,o)):this._buildNotification(t,r,i,o)}_buildNotification(t,r,i,o){if(!o.toastComponent)throw new Error("toastComponent required");const s=this.findDuplicate(i,r,this.toastrConfig.resetTimeoutOnDuplicate&&o.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&i||r)&&this.toastrConfig.preventDuplicates&&null!==s)return s;this.previousToastMessage=r;let u=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(u=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const c=this.overlay.create(o.positionClass,this.overlayContainer);this.index=this.index+1;let d=r;r&&o.enableHtml&&(d=this.sanitizer.sanitize(Qn.HTML,r));const f=new aU(c),m=new qp(this.index,o,d,i,t,f),y=tt.create({providers:[{provide:qp,useValue:m}],parent:this._injector}),_=new oU(o.toastComponent,y),C=c.attach(_,o.newestOnTop);f.componentInstance=C.instance;const S={toastId:this.index,title:i||"",message:r||"",toastRef:f,onShown:f.afterActivate(),onHidden:f.afterClosed(),onTap:m.onTap(),onAction:m.onAction(),portal:C};return u||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{S.toastRef.activate()})),this.toasts.push(S),S}static \u0275fac=function(r){return new(r||e)(l(w3),l(dU),l(tt),l(h_),l(Le))};static \u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const fU={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=we(-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(o=>{this.duplicatesCount=o}),this.state=we({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)(P(od),P(qp),P(Le))};static \u0275cmp=Ye({type:e,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(r,i){1&r&&ge("click",function(){return i.tapToast()})("mouseenter",function(){return i.stickAround()})("mouseleave",function(){return i.delayedHideToast()}),2&r&&(Fh("@flyInOut",i._state),Zi(i.toastClasses),wu("display",i.displayStyle))},standalone:!0,features:[pv],attrs:_3,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&&me(0,WG,3,0,"button",0)(1,YG,3,5,"div",1)(2,KG,1,3,"div",2)(3,XG,2,4,"div",3)(4,QG,2,2,"div",4),2&r&&(Z("ngIf",i.options.closeButton),A(),Z("ngIf",i.title),A(),Z("ngIf",i.message&&i.options.enableHtml),A(),Z("ngIf",i.message&&!i.options.enableHtml),A(),Z("ngIf",i.options.progressBar))},dependencies:[bp],encapsulation:2,data:{animation:[Fu("flyInOut",[Jl("inactive",Dt({opacity:0})),Jl("active",Dt({opacity:1})),Jl("removed",Dt({opacity:0})),ri("inactive => active",ni("{{ easeTime }}ms {{ easing }}")),ri("active => removed",ni("{{ easeTime }}ms {{ easing }}"))])]},changeDetection:0})}return e})()},hU=(e={})=>ka([{provide:w3,useValue:{default:fU,config:e}}]);let pU=(()=>{class e{static forRoot(t={}){return{ngModule:e,providers:[hU(t)]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=zt({type:e});static \u0275inj=Et({})}return e})();const{isArray:mU}=Array,{getPrototypeOf:gU,prototype:yU,keys:vU}=Object;const{isArray:wU}=Array;function DU(e,n){return e.reduce((t,r,i)=>(t[r]=n[i],t),{})}function C3(...e){const n=function eB(e){return at(__(e))?e.pop():void 0}(e),{args:t,keys:r}=function _U(e){if(1===e.length){const n=e[0];if(mU(n))return{args:n,keys:null};if(function bU(e){return e&&"object"==typeof e&&gU(e)===yU}(n)){const t=vU(n);return{args:t.map(r=>n[r]),keys:t}}}return{args:e,keys:null}}(e),i=new bt(o=>{const{length:s}=t;if(!s)return void o.complete();const u=new Array(s);let c=s,d=s;for(let f=0;f<s;f++){let m=!1;Jr(t[f]).subscribe(Qt(o,g=>{m||(m=!0,d--),u[f]=g},()=>c--,void 0,()=>{(!c||!m)&&(d||o.next(r?DU(r,u):u),o.complete())}))}});return n?i.pipe(function EU(e){return Tt(n=>function CU(e,n){return wU(n)?e(...n):e(n)}(e,n))}(n)):i}function E3(e){return e&&e.replace(/\s+/g," ").trim()}let Bu=(()=>{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(),o=B_({currency:t,payerId:r}),s=eo(this.host(),`/api/merchants/${i}/settings`);return this.http.get(s,{params:o}).pipe(Tt(u=>{const c=new Set;return{payments:u.payments.filter(f=>!c.has(f.name)&&(c.add(f.name),!0))}}),Lu(()=>or({payments:[]})))}getPaymentInfo(t){const{merchantId:r}=this.context.data.payment(),i=eo(this.host(),`/api/merchants/${r}/payments/${t}`);return this.http.get(i)}getGooglePaySettings(){const{merchantId:t}=this.context.data.payment(),r=eo(this.host(),`/api/googlepay/${t}/settings`);return this.http.get(r).pipe(Tt(i=>({...i,allowedCardNetworks:i.allowedCardNetworks.map(o=>o.toUpperCase())})))}pay(){const t=this.context.data.payment(),r=this.context.data.settings(),i=this.context.data.userProvidedInfo(),o=this.context.data.deviceInfo(),s={...o?.browserData};t.ipAddress&&(s.ipAddress=t.ipAddress);const c={headers:y3(s)},d=eo(this.host(),`/api/merchants/${t.merchantId}/payments`);let f=this.mapper.mapPaymentRequest(t,i,r,o),m="default";return"invoice-overridden"===r.paymentFlow.type&&this.context.callbacks.createInvoice?m="invoice-overridden":"payment-overridden"===r.paymentFlow.type&&this.context.callbacks.makePayment&&(m="payment-overridden"),"card"===f.requisites.type&&r.paymentFlow.tokenizeCard?this.getSecretKey().pipe(Vu(g=>xo(this.encrypt(f.requisites,g))),Vu(g=>"default"!==m?this.getCardTokenData(g,t.merchantId).pipe(Tt(y=>y.token),Lu(()=>or(g)),Vu(y=>(f.requisites={type:"card",paymentToken:y},this.makeCallback(m,f,d,c)))):(f.requisites={type:"card",paymentToken:g},this.http.post(d,f,c)))):"default"!==m?this.makeCallback(m,f,d,c):this.http.post(d,f,c)}getCardTokenData(t,r){const i=eo(this.host(),`api/CardData/${r}/tokenize`);return this.http.post(i,{ei:2,invoice:t,es:{uo:!0}})}makeCallback(t,r,i,o){if("invoice-overridden"===t)return this.createInvoiceCallback(r).pipe(Vu(s=>this.http.post(i,s,o)));if("payment-overridden"===t)return this.makePaymentCallback(r);throw new Error("Not implemented flow type")}getSecretKey(){const t=eo(this.host(),"/api/security/key/2?formatId=2&size=4096");return this.http.get(t)}encrypt(t,r){var i=this;return Ls(function*(){const o=JSON.stringify(t),s=function MU(e){return function IU(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 u=yield window.crypto.subtle.importKey("spki",s,{name:"RSA-OAEP",hash:"SHA-1"},!1,["encrypt"]),c=(new TextEncoder).encode(o);return function TU(e){return btoa(String.fromCharCode(...new Uint8Array(e)))}(yield window.crypto.subtle.encrypt({name:"RSA-OAEP"},u,c))}catch(u){throw i.context.events.error.emit(u),u}})()}makePaymentCallback(t){return new bt(r=>(this.context.callbacks.makePayment(t).then(i=>{r.next(i),r.complete()}).catch(i=>r.error(i)),()=>{}))}createInvoiceCallback(t){return new bt(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)(l(Je),l(Up),l($s))};static#t=this.\u0275prov=Y({token:e,factory:e.\u0275fac})}return e})();const D3=new q("moto-window-document",{providedIn:"root",factory:()=>window}),S3=new q("LANGUAGE_TOKEN",{factory:()=>p(D3).navigator.language}),T3=new q("APPLE_PAY_JS_SERVICE_TOKEN");function G_(e,n,t){return n&&t&&"net"==t?e+n:e}let U_=(()=>{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():or(!1)}pay(t,r){const{amount:i,currency:o,description:s,billingAddress:u,merchantId:c,userAuthToken:d,tax:f,amountType:m}=t,g=u?.country?u.country:this.defaultCountryCode,y={total:{amount:G_(i,f,m).toString(),currency:o.toUpperCase(),label:s},countryCode:g.toUpperCase(),merchantId:c,userToken:d,processingUrl:r};return this.applePayJsService.pay(y).pipe(Tt(({payment:_})=>JSON.stringify(_)))}static#e=this.\u0275fac=function(r){return new(r||e)(l(S3),l(T3))};static#t=this.\u0275prov=Y({token:e,factory:e.\u0275fac})}return e})(),M3=(()=>{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?xo(this.context.clients.googlePay.isReadyToPay({...this.versionData,allowedPaymentMethods:[this.paymentMethodSpec]}).then(t=>t.result)):or(!1)}pay(t){if(!this.paymentMethodSpec||!this.settings)return j_(()=>"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 xo(this.context.clients.googlePay.loadPaymentData(r).then(i=>i.paymentMethodData.tokenizationData.token))}static#e=this.\u0275fac=function(r){return new(r||e)(l(Je))};static#t=this.\u0275prov=Y({token:e,factory:e.\u0275fac})}return e})(),$_=(()=>{class e{constructor(t,r,i,o){this.clientLanguage=t,this.googlePayJsService=r,this.context=i,this.processing=o,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(Vu(r=>(this.context.clients.googlePay=new google.payments.api.PaymentsClient({environment:r.isTest?"TEST":"PRODUCTION"}),this.googlePayJsService.setData(r),this.googlePayJsService.isAvailable())),Lu(()=>or(!1))):or(!1)}pay(t){const{paymentId:r,amount:i,currency:o,billingAddress:s,tax:u,amountType:c}=t,f={countryCode:s?.country?s.country:this.defaultCountryCode,currency:o.toUpperCase(),paymentId:r,price:G_(i,u,c).toString()};return this.googlePayJsService.pay(f)}static#e=this.\u0275fac=function(r){return new(r||e)(l(S3),l(M3),l(Je),l(Bu))};static#t=this.\u0275prov=Y({token:e,factory:e.\u0275fac})}return e})(),z_=(()=>{class e{constructor(t,r,i,o,s){this.context=t,this.processingService=r,this.billingProfilesService=i,this.applePayService=o,this.googlePayService=s}refreshExistingCards(t){let r;this.context.data.cardsLoading.set(!0),r=t?or(t):this.billingProfilesService.getExistingCards().pipe(Tt(i=>i.concat().sort(o=>o.isDefault?-1:1))),r.subscribe(i=>{i.length?(this.context.componentsStates.cardForm.update(o=>({...o,enabled:!1})),this.context.componentsStates.cardList().enabled||this.context.componentsStates.cardList.update(o=>({...o,enabled:!0}))):(this.context.componentsStates.cardForm.update(o=>({...o,enabled:!0})),this.context.componentsStates.cardList.update(o=>({...o,enabled:!1})),"existing-card"===this.context.data.userProvidedInfo()?.requisites?.type&&this.context.data.userProvidedInfo.update(o=>({...o,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(u=>u.name),i=this.context.data.payment(),s=[this.applePayService,this.googlePayService].filter(u=>r.includes(u.name)).map(u=>({name:u.name,isAvailable$:u.isAvailable(i)}));s.length>0?C3(s.map(u=>u.isAvailable$)).subscribe(u=>{const c=s.filter((f,m)=>!u[m]).map(f=>f.name),d=t.payments.filter(f=>!c.includes(f.name));this.applyPaymentSystems(d)}):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)(l(Je),l(Bu),l(H_),l(U_),l($_))};static#t=this.\u0275prov=Y({token:e,factory:e.\u0275fac})}return e})(),I3=(()=>{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)(P(Di),P(jn))};static#t=this.\u0275dir=le({type:e})}return e})(),Bs=(()=>{class e extends I3{static#e=this.\u0275fac=(()=>{let t;return function(i){return(t||(t=an(e)))(i||e)}})();static#t=this.\u0275dir=le({type:e,features:[Ve]})}return e})();const ar=new q(""),PU={provide:ar,useExisting:Ne(()=>sd),multi:!0};let sd=(()=>{class e extends Bs{writeValue(t){this.setProperty("checked",t)}static#e=this.\u0275fac=(()=>{let t;return function(i){return(t||(t=an(e)))(i||e)}})();static#t=this.\u0275dir=le({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,i){1&r&&ge("change",function(s){return i.onChange(s.target.checked)})("blur",function(){return i.onTouched()})},features:[it([PU]),Ve]})}return e})();const AU={provide:ar,useExisting:Ne(()=>Wp),multi:!0},kU=new q("");let Wp=(()=>{class e extends I3{constructor(t,r,i){super(t,r),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function xU(){const e=$l()?$l().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)(P(Di),P(jn),P(kU,8))};static#t=this.\u0275dir=le({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&&ge("input",function(s){return i._handleInput(s.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(s){return i._compositionEnd(s.target.value)})},features:[it([AU]),Ve]})}return e})();function Ro(e){return null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}function P3(e){return null!=e&&"number"==typeof e.length}const cn=new q(""),Fo=new q(""),NU=/^(?=.{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 Ii{static min(n){return function A3(e){return n=>{if(Ro(n.value)||Ro(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 x3(e){return n=>{if(Ro(n.value)||Ro(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 k3(e){return Ro(e.value)?{required:!0}:null}(n)}static requiredTrue(n){return function N3(e){return!0===e.value?null:{required:!0}}(n)}static email(n){return function O3(e){return Ro(e.value)||NU.test(e.value)?null:{email:!0}}(n)}static minLength(n){return R3(n)}static maxLength(n){return F3(n)}static pattern(n){return function L3(e){if(!e)return Zp;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(Ro(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 U3(n)}static composeAsync(n){return $3(n)}}function R3(e){return n=>Ro(n.value)||!P3(n.value)?null:n.value.length<e?{minlength:{requiredLength:e,actualLength:n.value.length}}:null}function F3(e){return n=>P3(n.value)&&n.value.length>e?{maxlength:{requiredLength:e,actualLength:n.value.length}}:null}function Zp(e){return null}function V3(e){return null!=e}function j3(e){return Zh(e)?xo(e):e}function B3(e){let n={};return e.forEach(t=>{n=null!=t?{...n,...t}:n}),0===Object.keys(n).length?null:n}function H3(e,n){return n.map(t=>t(e))}function G3(e){return e.map(n=>function OU(e){return!e.validate}(n)?n:t=>n.validate(t))}function U3(e){if(!e)return null;const n=e.filter(V3);return 0==n.length?null:function(t){return B3(H3(t,n))}}function q_(e){return null!=e?U3(G3(e)):null}function $3(e){if(!e)return null;const n=e.filter(V3);return 0==n.length?null:function(t){return C3(H3(t,n).map(j3)).pipe(Tt(B3))}}function W_(e){return null!=e?$3(G3(e)):null}function z3(e,n){return null===e?[n]:Array.isArray(e)?[...e,n]:[e,n]}function q3(e){return e._rawValidators}function W3(e){return e._rawAsyncValidators}function Z_(e){return e?Array.isArray(e)?e:[e]:[]}function Yp(e,n){return Array.isArray(e)?e.includes(n):e===n}function Z3(e,n){const t=Z_(n);return Z_(e).forEach(i=>{Yp(t,i)||t.push(i)}),t}function Y3(e,n){return Z_(n).filter(t=>!Yp(e,t))}class K3{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=q_(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=W_(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 An extends K3{get formDirective(){return null}get path(){return null}}class to extends K3{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class X3{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 no=(()=>{class e extends X3{constructor(t){super(t)}static#e=this.\u0275fac=function(r){return new(r||e)(P(to,2))};static#t=this.\u0275dir=le({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,i){2&r&&Dn("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:[Ve]})}return e})(),Kp=(()=>{class e extends X3{constructor(t){super(t)}static#e=this.\u0275fac=function(r){return new(r||e)(P(An,10))};static#t=this.\u0275dir=le({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,i){2&r&&Dn("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:[Ve]})}return e})();const ad="VALID",Qp="INVALID",Hu="PENDING",ud="DISABLED";class Gu{}class J3 extends Gu{constructor(n,t){super(),this.value=n,this.source=t}}class X_ extends Gu{constructor(n,t){super(),this.pristine=n,this.source=t}}class Q_ extends Gu{constructor(n,t){super(),this.touched=n,this.source=t}}class Jp extends Gu{constructor(n,t){super(),this.status=n,this.source=t}}class jU extends Gu{constructor(n){super(),this.source=n}}class BU extends Gu{constructor(n){super(),this.source=n}}function J_(e){return(em(e)?e.validators:e)||null}function eb(e,n){return(em(n)?n.asyncValidators:e)||null}function em(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function eP(e,n,t){const r=e.controls;if(!(n?Object.keys(r):r).length)throw new k(1e3,"");if(!r[t])throw new k(1001,"")}function tP(e,n,t){e._forEachChild((r,i)=>{if(void 0===t[i])throw new k(1002,"")})}class tm{constructor(n,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=De(()=>this.statusReactive()),this.statusReactive=we(void 0),this._pristine=De(()=>this.pristineReactive()),this.pristineReactive=we(!0),this._touched=De(()=>this.touchedReactive()),this.touchedReactive=we(!1),this._events=new wt,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 br(this.statusReactive)}set status(n){br(()=>this.statusReactive.set(n))}get valid(){return this.status===ad}get invalid(){return this.status===Qp}get pending(){return this.status==Hu}get disabled(){return this.status===ud}get enabled(){return this.status!==ud}get pristine(){return br(this.pristineReactive)}set pristine(n){br(()=>this.pristineReactive.set(n))}get dirty(){return!this.pristine}get touched(){return br(this.touchedReactive)}set touched(n){br(()=>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(Z3(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(Z3(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(Y3(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(Y3(n,this._rawAsyncValidators))}hasValidator(n){return Yp(this._rawValidators,n)}hasAsyncValidator(n){return Yp(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 Q_(!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 Q_(!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 X_(!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 X_(!0,r))}markAsPending(n={}){this.status=Hu;const t=n.sourceControl??this;!1!==n.emitEvent&&(this._events.next(new Jp(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=ud,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 J3(this.value,r)),this._events.next(new Jp(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=ad,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===ad||this.status===Hu)&&this._runAsyncValidator(r,n.emitEvent)}const t=n.sourceControl??this;!1!==n.emitEvent&&(this._events.next(new J3(this.value,t)),this._events.next(new Jp(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()?ud:ad}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n,t){if(this.asyncValidator){this.status=Hu,this._hasOwnPendingAsyncValidator={emitEvent:!1!==t};const r=j3(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 Jp(this.status,t)),this._parent&&this._parent._updateControlsErrors(n,t,r)}_initObservables(){this.valueChanges=new Ge,this.statusChanges=new Ge}_calculateStatus(){return this._allControlsDisabled()?ud:this.errors?Qp:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Hu)?Hu:this._anyControlsHaveStatus(Qp)?Qp:ad}_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 X_(this.pristine,t))}_updateTouched(n={},t){this.touched=this._anyControlsTouched(),this._events.next(new Q_(this.touched,t)),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,t)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){em(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 HU(e){return Array.isArray(e)?q_(e):e||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function GU(e){return Array.isArray(e)?W_(e):e||null}(this._rawAsyncValidators)}}class cd extends tm{constructor(n,t,r){super(J_(t),eb(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={}){tP(this,0,n),Object.keys(n).forEach(r=>{eP(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,o)=>{r=t(r,i,o)}),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 nP extends cd{}const Hs=new q("CallSetDisabledState",{providedIn:"root",factory:()=>ld}),ld="always";function nm(e,n){return[...n.path,e]}function dd(e,n,t=ld){tb(e,n),n.valueAccessor.writeValue(e.value),(e.disabled||"always"===t)&&n.valueAccessor.setDisabledState?.(e.disabled),function $U(e,n){n.valueAccessor.registerOnChange(t=>{e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&rP(e,n)})}(e,n),function qU(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 zU(e,n){n.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&rP(e,n),"submit"!==e.updateOn&&e.markAsTouched()})}(e,n),function UU(e,n){if(n.valueAccessor.setDisabledState){const t=r=>{n.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(t),n._registerOnDestroy(()=>{e._unregisterOnDisabledChange(t)})}}(e,n)}function rm(e,n,t=!0){const r=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(r),n.valueAccessor.registerOnTouched(r)),om(e,n),e&&(n._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function im(e,n){e.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(n)})}function tb(e,n){const t=q3(e);null!==n.validator?e.setValidators(z3(t,n.validator)):"function"==typeof t&&e.setValidators([t]);const r=W3(e);null!==n.asyncValidator?e.setAsyncValidators(z3(r,n.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const i=()=>e.updateValueAndValidity();im(n._rawValidators,i),im(n._rawAsyncValidators,i)}function om(e,n){let t=!1;if(null!==e){if(null!==n.validator){const i=q3(e);if(Array.isArray(i)&&i.length>0){const o=i.filter(s=>s!==n.validator);o.length!==i.length&&(t=!0,e.setValidators(o))}}if(null!==n.asyncValidator){const i=W3(e);if(Array.isArray(i)&&i.length>0){const o=i.filter(s=>s!==n.asyncValidator);o.length!==i.length&&(t=!0,e.setAsyncValidators(o))}}}const r=()=>{};return im(n._rawValidators,r),im(n._rawAsyncValidators,r),t}function rP(e,n){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function rb(e,n){if(!e.hasOwnProperty("model"))return!1;const t=e.model;return!!t.isFirstChange()||!Object.is(n,t.currentValue)}function ib(e,n){if(!n)return null;let t,r,i;return Array.isArray(n),n.forEach(o=>{o.constructor===Wp?t=o:function YU(e){return Object.getPrototypeOf(e.constructor)===Bs}(o)?r=o:i=o}),i||r||t||null}function sP(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function aP(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}Promise.resolve();const hd=class extends tm{constructor(n=null,t,r){super(J_(t),eb(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}),em(t)&&(t.nonNullable||t.initialValueIsDefault)&&(this.defaultValue=aP(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){sP(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){sP(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){aP(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 uP=(()=>{class e extends An{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return nm(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=an(e)))(i||e)}})();static#t=this.\u0275dir=le({type:e,features:[Ve]})}return e})();const e$={provide:to,useExisting:Ne(()=>Gs)},lP=Promise.resolve();let Gs=(()=>{class e extends to{constructor(t,r,i,o,s,u){super(),this._changeDetectorRef=s,this.callSetDisabledState=u,this.control=new hd,this._registered=!1,this.name="",this.update=new Ge,this._parent=t,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=ib(0,o)}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),rb(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(){dd(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){lP.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){const r=t.isDisabled.currentValue,i=0!==r&&function Vv(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}(r);lP.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?nm(t,this._parent):[t]}static#e=this.\u0275fac=function(r){return new(r||e)(P(An,9),P(cn,10),P(Fo,10),P(ar,10),P(Mu,8),P(Hs,8))};static#t=this.\u0275dir=le({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:[it([e$]),Ve,Ur]})}return e})(),sm=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275dir=le({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return e})();const sb=new q(""),s$={provide:An,useExisting:Ne(()=>Uu)};let Uu=(()=>{class e extends An{get submitted(){return br(this._submittedReactive)}set submitted(t){this._submittedReactive.set(t)}constructor(t,r,i){super(),this.callSetDisabledState=i,this._submitted=De(()=>this._submittedReactive()),this._submittedReactive=we(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Ge,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&&(om(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 dd(r,t,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),r}getControl(t){return this.form.get(t.path)}removeControl(t){rm(t.control||null,t,!1),function KU(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 oP(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 jU(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 BU(this.form))}_updateDomValue(){this.directives.forEach(t=>{const r=t.control,i=this.form.get(t.path);r!==i&&(rm(r||null,t),(e=>e instanceof hd)(i)&&(dd(i,t,this.callSetDisabledState),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const r=this.form.get(t.path);(function iP(e,n){tb(e,n)})(r,t),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const r=this.form.get(t.path);r&&function WU(e,n){return om(e,n)}(r,t)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){tb(this.form,this),this._oldForm&&om(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(r){return new(r||e)(P(cn,10),P(Fo,10),P(Hs,8))};static#t=this.\u0275dir=le({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,i){1&r&&ge("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[it([s$]),Ve,Ur]})}return e})();const a$={provide:An,useExisting:Ne(()=>am)};let am=(()=>{class e extends uP{constructor(t,r,i){super(),this.name=null,this._parent=t,this._setValidators(r),this._setAsyncValidators(i)}_checkParentType(){mP(this._parent)}static#e=this.\u0275fac=function(r){return new(r||e)(P(An,13),P(cn,10),P(Fo,10))};static#t=this.\u0275dir=le({type:e,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},features:[it([a$]),Ve]})}return e})();const u$={provide:An,useExisting:Ne(()=>um)};let um=(()=>{class e extends An{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 nm(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){mP(this._parent)}static#e=this.\u0275fac=function(r){return new(r||e)(P(An,13),P(cn,10),P(Fo,10))};static#t=this.\u0275dir=le({type:e,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},features:[it([u$]),Ve]})}return e})();function mP(e){return!(e instanceof am||e instanceof Uu||e instanceof um)}const c$={provide:to,useExisting:Ne(()=>pd)};let pd=(()=>{class e extends to{set isDisabled(t){}static#e=this._ngModelWarningSentOnce=!1;constructor(t,r,i,o,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.name=null,this.update=new Ge,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=ib(0,o)}ngOnChanges(t){this._added||this._setUpControl(),rb(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 nm(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)(P(An,13),P(cn,10),P(Fo,10),P(ar,10),P(sb,8))};static#n=this.\u0275dir=le({type:e,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[it([c$]),Ve,Ur]})}return e})();function vP(e){return"number"==typeof e?e:parseInt(e,10)}let Us=(()=>{class e{constructor(){this._validator=Zp}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):Zp,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=le({type:e,features:[Ur]})}return e})();const w$={provide:cn,useExisting:Ne(()=>cm),multi:!0};let cm=(()=>{class e extends Us{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=t=>vP(t),this.createValidator=t=>R3(t)}static#e=this.\u0275fac=(()=>{let t;return function(i){return(t||(t=an(e)))(i||e)}})();static#t=this.\u0275dir=le({type:e,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(r,i){2&r&&Jt("minlength",i._enabled?i.minlength:null)},inputs:{minlength:"minlength"},features:[it([w$]),Ve]})}return e})();const C$={provide:cn,useExisting:Ne(()=>md),multi:!0};let md=(()=>{class e extends Us{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=t=>vP(t),this.createValidator=t=>F3(t)}static#e=this.\u0275fac=(()=>{let t;return function(i){return(t||(t=an(e)))(i||e)}})();static#t=this.\u0275dir=le({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(r,i){2&r&&Jt("maxlength",i._enabled?i.maxlength:null)},inputs:{maxlength:"maxlength"},features:[it([C$]),Ve]})}return e})(),SP=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=zt({type:e});static#n=this.\u0275inj=Et({})}return e})();class TP extends tm{constructor(n,t,r){super(J_(t),eb(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={}){tP(this,0,n),n.forEach((r,i)=>{eP(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 MP(e){return!!e&&(void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn)}let lb=(()=>{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 o={};return MP(r)?o=r:null!==r&&(o.validators=r.validator,o.asyncValidators=r.asyncValidator),new cd(i,o)}record(t,r=null){const i=this._reduceControls(t);return new nP(i,r)}control(t,r,i){let o={};return this.useNonNullable?(MP(r)?o=r:(o.validators=r,o.asyncValidators=i),new hd(t,{...o,nonNullable:!0})):new hd(t,r,i)}array(t,r,i){const o=t.map(s=>this._createControl(s));return new TP(o,r,i)}_reduceControls(t){const r={};return Object.keys(t).forEach(i=>{r[i]=this._createControl(t[i])}),r}_createControl(t){return t instanceof hd||t instanceof tm?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=Y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),IP=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:Hs,useValue:t.callSetDisabledState??ld}]}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=zt({type:e});static#n=this.\u0275inj=Et({imports:[SP]})}return e})(),PP=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:sb,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:Hs,useValue:t.callSetDisabledState??ld}]}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=zt({type:e});static#n=this.\u0275inj=Et({imports:[SP]})}return e})();function AP(...e){return function S$(){return iI(1)}()(xo(e,Pp(e)))}function xP(...e){const n=Pp(e);return gn((t,r)=>{(n?AP(e,t,n):AP(e,t)).subscribe(r)})}function kP(e,n=m3){return gn((t,r)=>{let i=null,o=null,s=null;const u=()=>{if(i){i.unsubscribe(),i=null;const d=o;o=null,r.next(d)}};function c(){const d=s+e,f=n.now();if(f<d)return i=this.schedule(void 0,d-f),void r.add(i);u()}t.subscribe(Qt(r,d=>{o=d,s=n.now(),i||(i=n.schedule(c,e),r.add(i))},()=>{u(),r.complete()},void 0,()=>{o=i=null}))})}function db(e,n,t,r,i,o,s){e.valueChanges.pipe(xP(null),kP(50),function T$(){return gn((e,n)=>{let t,r=!1;e.subscribe(Qt(n,i=>{const o=t;t=i,r&&n.next([o,i]),r=!0}))})}(),zI(([u,c])=>JSON.stringify(u)!==JSON.stringify(c)),t.untilDestroy()).subscribe(([u,c])=>{const d={...n()};let f=!1;!r()&&d.canShowError&&(f=!0,d.canShowError=!1);const m=i(c);d.filled!==m&&(f=!0,d.filled=m),f&&n.update(g=>({...d})),o&&o(c,s)}),e.statusChanges.pipe(xP(e.status),t.untilDestroy()).subscribe(u=>{n.update(c=>({...c,isValid:"VALID"===u}))})}const lm=new q("ngx-mask config"),NP=new q("new ngx-mask config"),OP=new q("initial ngx-mask config"),x$={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 Ge,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")}}},k$=["Hh:m0:s0","Hh:m0","m0:s0"],N$=["percent","Hh","s0","m0","separator","d0/M0/0000","d0/M0","d0","M0"];let O$=(()=>{class e{constructor(){this._config=p(lm),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,o)=>{let s=[],u="";if(Array.isArray(i)){const g=new RegExp(i.map(y=>"[\\^$.|?*+()".indexOf(y)>=0?`\\${y}`:y).join("|"));s=t.split(g),u=t.match(g)?.[0]??""}else s=t.split(i),u=i;const c=s.length>1?`${u}${s[1]}`:"";let d=s[0]??"";const f=this.separatorLimit.replace(/\s/g,"");f&&+f&&(d="-"===d[0]?`-${d.slice(1,d.length).slice(0,f.length)}`:d.slice(0,f.length));const m=/(\d+)(\d{3})/;for(;r&&m.test(d);)d=d.replace(m,"$1"+r+"$2");return void 0===o?d+c:0===o?d:d+c.substring(0,o+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(d=>d!==this.thousandSeparator);i=c||i[0]}const o=new RegExp(this._charToRegExpExpression(i)+`\\d{${r}}.*$`),s=t.match(o),u=(s&&s[0]?.length)??0;u-1>r&&(t=t.substring(0,t.length-(u-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,o]=r;return this.customPattern=o,this.applyMask(t,i)}applyMask(t,r,i=0,o=!1,s=!1,u=()=>{}){if(!r||"string"!=typeof t)return"";let c=0,d="",f=!1,m=!1,g=1,y=!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 _=t.toString().split("");if(this.allowNegativeNumbers&&"-"===t.slice(c,c+1)&&(d+=t.slice(c,c+1)),"IP"===r){const L=t.split(".");this.ipError=this._validIP(L),r="099.099.099.099"}const C=[];for(let L=0;L<t.length;L++)t[L]?.match("\\d")&&C.push(t[L]??"");if("CPF_CNPJ"===r&&(this.cpfCnpjError=11!==C.length&&14!==C.length,r=C.length>11?"00.000.000/0000-00":"000.000.000-00"),r.startsWith("percent")){if(t.match("[a-z]|[A-Z]")||t.match(/[-!$%^&*()_+|~=`{}\[\]:";'<>?,\/.]/)&&!s){t=this._stripToDecimal(t);const Q=this.getPrecision(r);t=this.checkInputPrecision(t,Q,this.decimalMarker)}const L="string"==typeof this.decimalMarker?this.decimalMarker:".";if(t.indexOf(L)>0&&!this.percentage(t.substring(0,t.indexOf(L)))){let Q=t.substring(0,t.indexOf(L)-1);this.allowNegativeNumbers&&"-"===t.slice(c,c+1)&&!s&&(Q=t.substring(0,t.indexOf(L))),t=`${Q}${t.substring(t.indexOf(L),t.length)}`}let H="";H=this.allowNegativeNumbers&&"-"===t.slice(c,c+1)?t.slice(c+1,c+t.length):t,d=this.percentage(H)?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)&&!s?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)&&!s?t.slice(0,t.length-1):t,s&&(t=this._compareOrIncludes(t[t.length-1],this.decimalMarker,this.thousandSeparator)?t.slice(0,t.length-1):t);const L=this._charToRegExpExpression(this.thousandSeparator);let H='@#!$%^&*()_+|~=`{}\\[\\]:\\s,\\.";<>?\\/'.replace(L,"");if(Array.isArray(this.decimalMarker))for(const kt of this.decimalMarker)H=H.replace(this._charToRegExpExpression(kt),"");else H=H.replace(this._charToRegExpExpression(this.decimalMarker),"");const Q=new RegExp("["+H+"]");(t.match(Q)||1===t.length&&this._compareOrIncludes(t,this.decimalMarker,this.thousandSeparator))&&(t=t.substring(0,t.length-1));const re=this.getPrecision(r),J=(t=this.checkInputPrecision(t,re,this.decimalMarker)).replace(new RegExp(L,"g"),"");d=this._formatWithSeparators(J,this.thousandSeparator,this.decimalMarker,re);const _t=d.indexOf(",")-t.indexOf(","),St=d.length-t.length;if(St>0&&d[i]!==this.thousandSeparator){m=!0;let kt=0;do{this._shift.add(i+kt),kt++}while(kt<St)}else d[i-1]===this.decimalMarker||-4===St||-3===St||","===d[i]?(this._shift.clear(),this._shift.add(i-1)):0!==_t&&i>0&&!(d.indexOf(",")>=i&&i>3)||!(d.indexOf(".")>=i&&i>3)&&St<=0?(this._shift.clear(),m=!0,g=St,this._shift.add(i+=St)):this._shift.clear()}else for(let L=0,H=_[0];L<_.length&&c!==r.length;L++,H=_[L]??""){const Q="*"in this.patterns;if(this._checkSymbolMask(H,r[c]??"")&&"?"===r[c+1])d+=H,c+=2;else if("*"===r[c+1]&&f&&this._checkSymbolMask(H,r[c+2]??""))d+=H,c+=3,f=!1;else if(this._checkSymbolMask(H,r[c]??"")&&"*"===r[c+1]&&!Q)d+=H,f=!0;else if("?"===r[c+1]&&this._checkSymbolMask(H,r[c+2]??""))d+=H,c+=3;else if(this._checkSymbolMask(H,r[c]??"")){if("H"===r[c]&&(this.apm?Number(H)>9:Number(H)>2)){i+=1,c+=1,this._shiftStep(r,c,_.length),L--,this.leadZeroDateTime&&(d+="0");continue}if("h"===r[c]&&(this.apm?1===d.length&&Number(d)>1||"1"===d&&Number(H)>2||1===t.slice(c-1,c).length&&Number(t.slice(c-1,c))>2||"1"===t.slice(c-1,c)&&Number(H)>2:"2"===d&&Number(H)>3||("2"===d.slice(c-2,c)||"2"===d.slice(c-3,c)||"2"===d.slice(c-4,c)||"2"===d.slice(c-1,c))&&Number(H)>3&&c>10)){i+=1,c+=1,L--;continue}if(("m"===r[c]||"s"===r[c])&&Number(H)>5){i+=1,c+=1,this._shiftStep(r,c,_.length),L--,this.leadZeroDateTime&&(d+="0");continue}const re=31,J=t[c],_t=t[c+1],St=t[c+2],kt=t[c-1],xn=t[c-2],Vo=t[c-3],Tr=t.slice(c-3,c-1),Zs=t.slice(c-1,c+1),K=t.slice(c,c+2),te=t.slice(c-2,c);if("d"===r[c]){const ce="M0"===r.slice(0,2),Me="M0"===r.slice(0,2)&&this.specialCharacters.includes(xn);if(Number(H)>3&&this.leadZeroDateTime||!ce&&(Number(K)>re||Number(Zs)>re||this.specialCharacters.includes(_t))||(Me?Number(Zs)>re||!this.specialCharacters.includes(J)&&this.specialCharacters.includes(St)||this.specialCharacters.includes(J):Number(K)>re||this.specialCharacters.includes(_t))){i+=1,c+=1,this._shiftStep(r,c,_.length),L--,this.leadZeroDateTime&&(d+="0");continue}}if("M"===r[c]){const Me=0===c&&(Number(H)>2||Number(K)>12||this.specialCharacters.includes(_t)),Bt=r.slice(c+2,c+3),Mr=Tr.includes(Bt)&&(this.specialCharacters.includes(xn)&&Number(Zs)>12&&!this.specialCharacters.includes(J)||this.specialCharacters.includes(J)||this.specialCharacters.includes(Vo)&&Number(te)>12&&!this.specialCharacters.includes(kt)||this.specialCharacters.includes(kt)),kn=Number(Tr)<=re&&!this.specialCharacters.includes(Tr)&&this.specialCharacters.includes(kt)&&(Number(K)>12||this.specialCharacters.includes(_t)),Ai=Number(K)>12&&5===c||this.specialCharacters.includes(_t)&&5===c,ht=Number(Tr)>re&&!this.specialCharacters.includes(Tr)&&!this.specialCharacters.includes(te)&&Number(te)>12,Im=Number(Tr)<=re&&!this.specialCharacters.includes(Tr)&&!this.specialCharacters.includes(kt)&&Number(Zs)>12;if(Number(H)>1&&this.leadZeroDateTime||Me||Mr||Im||ht||kn||Ai&&!this.leadZeroDateTime){i+=1,c+=1,this._shiftStep(r,c,_.length),L--,this.leadZeroDateTime&&(d+="0");continue}}d+=H,c++}else" "===H&&" "===r[c]||"/"===H&&"/"===r[c]?(d+=H,c++):-1!==this.specialCharacters.indexOf(r[c]??"")?(d+=r[c],c++,this._shiftStep(r,c,_.length),L--):"9"===r[c]&&this.showMaskTyped?this._shiftStep(r,c,_.length):this.patterns[r[c]??""]&&this.patterns[r[c]??""]?.optional?(_[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&&(d+=_[c]),r.includes("9*")&&r.includes("0*")&&c++,c++,L--):"*"===this.maskExpression[c+1]&&this._findSpecialChar(this.maskExpression[c+2]??"")&&this._findSpecialChar(H)===this.maskExpression[c+2]&&f||"?"===this.maskExpression[c+1]&&this._findSpecialChar(this.maskExpression[c+2]??"")&&this._findSpecialChar(H)===this.maskExpression[c+2]&&f?(c+=3,d+=H):this.showMaskTyped&&this.specialCharacters.indexOf(H)<0&&H!==this.placeHolderCharacter&&1===this.placeHolderCharacter.length&&(y=!0)}d.length+1===r.length&&-1!==this.specialCharacters.indexOf(r[r.length-1]??"")&&(d+=r[r.length-1]);let S=i+1;for(;this._shift.has(S);)g++,S++;let I=o&&!r.startsWith("separator")?c:this._shift.has(i)?g:0;y&&I--,u(I,m),g<0&&this._shift.clear();let T=!1;s&&(T=_.every(L=>this.specialCharacters.includes(L)));let R=`${this.prefix}${T?"":d}${this.suffix}`;if(0===d.length&&(R=this.dropSpecialCharacters?`${d}`:`${this.prefix}${d}`),d.includes("-")&&this.prefix&&this.allowNegativeNumbers){if(s&&"-"===d)return"";R=`-${this.prefix}${d.split("-").join("")}${this.suffix}`}return R}_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 o="string"==typeof this.decimalMarker?r===this.decimalMarker:this.decimalMarker.includes(r);return r.match("^-?\\d")||r===this.thousandSeparator||o||"-"===r&&0===i&&this.allowNegativeNumbers}).join("")}_charToRegExpExpression(t){return t&&(" "===t?"\\s":"[\\^$.|?*+()".indexOf(t)>=0?`\\${t}`:t)}_shiftStep(t,r,i){const o=/[*?]/g.test(t.slice(0,r))?i:r;this._shift.add(o+this.prefix.length||0)}_compareOrIncludes(t,r,i){return Array.isArray(r)?r.filter(o=>o!==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),o=t.substring(r+1),s=isNaN(i)?"":i.toString();return""===s?"":s+("string"==typeof this.decimalMarker?this.decimalMarker:".")+o}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})(),fb=(()=>{class e extends O${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=p(un),this._config=p(lm),this._elementRef=p(jn,{optional:!0}),this._renderer=p(Di,{optional:!0})}applyMask(t,r,i=0,o=!1,s=!1,u=()=>{}){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 d="";if(void 0!==this.hiddenInput&&!this.writingValue){let y=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&&y.length?"number"==typeof this.selStart&&"number"==typeof this.selEnd&&(t.length>y.length?y.splice(this.selStart,0,c):t.length<y.length&&(y.length-t.length==1?y.splice(s?this.selStart-1:t.length-1,1):y.splice(this.selStart,this.selEnd-this.selStart))):y=[],this.showMaskTyped&&(this.hiddenInput||(t=this.removeMask(t))),d=this.actualValue.length&&y.length<=t.length?this.shiftTypedSymbols(y.join("")):t}if(o&&(this.hiddenInput||!this.hiddenInput)&&(d=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)),d=this.maskChanged?t:d&&d.length?d:t,this.showMaskTyped&&this.keepCharacterPositions&&this.actualValue&&!o){const y=this.dropSpecialCharacters?this.removeMask(this.actualValue):this.actualValue;return this.formControlResult(y),this.actualValue?this.actualValue:this.prefix+this.maskIsShown+this.suffix}const f=super.applyMask(d,r,i,o,s,u);if(this.actualValue=this.getActualValue(f),"."===this.thousandSeparator&&"."===this.decimalMarker&&(this.decimalMarker=","),this.maskExpression.startsWith("separator")&&!0===this.dropSpecialCharacters&&(this.specialCharacters=this.specialCharacters.filter(y=>!this._compareOrIncludes(y,this.decimalMarker,this.thousandSeparator))),(f||""===f)&&(this._previousValue=this._currentValue,this._currentValue=f,this._emitValue=this._previousValue!==this._currentValue||this.maskChanged||this._previousValue===this._currentValue&&o),this._emitValue&&this.formControlResult(f),!this.showMaskTyped||this.showMaskTyped&&this.hiddenInput)return this.hiddenInput?s?this.hideInput(f,this.maskExpression):this.hideInput(f,this.maskExpression)+this.maskIsShown.slice(f.length):f;const m=f.length,g=this.prefix+this.maskIsShown;if(this.maskExpression.includes("H")){const y=this._numberSkipedSymbols(f);return f+g.slice(m+y)}return"IP"===this.maskExpression||"CPF_CNPJ"===this.maskExpression?f+g:f+g.slice(m)}_numberSkipedSymbols(t){const r=/(^|\D)(\d\D)/g;let i=r.exec(t),o=0;for(;null!=i;)o+=1,i=r.exec(t);return o}applyValueChanges(t,r,i,o=()=>{}){const s=this._elementRef?.nativeElement;s&&(s.value=this.applyMask(s.value,this.maskExpression,t,r,i,o),s!==this._getActiveElement()&&this.clearIfNotMatchFn())}hideInput(t,r){return t.split("").map((i,o)=>this.patterns&&this.patterns[r[o]??""]&&this.patterns[r[o]??""]?.symbol?this.patterns[r[o]??""]?.symbol:i).join("")}getActualValue(t){const r=t.split("").filter((i,o)=>{const s=this.maskExpression[o]??"";return this._checkSymbolMask(i,s)||this.specialCharacters.includes(s)&&i===s});return r.join("")===t?r.join(""):t}shiftTypedSymbols(t){let r="";return(t&&t.split("").map((o,s)=>{if(this.specialCharacters.includes(t[s+1]??"")&&t[s+1]!==this.maskExpression[s+1])return r=o,t[s+1];if(r.length){const u=r;return r="",u}return o})||[]).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 o=t[i]??"";o&&o.match("\\d")&&r.push(o)}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 o=[];for(let s=0;s<t.length;s++){const u=t[s]??"";u&&u.match("\\d")&&o.push(u)}return o.length<=3?r.slice(o.length,r.length):o.length>3&&o.length<=6?r.slice(o.length+1,r.length):o.length>6&&o.length<=9?r.slice(o.length+2,r.length):o.length>9&&o.length<11?r.slice(o.length+3,r.length):11===o.length?"":12===o.length?i.slice(17===t.length?16:15,i.length):o.length>12&&o.length<=14?i.slice(o.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,o)=>{if(this._start="{"===i?o:this._start,"}"!==i)return this._findSpecialChar(i)?r+i:r;this._end=o;const s=Number(t.slice(this._start+1,this._end)),u=new Array(s+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+u:c+r+u}return r+u},"")||t}currentLocaleDecimalMarker(){return 1.1.toLocaleString().substring(1,2)}}return e.\u0275fac=(()=>{let n;return function(r){return(n||(n=an(e)))(r||e)}})(),e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})(),R$=(()=>{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 Ge,this._maskValue="",this._position=null,this._maskExpressionArray=[],this._justPasted=!1,this._isComposing=!1,this.document=p(un),this._maskService=p(fb,{self:!0}),this._config=p(lm),this.onChange=t=>{},this.onTouch=()=>{}}ngOnChanges(t){const{maskExpression:r,specialCharacters:i,patterns:o,prefix:s,suffix:u,thousandSeparator:c,decimalMarker:d,dropSpecialCharacters:f,hiddenInput:m,showMaskTyped:g,placeHolderCharacter:y,shownMaskExpression:_,showTemplate:C,clearIfNotMatch:S,validation:I,separatorLimit:T,allowNegativeNumbers:R,leadZeroDateTime:L,leadZero:H,triggerOnMaskChange:Q,apm:re,inputTransformFn:J,outputTransformFn:_t,keepCharacterPositions:St}=t;if(r&&(r.currentValue!==r.previousValue&&!r.firstChange&&(this._maskService.maskChanged=!0),R&&(this._maskService.allowNegativeNumbers=R.currentValue,this._maskService.allowNegativeNumbers&&(this._maskService.specialCharacters=this._maskService.specialCharacters.filter(kt=>"-"!==kt))),r.currentValue&&r.currentValue.split("||").length>1?(this._maskExpressionArray=r.currentValue.split("||").sort((kt,xn)=>kt.length-xn.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||[]}o&&o.currentValue&&(this._maskService.patterns=o.currentValue),re&&re.currentValue&&(this._maskService.apm=re.currentValue),s&&(this._maskService.prefix=s.currentValue),u&&(this._maskService.suffix=u.currentValue),c&&(this._maskService.thousandSeparator=c.currentValue),d&&(this._maskService.decimalMarker=d.currentValue),f&&(this._maskService.dropSpecialCharacters=f.currentValue),m&&(this._maskService.hiddenInput=m.currentValue),g&&(this._maskService.showMaskTyped=g.currentValue),y&&(this._maskService.placeHolderCharacter=y.currentValue),_&&(this._maskService.shownMaskExpression=_.currentValue),C&&(this._maskService.showTemplate=C.currentValue),S&&(this._maskService.clearIfNotMatch=S.currentValue),I&&(this._maskService.validation=I.currentValue),T&&(this._maskService.separatorLimit=T.currentValue),L&&(this._maskService.leadZeroDateTime=L.currentValue),H&&(this._maskService.leadZero=H.currentValue),Q&&(this._maskService.triggerOnMaskChange=Q.currentValue),J&&(this._maskService.inputTransformFn=J.currentValue),_t&&(this._maskService.outputTransformFn=_t.currentValue),St&&(this._maskService.keepCharacterPositions=St.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")||N$.includes(this._maskValue)||this._maskService.clearIfNotMatch)return null;if(k$.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(s=>s===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("*"),o=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<o)return this._createValidationError(t);if(i.length>1){const s=i[i.length-1];if(s&&this._maskService.specialCharacters.includes(s[0])&&String(t).includes(s[0]??"")&&!this.dropSpecialCharacters){const u=t.split(s[0]);return u[u.length-1].length===s.length-1?null:this._createValidationError(t)}return(s&&!this._maskService.specialCharacters.includes(s[0])||!s||this._maskService.dropSpecialCharacters)&&t.length>=o-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 o=1===r.selectionStart?r.selectionStart+this._maskService.prefix.length:r.selectionStart;if(this.showMaskTyped&&this.keepCharacterPositions&&1===this._maskService.placeHolderCharacter.length){const d=r.value.slice(o-1,o),f=this.prefix.length,m=this._maskService._checkSymbolMask(d,this._maskService.maskExpression[o-1-f]??""),g=this._maskService._checkSymbolMask(d,this._maskService.maskExpression[o+1-f]??""),y=this._maskService.selStart===this._maskService.selEnd,_=Number(this._maskService.selStart)-f,C=Number(this._maskService.selEnd)-f;if("Backspace"===this._code)if(y){if(!this._maskService.specialCharacters.includes(this._maskService.maskExpression.slice(o-this.prefix.length,o+1-this.prefix.length))&&y)if(1===_&&this.prefix)this._maskService.actualValue=this.prefix+this._maskService.placeHolderCharacter+r.value.split(this.prefix).join("").split(this.suffix).join("")+this.suffix,o-=1;else{const S=r.value.substring(0,o),I=r.value.substring(o);this._maskService.actualValue=S+this._maskService.placeHolderCharacter+I}}else this._maskService.actualValue=this._maskService.selStart===f?this.prefix+this._maskService.maskIsShown.slice(0,C)+this._inputValue.split(this.prefix).join(""):this._maskService.selStart===this._maskService.maskIsShown.length+f?this._inputValue+this._maskService.maskIsShown.slice(_,C):this.prefix+this._inputValue.split(this.prefix).join("").slice(0,_)+this._maskService.maskIsShown.slice(_,C)+this._maskService.actualValue.slice(C+f,this._maskService.maskIsShown.length+f)+this.suffix;"Backspace"!==this._code&&(m||g||!y?this._maskService.specialCharacters.includes(r.value.slice(o,o+1))&&g&&!this._maskService.specialCharacters.includes(r.value.slice(o+1,o+2))?(this._maskService.actualValue=r.value.slice(0,o-1)+r.value.slice(o,o+1)+d+r.value.slice(o+2),o+=1):m&&(this._maskService.actualValue=r.value.slice(0,o-1)+d+r.value.slice(o+1).split(this.suffix).join("")+this.suffix):o=Number(r.selectionStart)-1)}let s=0,u=!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&&o<10){const d=this._inputValue.slice(o-1,o);r.value=this._inputValue.slice(0,o-1)+d+this._inputValue.slice(o+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(o,this._justPasted,"Backspace"===this._code||"Delete"===this._code,(d,f)=>{this._justPasted=!1,s=d,u=f}),this._getActiveElement()!==r)return;this._maskExpressionArray.length&&(o="Backspace"===this._code?this.specialCharacters.includes(this._inputValue.slice(o-1,o))?o-1:o: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+o+s:o+("Backspace"!==this._code||u?s: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,o=Number(this._maskService.maskExpression.slice(i.length-1,i.length));if(o>1){r.value=this.suffix?r.value.split(this.suffix).join(""):r.value;const s=r.value.split(this.decimalMarker)[1];r.value=r.value.includes(this.decimalMarker)?r.value+"0".repeat(o-s.length)+this.suffix:r.value+this.decimalMarker+"0".repeat(o)+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 s=r&&(r.value===this._maskService.prefix?this._maskService.prefix+this._maskService.maskIsShown:r.value);r&&r.value!==s&&(r.value=s),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 Ls(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 o=r._maskService.currentLocaleDecimalMarker();Array.isArray(r._maskService.decimalMarker)||(i=r._maskService.decimalMarker!==o?i.replace(o,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 o=this._maskExpressionArray[this._maskExpressionArray.length-1]??"";this._maskValue=this.maskExpression=this._maskService.maskExpression=o.includes("{")?this._maskService._repeatPatternSymbols(o):o}}else{const i=this._inputValue?.split("").every((o,s)=>{const u=t.charAt(s);return this._maskService._checkSymbolMask(o,u)});if(i)return this._maskValue=this.maskExpression=this._maskService.maskExpression=t,i}})}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=le({type:e,selectors:[["input","mask",""],["textarea","mask",""]],hostBindings:function(t,r){1&t&&ge("paste",function(){return r.onPaste()})("ngModelChange",function(o){return r.onModelChange(o)})("input",function(o){return r.onInput(o)})("compositionstart",function(o){return r.onCompositionStart(o)})("compositionend",function(o){return r.onCompositionEnd(o)})("blur",function(o){return r.onBlur(o)})("click",function(o){return r.onClick(o)})("keydown",function(o){return r.onKeyDown(o)})},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:[it([{provide:ar,useExisting:Ne(()=>e),multi:!0},{provide:cn,useExisting:Ne(()=>e),multi:!0},fb]),Ur]}),e})();function F$(e,n){return n instanceof Function?{...e,...n()}:{...e,...n}}let RP=(()=>{class e{static forRoot(t){return{ngModule:e,providers:[{provide:NP,useValue:t},{provide:OP,useValue:x$},{provide:lm,useFactory:F$,deps:[OP,NP]},fb]}}static forChild(){return{ngModule:e}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=zt({type:e}),e.\u0275inj=Et({}),e})();const L$=[[["prefix"]],[["suffix"]]],V$=["prefix","suffix"];let hb=(()=>{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 Ge}ngOnInit(){this.initFormControl()}initFormControl(){this.formControl=this.injector.get(to)}get isInvalidControl(){return"invalid"===this.status||function M$(e){const{invalid:n,pristine:t,touched:r}=e;return!(!n||!r||t)}(this.formControl)&&this.validate}setValue(t){this.value=E3(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=E3(t),this.cdr.detectChanges()}setDisabledState(t){this.disabled=t,this.cdr.detectChanges()}static#e=this.\u0275fac=function(r){return new(r||e)(P(Mu),P(tt))};static#t=this.\u0275cmp=Ye({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:[it([{provide:ar,useExisting:Ne(()=>e),multi:!0}])],ngContentSelectors:V$,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 o=xt();(function eS(e){const n=N()[yt][on];if(!n.projection){const r=n.projection=vf(e?e.length:1,null),i=r.slice();let o=n.child;for(;null!==o;){if(128!==o.type){const s=e?f6(o,e):0;null!==s&&(i[s]?i[s].projectionNext=o:r[s]=o,i[s]=o)}o=o.next}}})(L$),j(0,"div",1)(1,"div",2),ov(2),B(),j(3,"div",3)(4,"input",4,0),ge("ngModelChange",function(u){return ye(o),ve(i.setValue(u))})("blur",function(){return ye(o),ve(i.onTouched())})("paste",function(u){return ye(o),ve(i.paste(u))}),B()(),j(6,"div",2),ov(7,1),B()()}2&r&&(Dn("transparent",i.transparent)("invalid",i.isInvalidControl),A(4),Z("type",i.type)("placeholder",i.placeholder)("minlength",i.minlength)("maxlength",i.maxlength)("mask",i.mask)("dropSpecialCharacters",i.dropSpecialCharacters)("ngModel",i.value),Jt("data-locator",i.formControlName||i.placeholder)("autocomplete",i.autocomplete))},dependencies:[R$,Wp,no,cm,md,Gs],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 FP=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}(FP||{});let dm=(()=>{class e{transform(t,r,i=null,o=null){const[s]=N_()(t);if(!s)return"code"===r&&o?o[i]:i;switch(r){case"logo":return this.getLogo(s);case"payment-system":return s.niceType;case"card-number-mask":return"0000 0000 0000 0000 000";case"secure-text":return FP[s.type];case"code":if(o){const c=o[s.code.name];if(c)return c}return s.code.name;case"code-mask":{const{size:u}=s.code;return Array.from({length:u}).fill("0").join("")}}}getLogo(t){if(t)return`https://cdn.motopays.com/images/${Ou[t.type]||Ou.default}.svg`}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275pipe=Ot({name:"cardInfo",type:e,pure:!0})}return e})(),LP=(()=>{class e{constructor(){this.selectEvent=new Ge,this.removeEvent=new Ge,this.optionsClickedEvent=new Ge,this.isOpenPopup=!1,this.popupId=function NH(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=Ye({type:e,selectors:[["moto-card"]],hostBindings:function(r,i){1&r&&ge("click",function(s){return i.hidePopup(s.target)},0,N1)},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&&(j(0,"div",0),ge("click",function(s){return i.select(s)}),je(1,"div",1),Ue(2,"slice"),je(3,"moto-picture",2),Ue(4,"cardInfo"),j(5,"span",3),ue(6),Ue(7,"cardInfo"),B(),j(8,"span",4),ue(9),Ue(10,"slice"),B(),j(11,"div",5)(12,"i",6),ge("click",function(s){return i.onOptionsClick(s)}),ue(13,"more_vert"),B(),j(14,"div",7)(15,"span",8),Ue(16,"slice"),ge("click",function(s){return i.remove(s)}),ue(17),B()()()()),2&r&&(A(),Dn("selected",i.option.selected()),Z("id","select-card-"+en(2,11,i.option.item.name,-6)+"-button"),A(2),Z("src",en(4,14,i.option.item.name,"logo")),A(3),Lt(en(7,17,i.option.item.name,"payment-system")),A(3),Lt(en(10,20,i.option.item.name,-6)),A(2),Jt("data-card-popup",i.popupId),A(3),Dn("open",i.isOpenPopup),A(),Z("id","remove-card-"+en(16,23,i.option.item.name,-6)+"-button"),A(2),Lt(i.language.existingCards.removeCard))},dependencies:[Nu,e_,dm],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 j$(e,n){if(1&e){const t=xt();j(0,"moto-card",9),ge("select",function(i){return ye(t),ve($().selectCard(i))})("remove",function(i){return ye(t),ve($().removeCard(i))})("optionsClicked",function(i){return ye(t),ve($().onOptionsClick(i))}),B()}if(2&e){const t=n.$implicit;$();const r=rt(0);Z("option",t)("language",r)}}function B$(e,n){if(1&e&&(j(0,"span",10),ue(1),B()),2&e){$(2);const t=rt(0);Z("@ANTransform",void 0),A(),Lt(t.errors.invalidCvv)}}function H$(e,n){if(1&e){const t=xt();me(0,B$,2,2,"span",10),j(1,"div",11)(2,"moto-form-input",12),Ue(3,"cardInfo"),Ue(4,"cardInfo"),ge("ngModelChange",function(i){return ye(t),ve($().onCvvChange(i))}),j(5,"div",13),Ue(6,"cardInfo"),j(7,"i",14),ue(8,"error"),B()()()()}if(2&e){$();const t=rt(0),r=rt(1),i=rt(2);_e(i?0:-1),A(),Dn("invalid",i),A(),Z("mask",To(3,11,r.name,"code-mask","000"))("dropSpecialCharacters",!1)("placeholder",mv(4,15,r.name,"code","CVV",t.requisites.cvvPlaceholder))("transparent",!0)("validate",!1)("status",i?"invalid":"valid")("ngModel",r.cvv),A(3),Jt("data-tooltip",To(6,20,r.name,"secure-text",t.requisites.cvvHint))}}function G$(e,n){if(1&e){const t=xt();j(0,"button",15),ge("click",function(){return ye(t),ve($().showCardForm())})("focusin",function(){return ye(t),ve($().onAddCardFocus())}),j(1,"i",16),ue(2,"add"),B(),j(3,"span",17),ue(4),B()()}if(2&e){$();const t=rt(0);A(4),Lt(t.existingCards.addNewCard)}}let pb=(()=>{class e{constructor(t,r,i,o){this.billingProfiles=t,this.context=r,this.toastr=i,this.refreshService=o,this.isCardListShown=we(!0),this.selectedCard=we(void 0),this.isCvvError=De(()=>{const s=this.selectedCard(),u=this.isCardFormVisible();return!(!s?.updateCardDetails||(s?.cvv||u)&&function tG(e,n){if(!e||!n)return!1;const[t]=N_()(e),r=!!t?.code.size&&!!n,i=zn.card.code.lengths[t?.type];return r&&(t?.code.size===n?.length||i?.includes(n?.length??0))}(s?.name,s?.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=De(()=>this.loadedExistingCards().map(u=>new $H(u))),ap(()=>{const s=this.cardOptions();s?.length&&br(()=>{this.selectCardImpl(s[0],s)})}),ap(()=>{const s=this.isCvvError();br(()=>{this.componentState.update(u=>({...u,isValid:!s}))})})}showCardForm(){this.context.events.analytics.emit(new Qe("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 Qe("remove-card-button-click",{last4Digits:t.name.slice(-4)})),this.billingProfiles.removeCard(t.id).subscribe(r=>{this.refreshService.refreshExistingCards(this.loadedExistingCards().filter(o=>o.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 Qe("cards-toggle-button-click",{toggle:this.isCardListShown()}))}onOptionsClick(t){this.context.events.analytics.emit(new Qe("card-options-button-click",{last4Digits:t.item.name.slice(-4)}))}selectCard(t){this.context.events.analytics.emit(new Qe("select-card-button-click",{last4Digits:t.item.name.slice(-4)})),this.selectCardImpl(t,this.cardOptions())}onAddCardFocus(){this.context.events.analytics.emit(new Qe("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(o=>o.selected())?.setSelected(!1),t.setSelected(!0),this.selectedCard.set(t.item),this.context.data.userProvidedInfo.update(o=>({...o,paymentSystemName:"card",requisites:{type:"existing-card",value:t.item}})),this.cardFormState().enabled&&this.cardFormState.update(o=>({...o,enabled:!1}))}resetSelected(){this.getSelectedCard()?.setSelected(!1),this.selectedCard.set(void 0)}static#e=this.\u0275fac=function(r){return new(r||e)(P(H_),P(Je),P(od),P(z_))};static#t=this.\u0275cmp=Ye({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 o=xt();nr(0)(1)(2),j(3,"div",0)(4,"div",1),ge("click",function(){return ye(o),ve(i.toggleCardList())}),j(5,"span",2),ue(6),B(),j(7,"i",3),ue(8,"keyboard_arrow_up"),B()(),j(9,"div",4)(10,"div",5),Gn(11,j$,1,2,"moto-card",6,Yr),B()(),me(13,H$,9,24,"div",7)(14,G$,5,1,"button",8),B()}if(2&r){const o=pn(i.settings().language);A();const s=pn(i.selectedCard());A(),pn(i.isCvvError()&&i.componentState().canShowError),A(4),Lt(o.existingCards.manageCardsHeader),A(),Dn("active",i.isCardListShown()),A(2),Z("@ANToggleList",i.isCardListShown()?"show":"hide"),A(2),Un(i.cardOptions()),A(2),_e(null!=s&&s.updateCardDetails&&i.isCardListShown()?13:-1),A(),_e(i.isCardFormVisible()?-1:14)}},dependencies:[no,Gs,hb,LP,dm],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:[KH,XH,QH({animationName:"ANToggleList",fromState:"hide",toState:"show",fromStyles:{height:"0px",overflow:"hidden"},toStyles:{height:"*"}})]},changeDetection:0})}return e})(),VP=(()=>{class e{constructor(){this.detector$=new wt}detectChanges(){this.detector$.next()}listenChangeDetection(){return this.detector$.asObservable()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Y({token:e,factory:e.\u0275fac})}return e})(),fm=(()=>{class e{constructor(t){this.injector=t,this.unsubscriber$=new wt,this.childrenDetector$=new wt}ngOnDestroy(){this.unsubscribe()}listenChildrenDetection(t){const r="local"===t,i="global"===t,o="full"===t;this.childrenDetector$.asObservable().pipe(kP(10),this.untilDestroy()).subscribe(()=>{(r||o)&&this.localDetect(),(i||o)&&this.globalDetect()})}localDetect(){this.injector.get(Mu).detectChanges()}globalDetect(){this.injector.get(VP).detectChanges()}detect(){this.localDetect(),this.globalDetect()}untilDestroy(){return function U$(e){return gn((n,t)=>{Jr(e).subscribe(Qt(t,()=>t.complete(),co)),!t.closed&&n.subscribe(t)})}(this.unsubscriber$.asObservable())}unsubscribe(){this.unsubscriber$.next()}static#e=this.\u0275fac=function(r){return new(r||e)(P(tt))};static#t=this.\u0275cmp=Ye({type:e,selectors:[["ng-component"]],decls:0,vars:0,template:function(r,i){},encapsulation:2})}return e})();class hm{static luhnAlgorithm({value:n}){return n&&function $$(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),[o,s,u,c]=n.split(""),d=`${o}${s}`;return+d<1||+d>12||+`${u}${c}`<i?t:void 0}return t}static cardNumberLength({value:n}){const t=n?.length||0;return t>=zn.card.number.length.min&&t<=zn.card.number.length.max?void 0:{cardLength:!0}}static cardCodeLength(n="cardNumber"){return({value:t,parent:r})=>{const i=r?.get(n),[o]=N_()(i?.value),s=!!o?.code.size&&!!t,u=zn.card.code.lengths[o?.type];return s&&(o?.code.size===t?.length||u?.includes(t?.length))?null:{cardCodeLength:!0}}}}function z$(e,n){if(1&e&&(j(0,"span",4),ue(1),B()),2&e){const t=$();Z("@ANTransform",void 0),A(),Lt(t.paymentsErrorMsg())}}function q$(e,n){if(1&e&&(j(0,"span",15),ue(1),B()),2&e){$();const t=rt(2);Z("@ANTransform",void 0),A(),Lt(t.errors.invalidCardHolder)}}let jP=(()=>{class e extends fm{constructor(t,r,i){super(t),this.injector=t,this.fb=r,this.context=i,this.constants=zn}ngOnInit(){this.settings=this.context.data.settings,this.componentState=this.context.componentsStates.cardForm,this.initForm(),this.initComputedFields(),db(this.form,this.componentState,this,()=>!!this.settings().requiredFieldsBehavior?.markAsInvalidUntilCorrect,this.areRequiredFieldsFilled,this.onUpdate,this.context)}pasteCardNumber(t){const r=function SU(e){return e.replace(/\s/g,"")}(t);this.form.get("cardCredentials").get("cardNumber").setValue(r,{onlySelf:!0}),function A$(e,n,t=null,r=!0){n.forEach(i=>{const o=e.get(i);o||function D$(e){throw new Error(e)}(`Invalid form control name: "${i}"`),o.reset(t),r&&o.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 Qe("card-number-field-focus"),!0);break;case"cvv":this.context.events.analytics.emit(new Qe("cvv-field-focus"),!0);break;case"holder":this.context.events.analytics.emit(new Qe("card-holder-field-focus"),!0);break;case"expiration":this.context.events.analytics.emit(new Qe("expiration-date-field-focus"),!0)}}initForm(){this.form=this.fb.group({cardCredentials:this.fb.group({cardNumber:[null,[Ii.required,hm.luhnAlgorithm,hm.cardNumberLength]],expiration:[null,[Ii.required,Ii.minLength(4),Ii.maxLength(4),hm.cardExpiration]],cvv:[null,[Ii.required,hm.cardCodeLength()]]}),cardHolder:[null,[Ii.required,Ii.maxLength(zn.card.holder.length.max)]]})}initComputedFields(){this.isCredentialsErrorShown=De(()=>{const t=this.form.get("cardCredentials");return this.componentState().canShowError&&t.invalid}),this.isCardHolderErrorShown=De(()=>{const t=this.form.get("cardHolder");return this.componentState().canShowError&&t.invalid}),this.paymentDetailsHeader=De(()=>{const t=this.settings();return`${t.language.requisites.paymentDetailsHeader}${this.componentState().isRequired&&t.requiredFieldsBehavior?.showStars?" *":""}`}),this.nameOnCardHeader=De(()=>{const t=this.settings();return`${t.language.requisites.cardHolderHeader}${this.componentState().isRequired&&t.requiredFieldsBehavior?.showStars?" *":""}`}),this.paymentsErrorMsg=De(()=>{const t=this.form.get("cardCredentials"),[r]=function P$(e){return function I$(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:o}=t;r.data.userProvidedInfo.update(s=>({...s,paymentSystemName:"card",requisites:{type:"card",value:{cvv:i.cvv,expiration:i.expiration,number:i.cardNumber,holder:o}}}))}static#e=this.\u0275fac=function(r){return new(r||e)(P(tt),P(lb),P(Je))};static#t=this.\u0275cmp=Ye({type:e,selectors:[["moto-card-form"]],features:[Ve],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 o=xt();nr(0)(1)(2),j(3,"form",0)(4,"div",1)(5,"div",2)(6,"h6",3),ue(7),B(),me(8,z$,2,2,"span",4),B(),j(9,"div",5)(10,"moto-form-input",6),Ue(11,"cardInfo"),ge("paste",function(u){return ye(o),ve(i.pasteCardNumber(u))})("focusin",function(){return ye(o),ve(i.onFocus("number"))}),je(12,"moto-picture",7),Ue(13,"cardInfo"),B(),je(14,"div",8),j(15,"div",9)(16,"moto-form-input",10),ge("focusin",function(){return ye(o),ve(i.onFocus("expiration"))}),B(),je(17,"div",11),j(18,"moto-form-input",12),Ue(19,"cardInfo"),Ue(20,"cardInfo"),ge("focusin",function(){return ye(o),ve(i.onFocus("cvv"))}),j(21,"div",13),Ue(22,"cardInfo"),j(23,"i",14),ue(24,"error"),B()()()()()(),j(25,"div",1)(26,"div",2)(27,"h6",3),ue(28),B(),me(29,q$,2,2,"span",15),B(),j(30,"div",16)(31,"moto-form-input",17),ge("focusin",function(){return ye(o),ve(i.onFocus("holder"))}),B()()()()}if(2&r){const o=i.isCardHolderErrorShown(),s=i.isCredentialsErrorShown();A(2);const u=pn(i.settings().language);A(),Z("formGroup",i.form),A(4),nt(" ",i.paymentDetailsHeader()," "),A(),_e(s?8:-1),A(),Dn("invalid",s),A(),Z("placeholder",u.requisites.cardNumberPlaceholder)("mask",To(11,29,i.form.value.cardCredentials.cardNumber,"card-number-mask","0000 0000 0000 0000"))("transparent",!0)("validate",!1)("status",s?"invalid":"valid"),A(2),Z("src",en(13,33,i.form.value.cardCredentials.cardNumber,"logo")),A(4),Z("placeholder",u.requisites.cardExpirationPlaceholder)("transparent",!0)("validate",!1)("status",s?"invalid":"valid"),A(2),Z("mask",To(19,36,i.form.value.cardCredentials.cardNumber,"code-mask","000"))("dropSpecialCharacters",!1)("placeholder",mv(20,40,i.form.value.cardCredentials.cardNumber,"code","CVV",u.requisites.cvvPlaceholder))("transparent",!0)("validate",!1)("status",s?"invalid":"valid"),A(3),Jt("data-tooltip",To(22,45,i.form.value.cardCredentials.cardNumber,"secure-text",u.requisites.cvvHint)),A(7),nt(" ",i.nameOnCardHeader()," "),A(),_e(o?29:-1),A(2),Z("placeholder",u.requisites.cardHolderPlaceholder)("maxlength",i.constants.card.holder.length.max)("validate",!1)("status",o?"invalid":"valid")}},dependencies:[sm,no,Kp,md,Uu,pd,am,Nu,hb,dm],data:{animation:[Vp()]},changeDetection:0})}return e})();function W$(e,n){if(1&e&&(j(0,"span",4),ue(1),B()),2&e){$();const t=rt(0);Z("@ANTransform",void 0),A(),nt(" ",t.errors.invalidPhoneNumber,"")}}let BP=(()=>{class e extends fm{constructor(t,r,i){super(t),this.injector=t,this.fb=r,this.context=i,this.phoneConstants=zn.phoneNumber}ngOnInit(){this.componentState=this.context.componentsStates.additionalForm,this.cardFormState=this.context.componentsStates.cardForm,this.settings=this.context.data.settings,this.initComputed(),this.initForm(),db(this.form,this.componentState,this,()=>!!this.settings().requiredFieldsBehavior?.markAsInvalidUntilCorrect,t=>!!t.phoneNumber)}onFocus(){this.context.events.analytics.emit(new Qe("number-field-focus"),!0)}initForm(){this.form=this.fb.group({phoneNumber:["",[Ii.minLength(zn.phoneNumber.length.min),Ii.maxLength(zn.phoneNumber.length.max)]]})}initComputed(){this.header=De(()=>{const t=this.settings();return`${t.language.phone.header}${this.componentState().isRequired&&t.requiredFieldsBehavior?.showStars?" *":""}`}),this.isErrorShown=De(()=>{const t=this.componentState();return t.canShowError&&!t.isValid})}static#e=this.\u0275fac=function(r){return new(r||e)(P(tt),P(lb),P(Je))};static#t=this.\u0275cmp=Ye({type:e,selectors:[["moto-additional-form"]],features:[Ve],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 o=xt();nr(0)(1),j(2,"form",0)(3,"div",1)(4,"div",2)(5,"h6",3),ue(6),B(),me(7,W$,2,2,"span",4),B(),j(8,"div",5)(9,"moto-form-input",6),ge("focusin",function(){return ye(o),ve(i.onFocus())}),B()()()()}if(2&r){const o=pn(i.settings().language),s=i.isErrorShown();A(2),Z("formGroup",i.form),A(4),Lt(i.header()),A(),_e(s?7:-1),A(2),Z("placeholder",o.phone.placeholder)("minlength",i.phoneConstants.length.min)("maxlength",i.phoneConstants.length.max)("validate",!1)("status",s?"invalid":"valid")}},dependencies:[sm,no,Kp,cm,md,Uu,pd,hb],data:{animation:[Vp()]},changeDetection:0})}return e})(),$u=(()=>{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)(P(h_,16))};static#t=this.\u0275pipe=Ot({name:"linkify",type:e,pure:!0})}return e})();function Z$(e,n){if(1&e){const t=xt();j(0,"label",5)(1,"input",6),ge("ngModelChange",function(i){ye(t);const o=$(),s=o.$implicit,u=o.$index;return ve($(2).onChange(s,u,i))})("focusin",function(){ye(t);const i=$(),o=i.$implicit,s=i.$index;return ve($(2).onFocus(o,s))}),B(),je(2,"span",7)(3,"span",8),Ue(4,"linkify"),B()}if(2&e){const t=$(),r=t.$implicit,i=t.$index,o=$(2),s=rt(1),u=rt(2);A(),Z("name","charge-term-"+i)("id","charge-term-"+i)("formControlName",i),A(),Dn("circle","circle"===(null==s?null:s.shape))("square","square"===(null==s?null:s.shape))("invalid",u&&!o.form.get("checkboxes").get(i.toString()).value),A(),Z("innerHTML",en(4,10,r,"__ndb-settings-checkboxes-checkbox-link fz-12 fw-500 font-description"),wi)}}function Y$(e,n){1&e&&me(0,Z$,5,13,"label",5),2&e&&_e(n.$implicit?0:-1)}function K$(e,n){if(1&e&&(j(0,"form",1),Cu(1,4),Gn(2,Y$,1,1,null,null,Yr),Eu(),B()),2&e){const t=$(),r=rt(1);Z("formGroup",t.form),A(2),Un(r.checkboxes)}}function X$(e,n){if(1&e&&(j(0,"p",2),Ue(1,"linkify"),ue(2),B()),2&e){$();const t=rt(1);Z("innerHTML",en(1,2,t.text,"fz-12 fw-500 font-description"),wi),A(2),nt(" ",t.text," ")}}function Q$(e,n){if(1&e&&(j(0,"span",3),ue(1),B()),2&e){$();const t=rt(0);Z("@ANTransform",void 0),A(),nt(" ",t.language.errors.notCheckedCheckboxes," ")}}let HP=(()=>{class e extends fm{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=De(()=>this.componentState().canShowError&&!this.componentState().isValid),this.initForm()?db(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 Qe(i?`charge-term-checkbox-${r}-check`:`charge-term-checkbox-${r}-uncheck`,{text:t}))}onFocus(t,r){this.context.events.analytics.emit(new Qe(`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,Ii.requiredTrue));return this.form=this.fb.group({checkboxes:this.fb.array(r)}),!0}static#e=this.\u0275fac=function(r){return new(r||e)(P(Je),P(tt),P(lb))};static#t=this.\u0275cmp=Ye({type:e,selectors:[["moto-charge-terms"]],features:[Ve],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&&(nr(0)(1)(2),j(3,"div",0),me(4,K$,4,1,"form",1)(5,X$,3,5,"p",2)(6,Q$,2,2,"span",3),B()),2&r){const o=pn(i.settings());A();const s=pn(o.chargeTerms);A();const u=pn(i.isErrorShown());A(2),_e(null!=s.checkboxes&&s.checkboxes.length?4:-1),A(),_e(s.text?5:-1),A(),_e(u?6:-1)}},dependencies:[sm,sd,no,Kp,Uu,pd,um,$u],data:{animation:[Vp()]},changeDetection:0})}return e})();function mb(e){const n=function ez(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 s=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 s=s.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>"),s}vk();class pm{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 GP=(()=>{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)(P(D3,16))};static#t=this.\u0275pipe=Ot({name:"currencySymbol",type:e,pure:!0})}return e})(),nz=(()=>{class e{transform(t,r,i){return G_(t,r,i)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275pipe=Ot({name:"price",type:e,pure:!0})}return e})();function rz(e,n){if(1&e&&(j(0,"span",4),ue(1),B()),2&e){$();const t=rt(3);A(),Lt(t.taxDescription)}}function iz(e,n){if(1&e&&(je(0,"div",9),j(1,"div",10),je(2,"moto-picture",11),Ue(3,"cardInfo"),j(4,"span",12),ue(5),Ue(6,"slice"),B()()),2&e){const t=n;A(2),Z("src",en(3,2,t.name,"logo")),A(3),nt(" \u2022\u2022",en(6,5,t.name,-4)," ")}}let UP=(()=>{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=De(()=>{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 Qe("pay-button-click")),!this.context.computed.paymentAvailability().canPay.byCard)return void this.context.updateCanShowError(!0);this.windowService.tryOpenBlankWindow(mb(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 Qe("pay-button-focus"),!0)}static#e=this.\u0275fac=function(r){return new(r||e)(P(Je),P(Bu),P(pm))};static#t=this.\u0275cmp=Ye({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 o=xt();nr(0)(1)(2)(3),j(4,"div",0)(5,"div",1)(6,"span",2),ue(7),B(),j(8,"span",3),ue(9),Ue(10,"price"),Ue(11,"currencySymbol"),B()(),me(12,rz,2,1,"span",4),j(13,"button",5),ge("click",function(){return ye(o),ve(i.pay())})("focusin",function(){return ye(o),ve(i.onFocus())}),j(14,"div",6)(15,"div",7)(16,"span"),ue(17),j(18,"span",8),ue(19),Ue(20,"price"),Ue(21,"currencySymbol"),B()()(),me(22,iz,7,8),B()()()}if(2&r){let o;const s=i.payment(),u=i.paymentAvailability(),c=i.settings();A(3);const d=pn(c.language);A(4),Lt(d.totalHeader),A(2),Lt(en(11,13,To(10,9,s.amount,s.tax,s.amountType),s.currency)),A(3),_e(c.isTaxVisible&&d.taxDescription?12:-1),A(),Z("ngClass",u.buttonDisableClass)("disabled",u.isPayButtonDisabled),A(4),nt(" ",d.pay," "),A(2),nt(" ",en(21,20,To(20,16,s.amount,s.tax,s.amountType),s.currency)," "),A(3),_e((o=i.existingCard())?22:-1,o)}},dependencies:[Yv,Nu,GP,e_,nz,dm],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})(),mm=(()=>{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]=we(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]=we(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=Y({token:e,factory:e.\u0275fac})}return e})(),sz=(()=>{class e{constructor(t,r){this.renderer=t,this.elRef=r,this.buttonClick=new Ge,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)(P(Di),P(jn))};static#t=this.\u0275dir=le({type:e,selectors:[["","motoApplePayButton",""]],inputs:{buttonStyle:"buttonStyle",locale:"locale",type:"type"},outputs:{buttonClick:"buttonClick"}})}return e})(),az=(()=>{class e{constructor(t,r,i){this.renderer=t,this.elRef=r,this.context=i,this.buttonClick=new Ge}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)(P(Di),P(jn),P(Je))};static#t=this.\u0275dir=le({type:e,selectors:[["","motoGooglePayButton",""]],outputs:{buttonClick:"buttonClick"}})}return e})(),uz=(()=>{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)(P(qr),P(Ei))};static#t=this.\u0275dir=le({type:e,selectors:[["","let",""]],inputs:{_let:[0,"let","_let"]}})}return e})();const cz=(e,n)=>n.name,lz=(e,n)=>({applepay:e,googlepay:n}),dz=e=>({$implicit:e});function fz(e,n){if(1&e){const t=xt();j(0,"div",5)(1,"span",7),ge("click",function(){return ye(t),ve($(2).apmsCollapseClick())}),ue(2),B()()}if(2&e){$(2);const t=rt(2);A(),Z("ngClass",t.apmsCollapse?"__ndb-apm-list__delimiter-text__apms-collapse":""),A(),Lt(t.apmsCollapse?t.language.apms.orUseAlternative:t.language.apms.or)}}function hz(e,n){if(1&e&&So(0,8),2&e){const t=n.$implicit,r=$(2).let;$();const i=Hh(5);Z("ngTemplateOutlet",t.logo?i:r[t.name])("ngTemplateOutletContext",function NS(e,n,t,r){return RS(N(),Cn(),e,n,t,r)}(2,dz,t))}}function pz(e,n){if(1&e&&(j(0,"div",6),Gn(1,hz,1,4,"ng-container",8,cz),B()),2&e){$(2);const t=rt(0);A(),Un(t)}}function mz(e,n){if(1&e&&(j(0,"div",4),me(1,fz,3,2,"div",5)(2,pz,3,0,"div",6),B()),2&e){let t;const r=$(),i=rt(2);A(),_e(r.cardPaymentAvailable()?1:-1),A(),_e(i.apmsCollapse&&r.apmsCollapsed&&(null===(t=r.apmsCollapsed())||void 0===t||t)?-1:2)}}function gz(e,n){if(1&e){const t=xt();j(0,"button",9),ge("focusin",function(){const i=ye(t).$implicit;return ve($().onFocus(i))})("click",function(){const i=ye(t).$implicit;return ve($().pay(i))}),je(1,"img",10),B()}if(2&e){const t=n.$implicit;$();const r=rt(1);Z("id","apm-"+(null==t?null:t.name)+"-button")("ngClass",r.elementDisableClass),A(),Z("src",t.logo,nl)("alt",t.name)}}function yz(e,n){if(1&e){const t=xt();j(0,"div",11),ge("buttonClick",function(){const i=ye(t).$implicit;return ve($().pay(i))})("focusin",function(){const i=ye(t).$implicit;return ve($().onFocus(i))}),B()}2&e&&($(),Z("ngClass",rt(1).elementDisableClass))}function vz(e,n){if(1&e){const t=xt();j(0,"div",12),ge("buttonClick",function(){const i=ye(t).$implicit;return ve($().pay(i))})("focusin",function(){const i=ye(t).$implicit;return ve($().onFocus(i))}),B()}2&e&&($(),Z("ngClass",rt(1).elementDisableClass))}let $P=(()=>{class e{constructor(t,r,i,o,s,u,c){this.context=t,this.processingService=r,this.mapper=i,this.applePayService=o,this.googlePayService=s,this.sessionStorage=u,this.windowService=c,this.apms=we([])}ngOnInit(){this.settings=this.context.data.settings,this.paymentInfo=this.context.data.payment,this.settings().apmsCollapse&&(this.apmsCollapsed=this.sessionStorage.getOrSetItemSignal(zn.keys.apmsCollapse,!0)),this.paymentAvailability=this.context.computed.paymentAvailability,this.apms=De(()=>{let t=this.context.data.loadedPaymentSystems().filter(i=>"card"!==i.name);return this.mapper.mapApms(t)}),this.cardPaymentAvailable=De(()=>this.context.componentsStates.cardForm().enabled||this.context.componentsStates.cardList().enabled)}pay(t){var i,r=this;if(this.context.events.analytics.emit(new Qe(`${t.name}-button-click`)),this.paymentAvailability().canPay.byApm)if("applepay"===t.name){const i=eo(this.settings().urls.processing,`api/applepay/${this.paymentInfo().merchantId}/merchantValidation`);this.applePayService.pay(this.paymentInfo(),i).subscribe({next:o=>{t.token=o,this.makePaymentAndRedirect(t)},error:()=>this.apmTokenError()})}else"googlepay"===t.name?this.googlePayService.pay(this.paymentInfo()).subscribe({next:(i=Ls(function*(o){t.token=o,yield r.redirectForConfirmation(),r.windowService.tryOpenBlankWindow(mb(r.settings().language)),r.makePaymentAndRedirect(t)}),function(s){return i.apply(this,arguments)}),error:()=>this.apmTokenError()}):(this.windowService.tryOpenBlankWindow(mb(this.settings().language)),this.makePaymentAndRedirect(t));else this.context.updateCanShowErrorForApm(!0)}onFocus(t){this.context.events.analytics.emit(new Qe(`${t.name}-button-focus`),!0)}apmsCollapseClick(){if(this.settings().apmsCollapse){const t=this.apmsCollapsed();this.sessionStorage.setItem(zn.keys.apmsCollapse,!t),this.context.events.analytics.emit(new Qe("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 oz(){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)(P(Je),P(Bu),P($s),P(U_),P($_),P(mm),P(pm))};static#t=this.\u0275cmp=Ye({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&&(nr(0)(1)(2),me(3,mz,3,2,"div",3)(4,gz,2,4,"ng-template",null,0,$h)(6,yz,1,1,"ng-template",null,1,$h)(8,vz,1,1,"ng-template",null,2,$h)),2&r){const o=Hh(7),s=Hh(9);pn(i.apms()),A(),pn(i.paymentAvailability()),A(),pn(i.settings()),A(),Z("let",function OS(e,n,t,r,i){return FS(N(),Cn(),e,n,t,r,i)}(4,lz,o,s))}},dependencies:[Yv,vM,sz,az,uz],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 _z(e,n){if(1&e){const t=xt();j(0,"label",3)(1,"input",4),cv("ngModelChange",function(i){ye(t);const o=$().$implicit;return function IS(e,n){const t=dD(e);return t&&e.set(n),t}(o.value,i)||(o.value=i),ve(i)}),ge("ngModelChange",function(){ye(t);const i=$(),o=i.$implicit,s=i.$index;return ve($(2).onChange(o,s))})("focusin",function(){ye(t);const i=$(),o=i.$implicit,s=i.$index;return ve($(2).onFocus(o,s))}),B(),je(2,"span",5)(3,"span",6),Ue(4,"linkify"),B()}if(2&e){const t=$().$implicit;$(2);const r=rt(0);A(),Z("name","user-preference-"+t.name)("id","user-preference-"+t.name),uv("ngModel",t.value),A(),Dn("circle","circle"===(null==r.userPreferences?null:r.userPreferences.shape))("square","square"===(null==r.userPreferences?null:r.userPreferences.shape)),A(),Z("innerHTML",en(4,8,t.text,"__ndb-settings-checkboxes-checkbox-link fz-12 fw-500 font-description"),wi)}}function bz(e,n){1&e&&me(0,_z,5,11,"label",3),2&e&&_e(n.$implicit.text?0:-1)}function wz(e,n){if(1&e&&(j(0,"div",1),Gn(1,bz,1,1,null,null,Yr),B()),2&e){const t=$();A(),Un(t.userPreferenceCheckboxes)}}function Cz(e,n){1&e&&(je(0,"p",2),Ue(1,"linkify")),2&e&&($(),Z("innerHTML",en(1,1,rt(0).userPreferences.text,"fz-12 fw-500 font-description"),wi))}let zP=(()=>{class e extends fm{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(o=>({...o,userPreferences:this.userPreferenceCheckboxes}));this.context.events.analytics.emit(new Qe(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 Qe(`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)(P(tt),P(Je))};static#t=this.\u0275cmp=Ye({type:e,selectors:[["moto-user-preferences"]],features:[Ve],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&&(nr(0),j(1,"div",0),me(2,wz,3,0,"div",1)(3,Cz,2,4,"p",2),B()),2&r){const o=pn(i.settings());A(2),_e(i.userPreferenceCheckboxes.length?2:-1),A(),_e(null!=o&&null!=o.userPreferences&&o.userPreferences.text?3:-1)}},dependencies:[sd,no,Gs,$u],changeDetection:0})}return e})();function Ez(e,n){1&e&&(j(0,"span",4),ue(1,"\xb7"),B())}function Dz(e,n){if(1&e&&(j(0,"a",3),ue(1),B(),me(2,Ez,2,0,"span",4)),2&e){const t=n.$implicit,r=n.$index,i=n.$count;Z("href",t.href,nl),A(),nt(" ",t.text," "),A(),_e(r!==i-1?2:-1)}}function Sz(e,n){if(1&e&&(j(0,"div",1),Gn(1,Dz,3,3,null,null,Yr),B()),2&e){$(2);const t=rt(0);A(),Un(t.links)}}function Tz(e,n){1&e&&(je(0,"p",2),Ue(1,"linkify")),2&e&&($(2),Z("innerHTML",en(1,1,rt(0).text,"__ndb-merchant-info-checkbox-link fz-12 fw-500 font-description"),wi))}function Mz(e,n){if(1&e&&(j(0,"div",0),me(1,Sz,3,0,"div",1)(2,Tz,2,4,"p",2),B()),2&e){$();const t=rt(0);A(),_e(null!=t.links&&t.links.length?1:-1),A(),_e(t.text?2:-1)}}let qP=(()=>{class e{constructor(t){this.context=t}ngOnInit(){this.settings=this.context.data.settings}static#e=this.\u0275fac=function(r){return new(r||e)(P(Je))};static#t=this.\u0275cmp=Ye({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&&(nr(0),me(1,Mz,3,2,"div",0)),2&r){const o=pn(i.settings().merchantInfo);A(),_e(null!=o.links&&o.links.length||o.text?1:-1)}},dependencies:[$u],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})(),WP=(()=>{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=Ot({name:"image",type:e,pure:!0})}return e})();function Iz(e,n){1&e&&(je(0,"moto-picture",3),Ue(1,"image")),2&e&&Z("src",Rl(1,1,"visa-secure.svg"))}function Pz(e,n){1&e&&(je(0,"moto-picture",3),Ue(1,"image")),2&e&&Z("src",Rl(1,1,"master-card-secure.svg"))}function Az(e,n){if(1&e&&(j(0,"div",0)(1,"p",1),ue(2),B(),j(3,"div",2),me(4,Iz,2,3,"moto-picture",3)(5,Pz,2,3,"moto-picture",3),B()()),2&e){const t=$();A(2),nt(" ",t.settings().language.transactionProtectedBy," "),A(2),_e(t.isVisaAvailable()?4:-1),A(),_e(t.isMastercardAvailable()?5:-1)}}let ZP=(()=>{class e{constructor(t){this.context=t}ngOnInit(){this.settings=this.context.data.settings,this.isMastercardAvailable=De(()=>!!this.settings().availableCardBrands?.some(t=>"mastercard"===t)),this.isVisaAvailable=De(()=>!!this.settings().availableCardBrands?.some(t=>"visa"===t))}static#e=this.\u0275fac=function(r){return new(r||e)(P(Je))};static#t=this.\u0275cmp=Ye({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&&me(0,Az,6,3,"div",0),2&r&&_e(i.isMastercardAvailable()||i.isVisaAvailable()?0:-1)},dependencies:[Nu,WP],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})(),YP=(()=>{class e{constructor(t){this.context=t}ngOnInit(){this.settings=this.context.data.settings}static#e=this.\u0275fac=function(r){return new(r||e)(P(Je))};static#t=this.\u0275cmp=Ye({type:e,selectors:[["moto-no-payments"]],decls:2,vars:1,consts:[[1,"__ndb-no-methods"]],template:function(r,i){1&r&&(j(0,"h2",0),ue(1),B()),2&r&&(A(),nt(" ",i.settings().language.noAvailablePaymentMethods,"\n"))},styles:[".__ndb-no-methods[_ngcontent-%COMP%]{text-align:center}"],changeDetection:0})}return e})(),xz=(()=>{class e{constructor(){this.shape="circle",this.invalid=!1,this.inputFocus=new Ge,this.value=we("unchecked"),this.disabled=we(!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=Ye({type:e,selectors:[["moto-checkbox"]],inputs:{id:"id",text:"text",shape:"shape",invalid:"invalid"},outputs:{inputFocus:"inputFocus"},features:[it([{provide:ar,useExisting:Ne(()=>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&&(j(0,"label",0)(1,"input",1),ge("ngModelChange",function(s){return i.onValueChanged(s)})("focusin",function(s){return i.onInputFocus(s)})("blur",function(){return i.onBlur()}),B(),je(2,"span",2)(3,"span",3),Ue(4,"linkify"),B()),2&r&&(A(),Z("name",i.id)("id",i.id)("disabled",i.disabled())("ngModel","checked"===i.value()),A(),Dn("circle","circle"===i.shape)("square","square"===i.shape)("intermediate","intermediate"===i.value())("invalid",i.invalid),A(),Z("innerHTML",en(4,13,i.text,"__ndb-checkbox-link fz-12 fw-500 font-description"),wi))},dependencies:[sd,no,Gs,$u],changeDetection:0})}return e})();const kz=(e,n)=>n.id;function Nz(e,n){if(1&e){const t=xt();j(0,"moto-checkbox",5),ge("inputFocus",function(){return ye(t),ve($(2).onMasterFocus())})("ngModelChange",function(i){return ye(t),ve($(2).onMasterChange(i))}),B()}if(2&e){const t=$(2);Z("shape",t.masterShape)("text",t.masterText)("ngModel",t.masterState())}}function Oz(e,n){if(1&e){const t=xt();j(0,"moto-checkbox",7),ge("inputFocus",function(){ye(t);const i=$(),o=i.$implicit,s=i.$index;return ve($(2).onCheckboxFocus(o,s))})("ngModelChange",function(i){ye(t);const o=$(),s=o.$implicit,u=o.$index;return ve($(2).onCheckboxChange(s,u,i))}),B()}if(2&e){const t=$().$implicit,r=$(2);Dn("underMaster",r.isMaster),Z("invalid",r.showError()&&t.isRequired&&!t.value)("shape",t.shape)("text",t.text)("id",t.id)("ngModel",t.value?"checked":"unchecked")}}function Rz(e,n){1&e&&me(0,Oz,1,7,"moto-checkbox",6),2&e&&_e(n.$implicit?0:-1)}function Fz(e,n){if(1&e&&(j(0,"div",1),me(1,Nz,1,3,"moto-checkbox",4),Gn(2,Rz,1,1,null,null,kz),B()),2&e){const t=$();A(),_e(t.isMaster?1:-1),A(),Un(t.checkboxes())}}function Lz(e,n){if(1&e&&(j(0,"p",2),Ue(1,"linkify"),ue(2),B()),2&e){const t=$();Z("innerHTML",en(1,2,t.footerText,"fz-12 fw-500 font-description"),wi),A(2),nt(" ",t.footerText," ")}}function Vz(e,n){if(1&e&&(j(0,"span",3),ue(1),B()),2&e){const t=$();Z("@ANTransform",void 0),A(),nt(" ",t.errorText," ")}}let jz=(()=>{class e{constructor(){this.provideErrors=kk(!1),this.errorText="",this.isMaster=!1,this.masterText="",this.masterShape="circle",this.checkboxes=we([]),this.changed=new Ge,this.masterFocus=new Ge,this.masterClick=new Ge,this.checkboxFocus=new Ge,this.isValidChanged=new Ge,this.masterState=De(()=>{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=De(()=>this.provideErrors()&&this.checkboxes().some(t=>t.isRequired&&!t.value))}set checkboxesInput(t){this.checkboxes.set([...t])}onCheckboxChange(t,r,i){const o=[...this.checkboxes()];o[r]={...o[r],value:"checked"===i},this.checkboxes.set(o),this.changed.emit({checkboxes:o,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=Ye({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&&(j(0,"div",0),me(1,Fz,4,1,"div",1)(2,Lz,3,5,"p",2)(3,Vz,2,2,"span",3),B()),2&r&&(A(),_e(i.checkboxes().length?1:-1),A(),_e(i.footerText?2:-1),A(),_e(i.showError()?3:-1))},dependencies:[no,Gs,xz,$u],data:{animation:[Vp()]},changeDetection:0})}return e})(),KP=(()=>{class e{constructor(t){this.context=t,this.checkboxes=we([]),this.hasInvalidRequired=De(()=>this.checkboxes().some(r=>r.isRequired&&!r.value))}ngOnInit(){this.settings=this.context.data.settings,this.componentState=this.context.componentsStates.master,this.showError=De(()=>{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(o=>o.map(s=>s.id===r.id?{...s,value:r.value}:s)),this.emitAnalytics(r,i)}else{const r=t.checkboxes;this.checkboxes.update(i=>i.map(o=>{const s=r.find(u=>u.id===o.id);return s?{...o,value:s.value}:o}))}this.updateContextData(),this.updateComponentState()}onFocus(t,r){this.context.events.analytics.emit(new Qe(`${"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 Qe("master-focus"),!0)}onMasterClick(){this.context.events.analytics.emit(new Qe("master-click"))}emitAnalytics(t,r){this.context.events.analytics.emit(new Qe(`${"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((o,s)=>({id:"charge-term-"+s,initId:s.toString(),text:o,value:!1,isRequired:!0,shape:t.chargeTerms?.shape??"circle",type:"charge-terms"}))??[],i=t.userPreferences?.checkboxes?.map(o=>({id:"user-preference-"+o.name,initId:o.name,text:o.text,value:!!o.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(),o=!!this.settings().requiredFieldsBehavior?.markAsInvalidUntilCorrect,s=t.every(u=>!u.isRequired||u.value);this.componentState.update(u=>{let c={...u},d=!1;return u.filled!==s&&(c.filled=s,d=!0),!o&&i&&u.canShowError&&(c.canShowError=!1,d=!0),u.isValid!==i&&(c.isValid=i,d=!0),d?c:u})}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)(P(Je))};static#t=this.\u0275cmp=Ye({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 o=xt();nr(0)(1)(2),j(3,"moto-checkbox-container",0),ge("changed",function(u){return ye(o),ve(i.onChanged(u))})("checkboxFocus",function(u){return ye(o),ve(i.onFocus(u.checkbox,u.index))})("masterFocus",function(){return ye(o),ve(i.onMasterFocus())})("masterClick",function(){return ye(o),ve(i.onMasterClick())}),B()}if(2&r){let o,s,u,c;const d=i.settings(),f=null!==(o=null==d.chargeTerms?null:d.chargeTerms.text)&&void 0!==o?o:null==d||null==d.userPreferences?null:d.userPreferences.text,m=null!==(s=null==d.language||null==d.language.errors?null:d.language.errors.notCheckedCheckboxes)&&void 0!==s?s:"";A(3),Z("checkboxes",i.checkboxes())("isMaster",!0)("masterShape",null!==(u=null==d.master?null:d.master.shape)&&void 0!==u?u:"square")("masterText",null!==(c=null==d.master?null:d.master.text)&&void 0!==c?c:"")("provideErrors",i.showError())("footerText",f)("errorText",m)}},dependencies:[jz],changeDetection:0})}return e})(),$s=(()=>{class e{mapApms(t){return t.map(r=>({...r}))}mapPaymentRequest(t,r,i,o){let s=t.details;r.userPreferences?.length&&(s=r.userPreferences.reduce((d,f)=>(d[f.name]=f.value,d),s||{}));const u={amount:t.amount,amountType:this.mapAmountType(t.amountType),tax:t.tax,currency:t.currency,description:t.description?.substring(0,127),details:s?JSON.stringify(s):void 0,type:this.mapOrderType(t.orderType)},c={id:t.userId,email:t.email,phoneNumber:r.phoneNumber??t.phoneNumber,ipAddress:t.ipAddress,deviceInfo:o,billingAddress:t.billingAddress};return{id:t.paymentId,initiator:this.mapInitiatorType(t.initiator)??"Customer",returnUrl:t.returnUrl,webhookUrl:t.webhookUrl,order:u,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:UI,visible:r.availableCardBrands};case"no-methods":return{component:YP,visible:r.noMethods};case"card-list":return{component:pb,visible:r.cardList};case"requisites":return{component:jP,visible:r.cardForm};case"phone-number":return{component:BP,visible:r.additionalForm};case"charge-terms":return{component:HP,visible:r.chargeTerms};case"pay-button":return{component:UP,visible:r.payButton};case"apm-list":return{component:$P,visible:r.apmList};case"user-preferences":return{component:zP,visible:r.userPreferences};case"merchant-info":return{component:qP,visible:r.merchantInfo};case"protected-by":return{component:ZP,visible:r.protectedBy};case"master":return{component:KP,visible:r.master}}})}mapInterfaceSettingsToDomain(t){let r=t.languageSettings.code;t.languageSettings.languages[r]||(r="en-US");const i=t.languageSettings.languages[r],o=t.chargeTerms?{text:t.chargeTerms.text?t.chargeTerms.text[r]:void 0,checkboxes:t.chargeTerms.checkboxes?.length?t.chargeTerms.checkboxes.map(d=>d[r]).filter(d=>!!d):void 0,shape:t.chargeTerms.shape}:void 0,s=t.userPreferences?{text:t.userPreferences.text?t.userPreferences.text[r]:void 0,checkboxes:t.userPreferences.checkboxes?.length?t.userPreferences.checkboxes.map(d=>({name:d.name,defaultValue:d.defaultValue,text:d.text[r]})).filter(d=>!!d.text):void 0,shape:t.userPreferences.shape}:void 0,u=t.merchantInfo?{links:t.merchantInfo.links?.length?t.merchantInfo.links.map(d=>({href:d.href,text:d.text[r]})).filter(d=>!!d.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??HI,requiredFieldsBehavior:{buttonStateUntilFilled:t.requiredFieldsBehavior.buttonStateUntilFilled,markAsInvalidUntilCorrect:t.requiredFieldsBehavior.markAsInvalidUntilCorrect,showStars:t.requiredFieldsBehavior.showStars},resultComponentsStructure:t.resultComponentsStructure,urls:t.urls,chargeTerms:o,userPreferences:s,merchantInfo:u,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 o=t.value;return{cardHolder:o.holder,cardNumber:o.number,expiration:o.expiration,cvv:o.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=Y({token:e,factory:e.\u0275fac})}return e})(),XP=(()=>{class e{constructor(t){this.mapper=t}preparePaymentOrError(t){let r=BI(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=BI(t);const i=this.validateSettings(r);if(i)return i;const o=LH(jH,r);return this.mapper.mapInterfaceSettingsToDomain(o)}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)(l($s))};static#t=this.\u0275prov=Y({token:e,factory:e.\u0275fac})}return e})();function Bz(e,n){if(1&e){const t=xt();j(0,"div",2)(1,"i",3),ge("click",function(){return ye(t),ve($().close())}),ue(2,"close"),B()()}if(2&e){let t;$();const r=rt(0);Jt("data-tooltip",null!==(t=null==r||null==r.language?null:r.language.close)&&void 0!==t?t:"Close")}}let QP=(()=>{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)(P(Je))};static#t=this.\u0275cmp=Ye({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&&(nr(0),j(1,"header",0)(2,"h6",1),ue(3),B(),me(4,Bz,3,1,"div",2),B()),2&r){let o,s;const u=pn(i.settings());A(3),nt(" ",null!==(o=null==u||null==u.language?null:u.language.header)&&void 0!==o?o:"Checkout"," "),A(),_e(null===(s=null==u?null:u.isCloseButtonVisible)||void 0===s||s?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})(),JP=(()=>{class e{constructor(){this.shadow=!0}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=Ye({type:e,selectors:[["moto-loader"]],hostVars:1,hostBindings:function(r,i){2&r&&Fh("@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&&(j(0,"div",0),je(1,"moto-picture",1),Ue(2,"image"),B()),2&r&&(Dn("shadow",i.shadow),A(),Z("src",Rl(2,3,"spinner-small.gif")))},dependencies:[Nu,WP],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:[JH({animationName:"ANFade",fromStyles:{opacity:"0"},toStyles:{opacity:"1"}})]},changeDetection:0})}return e})();function Hz(e,n){1&e&&So(0)}function Gz(e,n){1&e&&me(0,Hz,1,0,"ng-container",0),2&e&&Z("ngComponentOutlet",$().$implicit.component)}function Uz(e,n){1&e&&me(0,Gz,1,1,"ng-container"),2&e&&_e(n.$implicit.visible()?0:-1)}function $z(e,n){1&e&&je(0,"moto-loader")}let zz=(()=>{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)(P(Je),P($s),P(z_))};static#t=this.\u0275cmp=Ye({type:e,selectors:[["moto-pay-form"]],decls:3,vars:1,consts:[[4,"ngComponentOutlet"]],template:function(r,i){1&r&&(Gn(0,Uz,1,1,null,null,S4),me(2,$z,1,0,"moto-loader")),2&r&&(Un(i.components),A(2),_e(i.isLoaderShown()?2:-1))},dependencies:[JP,_p],styles:["[_nghost-%COMP%]{display:flex;gap:28px;flex-direction:column}"],changeDetection:0})}return e})();const eA={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 qz=(()=>{class e{constructor(t){this.context=t}ngOnInit(){const t=this.context.data.state().payload;this.error=eA.errors[t.error],this.message=eA.message}static#e=this.\u0275fac=function(r){return new(r||e)(P(Je))};static#t=this.\u0275cmp=Ye({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&&(j(0,"div",0)(1,"i",1),ue(2,"cancel"),B(),j(3,"h6",2),ue(4),B(),j(5,"p",3),ue(6),B()()),2&r&&(A(4),Lt(i.error),A(2),nt(" ",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})(),Wz=(()=>{class e{constructor(t,r,i,o){this.context=t,this.processing=r,this.sessionStorage=i,this.windowService=o}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 qG(e,n,t){return e.pipe(Tt(r=>{if(n(r))return r;throw new Error(v3)}),function zG(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?$o:gn((o,s)=>{let c,u=0;const d=()=>{let f=!1;c=o.subscribe(Qt(s,m=>{i&&(u=0),s.next(m)},void 0,m=>{if(u++<t){const g=()=>{c?(c.unsubscribe(),c=null,d()):f=!0};if(null!=r){const y="number"==typeof r?g3(r):Jr(r(m,u)),_=Qt(s,()=>{_.unsubscribe(),g()},()=>{s.complete()});y.subscribe(_)}else g()}else s.error(m)})),f&&(c.unsubscribe(),c=null,d())};d()})}({delay:r=>r.message==v3?g3(t):j_(()=>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(zn.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)(P(Je),P(Bu),P(mm),P(pm))};static#t=this.\u0275cmp=Ye({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&&(j(0,"div",0)(1,"div",1)(2,"h2",2),ue(3),B(),j(4,"div",3)(5,"div",4)(6,"div",5),je(7,"div")(8,"div")(9,"div")(10,"div"),B(),je(11,"div",6),B()()()()),2&r&&(A(3),Lt(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 Zz(e,n){1&e&&So(0)}function Yz(e,n){1&e&&me(0,Zz,1,0,"ng-container",5),2&e&&Z("ngComponentOutlet",$().$implicit.component)}function Kz(e,n){1&e&&me(0,Yz,1,1,"ng-container"),2&e&&_e(n.$implicit.visible()?0:-1)}function Xz(e,n){if(1&e&&(j(0,"p",3),ue(1),B()),2&e){const t=$();A(),nt(" ",t.resultModel.description," ")}}function Qz(e,n){if(1&e&&(j(0,"li",6)(1,"p",7),ue(2),B()()),2&e){const t=n.$implicit;A(2),nt(" ",t," ")}}function Jz(e,n){if(1&e&&(j(0,"ul",4),Gn(1,Qz,3,1,"li",6,Yr),B()),2&e){const t=$();A(),Un(null==t.paymentResult.payment.rejectionDetails?null:t.paymentResult.payment.rejectionDetails.problemSolvingTips)}}function eq(e,n){1&e&&So(0)}function tq(e,n){1&e&&me(0,eq,1,0,"ng-container",5),2&e&&Z("ngComponentOutlet",$().$implicit.component)}function nq(e,n){1&e&&me(0,tq,1,1,"ng-container"),2&e&&_e(n.$implicit.visible()?0:-1)}let rq=(()=>{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)(P(Je),P($s))};static#t=this.\u0275cmp=Ye({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&&(Gn(0,Kz,1,1,null,null,Yr),j(2,"div",0)(3,"i",1),ue(4),B(),j(5,"h6",2),ue(6),B(),me(7,Xz,2,1,"p",3)(8,Jz,3,0,"ul",4),B(),Gn(9,nq,1,1,null,null,Yr)),2&r&&(Un(i.aboveComponents),A(4),Lt(i.resultModel.icon),A(2),Lt(i.resultModel.title),A(),_e(i.resultModel.description?7:-1),A(),_e(i.paymentResult&&i.settings().isProblemTipsListVisible&&null!=i.paymentResult.payment.rejectionDetails&&null!=i.paymentResult.payment.rejectionDetails.problemSolvingTips&&i.paymentResult.payment.rejectionDetails.problemSolvingTips.length?8:-1),A(),Un(i.belowComponents))},dependencies:[_p],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 iq(e,n){1&e&&So(0)}function oq(e,n){1&e&&me(0,iq,1,0,"ng-container",2),2&e&&Z("ngComponentOutlet",$().$implicit.component)}function sq(e,n){1&e&&me(0,oq,1,1,"ng-container"),2&e&&_e(n.$implicit.visible()?0:-1)}function aq(e,n){1&e&&So(0)}function uq(e,n){1&e&&me(0,aq,1,0,"ng-container",2),2&e&&Z("ngComponentOutlet",$().$implicit.component)}function cq(e,n){1&e&&me(0,uq,1,1,"ng-container"),2&e&&_e(n.$implicit.visible()?0:-1)}let lq=(()=>{class e{constructor(t,r){this.context=t,this.mapper=r,this.aboveComponents=[],this.belowComponents=[],this.confirmed=we(!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)(P(Je),P($s))};static#t=this.\u0275cmp=Ye({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&&(Gn(0,sq,1,1,null,null,Yr),j(2,"div",0)(3,"button",1),ge("click",function(){return i.onClick()}),ue(4),B()(),Gn(5,cq,1,1,null,null,Yr)),2&r&&(Un(i.aboveComponents),A(3),Z("disabled",i.confirmed()),A(),Lt(i.settings().language.confirmPayment),A(),Un(i.belowComponents))},dependencies:[_p],styles:[".__ndb-confirmation[_ngcontent-%COMP%]{padding:56px 0;text-align:center}"],changeDetection:0})}return e})();function dq(e,n){1&e&&je(0,"moto-header")}function fq(e,n){1&e&&je(0,"moto-pay-form")}function hq(e,n){1&e&&je(0,"moto-invalid-pay-form")}function pq(e,n){1&e&&je(0,"moto-processing")}function mq(e,n){1&e&&je(0,"moto-result")}function gq(e,n){1&e&&je(0,"moto-confirmation")}function yq(e,n){}let vq=(()=>{class e{constructor(t,r,i,o){this.context=t,this.dataHandler=r,this.sessionStorage=i,this.toastr=o,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,ap(()=>{this.context.computed.isLoading()?this.context.events.analytics.emit(new Qe("init-start")):this.context.events.analytics.emit(new Qe("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,RH().subscribe(t=>{this.context.data.deviceInfo.set(t)}),this.settingsSignal=De(()=>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(zn.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(),o=this.dataHandler.validateModelsCompatibility(i,r);o?this.state.set({type:"invalid",payload:{error:o}}):(this.applySettings(),this.context.callbacks.createInvoice=this.createInvoice?s=>this.createInvoice(s):void 0,this.context.callbacks.makePayment=this.makePayment?s=>this.makePayment(s):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(o=>"available-card-brands"===o))&&i.availableCardBrands.update(o=>({...o,enabled:!1,isRequired:!1})),(!t.chargeTerms?.checkboxes?.length&&!t.chargeTerms?.text||!r.some(o=>"charge-terms"===o))&&i.chargeTerms.update(o=>({...o,enabled:!1,isRequired:!1})),(!t.userPreferences?.checkboxes?.length&&!t.userPreferences?.text||!r.some(o=>"user-preferences"===o))&&i.userPreferences.update(o=>({...o,enabled:!1,isRequired:!1})),r.some(o=>"phone-number"===o)||i.additionalForm.update(o=>({...o,enabled:!1,isRequired:!1})),(!t.merchantInfo?.text&&!t.merchantInfo?.links?.length||!r.some(o=>"merchant-info"===o))&&i.merchantInfo.update(o=>({...o,enabled:!1,isRequired:!1})),r.some(o=>"apm-list"===o)||i.apmList.update(o=>({...o,enabled:!1,isRequired:!1})),r.some(o=>"requisites"===o)||i.cardForm.update(o=>({...o,enabled:!1,isRequired:!1})),r.some(o=>"card-list"===o)||i.cardList.update(o=>({...o,enabled:!1,isRequired:!1})),r.some(o=>"pay-button"===o)||i.payButton.update(o=>({...o,enabled:!1,isRequired:!1})),(!t.availableCardBrands.length||!r.some(o=>"protected-by"===o))&&i.protectedBy.update(o=>({...o,enabled:!1,isRequired:!1})),r.some(o=>"master"===o)?(i.chargeTerms.update(o=>({...o,enabled:!1,isRequired:!1})),i.userPreferences.update(o=>({...o,enabled:!1,isRequired:!1}))):i.master.update(o=>({...o,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(zn.keys.apmsCollapse,!0)}static#e=this.\u0275fac=function(r){return new(r||e)(P(Je),P(XP),P(mm),P(od))};static#t=this.\u0275cmp=Ye({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:[Ur],decls:10,vars:2,consts:[[1,"__ndb-wrapper"],[1,"__ndb-wrapper-content"],[1,"__ndb-wrapper-content-main"]],template:function(r,i){if(1&r&&(j(0,"div",0)(1,"div",1),me(2,dq,1,0,"moto-header"),j(3,"div",2),me(4,fq,1,0,"moto-pay-form")(5,hq,1,0,"moto-invalid-pay-form")(6,pq,1,0,"moto-processing")(7,mq,1,0,"moto-result")(8,gq,1,0,"moto-confirmation")(9,yq,0,0),B()()()),2&r){let o,s;A(2),_e(null===(o=null==(o=i.settingsSignal())?null:o.isHeaderVisible)||void 0===o||o?2:-1),A(2),_e("correct"===(s=i.state().type)?4:"invalid"===s?5:"payLoading"===s?6:"result"===s?7:"confirmation"===s?8:"empty"===s?9:-1)}},dependencies:[QP,zz,qz,Wz,rq,lq],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})(),tA=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=zt({type:e});static#n=this.\u0275inj=Et({})}return e})();function nA(e){return new k(3e3,!1)}function Lo(e){switch(e.length){case 0:return new ed;case 1:return e[0];default:return new $I(e)}}function rA(e,n,t=new Map,r=new Map){const i=[],o=[];let s=-1,u=null;if(n.forEach(c=>{const d=c.get("offset"),f=d==s,m=f&&u||new Map;c.forEach((g,y)=>{let _=y,C=g;if("offset"!==y)switch(_=e.normalizePropertyName(_,i),C){case"!":C=t.get(y);break;case Qi:C=r.get(y);break;default:C=e.normalizeStyleValue(y,_,C,i)}m.set(_,C)}),f||o.push(m),u=m,s=d}),i.length)throw function Hq(){return new k(3502,!1)}();return o}function gb(e,n,t,r){switch(n){case"start":e.onStart(()=>r(t&&yb(t,"start",e)));break;case"done":e.onDone(()=>r(t&&yb(t,"done",e)));break;case"destroy":e.onDestroy(()=>r(t&&yb(t,"destroy",e)))}}function yb(e,n,t){const o=vb(e.element,e.triggerName,e.fromState,e.toState,n||e.phaseName,t.totalTime??e.totalTime,!!t.disabled),s=e._data;return null!=s&&(o._data=s),o}function vb(e,n,t,r,i="",o=0,s){return{element:e,triggerName:n,fromState:t,toState:r,phaseName:i,totalTime:o,disabled:!!s}}function ur(e,n,t){let r=e.get(n);return r||e.set(n,r=t),r}function iA(e){const n=e.indexOf(":");return[e.substring(1,n),e.slice(n+1)]}const Jq=typeof document>"u"?null:document.documentElement;function _b(e){const n=e.parentNode||e.host||null;return n===Jq?null:n}let zs=null,oA=!1;function sA(e,n){for(;n;){if(n===e)return!0;n=_b(n)}return!1}function aA(e,n,t){if(t)return Array.from(e.querySelectorAll(n));const r=e.querySelector(n);return r?[r]:[]}let bb=(()=>{class e{validateStyleProperty(t){return function tW(e){zs||(zs=function nW(){return typeof document<"u"?document.body:null}()||{},oA=!!zs.style&&"WebkitAppearance"in zs.style);let n=!0;return zs.style&&!function eW(e){return"ebkit"==e.substring(1,6)}(e)&&(n=e in zs.style,!n&&oA&&(n="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in zs.style)),n}(t)}containsElement(t,r){return sA(t,r)}getParentElement(t){return _b(t)}query(t,r,i){return aA(t,r,i)}computeStyle(t,r,i){return i||""}animate(t,r,i,o,s,u=[],c){return new ed(i,o)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Y({token:e,factory:e.\u0275fac})}return e})();class wb{static#e=this.NOOP=new bb}class Cb{}const iW=1e3,Eb="ng-enter",gm="ng-leave",ym="ng-trigger",vm=".ng-trigger",cA="ng-animating",Db=".ng-animating";function ro(e){if("number"==typeof e)return e;const n=e.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:Sb(parseFloat(n[1]),n[2])}function Sb(e,n){return"s"===n?e*iW:e}function _m(e,n,t){return e.hasOwnProperty("duration")?e:function sW(e,n,t){let i,o=0,s="";if("string"==typeof e){const u=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===u)return n.push(nA()),{duration:0,delay:0,easing:""};i=Sb(parseFloat(u[1]),u[2]);const c=u[3];null!=c&&(o=Sb(parseFloat(c),u[4]));const d=u[5];d&&(s=d)}else i=e;if(!t){let u=!1,c=n.length;i<0&&(n.push(function _q(){return new k(3100,!1)}()),u=!0),o<0&&(n.push(function bq(){return new k(3101,!1)}()),u=!0),u&&n.splice(c,0,nA())}return{duration:i,delay:o,easing:s}}(e,n,t)}function Pi(e,n,t){n.forEach((r,i)=>{const o=Mb(i);t&&!t.has(i)&&t.set(i,e.style[o]),e.style[o]=r})}function qs(e,n){n.forEach((t,r)=>{const i=Mb(r);e.style[i]=""})}function gd(e){return Array.isArray(e)?1==e.length?e[0]:function zH(e,n=null){return{type:he.Sequence,steps:e,options:n}}(e):e}const Tb=new RegExp("{{\\s*(.+?)\\s*}}","g");function dA(e){let n=[];if("string"==typeof e){let t;for(;t=Tb.exec(e);)n.push(t[1]);Tb.lastIndex=0}return n}function yd(e,n,t){const r=`${e}`,i=r.replace(Tb,(o,s)=>{let u=n[s];return null==u&&(t.push(function Cq(){return new k(3003,!1)}()),u=""),u.toString()});return i==r?e:i}const cW=/-+([a-z0-9])/g;function Mb(e){return e.replace(cW,(...n)=>n[1].toUpperCase())}function cr(e,n,t){switch(n.type){case he.Trigger:return e.visitTrigger(n,t);case he.State:return e.visitState(n,t);case he.Transition:return e.visitTransition(n,t);case he.Sequence:return e.visitSequence(n,t);case he.Group:return e.visitGroup(n,t);case he.Animate:return e.visitAnimate(n,t);case he.Keyframes:return e.visitKeyframes(n,t);case he.Style:return e.visitStyle(n,t);case he.Reference:return e.visitReference(n,t);case he.AnimateChild:return e.visitAnimateChild(n,t);case he.AnimateRef:return e.visitAnimateRef(n,t);case he.Query:return e.visitQuery(n,t);case he.Stagger:return e.visitStagger(n,t);default:throw function Eq(){return new k(3004,!1)}()}}function Ib(e,n){return window.getComputedStyle(e)[n]}const fW=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 fA extends Cb{normalizePropertyName(n,t){return Mb(n)}normalizeStyleValue(n,t,r,i){let o="";const s=r.toString().trim();if(fW.has(t)&&0!==r&&"0"!==r)if("number"==typeof r)o="px";else{const u=r.match(/^[+-]?[\d\.]+([a-z]*)$/);u&&0==u[1].length&&i.push(function Dq(){return new k(3005,!1)}())}return s+o}}const bm="*";const wm=new Set(["true","1"]),Cm=new Set(["false","0"]);function hA(e,n){const t=wm.has(e)||Cm.has(e),r=wm.has(n)||Cm.has(n);return(i,o)=>{let s=e==bm||e==i,u=n==bm||n==o;return!s&&t&&"boolean"==typeof i&&(s=i?wm.has(e):Cm.has(e)),!u&&r&&"boolean"==typeof o&&(u=o?wm.has(n):Cm.has(n)),s&&u}}const gW=new RegExp("s*:selfs*,?","g");function Pb(e,n,t,r){return new yW(e).build(n,t,r)}class yW{constructor(n){this._driver=n}build(n,t,r){const i=new bW(t);return this._resetContextStyleTimingState(i),cr(this,gd(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 o=[],s=[];return"@"==n.name.charAt(0)&&t.errors.push(function Sq(){return new k(3006,!1)}()),n.definitions.forEach(u=>{if(this._resetContextStyleTimingState(t),u.type==he.State){const c=u,d=c.name;d.toString().split(/\s*,\s*/).forEach(f=>{c.name=f,o.push(this.visitState(c,t))}),c.name=d}else if(u.type==he.Transition){const c=this.visitTransition(u,t);r+=c.queryCount,i+=c.depCount,s.push(c)}else t.errors.push(function Tq(){return new k(3007,!1)}())}),{type:he.Trigger,name:n.name,states:o,transitions:s,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 o=new Set,s=i||{};r.styles.forEach(u=>{u instanceof Map&&u.forEach(c=>{dA(c).forEach(d=>{s.hasOwnProperty(d)||o.add(d)})})}),o.size&&t.errors.push(function Mq(){return new k(3008,!1)}(0,o.values()))}return{type:he.State,name:n.name,style:r,options:i?{params:i}:null}}visitTransition(n,t){t.queryCount=0,t.depCount=0;const r=cr(this,gd(n.animation),t),i=function hW(e,n){const t=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(r=>function pW(e,n,t){if(":"==e[0]){const c=function mW(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 Lq(){return new k(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 Fq(){return new k(3015,!1)}()),n;const i=r[1],o=r[2],s=r[3];n.push(hA(i,s)),"<"==o[0]&&(i!=bm||s!=bm)&&n.push(hA(s,i))}(r,t,n)):t.push(e),t}(n.expr,t.errors);return{type:he.Transition,matchers:i,animation:r,queryCount:t.queryCount,depCount:t.depCount,options:Ws(n.options)}}visitSequence(n,t){return{type:he.Sequence,steps:n.steps.map(r=>cr(this,r,t)),options:Ws(n.options)}}visitGroup(n,t){const r=t.currentTime;let i=0;const o=n.steps.map(s=>{t.currentTime=r;const u=cr(this,s,t);return i=Math.max(i,t.currentTime),u});return t.currentTime=i,{type:he.Group,steps:o,options:Ws(n.options)}}visitAnimate(n,t){const r=function CW(e,n){if(e.hasOwnProperty("duration"))return e;if("number"==typeof e)return Ab(_m(e,n).duration,0,"");const t=e;if(t.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=Ab(0,0,"");return o.dynamic=!0,o.strValue=t,o}const i=_m(t,n);return Ab(i.duration,i.delay,i.easing)}(n.timings,t.errors);t.currentAnimateTimings=r;let i,o=n.styles?n.styles:Dt({});if(o.type==he.Keyframes)i=this.visitKeyframes(o,t);else{let s=n.styles,u=!1;if(!s){u=!0;const d={};r.easing&&(d.easing=r.easing),s=Dt(d)}t.currentTime+=r.duration+r.delay;const c=this.visitStyle(s,t);c.isEmptyStep=u,i=c}return t.currentAnimateTimings=null,{type:he.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 u of i)"string"==typeof u?u===Qi?r.push(u):t.errors.push(new k(3002,!1)):r.push(new Map(Object.entries(u)));let o=!1,s=null;return r.forEach(u=>{if(u instanceof Map&&(u.has("easing")&&(s=u.get("easing"),u.delete("easing")),!o))for(let c of u.values())if(c.toString().indexOf("{{")>=0){o=!0;break}}),{type:he.Style,styles:r,easing:s,offset:n.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(n,t){const r=t.currentAnimateTimings;let i=t.currentTime,o=t.currentTime;r&&o>0&&(o-=r.duration+r.delay),n.styles.forEach(s=>{"string"!=typeof s&&s.forEach((u,c)=>{const d=t.collectedStyles.get(t.currentQuerySelector),f=d.get(c);let m=!0;f&&(o!=i&&o>=f.startTime&&i<=f.endTime&&(t.errors.push(function Pq(){return new k(3010,!1)}()),m=!1),o=f.startTime),m&&d.set(c,{startTime:o,endTime:i}),t.options&&function uW(e,n,t){const r=n.params||{},i=dA(e);i.length&&i.forEach(o=>{r.hasOwnProperty(o)||t.push(function wq(){return new k(3001,!1)}())})}(u,t.options,t.errors)})})}visitKeyframes(n,t){const r={type:he.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function Aq(){return new k(3011,!1)}()),r;let o=0;const s=[];let u=!1,c=!1,d=0;const f=n.steps.map(I=>{const T=this._makeStyleAst(I,t);let R=null!=T.offset?T.offset:function wW(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}(T.styles),L=0;return null!=R&&(o++,L=T.offset=R),c=c||L<0||L>1,u=u||L<d,d=L,s.push(L),T});c&&t.errors.push(function xq(){return new k(3012,!1)}()),u&&t.errors.push(function kq(){return new k(3200,!1)}());const m=n.steps.length;let g=0;o>0&&o<m?t.errors.push(function Nq(){return new k(3202,!1)}()):0==o&&(g=1/(m-1));const y=m-1,_=t.currentTime,C=t.currentAnimateTimings,S=C.duration;return f.forEach((I,T)=>{const R=g>0?T==y?1:g*T:s[T],L=R*S;t.currentTime=_+C.delay+L,C.duration=L,this._validateStyleAst(I,t),I.offset=R,r.styles.push(I)}),r}visitReference(n,t){return{type:he.Reference,animation:cr(this,gd(n.animation),t),options:Ws(n.options)}}visitAnimateChild(n,t){return t.depCount++,{type:he.AnimateChild,options:Ws(n.options)}}visitAnimateRef(n,t){return{type:he.AnimateRef,animation:this.visitReference(n.animation,t),options:Ws(n.options)}}visitQuery(n,t){const r=t.currentQuerySelector,i=n.options||{};t.queryCount++,t.currentQuery=n;const[o,s]=function vW(e){const n=!!e.split(/\s*,\s*/).find(t=>":self"==t);return n&&(e=e.replace(gW,"")),e=e.replace(/@\*/g,vm).replace(/@\w+/g,t=>vm+"-"+t.slice(1)).replace(/:animating/g,Db),[e,n]}(n.selector);t.currentQuerySelector=r.length?r+" "+o:o,ur(t.collectedStyles,t.currentQuerySelector,new Map);const u=cr(this,gd(n.animation),t);return t.currentQuery=null,t.currentQuerySelector=r,{type:he.Query,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:u,originalSelector:n.selector,options:Ws(n.options)}}visitStagger(n,t){t.currentQuery||t.errors.push(function Oq(){return new k(3013,!1)}());const r="full"===n.timings?{duration:0,delay:0,easing:"full"}:_m(n.timings,t.errors,!0);return{type:he.Stagger,animation:cr(this,gd(n.animation),t),timings:r,options:null}}}class bW{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 Ws(e){return e?(e={...e}).params&&(e.params=function _W(e){return e?{...e}:null}(e.params)):e={},e}function Ab(e,n,t){return{duration:e,delay:n,easing:t}}function xb(e,n,t,r,i,o,s=null,u=!1){return{type:1,element:e,keyframes:n,preStyleProps:t,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:s,subTimeline:u}}class Em{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 SW=new RegExp(":enter","g"),MW=new RegExp(":leave","g");function kb(e,n,t,r,i,o=new Map,s=new Map,u,c,d=[]){return(new IW).buildKeyframes(e,n,t,r,i,o,s,u,c,d)}class IW{buildKeyframes(n,t,r,i,o,s,u,c,d,f=[]){d=d||new Em;const m=new Nb(n,t,d,i,o,f,[]);m.options=c;const g=c.delay?ro(c.delay):0;m.currentTimeline.delayNextStep(g),m.currentTimeline.setStyles([s],null,m.errors,c),cr(this,r,m);const y=m.timelines.filter(_=>_.containsAnimation());if(y.length&&u.size){let _;for(let C=y.length-1;C>=0;C--){const S=y[C];if(S.element===t){_=S;break}}_&&!_.allowOnlyTimelineStyles()&&_.setStyles([u],null,m.errors,c)}return y.length?y.map(_=>_.buildKeyframes()):[xb(t,[],[],[],0,g,"",!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),o=t.currentTimeline.currentTime,s=this._visitSubInstructions(r,i,i.options);o!=s&&t.transformIntoNewTimeline(s)}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 o=i?.delay;if(o){const s="number"==typeof o?o:ro(yd(o,i?.params??{},t.errors));r.delayNextStep(s)}}}_visitSubInstructions(n,t,r){let o=t.currentTimeline.currentTime;const s=null!=r.duration?ro(r.duration):null,u=null!=r.delay?ro(r.delay):null;return 0!==s&&n.forEach(c=>{const d=t.appendInstructionToTimeline(c,s,u);o=Math.max(o,d.duration+d.delay)}),o}visitReference(n,t){t.updateOptions(n.options,!0),cr(this,n.animation,t),t.previousNode=n}visitSequence(n,t){const r=t.subContextCount;let i=t;const o=n.options;if(o&&(o.params||o.delay)&&(i=t.createSubContext(o),i.transformIntoNewTimeline(),null!=o.delay)){i.previousNode.type==he.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Dm);const s=ro(o.delay);i.delayNextStep(s)}n.steps.length&&(n.steps.forEach(s=>cr(this,s,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),t.previousNode=n}visitGroup(n,t){const r=[];let i=t.currentTimeline.currentTime;const o=n.options&&n.options.delay?ro(n.options.delay):0;n.steps.forEach(s=>{const u=t.createSubContext(n.options);o&&u.delayNextStep(o),cr(this,s,u),i=Math.max(i,u.currentTimeline.currentTime),r.push(u.currentTimeline)}),r.forEach(s=>t.currentTimeline.mergeTimelineCollectedStyles(s)),t.transformIntoNewTimeline(i),t.previousNode=n}_visitTiming(n,t){if(n.dynamic){const r=n.strValue;return _m(t.params?yd(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 o=n.style;o.type==he.Keyframes?this.visitKeyframes(o,t):(t.incrementTime(r.duration),this.visitStyle(o,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 o=i&&i.easing||n.easing;n.isEmptyStep?r.applyEmptyStep(o):r.setStyles(n.styles,o,t.errors,t.options),t.previousNode=n}visitKeyframes(n,t){const r=t.currentAnimateTimings,i=t.currentTimeline.duration,o=r.duration,u=t.createSubContext().currentTimeline;u.easing=r.easing,n.styles.forEach(c=>{u.forwardTime((c.offset||0)*o),u.setStyles(c.styles,c.easing,t.errors,t.options),u.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(u),t.transformIntoNewTimeline(i+o),t.previousNode=n}visitQuery(n,t){const r=t.currentTimeline.currentTime,i=n.options||{},o=i.delay?ro(i.delay):0;o&&(t.previousNode.type===he.Style||0==r&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Dm);let s=r;const u=t.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=u.length;let c=null;u.forEach((d,f)=>{t.currentQueryIndex=f;const m=t.createSubContext(n.options,d);o&&m.delayNextStep(o),d===t.element&&(c=m.currentTimeline),cr(this,n.animation,m),m.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,m.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(s),c&&(t.currentTimeline.mergeTimelineCollectedStyles(c),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=n}visitStagger(n,t){const r=t.parentContext,i=t.currentTimeline,o=n.timings,s=Math.abs(o.duration),u=s*(t.currentQueryTotal-1);let c=s*t.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":c=u-c;break;case"full":c=r.currentStaggerTime}const f=t.currentTimeline;c&&f.delayNextStep(c);const m=f.currentTime;cr(this,n.animation,t),t.previousNode=n,r.currentStaggerTime=i.currentTime-m+(i.startTime-r.currentTimeline.startTime)}}const Dm={};class Nb{constructor(n,t,r,i,o,s,u,c){this._driver=n,this.element=t,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=o,this.errors=s,this.timelines=u,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Dm,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new Sm(this._driver,t,0),u.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=ro(r.duration)),null!=r.delay&&(i.delay=ro(r.delay));const o=r.params;if(o){let s=i.params;s||(s=this.options.params={}),Object.keys(o).forEach(u=>{(!t||!s.hasOwnProperty(u))&&(s[u]=yd(o[u],s,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,o=new Nb(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(n),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(n){return this.previousNode=Dm,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:""},o=new PW(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,i,n.stretchStartingKeyframe);return this.timelines.push(o),i}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,t,r,i,o,s){let u=[];if(i&&u.push(this.element),n.length>0){n=(n=n.replace(SW,"."+this._enterClassName)).replace(MW,"."+this._leaveClassName);let d=this._driver.query(this.element,n,1!=r);0!==r&&(d=r<0?d.slice(d.length+r,d.length):d.slice(0,r)),u.push(...d)}return!o&&0==u.length&&s.push(function Rq(){return new k(3014,!1)}()),u}}class Sm{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 Sm(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||Qi),this._currentKeyframe.set(t,Qi);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,t,r,i){t&&this._previousKeyframe.set("easing",t);const o=i&&i.params||{},s=function AW(e,n){const t=new Map;let r;return e.forEach(i=>{if("*"===i){r??=n.keys();for(let o of r)t.set(o,Qi)}else for(let[o,s]of i)t.set(o,s)}),t}(n,this._globalTimelineStyles);for(let[u,c]of s){const d=yd(c,o,r);this._pendingStyles.set(u,d),this._localTimelineStyles.has(u)||this._backFill.set(u,this._globalTimelineStyles.get(u)??Qi),this._updateStyle(u,d)}}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((u,c)=>{const d=new Map([...this._backFill,...u]);d.forEach((f,m)=>{"!"===f?n.add(m):f===Qi&&t.add(m)}),r||d.set("offset",c/this.duration),i.push(d)});const o=[...n.values()],s=[...t.values()];if(r){const u=i[0],c=new Map(u);u.set("offset",0),c.set("offset",1),i=[u,c]}return xb(this.element,i,o,s,this.duration,this.startTime,this.easing,!1)}}class PW extends Sm{constructor(n,t,r,i,o,s,u=!1){super(n,t,s.delay),this.keyframes=r,this.preStyleProps=i,this.postStyleProps=o,this._stretchStartingKeyframe=u,this.timings={duration:s.duration,delay:s.delay,easing:s.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 o=[],s=r+t,u=t/s,c=new Map(n[0]);c.set("offset",0),o.push(c);const d=new Map(n[0]);d.set("offset",gA(u)),o.push(d);const f=n.length-1;for(let m=1;m<=f;m++){let g=new Map(n[m]);const y=g.get("offset");g.set("offset",gA((t+y*r)/s)),o.push(g)}r=s,t=0,i="",n=o}return xb(this.element,n,this.preStyleProps,this.postStyleProps,r,t,i,!0)}}function gA(e,n=3){const t=Math.pow(10,n-1);return Math.round(e*t)/t}function yA(e,n,t,r,i,o,s,u,c,d,f,m,g){return{type:0,element:e,triggerName:n,isRemovalTransition:i,fromState:t,fromStyles:o,toState:r,toStyles:s,timelines:u,queriedElements:c,preStyleProps:d,postStyleProps:f,totalTime:m,errors:g}}const Ob={};class vA{constructor(n,t,r){this._triggerName=n,this.ast=t,this._stateStyles=r}match(n,t,r,i){return function xW(e,n,t,r,i){return e.some(o=>o(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,o,s,u,c,d,f){const m=[],g=this.ast.options&&this.ast.options.params||Ob,_=this.buildStyles(r,u&&u.params||Ob,m),C=c&&c.params||Ob,S=this.buildStyles(i,C,m),I=new Set,T=new Map,R=new Map,L="void"===i,H={params:_A(C,g),delay:this.ast.options?.delay},Q=f?[]:kb(n,t,this.ast.animation,o,s,_,S,H,d,m);let re=0;return Q.forEach(J=>{re=Math.max(J.duration+J.delay,re)}),m.length?yA(t,this._triggerName,r,i,L,_,S,[],[],T,R,re,m):(Q.forEach(J=>{const _t=J.element,St=ur(T,_t,new Set);J.preStyleProps.forEach(xn=>St.add(xn));const kt=ur(R,_t,new Set);J.postStyleProps.forEach(xn=>kt.add(xn)),_t!==t&&I.add(_t)}),yA(t,this._triggerName,r,i,L,_,S,Q,[...I.values()],T,R,re))}}function _A(e,n){const t={...n};return Object.entries(e).forEach(([r,i])=>{null!=i&&(t[r]=i)}),t}class kW{constructor(n,t,r){this.styles=n,this.defaultParams=t,this.normalizer=r}buildStyles(n,t){const r=new Map,i=_A(n,this.defaultParams);return this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,u)=>{s&&(s=yd(s,i,t));const c=this.normalizer.normalizePropertyName(u,t);s=this.normalizer.normalizeStyleValue(u,c,s,t),r.set(u,s)})}),r}}class OW{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 kW(i.style,i.options&&i.options.params||{},r))}),bA(this.states,"true","1"),bA(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new vA(n,i,this.states))}),this.fallbackTransition=function RW(e,n){return new vA(e,{type:he.Transition,animation:{type:he.Sequence,steps:[],options:null},matchers:[(s,u)=>!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(s=>s.match(n,t,r,i))||null}matchStyles(n,t,r){return this.fallbackTransition.buildStyles(n,t,r)}}function bA(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 FW=new Em;class LW{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=[],o=Pb(this._driver,t,r,[]);if(r.length)throw function Gq(){return new k(3503,!1)}();this._animations.set(n,o)}_buildPlayer(n,t,r){const i=n.element,o=rA(this._normalizer,n.keyframes,t,r);return this._driver.animate(i,o,n.duration,n.delay,n.easing,[],!0)}create(n,t,r={}){const i=[],o=this._animations.get(n);let s;const u=new Map;if(o?(s=kb(this._driver,t,o,Eb,gm,new Map,new Map,r,FW,i),s.forEach(f=>{const m=ur(u,f.element,new Map);f.postStyleProps.forEach(g=>m.set(g,null))})):(i.push(function Uq(){return new k(3300,!1)}()),s=[]),i.length)throw function $q(){return new k(3504,!1)}();u.forEach((f,m)=>{f.forEach((g,y)=>{f.set(y,this._driver.computeStyle(m,y,Qi))})});const d=Lo(s.map(f=>{const m=u.get(f.element);return this._buildPlayer(f,new Map,m)}));return this._playersById.set(n,d),d.onDestroy(()=>this.destroy(n)),this.players.push(d),d}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 zq(){return new k(3301,!1)}();return t}listen(n,t,r,i){const o=vb(t,"","","");return gb(this._getPlayer(n),r,o,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 o=this._getPlayer(n);switch(r){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(n)}}}const wA="ng-animate-queued",Rb="ng-animate-disabled",GW=[],CA={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},UW={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ii="__ng_removed";class Fb{get params(){return this.options.params}constructor(n,t=""){this.namespaceId=t;const r=n&&n.hasOwnProperty("value");if(this.value=function WW(e){return e??null}(r?n.value:n),r){const{value:o,...s}=n;this.options=s}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 vd="void",Lb=new Fb(vd);class $W{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,Sr(t,this._hostClassName)}listen(n,t,r,i){if(!this._triggers.has(t))throw function qq(){return new k(3302,!1)}();if(null==r||0==r.length)throw function Wq(){return new k(3303,!1)}();if(!function ZW(e){return"start"==e||"done"==e}(r))throw function Zq(){return new k(3400,!1)}();const o=ur(this._elementListeners,n,[]),s={name:t,phase:r,callback:i};o.push(s);const u=ur(this._engine.statesByElement,n,new Map);return u.has(t)||(Sr(n,ym),Sr(n,ym+"-"+t),u.set(t,Lb)),()=>{this._engine.afterFlush(()=>{const c=o.indexOf(s);c>=0&&o.splice(c,1),this._triggers.has(t)||u.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 Yq(){return new k(3401,!1)}();return t}trigger(n,t,r,i=!0){const o=this._getTrigger(t),s=new Vb(this.id,t,n);let u=this._engine.statesByElement.get(n);u||(Sr(n,ym),Sr(n,ym+"-"+t),this._engine.statesByElement.set(n,u=new Map));let c=u.get(t);const d=new Fb(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&c&&d.absorbOptions(c.options),u.set(t,d),c||(c=Lb),d.value!==vd&&c.value===d.value){if(!function XW(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 o=t[i];if(!n.hasOwnProperty(o)||e[o]!==n[o])return!1}return!0}(c.params,d.params)){const C=[],S=o.matchStyles(c.value,c.params,C),I=o.matchStyles(d.value,d.params,C);C.length?this._engine.reportError(C):this._engine.afterFlush(()=>{qs(n,S),Pi(n,I)})}return}const g=ur(this._engine.playersByElement,n,[]);g.forEach(C=>{C.namespaceId==this.id&&C.triggerName==t&&C.queued&&C.destroy()});let y=o.matchTransition(c.value,d.value,n,d.params),_=!1;if(!y){if(!i)return;y=o.fallbackTransition,_=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:t,transition:y,fromState:c,toState:d,player:s,isFallbackTransition:_}),_||(Sr(n,wA),s.onStart(()=>{zu(n,wA)})),s.onDone(()=>{let C=this.players.indexOf(s);C>=0&&this.players.splice(C,1);const S=this._engine.playersByElement.get(n);if(S){let I=S.indexOf(s);I>=0&&S.splice(I,1)}}),this.players.push(s),g.push(s),s}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,vm,!0);r.forEach(i=>{if(i[ii])return;const o=this._engine.fetchNamespacesByElement(i);o.size?o.forEach(s=>s.triggerLeaveAnimation(i,t,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(n,t,r,i){const o=this._engine.statesByElement.get(n),s=new Map;if(o){const u=[];if(o.forEach((c,d)=>{if(s.set(d,c.value),this._triggers.has(d)){const f=this.trigger(n,d,vd,i);f&&u.push(f)}}),u.length)return this._engine.markElementAsRemoved(this.id,n,!0,t,s),r&&Lo(u).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(o=>{const s=o.name;if(i.has(s))return;i.add(s);const c=this._triggers.get(s).fallbackTransition,d=r.get(s)||Lb,f=new Fb(vd),m=new Vb(this.id,s,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:s,transition:c,fromState:d,toState:f,player:m,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 o=r.players.length?r.playersByQueriedElement.get(n):[];if(o&&o.length)i=!0;else{let s=n;for(;s=s.parentNode;)if(r.statesByElement.get(s)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(n),i)r.markElementAsRemoved(this.id,n,!1,t);else{const o=n[ii];(!o||o===CA)&&(r.afterFlush(()=>this.clearElementCache(n)),r.destroyInnerAnimations(n),r._onRemovalComplete(n,t))}}insertNode(n,t){Sr(n,this._hostClassName)}drainQueuedTransitions(n){const t=[];return this._queue.forEach(r=>{const i=r.player;if(i.destroyed)return;const o=r.element,s=this._elementListeners.get(o);s&&s.forEach(u=>{if(u.name==r.triggerName){const c=vb(o,r.triggerName,r.fromState.value,r.toState.value);c._data=n,gb(r.player,u.phase,c,u.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(r)}),this._queue=[],t.sort((r,i)=>{const o=r.transition.ast.depCount,s=i.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(r.element,i.element)?1:-1})}destroy(n){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}}class zW{_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,o)=>{}}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 $W(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 s=!1,u=this.driver.getParentElement(t);for(;u;){const c=i.get(u);if(c){const d=r.indexOf(c);r.splice(d+1,0,n),s=!0;break}u=this.driver.getParentElement(u)}s||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 o=this._fetchNamespace(i.namespaceId);o&&t.add(o)}return t}trigger(n,t,r,i){if(Tm(t)){const o=this._fetchNamespace(n);if(o)return o.trigger(t,r,i),!0}return!1}insertNode(n,t,r,i){if(!Tm(t))return;const o=t[ii];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(t);s>=0&&this.collectedLeaveElements.splice(s,1)}if(n){const s=this._fetchNamespace(n);s&&s.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),Sr(n,Rb)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),zu(n,Rb))}removeNode(n,t,r){if(Tm(t)){const i=n?this._fetchNamespace(n):null;i?i.removeNode(t,r):this.markElementAsRemoved(n,t,!1,r);const o=this.namespacesByHostElement.get(t);o&&o.id!==n&&o.removeNode(t,r)}else this._onRemovalComplete(t,r)}markElementAsRemoved(n,t,r,i,o){this.collectedLeaveElements.push(t),t[ii]={namespaceId:n,setForRemoval:i,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:o}}listen(n,t,r,i,o){return Tm(t)?this._fetchNamespace(n).listen(t,r,i,o):()=>{}}_buildInstruction(n,t,r,i,o){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,r,i,n.fromState.options,n.toState.options,t,o)}destroyInnerAnimations(n){let t=this.driver.query(n,vm,!0);t.forEach(r=>this.destroyActiveAnimationsForElement(r)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(n,Db,!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 Lo(this.players).onDone(()=>n());n()})}processLeaveNode(n){const t=n[ii];if(t&&t.setForRemoval){if(n[ii]=CA,t.namespaceId){this.destroyInnerAnimations(n);const r=this._fetchNamespace(t.namespaceId);r&&r.clearElementCache(n)}this._onRemovalComplete(n,t.setForRemoval)}n.classList?.contains(Rb)&&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++)Sr(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?Lo(t).onDone(()=>{r.forEach(i=>i())}):r.forEach(i=>i())}}reportError(n){throw function Kq(){return new k(3402,!1)}()}_flushAnimations(n,t){const r=new Em,i=[],o=new Map,s=[],u=new Map,c=new Map,d=new Map,f=new Set;this.disabledNodes.forEach(K=>{f.add(K);const te=this.driver.query(K,".ng-animate-queued",!0);for(let ce=0;ce<te.length;ce++)f.add(te[ce])});const m=this.bodyNode,g=Array.from(this.statesByElement.keys()),y=SA(g,this.collectedEnterElements),_=new Map;let C=0;y.forEach((K,te)=>{const ce=Eb+C++;_.set(te,ce),K.forEach(Me=>Sr(Me,ce))});const S=[],I=new Set,T=new Set;for(let K=0;K<this.collectedLeaveElements.length;K++){const te=this.collectedLeaveElements[K],ce=te[ii];ce&&ce.setForRemoval&&(S.push(te),I.add(te),ce.hasAnimation?this.driver.query(te,".ng-star-inserted",!0).forEach(Me=>I.add(Me)):T.add(te))}const R=new Map,L=SA(g,Array.from(I));L.forEach((K,te)=>{const ce=gm+C++;R.set(te,ce),K.forEach(Me=>Sr(Me,ce))}),n.push(()=>{y.forEach((K,te)=>{const ce=_.get(te);K.forEach(Me=>zu(Me,ce))}),L.forEach((K,te)=>{const ce=R.get(te);K.forEach(Me=>zu(Me,ce))}),S.forEach(K=>{this.processLeaveNode(K)})});const H=[],Q=[];for(let K=this._namespaceList.length-1;K>=0;K--)this._namespaceList[K].drainQueuedTransitions(t).forEach(ce=>{const Me=ce.player,Bt=ce.element;if(H.push(Me),this.collectedEnterElements.length){const mn=Bt[ii];if(mn&&mn.setForMove){if(mn.previousTriggersValues&&mn.previousTriggersValues.has(ce.triggerName)){const Ys=mn.previousTriggersValues.get(ce.triggerName),Ir=this.statesByElement.get(ce.element);if(Ir&&Ir.has(ce.triggerName)){const Pm=Ir.get(ce.triggerName);Pm.value=Ys,Ir.set(ce.triggerName,Pm)}}return void Me.destroy()}}const Mr=!m||!this.driver.containsElement(m,Bt),kn=R.get(Bt),Ai=_.get(Bt),ht=this._buildInstruction(ce,r,Ai,kn,Mr);if(ht.errors&&ht.errors.length)return void Q.push(ht);if(Mr)return Me.onStart(()=>qs(Bt,ht.fromStyles)),Me.onDestroy(()=>Pi(Bt,ht.toStyles)),void i.push(Me);if(ce.isFallbackTransition)return Me.onStart(()=>qs(Bt,ht.fromStyles)),Me.onDestroy(()=>Pi(Bt,ht.toStyles)),void i.push(Me);const Im=[];ht.timelines.forEach(mn=>{mn.stretchStartingKeyframe=!0,this.disabledNodes.has(mn.element)||Im.push(mn)}),ht.timelines=Im,r.append(Bt,ht.timelines),s.push({instruction:ht,player:Me,element:Bt}),ht.queriedElements.forEach(mn=>ur(u,mn,[]).push(Me)),ht.preStyleProps.forEach((mn,Ys)=>{if(mn.size){let Ir=c.get(Ys);Ir||c.set(Ys,Ir=new Set),mn.forEach((Pm,Hb)=>Ir.add(Hb))}}),ht.postStyleProps.forEach((mn,Ys)=>{let Ir=d.get(Ys);Ir||d.set(Ys,Ir=new Set),mn.forEach((Pm,Hb)=>Ir.add(Hb))})});if(Q.length){const K=[];Q.forEach(te=>{K.push(function Xq(){return new k(3505,!1)}())}),H.forEach(te=>te.destroy()),this.reportError(K)}const re=new Map,J=new Map;s.forEach(K=>{const te=K.element;r.has(te)&&(J.set(te,te),this._beforeAnimationBuild(K.player.namespaceId,K.instruction,re))}),i.forEach(K=>{const te=K.element;this._getPreviousPlayers(te,!1,K.namespaceId,K.triggerName,null).forEach(Me=>{ur(re,te,[]).push(Me),Me.destroy()})});const _t=S.filter(K=>MA(K,c,d)),St=new Map;DA(St,this.driver,T,d,Qi).forEach(K=>{MA(K,c,d)&&_t.push(K)});const xn=new Map;y.forEach((K,te)=>{DA(xn,this.driver,new Set(K),c,"!")}),_t.forEach(K=>{const te=St.get(K),ce=xn.get(K);St.set(K,new Map([...te?.entries()??[],...ce?.entries()??[]]))});const Vo=[],Tr=[],Zs={};s.forEach(K=>{const{element:te,player:ce,instruction:Me}=K;if(r.has(te)){if(f.has(te))return ce.onDestroy(()=>Pi(te,Me.toStyles)),ce.disabled=!0,ce.overrideTotalTime(Me.totalTime),void i.push(ce);let Bt=Zs;if(J.size>1){let kn=te;const Ai=[];for(;kn=kn.parentNode;){const ht=J.get(kn);if(ht){Bt=ht;break}Ai.push(kn)}Ai.forEach(ht=>J.set(ht,Bt))}const Mr=this._buildAnimation(ce.namespaceId,Me,re,o,xn,St);if(ce.setRealPlayer(Mr),Bt===Zs)Vo.push(ce);else{const kn=this.playersByElement.get(Bt);kn&&kn.length&&(ce.parentPlayer=Lo(kn)),i.push(ce)}}else qs(te,Me.fromStyles),ce.onDestroy(()=>Pi(te,Me.toStyles)),Tr.push(ce),f.has(te)&&i.push(ce)}),Tr.forEach(K=>{const te=o.get(K.element);if(te&&te.length){const ce=Lo(te);K.setRealPlayer(ce)}}),i.forEach(K=>{K.parentPlayer?K.syncPlayerEvents(K.parentPlayer):K.destroy()});for(let K=0;K<S.length;K++){const te=S[K],ce=te[ii];if(zu(te,gm),ce&&ce.hasAnimation)continue;let Me=[];if(u.size){let Mr=u.get(te);Mr&&Mr.length&&Me.push(...Mr);let kn=this.driver.query(te,Db,!0);for(let Ai=0;Ai<kn.length;Ai++){let ht=u.get(kn[Ai]);ht&&ht.length&&Me.push(...ht)}}const Bt=Me.filter(Mr=>!Mr.destroyed);Bt.length?YW(this,te,Bt):this.processLeaveNode(te)}return S.length=0,Vo.forEach(K=>{this.players.push(K),K.onDone(()=>{K.destroy();const te=this.players.indexOf(K);this.players.splice(te,1)}),K.play()}),Vo}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,t,r,i,o){let s=[];if(t){const u=this.playersByQueriedElement.get(n);u&&(s=u)}else{const u=this.playersByElement.get(n);if(u){const c=!o||o==vd;u.forEach(d=>{d.queued||!c&&d.triggerName!=i||s.push(d)})}}return(r||i)&&(s=s.filter(u=>!(r&&r!=u.namespaceId||i&&i!=u.triggerName))),s}_beforeAnimationBuild(n,t,r){const o=t.element,s=t.isRemovalTransition?void 0:n,u=t.isRemovalTransition?void 0:t.triggerName;for(const c of t.timelines){const d=c.element,f=d!==o,m=ur(r,d,[]);this._getPreviousPlayers(d,f,s,u,t.toState).forEach(y=>{const _=y.getRealPlayer();_.beforeDestroy&&_.beforeDestroy(),y.destroy(),m.push(y)})}qs(o,t.fromStyles)}_buildAnimation(n,t,r,i,o,s){const u=t.triggerName,c=t.element,d=[],f=new Set,m=new Set,g=t.timelines.map(_=>{const C=_.element;f.add(C);const S=C[ii];if(S&&S.removedBeforeQueried)return new ed(_.duration,_.delay);const I=C!==c,T=function KW(e){const n=[];return TA(e,n),n}((r.get(C)||GW).map(re=>re.getRealPlayer())).filter(re=>!!re.element&&re.element===C),R=o.get(C),L=s.get(C),H=rA(this._normalizer,_.keyframes,R,L),Q=this._buildPlayer(_,H,T);if(_.subTimeline&&i&&m.add(C),I){const re=new Vb(n,u,C);re.setRealPlayer(Q),d.push(re)}return Q});d.forEach(_=>{ur(this.playersByQueriedElement,_.element,[]).push(_),_.onDone(()=>function qW(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,_.element,_))}),f.forEach(_=>Sr(_,cA));const y=Lo(g);return y.onDestroy(()=>{f.forEach(_=>zu(_,cA)),Pi(c,t.toStyles)}),m.forEach(_=>{ur(i,_,[]).push(y)}),y}_buildPlayer(n,t,r){return t.length>0?this.driver.animate(n.element,t,n.duration,n.delay,n.easing,r):new ed(n.duration,n.delay)}}class Vb{constructor(n,t,r){this.namespaceId=n,this.triggerName=t,this.element=r,this._player=new ed,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=>gb(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){ur(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 Tm(e){return e&&1===e.nodeType}function EA(e,n){const t=e.style.display;return e.style.display=n??"none",t}function DA(e,n,t,r,i){const o=[];t.forEach(c=>o.push(EA(c)));const s=[];r.forEach((c,d)=>{const f=new Map;c.forEach(m=>{const g=n.computeStyle(d,m,i);f.set(m,g),(!g||0==g.length)&&(d[ii]=UW,s.push(d))}),e.set(d,f)});let u=0;return t.forEach(c=>EA(c,o[u++])),s}function SA(e,n){const t=new Map;if(e.forEach(u=>t.set(u,[])),0==n.length)return t;const i=new Set(n),o=new Map;function s(u){if(!u)return 1;let c=o.get(u);if(c)return c;const d=u.parentNode;return c=t.has(d)?d:i.has(d)?1:s(d),o.set(u,c),c}return n.forEach(u=>{const c=s(u);1!==c&&t.get(c).push(u)}),t}function Sr(e,n){e.classList?.add(n)}function zu(e,n){e.classList?.remove(n)}function YW(e,n,t){Lo(t).onDone(()=>e.processLeaveNode(n))}function TA(e,n){for(let t=0;t<e.length;t++){const r=e[t];r instanceof $I?TA(r.players,n):n.push(r)}}function MA(e,n,t){const r=t.get(e);if(!r)return!1;let i=n.get(e);return i?r.forEach(o=>i.add(o)):n.set(e,r),t.delete(e),!0}class _d{constructor(n,t,r){this._driver=t,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(i,o)=>{},this._transitionEngine=new zW(n.body,t,r),this._timelineEngine=new LW(n.body,t,r),this._transitionEngine.onRemovalComplete=(i,o)=>this.onRemovalComplete(i,o)}registerTrigger(n,t,r,i,o){const s=n+"-"+i;let u=this._triggerCache[s];if(!u){const c=[],f=Pb(this._driver,o,c,[]);if(c.length)throw function Bq(){return new k(3404,!1)}();u=function NW(e,n,t){return new OW(e,n,t)}(i,f,this._normalizer),this._triggerCache[s]=u}this._transitionEngine.registerTrigger(t,i,u)}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[o,s]=iA(r);this._timelineEngine.command(o,t,s,i)}else this._transitionEngine.trigger(n,t,r,i)}listen(n,t,r,i,o){if("@"==r.charAt(0)){const[s,u]=iA(r);return this._timelineEngine.listen(s,t,u,o)}return this._transitionEngine.listen(n,t,r,i,o)}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 bd{static#e=this.initialStylesByElement=new WeakMap;constructor(n,t,r){this._element=n,this._startStyles=t,this._endStyles=r,this._state=0;let i=bd.initialStylesByElement.get(n);i||bd.initialStylesByElement.set(n,i=new Map),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&Pi(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Pi(this._element,this._initialStyles),this._endStyles&&(Pi(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(bd.initialStylesByElement.delete(this._element),this._startStyles&&(qs(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(qs(this._element,this._endStyles),this._endStyles=null),Pi(this._element,this._initialStyles),this._state=3)}}function jb(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 IA{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:Ib(this.element,i))}),this.currentSnapshot=n}triggerCallback(n){const t="start"===n?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}class PA{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}containsElement(n,t){return sA(n,t)}getParentElement(n){return _b(n)}query(n,t,r){return aA(n,t,r)}computeStyle(n,t,r){return Ib(n,t)}animate(n,t,r,i,o,s=[]){const c={duration:r,delay:i,fill:0==i?"both":"forwards"};o&&(c.easing=o);const d=new Map,f=s.filter(y=>y instanceof IA);(function lW(e,n){return 0===e||0===n})(r,i)&&f.forEach(y=>{y.currentSnapshot.forEach((_,C)=>d.set(C,_))});let m=function aW(e){return e.length?e[0]instanceof Map?e:e.map(n=>new Map(Object.entries(n))):[]}(t).map(y=>new Map(y));m=function dW(e,n,t){if(t.size&&n.length){let r=n[0],i=[];if(t.forEach((o,s)=>{r.has(s)||i.push(s),r.set(s,o)}),i.length)for(let o=1;o<n.length;o++){let s=n[o];i.forEach(u=>s.set(u,Ib(e,u)))}}return n}(n,m,d);const g=function QW(e,n){let t=null,r=null;return Array.isArray(n)&&n.length?(t=jb(n[0]),n.length>1&&(r=jb(n[n.length-1]))):n instanceof Map&&(t=jb(n)),t||r?new bd(e,t,r):null}(n,m);return new IA(n,m,c,g)}}const AA="@.disabled";class xA{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==AA?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 eZ extends xA{constructor(n,t,r,i,o){super(t,r,i,o),this.factory=n,this.namespaceId=t}setProperty(n,t,r){"@"==t.charAt(0)?"."==t.charAt(1)&&t==AA?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 tZ(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(n);let o=t.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function nZ(e){const n=e.indexOf(".");return[e.substring(0,n),e.slice(n+1)]}(o)),this.engine.listen(this.namespaceId,i,o,s,u=>{this.factory.scheduleListenerCallback(u._data||-1,r,u)})}return this.delegate.listen(n,t,r)}}class rZ{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,o)=>{o?.removeChild(null,i)}}createRenderer(n,t){const i=this.delegate.createRenderer(n,t);if(!n||!t?.data?.animation){const d=this._rendererCache;let f=d.get(i);return f||(f=new xA("",i,this.engine,()=>d.delete(i)),d.set(i,f)),f}const o=t.id,s=t.id+"-"+this._currentId;this._currentId++,this.engine.register(s,n);const u=d=>{Array.isArray(d)?d.forEach(u):this.engine.registerTrigger(o,s,n,d.name,d)};return t.data.animation.forEach(u),new eZ(this,s,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(o=>{const[s,u]=o;s(u)}),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 kA=[{provide:Cb,useFactory:function oZ(){return new fA}},{provide:_d,useClass:(()=>{class e extends _d{constructor(t,r,i){super(t,r,i)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(r){return new(r||e)(l(un),l(wb),l(Cb))};static#t=this.\u0275prov=Y({token:e,factory:e.\u0275fac})}return e})()},{provide:wh,useFactory:function sZ(e,n,t){return new rZ(e,n,t)},deps:[l_,_d,Le]}],Bb=[{provide:wb,useFactory:()=>new PA},{provide:r1,useValue:"BrowserAnimations"},...kA],NA=[{provide:wb,useClass:bb},{provide:r1,useValue:"NoopAnimations"},...kA];let OA=(()=>{class e{static withConfig(t){return{ngModule:e,providers:t.disableAnimations?NA:Bb}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=zt({type:e});static#n=this.\u0275inj=Et({providers:Bb,imports:[Sp]})}return e})();const RA={merchantCapabilities:["supports3DS"],supportedNetworks:["visa","masterCard","amex","discover"]},aZ=qn(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}),FA=new q("APPLE_PAY_SESSION_TOKEN",{factory:()=>p(un).defaultView.ApplePaySession});let LA=(()=>{class e{constructor(t){this.applePaySession=t}canMakePayments(){return ApplePaySession.canMakePayments()}createPaySession(t,r,i){return new bt(o=>{const s=u=>{o.error(u),console.error(u)};try{const u=new this.applePaySession(t,r),c=(d,f)=>{u.abort(),s({event:d,error:f})};u.onvalidatemerchant=function(){var d=Ls(function*(f){try{const m=yield function uZ(e,n){const t="object"==typeof n;return new Promise((r,i)=>{let s,o=!1;e.subscribe({next:u=>{s=u,o=!0},error:i,complete:()=>{o?r(s):t?r(n.defaultValue):i(new aZ)}})})}(i(f));u.completeMerchantValidation(m)}catch(m){c(f,m)}});return function(f){return d.apply(this,arguments)}}(),u.onpaymentmethodselected=d=>{const f={newTotal:{...r.total}};u.completePaymentMethodSelection(f)},u.onshippingmethodselected=d=>{u.completeShippingMethodSelection({})},u.onshippingcontactselected=d=>{u.completeShippingContactSelection({})},u.onpaymentauthorized=d=>{u.completePayment({status:ApplePaySession.STATUS_SUCCESS}),o.next(d),o.complete()},u.oncancel=d=>{s(d)},u.begin()}catch(u){s(u)}})}static#e=this.\u0275fac=function(r){return new(r||e)(l(FA))};static#t=this.\u0275prov=Y({token:e,factory:e.\u0275fac})}return e})(),VA=(()=>{class e{constructor(t,r){this.nativeService=t,this.http=r}canMakePayment(){return or(this.nativeService.canMakePayments())}pay(t){const{version:r=10}=t;return this.nativeService.createPaySession(r,this.mapData(t),o=>this.validate(o,t))}validate(t,r){const{validationURL:i}=t,{merchantId:o,processingUrl:s,userToken:u}=r;return this.http.post(s,{validationUrl:i},{params:{merchantId:o},headers:u?{Authorization:u}:void 0})}mapData(t){const{total:r,countryCode:i,supportedNetworks:o=RA.supportedNetworks,merchantCapabilities:s=RA.merchantCapabilities}=t;return{countryCode:i,currencyCode:r.currency,supportedNetworks:o,merchantCapabilities:s,total:{amount:r.amount,label:r.label}}}static#e=this.\u0275fac=function(r){return new(r||e)(l(LA),l(Up))};static#t=this.\u0275prov=Y({token:e,factory:e.\u0275fac})}return e})();const cZ=new q("APPLE_PAY_SESSION_SUPPORT_TOKEN",{factory:()=>!!p(FA)}),jA="https://applepay.cdn-apple.com/jsapi/v1.3.2/apple-pay-sdk.js";let lZ=(()=>{class e{constructor(t,r){this.doc=t,this.platformId=r}load(){return function Ej(e){return e===bM}(this.platformId)?(this.loadPromise||(this.loadPromise=new Promise((t,r)=>{const i=this.doc.querySelector(`script[src="${jA}"]`);if(i)return i.addEventListener("load",()=>t(),{once:!0}),void i.addEventListener("error",()=>r(new Error("Apple Pay SDK failed to load")),{once:!0});const o=this.doc.createElement("script");o.src=jA,o.async=!0,o.onload=()=>t(),o.onerror=()=>r(new Error("Apple Pay SDK failed to load")),this.doc.head.appendChild(o)})),this.loadPromise):Promise.resolve()}static#e=this.\u0275fac=function(r){return new(r||e)(l(un),l(zi))};static#t=this.\u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const dZ={canMakePayment:()=>or(!1),pay(e){throw new Error("not implemented")}};function fZ(e){return()=>{try{return e.load().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 BA=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=zt({type:e});static#n=this.\u0275inj=Et({providers:[LA,VA,{provide:aT,deps:[lZ],useFactory:fZ,multi:!0},{provide:T3,deps:[cZ,VA],useFactory:(t,r)=>t?r:dZ}]})}return e})();M(463);let HA=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=zt({type:e});static#n=this.\u0275inj=Et({providers:[M3]})}return e})(),GA=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=zt({type:e});static#n=this.\u0275inj=Et({providers:[VP],imports:[RP.forRoot(),tA,PP,IP,t_,Sp,OA,BA,HA,RP,tA,PP,IP,t_,Sp,OA,BA,HA]})}return e})(),hZ=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=zt({type:e});static#n=this.\u0275inj=Et({providers:[Je,$s,z_,U_,$_,mm,pm],imports:[GA]})}return e})(),pZ=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=zt({type:e});static#n=this.\u0275inj=Et({providers:[H_,Bu]})}return e})(),mZ=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=zt({type:e});static#n=this.\u0275inj=Et({providers:[XP]})}return e})();function gZ(e,n){let t=e;const r=p(Je),i=p(od),o=r.data.settings().language,s=!!e.headers.get(Ru_customHeaders_skipToastr);return s&&(t=e.clone({headers:e.headers.delete(Ru_customHeaders_skipToastr)})),n(t).pipe(Lu(u=>(s||i.error(o.notifications.error.default.text,o.notifications.error.default.title),r.events.error.emit(u),j_(()=>u))))}function yZ(e,n){let t=e;const r=p(Je);if(!e.headers.get("Authorization")){const o=r.data.payment()?.userAuthToken;o&&(t=e.clone({headers:e.headers.append("Authorization",o)}))}return n(t)}let vZ=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=zt({type:e});static#n=this.\u0275inj=Et({providers:[AG(xG([gZ,yZ]))],imports:[pU.forRoot(),hZ,GA,pZ,mZ]})}return e})(),_Z=(()=>{class e{constructor(t){this.injector=t}ngDoBootstrap(t){const{injector:r}=this,i=function CB(e,n){const t=function mB(e,n){return n.get(Is).resolveComponentFactory(e).inputs}(e,n.injector),r=n.strategyFactory||new _B(e,n.injector),i=function pB(e){const n={};return e.forEach(({propName:t,templateName:r,transform:i})=>{n[function cB(e){return e.replace(/[A-Z]/g,n=>`-${n.toLowerCase()}`)}(r)]=[t,i]}),n}(t);class o extends wB{static#e=this.observedAttributes=Object.keys(i);get ngElementStrategy(){if(!this._ngElementStrategy){const u=this._ngElementStrategy=r.create(this.injector||n.injector);t.forEach(({propName:c,transform:d})=>{if(!this.hasOwnProperty(c))return;const f=this[c];delete this[c],u.setInputValue(c,f,d)})}return this._ngElementStrategy}constructor(u){super(),this.injector=u}attributeChangedCallback(u,c,d,f){const[m,g]=i[u];this.ngElementStrategy.setInputValue(m,d,g)}connectedCallback(){let u=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),u=!0),this.ngElementStrategy.connect(this),u||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(u=>{const c=new CustomEvent(u.name,{detail:u.value});this.dispatchEvent(c)})}}return t.forEach(({propName:s,transform:u})=>{Object.defineProperty(o.prototype,s,{get(){return this.ngElementStrategy.getInputValue(s)},set(c){this.ngElementStrategy.setInputValue(s,c,u)},configurable:!0,enumerable:!0})}),o}(vq,{injector:r});customElements.define("moto-payment-form",i)}static#e=this.\u0275fac=function(r){return new(r||e)(l(tt))};static#t=this.\u0275mod=zt({type:e});static#n=this.\u0275inj=Et({imports:[Sp,vZ]})}return e})();_8().bootstrapModule(_Z).catch(e=>console.log(e))},634:function(F,x,M){"use strict";var D=this&&this.__assign||function(){return D=Object.assign||function(Ie){for(var Te,et=1,pt=arguments.length;et<pt;et++)for(var Ar in Te=arguments[et])Object.prototype.hasOwnProperty.call(Te,Ar)&&(Ie[Ar]=Te[Ar]);return Ie},D.apply(this,arguments)},ke=M(990),Ae=M(402),xe=M(987),z=M(250),ie=M(507),U={},be={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"},Pr=[be.VISA,be.MASTERCARD,be.AMERICAN_EXPRESS,be.DINERS_CLUB,be.DISCOVER,be.JCB,be.UNIONPAY,be.MAESTRO,be.ELO,be.MIR,be.HIPER,be.HIPERCARD],Ht=(0,ie.clone)(Pr);function lr(Ie){return U[Ie]||ke[Ie]}function io(Ie,Te){void 0===Te&&(Te=!1);var et=Ht.indexOf(Ie);if(!Te&&-1===et)throw new Error('"'+Ie+'" is not a supported card type.');return et}function Nn(Ie){var Te=[];if(!(0,xe.isValidInputType)(Ie))return Te;if(0===Ie.length)return function jo(){return Ht.map(function(Ie){return(0,ie.clone)(lr(Ie))})}();Ht.forEach(function(pt){var Ar=lr(pt);(0,Ae.addMatchingCardsToResults)(Ie,Ar,Te)});var et=(0,z.findBestMatch)(Te);return et?[et]:Te}Nn.getTypeInfo=function(Ie){return(0,ie.clone)(lr(Ie))},Nn.removeCard=function(Ie){var Te=io(Ie);Ht.splice(Te,1)},Nn.addCard=function(Ie){var Te=io(Ie.type,!0);U[Ie.type]=Ie,-1===Te&&Ht.push(Ie.type)},Nn.updateCard=function(Ie,Te){var et=U[Ie]||ke[Ie];if(!et)throw new Error('"'.concat(Ie,"\" is not a recognized type. Use `addCard` instead.'"));if(Te.type&&et.type!==Te.type)throw new Error("Cannot overwrite type parameter.");var pt=(0,ie.clone)(et);pt=D(D({},pt),Te),U[pt.type]=pt},Nn.changeOrder=function(Ie,Te){var et=io(Ie);Ht.splice(et,1),Ht.splice(Te,0,Ie)},Nn.resetModifications=function(){Ht=(0,ie.clone)(Pr),U={}},Nn.types=be,F.exports=Nn},402:(F,x,M)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.addMatchingCardsToResults=void 0;var D=M(507),ke=M(595);x.addMatchingCardsToResults=function Ae(xe,z,ie){var U,be;for(U=0;U<z.patterns.length;U++){var Pr=z.patterns[U];if((0,ke.matches)(xe,Pr)){var Ht=(0,D.clone)(z);be=Array.isArray(Pr)?String(Pr[0]).length:String(Pr).length,xe.length>=be&&(Ht.matchStrength=be),ie.push(Ht);break}}}},990:F=>{"use strict";F.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:(F,x)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.clone=void 0,x.clone=function M(D){return D?JSON.parse(JSON.stringify(D)):null}},250:(F,x)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.findBestMatch=void 0,x.findBestMatch=function D(ke){return function M(ke){var Ae=ke.filter(function(xe){return xe.matchStrength}).length;return Ae>0&&Ae===ke.length}(ke)?ke.reduce(function(Ae,xe){return!Ae||Number(Ae.matchStrength)<Number(xe.matchStrength)?xe:Ae}):null}},987:(F,x)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.isValidInputType=void 0,x.isValidInputType=function M(D){return"string"==typeof D||D instanceof String}},595:(F,x)=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.matches=void 0,x.matches=function ke(Ae,xe){return Array.isArray(xe)?function M(Ae,xe,z){var ie=String(xe).length,U=Ae.substr(0,ie),be=parseInt(U,10);return xe=parseInt(String(xe).substr(0,U.length),10),z=parseInt(String(z).substr(0,U.length),10),be>=xe&&be<=z}(Ae,xe[0],xe[1]):function D(Ae,xe){return(xe=String(xe)).substring(0,Ae.length)===Ae.substring(0,xe.length)}(Ae,xe)}},463:function(){(function(){window.denylistedDomainsHashedValueListForGpayButtonWithCardInfo=[-718583466,-651407173,1501053020,1270931793,1878965203,1359979311,-1556396599,-929820290,-1993966558,969369487,813004726,545283320,1144403640]}).call(this),function(){window.whitelistedDomainsHashedValueListForGpayButtonWithCardInfo=[1432838318]}.call(this),function(){window.denylistedMerchentIdsHashedValueListForGpayButtonWithCardInfo=[1260893,211376492,-383338062,621213554,-1574521140,318272649,-1021013306]}.call(this),function(){window.denylistedMerchantIdsHashedValueListForGpayButtonVariant=[]}.call(this),function(){window.allowlistedMerchantDomainsForBnplDynamicButton=[1605359444,1058617217,-1952496552,1475577307,-266458566,-1100178842,82073654,1871160076,1512037837,-324377671,-1836633316,1257306572,-490810357,914948972,1312509109,1456172824,1359979311,2119319518,1000705814,-557041780,217951089,-733157279,545927057,-1637503934,587727802,439938499,-82521450,1010792251,-1600155240,501105821,1687733144,-594871460,-292702292,1047750569,1757603081,1277798904,140429097,830662232,-1591032177,409676547,388255805,14664163,-888714055,2024616735,-1854751591,969369487,-1671782663,-364941361,1459357773,1285145032,949802706,-965096850,-800621897,-705555514,-1274801837,-371468606,401692316,596576164]}.call(this),function(){window.allowlistedMerchantDomainsForRlmiaDynamicButton=[1030427005,-1467922549,-539967585]}.call(this),function(){window.allowlistedMerchantDomainsForPopupModeLoadingScreen=[-1952239152,-1239320691,1567214642,697229904,486133992,-31862958,-1800077669]}.call(this),function(){window.dynamicGpayButtonVariant="GPAY_BUTTON_VARIANT_TYPE_NONE"}.call(this),function(){this.google=this.google||{},this.google.payments=this.google.payments||{},this.google.payments.api=this.google.payments.api||{},this.google.payments.api.ButtonTypePolicyInPayjs=0}.call(this),function(){this.google=this.google||{},this.google.payments=this.google.payments||{},this.google.payments.api=this.google.payments.api||{},this.google.payments.api.IsAnonymousUser=!1}.call(this),function(){for(var D,F=this||self,x=["google","payments","api","ReadyToPayAdditionalBrowsers"],M=window||F;x.length&&(D=x.shift());)x.length?M=M[D]&&M[D]!==Object.prototype[D]?M[D]:M[D]={}:M[D]=!0}.call(this),function(){for(var D,F=this||self,x=["google","payments","api","PaymentHandlerLaunchPayjs"],M=window||F;x.length&&(D=x.shift());)x.length?M=M[D]&&M[D]!==Object.prototype[D]?M[D]:M[D]={}:M[D]=!0}.call(this),function(){for(var D,F=this||self,x=["google","payments","api","PaymentHandlerDynamicUpdatesLaunchPayjs"],M=window||F;x.length&&(D=x.shift());)x.length?M=M[D]&&M[D]!==Object.prototype[D]?M[D]:M[D]={}:M[D]=!0}.call(this),function(){for(var D,F=this||self,x=["google","payments","api","EnablePopupForChromeAndroid"],M=window||F;x.length&&(D=x.shift());)x.length?M=M[D]&&M[D]!==Object.prototype[D]?M[D]:M[D]={}:M[D]=!0}.call(this),function(){for(var D,F=this||self,x=["google","payments","api","EnableDynamicGpayButton"],M=window||F;x.length&&(D=x.shift());)x.length?M=M[D]&&M[D]!==Object.prototype[D]?M[D]:M[D]={}:M[D]=!0}.call(this),function(){for(var D,F=this||self,x=["google","payments","api","EnableDynamicUpdateForClank"],M=window||F;x.length&&(D=x.shift());)x.length?M=M[D]&&M[D]!==Object.prototype[D]?M[D]:M[D]={}:M[D]=!0}.call(this),function(){for(var D,F=this||self,x=["google","payments","api","EnableGpayButtonAriaLabelLocalization"],M=window||F;x.length&&(D=x.shift());)x.length?M=M[D]&&M[D]!==Object.prototype[D]?M[D]:M[D]={}:M[D]=!0}.call(this),function(){for(var D,F=this||self,x=["google","payments","api","EnablePaymentRequest"],M=window||F;x.length&&(D=x.shift());)x.length?M=M[D]&&M[D]!==Object.prototype[D]?M[D]:M[D]={}:M[D]=!0}.call(this),function(){for(var D,F=this||self,x=["google","payments","api","EnableLoadPaymentDataTimeout"],M=window||F;x.length&&(D=x.shift());)x.length?M=M[D]&&M[D]!==Object.prototype[D]?M[D]:M[D]={}:M[D]=!0}.call(this),function(){for(var D,F=this||self,x=["google","payments","api","EnableOfferCallback"],M=window||F;x.length&&(D=x.shift());)x.length?M=M[D]&&M[D]!==Object.prototype[D]?M[D]:M[D]={}:M[D]=!0}.call(this),function(){for(var D,F=this||self,x=["google","payments","api","UseCanMakePaymentForFallbackOnMobile"],M=window||F;x.length&&(D=x.shift());)x.length?M=M[D]&&M[D]!==Object.prototype[D]?M[D]:M[D]={}:M[D]=!0}.call(this),function(){for(var D,F=this||self,x=["google","payments","api","EnableImprovedIsrtpLogging"],M=window||F;x.length&&(D=x.shift());)x.length?M=M[D]&&M[D]!==Object.prototype[D]?M[D]:M[D]={}:M[D]=!0}.call(this),function(){for(var D,F=this||self,x=["google","payments","api","EnableClosePopupOnHostingPageUnload"],M=window||F;x.length&&(D=x.shift());)x.length?M=M[D]&&M[D]!==Object.prototype[D]?M[D]:M[D]={}:M[D]=!0}.call(this),function(){for(var D,F=this||self,x=["google","payments","api","EnablePaymentHandlerSandboxBuyflow"],M=window||F;x.length&&(D=x.shift());)x.length?M=M[D]&&M[D]!==Object.prototype[D]?M[D]:M[D]={}:M[D]=!0}.call(this),function(){for(var D,F=this||self,x=["google","payments","api","EnableGpayButtonDynamicRadius"],M=window||F;x.length&&(D=x.shift());)x.length?M=M[D]&&M[D]!==Object.prototype[D]?M[D]:M[D]={}:M[D]=!0}.call(this),function(){for(var D,F=this||self,x=["google","payments","api","EnableWebNgbfForCallbackIntents"],M=window||F;x.length&&(D=x.shift());)x.length?M=M[D]&&M[D]!==Object.prototype[D]?M[D]:M[D]={}:M[D]=!0}.call(this),function(){for(var D,F=this||self,x=["google","payments","api","EnableDynamicGpayButtonForPayButton"],M=window||F;x.length&&(D=x.shift());)x.length?M=M[D]&&M[D]!==Object.prototype[D]?M[D]:M[D]={}:M[D]=!0}.call(this),function(){for(var D,F=this||self,x=["google","payments","api","EnableDynamicGpayButtonForPlainButton"],M=window||F;x.length&&(D=x.shift());)x.length?M=M[D]&&M[D]!==Object.prototype[D]?M[D]:M[D]={}:M[D]=!0}.call(this),function(){for(var D,F=this||self,x=["google","payments","api","EnableRlmiaButtonAnimation"],M=window||F;x.length&&(D=x.shift());)x.length?M=M[D]&&M[D]!==Object.prototype[D]?M[D]:M[D]={}:M[D]=!0}.call(this),function(){for(var D,F=this||self,x=["google","payments","api","EnableCreateButtonApiOnClickLogging"],M=window||F;x.length&&(D=x.shift());)x.length?M=M[D]&&M[D]!==Object.prototype[D]?M[D]:M[D]={}:M[D]=!0}.call(this),function(){for(var D,F=this||self,x=["google","payments","api","EnableLoadingScreenForPopupMode"],M=window||F;x.length&&(D=x.shift());)x.length?M=M[D]&&M[D]!==Object.prototype[D]?M[D]:M[D]={}:M[D]=!0}.call(this),function(){for(var D,F=this||self,x=["google","payments","api","EnableButtonBorderInset"],M=window||F;x.length&&(D=x.shift());)x.length?M=M[D]&&M[D]!==Object.prototype[D]?M[D]:M[D]={}:M[D]=!0}.call(this),function(){for(var D,F=this||self,x=["google","payments","api","EnableRlmiaSmallerText"],M=window||F;x.length&&(D=x.shift());)x.length?M=M[D]&&M[D]!==Object.prototype[D]?M[D]:M[D]={}:M[D]=!0}.call(this),function(){var F,x,M=function(a){var l=0;return function(){return l<a.length?{done:!1,value:a[l++]}:{done:!0}}},D="function"==typeof Object.defineProperties?Object.defineProperty:function(a,l,h){return a==Array.prototype||a==Object.prototype||(a[l]=h.value),a},Ae=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var l=0;l<a.length;++l){var h=a[l];if(h&&h.Math==Math)return h}throw Error("Cannot find global object")}(this),xe="function"==typeof Symbol&&"symbol"==typeof Symbol("x"),z={},ie={},U=function(a,l,h){if(!h||null!=a)return null==(h=ie[l])?a[l]:void 0!==(h=a[h])?h:a[l]},be=function(a,l,h){if(l)e:{var p=a.split("."),v=p[0];v=!(a=1===p.length)&&v in z?z:Ae;for(var b=0;b<p.length-1;b++){var w=p[b];if(!(w in v))break e;v=v[w]}p=p[p.length-1],null!=(l=l(h=xe&&"es6"===h?v[p]:null))&&(a?D(z,p,{configurable:!0,writable:!0,value:l}):l!==h&&(void 0===ie[p]&&(a=1e9*Math.random()>>>0,ie[p]=xe?Ae.Symbol(p):"$jscp$"+a+"$"+p),D(v,ie[p],{configurable:!0,writable:!0,value:l})))}};be("Symbol",function(a){if(a)return a;var l=function(b,w){this.kc=b,D(this,"description",{configurable:!0,writable:!0,value:w})};l.prototype.toString=function(){return this.kc};var h="jscomp_symbol_"+(1e9*Math.random()>>>0)+"_",p=0,v=function(b){if(this instanceof v)throw new TypeError("Symbol is not a constructor");return new l(h+(b||"")+"_"+p++,b)};return v},"es6"),be("Symbol.iterator",function(a){if(a)return a;a=(0,z.Symbol)("Symbol.iterator");for(var l="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),h=0;h<l.length;h++){var p=Ae[l[h]];"function"==typeof p&&"function"!=typeof p.prototype[a]&&D(p.prototype,a,{configurable:!0,writable:!0,value:function(){return Pr(M(this))}})}return a},"es6");var lr,Pr=function(a){return(a={next:a})[U(z.Symbol,"iterator")]=function(){return this},a},Ht="function"==typeof Object.create?Object.create:function(a){var l=function(){};return l.prototype=a,new l};if(xe&&"function"==typeof Object.setPrototypeOf)lr=Object.setPrototypeOf;else{var jo;e:{var Nn={};try{Nn.__proto__={a:!0},jo=Nn.a;break e}catch{}jo=!1}lr=jo?function(a,l){if(a.__proto__=l,a.__proto__!==l)throw new TypeError(a+" is not extensible");return a}:null}var Ie=lr,Te=function(a){var l=typeof z.Symbol<"u"&&U(z.Symbol,"iterator")&&a[U(z.Symbol,"iterator")];if(l)return l.call(a);if("number"==typeof a.length)return{next:M(a)};throw Error(String(a)+" is not an iterable or ArrayLike")},et=function(a){if(!(a instanceof Array)){a=Te(a);for(var l,h=[];!(l=a.next()).done;)h.push(l.value);a=h}return a},pt=function(a,l){return Object.prototype.hasOwnProperty.call(a,l)},Ar=xe&&"function"==typeof U(Object,"assign")?U(Object,"assign"):function(a,l){for(var h=1;h<arguments.length;h++){var p=arguments[h];if(p)for(var v in p)pt(p,v)&&(a[v]=p[v])}return a};be("Object.assign",function(a){return a||Ar},"es6");var oo=function(){this.Ja=!1,this.la=null,this.Xa=void 0,this.X=1,this.Rb=this.ob=0,this.wa=null},Ks=function(a){if(a.Ja)throw new TypeError("Generator is already running");a.Ja=!0};oo.prototype.Ka=function(a){this.Xa=a},oo.prototype.Ta=function(a){this.wa={vc:a,zc:!0},this.X=this.ob||this.Rb},oo.prototype.return=function(a){this.wa={return:a},this.X=this.Rb};var so=function(a,l,h){return a.X=h,{value:l}},xi=function(a){this.h=new oo,this.Gc=a};xi.prototype.Ka=function(a){return Ks(this.h),this.h.la?Qs(this,this.h.la.next,a,this.h.Ka):(this.h.Ka(a),ao(this))},xi.prototype.Ta=function(a){return Ks(this.h),this.h.la?Qs(this,this.h.la.throw,a,this.h.Ka):(this.h.Ta(a),ao(this))};var Qs=function(a,l,h,p){try{var v=l.call(a.h.la,h);if(!(v instanceof Object))throw new TypeError("Iterator result "+v+" is not an object");if(!v.done)return a.h.Ja=!1,v;var b=v.value}catch(w){return a.h.la=null,a.h.Ta(w),ao(a)}return a.h.la=null,p.call(a.h,b),ao(a)},ao=function(a){for(;a.h.X;)try{var l=a.Gc(a.h);if(l)return a.h.Ja=!1,{value:l.value,done:!1}}catch(h){a.h.Xa=void 0,a.h.Ta(h)}if(a.h.Ja=!1,a.h.wa){if(l=a.h.wa,a.h.wa=null,l.zc)throw l.vc;return{value:l.return,done:!0}}return{value:void 0,done:!0}},Am=function(a){this.next=function(l){return a.Ka(l)},this.throw=function(l){return a.Ta(l)},this.return=function(l){return function(a,l){Ks(a.h);var h=a.h.la;return h?Qs(a,"return"in h?h.return:function(p){return{value:p,done:!0}},l,a.h.return):(a.h.return(l),ao(a))}(a,l)},this[U(z.Symbol,"iterator")]=function(){return this}},Bo=function(a){return function(a){function l(p){return a.next(p)}function h(p){return a.throw(p)}return new z.Promise(function(p,v){!function b(w){w.done?p(w.value):z.Promise.resolve(w.value).then(l,h).then(b,v)}(a.next())})}(new Am(new xi(a)))},Ho=function(){for(var a=Number(this),l=[],h=a;h<arguments.length;h++)l[h-a]=arguments[h];return l};be("globalThis",function(a){return a||Ae},"es_2020"),be("Promise",function(a){function l(){this.Z=null}function h(w){return w instanceof v?w:new v(function(E){E(w)})}if(a)return a;l.prototype.Kb=function(w){if(null==this.Z){this.Z=[];var E=this;this.Lb(function(){E.wc()})}this.Z.push(w)};var p=Ae.setTimeout;l.prototype.Lb=function(w){p(w,0)},l.prototype.wc=function(){for(;this.Z&&this.Z.length;){var w=this.Z;this.Z=[];for(var E=0;E<w.length;++E){var V=w[E];w[E]=null;try{V()}catch(O){this.rc(O)}}}this.Z=null},l.prototype.rc=function(w){this.Lb(function(){throw w})};var v=function(w){this.Ba=0,this.ea=void 0,this.Aa=[],this.Tb=!1;var E=this.rb();try{w(E.resolve,E.reject)}catch(V){E.reject(V)}};v.prototype.rb=function(){function w(O){return function(X){V||(V=!0,O.call(E,X))}}var E=this,V=!1;return{resolve:w(this.Lc),reject:w(this.Bb)}},v.prototype.Lc=function(w){if(w===this)this.Bb(new TypeError("A Promise cannot resolve to itself"));else if(w instanceof v)this.Oc(w);else{e:switch(typeof w){case"object":var E=null!=w;break e;case"function":E=!0;break e;default:E=!1}E?this.Kc(w):this.Sb(w)}},v.prototype.Kc=function(w){var E=void 0;try{E=w.then}catch(V){return void this.Bb(V)}"function"==typeof E?this.Pc(E,w):this.Sb(w)},v.prototype.Bb=function(w){this.ic(2,w)},v.prototype.Sb=function(w){this.ic(1,w)},v.prototype.ic=function(w,E){if(0!=this.Ba)throw Error("Cannot settle("+w+", "+E+"): Promise already settled in state"+this.Ba);this.Ba=w,this.ea=E,2===this.Ba&&this.Mc(),this.xc()},v.prototype.Mc=function(){var w=this;p(function(){if(w.Cc()){var E=Ae.console;typeof E<"u"&&E.error(w.ea)}},1)},v.prototype.Cc=function(){if(this.Tb)return!1;var w=Ae.CustomEvent,E=Ae.Event,V=Ae.dispatchEvent;return typeof V>"u"||("function"==typeof w?w=new w("unhandledrejection",{cancelable:!0}):"function"==typeof E?w=new E("unhandledrejection",{cancelable:!0}):(w=Ae.document.createEvent("CustomEvent")).initCustomEvent("unhandledrejection",!1,!0,w),w.promise=this,w.reason=this.ea,V(w))},v.prototype.xc=function(){if(null!=this.Aa){for(var w=0;w<this.Aa.length;++w)b.Kb(this.Aa[w]);this.Aa=null}};var b=new l;return v.prototype.Oc=function(w){var E=this.rb();w.bb(E.resolve,E.reject)},v.prototype.Pc=function(w,E){var V=this.rb();try{w.call(E,V.resolve,V.reject)}catch(O){V.reject(O)}},v.prototype.then=function(w,E){function V(mt,$t){return"function"==typeof mt?function(cs){try{O(mt(cs))}catch(_n){X(_n)}}:$t}var O,X,Ze=new v(function(mt,$t){O=mt,X=$t});return this.bb(V(w,O),V(E,X)),Ze},v.prototype.catch=function(w){return this.then(void 0,w)},v.prototype.bb=function(w,E){function V(){switch(O.Ba){case 1:w(O.ea);break;case 2:E(O.ea);break;default:throw Error("Unexpected state: "+O.Ba)}}var O=this;null==this.Aa?b.Kb(V):this.Aa.push(V),this.Tb=!0},v.resolve=h,v.reject=function(w){return new v(function(E,V){V(w)})},v.race=function(w){return new v(function(E,V){for(var O=Te(w),X=O.next();!X.done;X=O.next())h(X.value).bb(E,V)})},v.all=function(w){var E=Te(w),V=E.next();return V.done?h([]):new v(function(O,X){function Ze(cs){return function(_n){mt[cs]=_n,0==--$t&&O(mt)}}var mt=[],$t=0;do{mt.push(void 0),$t++,h(V.value).bb(Ze(mt.length-1),X),V=E.next()}while(!V.done)})},v},"es6"),be("Symbol.dispose",function(a){return a||(0,z.Symbol)("Symbol.dispose")},"es_next"),be("WeakMap",function(a){function l(){}function h(w){var E=typeof w;return"object"===E&&null!==w||"function"===E}if(function(){if(!a||!Object.seal)return!1;try{var w=Object.seal({}),E=Object.seal({}),V=new a([[w,2],[E,3]]);return 2==V.get(w)&&3==V.get(E)&&(V.delete(w),V.set(E,4),!V.has(w)&&4==V.get(E))}catch{return!1}}())return a;var p="$jscomp_hidden_"+Math.random(),v=0,b=function(w){if(this.Ha=(v+=Math.random()+1).toString(),w){w=Te(w);for(var E;!(E=w.next()).done;)this.set((E=E.value)[0],E[1])}};return b.prototype.set=function(w,E){if(!h(w))throw Error("Invalid WeakMap key");if(!pt(w,p)){var V=new l;D(w,p,{value:V})}if(!pt(w,p))throw Error("WeakMap key fail: "+w);return w[p][this.Ha]=E,this},b.prototype.get=function(w){return h(w)&&pt(w,p)?w[p][this.Ha]:void 0},b.prototype.has=function(w){return h(w)&&pt(w,p)&&pt(w[p],this.Ha)},b.prototype.delete=function(w){return!!(h(w)&&pt(w,p)&&pt(w[p],this.Ha))&&delete w[p][this.Ha]},b},"es6"),be("Map",function(a){if(function(){if(!a||"function"!=typeof a||!U(a.prototype,"entries")||"function"!=typeof Object.seal)return!1;try{var E=Object.seal({x:4}),V=new a(Te([[E,"s"]]));if("s"!=V.get(E)||1!=V.size||V.get({x:4})||V.set({x:4},"t")!=V||2!=V.size)return!1;var O=U(V,"entries").call(V),X=O.next();return!X.done&&X.value[0]==E&&"s"==X.value[1]&&!((X=O.next()).done||4!=X.value[0].x||"t"!=X.value[1]||!O.next().done)}catch{return!1}}())return a;var l=new z.WeakMap,h=function(E){if(this[0]={},this[1]=b(),this.size=0,E){E=Te(E);for(var V;!(V=E.next()).done;)this.set((V=V.value)[0],V[1])}};h.prototype.set=function(E,V){var O=p(this,E=0===E?0:E);return O.list||(O.list=this[0][O.id]=[]),O.C?O.C.value=V:(O.C={next:this[1],Y:this[1].Y,head:this[1],key:E,value:V},O.list.push(O.C),this[1].Y.next=O.C,this[1].Y=O.C,this.size++),this},h.prototype.delete=function(E){return!(!(E=p(this,E)).C||!E.list||(E.list.splice(E.index,1),E.list.length||delete this[0][E.id],E.C.Y.next=E.C.next,E.C.next.Y=E.C.Y,E.C.head=null,this.size--,0))},h.prototype.clear=function(){this[0]={},this[1]=this[1].Y=b(),this.size=0},h.prototype.has=function(E){return!!p(this,E).C},h.prototype.get=function(E){return(E=p(this,E).C)&&E.value},h.prototype.entries=function(){return v(this,function(E){return[E.key,E.value]})},h.prototype.keys=function(){return v(this,function(E){return E.key})},h.prototype.values=function(){return v(this,function(E){return E.value})},h.prototype.forEach=function(E,V){for(var X,O=U(this,"entries").call(this);!(X=O.next()).done;)E.call(V,(X=X.value)[1],X[0],this)},h.prototype[U(z.Symbol,"iterator")]=U(h.prototype,"entries");var p=function(E,V){var O=V&&typeof V;"object"==O||"function"==O?l.has(V)?O=l.get(V):(O=""+ ++w,l.set(V,O)):O="p_"+V;var X=E[0][O];if(X&&pt(E[0],O))for(E=0;E<X.length;E++){var Ze=X[E];if(V!=V&&Ze.key!=Ze.key||V===Ze.key)return{id:O,list:X,index:E,C:Ze}}return{id:O,list:X,index:-1,C:void 0}},v=function(E,V){var O=E[1];return Pr(function(){if(O){for(;O.head!=E[1];)O=O.Y;for(;O.next!=O.head;)return{done:!1,value:V(O=O.next)};O=null}return{done:!0,value:void 0}})},b=function(){var E={};return E.Y=E.next=E.head=E},w=0;return h},"es6");var Wu=function(a,l){a instanceof String&&(a+="");var h=0,p=!1,v={next:function(){if(!p&&h<a.length){var b=h++;return{value:l(b,a[b]),done:!1}}return p=!0,{done:!0,value:void 0}}};return v[U(z.Symbol,"iterator")]=function(){return v},v};be("Array.prototype.entries",function(a){return a||function(){return Wu(this,function(l,h){return[l,h]})}},"es6"),be("Array.prototype.keys",function(a){return a||function(){return Wu(this,function(l){return l})}},"es6"),be("Object.entries",function(a){return a||function(l){var p,h=[];for(p in l)pt(l,p)&&h.push([p,l[p]]);return h}},"es8"),be("Array.prototype.values",function(a){return a||function(){return Wu(this,function(l,h){return h})}},"es8"),be("Array.from",function(a){return a||function(l,h,p){h=h??function(E){return E};var v=[],b=typeof z.Symbol<"u"&&U(z.Symbol,"iterator")&&l[U(z.Symbol,"iterator")];if("function"==typeof b){l=b.call(l);for(var w=0;!(b=l.next()).done;)v.push(h.call(p,b.value,w++))}else for(b=l.length,w=0;w<b;w++)v.push(h.call(p,l[w],w));return v}},"es6"),be("Object.values",function(a){return a||function(l){var p,h=[];for(p in l)pt(l,p)&&h.push(l[p]);return h}},"es8"),be("Object.is",function(a){return a||function(l,h){return l===h?0!==l||1/l==1/h:l!=l&&h!=h}},"es6"),be("Array.prototype.includes",function(a){return a||function(l,h){var p=this;p instanceof String&&(p=String(p));var v=p.length;for((h=h||0)<0&&(h=Math.max(h+v,0));h<v;h++){var b=p[h];if(b===l||U(Object,"is").call(Object,b,l))return!0}return!1}},"es7"),be("String.prototype.includes",function(a){return a||function(l,h){if(null==this)throw new TypeError("The 'this' value for String.prototype.includes must not be null or undefined");if(l instanceof RegExp)throw new TypeError("First argument to String.prototype.includes must not be a regular expression");return-1!==(this+"").indexOf(l,h||0)}},"es6");var uo=this||self,Zu=function(a,l){a=a.split(".");for(var p,h=window||uo;a.length&&(p=a.shift());)a.length||void 0===l?h=h[p]&&h[p]!==Object.prototype[p]?h[p]:h[p]={}:h[p]=l},Js=function(a){var l=typeof a;return"object"!=l?l:a?Array.isArray(a)?"array":l:"null"},ea=function(a){var l=Js(a);return"array"==l||"object"==l&&"number"==typeof a.length},dr=function(a){var l=typeof a;return"object"==l&&null!=a||"function"==l},xm=function(a,l,h){return a.call.apply(a.bind,arguments)},Gb=function(a,l,h){if(!a)throw Error();if(arguments.length>2){var p=Array.prototype.slice.call(arguments,2);return function(){var v=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(v,p),a.apply(l,v)}}return function(){return a.apply(l,arguments)}},Yu=function(a,l,h){return(Yu=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?xm:Gb).apply(null,arguments)},ki=function(a,l){function h(){}h.prototype=l.prototype,a.Da=l.prototype,a.prototype=new h,a.prototype.constructor=a,a.zd=function(p,v,b){for(var w=Array(arguments.length-2),E=2;E<arguments.length;E++)w[E-2]=arguments[E];return l.prototype[v].apply(p,w)}};function Go(a,l){if(Error.captureStackTrace)Error.captureStackTrace(this,Go);else{var h=Error().stack;h&&(this.stack=h)}a&&(this.message=String(a)),void 0!==l&&(this.cause=l)}function Ku(a,l){for(var h="",p=(a=a.split("%s")).length-1,v=0;v<p;v++)h+=a[v]+(v<l.length?l[v]:"%s");Go.call(this,h+a[p])}function ta(a,l,h,p){var v="Assertion failed";if(h){v+=": "+h;var b=p}else a&&(v+=": "+a,b=l);throw new Ku(""+v,b||[])}ki(Go,Error),Go.prototype.name="CustomError",ki(Ku,Go),Ku.prototype.name="AssertionError";var On=function(a,l,h){return a||ta("",null,l,Array.prototype.slice.call(arguments,2)),a},Ni=function(a,l,h){return"number"!=typeof a&&ta("Expected number but got %s: %s.",[Js(a),a],l,Array.prototype.slice.call(arguments,2)),a},na=function(a,l){this.jc=a===Uo&&l||"",this.oc=ra};na.prototype.toString=function(){return this.jc};var at=function(a){return a instanceof na&&a.constructor===na&&a.oc===ra?a.jc:(function(a,l){throw new Ku("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1))}("expected object of type Const, got '"+a+"'"),"type_error:Const")},qn=function(a){return new na(Uo,a)},ra={},Uo={},ln={lc:"PAYMENT_AUTHORIZATION",mc:"SHIPPING_ADDRESS",nc:"SHIPPING_OPTION",vd:"UNKNOWN_INTENT"},wd={Wc:"CANARY",fd:"LOCAL",od:"PREPROD",pd:"PRODUCTION",qd:"SANDBOX",td:"TEST",ud:"TIN"},Cd={Yc:"CRYPTOGRAM_3DS",ld:"PAN_ONLY"},Ed={bd:"ESTIMATED",dd:"FINAL",hd:"NOT_CURRENTLY_KNOWN"},Oi={SHORT:"short",gd:"long",nd:"plain",Vc:"buy",ad:"donate",Uc:"book",Xc:"checkout",kd:"order",md:"pay",sd:"subscribe"},ia={Zc:"default",Tc:"black",xd:"white"},Dd={rd:"static",cd:"fill"},co={buy:{en:152,ar:189,bg:163,ca:182,cs:192,da:154,de:183,el:178,es:183,et:147,fi:148,fr:183,hr:157,id:186,it:182,ja:148,ko:137,ms:186,nl:167,no:158,pl:182,pt:193,ru:206,sk:157,sl:211,sr:146,sv:154,th:146,tr:161,uk:207,zh:156},book:{ar:205,bg:233,ca:187,cs:213,da:162,de:176,el:180,en:161,es:188,et:186,fi:152,fr:197,hr:198,id:195,it:178,ja:150,ko:150,ms:211,nl:178,no:195,pl:221,pt:208,ru:265,sk:206,sl:266,sr:196,sv:161,th:150,tr:238,uk:248,zh:158},checkout:{ar:245,bg:200,ca:268,cs:175,da:162,de:188,el:286,en:201,es:188,et:171,fi:158,fr:170,hr:166,id:226,it:256,ja:150,ko:150,ms:291,nl:178,no:230,pl:187,pt:271,ru:283,sk:176,sl:313,sr:153,sv:172,th:168,tr:195,uk:216,zh:158},donate:{ar:205,bg:205,ca:162,cs:212,da:171,de:186,el:163,en:180,es:165,et:150,fi:171,fr:225,hr:182,id:237,it:157,ja:167,ko:150,ms:201,nl:187,no:171,pl:252,pt:175,ru:342,sk:178,sl:242,sr:171,sv:181,th:158,tr:181,uk:256,zh:158},order:{ar:198,bg:195,ca:247,cs:198,da:166,de:190,el:208,en:170,es:157,et:150,fi:150,fr:226,hr:201,id:195,it:171,ja:150,ko:150,ms:195,nl:192,no:171,pl:190,pt:177,ru:207,sk:190,sl:240,sr:165,sv:176,th:151,tr:188,uk:216,zh:158},pay:{ar:202,bg:200,ca:160,cs:183,da:162,de:188,el:185,en:150,es:162,et:150,fi:158,fr:170,hr:172,id:192,it:155,ja:150,ko:150,ms:192,nl:178,no:162,pl:187,pt:182,ru:213,sk:176,sl:225,sr:153,sv:172,th:168,tr:150,uk:216,zh:158},subscribe:{ar:221,bg:217,ca:226,cs:201,da:192,de:208,el:180,en:202,es:206,et:150,fi:150,fr:206,hr:178,id:260,it:190,ja:150,ko:150,ms:216,nl:208,no:192,pl:221,pt:196,ru:243,sk:193,sl:333,sr:217,sv:228,th:213,tr:173,uk:305,zh:158}},Ri={buy:{ar:"\u0627\u0644\u0634\u0631\u0627\u0621 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 GPay",bg:"\u041a\u0443\u043f\u0443\u0432\u0430\u043d\u0435 \u0447\u0440\u0435\u0437 GPay",ca:"Compra amb GPay",cs:"Koupit s GPay",da:"K\xf8b med GPay",de:"Mit GPay kaufen",el:"\u0391\u03b3\u03bf\u03c1\u03ac \u03bc\u03b5 GPay",en:"Buy with GPay",es:"Comprar con GPay",et:"Osta GPayga",fi:"Osta GPaylla",fr:"Acheter avec GPay",hr:"Kupnja uz GPay",id:"Beli dengan GPay",it:"Acquista con GPay",ja:"GPay \u3067\u8cfc\u5165\u3059\u308b",ko:"GPay\ub85c \uad6c\ub9e4",ms:"Beli dengan GPay",nl:"Kopen met GPay",no:"Kj\xf8p med GPay",pl:"Kup to z GPay",pt:"Comprar com o GPay",ru:"\u041a\u0443\u043f\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 GPay",sk:"K\xfapi\u0165 cez GPay",sl:"Nakup s storitvijo GPay",sr:"\u041a\u0443\u043f\u0438 \u0443\u0437 GPay",sv:"K\xf6pa med GPay",th:"\u0e0b\u0e37\u0e49\u0e2d\u0e14\u0e49\u0e27\u0e22 GPay",tr:"GPayile sat\u0131n al",uk:"\u041a\u0443\u043f\u0438\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 GPay",zh:"\u901a\u8fc7 GPay \u8d2d\u4e70"},book:{ar:"\u0627\u0644\u062d\u062c\u0632 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 GPay",bg:"\u0420\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u0430\u043d\u0435 \u0447\u0440\u0435\u0437 GPay",ca:"Reserva amb GPay",cs:"Rezervovat s GPay",da:"Book med GPay",de:"Mit GPay buchen",el:"\u039a\u03c1\u03ac\u03c4\u03b7\u03c3\u03b7 \u03bc\u03b5 GPay",en:"Book with GPay",es:"Reservar con GPay",et:"Broneeri GPayga",fi:"Varaa GPaylla",fr:"R\xe9server avec GPay",hr:"Rezervacija uz GPay",id:"Reservasi dengan GPay",it:"Prenota con GPay",ja:"GPay \u3067\u4e88\u7d04\u3059\u308b",ko:"GPay\ub85c \uc608\uc57d",ms:"Tempah dengan GPay",nl:"Boeken met GPay",no:"Bestill med GPay",pl:"Zarezerwuj z GPay",pt:"Reservar com o GPay",ru:"\u0417\u0430\u0431\u0440\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 GPay",sk:"Rezervova\u0165 cez GPay",sl:"Rezervacija s storitvijo GPay",sr:"\u0420\u0435\u0437\u0435\u0440\u0432\u0438\u0448\u0438 \u0443\u0437 GPay",sv:"Boka med GPay",th:"\u0e08\u0e2d\u0e07\u0e14\u0e49\u0e27\u0e22 GPay",tr:"GPayile rezervasyon yap",uk:"\u0417\u0430\u0431\u0440\u043e\u043d\u044e\u0432\u0430\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 GPay",zh:"\u901a\u8fc7 GPay \u9884\u8ba2"},checkout:{ar:"\u0625\u062a\u0645\u0627\u0645 \u0627\u0644\u062f\u0641\u0639 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 GPay",bg:"\u041f\u043b\u0430\u0449\u0430\u043d\u0435 \u0447\u0440\u0435\u0437 GPay",ca:"Tramita la compra amb GPay",cs:"Zaplatit s GPay",da:"Betal med GPay",de:"Mit GPay bezahlen",el:"\u039f\u03bb\u03bf\u03ba\u03bb\u03ae\u03c1\u03c9\u03c3\u03b7 \u03b1\u03b3\u03bf\u03c1\u03ac\u03c2 \u03bc\u03b5 GPay",en:"Checkout with GPay",es:"Confirmar compra con GPay",et:"Tasu GPayga",fi:"Osta GPaylla",fr:"R\xe9gler avec GPay",hr:"Naplata uz GPay",id:"Checkout dengan GPay",it:"Vai al pagamento con GPay",ja:"GPay \u3067\u6c7a\u6e08\u3059\u308b",ko:"GPay\ub85c \uacb0\uc81c",ms:"Semak keluar dengan GPay",nl:"Betalen met GPay",no:"Betal med GPay",pl:"Zap\u0142a\u0107 przez GPay",pt:"Pagar com o GPay",ru:"\u041e\u043f\u043b\u0430\u0442\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 GPay",sk:"Zaplati\u0165 cez GPay",sl:"Zaklju\u010dek nakupa s storitvijo GPay",sr:"\u041f\u043b\u0430\u0442\u0438 \u0443\u0437 GPay",sv:"Handla med GPay",th:"\u0e0a\u0e33\u0e23\u0e30\u0e40\u0e07\u0e34\u0e19\u0e14\u0e49\u0e27\u0e22 GPay",tr:"GPayile \xf6deme yap",uk:"\u041e\u043f\u043b\u0430\u0442\u0438\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 GPay",zh:"\u901a\u8fc7 GPay \u7ed3\u8d26"},donate:{ar:"\u0627\u0644\u062a\u0628\u0631\u0651\u0639 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 GPay",bg:"\u0414\u0430\u0440\u044f\u0432\u0430\u043d\u0435 \u0447\u0440\u0435\u0437 GPay",ca:"Fes una donaci\xf3 amb GPay",cs:"Darovat s GPay",da:"Doner med GPay",de:"Mit GPay spenden",el:"\u0394\u03c9\u03c1\u03b5\u03ac \u03bc\u03b5 GPay",en:"Donate with GPay",es:"Donar con GPay",et:"Anneta GPayga",fi:"Lahjoita GPaylla",fr:"Donner avec GPay",hr:"Donacija uz GPay",id:"Beri donasi dengan GPay",it:"Fai una donazione con GPay",ja:"GPay \u3067\u5bc4\u4ed8\u3059\u308b",ko:"GPay\ub85c \uae30\ubd80",ms:"Derma dengan GPay",nl:"Doneren met GPay",no:"Don\xe9r med GPay",pl:"Przeka\u017c darowizn\u0119 przez GPay",pt:"Doar com o GPay",ru:"\u041f\u043e\u0436\u0435\u0440\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 GPay",sk:"Darova\u0165 cez GPay",sl:"Donacija s storitvijo GPay",sr:"\u0414\u043e\u043d\u0438\u0440\u0430\u0458 \u0443\u0437 GPay",sv:"Donera med GPay",th:"\u0e1a\u0e23\u0e34\u0e08\u0e32\u0e04\u0e14\u0e49\u0e27\u0e22 GPay",tr:"GPayile ba\u011f\u0131\u015f yap",uk:"\u041f\u043e\u0436\u0435\u0440\u0442\u0432\u0443\u0432\u0430\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 GPay",zh:"\u901a\u8fc7 GPay \u6350\u6b3e"},order:{ar:"\u0627\u0644\u0637\u0644\u0628 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 GPay",bg:"\u041f\u043e\u0440\u044a\u0447\u0432\u0430\u043d\u0435 \u0447\u0440\u0435\u0437 GPay",ca:"Fes una comanda amb GPay",cs:"Objednat s GPay",da:"Bestil med GPay",de:"Mit GPay bestellen",el:"\u03a0\u03b1\u03c1\u03b1\u03b3\u03b3\u03b5\u03bb\u03af\u03b1 \u03bc\u03b5 GPay",en:"Order with GPay",es:"Realizar pedido con GPay",et:"Telli GPayga",fi:"Tee tilaus GPaylla",fr:"Commander avec GPay",hr:"Narud\u017eba uz GPay",id:"Pesan dengan GPay",it:"Ordina con GPay",ja:"GPay \u3067\u6ce8\u6587\u3059\u308b",ko:"GPay\ub85c \uc8fc\ubb38",ms:"Pesan dengan GPay",nl:"Bestellen met GPay",no:"Bestill med GPay",pl:"Zam\xf3w z GPay",pt:"Pedir com o GPay",ru:"\u0417\u0430\u043a\u0430\u0437\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 GPay",sk:"Objedna\u0165 cez GPay",sl:"Naro\u010dilo s storitvijo GPay",sr:"\u041f\u043e\u0440\u0443\u0447\u0438 \u0443\u0437 GPay ",sv:"Best\xe4lla med GPay",th:"\u0e2a\u0e31\u0e48\u0e07\u0e0b\u0e37\u0e49\u0e2d\u0e14\u0e49\u0e27\u0e22 GPay",tr:"GPayile sipari\u015f ver",uk:"\u0417\u0430\u043c\u043e\u0432\u0438\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 GPay",zh:"\u901a\u8fc7 GPay \u8ba2\u8d2d"},pay:{ar:"\u0627\u0644\u062f\u0641\u0639 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 GPay",bg:"\u041f\u043b\u0430\u0449\u0430\u043d\u0435 \u0447\u0440\u0435\u0437 GPay",ca:"Paga amb GPay",cs:"Zaplatit s GPay",da:"Betal med GPay",de:"Mit GPay bezahlen",el:"\u03a0\u03bb\u03b7\u03c1\u03c9\u03bc\u03ae \u03bc\u03b5 GPay",en:"Pay with GPay",es:"Pagar con GPay",et:"Maksa GPayga",fi:"Maksa GPaylla",fr:"Payer avec GPay",hr:"Pla\u0107anje uz GPay",id:"Bayar dengan GPay",it:"Paga con GPay",ja:"GPay \u3067\u652f\u6255\u3046",ko:"GPay\ub85c \uacb0\uc81c",ms:"Bayar dengan GPay",nl:"Betalen met GPay",no:"Betal med GPay",pl:"Zap\u0142a\u0107 przez GPay",pt:"Pagar com o GPay",ru:"\u0420\u0430\u0441\u043f\u043b\u0430\u0442\u0438\u0442\u044c\u0441\u044f \u0447\u0435\u0440\u0435\u0437 GPay",sk:"Zaplati\u0165 cez GPay",sl:"Pla\u010dilo s storitvijo GPay",sr:"\u041f\u043b\u0430\u0442\u0438 \u0443\u0437 GPay",sv:"Betala med GPay",th:"\u0e0a\u0e33\u0e23\u0e30\u0e40\u0e07\u0e34\u0e19\u0e14\u0e49\u0e27\u0e22 GPay",tr:"GPayile \xf6de",uk:"\u0421\u043f\u043b\u0430\u0442\u0438\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 GPay",zh:"\u901a\u8fc7 GPay \u4ed8\u6b3e"},subscribe:{ar:"\u0627\u0644\u0627\u0634\u062a\u0631\u0627\u0643 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 GPay",bg:"\u0410\u0431\u043e\u043d\u0438\u0440\u0430\u043d\u0435 \u0447\u0440\u0435\u0437 GPay",ca:"Subscriu-te amb GPay",cs:"P\u0159edplatit s GPay",da:"Abonner med GPay",de:"Mit GPay abonnieren",el:"\u0395\u03b3\u03b3\u03c1\u03b1\u03c6\u03ae \u03bc\u03b5 GPay",en:"Subscribe with GPay",es:"Suscribirse con GPay",et:"Telli GPayga",fi:"Tilaa GPaylla",fr:"S'abonner avecGPay",hr:"Pretplata uz GPay",id:"Berlangganan dengan GPay",it:"Abbonati con GPay",ja:"GPay \u3067\u5b9a\u671f\u8cfc\u5165\u3059\u308b",ko:"GPay\ub85c \uad6c\ub3c5",ms:"Langgan dengan GPay",nl:"Abonneren met GPay",no:"Abonner med GPay",pl:"Zasubskrybuj z GPay",pt:"Assinar com o GPay",ru:"\u041f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u0447\u0435\u0440\u0435\u0437 GPay",sk:"Odobera\u0165 cez GPay",sl:"Sklenitev naro\u010dnine s storitvijo GPay",sr:"\u041f\u0440\u0435\u0442\u043f\u043b\u0430\u0442\u0430 \u0443\u0437 GPay",sv:"Prenumerera med GPay",th:"\u0e2a\u0e21\u0e31\u0e04\u0e23\u0e43\u0e0a\u0e49\u0e1a\u0e23\u0e34\u0e01\u0e32\u0e23\u0e14\u0e49\u0e27\u0e22 GPay",tr:"GPayile abone ol",uk:"\u041e\u0444\u043e\u0440\u043c\u0438\u0442\u0438 \u043f\u0456\u0434\u043f\u0438\u0441\u043a\u0443 \u0447\u0435\u0440\u0435\u0437 GPay",zh:"\u901a\u8fc7 GPay \u8ba2\u9605"}},oa={GPAY_BUTTON_VARIANT_TYPE_BNPL_CARD:{ar:"\u0627\u0644\u062f\u0641\u0639 \u0627\u0644\u0622\u0646 \u0623\u0648 \u0644\u0627\u062d\u0642\u064b\u0627 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 Google Pay",bg:"\u041f\u043b\u0430\u0442\u0435\u0442\u0435 \u0441\u0435\u0433\u0430 \u0438\u043b\u0438 \u043f\u043e-\u043a\u044a\u0441\u043d\u043e \u0441 Google Pay",ca:"Paga ara o m\xe9s tard amb Google Pay",cs:"Pla\u0165te ihned nebo pozd\u011bji s Google Pay",da:"Betal nu eller senere med Google Pay",de:"Jetzt oder sp\xe4ter mit Google Pay bezahlen",el:"\u03a0\u03bb\u03b7\u03c1\u03c9\u03bc\u03ae \u03c4\u03ce\u03c1\u03b1 \u03ae \u03b1\u03c1\u03b3\u03cc\u03c4\u03b5\u03c1\u03b1 \u03bc\u03b5 \u03c4\u03bf Google Pay",en:"Pay Now or Later with Google Pay",es:"Paga ahora o m\xe1s tarde con Google Pay",et:"Makske kohe v\xf5i hiljem koos Google Payga",fi:"Maksa nyt tai my\xf6hemmin Google Paylla",fr:"Payer maintenant ou plus tard avec Google Pay",hr:"Platite odmah ili kasnije uz Google Pay",id:"Bayar Sekarang atau Nanti dengan Google Pay",it:"Paga ora o dopo con Google Pay",ja:"Google Pay \u3067\u4eca\u3059\u3050\u652f\u6255\u3046\u304b\u3001\u5f8c\u3067\u652f\u6255\u3046",ko:"Google Pay\uc5d0\uc11c \uc9c0\uae08 \ub610\ub294 \ub098\uc911\uc5d0 \uacb0\uc81c",ms:"Bayar Sekarang atau Kemudian dengan Google Pay",nl:"Betaal nu of later met Google Pay",no:"Betal n\xe5 eller senere med Google Pay",pl:"Zap\u0142a\u0107 teraz lub p\xf3\u017aniej za pomoc\u0105 Google Pay",pt:"Pagar agora ou depois com o Google Pay",ru:"\u041f\u043b\u0430\u0442\u0438\u0442\u0435 \u0447\u0435\u0440\u0435\u0437 Google Pay \u0441\u0440\u0430\u0437\u0443 \u0438\u043b\u0438 \u0432 \u0440\u0430\u0441\u0441\u0440\u043e\u0447\u043a\u0443",sk:"Zaplati\u0165 teraz alebo nesk\xf4r cez Google Pay",sl:"Pla\u010dajte zdaj ali pozneje z Googlom Pay",sr:"\u041f\u043b\u0430\u0442\u0438\u0442\u0435 \u043e\u0434\u043c\u0430\u0445 \u0438\u043b\u0438 \u043a\u0430\u0441\u043d\u0438\u0458\u0435 \u043f\u043e\u043c\u043e\u045b\u0443 Google Pay-\u0430",sv:"Betala nu eller senare med Google Pay",th:"\u0e08\u0e48\u0e32\u0e22\u0e15\u0e2d\u0e19\u0e19\u0e35\u0e49\u0e2b\u0e23\u0e37\u0e2d\u0e08\u0e48\u0e32\u0e22\u0e17\u0e35\u0e2b\u0e25\u0e31\u0e07\u0e44\u0e14\u0e49\u0e14\u0e49\u0e27\u0e22 Google Pay",tr:"Google Pay ile \u015eimdi veya Sonra \xd6de",uk:"\u041e\u043f\u043b\u0430\u0442\u0456\u0442\u044c \u0437\u0430\u0440\u0430\u0437 \u0430\u0431\u043e \u043f\u0456\u0437\u043d\u0456\u0448\u0435 \u0447\u0435\u0440\u0435\u0437 Google Pay",zh:"\u901a\u8fc7 Google Pay \u53ef\u7acb\u5373\u4ed8\u6b3e\u6216\u65e5\u540e\u4ed8\u6b3e"},GPAY_BUTTON_VARIANT_TYPE_BNPL_ONLY:{ar:'\u0645\u064a\u0632\u0629 "\u0627\u0644\u062f\u0641\u0639 \u0644\u0627\u062d\u0642\u064b\u0627" \u0645\u062a\u0627\u062d\u0629 \u0645\u0639 Google Pay',bg:"\u0424\u0443\u043d\u043a\u0446\u0438\u044f\u0442\u0430 \u201e\u041f\u043b\u0430\u0449\u0430\u043d\u0435 \u043f\u043e-\u043a\u044a\u0441\u043d\u043e\u201c \u0435 \u043d\u0430\u043b\u0438\u0446\u0435 \u0441 Google Pay",ca:"Paga m\xe9s tard disponible amb Google Pay",cs:"Zaplatit pozd\u011bji dostupn\xe9 s Google Pay",da:"Betal senere er tilg\xe6ngeligt med Google Pay",de:"\u201eSp\xe4ter bezahlen\u201c mit Google Pay verf\xfcgbar",el:"\u039c\u03b5 \u03c4\u03bf Google Pay, \u03b4\u03b9\u03b1\u03c4\u03af\u03b8\u03b5\u03c4\u03b1\u03b9 \u03b7 \u03b5\u03c0\u03b9\u03bb\u03bf\u03b3\u03ae \u03a0\u03bb\u03b7\u03c1\u03c9\u03bc\u03ae \u03b1\u03c1\u03b3\u03cc\u03c4\u03b5\u03c1\u03b1",en:"Pay Later available with Google Pay",es:"Pago m\xe1s tarde disponible con Google Pay",et:"Funktsioon Maksa hiljem saadaval koos Google Payga",fi:"Maksa my\xf6hemmin Google Paylla",fr:"Payer plus tard avec Google Pay",hr:"Pla\u0107anje kasnije dostupno je uz Google Pay",id:"Bayar Nanti tersedia dengan Google Pay",it:"Paga dopo disponibile con Google Pay",ja:"Google Pay \u3067\u5f8c\u6255\u3044\u304c\u5229\u7528\u53ef\u80fd",ko:"Google Pay\uc5d0\uc11c \ub098\uc911\uc5d0 \uacb0\uc81c \uac00\ub2a5",ms:"Bayar Kemudian tersedia dengan Google Pay",nl:"Betaal later is beschikbaar met Google Pay",no:"\xabBetal senere\xbb er tilgjengelig med Google Pay",pl:"Funkcja Zap\u0142a\u0107 p\xf3\u017aniej jest dost\u0119pna w Google Pay",pt:"Pagar depois dispon\xedvel com o Google Pay",ru:"\u0427\u0435\u0440\u0435\u0437 Google Pay \u043c\u043e\u0436\u043d\u043e \u043f\u043b\u0430\u0442\u0438\u0442\u044c \u0432 \u0440\u0430\u0441\u0441\u0440\u043e\u0447\u043a\u0443",sk:"Mo\u017enos\u0165 Zaplati\u0165 nesk\xf4r je k dispoz\xedcii v slu\u017ebe Google Pay",sl:"Poznej\u0161e pla\u010dilo je na voljo z Googlom Pay",sr:"\u041e\u043f\u0446\u0438\u0458\u0430 \u041f\u043b\u0430\u0442\u0438 \u043a\u0430\u0441\u043d\u0438\u0458\u0435 \u0458\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u0443\u0437 Google Pay",sv:"Betala senare \xe4r tillg\xe4ngligt med Google Pay",th:"\u0e08\u0e48\u0e32\u0e22\u0e17\u0e35\u0e2b\u0e25\u0e31\u0e07\u0e44\u0e14\u0e49\u0e14\u0e49\u0e27\u0e22 Google Pay",tr:"Google Pay ile Sonra \xd6de se\xe7ene\u011fi kullan\u0131labilir.",uk:"\u041e\u043f\u043b\u0430\u0442\u0456\u0442\u044c \u043f\u0456\u0437\u043d\u0456\u0448\u0435 \u0447\u0435\u0440\u0435\u0437 Google Pay",zh:"Google Pay \u652f\u6301\u65e5\u540e\u4ed8\u6b3e"},GPAY_BUTTON_VARIANT_TYPE_OLYMPICS:{buy:{ar:"\u0627\u0644\u0634\u0631\u0627\u0621 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 Google Pay (\u0645\u0646\u0627\u0641\u0633\u0648\u0646 \u062f\u0648\u0644\u064a\u0648\u0646 \u064a\u0633\u0628\u062d\u0648\u0646 \u0644\u062a\u062d\u0642\u064a\u0642 \u0627\u0644\u0641\u0648\u0632)",bg:"\u041a\u0443\u043f\u0435\u0442\u0435 \u0441 Google Pay. \u041c\u0435\u0436\u0434\u0443\u043d\u0430\u0440\u043e\u0434\u043d\u0438 \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0442\u0438, \u043f\u043b\u0443\u0432\u0430\u0449\u0438 \u043a\u044a\u043c \u043f\u043e\u0431\u0435\u0434\u0430\u0442\u0430",ca:"Compra amb Google Pay. Competidors internacionals nedant cap a la vict\xf2ria.",cs:"Nakupujte pomoc\xed Google Pay. Mezin\xe1rodn\xed z\xe1vodn\xedci plavou k v\xedt\u011bzstv\xed",da:"K\xf8b med Google Pay. Internationale konkurrenter sv\xf8mmer mod sejren",de:"Mit Google Pay kaufen. Internationale Schwimmer auf dem Weg zu Gold",el:"\u0391\u03b3\u03bf\u03c1\u03ac \u03bc\u03b5 Google Pay. \u0391\u03bd\u03c4\u03af\u03c0\u03b1\u03bb\u03bf\u03b9 \u03b1\u03c0\u03cc \u03cc\u03bb\u03bf \u03c4\u03bf\u03bd \u03ba\u03cc\u03c3\u03bc\u03bf \u03ba\u03bf\u03bb\u03c5\u03bc\u03c0\u03bf\u03cd\u03bd \u03c0\u03c1\u03bf\u03c2 \u03c4\u03b7 \u03bd\u03af\u03ba\u03b7",en:"Buy with Google Pay. International competitors swimming toward victory",es:"Comprar con Google Pay. Competidores internacionales nadando hacia la victoria",et:"Ostke Google Payga. Rahvusvahelisel v\xf5istlusel v\xf5idu poole ujujad",fi:"Osta Google Paylla. Kansainv\xe4liset kilpailijat uimassa kohti voittoa",fr:"Acheter avec Google Pay. Nageurs qui s'\xe9lancent vers la victoire dans une comp\xe9tition internationale.",hr:"Kupite uz Google Pay. Me\u0111unarodni natjecatelji plivaju prema pobjedi",id:"Beli dengan Google Pay. Peserta dari berbagai negara berupaya meraih kemenangan",it:"Acquista con Google Pay. Atleti internazionali che nuotano verso la vittoria",ja:"Google Pay \u3067\u8cfc\u5165\u3002\u52dd\u5229\u3092\u76ee\u6307\u3057\u3066\u6cf3\u3050\u5404\u56fd\u306e\u9078\u624b\u305f\u3061",ko:"Google Pay\ub85c \uad6c\ub9e4. \uc2b9\ub9ac\ub97c \ud5a5\ud574 \ud5e4\uc5c4\uce58\ub294 \uc804 \uc138\uacc4 \uc120\uc218\ub4e4",ms:"Beli melalui Google Pay. Pesaing antarabangsa berenang untuk meraih kejayaan",nl:"Kopen met Google Pay. Internationale concurrenten zwemmen naar de overwinning.",no:"Kj\xf8p med Google Pay. Konkurrenter fra ulike land sv\xf8mmer mot seier",pl:"Zap\u0142a\u0107 przez Google Pay Mi\u0119dzynarodowi zawodnicy p\u0142yn\u0105cy po zwyci\u0119stwo",pt:"Comprar com o Google Pay. Os competidores internacionais est\xe3o nadando em dire\xe7\xe3o \xe0 vit\xf3ria",ru:"\u041e\u043f\u043b\u0430\u0442\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 Google Pay. \u0423\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0438 \u043c\u0435\u0436\u0434\u0443\u043d\u0430\u0440\u043e\u0434\u043d\u043e\u0433\u043e \u0441\u043e\u0440\u0435\u0432\u043d\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u043b\u044b\u0432\u0443\u0442 \u043a \u0444\u0438\u043d\u0438\u0448\u0443",sk:"K\xfapi\u0165 cez Google Pay. Medzin\xe1rodn\xed pretek\xe1ri pl\xe1vaj\xfaci za v\xed\u0165azstvom",sl:"Nakup z Googlom Pay. Mednarodni tekmovalci, ki plavajo proti zmagi",sr:"\u041a\u0443\u043f\u0438\u0442\u0435 \u043f\u043e\u043c\u043e\u045b\u0443 Google Pay-\u0430. \u041c\u0435\u0452\u0443\u043d\u0430\u0440\u043e\u0434\u043d\u0438 \u0442\u0430\u043a\u043c\u0438\u0447\u0430\u0440\u0438 \u043f\u043b\u0438\u0432\u0430\u0458\u0443 \u043a\u0430 \u043f\u043e\u0431\u0435\u0434\u0438",sv:"K\xf6p med Google Pay. Internationella konkurrenter som simmar mot seger",th:"\u0e0b\u0e37\u0e49\u0e2d\u0e14\u0e49\u0e27\u0e22 Google Pay \u0e40\u0e2b\u0e25\u0e48\u0e32\u0e19\u0e31\u0e01\u0e01\u0e35\u0e2c\u0e32\u0e27\u0e48\u0e32\u0e22\u0e19\u0e49\u0e33\u0e08\u0e32\u0e01\u0e19\u0e32\u0e19\u0e32\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28\u0e15\u0e48\u0e32\u0e07\u0e21\u0e38\u0e48\u0e07\u0e40\u0e02\u0e49\u0e32\u0e2a\u0e39\u0e48\u0e40\u0e2a\u0e49\u0e19\u0e0a\u0e31\u0e22",tr:"Google pay ile sat\u0131n al. Zafere do\u011fru y\xfczen uluslararas\u0131 yar\u0131\u015fmac\u0131lar.",uk:"\u041e\u043f\u043b\u0430\u0442\u0438\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 Google Pay. \u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043d\u0438\u043a\u0438 \u0440\u0456\u0437\u043d\u0438\u0445 \u043a\u0440\u0430\u0457\u043d \u0437\u043c\u0430\u0433\u0430\u044e\u0442\u044c\u0441\u044f \u0437\u0430 \u043f\u0435\u0440\u0435\u043c\u043e\u0433\u0443 \u0432 \u043f\u043b\u0430\u0432\u0430\u043d\u043d\u0456.",zh:"\u4f7f\u7528 Google Pay \u4ed8\u6b3e\u3002\u591a\u540d\u56fd\u9645\u9009\u624b\u5728\u6e38\u5411\u80dc\u5229"},pay:{ar:"\u0627\u0644\u062f\u0641\u0639 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 Google Pay (\u0645\u0646\u0627\u0641\u0633\u0648\u0646 \u062f\u0648\u0644\u064a\u0648\u0646 \u064a\u0633\u0628\u062d\u0648\u0646 \u0644\u062a\u062d\u0642\u064a\u0642 \u0627\u0644\u0641\u0648\u0632)",bg:"\u041f\u043b\u0430\u0442\u0435\u0442\u0435 \u0441 Google Pay. \u041c\u0435\u0436\u0434\u0443\u043d\u0430\u0440\u043e\u0434\u043d\u0438 \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0442\u0438, \u043f\u043b\u0443\u0432\u0430\u0449\u0438 \u043a\u044a\u043c \u043f\u043e\u0431\u0435\u0434\u0430\u0442\u0430",ca:"Paga amb Google Pay. Competidors internacionals nedant cap a la vict\xf2ria.",cs:"Pla\u0165te pomoc\xed Google Pay. Mezin\xe1rodn\xed z\xe1vodn\xedci plavou k v\xedt\u011bzstv\xed",da:"Betal med Google Pay. Internationale konkurrenter sv\xf8mmer mod sejren",de:"\xdcber mein Google-Konto bezahlen. Internationale Schwimmer auf dem Weg zu Gold",el:"\u03a0\u03bb\u03b7\u03c1\u03ce\u03c3\u03c4\u03b5 \u03bc\u03ad\u03c3\u03c9 Google Pay. \u0391\u03bd\u03c4\u03af\u03c0\u03b1\u03bb\u03bf\u03b9 \u03b1\u03c0\u03cc \u03cc\u03bb\u03bf \u03c4\u03bf\u03bd \u03ba\u03cc\u03c3\u03bc\u03bf \u03ba\u03bf\u03bb\u03c5\u03bc\u03c0\u03bf\u03cd\u03bd \u03c0\u03c1\u03bf\u03c2 \u03c4\u03b7 \u03bd\u03af\u03ba\u03b7",en:"Pay with Google Pay. International competitors swimming toward victory",es:"Pagar con Google Pay. Competidores internacionales nadando hacia la victoria",et:"Makske Google Payga. Rahvusvahelisel v\xf5istlusel v\xf5idu poole ujujad",fi:"Maksa Google Paylla. Kansainv\xe4liset kilpailijat uimassa kohti voittoa",fr:"Payer avec Google Pay. Nageurs qui s'\xe9lancent vers la victoire dans une comp\xe9tition internationale.",hr:"Platite uz Google Pay. Me\u0111unarodni natjecatelji plivaju prema pobjedi",id:"Bayar dengan Google Pay. Peserta dari berbagai negara berupaya meraih kemenangan",it:"Paga con Google Pay. Atleti internazionali che nuotano verso la vittoria",ja:"Google Pay \u3067\u304a\u652f\u6255\u3044\u3002\u52dd\u5229\u3092\u76ee\u6307\u3057\u3066\u6cf3\u3050\u5404\u56fd\u306e\u9078\u624b\u305f\u3061",ko:"Google Pay\ub85c \uacb0\uc81c. \uc2b9\ub9ac\ub97c \ud5a5\ud574 \ud5e4\uc5c4\uce58\ub294 \uc804 \uc138\uacc4 \uc120\uc218\ub4e4",ms:"Bayar dengan Google Pay. Pesaing antarabangsa berenang untuk meraih kejayaan",nl:"Betalen met Google Pay. Internationale concurrenten zwemmen naar de overwinning.",no:"Betal med Google Pay. Konkurrenter fra ulike land sv\xf8mmer mot seier",pl:"Zap\u0142a\u0107 przez Google Pay Mi\u0119dzynarodowi zawodnicy p\u0142yn\u0105cy po zwyci\u0119stwo",pt:"Pagar com o Google Pay. Os competidores internacionais est\xe3o nadando em dire\xe7\xe3o \xe0 vit\xf3ria",ru:"\u041e\u043f\u043b\u0430\u0442\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 Google Pay. \u0423\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0438 \u043c\u0435\u0436\u0434\u0443\u043d\u0430\u0440\u043e\u0434\u043d\u043e\u0433\u043e \u0441\u043e\u0440\u0435\u0432\u043d\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u043b\u044b\u0432\u0443\u0442 \u043a \u0444\u0438\u043d\u0438\u0448\u0443",sk:"Zaplati\u0165 cez Google Pay. Medzin\xe1rodn\xed pretek\xe1ri pl\xe1vaj\xfaci za v\xed\u0165azstvom",sl:"Pla\u010dajte z Googlom Pay. Mednarodni tekmovalci, ki plavajo proti zmagi",sr:"\u041f\u043b\u0430\u0442\u0438\u0442\u0435 \u043f\u043e\u043c\u043e\u045b\u0443 Google Pay-\u0430. \u041c\u0435\u0452\u0443\u043d\u0430\u0440\u043e\u0434\u043d\u0438 \u0442\u0430\u043a\u043c\u0438\u0447\u0430\u0440\u0438 \u043f\u043b\u0438\u0432\u0430\u0458\u0443 \u043a\u0430 \u043f\u043e\u0431\u0435\u0434\u0438",sv:"Betala med Google Pay. Internationella konkurrenter som simmar mot seger",th:"\u0e0a\u0e33\u0e23\u0e30\u0e40\u0e07\u0e34\u0e19\u0e14\u0e49\u0e27\u0e22 Google Pay \u0e40\u0e2b\u0e25\u0e48\u0e32\u0e19\u0e31\u0e01\u0e01\u0e35\u0e2c\u0e32\u0e27\u0e48\u0e32\u0e22\u0e19\u0e49\u0e33\u0e08\u0e32\u0e01\u0e19\u0e32\u0e19\u0e32\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28\u0e15\u0e48\u0e32\u0e07\u0e21\u0e38\u0e48\u0e07\u0e40\u0e02\u0e49\u0e32\u0e2a\u0e39\u0e48\u0e40\u0e2a\u0e49\u0e19\u0e0a\u0e31\u0e22",tr:"Google Pay ile \xf6de. Zafere do\u011fru y\xfczen uluslararas\u0131 yar\u0131\u015fmac\u0131lar.",uk:"\u041e\u043f\u043b\u0430\u0442\u0438\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 Google Pay. \u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043d\u0438\u043a\u0438 \u0440\u0456\u0437\u043d\u0438\u0445 \u043a\u0440\u0430\u0457\u043d \u0437\u043c\u0430\u0433\u0430\u044e\u0442\u044c\u0441\u044f \u0437\u0430 \u043f\u0435\u0440\u0435\u043c\u043e\u0433\u0443 \u0432 \u043f\u043b\u0430\u0432\u0430\u043d\u043d\u0456.",zh:"\u901a\u8fc7 Google Pay \u4ed8\u6b3e\u3002\u591a\u540d\u56fd\u9645\u9009\u624b\u5728\u6e38\u5411\u80dc\u5229"},plain:{ar:"\u202bGoogle Pay (\u0645\u0646\u0627\u0641\u0633\u0648\u0646 \u062f\u0648\u0644\u064a\u0648\u0646 \u064a\u0633\u0628\u062d\u0648\u0646 \u0644\u062a\u062d\u0642\u064a\u0642 \u0627\u0644\u0641\u0648\u0632)",bg:"Google Pay. \u041c\u0435\u0436\u0434\u0443\u043d\u0430\u0440\u043e\u0434\u043d\u0438 \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0442\u0438, \u043f\u043b\u0443\u0432\u0430\u0449\u0438 \u043a\u044a\u043c \u043f\u043e\u0431\u0435\u0434\u0430\u0442\u0430",ca:"Google Pay. Competidors internacionals nedant cap a la vict\xf2ria.",cs:"Google Pay. Mezin\xe1rodn\xed z\xe1vodn\xedci plavou k v\xedt\u011bzstv\xed",da:"Google Pay. Internationale konkurrenter sv\xf8mmer mod sejren",de:"Google Pay. Internationale Schwimmer auf dem Weg zu Gold",el:"Google Pay. \u0391\u03bd\u03c4\u03af\u03c0\u03b1\u03bb\u03bf\u03b9 \u03b1\u03c0\u03cc \u03cc\u03bb\u03bf \u03c4\u03bf\u03bd \u03ba\u03cc\u03c3\u03bc\u03bf \u03ba\u03bf\u03bb\u03c5\u03bc\u03c0\u03bf\u03cd\u03bd \u03c0\u03c1\u03bf\u03c2 \u03c4\u03b7 \u03bd\u03af\u03ba\u03b7",en:"Google Pay. International competitors swimming toward victory",es:"Google Pay. Competidores internacionales nadando hacia la victoria",et:"Google Pay. Rahvusvahelisel v\xf5istlusel v\xf5idu poole ujujad",fi:"Google Pay. Kansainv\xe4liset kilpailijat uimassa kohti voittoa",fr:"Google Pay. Nageurs qui s'\xe9lancent vers la victoire dans une comp\xe9tition internationale.",hr:"Google Pay. Me\u0111unarodni natjecatelji plivaju prema pobjedi",id:"Google Pay. Peserta dari berbagai negara berupaya meraih kemenangan",it:"Google Pay. Atleti internazionali che nuotano verso la vittoria",ja:"Google Pay\u3002\u52dd\u5229\u3092\u76ee\u6307\u3057\u3066\u6cf3\u3050\u5404\u56fd\u306e\u9078\u624b\u305f\u3061",ko:"Google Pay. \uc2b9\ub9ac\ub97c \ud5a5\ud574 \ud5e4\uc5c4\uce58\ub294 \uc804 \uc138\uacc4 \uc120\uc218\ub4e4",ms:"Google Pay. Pesaing antarabangsa berenang untuk meraih kejayaan",nl:"Google Pay. Internationale concurrenten zwemmen naar de overwinning.",no:"Google Pay. Konkurrenter fra ulike land sv\xf8mmer mot seier",pl:"Google Pay Mi\u0119dzynarodowi zawodnicy p\u0142yn\u0105cy po zwyci\u0119stwo",pt:"Google Pay. Os competidores internacionais est\xe3o nadando em dire\xe7\xe3o \xe0 vit\xf3ria",ru:"Google Pay. \u0423\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0438 \u043c\u0435\u0436\u0434\u0443\u043d\u0430\u0440\u043e\u0434\u043d\u043e\u0433\u043e \u0441\u043e\u0440\u0435\u0432\u043d\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u043b\u044b\u0432\u0443\u0442 \u043a \u0444\u0438\u043d\u0438\u0448\u0443",sk:"Google Pay. Medzin\xe1rodn\xed pretek\xe1ri pl\xe1vaj\xfaci za v\xed\u0165azstvom",sl:"Google Pay. Mednarodni tekmovalci, ki plavajo proti zmagi",sr:"Google Pay. \u041c\u0435\u0452\u0443\u043d\u0430\u0440\u043e\u0434\u043d\u0438 \u0442\u0430\u043a\u043c\u0438\u0447\u0430\u0440\u0438 \u043f\u043b\u0438\u0432\u0430\u0458\u0443 \u043a\u0430 \u043f\u043e\u0431\u0435\u0434\u0438",sv:"Google Pay. Internationella konkurrenter som simmar mot seger",th:"Google Pay \u0e40\u0e2b\u0e25\u0e48\u0e32\u0e19\u0e31\u0e01\u0e01\u0e35\u0e2c\u0e32\u0e27\u0e48\u0e32\u0e22\u0e19\u0e49\u0e33\u0e08\u0e32\u0e01\u0e19\u0e32\u0e19\u0e32\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28\u0e15\u0e48\u0e32\u0e07\u0e21\u0e38\u0e48\u0e07\u0e40\u0e02\u0e49\u0e32\u0e2a\u0e39\u0e48\u0e40\u0e2a\u0e49\u0e19\u0e0a\u0e31\u0e22",tr:"Google Pay. Zafere do\u011fru y\xfczen uluslararas\u0131 yar\u0131\u015fmac\u0131lar.",uk:"Google Pay. \u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043d\u0438\u043a\u0438 \u0440\u0456\u0437\u043d\u0438\u0445 \u043a\u0440\u0430\u0457\u043d \u0437\u043c\u0430\u0433\u0430\u044e\u0442\u044c\u0441\u044f \u0437\u0430 \u043f\u0435\u0440\u0435\u043c\u043e\u0433\u0443 \u0432 \u043f\u043b\u0430\u0432\u0430\u043d\u043d\u0456.",zh:"Google Pay\u3002 \u591a\u540d\u56fd\u9645\u9009\u624b\u5728\u6e38\u5411\u80dc\u5229"}},GPAY_BUTTON_VARIANT_TYPE_RLMIA:{af:"Koop met Google Pay. Met Rolling Loud-10e-herdenkingkleure (pienk en grys) met palmbome om Miami voor te stel",am:"\u1260Google Pay \u12ed\u130d\u12d9\u1362 \u12e8\u122e\u120a\u1295\u130d \u120b\u12cd\u12f5 10\u129b \u12d3\u1218\u1275 \u12a2\u12ee\u1264\u120d\u12e9 \u1240\u1208\u121b\u1275\u1295 (\u1210\u121d\u122b\u12ca \u12a5\u1293 \u130d\u122b\u132b) \u121b\u12eb\u121a\u1295 \u12a8\u121a\u12c8\u12ad\u1209 \u12e8\u12d8\u1295\u1263\u1263 \u12db\u134e\u127d \u130b\u122d \u1208\u12ed\u1276 \u1260\u121b\u1245\u1228\u1265 \u120b\u12ed",ar:'\u0632\u0631 "\u0627\u0644\u0634\u0631\u0627\u0621 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 Google Pay" \u0628\u0623\u0644\u0648\u0627\u0646 \u062a\u062d\u062a\u0641\u0644 \u0628\u0627\u0644\u0630\u0643\u0631\u0649 \u0627\u0644\u0640 10 \u0644\u0645\u0647\u0631\u062c\u0627\u0646 Rolling Loud (\u0627\u0644\u0648\u0631\u062f\u064a \u0648\u0627\u0644\u0631\u0645\u0627\u062f\u064a) \u0645\u0639 \u0623\u0634\u062c\u0627\u0631 \u0646\u062e\u064a\u0644 \u062a\u0645\u062b\u0644 \u0645\u062f\u064a\u0646\u0629 \u0645\u064a\u0627\u0645\u064a',az:"Google Pay il\u0259 al\u0131n. Mayamini t\u0259msil etm\u0259k \xfc\xe7\xfcn xurma a\u011faclar\u0131 il\u0259 Rolling Loud 10-cu ild\xf6n\xfcm\xfc r\u0259ngl\u0259ri (\xe7\u0259hray\u0131 v\u0259 boz) t\u0259qdim edilir",be:"\u0410\u043f\u043b\u0430\u0446\u0456\u0446\u044c \u043f\u0440\u0430\u0437 Google Pay. \u0412\u044b\u043a\u0430\u0440\u044b\u0441\u0442\u0430\u043d\u044b \u043a\u043e\u043b\u0435\u0440\u044b, \u0432\u044b\u0431\u0440\u0430\u043d\u044b\u044f \u0434\u043b\u044f 10-\u0439 \u0433\u0430\u0434\u0430\u0432\u0456\u043d\u044b \u0444\u0435\u0441\u0442\u044b\u0432\u0430\u043b\u044e Rolling Loud (\u0440\u0443\u0436\u043e\u0432\u044b \u0456 \u0448\u044d\u0440\u044b), \u0430 \u0442\u0430\u043a\u0441\u0430\u043c\u0430 \u0432\u0456\u0434\u0430\u0440\u044b\u0441\u044b \u043f\u0430\u043b\u044c\u043c\u0430\u045e, \u044f\u043a\u0456\u044f \u0441\u0456\u043c\u0432\u0430\u043b\u0456\u0437\u0443\u044e\u0446\u044c \u041c\u0430\u044f\u043c\u0456.",bg:"\u041a\u0443\u043f\u0435\u0442\u0435 \u0441 Google Pay. \u0412\u043a\u043b\u044e\u0447\u0432\u0430 \u0446\u0432\u0435\u0442\u043e\u0432\u0435\u0442\u0435 (\u0440\u043e\u0437\u043e\u0432\u043e \u0438 \u0441\u0438\u0432\u043e) \u043e\u0442 10-\u0430\u0442\u0430 \u0433\u043e\u0434\u0438\u0448\u043d\u0438\u043d\u0430 \u043d\u0430 Rolling Loud \u0441 \u043f\u0430\u043b\u043c\u0438, \u043a\u043e\u0438\u0442\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0432\u0430\u0442 \u041c\u0430\u044f\u043c\u0438",bn:"Google Pay \u09ac\u09cd\u09af\u09ac\u09b9\u09be\u09b0 \u0995\u09b0\u09c7 \u0995\u09bf\u09a8\u09c1\u09a8\u0964 Rolling Loud-\u098f\u09b0 \u09e7\u09e6\u09ae \u09ac\u09b0\u09cd\u09b7\u09aa\u09c2\u09b0\u09cd\u09a4\u09bf\u09b0 \u09a5\u09bf\u09ae \u09b0\u0999 (\u0997\u09cb\u09b2\u09be\u09aa\u09bf \u0993 \u09a7\u09c2\u09b8\u09b0) \u098f\u09ac\u0982 \u09ae\u09bf\u09df\u09be\u09ae\u09bf\u09b0 \u09aa\u09cd\u09b0\u09a4\u09c0\u0995 \u09b9\u09bf\u09b8\u09c7\u09ac\u09c7 \u09aa\u09be\u09ae \u0997\u09be\u099b \u09a6\u09c7\u0996\u09be\u09a8\u09cb \u09b9\u09df\u09c7\u099b\u09c7",bs:"Kupite putem Google Paya. Uklju\u010duje boje 10. godi\u0161njice Rolling Louda (ru\u017ei\u010dastu i sivu) s palmama koje simboliziraju Miami",ca:"Compra amb Google Pay. Amb els colors del des\xe8 aniversari de Rolling Loud (rosa i gris) i palmeres que representen Miami.",cs:"Nakupte pomoc\xed Google Pay. S barvami 10. jubilejn\xedho ro\u010dn\xedku hudebn\xedho festivalu Rolling Loud (r\u016f\u017eovou a \u0161edou) a palmami reprezentuj\xedc\xedmi Miami",cy:"Prynu gyda Google Pay. Yn cynnwys lliwiau 10fed pen-blwydd Rolling Loud (pinc a llwyd) gyda choed palmwydd i gynrychioli Miami",da:"K\xf8b med Google Pay. Med farverne fra Rolling Louds 10-\xe5rs jubil\xe6um (pink og gr\xe5) og palmer, der repr\xe6senterer Miami",de:"Mit Google Pay kaufen. Anl\xe4sslich der 10. Ausgabe des Rolling Loud Festivals in den Jubil\xe4umsfarben Rosa und Grau gehalten. Die Palmen sollen den Veranstaltungsort Miami symbolisieren.",el:"\u0391\u03b3\u03bf\u03c1\u03ac \u03bc\u03b5 Google Pay. \u039c\u03b5 \u03c4\u03b1 \u03c7\u03c1\u03ce\u03bc\u03b1\u03c4\u03b1 \u03c4\u03b7\u03c2 10\u03b7\u03c2 \u03b5\u03c0\u03b5\u03c4\u03b5\u03af\u03bf\u03c5 \u03c4\u03bf\u03c5 Rolling Loud (\u03c1\u03bf\u03b6 \u03ba\u03b1\u03b9 \u03b3\u03ba\u03c1\u03b9) \u03ba\u03b1\u03b9 \u03c6\u03bf\u03af\u03bd\u03b9\u03ba\u03b5\u03c2 \u03c0\u03bf\u03c5 \u03b1\u03bd\u03c4\u03b9\u03c0\u03c1\u03bf\u03c3\u03c9\u03c0\u03b5\u03cd\u03bf\u03c5\u03bd \u03c4\u03bf \u039c\u03b1\u03ca\u03ac\u03bc\u03b9",en:"Buy with Google Pay. Featuring Rolling Loud 10th anniversary colours (pink and grey) with palm trees to represent Miami",es:"Comprar con Google Pay. Con los colores del d\xe9cimo aniversario de Rolling Loud (rosa y gris) y palmeras que representan Miami",La:"Comprar con Google Pay. Con los colores del 10\xba aniversario de Rolling Loud (rosa y gris) y palmeras que representan a Miami",et:"Ostke Google Payga. Kasutatud on festivali Rolling Loud 10. aastap\xe4eva v\xe4rve (roosa ja hall) ning Miamit s\xfcmboliseerivaid palmipuid",eu:"Erosi Google Pay-rekin. Rolling Loud-en 10. urteurrenaren koloreak ditu (arrosa eta grisa), Miami irudikatzen duten palmondo eta guzti.",fa:"\u062e\u0631\u06cc\u062f\u0646 \u0628\u0627 Google Pay. \u0628\u0627 \u0646\u0645\u0627\u06cc\u0634 \u0648\u06cc\u0698\u0647 \u0631\u0646\u06af\u200c\u0647\u0627\u06cc \u062f\u0647\u0645\u06cc\u0646 \u0633\u0627\u0644\u06af\u0631\u062f Rolling Loud (\u0635\u0648\u0631\u062a\u06cc \u0648 \u062e\u0627\u06a9\u0633\u062a\u0631\u06cc) \u0628\u0647\u200c\u0647\u0645\u0631\u0627\u0647 \u062f\u0631\u062e\u062a\u0627\u0646 \u0646\u062e\u0644 \u0628\u0631\u0627\u06cc \u0627\u06cc\u062c\u0627\u062f \u062d\u0627\u0644\u200c\u0648\u0647\u0648\u0627\u06cc \u0645\u06cc\u0627\u0645\u06cc",fi:"Osta Google Paylla. Kuvituksena Rolling Loudin 10-vuotisjuhlav\xe4rit (pinkki ja harmaa) ja Miamia symboloivat palmut.",fi__1:"Bumili gamit ang Google Pay. Tampok ang mga kulay ng ika-10 anibersaryo (pink at gray) ng Rolling Loud na may mga palm tree na kumakatawan sa Miami",fr:"Acheter avec Google Pay. Aux couleurs du 10e anniversaire de Rolling Loud (rose et gris) et avec des palmiers pour repr\xe9senter Miami",Ca:"Acheter avec Google Pay. Avec les couleurs du 10\u1d49 anniversaire de Rolling Loud (rose et gris) et des palmiers pour repr\xe9senter Miami",ga:"Ceannaigh le Google Pay. Ina bhfuil dathanna chom\xf3radh 10 mbliana Rolling Loud le feice\xe1il (b\xe1ndearg agus liath) agus crainn phailme chun Miami a l\xe9iri\xfa",gl:"Comprar con Google Pay. Coas as cores (rosa e gris) do X aniversario do festival Rolling Loud con palmeiras que representan Miami",gu:"Google Pay \u0ab5\u0aa1\u0ac7 \u0a96\u0ab0\u0ac0\u0aa6\u0ac0 \u0a95\u0ab0\u0acb. \u0aae\u0abe\u0aaf\u0abe\u0aae\u0ac0\u0aa8\u0ac7 \u0ab0\u0a9c\u0ac2 \u0a95\u0ab0\u0aa4\u0abe \u0aa4\u0abe\u0aa1\u0aa8\u0abe \u0ab5\u0ac3\u0a95\u0acd\u0ab7\u0acb \u0ab8\u0abe\u0aa5\u0ac7 Rolling Loud\u0aa8\u0ac0 10\u0aae\u0ac0 \u0ab5\u0ab0\u0acd\u0ab7\u0a97\u0abe\u0a82\u0aa0\u0aa8\u0abe \u0ab0\u0a82\u0a97\u0acb (\u0a97\u0ac1\u0ab2\u0abe\u0aac\u0ac0 \u0a85\u0aa8\u0ac7 \u0ab0\u0abe\u0a96\u0acb\u0aa1\u0ac0) \u0aa6\u0ab0\u0acd\u0ab6\u0abe\u0ab5\u0aa4\u0ac1\u0a82",hi:"Google Pay \u0915\u0940 \u092e\u0926\u0926 \u0938\u0947 \u0916\u0930\u0940\u0926\u0947\u0902. \u0907\u092e\u0947\u091c \u092e\u0947\u0902 \u0930\u094b\u0932\u093f\u0902\u0917 \u0932\u093e\u0909\u0921 \u092b\u093c\u0947\u0938\u094d\u091f\u093f\u0935\u0932 \u0915\u0940 10\u0935\u0940\u0902 \u0938\u093e\u0932\u0917\u093f\u0930\u0939 \u0915\u0940 \u0925\u0940\u092e, \u091c\u094b \u0917\u0941\u0932\u093e\u092c\u0940 \u0914\u0930 \u0938\u094d\u0932\u0947\u091f\u0940 \u0930\u0902\u0917\u094b\u0902 \u0915\u0947 \u0938\u093e\u0925-\u0938\u093e\u0925 \u092e\u093f\u092f\u093e\u092e\u0940 \u0915\u0940 \u092a\u0939\u091a\u093e\u0928 \u0915\u0947 \u0924\u094c\u0930 \u092a\u0930 \u0924\u093e\u0921\u093c \u0915\u0947 \u092a\u0947\u0921\u093c\u094b\u0902 \u0915\u094b \u0926\u093f\u0916\u093e\u0924\u0940 \u0939\u0948",hr:"Kupite uz Google Pay. Uklju\u010duje boje 10. godi\u0161njice festivala Rolling Loud (ru\u017ei\u010dastu i sivu) s palmama koje simboliziraju Miami",hu:"V\xe1s\xe1rl\xe1s a Google Pay haszn\xe1lat\xe1val. A Rolling Loud fesztiv\xe1l 10. \xe9vfordul\xf3j\xe1nak sz\xedneivel (r\xf3zsasz\xedn \xe9s sz\xfcrke) \xe9s p\xe1lmaf\xe1kkal, amelyek Miamit szimboliz\xe1lj\xe1k",hy:"\u0533\u0576\u0565\u056c Google Pay-\u0578\u057e\u0589 Rolling Loud \u0583\u0561\u057c\u0561\u057f\u0578\u0576\u056b 10-\u0561\u0574\u0575\u0561\u056f\u056b \u0563\u0578\u0582\u0575\u0576\u0565\u0580\u0568 (\u057e\u0561\u0580\u0564\u0561\u0563\u0578\u0582\u0575\u0576 \u0587 \u0574\u0578\u056d\u0580\u0561\u0563\u0578\u0582\u0575\u0576) \u0587 \u0561\u0580\u0574\u0561\u057e\u0565\u0576\u056b\u0576\u0565\u0580\u0568 \u056d\u0578\u0580\u0570\u0580\u0564\u0561\u0576\u0577\u0578\u0582\u0574 \u0565\u0576 \u0544\u0561\u0575\u0561\u0574\u056b\u0576",id:"Beli dengan Google Pay. Menampilkan warna ulang tahun ke-10 Rolling Loud (merah muda dan abu-abu) dengan pohon palem untuk mewakili Miami",is:"Kaupa me\xf0 Google Pay. Me\xf0 afm\xe6lislitum Rolling Loud \xed tilefni af 10 \xe1ra afm\xe6li h\xe1t\xed\xf0arinnar (bleikur og gr\xe1r) me\xf0 p\xe1lmatrj\xe1m sem t\xe1kna Miami",it:"Acquista con Google Pay. Con i colori di Rolling Loud per il 10\xb0 anniversario (rosa e grigio) e palme per rappresentare Miami",iw:"\u05ea\u05e9\u05dc\u05d5\u05dd \u05d3\u05e8\u05da Google Pay. \u05e2\u05dd \u05d4\u05e6\u05d1\u05e2\u05d9\u05dd \u05e9\u05dc \u05d9\u05d5\u05dd \u05d4\u05e9\u05e0\u05d4 \u05d4\u05e2\u05e9\u05d9\u05e8\u05d9 \u05e9\u05dc \u05e4\u05e1\u05d8\u05d9\u05d1\u05dc Rolling Loud (\u05d5\u05e8\u05d5\u05d3 \u05d5\u05d0\u05e4\u05d5\u05e8) \u05d5\u05e2\u05e6\u05d9 \u05d3\u05e7\u05dc \u05e9\u05de\u05d9\u05d9\u05e6\u05d2\u05d9\u05dd \u05d0\u05ea \u05de\u05d9\u05d0\u05de\u05d9",ja:"Google Pay \u3067\u8cfc\u5165\u3002Rolling Loud \u306e 10 \u5468\u5e74\u8a18\u5ff5\u30ab\u30e9\u30fc\uff08\u30d4\u30f3\u30af\u3068\u30b0\u30ec\u30fc\uff09\u306b\u3001\u30de\u30a4\u30a2\u30df\u3092\u8c61\u5fb4\u3059\u308b\u30e4\u30b7\u306e\u6728\u304c\u63cf\u304b\u308c\u3066\u3044\u308b",ka:"Google Pay-\u10e1 \u10db\u10d4\u10e8\u10d5\u10d4\u10dd\u10d1\u10d8\u10d7 \u10e8\u10d4\u10eb\u10d4\u10dc\u10d0. \u10e8\u10d4\u10e5\u10db\u10dc\u10d8\u10da\u10d8\u10d0 Rolling Loud-\u10d8\u10e1 \u10db\u10d4-10 \u10ec\u10da\u10d8\u10e1\u10d7\u10d0\u10d5\u10d8\u10e1 \u10e4\u10d4\u10e0\u10d4\u10d1\u10e8\u10d8 (\u10d5\u10d0\u10e0\u10d3\u10d8\u10e1\u10e4\u10d4\u10e0\u10d8 \u10d3\u10d0 \u10dc\u10d0\u10ea\u10e0\u10d8\u10e1\u10e4\u10d4\u10e0\u10d8) \u10e4\u10d8\u10dc\u10d8\u10d9\u10d8\u10e1 \u10de\u10d0\u10da\u10db\u10d4\u10d1\u10d8\u10d7 \u10db\u10d0\u10d8\u10d0\u10db\u10d8\u10e1 \u10ec\u10d0\u10e0\u10db\u10dd\u10e1\u10d0\u10d3\u10d2\u10d4\u10dc\u10d0\u10d3",kk:"Google Pay-\u043c\u0435\u043d \u0441\u0430\u0442\u044b\u043f \u0430\u043b\u0443 Rolling Loud \u0444\u0435\u0441\u0442\u0438\u0432\u0430\u043b\u0456\u043d\u0456\u04a3 10 \u0436\u044b\u043b\u0434\u044b\u0493\u044b\u043d\u0430 \u0430\u0440\u043d\u0430\u043b\u044b\u043f, \u049b\u044b\u0437\u0493\u044b\u043b\u0442 \u0436\u04d9\u043d\u0435 \u0441\u04b1\u0440 \u0442\u04af\u0441\u0442\u0435\u0440, \u0441\u043e\u043d\u0434\u0430\u0439-\u0430\u049b \u041c\u0430\u0439\u0430\u043c\u0438\u0434\u0456\u04a3 \u0431\u0435\u043b\u0433\u0456\u0441\u0456 \u0441\u0430\u043d\u0430\u043b\u0430\u0442\u044b\u043d \u043f\u0430\u043b\u044c\u043c\u0430 \u0430\u0493\u0430\u0448\u0442\u0430\u0440\u044b \u0431\u0435\u0439\u043d\u0435\u043b\u0435\u043d\u0433\u0435\u043d.",km:"\u1791\u17b7\u1789\u178f\u17b6\u1798 Google Pay\u17d4 \u1780\u17b6\u179a\u178f\u17b6\u17c6\u1784\u179a\u17c6\u179b\u17c1\u1785\u1796\u178e\u17cc\u1782\u1798\u17d2\u179a\u1794\u17cb\u1781\u17bd\u1794 10 \u1786\u17d2\u1793\u17b6\u17c6\u1793\u17c3 Rolling Loud (\u1795\u17d2\u1780\u17b6\u1788\u17bc\u1780 \u1793\u17b7\u1784\u1794\u17d2\u179a\u1795\u17c1\u17c7) \u178a\u17c2\u179b\u1798\u17b6\u1793\u178a\u17be\u1798\u178a\u17bc\u1784\u178f\u17c6\u178e\u17b6\u1784\u17b1\u17d2\u1799 Miami",kn:"Google Pay \u0cac\u0cb3\u0cb8\u0cbf\u0c95\u0cca\u0c82\u0ca1\u0cc1 \u0c96\u0cb0\u0cc0\u0ca6\u0cbf\u0cb8\u0cbf. Rolling Loud \u0ca8 10 \u0ca8\u0cc7 \u0cb5\u0cbe\u0cb0\u0ccd\u0cb7\u0cbf\u0c95\u0ccb\u0ca4\u0ccd\u0cb8\u0cb5\u0ca6 \u0cac\u0ca3\u0ccd\u0ca3\u0c97\u0cb3 (\u0c97\u0cc1\u0cb2\u0cbe\u0cac\u0cbf \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 \u0cac\u0cc2\u0ca6\u0cc1) \u0c9c\u0cca\u0ca4\u0cc6\u0c97\u0cc6 \u0cae\u0cbf\u0caf\u0cbe\u0cae\u0cbf\u0caf\u0ca8\u0ccd\u0ca8\u0cc1 \u0caa\u0ccd\u0cb0\u0ca4\u0cbf\u0ca8\u0cbf\u0ca7\u0cbf\u0cb8\u0cb2\u0cc1 \u0ca4\u0cbe\u0cb3\u0cc6 \u0cae\u0cb0\u0c97\u0cb3\u0ca8\u0ccd\u0ca8\u0cc1 \u0ca4\u0ccb\u0cb0\u0cbf\u0cb8\u0cb2\u0cbe\u0c97\u0cbf\u0ca6\u0cc6",ko:"Google Pay\ub85c \uad6c\ub9e4. Rolling Loud 10\uc8fc\ub144\uc744 \uae30\ub150\ud558\ub294 \uc0c9\uc0c1(\ud551\ud06c\uc0c9\uacfc \ud68c\uc0c9)\uc774 \uc0ac\uc6a9\ub418\uc5c8\uc73c\uba70 \ub9c8\uc774\uc560\ubbf8\ub97c \uc0c1\uc7a5\ud558\ub294 \uc57c\uc790\uc218 \uc774\ubbf8\uc9c0\uac00 \ud45c\uc2dc\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4.",ky:"Google Pay \u0430\u0440\u043a\u044b\u043b\u0443\u0443 \u0441\u0430\u0442\u044b\u043f \u0430\u043b\u0443\u0443. Rolling Loud \u0444\u0435\u0441\u0442\u0438\u0432\u0430\u043b\u044b\u043d\u044b\u043d 10 \u0436\u044b\u043b\u0434\u044b\u0433\u044b\u043d\u0430 \u043a\u0430\u0440\u0430\u0442\u0430 \u043a\u044b\u0437\u0433\u044b\u043b\u0442\u044b\u043c \u0436\u0430\u043d\u0430 \u0431\u043e\u0437 \u0442\u04af\u0441\u0442\u04e9\u0440 \u043a\u043e\u043b\u0434\u043e\u043d\u0443\u043b\u0443\u043f, \u041c\u0430\u0439\u0430\u043c\u0438\u043d\u0438\u043d c\u0438\u043c\u0432\u043e\u043b\u0443 \u0431\u043e\u043b\u0433\u043e\u043d \u043f\u0430\u043b\u044c\u043c\u0430 \u0434\u0430\u0440\u0430\u043a\u0442\u0430\u0440\u044b \u0447\u0430\u0433\u044b\u043b\u0434\u044b\u0440\u044b\u043b\u0434\u044b",lo:"\u0e8a\u0eb7\u0ec9\u0ec2\u0e94\u0e8d\u0ec3\u0e8a\u0ec9 Google Pay. \u0e99\u0eb3\u0eaa\u0eb0\u0ec0\u0edc\u0eb5\u0eaa\u0eb5\u0e84\u0ebb\u0e9a\u0eae\u0ead\u0e9a 10 \u0e9b\u0eb5 Rolling Loud (\u0eaa\u0eb5\u0e9a\u0ebb\u0ea7 \u0ec1\u0ea5\u0eb0 \u0eaa\u0eb5\u0ec0\u0e97\u0ebb\u0eb2) \u0e9e\u0ec9\u0ead\u0ea1\u0e95\u0ebb\u0ec9\u0e99\u0e9b\u0eb2\u0ea1\u0ec0\u0e9e\u0eb7\u0ec8\u0ead\u0ec0\u0e9b\u0eb1\u0e99\u0e95\u0ebb\u0ea7\u0ec1\u0e97\u0e99\u0ec3\u0eab\u0ec9 Miami",lt:"Pirkti naudojant \u201eGoogle Pay\u201c. Jubiliejinio de\u0161imtojo festivalio \u201eRolling Loud\u201c spalvos (ro\u017ein\u0117 ir pilka) su palm\u0117mis, simbolizuojan\u010diomis Majam\u012f.",lv:"Ieg\u0101d\u0101jieties, izmantojot Google Pay. Festiv\u0101la \u201cRolling Loud\u201d 10. gadadienas kr\u0101sas (roz\u0101 un pel\u0113ka) un palmas, kas simboliz\u0113 Maiami",mk:"\u041a\u0443\u043f\u0435\u0442\u0435 \u0441\u043e Google Pay. \u0412\u043e \u0431\u043e\u0438\u0442\u0435 \u043d\u0430 10-\u0433\u043e\u0434\u0438\u0448\u043d\u0438\u043d\u0430\u0442\u0430 \u043d\u0430 \u0444\u0435\u0441\u0442\u0438\u0432\u0430\u043b\u043e\u0442 Rolling Loud (\u0440\u043e\u0437\u043e\u0432\u0430 \u0438 \u0441\u0438\u0432\u0430) \u0441\u043e \u043f\u0430\u043b\u043c\u0438 \u0448\u0442\u043e \u0433\u043e \u043f\u0440\u0435\u0442\u0441\u0442\u0430\u0432\u0443\u0432\u0430\u0430\u0442 \u041c\u0430\u0458\u0430\u043c\u0438",ml:"Google Pay-\u0d2f\u0d3f\u0d32\u0d42\u0d1f\u0d46 \u0d35\u0d3e\u0d19\u0d4d\u0d19\u0d42. \u0d2e\u0d3f\u0d2f\u0d3e\u0d2e\u0d3f\u0d2f\u0d46 \u0d2a\u0d4d\u0d30\u0d24\u0d3f\u0d28\u0d3f\u0d27\u0d40\u0d15\u0d30\u0d3f\u0d15\u0d4d\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d24\u0d3f\u0d28\u0d4d \u0d08\u0d28\u0d4d\u0d24\u0d2a\u0d4d\u0d2a\u0d28 \u0d2e\u0d30\u0d19\u0d4d\u0d19\u0d7e\u0d15\u0d4d\u0d15\u0d4a\u0d2a\u0d4d\u0d2a\u0d02 Rolling Loud 10-\u0d3e\u0d02 \u0d35\u0d3e\u0d7c\u0d37\u0d3f\u0d15 \u0d28\u0d3f\u0d31\u0d19\u0d4d\u0d19\u0d7e (\u0d2a\u0d3f\u0d19\u0d4d\u0d15\u0d4d, \u0d1a\u0d3e\u0d30\u0d28\u0d3f\u0d31\u0d02) \u0d2b\u0d40\u0d1a\u0d4d\u0d1a\u0d7c \u0d1a\u0d46\u0d2f\u0d4d\u0d2f\u0d41\u0d28\u0d4d\u0d28\u0d41",mn:"Google Pay-\u0440 \u0445\u0443\u0434\u0430\u043b\u0434\u0430\u043d \u0430\u0432\u0430\u0445. \u041c\u0430\u0439\u0430\u043c\u0438\u0433 \u0442\u04e9\u043b\u04e9\u04e9\u043b\u0434\u04e9\u0433 \u0434\u0430\u043b\u0434\u0443\u0443 \u043c\u043e\u0434\u043e\u043e\u0440 Rolling Loud-\u043d 10 \u0436\u0438\u043b\u0438\u0439\u043d \u043e\u0439\u043d \u04e9\u043d\u0433\u04e9 \u0442\u04e9\u0440\u0445\u0438\u0439\u0433 (\u044f\u0433\u0430\u0430\u043d, \u0441\u0430\u0430\u0440\u0430\u043b) \u043e\u043d\u0446\u043e\u043b\u0436 \u0431\u0430\u0439\u043d\u0430",mr:"Google Pay \u0935\u093e\u092a\u0930\u0942\u0928 \u0916\u0930\u0947\u0926\u0940 \u0915\u0930\u093e. \u092e\u093e\u092f\u093e\u092e\u0940\u091a\u0947 \u092a\u094d\u0930\u0924\u093f\u0928\u093f\u0927\u093f\u0924\u094d\u0935 \u0915\u0930\u0923\u094d\u092f\u093e\u0938\u093e\u0920\u0940 \u0924\u093e\u0921\u093e\u091a\u094d\u092f\u093e \u091d\u093e\u0921\u093e\u0902\u0938\u0939 \u0930\u094b\u0932\u093f\u0902\u0917 \u0932\u093e\u090a\u0921 \u091a\u094d\u092f\u093e \u0967\u0966 \u0935\u094d\u092f\u093e \u0935\u0930\u094d\u0927\u093e\u092a\u0928 \u0926\u093f\u0928\u093e\u091a\u0947 \u0930\u0902\u0917 (\u0917\u0941\u0932\u093e\u092c\u0940 \u0906\u0923\u093f \u0930\u093e\u0916\u093e\u0921\u0940) \u0926\u093e\u0916\u0935\u0932\u0947 \u0906\u0939\u0947\u0924",ms:"Beli melalui Google Pay. Menampilkan warna ulang tahun ke-10 Rolling Loud (merah jambu dan kelabu) dengan pokok palma untuk mewakili Miami",my:"Google Pay \u1016\u103c\u1004\u1037\u103a \u101d\u101a\u103a\u101b\u1014\u103a\u104b \u1019\u102d\u102f\u1004\u103a\u101a\u102c\u1019\u102e\u1000\u102d\u102f \u1000\u102d\u102f\u101a\u103a\u1005\u102c\u1038\u1015\u103c\u102f\u101b\u1014\u103a\u1021\u1010\u103d\u1000\u103a \u1021\u102f\u1014\u103a\u1038\u1015\u1004\u103a\u1019\u103b\u102c\u1038\u1016\u103c\u1004\u1037\u103a Rolling Loud \u104f \u1041\u1040 \u1014\u103e\u1005\u103a\u1015\u103c\u100a\u1037\u103a\u1014\u103e\u1005\u103a\u1015\u1010\u103a\u101c\u100a\u103a \u1021\u101b\u1031\u102c\u1004\u103a\u1019\u103b\u102c\u1038 (\u1015\u1014\u103a\u1038\u101b\u1031\u102c\u1004\u103a\u1014\u103e\u1004\u1037\u103a \u1019\u102e\u1038\u1001\u102d\u102f\u1038\u101b\u1031\u102c\u1004\u103a) \u1000\u102d\u102f \u1021\u101e\u102c\u1038\u1015\u1031\u1038\u1016\u1031\u102c\u103a\u1015\u103c\u1011\u102c\u1038\u101e\u100a\u103a",ne:"Google Pay \u092a\u094d\u0930\u092f\u094b\u0917 \u0917\u0930\u0940 \u0916\u0930\u093f\u0926 \u0917\u0930\u094d\u0928\u0941\u0939\u094b\u0938\u094d\u0964 \u0930\u094b\u0932\u093f\u0919 \u0932\u093e\u0909\u0921 \u0938\u0919\u094d\u0917\u0940\u0924 \u092e\u0939\u094b\u0924\u094d\u0938\u0935\u0915\u094b \u0967\u0966 \u0914\u0901 \u0935\u093e\u0930\u094d\u0937\u093f\u0915\u094b\u0924\u094d\u0938\u0935\u0915\u094b \u0925\u093f\u092e (\u0917\u0941\u0932\u093e\u092c\u0940 \u0924\u0925\u093e \u0916\u0948\u0930\u094b \u0930\u0919\u0915\u094b) \u0915\u093e \u0938\u093e\u0925\u0948 \u092e\u093e\u092f\u093e\u092e\u0940\u0915\u094b \u092a\u094d\u0930\u0924\u093f\u0928\u093f\u0927\u093f\u0924\u094d\u0935 \u0917\u0930\u094d\u0928\u0947 \u0924\u093e\u0921\u0915\u093e \u0930\u0942\u0916\u0939\u0930\u0942 \u0926\u0947\u0916\u093e\u0907\u090f\u0915\u094b \u091b",nl:"Kopen met Google Pay. De Rolling Loud-kleuren voor het 10-jarig bestaan (roze en grijs) en palmbomen om Miami te vertegenwoordigen",Bo:"Kj\xf8p med Google Pay. Med fargene for Rolling Louds 10-\xe5rsjubileum (rosa og gr\xe5) og palmer som representerer Miami.",pa:"Google Pay \u0a28\u0a3e\u0a32 \u0a16\u0a30\u0a40\u0a26\u0a4b\u0964 '\u0a30\u0a4b\u0a32\u0a3f\u0a70\u0a17 \u0a32\u0a3e\u0a09\u0a21' \u0a38\u0a70\u0a17\u0a40\u0a24 \u0a09\u0a24\u0a38\u0a35 \u0a26\u0a40 10\u0a35\u0a40\u0a02 \u0a35\u0a30\u0a4d\u0a39\u0a47\u0a17\u0a70\u0a22 \u0a26\u0a47 \u0a30\u0a70\u0a17\u0a3e\u0a02 (\u0a17\u0a41\u0a32\u0a3e\u0a2c\u0a40 \u0a05\u0a24\u0a47 \u0a38\u0a32\u0a47\u0a1f\u0a40) \u0a35\u0a3e\u0a32\u0a3e \u0a25\u0a40\u0a2e \u0a2e\u0a3f\u0a06\u0a2e\u0a40 \u0a26\u0a40 \u0a2a\u0a1b\u0a3e\u0a23 \u0a26\u0a47 \u0a24\u0a4c\u0a30 '\u0a24\u0a47 \u0a24\u0a3e\u0a5c \u0a26\u0a47 \u0a30\u0a41\u0a71\u0a16\u0a3e\u0a02 \u0a28\u0a42\u0a70 \u0a26\u0a30\u0a38\u0a3e\u0a09\u0a02\u0a26\u0a3e \u0a39\u0a48",pl:"Zap\u0142a\u0107 przez Google Pay Kolory 10 rocznicy festiwalu Rolling Loud (r\xf3\u017cowy i szary) oraz palmy symbolizuj\u0105ce Miami",Br:"Comprar com o Google Pay. As cores do 10\xba anivers\xe1rio do Rolling Loud (rosa e cinza) com palmeiras para representar Miami",Po:"Comprar com Google Pay. Com as cores do 10.\xba anivers\xe1rio do Rolling Loud (rosa e cinzento) com palmeiras a representar Miami",ro:"Cump\u0103r\u0103 cu Google Pay. Are culorile celei de-a zecea aniversare a festivalului Rolling Loud (roz \u0219i gri) \u0219i palmieri pentru a reprezenta Miami.",ru:"\u041e\u043f\u043b\u0430\u0442\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 Google Pay. \u0418\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0432 \u0446\u0432\u0435\u0442\u0430\u0445, \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u044e\u0449\u0438\u0445 \u043e 10-\u043b\u0435\u0442\u043d\u0435\u0439 \u0433\u043e\u0434\u043e\u0432\u0449\u0438\u043d\u0435 Rolling Loud (\u0441\u0435\u0440\u043e\u043c \u0438 \u0440\u043e\u0437\u043e\u0432\u043e\u043c), \u0438 \u0441 \u043f\u0430\u043b\u044c\u043c\u0430\u043c\u0438, \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u043d\u044b\u043c\u0438 \u0434\u043b\u044f \u041c\u0430\u0439\u0430\u043c\u0438.",si:"Google Pay \u0dc3\u0db8\u0d9c\u0dd2\u0db1\u0dca \u0db8\u0dd2\u0dbd \u0daf\u0dd3 \u0d9c\u0db1\u0dca\u0db1. Miami \u0db1\u0dd2\u0dba\u0ddd\u0da2\u0db1\u0dba \u0d9a\u0dd2\u0dbb\u0dd3\u0db8 \u0dc3\u0db3\u0dc4\u0dcf \u0dad\u0dbd\u0dca \u0d9c\u0dc3\u0dca \u0dc3\u0db8\u0d9c Rolling Loud 10 \u0dc0\u0dd0\u0db1\u0dd2 \u0dc3\u0d82\u0dc0\u0dad\u0dca\u0dc3\u0dbb \u0dc0\u0dbb\u0dca\u0dab (\u0dbb\u0ddd\u0dc3 \u0dc3\u0dc4 \u0d85\u0dc5\u0dd4) \u0dc0\u0dd2\u0dc1\u0dda\u0dc2\u0dcf\u0d82\u0d9c\u0dba",sk:"K\xfapi\u0165 cez Google Pay. Obsahuje farby jubilejn\xe9ho 10. ro\u010dn\xedka festivalu Rolling Loud (ru\u017eov\xfa a siv\xfa) a palmy, ktor\xe9 s\xfa symbolom Miami.",sl:"Nakup z Googlom Pay. Z barvami 10. obletnice festivala Rolling Loud (ro\u017enato in sivo) in palmami, ki predstavljajo Miami",sq:"Bli me Google Pay. P\xebrfshin ngjyrat e p\xebrvjetorit t\xeb 10-t\xeb t\xeb Rolling Loud (roz\xeb dhe gri) me pem\xeb palme p\xebr t\xeb p\xebrfaq\xebsuar Majamin",sr:"\u041a\u0443\u043f\u0438 \u043f\u043e\u043c\u043e\u045b\u0443 Google Pay-\u0430. \u0423\u0437 \u0431\u043e\u0458\u0435 \u043a\u043e\u0458\u0435 \u043e\u0431\u0435\u043b\u0435\u0436\u0430\u0432\u0430\u0458\u0443 10. \u0433\u043e\u0434\u0438\u0448\u045a\u0438\u0446\u0443 \u0444\u0435\u0441\u0442\u0438\u0432\u0430\u043b\u0430 Rolling Loud (\u0440\u0443\u0436\u0438\u0447\u0430\u0441\u0442\u0430 \u0438 \u0441\u0438\u0432\u0430) \u0438 \u043f\u0430\u043b\u043c\u0435 \u043a\u043e\u0458\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0459\u0430\u0458\u0443 \u041c\u0430\u0458\u0430\u043c\u0438",sv:"K\xf6p med Google Pay. I f\xe4rgerna fr\xe5n Rolling Louds tio\xe5rsjubileum (rosa och gr\xe5tt) med palmer som representerar Miami",sw:"Nunua kupitia Google Pay. Inaangazia rangi (waridi na kijivu) za kumbukumbu ya miaka 10 ya tamasha la Rolling Loud pamoja na minazi ili kuwakilisha Miami",ta:"Google Pay \u0bae\u0bc2\u0bb2\u0bae\u0bcd \u0bb5\u0bbe\u0b99\u0bcd\u0b95\u0bc1\u0b95. \u0bae\u0bbf\u0baf\u0bbe\u0bae\u0bbf\u0baf\u0bc8\u0b95\u0bcd \u0b95\u0bc1\u0bb1\u0bbf\u0b95\u0bcd\u0b95\u0bc1\u0bae\u0bcd \u0bb5\u0b95\u0bc8\u0baf\u0bbf\u0bb2\u0bcd \u0baa\u0ba9\u0bc8 \u0bae\u0bb0\u0b99\u0bcd\u0b95\u0bb3\u0bc1\u0b9f\u0ba9\u0bcd, \u0bb0\u0bcb\u0bb2\u0bbf\u0b99\u0bcd \u0bb2\u0bcc\u0b9f\u0bc1 10\u0bb5\u0ba4\u0bc1 \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0bb5\u0bbf\u0bb4\u0bbe\u0bb5\u0bbf\u0ba9\u0bcd \u0bb5\u0ba3\u0bcd\u0ba3\u0b99\u0bcd\u0b95\u0bb3\u0bcd (\u0baa\u0bbf\u0b99\u0bcd\u0b95\u0bcd \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd \u0b9a\u0bbe\u0bae\u0bcd\u0baa\u0bb2\u0bcd) \u0b87\u0b9f\u0bae\u0bcd\u0baa\u0bc6\u0bb1\u0bcd\u0bb1\u0bc1\u0bb3\u0bcd\u0bb3\u0ba9.",te:"Google Pay\u0c24\u0c4b \u0c15\u0c4a\u0c28\u0c02\u0c21\u0c3f. Rolling Loud 10\u0c35 \u0c35\u0c3e\u0c30\u0c4d\u0c37\u0c3f\u0c15\u0c4b\u0c24\u0c4d\u0c38\u0c35 \u0c25\u0c40\u0c2e\u0c4d\u200c\u0c28\u0c41 \u0c2b\u0c40\u0c1a\u0c30\u0c4d \u0c1a\u0c47\u0c38\u0c4d\u0c24\u0c4b\u0c02\u0c26\u0c3f, \u0c07\u0c02\u0c26\u0c41\u0c32\u0c4b \u0c2e\u0c3f\u0c2f\u0c3e\u0c2e\u0c40\u0c15\u0c3f \u0c1a\u0c3f\u0c39\u0c4d\u0c28\u0c02\u0c17\u0c3e \u0c17\u0c41\u0c32\u0c3e\u0c2c\u0c40 \u0c30\u0c02\u0c17\u0c41, \u0c32\u0c47\u0c24 \u0c2c\u0c42\u0c21\u0c3f\u0c26\u0c30\u0c02\u0c17\u0c41, \u0c24\u0c3e\u0c1f\u0c3f \u0c1a\u0c46\u0c1f\u0c4d\u0c32\u0c41 \u0c09\u0c28\u0c4d\u0c28\u0c3e\u0c2f\u0c3f",th:"\u0e0b\u0e37\u0e49\u0e2d\u0e14\u0e49\u0e27\u0e22 Google Pay \u0e21\u0e32\u0e1e\u0e23\u0e49\u0e2d\u0e21\u0e2a\u0e35\u0e09\u0e25\u0e2d\u0e07\u0e04\u0e23\u0e1a\u0e23\u0e2d\u0e1a 10 \u0e1b\u0e35\u0e02\u0e2d\u0e07 Rolling Loud (\u0e2a\u0e35\u0e0a\u0e21\u0e1e\u0e39\u0e41\u0e25\u0e30\u0e40\u0e17\u0e32) \u0e1e\u0e23\u0e49\u0e2d\u0e21\u0e15\u0e49\u0e19\u0e1b\u0e32\u0e25\u0e4c\u0e21\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e2a\u0e37\u0e48\u0e2d\u0e16\u0e36\u0e07\u0e44\u0e21\u0e2d\u0e32\u0e21\u0e35",tr:"Google Pay ile sat\u0131n al. Rolling Loud M\xfczik Festivali'nin 10. y\u0131l d\xf6n\xfcm\xfc renkleri (pembe ve gri) ve Miami'yi temsil eden palmiye a\u011fa\xe7lar\u0131",uk:"\u041e\u043f\u043b\u0430\u0442\u0438\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 Google Pay. \u0417 \u043d\u0430\u0433\u043e\u0434\u0438 10-\u0457 \u0440\u0456\u0447\u043d\u0438\u0446\u0456 \u0444\u0435\u0441\u0442\u0438\u0432\u0430\u043b\u044e Rolling Loud Miami \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u043d\u043e \u0440\u043e\u0436\u0435\u0432\u0438\u0439 \u0456 \u0441\u0456\u0440\u0438\u0439 \u043a\u043e\u043b\u044c\u043e\u0440\u0438, \u0430 \u0442\u0430\u043a\u043e\u0436 \u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043e \u043f\u0430\u043b\u044c\u043c\u0438, \u044f\u043a\u0456 \u0441\u0438\u043c\u0432\u043e\u043b\u0456\u0437\u0443\u044e\u0442\u044c \u041c\u0430\u044f\u043c\u0456.",ur:"\u202bGoogle Pay \u06a9\u06d2 \u0633\u0627\u062a\u06be \u062e\u0631\u06cc\u062f\u06cc\u06ba\u06d4 \u0645\u06cc\u0627\u0645\u06cc \u06a9\u06cc \u0646\u0645\u0627\u0626\u0646\u062f\u06af\u06cc \u06a9\u0631\u0646\u06d2 \u06a9\u06d2 \u0644\u06cc\u06d2 \u06a9\u06be\u062c\u0648\u0631 \u06a9\u06d2 \u062f\u0631\u062e\u062a\u0648\u06ba \u06a9\u06d2 \u0633\u0627\u062a\u06be \u0631\u0648\u0644\u0646\u06af \u0644\u0627\u0624\u0688 \u06a9\u06cc 10\u0648\u06cc\u06ba \u0633\u0627\u0644\u06af\u0631\u06c1 \u06a9\u06d2 \u0631\u0646\u06af\u0648\u06ba (\u06af\u0644\u0627\u0628\u06cc \u0627\u0648\u0631 \u0633\u0631\u0645\u0626\u06cc) \u06a9\u0648 \u0646\u0645\u0627\u06cc\u0627\u06ba \u06a9\u06cc\u0627 \u062c\u0627 \u0631\u06c1\u0627 \u06c1\u06d2",vi:"Mua b\u1eb1ng Google Pay C\xf3 m\xe0u s\u1eafc k\u1ef7 ni\u1ec7m 10 n\u0103m l\u1ec5 h\u1ed9i Rolling Loud (m\xe0u h\u1ed3ng v\xe0 x\xe1m) v\u1edbi h\xe0ng c\xe2y c\u1ecd, \u0111\u1ea1i di\u1ec7n cho Miami",Si:"\u4f7f\u7528 Google Pay \u4ed8\u6b3e\u3002\u91c7\u7528 Rolling Loud \u5341\u5468\u5e74\u7eaa\u5ff5\u8272\uff08\u7c89\u8272\u548c\u7070\u8272\uff09\uff0c\u5e76\u4ee5\u68d5\u6988\u6811\u4ee3\u8868\u8fc8\u963f\u5bc6",Ho:"\u7528 Google Pay \u4ed8\u6b3e\u3002\u4ee5 Rolling Loud 10 \u9031\u5e74\u7d00\u5ff5\u984f\u8272 (\u7c89\u7d05\u8272\u548c\u7070\u8272) \u70ba\u4e3b\u8272\uff0c\u4e26\u4ee5\u68d5\u6ada\u6a39\u4ee3\u8868\u9081\u963f\u5bc6",Tr:"\u4f7f\u7528 Google Pay \u7d50\u5e33\u3002\u63a1\u7528 Rolling Loud 10 \u9031\u5e74\u7d00\u5ff5\u8272 (\u7c89\u7d05\u8272\u548c\u7070\u8272)\uff0c\u4e26\u642d\u914d\u4ee3\u8868\u9081\u963f\u5bc6\u7684\u68d5\u6ada\u6a39",zu:"Thenga ngeGoogle Pay Ifaka imibala yesikhumbuzo seminyaka eyi-10 seRolling Loud (okuphinki nokumpunga) ngezihlahla zamasundu ezimelela iMiami"}},Om=qn('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" direction="ltr" height="36px" width="130px"><style>@import url(//fonts.googleapis.com/css?family=Google+Sans_old:500)</style><line x1="2" y1="10.5" x2="2" y2="29.5" style="stroke: #d9d9d9; stroke-width:2"></line><image x="11" y="6" width="37.5" height="29" preserveAspectRatio="none" xlink:href="https://www.gstatic.com/images/icons/material/system/1x/payment_grey600_36dp.png"></image><text x="52" y="25.5" class="small" style="font: 15px \'Google Sans\', sans-serif; fill: #5F6368">\u2022\u2022\u2022\u2022\u2022\u2022</text></svg>'),Xu=qn('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" direction="ltr" height="36px" width="130px"><style>@import url(//fonts.googleapis.com/css?family=Google+Sans_old:500)</style><line x1="2" y1="10.5" x2="2" y2="29.5" style="stroke: #5F6368; stroke-width:2"></line><image x="11" y="6" width="37.5" height="29" preserveAspectRatio="none" xlink:href="https://www.gstatic.com/images/icons/material/system/1x/payment_white_36dp.png"></image><text x="52" y="25.5" class="small" style="font: 15px \'Google Sans\', sans-serif; fill: #FFFFFF">\u2022\u2022\u2022\u2022\u2022\u2022</text></svg>'),Fi=qn('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" direction="ltr" viewBox="0 0 130 36"><style>@import url(//fonts.googleapis.com/css?family=Google+Sans_old:500)</style><line x1="8" y1="7" x2="8" y2="26" style="stroke: #d9d9d9; stroke-width:2"></line><image x="16" y="2.5" width="37.5" height="29" preserveAspectRatio="none" xlink:href="https://www.gstatic.com/images/icons/material/system/1x/payment_grey600_36dp.png"></image><text x="57" y="22" class="small" style="font: 15px \'Google Sans\', sans-serif; fill: #5f6368">\u2022\u2022\u2022\u2022\u2022\u2022</text></svg>'),sa=qn('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" direction="ltr" viewBox="0 0 130 36"><style>@import url(//fonts.googleapis.com/css?family=Google+Sans_old:500)</style><line x1="8" y1="7" x2="8" y2="26" style="stroke: #5f6368; stroke-width:2"></line><image x="16" y="2.5" width="37.5" height="29" preserveAspectRatio="none" xlink:href="https://www.gstatic.com/images/icons/material/system/1x/payment_white_36dp.png"></image><text x="57" y="22" class="small" style="font: 15px \'Google Sans\', sans-serif; fill: #fff">\u2022\u2022\u2022\u2022\u2022\u2022</text></svg>'),Sd=["ELECTRON","MAESTRO","ELO_DEBIT"];function Rn(a,l){l=void 0===l?document:l;var h=document.createElement("style");if(h.type="text/css",h.textContent=a,l instanceof HTMLDocument)document.head.appendChild(h);else{if(!(l instanceof ShadowRoot))throw Error("Parameter 'buttonRootNode' should be either document or a shadowroot.");l.appendChild(h)}return h}var Td=function(){this.Sc=Wn.contentWindow};Td.prototype.postMessage=function(a,l){this.Sc.postMessage(a,l)};var Qu=Array.prototype.indexOf?function(a,l){return On(null!=a.length),Array.prototype.indexOf.call(a,l,void 0)}:function(a,l){if("string"==typeof a)return"string"!=typeof l||1!=l.length?-1:a.indexOf(l,0);for(var h=0;h<a.length;h++)if(h in a&&a[h]===l)return h;return-1},Rm=Array.prototype.forEach?function(a,l){On(null!=a.length),Array.prototype.forEach.call(a,l,void 0)}:function(a,l){for(var h=a.length,p="string"==typeof a?a.split(""):a,v=0;v<h;v++)v in p&&l.call(void 0,p[v],v,a)};function aa(a){var l=a.length;if(l>0){for(var h=Array(l),p=0;p<l;p++)h[p]=a[p];return h}return[]}var ca="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");var da,Vm=z.globalThis.trustedTypes;function Ju(){return void 0===da&&(da=function bt(){var a=null;if(!Vm)return a;try{var l=function(h){return h};a=Vm.createPolicy("goog#html",{createHTML:l,createScript:l,createScriptURL:l})}catch(h){throw h}return a}()),da}var ec=function(a){this.ac=a};function Md(a){var l=Ju();return new ec(l?l.createScriptURL(a):a)}function tc(a){if(a instanceof ec)return a.ac;throw Error("Unexpected type when unwrapping TrustedResourceUrl")}ec.prototype.toString=function(){return this.ac+""};var wt=function(a){this.bc=a};wt.prototype.toString=function(){return this.bc},new wt("about:blank"),new wt("about:invalid#zClosurez");var Id=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i,nc=[],Pd=function(){};!function gn(a){-1===nc.indexOf(a)&&nc.push(a),Pd=function(l){nc.forEach(function(h){h(l)})}}(function(a){console.warn("A URL with content '"+a+"' was sanitized away.")});var Qt=function(a){this.Zb=a};function Ad(a,l){a.src=tc(l).toString()}function Tt(a,l,h,p){if(l instanceof wt){if(!(l instanceof wt))throw Error("Unexpected type when unwrapping SafeUrl, got '"+l+"' of type '"+typeof l+"'");l=l.bc}else{var v=!Id.test(l);v&&Pd(l),l=v?void 0:l}return void 0!==l?a.open(l,h,p):null}function xd(a){if("string"!=typeof a||""===a.trim())throw Error("Calls to uncheckedconversion functions must go through security review. A justification must be provided to capture what security assumptions are being made. See go/unchecked-conversions")}function xr(){var a=uo.navigator;return a&&(a=a.userAgent)?a:""}Qt.prototype.toString=function(){return this.Zb+""};var Nd=!(-1==xr().indexOf("Gecko")||-1!=xr().toLowerCase().indexOf("webkit")&&-1==xr().indexOf("Edge")||-1!=xr().indexOf("Trident")||-1!=xr().indexOf("MSIE")||-1!=xr().indexOf("Edge")),qo=-1!=xr().toLowerCase().indexOf("webkit")&&-1==xr().indexOf("Edge"),Hm={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"},Ub=function(a,l,h){function p(E){E&&l.appendChild("string"==typeof E?a.createTextNode(E):E)}for(var v=2;v<h.length;v++){var b=h[v];if(!ea(b)||dr(b)&&b.nodeType>0)p(b);else{e:{if(b&&"number"==typeof b.length){if(dr(b)){var w="function"==typeof b.item||"string"==typeof b.item;break e}if("function"==typeof b){w="function"==typeof b.item;break e}}w=!1}Rm(w?aa(b):b,p)}}},Od=function(a,l){return l=String(l),"application/xhtml+xml"===a.contentType&&(l=l.toLowerCase()),a.createElement(l)},rc=function(a){var l=Array.prototype.map.call(arguments,at).join("");xd("Constant HTML string, that gets turned into a Node later, so it will be automatically balanced.");var h=Ju(),p=new Qt(h?h.createHTML(l):l);if(h=document,1===(l=Od(h,"DIV")).nodeType){var v=l.tagName;if(/^(script|style)$/i.test(v))throw l="script"===v.toLowerCase()?"Use setScriptTextContent with a SafeScript.":"Use setStyleTextContent with a SafeStyleSheet.",Error(l)}if(!(p instanceof Qt))throw Error("Unexpected type when unwrapping SafeHtml");if(l.innerHTML=p=p.Zb,1==l.childNodes.length)l=l.removeChild(On(l.firstChild));else{for(h=h.createDocumentFragment();l.firstChild;)h.appendChild(l.firstChild);l=h}return l};function ic(a,l){var h=at(a);if(!Um.test(h))throw Error("Invalid TrustedResourceUrl format: "+h);return a=h.replace(Gm,function(p,v){if(!Object.prototype.hasOwnProperty.call(l,v))throw Error('Found marker, "'+v+'", in format string, "'+h+'", but no valid label mapping found in args: '+JSON.stringify(l));return(p=l[v])instanceof na?at(p):encodeURIComponent(String(p))}),xd("Deprecated, but safe closure/html builder"),Md(a)}var Gm=/%{(\w+)}/g,Um=RegExp("^((https:)?//[0-9a-z.:[\\]-]+/|/[^/\\\\]|[^:/\\\\%]+/|[^:/\\\\%]*[?#]|about:blank#)","i"),$b={wd:0,ed:1,lc:2,mc:3,nc:4,jd:5},Wn=null,oc=null,qe=null,$m=null,zm=Date.now(),kr=null,Rd=!1,sc=[],fa=function(a,l,h,p){window.addEventListener("message",function v(b){Fd(h,b)&&(p(b),uc(v))}),a=U(Object,"assign").call(Object,{eventType:l},a),Be(a)},Fd=function(a,l){for(var h=0;h<a.length;h++)if(l.data[a[h]])return!0;return!1},uc=function(a){window.removeEventListener("message",a)},Be=function(a){Rd&&oc?qm(a):sc.push(a)},qm=function(a){if(oc){if(a=U(Object,"assign").call(Object,{buyFlowActivityMode:kr,googleTransactionId:$m,originTimeMs:zm},a),"CANARY"==qe)var l="https://ibfe-canary.corp.google.com";else l="https://pay","SANDBOX"==qe?l+=".sandbox":"PREPROD"==qe&&(l+="-preprod.sandbox"),l+=".google.com";oc.postMessage(a,l)}else google.payments.api.LogInternally&&console.log("postMessageService is null when expected to exist.")},Wm=function(a,l){Rd||(l>30?(google.payments.api.LogInternally&&console.log("PayJS-PayFrame handshake unsuccessful."),Be({eventType:20,clientLatencyStartMs:Date.now()}),a&&uc(a),Ld()):(a||(a=function h(p){Fd(["pingResponse"],p)&&(Be({eventType:19,clientLatencyStartMs:Date.now()}),a&&uc(a),Ld())},window.addEventListener("message",a)),qm({eventType:14}),setTimeout(function(){return Wm(a,l+1)},10)))},Ld=function(){Rd=!0,sc.forEach(function(a){Be(a)}),sc.length=0};!function(){if(!Wn){var a=window.gpayInitParams||{};"PRODUCTION"!==(qe=a.environment||"PRODUCTION")&&"TEST"!==qe||function(){var a=function(a,l,h){var p=arguments,v=document,b=p[1],w=Od(v,String(p[0]));return b&&("string"==typeof b?w.className=b:Array.isArray(b)?w.className=b.join(" "):function(a,l){!function ua(a,l){for(var h in a)l.call(void 0,a[h],h,a)}(l,function(h,p){"style"==p?a.style.cssText=h:"class"==p?a.className=h:"for"==p?a.htmlFor=h:Hm.hasOwnProperty(p)?a.setAttribute(Hm[p],h):0==p.lastIndexOf("aria-",0)||0==p.lastIndexOf("data-",0)?a.setAttribute(p,h):a[p]=h})}(w,b)),p.length>2&&Ub(v,w,p),w}("META");a.httpEquiv="origin-trial",a.id="origin-trial",a.content="Ayudt5SzRWp86yExqv4T3+PiWzcX+WBtprm+ux6vfIGn5Dg3JSrZL2Y5UkppRzYnVyYzu8hvj+Q4pdGSWsLVYgMAAABgeyJvcmlnaW4iOiJodHRwczovL3BheS5nb29nbGUuY29tOjQ0MyIsImZlYXR1cmUiOiJUcGNkIiwiZXhwaXJ5IjoxNzM1MzQzOTk5LCJpc1RoaXJkUGFydHkiOnRydWV9",document.head.append(a)}(),Ad(Wn=document.createElement("iframe"),ic(qn(("CANARY"==qe?"https://ibfe-canary.corp":"https://pay")+("PREPROD"==qe?"-preprod.sandbox":"SANDBOX"==qe?".sandbox":"")+".google.com/gp/p/ui/payframe?origin=%{windowOrigin}&mid=%{merchantId}"),{windowOrigin:window.location.origin,merchantId:a.merchantInfo&&a.merchantInfo.merchantId||""})),Be({eventType:15,clientLatencyStartMs:Date.now()}),fa({},11,["canMakePaymentForPaymentHandlerResponse"],function(){}),Wn.height="0",Wn.width="0",Wn.style.display="none",Wn.style.visibility="hidden",Wn.setAttribute("allowpaymentrequest",!0),Wn.onload=function(){oc=new Td,Be({eventType:17,clientLatencyStartMs:Date.now()}),Be({eventType:16,clientLatencyStartMs:Date.now()}),Be({eventType:18,clientLatencyStartMs:Date.now()}),Wm(null,0)},document.body?document.body.appendChild(Wn):document.addEventListener("DOMContentLoaded",function(){document.body.appendChild(Wn)})}}();var qb="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");function Vd(a,l){if("object"!=typeof l||null===l)return a;for(var h in l)l.hasOwnProperty(h)&&void 0!==l[h]&&(null==l[h]?a[h]=null:null==a[h]||"object"!=typeof a[h]||"object"!=typeof l[h]||Array.isArray(l[h])||Array.isArray(a[h])?a[h]=l[h]:Vd(a[h],l[h]));return a}function oi(a){var h,l=0;if(0==a.length)return l;for(h=0;h<a.length;h++)l=(l<<5)-l+a.charCodeAt(h),l&=l;return l}function Zn(a){console.error("DEVELOPER_ERROR in "+a.M+": "+a.errorMessage)}var Wb=function(a,l,h){if(a.forEach&&"function"==typeof a.forEach)a.forEach(l,h);else if(ea(a)||"string"==typeof a)Array.prototype.forEach.call(a,l,h);else for(var p=function(a){if(a.sb&&"function"==typeof a.sb)return a.sb();if(!a.oa||"function"!=typeof a.oa){if(typeof z.Map<"u"&&a instanceof z.Map)return U(Array,"from").call(Array,U(a,"keys").call(a));if(!(typeof Set<"u"&&a instanceof Set)){if(ea(a)||"string"==typeof a){var l=[];a=a.length;for(var h=0;h<a;h++)l.push(h);return l}for(var p in l=[],h=0,a)l[h++]=p;return l}}}(a),v=function(a){if(a.oa&&"function"==typeof a.oa)return a.oa();if(typeof z.Map<"u"&&a instanceof z.Map||typeof Set<"u"&&a instanceof Set)return U(Array,"from").call(Array,U(a,"values").call(a));if("string"==typeof a)return a.split("");if(ea(a)){for(var l=[],h=a.length,p=0;p<h;p++)l.push(a[p]);return l}for(p in l=[],h=0,a)l[h++]=a[p];return l}(a),b=v.length,w=0;w<b;w++)l.call(h,v[w],p&&p[w],a)},jd=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),cc=function(a){var l=a.match(jd);a=l[1];var h=l[3];l=l[4];var p="";return a&&(p+=a+":"),h&&(p=p+"//"+h,l&&(p+=":"+l)),p},fr=function(a){if(this.U=this.va=this.ha="",this.o=null,this.R=this.S="",this.J=this.Ac=!1,a instanceof fr){this.J=a.J,ha(this,a.ha);var l=a.va;Gt(this),this.va=l,l=a.U,Gt(this),this.U=l,pa(this,a.o),l=a.S,Gt(this),this.S=l,lc(this,a.K.clone()),a=a.R,Gt(this),this.R=a}else a&&(l=String(a).match(jd))?(this.J=!1,ha(this,l[1]||"",!0),a=l[2]||"",Gt(this),this.va=Wo(a),a=l[3]||"",Gt(this),this.U=Wo(a,!0),pa(this,l[4]),a=l[5]||"",Gt(this),this.S=Wo(a,!0),lc(this,l[6]||"",!0),a=l[7]||"",Gt(this),this.R=Wo(a)):(this.J=!1,this.K=new yn(null,this.J))};fr.prototype.toString=function(){var a=[],l=this.ha;l&&a.push(Zo(l,Bd,!0),":");var h=this.U;return(h||"file"==l)&&(a.push("//"),(l=this.va)&&a.push(Zo(l,Bd,!0),"@"),a.push(encodeURIComponent(String(h)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(h=this.o)&&a.push(":",String(h))),(h=this.S)&&(this.U&&"/"!=h.charAt(0)&&a.push("/"),a.push(Zo(h,"/"==h.charAt(0)?eg:Yb,!0))),(h=this.K.toString())&&a.push("?",h),(h=this.R)&&a.push("#",Zo(h,Hd)),a.join("")},fr.prototype.resolve=function(a){var l=this.clone(),h=!!a.ha;if(h?ha(l,a.ha):h=!!a.va,h){var p=a.va;Gt(l),l.va=p}else h=!!a.U;if(h?(p=a.U,Gt(l),l.U=p):h=null!=a.o,p=a.S,h)pa(l,a.o);else if(h=!!a.S){if("/"!=p.charAt(0))if(this.U&&!this.S)p="/"+p;else{var v=l.S.lastIndexOf("/");-1!=v&&(p=l.S.slice(0,v+1)+p)}if(".."==(v=p)||"."==v)p="";else if(-1!=v.indexOf("./")||-1!=v.indexOf("/.")){p=0==v.lastIndexOf("/",0),v=v.split("/");for(var b=[],w=0;w<v.length;){var E=v[w++];"."==E?p&&w==v.length&&b.push(""):".."==E?((b.length>1||1==b.length&&""!=b[0])&&b.pop(),p&&w==v.length&&b.push("")):(b.push(E),p=!0)}p=b.join("/")}else p=v}return h?(Gt(l),l.S=p):h=""!==a.K.toString(),h?lc(l,a.K.clone()):h=!!a.R,h&&(a=a.R,Gt(l),l.R=a),l},fr.prototype.clone=function(){return new fr(this)};var ha=function(a,l,h){Gt(a),a.ha=h?Wo(l,!0):l,a.ha&&(a.ha=a.ha.replace(/:$/,""))},pa=function(a,l){if(Gt(a),l){if(l=Number(l),isNaN(l)||l<0)throw Error("Bad port number "+l);a.o=l}else a.o=null},lc=function(a,l,h){Gt(a),l instanceof yn?(a.K=l,a.K.Eb(a.J)):(h||(l=Zo(l,si)),a.K=new yn(l,a.J))};fr.prototype.getQuery=function(){return this.K.toString()};var Li=function(a,l,h){Gt(a),a.K.set(l,h)};fr.prototype.removeParameter=function(a){return Gt(this),this.K.remove(a),this};var Gt=function(a){if(a.Ac)throw Error("Tried to modify a read-only Uri")};fr.prototype.Eb=function(a){this.J=a,this.K&&this.K.Eb(a)};var Wo=function(a,l){return a?l?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},Zo=function(a,l,h){return"string"==typeof a?(a=encodeURI(a).replace(l,Zb),h&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},Zb=function(a){return"%"+((a=a.charCodeAt(0))>>4&15).toString(16)+(15&a).toString(16)},Bd=/[#\/\?@]/g,Yb=/[#\?:]/g,eg=/[#\?]/g,si=/[#\?@]/g,Hd=/#/g,yn=function(a,l){this.F=this.j=null,this.H=a||null,this.J=!!l},Nr=function(a){a.j||(a.j=new z.Map,a.F=0,a.H&&function(a,l){if(a){a=a.split("&");for(var h=0;h<a.length;h++){var p=a[h].indexOf("="),v=null;if(p>=0){var b=a[h].substring(0,p);v=a[h].substring(p+1)}else b=a[h];l(b,v?decodeURIComponent(v.replace(/\+/g," ")):"")}}}(a.H,function(l,h){a.add(decodeURIComponent(l.replace(/\+/g," ")),h)}))};yn.prototype.add=function(a,l){Nr(this),this.H=null,a=Vi(this,a);var h=this.j.get(a);return h||this.j.set(a,h=[]),h.push(l),this.F=Ni(this.F)+1,this},yn.prototype.remove=function(a){return Nr(this),a=Vi(this,a),!!this.j.has(a)&&(this.H=null,this.F=Ni(this.F)-this.j.get(a).length,this.j.delete(a))},yn.prototype.clear=function(){this.j=this.H=null,this.F=0};var dc=function(a,l){return Nr(a),l=Vi(a,l),a.j.has(l)};(F=yn.prototype).forEach=function(a,l){Nr(this),this.j.forEach(function(h,p){h.forEach(function(v){a.call(l,v,p,this)},this)},this)},F.sb=function(){Nr(this);for(var a=U(Array,"from").call(Array,U(this.j,"values").call(this.j)),l=U(Array,"from").call(Array,U(this.j,"keys").call(this.j)),h=[],p=0;p<l.length;p++)for(var v=a[p],b=0;b<v.length;b++)h.push(l[p]);return h},F.oa=function(a){Nr(this);var l=[];if("string"==typeof a)dc(this,a)&&(l=l.concat(this.j.get(Vi(this,a))));else{a=U(Array,"from").call(Array,U(this.j,"values").call(this.j));for(var h=0;h<a.length;h++)l=l.concat(a[h])}return l},F.set=function(a,l){return Nr(this),this.H=null,a=Vi(this,a),dc(this,a)&&(this.F=Ni(this.F)-this.j.get(a).length),this.j.set(a,[l]),this.F=Ni(this.F)+1,this},F.get=function(a,l){return a&&(a=this.oa(a)).length>0?String(a[0]):l},F.toString=function(){if(this.H)return this.H;if(!this.j)return"";for(var a=[],l=U(Array,"from").call(Array,U(this.j,"keys").call(this.j)),h=0;h<l.length;h++){var p=l[h],v=encodeURIComponent(String(p));p=this.oa(p);for(var b=0;b<p.length;b++){var w=v;""!==p[b]&&(w+="="+encodeURIComponent(String(p[b]))),a.push(w)}}return this.H=a.join("&")},F.clone=function(){var a=new yn;return a.H=this.H,this.j&&(a.j=new z.Map(this.j),a.F=this.F),a};var Vi=function(a,l){return l=String(l),a.J&&(l=l.toLowerCase()),l};yn.prototype.Eb=function(a){a&&!this.J&&(Nr(this),this.H=null,this.j.forEach(function(l,h){var p=h.toLowerCase();h!=p&&(this.remove(h),this.remove(p),l.length>0&&(this.H=null,this.j.set(Vi(this,p),aa(l)),this.F=Ni(this.F)+l.length))},this)),this.J=a},yn.prototype.extend=function(a){for(var l=0;l<arguments.length;l++)Wb(arguments[l],function(h,p){this.add(p,h)},this)};var Yo=[],ma=[],fc=null,hc=[],Or=window.location.hostname,pc=window.location.ancestorOrigins,ga=window.whitelistedDomainsHashedValueListForGpayButtonWithCardInfo||[],tg=window.denylistedDomainsHashedValueListForGpayButtonWithCardInfo||[],Ko=window.denylistedMerchentIdsHashedValueListForGpayButtonWithCardInfo||[],Gd=window.denylistedMerchantIdsHashedValueListForGpayButtonVariant||[],Ud=window.allowlistedMerchantDomainsForBnplDynamicButton||[],mc=window.allowlistedMerchantDomainsForRlmiaDynamicButton||[],ng=window.allowlistedMerchantDomainsForPopupModeLoadingScreen||[],$d=window.dynamicGpayButtonVariant||"",ya=window.testOnlyLocalIbfeUrl||"";function Xo(){switch($d){case"GPAY_BUTTON_VARIANT_TYPE_NONE":return 1;case"GPAY_BUTTON_VARIANT_TYPE_DEBIT":return 2;case"GPAY_BUTTON_VARIANT_TYPE_SECURE":return 3;case"GPAY_BUTTON_VARIANT_TYPE_SPEED":return 4;case"GPAY_BUTTON_VARIANT_TYPE_SNOWFALL":return 5;case"GPAY_BUTTON_VARIANT_TYPE_BNPL_ONLY":return 6;case"GPAY_BUTTON_VARIANT_TYPE_BNPL_CARD":return 7;case"GPAY_BUTTON_VARIANT_TYPE_OLYMPICS":return 8;case"GPAY_BUTTON_VARIANT_TYPE_RLMIA":return 9;default:return 0}}function gc(a){["mouseover","mouseout"].map(function(l){a.addEventListener(l,function(h){a.classList.toggle("hover","mouseover"==h.type);var p=document.querySelector(".gpay-card-info-animation-container");null!==p&&p.classList.toggle("hover","mouseover"==h.type)})}),["mousedown","mouseup","mouseout"].map(function(l){a.addEventListener(l,function(h){a.classList.toggle("active","mousedown"==h.type)})}),["focus","blur"].map(function(l){a.addEventListener(l,function(h){a.classList.toggle("focus","focus"==h.type)})})}function zd(a,l){a.setAttribute("type","button");var h="Google Pay";if(google.payments.api.EnableGpayButtonAriaLabelLocalization){var p=ji(l.buttonLocale,!0);switch(l.buttonType){case"buy":case"long":var v;h=null!=(v=Ri.buy[p])?v:h;break;case"book":var b;h=null!=(b=Ri.book[p])?b:h;break;case"checkout":var w;h=null!=(w=Ri.checkout[p])?w:h;break;case"donate":var E;h=null!=(E=Ri.donate[p])?E:h;break;case"order":var V;h=null!=(V=Ri.order[p])?V:h;break;case"pay":var O;h=null!=(O=Ri.pay[p])?O:h;break;case"subscribe":var X;h=null!=(X=Ri.subscribe[p])?X:h;break;default:h="Google Pay"}}a.setAttribute("aria-label",h)}function qd(a,l){google.payments.api.EnableGpayButtonDynamicRadius&&null!=l.buttonRadius&&null!=l.buttonRadius&&(fc&&fc.remove(),fc=Rn(".gpay-card-info-container.gpay-card-info-custom-radius, .gpay-button.gpay-card-info-custom-radius\n {\n border-radius: "+l.buttonRadius+"px;\n overflow: hidden;\n }\n",l.buttonRootNode),a.forEach(function(h){return h.classList.add("gpay-card-info-custom-radius")}))}function Wd(a){var l="white";Qo(a)||(l="black");var h=a.buttonType||"buy";return"buy"===a.buttonType?h="buy long":"plain"===a.buttonType&&(h="plain short"),l+" "+h+" "+ji(a.buttonLocale)}function Qo(a){return"white"==a.buttonColor}function ji(a,l){var h=null!=navigator.language?navigator.language.substring(0,5):"en",p=(a||h||"en").substring(0,5);return p in co.buy?p:(p!==h&&void 0!==l&&l&&Zn({M:"createButton",errorMessage:'Button locale "'+a+'" is not supported, falling back to browser locale.'}),h in co.buy?h:"en")}function Yd(a){2===a&&U(ng,"includes").call(ng,oi(Or))&&Tt(window,"about:blank","gp-js-popup","width=600,height=600,menubar=no,toolbar=no,scrollbars=no")}var va=function(){},Kd=function(a,l){return new z.Promise(function(h,p){setTimeout(function(){p({reason:"OTHER_ERROR",intent:a,message:"REQUEST_TIMEOUT"})},l)})},sg=function(a,l){return{error:{reason:a.reason||"OTHER_ERROR",intent:a.intent||l,message:a.message}}},Xd=function(a,l,h){Zn({M:"loadPaymentData",errorMessage:"An error occurred in call back, please try to avoid this by setting structured error in callback response"}),a&&Be({eventType:l,merchantCallbackInfo:{callbackTrigger:h||0}})};va.prototype.Wb=function(a,l,h){return null===l.error&&(console.warn("Please remove null fields in callback returns."),delete l.error),{modifiers:[{supportedMethods:[h&&"SANDBOX"===h&&google.payments.api.EnablePaymentHandlerSandboxBuyflow?"https://pay.sandbox.google.com/gp/p/payment_method_manifest.json":"https://google.com/pay"],data:l}]}},va.prototype.hb=function(a,l){return{type:a,data:l}};var Qd=function(a,l,h,p,v){return z.Promise.resolve(z.Promise.race([Kd("PAYMENT_AUTHORIZATION",h),l.onPaymentAuthorized(a)])).then(function(b){return p("paymentAuthorizationResponse",b,v)},function(b){return Xd("REQUEST_TIMEOUT"===b.message,27,2),p("paymentAuthorizationResponse",sg(b,"PAYMENT_AUTHORIZATION"),v)})},vc=function(a,l,h,p,v){return z.Promise.resolve(z.Promise.race([Kd(a.callbackTrigger in ln?ln[a.callbackTrigger]:"UNKNOWN_INTENT",h),l.onPaymentDataChanged(a)])).then(function(b){return p("paymentDataCallbackResponse",b,v)},function(b){return Xd("REQUEST_TIMEOUT"===b.message,26,$b[a.callbackTrigger]),p("paymentDataCallbackResponse",sg(b,a.callbackTrigger||"UNKNOWN_INTENT"),v)})},_c=function(){var a=window.document,l=this;this.Qb=a,this.V=a.createElement("gpay-graypane"),Jo(this.V,{"z-index":2147483647,display:"none",position:"fixed",top:0,right:0,bottom:0,left:0,"background-color":"rgba(32, 33, 36, .6)"}),this.kb=null,this.V.addEventListener("click",function(){l.O()})};function Jo(a,l){for(var h in l)a.style.setProperty(h,l[h].toString(),"important")}function ai(a,l){var h=a.ownerDocument.defaultView,p=a.style.transition||"";return new z.Promise(function(v){h.setTimeout(function(){h.setTimeout(v,300),Jo(a,U(Object,"assign").call(Object,{transition:"transform 300ms ease-out, opacity 300ms ease-out"},l))})}).then(function(){Jo(a,U(Object,"assign").call(Object,{transition:p},l))})}_c.prototype.show=function(a){return this.kb=a||null,this.Qb.body.appendChild(this.V),Jo(this.V,{display:"block",opacity:0}),ai(this.V,{opacity:1})},_c.prototype.O=function(){if(this.kb)try{this.kb.focus()}catch{}};var ug=function(a){this.m=a,this.yb=this.zb=this.A=this.ma=null,this.sa=3e4};(F=ug.prototype).Ab=function(a){this.A=a},F.Ma=function(a){this.ma=a},F.isReadyToPay=function(a){var l=Jd(a);return new z.Promise(function(h){var p=!1;if(null!=l.hasEnrolledInstrument){var v=l.hasEnrolledInstrument();p=!0}else v=l.canMakePayment();v.then(function(b){window.sessionStorage.setItem("google.payments.api.storage.isreadytopay.result",b.toString());var w={result:b};a.apiVersion>=2&&a.existingPaymentMethodRequired&&(w.paymentMethodPresent=b),google.payments.api.EnableImprovedIsrtpLogging&&!w.result&&(w.notReadyToPayFactors=[p?8:9]),h(w)}).catch(function(){if(window.sessionStorage.getItem("google.payments.api.storage.isreadytopay.result")){var b={result:"true"==window.sessionStorage.getItem("google.payments.api.storage.isreadytopay.result")};google.payments.api.EnableImprovedIsrtpLogging&&!b.result&&(b.notReadyToPayFactors=[p?10:11,12]),h(b)}else b={result:!1},google.payments.api.EnableImprovedIsrtpLogging&&(b.notReadyToPayFactors=[p?10:11]),h(b)})})},F.prefetchPaymentData=function(a){Jd(a,this.m,a.transactionInfo.currencyCode,a.transactionInfo.totalPrice)},F.loadPaymentData=function(a){ef(this,a)},F.O=function(){};var Jd=function(a,l,h,p){var v={};return a&&(v=JSON.parse(JSON.stringify(a))),v.apiVersion||(v.apiVersion=1),v.swg&&(v.allowedPaymentMethods=["CARD"]),l&&"TEST"==l&&(v.environment=l),new PaymentRequest([{supportedMethods:[l&&"SANDBOX"===l&&google.payments.api.EnablePaymentHandlerSandboxBuyflow?"https://pay.sandbox.google.com/gp/p/payment_method_manifest.json":"https://google.com/pay"],data:v}],{total:{label:"Estimated Total Price",amount:{currency:h||"USD",value:p||"0"}}})},ef=function(a,l){(l=Jd(l,a.m,l.transactionInfo&&l.transactionInfo.currencyCode||void 0,l.transactionInfo&&l.transactionInfo.totalPrice||void 0)).onpaymentmethodchange=function(h){var p=new va;p=h.methodDetails.callbackTrigger?vc(h.methodDetails,a.A,a.sa,p.Wb,a.m):Qd(h.methodDetails,a.A,a.sa,p.Wb,a.m),h.updateWith(p)},a.ma(l.show().then(function(h){return google.payments.api.LogInternally&&console.log("payment response",h),h.complete("success"),h.details.statusCode?(google.payments.api.LogInternally&&console.log("status code",h.details.statusCode),{error:h.details}):h.details}).catch(function(h){throw google.payments.api.LogInternally&&console.log("payment response with err",h),h.statusCode="CANCELED",h}))},bc=["SHIPPING_ADDRESS","SHIPPING_OPTION"];function tf(a){if(a.apiVersion>=2){var l=lg(a);if(l&&1==l.length&&"CRYPTOGRAM_3DS"==l[0])return!0}return 1==a.allowedPaymentMethods.length&&"TOKENIZED_CARD"==a.allowedPaymentMethods[0]}function wc(a,l){return!!(a.apiVersion>=2&&(a=lg(a))&&U(a,"includes").call(a,l))}function es(a){return!!(a.apiVersion>=2&&a.allowedPaymentMethods&&Cc(a,"EWALLET"))}function ts(){var a=window.location.hostname,l=a.length-11;return l>=0&&a.indexOf(".google.com",l)==l||void 0===window.isSecureContext||window.isSecureContext?null:"Google Pay APIs should be called in secure context!"}function ew(a){return"CARD"===a||"TOKENIZED_CARD"===a}function tw(a){return(x=U(Object,"values").call(Object,Cd),U(x,"includes")).call(x,a)}function nf(a){return a?a.encryptedParameters?null:a.apiVersion<2||!a.allowedPaymentMethods||!Cc(a,"UPI")?a.swg?(a=a.swg)?a.skuId&&a.publicationId?null:"Both skuId and publicationId must be provided":"Swg parameters must be provided":a.transactionInfo?a.transactionInfo.currencyCode?a.transactionInfo.totalPriceStatus&&(x=U(Object,"values").call(Object,Ed),U(x,"includes")).call(x,a.transactionInfo.totalPriceStatus)?"NOT_CURRENTLY_KNOWN"===a.transactionInfo.totalPriceStatus||a.transactionInfo.totalPrice?null:"totalPrice in transactionInfo must be set when totalPriceStatus is ESTIMATED or FINAL!":"totalPriceStatus in transactionInfo must be set to one of NOT_CURRENTLY_KNOWN, ESTIMATED or FINAL!":"currencyCode in transactionInfo must be set!":"transactionInfo must be set!":"UPI not supported":"paymentDataRequest must be set!"}function cg(a,l){if(a.callbackIntents&&!l)return"paymentDataCallbacks must be set";if(U(a.callbackIntents,"includes").call(a.callbackIntents,"PAYMENT_AUTHORIZATION")!==!!l.onPaymentAuthorized)return"Both PAYMENT_AUTHORIZATION intent and onPaymentAuthorized must be set";var h=bc.slice();return google.payments.api.EnableOfferCallback&&h.push("OFFER"),h.push("PAYMENT_METHOD"),!!h.filter(function(p){return U(a.callbackIntents,"includes").call(a.callbackIntents,p)}).length!=!!l.onPaymentDataChanged?"onPaymentDataChanged callback must be set if any of "+h+" callback intent is set.":null}function lg(a){return a.allowedPaymentMethods&&(a=Cc(a,"CARD"))&&a.parameters?a.parameters.allowedAuthMethods:null}function Cc(a,l){for(var h=0;h<a.allowedPaymentMethods.length;h++){var p=a.allowedPaymentMethods[h];if(p.type==l)return p}return null}var k={},lo=function(a,l){Array.isArray(l)||(l=[l]),On(l.length>0,"At least one Css3Property should be specified."),l=l.map(function(h){if("string"==typeof h)return h;!function(a,l,h){dr(a)||ta("Expected object but got %s: %s.",[Js(a),a],l,Array.prototype.slice.call(arguments,2))}(h,"Expected css3 property to be an object.");var p=h.Hc+" "+h.duration+"s "+h.timing+" "+h.delay+"s";return On(h.Hc&&"number"==typeof h.duration&&h.timing&&"number"==typeof h.delay,"Unexpected css3 property value: %s",p),p}),function(a,l){var h=k.transition;if(!h){var p="transition".replace(/\-([a-z])/g,function(a,l){return l.toUpperCase()});h=p,void 0===a.style[p]&&(p=(qo?"Webkit":Nd?"Moz":null)+function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(l,h,p){return h+p.toUpperCase()})}(p),void 0!==a.style[p]&&(h=p)),k.transition=h}h&&(a.style[h]=l)}(a,l.join(","))},Rr=function(){this.cb=this.cb,this.jb=this.jb};Rr.prototype.cb=!1,Rr.prototype.dispose=function(){this.cb||(this.cb=!0,this.Fa())},Rr.prototype[U(z.Symbol,"dispose")]=function(){this.dispose()},Rr.prototype.Fa=function(){if(this.jb)for(;this.jb.length;)this.jb.shift()()};var ui=function(a,l){this.type=a,this.currentTarget=this.target=l,this.defaultPrevented=this.Pa=!1};ui.prototype.stopPropagation=function(){this.Pa=!0},ui.prototype.preventDefault=function(){this.defaultPrevented=!0};var nw=function(){if(!uo.addEventListener||!Object.defineProperty)return!1;var a=!1,l=Object.defineProperty({},"passive",{get:function(){a=!0}});try{var h=function(){};uo.addEventListener("test",h,l),uo.removeEventListener("test",h,l)}catch{}return a}(),fo=function(a,l){if(ui.call(this,a?a.type:""),this.relatedTarget=this.currentTarget=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0,this.key="",this.charCode=this.keyCode=0,this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.timeStamp=0,this.Ga=null,a){var h=this.type=a.type,p=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement,this.currentTarget=l,(l=a.relatedTarget)||("mouseover"==h?l=a.fromElement:"mouseout"==h&&(l=a.toElement)),this.relatedTarget=l,p?(this.clientX=void 0!==p.clientX?p.clientX:p.pageX,this.clientY=void 0!==p.clientY?p.clientY:p.pageY,this.screenX=p.screenX||0,this.screenY=p.screenY||0):(this.offsetX=qo||void 0!==a.offsetX?a.offsetX:a.layerX,this.offsetY=qo||void 0!==a.offsetY?a.offsetY:a.layerY,this.clientX=void 0!==a.clientX?a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0),this.button=a.button,this.keyCode=a.keyCode||0,this.key=a.key||"",this.charCode=a.charCode||("keypress"==h?a.keyCode:0),this.ctrlKey=a.ctrlKey,this.altKey=a.altKey,this.shiftKey=a.shiftKey,this.metaKey=a.metaKey,this.pointerId=a.pointerId||0,this.pointerType=a.pointerType,this.state=a.state,this.timeStamp=a.timeStamp,this.Ga=a,a.defaultPrevented&&fo.Da.preventDefault.call(this)}};ki(fo,ui),fo.prototype.stopPropagation=function(){fo.Da.stopPropagation.call(this),this.Ga.stopPropagation?this.Ga.stopPropagation():this.Ga.cancelBubble=!0},fo.prototype.preventDefault=function(){fo.Da.preventDefault.call(this);var a=this.Ga;a.preventDefault?a.preventDefault():a.returnValue=!1};var ho="closure_listenable_"+(1e6*Math.random()|0),Fr=0,po=function(a,l,h,p,v){this.listener=a,this.proxy=null,this.src=l,this.type=h,this.capture=!!p,this.fb=v,this.key=++Fr,this.Qa=this.ab=!1},Lr=function(a){a.Qa=!0,a.listener=null,a.proxy=null,a.src=null,a.fb=null};function Fn(a){this.src=a,this.D={},this.Va=0}Fn.prototype.add=function(a,l,h,p,v){var b=a.toString();(a=this.D[b])||(a=this.D[b]=[],this.Va++);var w=ns(a,l,p,v);return w>-1?(l=a[w],h||(l.ab=!1)):((l=new po(l,this.src,b,!!p,v)).ab=h,a.push(l)),l},Fn.prototype.remove=function(a,l,h,p){if(!((a=a.toString())in this.D))return!1;var v=this.D[a];return(l=ns(v,l,h,p))>-1&&(Lr(v[l]),On(null!=v.length),Array.prototype.splice.call(v,l,1),0==v.length&&(delete this.D[a],this.Va--),!0)};var _a=function(a,l){var h=l.type;if(h in a.D){var b,p=a.D[h],v=Qu(p,l);(b=v>=0)&&(On(null!=p.length),Array.prototype.splice.call(p,v,1)),b&&(Lr(l),0==a.D[h].length&&(delete a.D[h],a.Va--))}};Fn.prototype.tb=function(a,l,h,p){var v=-1;return(a=this.D[a.toString()])&&(v=ns(a,l,h,p)),v>-1?a[v]:null},Fn.prototype.hasListener=function(a,l){var h=void 0!==a,p=h?a.toString():"",v=void 0!==l;return function Fm(a,l){for(var h in a)if(l.call(void 0,a[h],h,a))return!0;return!1}(this.D,function(b){for(var w=0;w<b.length;++w)if(!(h&&b[w].type!=p||v&&b[w].capture!=l))return!0;return!1})};var ns=function(a,l,h,p){for(var v=0;v<a.length;++v){var b=a[v];if(!b.Qa&&b.listener==l&&b.capture==!!h&&b.fb==p)return v}return-1},ci="closure_lm_"+(1e6*Math.random()|0),sf={},dg=function(a,l,h,p,v){if(p&&p.once)af(a,l,h,p,v);else if(Array.isArray(l))for(var b=0;b<l.length;b++)dg(a,l[b],h,p,v);else h=mo(h),a&&a[ho]?(p=dr(p)?!!p.capture:!!p,uf(a),a.N.add(String(l),h,!1,p,v)):fg(a,l,h,!1,p,v)},fg=function(a,l,h,p,v,b){if(!l)throw Error("Invalid event type");var w=dr(v)?!!v.capture:!!v,E=Ne(a);if(E||(a[ci]=E=new Fn(a)),!(h=E.add(l,h,p,w,b)).proxy)if(p=He(),h.proxy=p,p.src=a,p.listener=h,a.addEventListener)nw||(v=w),void 0===v&&(v=!1),a.addEventListener(l.toString(),p,v);else if(a.attachEvent)a.attachEvent(hg(l.toString()),p);else{if(!a.addListener||!a.removeListener)throw Error("addEventListener and attachEvent are unavailable.");On("change"===l,"MediaQueryList only has a change event"),a.addListener(p)}},He=function(){var a=pg,l=function(h){return a.call(l.src,l.listener,h)};return l},af=function(a,l,h,p,v){if(Array.isArray(l))for(var b=0;b<l.length;b++)af(a,l[b],h,p,v);else h=mo(h),a&&a[ho]?a.N.add(String(l),h,!0,dr(p)?!!p.capture:!!p,v):fg(a,l,h,!0,p,v)},Ct=function(a,l,h,p,v){if(Array.isArray(l))for(var b=0;b<l.length;b++)Ct(a,l[b],h,p,v);else p=dr(p)?!!p.capture:!!p,h=mo(h),a&&a[ho]?a.N.remove(String(l),h,p,v):a&&(a=Ne(a))&&(l=a.tb(l,h,p,v))&&ba(l)},ba=function(a){if("number"!=typeof a&&a&&!a.Qa){var l=a.src;if(l&&l[ho])_a(l.N,a);else{var h=a.type,p=a.proxy;l.removeEventListener?l.removeEventListener(h,p,a.capture):l.detachEvent?l.detachEvent(hg(h),p):l.addListener&&l.removeListener&&l.removeListener(p),(h=Ne(l))?(_a(h,a),0==h.Va&&(h.src=null,l[ci]=null)):Lr(a)}}},hg=function(a){return a in sf?sf[a]:sf[a]="on"+a},pg=function(a,l){if(a.Qa)a=!0;else{l=new fo(l,this);var h=a.listener,p=a.fb||a.src;a.ab&&ba(a),a=h.call(p,l)}return a},Ne=function(a){return(a=a[ci])instanceof Fn?a:null},ae="__closure_events_fn_"+(1e9*Math.random()>>>0),mo=function(a){return On(a,"Listener can not be null."),"function"==typeof a?a:(On(a.handleEvent,"An object listener must have handleEvent method."),a[ae]||(a[ae]=function(l){return a.handleEvent(l)}),a[ae])},ft=function(){Rr.call(this),this.N=new Fn(this),this.pc=this,this.xb=null};ki(ft,Rr),ft.prototype[ho]=!0,ft.prototype.addEventListener=function(a,l,h,p){dg(this,a,l,h,p)},ft.prototype.removeEventListener=function(a,l,h,p){Ct(this,a,l,h,p)},ft.prototype.dispatchEvent=function(a){uf(this);var b,l=this.xb;if(l)for(var h=[],p=1;l;l=l.xb)h.push(l),On(++p<1e3,"infinite loop");if(l=this.pc,p=a.type||a,"string"==typeof a)a=new ui(a,l);else if(a instanceof ui)a.target=a.target||l;else{var v=a;!function Lm(a,l){for(var h,p,v=1;v<arguments.length;v++){for(h in p=arguments[v])a[h]=p[h];for(var b=0;b<ca.length;b++)h=ca[b],Object.prototype.hasOwnProperty.call(p,h)&&(a[h]=p[h])}}(a=new ui(p,l),v)}if(v=!0,h)for(b=h.length-1;!a.Pa&&b>=0;b--){var w=a.currentTarget=h[b];v=Ec(w,p,!0,a)&&v}if(a.Pa||(w=a.currentTarget=l,v=Ec(w,p,!0,a)&&v,a.Pa||(v=Ec(w,p,!1,a)&&v)),h)for(b=0;!a.Pa&&b<h.length;b++)w=a.currentTarget=h[b],v=Ec(w,p,!1,a)&&v;return v},ft.prototype.Fa=function(){if(ft.Da.Fa.call(this),this.N){var h,a=this.N;for(h in a.D){for(var p=a.D[h],v=0;v<p.length;v++)Lr(p[v]);delete a.D[h],a.Va--}}this.xb=null};var Ec=function(a,l,h,p){if(!(l=a.N.D[String(l)]))return!0;l=l.concat();for(var v=!0,b=0;b<l.length;++b){var w=l[b];if(w&&!w.Qa&&w.capture==h){var E=w.listener,V=w.fb||w.src;w.ab&&_a(a.N,w),v=!1!==E.call(V,p)&&v}}return v&&!p.defaultPrevented};ft.prototype.tb=function(a,l,h,p){return this.N.tb(String(a),l,h,p)},ft.prototype.hasListener=function(a,l){return this.N.hasListener(void 0!==a?String(a):void 0,l)};var uf=function(a){On(a.N,"Event target is not initialized. Did you call the superclass (goog.events.EventTarget) constructor?")},Dc=function(a,l){ft.call(this),this.gb=a||1,this.Ua=l||uo,this.Nb=Yu(this.Rc,this),this.Ub=Date.now()};ki(Dc,ft),(F=Dc.prototype).enabled=!1,F.P=null,F.setInterval=function(a){this.gb=a,this.P&&this.enabled?(this.stop(),this.start()):this.P&&this.stop()},F.Rc=function(){if(this.enabled){var a=Date.now()-this.Ub;a>0&&a<.8*this.gb?this.P=this.Ua.setTimeout(this.Nb,this.gb-a):(this.P&&(this.Ua.clearTimeout(this.P),this.P=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}},F.start=function(){this.enabled=!0,this.P||(this.P=this.Ua.setTimeout(this.Nb,this.gb),this.Ub=Date.now())},F.stop=function(){this.enabled=!1,this.P&&(this.Ua.clearTimeout(this.P),this.P=null)},F.Fa=function(){Dc.Da.Fa.call(this),this.stop(),delete this.Ua};var hr=function(a,l,h,p,v,b){this.code=a,this.data="ok"==a?l:null,this.mode=h,this.origin=p,this.wb=v,this.Nc=b,this.ok="ok"==a,this.error="failed"==a?Error(String(l)||""):null};function rw(a){var l=a.indexOf("#");return-1==l?a:a.substring(0,l)}function cf(a,l,h){if(l.ok)h(l);else{var p;if(!(p=l.error)){if(p=null,"function"==typeof a.DOMException){a=a.DOMException;try{p=new a("AbortError","AbortError")}catch{}}p||((p=Error("AbortError")).name="AbortError",p.code=20)}(a=p).yd=l,h(z.Promise.reject(a))}}var li=function(a,l,h){this.g=a,this.Gb=l,this.G=h,this.Jc=!0,this.Hb=null,this.Ib=!1,this.aa=this.ib=this.ba=this.o=null,this.Mb=this.yc.bind(this)};li.prototype.connect=function(a){if(this.ba)throw Error("already connected");this.ba=a,this.g.addEventListener("message",this.Mb)},li.prototype.disconnect=function(){if(this.ba&&(this.ba=null,this.o&&(wa(this.o),this.o=null),this.g.removeEventListener("message",this.Mb),this.aa)){for(var a in this.aa){var l=this.aa[a];l.port1&&wa(l.port1),l.port2&&wa(l.port2)}this.aa=null}},li.prototype.isConnected=function(){return null!=this.G};var lf=function(a){return a.ba&&!a.Hb&&(a.Hb="function"==typeof a.Gb?a.Gb():a.Gb),a.Hb},tn=function(a){if(null==a.G)throw Error("not connected");return a.G},se=function(a,l){var h=null;a.Ib&&"function"==typeof a.g.MessageChannel&&(h=new a.g.MessageChannel),h?(rs(a,"start",l,[h.port2]),yg(a,h.port1)):rs(a,"start",l)},rs=function(a,l,h,p){if(h={sentinel:"__ACTIVITIES__",cmd:l,payload:h||null},a.o)a.o.postMessage(h,p||void 0);else{var v=lf(a);if(!v)throw Error("not connected");a="connect"==l?null!=a.G?a.G:"*":tn(a),v.postMessage(h,a,p||void 0)}};li.prototype.customMessage=function(a){rs(this,"msg",a)};var gg=function(a,l){a.aa||(a.aa={});var p,h=a.aa[l];return h||(h=new z.Promise(function(v){p=v}),a.aa[l]=h={port1:null,port2:null,fc:p,promise:h}),h},yg=function(a,l){a.o&&wa(a.o),a.o=l,a.o.onmessage=function(h){var p=h.data,v=p&&p.cmd;p=p&&p.payload||null,v&&a.za(v,p,h)}};function wa(a){try{a.close()}catch{}}li.prototype.yc=function(a){if(!this.Jc||lf(this)==a.source){var l=a.data;if(l&&"__ACTIVITIES__"==l.sentinel){var h=l.cmd;if(!this.o||"connect"==h||"start"==h){var p=a.origin;l=l.payload||null,null==this.G&&"start"==h&&(this.G=p),null==this.G&&a.source&&lf(this)==a.source&&(this.G=p),p==this.G&&this.za(h,l,a)}}}},li.prototype.za=function(a,l,h){"connect"==a?(this.o&&(wa(this.o),this.o=null),this.Ib=l&&l.acceptsChannel||!1,this.ba(a,l)):"start"==a?((h=h.ports&&h.ports[0])&&yg(this,h),this.ba(a,l)):"msg"==a?null!=this.ib&&null!=l&&this.ib(l):"cnget"==a?((a=gg(this,l=l.name||"")).port1||(h=new this.g.MessageChannel,a.port1=h.port1,a.port2=h.port2,a.fc(a.port1)),a.port2&&(rs(this,"cnset",{name:l},[a.port2]),a.port2=null)):"cnset"==a?(a=h.ports[0],(l=gg(this,l.name)).port1=a,l.fc(a)):this.ba(a,l)};var vg=function(a,l,h){var p=this;this.Ia=a,this.nb=l,this.Za=h||null,this.g=this.Ia.ownerDocument.defaultView,this.G=cc(tc(l).toString()),this.Ea=null,this.qb=new z.Promise(function(v){p.Ea=v}),this.lb=null,new z.Promise(function(v){p.lb=v}),this.L=null,this.mb=new z.Promise(function(v){p.L=v}),this.ec=this.Xb=null,this.u=new li(this.g,function(){return p.Ia.contentWindow},this.G)};(F=vg.prototype).connect=function(){var a=this.Ia;if("isConnected"in a)a=a.isConnected;else{var l=a.ownerDocument&&a.ownerDocument.documentElement;a=l&&l.contains(a)||!1}if(!a)throw Error("iframe must be in DOM");return this.u.connect(this.za.bind(this)),Ad(this.Ia,this.nb),this.qb},F.disconnect=function(){this.u.disconnect()},F.Ya=function(){return this.mb},F.eb=function(){return this.Ia.contentWindow||null},F.message=function(a){this.u.customMessage(a)},F.onMessage=function(a){this.u.ib=a},F.za=function(a,l){"connect"==a?(se(this.u,this.Za),this.Ea()):"result"==a?this.L&&(l=new hr(a=l.code,"failed"==a?Error(l.data||""):l.data,"iframe",tn(this.u),!0,!0),cf(this.g,l,this.L),this.L=null,rs(this.u,"close"),this.disconnect()):"ready"==a?this.lb&&(this.lb(),this.lb=null):"resize"==a&&(this.ec=l.height,this.Xb&&this.Xb(this.ec))};var Y=function(a,l,h,p,v,b){var w=this;if(!p||"_blank"!=p&&"_top"!=p&&"_"==p[0])throw Error('The only allowed targets are "_blank", "_top" and name targets');this.g=a,this.Ic=l,this.nb=h,this.Ec=p,this.Za=v||null,this.ra=b||{},this.Ea=null,this.qb=new z.Promise(function(E){w.Ea=E}),this.L=null,this.mb=new z.Promise(function(E){w.L=E}),this.u=this.W=this.ia=null};(F=Y.prototype).open=function(){return aw(this)},F.disconnect=function(){if(this.W&&(this.W.stop(),this.W=null),this.u&&(this.u.disconnect(),this.u=null),this.ia){try{this.ia.close()}catch{}this.ia=null}this.L=null},F.eb=function(){return this.ia},F.Ya=function(){return this.mb},F.message=function(a){this.u.customMessage(a)},F.onMessage=function(a){this.u.ib=a};var aw=function(a){var l=Et(a),h=a.nb;if(!a.ra.Cd){var p=function ow(a){var l={requestId:a.requestId,returnUrl:a.hc,args:a.qc};return void 0!==a.origin&&(l.origin=a.origin),void 0!==a.wb&&(l.originVerified=a.wb),JSON.stringify(l)}({requestId:a.Ic,hc:a.ra.hc||rw(a.g.location.href),qc:a.Za});h=h+(-1==h.indexOf("#")?"#":"&")+encodeURIComponent("__WA__")+"="+encodeURIComponent(p)}"_top"!=(p=a.Ec)&&function mg(a){return/Trident|MSIE|IEMobile/i.test((a=a.navigator)&&a.userAgent)}(a.g)&&(p="_top");try{var v=Tt(a.g,h,p,l)}catch{}if(!v&&"_top"!=p&&!a.ra.Ad){p="_top";try{v=Tt(a.g,h,p)}catch{}}return v?(a.ia=v,"_top"!=p&&Ca(a)):Sc(a,Error("failed to open window")),a.mb.catch(function(){})},Et=function(a){var l=a.g.screen,h=l.availWidth||l.width,p=l.availHeight||l.height,v=a.g==a.g.top,b=a.g.navigator;b=/Edge/i.test(b&&b.userAgent),h=Math.max(h-(v&&a.g.outerWidth>a.g.innerWidth?Math.min(100,a.g.outerWidth-a.g.innerWidth):b?100:0),.5*h);var w=Math.max(p-(v&&a.g.outerHeight>a.g.innerHeight?Math.min(100,a.g.outerHeight-a.g.innerHeight):b?100:0),.5*p);for(var E in p=Math.floor(Math.min(600,.9*h)),v=Math.floor(Math.min(600,.9*w)),a.ra.width&&(p=Math.min(a.ra.width,h)),a.ra.height&&(v=Math.min(a.ra.height,w)),a=Math.floor((l.width-p)/2),l=Math.floor((l.height-v)/2),h={height:v,width:p,resizable:"yes",scrollbars:"yes"},b||(h.left=a,h.top=l),b="",h)b&&(b+=","),b+=E+"="+h[E];return b},Ca=function(a){a.W=new Dc(500),a.W.addEventListener("tick",function(){_g(a,!0)}),a.W.start(),a.u=new li(a.g,a.ia,null),a.u.connect(a.za.bind(a))},_g=function(a,l){(!a.ia||a.ia.closed)&&(a.W&&(a.W.stop(),a.W=null),a.g.setTimeout(function(){try{a.ea("canceled",null)}catch(h){Sc(a,h)}},l?3e3:0))},Sc=function(a,l){a.L&&a.L(z.Promise.reject(l)),a.disconnect()};Y.prototype.ea=function(a,l){if(this.L){var h=this.u.isConnected();a=new hr(a,l,"popup",h?tn(this.u):cc(this.nb),h,h),cf(this.g,a,this.L),this.L=null}this.u&&rs(this.u,"close"),this.disconnect()},Y.prototype.za=function(a,l){var h=this;"connect"==a?(se(this.u,this.Za),this.Ea()):"result"==a?this.ea(a=l.code,"failed"==a?Error(l.data||""):l.data):"check"==a&&this.g.setTimeout(function(){return _g(h)},200)};var df=function(a,l,h,p,v){this.g=a,this.tc=l,this.uc=h,this.G=p,this.Qc=v};df.prototype.Ya=function(){var a=this,l=new hr(this.tc,this.uc,"redirect",this.G,this.Qc,!1);return new z.Promise(function(h){cf(a.g,l,h)})};var go=function(){var a=window,l=this;this.version="1.23",this.g=a,this.R=a.location.hash,this.Cb={},this.Db={},this.cc=null,new z.Promise(function(h){l.cc=h})};go.prototype.open=function(a,l,h,p,v){return{Dd:Mc(this,a,l,h,p,v).eb()}},go.prototype.Ma=function(a,l){var h=this.Cb[a];if(h||(this.Cb[a]=h=[]),h.push(l),!(h=this.Db[a])&&this.R){try{var p=this.g,v=function iw(a){return a?(/^[?#]/.test(a)?a.slice(1):a).split("&").reduce(function(l,h){var p=h.split("=");return h=decodeURIComponent(p[0]||""),p=decodeURIComponent(p[1]||""),h&&(l[h]=p),l},{}):{}}(this.R).__WA_RES__;if(v){var b=JSON.parse(v);if(b&&b.requestId==a){var w=p.location.hash;if(w){var E=encodeURIComponent("__WA_RES__")+"=";v=-1;do{if(-1!=(v=w.indexOf(E,v))){var V=v>0?w.substring(v-1,v):"";if(""==V||"?"==V||"#"==V||"&"==V){var O=w.indexOf("&",v+1);-1==O&&(O=w.length),w=w.substring(0,v)+w.substring(O+1)}else v++}}while(-1!=v&&v<w.length)}var X=w;if((X=X||"")!=p.location.hash&&p.history&&p.history.replaceState)try{p.history.replaceState(p.history.state,"",X)}catch{}var Ze=b.code,mt=b.data,$t=b.origin,cs=p.document.referrer&&cc(p.document.referrer);h=new df(p,Ze,mt,$t,$t==cs)}else h=null}else h=null}catch(_n){(function sw(a){setTimeout(function(){throw a})})(_n),this.cc(_n)}h&&(this.Db[a]=h)}(a=h)&&ff(a,l)};var Mc=function(a,l,h,p,v,b){var w=new Y(a.g,l,h,p,v,b);return w.open().then(function(){q(a,l,w)}),w},ff=function(a,l){z.Promise.resolve().then(function(){l(a)})},q=function(a,l,h){var p=a.Cb[l];p&&p.forEach(function(v){ff(h,v)}),a.Db[l]=h},Da=window.testOnlyLocalIbfeUrl||"",Sa=window.testOnlyLocalWeb5Url||"",Ic=window.integratorExperimentIds||[],Ln=function(a,l,h,p){this.m=a,this.Wa=l||!1,this.Jb=h||new go,this.ub=new _c,this.Oa=this.ma=null,this.Fb=!1,this.Pb=this.o=null,this.dc=p||null,this.yb=this.zb=this.A=this.Ra=null,this.sa=3e4,this.Wa&&Rn("\n.google-payments-dialog {\n animation: none 0s ease 0s 1 normal none running;\n background: none 0 0 / auto repeat scroll padding-box border-box #fff;\n border: 0 none #333;\n border-collapse: separate;\n bottom: 0;\n box-shadow: #808080 0 3px 0 0, #808080 0 0 22px;\n box-sizing: border-box;\n letter-spacing: normal;\n max-height: 100%;\n overflow: visible;\n position: fixed;\n width: 100%;\n appearance: none;\n left: 0;\n}\n@media (min-width: 600px) {\n .google-payments-dialog {\n width: 480px;\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n max-height: 600px;\n }\n}\n.google-payments-dialogContainer {\n position: fixed;\n z-index: 2147483647;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n overflow: hidden;\n background-color: rgba(0,0,0,0.4);\n}\n")};Ln.prototype.Ma=function(a){this.ma||(this.ma=a,this.Jb.Ma("GPAY",this.Dc.bind(this)))},Ln.prototype.O=function(){this.ub.O()},Ln.prototype.Dc=function(a){var l=this;(function(a){a.kb=null,a.V.parentElement&&ai(a.V,{opacity:0}).then(function(){Jo(a.V,{display:"none"}),a.Qb.body.removeChild(a.V)})})(this.ub),this.ma(a.Ya().then(function(h){if("TIN"!=l.m&&h.origin!=hf(l))throw Error("channel mismatch");var p=h.data;if(p.redirectEncryptedCallbackData)return kr=3,bg(l,p.redirectEncryptedCallbackData).then(function(v){var b=U(Object,"assign").call(Object,{},p);return delete b.redirectEncryptedCallbackData,U(Object,"assign").call(Object,b,v)});if(!h.wb||!h.Nc)throw Error("channel mismatch");return p},function(h){var p=h.message;h=h.message;try{h=JSON.parse(p.substring(7))}catch{}return h.statusCode&&-1==["DEVELOPER_ERROR","MERCHANT_ACCOUNT_ERROR"].indexOf(h.statusCode)&&(h={statusCode:"CANCELED"}),"AbortError"==h&&(h={statusCode:"CANCELED"}),z.Promise.reject(h)}))};var bg=function(a,l){return new z.Promise(function(h,p){var v=cw(a),b=new XMLHttpRequest;b.open("POST",v,!0),"withCredentials"in b&&(b.withCredentials=!0),b.onreadystatechange=function(){if(!(b.readyState<2))if(b.status<100||b.status>599)b.onreadystatechange=null,p(Error("Unknown HTTP status "+b.status));else if(4==b.readyState)try{h(JSON.parse(b.responseText))}catch(w){p(w)}},b.onerror=function(){p(Error("Network failure"))},b.onabort=function(){p(Error("Request aborted"))},b.send(l)})};Ln.prototype.isReadyToPay=function(a){var l=this;return new z.Promise(function(h,p){if(tf(a)){var v={result:!1};google.payments.api.EnableImprovedIsrtpLogging&&(v.notReadyToPayFactors=[1]),h(v)}else{if(google.payments.api.EnableImprovedIsrtpLogging&&(v=function(a){var l=window.navigator.userAgent,h=l.indexOf("OPA/")>0&&l.indexOf("AppleWebKit")>0,p=l.indexOf("Instagram")>0,v=l.indexOf("Instagram")>0&&l.indexOf("IABMV/1")>0,b=l.indexOf("FB_IAB")>0||l.indexOf("FBIOS")>0,w=(l.indexOf("FB_IAB")>0||l.indexOf("FBIOS")>0)&&l.indexOf("IABMV/1")>0,E=l.indexOf("AndroidMapsWebView")>0;if(!a.Wa){if(h)return{result:!1,notReadyToPayFactors:[2]};if(p&&!v)return{result:!1,notReadyToPayFactors:[3]};if(b&&!w)return{result:!1,notReadyToPayFactors:[4]};if(E)return{result:!1,notReadyToPayFactors:[5]}}return a=l.indexOf("UCMini")>0,google.payments.api.ReadyToPayAdditionalBrowsers&&a?{result:!1,notReadyToPayFactors:[6]}:(a=google.payments.api.ReadyToPayAdditionalBrowsers&&(l.indexOf("OPT")>0||l.indexOf("UCBrowser")>0),l.indexOf("Chrome")>0||l.indexOf("Firefox")>0||l.indexOf("Safari")>0||a||h||v||w?{result:!0,notReadyToPayFactors:[]}:{result:!1,notReadyToPayFactors:[7]})}(l),!v.result))return void h(v);var b=(v=window.navigator.userAgent).indexOf("OPA/")>0&&v.indexOf("AppleWebKit")>0,w=v.indexOf("Instagram")>0,E=v.indexOf("Instagram")>0&&v.indexOf("IABMV/1")>0,V=v.indexOf("FB_IAB")>0||v.indexOf("FBIOS")>0,O=(v.indexOf("FB_IAB")>0||v.indexOf("FBIOS")>0)&&v.indexOf("IABMV/1")>0,X=v.indexOf("AndroidMapsWebView")>0;if((b||w&&!E||V&&!O||X)&&!l.Wa)h({result:!1});else{if(w=!1,google.payments.api.ReadyToPayAdditionalBrowsers){if(v.indexOf("UCMini")>0)return void h({result:!1});w=v.indexOf("OPT")>0||v.indexOf("UCBrowser")>0}var Ze=v.indexOf("Chrome")>0||v.indexOf("Firefox")>0||v.indexOf("Safari")>0||w||b||E||O;Ze&&a.apiVersion>=2&&a.existingPaymentMethodRequired?(a.environment=l.m,fa(a,6,["isReadyToPayResponse","isReadyToPayError"],function(mt){var $t={result:Ze};a.existingPaymentMethodRequired&&(mt.data.isReadyToPayError?p({statusCode:"DEVELOPER_ERROR",statusMessage:"Ready to pay error. Cause : "+mt.data.isReadyToPayError}):$t.paymentMethodPresent="READY_TO_PAY"==mt.data.isReadyToPayResponse),h($t)})):h({result:Ze})}}})},Ln.prototype.prefetchPaymentData=function(a){if(this.Wa){this.xa(a);var l=Ta(this),h=yo(this,l.container,l.iframe,a,wg(a));this.Oa={container:l.container,iframe:l.iframe,request:a,dataPromise:h}}},Ln.prototype.loadPaymentData=function(a){var l=this;if(a.swg||a.apiVersion||(a.apiVersion=1),a.forceRedirect&&this.A)throw Error("Callback is not supported in redirect mode");a.environment=this.m,this.xa(a);var h=wg(a);if(!this.Wa)return kr=a.forceRedirect?3:2,function(a,l,h,p,v){var b=Mc(a,"GPAY",l,h,p,v);return b.qb.then(function(){return b})}(this.Jb,Ac(this,h),a.forceRedirect?"_top":"gp-js-popup",a,uw(a)).then(function(b){var w=new va;l.ub.show(b&&b.eb()),google.payments.api.EnableClosePopupOnHostingPageUnload&&window.addEventListener("beforeunload",function(){var E;null==(E=b.eb())||E.close()}),b.onMessage(function(E){"partialPaymentDataCallback"==E.type?l.zb=vc(E.data,l.A,l.sa,w.hb,l.m).then(function(V){return b.message(V)}):"fullPaymentDataCallback"==E.type&&(l.yb=Qd(E.data,l.A,l.sa,w.hb,l.m).then(function(V){b.message(V)}))})});if(kr=1,this.Oa){var p=this.Oa;a=this.Oa.dataPromise,this.Oa=null}else p=Ta(this),a=yo(this,p.container,p.iframe,a,h);pf(this,p.container,p.iframe),history.pushState({},"",window.location.href);var v=function(b){b.preventDefault(),(b=p).container.parentNode&&(l.Pb(z.Promise.reject({errorCode:"CANCELED"})),os(b.container,b.iframe),l.o&&l.o.disconnect()),window.removeEventListener("popstate",v)};window.addEventListener("popstate",v),h=new z.Promise(function(b){l.Pb=b}),this.ma(z.Promise.race([a,h]))};var uw=function(a){var l={width:600,height:550};return a.forceRedirect||a.swg||(l.disableRedirectFallback=!0),l};Ln.prototype.Ab=function(a){this.A=a};var hf=function(a){return"LOCAL"==a.m?"":"TEST"==a.m&&""!=Da?Da:"https://"+("PREPROD"==a.m?"pay-preprod.sandbox":"SANDBOX"==a.m?"pay.sandbox":"CANARY"==a.m?"ibfe-canary.corp":"pay")+".google.com"},cw=function(a){var l=hf(a)+"/gp/p/apis/buyflow/process";return a.dc&&(l+="?rk="+encodeURIComponent(a.dc)),l},wg=function(a){var l,h;if(null!=(l=a.i)&&l.disableNgbf)return!1;if(null!=(h=a.callbackIntents)&&h.length&&(l=U(a.callbackIntents,"includes").call(a.callbackIntents,"OFFER"),!google.payments.api.EnableWebNgbfForCallbackIntents||l&&!google.payments.api.EnableWebNgbfForOfferCallbackIntent)||a.Bd)return!1;if(a.allowedPaymentMethods)for(l=(a=Te(a.allowedPaymentMethods)).next();!l.done;l=a.next())if((l=l.value).parameters&&l.parameters.cvcRequired&&!google.payments.api.EnableWebNgbfForCvcRequired)return!1;return!0},Ac=function(a,l){var h="TIN"==a.m?"/ui/pay":hf(a)+"/gp/p/ui/pay",p=!1;return l&&(p=!0,h+="?ng=true","TEST"==a.m&&""!=Sa&&(h+="&_web5host="+Sa)),Ic.length>0&&(h+=(p?"&":"?")+"expids="+Ic.join(",")),h},os=function(a,l){vn(l,"all 250ms ease 0s"),l.height="0px",setTimeout(function(){a.parentNode&&a.parentNode.removeChild(a)},250)},Ta=function(a){var l=document.createElement("div");l.classList.add("google-payments-dialogContainer");var h=document.createElement("div");h.classList.add("iframeContainer");var p=document.createElement("iframe");return p.classList.add("google-payments-dialog"),p.setAttribute("frameborder","0"),p.setAttribute("scrolling","no"),h.appendChild(p),l.appendChild(h),document.body.appendChild(l),h=(l={container:l,iframe:p}).iframe,(p=l.container).addEventListener("click",Yu(a.sc,a,l)),p.style.display="none",h.style.display="none",h.height="0px",vn(h,"all 250ms ease 0s"),a.Fb=!1,l};Ln.prototype.sc=function(a){a.container.parentNode&&history.back()};var pf=function(a,l,h){l.style.display="block",h.style.display="block",setTimeout(function(){h.height="280px",setTimeout(function(){a.Fb=!0,a.Ra&&(vn(h,a.Ra.transition),h.height=a.Ra.height,a.Ra=null)},250)},1)},vn=function(a,l){lo(a,l),a.style.setProperty("-webkit-transition",l)},yo=function(a,l,h,p,v){p.swg||p.apiVersion||(p.apiVersion=1);var w,b="";return p.i&&p.i.coordinationToken&&(b=p.i.coordinationToken),p.environment=a.m,v=function(a,l,h,p){var v=window.location.origin;h=void 0===h?"":h,p=void 0===p?"":p;var b=qn("https://pay.google.com/%{path}");return"CANARY"==a?b=qn("https://ibfe-canary.corp.google.com/%{path}"):("SANDBOX"==a||"PREPROD"==a)&&(b=qn("https://pay"+("PREPROD"==a?"-preprod":"")+".sandbox.google.com/%{path}")),l={origin:v,coordination_token:h,ng:l,hl:p},p=(h=tc(a=ic(b,{path:qn("gp/p/ui/pay")})).toString()).split(/[?#]/),v=/[?]/.test(h)?"?"+p[1]:"",function jm(a,l,h,p){function v(w,E){null!=w&&(Array.isArray(w)?w.forEach(function(V){return v(V,E)}):(l+=b+encodeURIComponent(E)+"="+encodeURIComponent(w),b="&"))}var b=l.length?"&":"?";return p.constructor===Object&&(p=U(Object,"entries").call(Object,p)),Array.isArray(p)?p.forEach(function(w){return v(w[1],w[0])}):p.forEach(v),Md(a+l+h)}(p[0],v,/[#]/.test(h)?"#"+(v?p[2]:p[1]):"",l)}(a.m,v,b,p.i.firstPartyLocale),function(a,l,h){var p=new vg(a,l,h);return p.connect().then(function(){return p})}(h,v,p).then(function(E){a.o=E;var V=new va;return E.onMessage(function(O){"partialPaymentDataCallback"==O.type?a.zb=vc(O.data,a.A,a.sa,V.hb).then(function(X){return E.message(X)}):"fullPaymentDataCallback"==O.type?a.yb=Qd(O.data,a.A,a.sa,V.hb).then(function(X){return E.message(X)}):"resize"==O.type&&(a.Fb?(w||(w=Date.now()),Date.now()<w+250?vn(h,O.transition+", height 250ms"):vn(h,O.transition),h.height=O.height):a.Ra={height:O.height,transition:O.transition})}),E.Ya()}).then(function(E){return os(l,h),history.back(),E.data},function(E){return os(l,h),history.back(),z.Promise.reject(E)})};Ln.prototype.xa=function(a){var l={startTimeMs:Date.now()};a.i=a.i?U(Object,"assign").call(Object,l,a.i):l};var Pe,xc="actions.google.com amp-actions.sandbox.google.com amp-actions-staging.sandbox.google.com amp-actions-autopush.sandbox.google.com payments.developers.google.com payments.google.com".split(" "),W=function(a,l,h,p){this.qa=l,function Qb(a){if(a.environment&&!(x=U(Object,"values").call(Object,wd),U(x,"includes")).call(x,a.environment))throw Error("Parameter environment in PaymentsClientOptions can optionally be set to PRODUCTION, otherwise it defaults to TEST.")}(a),this.vb=null,this.m=a.environment||"TEST",Pe||(Pe=-1!=xc.indexOf(window.location.hostname)&&a.i&&a.i.googleTransactionId?a.i.googleTransactionId:function Ym(a){for(var p,l=Array(36),h=0,v=0;v<36;v++)8==v||13==v||18==v||23==v?l[v]="-":14==v?l[v]="4":(h<=2&&(h=33554432+16777216*Math.random()|0),p=15&h,h>>=4,l[v]=qb[19==v?3&p|8:p]);return l.join("")+"."+a}(this.m)),this.v=a,this.Ob=a.merchantInfo&&a.merchantInfo.merchantId?a.merchantInfo.merchantId:"",a.paymentDataCallback&&(a.paymentDataCallbacks={onPaymentDataChanged:a.paymentDataCallback}),this.A=null,this.l=new us(a,h),this.T=new Ln(this.m,h,p,a.i&&a.i.redirectKey),this.I=5,this.B=null,this.na=5===(l=this.l.mode)||4===l?new ug(this.m):this.T,a.paymentDataCallbacks&&(this.A=a.paymentDataCallbacks,this.na.Ab(a.paymentDataCallbacks),this.T.Ab(a.paymentDataCallbacks)),this.T.Ma(this.Yb.bind(this)),this.na.Ma(this.Yb.bind(this)),kr=l,$m=Pe,Be({eventType:9,clientLatencyStartMs:Date.now(),buyFlowActivityReason:this.l.s,softwareInfo:Nt(this),merchantInfo:Ut(this),merchantPageAddress:google.payments.api.EnableImprovedMerchantLogging?""+window.location.origin+window.location.pathname:null}),window.addEventListener("message",function(v){-1!=xc.indexOf(window.location.hostname)&&"logPaymentData"===v.data.name&&Be(v.data.data)})},Nt=function(a){return a.v.merchantInfo&&a.v.merchantInfo.softwareInfo?a.v.merchantInfo.softwareInfo:null},Ut=function(a){var l,h,p,v;return null!=(l=a.v.merchantInfo)&&l.merchantId||null!=(h=a.v.merchantInfo)&&h.merchantName?(l={},null!=(p=a.v.merchantInfo)&&p.merchantId&&(l.merchantId=a.v.merchantInfo.merchantId),null!=(v=a.v.merchantInfo)&&v.merchantName&&(l.merchantName=a.v.merchantInfo.merchantName),l):null};W.prototype.isReadyToPay=function(a){var l=this;if(a){var h={};this.v.environment&&(h.environment=this.v.environment),this.v.merchantInfo&&(h.merchantInfo=this.v.merchantInfo),this.v.i&&(h.i=this.v.i),a=U(Object,"assign").call(Object,{},h,a),this.Ob=a.merchantInfo&&a.merchantInfo.merchantId?a.merchantInfo.merchantId:""}var p=Date.now(),v=[].concat(et(this.l.s));Be({eventType:12,clientLatencyStartMs:p,buyFlowActivityReason:v,softwareInfo:Nt(this),isReadyToPayRequest:a});var b=ts()||function Jb(a){if(!a)return"isReadyToPayRequest must be set!";if(!(a.apiVersion<2)&&a.allowedPaymentMethods&&Cc(a,"UPI"))return"UPI not supported";if(a.apiVersion>=2){if(!("apiVersionMinor"in a))return"apiVersionMinor must be set!";if(!a.allowedPaymentMethods||!Array.isArray(a.allowedPaymentMethods)||0==a.allowedPaymentMethods.length)return"for v2 allowedPaymentMethods must be set to an array containing a list of accepted payment methods";for(var l=0;l<a.allowedPaymentMethods.length;l++){var h=a.allowedPaymentMethods[l];if("CARD"==h.type){if(!h.parameters)return"Field parameters must be setup in each allowedPaymentMethod";var p=h.parameters.allowedCardNetworks;if(!p||!Array.isArray(p)||0==p.length)return"allowedCardNetworks must be setup in parameters for type CARD";if(!(h=h.parameters.allowedAuthMethods)||!Array.isArray(h)||0==h.length||!h.every(tw))return"allowedAuthMethods must be setup in parameters for type 'CARD' and must contain 'CRYPTOGRAM_3DS' and/or 'PAN_ONLY'"}}}else if(!a.allowedPaymentMethods||!Array.isArray(a.allowedPaymentMethods)||0==a.allowedPaymentMethods.length||!a.allowedPaymentMethods.every(ew))return"allowedPaymentMethods must be set to an array containing 'CARD' and/or 'TOKENIZED_CARD'!";return null}(a);if(b)return new z.Promise(function(O,X){Zn({M:"isReadyToPay",errorMessage:b}),Be({eventType:0,buyFlowActivityReason:v,error:2,errorMessage:b,softwareInfo:Nt(l),merchantInfo:Ut(l)}),X({statusCode:"DEVELOPER_ERROR",statusMessage:b})});var w=[].concat(et(this.l.s)),E=Se(this,a,w);if(a.activityModeRequired){var V=null;return as.then(function(O){return V=O,E},function(){return V=!1,E}).then(function(O){return V||(w.push(40),5===l.l.mode&&(l.l.mode=2)),O.activityMode=l.l.mode,mf(l,p,O,w,a),google.payments.api.EnableImprovedIsrtpLogging?Cg(O):O}).catch(function(O){throw Ma(l,O,w,a),O})}return E.then(function(O){return mf(l,p,O,w,a),google.payments.api.EnableImprovedIsrtpLogging?Cg(O):O}).catch(function(O){throw Ma(l,O,w,a),O})};var Cg=function(a){return a.hasOwnProperty("notReadyToPayFactors")&&delete(a=U(Object,"assign").call(Object,{},a)).notReadyToPayFactors,a},mf=function(a,l,h,p,v){Be({eventType:0,clientLatencyStartMs:l,isReadyToPayApiResponse:h,buyFlowActivityReason:p,softwareInfo:Nt(a),merchantInfo:Ut(a),isReadyToPayRequest:v})},Ma=function(a,l,h,p){l=l.statusCode?"INTERNAL_ERROR"==(l=l.statusCode)?1:"DEVELOPER_ERROR"==l?2:"MERCHANT_ACCOUNT_ERROR"==l?4:"UNSUPPORTED_API_VERSION"==l?5:"BUYER_CANCEL"==l?6:0:1,Be({eventType:0,buyFlowActivityReason:h,error:l,softwareInfo:Nt(a),merchantInfo:Ut(a),isReadyToPayRequest:p})},Se=function(a,l,h){var p=4===a.l.mode&&!di(l);if(es(l)&&!p&&(!(l=nn(l)).allowedPaymentMethods||0===l.allowedPaymentMethods.length))return google.payments.api.EnableImprovedIsrtpLogging?ss(l,[13]):ss(l,[]);if(p){if(l.apiVersion>=2)return kc(a,l,h);var v=a.T.isReadyToPay(l);return p=a.na.isReadyToPay(l),tf(l)&&!a.l.ua?(h.push(6),p):(h.push(7),p.then(function(){return v}))}return a.T.isReadyToPay(l)},kc=function(a,l,h){var p=ss(l,[]);google.payments.api.EnableImprovedIsrtpLogging&&(p=ss(l,[14]));var v=p;if(wc(l,"CRYPTOGRAM_3DS")||es(l)){v=JSON.parse(JSON.stringify(l));for(var b=0;b<v.allowedPaymentMethods.length;b++)"CARD"==v.allowedPaymentMethods[b].type&&(v.allowedPaymentMethods[b].parameters.allowedAuthMethods=["CRYPTOGRAM_3DS"]);h.push(8),v=a.na.isReadyToPay(v)}var w=p;return wc(l,"PAN_ONLY")&&(h.push(9),h=es(l)?nn(l):l,w=a.T.isReadyToPay(h)),v.then(function(E){return 1==(E&&E.result)||google.payments.api.EnableImprovedIsrtpLogging&&E&&0==E.result&&!wc(l,"PAN_ONLY")?E:w})},ss=function(a,l){var h={result:!1};return a.existingPaymentMethodRequired&&(h.paymentMethodPresent=!1),google.payments.api.EnableImprovedIsrtpLogging&&l&&l.length>0&&(h.notReadyToPayFactors=l),z.Promise.resolve(h)},nn=function(a){var l=U(Object,"assign").call(Object,{},a);return l.allowedPaymentMethods=a.allowedPaymentMethods.filter(function(h){return"EWALLET"!=h.type}),l},Nc=function(a){var l=U(Object,"assign").call(Object,{},a);return l.allowedPaymentMethods=a.allowedPaymentMethods.filter(function(h){return"EWALLET"!=h.type}),l};(F=W.prototype).prefetchPaymentData=function(a){var l=ts()||nf(a);l?Zn({M:"prefetchPaymentData",errorMessage:l}):(this.xa(a),this.l.Sa&&!di(a)?this.na.prefetchPaymentData(a):this.T.prefetchPaymentData(a))},F.notifyAvailableOffers=function(){},F.loadPaymentData=function(a){var l=this,h=[].concat(et(this.l.s)),p=Date.now(),v=function(){var O={eventType:5,buyFlowActivityReason:h.length?h:[99],softwareInfo:Nt(l),merchantInfo:Ut(l),buttonInfo:l.B};google.payments.api.EnableCreateButtonApiOnClickLogging&&(O.clientLatencyStartMs=p),Be(O)},b=ts()||nf(a);if(this.I=a&&a.swg?6:5,kr=this.l.mode,b)this.qa(new z.Promise(function(O,X){Be({eventType:1,error:2,buyFlowMode:l.I,softwareInfo:Nt(l),merchantInfo:Ut(l),buttonInfo:l.B}),Zn({M:"loadPaymentData",errorMessage:b}),X({statusCode:"DEVELOPER_ERROR",statusMessage:b})})),v();else{if(this.A||a.callbackIntents){var w=cg(a,this.A);if(w)return this.qa(new z.Promise(function(O,X){Be({eventType:1,error:2,buyFlowMode:l.I,softwareInfo:Nt(l),merchantInfo:Ut(l),buttonInfo:l.B}),Zn({M:"loadPaymentData",errorMessage:w}),X({statusCode:"DEVELOPER_ERROR",statusMessage:w})})),void v()}this.vb=Date.now();var E=Pa(this.l,a,h),V=5===E||4===E?this.na:this.T;if(E!==this.l.mode&&(kr=E),this.xa(a),v(),es(a)&&(4!=this.l.mode||di(a))&&(!(a=Nc(a)).allowedPaymentMethods||0===a.allowedPaymentMethods.length))return this.qa(new z.Promise(function(O,X){Be({eventType:1,error:2,buyFlowMode:l.I,softwareInfo:Nt(l),merchantInfo:Ut(l),buttonInfo:l.B}),Zn({M:"loadPaymentData",errorMessage:"EWALLET is not supported in this environment."}),X({statusCode:"DEVELOPER_ERROR",statusMessage:"EWALLET is not supported in this environment."})})),void v();V.loadPaymentData(a)}},F.Vb=function(a){var h,p,v,b,w,E,V,l=this;return Bo(function(O){return 1==O.X?(h=[].concat(et(l.l.s)),p=Date.now(),v=function(){var X={eventType:5,buyFlowActivityReason:h.length?h:[99],softwareInfo:Nt(l),merchantInfo:Ut(l),buttonInfo:l.B};google.payments.api.EnableCreateButtonApiOnClickLogging&&(X.clientLatencyStartMs=p),Be(X)},b=ts()||nf(a),l.I=a&&a.swg?6:5,kr=l.l.mode,b?(l.qa(new z.Promise(function(X,Ze){Be({eventType:1,error:2,buyFlowMode:l.I,softwareInfo:Nt(l),merchantInfo:Ut(l),buttonInfo:l.B}),Zn({M:"loadPaymentData",errorMessage:b}),Ze({statusCode:"DEVELOPER_ERROR",statusMessage:b})})),v(),O.return()):(l.A||a.callbackIntents)&&(w=cg(a,l.A))?(l.qa(new z.Promise(function(X,Ze){Be({eventType:1,error:2,buyFlowMode:l.I,softwareInfo:Nt(l),merchantInfo:Ut(l),buttonInfo:l.B}),Zn({M:"loadPaymentData",errorMessage:w}),Ze({statusCode:"DEVELOPER_ERROR",statusMessage:w})})),v(),O.return()):(l.vb=Date.now(),so(O,Eg(l.l,a,h),2))):(V=5===(E=O.Xa)||4===E?l.na:l.T,E!==l.l.mode&&(kr=E),l.xa(a),v(),!es(a)||4==l.l.mode&&!di(a)||(a=Nc(a)).allowedPaymentMethods&&0!==a.allowedPaymentMethods.length?(V.loadPaymentData(a),void(O.X=0)):(l.qa(new z.Promise(function(X,Ze){Be({eventType:1,error:2,buyFlowMode:l.I,softwareInfo:Nt(l),merchantInfo:Ut(l),buttonInfo:l.B}),Zn({M:"loadPaymentData",errorMessage:"EWALLET is not supported in this environment."}),Ze({statusCode:"DEVELOPER_ERROR",statusMessage:"EWALLET is not supported in this environment."})})),v(),O.return()))})},F.createButton=function(a){this.B=function(a){var l=0,h=0;switch(a.buttonType){case"short":l=1;break;case"long":l=2;break;case"plain":l=3;break;case"buy":l=4;break;case"donate":l=5;break;case"book":l=6;break;case"checkout":l=7;break;case"order":l=8;break;case"pay":l=9;break;case"subscribe":l=10}switch(a.buttonSizeMode){case"static":h=1;break;case"fill":h=2}var p=void 0===a.buttonRootNode?0:3;a.buttonRootNode instanceof ShadowRoot?p=1:a.buttonRootNode instanceof HTMLDocument&&(p=2);var v=null;return null!=a.buttonRadius&&null!=a.buttonRadius&&(v=Number(a.buttonRadius)),{buttonType:l,buttonSizeMode:h,buttonRootNode:p,buttonRadius:v}}(a=void 0===a?{}:a);var l=function rg(a,l,h,p,v){if(a=void 0===a?{}:a,l=void 0===l?"":l,h=void 0===h?"":h,v=void 0===v?0:v,(x=U(Object,"values").call(Object,Oi),U(x,"includes")).call(x,a.buttonType)||(a.buttonType="long"),(x=U(Object,"values").call(Object,Dd),U(x,"includes")).call(x,a.buttonSizeMode)||(a.buttonSizeMode="static"),(x=U(Object,"values").call(Object,ia),U(x,"includes")).call(x,a.buttonColor)||(a.buttonColor="black"),void 0!==a.allowedPaymentMethods&&!Array.isArray(a.allowedPaymentMethods)&&"object"==typeof a.allowedPaymentMethods&&null!==a.allowedPaymentMethods&&a.allowedPaymentMethods.hasOwnProperty("type")&&a.allowedPaymentMethods.hasOwnProperty("parameters")&&(a.allowedPaymentMethods=[a.allowedPaymentMethods]),function Xb(a,l){l=l&&U(Ko,"includes").call(Ko,oi(l));var h=U(ga,"includes").call(ga,oi(Or)),p=U(tg,"includes").call(tg,oi(Or));return(google.payments.api.EnableDynamicGpayButtonForTesting||google.payments.api.EnableDynamicGpayButton||h)&&!l&&!p&&("long"===a.buttonType||"buy"===a.buttonType||google.payments.api.EnableDynamicGpayButtonForPayButton&&"pay"===a.buttonType||google.payments.api.EnableDynamicGpayButtonForPlainButton&&"plain"===a.buttonType)}(a,l)&&(p?.({eventType:13,isAnonymousUser:google.payments.api.IsAnonymousUser}),function Kb(a,l,h,p){if(void 0!==p)if(U(Gd,"includes").call(Gd,oi(a)))p.buttonVariant=1;else{var v=6===(a=Xo())||7===a,b=U(Ud,"includes").call(Ud,oi(Or))&&"en"===h,w=U(mc,"includes").call(mc,oi(Or))||function Zd(){if(!pc)return!1;var a=U(Array,"from").call(Array,Array.prototype.slice.call(pc));if(!a||0===a.length)return!1;for(var l=(a=Te(a)).next();!l.done;l=a.next()){l=l.value;try{var h=oi(new URL(l).hostname);if(U(mc,"includes").call(mc,h))return!0}catch{}}return!1}();if(google.payments.api.EnableRlmiaButtonAnimation&&w)p.buttonVariant=9;else if(google.payments.api.EnableRlmiaSmallerText&&w)p.buttonVariant=10;else{if(w=google.payments.api.EnableOlympicsButtonAnimation,(!v||!b)&&(google.payments.api.LogOlympicsButtonAnimation&&(p.olympicsAnimationConditionsMet=!0),w))return void(p.buttonVariant=8);if(2===a){if("pt"===h&&void 0!==l)for(h=(l=Te(l)).next();!h.done;h=l.next())if("CARD"===(a=h.value).type)for(h=void 0,a=null==(h=a.parameters)?void 0:h.allowedCardNetworks,a=(h=Te(a)).next();!a.done;a=h.next())if(U(Sd,"includes").call(Sd,a.value))return void(p.buttonVariant=2);p.buttonVariant=1}else p.buttonVariant=v&&!b?1:a}}}(l,a.allowedPaymentMethods||[],ji(a.buttonLocale)||"",a),!google.payments.api.ForceDisableDynamicGpayButton&&1!=google.payments.api.ButtonTypePolicyInPayjs))return function ig(a,l,h,p){p=void 0===p?0:p,U(hc,"includes").call(hc,a.buttonRootNode||document)||(Rn("\n .gpay-card-info-container {\n padding: 0;\n position: relative;\n min-width: 240px;\n height: 40px;\n min-height: 40px;\n border-radius: 4px;\n box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 1px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;\n cursor: pointer;\n border: 0px;\n }\n\n .gpay-card-info-container.black,\n .gpay-card-info-animation-container.black {\n background-color: #000;\n box-shadow: none;\n }\n\n .gpay-card-info-container.white,\n .gpay-card-info-animation-container.white {\n background-color: #fff;\n }\n\n .gpay-card-info-container.black.border-inset,\n .gpay-card-info-animation-container.black.border-inset {\n outline: 1px solid #757575;\n outline-offset: -1px;\n }\n\n .gpay-card-info-container.white.border-inset,\n .gpay-card-info-animation-container.white.border-inset {\n outline: 1px solid #3C4043;\n outline-offset: -1px;\n }\n\n .gpay-card-info-container.black.active {\n background-color: #5f6368;\n }\n\n .gpay-card-info-container.black.hover,\n .gpay-card-info-animation-container.black.hover {\n background-color: #3c4043;\n }\n\n .gpay-card-info-container.white.active {\n background-color: #fff;\n }\n\n .gpay-card-info-container.white.focus {\n box-shadow: #e8e8e8 0 1px 1px 0, #e8e8e8 0 1px 3px;\n }\n\n .gpay-card-info-container.white.hover,\n .gpay-card-info-animation-container.white.hover {\n background-color: #f8f8f8;\n }\n\n .gpay-card-info-iframe {\n border: 0;\n display: block;\n height: 100%;\n margin: auto;\n max-width: 100%;\n width: 240px;\n }\n\n .gpay-card-info-container-fill .gpay-card-info-iframe{\n position: absolute;\n top: 0;\n height: 100%;\n width: 100%;\n }\n\n .gpay-card-info-container-fill,\n .gpay-card-info-container-fill > .gpay-card-info-container{\n width: 100%;\n height: inherit;\n }\n\n\n .gpay-card-info-container-fill .gpay-card-info-placeholder-container {\n align-items: center;\n justify-content: center;\n width: 100%;\n padding-top: 3px;\n box-sizing: border-box;\n overflow: hidden;\n }\n\n .gpay-card-info-container-fill .gpay-card-info-placeholder-svg-container{\n position: relative;\n width: 60%;\n height: inherit;\n max-height: 80%;\n margin-right: -20%;\n }\n\n .gpay-card-info-container-fill .gpay-card-info-placeholder-svg-container > svg {\n position: absolute;\n left: 0;\n height: 100%;\n max-width: 100%;\n }\n",a.buttonRootNode),Rn('\n .gpay-card-info-animation-container {\n display: flex;\n width:100%;\n position: absolute;\n z-index: 100;\n height: 40px;\n border-radius: 4px;\n }\n\n .gpay-card-info-placeholder-container {\n display: flex;\n width: 100%;\n height: 100%;\n margin: auto;\n justify-content: center;\n }\n\n .gpay-card-info-animated-progress-bar-container {\n display: flex;\n box-sizing: border-box;\n position: absolute;\n width: 100%;\n }\n\n .gpay-card-info-animated-progress-bar-container.border-inset {\n z-index: -1;\n }\n\n .gpay-card-info-animated-progress-bar {\n border-radius: 4px 4px 0px 0px;\n animation-duration: 0.5s;\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-name: gpayProgressFill;\n animation-timing-function: cubic-bezier(0.97, 0.33, 1, 1);\n background: #caccce;\n width: 100%;\n height: 3px;\n max-height: 3px;\n }\n\n .gpay-card-info-animated-progress-bar-indicator {\n border-radius: 4px 4px 0px 0px;\n max-width: 20px;\n min-width: 20px;\n height: 3px;\n max-height: 3px;\n background: linear-gradient(to right, #caccce 30%, #acaeaf 60%);\n animation-delay: 0.5s;\n animation-duration: 1.7s;\n animation-fill-mode: forwards;\n animation-iteration-count: infinite;\n animation-name: gpayPlaceHolderShimmer;\n }\n\n .gpay-card-info-animated-progress-bar.no-radius {\n border-radius: 0;\n }\n\n .gpay-card-info-animated-progress-bar-indicator.no-radius {\n border-radius: 0;\n }\n\n .gpay-card-info-iframe-fade-in {\n animation-fill-mode: forwards;\n animation-duration: 0.6s;\n animation-name: gpayIframeFadeIn;\n }\n\n .gpay-card-info-animation-container-fade-out {\n animation-fill-mode: forwards;\n animation-duration: 0.6s;\n animation-name: gpayPlaceHolderFadeOut;\n }\n\n .gpay-card-info-animation-gpay-logo {\n margin: 13px 7px 0px 39px;\n background-origin: content-box;\n background-position: center center;\n background-repeat: no-repeat;\n background-size: contain;\n height: 17px;\n max-height: 17px;\n max-width: 41px;\n min-width: 41px;\n }\n\n .gpay-card-info-animation-gpay-logo.black {\n background-image: url("https://www.gstatic.com/instantbuy/svg/dark_gpay.svg");\n }\n\n .gpay-card-info-animation-gpay-logo.white {\n background-image: url("https://www.gstatic.com/instantbuy/svg/light_gpay.svg");\n }\n\n @keyframes gpayPlaceHolderShimmer{\n 0% {\n margin-left: 0px;\n }\n 100% {\n margin-left: calc(100% - 20px);\n }\n }\n\n @keyframes gpayIframeFadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n }\n\n @keyframes gpayPlaceHolderFadeOut {\n from {\n opacity: 1;\n }\n\n to {\n opacity: 0;\n }\n }\n\n @keyframes gpayProgressFill {\n from {\n width: 0;\n }\n to {\n width: 100%;\n }\n }\n\n .gpay-card-info-container-fill .gpay-card-info-animation-container{\n top: 0;\n width: 100%;\n height: 100%;\n }\n\n .gpay-card-info-container-fill .gpay-card-info-animation-gpay-logo{\n background-position: right;\n margin: 0 0 0 0;\n max-width: none;\n width: 25%;\n height:inherit;\n max-height: 50%;\n }\n\n',a.buttonRootNode),google.payments.api.EnableGpayButtonDynamicRadius&&Rn("\n .gpay-card-info-container.black,\n .gpay-button.black {\n outline: 1px solid #757575;\n box-shadow: none;\n }\n .gpay-card-info-container.black.focus,\n .gpay-button.black.focus {\n outline: 1px auto Highlight;\n outline: 1px auto -webkit-focus-ring-color;\n box-shadow: none;\n }\n .gpay-card-info-container.white,\n .gpay-button.white {\n outline: 1px solid #3C4043;\n box-shadow: none;\n }\n .gpay-card-info-container.white.focus,\n .gpay-button.white.focus {\n outline: 1px auto Highlight;\n outline: 1px auto -webkit-focus-ring-color;\n box-shadow: none;\n }\n",a.buttonRootNode||document),5===Xo()&&Rn("\n .gpay-card-info-container,\n .gpay-button {\n overflow: hidden;\n }\n",a.buttonRootNode||document),hc.push(a.buttonRootNode||document));var v=Wd(a),b=document.createElement("button");zd(b,a),0!==a.buttonVariant&&function og(a,l){var h=ji(l.buttonLocale,!0);7===l.buttonVariant?a.setAttribute("aria-label",oa.GPAY_BUTTON_VARIANT_TYPE_BNPL_CARD[h]):6===l.buttonVariant?a.setAttribute("aria-label",oa.GPAY_BUTTON_VARIANT_TYPE_BNPL_ONLY[h]):8===l.buttonVariant?("buy"!==(l=l.buttonType)&&"pay"!==l&&"plain"!==l&&(l="buy"),h in(l=oa.GPAY_BUTTON_VARIANT_TYPE_OLYMPICS[l])||(h="en"),a.setAttribute("aria-label",l[h])):9===l.buttonVariant&&(h in(l=oa.GPAY_BUTTON_VARIANT_TYPE_RLMIA)||(h="en"),a.setAttribute("aria-label",l[h]))}(b,a),v=(-1658203989===oi(Or)?"gpay-button":"")+" gpay-card-info-container "+v,b.setAttribute("id","gpay-button-online-api-id"),b.setAttribute("class",v),qd([b],a),google.payments.api.EnableButtonBorderInset&&b.classList.add("border-inset");var w=document.createElement("div");w.setAttribute("class",Qo(a)?"gpay-card-info-animation-container white":"gpay-card-info-animation-container black"),google.payments.api.EnableButtonBorderInset&&w.classList.add("border-inset"),(v=document.createElement("div")).setAttribute("class","gpay-card-info-placeholder-container");var E=document.createElement("div");E.setAttribute("class",Qo(a)?"gpay-card-info-animation-gpay-logo white":"gpay-card-info-animation-gpay-logo black");var V=rc(Qo(a)?Om:Xu),O=document.createElement("div");O.setAttribute("class","gpay-card-info-animated-progress-bar-container"),google.payments.api.EnableButtonBorderInset&&O.classList.add("border-inset");var X=document.createElement("div");X.setAttribute("class","gpay-card-info-animated-progress-bar"),google.payments.api.EnableGpayButtonDynamicRadius&&X.classList.add("no-radius");var Ze=document.createElement("div");Ze.setAttribute("class","gpay-card-info-animated-progress-bar-indicator"),google.payments.api.EnableGpayButtonDynamicRadius&&Ze.classList.add("no-radius"),X.appendChild(Ze),v.appendChild(E),"fill"!==a.buttonSizeMode||(E=rc(Qo(a)?Fi:sa),(V=document.createElement("div")).appendChild(E),V.setAttribute("class","gpay-card-info-placeholder-svg-container")),v.appendChild(V),O.appendChild(X),w.appendChild(v),w.appendChild(O),gc(w),b.appendChild(w);var mt=document.createElement("iframe");mt.setAttribute("class","gpay-card-info-iframe"),mt.setAttribute("scrolling","no");e:if("TEST"==l&&null!=ya&&""!=ya)l=ya+"/gp/p/generate_gpay_btn_img";else{if("SANDBOX"===l){l="https://pay.sandbox.google.com/gp/p/generate_gpay_btn_img";break e}l="https://pay.google.com/gp/p/generate_gpay_btn_img"}return l=new fr(l),Li(l,"buttonColor",a.buttonColor),Li(l,"browserLocale",ji(a.buttonLocale)),Li(l,"hl",ji(a.buttonLocale)),Li(l,"buttonSizeMode",a.buttonSizeMode),Array.isArray(a.allowedPaymentMethods)&&a.allowedPaymentMethods.length>0&&Li(l,"allowedPaymentMethods",JSON.stringify(a.allowedPaymentMethods)),Li(l,"gpayButtonVariantType",a.buttonVariant),Li(l,"gpayButtonType",a.buttonType),mt.src=l.toString(),mt.onload=function(){mt.classList.add("gpay-card-info-iframe-fade-in"),w.classList.add("gpay-card-info-animation-container-fade-out"),google.payments.api.EnableFastPayFeatureDemo&&b.click()},a.onClick&&(google.payments.api.EnableCreateButtonApiOnClickLogging?b.addEventListener("click",function(){var $t=Ho.apply(0,arguments);h?.({eventType:21,clientLatencyStartMs:Date.now()}),google.payments.api.EnableLoadingScreenForPopupMode&&Yd(p),a.onClick.apply(a,et($t))}):b.addEventListener("click",a.onClick)),gc(b),b.appendChild(mt),l=document.createElement("div"),"fill"===a.buttonSizeMode&&l.setAttribute("class","gpay-card-info-container-fill"),l.appendChild(b),l}(a,h,p,v);!function yc(a){var l=ji(a.buttonLocale,!0),h=a.buttonRootNode||document;U(Yo,"includes").call(Yo,h)||(Rn("\n.gpay-button {\n background-origin: content-box;\n background-position: center center;\n background-repeat: no-repeat;\n background-size: contain;\n border: 0px;\n border-radius: 4px;\n box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 1px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;\n cursor: pointer;\n height: 40px;\n min-height: 40px;\n padding: 12px 24px 10px;\n width: 240px;\n}\n\n.gpay-button.black {\n background-color: #000;\n box-shadow: none;\n}\n\n.gpay-button.white {\n background-color: #fff;\n}\n\n.gpay-button.black.border-inset,\n.gpay-button.black.border-inset {\n outline: 1px solid #757575;\n outline-offset: -1px;\n}\n\n.gpay-button.white.border-inset,\n.gpay-button.white.border-inset {\n outline: 1px solid #3C4043;\n outline-offset: -1px;\n}\n\n.gpay-button.short, .gpay-button.plain {\n min-width: 90px;\n width: 160px;\n}\n\n.gpay-button.black.short, .gpay-button.black.plain {\n background-image: url(https://www.gstatic.com/instantbuy/svg/dark_gpay.svg);\n}\n\n.gpay-button.white.short, .gpay-button.white.plain {\n background-image: url(https://www.gstatic.com/instantbuy/svg/light_gpay.svg);\n}\n\n.gpay-button.black.active {\n background-color: #5f6368;\n}\n\n.gpay-button.black.hover {\n background-color: #3c4043;\n}\n\n.gpay-button.white.active {\n background-color: #fff;\n}\n\n.gpay-button.white.focus {\n box-shadow: #e8e8e8 0 1px 1px 0, #e8e8e8 0 1px 3px;\n}\n\n.gpay-button.white.hover {\n background-color: #f8f8f8;\n}\n\n.gpay-button-fill, .gpay-button-fill > .gpay-button.white, .gpay-button-fill > .gpay-button.black {\n width: 100%;\n height: inherit;\n}\n\n.gpay-button-fill > .gpay-button.white,\n .gpay-button-fill > .gpay-button.black {\n padding: 12px 15% 10px;\n}\n\n.gpay-button.donate, .gpay-button.book,\n.gpay-button.checkout,\n.gpay-button.subscribe, .gpay-button.pay,\n.gpay-button.order {\n padding: 9px 24px;\n}\n\n.gpay-button-fill > .gpay-button.donate,\n.gpay-button-fill > .gpay-button.book,\n.gpay-button-fill > .gpay-button.checkout,\n.gpay-button-fill > .gpay-button.order,\n.gpay-button-fill > .gpay-button.pay,\n.gpay-button-fill > .gpay-button.subscribe {\n padding: 9px 15%;\n}\n\n",h),google.payments.api.EnableGpayButtonDynamicRadius&&Rn("\n .gpay-card-info-container.black,\n .gpay-button.black {\n outline: 1px solid #757575;\n box-shadow: none;\n }\n .gpay-card-info-container.black.focus,\n .gpay-button.black.focus {\n outline: 1px auto Highlight;\n outline: 1px auto -webkit-focus-ring-color;\n box-shadow: none;\n }\n .gpay-card-info-container.white,\n .gpay-button.white {\n outline: 1px solid #3C4043;\n box-shadow: none;\n }\n .gpay-card-info-container.white.focus,\n .gpay-button.white.focus {\n outline: 1px auto Highlight;\n outline: 1px auto -webkit-focus-ring-color;\n box-shadow: none;\n }\n",h),5===Xo()&&Rn("\n .gpay-card-info-container,\n .gpay-button {\n overflow: hidden;\n }\n",h),Yo.push(h),ma.push([]));var p=Yo.indexOf(h),v=Qo(a)?"white":"black",b=l+"_"+a.buttonType+"_"+v,w=a.buttonType;if(w&&"short"!=w&&"plain"!=w&&!U(ma[p],"includes").call(ma[p],b)){w="white"===v?"light":"dark";var E="long"===(a=a.buttonType)?co.buy[l]:co[a||"buy"][l];Rn("long"==a||"buy"==a?"\n .gpay-button."+v+".long."+l+", .gpay-button."+v+".buy."+l+" {\n background-image: url(https://www.gstatic.com/instantbuy/svg/"+w+"/"+l+".svg);\n min-width: "+E+"px;\n }":"\n .gpay-button."+v+"."+a+"."+l+" {\n background-image: url(https://www.gstatic.com/instantbuy/svg/"+w+"/"+a+"/"+l+".svg);\n min-width: "+E+"px;\n }\n ",h),ma[p].push(b)}}(a);var b=document.createElement("button");if(zd(b,a),"default"==a.buttonColor&&(a.buttonColor="black"),l=Wd(a),b.setAttribute("class","gpay-button "+l),b.setAttribute("id","gpay-button-online-api-id"),gc(b),qd([b],a),google.payments.api.EnableButtonBorderInset&&b.classList.add("border-inset"),!a.onClick)throw Error("Parameter 'onClick' must be set.");return google.payments.api.EnableCreateButtonApiOnClickLogging?b.addEventListener("click",function(){var w=Ho.apply(0,arguments);p?.({eventType:21,clientLatencyStartMs:Date.now()}),google.payments.api.EnableLoadingScreenForPopupMode&&Yd(v),a.onClick.apply(a,et(w))}):b.addEventListener("click",a.onClick),l=document.createElement("div"),"fill"===a.buttonSizeMode&&l.setAttribute("class","gpay-button-fill"),l.appendChild(b),google.payments.api.EnableFastPayFeatureDemo&&setTimeout(function(){return b.click()},100),l}(a,this.Ob,this.m,function(h){return Be(h)},this.l.mode);return null!=a.buttonVariant&&(this.B.buttonVariant=Number(a.buttonVariant)),null!=a.olympicsAnimationConditionsMet&&(this.B.olympicsAnimationConditionsMet=a.olympicsAnimationConditionsMet),Be({eventType:2,clientLatencyStartMs:Date.now(),buyFlowActivityReason:this.l.s,softwareInfo:Nt(this),merchantInfo:Ut(this),buttonInfo:this.B}),l},F.O=function(){google.payments.api.EnableFocusPaymentSheetApi&&(Be({eventType:34,buyFlowMode:this.I,buyFlowActivityReason:this.l.s,softwareInfo:Nt(this),merchantInfo:Ut(this)}),this.T.O())},F.Yb=function(a){var l=this;(a=a.then(function(h){if(google.payments.api.LogInternally&&console.log("payment data",h),h.error){var p=Error();throw p.statusCode=h.error.statusCode,p.statusMessage=h.error.statusMessage,Zn({M:"loadPaymentData",errorMessage:p.statusMessage}),p}return h})).then(function(h){google.payments.api.LogInternally&&console.log("payment data resolve to ",h),Be({eventType:1,clientLatencyStartMs:l.vb,buyFlowMode:l.I,buyFlowActivityReason:l.l.s,softwareInfo:Nt(l),merchantInfo:Ut(l),buttonInfo:l.B})}).catch(function(h){google.payments.api.LogInternally&&console.log("payment data has error",h),Be(h.errorCode?{eventType:1,error:h.errorCode,buyFlowMode:l.I,buyFlowActivityReason:l.l.s,softwareInfo:Nt(l),merchantInfo:Ut(l),buttonInfo:l.B}:{eventType:1,error:6,buyFlowMode:l.I,buyFlowActivityReason:l.l.s,softwareInfo:Nt(l),merchantInfo:Ut(l),buttonInfo:l.B})}),this.qa(a)},F.xa=function(a){var l={googleTransactionId:Pe,usingPayJs:!0};a.i=a.i?U(Object,"assign").call(Object,l,a.i):l,a.i.firstPartyMerchantIdentifier&&delete a.i.firstPartyMerchantIdentifier,this.v.i&&this.v.i.firstPartyMerchantIdentifier&&(a.i.firstPartyMerchantIdentifier=this.v.i.firstPartyMerchantIdentifier)},W.prototype.focusPaymentSheet=W.prototype.O,W.prototype.createButton=W.prototype.createButton,W.prototype.loadPaymentDataAsync=W.prototype.Vb,W.prototype.loadPaymentData=W.prototype.loadPaymentData,W.prototype.notifyAvailableOffers=W.prototype.notifyAvailableOffers,W.prototype.prefetchPaymentData=W.prototype.prefetchPaymentData,W.prototype.isReadyToPay=W.prototype.isReadyToPay;var as=null,Ia=null,us=function(a,l){l=void 0!==l&&l,this.pb=a,this.s=[],null!=window.navigator.userAgent.match(/Android|iPhone|iPad|iPod|BlackBerry|IEMobile/i)?(this.s.push(37),a=!1):(a=window.navigator.userAgent.match(/Chrome\/([0-9]+)\./i),"PaymentRequest"in window&&null!=a&&Number(a[1])>=70&&"Google Inc."==window.navigator.vendor?(this.s.push(98),this.pb.paymentDataCallbacks&&this.s.push(97),a=!0):(this.s.push(36),a=!1)),this.ua=a,this.Sa=Dg(this),this.mode=2,l?(this.s=[38],this.mode=1):this.Sa&&this.ua?this.mode=5:this.Sa&&(this.mode=4),this.pb.paymentDataCallbacks&&this.s.push(1)},di=function(a){return!0===(a.i&&a.i.disableNative)},Pa=function(a,l,h){return 2===a.mode||1===a.mode?a.mode:di(l)?(h.push(3),2):!Ia&&(a.ua||google.payments.api.UseCanMakePaymentForFallbackOnMobile&&a.Sa)?(h.push(40),2):a.ua&&l.swg?(h.push(5),2):a.mode},Eg=function(a,l,h){return Bo(function(p){return 1==p.X?2===a.mode||1===a.mode?p.return(a.mode):di(l)?(h.push(3),p.return(2)):so(p,Bo(function(a){return 1==a.X?null!=Ia?a.return(Ia):as?(a.ob=2,so(a,as,4)):a.return(!1):2!=a.X?a.return(a.Xa):(a.ob=0,a.wa=null,a.return(!1))}),2):!p.Xa&&(a.ua||google.payments.api.UseCanMakePaymentForFallbackOnMobile&&a.Sa)?(h.push(40),p.return(2)):a.ua&&l.swg?(h.push(5),p.return(2)):p.return(a.mode)})},Dg=function(a){if(!window.PaymentRequest)return a.s.push(41),!1;var l=-1!==window.navigator.userAgent.indexOf("OPT/"),h=-1!==window.navigator.userAgent.indexOf("SamsungBrowser/");return-1!==window.navigator.userAgent.indexOf("OPR/")||l||h?(a.s.push(35),!1):!(!a.ua&&(google.payments.api.EnablePaymentRequest?(l=window.navigator.userAgent.match(/Android/i),h=window.navigator.userAgent.match(/Chrome\/([0-9]+)\./i),null!=l&&"PaymentRequest"in window&&"Google Inc."==window.navigator.vendor&&null!=h&&Number(h[1])>=59?a.pb.paymentDataCallbacks&&(Number(h[1])<92||(a.s.push(96),!google.payments.api.EnableDynamicUpdateForClank&&(a.s.push(42),1))):(a.s.push(34),1)):(a.s.push(3),1)))};Zu("google.payments.api.PaymentsAsyncClient",W),W.prototype.isReadyToPay=W.prototype.isReadyToPay,W.prototype.prefetchPaymentData=W.prototype.prefetchPaymentData,W.prototype.loadPaymentData=W.prototype.loadPaymentData,W.prototype.createButton=W.prototype.createButton,W.prototype.notifyAvailableOffers=W.prototype.notifyAvailableOffers,W.prototype.focusPaymentSheet=W.prototype.O;var Vr=function(){var a=Error.call(this,"This method can only be called one at a time");this.message=a.message,"stack"in a&&(this.stack=a.stack)},Bi=Error;if((Vr.prototype=Ht(Bi.prototype)).constructor=Vr,Ie)Ie(Vr,Bi);else for(var pr in Bi)if("prototype"!=pr)if(Object.defineProperties){var gf=Object.getOwnPropertyDescriptor(Bi,pr);gf&&Object.defineProperty(Vr,pr,gf)}else Vr[pr]=Bi[pr];Vr.Da=Bi.prototype;var Oe=function(a,l){a=void 0===a?{}:a,this.Bc=function Km(a){for(var l=1;l<arguments.length;l++)a=Vd(a,arguments[l]);return a}({},window.gpayMerchantIdFromUrl?{merchantInfo:{merchantId:window.gpayMerchantIdFromUrl}}:{},window.gpayInitParams,a),this.ya=new W(this.Bc,this.Fc.bind(this),l),this.Na=null};(F=Oe.prototype).Fc=function(a){this.Na(a)},F.isReadyToPay=function(a){return this.ya.isReadyToPay(a)},F.prefetchPaymentData=function(a){this.ya.prefetchPaymentData(a)},F.notifyAvailableOffers=function(){},F.loadPaymentData=function(a){var l=this;return new z.Promise(function(h,p){if(l.Na)throw new Vr;l.Na=h,google.payments.api.EnableCanMakePaymentConsistency?l.ya.Vb(a).catch(p):l.ya.loadPaymentData(a)}).then(function(h){return l.Na=null,h},function(h){throw h instanceof Vr||(l.Na=null),h})},F.createButton=function(a){return this.ya.createButton(a=void 0===a?{}:a)},F.O=function(){this.ya.O()},Oe.prototype.createButton=Oe.prototype.createButton,Oe.prototype.loadPaymentData=Oe.prototype.loadPaymentData,Oe.prototype.notifyAvailableOffers=Oe.prototype.notifyAvailableOffers,Oe.prototype.prefetchPaymentData=Oe.prototype.prefetchPaymentData,Oe.prototype.isReadyToPay=Oe.prototype.isReadyToPay,Zu("google.payments.api.PaymentsClient",Oe),Oe.prototype.isReadyToPay=Oe.prototype.isReadyToPay,Oe.prototype.prefetchPaymentData=Oe.prototype.prefetchPaymentData,Oe.prototype.loadPaymentData=Oe.prototype.loadPaymentData,Oe.prototype.createButton=Oe.prototype.createButton,Oe.prototype.notifyAvailableOffers=Oe.prototype.notifyAvailableOffers,Oe.prototype.focusPaymentSheet=Oe.prototype.O;try{as=new PaymentRequest([{supportedMethods:["https://google.com/pay"],data:{apiVersion:2,apiVersionMinor:0,allowedPaymentMethods:[{type:"CARD",parameters:{allowedAuthMethods:["PAN_ONLY","CRYPTOGRAM_3DS"],allowedCardNetworks:["VISA","MASTERCARD"]}}]}}],{total:{label:"Estimated Total Price",amount:{currency:"USD",value:"10"}}}).canMakePayment()}catch{as=z.Promise.resolve(!1)}as.then(function(a){return Ia=a}).catch(function(){return Ia=!1})}.call(this)}},F=>{F(F.s=771)}]);
|
|
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,"&").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,"<").replace(/>/g,">")}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 console.log("Loading Google Pay script..."),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)}]);
|