@motopays/pay-form 2.0.1 → 2.0.3-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/index.js +1 -1
  3. package/package.json +1 -1
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],{204:(nn,Oe,ue)=>{"use strict";function xe(e,n){return Object.is(e,n)}let K=null,Ae=!1,Se=1;const Ye=Symbol("SIGNAL");function ee(e){const n=K;return K=e,n}const yt={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 dn(e){if(Ae)throw new Error("");if(null===K)return;K.consumerOnSignalRead(e);const n=K.nextProducerIndex++;dr(K),n<K.producerNode.length&&K.producerNode[n]!==e&&kn(K)&&zn(K.producerNode[n],K.producerIndexOfThis[n]),K.producerNode[n]!==e&&(K.producerNode[n]=e,K.producerIndexOfThis[n]=kn(K)?bi(e,K,n):0),K.producerLastReadVersion[n]=e.version}function qe(e){if((!kn(e)||e.dirty)&&(e.dirty||e.lastCleanEpoch!==Se)){if(!e.producerMustRecompute(e)&&!sn(e))return e.dirty=!1,void(e.lastCleanEpoch=Se);e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=Se}}function Ve(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 se(){return!1!==K?.consumerAllowSignalWrites}function Te(e){e.dirty=!0,Ve(e),e.consumerMarkedDirty?.(e)}function Ge(e){return e&&(e.nextProducerIndex=0),ee(e)}function It(e,n){if(ee(n),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(kn(e))for(let t=e.nextProducerIndex;t<e.producerNode.length;t++)zn(e.producerNode[t],e.producerIndexOfThis[t]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function sn(e){dr(e);for(let n=0;n<e.producerNode.length;n++){const t=e.producerNode[n],r=e.producerLastReadVersion[n];if(r!==t.version||(qe(t),r!==t.version))return!0}return!1}function bn(e){if(dr(e),kn(e))for(let n=0;n<e.producerNode.length;n++)zn(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 bi(e,n,t){if(de(e),0===e.liveConsumerNode.length&&Ne(e))for(let r=0;r<e.producerNode.length;r++)e.producerIndexOfThis[r]=bi(e.producerNode[r],e,r);return e.liveConsumerIndexOfThis.push(t),e.liveConsumerNode.push(n)-1}function zn(e,n){if(de(e),1===e.liveConsumerNode.length&&Ne(e))for(let r=0;r<e.producerNode.length;r++)zn(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];dr(i),i.producerIndexOfThis[r]=n}}function kn(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function dr(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function de(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Ne(e){return void 0!==e.producerNode}const He=Symbol("UNSET"),Re=Symbol("COMPUTING"),ke=Symbol("ERRORED"),je={...yt,value:He,dirty:!0,error:null,equal:xe,producerMustRecompute:e=>e.value===He||e.value===Re,producerRecomputeValue(e){if(e.value===Re)throw new Error("Detected cycle in computations.");const n=e.value;e.value=Re;const t=Ge(e);let r;try{r=e.computation()}catch(i){r=ke,e.error=i}finally{It(e,t)}n!==He&&n!==ke&&r!==ke&&e.equal(n,r)?e.value=n:(e.value=r,e.version++)}};let _t=function tt(){throw new Error};function Ce(){_t()}let Pn=null;function Zt(e,n){se()||Ce(),e.equal(e.value,n)||(e.value=n,function Er(e){e.version++,function Qe(){Se++}(),Ve(e),Pn?.()}(e))}const Wn={...yt,equal:xe,value:void 0};const Ht=()=>{},fn={...yt,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{null!==e.schedule&&e.schedule(e.ref)},hasRun:!1,cleanupFn:Ht};function nt(e){return"function"==typeof e}function Fr(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 At=Fr(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 Gi(e,n){if(e){const t=e.indexOf(n);0<=t&&e.splice(t,1)}}class at{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(nt(r))try{r()}catch(s){n=s instanceof At?s.errors:[s]}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const s of i)try{xt(s)}catch(o){n=n??[],o instanceof At?n=[...n,...o.errors]:n.push(o)}}if(n)throw new At(n)}}add(n){var t;if(n&&n!==this)if(this.closed)xt(n);else{if(n instanceof at){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)&&Gi(t,n)}remove(n){const{_finalizers:t}=this;t&&Gi(t,n),n instanceof at&&n._removeParent(this)}}at.EMPTY=(()=>{const e=new at;return e.closed=!0,e})();const ri=at.EMPTY;function Ks(e){return e instanceof at||e&&"closed"in e&&nt(e.remove)&&nt(e.add)&&nt(e.unsubscribe)}function xt(e){nt(e)?e():e.unsubscribe()}const Dr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Tt={setTimeout(e,n,...t){const{delegate:r}=Tt;return r?.setTimeout?r.setTimeout(e,n,...t):setTimeout(e,n,...t)},clearTimeout(e){const{delegate:n}=Tt;return(n?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Ro(e){Tt.setTimeout(()=>{const{onUnhandledError:n}=Dr;if(!n)throw e;n(e)})}function Lo(){}const Fo=Vo("C",void 0,void 0);function Vo(e,n,t){return{kind:e,value:n,error:t}}let Sr=null;function Wi(e){if(Dr.useDeprecatedSynchronousErrorHandling){const n=!Sr;if(n&&(Sr={errorThrown:!1,error:null}),e(),n){const{errorThrown:t,error:r}=Sr;if(Sr=null,t)throw r}}else e()}class Ys extends at{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,Ks(n)&&n.add(this)):this.destination=Ir}static create(n,t,r){return new Mr(n,t,r)}next(n){this.isStopped?Ki(function Oa(e){return Vo("N",e,void 0)}(n),this):this._next(n)}error(n){this.isStopped?Ki(function _c(e){return Vo("E",void 0,e)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?Ki(Fo,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 Tr=Function.prototype.bind;function Vr(e,n){return Tr.call(e,n)}class wc{constructor(n){this.partialObserver=n}next(n){const{partialObserver:t}=this;if(t.next)try{t.next(n)}catch(r){Zi(r)}}error(n){const{partialObserver:t}=this;if(t.error)try{t.error(n)}catch(r){Zi(r)}else Zi(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(t){Zi(t)}}}class Mr extends Ys{constructor(n,t,r){let i;if(super(),nt(n)||!n)i={next:n??void 0,error:t??void 0,complete:r??void 0};else{let s;this&&Dr.useDeprecatedNextContext?(s=Object.create(n),s.unsubscribe=()=>this.unsubscribe(),i={next:n.next&&Vr(n.next,s),error:n.error&&Vr(n.error,s),complete:n.complete&&Vr(n.complete,s)}):i=n}this.destination=new wc(i)}}function Zi(e){Dr.useDeprecatedSynchronousErrorHandling?function Ra(e){Dr.useDeprecatedSynchronousErrorHandling&&Sr&&(Sr.errorThrown=!0,Sr.error=e)}(e):Ro(e)}function Ki(e,n){const{onStoppedNotification:t}=Dr;t&&Tt.setTimeout(()=>t(e,n))}const Ir={closed:!0,next:Lo,error:function $o(e){throw e},complete:Lo},Ss="function"==typeof Symbol&&Symbol.observable||"@@observable";function En(e){return e}let Mt=(()=>{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 Ci(e){return e&&e instanceof Ys||function Je(e){return e&&nt(e.next)&&nt(e.error)&&nt(e.complete)}(e)&&Ks(e)}(t)?t:new Mr(t,r,i);return Wi(()=>{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=Rt(r))((i,s)=>{const o=new Mr({next:a=>{try{t(a)}catch(l){s(l),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)}[Ss](){return this}pipe(...t){return function Yi(e){return 0===e.length?En:1===e.length?e[0]:function(t){return e.reduce((r,i)=>i(r),t)}}(t)(this)}toPromise(t){return new(t=Rt(t))((r,i)=>{let s;this.subscribe(o=>s=o,o=>i(o),()=>r(s))})}}return e.create=n=>new e(n),e})();function Rt(e){var n;return null!==(n=e??Dr.Promise)&&void 0!==n?n:Promise}const bc=Fr(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let pn=(()=>{class e extends Mt{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const r=new Zn(this,this);return r.operator=t,r}_throwIfClosed(){if(this.closed)throw new bc}next(t){Wi(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(t)}})}error(t){Wi(()=>{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(){Wi(()=>{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?ri:(this.currentObservers=null,s.push(t),new at(()=>{this.currentObservers=null,Gi(s,t)}))}_checkFinalizedStatuses(t){const{hasError:r,thrownError:i,isStopped:s}=this;r?t.error(i):s&&t.complete()}asObservable(){const t=new Mt;return t.source=this,t}}return e.create=(n,t)=>new Zn(n,t),e})();class Zn extends pn{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:ri}}class Qi extends pn{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 qn(e){return n=>{if(function La(e){return nt(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 Dn(e,n,t,r,i){return new $r(e,n,t,r,i)}class $r extends Ys{constructor(n,t,r,i,s,o){super(n),this.onFinalize=s,this.shouldUnsubscribe=o,this._next=t?function(a){try{t(a)}catch(l){n.error(l)}}:super._next,this._error=i?function(a){try{i(a)}catch(l){n.error(l)}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 gn(e,n){return qn((t,r)=>{let i=0;t.subscribe(Dn(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 Pv="https://g.co/ng/security#xss";class k extends Error{constructor(n,t){super(function Ka(e,n){return`NG0${Math.abs(e)}${n?": "+n:""}`}(n,t)),this.code=n}}function Ns(e){return{toString:e}.toString()}const Ut=globalThis;function wt(e){for(let n in e)if(e[n]===wt)return n;throw Error("Could not find renamed property on target object.")}function u6(e,n){for(const t in n)n.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=n[t])}function Rn(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Rn).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 tg(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n}const d6=wt({__forward_ref__:wt});function bt(e){return e.__forward_ref__=bt,e.toString=function(){return Rn(this())},e}function ye(e){return Dd(e)?e():e}function Dd(e){return"function"==typeof e&&e.hasOwnProperty(d6)&&e.__forward_ref__===bt}function te(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Ln(e){return{providers:e.providers||[],imports:e.imports||[]}}function Sd(e){return Fv(e,Md)||Fv(e,Vv)}function Fv(e,n){return e.hasOwnProperty(n)?e[n]:null}function Td(e){return e&&(e.hasOwnProperty(ng)||e.hasOwnProperty(m6))?e[ng]:null}const Md=wt({\u0275prov:wt}),ng=wt({\u0275inj:wt}),Vv=wt({ngInjectableDef:wt}),m6=wt({ngInjectorDef:wt});class Z{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=te({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function ag(e){return e&&!!e.\u0275providers}const Ic=wt({\u0275cmp:wt}),lg=wt({\u0275dir:wt}),cg=wt({\u0275pipe:wt}),Bv=wt({\u0275mod:wt}),ks=wt({\u0275fac:wt}),Ac=wt({__NG_ELEMENT_ID__:wt}),jv=wt({__NG_ENV_ID__:wt});function Me(e){return"string"==typeof e?e:null==e?"":String(e)}function ug(e,n){throw new k(-201,!1)}var Ze=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}(Ze||{});let dg;function Hv(){return dg}function xr(e){const n=dg;return dg=e,n}function Uv(e,n,t){const r=Sd(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:t&Ze.Optional?null:void 0!==n?n:void ug()}const xc={},hg="__NG_DI_FLAG__",Id="ngTempTokenPath",C6=/\n/gm,zv="__source";let el;function ho(e){const n=el;return el=e,n}function S6(e,n=Ze.Default){if(void 0===el)throw new k(-203,!1);return null===el?Uv(e,void 0,n):el.get(e,n&Ze.Optional?null:void 0,n)}function X(e,n=Ze.Default){return(Hv()||S6)(ye(e),n)}function q(e,n=Ze.Default){return X(e,Ad(n))}function Ad(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function fg(e){const n=[];for(let t=0;t<e.length;t++){const r=ye(e[t]);if(Array.isArray(r)){if(0===r.length)throw new k(900,!1);let i,s=Ze.Default;for(let o=0;o<r.length;o++){const a=r[o],l=T6(a);"number"==typeof l?-1===l?i=a.token:s|=l:i=a}n.push(X(i,s))}else n.push(X(r))}return n}function T6(e){return e[hg]}function Zo(e,n){return e.hasOwnProperty(ks)?e[ks]:null}function tl(e,n){e.forEach(t=>Array.isArray(t)?tl(t,n):n(t))}function Gv(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function xd(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function Ur(e,n,t){let r=nl(e,n);return r>=0?e[1|r]=t:(r=~r,function Wv(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 yg(e,n){const t=nl(e,n);if(t>=0)return e[1|t]}function nl(e,n){return function Zv(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 is={},rt=[],ss=new Z(""),Kv=new Z("",-1),vg=new Z("");class kd{get(n,t=xc){if(t===xc){const r=new Error(`NullInjectorError: No provider for ${Rn(n)}!`);throw r.name="NullInjectorError",r}return t}}var Pd=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(Pd||{}),Ti=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Ti||{}),fo=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(fo||{});function P6(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 _g(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];Qv(s)?e.setProperty(n,s,o):e.setAttribute(n,s,o),r++}}return r}function Yv(e){return 3===e||4===e||6===e}function Qv(e){return 64===e.charCodeAt(0)}function kc(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||Xv(e,t,i,null,-1===t||2===t?n[++r]:null)}}return e}function Xv(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 Jv="ng-template";function O6(e,n,t,r){let i=0;if(r){for(;i<n.length&&"string"==typeof n[i];i+=2)if("class"===n[i]&&-1!==P6(n[i+1].toLowerCase(),t,0))return!0}else if(wg(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 wg(e){return 4===e.type&&e.value!==Jv}function R6(e,n,t){return n===(4!==e.type||t?e.value:Jv)}function L6(e,n,t){let r=4;const i=e.attrs,s=null!==i?function $6(e){for(let n=0;n<e.length;n++)if(Yv(e[n]))return n;return e.length}(i):0;let o=!1;for(let a=0;a<n.length;a++){const l=n[a];if("number"!=typeof l){if(!o)if(4&r){if(r=2|1&r,""!==l&&!R6(e,l,t)||""===l&&1===n.length){if(Mi(r))return!1;o=!0}}else if(8&r){if(null===i||!O6(e,i,l,t)){if(Mi(r))return!1;o=!0}}else{const c=n[++a],u=F6(l,i,wg(e),t);if(-1===u){if(Mi(r))return!1;o=!0;continue}if(""!==c){let d;if(d=u>s?"":i[u+1].toLowerCase(),2&r&&c!==d){if(Mi(r))return!1;o=!0}}}}else{if(!o&&!Mi(r)&&!Mi(l))return!1;if(o&&Mi(l))continue;o=!1,r=l|1&r}}return Mi(r)||o}function Mi(e){return!(1&e)}function F6(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 B6(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 e_(e,n,t=!1){for(let r=0;r<n.length;r++)if(L6(e,n[r],t))return!0;return!1}function j6(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 t_(e,n){return e?":not("+n.trim()+")":n}function H6(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&&!Mi(o)&&(n+=t_(s,i),i=""),r=o,s=s||!Mi(r);t++}return""!==i&&(n+=t_(s,i)),n}function zt(e){return Ns(()=>{const n=r_(e),t={...n,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Pd.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Ti.Emulated,styles:e.styles||rt,_:null,schemas:e.schemas||null,tView:null,id:""};i_(t);const r=e.dependencies;return t.directiveDefs=Od(r,!1),t.pipeDefs=Od(r,!0),t.id=function Z6(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 q6(e){return Be(e)||Fn(e)}function G6(e){return null!==e}function Gn(e){return Ns(()=>({type:e.type,bootstrap:e.bootstrap||rt,declarations:e.declarations||rt,imports:e.imports||rt,exports:e.exports||rt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function n_(e,n){if(null==e)return is;const t={};for(const r in e)if(e.hasOwnProperty(r)){const i=e[r];let s,o,a=fo.None;Array.isArray(i)?(a=i[0],s=i[1],o=i[2]??s):(s=i,o=i),n?(t[s]=a!==fo.None?[r,a]:r,n[s]=o):t[s]=r}return t}function Ee(e){return Ns(()=>{const n=r_(e);return i_(n),n})}function Tn(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 Be(e){return e[Ic]||null}function Fn(e){return e[lg]||null}function Yn(e){return e[cg]||null}function r_(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||is,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||rt,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:n_(e.inputs,n),outputs:n_(e.outputs),debugInfo:null}}function i_(e){e.features?.forEach(n=>n(e))}function Od(e,n){if(!e)return null;const t=n?Yn:q6;return()=>("function"==typeof e?e():e).map(r=>t(r)).filter(G6)}function rl(e){return{\u0275providers:e}}function K6(...e){return{\u0275providers:bg(0,e),\u0275fromNgModule:!0}}function bg(e,...n){const t=[],r=new Set;let i;const s=o=>{t.push(o)};return tl(n,o=>{const a=o;Rd(a,s,[],r)&&(i||=[],i.push(a))}),void 0!==i&&s_(i,s),t}function s_(e,n){for(let t=0;t<e.length;t++){const{ngModule:r,providers:i}=e[t];Cg(i,s=>{n(s,r)})}}function Rd(e,n,t,r){if(!(e=ye(e)))return!1;let i=null,s=Td(e);const o=!s&&Be(e);if(s||o){if(o&&!o.standalone)return!1;i=e}else{const l=e.ngModule;if(s=Td(l),!s)return!1;i=l}const a=r.has(i);if(o){if(a)return!1;if(r.add(i),o.dependencies){const l="function"==typeof o.dependencies?o.dependencies():o.dependencies;for(const c of l)Rd(c,n,t,r)}}else{if(!s)return!1;{if(null!=s.imports&&!a){let c;r.add(i);try{tl(s.imports,u=>{Rd(u,n,t,r)&&(c||=[],c.push(u))})}finally{}void 0!==c&&s_(c,n)}if(!a){const c=Zo(i)||(()=>new i);n({provide:i,useFactory:c,deps:rt},i),n({provide:vg,useValue:i,multi:!0},i),n({provide:ss,useValue:()=>X(i),multi:!0},i)}const l=s.providers;if(null!=l&&!a){const c=e;Cg(l,u=>{n(u,c)})}}}return i!==e&&void 0!==e.providers}function Cg(e,n){for(let t of e)ag(t)&&(t=t.\u0275providers),Array.isArray(t)?Cg(t,n):n(t)}const Y6=wt({provide:String,useValue:wt});function Eg(e){return null!==e&&"object"==typeof e&&Y6 in e}function Yo(e){return"function"==typeof e}const Dg=new Z(""),Ld={},X6={};let Sg;function Fd(){return void 0===Sg&&(Sg=new kd),Sg}class li{}class il extends li{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,Mg(n,o=>this.processProvider(o)),this.records.set(Kv,sl(void 0,this)),i.has("environment")&&this.records.set(li,sl(void 0,this));const s=this.records.get(Dg);null!=s&&"string"==typeof s.value&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(vg,rt,Ze.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const n=ee(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(),ee(n)}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const t=ho(this),r=xr(void 0);try{return n()}finally{ho(t),xr(r)}}get(n,t=xc,r=Ze.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(jv))return n[jv](this);r=Ad(r);const s=ho(this),o=xr(void 0);try{if(!(r&Ze.SkipSelf)){let l=this.records.get(n);if(void 0===l){const c=function rT(e){return"function"==typeof e||"object"==typeof e&&e instanceof Z}(n)&&Sd(n);l=c&&this.injectableDefInScope(c)?sl(Tg(n),Ld):null,this.records.set(n,l)}if(null!=l)return this.hydrate(n,l)}return(r&Ze.Self?Fd():this.parent).get(n,t=r&Ze.Optional&&t===xc?null:t)}catch(a){if("NullInjectorError"===a.name){if((a[Id]=a[Id]||[]).unshift(Rn(n)),s)throw a;return function M6(e,n,t,r){const i=e[Id];throw n[zv]&&i.unshift(n[zv]),e.message=function I6(e,n,t,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let i=Rn(n);if(Array.isArray(n))i=n.map(Rn).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):Rn(a)))}i=`{${s.join(", ")}}`}return`${t}${r?"("+r+")":""}[${i}]: ${e.replace(C6,"\n ")}`}("\n"+e.message,i,t,r),e.ngTokenPath=i,e[Id]=null,e}(a,n,"R3InjectorError",this.source)}throw a}finally{xr(o),ho(s)}}resolveInjectorInitializers(){const n=ee(null),t=ho(this),r=xr(void 0);try{const s=this.get(ss,rt,Ze.Self);for(const o of s)o()}finally{ho(t),xr(r),ee(n)}}toString(){const n=[],t=this.records;for(const r of t.keys())n.push(Rn(r));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new k(205,!1)}processProvider(n){let t=Yo(n=ye(n))?n:ye(n&&n.provide);const r=function eT(e){return Eg(e)?sl(void 0,e.useValue):sl(l_(e),Ld)}(n);if(!Yo(n)&&!0===n.multi){let i=this.records.get(t);i||(i=sl(void 0,Ld,!0),i.factory=()=>fg(i.multi),this.records.set(t,i)),t=n,i.multi.push(n)}this.records.set(t,r)}hydrate(n,t){const r=ee(null);try{return t.value===Ld&&(t.value=X6,t.value=t.factory()),"object"==typeof t.value&&t.value&&function nT(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{ee(r)}}injectableDefInScope(n){if(!n.providedIn)return!1;const t=ye(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 Tg(e){const n=Sd(e),t=null!==n?n.factory:Zo(e);if(null!==t)return t;if(e instanceof Z)throw new k(204,!1);if(e instanceof Function)return function J6(e){if(e.length>0)throw new k(204,!1);const t=function g6(e){return e&&(e[Md]||e[Vv])||null}(e);return null!==t?()=>t.factory(e):()=>new e}(e);throw new k(204,!1)}function l_(e,n,t){let r;if(Yo(e)){const i=ye(e);return Zo(i)||Tg(i)}if(Eg(e))r=()=>ye(e.useValue);else if(function a_(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...fg(e.deps||[]));else if(function o_(e){return!(!e||!e.useExisting)}(e))r=()=>X(ye(e.useExisting));else{const i=ye(e&&(e.useClass||e.provide));if(!function tT(e){return!!e.deps}(e))return Zo(i)||Tg(i);r=()=>new i(...fg(e.deps))}return r}function sl(e,n,t=!1){return{factory:e,value:n,multi:t?[]:void 0}}function Mg(e,n){for(const t of e)Array.isArray(t)?Mg(t,n):t&&ag(t)?Mg(t.\u0275providers,n):n(t)}function c_(){return void 0!==Hv()||null!=function D6(){return el}()}const Xt=0,j=1,le=2,Mn=3,Ii=4,Qn=5,fr=6,al=7,Lt=8,In=9,os=10,ve=11,Oc=12,d_=13,ll=14,Jt=15,Qo=16,cl=17,Ps=18,ul=19,h_=20,po=21,$d=22,ci=23,re=25,xg=1,as=7,dl=9,mn=10;var jd=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(jd||{});function $n(e){return Array.isArray(e)&&"object"==typeof e[xg]}function sr(e){return Array.isArray(e)&&!0===e[xg]}function Ng(e){return!!(4&e.flags)}function Xo(e){return e.componentOffset>-1}function Hd(e){return!(1&~e.flags)}function Ai(e){return!!e.template}function Lc(e){return!!(512&e[le])}class y_{constructor(n,t,r){this.previousValue=n,this.currentValue=t,this.firstChange=r}isFirstChange(){return this.firstChange}}function v_(e,n,t,r){null!==n?n.applyValueToInputSignal(n,r):e[t]=r}function xi(){return __}function __(e){return e.type.prototype.ngOnChanges&&(e.setInput=yT),mT}function mT(){const e=b_(this),n=e?.current;if(n){const t=e.previous;if(t===is)e.previous=n;else for(let r in n)t[r]=n[r];e.current=null,this.ngOnChanges(n)}}function yT(e,n,t,r,i){const s=this.declaredInputs[r],o=b_(e)||function vT(e,n){return e[w_]=n}(e,{previous:is,current:null}),a=o.current||(o.current={}),l=o.previous,c=l[s];a[s]=new y_(c&&c.currentValue,t,l===is),v_(e,n,i,t)}xi.ngInherit=!0;const w_="__ngSimpleChanges__";function b_(e){return e[w_]||null}const ls=function(e,n,t){};function it(e){for(;Array.isArray(e);)e=e[Xt];return e}function Fc(e,n){return it(n[e])}function pr(e,n){return it(n[e.index])}function Vc(e,n){return e.data[n]}function Jo(e,n){return e[n]}function zr(e,n){const t=n[e];return $n(t)?t:t[Xt]}function Lg(e){return!(128&~e[le])}function ui(e,n){return null==n?null:e[n]}function D_(e){e[cl]=0}function S_(e){1024&e[le]||(e[le]|=1024,Lg(e)&&zd(e))}function Ud(e){return!!(9216&e[le]||e[ci]?.dirty)}function Fg(e){e[os].changeDetectionScheduler?.notify(8),64&e[le]&&(e[le]|=1024),Ud(e)&&zd(e)}function zd(e){e[os].changeDetectionScheduler?.notify(0);let n=Os(e);for(;null!==n&&!(8192&n[le])&&(n[le]|=8192,Lg(n));)n=Os(n)}function qd(e,n){if(!(256&~e[le]))throw new k(911,!1);null===e[po]&&(e[po]=[]),e[po].push(n)}function Os(e){const n=e[Mn];return sr(n)?n[Mn]:n}const _e={lFrame:V_(null),bindingsEnabled:!0,skipHydrationRootTNode:null};let M_=!1;function I_(){return _e.bindingsEnabled}function ea(){return null!==_e.skipHydrationRootTNode}function x(){return _e.lFrame.lView}function Le(){return _e.lFrame.tView}function ft(e){return _e.lFrame.contextLView=e,e[Lt]}function pt(e){return _e.lFrame.contextLView=null,e}function Ct(){let e=A_();for(;null!==e&&64===e.type;)e=e.parent;return e}function A_(){return _e.lFrame.currentTNode}function Ni(e,n){const t=_e.lFrame;t.currentTNode=e,t.isParent=n}function Bg(){return _e.lFrame.isParent}function jg(){_e.lFrame.isParent=!1}function x_(){return _e.lFrame.contextLView}function k_(){return M_}function P_(e){M_=e}function gr(){const e=_e.lFrame;let n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}function ki(){return _e.lFrame.bindingIndex++}function Ls(e){const n=_e.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}function kT(e,n){const t=_e.lFrame;t.bindingIndex=t.bindingRootIndex=e,Hg(n)}function Hg(e){_e.lFrame.currentDirectiveIndex=e}function Ug(e){const n=_e.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}function Wd(e){_e.lFrame.currentQueryIndex=e}function OT(e){const n=e[j];return 2===n.type?n.declTNode:1===n.type?e[Qn]:null}function L_(e,n,t){if(t&Ze.SkipSelf){let i=n,s=e;for(;!(i=i.parent,null!==i||t&Ze.Host||(i=OT(s),null===i||(s=s[ll],10&i.type))););if(null===i)return!1;n=i,e=s}const r=_e.lFrame=F_();return r.currentTNode=n,r.lView=e,!0}function qg(e){const n=F_(),t=e[j];_e.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function F_(){const e=_e.lFrame,n=null===e?null:e.child;return null===n?V_(e):n}function V_(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 $_(){const e=_e.lFrame;return _e.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const B_=$_;function Gg(){const e=$_();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 Xn(){return _e.lFrame.selectedIndex}function ta(e){_e.lFrame.selectedIndex=e}function Ft(){const e=_e.lFrame;return Vc(e.tView,e.selectedIndex)}let H_=!0;function Bc(){return H_}function cs(e){H_=e}function Zd(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:l,ngAfterViewChecked:c,ngOnDestroy:u}=s;o&&(e.contentHooks??=[]).push(-t,o),a&&((e.contentHooks??=[]).push(t,a),(e.contentCheckHooks??=[]).push(t,a)),l&&(e.viewHooks??=[]).push(-t,l),c&&((e.viewHooks??=[]).push(t,c),(e.viewCheckHooks??=[]).push(t,c)),null!=u&&(e.destroyHooks??=[]).push(t,u)}}function Kd(e,n,t){U_(e,n,3,t)}function Yd(e,n,t,r){(3&e[le])===t&&U_(e,n,t,r)}function Wg(e,n){let t=e[le];(3&t)===n&&(t&=16383,t+=1,e[le]=t)}function U_(e,n,t,r){const s=r??-1,o=n.length-1;let a=0;for(let l=void 0!==r?65535&e[cl]:0;l<o;l++)if("number"==typeof n[l+1]){if(a=n[l],null!=r&&a>=r)break}else n[l]<0&&(e[cl]+=65536),(a<s||-1==s)&&(jT(e,t,n,l),e[cl]=(4294901760&e[cl])+l+2),l++}function z_(e,n){ls(4,e,n);const t=ee(null);try{n.call(e)}finally{ee(t),ls(5,e,n)}}function jT(e,n,t,r){const i=t[r]<0,s=t[r+1],a=e[i?-t[r]:t[r]];i?e[le]>>14<e[cl]>>16&&(3&e[le])===n&&(e[le]+=16384,z_(a,s)):z_(a,s)}const hl=-1;class jc{constructor(n,t,r){this.factory=n,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=r}}const Kg={};class na{constructor(n,t){this.injector=n,this.parentInjector=t}get(n,t,r){r=Ad(r);const i=this.injector.get(n,Kg,r);return i!==Kg||t===Kg?i:this.parentInjector.get(n,t,r)}}function Yg(e){return e!==hl}function Hc(e){return 32767&e}function Uc(e,n){let t=function qT(e){return e>>16}(e),r=n;for(;t>0;)r=r[ll],t--;return r}let Qg=!0;function Qd(e){const n=Qg;return Qg=e,n}const G_=255,W_=5;let WT=0;const us={};function Xd(e,n){const t=Z_(e,n);if(-1!==t)return t;const r=n[j];r.firstCreatePass&&(e.injectorIndex=n.length,Xg(r.data,e),Xg(n,null),Xg(r.blueprint,null));const i=Jd(e,n),s=e.injectorIndex;if(Yg(i)){const o=Hc(i),a=Uc(i,n),l=a[j].data;for(let c=0;c<8;c++)n[s+c]=a[o+c]|l[o+c]}return n[s+8]=i,s}function Xg(e,n){e.push(0,0,0,0,0,0,0,0,n)}function Z_(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function Jd(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=t2(i),null===r)return hl;if(t++,i=i[ll],-1!==r.injectorIndex)return r.injectorIndex|t<<16}return hl}function Jg(e,n,t){!function ZT(e,n,t){let r;"string"==typeof t?r=t.charCodeAt(0)||0:t.hasOwnProperty(Ac)&&(r=t[Ac]),null==r&&(r=t[Ac]=WT++);const i=r&G_;n.data[e+(i>>W_)]|=1<<i}(e,n,t)}function K_(e,n,t){if(t&Ze.Optional||void 0!==e)return e;ug()}function Y_(e,n,t,r){if(t&Ze.Optional&&void 0===r&&(r=null),!(t&(Ze.Self|Ze.Host))){const i=e[In],s=xr(void 0);try{return i?i.get(n,r,t&Ze.Optional):Uv(n,r,t&Ze.Optional)}finally{xr(s)}}return K_(r,0,t)}function Q_(e,n,t,r=Ze.Default,i){if(null!==e){if(2048&n[le]&&!(r&Ze.Self)){const o=function JT(e,n,t,r,i){let s=e,o=n;for(;null!==s&&null!==o&&2048&o[le]&&!(512&o[le]);){const a=X_(s,o,t,r|Ze.Self,us);if(a!==us)return a;let l=s.parent;if(!l){const c=o[h_];if(c){const u=c.get(t,us,r);if(u!==us)return u}l=t2(o),o=o[ll]}s=l}return i}(e,n,t,r,us);if(o!==us)return o}const s=X_(e,n,t,r,us);if(s!==us)return s}return Y_(n,t,r,i)}function X_(e,n,t,r,i){const s=function QT(e){if("string"==typeof e)return e.charCodeAt(0)||0;const n=e.hasOwnProperty(Ac)?e[Ac]:void 0;return"number"==typeof n?n>=0?n&G_:XT:n}(t);if("function"==typeof s){if(!L_(n,e,r))return r&Ze.Host?K_(i,0,r):Y_(n,t,r,i);try{let o;if(o=s(r),null!=o||r&Ze.Optional)return o;ug()}finally{B_()}}else if("number"==typeof s){let o=null,a=Z_(e,n),l=hl,c=r&Ze.Host?n[Jt][Qn]:null;for((-1===a||r&Ze.SkipSelf)&&(l=-1===a?Jd(e,n):n[a+8],l!==hl&&e2(r,!1)?(o=n[j],a=Hc(l),n=Uc(l,n)):a=-1);-1!==a;){const u=n[j];if(J_(s,a,u.data)){const d=YT(a,n,t,o,r,c);if(d!==us)return d}l=n[a+8],l!==hl&&e2(r,n[j].data[a+8]===c)&&J_(s,a,n)?(o=u,a=Hc(l),n=Uc(l,n)):a=-1}}return i}function YT(e,n,t,r,i,s){const o=n[j],a=o.data[e+8],u=function eh(e,n,t,r,i){const s=e.providerIndexes,o=n.data,a=1048575&s,l=e.directiveStart,u=s>>20,f=i?a+u:e.directiveEnd;for(let h=r?a:a+u;h<f;h++){const g=o[h];if(h<l&&t===g||h>=l&&g.type===t)return h}if(i){const h=o[l];if(h&&Ai(h)&&h.type===t)return l}return null}(a,o,t,null==r?Xo(a)&&Qg:r!=o&&!!(3&a.type),i&Ze.Host&&s===a);return null!==u?ra(n,o,u,a):us}function ra(e,n,t,r){let i=e[t];const s=n.data;if(function HT(e){return e instanceof jc}(i)){const o=i;o.resolving&&function _6(e,n){throw n&&n.join(" > "),new k(-200,e)}(function ht(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Me(e)}(s[t]));const a=Qd(o.canSeeViewProviders);o.resolving=!0;const c=o.injectImpl?xr(o.injectImpl):null;L_(e,r,Ze.Default);try{i=e[t]=o.factory(void 0,s,e,r),n.firstCreatePass&&t>=r.directiveStart&&function BT(e,n,t){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:s}=n.type.prototype;if(r){const o=__(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!==c&&xr(c),Qd(a),o.resolving=!1,B_()}}return i}function J_(e,n,t){return!!(t[n+(e>>W_)]&1<<e)}function e2(e,n){return!(e&Ze.Self||e&Ze.Host&&n)}class Bn{constructor(n,t){this._tNode=n,this._lView=t}get(n,t,r){return Q_(this._tNode,this._lView,n,Ad(r),t)}}function XT(){return new Bn(Ct(),x())}function Jn(e){return Ns(()=>{const n=e.prototype.constructor,t=n[ks]||em(n),r=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){const s=i[ks]||em(i);if(s&&s!==t)return s;i=Object.getPrototypeOf(i)}return s=>new s})}function em(e){return Dd(e)?()=>{const n=em(ye(e));return n&&n()}:Zo(e)}function t2(e){const n=e[j],t=n.type;return 2===t?n.declTNode:1===t?e[Qn]:null}function o2(e,n=null,t=null,r){const i=a2(e,n,t,r);return i.resolveInjectorInitializers(),i}function a2(e,n=null,t=null,r,i=new Set){const s=[t||rt,K6(e)];return r=r||("object"==typeof e?void 0:Rn(e)),new il(s,n||Fd(),r||null,i)}class kt{static#e=this.THROW_IF_NOT_FOUND=xc;static#t=this.NULL=new kd;static create(n,t){if(Array.isArray(n))return o2({name:""},t,n,"");{const r=n.name??"";return o2({name:r},n.parent,n.providers,r)}}static#n=this.\u0275prov=te({token:kt,providedIn:"any",factory:()=>X(Kv)});static#r=this.__NG_ELEMENT_ID__=-1}new Z("").__NG_ELEMENT_ID__=e=>{const n=Ct();if(null===n)throw new k(204,!1);if(2&n.type)return n.value;if(e&Ze.Optional)return null;throw new k(204,!1)};function nm(e){return e.ngOriginalError}const c2=!0;let zc=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=c9;static#t=this.__NG_ENV_ID__=t=>t}return e})();class l9 extends zc{constructor(n){super(),this._lView=n}onDestroy(n){return qd(this._lView,n),()=>function Vg(e,n){if(null===e[po])return;const t=e[po].indexOf(n);-1!==t&&e[po].splice(t,1)}(this._lView,n)}}function c9(){return new l9(x())}let ia=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Qi(!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=te({token:e,providedIn:"root",factory:()=>new e})}return e})();const en=class u9 extends pn{constructor(n=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=n,c_()&&(this.destroyRef=q(zc,{optional:!0})??void 0,this.pendingTasks=q(ia,{optional:!0})??void 0)}emit(n){const t=ee(null);try{super.next(n)}finally{ee(t)}}subscribe(n,t,r){let i=n,s=t||(()=>null),o=r;if(n&&"object"==typeof n){const l=n;i=l.next?.bind(l),s=l.error?.bind(l),o=l.complete?.bind(l)}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 at&&n.add(a),a}wrapInTimeout(n){return t=>{const r=this.pendingTasks?.add();setTimeout(()=>{n(t),void 0!==r&&this.pendingTasks?.remove(r)})}}};function rh(...e){}function u2(e){let n,t;function r(){e=rh;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 d2(e){return queueMicrotask(()=>e()),()=>{e=rh}}const rm="isAngularZone",ih=rm+"_ID";let d9=0;class st{constructor(n){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new en(!1),this.onMicrotaskEmpty=new en(!1),this.onStable=new en(!1),this.onError=new en(!1);const{enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:s=c2}=n;if(typeof Zone>"u")throw new k(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 p9(e){const n=()=>{!function f9(e){function n(){u2(()=>{e.callbackScheduled=!1,sm(e),e.isCheckStableRunning=!0,im(e),e.isCheckStableRunning=!1})}e.isCheckStableRunning||e.callbackScheduled||(e.callbackScheduled=!0,e.scheduleInRootZone?Zone.root.run(()=>{n()}):e._outer.run(()=>{n()}),sm(e))}(e)},t=d9++;e._inner=e._inner.fork({name:"angular",properties:{[rm]:!0,[ih]:t,[ih+t]:!0},onInvokeTask:(r,i,s,o,a,l)=>{if(function g9(e){return p2(e,"__ignore_ng_zone__")}(l))return r.invokeTask(s,o,a,l);try{return h2(e),r.invokeTask(s,o,a,l)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&n(),f2(e)}},onInvoke:(r,i,s,o,a,l,c)=>{try{return h2(e),r.invoke(s,o,a,l,c)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!function m9(e){return p2(e,"__scheduler_tick__")}(l)&&n(),f2(e)}},onHasTask:(r,i,s,o)=>{r.hasTask(s,o),i===s&&("microTask"==o.change?(e._hasPendingMicrotasks=o.microTask,sm(e),im(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(rm)}static assertInAngularZone(){if(!st.isInAngularZone())throw new k(909,!1)}static assertNotInAngularZone(){if(st.isInAngularZone())throw new k(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,h9,rh,rh);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 h9={};function im(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 sm(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&!0===e.callbackScheduled)}function h2(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function f2(e){e._nesting--,im(e)}class om{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new en,this.onMicrotaskEmpty=new en,this.onStable=new en,this.onError=new en}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 p2(e,n){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0]?.data?.[n]}class ds{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&&nm(n);for(;t&&nm(t);)t=nm(t);return t||null}}const v9=new Z("",{providedIn:"root",factory:()=>{const e=q(st),n=q(ds);return t=>e.runOutsideAngular(()=>n.handleError(t))}});function _9(){return gl(Ct(),x())}function gl(e,n){return new qr(pr(e,n))}let qr=(()=>{class e{constructor(t){this.nativeElement=t}static#e=this.__NG_ELEMENT_ID__=_9}return e})();function Gc(e){return!(128&~e.flags)}Symbol;const cm=new Map;let C9=0;function um(e){cm.delete(e[ul])}const sh="__ngContext__";function or(e,n){$n(n)?(e[sh]=n[ul],function D9(e){cm.set(e[ul],e)}(n)):e[sh]=n}function T2(e){return I2(e[Oc])}function M2(e){return I2(e[Ii])}function I2(e){for(;null!==e&&!sr(e);)e=e[Ii];return e}let hm;function go(){if(void 0!==hm)return hm;if(typeof document<"u")return document;throw new k(210,!1)}const yl=new Z("",{providedIn:"root",factory:()=>j9}),j9="ng",L2=new Z(""),mo=new Z("",{providedIn:"platform",factory:()=>"unknown"}),F2=new Z(""),V2=new Z("",{providedIn:"root",factory:()=>go().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let $2=()=>null;function _m(e,n,t=!1){return $2(e,n,t)}const W2=new Z("",{providedIn:"root",factory:()=>!1});let ph,gh;function wl(e){return function Dm(){if(void 0===ph&&(ph=null,Ut.trustedTypes))try{ph=Ut.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return ph}()?.createHTML(e)||e}function Y2(e){return function Sm(){if(void 0===gh&&(gh=null,Ut.trustedTypes))try{gh=Ut.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return gh}()?.createHTML(e)||e}class oa{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Pv})`}}class tM extends oa{getTypeName(){return"HTML"}}class nM extends oa{getTypeName(){return"Style"}}class rM extends oa{getTypeName(){return"Script"}}class iM extends oa{getTypeName(){return"URL"}}class sM extends oa{getTypeName(){return"ResourceURL"}}function Gr(e){return e instanceof oa?e.changingThisBreaksApplicationSecurity:e}function hs(e,n){const t=function oM(e){return e instanceof oa&&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 ${Pv})`)}return t===n}class hM{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n="<body><remove></remove>"+n;try{const t=(new window.DOMParser).parseFromString(wl(n),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(n):(t.firstChild?.remove(),t)}catch{return null}}}class fM{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const t=this.inertDocument.createElement("template");return t.innerHTML=wl(n),t}}const gM=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function mh(e){return(e=String(e)).match(gM)?e:"unsafe:"+e}function Fs(e){const n={};for(const t of e.split(","))n[t]=!0;return n}function Jc(...e){const n={};for(const t of e)for(const r in t)t.hasOwnProperty(r)&&(n[r]=!0);return n}const ew=Fs("area,br,col,hr,img,wbr"),tw=Fs("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),nw=Fs("rp,rt"),Tm=Jc(ew,Jc(tw,Fs("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")),Jc(nw,Fs("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")),Jc(nw,tw)),Mm=Fs("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),rw=Jc(Mm,Fs("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"),Fs("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")),mM=Fs("script,style,template");class yM{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=wM(t);else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let s=_M(t);if(s){t=s;break}t=i.pop()}return this.buf.join("")}startElement(n){const t=iw(n).toLowerCase();if(!Tm.hasOwnProperty(t))return this.sanitizedSomething=!0,!mM.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(!rw.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=s.value;Mm[a]&&(l=mh(l)),this.buf.push(" ",o,'="',ow(l),'"')}return this.buf.push(">"),!0}endElement(n){const t=iw(n).toLowerCase();Tm.hasOwnProperty(t)&&!ew.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(n){this.buf.push(ow(n))}}function _M(e){const n=e.nextSibling;if(n&&e!==n.previousSibling)throw sw(n);return n}function wM(e){const n=e.firstChild;if(n&&function vM(e,n){return(e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(e,n))throw sw(n);return n}function iw(e){const n=e.nodeName;return"string"==typeof n?n:"FORM"}function sw(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}const bM=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,CM=/([^\#-~ |!])/g;function ow(e){return e.replace(/&/g,"&amp;").replace(bM,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(CM,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let yh;function aw(e,n){let t=null;try{yh=yh||function J2(e){const n=new fM(e);return function pM(){try{return!!(new window.DOMParser).parseFromString(wl(""),"text/html")}catch{return!1}}()?new hM(n):n}(e);let r=n?String(n):"";t=yh.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=yh.getInertBodyElement(r)}while(r!==s);return wl((new yM).sanitizeChildren(Im(t)||t))}finally{if(t){const r=Im(t)||t;for(;r.firstChild;)r.firstChild.remove()}}}function Im(e){return"content"in e&&function EM(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Wr=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}(Wr||{});function yo(e){const n=tu();return n?Y2(n.sanitize(Wr.HTML,e)||""):hs(e,"HTML")?Y2(Gr(e)):aw(go(),Me(e))}function eu(e){const n=tu();return n?n.sanitize(Wr.URL,e)||"":hs(e,"URL")?Gr(e):mh(Me(e))}function tu(){const e=x();return e&&e[os].sanitizer}const xM=/^>|^->|<!--|-->|--!>|<!-$/g,NM=/(<|>)/g,kM="\u200b$1\u200b";function fw(e){return e.ownerDocument}var vo=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(vo||{});let Nm;function km(e,n){return Nm(e,n)}function Cl(e,n,t,r,i){if(null!=r){let s,o=!1;sr(r)?s=r:$n(r)&&(o=!0,r=r[Xt]);const a=it(r);0===e&&null!==t?null==i?Cw(n,t,a):aa(n,t,a,i||null,!0):1===e&&null!==t?aa(n,t,a,i||null,!0):2===e?function ru(e,n,t){e.removeChild(null,n,t)}(n,a,o):3===e&&n.destroyNode(a),null!=s&&function QM(e,n,t,r,i){const s=t[as];s!==it(t)&&Cl(n,e,r,s,i);for(let a=mn;a<t.length;a++){const l=t[a];Eh(l[j],l,e,n,r,s)}}(n,e,s,t,i)}}function Om(e,n){return e.createComment(function cw(e){return e.replace(xM,n=>n.replace(NM,kM))}(n))}function wh(e,n,t){return e.createElement(n,t)}function _w(e,n){n[os].changeDetectionScheduler?.notify(9),Eh(e,n,n[ve],2,null,null)}function ww(e,n){const t=e[dl],r=n[Mn];($n(r)||n[Jt]!==r[Mn][Jt])&&(e[le]|=jd.HasTransplantedViews),null===t?e[dl]=[n]:t.push(n)}function Rm(e,n){const t=e[dl],r=t.indexOf(n);t.splice(r,1)}function nu(e,n){if(e.length<=mn)return;const t=mn+n,r=e[t];if(r){const i=r[Qo];null!==i&&i!==e&&Rm(i,r),n>0&&(e[t-1][Ii]=r[Ii]);const s=xd(e,mn+n);!function UM(e,n){_w(e,n),n[Xt]=null,n[Qn]=null}(r[j],r);const o=s[Ps];null!==o&&o.detachView(s[j]),r[Mn]=null,r[Ii]=null,r[le]&=-129}return r}function bh(e,n){if(!(256&n[le])){const t=n[ve];t.destroyNode&&Eh(e,n,t,3,null,null),function qM(e){let n=e[Oc];if(!n)return Lm(e[j],e);for(;n;){let t=null;if($n(n))t=n[Oc];else{const r=n[mn];r&&(t=r)}if(!t){for(;n&&!n[Ii]&&n!==e;)$n(n)&&Lm(n[j],n),n=n[Mn];null===n&&(n=e),$n(n)&&Lm(n[j],n),t=n&&n[Ii]}n=t}}(n)}}function Lm(e,n){if(256&n[le])return;const t=ee(null);try{n[le]&=-129,n[le]|=256,n[ci]&&bn(n[ci]),function ZM(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 jc)){const s=t[r+1];if(Array.isArray(s))for(let o=0;o<s.length;o+=2){const a=i[s[o]],l=s[o+1];ls(4,a,l);try{l.call(a)}finally{ls(5,a,l)}}else{ls(4,i,s);try{s.call(i)}finally{ls(5,i,s)}}}}}(e,n),function WM(e,n){const t=e.cleanup,r=n[al];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[al]=null);const i=n[po];if(null!==i){n[po]=null;for(let s=0;s<i.length;s++)(0,i[s])()}}(e,n),1===n[j].type&&n[ve].destroy();const r=n[Qo];if(null!==r&&sr(n[Mn])){r!==n[Mn]&&Rm(r,n);const i=n[Ps];null!==i&&i.detachView(e)}um(n)}finally{ee(t)}}function Fm(e,n,t){return function bw(e,n,t){let r=n;for(;null!==r&&168&r.type;)r=(n=r).parent;if(null===r)return t[Xt];{const{componentOffset:i}=r;if(i>-1){const{encapsulation:s}=e.data[r.directiveStart+i];if(s===Ti.None||s===Ti.Emulated)return null}return pr(r,t)}}(e,n.parent,t)}function aa(e,n,t,r,i){e.insertBefore(n,t,r,i)}function Cw(e,n,t){e.appendChild(n,t)}function Ew(e,n,t,r,i){null!==r?aa(e,n,t,r,i):Cw(e,n,t)}function Vm(e,n){return e.parentNode(n)}function Dw(e,n,t){return Tw(e,n,t)}let $m,Tw=function Sw(e,n,t){return 40&e.type?pr(e,t):null};function Ch(e,n,t,r){const i=Fm(e,r,n),s=n[ve],a=Dw(r.parent||n[Qn],r,n);if(null!=i)if(Array.isArray(t))for(let l=0;l<t.length;l++)Ew(s,i,t[l],a,!1);else Ew(s,i,t,a,!1);void 0!==$m&&$m(s,r,n,t,i)}function la(e,n){if(null!==n){const t=n.type;if(3&t)return pr(n,e);if(4&t)return Bm(-1,e[n.index]);if(8&t){const r=n.child;if(null!==r)return la(e,r);{const i=e[n.index];return sr(i)?Bm(-1,i):it(i)}}if(128&t)return la(e,n.next);if(32&t)return km(n,e)()||it(e[n.index]);{const r=Iw(e,n);return null!==r?Array.isArray(r)?r[0]:la(Os(e[Jt]),r):la(e,n.next)}}return null}function Iw(e,n){return null!==n?e[Jt][Qn].projection[n.projection]:null}function Bm(e,n){const t=mn+e+1;if(t<n.length){const r=n[t],i=r[j].firstChild;if(null!==i)return la(r,i)}return n[as]}function jm(e,n,t,r,i,s,o){for(;null!=t;){if(128===t.type){t=t.next;continue}const a=r[t.index],l=t.type;if(o&&0===n&&(a&&or(it(a),r),t.flags|=2),32&~t.flags)if(8&l)jm(e,n,t.child,r,i,s,!1),Cl(n,e,i,a,s);else if(32&l){const c=km(t,r);let u;for(;u=c();)Cl(n,e,i,u,s);Cl(n,e,i,a,s)}else 16&l?xw(e,n,r,t,i,s):Cl(n,e,i,a,s);t=o?t.projectionNext:t.next}}function Eh(e,n,t,r,i,s){jm(t,r,e.firstChild,n,i,s,!1)}function xw(e,n,t,r,i,s){const o=t[Jt],l=o[Qn].projection[r.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)Cl(n,e,i,l[c],s);else{let c=l;const u=o[Mn];Gc(r)&&(c.flags|=128),jm(e,n,c,u,i,s,!0)}}function Nw(e,n,t){""===t?e.removeAttribute(n,"class"):e.setAttribute(n,"class",t)}function kw(e,n,t){const{mergedAttrs:r,classes:i,styles:s}=t;null!==r&&_g(e,n,r),null!==i&&Nw(e,n,i),null!==s&&function JM(e,n,t){e.setAttribute(n,"style",t)}(e,n,s)}const Ie={};function P(e=1){Pw(Le(),x(),Xn()+e,!1)}function Pw(e,n,t,r){if(!r)if(3&~n[le]){const s=e.preOrderHooks;null!==s&&Yd(n,s,0,t)}else{const s=e.preOrderCheckHooks;null!==s&&Kd(n,s,t)}ta(t)}function A(e,n=Ze.Default){const t=x();return null===t?X(e,n):Q_(Ct(),t,ye(e),n)}function Ow(e,n,t,r,i,s){const o=ee(null);try{let a=null;i&fo.SignalBased&&(a=n[r][Ye]),null!==a&&void 0!==a.transformFn&&(s=a.transformFn(s)),i&fo.HasDecoratorInputTransform&&(s=e.inputTransforms[r].call(n,s)),null!==e.setInput?e.setInput(n,a,s,t,r):v_(n,a,r,s)}finally{ee(o)}}function Dh(e,n,t,r,i,s,o,a,l,c,u){const d=n.blueprint.slice();return d[Xt]=i,d[le]=204|r,(null!==c||e&&2048&e[le])&&(d[le]|=2048),D_(d),d[Mn]=d[ll]=e,d[Lt]=t,d[os]=o||e&&e[os],d[ve]=a||e&&e[ve],d[In]=l||e&&e[In]||null,d[Qn]=s,d[ul]=function E9(){return C9++}(),d[fr]=u,d[h_]=c,d[Jt]=2==n.type?e[Jt]:d,d}function ca(e,n,t,r,i){let s=e.data[n];if(null===s)s=function Hm(e,n,t,r,i){const s=A_(),o=Bg(),l=e.data[n]=function lI(e,n,t,r,i,s){let o=n?n.injectorIndex:-1,a=0;return ea()&&(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=l),null!==s&&(o?null==s.child&&null!==l.parent&&(s.child=l):null===s.next&&(s.next=l,l.prev=s)),l}(e,n,t,r,i),function NT(){return _e.lFrame.inI18n}()&&(s.flags|=32);else if(64&s.type){s.type=t,s.value=r,s.attrs=i;const o=function $c(){const e=_e.lFrame,n=e.currentTNode;return e.isParent?n:n.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return Ni(s,!0),s}function iu(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 Rw(e,n,t,r,i){const s=Xn(),o=2&r;try{ta(-1),o&&n.length>re&&Pw(e,n,re,!1),ls(o?2:0,i),t(r,i)}finally{ta(s),ls(o?3:1,i)}}function Um(e,n,t){if(Ng(n)){const r=ee(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{ee(r)}}}function zm(e,n,t){I_()&&(function gI(e,n,t,r){const i=t.directiveStart,s=t.directiveEnd;Xo(t)&&function CI(e,n,t){const r=pr(n,e),i=Lw(t);let o=16;t.signals?o=4096:t.onPush&&(o=64);const a=Sh(e,Dh(e,i,null,o,r,n,null,e[os].rendererFactory.createRenderer(r,t),null,null,null));e[n.index]=a}(n,t,e.data[i+t.componentOffset]),e.firstCreatePass||Xd(t,n),or(r,n);const o=t.initialInputs;for(let a=i;a<s;a++){const l=e.data[a],c=ra(n,e,a,t);or(c,n),null!==o&&EI(0,a-i,c,l,0,o),Ai(l)&&(zr(t.index,n)[Lt]=ra(n,e,a,t))}}(e,n,t,pr(t,n)),!(64&~t.flags)&&jw(e,n,t))}function qm(e,n,t=pr){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 Lw(e){const n=e.tView;return null===n||n.incompleteFirstPass?e.tView=Gm(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):n}function Gm(e,n,t,r,i,s,o,a,l,c,u){const d=re+r,f=d+i,h=function nI(e,n){const t=[];for(let r=0;r<n;r++)t.push(r<e?null:Ie);return t}(d,f),g="function"==typeof c?c():c;return h[j]={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:l,consts:g,incompleteFirstPass:!1,ssrId:u}}let Fw=()=>null;function Vw(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,l=fo.None;Array.isArray(o)?(a=o[0],l=o[1]):a=o;let c=s;if(null!==i){if(!i.hasOwnProperty(s))continue;c=i[s]}0===e?$w(r,t,c,a,l):$w(r,t,c,a)}return r}function $w(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 Pr(e,n,t,r,i,s,o,a){const l=pr(n,t);let u,c=n.inputs;!a&&null!=c&&(u=c[r])?(Qm(e,t,u,r,i),Xo(n)&&function dI(e,n){const t=zr(n,e);16&t[le]||(t[le]|=64)}(t,n.index)):3&n.type&&(r=function uI(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(l,r,i))}function Wm(e,n,t,r){if(I_()){const i=null===r?null:{"":-1},s=function yI(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(e_(n,o.selectors,!1))if(r||(r=[]),Ai(o))if(null!==o.findHostDirectiveDefs){const a=[];i=i||new Map,o.findHostDirectiveDefs(o,a,i),r.unshift(...a,o),Zm(e,n,a.length)}else r.unshift(o),Zm(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&&Bw(e,n,t,o,i,a),i&&function vI(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 k(-301,!1);r.push(n[i],s)}}}(t,r,i)}t.mergedAttrs=kc(t.mergedAttrs,t.attrs)}function Bw(e,n,t,r,i,s){for(let c=0;c<r.length;c++)Jg(Xd(t,n),e,r[c].type);!function wI(e,n,t){e.flags|=1,e.directiveStart=n,e.directiveEnd=n+t,e.providerIndexes=n}(t,e.data.length,r.length);for(let c=0;c<r.length;c++){const u=r[c];u.providersResolver&&u.providersResolver(u)}let o=!1,a=!1,l=iu(e,n,r.length,null);for(let c=0;c<r.length;c++){const u=r[c];t.mergedAttrs=kc(t.mergedAttrs,u.hostAttrs),bI(e,t,n,l,u),_I(l,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),l++}!function cI(e,n,t){const i=n.directiveEnd,s=e.data,o=n.attrs,a=[];let l=null,c=null;for(let u=n.directiveStart;u<i;u++){const d=s[u],f=t?t.get(d):null,g=f?f.outputs:null;l=Vw(0,d.inputs,u,l,f?f.inputs:null),c=Vw(1,d.outputs,u,c,g);const v=null===l||null===o||wg(n)?null:DI(l,u,o);a.push(v)}null!==l&&(l.hasOwnProperty("class")&&(n.flags|=8),l.hasOwnProperty("style")&&(n.flags|=16)),n.initialInputs=a,n.inputs=l,n.outputs=c}(e,t,s)}function jw(e,n,t){const r=t.directiveStart,i=t.directiveEnd,s=t.index,o=function PT(){return _e.lFrame.currentDirectiveIndex}();try{ta(s);for(let a=r;a<i;a++){const l=e.data[a],c=n[a];Hg(a),(null!==l.hostBindings||0!==l.hostVars||null!==l.hostAttrs)&&mI(l,c)}}finally{ta(-1),Hg(o)}}function mI(e,n){null!==e.hostBindings&&e.hostBindings(1,n)}function Zm(e,n,t){n.componentOffset=t,(e.components??=[]).push(n.index)}function _I(e,n,t){if(t){if(n.exportAs)for(let r=0;r<n.exportAs.length;r++)t[n.exportAs[r]]=e;Ai(n)&&(t[""]=e)}}function bI(e,n,t,r,i){e.data[r]=i;const s=i.factory||(i.factory=Zo(i.type)),o=new jc(s,Ai(i),A);e.blueprint[r]=o,t[r]=o,function fI(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 pI(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,iu(e,t,i.hostVars,Ie),i)}function fs(e,n,t,r,i,s){const o=pr(e,n);!function Km(e,n,t,r,i,s,o){if(null==s)e.removeAttribute(n,i,t);else{const a=null==o?Me(s):o(s,r||"",i);e.setAttribute(n,i,a,t)}}(n[ve],o,s,e.value,t,r,i)}function EI(e,n,t,r,i,s){const o=s[n];if(null!==o)for(let a=0;a<o.length;)Ow(r,t,o[a++],o[a++],o[a++],o[a++])}function DI(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 Hw(e,n,t,r){return[e,!0,0,n,null,r,null,t,null,null]}function Uw(e,n){const t=e.contentQueries;if(null!==t){const r=ee(null);try{for(let i=0;i<t.length;i+=2){const o=t[i+1];if(-1!==o){const a=e.data[o];Wd(t[i]),a.contentQueries(2,n[o],o)}}}finally{ee(r)}}}function Sh(e,n){return e[Oc]?e[d_][Ii]=n:e[Oc]=n,e[d_]=n,n}function Ym(e,n,t){Wd(0);const r=ee(null);try{n(e,t)}finally{ee(r)}}function Gw(e,n,t){return(null===e||Ai(e))&&(t=function Rg(e){for(;Array.isArray(e);){if("object"==typeof e[xg])return e;e=e[Xt]}return null}(t[n.index])),t[ve]}function Th(e,n){const t=e[In],r=t?t.get(ds,null):null;r&&r.handleError(n)}function Qm(e,n,t,r,i){for(let s=0;s<t.length;){const o=t[s++],a=t[s++],l=t[s++];Ow(e.data[o],n[o],r,a,l,i)}}function SI(e,n){const t=zr(n,e),r=t[j];!function TI(e,n){for(let t=n.length;t<e.blueprint.length;t++)n.push(e.blueprint[t])}(r,t);const i=t[Xt];null!==i&&null===t[fr]&&(t[fr]=_m(i,t[In])),Xm(r,t,t[Lt])}function Xm(e,n,t){qg(n);try{const r=e.viewQuery;null!==r&&Ym(1,r,t);const i=e.template;null!==i&&Rw(e,n,i,1,t),e.firstCreatePass&&(e.firstCreatePass=!1),n[Ps]?.finishViewCreation(e),e.staticContentQueries&&Uw(e,n),e.staticViewQueries&&Ym(2,e.viewQuery,t);const s=e.components;null!==s&&function MI(e,n){for(let t=0;t<n.length;t++)SI(e,n[t])}(n,s)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{n[le]&=-5,Gg()}}function El(e,n,t,r){const i=ee(null);try{const s=n.tView,l=Dh(e,s,t,4096&e[le]?4096:16,null,n,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null);l[Qo]=e[n.index];const u=e[Ps];return null!==u&&(l[Ps]=u.createEmbeddedView(s)),Xm(s,l,t),l}finally{ee(i)}}function Ww(e,n){const t=mn+n;if(t<e.length)return e[t]}function ua(e,n){return!n||null===n.firstChild||Gc(e)}function Dl(e,n,t,r=!0){const i=n[j];if(function GM(e,n,t,r){const i=mn+r,s=t.length;r>0&&(t[i-1][Ii]=n),r<s-mn?(n[Ii]=t[i],Gv(t,mn+r,n)):(t.push(n),n[Ii]=null),n[Mn]=t;const o=n[Qo];null!==o&&t!==o&&ww(o,n);const a=n[Ps];null!==a&&a.insertView(e),Fg(n),n[le]|=128}(i,n,e,t),r){const o=Bm(t,e),a=n[ve],l=Vm(a,e[as]);null!==l&&function zM(e,n,t,r,i,s){r[Xt]=i,r[Qn]=n,Eh(e,r,t,1,i,s)}(i,e[Qn],a,n,l,o)}const s=n[fr];null!==s&&null!==s.firstChild&&(s.firstChild=null)}function Jm(e,n){const t=nu(e,n);return void 0!==t&&bh(t[j],t),t}function su(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(it(s)),sr(s)&&Zw(s,r);const o=t.type;if(8&o)su(e,n,t.child,r);else if(32&o){const a=km(t,n);let l;for(;l=a();)r.push(l)}else if(16&o){const a=Iw(n,t);if(Array.isArray(a))r.push(...a);else{const l=Os(n[Jt]);su(l[j],l,a,r,!0)}}t=i?t.projectionNext:t.next}return r}function Zw(e,n){for(let t=mn;t<e.length;t++){const r=e[t],i=r[j].firstChild;null!==i&&su(r[j],r,i,n)}e[as]!==e[Xt]&&n.push(e[as])}let Kw=[];const NI={...yt,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{zd(e.lView)},consumerOnSignalRead(){this.lView[ci]=this}},PI={...yt,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let n=Os(e.lView);for(;n&&!Yw(n[j]);)n=Os(n);n&&S_(n)},consumerOnSignalRead(){this.lView[ci]=this}};function Yw(e){return 2!==e.type}const OI=100;function Mh(e,n=!0,t=0){const r=e[os],i=r.rendererFactory;i.begin?.();try{!function RI(e,n){const t=k_();try{P_(!0),e1(e,n);let r=0;for(;Ud(e);){if(r===OI)throw new k(103,!1);r++,e1(e,1)}}finally{P_(t)}}(e,t)}catch(o){throw n&&Th(e,o),o}finally{i.end?.(),r.inlineEffectRunner?.flush()}}function LI(e,n,t,r){const i=n[le];if(!(256&~i))return;n[os].inlineEffectRunner?.flush(),qg(n);let a=!0,l=null,c=null;Yw(e)?(c=function II(e){return e[ci]??function AI(e){const n=Kw.pop()??Object.create(NI);return n.lView=e,n}(e)}(n),l=Ge(c)):null===function Q(){return K}()?(a=!1,c=function kI(e){const n=e[ci]??Object.create(PI);return n.lView=e,n}(n),l=Ge(c)):n[ci]&&(bn(n[ci]),n[ci]=null);try{D_(n),function O_(e){return _e.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==t&&Rw(e,n,t,2,r);const u=!(3&~i);if(u){const h=e.preOrderCheckHooks;null!==h&&Kd(n,h,null)}else{const h=e.preOrderHooks;null!==h&&Yd(n,h,0,null),Wg(n,0)}if(function FI(e){for(let n=T2(e);null!==n;n=M2(n)){if(!(n[le]&jd.HasTransplantedViews))continue;const t=n[dl];for(let r=0;r<t.length;r++)S_(t[r])}}(n),Xw(n,0),null!==e.contentQueries&&Uw(e,n),u){const h=e.contentCheckHooks;null!==h&&Kd(n,h)}else{const h=e.contentHooks;null!==h&&Yd(n,h,1),Wg(n,1)}!function tI(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)ta(~i);else{const s=i,o=t[++r],a=t[++r];kT(o,s),a(2,n[s])}}}finally{ta(-1)}}(e,n);const d=e.components;null!==d&&eb(n,d,0);const f=e.viewQuery;if(null!==f&&Ym(2,f,r),u){const h=e.viewCheckHooks;null!==h&&Kd(n,h)}else{const h=e.viewHooks;null!==h&&Yd(n,h,2),Wg(n,2)}if(!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),n[$d]){for(const h of n[$d])h();n[$d]=null}n[le]&=-73}catch(u){throw zd(n),u}finally{null!==c&&(It(c,l),a&&function xI(e){e.lView[ci]!==e&&(e.lView=null,Kw.push(e))}(c)),Gg()}}function Xw(e,n){for(let t=T2(e);null!==t;t=M2(t))for(let r=mn;r<t.length;r++)Jw(t[r],n)}function VI(e,n,t){Jw(zr(n,e),t)}function Jw(e,n){Lg(e)&&e1(e,n)}function e1(e,n){const r=e[j],i=e[le],s=e[ci];let o=!!(0===n&&16&i);if(o||=!!(64&i&&0===n),o||=!!(1024&i),o||=!(!s?.dirty||!sn(s)),o||=!1,s&&(s.dirty=!1),e[le]&=-9217,o)LI(r,e,r.template,e[Lt]);else if(8192&i){Xw(e,1);const a=r.components;null!==a&&eb(e,a,1)}}function eb(e,n,t){for(let r=0;r<n.length;r++)VI(e,n[r],t)}function ou(e,n){const t=k_()?64:1088;for(e[os].changeDetectionScheduler?.notify(n);e;){e[le]|=t;const r=Os(e);if(Lc(e)&&!r)return e;e=r}return null}class au{get rootNodes(){const n=this._lView,t=n[j];return su(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[Lt]}set context(n){this._lView[Lt]=n}get destroyed(){return!(256&~this._lView[le])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[Mn];if(sr(n)){const t=n[8],r=t?t.indexOf(this):-1;r>-1&&(nu(n,r),xd(t,r))}this._attachedToViewContainer=!1}bh(this._lView[j],this._lView)}onDestroy(n){qd(this._lView,n)}markForCheck(){ou(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[le]&=-129}reattach(){Fg(this._lView),this._lView[le]|=128}detectChanges(){this._lView[le]|=1024,Mh(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new k(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;const n=Lc(this._lView),t=this._lView[Qo];null!==t&&!n&&Rm(t,this._lView),_w(this._lView[j],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new k(902,!1);this._appRef=n;const t=Lc(this._lView),r=this._lView[Qo];null!==r&&!t&&ww(r,this._lView),Fg(this._lView)}}let ps=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=jI}return e})();const $I=ps,BI=class extends $I{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=El(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:t,dehydratedView:r});return new au(i)}};function jI(){return Ih(Ct(),x())}function Ih(e,n){return 4&e.type?new BI(n,e,gl(e,n)):null}let bb=()=>null;function ha(e,n){return bb(e,n)}class Tl{}const gu=new Z("",{providedIn:"root",factory:()=>!1}),Cb=new Z(""),d1=new Z("");class P7{}class Eb{}class R7{resolveComponentFactory(n){throw function O7(e){const n=Error(`No component factory found for ${Rn(e)}.`);return n.ngComponent=e,n}(n)}}class fa{static#e=this.NULL=new R7}class Oh{}let $s=(()=>{class e{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function L7(){const e=x(),t=zr(Ct().index,e);return($n(t)?t:e)[ve]}()}return e})(),F7=(()=>{class e{static#e=this.\u0275prov=te({token:e,providedIn:"root",factory:()=>null})}return e})();function Lh(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=tg(i,a):2==s&&(r=tg(r,a+": "+n[++o]+";"))}t?e.styles=r:e.stylesWithoutHost=r,t?e.classes=i:e.classesWithoutHost=i}class Mb extends fa{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const t=Be(n);return new vu(t,this.ngModule)}}function Ib(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]:fo.None)&fo.SignalBased)}:{propName:o,templateName:r})}return t}class vu extends Eb{get inputs(){const n=this.componentDef,t=n.inputTransforms,r=Ib(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 Ib(this.componentDef.outputs,!1)}constructor(n,t){super(),this.componentDef=n,this.ngModule=t,this.componentType=n.type,this.selector=function U6(e){return e.map(H6).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!t}create(n,t,r,i){const s=ee(null);try{let o=(i=i||this.ngModule)instanceof li?i:i?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const a=o?new na(n,o):n,l=a.get(Oh,null);if(null===l)throw new k(407,!1);const d={rendererFactory:l,sanitizer:a.get(F7,null),inlineEffectRunner:null,changeDetectionScheduler:a.get(Tl,null)},f=l.createRenderer(null,this.componentDef),h=this.componentDef.selectors[0][0]||"div",g=r?function rI(e,n,t,r){const s=r.get(W2,!1)||t===Ti.ShadowDom,o=e.selectRootElement(n,s);return function iI(e){Fw(e)}(o),o}(f,r,this.componentDef.encapsulation,a):wh(f,h,function B7(e){const n=e.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(h));let v=512;this.componentDef.signals?v|=4096:this.componentDef.onPush||(v|=16);let C=null;null!==g&&(C=_m(g,a,!0));const T=Gm(0,null,null,1,0,null,null,null,null,null,null),D=Dh(null,T,null,v,null,null,d,f,a,null,C);qg(D);let F,L,H=null;try{const U=this.componentDef;let ce,Fe=null;U.findHostDirectiveDefs?(ce=[],Fe=new Map,U.findHostDirectiveDefs(U,ce,Fe),ce.push(U)):ce=[U];const Et=function H7(e,n){const t=e[j],r=re;return e[r]=n,ca(t,r,2,"#host",null)}(D,g);H=function U7(e,n,t,r,i,s,o){const a=i[j];!function z7(e,n,t,r){for(const i of e)n.mergedAttrs=kc(n.mergedAttrs,i.hostAttrs);null!==n.mergedAttrs&&(Lh(n,n.mergedAttrs,!0),null!==t&&kw(r,t,n))}(r,e,n,o);let l=null;null!==n&&(l=_m(n,i[In]));const c=s.rendererFactory.createRenderer(n,t);let u=16;t.signals?u=4096:t.onPush&&(u=64);const d=Dh(i,Lw(t),null,u,i[e.index],e,s,c,null,null,l);return a.firstCreatePass&&Zm(a,e,r.length-1),Sh(i,d),i[e.index]=d}(Et,g,U,ce,D,d,f),L=Vc(T,re),g&&function G7(e,n,t,r){if(r)_g(e,t,["ng-version","18.2.3"]);else{const{attrs:i,classes:s}=function z6(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(!Mi(i))break;i=s}r++}return{attrs:n,classes:t}}(n.selectors[0]);i&&_g(e,t,i),s&&s.length>0&&Nw(e,t,s.join(" "))}}(f,U,g,r),void 0!==t&&function W7(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)}}(L,this.ngContentSelectors,t),F=function q7(e,n,t,r,i,s){const o=Ct(),a=i[j],l=pr(o,i);Bw(a,i,o,t,null,r);for(let u=0;u<t.length;u++)or(ra(i,a,o.directiveStart+u,o),i);jw(a,i,o),l&&or(l,i);const c=ra(i,a,o.directiveStart+o.componentOffset,o);if(e[Lt]=i[Lt]=c,null!==s)for(const u of s)u(c,n);return Um(a,o,i),c}(H,U,ce,Fe,D,[Z7]),Xm(T,D,null)}catch(U){throw null!==H&&um(H),um(D),U}finally{Gg()}return new j7(this.componentType,F,gl(L,D),D,L)}finally{ee(s)}}}class j7 extends P7{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 au(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;Qm(s[j],s,i,n,t),this.previousInputValues.set(n,t),ou(zr(this._tNode.index,s),1)}}get injector(){return new Bn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}function Z7(){const e=Ct();Zd(x()[j],e)}let Pi=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=K7}return e})();function K7(){return function Nb(e,n){let t;const r=n[e.index];return sr(r)?t=r:(t=Hw(r,n,null,e),n[e.index]=t,Sh(n,t)),kb(t,n,e,r),new Ab(t,e,n)}(Ct(),x())}const Y7=Pi,Ab=class extends Y7{constructor(n,t,r){super(),this._lContainer=n,this._hostTNode=t,this._hostLView=r}get element(){return gl(this._hostTNode,this._hostLView)}get injector(){return new Bn(this._hostTNode,this._hostLView)}get parentInjector(){const n=Jd(this._hostTNode,this._hostLView);if(Yg(n)){const t=Uc(n,this._hostLView),r=Hc(n);return new Bn(t[j].data[r+8],t)}return new Bn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const t=xb(this._lContainer);return null!==t&&t[n]||null}get length(){return this._lContainer.length-mn}createEmbeddedView(n,t,r){let i,s;"number"==typeof r?i=r:null!=r&&(i=r.index,s=r.injector);const o=ha(this._lContainer,n.ssrId),a=n.createEmbeddedViewImpl(t||{},s,o);return this.insertImpl(a,i,ua(this._hostTNode,o)),a}createComponent(n,t,r,i,s){const o=n&&!function Pc(e){return"function"==typeof e}(n);let a;if(o)a=t;else{const g=t||{};a=g.index,r=g.injector,i=g.projectableNodes,s=g.environmentInjector||g.ngModuleRef}const l=o?n:new vu(Be(n)),c=r||this.parentInjector;if(!s&&null==l.ngModule){const v=(o?c:this.parentInjector).get(li,null);v&&(s=v)}const u=Be(l.componentType??{}),d=ha(this._lContainer,u?.id??null),h=l.create(c,i,d?.firstChild??null,s);return this.insertImpl(h.hostView,a,ua(this._hostTNode,d)),h}insert(n,t){return this.insertImpl(n,t,!0)}insertImpl(n,t,r){const i=n._lView;if(function CT(e){return sr(e[Mn])}(i)){const a=this.indexOf(n);if(-1!==a)this.detach(a);else{const l=i[Mn],c=new Ab(l,l[Qn],l[Mn]);c.detach(c.indexOf(n))}}const s=this._adjustIndex(t),o=this._lContainer;return Dl(o,i,s,r),n.attachToViewContainerRef(),Gv(p1(o),s,n),n}move(n,t){return this.insert(n,t)}indexOf(n){const t=xb(this._lContainer);return null!==t?t.indexOf(n):-1}remove(n){const t=this._adjustIndex(n,-1),r=nu(this._lContainer,t);r&&(xd(p1(this._lContainer),t),bh(r[j],r))}detach(n){const t=this._adjustIndex(n,-1),r=nu(this._lContainer,t);return r&&null!=xd(p1(this._lContainer),t)?new au(r):null}_adjustIndex(n,t=0){return n??this.length+t}};function xb(e){return e[8]}function p1(e){return e[8]||(e[8]=[])}let kb=function Ob(e,n,t,r){if(e[as])return;let i;i=8&t.type?it(r):function Q7(e,n){const t=e[ve],r=t.createComment(""),i=pr(n,e);return aa(t,Vm(t,i),r,function KM(e,n){return e.nextSibling(n)}(t,i),!1),r}(n,t),e[as]=i},g1=()=>!1;const Hb=new Set;function mr(e){Hb.has(e)||(Hb.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function ct(e,n){mr("NgSignals");const t=function Wt(e){const n=Object.create(Wn);n.value=e;const t=()=>(dn(n),n.value);return t[Ye]=n,t}(e),r=t[Ye];return n?.equal&&(r.equal=n.equal),t.set=i=>Zt(r,i),t.update=i=>function hn(e,n){se()||Ce(),Zt(e,n(e.value))}(r,i),t.asReadonly=zb.bind(t),t}function zb(){const e=this[Ye];if(void 0===e.readonlyFn){const n=()=>this();n[Ye]=e,e.readonlyFn=n}return e.readonlyFn}function qb(e){return function Ub(e){return"function"==typeof e&&void 0!==e[Ye]}(e)&&"function"==typeof e.set}function ot(e){let n=function nC(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),t=!0;const r=[e];for(;n;){let i;if(Ai(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 o=e;o.inputs=Vh(e.inputs),o.inputTransforms=Vh(e.inputTransforms),o.declaredInputs=Vh(e.declaredInputs),o.outputs=Vh(e.outputs);const a=i.hostBindings;a&&wA(e,a);const l=i.viewQuery,c=i.contentQueries;if(l&&vA(e,l),c&&_A(e,c),mA(e,i),u6(e.outputs,i.outputs),Ai(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===ot&&(t=!1)}}n=Object.getPrototypeOf(n)}!function yA(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=kc(i.hostAttrs,t=kc(t,i.hostAttrs))}}(r)}function mA(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 Vh(e){return e===is?{}:e===rt?[]:e}function vA(e,n){const t=e.viewQuery;e.viewQuery=t?(r,i)=>{n(r,i),t(r,i)}:n}function _A(e,n){const t=e.contentQueries;e.contentQueries=t?(r,i,s)=>{n(r,i,s),t(r,i,s)}:n}function wA(e,n){const t=e.hostBindings;e.hostBindings=t?(r,i)=>{n(r,i),t(r,i)}:n}class ga{}class MA{}class D1 extends ga{constructor(n,t,r,i=!0){super(),this.ngModuleType=n,this._parent=t,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Mb(this);const s=function ir(e,n){const t=e[Bv]||null;if(!t&&!0===n)throw new Error(`Type ${Rn(e)} does not have '\u0275mod' property.`);return t}(n);this._bootstrapComponents=function Zr(e){return e instanceof Function?e():e}(s.bootstrap),this._r3Injector=a2(n,t,[{provide:ga,useValue:this},{provide:fa,useValue:this.componentFactoryResolver},...r],Rn(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 S1 extends MA{constructor(n){super(),this.moduleType=n}create(n){return new D1(this.moduleType,n,[])}}class oC extends ga{constructor(n){super(),this.componentFactoryResolver=new Mb(this),this.instance=null;const t=new il([...n.providers,{provide:ga,useValue:this},{provide:fa,useValue:this.componentFactoryResolver}],n.parent||Fd(),n.debugName,new Set(["environment"]));this.injector=t,n.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function gs(e,n,t){return e[n]=t}function yn(e,n,t){return!Object.is(e[n],t)&&(e[n]=t,!0)}function ma(e,n,t,r){const i=yn(e,n,t);return yn(e,n+1,r)||i}function bu(e,n,t,r,i,s,o,a,l,c){const u=t+re,d=n.firstCreatePass?function OA(e,n,t,r,i,s,o,a,l){const c=n.consts,u=ca(n,e,4,o||null,a||null);Wm(n,t,u,ui(c,l)),Zd(n,u);const d=u.tView=Gm(2,u,r,i,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c,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,l):n.data[u];Ni(d,!1);const f=lC(n,e,d,t);Bc()&&Ch(n,e,f,d),or(f,e);const h=Hw(f,e,f,d);return e[u]=h,Sh(e,h),function Pb(e,n,t){return g1(e,n,t)}(h,d,e),Hd(d)&&zm(n,e,d),null!=l&&qm(e,d,c),d}function et(e,n,t,r,i,s,o,a){const l=x(),c=Le();return bu(l,c,e,n,t,r,i,ui(c.consts,s),o,a),et}let lC=function cC(e,n,t,r){return cs(!0),n[ve].createComment("")};var xl=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(xl||{});let gC=(()=>{class e{constructor(){this.impl=null}execute(){this.impl?.execute()}static#e=this.\u0275prov=te({token:e,providedIn:"root",factory:()=>new e})}return e})();class Du{constructor(){this.ngZone=q(st),this.scheduler=q(Tl),this.errorHandler=q(ds,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static#e=this.PHASES=[xl.EarlyRead,xl.Write,xl.MixedReadWrite,xl.Read];execute(){this.executing=!0;for(const n of Du.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=te({token:Du,providedIn:"root",factory:()=>new Du})}function er(e,n,t,r){const i=x();return yn(i,ki(),n)&&(Le(),fs(Ft(),i,e,n,t,r)),er}function Gh(e,n){return e<<17|n<<2}function bo(e){return e>>17&32767}function V1(e){return 2|e}function va(e){return(131068&e)>>2}function $1(e,n){return-131069&e|n<<2}function B1(e){return 1|e}function UC(e,n,t,r){const i=e[t+1],s=null===n;let o=r?bo(i):va(i),a=!1;for(;0!==o&&(!1===a||s);){const c=e[o+1];Cx(e[o],n)&&(a=!0,e[o+1]=r?B1(c):V1(c)),o=r?bo(c):va(c)}a&&(e[t+1]=r?V1(i):B1(i))}function Cx(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&nl(e,n)>=0}const jn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function zC(e){return e.substring(jn.key,jn.keyEnd)}function qC(e,n){const t=jn.textEnd;return t===n?-1:(n=jn.keyEnd=function Tx(e,n,t){for(;n<t&&e.charCodeAt(n)>32;)n++;return n}(e,jn.key=n,t),ql(e,n,t))}function ql(e,n,t){for(;n<t&&e.charCodeAt(n)<=32;)n++;return n}function ie(e,n,t){const r=x();return yn(r,ki(),n)&&Pr(Le(),Ft(),r,e,n,r[ve],t,!1),ie}function j1(e,n,t,r,i){const o=i?"class":"style";Qm(e,t,n.inputs[o],o,r)}function Gl(e,n,t){return Ri(e,n,t,!1),Gl}function Oi(e,n){return Ri(e,n,null,!0),Oi}function Bs(e){!function Li(e,n,t,r){const i=Le(),s=Ls(2);i.firstUpdatePass&&QC(i,null,s,r);const o=x();if(t!==Ie&&yn(o,s,t)){const a=i.data[Xn()];if(tE(a,r)&&!YC(i,s)){let l=r?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(t=tg(l,t||"")),j1(i,a,o,t,r)}else!function Lx(e,n,t,r,i,s,o,a){i===Ie&&(i=rt);let l=0,c=0,u=0<i.length?i[0]:null,d=0<s.length?s[0]:null;for(;null!==u||null!==d;){const f=l<i.length?i[l+1]:void 0,h=c<s.length?s[c+1]:void 0;let v,g=null;u===d?(l+=2,c+=2,f!==h&&(g=d,v=h)):null===d||null!==u&&u<d?(l+=2,g=u):(c+=2,g=d,v=h),null!==g&&JC(e,n,t,r,g,v,o,a),u=l<i.length?i[l]:null,d=c<s.length?s[c]:null}}(i,a,o,o[ve],o[s+1],o[s+1]=function Ox(e,n,t){if(null==t||""===t)return rt;const r=[],i=Gr(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)}}(Rx,ys,e,!0)}function ys(e,n){for(let t=function Dx(e){return function WC(e){jn.key=0,jn.keyEnd=0,jn.value=0,jn.valueEnd=0,jn.textEnd=e.length}(e),qC(e,ql(e,0,jn.textEnd))}(n);t>=0;t=qC(n,t))Ur(e,zC(n),!0)}function Ri(e,n,t,r){const i=x(),s=Le(),o=Ls(2);s.firstUpdatePass&&QC(s,e,o,r),n!==Ie&&yn(i,o,n)&&JC(s,s.data[Xn()],i,i[ve],e,i[o+1]=function Fx(e,n){return null==e||""===e||("string"==typeof n?e+=n:"object"==typeof e&&(e=Rn(Gr(e)))),e}(n,t),r,o)}function YC(e,n){return n>=e.expandoStartIndex}function QC(e,n,t,r){const i=e.data;if(null===i[t+1]){const s=i[Xn()],o=YC(e,t);tE(s,r)&&null===n&&!o&&(n=!1),n=function xx(e,n,t,r){const i=Ug(e);let s=r?n.residualClasses:n.residualStyles;if(null===i)0===(r?n.classBindings:n.styleBindings)&&(t=Tu(t=H1(null,e,n,t,r),n.attrs,r),s=null);else{const o=n.directiveStylingLast;if(-1===o||e[o]!==i)if(t=H1(i,e,n,t,r),null===s){let l=function Nx(e,n,t){const r=t?n.classBindings:n.styleBindings;if(0!==va(r))return e[bo(r)]}(e,n,r);void 0!==l&&Array.isArray(l)&&(l=H1(null,e,n,l[1],r),l=Tu(l,n.attrs,r),function kx(e,n,t,r){e[bo(t?n.classBindings:n.styleBindings)]=r}(e,n,r,l))}else s=function Px(e,n,t){let r;const i=n.directiveEnd;for(let s=1+n.directiveStylingLast;s<i;s++)r=Tu(r,e[s].hostAttrs,t);return Tu(r,n.attrs,t)}(e,n,r)}return void 0!==s&&(r?n.residualClasses=s:n.residualStyles=s),t}(i,s,n,r),function wx(e,n,t,r,i,s){let o=s?n.classBindings:n.styleBindings,a=bo(o),l=va(o);e[r]=t;let u,c=!1;if(Array.isArray(t)?(u=t[1],(null===u||nl(t,u)>0)&&(c=!0)):u=t,i)if(0!==l){const f=bo(e[a+1]);e[r+1]=Gh(f,a),0!==f&&(e[f+1]=$1(e[f+1],r)),e[a+1]=function vx(e,n){return 131071&e|n<<17}(e[a+1],r)}else e[r+1]=Gh(a,0),0!==a&&(e[a+1]=$1(e[a+1],r)),a=r;else e[r+1]=Gh(l,0),0===a?a=r:e[l+1]=$1(e[l+1],r),l=r;c&&(e[r+1]=V1(e[r+1])),UC(e,u,r,!0),UC(e,u,r,!1),function bx(e,n,t,r,i){const s=i?e.residualClasses:e.residualStyles;null!=s&&"string"==typeof n&&nl(s,n)>=0&&(t[r+1]=B1(t[r+1]))}(n,u,e,r,s),o=Gh(a,l),s?n.classBindings=o:n.styleBindings=o}(i,s,n,t,o,r)}}function H1(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=Tu(r,s.hostAttrs,i),s!==e);)a++;return null!==e&&(t.directiveStylingLast=a),r}function Tu(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]),Ur(e,o,!!t||n[++s]))}return void 0===e?null:e}function Rx(e,n,t){const r=String(n);""!==r&&!r.includes(" ")&&Ur(e,r,t)}function JC(e,n,t,r,i,s,o,a){if(!(3&n.type))return;const l=e.data,c=l[a+1],u=function _x(e){return!(1&~e)}(c)?eE(l,n,t,i,va(c),o):void 0;Wh(u)||(Wh(s)||function yx(e){return!(2&~e)}(c)&&(s=eE(l,null,t,i,a,o)),function XM(e,n,t,r,i){if(n)i?e.addClass(t,r):e.removeClass(t,r);else{let s=-1===r.indexOf("-")?void 0:vo.DashCase;null==i?e.removeStyle(t,r,s):("string"==typeof i&&i.endsWith("!important")&&(i=i.slice(0,-10),s|=vo.Important),e.setStyle(t,r,i,s))}}(r,o,Fc(Xn(),t),i,s))}function eE(e,n,t,r,i,s){const o=null===n;let a;for(;i>0;){const l=e[i],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let f=t[i+1];f===Ie&&(f=d?rt:void 0);let h=d?yg(f,r):u===r?f:void 0;if(c&&!Wh(h)&&(h=yg(l,r)),Wh(h)&&(a=h,o))return a;const g=e[i+1];i=o?bo(g):va(g)}if(null!==n){let l=s?n.residualClasses:n.residualStyles;null!=l&&(a=yg(l,r))}return a}function Wh(e){return void 0!==e}function tE(e,n){return!!(e.flags&(n?8:16))}class Zx{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 U1(e,n,t,r,i){return e===t&&Object.is(n,r)?1:Object.is(i(e,n),i(t,r))?-1:0}function z1(e,n,t,r){return!(void 0===n||!n.has(r)||(e.attach(t,n.get(r)),n.delete(r),0))}function nE(e,n,t,r,i){if(z1(e,n,r,t(r,i)))e.updateValue(r,i);else{const s=e.create(r,i);e.attach(r,s)}}function rE(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 iE{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 ut(e,n){mr("NgControlFlow");const t=x(),r=ki(),i=t[r]!==Ie?t[r]:-1,s=-1!==i?Zh(t,re+i):void 0;if(yn(t,r,e)){const a=ee(null);try{if(void 0!==s&&Jm(s,0),-1!==e){const l=re+e,c=Zh(t,l),u=q1(t[j],l),d=ha(c,u.tView.ssrId);Dl(c,El(t,u,n,{dehydratedView:d}),0,ua(u,d))}}finally{ee(a)}}else if(void 0!==s){const a=Ww(s,0);void 0!==a&&(a[Lt]=n)}}class Yx{constructor(n,t,r){this.lContainer=n,this.$implicit=t,this.$index=r}get $count(){return this.lContainer.length-mn}}function js(e){return e}function sE(e,n){return n}class Qx{constructor(n,t,r){this.hasEmptyBlock=n,this.trackByFn=t,this.liveCollection=r}}function Fi(e,n,t,r,i,s,o,a,l,c,u,d,f){mr("NgControlFlow");const h=x(),g=Le(),v=void 0!==l,C=x(),T=a?o.bind(C[Jt][Lt]):o,D=new Qx(v,T);C[re+e]=D,bu(h,g,e+1,n,t,r,i,ui(g.consts,s)),v&&bu(h,g,e+2,l,c,u,d,ui(g.consts,f))}class Xx extends Zx{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-mn}at(n){return this.getLView(n)[Lt].$implicit}attach(n,t){const r=t[fr];this.needsIndexUpdate||=n!==this.length,Dl(this.lContainer,t,n,ua(this.templateTNode,r))}detach(n){return this.needsIndexUpdate||=n!==this.length-1,function Jx(e,n){return nu(e,n)}(this.lContainer,n)}create(n,t){const r=ha(this.lContainer,this.templateTNode.tView.ssrId),i=El(this.hostLView,this.templateTNode,new Yx(this.lContainer,t,n),{dehydratedView:r});return this.operationsCounter?.recordCreate(),i}destroy(n){bh(n[j],n),this.operationsCounter?.recordDestroy()}updateValue(n,t){this.getLView(n)[Lt].$implicit=t}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let n=0;n<this.length;n++)this.getLView(n)[Lt].$index=n}getLView(n){return function eN(e,n){return Ww(e,n)}(this.lContainer,n)}}function Vi(e){const n=ee(null),t=Xn();try{const r=x(),i=r[j],s=r[t],o=t+1,a=Zh(r,o);if(void 0===s.liveCollection){const c=q1(i,o);s.liveCollection=new Xx(a,r,c)}else s.liveCollection.reset();const l=s.liveCollection;if(function Kx(e,n,t){let r,i,s=0,o=e.length-1;if(Array.isArray(n)){let l=n.length-1;for(;s<=o&&s<=l;){const c=e.at(s),u=n[s],d=U1(s,c,s,u,t);if(0!==d){d<0&&e.updateValue(s,u),s++;continue}const f=e.at(o),h=n[l],g=U1(o,f,l,h,t);if(0!==g){g<0&&e.updateValue(o,h),o--,l--;continue}const v=t(s,c),C=t(o,f),T=t(s,u);if(Object.is(T,C)){const D=t(l,h);Object.is(D,v)?(e.swap(s,o),e.updateValue(o,h),l--,o--):e.move(o,s),e.updateValue(s,u),s++}else if(r??=new iE,i??=rE(e,s,o,t),z1(e,r,s,T))e.updateValue(s,u),s++,o++;else if(i.has(T))r.set(v,e.detach(s)),o--;else{const D=e.create(s,n[s]);e.attach(s,D),s++,o++}}for(;s<=l;)nE(e,r,t,s,n[s]),s++}else if(null!=n){const l=n[Symbol.iterator]();let c=l.next();for(;!c.done&&s<=o;){const u=e.at(s),d=c.value,f=U1(s,u,s,d,t);if(0!==f)f<0&&e.updateValue(s,d),s++,c=l.next();else{r??=new iE,i??=rE(e,s,o,t);const h=t(s,d);if(z1(e,r,s,h))e.updateValue(s,d),s++,o++,c=l.next();else if(i.has(h)){const g=t(s,u);r.set(g,e.detach(s)),o--}else e.attach(s,e.create(s,d)),s++,o++,c=l.next()}}for(;!c.done;)nE(e,r,t,e.length,c.value),c=l.next()}for(;s<=o;)e.destroy(e.detach(o--));r?.forEach(l=>{e.destroy(l)})}(l,e,s.trackByFn),l.updateIndexes(),s.hasEmptyBlock){const c=ki(),u=0===l.length;if(yn(r,c,u)){const d=t+2,f=Zh(r,d);if(u){const h=q1(i,d),g=ha(f,h.tView.ssrId);Dl(f,El(r,h,void 0,{dehydratedView:g}),0,ua(h,g))}else Jm(f,0)}}}finally{ee(n)}}function Zh(e,n){return e[n]}function q1(e,n){return Vc(e,n)}function G(e,n,t,r){const i=x(),s=Le(),o=re+e,a=i[ve],l=s.firstCreatePass?function tN(e,n,t,r,i,s){const o=n.consts,l=ca(n,e,2,r,ui(o,i));return Wm(n,t,l,ui(o,s)),null!==l.attrs&&Lh(l,l.attrs,!1),null!==l.mergedAttrs&&Lh(l,l.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,l),l}(o,s,i,n,t,r):s.data[o],c=oE(s,i,l,a,n,e);i[o]=c;const u=Hd(l);return Ni(l,!0),kw(a,c,l),!function Il(e){return!(32&~e.flags)}(l)&&Bc()&&Ch(s,i,c,l),0===function ET(){return _e.lFrame.elementDepthCount}()&&or(c,i),function DT(){_e.lFrame.elementDepthCount++}(),u&&(zm(s,i,l),Um(s,l,i)),null!==r&&qm(i,l),G}function W(){let e=Ct();Bg()?jg():(e=e.parent,Ni(e,!1));const n=e;(function TT(e){return _e.skipHydrationRootTNode===e})(n)&&function xT(){_e.skipHydrationRootTNode=null}(),function ST(){_e.lFrame.elementDepthCount--}();const t=Le();return t.firstCreatePass&&(Zd(t,e),Ng(e)&&t.queries.elementEnd(e)),null!=n.classesWithoutHost&&function UT(e){return!!(8&e.flags)}(n)&&j1(t,n,x(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function zT(e){return!!(16&e.flags)}(n)&&j1(t,n,x(),n.stylesWithoutHost,!1),W}function vt(e,n,t,r){return G(e,n,t,r),W(),vt}let oE=(e,n,t,r,i,s)=>(cs(!0),wh(r,i,function j_(){return _e.lFrame.currentNamespace}()));function Wl(e,n,t){const r=x(),i=Le(),s=e+re,o=i.firstCreatePass?function iN(e,n,t,r,i){const s=n.consts,o=ui(s,r),a=ca(n,e,8,"ng-container",o);return null!==o&&Lh(a,o,!0),Wm(n,t,a,ui(s,i)),null!==n.queries&&n.queries.elementStart(n,a),a}(s,i,r,n,t):i.data[s];Ni(o,!0);const a=aE(i,r,o,e);return r[s]=a,Bc()&&Ch(i,r,a,o),or(a,r),Hd(o)&&(zm(i,r,o),Um(i,o,r)),null!=t&&qm(r,o),Wl}function Zl(){let e=Ct();const n=Le();return Bg()?jg():(e=e.parent,Ni(e,!1)),n.firstCreatePass&&(Zd(n,e),Ng(e)&&n.queries.elementEnd(e)),Zl}function Kl(e,n,t){return Wl(e,n,t),Zl(),Kl}let aE=(e,n,t,r)=>(cs(!0),Om(n[ve],""));function ar(){return x()}function Kh(e,n,t){const r=x();if(yn(r,ki(),n)){const s=Le(),o=Ft();Pr(s,o,r,e,n,Gw(Ug(s.data),o,r),t,!0)}return Kh}const Yh="en-US";let dE=Yh,AE=(e,n,t)=>{};function Ke(e,n,t,r){const i=x(),s=Le(),o=Ct();return Z1(s,i,i[ve],o,e,n,r),Ke}function Z1(e,n,t,r,i,s,o){const a=Hd(r),c=e.firstCreatePass&&function qw(e){return e.cleanup??=[]}(e),u=n[Lt],d=function zw(e){return e[al]??=[]}(n);let f=!0;if(3&r.type||o){const v=pr(r,n),C=o?o(v):v,T=d.length,D=o?L=>o(it(L[r.index])):r.index;let F=null;if(!o&&a&&(F=function QN(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[al],l=i[s+2];return a.length>l?a[l]:null}"string"==typeof o&&(s+=2)}return null}(e,n,i,r.index)),null!==F)(F.__ngLastListenerFn__||F).__ngNextListenerFn__=s,F.__ngLastListenerFn__=s,f=!1;else{s=PE(r,n,u,s),AE(v,i,s);const L=t.listen(C,i,s);d.push(s,L),c&&c.push(i,D,T,T+1)}}else s=PE(r,n,u,s);const h=r.outputs;let g;if(f&&null!==h&&(g=h[i])){const v=g.length;if(v)for(let C=0;C<v;C+=2){const H=n[g[C]][g[C+1]].subscribe(s),U=d.length;d.push(s,H),c&&c.push(i,r.index,U,-(U+1))}}}function kE(e,n,t,r){const i=ee(null);try{return ls(6,n,t),!1!==t(r)}catch(s){return Th(e,s),!1}finally{ls(7,n,t),ee(i)}}function PE(e,n,t,r){return function i(s){if(s===Function)return r;ou(e.componentOffset>-1?zr(e.index,n):n,5);let a=kE(n,t,r,s),l=i.__ngNextListenerFn__;for(;l;)a=kE(n,t,l,s)&&a,l=l.__ngNextListenerFn__;return a}}function J(e=1){return function RT(e){return(_e.lFrame.contextLView=function T_(e,n){for(;e>0;)n=n[ll],e--;return n}(e,_e.lFrame.contextLView))[Lt]}(e)}function XN(e,n){let t=null;const r=function V6(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?e_(e,s,!0):j6(r,s))return i}else t=i}return t}function K1(e,n=0,t,r,i,s){const o=x(),a=Le(),l=r?e+1:null;null!==l&&bu(o,a,l,r,i,s,null,t);const c=ca(a,re+e,16,null,t||null);null===c.projection&&(c.projection=n),jg();const d=!o[fr]||ea();null===o[Jt][Qn].projection[c.projection]&&null!==l?function JN(e,n,t){const r=re+t,i=n.data[r],s=e[r],o=ha(s,i.tView.ssrId);Dl(s,El(e,i,void 0,{dehydratedView:o}),0,ua(i,o))}(o,a,l):d&&32&~c.flags&&function YM(e,n,t){xw(n[ve],0,n,t,Fm(e,t,n),Dw(t.parent||n[Qn],t,n))}(a,o,c)}function Q1(e,n,t,r){t>=e.data.length&&(e.data[t]=null,e.blueprint[t]=null),n[t]=r}function X1(e){return Jo(x_(),re+e)}function De(e,n=""){const t=x(),r=Le(),i=e+re,s=r.firstCreatePass?ca(r,i,1,n,null):r.data[i],o=JE(r,t,s,n,e);t[i]=o,Bc()&&Ch(r,t,o,s),Ni(s,!1)}let JE=(e,n,t,r,i)=>(cs(!0),function Pm(e,n){return e.createText(n)}(n[ve],r));function tr(e){return qt("",e,""),tr}function qt(e,n,t){const r=x(),i=function Fl(e,n,t,r){return yn(e,ki(),t)?n+Me(t)+r:Ie}(r,e,n,t);return i!==Ie&&function Vs(e,n,t){const r=Fc(n,e);!function vw(e,n,t){e.setValue(n,t)}(e[ve],r,t)}(r,Xn(),i),qt}function J1(e,n,t){qb(n)&&(n=n());const r=x();return yn(r,ki(),n)&&Pr(Le(),Ft(),r,e,n,r[ve],t,!1),J1}function e0(e,n){const t=x(),r=Le(),i=Ct();return Z1(r,t,t[ve],i,e,n),e0}const c8={};function hi(e){const n=Le(),t=x(),r=e+re;return Ni(ca(n,r,128,null,null),!1),Q1(n,t,r,c8),hi}function Qr(e){return mr("NgLet"),Q1(Le(),x(),Xn(),e),e}function Hn(e){const t=Jo(x_(),re+e);if(t===c8)throw new k(314,!1);return t}function t0(e,n,t,r,i){if(e=ye(e),Array.isArray(e))for(let s=0;s<e.length;s++)t0(e[s],n,t,r,i);else{const s=Le(),o=x(),a=Ct();let l=Yo(e)?e:ye(e.provide);const c=l_(e),u=1048575&a.providerIndexes,d=a.directiveStart,f=a.providerIndexes>>20;if(Yo(e)||!e.multi){const h=new jc(c,i,A),g=r0(l,n,i?u:u+f,d);-1===g?(Jg(Xd(a,o),s,l),n0(s,e,n.length),n.push(l),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),t.push(h),o.push(h)):(t[g]=h,o[g]=h)}else{const h=r0(l,n,u+f,d),g=r0(l,n,u,u+f),C=g>=0&&t[g];if(i&&!C||!i&&!(h>=0&&t[h])){Jg(Xd(a,o),s,l);const T=function bk(e,n,t,r,i){const s=new jc(e,t,A);return s.multi=[],s.index=n,s.componentProviders=0,u8(s,i,r&&!t),s}(i?wk:_k,t.length,i,r,c);!i&&C&&(t[g].providerFactory=T),n0(s,e,n.length,0),n.push(l),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),t.push(T),o.push(T)}else n0(s,e,h>-1?h:g,u8(t[i?g:h],c,!i&&r));!i&&r&&C&&t[g].componentProviders++}}}function n0(e,n,t,r){const i=Yo(n),s=function Q6(e){return!!e.useClass}(n);if(i||s){const l=(s?ye(n.useClass):n).prototype.ngOnDestroy;if(l){const c=e.destroyHooks||(e.destroyHooks=[]);if(!i&&n.multi){const u=c.indexOf(t);-1===u?c.push(t,[r,l]):c[u+1].push(r,l)}else c.push(t,l)}}}function u8(e,n,t){return t&&e.componentProviders++,e.multi.push(n)-1}function r0(e,n,t,r){for(let i=t;i<r;i++)if(n[i]===e)return i;return-1}function _k(e,n,t,r){return s0(this.multi,[])}function wk(e,n,t,r){const i=this.multi;let s;if(this.providerFactory){const o=this.providerFactory.componentProviders,a=ra(t,t[j],this.providerFactory.index,r);s=a.slice(0,o),s0(i,s);for(let l=o;l<a.length;l++)s.push(a[l])}else s=[],s0(i,s);return s}function s0(e,n){for(let t=0;t<e.length;t++)n.push((0,e[t])());return n}function $t(e,n=[]){return t=>{t.providersResolver=(r,i)=>function vk(e,n,t){const r=Le();if(r.firstCreatePass){const i=Ai(e);t0(t,r.data,r.blueprint,i,!0),t0(n,r.data,r.blueprint,i,!1)}}(r,i?i(e):e,n)}}let Ck=(()=>{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=bg(0,t.type),i=r.length>0?function aC(e,n,t=null){return new oC({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=te({token:e,providedIn:"environment",factory:()=>new e(X(li))})}return e})();function o0(e){mr("NgStandalone"),e.getStandaloneInjector=n=>n.get(Ck).getOrCreateStandaloneInjector(e)}function a0(e,n,t,r){return f8(x(),gr(),e,n,t,r)}function ku(e,n){const t=e[n];return t===Ie?void 0:t}function f8(e,n,t,r,i,s){const o=n+t;return yn(e,o,i)?gs(e,o+1,s?r.call(s,i):r(i)):ku(e,o+1)}function g8(e,n,t,r,i,s,o,a){const l=n+t;return function Bh(e,n,t,r,i){const s=ma(e,n,t,r);return yn(e,n+2,i)||s}(e,l,i,s,o)?gs(e,l+3,a?r.call(a,i,s,o):r(i,s,o)):ku(e,l+3)}function m8(e,n,t,r,i,s,o,a,l){const c=n+t;return function di(e,n,t,r,i,s){const o=ma(e,n,t,r);return ma(e,n+2,i,s)||o}(e,c,i,s,o,a)?gs(e,c+4,l?r.call(l,i,s,o,a):r(i,s,o,a)):ku(e,c+4)}function Bt(e,n){const t=Le();let r;const i=e+re;t.firstCreatePass?(r=function Rk(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=Zo(r.type)),a=xr(A);try{const l=Qd(!1),c=s();return Qd(l),Q1(t,x(),i,c),c}finally{xr(a)}}function Pu(e,n,t){const r=e+re,i=x(),s=Jo(i,r);return Ou(i,r)?f8(i,gr(),n,s.transform,t,s):s.transform(t)}function lr(e,n,t,r){const i=e+re,s=x(),o=Jo(s,i);return Ou(s,i)?function p8(e,n,t,r,i,s,o){const a=n+t;return ma(e,a,i,s)?gs(e,a+2,o?r.call(o,i,s):r(i,s)):ku(e,a+2)}(s,gr(),n,o.transform,t,r,o):o.transform(t,r)}function Ql(e,n,t,r,i){const s=e+re,o=x(),a=Jo(o,s);return Ou(o,s)?g8(o,gr(),n,a.transform,t,r,i,a):a.transform(t,r,i)}function Ou(e,n){return e[j].data[n].pure}function l0(e,n){return Ih(e,n)}const V8=new Z(""),sf=new Z("");let m0,p0=(()=>{class e{constructor(t,r,i){this._ngZone=t,this.registry=r,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,m0||(function xP(e){m0=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:()=>{st.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)(X(st),X(g0),X(sf))};static#t=this.\u0275prov=te({token:e,factory:e.\u0275fac})}return e})(),g0=(()=>{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 m0?.findTestabilityInTree(this,t,r)??null}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=te({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function af(e){return!!e&&"function"==typeof e.then}function $8(e){return!!e&&"function"==typeof e.subscribe}const NP=new Z("");let B8=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,r)=>{this.resolve=t,this.reject=r}),this.appInits=q(NP,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const t=[];for(const i of this.appInits){const s=i();if(af(s))t.push(s);else if($8(s)){const o=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});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=te({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const y0=new Z("");function H8(e,n){return Array.isArray(n)?n.reduce(H8,e):{...e,...n}}let fi=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=q(v9),this.afterRenderManager=q(gC),this.zonelessEnabled=q(gu),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new pn,this.afterTick=new pn,this.componentTypes=[],this.components=[],this.isStable=q(ia).hasPendingTasks.pipe(gn(t=>!t)),this._injector=q(li)}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 Eb;if(!this._injector.get(B8).done)throw!i&&function Ko(e){const n=Be(e)||Fn(e)||Yn(e);return null!==n&&n.standalone}(t),new k(405,!1);let o;o=i?t:this._injector.get(fa).resolveComponentFactory(t),this.componentTypes.push(o.componentType);const a=function kP(e){return e.isBoundToModule}(o)?void 0:this._injector.get(ga),c=o.create(kt.NULL,[],r||o.selector,a),u=c.location.nativeElement,d=c.injector.get(V8,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),lf(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new k(101,!1);const t=ee(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,ee(t),this.afterTick.next()}}synchronize(){let t=null;this._injector.destroyed||(t=this._injector.get(Oh,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)RP(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})=>Ud(t))?this.dirtyFlags|=2:this.dirtyFlags&=-8}attachView(t){const r=t;this._views.push(r),r.attachToAppRef(this)}detachView(t){const r=t;lf(this._views,r),r.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t);const r=this._injector.get(y0,[]);[...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),()=>lf(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=te({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function lf(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function RP(e,n,t,r){(t||Ud(e))&&Mh(e,n,t&&!r?0:1)}let $P=(()=>{class e{constructor(){this.zone=q(st),this.changeDetectionScheduler=q(Tl),this.applicationRef=q(fi)}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=te({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function v0({ngZoneFactory:e,ignoreChangesOutsideZone:n,scheduleInRootZone:t}){return e??=()=>new st({..._0(),scheduleInRootZone:t}),[{provide:st,useFactory:e},{provide:ss,multi:!0,useFactory:()=>{const r=q($P,{optional:!0});return()=>r.initialize()}},{provide:ss,multi:!0,useFactory:()=>{const r=q(jP);return()=>{r.initialize()}}},!0===n?{provide:Cb,useValue:!0}:[],{provide:d1,useValue:t??c2}]}function _0(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}let jP=(()=>{class e{constructor(){this.subscription=new at,this.initialized=!1,this.zone=q(st),this.pendingTasks=q(ia)}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(()=>{st.assertNotInAngularZone(),queueMicrotask(()=>{null!==t&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(t),t=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{st.assertInAngularZone(),t??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=te({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Vu=(()=>{class e{constructor(){this.appRef=q(fi),this.taskService=q(ia),this.ngZone=q(st),this.zonelessEnabled=q(gu),this.disableScheduling=q(Cb,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new at,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(ih):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(q(d1,{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 om||!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?d2:u2;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(ih+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,d2(()=>{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=te({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Co=new Z("",{providedIn:"root",factory:()=>q(Co,Ze.Optional|Ze.SkipSelf)||function HP(){return typeof $localize<"u"&&$localize.locale||Yh}()}),b0=new Z("");function uf(e){return!!e.platformInjector}let K8=(()=>{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=[v0({ngZoneFactory:()=>function y9(e="zone.js",n){return"noop"===e?new om:"zone.js"===e?new st(n):e}(r?.ngZone,{..._0({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}),scheduleInRootZone:i}),ignoreChangesOutsideZone:o}),{provide:Tl,useExisting:Vu}],l=function AA(e,n,t){return new D1(e,n,t,!1)}(t.moduleType,this.injector,a);return function Z8(e){const n=uf(e)?e.r3Injector:e.moduleRef.injector,t=n.get(st);return t.run(()=>{uf(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();const r=n.get(ds,null);let i;if(t.runOutsideAngular(()=>{i=t.onError.subscribe({next:s=>{r.handleError(s)}})}),uf(e)){const s=()=>n.destroy(),o=e.platformInjector.get(b0);o.add(s),n.onDestroy(()=>{i.unsubscribe(),o.delete(s)})}else e.moduleRef.onDestroy(()=>{lf(e.allPlatformModules,e.moduleRef),i.unsubscribe()});return function OP(e,n,t){try{const r=t();return af(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(B8);return s.runInitializers(),s.donePromise.then(()=>{if(function fN(e){"string"==typeof e&&(dE=e.toLowerCase().replace(/_/g,"-"))}(n.get(Co,Yh)||Yh),uf(e)){const a=n.get(fi);return void 0!==e.rootComponent&&a.bootstrap(e.rootComponent),a}return function ZP(e,n){const t=e.injector.get(fi);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:l,allPlatformModules:this._modules})}bootstrapModule(t,r=[]){const i=H8({},r);return function VP(e,n,t){const r=new S1(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 k(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const t=this._injector.get(b0,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)(X(kt))};static#t=this.\u0275prov=te({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),Eo=null;const Y8=new Z("");function Q8(e,n,t=[]){const r=`Platform: ${n}`,i=new Z(r);return(s=[])=>{let o=C0();if(!o||o.injector.get(Y8,!1)){const a=[...t,...s,{provide:i,useValue:!0}];e?e(a):function KP(e){if(Eo&&!Eo.get(Y8,!1))throw new k(400,!1);(function j8(){!function We(e){_t=e}(()=>{throw new k(600,!1)})})(),Eo=e;const n=e.get(K8);(function J8(e){e.get(L2,null)?.forEach(t=>t())})(e)}(function X8(e=[],n){return kt.create({name:n,providers:[{provide:Dg,useValue:"platform"},{provide:b0,useValue:new Set([()=>Eo=null])},...e]})}(a,r))}return function YP(){const n=C0();if(!n)throw new k(401,!1);return n}()}}function C0(){return Eo?.get(K8)??null}let ec=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=XP}return e})();function XP(e){return function JP(e,n,t){if(Xo(e)&&!t){const r=zr(e.index,n);return new au(r,r)}return 175&e.type?new au(n[Jt],n):null}(Ct(),x(),!(16&~e))}const dO=Q8(null,"core",[]);let hO=(()=>{class e{constructor(t){}static#e=this.\u0275fac=function(r){return new(r||e)(X(fi))};static#t=this.\u0275mod=Gn({type:e});static#n=this.\u0275inj=Ln({})}return e})();const SD=new Z("");function dt(e,n){mr("NgSignals");const t=function be(e){const n=Object.create(je);n.computation=e;const t=()=>{if(qe(n),dn(n),n.value===ke)throw n.error;return n.value};return t[Ye]=n,t}(e);return n?.equal&&(t[Ye].equal=n.equal),t}function vs(e){const n=ee(null);try{return e()}finally{ee(n)}}const zO=new Z("",{providedIn:"root",factory:()=>q(qO)});let qO=(()=>{class e{static#e=this.\u0275prov=te({token:e,providedIn:"root",factory:()=>new GO})}return e})();class GO{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=q(ia),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 WO{constructor(n,t,r,i,s,o){this.scheduler=n,this.effectFn=t,this.creationZone=r,this.injector=s,this.watcher=function Lr(e,n,t){const r=Object.create(fn);t&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=n;const i=l=>{r.cleanupFn=l};return r.ref={notify:()=>Te(r),run:()=>{if(null===r.fn)return;if(function ae(){return Ae}())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(r.dirty=!1,r.hasRun&&!sn(r))return;r.hasRun=!0;const l=Ge(r);try{r.cleanupFn(),r.cleanupFn=Ht,r.fn(i)}finally{It(r,l)}},cleanup:()=>r.cleanupFn(),destroy:()=>function o(l){(function s(l){return null===l.fn&&null===l.schedule})(l)||(bn(l),l.cleanupFn(),l.fn=null,l.schedule=null,l.cleanupFn=Ht)}(r),[Ye]: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(ds,null,{optional:!0})?.handleError(t)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}}function RD(e,n){mr("NgSignals"),!n?.injector&&function Ig(e){if(!c_())throw new k(-203,!1)}();const t=n?.injector??q(kt),r=!0!==n?.manualCleanup?t.get(zc):null,i=new WO(t.get(zO),e,typeof Zone>"u"?null:Zone.current,r,t,n?.allowSignalWrites??!1),s=t.get(ec,null,{optional:!0});return s&&8&s._lView[le]?(s._lView[$d]??=[]).push(i.watcher.notify):i.watcher.notify(),i}let LD=null;function Hu(){return LD}class KO{}const cr=new Z("");function qD(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 j0=/\s+/,GD=[];let H0=(()=>{class e{constructor(t,r){this._ngEl=t,this._renderer=r,this.initialClasses=GD,this.stateMap=new Map}set klass(t){this.initialClasses=null!=t?t.trim().split(j0):GD}set ngClass(t){this.rawClass="string"==typeof t?t.trim().split(j0):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(j0).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)(A(qr),A($s))};static#t=this.\u0275dir=Ee({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0})}return e})(),U0=(()=>{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 IA(e,n){return new D1(e,n??null,[])}(this.ngComponentOutletNgModule,WD(r)):this.ngComponentOutletNgModuleFactory?this.ngComponentOutletNgModuleFactory.create(WD(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)(A(Pi))};static#t=this.\u0275dir=Ee({type:e,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInputs:"ngComponentOutletInputs",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},standalone:!0,features:[xi]})}return e})();function WD(e){return e.get(ga).injector}let Nf=(()=>{class e{constructor(t,r){this._viewContainer=t,this._context=new FR,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){KD("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){KD("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)(A(Pi),A(ps))};static#t=this.\u0275dir=Ee({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return e})();class FR{constructor(){this.$implicit=null,this.ngIf=null}}function KD(e,n){if(n&&!n.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Rn(n)}'.`)}let QD=(()=>{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)(A(Pi))};static#t=this.\u0275dir=Ee({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[xi]})}return e})();let Z0=(()=>{class e{transform(t,r,i){if(null==t)return null;if(!this.supports(t))throw function Bi(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=Tn({name:"slice",type:e,pure:!1,standalone:!0})}return e})(),K0=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Gn({type:e});static#n=this.\u0275inj=Ln({})}return e})();function e3(e){return"server"===e}class t3{}class $L extends KO{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class J0 extends $L{static makeCurrent(){!function ZO(e){LD??=e}(new J0)}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 BL(){return Gu=Gu||document.querySelector("base"),Gu?Gu.getAttribute("href"):null}();return null==t?null:function jL(e){return new URL(e,document.baseURI).pathname}(t)}resetBaseElement(){Gu=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return qD(document.cookie,n)}}let Gu=null,UL=(()=>{class e{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=te({token:e,factory:e.\u0275fac})}return e})();const Rf=new Z("");let d3=(()=>{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 k(5101,!1);return this._eventNameToPlugin.set(t,r),r}static#e=this.\u0275fac=function(r){return new(r||e)(X(Rf),X(st))};static#t=this.\u0275prov=te({token:e,factory:e.\u0275fac})}return e})();class ey{constructor(n){this._doc=n}}const ty="ng-app-id";let h3=(()=>{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=e3(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[${ty}="${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(ty),s;{const o=this.doc.createElement("style");return this.nonce&&o.setAttribute("nonce",this.nonce),o.textContent=r,this.platformIsServer&&o.setAttribute(ty,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)(X(cr),X(yl),X(V2,8),X(mo))};static#t=this.\u0275prov=te({token:e,factory:e.\u0275fac})}return e})();const ny={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"},ry=/%COMP%/g,WL=new Z("",{providedIn:"root",factory:()=>!0});function p3(e,n){return n.map(t=>t.replace(ry,e))}let iy=(()=>{class e{constructor(t,r,i,s,o,a,l,c=null){this.eventManager=t,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=s,this.doc=o,this.platformId=a,this.ngZone=l,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=e3(a),this.defaultRenderer=new sy(t,o,l,this.platformIsServer)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Ti.ShadowDom&&(r={...r,encapsulation:Ti.Emulated});const i=this.getOrCreateRenderer(t,r);return i instanceof m3?i.applyToHost(t):i instanceof oy&&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,l=this.eventManager,c=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case Ti.Emulated:s=new m3(l,c,r,this.appId,u,o,a,d);break;case Ti.ShadowDom:return new QL(l,c,t,r,o,a,this.nonce,d);default:s=new oy(l,c,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)(X(d3),X(h3),X(yl),X(WL),X(cr),X(mo),X(st),X(V2))};static#t=this.\u0275prov=te({token:e,factory:e.\u0275fac})}return e})();class sy{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(ny[t]||t,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,t){(g3(n)?n.content:n).appendChild(t)}insertBefore(n,t,r){n&&(g3(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 s=ny[i];s?n.setAttributeNS(s,t,r):n.setAttribute(t,r)}else n.setAttribute(t,r)}removeAttribute(n,t,r){if(r){const i=ny[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&(vo.DashCase|vo.Important)?n.style.setProperty(t,r,i&vo.Important?"important":""):n.style[t]=r}removeStyle(n,t,r){r&vo.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=Hu().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 g3(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class QL extends sy{constructor(n,t,r,i,s,o,a,l){super(n,s,o,l),this.sharedStylesHost=t,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const c=p3(i.id,i.styles);for(const u of c){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 oy extends sy{constructor(n,t,r,i,s,o,a,l){super(n,s,o,a),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=i,this.styles=l?p3(l,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class m3 extends oy{constructor(n,t,r,i,s,o,a,l){const c=i+"-"+r.id;super(n,t,r,s,o,a,l,c),this.contentAttr=function ZL(e){return"_ngcontent-%COMP%".replace(ry,e)}(c),this.hostAttr=function KL(e){return"_nghost-%COMP%".replace(ry,e)}(c)}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 XL=(()=>{class e extends ey{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)(X(cr))};static#t=this.\u0275prov=te({token:e,factory:e.\u0275fac})}return e})(),JL=(()=>{class e extends ey{constructor(t){super(t),this.delegate=q(SD,{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)(X(cr))};static#t=this.\u0275prov=te({token:e,factory:e.\u0275fac})}return e})();const y3=["alt","control","meta","shift"],eF={"\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"},tF={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let nF=(()=>{class e extends ey{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(()=>Hu().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."),y3.forEach(c=>{const u=r.indexOf(c);u>-1&&(r.splice(u,1),o+=c+".")}),o+=s,0!=r.length||0===s.length)return null;const l={};return l.domEventName=i,l.fullKey=o,l}static matchEventFullKeyCode(t,r){let i=eF[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"),y3.forEach(o=>{o!==i&&(0,tF[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)(X(cr))};static#t=this.\u0275prov=te({token:e,factory:e.\u0275fac})}return e})();const oF=Q8(dO,"browser",[{provide:mo,useValue:"browser"},{provide:L2,useValue:function rF(){J0.makeCurrent()},multi:!0},{provide:cr,useFactory:function sF(){return function B9(e){hm=e}(document),document},deps:[]}]),aF=new Z(""),w3=[{provide:sf,useClass:class HL{addToWindow(n){Ut.getAngularTestability=(r,i=!0)=>{const s=n.findTestabilityInTree(r,i);if(null==s)throw new k(5103,!1);return s},Ut.getAllAngularTestabilities=()=>n.getAllTestabilities(),Ut.getAllAngularRootElements=()=>n.getAllRootElements(),Ut.frameworkStabilizers||(Ut.frameworkStabilizers=[]),Ut.frameworkStabilizers.push(r=>{const i=Ut.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?Hu().isShadowRoot(t)?this.findTestabilityInTree(n,t.host,!0):this.findTestabilityInTree(n,t.parentElement,!0):null)}},deps:[]},{provide:V8,useClass:p0,deps:[st,g0,sf]},{provide:p0,useClass:p0,deps:[st,g0,sf]}],b3=[{provide:Dg,useValue:"root"},{provide:ds,useFactory:function iF(){return new ds},deps:[]},{provide:Rf,useClass:XL,multi:!0,deps:[cr,st,mo]},{provide:Rf,useClass:nF,multi:!0,deps:[cr]},{provide:Rf,useClass:JL,multi:!0},iy,h3,d3,{provide:Oh,useExisting:iy},{provide:t3,useClass:UL,deps:[]},[]];let Lf=(()=>{class e{constructor(t){}static withServerTransition(t){return{ngModule:e,providers:[{provide:yl,useValue:t.appId}]}}static#e=this.\u0275fac=function(r){return new(r||e)(X(aF,12))};static#t=this.\u0275mod=Gn({type:e});static#n=this.\u0275inj=Ln({providers:[...b3,...w3],imports:[K0,hO]})}return e})(),ay=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=te({token:e,factory:function(r){let i=null;return i=r?new(r||e):X(dF),i},providedIn:"root"})}return e})(),dF=(()=>{class e extends ay{constructor(t){super(),this._doc=t}sanitize(t,r){if(null==r)return null;switch(t){case Wr.NONE:return r;case Wr.HTML:return hs(r,"HTML")?Gr(r):aw(this._doc,String(r)).toString();case Wr.STYLE:return hs(r,"Style")?Gr(r):r;case Wr.SCRIPT:if(hs(r,"Script"))return Gr(r);throw new k(5200,!1);case Wr.URL:return hs(r,"URL")?Gr(r):mh(String(r));case Wr.RESOURCE_URL:if(hs(r,"ResourceURL"))return Gr(r);throw new k(5201,!1);default:throw new k(5202,!1)}}bypassSecurityTrustHtml(t){return function aM(e){return new tM(e)}(t)}bypassSecurityTrustStyle(t){return function lM(e){return new nM(e)}(t)}bypassSecurityTrustScript(t){return function cM(e){return new rM(e)}(t)}bypassSecurityTrustUrl(t){return function uM(e){return new iM(e)}(t)}bypassSecurityTrustResourceUrl(t){return function dM(e){return new sM(e)}(t)}static#e=this.\u0275fac=function(r){return new(r||e)(X(cr))};static#t=this.\u0275prov=te({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const ly={now:()=>(ly.delegate||Date).now(),delegate:void 0};class hF extends pn{constructor(n=1/0,t=1/0,r=ly){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 l=1;l<r.length&&r[l]<=o;l+=2)a=l;a&&r.splice(0,a+1)}}}function Do(e){return this instanceof Do?(this.v=e,this):new Do(e)}function M3(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 hy(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,l){!function i(s,o,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},o)}(a,l,(o=e[s](o)).done,o.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const I3=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function A3(e){return nt(e?.then)}function x3(e){return nt(e[Ss])}function N3(e){return Symbol.asyncIterator&&nt(e?.[Symbol.asyncIterator])}function k3(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 P3=function OF(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function O3(e){return nt(e?.[P3])}function R3(e){return function T3(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(g){return Promise.resolve(g).then(h,d)}}),i[Symbol.asyncIterator]=function(){return this},i;function a(h,g){r[h]&&(i[h]=function(v){return new Promise(function(C,T){s.push([h,v,C,T])>1||l(h,v)})},g&&(i[h]=g(i[h])))}function l(h,g){try{!function c(h){h.value instanceof Do?Promise.resolve(h.value.v).then(u,d):f(s[0][2],h)}(r[h](g))}catch(v){f(s[0][3],v)}}function u(h){l("next",h)}function d(h){l("throw",h)}function f(h,g){h(g),s.shift(),s.length&&l(s[0][0],s[0][1])}}(this,arguments,function*(){const t=e.getReader();try{for(;;){const{value:r,done:i}=yield Do(t.read());if(i)return yield Do(void 0);yield yield Do(r)}}finally{t.releaseLock()}})}function L3(e){return nt(e?.getReader)}function ji(e){if(e instanceof Mt)return e;if(null!=e){if(x3(e))return function RF(e){return new Mt(n=>{const t=e[Ss]();if(nt(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(I3(e))return function LF(e){return new Mt(n=>{for(let t=0;t<e.length&&!n.closed;t++)n.next(e[t]);n.complete()})}(e);if(A3(e))return function FF(e){return new Mt(n=>{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,Ro)})}(e);if(N3(e))return F3(e);if(O3(e))return function VF(e){return new Mt(n=>{for(const t of e)if(n.next(t),n.closed)return;n.complete()})}(e);if(L3(e))return function $F(e){return F3(R3(e))}(e)}throw k3(e)}function F3(e){return new Mt(n=>{(function BF(e,n){var t,r,i,s;return function D3(e,n,t,r){return new(t||(t=Promise))(function(s,o){function a(u){try{c(r.next(u))}catch(d){o(d)}}function l(u){try{c(r.throw(u))}catch(d){o(d)}}function c(u){u.done?s(u.value):function i(s){return s instanceof t?s:new t(function(o){o(s)})}(u.value).then(a,l)}c((r=r.apply(e,n||[])).next())})}(this,void 0,void 0,function*(){try{for(t=M3(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 So(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 Vf(e,n,t=1/0){return nt(n)?Vf((r,i)=>gn((s,o)=>n(r,s,i,o))(ji(e(r,i))),t):("number"==typeof n&&(t=n),qn((r,i)=>function jF(e,n,t,r,i,s,o,a){const l=[];let c=0,u=0,d=!1;const f=()=>{d&&!l.length&&!c&&n.complete()},h=v=>c<r?g(v):l.push(v),g=v=>{s&&n.next(v),c++;let C=!1;ji(t(v,u++)).subscribe(Dn(n,T=>{i?.(T),s?h(T):n.next(T)},()=>{C=!0},void 0,()=>{if(C)try{for(c--;l.length&&c<r;){const T=l.shift();o?So(n,o,()=>g(T)):g(T)}f()}catch(T){n.error(T)}}))};return e.subscribe(Dn(n,h,()=>{d=!0,f()})),()=>{a?.()}}(r,i,e,t)))}function V3(e=1/0){return Vf(En,e)}const $3=new Mt(e=>e.complete());function B3(e){return e&&nt(e.schedule)}function fy(e){return e[e.length-1]}function $f(e){return B3(fy(e))?e.pop():void 0}function j3(e,n=0){return qn((t,r)=>{t.subscribe(Dn(r,i=>So(r,e,()=>r.next(i),n),()=>So(r,e,()=>r.complete(),n),i=>So(r,e,()=>r.error(i),n)))})}function H3(e,n=0){return qn((t,r)=>{r.add(e.schedule(()=>t.subscribe(r),n))})}function U3(e,n){if(!e)throw new Error("Iterable cannot be null");return new Mt(t=>{So(t,n,()=>{const r=e[Symbol.asyncIterator]();So(t,n,()=>{r.next().then(i=>{i.done?t.complete():t.next(i.value)})},0,!0)})})}function Wu(e,n){return n?function YF(e,n){if(null!=e){if(x3(e))return function qF(e,n){return ji(e).pipe(H3(n),j3(n))}(e,n);if(I3(e))return function WF(e,n){return new Mt(t=>{let r=0;return n.schedule(function(){r===e.length?t.complete():(t.next(e[r++]),t.closed||this.schedule())})})}(e,n);if(A3(e))return function GF(e,n){return ji(e).pipe(H3(n),j3(n))}(e,n);if(N3(e))return U3(e,n);if(O3(e))return function ZF(e,n){return new Mt(t=>{let r;return So(t,n,()=>{r=e[P3](),So(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)}),()=>nt(r?.return)&&r.return()})}(e,n);if(L3(e))return function KF(e,n){return U3(R3(e),n)}(e,n)}throw k3(e)}(e,n):ji(e)}function z3(e,n){return qn((t,r)=>{let i=null,s=0,o=!1;const a=()=>o&&!i&&r.complete();t.subscribe(Dn(r,l=>{i?.unsubscribe();let c=0;const u=s++;ji(e(l,u)).subscribe(i=Dn(r,d=>r.next(n?n(l,d,u,c++):d),()=>{i=null,a()}))},()=>{o=!0,a()}))})}const Bf={schedule(e,n){const t=setTimeout(e,n);return()=>clearTimeout(t)},scheduleBeforeRender(e){if(typeof window>"u")return Bf.schedule(e,0);if(typeof window.requestAnimationFrame>"u")return Bf.schedule(e,16);const n=window.requestAnimationFrame(e);return()=>window.cancelAnimationFrame(n)}};let py;function oV(e,n,t){let r=t;return function JF(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}(e)&&n.some((i,s)=>!("*"===i||!function tV(e,n){if(!py){const t=Element.prototype;py=t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE&&py.call(e,n)}(e,i)||(r=s,0))),r}class lV{constructor(n,t){this.componentFactory=t.get(fa).resolveComponentFactory(n)}create(n){return new cV(this.componentFactory,n)}}class cV{constructor(n,t){this.componentFactory=n,this.injector=t,this.eventEmitters=new hF(1),this.events=this.eventEmitters.pipe(z3(r=>function QF(...e){const n=$f(e),t=function zF(e,n){return"number"==typeof fy(e)?e.pop():n}(e,1/0),r=e;return r.length?1===r.length?ji(r[0]):V3(t)(Wu(r,n)):$3}(...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(st),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=Bf.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 nV(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=kt.create({providers:[],parent:this.injector}),r=function sV(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],l=oV(a,n,i);-1!==l&&r[l].push(a)}return r}(n,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,r,n),this.viewChangeDetectorRef=this.componentRef.injector.get(ec),this.implementsOnChanges=function eV(e){return"function"==typeof e}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(fi).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(gn(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=Bf.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 y_(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 uV extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}class tn{constructor(n,t){this.type=n,this.payload=t}}const Jr={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"}};class jf{constructor(){this.emitEnabled=!0,this.optionalEmitEnabled=!0,this.emitter=new en}emit(n,t){this.emitEnabled&&(!t||t&&this.optionalEmitEnabled)&&this.emitter.emit(n)}}let ln=(()=>{class e{constructor(){this.componentsStates={availableCardBrands:ct({isRequired:!1,canShowError:!1,isValid:!0,filled:!0,enabled:!0}),cardList:ct({isRequired:!1,canShowError:!1,isValid:!0,filled:!0,enabled:!0}),cardForm:ct({isRequired:!0,canShowError:!1,isValid:!0,filled:!1,enabled:!0}),additionalForm:ct({isRequired:!1,canShowError:!1,isValid:!0,filled:!1,enabled:!0}),chargeTerms:ct({isRequired:!0,canShowError:!1,isValid:!0,filled:!1,enabled:!0}),payButton:ct({isRequired:!0,canShowError:!1,isValid:!0,filled:!1,enabled:!0}),apmList:ct({isRequired:!1,canShowError:!1,isValid:!0,filled:!0,enabled:!0}),userPreferences:ct({isRequired:!0,canShowError:!1,isValid:!0,filled:!1,enabled:!0}),merchantInfo:ct({isRequired:!1,canShowError:!1,isValid:!0,filled:!0,enabled:!0}),protectedBy:ct({isRequired:!1,canShowError:!1,isValid:!0,filled:!0,enabled:!0})},this.visibility={availableCardBrands:dt(()=>this.componentsStates.availableCardBrands().enabled&&!!this.data.settings()?.components?.some(t=>"available-card-brands"===t)),cardList:dt(()=>this.componentsStates.cardList().enabled&&!!this.data.settings()?.components?.some(t=>"card-list"===t)),cardForm:dt(()=>this.componentsStates.cardForm().enabled&&!!this.data.settings()?.components?.some(t=>"requisites"===t)),additionalForm:dt(()=>this.componentsStates.cardForm().enabled&&this.componentsStates.additionalForm().enabled&&!!this.data.settings()?.components?.some(t=>"phone-number"===t)),chargeTerms:dt(()=>this.componentsStates.chargeTerms().enabled&&!!this.data.settings()?.components?.some(t=>"charge-terms"===t)&&!this.visibility.noMethods()),payButton:dt(()=>(this.componentsStates.cardList().enabled||this.componentsStates.cardForm().enabled)&&this.componentsStates.payButton().enabled&&!!this.data.settings()?.components?.some(t=>"pay-button"===t)),apmList:dt(()=>this.componentsStates.apmList().enabled&&!!this.data.settings()?.components?.some(t=>"apm-list"===t)),userPreferences:dt(()=>this.componentsStates.userPreferences().enabled&&!!this.data.settings()?.components?.some(t=>"user-preferences"===t)&&!this.visibility.noMethods()),merchantInfo:dt(()=>this.componentsStates.merchantInfo().enabled&&!!this.data.settings()?.components?.some(t=>"merchant-info"===t)),protectedBy:dt(()=>this.componentsStates.protectedBy().enabled&&!!this.data.settings()?.components?.some(t=>"protected-by"===t)),noMethods:dt(()=>!this.componentsStates.cardForm().enabled&&!this.componentsStates.cardList().enabled&&!this.componentsStates.apmList().enabled)},this.data={payment:ct(void 0),settings:ct(void 0),userProvidedInfo:ct(void 0),loadedSettings:ct([]),state:ct({type:"empty",payload:void 0}),paymentSystemsLoading:ct(!1),cardsLoading:ct(!1)},this.computed={isLoading:dt(()=>this.data.paymentSystemsLoading()||this.data.cardsLoading()),paymentAvailability:dt(()=>{const t=this.data.settings(),r={canPay:{byCard:!1,byApm:!1},isPayButtonDisabled:!1};if(!t)return r;let i=!0,s=!0;for(let o in this.componentsStates)if(this.componentsStates.hasOwnProperty(o)){const a=this.componentsStates[o]();i=i&&(a.isValid||!a.enabled),s=s&&(a.filled||!a.enabled),"chargeTerms"===o&&(!a.enabled||a.isValid)&&(r.canPay.byApm=!0)}return"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 jf,error:new jf,close:new jf,paid:new jf}}updateCanShowError(t){for(let r in this.componentsStates)this.componentsStates.hasOwnProperty(r)&&this.componentsStates[r].update(i=>({...i,canShowError:t}))}updateCanShowErrorForApm(t){this.componentsStates.chargeTerms.update(r=>({...r,canShowError:t}))}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=te({token:e,factory:e.\u0275fac})}return e})();function Hf(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}function gy(e,...n){if(!n.length)return e;const t=n.shift();if(Hf(e)&&Hf(t))for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){const i=t[r];e[r]=Hf(i)&&Hf(e[r])?gy(e[r],i):i}return gy(e,...n)}function hV(...e){return gy({},...e)}function q3(e){return"string"==typeof e||e instanceof String?JSON.parse(e):e}const G3={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"},pV={urls:{},availableCardBrands:["mastercard","visa"],chargeTerms:void 0,isCloseButtonVisible:!0,isProblemTipsListVisible:!1,isSignatureRequired:!1,isHeaderVisible:!0,closePaymentRedirect:!0,languageSettings:{code:"en-US",languages:{"en-US":G3,"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"},"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"}}},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};var W3=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}(W3||{});function Z3(){const e=screen.height||window.innerHeight,n=screen.width||window.innerWidth,t=W3.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}}function mV(e,n){if(1&e&&(G(0,"div",1),vt(1,"img",2),W()),2&e){const t=J();P(),ie("src",t.src,eu)("alt",t.alt)}}let rc=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=zt({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&&et(0,mV,2,2,"div",0),2&r&&ie("ngIf",i.src)},dependencies:[Nf],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 ic=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}(ic||{});const sc_customHeaders_skipToastr="X-Skip-Toastr";let yV=(()=>{class e{transform(t){const r=ic[t];let i=r?.toString();if(i&&(r==ic.visa&&(i+="-brand"),r==ic.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=Tn({name:"brandLogo",type:e,pure:!0})}return e})();function vV(e,n){1&e&&vt(0,"moto-picture",4),2&e&&ie("src",n)}function _V(e,n){if(1&e&&(et(0,vV,1,1,"moto-picture",4),Bt(1,"brandLogo")),2&e){let t;ut((t=Pu(1,1,n.$implicit))?0:-1,t)}}let Y3=(()=>{class e{constructor(t){this.context=t}ngOnInit(){this.settings=this.context.data.settings}static#e=this.\u0275fac=function(r){return new(r||e)(A(ln))};static#t=this.\u0275cmp=zt({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&&(hi(0),G(1,"div",0)(2,"div",1)(3,"h6",2),De(4),W()(),G(5,"div",3),Fi(6,_V,2,3,null,null,js),W()()),2&r){const s=i.settings();P(4),qt(" ",s.language.availableCardBrandsHeader," "),P(2),Vi(s.availableCardBrands)}},dependencies:[rc,yV],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 wV{constructor(n,t=!1){this.item=n,this.selected=t}setSelected(n){this.selected=n}}var we=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}(we||{});const zs="*";function oc(e,n){return{type:we.Trigger,name:e,definitions:n,options:{}}}function Hi(e,n=null){return{type:we.Animate,styles:n,timings:e}}function cn(e){return{type:we.Style,styles:e,offset:null}}function Zu(e,n,t){return{type:we.State,name:e,styles:n,options:t}}function Ui(e,n,t=null){return{type:we.Transition,expr:e,animation:n,options:t}}class Ku{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 Q3{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 Yu_animation_defaultAnimateMc=0;class yy{constructor(n){this.animationTime=Yu_animation_defaultAnimateMc,Object.assign(this,n)}}const TV=oc("ANHeight",[Ui(":enter",[cn({overflow:"hidden",height:"0px"}),Hi(Yu_animation_defaultAnimateMc,cn({height:"*",overflow:"hidden"}))]),Ui(":leave",[cn({height:"*",overflow:"hidden"}),Hi(Yu_animation_defaultAnimateMc,cn({height:"0px",overflow:"hidden"}))])]),MV=oc("ANScale",[Ui(":enter",[cn({opacity:0,transform:"scale(0)"}),Hi(Yu_animation_defaultAnimateMc,cn({opacity:1,transform:"scale(1)"}))]),Ui(":leave",Hi(Yu_animation_defaultAnimateMc,cn({opacity:0,transform:"scale(0)"})))]),vy=e=>{const n=new yy({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 oc(r,[Ui(":enter",[cn(s),Hi(i,cn(o))]),Ui(":leave",[cn(o),Hi(i,cn(s))])])},IV=e=>{const n=new yy({animationName:"ANStates",fromState:"a",toState:"b"}),t=Object.assign(n,e),{animationName:r,animationTime:i,fromStyles:s,toStyles:o,fromState:a,toState:l}=t;return oc(r,[Zu(a,cn(s)),Zu(l,cn(o)),Ui(`${a}<=>${l}`,Hi(i))])},AV=e=>{const n=new yy({animationName:"ANStates"}),t=Object.assign(n,e),{animationName:r,animationTime:i,fromStyles:s,toStyles:o}=t;return oc(r,[Ui(":enter",[cn(s),Hi(i,cn(o))]),Ui(":leave",[cn(o),Hi(i,cn(s))])])};function To(...e){return Wu(e,$f(e))}function Uf(e){return qn((n,t)=>{let s,r=null,i=!1;r=n.subscribe(Dn(t,void 0,void 0,o=>{s=ji(e(o,Uf(e)(n))),r?(r.unsubscribe(),r=null,s.subscribe(t)):i=!0})),i&&(r.unsubscribe(),r=null,s.subscribe(t))})}function X3(e,n,t,r,i,s,o){try{var a=e[s](o),l=a.value}catch(c){return void t(c)}a.done?n(l):Promise.resolve(l).then(r,i)}function zf(e){return function(){var n=this,t=arguments;return new Promise(function(r,i){var s=e.apply(n,t);function o(l){X3(s,r,i,o,a,"next",l)}function a(l){X3(s,r,i,o,a,"throw",l)}o(void 0)})}}function J3(e,n){return nt(n)?Vf(e,n,1):Vf(e,1)}function e4(e,n){return qn((t,r)=>{let i=0;t.subscribe(Dn(r,s=>e.call(n,s,i++)&&r.next(s)))})}class qf{}class Gf{}class ei{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 ei?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 ei;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof ei?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 NV{encodeKey(n){return t4(n)}encodeValue(n){return t4(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const PV=/%(\d[a-f0-9])/gi,OV={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function t4(e){return encodeURIComponent(e).replace(PV,(n,t)=>OV[t]??n)}function Wf(e){return`${e}`}class qs{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new NV,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function kV(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))],l=t.get(o)||[];l.push(a),t.set(o,l)}),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(Wf):[Wf(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 qs({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(Wf(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(Wf(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 RV{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 n4(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function r4(e){return typeof Blob<"u"&&e instanceof Blob}function i4(e){return typeof FormData<"u"&&e instanceof FormData}class Qu{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 LV(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 ei,this.context??=new RV,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 qs,this.urlWithParams=t}serializeBody(){return null===this.body?null:"string"==typeof this.body||n4(this.body)||r4(this.body)||i4(this.body)||function FV(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}(this.body)?this.body:this.body instanceof qs?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||i4(this.body)?null:r4(this.body)?this.body.type||null:n4(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof qs?"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,l=n.reportProgress??this.reportProgress;let c=n.headers||this.headers,u=n.params||this.params;const d=n.context??this.context;return void 0!==n.setHeaders&&(c=Object.keys(n.setHeaders).reduce((f,h)=>f.set(h,n.setHeaders[h]),c)),n.setParams&&(u=Object.keys(n.setParams).reduce((f,h)=>f.set(h,n.setParams[h]),u)),new Qu(t,r,o,{params:u,headers:c,context:d,reportProgress:l,responseType:i,withCredentials:a,transferCache:s})}}var Mo=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}(Mo||{});class _y{constructor(n,t=200,r="OK"){this.headers=n.headers||new ei,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 Zf extends _y{constructor(n={}){super(n),this.type=Mo.ResponseHeader}clone(n={}){return new Zf({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 Ca extends _y{constructor(n={}){super(n),this.type=Mo.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new Ca({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 ac extends _y{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 wy(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 Kf=(()=>{class e{constructor(t){this.handler=t}request(t,r,i={}){let s;if(t instanceof Qu)s=t;else{let l,c;l=i.headers instanceof ei?i.headers:new ei(i.headers),i.params&&(c=i.params instanceof qs?i.params:new qs({fromObject:i.params})),s=new Qu(t,r,void 0!==i.body?i.body:null,{headers:l,context:i.context,params:c,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache})}const o=To(s).pipe(J3(l=>this.handler.handle(l)));if(t instanceof Qu||"events"===i.observe)return o;const a=o.pipe(e4(l=>l instanceof Ca));switch(i.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(gn(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(gn(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(gn(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(gn(l=>l.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 qs).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,wy(i,r))}post(t,r,i={}){return this.request("POST",t,wy(i,r))}put(t,r,i={}){return this.request("PUT",t,wy(i,r))}static#e=this.\u0275fac=function(r){return new(r||e)(X(qf))};static#t=this.\u0275prov=te({token:e,factory:e.\u0275fac})}return e})();const BV=/^\)\]\}',?\n/;function o4(e){if(e.url)return e.url;const n="X-Request-URL".toLocaleLowerCase();return e.headers.get(n)}let by=(()=>{class e{constructor(){this.fetchImpl=q(HV,{optional:!0})?.fetch??((...t)=>globalThis.fetch(...t)),this.ngZone=q(st)}handle(t){return new Mt(r=>{const i=new AbortController;return this.doRequest(t,i.signal,r).then(Cy,s=>r.error(new ac({error:s}))),()=>i.abort()})}doRequest(t,r,i){var s=this;return zf(function*(){const o=s.createRequestInit(t);let a;try{const g=s.ngZone.runOutsideAngular(()=>s.fetchImpl(t.urlWithParams,{signal:r,...o}));(function UV(e){e.then(Cy,Cy)})(g),i.next({type:Mo.Sent}),a=yield g}catch(g){return void i.error(new ac({error:g,status:g.status??0,statusText:g.statusText,url:t.urlWithParams,headers:g.headers}))}const l=new ei(a.headers),c=a.statusText,u=o4(a)??t.urlWithParams;let d=a.status,f=null;if(t.reportProgress&&i.next(new Zf({headers:l,status:d,statusText:c,url:u})),a.body){const g=a.headers.get("content-length"),v=[],C=a.body.getReader();let D,F,T=0;const L=typeof Zone<"u"&&Zone.current;yield s.ngZone.runOutsideAngular(zf(function*(){for(;;){const{done:U,value:ce}=yield C.read();if(U)break;if(v.push(ce),T+=ce.length,t.reportProgress){F="text"===t.responseType?(F??"")+(D??=new TextDecoder).decode(ce,{stream:!0}):void 0;const Fe=()=>i.next({type:Mo.DownloadProgress,total:g?+g:void 0,loaded:T,partialText:F});L?L.run(Fe):Fe()}}}));const H=s.concatChunks(v,T);try{const U=a.headers.get("Content-Type")??"";f=s.parseBody(t,H,U)}catch(U){return void i.error(new ac({error:U,headers:new ei(a.headers),status:a.status,statusText:a.statusText,url:o4(a)??t.urlWithParams}))}}0===d&&(d=f?200:0),d>=200&&d<300?(i.next(new Ca({body:f,headers:l,status:d,statusText:c,url:u})),i.complete()):i.error(new ac({error:f,headers:l,status:d,statusText:c,url:u}))})()}parseBody(t,r,i){switch(t.responseType){case"json":const s=(new TextDecoder).decode(r).replace(BV,"");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=te({token:e,factory:e.\u0275fac})}return e})();class HV{}function Cy(){}function a4(e,n){return n(e)}const Xu=new Z(""),l4=new Z(""),c4=new Z("",{providedIn:"root",factory:()=>!0});let u4=(()=>{class e extends qf{constructor(t,r){super(),this.backend=t,this.injector=r,this.chain=null,this.pendingTasks=q(ia),this.contributeToStability=q(c4)}handle(t){if(null===this.chain){const r=Array.from(new Set([...this.injector.get(Xu),...this.injector.get(l4,[])]));this.chain=r.reduceRight((i,s)=>function qV(e,n,t){return(r,i)=>function iT(e,n){e instanceof il&&e.assertNotDestroyed();const r=ho(e),i=xr(void 0);try{return n()}finally{ho(r),xr(i)}}(t,()=>n(r,s=>e(s,i)))}(i,s,this.injector),a4)}if(this.contributeToStability){const r=this.pendingTasks.add();return this.chain(t,i=>this.backend.handle(i)).pipe(function xV(e){return qn((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)(X(Gf),X(li))};static#t=this.\u0275prov=te({token:e,factory:e.\u0275fac})}return e})();const XV=/^\)\]\}',?\n/;let h4=(()=>{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?Wu(r.\u0275loadImpl()):To(null)).pipe(z3(()=>new Mt(s=>{const o=r.build();if(o.open(t.method,t.urlWithParams),t.withCredentials&&(o.withCredentials=!0),t.headers.forEach((v,C)=>o.setRequestHeader(v,C.join(","))),t.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const v=t.detectContentTypeHeader();null!==v&&o.setRequestHeader("Content-Type",v)}if(t.responseType){const v=t.responseType.toLowerCase();o.responseType="json"!==v?v:"text"}const a=t.serializeBody();let l=null;const c=()=>{if(null!==l)return l;const v=o.statusText||"OK",C=new ei(o.getAllResponseHeaders()),T=function JV(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 l=new Zf({headers:C,status:o.status,statusText:v,url:T}),l},u=()=>{let{headers:v,status:C,statusText:T,url:D}=c(),F=null;204!==C&&(F=typeof o.response>"u"?o.responseText:o.response),0===C&&(C=F?200:0);let L=C>=200&&C<300;if("json"===t.responseType&&"string"==typeof F){const H=F;F=F.replace(XV,"");try{F=""!==F?JSON.parse(F):null}catch(U){F=H,L&&(L=!1,F={error:U,text:F})}}L?(s.next(new Ca({body:F,headers:v,status:C,statusText:T,url:D||void 0})),s.complete()):s.error(new ac({error:F,headers:v,status:C,statusText:T,url:D||void 0}))},d=v=>{const{url:C}=c(),T=new ac({error:v,status:o.status||0,statusText:o.statusText||"Unknown Error",url:C||void 0});s.error(T)};let f=!1;const h=v=>{f||(s.next(c()),f=!0);let C={type:Mo.DownloadProgress,loaded:v.loaded};v.lengthComputable&&(C.total=v.total),"text"===t.responseType&&o.responseText&&(C.partialText=o.responseText),s.next(C)},g=v=>{let C={type:Mo.UploadProgress,loaded:v.loaded};v.lengthComputable&&(C.total=v.total),s.next(C)};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",g)),o.send(a),s.next({type:Mo.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",g)),o.readyState!==o.DONE&&o.abort()}})))}static#e=this.\u0275fac=function(r){return new(r||e)(X(t3))};static#t=this.\u0275prov=te({token:e,factory:e.\u0275fac})}return e})();const Ey=new Z(""),f4=new Z("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),p4=new Z("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class g4{}let n$=(()=>{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=qD(t,this.cookieName),this.lastCookieString=t),this.lastToken}static#e=this.\u0275fac=function(r){return new(r||e)(X(cr),X(mo),X(f4))};static#t=this.\u0275prov=te({token:e,factory:e.\u0275fac})}return e})();function r$(e,n){const t=e.url.toLowerCase();if(!q(Ey)||"GET"===e.method||"HEAD"===e.method||t.startsWith("http://")||t.startsWith("https://"))return n(e);const r=q(g4).getToken(),i=q(p4);return null!=r&&!e.headers.has(i)&&(e=e.clone({headers:e.headers.set(i,r)})),n(e)}var Io=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}(Io||{});function i$(...e){const n=[Kf,h4,u4,{provide:qf,useExisting:u4},{provide:Gf,useFactory:()=>q(by,{optional:!0})??q(h4)},{provide:Xu,useValue:r$,multi:!0},{provide:Ey,useValue:!0},{provide:g4,useClass:n$}];for(const t of e)n.push(...t.\u0275providers);return rl(n)}function s$(e){return function Ea(e,n){return{\u0275kind:e,\u0275providers:n}}(Io.Interceptors,e.map(n=>({provide:Xu,useValue:n,multi:!0})))}class p$ extends at{constructor(n,t){super()}schedule(n,t=0){return this}}const Qf={setInterval(e,n,...t){const{delegate:r}=Qf;return r?.setInterval?r.setInterval(e,n,...t):setInterval(e,n,...t)},clearInterval(e){const{delegate:n}=Qf;return(n?.clearInterval||clearInterval)(e)},delegate:void 0};class Ju{constructor(n,t=Ju.now){this.schedulerActionCtor=n,this.now=t}schedule(n,t=0,r){return new this.schedulerActionCtor(this,n).schedule(r,t)}}Ju.now=ly.now;const D4=new class m$ extends Ju{constructor(n,t=Ju.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 g$ extends p${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 Qf.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&&Qf.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,Gi(r,this),null!=n&&(this.id=this.recycleAsyncId(t,n,null)),this.delay=null,super.unsubscribe()}}}),y$=D4;function S4(e=0,n,t=y$){let r=-1;return null!=n&&(B3(n)?t=n:r=n),new Mt(i=>{let s=function v$(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 T4(e,n){const t=nt(e)?e:()=>e,r=i=>i.error(t());return new Mt(n?i=>n.schedule(r,0,i):r)}function Dy(e){return new qs({fromObject:e})}function M4(e){const n=Object.entries(e).reduce((t,[r,i])=>(t[r]=String(i),t),{});return new ei(n)}const I4="Watchdog fake error";function Da(e,n){return`${e.endsWith("/")?e.slice(0,-1):e}${n.startsWith("/")?n:`/${n}`}`}let A4=(()=>{class e{constructor(t,r){this.http=t,this.context=r}getExistingCards(){const{merchantId:t,userAuthToken:r}=this.context.data.payment();if(!r)return To([]);const i=Dy({merchantId:t}),s=M4({[sc_customHeaders_skipToastr]:!0}),o=Da(this.host(),"/api/UserPaymentMethods");return this.http.get(o,{params:i,headers:s}).pipe(gn(a=>a.map(l=>({...l,name:l.name.toLocaleLowerCase(),type:l.type.toLocaleLowerCase()}))),gn(a=>a.filter(l=>"card"===l.type)),Uf(()=>To([])))}removeCard(t){const{merchantId:r}=this.context.data.payment(),i=Dy({merchantId:r}),s=Da(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)(X(Kf),X(ln))};static#t=this.\u0275prov=te({token:e,factory:e.\u0275fac})}return e})();const x4=["toast-component",""];function b$(e,n){if(1&e){const t=ar();G(0,"button",5),Ke("click",function(){return ft(t),pt(J().remove())}),G(1,"span",6),De(2,"\xd7"),W()()}}function C$(e,n){if(1&e&&(Wl(0),De(1),Zl()),2&e){const t=J(2);P(),qt("[",t.duplicatesCount+1,"]")}}function E$(e,n){if(1&e&&(G(0,"div"),De(1),et(2,C$,2,1,"ng-container",4),W()),2&e){const t=J();Bs(t.options.titleClass),er("aria-label",t.title),P(),qt(" ",t.title," "),P(),ie("ngIf",t.duplicatesCount)}}function D$(e,n){if(1&e&&vt(0,"div",7),2&e){const t=J();Bs(t.options.messageClass),ie("innerHTML",t.message,yo)}}function S$(e,n){if(1&e&&(G(0,"div",8),De(1),W()),2&e){const t=J();Bs(t.options.messageClass),er("aria-label",t.message),P(),qt(" ",t.message," ")}}function T$(e,n){if(1&e&&(G(0,"div"),vt(1,"div",9),W()),2&e){const t=J();P(),Gl("width",t.width()+"%")}}class P${_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 O${_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 R${_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new pn;_activate=new pn;_manualClose=new pn;_resetTimeout=new pn;_countDuplicate=new pn;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 Xf{toastId;config;message;title;toastType;toastRef;_onTap=new pn;_onAction=new pn;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 k4=new Z("ToastConfig");class L$ extends O${_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 F$=(()=>{class e{_document=q(cr);_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=te({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class V${_portalHost;constructor(n){this._portalHost=n}attach(n,t=!0){return this._portalHost.attach(n,t)}detach(){return this._portalHost.detach()}}let $$=(()=>{class e{_overlayContainer=q(F$);_componentFactoryResolver=q(fa);_appRef=q(fi);_document=q(cr);_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 L$(t,this._componentFactoryResolver,this._appRef)}_createOverlayRef(t){return new V$(this._createPortalHost(t))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=te({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Jf=(()=>{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 l=this.overlay.create(s.positionClass,this.overlayContainer);this.index=this.index+1;let c=r;r&&s.enableHtml&&(c=this.sanitizer.sanitize(Wr.HTML,r));const u=new R$(l),d=new Xf(this.index,s,c,i,t,u),h=kt.create({providers:[{provide:Xf,useValue:d}],parent:this._injector}),g=new P$(s.toastComponent,h),v=l.attach(g,s.newestOnTop);u.componentInstance=v.instance;const C={toastId:this.index,title:i||"",message:r||"",toastRef:u,onShown:u.afterActivate(),onHidden:u.afterClosed(),onTap:d.onTap(),onAction:d.onAction(),portal:v};return a||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{C.toastRef.activate()})),this.toasts.push(C),C}static \u0275fac=function(r){return new(r||e)(X(k4),X($$),X(kt),X(ay),X(st))};static \u0275prov=te({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const B$={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=ct(-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=ct({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)(A(Jf),A(Xf),A(st))};static \u0275cmp=zt({type:e,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(r,i){1&r&&Ke("click",function(){return i.tapToast()})("mouseenter",function(){return i.stickAround()})("mouseleave",function(){return i.delayedHideToast()}),2&r&&(Kh("@flyInOut",i._state),Bs(i.toastClasses),Gl("display",i.displayStyle))},standalone:!0,features:[o0],attrs:x4,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&&et(0,b$,3,0,"button",0)(1,E$,3,5,"div",1)(2,D$,1,3,"div",2)(3,S$,2,4,"div",3)(4,T$,2,2,"div",4),2&r&&(ie("ngIf",i.options.closeButton),P(),ie("ngIf",i.title),P(),ie("ngIf",i.message&&i.options.enableHtml),P(),ie("ngIf",i.message&&!i.options.enableHtml),P(),ie("ngIf",i.options.progressBar))},dependencies:[Nf],encapsulation:2,data:{animation:[oc("flyInOut",[Zu("inactive",cn({opacity:0})),Zu("active",cn({opacity:1})),Zu("removed",cn({opacity:0})),Ui("inactive => active",Hi("{{ easeTime }}ms {{ easing }}")),Ui("active => removed",Hi("{{ easeTime }}ms {{ easing }}"))])]},changeDetection:0})}return e})()},j$=(e={})=>rl([{provide:k4,useValue:{default:B$,config:e}}]);let H$=(()=>{class e{static forRoot(t={}){return{ngModule:e,providers:[j$(t)]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=Gn({type:e});static \u0275inj=Ln({})}return e})();var U$=ue(634),P4=ue.n(U$),O4=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}(O4||{});let Sy=(()=>{class e{transform(t,r,i=null,s=null){const[o]=P4()(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 O4[o.type];case"code":if(s){const l=s[o.code.name];if(l)return l}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/${ic[t.type]||ic.default}.svg`}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275pipe=Tn({name:"cardInfo",type:e,pure:!0})}return e})(),R4=(()=>{class e{constructor(){this.selectEvent=new en,this.removeEvent=new en,this.optionsClickedEvent=new en,this.isOpenPopup=!1,this.popupId=function gV(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(){this.optionsClickedEvent.emit(this.option),this.isOpenPopup=!this.isOpenPopup}select(){this.option.selected||this.selectEvent.emit(this.option)}remove(){this.removeEvent.emit(this.option.item),this.isOpenPopup=!1}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=zt({type:e,selectors:[["moto-card"]],hostBindings:function(r,i){1&r&&Ke("click",function(o){return i.hidePopup(o.target)},0,fw)},inputs:{option:"option",language:"language"},outputs:{selectEvent:"select",removeEvent:"remove",optionsClickedEvent:"optionsClicked"},decls:18,vars:26,consts:[[1,"__ndb-card"],["data-locator","card-active-circle",1,"__ndb-card-active-circle",3,"click","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&&(G(0,"div",0)(1,"div",1),Bt(2,"slice"),Ke("click",function(){return i.select()}),W(),vt(3,"moto-picture",2),Bt(4,"cardInfo"),G(5,"span",3),De(6),Bt(7,"cardInfo"),W(),G(8,"span",4),De(9),Bt(10,"slice"),W(),G(11,"div",5)(12,"i",6),Ke("click",function(){return i.onOptionsClick()}),De(13,"more_vert"),W(),G(14,"div",7)(15,"span",8),Bt(16,"slice"),Ke("click",function(){return i.remove()}),De(17),W()()()()),2&r&&(P(),Oi("selected",i.option.selected),ie("id","select-card-"+lr(2,11,i.option.item.name,-6)+"-button"),P(2),ie("src",lr(4,14,i.option.item.name,"logo")),P(3),tr(lr(7,17,i.option.item.name,"payment-system")),P(3),tr(lr(10,20,i.option.item.name,-6)),P(2),er("data-card-popup",i.popupId),P(3),Oi("open",i.isOpenPopup),P(),ie("id","remove-card-"+lr(16,23,i.option.item.name,-6)+"-button"),P(2),tr(i.language.existingCards.removeCard))},dependencies:[rc,Z0,Sy],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 z$(e,n){if(1&e){const t=ar();G(0,"moto-card",8),Ke("select",function(i){return ft(t),pt(J().selectCard(i))})("remove",function(i){return ft(t),pt(J().removeCard(i))})("optionsClicked",function(i){return ft(t),pt(J().onOptionsClick(i))}),W()}if(2&e){const t=n.$implicit;J();const r=Hn(0);ie("option",t)("language",r)}}function q$(e,n){if(1&e){const t=ar();G(0,"button",9),Ke("click",function(){return ft(t),pt(J().showCardForm())})("focusin",function(){return ft(t),pt(J().onAddCardFocus())}),G(1,"i",10),De(2,"add"),W(),G(3,"span",11),De(4),W()()}if(2&e){J();const t=Hn(0);P(4),tr(t.existingCards.addNewCard)}}let Ty=(()=>{class e{constructor(t,r,i){this.billingProfiles=t,this.context=r,this.toastr=i,this.cardOptions=ct([]),this.isCardListShown=ct(!1)}ngOnInit(){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.refresh()}showCardForm(){this.context.events.analytics.emit(new tn("add-card-button-click")),this.isCardListShown.set(!1),this.cardFormState.update(t=>({...t,enabled:!0})),this.context.data.userProvidedInfo.set(void 0),this.resetSelected()}getSelectedCard(){return this.cardOptions().find(t=>t.selected)}removeCard(t){this.context.events.analytics.emit(new tn("remove-card-button-click",{last4Digits:t.name.slice(-4)})),this.billingProfiles.removeCard(t.id).subscribe(r=>{this.refresh();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 tn("cards-toggle-button-click",{toggle:this.isCardListShown()}))}onOptionsClick(t){this.context.events.analytics.emit(new tn("card-options-button-click",{last4Digits:t.item.name.slice(-4)}))}selectCard(t){this.context.events.analytics.emit(new tn("select-card-button-click",{last4Digits:t.item.name.slice(-4)})),this.selectCardImpl(t)}onAddCardFocus(){this.context.events.analytics.emit(new tn("add-card-button-focus"),!0)}refresh(){this.context.data.cardsLoading.set(!0),this.billingProfiles.getExistingCards().pipe(gn(t=>t.concat().sort(r=>r.isDefault?-1:1).map(r=>new wV(r)))).subscribe(t=>{t.length?(this.cardFormState.update(r=>({...r,enabled:!1})),this.cardOptions.set(t),this.selectCardImpl(this.cardOptions()[0])):(this.cardFormState.update(r=>({...r,enabled:!0})),this.componentState.update(r=>({...r,enabled:!1})),"existing-card"===this.context.data.userProvidedInfo()?.requisites?.type&&this.context.data.userProvidedInfo.set(void 0)),this.context.data.cardsLoading.set(!1)})}selectCardImpl(t){this.cardOptions().find(i=>i.selected)?.setSelected(!1),t.setSelected(!0),this.context.data.userProvidedInfo.update(i=>({...i,paymentSystemName:"card",requisites:{type:"existing-card",value:t.item}})),this.cardFormState().enabled&&this.cardFormState.update(i=>({...i,enabled:!1}))}resetSelected(){this.getSelectedCard()?.setSelected(!1)}static#e=this.\u0275fac=function(r){return new(r||e)(A(A4),A(ln),A(Jf))};static#t=this.\u0275cmp=zt({type:e,selectors:[["moto-card-list"]],decls:12,vars:6,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"],["id","add-card-button",1,"full-width"],[1,"__ndb-card-list-options-item",3,"select","remove","optionsClicked","option","language"],["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=ar();hi(0),G(1,"div",0)(2,"div",1),Ke("click",function(){return ft(s),pt(i.toggleCardList())}),G(3,"span",2),De(4),W(),G(5,"i",3),De(6,"keyboard_arrow_up"),W()(),G(7,"div",4)(8,"div",5),Fi(9,z$,1,2,"moto-card",6,js),W()(),et(11,q$,5,1,"button",7),W()}if(2&r){const s=Qr(i.settings().language);P(4),tr(s.existingCards.manageCardsHeader),P(),Oi("active",i.isCardListShown()),P(2),ie("@ANToggleList",i.isCardListShown()?"show":"hide"),P(2),Vi(i.cardOptions()),P(2),ut(i.isCardFormVisible()?-1:11)}},dependencies:[R4],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:[TV,MV,IV({animationName:"ANToggleList",fromState:"hide",toState:"show",fromStyles:{height:"0px",overflow:"hidden"},toStyles:{height:"*"}})]},changeDetection:0})}return e})();function L4(e,n=D4){return qn((t,r)=>{let i=null,s=null,o=null;const a=()=>{if(i){i.unsubscribe(),i=null;const c=s;s=null,r.next(c)}};function l(){const c=o+e,u=n.now();if(u<c)return i=this.schedule(void 0,c-u),void r.add(i);a()}t.subscribe(Dn(r,c=>{s=c,o=n.now(),i||(i=n.schedule(l,e),r.add(i))},()=>{a(),r.complete()},void 0,()=>{s=i=null}))})}let F4=(()=>{class e{constructor(){this.detector$=new pn}detectChanges(){this.detector$.next()}listenChangeDetection(){return this.detector$.asObservable()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=te({token:e,factory:e.\u0275fac})}return e})(),ep=(()=>{class e{constructor(t){this.injector=t,this.unsubscriber$=new pn,this.childrenDetector$=new pn}ngOnDestroy(){this.unsubscribe()}listenChildrenDetection(t){const r="local"===t,i="global"===t,s="full"===t;this.childrenDetector$.asObservable().pipe(L4(10),this.untilDestroy()).subscribe(()=>{(r||s)&&this.localDetect(),(i||s)&&this.globalDetect()})}localDetect(){this.injector.get(ec).detectChanges()}globalDetect(){this.injector.get(F4).detectChanges()}detect(){this.localDetect(),this.globalDetect()}untilDestroy(){return function G$(e){return qn((n,t)=>{ji(e).subscribe(Dn(t,()=>t.complete(),Lo)),!t.closed&&n.subscribe(t)})}(this.unsubscriber$.asObservable())}unsubscribe(){this.unsubscriber$.next()}static#e=this.\u0275fac=function(r){return new(r||e)(A(kt))};static#t=this.\u0275cmp=zt({type:e,selectors:[["ng-component"]],decls:0,vars:0,template:function(r,i){},encapsulation:2})}return e})();const{isArray:W$}=Array,{getPrototypeOf:Z$,prototype:K$,keys:Y$}=Object;const{isArray:J$}=Array;function nB(e,n){return e.reduce((t,r,i)=>(t[r]=n[i],t),{})}function rB(...e){const n=function UF(e){return nt(fy(e))?e.pop():void 0}(e),{args:t,keys:r}=function Q$(e){if(1===e.length){const n=e[0];if(W$(n))return{args:n,keys:null};if(function X$(e){return e&&"object"==typeof e&&Z$(e)===K$}(n)){const t=Y$(n);return{args:t.map(r=>n[r]),keys:t}}}return{args:e,keys:null}}(e),i=new Mt(s=>{const{length:o}=t;if(!o)return void s.complete();const a=new Array(o);let l=o,c=o;for(let u=0;u<o;u++){let d=!1;ji(t[u]).subscribe(Dn(s,f=>{d||(d=!0,c--),a[u]=f},()=>l--,void 0,()=>{(!l||!d)&&(c||s.next(r?nB(r,a):a),s.complete())}))}});return n?i.pipe(function tB(e){return gn(n=>function eB(e,n){return J$(n)?e(...n):e(n)}(e,n))}(n)):i}let V4=(()=>{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)(A($s),A(qr))};static#t=this.\u0275dir=Ee({type:e})}return e})(),Sa=(()=>{class e extends V4{static#e=this.\u0275fac=(()=>{let t;return function(i){return(t||(t=Jn(e)))(i||e)}})();static#t=this.\u0275dir=Ee({type:e,features:[ot]})}return e})();const mi=new Z(""),iB={provide:mi,useExisting:bt(()=>tp),multi:!0};let tp=(()=>{class e extends Sa{writeValue(t){this.setProperty("checked",t)}static#e=this.\u0275fac=(()=>{let t;return function(i){return(t||(t=Jn(e)))(i||e)}})();static#t=this.\u0275dir=Ee({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,i){1&r&&Ke("change",function(o){return i.onChange(o.target.checked)})("blur",function(){return i.onTouched()})},features:[$t([iB]),ot]})}return e})();const sB={provide:mi,useExisting:bt(()=>np),multi:!0},aB=new Z("");let np=(()=>{class e extends V4{constructor(t,r,i){super(t,r),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function oB(){const e=Hu()?Hu().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)(A($s),A(qr),A(aB,8))};static#t=this.\u0275dir=Ee({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&&Ke("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:[$t([sB]),ot]})}return e})();function Ao(e){return null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}function $4(e){return null!=e&&"number"==typeof e.length}const nr=new Z(""),xo=new Z(""),lB=/^(?=.{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 _s{static min(n){return function B4(e){return n=>{if(Ao(n.value)||Ao(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 j4(e){return n=>{if(Ao(n.value)||Ao(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 H4(e){return Ao(e.value)?{required:!0}:null}(n)}static requiredTrue(n){return function U4(e){return!0===e.value?null:{required:!0}}(n)}static email(n){return function z4(e){return Ao(e.value)||lB.test(e.value)?null:{email:!0}}(n)}static minLength(n){return q4(n)}static maxLength(n){return G4(n)}static pattern(n){return function W4(e){if(!e)return rp;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(Ao(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 J4(n)}static composeAsync(n){return eS(n)}}function q4(e){return n=>Ao(n.value)||!$4(n.value)?null:n.value.length<e?{minlength:{requiredLength:e,actualLength:n.value.length}}:null}function G4(e){return n=>$4(n.value)&&n.value.length>e?{maxlength:{requiredLength:e,actualLength:n.value.length}}:null}function rp(e){return null}function Z4(e){return null!=e}function K4(e){return af(e)?Wu(e):e}function Y4(e){let n={};return e.forEach(t=>{n=null!=t?{...n,...t}:n}),0===Object.keys(n).length?null:n}function Q4(e,n){return n.map(t=>t(e))}function X4(e){return e.map(n=>function cB(e){return!e.validate}(n)?n:t=>n.validate(t))}function J4(e){if(!e)return null;const n=e.filter(Z4);return 0==n.length?null:function(t){return Y4(Q4(t,n))}}function My(e){return null!=e?J4(X4(e)):null}function eS(e){if(!e)return null;const n=e.filter(Z4);return 0==n.length?null:function(t){return rB(Q4(t,n).map(K4)).pipe(gn(Y4))}}function Iy(e){return null!=e?eS(X4(e)):null}function tS(e,n){return null===e?[n]:Array.isArray(e)?[...e,n]:[e,n]}function nS(e){return e._rawValidators}function rS(e){return e._rawAsyncValidators}function Ay(e){return e?Array.isArray(e)?e:[e]:[]}function ip(e,n){return Array.isArray(e)?e.includes(n):e===n}function iS(e,n){const t=Ay(n);return Ay(e).forEach(i=>{ip(t,i)||t.push(i)}),t}function sS(e,n){return Ay(n).filter(t=>!ip(e,t))}class oS{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=My(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=Iy(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 wr extends oS{get formDirective(){return null}get path(){return null}}class Gs extends oS{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class aS{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 lc=(()=>{class e extends aS{constructor(t){super(t)}static#e=this.\u0275fac=function(r){return new(r||e)(A(Gs,2))};static#t=this.\u0275dir=Ee({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,i){2&r&&Oi("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:[ot]})}return e})(),sp=(()=>{class e extends aS{constructor(t){super(t)}static#e=this.\u0275fac=function(r){return new(r||e)(A(wr,10))};static#t=this.\u0275dir=Ee({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,i){2&r&&Oi("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:[ot]})}return e})();const ed="VALID",ap="INVALID",cc="PENDING",td="DISABLED";class uc{}class cS extends uc{constructor(n,t){super(),this.value=n,this.source=t}}class ky extends uc{constructor(n,t){super(),this.pristine=n,this.source=t}}class Py extends uc{constructor(n,t){super(),this.touched=n,this.source=t}}class lp extends uc{constructor(n,t){super(),this.status=n,this.source=t}}class pB extends uc{constructor(n){super(),this.source=n}}class gB extends uc{constructor(n){super(),this.source=n}}function Oy(e){return(cp(e)?e.validators:e)||null}function Ry(e,n){return(cp(n)?n.asyncValidators:e)||null}function cp(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function uS(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 dS(e,n,t){e._forEachChild((r,i)=>{if(void 0===t[i])throw new k(1002,"")})}class up{constructor(n,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=dt(()=>this.statusReactive()),this.statusReactive=ct(void 0),this._pristine=dt(()=>this.pristineReactive()),this.pristineReactive=ct(!0),this._touched=dt(()=>this.touchedReactive()),this.touchedReactive=ct(!1),this._events=new pn,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 vs(this.statusReactive)}set status(n){vs(()=>this.statusReactive.set(n))}get valid(){return this.status===ed}get invalid(){return this.status===ap}get pending(){return this.status==cc}get disabled(){return this.status===td}get enabled(){return this.status!==td}get pristine(){return vs(this.pristineReactive)}set pristine(n){vs(()=>this.pristineReactive.set(n))}get dirty(){return!this.pristine}get touched(){return vs(this.touchedReactive)}set touched(n){vs(()=>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(iS(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(iS(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(sS(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(sS(n,this._rawAsyncValidators))}hasValidator(n){return ip(this._rawValidators,n)}hasAsyncValidator(n){return ip(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 Py(!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 Py(!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 ky(!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 ky(!0,r))}markAsPending(n={}){this.status=cc;const t=n.sourceControl??this;!1!==n.emitEvent&&(this._events.next(new lp(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=td,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 cS(this.value,r)),this._events.next(new lp(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=ed,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===ed||this.status===cc)&&this._runAsyncValidator(r,n.emitEvent)}const t=n.sourceControl??this;!1!==n.emitEvent&&(this._events.next(new cS(this.value,t)),this._events.next(new lp(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()?td:ed}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n,t){if(this.asyncValidator){this.status=cc,this._hasOwnPendingAsyncValidator={emitEvent:!1!==t};const r=K4(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 lp(this.status,t)),this._parent&&this._parent._updateControlsErrors(n,t,r)}_initObservables(){this.valueChanges=new en,this.statusChanges=new en}_calculateStatus(){return this._allControlsDisabled()?td:this.errors?ap:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(cc)?cc:this._anyControlsHaveStatus(ap)?ap:ed}_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 ky(this.pristine,t))}_updateTouched(n={},t){this.touched=this._anyControlsTouched(),this._events.next(new Py(this.touched,t)),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,t)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){cp(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 mB(e){return Array.isArray(e)?My(e):e||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function yB(e){return Array.isArray(e)?Iy(e):e||null}(this._rawAsyncValidators)}}class nd extends up{constructor(n,t,r){super(Oy(t),Ry(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={}){dS(this,0,n),Object.keys(n).forEach(r=>{uS(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 hS extends nd{}const Ta=new Z("CallSetDisabledState",{providedIn:"root",factory:()=>rd}),rd="always";function dp(e,n){return[...n.path,e]}function id(e,n,t=rd){Ly(e,n),n.valueAccessor.writeValue(e.value),(e.disabled||"always"===t)&&n.valueAccessor.setDisabledState?.(e.disabled),function _B(e,n){n.valueAccessor.registerOnChange(t=>{e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&fS(e,n)})}(e,n),function bB(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 wB(e,n){n.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&fS(e,n),"submit"!==e.updateOn&&e.markAsTouched()})}(e,n),function vB(e,n){if(n.valueAccessor.setDisabledState){const t=r=>{n.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(t),n._registerOnDestroy(()=>{e._unregisterOnDisabledChange(t)})}}(e,n)}function hp(e,n,t=!0){const r=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(r),n.valueAccessor.registerOnTouched(r)),pp(e,n),e&&(n._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function fp(e,n){e.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(n)})}function Ly(e,n){const t=nS(e);null!==n.validator?e.setValidators(tS(t,n.validator)):"function"==typeof t&&e.setValidators([t]);const r=rS(e);null!==n.asyncValidator?e.setAsyncValidators(tS(r,n.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const i=()=>e.updateValueAndValidity();fp(n._rawValidators,i),fp(n._rawAsyncValidators,i)}function pp(e,n){let t=!1;if(null!==e){if(null!==n.validator){const i=nS(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=rS(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 fp(n._rawValidators,r),fp(n._rawAsyncValidators,r),t}function fS(e,n){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function Vy(e,n){if(!e.hasOwnProperty("model"))return!1;const t=e.model;return!!t.isFirstChange()||!Object.is(n,t.currentValue)}function $y(e,n){if(!n)return null;let t,r,i;return Array.isArray(n),n.forEach(s=>{s.constructor===np?t=s:function DB(e){return Object.getPrototypeOf(e.constructor)===Sa}(s)?r=s:i=s}),i||r||t||null}function mS(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function yS(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}Promise.resolve();const od=class extends up{constructor(n=null,t,r){super(Oy(t),Ry(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}),cp(t)&&(t.nonNullable||t.initialValueIsDefault)&&(this.defaultValue=yS(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){mS(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){mS(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){yS(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 vS=(()=>{class e extends wr{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return dp(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=Jn(e)))(i||e)}})();static#t=this.\u0275dir=Ee({type:e,features:[ot]})}return e})();const AB={provide:Gs,useExisting:bt(()=>gp)},wS=Promise.resolve();let gp=(()=>{class e extends Gs{constructor(t,r,i,s,o,a){super(),this._changeDetectorRef=o,this.callSetDisabledState=a,this.control=new od,this._registered=!1,this.name="",this.update=new en,this._parent=t,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=$y(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),Vy(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(){id(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){wS.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){const r=t.isDisabled.currentValue,i=0!==r&&function N0(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}(r);wS.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?dp(t,this._parent):[t]}static#e=this.\u0275fac=function(r){return new(r||e)(A(wr,9),A(nr,10),A(xo,10),A(mi,10),A(ec,8),A(Ta,8))};static#t=this.\u0275dir=Ee({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:[$t([AB]),ot,xi]})}return e})(),mp=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275dir=Ee({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return e})();const jy=new Z(""),RB={provide:wr,useExisting:bt(()=>dc)};let dc=(()=>{class e extends wr{get submitted(){return vs(this._submittedReactive)}set submitted(t){this._submittedReactive.set(t)}constructor(t,r,i){super(),this.callSetDisabledState=i,this._submitted=dt(()=>this._submittedReactive()),this._submittedReactive=ct(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new en,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&&(pp(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 id(r,t,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),r}getControl(t){return this.form.get(t.path)}removeControl(t){hp(t.control||null,t,!1),function SB(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 gS(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 pB(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 gB(this.form))}_updateDomValue(){this.directives.forEach(t=>{const r=t.control,i=this.form.get(t.path);r!==i&&(hp(r||null,t),(e=>e instanceof od)(i)&&(id(i,t,this.callSetDisabledState),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const r=this.form.get(t.path);(function pS(e,n){Ly(e,n)})(r,t),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const r=this.form.get(t.path);r&&function CB(e,n){return pp(e,n)}(r,t)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ly(this.form,this),this._oldForm&&pp(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(r){return new(r||e)(A(nr,10),A(xo,10),A(Ta,8))};static#t=this.\u0275dir=Ee({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,i){1&r&&Ke("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[$t([RB]),ot,xi]})}return e})();const LB={provide:wr,useExisting:bt(()=>yp)};let yp=(()=>{class e extends vS{constructor(t,r,i){super(),this.name=null,this._parent=t,this._setValidators(r),this._setAsyncValidators(i)}_checkParentType(){SS(this._parent)}static#e=this.\u0275fac=function(r){return new(r||e)(A(wr,13),A(nr,10),A(xo,10))};static#t=this.\u0275dir=Ee({type:e,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},features:[$t([LB]),ot]})}return e})();const FB={provide:wr,useExisting:bt(()=>vp)};let vp=(()=>{class e extends wr{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 dp(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){SS(this._parent)}static#e=this.\u0275fac=function(r){return new(r||e)(A(wr,13),A(nr,10),A(xo,10))};static#t=this.\u0275dir=Ee({type:e,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},features:[$t([FB]),ot]})}return e})();function SS(e){return!(e instanceof yp||e instanceof dc||e instanceof vp)}const VB={provide:Gs,useExisting:bt(()=>ad)};let ad=(()=>{class e extends Gs{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 en,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=$y(0,s)}ngOnChanges(t){this._added||this._setUpControl(),Vy(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 dp(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)(A(wr,13),A(nr,10),A(xo,10),A(mi,10),A(jy,8))};static#n=this.\u0275dir=Ee({type:e,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[$t([VB]),ot,xi]})}return e})();function IS(e){return"number"==typeof e?e:parseInt(e,10)}let Ma=(()=>{class e{constructor(){this._validator=rp}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):rp,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=Ee({type:e,features:[xi]})}return e})();const YB={provide:nr,useExisting:bt(()=>_p),multi:!0};let _p=(()=>{class e extends Ma{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=t=>IS(t),this.createValidator=t=>q4(t)}static#e=this.\u0275fac=(()=>{let t;return function(i){return(t||(t=Jn(e)))(i||e)}})();static#t=this.\u0275dir=Ee({type:e,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(r,i){2&r&&er("minlength",i._enabled?i.minlength:null)},inputs:{minlength:"minlength"},features:[$t([YB]),ot]})}return e})();const QB={provide:nr,useExisting:bt(()=>ld),multi:!0};let ld=(()=>{class e extends Ma{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=t=>IS(t),this.createValidator=t=>G4(t)}static#e=this.\u0275fac=(()=>{let t;return function(i){return(t||(t=Jn(e)))(i||e)}})();static#t=this.\u0275dir=Ee({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(r,i){2&r&&er("maxlength",i._enabled?i.maxlength:null)},inputs:{maxlength:"maxlength"},features:[$t([QB]),ot]})}return e})(),RS=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Gn({type:e});static#n=this.\u0275inj=Ln({})}return e})();class LS extends up{constructor(n,t,r){super(Oy(t),Ry(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={}){dS(this,0,n),n.forEach((r,i)=>{uS(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 FS(e){return!!e&&(void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn)}let qy=(()=>{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 FS(r)?s=r:null!==r&&(s.validators=r.validator,s.asyncValidators=r.asyncValidator),new nd(i,s)}record(t,r=null){const i=this._reduceControls(t);return new hS(i,r)}control(t,r,i){let s={};return this.useNonNullable?(FS(r)?s=r:(s.validators=r,s.asyncValidators=i),new od(t,{...s,nonNullable:!0})):new od(t,r,i)}array(t,r,i){const s=t.map(o=>this._createControl(o));return new LS(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 od||t instanceof up?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=te({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),VS=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:Ta,useValue:t.callSetDisabledState??rd}]}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Gn({type:e});static#n=this.\u0275inj=Ln({imports:[RS]})}return e})(),$S=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:jy,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:Ta,useValue:t.callSetDisabledState??rd}]}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Gn({type:e});static#n=this.\u0275inj=Ln({imports:[RS]})}return e})();class wp{static luhnAlgorithm({value:n}){return n&&function JB(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,l]=n.split(""),c=`${s}${o}`;return+c<1||+c>12||+`${a}${l}`<i?t:void 0}return t}static cardNumberLength({value:n}){const t=n?.length||0;return t>=Jr.card.number.length.min&&t<=Jr.card.number.length.max?void 0:{cardLength:!0}}static cardCodeLength(n="cardNumber"){return({value:t,parent:r})=>{const i=r?.get(n),[s]=P4()(i?.value),o=!!s?.code.size&&!!t,a=Jr.card.code.lengths[s?.type];return o&&(s?.code.size===t?.length||a?.includes(t?.length))?null:{cardCodeLength:!0}}}}function BS(...e){return function tj(){return V3(1)}()(Wu(e,$f(e)))}function jS(...e){const n=$f(e);return qn((t,r)=>{(n?BS(e,t,n):BS(e,t)).subscribe(r)})}function Gy(e,n,t,r,i,s,o){e.valueChanges.pipe(jS(null),L4(50),function nj(){return qn((e,n)=>{let t,r=!1;e.subscribe(Dn(n,i=>{const s=t;t=i,r&&n.next([s,i]),r=!0}))})}(),e4(([a,l])=>JSON.stringify(a)!==JSON.stringify(l)),t.untilDestroy()).subscribe(([a,l])=>{const c={...n()};let u=!1;!r()&&c.canShowError&&(u=!0,c.canShowError=!1);const d=i(l);c.filled!==d&&(u=!0,c.filled=d),u&&n.update(f=>({...c})),s&&s(l,o)}),e.statusChanges.pipe(jS(e.status),t.untilDestroy()).subscribe(a=>{n.update(l=>({...l,isValid:"VALID"===a}))})}function HS(e){return e&&e.replace(/\s+/g," ").trim()}const bp=new Z("ngx-mask config"),US=new Z("new ngx-mask config"),zS=new Z("initial ngx-mask config"),lj={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 en,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")}}},cj=["Hh:m0:s0","Hh:m0","m0:s0"],uj=["percent","Hh","s0","m0","separator","d0/M0/0000","d0/M0","d0","M0"];let dj=(()=>{class e{constructor(){this._config=q(bp),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 l=o.length>1?`${a}${o[1]}`:"";let c=o[0]??"";const u=this.separatorLimit.replace(/\s/g,"");u&&+u&&(c="-"===c[0]?`-${c.slice(1,c.length).slice(0,u.length)}`:c.slice(0,u.length));const d=/(\d+)(\d{3})/;for(;r&&d.test(c);)c=c.replace(d,"$1"+r+"$2");return void 0===s?c+l:0===s?c:c+l.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 l=i.find(c=>c!==this.thousandSeparator);i=l||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 l=0,c="",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 g=t.toString().split("");if(this.allowNegativeNumbers&&"-"===t.slice(l,l+1)&&(c+=t.slice(l,l+1)),"IP"===r){const L=t.split(".");this.ipError=this._validIP(L),r="099.099.099.099"}const v=[];for(let L=0;L<t.length;L++)t[L]?.match("\\d")&&v.push(t[L]??"");if("CPF_CNPJ"===r&&(this.cpfCnpjError=11!==v.length&&14!==v.length,r=v.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 U=this.getPrecision(r);t=this.checkInputPrecision(t,U,this.decimalMarker)}const L="string"==typeof this.decimalMarker?this.decimalMarker:".";if(t.indexOf(L)>0&&!this.percentage(t.substring(0,t.indexOf(L)))){let U=t.substring(0,t.indexOf(L)-1);this.allowNegativeNumbers&&"-"===t.slice(l,l+1)&&!o&&(U=t.substring(0,t.indexOf(L))),t=`${U}${t.substring(t.indexOf(L),t.length)}`}let H="";H=this.allowNegativeNumbers&&"-"===t.slice(l,l+1)?t.slice(l+1,l+t.length):t,c=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)&&!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 L=this._charToRegExpExpression(this.thousandSeparator);let H='@#!$%^&*()_+|~=`{}\\[\\]:\\s,\\.";<>?\\/'.replace(L,"");if(Array.isArray(this.decimalMarker))for(const Dt of this.decimalMarker)H=H.replace(this._charToRegExpExpression(Dt),"");else H=H.replace(this._charToRegExpExpression(this.decimalMarker),"");const U=new RegExp("["+H+"]");(t.match(U)||1===t.length&&this._compareOrIncludes(t,this.decimalMarker,this.thousandSeparator))&&(t=t.substring(0,t.length-1));const ce=this.getPrecision(r),Fe=(t=this.checkInputPrecision(t,ce,this.decimalMarker)).replace(new RegExp(L,"g"),"");c=this._formatWithSeparators(Fe,this.thousandSeparator,this.decimalMarker,ce);const Et=c.indexOf(",")-t.indexOf(","),rn=c.length-t.length;if(rn>0&&c[i]!==this.thousandSeparator){d=!0;let Dt=0;do{this._shift.add(i+Dt),Dt++}while(Dt<rn)}else c[i-1]===this.decimalMarker||-4===rn||-3===rn||","===c[i]?(this._shift.clear(),this._shift.add(i-1)):0!==Et&&i>0&&!(c.indexOf(",")>=i&&i>3)||!(c.indexOf(".")>=i&&i>3)&&rn<=0?(this._shift.clear(),d=!0,f=rn,this._shift.add(i+=rn)):this._shift.clear()}else for(let L=0,H=g[0];L<g.length&&l!==r.length;L++,H=g[L]??""){const U="*"in this.patterns;if(this._checkSymbolMask(H,r[l]??"")&&"?"===r[l+1])c+=H,l+=2;else if("*"===r[l+1]&&u&&this._checkSymbolMask(H,r[l+2]??""))c+=H,l+=3,u=!1;else if(this._checkSymbolMask(H,r[l]??"")&&"*"===r[l+1]&&!U)c+=H,u=!0;else if("?"===r[l+1]&&this._checkSymbolMask(H,r[l+2]??""))c+=H,l+=3;else if(this._checkSymbolMask(H,r[l]??"")){if("H"===r[l]&&(this.apm?Number(H)>9:Number(H)>2)){i+=1,l+=1,this._shiftStep(r,l,g.length),L--,this.leadZeroDateTime&&(c+="0");continue}if("h"===r[l]&&(this.apm?1===c.length&&Number(c)>1||"1"===c&&Number(H)>2||1===t.slice(l-1,l).length&&Number(t.slice(l-1,l))>2||"1"===t.slice(l-1,l)&&Number(H)>2:"2"===c&&Number(H)>3||("2"===c.slice(l-2,l)||"2"===c.slice(l-3,l)||"2"===c.slice(l-4,l)||"2"===c.slice(l-1,l))&&Number(H)>3&&l>10)){i+=1,l+=1,L--;continue}if(("m"===r[l]||"s"===r[l])&&Number(H)>5){i+=1,l+=1,this._shiftStep(r,l,g.length),L--,this.leadZeroDateTime&&(c+="0");continue}const ce=31,Fe=t[l],Et=t[l+1],rn=t[l+2],Dt=t[l-1],Rr=t[l-2],bs=t[l-3],Cs=t.slice(l-3,l-1),ka=t.slice(l-1,l+1),Y=t.slice(l,l+2),oe=t.slice(l-2,l);if("d"===r[l]){const fe="M0"===r.slice(0,2),ze="M0"===r.slice(0,2)&&this.specialCharacters.includes(Rr);if(Number(H)>3&&this.leadZeroDateTime||!fe&&(Number(Y)>ce||Number(ka)>ce||this.specialCharacters.includes(Et))||(ze?Number(ka)>ce||!this.specialCharacters.includes(Fe)&&this.specialCharacters.includes(rn)||this.specialCharacters.includes(Fe):Number(Y)>ce||this.specialCharacters.includes(Et))){i+=1,l+=1,this._shiftStep(r,l,g.length),L--,this.leadZeroDateTime&&(c+="0");continue}}if("M"===r[l]){const ze=0===l&&(Number(H)>2||Number(Y)>12||this.specialCharacters.includes(Et)),Nn=r.slice(l+2,l+3),_i=Cs.includes(Nn)&&(this.specialCharacters.includes(Rr)&&Number(ka)>12&&!this.specialCharacters.includes(Fe)||this.specialCharacters.includes(Fe)||this.specialCharacters.includes(bs)&&Number(oe)>12&&!this.specialCharacters.includes(Dt)||this.specialCharacters.includes(Dt)),Cr=Number(Cs)<=ce&&!this.specialCharacters.includes(Cs)&&this.specialCharacters.includes(Dt)&&(Number(Y)>12||this.specialCharacters.includes(Et)),Es=Number(Y)>12&&5===l||this.specialCharacters.includes(Et)&&5===l,Gt=Number(Cs)>ce&&!this.specialCharacters.includes(Cs)&&!this.specialCharacters.includes(oe)&&Number(oe)>12,qp=Number(Cs)<=ce&&!this.specialCharacters.includes(Cs)&&!this.specialCharacters.includes(Dt)&&Number(ka)>12;if(Number(H)>1&&this.leadZeroDateTime||ze||_i||qp||Gt||Cr||Es&&!this.leadZeroDateTime){i+=1,l+=1,this._shiftStep(r,l,g.length),L--,this.leadZeroDateTime&&(c+="0");continue}}c+=H,l++}else" "===H&&" "===r[l]||"/"===H&&"/"===r[l]?(c+=H,l++):-1!==this.specialCharacters.indexOf(r[l]??"")?(c+=r[l],l++,this._shiftStep(r,l,g.length),L--):"9"===r[l]&&this.showMaskTyped?this._shiftStep(r,l,g.length):this.patterns[r[l]??""]&&this.patterns[r[l]??""]?.optional?(g[l]&&"099.099.099.099"!==r&&"000.000.000-00"!==r&&"00.000.000/0000-00"!==r&&!r.match(/^9+\.0+$/)&&!this.patterns[r[l]??""]?.optional&&(c+=g[l]),r.includes("9*")&&r.includes("0*")&&l++,l++,L--):"*"===this.maskExpression[l+1]&&this._findSpecialChar(this.maskExpression[l+2]??"")&&this._findSpecialChar(H)===this.maskExpression[l+2]&&u||"?"===this.maskExpression[l+1]&&this._findSpecialChar(this.maskExpression[l+2]??"")&&this._findSpecialChar(H)===this.maskExpression[l+2]&&u?(l+=3,c+=H):this.showMaskTyped&&this.specialCharacters.indexOf(H)<0&&H!==this.placeHolderCharacter&&1===this.placeHolderCharacter.length&&(h=!0)}c.length+1===r.length&&-1!==this.specialCharacters.indexOf(r[r.length-1]??"")&&(c+=r[r.length-1]);let C=i+1;for(;this._shift.has(C);)f++,C++;let T=s&&!r.startsWith("separator")?l:this._shift.has(i)?f:0;h&&T--,a(T,d),f<0&&this._shift.clear();let D=!1;o&&(D=g.every(L=>this.specialCharacters.includes(L)));let F=`${this.prefix}${D?"":c}${this.suffix}`;if(0===c.length&&(F=this.dropSpecialCharacters?`${c}`:`${this.prefix}${c}`),c.includes("-")&&this.prefix&&this.allowNegativeNumbers){if(o&&"-"===c)return"";F=`-${this.prefix}${c.split("-").join("")}${this.suffix}`}return F}_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=te({token:e,factory:e.\u0275fac}),e})(),Wy=(()=>{class e extends dj{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=q(cr),this._config=q(bp),this._elementRef=q(qr,{optional:!0}),this._renderer=q($s,{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 l=t&&"number"==typeof this.selStart?t[this.selStart]??"":"";let c="";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,l):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))),c=this.actualValue.length&&h.length<=t.length?this.shiftTypedSymbols(h.join("")):t}if(s&&(this.hiddenInput||!this.hiddenInput)&&(c=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)),c=this.maskChanged?t:c&&c.length?c: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(c,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 l=t.slice(0,this._start-1);return l.includes("{")?r+a:l+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=Jn(e)))(r||e)}})(),e.\u0275prov=te({token:e,factory:e.\u0275fac}),e})(),hj=(()=>{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 en,this._maskValue="",this._position=null,this._maskExpressionArray=[],this._justPasted=!1,this._isComposing=!1,this.document=q(cr),this._maskService=q(Wy,{self:!0}),this._config=q(bp),this.onChange=t=>{},this.onTouch=()=>{}}ngOnChanges(t){const{maskExpression:r,specialCharacters:i,patterns:s,prefix:o,suffix:a,thousandSeparator:l,decimalMarker:c,dropSpecialCharacters:u,hiddenInput:d,showMaskTyped:f,placeHolderCharacter:h,shownMaskExpression:g,showTemplate:v,clearIfNotMatch:C,validation:T,separatorLimit:D,allowNegativeNumbers:F,leadZeroDateTime:L,leadZero:H,triggerOnMaskChange:U,apm:ce,inputTransformFn:Fe,outputTransformFn:Et,keepCharacterPositions:rn}=t;if(r&&(r.currentValue!==r.previousValue&&!r.firstChange&&(this._maskService.maskChanged=!0),F&&(this._maskService.allowNegativeNumbers=F.currentValue,this._maskService.allowNegativeNumbers&&(this._maskService.specialCharacters=this._maskService.specialCharacters.filter(Dt=>"-"!==Dt))),r.currentValue&&r.currentValue.split("||").length>1?(this._maskExpressionArray=r.currentValue.split("||").sort((Dt,Rr)=>Dt.length-Rr.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),ce&&ce.currentValue&&(this._maskService.apm=ce.currentValue),o&&(this._maskService.prefix=o.currentValue),a&&(this._maskService.suffix=a.currentValue),l&&(this._maskService.thousandSeparator=l.currentValue),c&&(this._maskService.decimalMarker=c.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),g&&(this._maskService.shownMaskExpression=g.currentValue),v&&(this._maskService.showTemplate=v.currentValue),C&&(this._maskService.clearIfNotMatch=C.currentValue),T&&(this._maskService.validation=T.currentValue),D&&(this._maskService.separatorLimit=D.currentValue),L&&(this._maskService.leadZeroDateTime=L.currentValue),H&&(this._maskService.leadZero=H.currentValue),U&&(this._maskService.triggerOnMaskChange=U.currentValue),Fe&&(this._maskService.inputTransformFn=Fe.currentValue),Et&&(this._maskService.outputTransformFn=Et.currentValue),rn&&(this._maskService.keepCharacterPositions=rn.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")||uj.includes(this._maskValue)||this._maskService.clearIfNotMatch)return null;if(cj.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 c=r.value.slice(s-1,s),u=this.prefix.length,d=this._maskService._checkSymbolMask(c,this._maskService.maskExpression[s-1-u]??""),f=this._maskService._checkSymbolMask(c,this._maskService.maskExpression[s+1-u]??""),h=this._maskService.selStart===this._maskService.selEnd,g=Number(this._maskService.selStart)-u,v=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===g&&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 C=r.value.substring(0,s),T=r.value.substring(s);this._maskService.actualValue=C+this._maskService.placeHolderCharacter+T}}else this._maskService.actualValue=this._maskService.selStart===u?this.prefix+this._maskService.maskIsShown.slice(0,v)+this._inputValue.split(this.prefix).join(""):this._maskService.selStart===this._maskService.maskIsShown.length+u?this._inputValue+this._maskService.maskIsShown.slice(g,v):this.prefix+this._inputValue.split(this.prefix).join("").slice(0,g)+this._maskService.maskIsShown.slice(g,v)+this._maskService.actualValue.slice(v+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)+c+r.value.slice(s+2),s+=1):d&&(this._maskService.actualValue=r.value.slice(0,s-1)+c+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 c=this._inputValue.slice(s-1,s);r.value=this._inputValue.slice(0,s-1)+c+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,(c,u)=>{this._justPasted=!1,o=c,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 l=this._position?this._inputValue.length+s+o:s+("Backspace"!==this._code||a?o:0);l>this._getActualInputLength()&&(l=this._getActualInputLength()),l<0&&(l=0),r.setSelectionRange(l,l),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 zf(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=Ee({type:e,selectors:[["input","mask",""],["textarea","mask",""]],hostBindings:function(t,r){1&t&&Ke("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:[$t([{provide:mi,useExisting:bt(()=>e),multi:!0},{provide:nr,useExisting:bt(()=>e),multi:!0},Wy]),xi]}),e})();function fj(e,n){return n instanceof Function?{...e,...n()}:{...e,...n}}let qS=(()=>{class e{static forRoot(t){return{ngModule:e,providers:[{provide:US,useValue:t},{provide:zS,useValue:lj},{provide:bp,useFactory:fj,deps:[zS,US]},Wy]}}static forChild(){return{ngModule:e}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Gn({type:e}),e.\u0275inj=Ln({}),e})();const pj=[[["prefix"]],[["suffix"]]],gj=["prefix","suffix"];let GS=(()=>{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 en}ngOnInit(){this.initFormControl()}initFormControl(){this.formControl=this.injector.get(Gs)}get isInvalidControl(){return"invalid"===this.status||function rj(e){const{invalid:n,pristine:t,touched:r}=e;return!(!n||!r||t)}(this.formControl)&&this.validate}setValue(t){this.value=HS(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=HS(t),this.cdr.detectChanges()}setDisabledState(t){this.disabled=t,this.cdr.detectChanges()}static#e=this.\u0275fac=function(r){return new(r||e)(A(ec),A(kt))};static#t=this.\u0275cmp=zt({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:[$t([{provide:mi,useExisting:bt(()=>e),multi:!0}])],ngContentSelectors:gj,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=ar();(function OE(e){const n=x()[Jt][Qn];if(!n.projection){const r=n.projection=function Nd(e,n){const t=[];for(let r=0;r<e;r++)t.push(n);return t}(e?e.length:1,null),i=r.slice();let s=n.child;for(;null!==s;){if(128!==s.type){const o=e?XN(s,e):0;null!==o&&(i[o]?i[o].projectionNext=s:r[o]=s,i[o]=s)}s=s.next}}})(pj),G(0,"div",1)(1,"div",2),K1(2),W(),G(3,"div",3)(4,"input",4,0),Ke("ngModelChange",function(a){return ft(s),pt(i.setValue(a))})("blur",function(){return ft(s),pt(i.onTouched())})("paste",function(a){return ft(s),pt(i.paste(a))}),W()(),G(6,"div",2),K1(7,1),W()()}2&r&&(Oi("transparent",i.transparent)("invalid",i.isInvalidControl),P(4),ie("type",i.type)("placeholder",i.placeholder)("minlength",i.minlength)("maxlength",i.maxlength)("mask",i.mask)("dropSpecialCharacters",i.dropSpecialCharacters)("ngModel",i.value),er("data-locator",i.formControlName||i.placeholder)("autocomplete",i.autocomplete))},dependencies:[hj,np,lc,_p,ld,gp],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})();function mj(e,n){if(1&e&&(G(0,"span",4),De(1),W()),2&e){const t=J();ie("@ANTransform",void 0),P(),tr(t.paymentsErrorMsg())}}function yj(e,n){if(1&e&&(G(0,"span",15),De(1),W()),2&e){J();const t=Hn(2);ie("@ANTransform",void 0),P(),tr(t.errors.invalidCardHolder)}}let WS=(()=>{class e extends ep{constructor(t,r,i){super(t),this.injector=t,this.fb=r,this.context=i,this.constants=Jr}ngOnInit(){this.settings=this.context.data.settings,this.componentState=this.context.componentsStates.cardForm,this.initForm(),this.initComputedFields(),Gy(this.form,this.componentState,this,()=>!!this.settings().requiredFieldsBehavior?.markAsInvalidUntilCorrect,this.areRequiredFieldsFilled,this.onUpdate,this.context)}pasteCardNumber(t){const r=function aj(e){return e.replace(/\s/g,"")}(t);this.form.get("cardCredentials").get("cardNumber").setValue(r,{onlySelf:!0}),function oj(e,n,t=null,r=!0){n.forEach(i=>{const s=e.get(i);s||function ej(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 tn("card-number-field-focus"),!0);break;case"cvv":this.context.events.analytics.emit(new tn("cvv-field-focus"),!0);break;case"holder":this.context.events.analytics.emit(new tn("card-holder-field-focus"),!0);break;case"expiration":this.context.events.analytics.emit(new tn("expiration-date-field-focus"),!0)}}initForm(){this.form=this.fb.group({cardCredentials:this.fb.group({cardNumber:[null,[_s.required,wp.luhnAlgorithm,wp.cardNumberLength]],expiration:[null,[_s.required,_s.minLength(4),_s.maxLength(4),wp.cardExpiration]],cvv:[null,[_s.required,wp.cardCodeLength()]]}),cardHolder:[null,[_s.required,_s.maxLength(Jr.card.holder.length.max)]]})}initComputedFields(){this.isCredentialsErrorShown=dt(()=>{const t=this.form.get("cardCredentials");return this.componentState().canShowError&&t.invalid}),this.isCardHolderErrorShown=dt(()=>{const t=this.form.get("cardHolder");return this.componentState().canShowError&&t.invalid}),this.paymentDetailsHeader=dt(()=>{const t=this.settings();return`${t.language.requisites.paymentDetailsHeader}${this.componentState().isRequired&&t.requiredFieldsBehavior?.showStars?" *":""}`}),this.nameOnCardHeader=dt(()=>{const t=this.settings();return`${t.language.requisites.cardHolderHeader}${this.componentState().isRequired&&t.requiredFieldsBehavior?.showStars?" *":""}`}),this.paymentsErrorMsg=dt(()=>{const t=this.form.get("cardCredentials"),[r]=function sj(e){return function ij(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)(A(kt),A(qy),A(ln))};static#t=this.\u0275cmp=zt({type:e,selectors:[["moto-card-form"]],features:[ot],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=ar();hi(0)(1)(2),G(3,"form",0)(4,"div",1)(5,"div",2)(6,"h6",3),De(7),W(),et(8,mj,2,2,"span",4),W(),G(9,"div",5)(10,"moto-form-input",6),Bt(11,"cardInfo"),Ke("paste",function(a){return ft(s),pt(i.pasteCardNumber(a))})("focusin",function(){return ft(s),pt(i.onFocus("number"))}),vt(12,"moto-picture",7),Bt(13,"cardInfo"),W(),vt(14,"div",8),G(15,"div",9)(16,"moto-form-input",10),Ke("focusin",function(){return ft(s),pt(i.onFocus("expiration"))}),W(),vt(17,"div",11),G(18,"moto-form-input",12),Bt(19,"cardInfo"),Bt(20,"cardInfo"),Ke("focusin",function(){return ft(s),pt(i.onFocus("cvv"))}),G(21,"div",13),Bt(22,"cardInfo"),G(23,"i",14),De(24,"error"),W()()()()()(),G(25,"div",1)(26,"div",2)(27,"h6",3),De(28),W(),et(29,yj,2,2,"span",15),W(),G(30,"div",16)(31,"moto-form-input",17),Ke("focusin",function(){return ft(s),pt(i.onFocus("holder"))}),W()()()()}if(2&r){const s=i.isCardHolderErrorShown(),o=i.isCredentialsErrorShown();P(2);const a=Qr(i.settings().language);P(),ie("formGroup",i.form),P(4),qt(" ",i.paymentDetailsHeader()," "),P(),ut(o?8:-1),P(),Oi("invalid",o),P(),ie("placeholder",a.requisites.cardNumberPlaceholder)("mask",Ql(11,29,i.form.value.cardCredentials.cardNumber,"card-number-mask","0000 0000 0000 0000"))("transparent",!0)("validate",!1)("status",o?"invalid":"valid"),P(2),ie("src",lr(13,33,i.form.value.cardCredentials.cardNumber,"logo")),P(4),ie("placeholder",a.requisites.cardExpirationPlaceholder)("transparent",!0)("validate",!1)("status",o?"invalid":"valid"),P(2),ie("mask",Ql(19,36,i.form.value.cardCredentials.cardNumber,"code-mask","000"))("dropSpecialCharacters",!1)("placeholder",function v8(e,n,t,r,i,s){const o=e+re,a=x(),l=Jo(a,o);return Ou(a,o)?m8(a,gr(),n,l.transform,t,r,i,s,l):l.transform(t,r,i,s)}(20,40,i.form.value.cardCredentials.cardNumber,"code","CVV",a.requisites.cvvPlaceholder))("transparent",!0)("validate",!1)("status",o?"invalid":"valid"),P(3),er("data-tooltip",Ql(22,45,i.form.value.cardCredentials.cardNumber,"secure-text",a.requisites.cvvHint)),P(7),qt(" ",i.nameOnCardHeader()," "),P(),ut(s?29:-1),P(2),ie("placeholder",a.requisites.cardHolderPlaceholder)("maxlength",i.constants.card.holder.length.max)("validate",!1)("status",s?"invalid":"valid")}},dependencies:[mp,lc,sp,ld,dc,ad,yp,rc,GS,Sy],data:{animation:[vy()]},changeDetection:0})}return e})();function vj(e,n){if(1&e&&(G(0,"span",4),De(1),W()),2&e){J();const t=Hn(0);ie("@ANTransform",void 0),P(),qt(" ",t.errors.invalidPhoneNumber,"")}}let ZS=(()=>{class e extends ep{constructor(t,r,i){super(t),this.injector=t,this.fb=r,this.context=i,this.phoneConstants=Jr.phoneNumber}ngOnInit(){this.componentState=this.context.componentsStates.additionalForm,this.cardFormState=this.context.componentsStates.cardForm,this.settings=this.context.data.settings,this.initComputed(),this.initForm(),Gy(this.form,this.componentState,this,()=>!!this.settings().requiredFieldsBehavior?.markAsInvalidUntilCorrect,t=>!!t.phoneNumber)}onFocus(){this.context.events.analytics.emit(new tn("number-field-focus"),!0)}initForm(){this.form=this.fb.group({phoneNumber:["",[_s.minLength(Jr.phoneNumber.length.min),_s.maxLength(Jr.phoneNumber.length.max)]]})}initComputed(){this.header=dt(()=>{const t=this.settings();return`${t.language.phone.header}${this.componentState().isRequired&&t.requiredFieldsBehavior?.showStars?" *":""}`}),this.isErrorShown=dt(()=>{const t=this.componentState();return t.canShowError&&!t.isValid})}static#e=this.\u0275fac=function(r){return new(r||e)(A(kt),A(qy),A(ln))};static#t=this.\u0275cmp=zt({type:e,selectors:[["moto-additional-form"]],features:[ot],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=ar();hi(0)(1),G(2,"form",0)(3,"div",1)(4,"div",2)(5,"h6",3),De(6),W(),et(7,vj,2,2,"span",4),W(),G(8,"div",5)(9,"moto-form-input",6),Ke("focusin",function(){return ft(s),pt(i.onFocus())}),W()()()()}if(2&r){const s=Qr(i.settings().language),o=i.isErrorShown();P(2),ie("formGroup",i.form),P(4),tr(i.header()),P(),ut(o?7:-1),P(2),ie("placeholder",s.phone.placeholder)("minlength",i.phoneConstants.length.min)("maxlength",i.phoneConstants.length.max)("validate",!1)("status",o?"invalid":"valid")}},dependencies:[mp,lc,sp,_p,ld,dc,ad,GS],data:{animation:[vy()]},changeDetection:0})}return e})(),Cp=(()=>{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)(A(ay,16))};static#t=this.\u0275pipe=Tn({name:"linkify",type:e,pure:!0})}return e})();function _j(e,n){if(1&e){const t=ar();G(0,"label",5)(1,"input",6),Ke("ngModelChange",function(i){ft(t);const s=J(),o=s.$implicit,a=s.$index;return pt(J(2).onChange(o,a,i))})("focusin",function(){ft(t);const i=J(),s=i.$implicit,o=i.$index;return pt(J(2).onFocus(s,o))}),W(),vt(2,"span",7)(3,"span",8),Bt(4,"linkify"),W()}if(2&e){const t=J(),r=t.$implicit,i=t.$index,s=J(2),o=Hn(2);P(),ie("name","charge-term-"+i)("id","charge-term-"+i)("formControlName",i),P(),Oi("invalid",o&&!s.form.get("checkboxes").get(i.toString()).value),P(),ie("innerHTML",lr(4,6,r,"__ndb-settings-checkboxes-checkbox-link fz-12 fw-500 font-description"),yo)}}function wj(e,n){1&e&&et(0,_j,5,9,"label",5),2&e&&ut(n.$implicit?0:-1)}function bj(e,n){if(1&e&&(G(0,"form",1),Wl(1,4),Fi(2,wj,1,1,null,null,js),Zl(),W()),2&e){const t=J(),r=Hn(1);ie("formGroup",t.form),P(2),Vi(r.checkboxes)}}function Cj(e,n){if(1&e&&(G(0,"p",2),Bt(1,"linkify"),De(2),W()),2&e){J();const t=Hn(1);ie("innerHTML",lr(1,2,t.text,"fz-12 fw-500 font-description"),yo),P(2),qt(" ",t.text," ")}}function Ej(e,n){if(1&e&&(G(0,"span",3),De(1),W()),2&e){J();const t=Hn(0);ie("@ANTransform",void 0),P(),qt(" ",t.language.errors.notCheckedCheckboxes," ")}}let KS=(()=>{class e extends ep{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=dt(()=>this.componentState().canShowError&&!this.componentState().isValid),this.initForm()?Gy(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 tn(i?`charge-term-checkbox-${r}-check`:`charge-term-checkbox-${r}-uncheck`,{text:t}))}onFocus(t,r){this.context.events.analytics.emit(new tn(`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,_s.requiredTrue));return this.form=this.fb.group({checkboxes:this.fb.array(r)}),!0}static#e=this.\u0275fac=function(r){return new(r||e)(A(ln),A(kt),A(qy))};static#t=this.\u0275cmp=zt({type:e,selectors:[["moto-charge-terms"]],features:[ot],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&&(hi(0)(1)(2),G(3,"div",0),et(4,bj,4,1,"form",1)(5,Cj,3,5,"p",2)(6,Ej,2,2,"span",3),W()),2&r){const s=Qr(i.settings());P();const o=Qr(s.chargeTerms);P();const a=Qr(i.isErrorShown());P(2),ut(null!=o.checkboxes&&o.checkboxes.length?4:-1),P(),ut(o.text?5:-1),P(),ut(a?6:-1)}},dependencies:[mp,tp,lc,sp,dc,ad,vp,Cp],data:{animation:[vy()]},changeDetection:0})}return e})();var Dj="0123456789abcdefghijklmnopqrstuvwxyz";function Ws(e){return Dj.charAt(e)}function Sj(e,n){return e&n}function Ep(e,n){return e|n}function YS(e,n){return e^n}function QS(e,n){return e&~n}function Tj(e){if(0==e)return-1;var n=0;return 65535&e||(e>>=16,n+=16),255&e||(e>>=8,n+=8),15&e||(e>>=4,n+=4),3&e||(e>>=2,n+=2),1&e||++n,n}function Mj(e){for(var n=0;0!=e;)e&=e-1,++n;return n}var hc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Dp(e){var n,t,r="";for(n=0;n+3<=e.length;n+=3)t=parseInt(e.substring(n,n+3),16),r+=hc.charAt(t>>6)+hc.charAt(63&t);for(n+1==e.length?(t=parseInt(e.substring(n,n+1),16),r+=hc.charAt(t<<2)):n+2==e.length&&(t=parseInt(e.substring(n,n+2),16),r+=hc.charAt(t>>2)+hc.charAt((3&t)<<4));(3&r.length)>0;)r+="=";return r}function Zy(e){var t,n="",r=0,i=0;for(t=0;t<e.length&&"="!=e.charAt(t);++t){var s=hc.indexOf(e.charAt(t));s<0||(0==r?(n+=Ws(s>>2),i=3&s,r=1):1==r?(n+=Ws(i<<2|s>>4),i=15&s,r=2):2==r?(n+=Ws(i),n+=Ws(s>>2),i=3&s,r=3):(n+=Ws(i<<2|s>>4),n+=Ws(15&s),r=0))}return 1==r&&(n+=Ws(i<<2)),n}var fc,Ia,Ky={decode:function(e){var n;if(void 0===Ia){var r="= \f\n\r\t\xa0\u2028\u2029";for(Ia=Object.create(null),n=0;n<64;++n)Ia["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(n)]=n;for(Ia["-"]=62,Ia._=63,n=0;n<9;++n)Ia[r.charAt(n)]=-1}var i=[],s=0,o=0;for(n=0;n<e.length;++n){var a=e.charAt(n);if("="==a)break;if(-1!=(a=Ia[a])){if(void 0===a)throw new Error("Illegal character at offset "+n);s|=a,++o>=4?(i[i.length]=s>>16,i[i.length]=s>>8&255,i[i.length]=255&s,s=0,o=0):s<<=6}}switch(o){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:i[i.length]=s>>10;break;case 3:i[i.length]=s>>16,i[i.length]=s>>8&255}return i},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var n=Ky.re.exec(e);if(n)if(n[1])e=n[1];else{if(!n[2])throw new Error("RegExp out of sync");e=n[2]}return Ky.decode(e)}},pc=1e13,cd=function(){function e(n){this.buf=[+n||0]}return e.prototype.mulAdd=function(n,t){var s,o,r=this.buf,i=r.length;for(s=0;s<i;++s)(o=r[s]*n+t)<pc?t=0:o-=(t=0|o/pc)*pc,r[s]=o;t>0&&(r[s]=t)},e.prototype.sub=function(n){var i,s,t=this.buf,r=t.length;for(i=0;i<r;++i)(s=t[i]-n)<0?(s+=pc,n=1):n=0,t[i]=s;for(;0===t[t.length-1];)t.pop()},e.prototype.toString=function(n){if(10!=(n||10))throw new Error("only base 10 is supported");for(var t=this.buf,r=t[t.length-1].toString(),i=t.length-2;i>=0;--i)r+=(pc+t[i]).toString().substring(1);return r},e.prototype.valueOf=function(){for(var n=this.buf,t=0,r=n.length-1;r>=0;--r)t=t*pc+n[r];return t},e.prototype.simplify=function(){var n=this.buf;return 1==n.length?n[0]:this},e}(),Aj=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,xj=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function gc(e,n){return e.length>n&&(e=e.substring(0,n)+"\u2026"),e}var No,Yy=function(){function e(n,t){this.hexDigits="0123456789ABCDEF",n instanceof e?(this.enc=n.enc,this.pos=n.pos):(this.enc=n,this.pos=t)}return e.prototype.get=function(n){if(void 0===n&&(n=this.pos++),n>=this.enc.length)throw new Error("Requesting byte offset ".concat(n," on a stream of length ").concat(this.enc.length));return"string"==typeof this.enc?this.enc.charCodeAt(n):this.enc[n]},e.prototype.hexByte=function(n){return this.hexDigits.charAt(n>>4&15)+this.hexDigits.charAt(15&n)},e.prototype.hexDump=function(n,t,r){for(var i="",s=n;s<t;++s)if(i+=this.hexByte(this.get(s)),!0!==r)switch(15&s){case 7:i+=" ";break;case 15:i+="\n";break;default:i+=" "}return i},e.prototype.isASCII=function(n,t){for(var r=n;r<t;++r){var i=this.get(r);if(i<32||i>176)return!1}return!0},e.prototype.parseStringISO=function(n,t){for(var r="",i=n;i<t;++i)r+=String.fromCharCode(this.get(i));return r},e.prototype.parseStringUTF=function(n,t){for(var r="",i=n;i<t;){var s=this.get(i++);r+=String.fromCharCode(s<128?s:s>191&&s<224?(31&s)<<6|63&this.get(i++):(15&s)<<12|(63&this.get(i++))<<6|63&this.get(i++))}return r},e.prototype.parseStringBMP=function(n,t){for(var i,s,r="",o=n;o<t;)i=this.get(o++),s=this.get(o++),r+=String.fromCharCode(i<<8|s);return r},e.prototype.parseTime=function(n,t,r){var i=this.parseStringISO(n,t),s=(r?Aj:xj).exec(i);return s?(r&&(s[1]=+s[1],s[1]+=+s[1]<70?2e3:1900),i=s[1]+"-"+s[2]+"-"+s[3]+" "+s[4],s[5]&&(i+=":"+s[5],s[6]&&(i+=":"+s[6],s[7]&&(i+="."+s[7]))),s[8]&&(i+=" UTC","Z"!=s[8]&&(i+=s[8],s[9]&&(i+=":"+s[9]))),i):"Unrecognized time: "+i},e.prototype.parseInteger=function(n,t){for(var o,r=this.get(n),i=r>127,s=i?255:0,a="";r==s&&++n<t;)r=this.get(n);if(0==(o=t-n))return i?-1:0;if(o>4){for(a=r,o<<=3;!(128&(+a^s));)a=+a<<1,--o;a="("+o+" bit)\n"}i&&(r-=256);for(var l=new cd(r),c=n+1;c<t;++c)l.mulAdd(256,this.get(c));return a+l.toString()},e.prototype.parseBitString=function(n,t,r){for(var i=this.get(n),o="("+((t-n-1<<3)-i)+" bit)\n",a="",l=n+1;l<t;++l){for(var c=this.get(l),u=l==t-1?i:0,d=7;d>=u;--d)a+=c>>d&1?"1":"0";if(a.length>r)return o+gc(a,r)}return o+a},e.prototype.parseOctetString=function(n,t,r){if(this.isASCII(n,t))return gc(this.parseStringISO(n,t),r);var i=t-n,s="("+i+" byte)\n";i>(r/=2)&&(t=n+r);for(var o=n;o<t;++o)s+=this.hexByte(this.get(o));return i>r&&(s+="\u2026"),s},e.prototype.parseOID=function(n,t,r){for(var i="",s=new cd,o=0,a=n;a<t;++a){var l=this.get(a);if(s.mulAdd(128,127&l),o+=7,!(128&l)){if(""===i)if((s=s.simplify())instanceof cd)s.sub(80),i="2."+s.toString();else{var c=s<80?s<40?0:1:2;i=c+"."+(s-40*c)}else i+="."+s.toString();if(i.length>r)return gc(i,r);s=new cd,o=0}}return o>0&&(i+=".incomplete"),i},e}(),Nj=function(){function e(n,t,r,i,s){if(!(i instanceof e5))throw new Error("Invalid tag value.");this.stream=n,this.header=t,this.length=r,this.tag=i,this.sub=s}return e.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},e.prototype.content=function(n){if(void 0===this.tag)return null;void 0===n&&(n=1/0);var t=this.posContent(),r=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+r,n);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(t)?"false":"true";case 2:return this.stream.parseInteger(t,t+r);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(t,t+r,n);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+r,n);case 6:return this.stream.parseOID(t,t+r,n);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return gc(this.stream.parseStringUTF(t,t+r),n);case 18:case 19:case 20:case 21:case 22:case 26:return gc(this.stream.parseStringISO(t,t+r),n);case 30:return gc(this.stream.parseStringBMP(t,t+r),n);case 23:case 24:return this.stream.parseTime(t,t+r,23==this.tag.tagNumber)}return null},e.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},e.prototype.toPrettyString=function(n){void 0===n&&(n="");var t=n+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(t+="+"),t+=this.length,this.tag.tagConstructed?t+=" (constructed)":this.tag.isUniversal()&&(3==this.tag.tagNumber||4==this.tag.tagNumber)&&null!==this.sub&&(t+=" (encapsulates)"),t+="\n",null!==this.sub){n+=" ";for(var r=0,i=this.sub.length;r<i;++r)t+=this.sub[r].toPrettyString(n)}return t},e.prototype.posStart=function(){return this.stream.pos},e.prototype.posContent=function(){return this.stream.pos+this.header},e.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},e.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},e.decodeLength=function(n){var t=n.get(),r=127&t;if(r==t)return r;if(r>6)throw new Error("Length over 48 bits not supported at position "+(n.pos-1));if(0===r)return null;t=0;for(var i=0;i<r;++i)t=256*t+n.get();return t},e.prototype.getHexStringValue=function(){return this.toHexString().substr(2*this.header,2*this.length)},e.decode=function(n){var t;t=n instanceof Yy?n:new Yy(n,0);var r=new Yy(t),i=new e5(t),s=e.decodeLength(t),o=t.pos,a=o-r.pos,l=null,c=function(){var d=[];if(null!==s){for(var f=o+s;t.pos<f;)d[d.length]=e.decode(t);if(t.pos!=f)throw new Error("Content size is not correct for container starting at offset "+o)}else try{for(;;){var h=e.decode(t);if(h.tag.isEOC())break;d[d.length]=h}s=o-t.pos}catch(g){throw new Error("Exception while decoding undefined length content: "+g)}return d};if(i.tagConstructed)l=c();else if(i.isUniversal()&&(3==i.tagNumber||4==i.tagNumber))try{if(3==i.tagNumber&&0!=t.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");l=c();for(var u=0;u<l.length;++u)if(l[u].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{l=null}if(null===l){if(null===s)throw new Error("We can't skip over an invalid tag with undefined length at offset "+o);t.pos=o+Math.abs(s)}return new e(r,a,s,i,l)},e}(),e5=function(){function e(n){var t=n.get();if(this.tagClass=t>>6,this.tagConstructed=!!(32&t),this.tagNumber=31&t,31==this.tagNumber){var r=new cd;do{t=n.get(),r.mulAdd(128,127&t)}while(128&t);this.tagNumber=r.simplify()}}return e.prototype.isUniversal=function(){return 0===this.tagClass},e.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},e}(),br=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],Pj=(1<<26)/br[br.length-1],Pe=function(){function e(n,t,r){null!=n&&("number"==typeof n?this.fromNumber(n,t,r):this.fromString(n,null==t&&"string"!=typeof n?256:t))}return e.prototype.toString=function(n){if(this.s<0)return"-"+this.negate().toString(n);var t;if(16==n)t=4;else if(8==n)t=3;else if(2==n)t=1;else if(32==n)t=5;else{if(4!=n)return this.toRadix(n);t=2}var i,r=(1<<t)-1,s=!1,o="",a=this.t,l=this.DB-a*this.DB%t;if(a-- >0)for(l<this.DB&&(i=this[a]>>l)>0&&(s=!0,o=Ws(i));a>=0;)l<t?(i=(this[a]&(1<<l)-1)<<t-l,i|=this[--a]>>(l+=this.DB-t)):(i=this[a]>>(l-=t)&r,l<=0&&(l+=this.DB,--a)),i>0&&(s=!0),s&&(o+=Ws(i));return s?o:"0"},e.prototype.negate=function(){var n=Ue();return e.ZERO.subTo(this,n),n},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(n){var t=this.s-n.s;if(0!=t)return t;var r=this.t;if(0!=(t=r-n.t))return this.s<0?-t:t;for(;--r>=0;)if(0!=(t=this[r]-n[r]))return t;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+Tp(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(n){var t=Ue();return this.abs().divRemTo(n,null,t),this.s<0&&t.compareTo(e.ZERO)>0&&n.subTo(t,t),t},e.prototype.modPowInt=function(n,t){var r;return r=n<256||t.isEven()?new n5(t):new r5(t),this.exp(n,r)},e.prototype.clone=function(){var n=Ue();return this.copyTo(n),n},e.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},e.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var n=this.t,t=[];t[0]=this.s;var i,r=this.DB-n*this.DB%8,s=0;if(n-- >0)for(r<this.DB&&(i=this[n]>>r)!=(this.s&this.DM)>>r&&(t[s++]=i|this.s<<this.DB-r);n>=0;)r<8?(i=(this[n]&(1<<r)-1)<<8-r,i|=this[--n]>>(r+=this.DB-8)):(i=this[n]>>(r-=8)&255,r<=0&&(r+=this.DB,--n)),128&i&&(i|=-256),0==s&&(128&this.s)!=(128&i)&&++s,(s>0||i!=this.s)&&(t[s++]=i);return t},e.prototype.equals=function(n){return 0==this.compareTo(n)},e.prototype.min=function(n){return this.compareTo(n)<0?this:n},e.prototype.max=function(n){return this.compareTo(n)>0?this:n},e.prototype.and=function(n){var t=Ue();return this.bitwiseTo(n,Sj,t),t},e.prototype.or=function(n){var t=Ue();return this.bitwiseTo(n,Ep,t),t},e.prototype.xor=function(n){var t=Ue();return this.bitwiseTo(n,YS,t),t},e.prototype.andNot=function(n){var t=Ue();return this.bitwiseTo(n,QS,t),t},e.prototype.not=function(){for(var n=Ue(),t=0;t<this.t;++t)n[t]=this.DM&~this[t];return n.t=this.t,n.s=~this.s,n},e.prototype.shiftLeft=function(n){var t=Ue();return n<0?this.rShiftTo(-n,t):this.lShiftTo(n,t),t},e.prototype.shiftRight=function(n){var t=Ue();return n<0?this.lShiftTo(-n,t):this.rShiftTo(n,t),t},e.prototype.getLowestSetBit=function(){for(var n=0;n<this.t;++n)if(0!=this[n])return n*this.DB+Tj(this[n]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var n=0,t=this.s&this.DM,r=0;r<this.t;++r)n+=Mj(this[r]^t);return n},e.prototype.testBit=function(n){var t=Math.floor(n/this.DB);return t>=this.t?0!=this.s:!!(this[t]&1<<n%this.DB)},e.prototype.setBit=function(n){return this.changeBit(n,Ep)},e.prototype.clearBit=function(n){return this.changeBit(n,QS)},e.prototype.flipBit=function(n){return this.changeBit(n,YS)},e.prototype.add=function(n){var t=Ue();return this.addTo(n,t),t},e.prototype.subtract=function(n){var t=Ue();return this.subTo(n,t),t},e.prototype.multiply=function(n){var t=Ue();return this.multiplyTo(n,t),t},e.prototype.divide=function(n){var t=Ue();return this.divRemTo(n,t,null),t},e.prototype.remainder=function(n){var t=Ue();return this.divRemTo(n,null,t),t},e.prototype.divideAndRemainder=function(n){var t=Ue(),r=Ue();return this.divRemTo(n,t,r),[t,r]},e.prototype.modPow=function(n,t){var i,o,r=n.bitLength(),s=ko(1);if(r<=0)return s;i=r<18?1:r<48?3:r<144?4:r<768?5:6,o=r<8?new n5(t):t.isEven()?new Rj(t):new r5(t);var a=[],l=3,c=i-1,u=(1<<i)-1;if(a[1]=o.convert(this),i>1){var d=Ue();for(o.sqrTo(a[1],d);l<=u;)a[l]=Ue(),o.mulTo(d,a[l-2],a[l]),l+=2}var h,C,f=n.t-1,g=!0,v=Ue();for(r=Tp(n[f])-1;f>=0;){for(r>=c?h=n[f]>>r-c&u:(h=(n[f]&(1<<r+1)-1)<<c-r,f>0&&(h|=n[f-1]>>this.DB+r-c)),l=i;!(1&h);)h>>=1,--l;if((r-=l)<0&&(r+=this.DB,--f),g)a[h].copyTo(s),g=!1;else{for(;l>1;)o.sqrTo(s,v),o.sqrTo(v,s),l-=2;l>0?o.sqrTo(s,v):(C=s,s=v,v=C),o.mulTo(v,a[h],s)}for(;f>=0&&!(n[f]&1<<r);)o.sqrTo(s,v),C=s,s=v,v=C,--r<0&&(r=this.DB-1,--f)}return o.revert(s)},e.prototype.modInverse=function(n){var t=n.isEven();if(this.isEven()&&t||0==n.signum())return e.ZERO;for(var r=n.clone(),i=this.clone(),s=ko(1),o=ko(0),a=ko(0),l=ko(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),t?((!s.isEven()||!o.isEven())&&(s.addTo(this,s),o.subTo(n,o)),s.rShiftTo(1,s)):o.isEven()||o.subTo(n,o),o.rShiftTo(1,o);for(;i.isEven();)i.rShiftTo(1,i),t?((!a.isEven()||!l.isEven())&&(a.addTo(this,a),l.subTo(n,l)),a.rShiftTo(1,a)):l.isEven()||l.subTo(n,l),l.rShiftTo(1,l);r.compareTo(i)>=0?(r.subTo(i,r),t&&s.subTo(a,s),o.subTo(l,o)):(i.subTo(r,i),t&&a.subTo(s,a),l.subTo(o,l))}return 0!=i.compareTo(e.ONE)?e.ZERO:l.compareTo(n)>=0?l.subtract(n):l.signum()<0?(l.addTo(n,l),l.signum()<0?l.add(n):l):l},e.prototype.pow=function(n){return this.exp(n,new Oj)},e.prototype.gcd=function(n){var t=this.s<0?this.negate():this.clone(),r=n.s<0?n.negate():n.clone();if(t.compareTo(r)<0){var i=t;t=r,r=i}var s=t.getLowestSetBit(),o=r.getLowestSetBit();if(o<0)return t;for(s<o&&(o=s),o>0&&(t.rShiftTo(o,t),r.rShiftTo(o,r));t.signum()>0;)(s=t.getLowestSetBit())>0&&t.rShiftTo(s,t),(s=r.getLowestSetBit())>0&&r.rShiftTo(s,r),t.compareTo(r)>=0?(t.subTo(r,t),t.rShiftTo(1,t)):(r.subTo(t,r),r.rShiftTo(1,r));return o>0&&r.lShiftTo(o,r),r},e.prototype.isProbablePrime=function(n){var t,r=this.abs();if(1==r.t&&r[0]<=br[br.length-1]){for(t=0;t<br.length;++t)if(r[0]==br[t])return!0;return!1}if(r.isEven())return!1;for(t=1;t<br.length;){for(var i=br[t],s=t+1;s<br.length&&i<Pj;)i*=br[s++];for(i=r.modInt(i);t<s;)if(i%br[t++]==0)return!1}return r.millerRabin(n)},e.prototype.copyTo=function(n){for(var t=this.t-1;t>=0;--t)n[t]=this[t];n.t=this.t,n.s=this.s},e.prototype.fromInt=function(n){this.t=1,this.s=n<0?-1:0,n>0?this[0]=n:n<-1?this[0]=n+this.DV:this.t=0},e.prototype.fromString=function(n,t){var r;if(16==t)r=4;else if(8==t)r=3;else if(256==t)r=8;else if(2==t)r=1;else if(32==t)r=5;else{if(4!=t)return void this.fromRadix(n,t);r=2}this.t=0,this.s=0;for(var i=n.length,s=!1,o=0;--i>=0;){var a=8==r?255&+n[i]:s5(n,i);a<0?"-"==n.charAt(i)&&(s=!0):(s=!1,0==o?this[this.t++]=a:o+r>this.DB?(this[this.t-1]|=(a&(1<<this.DB-o)-1)<<o,this[this.t++]=a>>this.DB-o):this[this.t-1]|=a<<o,(o+=r)>=this.DB&&(o-=this.DB))}8==r&&128&+n[0]&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),s&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){for(var n=this.s&this.DM;this.t>0&&this[this.t-1]==n;)--this.t},e.prototype.dlShiftTo=function(n,t){var r;for(r=this.t-1;r>=0;--r)t[r+n]=this[r];for(r=n-1;r>=0;--r)t[r]=0;t.t=this.t+n,t.s=this.s},e.prototype.drShiftTo=function(n,t){for(var r=n;r<this.t;++r)t[r-n]=this[r];t.t=Math.max(this.t-n,0),t.s=this.s},e.prototype.lShiftTo=function(n,t){for(var r=n%this.DB,i=this.DB-r,s=(1<<i)-1,o=Math.floor(n/this.DB),a=this.s<<r&this.DM,l=this.t-1;l>=0;--l)t[l+o+1]=this[l]>>i|a,a=(this[l]&s)<<r;for(l=o-1;l>=0;--l)t[l]=0;t[o]=a,t.t=this.t+o+1,t.s=this.s,t.clamp()},e.prototype.rShiftTo=function(n,t){t.s=this.s;var r=Math.floor(n/this.DB);if(r>=this.t)t.t=0;else{var i=n%this.DB,s=this.DB-i,o=(1<<i)-1;t[0]=this[r]>>i;for(var a=r+1;a<this.t;++a)t[a-r-1]|=(this[a]&o)<<s,t[a-r]=this[a]>>i;i>0&&(t[this.t-r-1]|=(this.s&o)<<s),t.t=this.t-r,t.clamp()}},e.prototype.subTo=function(n,t){for(var r=0,i=0,s=Math.min(n.t,this.t);r<s;)i+=this[r]-n[r],t[r++]=i&this.DM,i>>=this.DB;if(n.t<this.t){for(i-=n.s;r<this.t;)i+=this[r],t[r++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;r<n.t;)i-=n[r],t[r++]=i&this.DM,i>>=this.DB;i-=n.s}t.s=i<0?-1:0,i<-1?t[r++]=this.DV+i:i>0&&(t[r++]=i),t.t=r,t.clamp()},e.prototype.multiplyTo=function(n,t){var r=this.abs(),i=n.abs(),s=r.t;for(t.t=s+i.t;--s>=0;)t[s]=0;for(s=0;s<i.t;++s)t[s+r.t]=r.am(0,i[s],t,s,0,r.t);t.s=0,t.clamp(),this.s!=n.s&&e.ZERO.subTo(t,t)},e.prototype.squareTo=function(n){for(var t=this.abs(),r=n.t=2*t.t;--r>=0;)n[r]=0;for(r=0;r<t.t-1;++r){var i=t.am(r,t[r],n,2*r,0,1);(n[r+t.t]+=t.am(r+1,2*t[r],n,2*r+1,i,t.t-r-1))>=t.DV&&(n[r+t.t]-=t.DV,n[r+t.t+1]=1)}n.t>0&&(n[n.t-1]+=t.am(r,t[r],n,2*r,0,1)),n.s=0,n.clamp()},e.prototype.divRemTo=function(n,t,r){var i=n.abs();if(!(i.t<=0)){var s=this.abs();if(s.t<i.t)return t?.fromInt(0),void(null!=r&&this.copyTo(r));null==r&&(r=Ue());var o=Ue(),a=this.s,l=n.s,c=this.DB-Tp(i[i.t-1]);c>0?(i.lShiftTo(c,o),s.lShiftTo(c,r)):(i.copyTo(o),s.copyTo(r));var u=o.t,d=o[u-1];if(0!=d){var f=d*(1<<this.F1)+(u>1?o[u-2]>>this.F2:0),h=this.FV/f,g=(1<<this.F1)/f,v=1<<this.F2,C=r.t,T=C-u,D=t??Ue();for(o.dlShiftTo(T,D),r.compareTo(D)>=0&&(r[r.t++]=1,r.subTo(D,r)),e.ONE.dlShiftTo(u,D),D.subTo(o,o);o.t<u;)o[o.t++]=0;for(;--T>=0;){var F=r[--C]==d?this.DM:Math.floor(r[C]*h+(r[C-1]+v)*g);if((r[C]+=o.am(0,F,r,T,0,u))<F)for(o.dlShiftTo(T,D),r.subTo(D,r);r[C]<--F;)r.subTo(D,r)}null!=t&&(r.drShiftTo(u,t),a!=l&&e.ZERO.subTo(t,t)),r.t=u,r.clamp(),c>0&&r.rShiftTo(c,r),a<0&&e.ZERO.subTo(r,r)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var n=this[0];if(!(1&n))return 0;var t=3&n;return(t=(t=(t=(t=t*(2-(15&n)*t)&15)*(2-(255&n)*t)&255)*(2-((65535&n)*t&65535))&65535)*(2-n*t%this.DV)%this.DV)>0?this.DV-t:-t},e.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},e.prototype.exp=function(n,t){if(n>4294967295||n<1)return e.ONE;var r=Ue(),i=Ue(),s=t.convert(this),o=Tp(n)-1;for(s.copyTo(r);--o>=0;)if(t.sqrTo(r,i),(n&1<<o)>0)t.mulTo(i,s,r);else{var a=r;r=i,i=a}return t.revert(r)},e.prototype.chunkSize=function(n){return Math.floor(Math.LN2*this.DB/Math.log(n))},e.prototype.toRadix=function(n){if(null==n&&(n=10),0==this.signum()||n<2||n>36)return"0";var t=this.chunkSize(n),r=Math.pow(n,t),i=ko(r),s=Ue(),o=Ue(),a="";for(this.divRemTo(i,s,o);s.signum()>0;)a=(r+o.intValue()).toString(n).substr(1)+a,s.divRemTo(i,s,o);return o.intValue().toString(n)+a},e.prototype.fromRadix=function(n,t){this.fromInt(0),null==t&&(t=10);for(var r=this.chunkSize(t),i=Math.pow(t,r),s=!1,o=0,a=0,l=0;l<n.length;++l){var c=s5(n,l);c<0?"-"==n.charAt(l)&&0==this.signum()&&(s=!0):(a=t*a+c,++o>=r&&(this.dMultiply(i),this.dAddOffset(a,0),o=0,a=0))}o>0&&(this.dMultiply(Math.pow(t,o)),this.dAddOffset(a,0)),s&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(n,t,r){if("number"==typeof t)if(n<2)this.fromInt(1);else for(this.fromNumber(n,r),this.testBit(n-1)||this.bitwiseTo(e.ONE.shiftLeft(n-1),Ep,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>n&&this.subTo(e.ONE.shiftLeft(n-1),this);else{var i=[],s=7&n;i.length=1+(n>>3),t.nextBytes(i),s>0?i[0]&=(1<<s)-1:i[0]=0,this.fromString(i,256)}},e.prototype.bitwiseTo=function(n,t,r){var i,s,o=Math.min(n.t,this.t);for(i=0;i<o;++i)r[i]=t(this[i],n[i]);if(n.t<this.t){for(s=n.s&this.DM,i=o;i<this.t;++i)r[i]=t(this[i],s);r.t=this.t}else{for(s=this.s&this.DM,i=o;i<n.t;++i)r[i]=t(s,n[i]);r.t=n.t}r.s=t(this.s,n.s),r.clamp()},e.prototype.changeBit=function(n,t){var r=e.ONE.shiftLeft(n);return this.bitwiseTo(r,t,r),r},e.prototype.addTo=function(n,t){for(var r=0,i=0,s=Math.min(n.t,this.t);r<s;)i+=this[r]+n[r],t[r++]=i&this.DM,i>>=this.DB;if(n.t<this.t){for(i+=n.s;r<this.t;)i+=this[r],t[r++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;r<n.t;)i+=n[r],t[r++]=i&this.DM,i>>=this.DB;i+=n.s}t.s=i<0?-1:0,i>0?t[r++]=i:i<-1&&(t[r++]=this.DV+i),t.t=r,t.clamp()},e.prototype.dMultiply=function(n){this[this.t]=this.am(0,n-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(n,t){if(0!=n){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=n;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},e.prototype.multiplyLowerTo=function(n,t,r){var i=Math.min(this.t+n.t,t);for(r.s=0,r.t=i;i>0;)r[--i]=0;for(var s=r.t-this.t;i<s;++i)r[i+this.t]=this.am(0,n[i],r,i,0,this.t);for(s=Math.min(n.t,t);i<s;++i)this.am(0,n[i],r,i,0,t-i);r.clamp()},e.prototype.multiplyUpperTo=function(n,t,r){--t;var i=r.t=this.t+n.t-t;for(r.s=0;--i>=0;)r[i]=0;for(i=Math.max(t-this.t,0);i<n.t;++i)r[this.t+i-t]=this.am(t-i,n[i],r,0,0,this.t+i-t);r.clamp(),r.drShiftTo(1,r)},e.prototype.modInt=function(n){if(n<=0)return 0;var t=this.DV%n,r=this.s<0?n-1:0;if(this.t>0)if(0==t)r=this[0]%n;else for(var i=this.t-1;i>=0;--i)r=(t*r+this[i])%n;return r},e.prototype.millerRabin=function(n){var t=this.subtract(e.ONE),r=t.getLowestSetBit();if(r<=0)return!1;var i=t.shiftRight(r);(n=n+1>>1)>br.length&&(n=br.length);for(var s=Ue(),o=0;o<n;++o){s.fromInt(br[Math.floor(Math.random()*br.length)]);var a=s.modPow(i,this);if(0!=a.compareTo(e.ONE)&&0!=a.compareTo(t)){for(var l=1;l++<r&&0!=a.compareTo(t);)if(0==(a=a.modPowInt(2,this)).compareTo(e.ONE))return!1;if(0!=a.compareTo(t))return!1}}return!0},e.prototype.square=function(){var n=Ue();return this.squareTo(n),n},e.prototype.gcda=function(n,t){var r=this.s<0?this.negate():this.clone(),i=n.s<0?n.negate():n.clone();if(r.compareTo(i)<0){var s=r;r=i,i=s}var o=r.getLowestSetBit(),a=i.getLowestSetBit();if(a<0)t(r);else{o<a&&(a=o),a>0&&(r.rShiftTo(a,r),i.rShiftTo(a,i));var l=function(){(o=r.getLowestSetBit())>0&&r.rShiftTo(o,r),(o=i.getLowestSetBit())>0&&i.rShiftTo(o,i),r.compareTo(i)>=0?(r.subTo(i,r),r.rShiftTo(1,r)):(i.subTo(r,i),i.rShiftTo(1,i)),r.signum()>0?setTimeout(l,0):(a>0&&i.lShiftTo(a,i),setTimeout(function(){t(i)},0))};setTimeout(l,10)}},e.prototype.fromNumberAsync=function(n,t,r,i){if("number"==typeof t)if(n<2)this.fromInt(1);else{this.fromNumber(n,r),this.testBit(n-1)||this.bitwiseTo(e.ONE.shiftLeft(n-1),Ep,this),this.isEven()&&this.dAddOffset(1,0);var s=this,o=function(){s.dAddOffset(2,0),s.bitLength()>n&&s.subTo(e.ONE.shiftLeft(n-1),s),s.isProbablePrime(t)?setTimeout(function(){i()},0):setTimeout(o,0)};setTimeout(o,0)}else{var a=[],l=7&n;a.length=1+(n>>3),t.nextBytes(a),l>0?a[0]&=(1<<l)-1:a[0]=0,this.fromString(a,256)}},e}(),Oj=function(){function e(){}return e.prototype.convert=function(n){return n},e.prototype.revert=function(n){return n},e.prototype.mulTo=function(n,t,r){n.multiplyTo(t,r)},e.prototype.sqrTo=function(n,t){n.squareTo(t)},e}(),n5=function(){function e(n){this.m=n}return e.prototype.convert=function(n){return n.s<0||n.compareTo(this.m)>=0?n.mod(this.m):n},e.prototype.revert=function(n){return n},e.prototype.reduce=function(n){n.divRemTo(this.m,null,n)},e.prototype.mulTo=function(n,t,r){n.multiplyTo(t,r),this.reduce(r)},e.prototype.sqrTo=function(n,t){n.squareTo(t),this.reduce(t)},e}(),r5=function(){function e(n){this.m=n,this.mp=n.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<n.DB-15)-1,this.mt2=2*n.t}return e.prototype.convert=function(n){var t=Ue();return n.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),n.s<0&&t.compareTo(Pe.ZERO)>0&&this.m.subTo(t,t),t},e.prototype.revert=function(n){var t=Ue();return n.copyTo(t),this.reduce(t),t},e.prototype.reduce=function(n){for(;n.t<=this.mt2;)n[n.t++]=0;for(var t=0;t<this.m.t;++t){var r=32767&n[t],i=r*this.mpl+((r*this.mph+(n[t]>>15)*this.mpl&this.um)<<15)&n.DM;for(n[r=t+this.m.t]+=this.m.am(0,i,n,t,0,this.m.t);n[r]>=n.DV;)n[r]-=n.DV,n[++r]++}n.clamp(),n.drShiftTo(this.m.t,n),n.compareTo(this.m)>=0&&n.subTo(this.m,n)},e.prototype.mulTo=function(n,t,r){n.multiplyTo(t,r),this.reduce(r)},e.prototype.sqrTo=function(n,t){n.squareTo(t),this.reduce(t)},e}(),Rj=function(){function e(n){this.m=n,this.r2=Ue(),this.q3=Ue(),Pe.ONE.dlShiftTo(2*n.t,this.r2),this.mu=this.r2.divide(n)}return e.prototype.convert=function(n){if(n.s<0||n.t>2*this.m.t)return n.mod(this.m);if(n.compareTo(this.m)<0)return n;var t=Ue();return n.copyTo(t),this.reduce(t),t},e.prototype.revert=function(n){return n},e.prototype.reduce=function(n){for(n.drShiftTo(this.m.t-1,this.r2),n.t>this.m.t+1&&(n.t=this.m.t+1,n.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);n.compareTo(this.r2)<0;)n.dAddOffset(1,this.m.t+1);for(n.subTo(this.r2,n);n.compareTo(this.m)>=0;)n.subTo(this.m,n)},e.prototype.mulTo=function(n,t,r){n.multiplyTo(t,r),this.reduce(r)},e.prototype.sqrTo=function(n,t){n.squareTo(t),this.reduce(t)},e}();function Ue(){return new Pe(null)}function un(e,n){return new Pe(e,n)}var i5=typeof navigator<"u";i5&&"Microsoft Internet Explorer"==navigator.appName?(Pe.prototype.am=function(n,t,r,i,s,o){for(var a=32767&t,l=t>>15;--o>=0;){var c=32767&this[n],u=this[n++]>>15,d=l*c+u*a;s=((c=a*c+((32767&d)<<15)+r[i]+(1073741823&s))>>>30)+(d>>>15)+l*u+(s>>>30),r[i++]=1073741823&c}return s},No=30):i5&&"Netscape"!=navigator.appName?(Pe.prototype.am=function(n,t,r,i,s,o){for(;--o>=0;){var a=t*this[n++]+r[i]+s;s=Math.floor(a/67108864),r[i++]=67108863&a}return s},No=26):(Pe.prototype.am=function(n,t,r,i,s,o){for(var a=16383&t,l=t>>14;--o>=0;){var c=16383&this[n],u=this[n++]>>14,d=l*c+u*a;s=((c=a*c+((16383&d)<<14)+r[i]+s)>>28)+(d>>14)+l*u,r[i++]=268435455&c}return s},No=28),Pe.prototype.DB=No,Pe.prototype.DM=(1<<No)-1,Pe.prototype.DV=1<<No,Pe.prototype.FV=Math.pow(2,52),Pe.prototype.F1=52-No,Pe.prototype.F2=2*No-52;var mc,yi,Sp=[];for(mc=48,yi=0;yi<=9;++yi)Sp[mc++]=yi;for(mc=97,yi=10;yi<36;++yi)Sp[mc++]=yi;for(mc=65,yi=10;yi<36;++yi)Sp[mc++]=yi;function s5(e,n){return Sp[e.charCodeAt(n)]??-1}function ko(e){var n=Ue();return n.fromInt(e),n}function Tp(e){var t,n=1;return 0!=(t=e>>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}Pe.ZERO=ko(0),Pe.ONE=ko(1);var Mp,zi,Lj=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(n){var t,r,i;for(t=0;t<256;++t)this.S[t]=t;for(r=0,t=0;t<256;++t)i=this.S[t],this.S[t]=this.S[r=r+this.S[t]+n[t%n.length]&255],this.S[r]=i;this.i=0,this.j=0},e.prototype.next=function(){var n;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,n=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=n,this.S[n+this.S[this.i]&255]},e}(),Po=null;if(null==Po){Po=[],zi=0;var Ip=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var Xy=new Uint32Array(256);for(window.crypto.getRandomValues(Xy),Ip=0;Ip<Xy.length;++Ip)Po[zi++]=255&Xy[Ip]}var Ap=0,xp=function(e){if((Ap=Ap||0)>=256||zi>=256)window.removeEventListener?window.removeEventListener("mousemove",xp,!1):window.detachEvent&&window.detachEvent("onmousemove",xp);else try{Po[zi++]=255&e.x+e.y,Ap+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",xp,!1):window.attachEvent&&window.attachEvent("onmousemove",xp))}function Vj(){if(null==Mp){for(Mp=function Fj(){return new Lj}();zi<256;){var e=Math.floor(65536*Math.random());Po[zi++]=255&e}for(Mp.init(Po),zi=0;zi<Po.length;++zi)Po[zi]=0;zi=0}return Mp.next()}var Jy=function(){function e(){}return e.prototype.nextBytes=function(n){for(var t=0;t<n.length;++t)n[t]=Vj()},e}(),jj=function(){function e(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return e.prototype.doPublic=function(n){return n.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(n){if(null==this.p||null==this.q)return n.modPow(this.d,this.n);for(var t=n.mod(this.p).modPow(this.dmp1,this.p),r=n.mod(this.q).modPow(this.dmq1,this.q);t.compareTo(r)<0;)t=t.add(this.p);return t.subtract(r).multiply(this.coeff).mod(this.p).multiply(this.q).add(r)},e.prototype.setPublic=function(n,t){null!=n&&null!=t&&n.length>0&&t.length>0?(this.n=un(n,16),this.e=parseInt(t,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(n){var t=this.n.bitLength()+7>>3,r=function Bj(e,n){if(n<e.length+11)return console.error("Message too long for RSA"),null;for(var t=[],r=e.length-1;r>=0&&n>0;){var i=e.charCodeAt(r--);i<128?t[--n]=i:i>127&&i<2048?(t[--n]=63&i|128,t[--n]=i>>6|192):(t[--n]=63&i|128,t[--n]=i>>6&63|128,t[--n]=i>>12|224)}t[--n]=0;for(var s=new Jy,o=[];n>2;){for(o[0]=0;0==o[0];)s.nextBytes(o);t[--n]=o[0]}return t[--n]=2,t[--n]=0,new Pe(t)}(n,t);if(null==r)return null;var i=this.doPublic(r);if(null==i)return null;for(var s=i.toString(16),o=s.length,a=0;a<2*t-o;a++)s="0"+s;return s},e.prototype.setPrivate=function(n,t,r){null!=n&&null!=t&&n.length>0&&t.length>0?(this.n=un(n,16),this.e=parseInt(t,16),this.d=un(r,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(n,t,r,i,s,o,a,l){null!=n&&null!=t&&n.length>0&&t.length>0?(this.n=un(n,16),this.e=parseInt(t,16),this.d=un(r,16),this.p=un(i,16),this.q=un(s,16),this.dmp1=un(o,16),this.dmq1=un(a,16),this.coeff=un(l,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(n,t){var r=new Jy,i=n>>1;this.e=parseInt(t,16);for(var s=new Pe(t,16);;){for(;this.p=new Pe(n-i,1,r),0!=this.p.subtract(Pe.ONE).gcd(s).compareTo(Pe.ONE)||!this.p.isProbablePrime(10););for(;this.q=new Pe(i,1,r),0!=this.q.subtract(Pe.ONE).gcd(s).compareTo(Pe.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}var a=this.p.subtract(Pe.ONE),l=this.q.subtract(Pe.ONE),c=a.multiply(l);if(0==c.gcd(s).compareTo(Pe.ONE)){this.n=this.p.multiply(this.q),this.d=s.modInverse(c),this.dmp1=this.d.mod(a),this.dmq1=this.d.mod(l),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(n){var t=un(n,16),r=this.doPrivate(t);return null==r?null:function Hj(e,n){for(var t=e.toByteArray(),r=0;r<t.length&&0==t[r];)++r;if(t.length-r!=n-1||2!=t[r])return null;for(++r;0!=t[r];)if(++r>=t.length)return null;for(var i="";++r<t.length;){var s=255&t[r];s<128?i+=String.fromCharCode(s):s>191&&s<224?(i+=String.fromCharCode((31&s)<<6|63&t[r+1]),++r):(i+=String.fromCharCode((15&s)<<12|(63&t[r+1])<<6|63&t[r+2]),r+=2)}return i}(r,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(n,t,r){var i=new Jy,s=n>>1;this.e=parseInt(t,16);var o=new Pe(t,16),a=this,l=function(){var c=function(){if(a.p.compareTo(a.q)<=0){var f=a.p;a.p=a.q,a.q=f}var h=a.p.subtract(Pe.ONE),g=a.q.subtract(Pe.ONE),v=h.multiply(g);0==v.gcd(o).compareTo(Pe.ONE)?(a.n=a.p.multiply(a.q),a.d=o.modInverse(v),a.dmp1=a.d.mod(h),a.dmq1=a.d.mod(g),a.coeff=a.q.modInverse(a.p),setTimeout(function(){r()},0)):setTimeout(l,0)},u=function(){a.q=Ue(),a.q.fromNumberAsync(s,1,i,function(){a.q.subtract(Pe.ONE).gcda(o,function(f){0==f.compareTo(Pe.ONE)&&a.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(u,0)})})},d=function(){a.p=Ue(),a.p.fromNumberAsync(n-s,1,i,function(){a.p.subtract(Pe.ONE).gcda(o,function(f){0==f.compareTo(Pe.ONE)&&a.p.isProbablePrime(10)?setTimeout(u,0):setTimeout(d,0)})})};setTimeout(d,0)};setTimeout(l,0)},e.prototype.sign=function(n,t,r){var i=function Uj(e){return Np[e]||""}(r),o=function $j(e,n){if(n<e.length+22)return console.error("Message too long for RSA"),null;for(var t=n-e.length-6,r="",i=0;i<t;i+=2)r+="ff";return un("0001"+r+"00"+e,16)}(i+t(n).toString(),this.n.bitLength()/4);if(null==o)return null;var a=this.doPrivate(o);if(null==a)return null;var l=a.toString(16);return 1&l.length?"0"+l:l},e.prototype.verify=function(n,t,r){var i=un(t,16),s=this.doPublic(i);if(null==s)return null;var a=function zj(e){for(var n in Np)if(Np.hasOwnProperty(n)){var t=Np[n],r=t.length;if(e.substr(0,r)==t)return e.substr(r)}return e}(s.toString(16).replace(/^1f+00/,""));return a==r(n).toString()},e}(),Np={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"},wn={};wn.lang={extend:function(e,n,t){if(!n||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var r=function(){};if(r.prototype=n.prototype,e.prototype=new r,e.prototype.constructor=e,e.superclass=n.prototype,n.prototype.constructor==Object.prototype.constructor&&(n.prototype.constructor=n),t){var i;for(i in t)e.prototype[i]=t[i];var s=function(){},o=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(s=function(a,l){for(i=0;i<o.length;i+=1){var c=o[i],u=l[c];"function"==typeof u&&u!=Object.prototype[c]&&(a[c]=u)}})}catch{}s(e.prototype,t)}}};var R={};(typeof R.asn1>"u"||!R.asn1)&&(R.asn1={}),R.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var n=e.toString(16);return n.length%2==1&&(n="0"+n),n},this.bigIntToMinTwosComplementsHex=function(e){var n=e.toString(16);if("-"!=n.substr(0,1))n.length%2==1?n="0"+n:n.match(/^[0-7]/)||(n="00"+n);else{var r=n.substr(1).length;r%2==1?r+=1:n.match(/^[0-7]/)||(r+=2);for(var i="",s=0;s<r;s++)i+="f";n=new Pe(i,16).xor(e).add(Pe.ONE).toString(16).replace(/^-/,"")}return n},this.getPEMStringFromHex=function(e,n){return hextopem(e,n)},this.newObject=function(e){var t=R.asn1,r=t.DERBoolean,i=t.DERInteger,s=t.DERBitString,o=t.DEROctetString,a=t.DERNull,l=t.DERObjectIdentifier,c=t.DEREnumerated,u=t.DERUTF8String,d=t.DERNumericString,f=t.DERPrintableString,h=t.DERTeletexString,g=t.DERIA5String,v=t.DERUTCTime,C=t.DERGeneralizedTime,T=t.DERSequence,D=t.DERSet,F=t.DERTaggedObject,L=t.ASN1Util.newObject,H=Object.keys(e);if(1!=H.length)throw"key of param shall be only one.";var U=H[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+U+":"))throw"undefined key: "+U;if("bool"==U)return new r(e[U]);if("int"==U)return new i(e[U]);if("bitstr"==U)return new s(e[U]);if("octstr"==U)return new o(e[U]);if("null"==U)return new a(e[U]);if("oid"==U)return new l(e[U]);if("enum"==U)return new c(e[U]);if("utf8str"==U)return new u(e[U]);if("numstr"==U)return new d(e[U]);if("prnstr"==U)return new f(e[U]);if("telstr"==U)return new h(e[U]);if("ia5str"==U)return new g(e[U]);if("utctime"==U)return new v(e[U]);if("gentime"==U)return new C(e[U]);if("seq"==U){for(var ce=e[U],Fe=[],Et=0;Et<ce.length;Et++){var rn=L(ce[Et]);Fe.push(rn)}return new T({array:Fe})}if("set"==U){for(ce=e[U],Fe=[],Et=0;Et<ce.length;Et++)rn=L(ce[Et]),Fe.push(rn);return new D({array:Fe})}if("tag"==U){var Dt=e[U];if("[object Array]"===Object.prototype.toString.call(Dt)&&3==Dt.length){var Rr=L(Dt[2]);return new F({tag:Dt[0],explicit:Dt[1],obj:Rr})}var bs={};if(void 0!==Dt.explicit&&(bs.explicit=Dt.explicit),void 0!==Dt.tag&&(bs.tag=Dt.tag),void 0===Dt.obj)throw"obj shall be specified for 'tag'.";return bs.obj=L(Dt.obj),new F(bs)}},this.jsonToASN1HEX=function(e){return this.newObject(e).getEncodedHex()}},R.asn1.ASN1Util.oidHexToInt=function(e){for(var i="",n=parseInt(e.substr(0,2),16),s=(i=Math.floor(n/40)+"."+n%40,""),o=2;o<e.length;o+=2){var l=("00000000"+parseInt(e.substr(o,2),16).toString(2)).slice(-8);s+=l.substr(1,7),"0"==l.substr(0,1)&&(i=i+"."+new Pe(s,2).toString(10),s="")}return i},R.asn1.ASN1Util.oidIntToHex=function(e){var n=function(a){var l=a.toString(16);return 1==l.length&&(l="0"+l),l},t=function(a){var l="",u=new Pe(a,10).toString(2),d=7-u.length%7;7==d&&(d=0);for(var f="",h=0;h<d;h++)f+="0";for(u=f+u,h=0;h<u.length-1;h+=7){var g=u.substr(h,7);h!=u.length-7&&(g="1"+g),l+=n(parseInt(g,2))}return l};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var r="",i=e.split("."),s=40*parseInt(i[0])+parseInt(i[1]);r+=n(s),i.splice(0,2);for(var o=0;o<i.length;o++)r+=t(i[o]);return r},R.asn1.ASN1Object=function(){this.getLengthHexFromValue=function(){if(typeof this.hV>"u"||null==this.hV)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n=0,v="+this.hV;var s=this.hV.length/2,o=s.toString(16);if(o.length%2==1&&(o="0"+o),s<128)return o;var a=o.length/2;if(a>15)throw"ASN.1 length too long to represent by 8x: n = "+s.toString(16);return(128+a).toString(16)+o},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},R.asn1.DERAbstractString=function(e){R.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(r){this.hTLV=null,this.isModified=!0,this.s=r,this.hV=stohex(this.s)},this.setStringHex=function(r){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&("string"==typeof e?this.setString(e):typeof e.str<"u"?this.setString(e.str):typeof e.hex<"u"&&this.setStringHex(e.hex))},wn.lang.extend(R.asn1.DERAbstractString,R.asn1.ASN1Object),R.asn1.DERAbstractTime=function(e){R.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(r){return utc=r.getTime()+6e4*r.getTimezoneOffset(),new Date(utc)},this.formatDate=function(r,i,s){var o=this.zeroPadding,a=this.localDateToUTC(r),l=String(a.getFullYear());"utc"==i&&(l=l.substr(2,2));var g=l+o(String(a.getMonth()+1),2)+o(String(a.getDate()),2)+o(String(a.getHours()),2)+o(String(a.getMinutes()),2)+o(String(a.getSeconds()),2);if(!0===s){var v=a.getMilliseconds();if(0!=v){var C=o(String(v),3);g=g+"."+(C=C.replace(/[0]+$/,""))}}return g+"Z"},this.zeroPadding=function(r,i){return r.length>=i?r:new Array(i-r.length+1).join("0")+r},this.getString=function(){return this.s},this.setString=function(r){this.hTLV=null,this.isModified=!0,this.s=r,this.hV=stohex(r)},this.setByDateValue=function(r,i,s,o,a,l){var c=new Date(Date.UTC(r,i-1,s,o,a,l,0));this.setByDate(c)},this.getFreshValueHex=function(){return this.hV}},wn.lang.extend(R.asn1.DERAbstractTime,R.asn1.ASN1Object),R.asn1.DERAbstractStructured=function(e){R.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,typeof e<"u"&&typeof e.array<"u"&&(this.asn1Array=e.array)},wn.lang.extend(R.asn1.DERAbstractStructured,R.asn1.ASN1Object),R.asn1.DERBoolean=function(){R.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},wn.lang.extend(R.asn1.DERBoolean,R.asn1.ASN1Object),R.asn1.DERInteger=function(e){R.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(n){this.hTLV=null,this.isModified=!0,this.hV=R.asn1.ASN1Util.bigIntToMinTwosComplementsHex(n)},this.setByInteger=function(n){var t=new Pe(String(n),10);this.setByBigInteger(t)},this.setValueHex=function(n){this.hV=n},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.bigint<"u"?this.setByBigInteger(e.bigint):typeof e.int<"u"?this.setByInteger(e.int):"number"==typeof e?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},wn.lang.extend(R.asn1.DERInteger,R.asn1.ASN1Object),R.asn1.DERBitString=function(e){if(void 0!==e&&typeof e.obj<"u"){var n=R.asn1.ASN1Util.newObject(e.obj);e.hex="00"+n.getEncodedHex()}R.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,r){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u = "+t;var i="0"+t;this.hTLV=null,this.isModified=!0,this.hV=i+r},this.setByBinaryString=function(t){var r=8-(t=t.replace(/0+$/,"")).length%8;8==r&&(r=0);for(var i=0;i<=r;i++)t+="0";var s="";for(i=0;i<t.length-1;i+=8){var o=t.substr(i,8),a=parseInt(o,2).toString(16);1==a.length&&(a="0"+a),s+=a}this.hTLV=null,this.isModified=!0,this.hV="0"+r+s},this.setByBooleanArray=function(t){for(var r="",i=0;i<t.length;i++)r+=1==t[i]?"1":"0";this.setByBinaryString(r)},this.newFalseArray=function(t){for(var r=new Array(t),i=0;i<t;i++)r[i]=!1;return r},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&("string"==typeof e&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):typeof e.hex<"u"?this.setHexValueIncludingUnusedBits(e.hex):typeof e.bin<"u"?this.setByBinaryString(e.bin):typeof e.array<"u"&&this.setByBooleanArray(e.array))},wn.lang.extend(R.asn1.DERBitString,R.asn1.ASN1Object),R.asn1.DEROctetString=function(e){if(void 0!==e&&typeof e.obj<"u"){var n=R.asn1.ASN1Util.newObject(e.obj);e.hex=n.getEncodedHex()}R.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},wn.lang.extend(R.asn1.DEROctetString,R.asn1.DERAbstractString),R.asn1.DERNull=function(){R.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},wn.lang.extend(R.asn1.DERNull,R.asn1.ASN1Object),R.asn1.DERObjectIdentifier=function(e){var n=function(r){var i=r.toString(16);return 1==i.length&&(i="0"+i),i},t=function(r){var i="",o=new Pe(r,10).toString(2),a=7-o.length%7;7==a&&(a=0);for(var l="",c=0;c<a;c++)l+="0";for(o=l+o,c=0;c<o.length-1;c+=7){var u=o.substr(c,7);c!=o.length-7&&(u="1"+u),i+=n(parseInt(u,2))}return i};R.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(r){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueOidString=function(r){if(!r.match(/^[0-9.]+$/))throw"malformed oid string: "+r;var i="",s=r.split("."),o=40*parseInt(s[0])+parseInt(s[1]);i+=n(o),s.splice(0,2);for(var a=0;a<s.length;a++)i+=t(s[a]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueName=function(r){var i=R.asn1.x509.OID.name2oid(r);if(""===i)throw"DERObjectIdentifier oidName undefined: "+r;this.setValueOidString(i)},this.getFreshValueHex=function(){return this.hV},void 0!==e&&("string"==typeof e?e.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(e):this.setValueName(e):void 0!==e.oid?this.setValueOidString(e.oid):void 0!==e.hex?this.setValueHex(e.hex):void 0!==e.name&&this.setValueName(e.name))},wn.lang.extend(R.asn1.DERObjectIdentifier,R.asn1.ASN1Object),R.asn1.DEREnumerated=function(e){R.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(n){this.hTLV=null,this.isModified=!0,this.hV=R.asn1.ASN1Util.bigIntToMinTwosComplementsHex(n)},this.setByInteger=function(n){var t=new Pe(String(n),10);this.setByBigInteger(t)},this.setValueHex=function(n){this.hV=n},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.int<"u"?this.setByInteger(e.int):"number"==typeof e?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},wn.lang.extend(R.asn1.DEREnumerated,R.asn1.ASN1Object),R.asn1.DERUTF8String=function(e){R.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},wn.lang.extend(R.asn1.DERUTF8String,R.asn1.DERAbstractString),R.asn1.DERNumericString=function(e){R.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},wn.lang.extend(R.asn1.DERNumericString,R.asn1.DERAbstractString),R.asn1.DERPrintableString=function(e){R.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},wn.lang.extend(R.asn1.DERPrintableString,R.asn1.DERAbstractString),R.asn1.DERTeletexString=function(e){R.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},wn.lang.extend(R.asn1.DERTeletexString,R.asn1.DERAbstractString),R.asn1.DERIA5String=function(e){R.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},wn.lang.extend(R.asn1.DERIA5String,R.asn1.DERAbstractString),R.asn1.DERUTCTime=function(e){R.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT="17",this.setByDate=function(n){this.hTLV=null,this.isModified=!0,this.date=n,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date>"u"&&typeof this.s>"u"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},void 0!==e&&(void 0!==e.str?this.setString(e.str):"string"==typeof e&&e.match(/^[0-9]{12}Z$/)?this.setString(e):void 0!==e.hex?this.setStringHex(e.hex):void 0!==e.date&&this.setByDate(e.date))},wn.lang.extend(R.asn1.DERUTCTime,R.asn1.DERAbstractTime),R.asn1.DERGeneralizedTime=function(e){R.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT="18",this.withMillis=!1,this.setByDate=function(n){this.hTLV=null,this.isModified=!0,this.date=n,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},void 0!==e&&(void 0!==e.str?this.setString(e.str):"string"==typeof e&&e.match(/^[0-9]{14}Z$/)?this.setString(e):void 0!==e.hex?this.setStringHex(e.hex):void 0!==e.date&&this.setByDate(e.date),!0===e.millis&&(this.withMillis=!0))},wn.lang.extend(R.asn1.DERGeneralizedTime,R.asn1.DERAbstractTime),R.asn1.DERSequence=function(e){R.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var n="",t=0;t<this.asn1Array.length;t++)n+=this.asn1Array[t].getEncodedHex();return this.hV=n,this.hV}},wn.lang.extend(R.asn1.DERSequence,R.asn1.DERAbstractStructured),R.asn1.DERSet=function(e){R.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var n=new Array,t=0;t<this.asn1Array.length;t++)n.push(this.asn1Array[t].getEncodedHex());return 1==this.sortFlag&&n.sort(),this.hV=n.join(""),this.hV},typeof e<"u"&&typeof e.sortflag<"u"&&0==e.sortflag&&(this.sortFlag=!1)},wn.lang.extend(R.asn1.DERSet,R.asn1.DERAbstractStructured),R.asn1.DERTaggedObject=function(e){R.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(n,t,r){this.hT=t,this.isExplicit=n,this.asn1Object=r,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=r.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,t),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.tag<"u"&&(this.hT=e.tag),typeof e.explicit<"u"&&(this.isExplicit=e.explicit),typeof e.obj<"u"&&(this.asn1Object=e.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},wn.lang.extend(R.asn1.DERTaggedObject,R.asn1.ASN1Object);var ev,qj=function(){var e=function(n,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])})(n,t)};return function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}}(),a5=function(e){function n(t){var r=e.call(this)||this;return t&&("string"==typeof t?r.parseKey(t):(n.hasPrivateKeyProperty(t)||n.hasPublicKeyProperty(t))&&r.parsePropertiesFrom(t)),r}return qj(n,e),n.prototype.parseKey=function(t){try{var r=0,i=0,o=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/.test(t)?function(e){var n;if(void 0===fc){var t="0123456789ABCDEF",r=" \f\n\r\t\xa0\u2028\u2029";for(fc={},n=0;n<16;++n)fc[t.charAt(n)]=n;for(t=t.toLowerCase(),n=10;n<16;++n)fc[t.charAt(n)]=n;for(n=0;n<8;++n)fc[r.charAt(n)]=-1}var i=[],s=0,o=0;for(n=0;n<e.length;++n){var a=e.charAt(n);if("="==a)break;if(-1!=(a=fc[a])){if(void 0===a)throw new Error("Illegal character at offset "+n);s|=a,++o>=2?(i[i.length]=s,s=0,o=0):s<<=4}}if(o)throw new Error("Hex encoding incomplete: 4 bits missing");return i}(t):Ky.unarmor(t),a=Nj.decode(o);if(3===a.sub.length&&(a=a.sub[2].sub[0]),9===a.sub.length){r=a.sub[1].getHexStringValue(),this.n=un(r,16),i=a.sub[2].getHexStringValue(),this.e=parseInt(i,16);var l=a.sub[3].getHexStringValue();this.d=un(l,16);var c=a.sub[4].getHexStringValue();this.p=un(c,16);var u=a.sub[5].getHexStringValue();this.q=un(u,16);var d=a.sub[6].getHexStringValue();this.dmp1=un(d,16);var f=a.sub[7].getHexStringValue();this.dmq1=un(f,16);var h=a.sub[8].getHexStringValue();this.coeff=un(h,16)}else{if(2!==a.sub.length)return!1;if(a.sub[0].sub){var v=a.sub[1].sub[0];r=v.sub[0].getHexStringValue(),this.n=un(r,16),i=v.sub[1].getHexStringValue(),this.e=parseInt(i,16)}else r=a.sub[0].getHexStringValue(),this.n=un(r,16),i=a.sub[1].getHexStringValue(),this.e=parseInt(i,16)}return!0}catch{return!1}},n.prototype.getPrivateBaseKey=function(){var t={array:[new R.asn1.DERInteger({int:0}),new R.asn1.DERInteger({bigint:this.n}),new R.asn1.DERInteger({int:this.e}),new R.asn1.DERInteger({bigint:this.d}),new R.asn1.DERInteger({bigint:this.p}),new R.asn1.DERInteger({bigint:this.q}),new R.asn1.DERInteger({bigint:this.dmp1}),new R.asn1.DERInteger({bigint:this.dmq1}),new R.asn1.DERInteger({bigint:this.coeff})]};return new R.asn1.DERSequence(t).getEncodedHex()},n.prototype.getPrivateBaseKeyB64=function(){return Dp(this.getPrivateBaseKey())},n.prototype.getPublicBaseKey=function(){var t=new R.asn1.DERSequence({array:[new R.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new R.asn1.DERNull]}),r=new R.asn1.DERSequence({array:[new R.asn1.DERInteger({bigint:this.n}),new R.asn1.DERInteger({int:this.e})]}),i=new R.asn1.DERBitString({hex:"00"+r.getEncodedHex()});return new R.asn1.DERSequence({array:[t,i]}).getEncodedHex()},n.prototype.getPublicBaseKeyB64=function(){return Dp(this.getPublicBaseKey())},n.wordwrap=function(t,r){return r=r||64,t?t.match(RegExp("(.{1,"+r+"})( +|$\n?)|(.{1,"+r+"})","g")).join("\n"):t},n.prototype.getPrivateKey=function(){var t="-----BEGIN RSA PRIVATE KEY-----\n";return(t+=n.wordwrap(this.getPrivateBaseKeyB64())+"\n")+"-----END RSA PRIVATE KEY-----"},n.prototype.getPublicKey=function(){var t="-----BEGIN PUBLIC KEY-----\n";return(t+=n.wordwrap(this.getPublicBaseKeyB64())+"\n")+"-----END PUBLIC KEY-----"},n.hasPublicKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")},n.hasPrivateKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},n.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)},n}(jj),Gj=typeof process<"u"?null===(ev=process.env)||void 0===ev?void 0:ev.npm_package_version:void 0;const Zj=function(){function e(n){void 0===n&&(n={}),this.default_key_size=(n=n||{}).default_key_size?parseInt(n.default_key_size,10):1024,this.default_public_exponent=n.default_public_exponent||"010001",this.log=n.log||!1,this.key=null}return e.prototype.setKey=function(n){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new a5(n)},e.prototype.setPrivateKey=function(n){this.setKey(n)},e.prototype.setPublicKey=function(n){this.setKey(n)},e.prototype.decrypt=function(n){try{return this.getKey().decrypt(Zy(n))}catch{return!1}},e.prototype.encrypt=function(n){try{return Dp(this.getKey().encrypt(n))}catch{return!1}},e.prototype.sign=function(n,t,r){try{return Dp(this.getKey().sign(n,t,r))}catch{return!1}},e.prototype.verify=function(n,t,r){try{return this.getKey().verify(n,Zy(t),r)}catch{return!1}},e.prototype.getKey=function(n){if(!this.key){if(this.key=new a5,n&&"[object Function]"==={}.toString.call(n))return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,n);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},e.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},e.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},e.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},e.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},e.version=Gj,e}();let ud=(()=>{class e{constructor(t,r,i){this.context=t,this.http=r,this.mapper=i,this.secretId=2}getAvailablePaymentSystems(){const{currency:t,userId:r,merchantId:i}=this.context.data.payment(),s=Dy({currency:t,payerId:r}),o=Da(this.host(),`/api/merchants/${i}/settings`);return this.http.get(o,{params:s}).pipe(gn(a=>{const l=new Set;return{payments:a.payments.filter(u=>!l.has(u.name)&&(l.add(u.name),!0))}}),Uf(()=>To({payments:[]})))}getPaymentInfo(t){const{merchantId:r}=this.context.data.payment(),i=Da(this.host(),`/api/merchants/${r}/payments/${t}`);return this.http.get(i)}pay(){const t=this.context.data.payment(),r=this.context.data.settings(),i=this.context.data.userProvidedInfo(),o={...Z3()};t.ipAddress&&(o.ipAddress=t.ipAddress);const l={headers:M4(o)},c=Da(this.host(),`/api/merchants/${t.merchantId}/payments`);let u=this.mapper.mapPaymentRequest(t,i,r);return"applepay"==i.paymentSystemName?this.http.post(c,u,l):this.getSecretKey().pipe(J3(d=>{const f=new Zj;f.setPublicKey(d);const g={invoice:f.encrypt(JSON.stringify(u)),ei:this.secretId};return this.http.post(c,g,l)}))}getSecretKey(){const r=Da(this.context.data.settings().urls.processing,`/api/security/key/${this.secretId}`);return this.http.get(r)}host(){return this.context.data.settings().urls.processing}static#e=this.\u0275fac=function(r){return new(r||e)(X(ln),X(Kf),X(yc))};static#t=this.\u0275prov=te({token:e,factory:e.\u0275fac})}return e})();const tv=new Z("moto-window-document",{providedIn:"root",factory:()=>window});let l5=(()=>{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)(A(tv,16))};static#t=this.\u0275pipe=Tn({name:"currencySymbol",type:e,pure:!0})}return e})(),Kj=(()=>{class e{transform(t,r,i){return r&&i&&"net"==i?t+r:t}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275pipe=Tn({name:"price",type:e,pure:!0})}return e})();function Yj(e,n){if(1&e&&(vt(0,"div",8),G(1,"div",9),vt(2,"moto-picture",10),Bt(3,"cardInfo"),G(4,"span",11),De(5),Bt(6,"slice"),W()()),2&e){const t=n;P(2),ie("src",lr(3,2,t.name,"logo")),P(3),qt(" \u2022\u2022",lr(6,5,t.name,-4)," ")}}let c5=(()=>{class e{constructor(t,r){this.context=t,this.processing=r}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=dt(()=>{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 tn("pay-button-click")),!this.context.computed.paymentAvailability().canPay.byCard)return void this.context.updateCanShowError(!0);const t=this.processing.pay();this.context.data.state.set({type:"payLoading",payload:{observable:t}})}onFocus(){this.context.events.analytics.emit(new tn("pay-button-focus"),!0)}static#e=this.\u0275fac=function(r){return new(r||e)(A(ln),A(ud))};static#t=this.\u0275cmp=zt({type:e,selectors:[["moto-pay-button"]],decls:21,vars:21,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","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=ar();hi(0)(1)(2),G(3,"div",0)(4,"div",1)(5,"span",2),De(6),W(),G(7,"span",3),De(8),Bt(9,"price"),Bt(10,"currencySymbol"),W()(),G(11,"button",4),Ke("click",function(){return ft(s),pt(i.pay())})("focusin",function(){return ft(s),pt(i.onFocus())}),G(12,"div",5)(13,"div",6)(14,"span"),De(15),G(16,"span",7),De(17),Bt(18,"price"),Bt(19,"currencySymbol"),W()()(),et(20,Yj,7,8),W()()()}if(2&r){let s;const o=i.payment(),a=i.paymentAvailability(),l=i.settings().language;P(6),tr(l.totalHeader),P(2),tr(lr(10,11,Ql(9,7,o.amount,o.tax,o.amountType),o.currency)),P(3),ie("ngClass",a.buttonDisableClass)("disabled",a.isPayButtonDisabled),P(4),qt(" ",l.pay," "),P(2),qt(" ",lr(19,18,Ql(18,14,o.amount,o.tax,o.amountType),o.currency)," "),P(3),ut((s=i.existingCard())?20:-1,s)}},dependencies:[H0,rc,l5,Z0,Sy,Kj],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;gap:14px}.__ndb-pay-info[_ngcontent-%COMP%]{display:flex;width:100%;align-items:center;justify-content:space-between;gap:20px}.__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})();const Qj=new Z("LANGUAGE_TOKEN",{factory:()=>q(tv).navigator.language}),u5=new Z("APPLE_PAY_JS_SERVICE_TOKEN");let nv=(()=>{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():To(!1)}pay(t,r){const{amount:i,currency:s,description:o,billingAddress:a,merchantId:l,userAuthToken:c}=t,u=a?.country?a.country:this.defaultCountryCode,d={total:{amount:i.toString(),currency:s.toUpperCase(),label:o},countryCode:u.toUpperCase(),merchantId:l,userToken:c,processingUrl:r};return this.applePayJsService.pay(d).pipe(gn(({payment:f})=>JSON.stringify(f)))}static#e=this.\u0275fac=function(r){return new(r||e)(X(Qj),X(u5))};static#t=this.\u0275prov=te({token:e,factory:e.\u0275fac})}return e})(),kp=(()=>{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]=ct(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]=ct(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=te({token:e,factory:e.\u0275fac})}return e})(),Xj=(()=>{class e{constructor(t,r){this.renderer=t,this.elRef=r,this.buttonClick=new en,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)(A($s),A(qr))};static#t=this.\u0275dir=Ee({type:e,selectors:[["","motoApplePayButton",""]],inputs:{buttonStyle:"buttonStyle",locale:"locale",type:"type"},outputs:{buttonClick:"buttonClick"}})}return e})(),Jj=(()=>{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)(A(Pi),A(ps))};static#t=this.\u0275dir=Ee({type:e,selectors:[["","let",""]],inputs:{_let:[0,"let","_let"]}})}return e})();const eH=(e,n)=>n.name,tH=e=>({applepay:e}),nH=e=>({$implicit:e});function rH(e,n){if(1&e){const t=ar();G(0,"div",4)(1,"span",6),Ke("click",function(){return ft(t),pt(J(2).apmsCollapseClick())}),De(2),W()()}if(2&e){J(2);const t=Hn(2);P(),ie("ngClass",t.apmsCollapse?"__ndb-apm-list__delimiter-text__apms-collapse":""),P(),tr(t.apmsCollapse?t.language.apms.orUseAlternative:t.language.apms.or)}}function iH(e,n){if(1&e&&Kl(0,7),2&e){const t=n.$implicit,r=J(2).let;J();const i=X1(5);ie("ngTemplateOutlet",t.logo?i:r[t.name])("ngTemplateOutletContext",a0(2,nH,t))}}function sH(e,n){if(1&e&&(G(0,"div",5),Fi(1,iH,1,4,"ng-container",7,eH),W()),2&e){J(2);const t=Hn(0);P(),Vi(t)}}function oH(e,n){if(1&e&&(G(0,"div",3),et(1,rH,3,2,"div",4)(2,sH,3,0,"div",5),W()),2&e){let t;const r=J(),i=Hn(2);P(),ut(r.cardPaymentAvailable()?1:-1),P(),ut(i.apmsCollapse&&r.apmsCollapsed&&(null===(t=r.apmsCollapsed())||void 0===t||t)?-1:2)}}function aH(e,n){if(1&e){const t=ar();G(0,"button",8),Ke("focusin",function(){const i=ft(t).$implicit;return pt(J().onFocus(i))})("click",function(){const i=ft(t).$implicit;return pt(J().pay(i))}),vt(1,"img",9),W()}if(2&e){const t=n.$implicit;J();const r=Hn(1);ie("id","apm-"+(null==t?null:t.name)+"-button")("ngClass",r.elementDisableClass),P(),ie("src",t.logo,eu)("alt",t.name)}}function lH(e,n){if(1&e){const t=ar();G(0,"button",10),Ke("buttonClick",function(){const i=ft(t).$implicit;return pt(J().pay(i))})("focusin",function(){const i=ft(t).$implicit;return pt(J().onFocus(i))}),W()}2&e&&(J(),ie("ngClass",Hn(1).elementDisableClass))}let d5=(()=>{class e{constructor(t,r,i,s,o){this.context=t,this.processingService=r,this.mapper=i,this.applePayService=s,this.sessionStorage=o,this.apms=ct([])}ngOnInit(){this.settings=this.context.data.settings,this.paymentInfo=this.context.data.payment,this.settings().apmsCollapse&&(this.apmsCollapsed=this.sessionStorage.getOrSetItemSignal(Jr.keys.apmsCollapse,!0)),this.paymentAvailability=this.context.computed.paymentAvailability,this.apms=dt(()=>{let t=this.context.data.loadedSettings().filter(i=>"card"!==i.name);return t.some(i=>"applepay"===i.name)&&!this.applePayService.isAvailable(this.paymentInfo())&&(t=t.filter(i=>"applepay"!==i.name)),this.mapper.mapApms(t)}),this.cardPaymentAvailable=dt(()=>this.context.componentsStates.cardForm().enabled||this.context.componentsStates.cardList().enabled)}pay(t){if(this.context.events.analytics.emit(new tn(`${t.name}-button-click`)),this.paymentAvailability().canPay.byApm)if("applepay"===t.name){const r=Da(this.settings().urls.processing,`api/applepay/${this.paymentInfo().merchantId}/merchantValidation`);this.applePayService.pay(this.paymentInfo(),r).subscribe(i=>{t.token=i,this.makePaymentAndRedirect(t)})}else this.makePaymentAndRedirect(t);else this.context.updateCanShowErrorForApm(!0)}onFocus(t){this.context.events.analytics.emit(new tn(`${t.name}-button-focus`),!0)}apmsCollapseClick(){if(this.settings().apmsCollapse){const t=this.apmsCollapsed();this.sessionStorage.setItem(Jr.keys.apmsCollapse,!t),this.context.events.analytics.emit(new tn("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}})}static#e=this.\u0275fac=function(r){return new(r||e)(A(ln),A(ud),A(yc),A(nv),A(kp))};static#t=this.\u0275cmp=zt({type:e,selectors:[["moto-apm-list"]],decls:8,vars:6,consts:[["apmDefaultRef",""],["applePayRef",""],["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"]],template:function(r,i){if(1&r&&(hi(0)(1)(2),et(3,oH,3,2,"div",2)(4,aH,2,4,"ng-template",null,0,l0)(6,lH,1,1,"ng-template",null,1,l0)),2&r){const s=X1(7);Qr(i.apms()),P(),Qr(i.paymentAvailability()),P(),Qr(i.settings()),P(),ie("let",a0(4,tH,s))}},dependencies:[H0,QD,Xj,Jj],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}'],changeDetection:0})}return e})();function cH(e,n){if(1&e){const t=ar();G(0,"label",3)(1,"input",4),e0("ngModelChange",function(i){ft(t);const s=J().$implicit;return function l8(e,n){const t=qb(e);return t&&e.set(n),t}(s.value,i)||(s.value=i),pt(i)}),Ke("ngModelChange",function(){ft(t);const i=J(),s=i.$implicit,o=i.$index;return pt(J(2).onChange(s,o))})("focusin",function(){ft(t);const i=J(),s=i.$implicit,o=i.$index;return pt(J(2).onFocus(s,o))}),W(),vt(2,"span",5)(3,"span",6),Bt(4,"linkify"),W()}if(2&e){const t=J().$implicit;P(),ie("name","user-preference-"+t.name)("id","user-preference-"+t.name),J1("ngModel",t.value),P(2),ie("innerHTML",lr(4,4,t.text,"__ndb-settings-checkboxes-checkbox-link fz-12 fw-500 font-description"),yo)}}function uH(e,n){1&e&&et(0,cH,5,7,"label",3),2&e&&ut(n.$implicit.text?0:-1)}function dH(e,n){if(1&e&&(G(0,"div",1),Fi(1,uH,1,1,null,null,js),W()),2&e){const t=J();P(),Vi(t.userPreferenceCheckboxes)}}function hH(e,n){1&e&&(vt(0,"p",2),Bt(1,"linkify")),2&e&&(J(),ie("innerHTML",lr(1,1,Hn(0).userPreferences.text,"fz-12 fw-500 font-description"),yo))}let h5=(()=>{class e extends ep{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 tn(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 tn(`user-preference-checkbox-${r}-focus`,{name:t.name,text:t.text}),!0)}update(t){t&&(this.userPreferenceCheckboxes=t.checkboxes.map(r=>({name:r.name,text:r.text,value:!!r.defaultValue})),this.localDetect())}static#e=this.\u0275fac=function(r){return new(r||e)(A(kt),A(ln))};static#t=this.\u0275cmp=zt({type:e,selectors:[["moto-user-preferences"]],features:[ot],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&&(hi(0),G(1,"div",0),et(2,dH,3,0,"div",1)(3,hH,2,4,"p",2),W()),2&r){const s=Qr(i.settings());P(2),ut(i.userPreferenceCheckboxes.length?2:-1),P(),ut(null!=s&&null!=s.userPreferences&&s.userPreferences.text?3:-1)}},dependencies:[tp,lc,gp,Cp],styles:[".__ndb-settings-checkboxes-checkbox-checkmark[_ngcontent-%COMP%]{border-radius:2px}"],changeDetection:0})}return e})();function fH(e,n){1&e&&(G(0,"span",4),De(1,"\xb7"),W())}function pH(e,n){if(1&e&&(G(0,"a",3),De(1),W(),et(2,fH,2,0,"span",4)),2&e){const t=n.$implicit,r=n.$index,i=n.$count;ie("href",t.href,eu),P(),qt(" ",t.text," "),P(),ut(r!==i-1?2:-1)}}function gH(e,n){if(1&e&&(G(0,"div",1),Fi(1,pH,3,3,null,null,js),W()),2&e){J(2);const t=Hn(0);P(),Vi(t.links)}}function mH(e,n){1&e&&(vt(0,"p",2),Bt(1,"linkify")),2&e&&(J(2),ie("innerHTML",lr(1,1,Hn(0).text,"__ndb-merchant-info-checkbox-link fz-12 fw-500 font-description"),yo))}function yH(e,n){if(1&e&&(G(0,"div",0),et(1,gH,3,0,"div",1)(2,mH,2,4,"p",2),W()),2&e){J();const t=Hn(0);P(),ut(null!=t.links&&t.links.length?1:-1),P(),ut(t.text?2:-1)}}let f5=(()=>{class e{constructor(t){this.context=t}ngOnInit(){this.settings=this.context.data.settings}static#e=this.\u0275fac=function(r){return new(r||e)(A(ln))};static#t=this.\u0275cmp=zt({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&&(hi(0),et(1,yH,3,2,"div",0)),2&r){const s=Qr(i.settings().merchantInfo);P(),ut(null!=s.links&&s.links.length||s.text?1:-1)}},dependencies:[Cp],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})(),p5=(()=>{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=Tn({name:"image",type:e,pure:!0})}return e})();function vH(e,n){1&e&&(vt(0,"moto-picture",3),Bt(1,"image")),2&e&&ie("src",Pu(1,1,"visa-secure.svg"))}function _H(e,n){1&e&&(vt(0,"moto-picture",3),Bt(1,"image")),2&e&&ie("src",Pu(1,1,"master-card-secure.svg"))}function wH(e,n){if(1&e&&(G(0,"div",0)(1,"p",1),De(2),W(),G(3,"div",2),et(4,vH,2,3,"moto-picture",3)(5,_H,2,3,"moto-picture",3),W()()),2&e){const t=J();P(2),qt(" ",t.settings().language.transactionProtectedBy," "),P(2),ut(t.isVisaAvailable()?4:-1),P(),ut(t.isMastercardAvailable()?5:-1)}}let g5=(()=>{class e{constructor(t){this.context=t}ngOnInit(){this.settings=this.context.data.settings,this.isMastercardAvailable=dt(()=>!!this.settings().availableCardBrands?.some(t=>"mastercard"===t)),this.isVisaAvailable=dt(()=>!!this.settings().availableCardBrands?.some(t=>"visa"===t))}static#e=this.\u0275fac=function(r){return new(r||e)(A(ln))};static#t=this.\u0275cmp=zt({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&&et(0,wH,6,3,"div",0),2&r&&ut(i.isMastercardAvailable()||i.isVisaAvailable()?0:-1)},dependencies:[rc,p5],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})(),m5=(()=>{class e{constructor(t){this.context=t}ngOnInit(){this.settings=this.context.data.settings}static#e=this.\u0275fac=function(r){return new(r||e)(A(ln))};static#t=this.\u0275cmp=zt({type:e,selectors:[["moto-no-payments"]],decls:2,vars:1,consts:[[1,"__ndb-no-methods"]],template:function(r,i){1&r&&(G(0,"h2",0),De(1),W()),2&r&&(P(),qt(" ",i.settings().language.noAvailablePaymentMethods,"\n"))},styles:[".__ndb-no-methods[_ngcontent-%COMP%]{text-align:center}"],changeDetection:0})}return e})(),yc=(()=>{class e{mapApms(t){return t.map(r=>({...r}))}mapPaymentRequest(t,r,i){let s=t.details;r.userPreferences?.length&&(s=r.userPreferences.reduce((c,u)=>(c[u.name]=u.value,c),s||{}));const o={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)},a={browserData:Z3()},l={id:t.userId,email:t.email,phoneNumber:r.phoneNumber??t.phoneNumber,ipAddress:t.ipAddress,deviceInfo:a,billingAddress:t.billingAddress};return{id:t.paymentId,initiator:this.mapInitiatorType(t.initiator)??"Customer",returnUrl:t.returnUrl,webhookUrl:t.webhookUrl,order:o,payer:l,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:Y3,visible:r.availableCardBrands};case"no-methods":return{component:m5,visible:r.noMethods};case"card-list":return{component:Ty,visible:r.cardList};case"requisites":return{component:WS,visible:r.cardForm};case"phone-number":return{component:ZS,visible:r.additionalForm};case"charge-terms":return{component:KS,visible:r.chargeTerms};case"pay-button":return{component:c5,visible:r.payButton};case"apm-list":return{component:d5,visible:r.apmList};case"user-preferences":return{component:h5,visible:r.userPreferences};case"merchant-info":return{component:f5,visible:r.merchantInfo};case"protected-by":return{component:g5,visible:r.protectedBy}}})}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}: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}: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;return{availableCardBrands:t.availableCardBrands,closePaymentRedirect:t.closePaymentRedirect,components:t.components,events:t.events,isCloseButtonVisible:t.isCloseButtonVisible,isHeaderVisible:t.isHeaderVisible,isProblemTipsListVisible:t.isProblemTipsListVisible,isSignatureRequired:t.isSignatureRequired,language:i??G3,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}}mapRequisites(t){switch(t.type){case"apm":const r=t.value;return{type:r.name,paymentToken:r.token};case"existing-card":return{anchor:t.value.rebill,type:"rebill"};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=te({token:e,factory:e.\u0275fac})}return e})(),y5=(()=>{class e{constructor(t){this.mapper=t}preparePaymentOrError(t){let r=q3(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=q3(t);const i=this.validateSettings(r);if(i)return i;const s=hV(pV,r);return this.mapper.mapInterfaceSettingsToDomain(s)}validateModelsCompatibility(t,r){if(!t.signature&&r.isSignatureRequired)return"not-exist-signature"}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?void 0:"invalid-urls":"not-exist-settings"}static#e=this.\u0275fac=function(r){return new(r||e)(X(yc))};static#t=this.\u0275prov=te({token:e,factory:e.\u0275fac})}return e})();function bH(e,n){if(1&e){const t=ar();G(0,"div",2)(1,"i",3),Ke("click",function(){return ft(t),pt(J().close())}),De(2,"close"),W()()}if(2&e){let t;J();const r=Hn(0);er("data-tooltip",null!==(t=null==r||null==r.language?null:r.language.close)&&void 0!==t?t:"Close")}}let v5=(()=>{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)(A(ln))};static#t=this.\u0275cmp=zt({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&&(hi(0),G(1,"header",0)(2,"h6",1),De(3),W(),et(4,bH,3,1,"div",2),W()),2&r){let s,o;const a=Qr(i.settings());P(3),qt(" ",null!==(s=null==a||null==a.language?null:a.language.header)&&void 0!==s?s:"Checkout"," "),P(),ut(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})(),_5=(()=>{class e{constructor(){this.shadow=!0}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=zt({type:e,selectors:[["moto-loader"]],hostVars:1,hostBindings:function(r,i){2&r&&Kh("@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&&(G(0,"div",0),vt(1,"moto-picture",1),Bt(2,"image"),W()),2&r&&(Oi("shadow",i.shadow),P(),ie("src",Pu(2,3,"spinner-small.gif")))},dependencies:[rc,p5],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:[AV({animationName:"ANFade",fromStyles:{opacity:"0"},toStyles:{opacity:"1"}})]},changeDetection:0})}return e})();function CH(e,n){1&e&&Kl(0)}function EH(e,n){1&e&&et(0,CH,1,0,"ng-container",0),2&e&&ie("ngComponentOutlet",J().$implicit.component)}function DH(e,n){1&e&&et(0,EH,1,1,"ng-container"),2&e&&ut(n.$implicit.visible()?0:-1)}function SH(e,n){1&e&&vt(0,"moto-loader")}let TH=(()=>{class e{constructor(t,r,i,s){this.context=t,this.processingService=r,this.mapper=i,this.applePayService=s,this.components=[]}ngOnInit(){this.isLoaderShown=this.context.computed.isLoading,this.context.data.paymentSystemsLoading.set(!0),this.processingService.getAvailablePaymentSystems().subscribe(r=>{r.payments.some(i=>"applepay"===i.name)?this.applePayService.isAvailable(this.context.data.payment()).subscribe(i=>{let s=r.payments;i||(s=s.filter(o=>"applepay"!==o.name)),this.applyPaymentSystems(s)}):this.applyPaymentSystems(r.payments)});const t=this.mapper.mapComponents(this.context.data.settings().components,this.context.visibility);this.components=t}applyPaymentSystems(t){this.context.data.loadedSettings.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)(A(ln),A(ud),A(yc),A(nv))};static#t=this.\u0275cmp=zt({type:e,selectors:[["moto-pay-form"]],decls:3,vars:1,consts:[[4,"ngComponentOutlet"]],template:function(r,i){1&r&&(Fi(0,DH,1,1,null,null,sE),et(2,SH,1,0,"moto-loader")),2&r&&(Vi(i.components),P(2),ut(i.isLoaderShown()?2:-1))},dependencies:[_5,U0],styles:["[_nghost-%COMP%]{display:flex;gap:28px;flex-direction:column}"],changeDetection:0})}return e})();const w5={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'}};let MH=(()=>{class e{constructor(t){this.context=t}ngOnInit(){const t=this.context.data.state().payload;this.error=w5.errors[t.error],this.message=w5.message}static#e=this.\u0275fac=function(r){return new(r||e)(A(ln))};static#t=this.\u0275cmp=zt({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&&(G(0,"div",0)(1,"i",1),De(2,"cancel"),W(),G(3,"h6",2),De(4),W(),G(5,"p",3),De(6),W()()),2&r&&(P(4),tr(i.error),P(2),qt(" ",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})(),IH=(()=>{class e{constructor(t,r,i,s){this.context=t,this.processing=r,this.sessionStorage=i,this.window=s,this.openedWindow=null}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)}handleConfirmation(t){switch(t.name){case"3ds":this.open3Ds(t.data);break;case"redirect":this.openApm(t.data);break;default:throw new Error("Unexpected action name")}}openApm(t){this.openedWindow=this.window.open(t.location,"_blank")}open3Ds(t){const r=document.createElement("form");r.setAttribute("method","POST"),r.setAttribute("action",t.acsurl),r.setAttribute("target","_blank"),r.appendChild(this.createHiddenInput("PaReq",t.paReq)),r.appendChild(this.createHiddenInput("MD",t.md)),r.appendChild(this.createHiddenInput("TermUrl",t.termUrl)),document.body.appendChild(r),r.submit(),document.body.removeChild(r)}createHiddenInput(t,r){const i=document.createElement("input");return i.setAttribute("type","hidden"),i.setAttribute("name",t),i.setAttribute("value",r),i}waitingPaymentCompleted(t){(function w$(e,n,t){return e.pipe(gn(r=>{if(n(r))return r;throw new Error(I4)}),function _$(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?En:qn((s,o)=>{let l,a=0;const c=()=>{let u=!1;l=s.subscribe(Dn(o,d=>{i&&(a=0),o.next(d)},void 0,d=>{if(a++<t){const f=()=>{l?(l.unsubscribe(),l=null,c()):u=!0};if(null!=r){const h="number"==typeof r?S4(r):ji(r(d,a)),g=Dn(o,()=>{g.unsubscribe(),f()},()=>{o.complete()});h.subscribe(g)}else f()}else o.error(d)})),u&&(l.unsubscribe(),l=null,c())};c()})}({delay:r=>r.message==I4?S4(t):T4(()=>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)})}showResult(t,r){const i=this.settings();i.closePaymentRedirect&&this.openedWindow?.close(),i.apmsCollapse&&t&&"rejected"===t.payment.state&&"card"===t.payment.info.paymentType&&this.sessionStorage.setItem(Jr.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)(A(ln),A(ud),A(kp),A(tv))};static#t=this.\u0275cmp=zt({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&&(G(0,"div",0)(1,"div",1)(2,"h2",2),De(3),W(),G(4,"div",3)(5,"div",4)(6,"div",5),vt(7,"div")(8,"div")(9,"div")(10,"div"),W(),vt(11,"div",6),W()()()()),2&r&&(P(3),tr(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 AH(e,n){1&e&&Kl(0)}function xH(e,n){1&e&&et(0,AH,1,0,"ng-container",5),2&e&&ie("ngComponentOutlet",J().$implicit.component)}function NH(e,n){1&e&&et(0,xH,1,1,"ng-container"),2&e&&ut(n.$implicit.visible()?0:-1)}function kH(e,n){if(1&e&&(G(0,"p",3),De(1),W()),2&e){const t=J();P(),qt(" ",t.resultModel.description," ")}}function PH(e,n){if(1&e&&(G(0,"li",6)(1,"p",7),De(2),W()()),2&e){const t=n.$implicit;P(2),qt(" ",t," ")}}function OH(e,n){if(1&e&&(G(0,"ul",4),Fi(1,PH,3,1,"li",6,js),W()),2&e){const t=J();P(),Vi(null==t.paymentResult.payment.rejectionDetails?null:t.paymentResult.payment.rejectionDetails.problemSolvingTips)}}function RH(e,n){1&e&&Kl(0)}function LH(e,n){1&e&&et(0,RH,1,0,"ng-container",5),2&e&&ie("ngComponentOutlet",J().$implicit.component)}function FH(e,n){1&e&&et(0,LH,1,1,"ng-container"),2&e&&ut(n.$implicit.visible()?0:-1)}let VH=(()=>{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)(A(ln),A(yc))};static#t=this.\u0275cmp=zt({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&&(Fi(0,NH,1,1,null,null,js),G(2,"div",0)(3,"i",1),De(4),W(),G(5,"h6",2),De(6),W(),et(7,kH,2,1,"p",3)(8,OH,3,0,"ul",4),W(),Fi(9,FH,1,1,null,null,js)),2&r&&(Vi(i.aboveComponents),P(4),tr(i.resultModel.icon),P(2),tr(i.resultModel.title),P(),ut(i.resultModel.description?7:-1),P(),ut(i.paymentResult&&i.settings().isProblemTipsListVisible&&null!=i.paymentResult.payment.rejectionDetails&&null!=i.paymentResult.payment.rejectionDetails.problemSolvingTips&&i.paymentResult.payment.rejectionDetails.problemSolvingTips.length?8:-1),P(),Vi(i.belowComponents))},dependencies:[U0],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 $H(e,n){1&e&&vt(0,"moto-header")}function BH(e,n){1&e&&vt(0,"moto-pay-form")}function jH(e,n){1&e&&vt(0,"moto-invalid-pay-form")}function HH(e,n){1&e&&vt(0,"moto-processing")}function UH(e,n){1&e&&vt(0,"moto-result")}function zH(e,n){}let qH=(()=>{class e{constructor(t,r,i){this.context=t,this.dataHandler=r,this.sessionStorage=i,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,RD(()=>{this.context.computed.isLoading()?this.context.events.analytics.emit(new tn("init-start")):this.context.events.analytics.emit(new tn("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,this.settingsSignal=dt(()=>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()}ngOnDestroy(){this.context.data.settings()?.apmsCollapse&&this.sessionStorage.removeItem(Jr.keys.apmsCollapse)}validate(){const t=this.context.data.settings(),r=this.context.data.payment(),i=this.dataHandler.validateModelsCompatibility(r,t);i?this.state.set({type:"invalid",payload:{error:i}}):(this.applySettings(),this.context.data.settings()?.requiredFieldsBehavior?.markAsInvalidUntilCorrect&&this.context.updateCanShowError(!0),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})),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(Jr.keys.apmsCollapse,!0)}static#e=this.\u0275fac=function(r){return new(r||e)(A(ln),A(y5),A(kp))};static#t=this.\u0275cmp=zt({type:e,selectors:[["moto-payment-form"]],inputs:{payment:"payment",settings:"settings"},outputs:{closeEvent:"close",paidEvent:"paid",analyticsEvent:"analyticsTracked",error:"error"},features:[xi],decls:9,vars:2,consts:[[1,"__ndb-wrapper"],[1,"__ndb-wrapper-content"],[1,"__ndb-wrapper-content-main"]],template:function(r,i){if(1&r&&(G(0,"div",0)(1,"div",1),et(2,$H,1,0,"moto-header"),G(3,"div",2),et(4,BH,1,0,"moto-pay-form")(5,jH,1,0,"moto-invalid-pay-form")(6,HH,1,0,"moto-processing")(7,UH,1,0,"moto-result")(8,zH,0,0),W()()()),2&r){let s,o;P(2),ut(null===(s=null==(s=i.settingsSignal())?null:s.isHeaderVisible)||void 0===s||s?2:-1),P(2),ut("correct"===(o=i.state().type)?4:"invalid"===o?5:"payLoading"===o?6:"result"===o?7:"empty"===o?8:-1)}},dependencies:[v5,TH,MH,IH,VH],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})(),b5=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Gn({type:e});static#n=this.\u0275inj=Ln({})}return e})();function C5(e){return new k(3e3,!1)}function Oo(e){switch(e.length){case 0:return new Ku;case 1:return e[0];default:return new Q3(e)}}function E5(e,n,t=new Map,r=new Map){const i=[],s=[];let o=-1,a=null;if(n.forEach(l=>{const c=l.get("offset"),u=c==o,d=u&&a||new Map;l.forEach((f,h)=>{let g=h,v=f;if("offset"!==h)switch(g=e.normalizePropertyName(g,i),v){case"!":v=t.get(h);break;case zs:v=r.get(h);break;default:v=e.normalizeStyleValue(h,g,v,i)}d.set(g,v)}),u||s.push(d),a=d,o=c}),i.length)throw function pU(){return new k(3502,!1)}();return s}function rv(e,n,t,r){switch(n){case"start":e.onStart(()=>r(t&&iv(t,"start",e)));break;case"done":e.onDone(()=>r(t&&iv(t,"done",e)));break;case"destroy":e.onDestroy(()=>r(t&&iv(t,"destroy",e)))}}function iv(e,n,t){const s=sv(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 sv(e,n,t,r,i="",s=0,o){return{element:e,triggerName:n,fromState:t,toState:r,phaseName:i,totalTime:s,disabled:!!o}}function ti(e,n,t){let r=e.get(n);return r||e.set(n,r=t),r}function D5(e){const n=e.indexOf(":");return[e.substring(1,n),e.slice(n+1)]}const TU=typeof document>"u"?null:document.documentElement;function ov(e){const n=e.parentNode||e.host||null;return n===TU?null:n}let Aa=null,S5=!1;function T5(e,n){for(;n;){if(n===e)return!0;n=ov(n)}return!1}function M5(e,n,t){if(t)return Array.from(e.querySelectorAll(n));const r=e.querySelector(n);return r?[r]:[]}let av=(()=>{class e{validateStyleProperty(t){return function IU(e){Aa||(Aa=function AU(){return typeof document<"u"?document.body:null}()||{},S5=!!Aa.style&&"WebkitAppearance"in Aa.style);let n=!0;return Aa.style&&!function MU(e){return"ebkit"==e.substring(1,6)}(e)&&(n=e in Aa.style,!n&&S5&&(n="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in Aa.style)),n}(t)}containsElement(t,r){return T5(t,r)}getParentElement(t){return ov(t)}query(t,r,i){return M5(t,r,i)}computeStyle(t,r,i){return i||""}animate(t,r,i,s,o,a=[],l){return new Ku(i,s)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=te({token:e,factory:e.\u0275fac})}return e})();class lv{static#e=this.NOOP=new av}class cv{}const NU=1e3,uv="ng-enter",Pp="ng-leave",Op="ng-trigger",Rp=".ng-trigger",A5="ng-animating",dv=".ng-animating";function Zs(e){if("number"==typeof e)return e;const n=e.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:hv(parseFloat(n[1]),n[2])}function hv(e,n){return"s"===n?e*NU:e}function Lp(e,n,t){return e.hasOwnProperty("duration")?e:function PU(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(C5()),{duration:0,delay:0,easing:""};i=hv(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=hv(parseFloat(l),a[4]));const c=a[5];c&&(o=c)}else i=e;if(!t){let a=!1,l=n.length;i<0&&(n.push(function GH(){return new k(3100,!1)}()),a=!0),s<0&&(n.push(function WH(){return new k(3101,!1)}()),a=!0),a&&n.splice(l,0,C5())}return{duration:i,delay:s,easing:o}}(e,n,t)}function ws(e,n,t){n.forEach((r,i)=>{const s=pv(i);t&&!t.has(i)&&t.set(i,e.style[s]),e.style[s]=r})}function xa(e,n){n.forEach((t,r)=>{const i=pv(r);e.style[i]=""})}function dd(e){return Array.isArray(e)?1==e.length?e[0]:function bV(e,n=null){return{type:we.Sequence,steps:e,options:n}}(e):e}const fv=new RegExp("{{\\s*(.+?)\\s*}}","g");function N5(e){let n=[];if("string"==typeof e){let t;for(;t=fv.exec(e);)n.push(t[1]);fv.lastIndex=0}return n}function hd(e,n,t){const r=`${e}`,i=r.replace(fv,(s,o)=>{let a=n[o];return null==a&&(t.push(function KH(){return new k(3003,!1)}()),a=""),a.toString()});return i==r?e:i}const LU=/-+([a-z0-9])/g;function pv(e){return e.replace(LU,(...n)=>n[1].toUpperCase())}function ni(e,n,t){switch(n.type){case we.Trigger:return e.visitTrigger(n,t);case we.State:return e.visitState(n,t);case we.Transition:return e.visitTransition(n,t);case we.Sequence:return e.visitSequence(n,t);case we.Group:return e.visitGroup(n,t);case we.Animate:return e.visitAnimate(n,t);case we.Keyframes:return e.visitKeyframes(n,t);case we.Style:return e.visitStyle(n,t);case we.Reference:return e.visitReference(n,t);case we.AnimateChild:return e.visitAnimateChild(n,t);case we.AnimateRef:return e.visitAnimateRef(n,t);case we.Query:return e.visitQuery(n,t);case we.Stagger:return e.visitStagger(n,t);default:throw function YH(){return new k(3004,!1)}()}}function gv(e,n){return window.getComputedStyle(e)[n]}const $U=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 k5 extends cv{normalizePropertyName(n,t){return pv(n)}normalizeStyleValue(n,t,r,i){let s="";const o=r.toString().trim();if($U.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 QH(){return new k(3005,!1)}())}return o+s}}const Fp="*";const Vp=new Set(["true","1"]),$p=new Set(["false","0"]);function P5(e,n){const t=Vp.has(e)||$p.has(e),r=Vp.has(n)||$p.has(n);return(i,s)=>{let o=e==Fp||e==i,a=n==Fp||n==s;return!o&&t&&"boolean"==typeof i&&(o=i?Vp.has(e):$p.has(e)),!a&&r&&"boolean"==typeof s&&(a=s?Vp.has(n):$p.has(n)),o&&a}}const UU=new RegExp("s*:selfs*,?","g");function mv(e,n,t,r){return new zU(e).build(n,t,r)}class zU{constructor(n){this._driver=n}build(n,t,r){const i=new WU(t);return this._resetContextStyleTimingState(i),ni(this,dd(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 XH(){return new k(3006,!1)}()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==we.State){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,s.push(this.visitState(l,t))}),l.name=c}else if(a.type==we.Transition){const l=this.visitTransition(a,t);r+=l.queryCount,i+=l.depCount,o.push(l)}else t.errors.push(function JH(){return new k(3007,!1)}())}),{type:we.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(l=>{N5(l).forEach(c=>{o.hasOwnProperty(c)||s.add(c)})})}),s.size&&t.errors.push(function eU(){return new k(3008,!1)}(0,s.values()))}return{type:we.State,name:n.name,style:r,options:i?{params:i}:null}}visitTransition(n,t){t.queryCount=0,t.depCount=0;const r=ni(this,dd(n.animation),t),i=function BU(e,n){const t=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(r=>function jU(e,n,t){if(":"==e[0]){const l=function HU(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 uU(){return new k(3016,!1)}()),"* => *"}}(e,t);if("function"==typeof l)return void n.push(l);e=l}const r=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return t.push(function cU(){return new k(3015,!1)}()),n;const i=r[1],s=r[2],o=r[3];n.push(P5(i,o)),"<"==s[0]&&(i!=Fp||o!=Fp)&&n.push(P5(o,i))}(r,t,n)):t.push(e),t}(n.expr,t.errors);return{type:we.Transition,matchers:i,animation:r,queryCount:t.queryCount,depCount:t.depCount,options:Na(n.options)}}visitSequence(n,t){return{type:we.Sequence,steps:n.steps.map(r=>ni(this,r,t)),options:Na(n.options)}}visitGroup(n,t){const r=t.currentTime;let i=0;const s=n.steps.map(o=>{t.currentTime=r;const a=ni(this,o,t);return i=Math.max(i,t.currentTime),a});return t.currentTime=i,{type:we.Group,steps:s,options:Na(n.options)}}visitAnimate(n,t){const r=function KU(e,n){if(e.hasOwnProperty("duration"))return e;if("number"==typeof e)return yv(Lp(e,n).duration,0,"");const t=e;if(t.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=yv(0,0,"");return s.dynamic=!0,s.strValue=t,s}const i=Lp(t,n);return yv(i.duration,i.delay,i.easing)}(n.timings,t.errors);t.currentAnimateTimings=r;let i,s=n.styles?n.styles:cn({});if(s.type==we.Keyframes)i=this.visitKeyframes(s,t);else{let o=n.styles,a=!1;if(!o){a=!0;const c={};r.easing&&(c.easing=r.easing),o=cn(c)}t.currentTime+=r.duration+r.delay;const l=this.visitStyle(o,t);l.isEmptyStep=a,i=l}return t.currentAnimateTimings=null,{type:we.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===zs?r.push(a):t.errors.push(new k(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 l of a.values())if(l.toString().indexOf("{{")>=0){s=!0;break}}),{type:we.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,l)=>{const c=t.collectedStyles.get(t.currentQuerySelector),u=c.get(l);let d=!0;u&&(s!=i&&s>=u.startTime&&i<=u.endTime&&(t.errors.push(function nU(){return new k(3010,!1)}()),d=!1),s=u.startTime),d&&c.set(l,{startTime:s,endTime:i}),t.options&&function RU(e,n,t){const r=n.params||{},i=N5(e);i.length&&i.forEach(s=>{r.hasOwnProperty(s)||t.push(function ZH(){return new k(3001,!1)}())})}(a,t.options,t.errors)})})}visitKeyframes(n,t){const r={type:we.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function rU(){return new k(3011,!1)}()),r;let s=0;const o=[];let a=!1,l=!1,c=0;const u=n.steps.map(T=>{const D=this._makeStyleAst(T,t);let F=null!=D.offset?D.offset:function ZU(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}(D.styles),L=0;return null!=F&&(s++,L=D.offset=F),l=l||L<0||L>1,a=a||L<c,c=L,o.push(L),D});l&&t.errors.push(function iU(){return new k(3012,!1)}()),a&&t.errors.push(function sU(){return new k(3200,!1)}());const d=n.steps.length;let f=0;s>0&&s<d?t.errors.push(function oU(){return new k(3202,!1)}()):0==s&&(f=1/(d-1));const h=d-1,g=t.currentTime,v=t.currentAnimateTimings,C=v.duration;return u.forEach((T,D)=>{const F=f>0?D==h?1:f*D:o[D],L=F*C;t.currentTime=g+v.delay+L,v.duration=L,this._validateStyleAst(T,t),T.offset=F,r.styles.push(T)}),r}visitReference(n,t){return{type:we.Reference,animation:ni(this,dd(n.animation),t),options:Na(n.options)}}visitAnimateChild(n,t){return t.depCount++,{type:we.AnimateChild,options:Na(n.options)}}visitAnimateRef(n,t){return{type:we.AnimateRef,animation:this.visitReference(n.animation,t),options:Na(n.options)}}visitQuery(n,t){const r=t.currentQuerySelector,i=n.options||{};t.queryCount++,t.currentQuery=n;const[s,o]=function qU(e){const n=!!e.split(/\s*,\s*/).find(t=>":self"==t);return n&&(e=e.replace(UU,"")),e=e.replace(/@\*/g,Rp).replace(/@\w+/g,t=>Rp+"-"+t.slice(1)).replace(/:animating/g,dv),[e,n]}(n.selector);t.currentQuerySelector=r.length?r+" "+s:s,ti(t.collectedStyles,t.currentQuerySelector,new Map);const a=ni(this,dd(n.animation),t);return t.currentQuery=null,t.currentQuerySelector=r,{type:we.Query,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:o,animation:a,originalSelector:n.selector,options:Na(n.options)}}visitStagger(n,t){t.currentQuery||t.errors.push(function aU(){return new k(3013,!1)}());const r="full"===n.timings?{duration:0,delay:0,easing:"full"}:Lp(n.timings,t.errors,!0);return{type:we.Stagger,animation:ni(this,dd(n.animation),t),timings:r,options:null}}}class WU{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 Na(e){return e?(e={...e}).params&&(e.params=function GU(e){return e?{...e}:null}(e.params)):e={},e}function yv(e,n,t){return{duration:e,delay:n,easing:t}}function vv(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 Bp{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 XU=new RegExp(":enter","g"),ez=new RegExp(":leave","g");function _v(e,n,t,r,i,s=new Map,o=new Map,a,l,c=[]){return(new tz).buildKeyframes(e,n,t,r,i,s,o,a,l,c)}class tz{buildKeyframes(n,t,r,i,s,o,a,l,c,u=[]){c=c||new Bp;const d=new wv(n,t,c,i,s,u,[]);d.options=l;const f=l.delay?Zs(l.delay):0;d.currentTimeline.delayNextStep(f),d.currentTimeline.setStyles([o],null,d.errors,l),ni(this,r,d);const h=d.timelines.filter(g=>g.containsAnimation());if(h.length&&a.size){let g;for(let v=h.length-1;v>=0;v--){const C=h[v];if(C.element===t){g=C;break}}g&&!g.allowOnlyTimelineStyles()&&g.setStyles([a],null,d.errors,l)}return h.length?h.map(g=>g.buildKeyframes()):[vv(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:Zs(hd(s,i?.params??{},t.errors));r.delayNextStep(o)}}}_visitSubInstructions(n,t,r){let s=t.currentTimeline.currentTime;const o=null!=r.duration?Zs(r.duration):null,a=null!=r.delay?Zs(r.delay):null;return 0!==o&&n.forEach(l=>{const c=t.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(n,t){t.updateOptions(n.options,!0),ni(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==we.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=jp);const o=Zs(s.delay);i.delayNextStep(o)}n.steps.length&&(n.steps.forEach(o=>ni(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?Zs(n.options.delay):0;n.steps.forEach(o=>{const a=t.createSubContext(n.options);s&&a.delayNextStep(s),ni(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 Lp(t.params?hd(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==we.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(l=>{a.forwardTime((l.offset||0)*s),a.setStyles(l.styles,l.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?Zs(i.delay):0;s&&(t.previousNode.type===we.Style||0==r&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=jp);let o=r;const a=t.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{t.currentQueryIndex=u;const d=t.createSubContext(n.options,c);s&&d.delayNextStep(s),c===t.element&&(l=d.currentTimeline),ni(this,n.animation,d),d.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,d.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),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 l=o*t.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=r.currentStaggerTime}const u=t.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;ni(this,n.animation,t),t.previousNode=n,r.currentStaggerTime=i.currentTime-d+(i.startTime-r.currentTimeline.startTime)}}const jp={};class wv{constructor(n,t,r,i,s,o,a,l){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=jp,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Hp(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=Zs(r.duration)),null!=r.delay&&(i.delay=Zs(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]=hd(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 wv(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=jp,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 nz(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(XU,"."+this._enterClassName)).replace(ez,"."+this._leaveClassName);let c=this._driver.query(this.element,n,1!=r);0!==r&&(c=r<0?c.slice(c.length+r,c.length):c.slice(0,r)),a.push(...c)}return!s&&0==a.length&&o.push(function lU(){return new k(3014,!1)}()),a}}class Hp{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 Hp(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||zs),this._currentKeyframe.set(t,zs);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,t,r,i){t&&this._previousKeyframe.set("easing",t);const s=i&&i.params||{},o=function rz(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,zs)}else for(let[s,o]of i)t.set(s,o)}),t}(n,this._globalTimelineStyles);for(let[a,l]of o){const c=hd(l,s,r);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??zs),this._updateStyle(a,c)}}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,l)=>{const c=new Map([...this._backFill,...a]);c.forEach((u,d)=>{"!"===u?n.add(d):u===zs&&t.add(d)}),r||c.set("offset",l/this.duration),i.push(c)});const s=[...n.values()],o=[...t.values()];if(r){const a=i[0],l=new Map(a);a.set("offset",0),l.set("offset",1),i=[a,l]}return vv(this.element,i,s,o,this.duration,this.startTime,this.easing,!1)}}class nz extends Hp{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,l=new Map(n[0]);l.set("offset",0),s.push(l);const c=new Map(n[0]);c.set("offset",L5(a)),s.push(c);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",L5((t+h*r)/o)),s.push(f)}r=o,t=0,i="",n=s}return vv(this.element,n,this.preStyleProps,this.postStyleProps,r,t,i,!0)}}function L5(e,n=3){const t=Math.pow(10,n-1);return Math.round(e*t)/t}function F5(e,n,t,r,i,s,o,a,l,c,u,d,f){return{type:0,element:e,triggerName:n,isRemovalTransition:i,fromState:t,fromStyles:s,toState:r,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:f}}const bv={};class V5{constructor(n,t,r){this._triggerName=n,this.ast=t,this._stateStyles=r}match(n,t,r,i){return function iz(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,l,c,u){const d=[],f=this.ast.options&&this.ast.options.params||bv,g=this.buildStyles(r,a&&a.params||bv,d),v=l&&l.params||bv,C=this.buildStyles(i,v,d),T=new Set,D=new Map,F=new Map,L="void"===i,H={params:$5(v,f),delay:this.ast.options?.delay},U=u?[]:_v(n,t,this.ast.animation,s,o,g,C,H,c,d);let ce=0;return U.forEach(Fe=>{ce=Math.max(Fe.duration+Fe.delay,ce)}),d.length?F5(t,this._triggerName,r,i,L,g,C,[],[],D,F,ce,d):(U.forEach(Fe=>{const Et=Fe.element,rn=ti(D,Et,new Set);Fe.preStyleProps.forEach(Rr=>rn.add(Rr));const Dt=ti(F,Et,new Set);Fe.postStyleProps.forEach(Rr=>Dt.add(Rr)),Et!==t&&T.add(Et)}),F5(t,this._triggerName,r,i,L,g,C,U,[...T.values()],D,F,ce))}}function $5(e,n){const t={...n};return Object.entries(e).forEach(([r,i])=>{null!=i&&(t[r]=i)}),t}class sz{constructor(n,t,r){this.styles=n,this.defaultParams=t,this.normalizer=r}buildStyles(n,t){const r=new Map,i=$5(n,this.defaultParams);return this.styles.styles.forEach(s=>{"string"!=typeof s&&s.forEach((o,a)=>{o&&(o=hd(o,i,t));const l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),r.set(a,o)})}),r}}class az{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 sz(i.style,i.options&&i.options.params||{},r))}),B5(this.states,"true","1"),B5(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new V5(n,i,this.states))}),this.fallbackTransition=function lz(e,n){return new V5(e,{type:we.Transition,animation:{type:we.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 B5(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 cz=new Bp;class uz{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=mv(this._driver,t,r,[]);if(r.length)throw function gU(){return new k(3503,!1)}();this._animations.set(n,s)}_buildPlayer(n,t,r){const i=n.element,s=E5(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=_v(this._driver,t,s,uv,Pp,new Map,new Map,r,cz,i),o.forEach(u=>{const d=ti(a,u.element,new Map);u.postStyleProps.forEach(f=>d.set(f,null))})):(i.push(function mU(){return new k(3300,!1)}()),o=[]),i.length)throw function yU(){return new k(3504,!1)}();a.forEach((u,d)=>{u.forEach((f,h)=>{u.set(h,this._driver.computeStyle(d,h,zs))})});const c=Oo(o.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(n,c),c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}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 vU(){return new k(3301,!1)}();return t}listen(n,t,r,i){const s=sv(t,"","","");return rv(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 j5="ng-animate-queued",Cv="ng-animate-disabled",gz=[],H5={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},mz={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},qi="__ng_removed";class Ev{get params(){return this.options.params}constructor(n,t=""){this.namespaceId=t;const r=n&&n.hasOwnProperty("value");if(this.value=function wz(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 fd="void",Dv=new Ev(fd);class yz{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,vi(t,this._hostClassName)}listen(n,t,r,i){if(!this._triggers.has(t))throw function _U(){return new k(3302,!1)}();if(null==r||0==r.length)throw function wU(){return new k(3303,!1)}();if(!function bz(e){return"start"==e||"done"==e}(r))throw function bU(){return new k(3400,!1)}();const s=ti(this._elementListeners,n,[]),o={name:t,phase:r,callback:i};s.push(o);const a=ti(this._engine.statesByElement,n,new Map);return a.has(t)||(vi(n,Op),vi(n,Op+"-"+t),a.set(t,Dv)),()=>{this._engine.afterFlush(()=>{const l=s.indexOf(o);l>=0&&s.splice(l,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 CU(){return new k(3401,!1)}();return t}trigger(n,t,r,i=!0){const s=this._getTrigger(t),o=new Sv(this.id,t,n);let a=this._engine.statesByElement.get(n);a||(vi(n,Op),vi(n,Op+"-"+t),this._engine.statesByElement.set(n,a=new Map));let l=a.get(t);const c=new Ev(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=Dv),c.value!==fd&&l.value===c.value){if(!function Dz(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}(l.params,c.params)){const v=[],C=s.matchStyles(l.value,l.params,v),T=s.matchStyles(c.value,c.params,v);v.length?this._engine.reportError(v):this._engine.afterFlush(()=>{xa(n,C),ws(n,T)})}return}const f=ti(this._engine.playersByElement,n,[]);f.forEach(v=>{v.namespaceId==this.id&&v.triggerName==t&&v.queued&&v.destroy()});let h=s.matchTransition(l.value,c.value,n,c.params),g=!1;if(!h){if(!i)return;h=s.fallbackTransition,g=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:t,transition:h,fromState:l,toState:c,player:o,isFallbackTransition:g}),g||(vi(n,j5),o.onStart(()=>{vc(n,j5)})),o.onDone(()=>{let v=this.players.indexOf(o);v>=0&&this.players.splice(v,1);const C=this._engine.playersByElement.get(n);if(C){let T=C.indexOf(o);T>=0&&C.splice(T,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,Rp,!0);r.forEach(i=>{if(i[qi])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((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){const u=this.trigger(n,c,fd,i);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,t,o),r&&Oo(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 l=this._triggers.get(o).fallbackTransition,c=r.get(o)||Dv,u=new Ev(fd),d=new Sv(this.id,o,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:o,transition:l,fromState:c,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[qi];(!s||s===H5)&&(r.afterFlush(()=>this.clearElementCache(n)),r.destroyInnerAnimations(n),r._onRemovalComplete(n,t))}}insertNode(n,t){vi(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 l=sv(s,r.triggerName,r.fromState.value,r.toState.value);l._data=n,rv(r.player,a.phase,l,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 vz{_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 yz(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 l=i.get(a);if(l){const c=r.indexOf(l);r.splice(c+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(Up(t)){const s=this._fetchNamespace(n);if(s)return s.trigger(t,r,i),!0}return!1}insertNode(n,t,r,i){if(!Up(t))return;const s=t[qi];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),vi(n,Cv)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),vc(n,Cv))}removeNode(n,t,r){if(Up(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[qi]={namespaceId:n,setForRemoval:i,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:s}}listen(n,t,r,i,s){return Up(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,Rp,!0);t.forEach(r=>this.destroyActiveAnimationsForElement(r)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(n,dv,!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 Oo(this.players).onDone(()=>n());n()})}processLeaveNode(n){const t=n[qi];if(t&&t.setForRemoval){if(n[qi]=H5,t.namespaceId){this.destroyInnerAnimations(n);const r=this._fetchNamespace(t.namespaceId);r&&r.clearElementCache(n)}this._onRemovalComplete(n,t.setForRemoval)}n.classList?.contains(Cv)&&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++)vi(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?Oo(t).onDone(()=>{r.forEach(i=>i())}):r.forEach(i=>i())}}reportError(n){throw function EU(){return new k(3402,!1)}()}_flushAnimations(n,t){const r=new Bp,i=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(Y=>{u.add(Y);const oe=this.driver.query(Y,".ng-animate-queued",!0);for(let fe=0;fe<oe.length;fe++)u.add(oe[fe])});const d=this.bodyNode,f=Array.from(this.statesByElement.keys()),h=q5(f,this.collectedEnterElements),g=new Map;let v=0;h.forEach((Y,oe)=>{const fe=uv+v++;g.set(oe,fe),Y.forEach(ze=>vi(ze,fe))});const C=[],T=new Set,D=new Set;for(let Y=0;Y<this.collectedLeaveElements.length;Y++){const oe=this.collectedLeaveElements[Y],fe=oe[qi];fe&&fe.setForRemoval&&(C.push(oe),T.add(oe),fe.hasAnimation?this.driver.query(oe,".ng-star-inserted",!0).forEach(ze=>T.add(ze)):D.add(oe))}const F=new Map,L=q5(f,Array.from(T));L.forEach((Y,oe)=>{const fe=Pp+v++;F.set(oe,fe),Y.forEach(ze=>vi(ze,fe))}),n.push(()=>{h.forEach((Y,oe)=>{const fe=g.get(oe);Y.forEach(ze=>vc(ze,fe))}),L.forEach((Y,oe)=>{const fe=F.get(oe);Y.forEach(ze=>vc(ze,fe))}),C.forEach(Y=>{this.processLeaveNode(Y)})});const H=[],U=[];for(let Y=this._namespaceList.length-1;Y>=0;Y--)this._namespaceList[Y].drainQueuedTransitions(t).forEach(fe=>{const ze=fe.player,Nn=fe.element;if(H.push(ze),this.collectedEnterElements.length){const ur=Nn[qi];if(ur&&ur.setForMove){if(ur.previousTriggersValues&&ur.previousTriggersValues.has(fe.triggerName)){const Pa=ur.previousTriggersValues.get(fe.triggerName),wi=this.statesByElement.get(fe.element);if(wi&&wi.has(fe.triggerName)){const Gp=wi.get(fe.triggerName);Gp.value=Pa,wi.set(fe.triggerName,Gp)}}return void ze.destroy()}}const _i=!d||!this.driver.containsElement(d,Nn),Cr=F.get(Nn),Es=g.get(Nn),Gt=this._buildInstruction(fe,r,Es,Cr,_i);if(Gt.errors&&Gt.errors.length)return void U.push(Gt);if(_i)return ze.onStart(()=>xa(Nn,Gt.fromStyles)),ze.onDestroy(()=>ws(Nn,Gt.toStyles)),void i.push(ze);if(fe.isFallbackTransition)return ze.onStart(()=>xa(Nn,Gt.fromStyles)),ze.onDestroy(()=>ws(Nn,Gt.toStyles)),void i.push(ze);const qp=[];Gt.timelines.forEach(ur=>{ur.stretchStartingKeyframe=!0,this.disabledNodes.has(ur.element)||qp.push(ur)}),Gt.timelines=qp,r.append(Nn,Gt.timelines),o.push({instruction:Gt,player:ze,element:Nn}),Gt.queriedElements.forEach(ur=>ti(a,ur,[]).push(ze)),Gt.preStyleProps.forEach((ur,Pa)=>{if(ur.size){let wi=l.get(Pa);wi||l.set(Pa,wi=new Set),ur.forEach((Gp,Iv)=>wi.add(Iv))}}),Gt.postStyleProps.forEach((ur,Pa)=>{let wi=c.get(Pa);wi||c.set(Pa,wi=new Set),ur.forEach((Gp,Iv)=>wi.add(Iv))})});if(U.length){const Y=[];U.forEach(oe=>{Y.push(function DU(){return new k(3505,!1)}())}),H.forEach(oe=>oe.destroy()),this.reportError(Y)}const ce=new Map,Fe=new Map;o.forEach(Y=>{const oe=Y.element;r.has(oe)&&(Fe.set(oe,oe),this._beforeAnimationBuild(Y.player.namespaceId,Y.instruction,ce))}),i.forEach(Y=>{const oe=Y.element;this._getPreviousPlayers(oe,!1,Y.namespaceId,Y.triggerName,null).forEach(ze=>{ti(ce,oe,[]).push(ze),ze.destroy()})});const Et=C.filter(Y=>W5(Y,l,c)),rn=new Map;z5(rn,this.driver,D,c,zs).forEach(Y=>{W5(Y,l,c)&&Et.push(Y)});const Rr=new Map;h.forEach((Y,oe)=>{z5(Rr,this.driver,new Set(Y),l,"!")}),Et.forEach(Y=>{const oe=rn.get(Y),fe=Rr.get(Y);rn.set(Y,new Map([...oe?.entries()??[],...fe?.entries()??[]]))});const bs=[],Cs=[],ka={};o.forEach(Y=>{const{element:oe,player:fe,instruction:ze}=Y;if(r.has(oe)){if(u.has(oe))return fe.onDestroy(()=>ws(oe,ze.toStyles)),fe.disabled=!0,fe.overrideTotalTime(ze.totalTime),void i.push(fe);let Nn=ka;if(Fe.size>1){let Cr=oe;const Es=[];for(;Cr=Cr.parentNode;){const Gt=Fe.get(Cr);if(Gt){Nn=Gt;break}Es.push(Cr)}Es.forEach(Gt=>Fe.set(Gt,Nn))}const _i=this._buildAnimation(fe.namespaceId,ze,ce,s,Rr,rn);if(fe.setRealPlayer(_i),Nn===ka)bs.push(fe);else{const Cr=this.playersByElement.get(Nn);Cr&&Cr.length&&(fe.parentPlayer=Oo(Cr)),i.push(fe)}}else xa(oe,ze.fromStyles),fe.onDestroy(()=>ws(oe,ze.toStyles)),Cs.push(fe),u.has(oe)&&i.push(fe)}),Cs.forEach(Y=>{const oe=s.get(Y.element);if(oe&&oe.length){const fe=Oo(oe);Y.setRealPlayer(fe)}}),i.forEach(Y=>{Y.parentPlayer?Y.syncPlayerEvents(Y.parentPlayer):Y.destroy()});for(let Y=0;Y<C.length;Y++){const oe=C[Y],fe=oe[qi];if(vc(oe,Pp),fe&&fe.hasAnimation)continue;let ze=[];if(a.size){let _i=a.get(oe);_i&&_i.length&&ze.push(..._i);let Cr=this.driver.query(oe,dv,!0);for(let Es=0;Es<Cr.length;Es++){let Gt=a.get(Cr[Es]);Gt&&Gt.length&&ze.push(...Gt)}}const Nn=ze.filter(_i=>!_i.destroyed);Nn.length?Cz(this,oe,Nn):this.processLeaveNode(oe)}return C.length=0,bs.forEach(Y=>{this.players.push(Y),Y.onDone(()=>{Y.destroy();const oe=this.players.indexOf(Y);this.players.splice(oe,1)}),Y.play()}),bs}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 l=!s||s==fd;a.forEach(c=>{c.queued||!l&&c.triggerName!=i||o.push(c)})}}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 l of t.timelines){const c=l.element,u=c!==s,d=ti(r,c,[]);this._getPreviousPlayers(c,u,o,a,t.toState).forEach(h=>{const g=h.getRealPlayer();g.beforeDestroy&&g.beforeDestroy(),h.destroy(),d.push(h)})}xa(s,t.fromStyles)}_buildAnimation(n,t,r,i,s,o){const a=t.triggerName,l=t.element,c=[],u=new Set,d=new Set,f=t.timelines.map(g=>{const v=g.element;u.add(v);const C=v[qi];if(C&&C.removedBeforeQueried)return new Ku(g.duration,g.delay);const T=v!==l,D=function Ez(e){const n=[];return G5(e,n),n}((r.get(v)||gz).map(ce=>ce.getRealPlayer())).filter(ce=>!!ce.element&&ce.element===v),F=s.get(v),L=o.get(v),H=E5(this._normalizer,g.keyframes,F,L),U=this._buildPlayer(g,H,D);if(g.subTimeline&&i&&d.add(v),T){const ce=new Sv(n,a,v);ce.setRealPlayer(U),c.push(ce)}return U});c.forEach(g=>{ti(this.playersByQueriedElement,g.element,[]).push(g),g.onDone(()=>function _z(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,g.element,g))}),u.forEach(g=>vi(g,A5));const h=Oo(f);return h.onDestroy(()=>{u.forEach(g=>vc(g,A5)),ws(l,t.toStyles)}),d.forEach(g=>{ti(i,g,[]).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 Ku(n.duration,n.delay)}}class Sv{constructor(n,t,r){this.namespaceId=n,this.triggerName=t,this.element=r,this._player=new Ku,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=>rv(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){ti(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 Up(e){return e&&1===e.nodeType}function U5(e,n){const t=e.style.display;return e.style.display=n??"none",t}function z5(e,n,t,r,i){const s=[];t.forEach(l=>s.push(U5(l)));const o=[];r.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const f=n.computeStyle(c,d,i);u.set(d,f),(!f||0==f.length)&&(c[qi]=mz,o.push(c))}),e.set(c,u)});let a=0;return t.forEach(l=>U5(l,s[a++])),o}function q5(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 l=s.get(a);if(l)return l;const c=a.parentNode;return l=t.has(c)?c:i.has(c)?1:o(c),s.set(a,l),l}return n.forEach(a=>{const l=o(a);1!==l&&t.get(l).push(a)}),t}function vi(e,n){e.classList?.add(n)}function vc(e,n){e.classList?.remove(n)}function Cz(e,n,t){Oo(t).onDone(()=>e.processLeaveNode(n))}function G5(e,n){for(let t=0;t<e.length;t++){const r=e[t];r instanceof Q3?G5(r.players,n):n.push(r)}}function W5(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 pd{constructor(n,t,r){this._driver=t,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(i,s)=>{},this._transitionEngine=new vz(n.body,t,r),this._timelineEngine=new uz(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 l=[],u=mv(this._driver,s,l,[]);if(l.length)throw function fU(){return new k(3404,!1)}();a=function oz(e,n,t){return new az(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]=D5(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]=D5(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 gd{static#e=this.initialStylesByElement=new WeakMap;constructor(n,t,r){this._element=n,this._startStyles=t,this._endStyles=r,this._state=0;let i=gd.initialStylesByElement.get(n);i||gd.initialStylesByElement.set(n,i=new Map),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&ws(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ws(this._element,this._initialStyles),this._endStyles&&(ws(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(gd.initialStylesByElement.delete(this._element),this._startStyles&&(xa(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(xa(this._element,this._endStyles),this._endStyles=null),ws(this._element,this._initialStyles),this._state=3)}}function Tv(e){let n=null;return e.forEach((t,r)=>{(function Tz(e){return"display"===e||"position"===e})(r)&&(n=n||new Map,n.set(r,t))}),n}class Z5{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:gv(this.element,i))}),this.currentSnapshot=n}triggerCallback(n){const t="start"===n?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}class K5{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}containsElement(n,t){return T5(n,t)}getParentElement(n){return ov(n)}query(n,t,r){return M5(n,t,r)}computeStyle(n,t,r){return gv(n,t)}animate(n,t,r,i,s,o=[]){const l={duration:r,delay:i,fill:0==i?"both":"forwards"};s&&(l.easing=s);const c=new Map,u=o.filter(h=>h instanceof Z5);(function FU(e,n){return 0===e||0===n})(r,i)&&u.forEach(h=>{h.currentSnapshot.forEach((g,v)=>c.set(v,g))});let d=function OU(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 VU(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,gv(e,a)))}}return n}(n,d,c);const f=function Sz(e,n){let t=null,r=null;return Array.isArray(n)&&n.length?(t=Tv(n[0]),n.length>1&&(r=Tv(n[n.length-1]))):n instanceof Map&&(t=Tv(n)),t||r?new gd(e,t,r):null}(n,d);return new Z5(n,d,l,f)}}const Y5="@.disabled";class Q5{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==Y5?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 Mz extends Q5{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==Y5?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 Iz(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 Az(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 xz{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 c=this._rendererCache;let u=c.get(i);return u||(u=new Q5("",i,this.engine,()=>c.delete(i)),c.set(i,u)),u}const s=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,n);const a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(s,o,n,c.name,c)};return t.data.animation.forEach(a),new Mz(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 X5=[{provide:cv,useFactory:function kz(){return new k5}},{provide:pd,useClass:(()=>{class e extends pd{constructor(t,r,i){super(t,r,i)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(r){return new(r||e)(X(cr),X(lv),X(cv))};static#t=this.\u0275prov=te({token:e,factory:e.\u0275fac})}return e})()},{provide:Oh,useFactory:function Pz(e,n,t){return new xz(e,n,t)},deps:[iy,pd,st]}],Mv=[{provide:lv,useFactory:()=>new K5},{provide:F2,useValue:"BrowserAnimations"},...X5],J5=[{provide:lv,useClass:av},{provide:F2,useValue:"NoopAnimations"},...X5];let e6=(()=>{class e{static withConfig(t){return{ngModule:e,providers:t.disableAnimations?J5:Mv}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Gn({type:e});static#n=this.\u0275inj=Ln({providers:Mv,imports:[Lf]})}return e})();ue(557);const t6={merchantCapabilities:["supports3DS"],supportedNetworks:["visa","masterCard","amex","discover"]},Oz=Fr(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}),n6=new Z("APPLE_PAY_SESSION_TOKEN",{factory:()=>q(cr).defaultView.ApplePaySession});let r6=(()=>{class e{constructor(t){this.applePaySession=t}canMakePayments(){return ApplePaySession.canMakePayments()}createPaySession(t,r,i){return new Mt(s=>{const o=a=>{s.error(a),console.error(a)};try{const a=new this.applePaySession(t,r),l=(c,u)=>{a.abort(),o({event:c,error:u})};a.onvalidatemerchant=function(){var c=zf(function*(u){try{const d=yield function Rz(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 Oz)}})})}(i(u));a.completeMerchantValidation(d)}catch(d){l(u,d)}});return function(u){return c.apply(this,arguments)}}(),a.onpaymentmethodselected=c=>{const u={newTotal:{...r.total}};a.completePaymentMethodSelection(u)},a.onshippingmethodselected=c=>{a.completeShippingMethodSelection({})},a.onshippingcontactselected=c=>{a.completeShippingContactSelection({})},a.onpaymentauthorized=c=>{a.completePayment({status:ApplePaySession.STATUS_SUCCESS}),s.next(c),s.complete()},a.oncancel=c=>{o(c)},a.begin()}catch(a){o(a)}})}static#e=this.\u0275fac=function(r){return new(r||e)(X(n6))};static#t=this.\u0275prov=te({token:e,factory:e.\u0275fac})}return e})(),i6=(()=>{class e{constructor(t,r){this.nativeService=t,this.http=r}canMakePayment(){return To(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=t6.supportedNetworks,merchantCapabilities:o=t6.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)(X(r6),X(Kf))};static#t=this.\u0275prov=te({token:e,factory:e.\u0275fac})}return e})();const Lz=new Z("APPLE_PAY_SESSION_SUPPORT_TOKEN",{factory:()=>!!q(n6)}),Fz={canMakePayment:()=>To(!1),pay(e){throw new Error("not implemented")}};let s6=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Gn({type:e});static#n=this.\u0275inj=Ln({providers:[r6,i6,{provide:u5,deps:[Lz,i6],useFactory:(t,r)=>t?r:Fz}]})}return e})(),o6=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Gn({type:e});static#n=this.\u0275inj=Ln({providers:[F4],imports:[qS.forRoot(),b5,$S,VS,K0,Lf,e6,s6,qS,b5,$S,VS,K0,Lf,e6,s6]})}return e})(),Vz=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Gn({type:e});static#n=this.\u0275inj=Ln({providers:[ln,yc,nv,kp],imports:[o6]})}return e})(),$z=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Gn({type:e});static#n=this.\u0275inj=Ln({providers:[A4,ud]})}return e})(),Bz=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Gn({type:e});static#n=this.\u0275inj=Ln({providers:[y5]})}return e})();function jz(e,n){let t=e;const r=q(ln),i=q(Jf),s=r.data.settings().language,o=!!e.headers.get(sc_customHeaders_skipToastr);return o&&(t=e.clone({headers:e.headers.delete(sc_customHeaders_skipToastr)})),n(t).pipe(Uf(a=>(o||i.error(s.notifications.error.default.text,s.notifications.error.default.title),r.events.error.emit(a),T4(()=>a))))}function Hz(e,n){let t=e;const r=q(ln);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 Uz=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Gn({type:e});static#n=this.\u0275inj=Ln({providers:[i$(s$([jz,Hz]))],imports:[H$.forRoot(),Vz,o6,$z,Bz]})}return e})(),zz=(()=>{class e{constructor(t){this.injector=t}ngDoBootstrap(t){const{injector:r}=this,i=function dV(e,n){const t=function iV(e,n){return n.get(fa).resolveComponentFactory(e).inputs}(e,n.injector),r=n.strategyFactory||new lV(e,n.injector),i=function rV(e){const n={};return e.forEach(({propName:t,templateName:r,transform:i})=>{n[function XF(e){return e.replace(/[A-Z]/g,n=>`-${n.toLowerCase()}`)}(r)]=[t,i]}),n}(t);class s extends uV{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:l,transform:c})=>{if(!this.hasOwnProperty(l))return;const u=this[l];delete this[l],a.setInputValue(l,u,c)})}return this._ngElementStrategy}constructor(a){super(),this.injector=a}attributeChangedCallback(a,l,c,u){const[d,f]=i[a];this.ngElementStrategy.setInputValue(d,c,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 l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return t.forEach(({propName:o,transform:a})=>{Object.defineProperty(s.prototype,o,{get(){return this.ngElementStrategy.getInputValue(o)},set(l){this.ngElementStrategy.setInputValue(o,l,a)},configurable:!0,enumerable:!0})}),s}(qH,{injector:r});customElements.define("moto-payment-form",i)}static#e=this.\u0275fac=function(r){return new(r||e)(X(kt))};static#t=this.\u0275mod=Gn({type:e});static#n=this.\u0275inj=Ln({imports:[Lf,Uz]})}return e})();oF().bootstrapModule(zz).catch(e=>console.log(e))},634:function(nn,Oe,ue){"use strict";var xe=this&&this.__assign||function(){return xe=Object.assign||function(se){for(var Te,Ge=1,It=arguments.length;Ge<It;Ge++)for(var sn in Te=arguments[Ge])Object.prototype.hasOwnProperty.call(Te,sn)&&(se[sn]=Te[sn]);return se},xe.apply(this,arguments)},K=ue(990),Ae=ue(402),Se=ue(987),Ye=ue(250),ee=ue(507),Q={},ae={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"},St=[ae.VISA,ae.MASTERCARD,ae.AMERICAN_EXPRESS,ae.DINERS_CLUB,ae.DISCOVER,ae.JCB,ae.UNIONPAY,ae.MAESTRO,ae.ELO,ae.MIR,ae.HIPER,ae.HIPERCARD],yt=(0,ee.clone)(St);function dn(se){return Q[se]||K[se]}function qe(se,Te){void 0===Te&&(Te=!1);var Ge=yt.indexOf(se);if(!Te&&-1===Ge)throw new Error('"'+se+'" is not a supported card type.');return Ge}function Ve(se){var Te=[];if(!(0,Se.isValidInputType)(se))return Te;if(0===se.length)return function Qe(){return yt.map(function(se){return(0,ee.clone)(dn(se))})}();yt.forEach(function(It){var sn=dn(It);(0,Ae.addMatchingCardsToResults)(se,sn,Te)});var Ge=(0,Ye.findBestMatch)(Te);return Ge?[Ge]:Te}Ve.getTypeInfo=function(se){return(0,ee.clone)(dn(se))},Ve.removeCard=function(se){var Te=qe(se);yt.splice(Te,1)},Ve.addCard=function(se){var Te=qe(se.type,!0);Q[se.type]=se,-1===Te&&yt.push(se.type)},Ve.updateCard=function(se,Te){var Ge=Q[se]||K[se];if(!Ge)throw new Error('"'.concat(se,"\" is not a recognized type. Use `addCard` instead.'"));if(Te.type&&Ge.type!==Te.type)throw new Error("Cannot overwrite type parameter.");var It=(0,ee.clone)(Ge);It=xe(xe({},It),Te),Q[It.type]=It},Ve.changeOrder=function(se,Te){var Ge=qe(se);yt.splice(Ge,1),yt.splice(Te,0,se)},Ve.resetModifications=function(){yt=(0,ee.clone)(St),Q={}},Ve.types=ae,nn.exports=Ve},402:(nn,Oe,ue)=>{"use strict";Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.addMatchingCardsToResults=void 0;var xe=ue(507),K=ue(595);Oe.addMatchingCardsToResults=function Ae(Se,Ye,ee){var Q,ae;for(Q=0;Q<Ye.patterns.length;Q++){var St=Ye.patterns[Q];if((0,K.matches)(Se,St)){var yt=(0,xe.clone)(Ye);ae=Array.isArray(St)?String(St[0]).length:String(St).length,Se.length>=ae&&(yt.matchStrength=ae),ee.push(yt);break}}}},990:nn=>{"use strict";nn.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:(nn,Oe)=>{"use strict";Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.clone=void 0,Oe.clone=function ue(xe){return xe?JSON.parse(JSON.stringify(xe)):null}},250:(nn,Oe)=>{"use strict";Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.findBestMatch=void 0,Oe.findBestMatch=function xe(K){return function ue(K){var Ae=K.filter(function(Se){return Se.matchStrength}).length;return Ae>0&&Ae===K.length}(K)?K.reduce(function(Ae,Se){return!Ae||Number(Ae.matchStrength)<Number(Se.matchStrength)?Se:Ae}):null}},987:(nn,Oe)=>{"use strict";Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.isValidInputType=void 0,Oe.isValidInputType=function ue(xe){return"string"==typeof xe||xe instanceof String}},595:(nn,Oe)=>{"use strict";Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.matches=void 0,Oe.matches=function K(Ae,Se){return Array.isArray(Se)?function ue(Ae,Se,Ye){var ee=String(Se).length,Q=Ae.substr(0,ee),ae=parseInt(Q,10);return Se=parseInt(String(Se).substr(0,Q.length),10),Ye=parseInt(String(Ye).substr(0,Q.length),10),ae>=Se&&ae<=Ye}(Ae,Se[0],Se[1]):function xe(Ae,Se){return(Se=String(Se)).substring(0,Ae.length)===Ae.substring(0,Se.length)}(Ae,Se)}},557:()=>{!function(nn){function Oe(Q){for(var ae,St,yt=Q[0],dn=Q[1],Qe=0,qe=[];Qe<yt.length;Qe++)St=yt[Qe],Object.prototype.hasOwnProperty.call(xe,St)&&xe[St]&&qe.push(xe[St][0]),xe[St]=0;for(ae in dn)Object.prototype.hasOwnProperty.call(dn,ae)&&(nn[ae]=dn[ae]);for(ee&&ee(Q);qe.length;)qe.shift()()}var ue={},xe={0:0};function K(Q){if(ue[Q])return ue[Q].exports;var ae=ue[Q]={i:Q,l:!1,exports:{}};return nn[Q].call(ae.exports,ae,ae.exports,K),ae.l=!0,ae.exports}K.e=function(){return Promise.resolve()},K.m=nn,K.c=ue,K.d=function(Q,ae,St){K.o(Q,ae)||Object.defineProperty(Q,ae,{enumerable:!0,get:St})},K.r=function(Q){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(Q,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(Q,"__esModule",{value:!0})},K.t=function(Q,ae){if(1&ae&&(Q=K(Q)),8&ae||4&ae&&"object"==typeof Q&&Q&&Q.__esModule)return Q;var St=Object.create(null);if(K.r(St),Object.defineProperty(St,"default",{enumerable:!0,value:Q}),2&ae&&"string"!=typeof Q)for(var yt in Q)K.d(St,yt,function(dn){return Q[dn]}.bind(null,yt));return St},K.n=function(Q){var ae=Q&&Q.__esModule?function(){return Q.default}:function(){return Q};return K.d(ae,"a",ae),ae},K.o=function(Q,ae){return Object.prototype.hasOwnProperty.call(Q,ae)},K.p="",K.oe=function(Q){throw console.error(Q),Q};var Ae=window.webpackJsonp=window.webpackJsonp||[],Se=Ae.push.bind(Ae);Ae.push=Oe,Ae=Ae.slice();for(var Ye=0;Ye<Ae.length;Ye++)Oe(Ae[Ye]);var ee=Se;K(K.s=103)}({103:function(nn,Oe,ue){"use strict";ue.r(Oe),function(xe){var K=ue(14);function Ae(Qe,qe,Ve,se,Te,Ge,It){try{var sn=Qe[Ge](It),bn=sn.value}catch(bi){return void Ve(bi)}sn.done?qe(bn):Promise.resolve(bn).then(se,Te)}function Se(Qe){return function(){var qe=this,Ve=arguments;return new Promise(function(se,Te){var Ge=Qe.apply(qe,Ve);function It(bn){Ae(Ge,se,Te,It,sn,"next",bn)}function sn(bn){Ae(Ge,se,Te,It,sn,"throw",bn)}It(void 0)})}}function Ye(Qe,qe,Ve){return qe in Qe?Object.defineProperty(Qe,qe,{value:Ve,enumerable:!0,configurable:!0,writable:!0}):Qe[qe]=Ve,Qe}function ee(Qe,qe){return Ve=Qe,(se=ae(Qe,qe,"get")).get?se.get.call(Ve):se.value;var Ve,se}function ae(Qe,qe,Ve){if(!qe.has(Qe))throw new TypeError("attempted to "+Ve+" private field on non-instance");return qe.get(Qe)}function St(){var Qe="https://applepay.cdn-apple.com/jsapi/v1/apple-pay-sdk.js",Ve=document.createElement("div"),se=Qe.slice(0,Qe.lastIndexOf("/"))||"",Te=_=>{for(var m in Ve.setAttribute("data-"+_,""),Ve.dataset)return delete Ve.dataset[m],m},Ge=_=>{Ve.dataset[_]="";var m=Ve.attributes[0];return Ve.removeAttribute(m.name),m.name.slice(5)};function It(_){return se+_.replace(/^\.\//,"/")}function sn(){var _;try{return null===(_=window.ApplePaySession)||void 0===_?void 0:_.canMakePayments()}catch(m){return console.warn(m),!1}}var bn=!1;if(typeof window<"u"){var bi={get passive(){bn=!0}};window.addEventListener("testPassive",null,bi),window.removeEventListener("testPassive",null,bi)}var zn=typeof window<"u"&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),kn=[],dr=!1,de=-1,Ne=void 0,be=void 0,He=void 0,Re=function(_){return kn.some(function(m){return!(!m.options.allowTouchMove||!m.options.allowTouchMove(_))})},ke=function(_){var m=_||window.event;return!!Re(m.target)||m.touches.length>1||(m.preventDefault&&m.preventDefault(),!1)},_t=new WeakMap;class Ce extends HTMLElement{constructor(){super(),_t.set(this,{writable:!0,value:void 0}),Ye(this,"open",!1),Ye(this,"ready",!1),Ye(this,"url",We.url),Ye(this,"theme",We.theme),Ye(this,"locale",We.locale),this.close=this.close.bind(this)}connectedCallback(){var m=this;return Se(function*(){(function Q(Qe,qe,Ve){(function(se,Te,Ge){if(Te.set)Te.set.call(se,Ge);else{if(!Te.writable)throw new TypeError("attempted to set read only private field");Te.value=Ge}})(Qe,ae(Qe,qe,"set"),Ve)})(m,_t,m.attachShadow({mode:"closed"})),m.update(),ee(m,_t).addEventListener("click",b=>{b.preventDefault(),b.stopPropagation();var S=b.target.closest('a[href*="'.concat("#apple-pay-close",'"]'));S&&b.currentTarget.contains(S)&&m.close()}),m.addEventListener("click",b=>m.close())})()}show(){(function(_){if(_){if(!kn.some(function(S){return S.targetElement===_})){var b={targetElement:_,options:{}};kn=[].concat(function(S){if(Array.isArray(S)){for(var B=0,z=Array(S.length);B<S.length;B++)z[B]=S[B];return z}return Array.from(S)}(kn),[b]),zn?window.requestAnimationFrame(function(){if(void 0===be){be={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left};var S=window,B=S.scrollY,z=S.scrollX,he=S.innerHeight;document.body.style.position="fixed",document.body.style.top=-B,document.body.style.left=-z,setTimeout(function(){return window.requestAnimationFrame(function(){var lt=he-window.innerHeight;lt&&B>=he&&(document.body.style.top=-(B+lt))})},300)}}):function(){if(void 0===He)window,document;void 0===Ne&&(Ne=document.body.style.overflow,document.body.style.overflow="hidden")}(),zn&&(_.ontouchstart=function(S){1===S.targetTouches.length&&(de=S.targetTouches[0].clientY)},_.ontouchmove=function(S){var B,z,lt,he;1===S.targetTouches.length&&(z=_,he=(B=S).targetTouches[0].clientY-de,!Re(B.target)&&(z&&0===z.scrollTop&&he>0||(lt=z)&&lt.scrollHeight-lt.scrollTop<=lt.clientHeight&&he<0?ke(B):B.stopPropagation()))},dr||(document.addEventListener("touchmove",ke,bn?{passive:!1}:void 0),dr=!0))}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")})(this.ownerDocument.body||this.ownerDocument.documentElement),this.setAttribute("open",""),this.open=!0;var m=ee(this,_t).querySelector("iframe");this.ready||(this.ready=!0,this.accessibilityTranslations(),Promise.race([new Promise(b=>m.onload=b),new Promise((b,S)=>setTimeout(S,10800))]).then(()=>{},()=>(console.error("Modal loading timeout. Check connection or try again later."),this.close())))}close(){var _;(_=this.ownerDocument.body||this.ownerDocument.documentElement)?(kn=kn.filter(function(m){return m.targetElement!==_}),zn&&(_.ontouchstart=null,_.ontouchmove=null,dr&&0===kn.length&&(document.removeEventListener("touchmove",ke,bn?{passive:!1}:void 0),dr=!1)),zn?function(){if(void 0!==be){var m=-parseInt(document.body.style.top,10),b=-parseInt(document.body.style.left,10);document.body.style.position=be.position,document.body.style.top=be.top,document.body.style.left=be.left,window.scrollTo(b,m),be=void 0}}():(void 0!==He&&(document.body.style.paddingRight=He,He=void 0),void 0!==Ne&&(document.body.style.overflow=Ne,Ne=void 0))):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices."),this.removeAttribute("open"),this.open=!1}update(){ee(this,_t).innerHTML='<section class="dialog theme-'.concat(this.theme,'" role="dialog" aria-modal="true"><div class="content"><iframe src="').concat(this.url,'" frameBorder="0" scrolling="no" loading="lazy"></iframe></div><a class="close" data-accessibility="closeButton" href="').concat("#apple-pay-close",'"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M12.12,10l4.07-4.06a1.5,1.5,0,1,0-2.11-2.12L10,7.88,5.94,3.81A1.5,1.5,0,1,0,3.82,5.93L7.88,10,3.81,14.06a1.5,1.5,0,0,0,0,2.12,1.51,1.51,0,0,0,2.13,0L10,12.12l4.06,4.07a1.45,1.45,0,0,0,1.06.44,1.5,1.5,0,0,0,1.06-2.56Z"></path></svg></a></section><style>').concat(":host{font-family:var(--apple-pay-font-family, '-apple-system', 'SF Pro Display', 'SF Pro Icons', 'Helvetica Neue', 'Helvetica', 'Arial', 'sans-serif');position:fixed;overflow:scroll;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;visibility:hidden;background-color:rgba(50,50,50,.58);-ms-flex-pack:center;justify-content:center;padding:2rem 0;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;opacity:0;-webkit-transition:visibility 0s .28s, opacity .28s, z-index 0s .28s;transition:visibility 0s .28s, opacity .28s, z-index 0s .28s;z-index:-1}:host([open]){visibility:visible;opacity:1;-webkit-transition:visibility 0s, opacity .28s, z-index 0s 0s;transition:visibility 0s, opacity .28s, z-index 0s 0s;z-index:1728}.dialog{--apple-pay-modal-padding-top:22px;--apple-pay-modal-padding-bottom:22px;--apple-pay-modal-padding-inline:22px;border-radius:20px;border:none;background-color:white;padding:0;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;position:relative;margin:auto;opacity:0;-webkit-transform:scale(.97) translateZ(0);transform:scale(.97) translateZ(0);-webkit-transition:all .108s .054s;transition:all .108s .054s}:host([open]) .dialog{opacity:1;-webkit-transform:scale(1) translateZ(0);transform:scale(1) translateZ(0)}.dialog.theme-dark{background-color:#000}@media (prefers-color-scheme: dark){.dialog.theme-auto{background-color:#000}}.dialog .content{-webkit-margin-start:var(--apple-pay-modal-padding-inline);margin-inline-start:var(--apple-pay-modal-padding-inline);-webkit-margin-end:var(--apple-pay-modal-padding-inline);margin-inline-end:var(--apple-pay-modal-padding-inline);margin-top:var(--apple-pay-modal-padding-top);margin-bottom:var(--apple-pay-modal-padding-bottom);position:relative}.dialog iframe{border:none;width:320px;height:750px}@media (min-width: 376px){.dialog iframe{width:360px;height:720px}}.dialog footer{-webkit-padding-start:var(--apple-pay-modal-padding-inline);padding-inline-start:var(--apple-pay-modal-padding-inline);-webkit-padding-end:var(--apple-pay-modal-padding-inline);padding-inline-end:var(--apple-pay-modal-padding-inline);padding-top:var(--apple-pay-modal-padding-top);padding-bottom:var(--apple-pay-modal-padding-bottom);position:absolute;bottom:0;left:0;right:0}.dialog .close{position:absolute;top:20px;right:20px;width:36px;height:36px;border-radius:36px;display:-ms-flexbox;display:flex;background-color:rgb(232, 232, 237);color:rgba(0, 0, 0, 0.56);-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;outline:none}.dialog .close:hover{background-color:rgb(236, 236, 240);color:rgba(0, 0, 0, 0.72)}.dialog .close svg{fill:currentColor;width:20px;height:20px}.theme-dark.dialog .close{background-color:#333336;color:rgba(255,255,255,0.8)}.theme-dark.dialog .close:hover{background-color:#37373a;color:#fff}@media (prefers-color-scheme: dark){.theme-auto.dialog .close{background-color:#333336;color:rgba(255,255,255,0.8)}.theme-auto.dialog .close:hover{background-color:#37373a;color:#fff}}","</style>"),this.setAttribute("theme",this.theme)}accessibilityTranslations(){var m=this;Se(function*(){var b=yield(yield fetch(It("./merchandising-".concat(m.locale.split("-")[1].toLowerCase(),".json")))).json(),S=m.locale.split("-")[0],B=b.accessibility[S],z=/\{\{\s*([^\s]+)\s*\}\}/gi;ee(m,_t).querySelectorAll("[data-accessibility]").forEach(he=>{var lt=he.dataset.accessibility;he.ariaLabel=B[lt].replaceAll(z,(Kt,rr,si)=>rr),he.alt=B[lt].replaceAll(z,(Kt,rr,si)=>rr)})})()}static get observedAttributes(){return Pn}attributeChangedCallback(m,b,S){m=Te(m),null==S?delete this[m]:this[m]="true"===S||"false"!==S&&(""===S||S),S!==b&&this.update()}}var We={theme:"auto",locale:"en-US",url:""},Pn=Object.keys(We).map(Ge);Object.assign(Ce.prototype,We),customElements.define("apple-pay-merchandising-modal",Ce);var Wt=document.createElement("apple-pay-merchandising-modal");document.contains(Wt)||(document.body||document.documentElement).appendChild(Wt);var On,Cn,Zt,hn=function(_,m,b){if(!m.has(_))throw new TypeError("attempted to set private field on non-instance");return m.set(_,b),b},Xe=function(_,m){if(!m.has(_))throw new TypeError("attempted to get private field on non-instance");return m.get(_)},Wn={us:{text:{en:{badge:'<a class="info-circle" href="{{ modalUrl }}" style="display:block"><svg width="16" style="display:block" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><path d="M29.9475268,59.5867724 C46.1333288,59.5867724 59.534715,46.15661 59.534715,29.9998218 C59.534715,13.8140198 46.1043387,0.412871288 29.9185367,0.412871288 C13.7617248,0.412871288 0.36059406,13.8140198 0.36059406,29.9998218 C0.36059406,46.15661 13.7907743,59.5867724 29.9475268,59.5867724 Z M29.9475268,54.6556041 C16.256299,54.6556041 5.32073466,43.6910496 5.32073466,29.9998218 C5.32073466,16.3085941 16.2273089,5.34403961 29.9185367,5.34403961 C43.6097644,5.34403961 54.5743189,16.3085941 54.6035429,29.9998218 C54.6325367,43.6910496 43.6387545,54.6556041 29.9475268,54.6556041 Z M29.6864971,19.673406 C31.8039624,19.673406 33.4573486,17.9909703 33.4573486,15.873505 C33.4573486,13.7559802 31.8039624,12.073604 29.6864971,12.073604 C27.5979624,12.073604 25.9155862,13.7559802 25.9155862,15.873505 C25.9155862,17.9909703 27.5979624,19.673406 29.6864971,19.673406 Z M24.8713486,45.9535605 L36.6770912,45.9535605 C37.8663981,45.9535605 38.7946159,45.0833585 38.7946159,43.8940991 C38.7946159,42.7628318 37.8663981,41.863604 36.6770912,41.863604 L33.0802991,41.863604 L33.0802991,27.0991486 C33.0802991,25.5327921 32.2970911,24.4885545 30.8177644,24.4885545 L25.3644773,24.4885545 C24.1751703,24.4885545 23.2469525,25.3877228 23.2469525,26.5189901 C23.2469525,27.7082971 24.1751703,28.5784753 25.3644773,28.5784753 L28.4682,28.5784753 L28.4682,41.863604 L24.8713486,41.863604 C23.6820416,41.863604 22.7538238,42.7628318 22.7538238,43.8940991 C22.7538238,45.0833585 23.6820416,45.9535605 24.8713486,45.9535605 Z" transform="translate(2 2)"></path></svg></a>',plain:'Pay in full or use Apple Pay Later to&nbsp;make {{ frequency }}&nbsp;interest\u2011free payments of&nbsp;{{ paymentsAmount }}. <a href="{{ modalUrl }}"><strong>Learn&nbsp;more</strong></a>',price:'Or {{ frequency }}&nbsp;interest\u2011free payments of&nbsp;{{ paymentsAmount }} with Apple Pay Later. <a href="{{ modalUrl }}"><strong>Learn&nbsp;more</strong></a>',checkout:'Pay in full or use Apple Pay Later to&nbsp;make {{ frequency }}&nbsp;interest\u2011free payments of&nbsp;{{ paymentsAmount }}. <a href="{{ modalUrl }}"><strong>Learn&nbsp;more</strong></a>'}},legal:{default:"No fees and no impact to credit fees eligibility.\nPayment options are subject to eligibility checks and approvals at checkout.\nLoans are issued by Apple Financing LLC, NMLS #2154940, and may not be available in all states.\nCA Residents: Loans issued by Apple Financing LLC are made or arranged pursuant to a California Finance Lenders Law license.",learnMore:"Apple Pay Later loans are subject to eligibility checks and approvals, are issued by Apple Financing LLC, NMLS #2154940, and may not be available in all states. CA residents: Loans are made or arranged pursuant to a California Finance Lenders Law license."},nativeContent:{en:{promoText:"Pay in full or use Apple Pay Later to make {frequency} interest\u2011free payments of {paymentsAmount}."}},modal:{en:{"large-title":"Apple Pay Later",intro:"Pay purchases in {{ frequency }} interest-free payments every 2 weeks. Available to use everywhere Apple Pay is accepted.",payments:"Example payments for",amount:"{{ paymentsAmount }} every 2 weeks",frequency:"{{ frequency }} payments",today:'Due Today <span style="float: right;">{{ paymentsAmount }}</span>',"2weeks":'In 2 Weeks <span style="float: right;">{{ paymentsAmount }}</span>',"4weeks":'In 4 Weeks <span style="float: right;">{{ paymentsAmount }}</span>',"6weeks":'In 6 Weeks <span style="float: right;">{{ lastPaymentAmount }}</span>',total:"Total Cost {{ amount }}",interest:"No Interest"}},learnMore:{en:{intro:"Pay 4 interest-free payments, every 2 weeks.",headline1:"Check out with Apple Pay",subheadline1:"Check out with Apple Pay online and select the Pay Later option to review your available payment plan.",headline2:"No Fees or Impact to Credit",subheadline2:"No fees or funny stuff. Checking your eligibility will never impact your credit.",headline3:"Pay 25% today",subheadline3:"Your first payment is due at checkout, the rest every 2 weeks for 6 weeks.",headline4:"Manage in Wallet",subheadline4:"After your purchase, you can relax and manage your remaining payments right in the Wallet app."}},accessibility:{en:{applePayLaterLogo:"Apple Pay Later",applePayIcon:"Apple Pay icon",priceTagIcon:"Price Tag icon",dollarSignIcon:"Dollar Sign icon",walletIcon:"Wallet icon",applePayLaterAppLogo:"Apple Pay Later Icon",closeButton:"Close Button"}},presets:{badge:{logoType:"pay_later",logoStyle:"none",logoAlign:"left"},plain:{logoType:"pay",logoAlign:"right",logoStyle:"black"},checkout:{logoType:"pay",logoAlign:"left",logoStyle:"white"},price:{logoType:"pay",logoAlign:"right",logoStyle:"black"},custom:{logoType:"none",logoAlign:"left",logoStyle:"none"}},currencyCode:"USD",method:{bnpl:{minAmount:50,maxAmount:1e3,frequency:4}}}},Er={apple_pay_later_logo_black:'<svg xmlns="http://www.w3.org/2000/svg" width="476.234" height="99.409" viewBox="0 0 476.234 99.409" style="enable-background:new 0 0 476.234 99.409" xml:space="preserve"><path d="M105.946 5.505c14.176 0 24.048 9.771 24.048 23.998 0 14.277-10.074 24.1-24.402 24.1H89.896v24.96h-11.34V5.505h27.39zm-16.05 38.579h13.012c9.873 0 15.492-5.315 15.492-14.53 0-9.214-5.619-14.479-15.441-14.479H89.896v29.009zm43.164 19.341c0-9.316 7.139-15.037 19.796-15.746l14.581-.86v-4.101c0-5.924-4-9.468-10.683-9.468-6.329 0-10.278 3.037-11.24 7.797h-10.328c.607-9.62 8.81-16.708 21.973-16.708 12.911 0 21.163 6.835 21.163 17.518v36.706h-10.48v-8.759h-.253c-3.088 5.924-9.821 9.67-16.809 9.67-10.429 0-17.72-6.481-17.72-16.049zm34.377-4.81v-4.202l-13.113.81c-6.531.456-10.227 3.342-10.227 7.898 0 4.657 3.848 7.695 9.721 7.695 7.645 0 13.619-5.265 13.619-12.201zm20.779 39.541v-8.86c.81.202 2.632.202 3.544.202 5.062 0 7.797-2.126 9.467-7.594 0-.102.963-3.24.963-3.291l-19.24-53.312h11.847l13.468 43.339h.202l13.468-43.339h11.543L213.53 81.347c-4.556 12.911-9.821 17.062-20.858 17.062-.912 0-3.647-.101-4.456-.253zm112.339-19.594h-45.363V5.505h11.341V68.74h34.022v9.822zm4.937-15.137c0-9.316 7.139-15.037 19.796-15.746l14.581-.86v-4.101c0-5.924-4-9.468-10.683-9.468-6.329 0-10.278 3.037-11.24 7.797h-10.328c.607-9.62 8.81-16.708 21.973-16.708 12.911 0 21.163 6.835 21.163 17.518v36.706h-10.48v-8.759h-.253c-3.088 5.924-9.821 9.67-16.809 9.67-10.43 0-17.72-6.481-17.72-16.049zm34.377-4.81v-4.202l-13.113.81c-6.531.456-10.227 3.342-10.227 7.898 0 4.657 3.848 7.695 9.721 7.695 7.644 0 13.619-5.265 13.619-12.201zm35.649-45.921V25.3h10.125v8.658h-10.125v29.364c0 4.607 2.024 6.683 6.48 6.683 1.113 0 2.886-.101 3.594-.253v8.657c-1.215.305-3.645.507-6.075.507-10.784 0-14.986-4.101-14.986-14.379V33.959h-7.746v-8.658h7.746V12.694h10.987zm63.409 50.224c-1.519 9.721-10.733 16.657-22.935 16.657-15.645 0-25.111-10.581-25.111-27.391 0-16.707 9.619-27.846 24.656-27.846 14.783 0 23.997 10.43 23.997 26.58v3.747h-37.616v.658c0 9.265 5.568 15.391 14.327 15.391 6.228 0 10.835-3.139 12.303-7.797h10.379zM401.968 47.02h26.631c-.253-8.15-5.417-13.872-13.062-13.872s-13.012 5.823-13.569 13.872zm46.028-21.719h10.43v9.062h.253c1.772-6.227 6.531-9.923 12.81-9.923 1.569 0 2.937.253 3.746.405v10.176c-.86-.354-2.784-.607-4.911-.607-7.037 0-11.391 4.709-11.391 12.252v31.896h-10.937V25.301zm-400.1-6.172c-6.518-.482-12.048 3.641-15.133 3.641-3.13 0-7.956-3.537-13.074-3.44-6.719.098-12.912 3.91-16.377 9.926C-3.667 41.369 1.53 59.32 8.328 69.15c3.325 4.803 7.291 10.216 12.5 10.019 5.014-.197 6.911-3.243 12.972-3.243 6.057 0 7.766 3.243 13.068 3.146 5.397-.1 8.816-4.903 12.117-9.733 3.82-5.575 5.389-10.973 5.482-11.259-.119-.045-10.52-4.036-10.624-16.019-.094-10.018 8.177-14.834 8.553-15.066-4.693-6.914-11.945-7.677-14.5-7.866zm-4.022-6.489C46.642 9.294 48.505 4.634 47.992 0c-3.984.158-8.803 2.654-11.661 5.998-2.559 2.962-4.807 7.706-4.196 12.246 4.441.342 8.973-2.257 11.739-5.604z"/></svg>',apple_pay_later_mark_black:'<svg viewBox="0 0 299 106" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M283.698,0 L14.823,0 C14.257,0 13.69,0 13.125,0.003 C12.648,0.007 12.172,0.012 11.695,0.025 C10.656,0.053 9.608,0.115 8.582,0.299 C7.55304935,0.475289397 6.5561053,0.803896713 5.624,1.274 C3.75016438,2.22707876 2.22707876,3.75016438 1.274,5.624 C0.803057197,6.55646163 0.474412543,7.5541931 0.299,8.584 C0.113,9.611 0.052,10.658 0.024,11.696 C0.011,12.173 0.005,12.649 0,13.126 C0,13.69 0,14.256 0,14.823 L0,91.141 C0,91.708 0,92.273 0,92.84 C0.005,93.316 0.011,93.793 0.024,94.27 C0.052,95.306 0.114,96.354 0.299,97.38 C0.474052532,98.4097641 0.802361489,99.4074997 1.273,100.34 C1.74618424,101.271314 2.36382962,102.121842 3.103,102.86 C3.84090499,103.599466 4.69148278,104.217148 5.623,104.69 C6.57,105.173 7.54,105.48 8.583,105.667 C9.608,105.85 10.656,105.912 11.695,105.94 C12.172,105.951 12.648,105.958 13.125,105.96 C13.69,105.964 14.257,105.964 14.823,105.964 L283.698,105.964 C284.263,105.964 284.83,105.964 285.395,105.96 C285.87205,105.957616 286.349069,105.950949 286.826,105.94 C287.863,105.912 288.911,105.85 289.939,105.667 C290.968174,105.490543 291.96519,105.161238 292.897,104.69 C294.769895,103.735625 296.292625,102.212895 297.247,100.34 C297.73,99.393 298.036,98.423 298.221,97.38 C298.407,96.354 298.467,95.306 298.495,94.27 C298.508,93.793 298.515,93.316 298.517,92.84 C298.521,92.273 298.521,91.708 298.521,91.141 L298.521,14.824 C298.521,14.257 298.521,13.691 298.517,13.125 C298.515064,12.6485989 298.50773,12.172235 298.495,11.696 C298.467,10.658 298.407,9.611 298.221,8.584 C298.046831,7.55401695 297.71848,6.55615176 297.247,5.624 C296.293413,3.75053315 294.770467,2.22758663 292.897,1.274 C291.964782,0.80438048 290.967861,0.476117852 289.939,0.3 C288.911,0.115 287.863,0.054 286.826,0.026 C286.349085,0.0138870152 285.872062,0.00655331365 285.395,0.004 C284.83,0 284.263,0 283.698,0 Z" id="Outline" fill="rgba(255,255,255,.075)"></path><path d="M285.37,3.535 C285.822,3.538 286.275,3.543 286.73,3.555 C287.522,3.577 288.449,3.62 289.313,3.775 C290.063,3.91 290.693,4.115 291.297,4.423 C292.505746,5.03755904 293.487734,6.0205978 294.101,7.23 C294.407,7.83 294.611,8.456 294.746,9.213 C294.9,10.067 294.943,10.996 294.964,11.793 C294.977,12.243 294.983,12.693 294.984,13.153 C294.989,13.71 294.989,14.266 294.989,14.824 L294.989,91.142 C294.989,91.7 294.989,92.256 294.985,92.824 C294.983,93.274 294.977,93.724 294.965,94.174 C294.943,94.97 294.9,95.899 294.744,96.763 C294.630594,97.4502806 294.413097,98.1162614 294.099,98.738 C293.484409,99.9478082 292.501027,100.93084 291.291,101.545 C290.691,101.851 290.063,102.057 289.32,102.19 C288.438,102.347 287.473,102.39 286.746,102.41 C286.289,102.42 285.834,102.427 285.367,102.429 C284.812,102.433 284.254,102.433 283.698,102.433 L14.801,102.433 C14.251,102.433 13.701,102.433 13.141,102.429 C12.6909551,102.427046 12.240937,102.421046 11.791,102.411 C11.047,102.391 10.081,102.347 9.207,102.191 C8.51598039,102.075842 7.84638728,101.85669 7.221,101.541 C6.62111744,101.236271 6.07359362,100.837949 5.599,100.361 C5.12290857,99.8857571 4.72529217,99.3379376 4.421,98.738 C4.10640097,98.1127736 3.88826296,97.4435248 3.774,96.753 C3.619,95.89 3.576,94.965 3.554,94.175 C3.54269765,93.7234137 3.53603063,93.2717232 3.532,92.82 L3.532,91.493 L3.532,14.474 L3.532,13.149 C3.537,12.696 3.542,12.244 3.554,11.792 C3.576,11 3.619,10.075 3.776,9.205 C3.89017322,8.51586104 4.10797216,7.84796678 4.422,7.224 C4.726,6.626 5.122,6.08 5.602,5.602 C6.07772872,5.1254978 6.62583457,4.72724354 7.226,4.422 C7.8498075,4.10823092 8.5172811,3.89012212 9.206,3.775 C10.071,3.62 10.998,3.577 11.792,3.555 C12.244,3.543 12.697,3.538 13.146,3.535 L14.823,3.532 L283.698,3.532 L285.37,3.535 Z" id="Bg" fill="#000"></path><path d="M45.186,35.64 C46.603,33.868 47.566,31.488 47.312,29.055 C45.237,29.159 42.705,30.425 41.239,32.198 C39.923,33.718 38.759,36.198 39.062,38.528 C41.392,38.73 43.718,37.363 45.186,35.641 M47.285,38.983 C43.903,38.781 41.027,40.902 39.412,40.902 C37.796,40.902 35.322,39.084 32.648,39.133 C29.166,39.184 25.935,41.153 24.168,44.283 C20.534,50.547 23.209,59.839 26.743,64.94 C28.46,67.464 30.528,70.243 33.253,70.143 C35.828,70.042 36.837,68.475 39.967,68.475 C43.095,68.475 44.004,70.143 46.73,70.092 C49.557,70.042 51.324,67.567 53.04,65.041 C55.009,62.164 55.815,59.386 55.865,59.233 C55.815,59.183 50.415,57.111 50.365,50.9 C50.314,45.699 54.605,43.225 54.806,43.072 C52.383,39.488 48.597,39.084 47.286,38.982 M76.734,31.944 C84.084,31.944 89.204,37.011 89.204,44.388 C89.204,51.792 83.979,56.885 76.55,56.885 L68.41,56.885 L68.41,69.828 L62.53,69.828 L62.53,31.944 L76.734,31.944 Z M68.41,51.949 L75.157,51.949 C80.277,51.949 83.191,49.193 83.191,44.415 C83.191,39.637 80.277,36.906 75.183,36.906 L68.41,36.906 L68.41,51.95 L68.41,51.949 Z M90.74,61.979 C90.74,57.148 94.442,54.181 101.006,53.813 L108.566,53.367 L108.566,51.241 C108.566,48.169 106.492,46.331 103.027,46.331 C99.745,46.331 97.697,47.906 97.199,50.374 L91.843,50.374 C92.158,45.386 96.411,41.71 103.237,41.71 C109.932,41.71 114.211,45.255 114.211,50.794 L114.211,69.828 L108.776,69.828 L108.776,65.286 L108.646,65.286 C107.044,68.358 103.552,70.301 99.929,70.301 C94.521,70.301 90.74,66.941 90.74,61.979 L90.74,61.979 Z M108.566,59.485 L108.566,57.305 L101.766,57.725 C98.38,57.962 96.463,59.458 96.463,61.821 C96.463,64.236 98.459,65.811 101.504,65.811 C105.468,65.811 108.566,63.081 108.566,59.485 L108.566,59.485 Z M119.342,79.989 L119.342,75.394 C119.761,75.499 120.706,75.499 121.179,75.499 C123.804,75.499 125.222,74.397 126.088,71.561 C126.088,71.509 126.588,69.881 126.588,69.855 L116.611,42.209 L122.754,42.209 L129.738,64.683 L129.842,64.683 L136.827,42.209 L142.812,42.209 L132.468,71.272 C130.106,77.967 127.375,80.12 121.652,80.12 C121.179,80.12 119.761,80.067 119.342,79.989 L119.342,79.989 Z" id="Pay" fill="#fff"></path><path d="M181.896484,70 L181.896484,64.7792969 L164.204102,64.7792969 L164.204102,31.9521484 L158.113281,31.9521484 L158.113281,70 L181.896484,70 Z M194.369219,70.5009766 C198.113359,70.5009766 201.224688,68.734375 202.859453,65.8076172 L203.149492,65.8076172 L203.149492,70 L209.003008,70 L209.003008,50.6201172 C209.003008,44.8193359 204.784258,41.2333984 197.770586,41.2333984 C191.020586,41.2333984 186.696367,44.6347656 186.142656,49.4072266 L186.116289,49.6445312 L191.706133,49.6445312 L191.7325,49.4863281 C192.312578,47.4033203 194.342852,46.0585938 197.533281,46.0585938 C201.171953,46.0585938 203.149492,47.8251953 203.149492,50.8574219 L203.149492,53.1513672 L195.555742,53.5996094 C188.805742,53.9951172 185.008867,56.9746094 185.008867,61.9580078 L185.008867,62.0107422 C185.008867,67.1259766 188.884844,70.5009766 194.369219,70.5009766 Z M196.003984,65.8339844 C192.971758,65.8339844 190.88875,64.3046875 190.88875,61.7998047 L190.88875,61.7470703 C190.88875,59.3212891 192.708086,57.8974609 196.346758,57.6601562 L203.149492,57.2382812 L203.149492,59.5322266 C203.149492,63.1181641 200.090898,65.8339844 196.003984,65.8339844 Z M225.06168,70.3691406 C226.221836,70.3691406 227.302891,70.2373047 228.120273,70.1054688 L228.120273,65.5175781 C227.513828,65.5703125 227.012852,65.6230469 226.248203,65.6230469 C223.637852,65.6230469 222.451328,64.5683594 222.451328,61.6416016 L222.451328,46.4013672 L228.120273,46.4013672 L228.120273,41.7871094 L222.451328,41.7871094 L222.451328,34.5888672 L216.439609,34.5888672 L216.439609,41.7871094 L212.220859,41.7871094 L212.220859,46.4013672 L216.439609,46.4013672 L216.439609,62.5380859 C216.439609,68.0751953 219.102695,70.3691406 225.06168,70.3691406 Z M244.23168,70.5537109 C251.377187,70.5537109 255.464102,66.3876953 256.386953,62.3007812 L256.439687,62.0634766 L250.823477,62.0634766 L250.744375,62.2480469 C250.058828,64.0146484 247.870352,65.78125 244.363516,65.78125 C239.801992,65.78125 236.901602,62.6962891 236.796133,57.3964844 L256.729727,57.3964844 L256.729727,55.3925781 C256.729727,46.9023438 251.851797,41.2333984 243.941641,41.2333984 C236.005117,41.2333984 230.889883,47.1132812 230.889883,55.9462891 L230.889883,55.9726562 C230.889883,64.9111328 235.926016,70.5537109 244.23168,70.5537109 Z M250.928945,53.2568359 L236.875234,53.2568359 C237.376211,48.5371094 240.223867,46.0058594 243.968008,46.0058594 C247.738516,46.0058594 250.480703,48.3789062 250.928945,53.2568359 Z M267.093086,70 L267.093086,53.2568359 C267.093086,49.1171875 269.703438,46.5859375 273.71125,46.5859375 C274.818672,46.5859375 275.820625,46.7177734 276.585273,46.9023438 L276.585273,41.4970703 C276.05793,41.3916016 275.187813,41.2597656 274.317695,41.2597656 C270.810859,41.2597656 268.332344,43.1582031 267.356758,46.3222656 L267.093086,46.3222656 L267.093086,41.7871094 L261.186836,41.7871094 L261.186836,70 L267.093086,70 Z" id="Later" fill="#fff"></path></svg>',apple_pay_later_mark_none:'<svg viewBox="20 0 260 106" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M45.186,35.64 C46.603,33.868 47.566,31.488 47.312,29.055 C45.237,29.159 42.705,30.425 41.239,32.198 C39.923,33.718 38.759,36.198 39.062,38.528 C41.392,38.73 43.718,37.363 45.186,35.641 M47.285,38.983 C43.903,38.781 41.027,40.902 39.412,40.902 C37.796,40.902 35.322,39.084 32.648,39.133 C29.166,39.184 25.935,41.153 24.168,44.283 C20.534,50.547 23.209,59.839 26.743,64.94 C28.46,67.464 30.528,70.243 33.253,70.143 C35.828,70.042 36.837,68.475 39.967,68.475 C43.095,68.475 44.004,70.143 46.73,70.092 C49.557,70.042 51.324,67.567 53.04,65.041 C55.009,62.164 55.815,59.386 55.865,59.233 C55.815,59.183 50.415,57.111 50.365,50.9 C50.314,45.699 54.605,43.225 54.806,43.072 C52.383,39.488 48.597,39.084 47.286,38.982 M76.734,31.944 C84.084,31.944 89.204,37.011 89.204,44.388 C89.204,51.792 83.979,56.885 76.55,56.885 L68.41,56.885 L68.41,69.828 L62.53,69.828 L62.53,31.944 L76.734,31.944 Z M68.41,51.949 L75.157,51.949 C80.277,51.949 83.191,49.193 83.191,44.415 C83.191,39.637 80.277,36.906 75.183,36.906 L68.41,36.906 L68.41,51.95 L68.41,51.949 Z M90.74,61.979 C90.74,57.148 94.442,54.181 101.006,53.813 L108.566,53.367 L108.566,51.241 C108.566,48.169 106.492,46.331 103.027,46.331 C99.745,46.331 97.697,47.906 97.199,50.374 L91.843,50.374 C92.158,45.386 96.411,41.71 103.237,41.71 C109.932,41.71 114.211,45.255 114.211,50.794 L114.211,69.828 L108.776,69.828 L108.776,65.286 L108.646,65.286 C107.044,68.358 103.552,70.301 99.929,70.301 C94.521,70.301 90.74,66.941 90.74,61.979 L90.74,61.979 Z M108.566,59.485 L108.566,57.305 L101.766,57.725 C98.38,57.962 96.463,59.458 96.463,61.821 C96.463,64.236 98.459,65.811 101.504,65.811 C105.468,65.811 108.566,63.081 108.566,59.485 L108.566,59.485 Z M119.342,79.989 L119.342,75.394 C119.761,75.499 120.706,75.499 121.179,75.499 C123.804,75.499 125.222,74.397 126.088,71.561 C126.088,71.509 126.588,69.881 126.588,69.855 L116.611,42.209 L122.754,42.209 L129.738,64.683 L129.842,64.683 L136.827,42.209 L142.812,42.209 L132.468,71.272 C130.106,77.967 127.375,80.12 121.652,80.12 C121.179,80.12 119.761,80.067 119.342,79.989 L119.342,79.989 Z" id="Pay"></path><path d="M181.896484,70 L181.896484,64.7792969 L164.204102,64.7792969 L164.204102,31.9521484 L158.113281,31.9521484 L158.113281,70 L181.896484,70 Z M194.369219,70.5009766 C198.113359,70.5009766 201.224688,68.734375 202.859453,65.8076172 L203.149492,65.8076172 L203.149492,70 L209.003008,70 L209.003008,50.6201172 C209.003008,44.8193359 204.784258,41.2333984 197.770586,41.2333984 C191.020586,41.2333984 186.696367,44.6347656 186.142656,49.4072266 L186.116289,49.6445312 L191.706133,49.6445312 L191.7325,49.4863281 C192.312578,47.4033203 194.342852,46.0585938 197.533281,46.0585938 C201.171953,46.0585938 203.149492,47.8251953 203.149492,50.8574219 L203.149492,53.1513672 L195.555742,53.5996094 C188.805742,53.9951172 185.008867,56.9746094 185.008867,61.9580078 L185.008867,62.0107422 C185.008867,67.1259766 188.884844,70.5009766 194.369219,70.5009766 Z M196.003984,65.8339844 C192.971758,65.8339844 190.88875,64.3046875 190.88875,61.7998047 L190.88875,61.7470703 C190.88875,59.3212891 192.708086,57.8974609 196.346758,57.6601562 L203.149492,57.2382812 L203.149492,59.5322266 C203.149492,63.1181641 200.090898,65.8339844 196.003984,65.8339844 Z M225.06168,70.3691406 C226.221836,70.3691406 227.302891,70.2373047 228.120273,70.1054688 L228.120273,65.5175781 C227.513828,65.5703125 227.012852,65.6230469 226.248203,65.6230469 C223.637852,65.6230469 222.451328,64.5683594 222.451328,61.6416016 L222.451328,46.4013672 L228.120273,46.4013672 L228.120273,41.7871094 L222.451328,41.7871094 L222.451328,34.5888672 L216.439609,34.5888672 L216.439609,41.7871094 L212.220859,41.7871094 L212.220859,46.4013672 L216.439609,46.4013672 L216.439609,62.5380859 C216.439609,68.0751953 219.102695,70.3691406 225.06168,70.3691406 Z M244.23168,70.5537109 C251.377187,70.5537109 255.464102,66.3876953 256.386953,62.3007812 L256.439687,62.0634766 L250.823477,62.0634766 L250.744375,62.2480469 C250.058828,64.0146484 247.870352,65.78125 244.363516,65.78125 C239.801992,65.78125 236.901602,62.6962891 236.796133,57.3964844 L256.729727,57.3964844 L256.729727,55.3925781 C256.729727,46.9023438 251.851797,41.2333984 243.941641,41.2333984 C236.005117,41.2333984 230.889883,47.1132812 230.889883,55.9462891 L230.889883,55.9726562 C230.889883,64.9111328 235.926016,70.5537109 244.23168,70.5537109 Z M250.928945,53.2568359 L236.875234,53.2568359 C237.376211,48.5371094 240.223867,46.0058594 243.968008,46.0058594 C247.738516,46.0058594 250.480703,48.3789062 250.928945,53.2568359 Z M267.093086,70 L267.093086,53.2568359 C267.093086,49.1171875 269.703438,46.5859375 273.71125,46.5859375 C274.818672,46.5859375 275.820625,46.7177734 276.585273,46.9023438 L276.585273,41.4970703 C276.05793,41.3916016 275.187813,41.2597656 274.317695,41.2597656 C270.810859,41.2597656 268.332344,43.1582031 267.356758,46.3222656 L267.093086,46.3222656 L267.093086,41.7871094 L261.186836,41.7871094 L261.186836,70 L267.093086,70 Z" id="Later"></path></svg>',apple_pay_later_mark_white_outline:'<svg viewBox="0 0 299 106" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M283.698,0 L14.823,0 C14.257,0 13.69,0 13.125,0.003 C12.648,0.007 12.172,0.012 11.695,0.025 C10.656,0.053 9.608,0.115 8.582,0.299 C7.55304935,0.475289397 6.5561053,0.803896713 5.624,1.274 C3.75016438,2.22707876 2.22707876,3.75016438 1.274,5.624 C0.803057197,6.55646163 0.474412543,7.5541931 0.299,8.584 C0.113,9.611 0.052,10.658 0.024,11.696 C0.011,12.173 0.005,12.649 0,13.126 C0,13.69 0,14.256 0,14.823 L0,91.141 C0,91.708 0,92.273 0,92.84 C0.005,93.316 0.011,93.793 0.024,94.27 C0.052,95.306 0.114,96.354 0.299,97.38 C0.474052532,98.4097641 0.802361489,99.4074997 1.273,100.34 C1.74618424,101.271314 2.36382962,102.121842 3.103,102.86 C3.84090499,103.599466 4.69148278,104.217148 5.623,104.69 C6.57,105.173 7.54,105.48 8.583,105.667 C9.608,105.85 10.656,105.912 11.695,105.94 C12.172,105.951 12.648,105.958 13.125,105.96 C13.69,105.964 14.257,105.964 14.823,105.964 L283.698,105.964 C284.263,105.964 284.83,105.964 285.395,105.96 C285.87205,105.957616 286.349069,105.950949 286.826,105.94 C287.863,105.912 288.911,105.85 289.939,105.667 C290.968174,105.490543 291.96519,105.161238 292.897,104.69 C294.769895,103.735625 296.292625,102.212895 297.247,100.34 C297.73,99.393 298.036,98.423 298.221,97.38 C298.407,96.354 298.467,95.306 298.495,94.27 C298.508,93.793 298.515,93.316 298.517,92.84 C298.521,92.273 298.521,91.708 298.521,91.141 L298.521,14.824 C298.521,14.257 298.521,13.691 298.517,13.125 C298.515064,12.6485989 298.50773,12.172235 298.495,11.696 C298.467,10.658 298.407,9.611 298.221,8.584 C298.046831,7.55401695 297.71848,6.55615176 297.247,5.624 C296.293413,3.75053315 294.770467,2.22758663 292.897,1.274 C291.964782,0.80438048 290.967861,0.476117852 289.939,0.3 C288.911,0.115 287.863,0.054 286.826,0.026 C286.349085,0.0138870152 285.872062,0.00655331365 285.395,0.004 C284.83,0 284.263,0 283.698,0 Z" id="Outline" fill="#000000"></path><path d="M285.37,3.535 C285.822,3.538 286.275,3.543 286.73,3.555 C287.522,3.577 288.449,3.62 289.313,3.775 C290.063,3.91 290.693,4.115 291.297,4.423 C292.505746,5.03755904 293.487734,6.0205978 294.101,7.23 C294.407,7.83 294.611,8.456 294.746,9.213 C294.9,10.067 294.943,10.996 294.964,11.793 C294.977,12.243 294.983,12.693 294.984,13.153 C294.989,13.71 294.989,14.266 294.989,14.824 L294.989,91.142 C294.989,91.7 294.989,92.256 294.985,92.824 C294.983,93.274 294.977,93.724 294.965,94.174 C294.943,94.97 294.9,95.899 294.744,96.763 C294.630594,97.4502806 294.413097,98.1162614 294.099,98.738 C293.484409,99.9478082 292.501027,100.93084 291.291,101.545 C290.691,101.851 290.063,102.057 289.32,102.19 C288.438,102.347 287.473,102.39 286.746,102.41 C286.289,102.42 285.834,102.427 285.367,102.429 C284.812,102.433 284.254,102.433 283.698,102.433 L14.801,102.433 C14.251,102.433 13.701,102.433 13.141,102.429 C12.6909551,102.427046 12.240937,102.421046 11.791,102.411 C11.047,102.391 10.081,102.347 9.207,102.191 C8.51598039,102.075842 7.84638728,101.85669 7.221,101.541 C6.62111744,101.236271 6.07359362,100.837949 5.599,100.361 C5.12290857,99.8857571 4.72529217,99.3379376 4.421,98.738 C4.10640097,98.1127736 3.88826296,97.4435248 3.774,96.753 C3.619,95.89 3.576,94.965 3.554,94.175 C3.54269765,93.7234137 3.53603063,93.2717232 3.532,92.82 L3.532,91.493 L3.532,14.474 L3.532,13.149 C3.537,12.696 3.542,12.244 3.554,11.792 C3.576,11 3.619,10.075 3.776,9.205 C3.89017322,8.51586104 4.10797216,7.84796678 4.422,7.224 C4.726,6.626 5.122,6.08 5.602,5.602 C6.07772872,5.1254978 6.62583457,4.72724354 7.226,4.422 C7.8498075,4.10823092 8.5172811,3.89012212 9.206,3.775 C10.071,3.62 10.998,3.577 11.792,3.555 C12.244,3.543 12.697,3.538 13.146,3.535 L14.823,3.532 L283.698,3.532 L285.37,3.535 Z" id="Bg" fill="#FFFFFF"></path><path d="M45.186,35.64 C46.603,33.868 47.566,31.488 47.312,29.055 C45.237,29.159 42.705,30.425 41.239,32.198 C39.923,33.718 38.759,36.198 39.062,38.528 C41.392,38.73 43.718,37.363 45.186,35.641 M47.285,38.983 C43.903,38.781 41.027,40.902 39.412,40.902 C37.796,40.902 35.322,39.084 32.648,39.133 C29.166,39.184 25.935,41.153 24.168,44.283 C20.534,50.547 23.209,59.839 26.743,64.94 C28.46,67.464 30.528,70.243 33.253,70.143 C35.828,70.042 36.837,68.475 39.967,68.475 C43.095,68.475 44.004,70.143 46.73,70.092 C49.557,70.042 51.324,67.567 53.04,65.041 C55.009,62.164 55.815,59.386 55.865,59.233 C55.815,59.183 50.415,57.111 50.365,50.9 C50.314,45.699 54.605,43.225 54.806,43.072 C52.383,39.488 48.597,39.084 47.286,38.982 M76.734,31.944 C84.084,31.944 89.204,37.011 89.204,44.388 C89.204,51.792 83.979,56.885 76.55,56.885 L68.41,56.885 L68.41,69.828 L62.53,69.828 L62.53,31.944 L76.734,31.944 Z M68.41,51.949 L75.157,51.949 C80.277,51.949 83.191,49.193 83.191,44.415 C83.191,39.637 80.277,36.906 75.183,36.906 L68.41,36.906 L68.41,51.95 L68.41,51.949 Z M90.74,61.979 C90.74,57.148 94.442,54.181 101.006,53.813 L108.566,53.367 L108.566,51.241 C108.566,48.169 106.492,46.331 103.027,46.331 C99.745,46.331 97.697,47.906 97.199,50.374 L91.843,50.374 C92.158,45.386 96.411,41.71 103.237,41.71 C109.932,41.71 114.211,45.255 114.211,50.794 L114.211,69.828 L108.776,69.828 L108.776,65.286 L108.646,65.286 C107.044,68.358 103.552,70.301 99.929,70.301 C94.521,70.301 90.74,66.941 90.74,61.979 L90.74,61.979 Z M108.566,59.485 L108.566,57.305 L101.766,57.725 C98.38,57.962 96.463,59.458 96.463,61.821 C96.463,64.236 98.459,65.811 101.504,65.811 C105.468,65.811 108.566,63.081 108.566,59.485 L108.566,59.485 Z M119.342,79.989 L119.342,75.394 C119.761,75.499 120.706,75.499 121.179,75.499 C123.804,75.499 125.222,74.397 126.088,71.561 C126.088,71.509 126.588,69.881 126.588,69.855 L116.611,42.209 L122.754,42.209 L129.738,64.683 L129.842,64.683 L136.827,42.209 L142.812,42.209 L132.468,71.272 C130.106,77.967 127.375,80.12 121.652,80.12 C121.179,80.12 119.761,80.067 119.342,79.989 L119.342,79.989 Z" id="Pay" fill="#000000"></path><path d="M181.896484,70 L181.896484,64.7792969 L164.204102,64.7792969 L164.204102,31.9521484 L158.113281,31.9521484 L158.113281,70 L181.896484,70 Z M194.369219,70.5009766 C198.113359,70.5009766 201.224688,68.734375 202.859453,65.8076172 L203.149492,65.8076172 L203.149492,70 L209.003008,70 L209.003008,50.6201172 C209.003008,44.8193359 204.784258,41.2333984 197.770586,41.2333984 C191.020586,41.2333984 186.696367,44.6347656 186.142656,49.4072266 L186.116289,49.6445312 L191.706133,49.6445312 L191.7325,49.4863281 C192.312578,47.4033203 194.342852,46.0585938 197.533281,46.0585938 C201.171953,46.0585938 203.149492,47.8251953 203.149492,50.8574219 L203.149492,53.1513672 L195.555742,53.5996094 C188.805742,53.9951172 185.008867,56.9746094 185.008867,61.9580078 L185.008867,62.0107422 C185.008867,67.1259766 188.884844,70.5009766 194.369219,70.5009766 Z M196.003984,65.8339844 C192.971758,65.8339844 190.88875,64.3046875 190.88875,61.7998047 L190.88875,61.7470703 C190.88875,59.3212891 192.708086,57.8974609 196.346758,57.6601562 L203.149492,57.2382812 L203.149492,59.5322266 C203.149492,63.1181641 200.090898,65.8339844 196.003984,65.8339844 Z M225.06168,70.3691406 C226.221836,70.3691406 227.302891,70.2373047 228.120273,70.1054688 L228.120273,65.5175781 C227.513828,65.5703125 227.012852,65.6230469 226.248203,65.6230469 C223.637852,65.6230469 222.451328,64.5683594 222.451328,61.6416016 L222.451328,46.4013672 L228.120273,46.4013672 L228.120273,41.7871094 L222.451328,41.7871094 L222.451328,34.5888672 L216.439609,34.5888672 L216.439609,41.7871094 L212.220859,41.7871094 L212.220859,46.4013672 L216.439609,46.4013672 L216.439609,62.5380859 C216.439609,68.0751953 219.102695,70.3691406 225.06168,70.3691406 Z M244.23168,70.5537109 C251.377187,70.5537109 255.464102,66.3876953 256.386953,62.3007812 L256.439687,62.0634766 L250.823477,62.0634766 L250.744375,62.2480469 C250.058828,64.0146484 247.870352,65.78125 244.363516,65.78125 C239.801992,65.78125 236.901602,62.6962891 236.796133,57.3964844 L256.729727,57.3964844 L256.729727,55.3925781 C256.729727,46.9023438 251.851797,41.2333984 243.941641,41.2333984 C236.005117,41.2333984 230.889883,47.1132812 230.889883,55.9462891 L230.889883,55.9726562 C230.889883,64.9111328 235.926016,70.5537109 244.23168,70.5537109 Z M250.928945,53.2568359 L236.875234,53.2568359 C237.376211,48.5371094 240.223867,46.0058594 243.968008,46.0058594 C247.738516,46.0058594 250.480703,48.3789062 250.928945,53.2568359 Z M267.093086,70 L267.093086,53.2568359 C267.093086,49.1171875 269.703438,46.5859375 273.71125,46.5859375 C274.818672,46.5859375 275.820625,46.7177734 276.585273,46.9023438 L276.585273,41.4970703 C276.05793,41.3916016 275.187813,41.2597656 274.317695,41.2597656 C270.810859,41.2597656 268.332344,43.1582031 267.356758,46.3222656 L267.093086,46.3222656 L267.093086,41.7871094 L261.186836,41.7871094 L261.186836,70 L267.093086,70 Z" id="Later" fill="#000000"></path></svg>',apple_pay_later_mark_white:'<svg viewBox="0 0 299 106" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M283.698,0 L14.823,0 C14.257,0 13.69,0 13.125,0.003 C12.648,0.007 12.172,0.012 11.695,0.025 C10.656,0.053 9.608,0.115 8.582,0.299 C7.55304935,0.475289397 6.5561053,0.803896713 5.624,1.274 C3.75016438,2.22707876 2.22707876,3.75016438 1.274,5.624 C0.803057197,6.55646163 0.474412543,7.5541931 0.299,8.584 C0.113,9.611 0.052,10.658 0.024,11.696 C0.011,12.173 0.005,12.649 0,13.126 C0,13.69 0,14.256 0,14.823 L0,91.141 C0,91.708 0,92.273 0,92.84 C0.005,93.316 0.011,93.793 0.024,94.27 C0.052,95.306 0.114,96.354 0.299,97.38 C0.474052532,98.4097641 0.802361489,99.4074997 1.273,100.34 C1.74618424,101.271314 2.36382962,102.121842 3.103,102.86 C3.84090499,103.599466 4.69148278,104.217148 5.623,104.69 C6.57,105.173 7.54,105.48 8.583,105.667 C9.608,105.85 10.656,105.912 11.695,105.94 C12.172,105.951 12.648,105.958 13.125,105.96 C13.69,105.964 14.257,105.964 14.823,105.964 L283.698,105.964 C284.263,105.964 284.83,105.964 285.395,105.96 C285.87205,105.957616 286.349069,105.950949 286.826,105.94 C287.863,105.912 288.911,105.85 289.939,105.667 C290.968174,105.490543 291.96519,105.161238 292.897,104.69 C294.769895,103.735625 296.292625,102.212895 297.247,100.34 C297.73,99.393 298.036,98.423 298.221,97.38 C298.407,96.354 298.467,95.306 298.495,94.27 C298.508,93.793 298.515,93.316 298.517,92.84 C298.521,92.273 298.521,91.708 298.521,91.141 L298.521,14.824 C298.521,14.257 298.521,13.691 298.517,13.125 C298.515064,12.6485989 298.50773,12.172235 298.495,11.696 C298.467,10.658 298.407,9.611 298.221,8.584 C298.046831,7.55401695 297.71848,6.55615176 297.247,5.624 C296.293413,3.75053315 294.770467,2.22758663 292.897,1.274 C291.964782,0.80438048 290.967861,0.476117852 289.939,0.3 C288.911,0.115 287.863,0.054 286.826,0.026 C286.349085,0.0138870152 285.872062,0.00655331365 285.395,0.004 C284.83,0 284.263,0 283.698,0 Z" id="Outline" fill="rgba(0,0,0,.075)"></path><path d="M285.37,3.535 C285.822,3.538 286.275,3.543 286.73,3.555 C287.522,3.577 288.449,3.62 289.313,3.775 C290.063,3.91 290.693,4.115 291.297,4.423 C292.505746,5.03755904 293.487734,6.0205978 294.101,7.23 C294.407,7.83 294.611,8.456 294.746,9.213 C294.9,10.067 294.943,10.996 294.964,11.793 C294.977,12.243 294.983,12.693 294.984,13.153 C294.989,13.71 294.989,14.266 294.989,14.824 L294.989,91.142 C294.989,91.7 294.989,92.256 294.985,92.824 C294.983,93.274 294.977,93.724 294.965,94.174 C294.943,94.97 294.9,95.899 294.744,96.763 C294.630594,97.4502806 294.413097,98.1162614 294.099,98.738 C293.484409,99.9478082 292.501027,100.93084 291.291,101.545 C290.691,101.851 290.063,102.057 289.32,102.19 C288.438,102.347 287.473,102.39 286.746,102.41 C286.289,102.42 285.834,102.427 285.367,102.429 C284.812,102.433 284.254,102.433 283.698,102.433 L14.801,102.433 C14.251,102.433 13.701,102.433 13.141,102.429 C12.6909551,102.427046 12.240937,102.421046 11.791,102.411 C11.047,102.391 10.081,102.347 9.207,102.191 C8.51598039,102.075842 7.84638728,101.85669 7.221,101.541 C6.62111744,101.236271 6.07359362,100.837949 5.599,100.361 C5.12290857,99.8857571 4.72529217,99.3379376 4.421,98.738 C4.10640097,98.1127736 3.88826296,97.4435248 3.774,96.753 C3.619,95.89 3.576,94.965 3.554,94.175 C3.54269765,93.7234137 3.53603063,93.2717232 3.532,92.82 L3.532,91.493 L3.532,14.474 L3.532,13.149 C3.537,12.696 3.542,12.244 3.554,11.792 C3.576,11 3.619,10.075 3.776,9.205 C3.89017322,8.51586104 4.10797216,7.84796678 4.422,7.224 C4.726,6.626 5.122,6.08 5.602,5.602 C6.07772872,5.1254978 6.62583457,4.72724354 7.226,4.422 C7.8498075,4.10823092 8.5172811,3.89012212 9.206,3.775 C10.071,3.62 10.998,3.577 11.792,3.555 C12.244,3.543 12.697,3.538 13.146,3.535 L14.823,3.532 L283.698,3.532 L285.37,3.535 Z" id="Bg" fill="#FFFFFF"></path><path d="M45.186,35.64 C46.603,33.868 47.566,31.488 47.312,29.055 C45.237,29.159 42.705,30.425 41.239,32.198 C39.923,33.718 38.759,36.198 39.062,38.528 C41.392,38.73 43.718,37.363 45.186,35.641 M47.285,38.983 C43.903,38.781 41.027,40.902 39.412,40.902 C37.796,40.902 35.322,39.084 32.648,39.133 C29.166,39.184 25.935,41.153 24.168,44.283 C20.534,50.547 23.209,59.839 26.743,64.94 C28.46,67.464 30.528,70.243 33.253,70.143 C35.828,70.042 36.837,68.475 39.967,68.475 C43.095,68.475 44.004,70.143 46.73,70.092 C49.557,70.042 51.324,67.567 53.04,65.041 C55.009,62.164 55.815,59.386 55.865,59.233 C55.815,59.183 50.415,57.111 50.365,50.9 C50.314,45.699 54.605,43.225 54.806,43.072 C52.383,39.488 48.597,39.084 47.286,38.982 M76.734,31.944 C84.084,31.944 89.204,37.011 89.204,44.388 C89.204,51.792 83.979,56.885 76.55,56.885 L68.41,56.885 L68.41,69.828 L62.53,69.828 L62.53,31.944 L76.734,31.944 Z M68.41,51.949 L75.157,51.949 C80.277,51.949 83.191,49.193 83.191,44.415 C83.191,39.637 80.277,36.906 75.183,36.906 L68.41,36.906 L68.41,51.95 L68.41,51.949 Z M90.74,61.979 C90.74,57.148 94.442,54.181 101.006,53.813 L108.566,53.367 L108.566,51.241 C108.566,48.169 106.492,46.331 103.027,46.331 C99.745,46.331 97.697,47.906 97.199,50.374 L91.843,50.374 C92.158,45.386 96.411,41.71 103.237,41.71 C109.932,41.71 114.211,45.255 114.211,50.794 L114.211,69.828 L108.776,69.828 L108.776,65.286 L108.646,65.286 C107.044,68.358 103.552,70.301 99.929,70.301 C94.521,70.301 90.74,66.941 90.74,61.979 L90.74,61.979 Z M108.566,59.485 L108.566,57.305 L101.766,57.725 C98.38,57.962 96.463,59.458 96.463,61.821 C96.463,64.236 98.459,65.811 101.504,65.811 C105.468,65.811 108.566,63.081 108.566,59.485 L108.566,59.485 Z M119.342,79.989 L119.342,75.394 C119.761,75.499 120.706,75.499 121.179,75.499 C123.804,75.499 125.222,74.397 126.088,71.561 C126.088,71.509 126.588,69.881 126.588,69.855 L116.611,42.209 L122.754,42.209 L129.738,64.683 L129.842,64.683 L136.827,42.209 L142.812,42.209 L132.468,71.272 C130.106,77.967 127.375,80.12 121.652,80.12 C121.179,80.12 119.761,80.067 119.342,79.989 L119.342,79.989 Z" id="Pay" fill="#000000"></path><path d="M181.896484,70 L181.896484,64.7792969 L164.204102,64.7792969 L164.204102,31.9521484 L158.113281,31.9521484 L158.113281,70 L181.896484,70 Z M194.369219,70.5009766 C198.113359,70.5009766 201.224688,68.734375 202.859453,65.8076172 L203.149492,65.8076172 L203.149492,70 L209.003008,70 L209.003008,50.6201172 C209.003008,44.8193359 204.784258,41.2333984 197.770586,41.2333984 C191.020586,41.2333984 186.696367,44.6347656 186.142656,49.4072266 L186.116289,49.6445312 L191.706133,49.6445312 L191.7325,49.4863281 C192.312578,47.4033203 194.342852,46.0585938 197.533281,46.0585938 C201.171953,46.0585938 203.149492,47.8251953 203.149492,50.8574219 L203.149492,53.1513672 L195.555742,53.5996094 C188.805742,53.9951172 185.008867,56.9746094 185.008867,61.9580078 L185.008867,62.0107422 C185.008867,67.1259766 188.884844,70.5009766 194.369219,70.5009766 Z M196.003984,65.8339844 C192.971758,65.8339844 190.88875,64.3046875 190.88875,61.7998047 L190.88875,61.7470703 C190.88875,59.3212891 192.708086,57.8974609 196.346758,57.6601562 L203.149492,57.2382812 L203.149492,59.5322266 C203.149492,63.1181641 200.090898,65.8339844 196.003984,65.8339844 Z M225.06168,70.3691406 C226.221836,70.3691406 227.302891,70.2373047 228.120273,70.1054688 L228.120273,65.5175781 C227.513828,65.5703125 227.012852,65.6230469 226.248203,65.6230469 C223.637852,65.6230469 222.451328,64.5683594 222.451328,61.6416016 L222.451328,46.4013672 L228.120273,46.4013672 L228.120273,41.7871094 L222.451328,41.7871094 L222.451328,34.5888672 L216.439609,34.5888672 L216.439609,41.7871094 L212.220859,41.7871094 L212.220859,46.4013672 L216.439609,46.4013672 L216.439609,62.5380859 C216.439609,68.0751953 219.102695,70.3691406 225.06168,70.3691406 Z M244.23168,70.5537109 C251.377187,70.5537109 255.464102,66.3876953 256.386953,62.3007812 L256.439687,62.0634766 L250.823477,62.0634766 L250.744375,62.2480469 C250.058828,64.0146484 247.870352,65.78125 244.363516,65.78125 C239.801992,65.78125 236.901602,62.6962891 236.796133,57.3964844 L256.729727,57.3964844 L256.729727,55.3925781 C256.729727,46.9023438 251.851797,41.2333984 243.941641,41.2333984 C236.005117,41.2333984 230.889883,47.1132812 230.889883,55.9462891 L230.889883,55.9726562 C230.889883,64.9111328 235.926016,70.5537109 244.23168,70.5537109 Z M250.928945,53.2568359 L236.875234,53.2568359 C237.376211,48.5371094 240.223867,46.0058594 243.968008,46.0058594 C247.738516,46.0058594 250.480703,48.3789062 250.928945,53.2568359 Z M267.093086,70 L267.093086,53.2568359 C267.093086,49.1171875 269.703438,46.5859375 273.71125,46.5859375 C274.818672,46.5859375 275.820625,46.7177734 276.585273,46.9023438 L276.585273,41.4970703 C276.05793,41.3916016 275.187813,41.2597656 274.317695,41.2597656 C270.810859,41.2597656 268.332344,43.1582031 267.356758,46.3222656 L267.093086,46.3222656 L267.093086,41.7871094 L261.186836,41.7871094 L261.186836,70 L267.093086,70 Z" id="Later" fill="#000000"></path></svg>',apple_pay_mark_black:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 165.521 105.965"><path fill="rgba(255,255,255,.075)" d="M150.698 0H14.823c-.566 0-1.133 0-1.698.003-.477.004-.953.009-1.43.022-1.039.028-2.087.09-3.113.274a10.51 10.51 0 0 0-2.958.975 9.932 9.932 0 0 0-4.35 4.35 10.463 10.463 0 0 0-.975 2.96C.113 9.611.052 10.658.024 11.696c-.013.477-.019.953-.022 1.43C0 13.69 0 14.256 0 14.823v76.318c0 .567 0 1.132.002 1.699.003.476.009.953.022 1.43.028 1.036.09 2.084.275 3.11a10.46 10.46 0 0 0 .974 2.96 9.897 9.897 0 0 0 1.83 2.52 9.874 9.874 0 0 0 2.52 1.83c.947.483 1.917.79 2.96.977 1.025.183 2.073.245 3.112.273.477.011.953.018 1.43.02.565.004 1.132.004 1.698.004h135.875c.565 0 1.132 0 1.697-.004a79.71 79.71 0 0 0 1.431-.02c1.037-.028 2.085-.09 3.113-.273a10.478 10.478 0 0 0 2.958-.977 9.955 9.955 0 0 0 4.35-4.35c.483-.947.789-1.917.974-2.96.186-1.026.246-2.074.274-3.11.013-.477.02-.954.022-1.43.004-.567.004-1.132.004-1.699V14.824c0-.567 0-1.133-.004-1.699a63.067 63.067 0 0 0-.022-1.429c-.028-1.038-.088-2.085-.274-3.112a10.4 10.4 0 0 0-.974-2.96 9.941 9.941 0 0 0-4.35-4.35A10.52 10.52 0 0 0 156.939.3c-1.028-.185-2.076-.246-3.113-.274a71.413 71.413 0 0 0-1.431-.022C151.83 0 151.263 0 150.698 0z"/><path fill="black" d="m150.698 3.532 1.672.003c.452.003.905.008 1.36.02.792.022 1.719.065 2.583.22.75.135 1.38.34 1.984.648a6.392 6.392 0 0 1 2.804 2.807c.306.6.51 1.226.645 1.983.154.854.197 1.783.218 2.58.013.45.019.9.02 1.36.005.557.005 1.113.005 1.671v76.318c0 .558 0 1.114-.004 1.682-.002.45-.008.9-.02 1.35-.022.796-.065 1.725-.221 2.589a6.855 6.855 0 0 1-.645 1.975 6.397 6.397 0 0 1-2.808 2.807c-.6.306-1.228.512-1.971.645-.882.157-1.847.2-2.574.22-.457.01-.912.017-1.379.019-.555.004-1.113.004-1.669.004H14.801c-.55 0-1.1 0-1.66-.004a75.086 75.086 0 0 1-1.35-.018c-.744-.02-1.71-.064-2.584-.22a6.938 6.938 0 0 1-1.986-.65 6.337 6.337 0 0 1-1.622-1.18 6.355 6.355 0 0 1-1.178-1.623 6.935 6.935 0 0 1-.647-1.985c-.155-.863-.198-1.788-.22-2.578a66.017 66.017 0 0 1-.02-1.355l-.002-1.327V14.474l.002-1.325c.003-.453.008-.905.02-1.357.022-.792.065-1.717.222-2.587a6.924 6.924 0 0 1 .646-1.981c.304-.598.7-1.144 1.18-1.622a6.385 6.385 0 0 1 1.624-1.18 6.96 6.96 0 0 1 1.98-.647c.865-.155 1.792-.198 2.586-.22.452-.012.905-.017 1.354-.02l1.677-.003h135.875"/><path fill="white" d="M45.186 35.64c1.417-1.772 2.38-4.152 2.126-6.585-2.075.104-4.607 1.37-6.073 3.143-1.316 1.52-2.48 4-2.177 6.33 2.33.202 4.656-1.165 6.124-2.887M47.285 38.983c-3.382-.202-6.258 1.919-7.873 1.919-1.616 0-4.09-1.818-6.764-1.769-3.482.051-6.713 2.02-8.48 5.15-3.634 6.264-.959 15.556 2.575 20.657 1.717 2.524 3.785 5.303 6.51 5.203 2.575-.101 3.584-1.668 6.714-1.668 3.128 0 4.037 1.668 6.763 1.617 2.827-.05 4.594-2.525 6.31-5.051 1.969-2.877 2.775-5.655 2.825-5.808-.05-.05-5.45-2.122-5.5-8.333-.051-5.201 4.24-7.675 4.441-7.828-2.423-3.584-6.209-3.988-7.52-4.09M76.734 31.944c7.35 0 12.47 5.067 12.47 12.444 0 7.404-5.225 12.497-12.654 12.497h-8.14v12.943h-5.88V31.944h14.204zM68.41 51.949h6.747c5.12 0 8.034-2.756 8.034-7.534 0-4.778-2.914-7.509-8.008-7.509h-6.773V51.95zM90.74 61.979c0-4.831 3.702-7.798 10.266-8.166l7.56-.446v-2.126c0-3.072-2.074-4.91-5.539-4.91-3.282 0-5.33 1.575-5.828 4.043h-5.356c.315-4.988 4.568-8.664 11.394-8.664 6.695 0 10.974 3.545 10.974 9.084v19.034h-5.435v-4.542h-.13c-1.602 3.072-5.094 5.015-8.717 5.015-5.408 0-9.189-3.36-9.189-8.322zm17.826-2.494v-2.18l-6.8.42c-3.386.237-5.303 1.733-5.303 4.096 0 2.415 1.996 3.99 5.041 3.99 3.964 0 7.062-2.73 7.062-6.326zM119.342 79.989v-4.595c.419.105 1.364.105 1.837.105 2.625 0 4.043-1.102 4.909-3.938 0-.052.5-1.68.5-1.706l-9.977-27.646h6.143l6.984 22.474h.104l6.985-22.474h5.985l-10.344 29.063c-2.362 6.695-5.093 8.848-10.816 8.848-.473 0-1.891-.053-2.31-.131z"/></svg>',apple_pay_mark_none:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 165.521 105.965"><path fill="black" d="M45.186 35.64c1.417-1.772 2.38-4.152 2.126-6.585-2.075.104-4.607 1.37-6.073 3.143-1.316 1.52-2.48 4-2.177 6.33 2.33.202 4.656-1.165 6.124-2.887M47.285 38.983c-3.382-.202-6.258 1.919-7.873 1.919-1.616 0-4.09-1.818-6.764-1.769-3.482.051-6.713 2.02-8.48 5.15-3.634 6.264-.959 15.556 2.575 20.657 1.717 2.524 3.785 5.303 6.51 5.203 2.575-.101 3.584-1.668 6.714-1.668 3.128 0 4.037 1.668 6.763 1.617 2.827-.05 4.594-2.525 6.31-5.051 1.969-2.877 2.775-5.655 2.825-5.808-.05-.05-5.45-2.122-5.5-8.333-.051-5.201 4.24-7.675 4.441-7.828-2.423-3.584-6.209-3.988-7.52-4.09M76.734 31.944c7.35 0 12.47 5.067 12.47 12.444 0 7.404-5.225 12.497-12.654 12.497h-8.14v12.943h-5.88V31.944h14.204zM68.41 51.949h6.747c5.12 0 8.034-2.756 8.034-7.534 0-4.778-2.914-7.509-8.008-7.509h-6.773V51.95zM90.74 61.979c0-4.831 3.702-7.798 10.266-8.166l7.56-.446v-2.126c0-3.072-2.074-4.91-5.539-4.91-3.282 0-5.33 1.575-5.828 4.043h-5.356c.315-4.988 4.568-8.664 11.394-8.664 6.695 0 10.974 3.545 10.974 9.084v19.034h-5.435v-4.542h-.13c-1.602 3.072-5.094 5.015-8.717 5.015-5.408 0-9.189-3.36-9.189-8.322zm17.826-2.494v-2.18l-6.8.42c-3.386.237-5.303 1.733-5.303 4.096 0 2.415 1.996 3.99 5.041 3.99 3.964 0 7.062-2.73 7.062-6.326zM119.342 79.989v-4.595c.419.105 1.364.105 1.837.105 2.625 0 4.043-1.102 4.909-3.938 0-.052.5-1.68.5-1.706l-9.977-27.646h6.143l6.984 22.474h.104l6.985-22.474h5.985l-10.344 29.063c-2.362 6.695-5.093 8.848-10.816 8.848-.473 0-1.891-.053-2.31-.131z"/></svg>',apple_pay_mark_white_outline:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 165.521 105.965"><path d="M150.698 0H14.823c-.566 0-1.133 0-1.698.003-.477.004-.953.009-1.43.022-1.039.028-2.087.09-3.113.274a10.51 10.51 0 0 0-2.958.975 9.932 9.932 0 0 0-4.35 4.35 10.463 10.463 0 0 0-.975 2.96C.113 9.611.052 10.658.024 11.696c-.013.477-.019.953-.022 1.43C0 13.69 0 14.256 0 14.823v76.318c0 .567 0 1.132.002 1.699.003.476.009.953.022 1.43.028 1.036.09 2.084.275 3.11a10.46 10.46 0 0 0 .974 2.96 9.897 9.897 0 0 0 1.83 2.52 9.874 9.874 0 0 0 2.52 1.83c.947.483 1.917.79 2.96.977 1.025.183 2.073.245 3.112.273.477.011.953.018 1.43.02.565.004 1.132.004 1.698.004h135.875c.565 0 1.132 0 1.697-.004a79.71 79.71 0 0 0 1.431-.02c1.037-.028 2.085-.09 3.113-.273a10.478 10.478 0 0 0 2.958-.977 9.955 9.955 0 0 0 4.35-4.35c.483-.947.789-1.917.974-2.96.186-1.026.246-2.074.274-3.11.013-.477.02-.954.022-1.43.004-.567.004-1.132.004-1.699V14.824c0-.567 0-1.133-.004-1.699a63.067 63.067 0 0 0-.022-1.429c-.028-1.038-.088-2.085-.274-3.112a10.4 10.4 0 0 0-.974-2.96 9.941 9.941 0 0 0-4.35-4.35A10.52 10.52 0 0 0 156.939.3c-1.028-.185-2.076-.246-3.113-.274a71.413 71.413 0 0 0-1.431-.022C151.83 0 151.263 0 150.698 0z"/><path fill="white" d="m150.698 3.532 1.672.003c.452.003.905.008 1.36.02.792.022 1.719.065 2.583.22.75.135 1.38.34 1.984.648a6.392 6.392 0 0 1 2.804 2.807c.306.6.51 1.226.645 1.983.154.854.197 1.783.218 2.58.013.45.019.9.02 1.36.005.557.005 1.113.005 1.671v76.318c0 .558 0 1.114-.004 1.682-.002.45-.008.9-.02 1.35-.022.796-.065 1.725-.221 2.589a6.855 6.855 0 0 1-.645 1.975 6.397 6.397 0 0 1-2.808 2.807c-.6.306-1.228.512-1.971.645-.882.157-1.847.2-2.574.22-.457.01-.912.017-1.379.019-.555.004-1.113.004-1.669.004H14.801c-.55 0-1.1 0-1.66-.004a75.086 75.086 0 0 1-1.35-.018c-.744-.02-1.71-.064-2.584-.22a6.938 6.938 0 0 1-1.986-.65 6.337 6.337 0 0 1-1.622-1.18 6.355 6.355 0 0 1-1.178-1.623 6.935 6.935 0 0 1-.647-1.985c-.155-.863-.198-1.788-.22-2.578a66.017 66.017 0 0 1-.02-1.355l-.002-1.327V14.474l.002-1.325c.003-.453.008-.905.02-1.357.022-.792.065-1.717.222-2.587a6.924 6.924 0 0 1 .646-1.981c.304-.598.7-1.144 1.18-1.622a6.385 6.385 0 0 1 1.624-1.18 6.96 6.96 0 0 1 1.98-.647c.865-.155 1.792-.198 2.586-.22.452-.012.905-.017 1.354-.02l1.677-.003h135.875"/><path fill="black" d="M45.186 35.64c1.417-1.772 2.38-4.152 2.126-6.585-2.075.104-4.607 1.37-6.073 3.143-1.316 1.52-2.48 4-2.177 6.33 2.33.202 4.656-1.165 6.124-2.887M47.285 38.983c-3.382-.202-6.258 1.919-7.873 1.919-1.616 0-4.09-1.818-6.764-1.769-3.482.051-6.713 2.02-8.48 5.15-3.634 6.264-.959 15.556 2.575 20.657 1.717 2.524 3.785 5.303 6.51 5.203 2.575-.101 3.584-1.668 6.714-1.668 3.128 0 4.037 1.668 6.763 1.617 2.827-.05 4.594-2.525 6.31-5.051 1.969-2.877 2.775-5.655 2.825-5.808-.05-.05-5.45-2.122-5.5-8.333-.051-5.201 4.24-7.675 4.441-7.828-2.423-3.584-6.209-3.988-7.52-4.09M76.734 31.944c7.35 0 12.47 5.067 12.47 12.444 0 7.404-5.225 12.497-12.654 12.497h-8.14v12.943h-5.88V31.944h14.204zM68.41 51.949h6.747c5.12 0 8.034-2.756 8.034-7.534 0-4.778-2.914-7.509-8.008-7.509h-6.773V51.95zM90.74 61.979c0-4.831 3.702-7.798 10.266-8.166l7.56-.446v-2.126c0-3.072-2.074-4.91-5.539-4.91-3.282 0-5.33 1.575-5.828 4.043h-5.356c.315-4.988 4.568-8.664 11.394-8.664 6.695 0 10.974 3.545 10.974 9.084v19.034h-5.435v-4.542h-.13c-1.602 3.072-5.094 5.015-8.717 5.015-5.408 0-9.189-3.36-9.189-8.322zm17.826-2.494v-2.18l-6.8.42c-3.386.237-5.303 1.733-5.303 4.096 0 2.415 1.996 3.99 5.041 3.99 3.964 0 7.062-2.73 7.062-6.326zM119.342 79.989v-4.595c.419.105 1.364.105 1.837.105 2.625 0 4.043-1.102 4.909-3.938 0-.052.5-1.68.5-1.706l-9.977-27.646h6.143l6.984 22.474h.104l6.985-22.474h5.985l-10.344 29.063c-2.362 6.695-5.093 8.848-10.816 8.848-.473 0-1.891-.053-2.31-.131z"/></svg>',apple_pay_mark_white:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 165.521 105.965"><path fill="rgba(0,0,0,.075)" d="M150.698 0H14.823c-.566 0-1.133 0-1.698.003-.477.004-.953.009-1.43.022-1.039.028-2.087.09-3.113.274a10.51 10.51 0 0 0-2.958.975 9.932 9.932 0 0 0-4.35 4.35 10.463 10.463 0 0 0-.975 2.96C.113 9.611.052 10.658.024 11.696c-.013.477-.019.953-.022 1.43C0 13.69 0 14.256 0 14.823v76.318c0 .567 0 1.132.002 1.699.003.476.009.953.022 1.43.028 1.036.09 2.084.275 3.11a10.46 10.46 0 0 0 .974 2.96 9.897 9.897 0 0 0 1.83 2.52 9.874 9.874 0 0 0 2.52 1.83c.947.483 1.917.79 2.96.977 1.025.183 2.073.245 3.112.273.477.011.953.018 1.43.02.565.004 1.132.004 1.698.004h135.875c.565 0 1.132 0 1.697-.004a79.71 79.71 0 0 0 1.431-.02c1.037-.028 2.085-.09 3.113-.273a10.478 10.478 0 0 0 2.958-.977 9.955 9.955 0 0 0 4.35-4.35c.483-.947.789-1.917.974-2.96.186-1.026.246-2.074.274-3.11.013-.477.02-.954.022-1.43.004-.567.004-1.132.004-1.699V14.824c0-.567 0-1.133-.004-1.699a63.067 63.067 0 0 0-.022-1.429c-.028-1.038-.088-2.085-.274-3.112a10.4 10.4 0 0 0-.974-2.96 9.941 9.941 0 0 0-4.35-4.35A10.52 10.52 0 0 0 156.939.3c-1.028-.185-2.076-.246-3.113-.274a71.413 71.413 0 0 0-1.431-.022C151.83 0 151.263 0 150.698 0z"/><path fill="white" d="m150.698 3.532 1.672.003c.452.003.905.008 1.36.02.792.022 1.719.065 2.583.22.75.135 1.38.34 1.984.648a6.392 6.392 0 0 1 2.804 2.807c.306.6.51 1.226.645 1.983.154.854.197 1.783.218 2.58.013.45.019.9.02 1.36.005.557.005 1.113.005 1.671v76.318c0 .558 0 1.114-.004 1.682-.002.45-.008.9-.02 1.35-.022.796-.065 1.725-.221 2.589a6.855 6.855 0 0 1-.645 1.975 6.397 6.397 0 0 1-2.808 2.807c-.6.306-1.228.512-1.971.645-.882.157-1.847.2-2.574.22-.457.01-.912.017-1.379.019-.555.004-1.113.004-1.669.004H14.801c-.55 0-1.1 0-1.66-.004a75.086 75.086 0 0 1-1.35-.018c-.744-.02-1.71-.064-2.584-.22a6.938 6.938 0 0 1-1.986-.65 6.337 6.337 0 0 1-1.622-1.18 6.355 6.355 0 0 1-1.178-1.623 6.935 6.935 0 0 1-.647-1.985c-.155-.863-.198-1.788-.22-2.578a66.017 66.017 0 0 1-.02-1.355l-.002-1.327V14.474l.002-1.325c.003-.453.008-.905.02-1.357.022-.792.065-1.717.222-2.587a6.924 6.924 0 0 1 .646-1.981c.304-.598.7-1.144 1.18-1.622a6.385 6.385 0 0 1 1.624-1.18 6.96 6.96 0 0 1 1.98-.647c.865-.155 1.792-.198 2.586-.22.452-.012.905-.017 1.354-.02l1.677-.003h135.875"/><path fill="black" d="M45.186 35.64c1.417-1.772 2.38-4.152 2.126-6.585-2.075.104-4.607 1.37-6.073 3.143-1.316 1.52-2.48 4-2.177 6.33 2.33.202 4.656-1.165 6.124-2.887M47.285 38.983c-3.382-.202-6.258 1.919-7.873 1.919-1.616 0-4.09-1.818-6.764-1.769-3.482.051-6.713 2.02-8.48 5.15-3.634 6.264-.959 15.556 2.575 20.657 1.717 2.524 3.785 5.303 6.51 5.203 2.575-.101 3.584-1.668 6.714-1.668 3.128 0 4.037 1.668 6.763 1.617 2.827-.05 4.594-2.525 6.31-5.051 1.969-2.877 2.775-5.655 2.825-5.808-.05-.05-5.45-2.122-5.5-8.333-.051-5.201 4.24-7.675 4.441-7.828-2.423-3.584-6.209-3.988-7.52-4.09M76.734 31.944c7.35 0 12.47 5.067 12.47 12.444 0 7.404-5.225 12.497-12.654 12.497h-8.14v12.943h-5.88V31.944h14.204zM68.41 51.949h6.747c5.12 0 8.034-2.756 8.034-7.534 0-4.778-2.914-7.509-8.008-7.509h-6.773V51.95zM90.74 61.979c0-4.831 3.702-7.798 10.266-8.166l7.56-.446v-2.126c0-3.072-2.074-4.91-5.539-4.91-3.282 0-5.33 1.575-5.828 4.043h-5.356c.315-4.988 4.568-8.664 11.394-8.664 6.695 0 10.974 3.545 10.974 9.084v19.034h-5.435v-4.542h-.13c-1.602 3.072-5.094 5.015-8.717 5.015-5.408 0-9.189-3.36-9.189-8.322zm17.826-2.494v-2.18l-6.8.42c-3.386.237-5.303 1.733-5.303 4.096 0 2.415 1.996 3.99 5.041 3.99 3.964 0 7.062-2.73 7.062-6.326zM119.342 79.989v-4.595c.419.105 1.364.105 1.837.105 2.625 0 4.043-1.102 4.909-3.938 0-.052.5-1.68.5-1.706l-9.977-27.646h6.143l6.984 22.474h.104l6.985-22.474h5.985l-10.344 29.063c-2.362 6.695-5.093 8.848-10.816 8.848-.473 0-1.891-.053-2.31-.131z"/></svg>'},Lr=/\{\{\s*([^\s]+)\s*\}\}/gi;typeof WEBVIEW>"u"&&(xe.WEBVIEW=!1);class Ht extends HTMLElement{constructor(){super(),this.locale=fn.locale,this.countryCode=fn.countryCode,this.currencyCode=fn.currencyCode,this.type=fn.type,this.modalType=fn.modalType,this.debug=!1,On.set(this,void 0),Cn.set(this,void 0),Zt.set(this,void 0),hn(this,Zt,new Promise(m=>setTimeout(m)).then(()=>Ht.getData({countryCode:this.countryCode,amount:this.amount,currencyCode:this.currencyCode,locale:this.locale})).then(m=>{var b=new Event("load");return this.dispatchEvent(b),this.data=m,new Promise(S=>setTimeout(S))},m=>{console.warn("Apple Pay Merchandising: unable to fetch merchandising data",m),this.disable()}).then(()=>{hn(this,On,this.ownerDocument.createElement("div")),Xe(this,On).className="theme-".concat(this.theme," content"),hn(this,Cn,this.attachShadow({mode:"closed"})),Xe(this,Cn).innerHTML="<style>".concat(":host{font-family:var(--apple-pay-font-family, '-apple-system', 'SF Pro Display', 'SF Pro Icons', 'Helvetica Neue', 'Helvetica', 'Arial', 'sans-serif');font-size:var(--apple-pay-font-size, 13px);line-height:1.33;max-width:var(--apple-pay-width, 340px);display:inline-block}:host([disabled]),:host([hidden]){display:none!important;margin:0}:host>*{display:none}*{-webkit-box-sizing:border-box;box-sizing:border-box}.content{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:start;align-items:flex-start;margin:0 auto;color:inherit;gap:.75ex}.theme-dark.content .paymark.align-left.type-pay_later.style-none{-webkit-filter:invert(1);filter:invert(1)}.theme-dark.content .theme-dark.text .info-circle{-webkit-filter:invert(1);filter:invert(1)}.paymark{-ms-flex-order:2;order:2;margin:.054em 0 0}.paymark.align-left{-ms-flex-order:0;order:0;margin-right:.75ex}.paymark.align-right{margin-left:.75ex}.paymark.type-none{display:none}.paymark.style-none{margin:0}.content p{-ms-flex-order:1;order:1;margin:0}.content .text{-ms-flex-positive:1;flex-grow:1;margin:0 auto;-ms-flex-item-align:center;align-self:center}a{color:var(--apple-pay-link-color, #0066CC);text-decoration:none}@media (hover: hover){a:hover{text-decoration:underline}}.theme-dark{color:var(--apple-pay-text-color-dark, #F5F5F7)}.theme-light{color:var(--apple-pay-text-color, #1D1D1F)}.theme-dark a{color:var(--apple-pay-link-color-dark, #2997FF)}.theme-light a{color:var(--apple-pay-link-color, #0066CC)}.paymark svg,.paymark img{display:block;height:2rem}","</style>"),Xe(this,Cn).appendChild(Xe(this,On)),Xe(this,Cn).addEventListener("click",m=>{var b,S,B=m.target.closest('a[href*="'.concat(this.data.modalUrl,'"]'));B&&m.currentTarget.contains(B)&&(m.preventDefault(),WEBVIEW?null===(S=null===(b=webkit.messageHandlers)||void 0===b?void 0:b.applePayDetails)||void 0===S||S.postMessage("show-modal"):(Wt.setAttribute("locale",this.locale),Wt.setAttribute("theme",this.theme),Wt.setAttribute("url",this.data.modalUrl),Wt.show()))})}))}connectedCallback(){var m=this;return Se(function*(){yield Xe(m,Zt),m.ready=!0,m.classList.add("ready"),m.update()})()}disconnectedCallback(){var m=this;return Se(function*(){yield Xe(m,Zt),m.disable()})()}disable(){var m,b;!(null===(m=Xe(this,Cn))||void 0===m)&&m.contains(Xe(this,On))&&(null===(b=Xe(this,Cn))||void 0===b||b.removeChild(Xe(this,On))),this.setAttribute("disabled",""),this.setAttribute("hidden",""),this.disabled=!0}enable(){var m;null===(m=Xe(this,Cn))||void 0===m||m.appendChild(Xe(this,On)),this.disabled=!1,this.removeAttribute("disabled"),this.removeAttribute("hidden")}update(){var m=this;return Se(function*(){if(m.ready)if(m.debug||(yield Ht.isEligible(m))){m.enable();var b=m.data=yield Ht.getData(m),S=yield Ht.fetchData(m),B=S.presets[m.type||fn.type]||S.presets.custom;"custom"===m.type&&(b.promoText=m.innerHTML);var z=new Intl.NumberFormat(m.locale,{style:"currency",currency:m.currencyCode,minimumFractionDigits:Number.isInteger(b.paymentsAmount)?0:2,currencyDisplay:"narrowSymbol"}),he=Object.assign(Object.assign(Object.assign({},b),B),{paymentsAmount:z.format(b.paymentsAmount),hideLogo:b.logo?"":"hidden",hideText:b.promoText?"":"hidden",theme:m.theme||fn.theme,modalUrl:b.modalUrl}),lt='<div class="paymark align-{{ logoAlign }} type-{{ logoType }} style-{{ logoStyle }}" {{ hideLogo }}>{{ logo }}</div><p class="theme-{{ theme }} text" {{ hideText }}>'.concat(b.promoText,"</p>");Xe(m,On).innerHTML=lt.replace(Lr,(Kt,rr)=>he[rr])}else m.disable()})()}static get observedAttributes(){return Ds}attributeChangedCallback(m,b,S){m=Te(m),null==S?delete this[m]:this[m]="true"===S||"false"!==S&&(""===S||S),b!==S&&this.update()}static fetchData({countryCode:m}){return Se(function*(){var b,S=m.toLowerCase();try{b=Wn[S]||(Wn[S]=yield(yield fetch(It("./merchandising-".concat(S,".json")))).json())}catch{throw Error("Apple Pay Merchandising: unable to fetch merchandising data")}return b})()}static getData({countryCode:m,locale:b,amount:S,modalType:B="learn-more",theme:z="light",type:he="plain"}){return Se(function*(){var lt,Kt=yield Ht.fetchData({countryCode:m}),rr=(Kt.text[b]||Kt.text[b.slice(0,2)]||Kt.text[Object.keys(Kt.text)[0]])[he]||"",si=null===(lt=Object.entries(Kt.method).find(([,ts])=>ts.minAmount<=S&&ts.maxAmount>=S))||void 0===lt?void 0:lt[1],Ms=Kt.presets[he||fn.type]||Kt.presets.custom,no=Math.round(S/si.frequency*100)/100,ro=location.hostname||window.frames.top.document.location.hostname;if(b.split("-")[1].toLowerCase()!==m.toLowerCase())throw Error("Apple Pay Merchandising: unsupported locale");return Object.assign({logo:"none"===Ms.logoType?"":Er["apple_".concat(Ms.logoType,"_mark_").concat(Ms.logoStyle)],promoText:rr,paymentsAmount:no,lastPaymentAmount:S-no*(si.frequency-1),modalUrl:It("./".concat(B,".html"))+"#data=".concat(btoa(JSON.stringify(Object.assign({amount:S,theme:z,locale:b,referrerUrl:ro},si))))},si)})()}static isEligible({amount:m,currencyCode:b,countryCode:S}){return Se(function*(){if(!function(z={}){try{return new PaymentRequest([{supportedMethods:"https://apple.com/apple-pay",data:{version:15,features:["applePayLater"],merchantIdentifier:"",countryCode:z.countryCode,supportedNetworks:["masterCard"],merchantCapabilities:["supports3DS"]}}],{total:{label:"applePayLater",amount:{currency:z.currencyCode,value:"0.00"}}}),!0}catch{return!1}}({currencyCode:b,countryCode:S}))return!1;var B=yield Ht.fetchData({countryCode:S});return b===B.currencyCode&&Object.entries(B.method).some(([,z])=>z.minAmount<=m&&z.maxAmount>=m)})()}}On=new WeakMap,Cn=new WeakMap,Zt=new WeakMap;var fn={merchantToken:null,amount:null,type:"plain",locale:"en-US",modalType:"learn-more",countryCode:"US",currencyCode:"USD",debug:!1,theme:"auto"},Ds=Object.keys(fn).map(Ge);customElements.define("apple-pay-merchandising",Ht),window.ApplePayMerchandising=Ht;var nt=["ar-AB","ca-ES","cs-CZ","da-DK","de-DE","el-GR","en-US","en-AU","en-GB","es-ES","es-MX","fi-FI","fr-CA","fr-FR","he-IL","hi-IN","hr-HR","hu-HU","id-ID","it-IT","ja-JP","ko-KR","ms-MY","nb-NO","nl-NL","pl-PL","pt-BR","pt-PT","ro-RO","ru-RU","sk-SK","sv-SE","th-TH","tr-TR","uk-UA","vi-VN","zh-CN","zh-HK","zh-TW"];function Fr(_){return _?.includes("-")&&!!nt.find(m=>m===_)}function At(_){if(_){var m=_.trim().replace("_","-").split("-"),b=m[0].toLowerCase();return 1===m.length?b:b+"-"+m[1].toUpperCase()}}function at(_,m=!0){var z,he,b=_?.includes("-");if(b){var S=nt.find(z=>z===_);if(S)return S}if(_&&(!b||m)){var B=(z=_,he=z?.split("-")[0],nt.find(lt=>new RegExp("^".concat(he),"g").test(lt)));if(B)return B}}function ri(_){var m=function Gi(_){var m=((void 0===navigator.languages?[navigator.language]:navigator.languages)||[]).map(At),b=_?.closest("[lang]"),S=b?.lang?At(b.lang):void 0;return S&&m.unshift(S),m}(_).reduce((b,S)=>{if(b&&b.includes("-"))return b;if(!b){if(Fr(S))return S;var B=(z=S,he=z?.split("-")[0],he&&nt.find(lt=>lt.startsWith(he))?he:void 0);if(B)return B}var z,he;return b&&!b.includes("-")&&S.startsWith(b)&&Fr(S)?S:b},void 0);return(m?.includes("-")?m:at(m))||"en-US"}function Ks(){try{return document.fonts.check("15px -apple-system")}catch{return!1}}function xt(_){return!!document.getElementById(Tt(_))}function Dr(_){var m=document.createElement("style");m.id=Tt(_),m.innerHTML="@font-face{"+"font-family:apple-pay-btn-".concat(_,";")+"src:url(".concat(Ro("./assets/1.0.0/fonts/".concat(_,".woff2")),') format("woff2"),')+"url(".concat(Ro("./assets/1.0.0/fonts/".concat(_,".woff")),') format("woff");')+"font-display:block;}",document.head.appendChild(m)}function Tt(_){return"apple-pay-btn-font-".concat(_)}function Ro(_){return se+_.replace(/^\.\//,"/")}var Lo=["add-money","book","buy","check-out","continue","contribute","donate","order","pay","plain","reload","rent","set-up","subscribe","support","tip","top-up"];function Fo(_){return Lo.includes(_)}function _c(_){switch(_){case"add-money":return"a";case"book":return"bo";case"buy":return"bu";case"check-out":return"ch";case"continue":return"ci";case"contribute":return"co";case"donate":return"d";case"order":return"o";case"pay":return"pa";case"plain":return"p";case"reload":return"rl";case"rent":return"rn";case"set-up":return"se";case"subscribe":return"sb";case"support":return"sp";case"tip":return"ti";case"top-up":return"to"}}function Oa(_,m){var b=[..._.l[_c(m)]],S=b[0].t.startsWith("%@")?0:1;return(b=b.map(B=>Object.assign(Object.assign({},B),{t:B.t.replace(/%@/g,"")}))).splice(S,0,{t:"%@"}),_.rtl&&b.reverse(),b}function Vo(_,m){if("plain"===m)return"Apple Pay";var b=Oa(_,m);return _.rtl&&b.reverse(),b.reduce((S,B)=>S+("%@"===B.t?"Apple Pay":B.t),"")}function Sr(_,m,b,S,B){var z=m.t.replace(/\s/g,"&#160;");return'<text x="'.concat(_,'" y="').concat(function(he){switch(he){case"ja-JP":return 20;case"ko-KR":return 19.6}return 19.5}(S),'" ')+"".concat(b?'direction="rtl" unicode-bidi="bidi-override" text-anchor="end"':""," ")+"".concat(B?'style="letter-spacing:'.concat(B,';"'):""," ")+"".concat(function(he){return"hi-IN"!==he&&"th-TH"!==he}(S)?'height="'.concat(m.h,'" width="').concat(m.w,'" ').concat(b?"":'textLength="'.concat(m.w,'"')):"",">")+"".concat(z,"</text>")}function Wi(_,m,b,S,B){var z='<?xml version="1.0" encoding="UTF-8"?>\n<svg class="logo" viewBox="0 0 105 43" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <title>Apple Logo</title>\n <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g fill="#FFF">\n <path d="M19.4028,5.5674 C20.6008,4.0684 21.4138,2.0564 21.1998,0.0004 C19.4458,0.0874 17.3058,1.1574 16.0668,2.6564 C14.9538,3.9414 13.9688,6.0374 14.2258,8.0074 C16.1948,8.1784 18.1618,7.0244 19.4028,5.5674"></path>\n <path d="M21.1772,8.3926 C18.3182,8.2226 15.8872,10.0156 14.5212,10.0156 C13.1552,10.0156 11.0642,8.4786 8.8022,8.5196 C5.8592,8.5626 3.1282,10.2276 1.6342,12.8746 C-1.4378,18.1696 0.8232,26.0246 3.8112,30.3376 C5.2622,32.4716 7.0102,34.8206 9.3142,34.7366 C11.4912,34.6506 12.3442,33.3266 14.9902,33.3266 C17.6352,33.3266 18.4042,34.7366 20.7082,34.6936 C23.0972,34.6506 24.5922,32.5586 26.0422,30.4226 C27.7072,27.9906 28.3882,25.6426 28.4312,25.5126 C28.3882,25.4706 23.8232,23.7186 23.7812,18.4676 C23.7382,14.0706 27.3652,11.9786 27.5362,11.8496 C25.4882,8.8196 22.2872,8.4786 21.1772,8.3926"></path>\n <path d="M85.5508,43.0381 L85.5508,39.1991 C85.8628,39.2421 86.6158,39.2871 87.0158,39.2871 C89.2138,39.2871 90.4558,38.3551 91.2108,35.9581 L91.6548,34.5371 L83.2428,11.2321 L88.4368,11.2321 L94.2958,30.1421 L94.4068,30.1421 L100.2668,11.2321 L105.3278,11.2321 L96.6048,35.7141 C94.6078,41.3291 92.3208,43.1721 87.4828,43.1721 C87.1048,43.1721 85.8838,43.1271 85.5508,43.0381"></path>\n <path d="M42.6499,19.3555 L48.3549,19.3555 C52.6829,19.3555 55.1469,17.0255 55.1469,12.9855 C55.1469,8.9455 52.6829,6.6375 48.3769,6.6375 L42.6499,6.6375 L42.6499,19.3555 Z M49.6869,2.4425 C55.9009,2.4425 60.2289,6.7265 60.2289,12.9625 C60.2289,19.2225 55.8129,23.5285 49.5309,23.5285 L42.6499,23.5285 L42.6499,34.4705 L37.6779,34.4705 L37.6779,2.4425 L49.6869,2.4425 Z"></path>\n <path d="M76.5547,25.7705 L76.5547,23.9715 L71.0287,24.3275 C67.9207,24.5275 66.3007,25.6815 66.3007,27.7015 C66.3007,29.6545 67.9887,30.9195 70.6287,30.9195 C74.0027,30.9195 76.5547,28.7665 76.5547,25.7705 M61.4617,27.8345 C61.4617,23.7285 64.5917,21.3755 70.3627,21.0205 L76.5547,20.6425 L76.5547,18.8675 C76.5547,16.2705 74.8457,14.8495 71.8057,14.8495 C69.2967,14.8495 67.4777,16.1375 67.0997,18.1125 L62.6167,18.1125 C62.7497,13.9615 66.6567,10.9435 71.9387,10.9435 C77.6207,10.9435 81.3267,13.9175 81.3267,18.5345 L81.3267,34.4705 L76.7327,34.4705 L76.7327,30.6305 L76.6217,30.6305 C75.3127,33.1395 72.4267,34.7145 69.2967,34.7145 C64.6807,34.7145 61.4617,31.9625 61.4617,27.8345"></path>\n </g>\n </g>\n</svg>'.replace("<svg","<svg ".concat(B?'id="'.concat(B,'"'):"",' x="').concat(_,'" y="').concat(m,'" height="').concat(b,'" width="').concat(35,'"'));return"black"!==S&&(z=z.replace('fill="#FFF"','fill="#000"')),z}function Ra(_){var m=Oa(_.metadata,_.buttonType),b=_.metadata.ls,{width:S,domStr:B}=m.reduce((z,he,lt)=>{var Kt;if("%@"===he.t){lt>0&&new RegExp(/\s$/).test(z.prev)&&(z.width=z.width+1);var rr=0===lt||lt===m.length-1;return{domStr:z.domStr+Wi(z.width+.2,7.92,15,_.buttonStyle),width:z.width+35+(rr?.2:.4),prev:he.t}}return"%@"===z.prev&&null!==(Kt=he.t)&&void 0!==Kt&&Kt.startsWith(" ")?z.width=z.width+1:"%@"===z.prev&&(z.width=z.width+.2),{domStr:z.domStr+Sr(z.width,he,!!_.metadata.rtl,_.locale,b),width:z.width+he.w,prev:he.t}},{width:12.5,domStr:"",prev:""});return{width:S+12.5,domStr:B}}function Ys(_,m=!1){return'<svg id="svg-logo" viewBox="0 0 '.concat(35," ").concat(15,'" ').concat(m?'class="hidden"':"",">\n ").concat(Wi(0,3.85,7.3,_,"svg-logo"),"\n </svg>")}function Tr(_){if("plain"===_.buttonType)return Ys(_.buttonStyle,!1);var{width:m,domStr:b}=Ra(_),S=Ks();return'<svg id="svg-text" viewBox="0 0 '.concat(m,' 28.571" aria-hidden="true">\n <defs>\n <style>\n text {\n fill: ').concat("black"===_.buttonStyle?"#FFF":"#000",";\n font-family: ").concat(S?"-apple-system":"apple-pay-btn-".concat(_.locale),";\n font-size: ").concat(_.metadata.s,";\n font-weight: ").concat(_.metadata.w||500,";\n }\n </style>\n </defs>\n <g>\n ").concat(b,"\n </g>\n </svg>\n ").concat(Ys(_.buttonStyle,!0))}var Vr,_,wc={"en-US":{l:{a:[{w:110.86,h:18,t:"Add Money with %@"}],bo:[{w:68.8,h:18,t:"Book with %@"}],bu:[{w:60.39,h:18,t:"Buy with %@"}],ch:[{w:102.89,h:18,t:"Check out with %@"}],ci:[{w:95.58,h:18,t:"Continue with %@"}],co:[{w:105.94,h:18,t:"Contribute with %@"}],d:[{w:83,h:18,t:"Donate with %@"}],o:[{w:72.86,h:18,t:"Order with %@"}],pa:[{w:59,h:18,t:"Pay with %@"}],rl:[{w:80.89,h:18,t:"Reload with %@"}],rn:[{w:65.67,h:18,t:"Rent with %@"}],se:[{w:45.88,h:18,t:"Set up %@"}],sb:[{w:102.14,h:18,t:"Subscribe with %@"}],sp:[{w:88.67,h:18,t:"Support with %@"}],ti:[{w:55.58,h:18,t:"Tip with %@"}],to:[{w:81.66,h:18,t:"Top Up with %@"}]},s:"15px",ls:"0.22px"},"fr-FR":{l:{a:[{w:159.45,h:18,t:"Ajouter de l\u2019argent avec %@"}],bo:[{w:96.92,h:18,t:"R\xe9server avec %@"}],bu:[{w:90.47,h:18,t:"Acheter avec %@"}],ch:[{w:75.22,h:18,t:"Payer avec %@"}],ci:[{w:108.56,h:18,t:"Poursuivre avec %@"}],co:[{w:109.41,h:18,t:"Contribuer avec %@"}],d:[{w:118.92,h:18,t:"Faire un don avec %@"}],o:[{w:120.53,h:18,t:"Commander avec %@"}],pa:[{w:75.22,h:18,t:"Payer avec %@"}],rl:[{w:106.7,h:18,t:"Recharger avec %@"}],rn:[{w:75.95,h:18,t:"Louer avec %@"}],se:[{w:74.19,h:18,t:"Configurer %@"}],sb:[{w:105.61,h:18,t:"S\u2019abonner avec %@"}],sp:[{w:93.98,h:18,t:"Soutenir avec %@"}],ti:[{w:173.25,h:18,t:"Laisser un pourboire avec %@"}],to:[{w:106.7,h:18,t:"Recharger avec %@"}]},s:"15px",ls:"0.22px"},"el-GR":{l:{a:[{w:190.19,h:18,t:"\u03a0\u03c1\u03bf\u03c3\u03b8\u03ae\u03ba\u03b7 \u03c7\u03c1\u03b7\u03bc\u03ac\u03c4\u03c9\u03bd \u03bc\u03ad\u03c3\u03c9 %@"}],bo:[{w:106,h:18,t:"\u039a\u03c1\u03ac\u03c4\u03b7\u03c3\u03b7 \u03bc\u03ad\u03c3\u03c9 %@"}],bu:[{w:87.64,h:18,t:"\u0391\u03b3\u03bf\u03c1\u03ac \u03bc\u03ad\u03c3\u03c9 %@"}],ch:[{w:109.66,h:18,t:"\u03a0\u03bb\u03b7\u03c1\u03c9\u03bc\u03ae \u03bc\u03ad\u03c3\u03c9 %@"}],ci:[{w:95.81,h:18,t:"\u03a3\u03c5\u03bd\u03ad\u03c7\u03b5\u03b9\u03b1 \u03bc\u03b5 \xab"},{w:9.42,h:18,t:"\xbb"}],co:[{w:127.23,h:18,t:"\u03a3\u03c5\u03bd\u03b5\u03b9\u03c3\u03c6\u03bf\u03c1\u03ac \u03bc\u03ad\u03c3\u03c9 %@"}],d:[{w:90.83,h:18,t:"\u0394\u03c9\u03c1\u03b5\u03ac \u03bc\u03ad\u03c3\u03c9 %@"}],o:[{w:127.36,h:18,t:"\u03a0\u03b1\u03c1\u03b1\u03b3\u03b3\u03b5\u03bb\u03af\u03b1 \u03bc\u03ad\u03c3\u03c9 %@"}],pa:[{w:89.17,h:18,t:"\u03a0\u03bb\u03b7\u03c1\u03c9\u03bc\u03ae \u03bc\u03b5 %@"}],rl:[{w:153.41,h:18,t:"\u0395\u03c0\u03b1\u03bd\u03b1\u03c6\u03cc\u03c1\u03c4\u03c9\u03c3\u03b7 \u03bc\u03ad\u03c3\u03c9 %@"}],rn:[{w:113.61,h:18,t:"\u0395\u03bd\u03bf\u03b9\u03ba\u03af\u03b1\u03c3\u03b7 \u03bc\u03ad\u03c3\u03c9 %@"}],se:[{w:92.92,h:18,t:"\u0394\u03b9\u03b1\u03bc\u03cc\u03c1\u03c6\u03c9\u03c3\u03b7 %@"}],sb:[{w:112.38,h:18,t:"\u03a3\u03c5\u03bd\u03b4\u03c1\u03bf\u03bc\u03ae \u03bc\u03ad\u03c3\u03c9 %@"}],sp:[{w:126.31,h:18,t:"\u03a5\u03c0\u03bf\u03c3\u03c4\u03ae\u03c1\u03b9\u03be\u03b7 \u03bc\u03ad\u03c3\u03c9 %@"}],ti:[{w:132.8,h:18,t:"\u03a6\u03b9\u03bb\u03bf\u03b4\u03ce\u03c1\u03b7\u03bc\u03b1 \u03bc\u03ad\u03c3\u03c9 %@"}],to:[{w:116.41,h:18,t:"\u0391\u03bd\u03b1\u03bd\u03ad\u03c9\u03c3\u03b7 \u03bc\u03ad\u03c3\u03c9 %@"}]},s:"15px",ls:"0.22px"},"zh-HK":{l:{a:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u589e\u503c"}],bo:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u8a02\u4f4d"}],bu:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u8cfc\u8cb7"}],ch:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u7d50\u5e33"}],ci:[{w:32.61,h:18,t:"\u4f7f\u7528 "},{w:32.61,h:18,t:" \u7e7c\u7e8c"}],co:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u6350\u8d08"}],d:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u6350\u6b3e"}],o:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u8a02\u8cfc"}],pa:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u4ed8\u6b3e"}],rl:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u589e\u503c"}],rn:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u79df\u501f"}],se:[{w:32.61,h:18,t:"\u8a2d\u5b9a %@"}],sb:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u8a02\u95b2"}],sp:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u652f\u6301"}],ti:[{w:17.81,h:18,t:"\u7528 "},{w:62.2,h:18,t:" \u652f\u4ed8\u8cbc\u58eb"}],to:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u589e\u503c"}]},s:"14.8px"},"zh-CN":{l:{a:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u5145\u503c"}],bo:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u9884\u8ba2"}],bu:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u8d2d\u4e70"}],ch:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u7ed3\u8d26"}],ci:[{w:32.61,h:18,t:"\u901a\u8fc7 "},{w:32.61,h:18,t:" \u7ee7\u7eed"}],co:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u6350\u8d60"}],d:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u6350\u6b3e"}],o:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u8ba2\u8d2d"}],pa:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u652f\u4ed8"}],rl:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u5145\u503c"}],rn:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u79df\u501f"}],se:[{w:32.61,h:18,t:"\u8bbe\u7f6e %@"}],sb:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u8ba2\u9605"}],sp:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u652f\u6301"}],ti:[{w:17.81,h:18,t:"\u7528 "},{w:47.41,h:18,t:" \u4ed8\u5c0f\u8d39"}],to:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u5145\u503c"}]},s:"14.8px"},"pt-BR":{l:{a:[{w:152.69,h:18,t:"Adicione Dinheiro com %@"}],bo:[{w:94.23,h:18,t:"Reservar com %@"}],bu:[{w:93.73,h:18,t:"Comprar com %@"}],ch:[{w:73.58,h:18,t:"Pagar com %@"}],ci:[{w:101.13,h:18,t:"Continuar com %@"}],co:[{w:101.52,h:18,t:"Contribua com %@"}],d:[{w:67.33,h:18,t:"Doar com %@"}],o:[{w:119.66,h:18,t:"Encomendar com %@"}],pa:[{w:73.58,h:18,t:"Pagar com %@"}],rl:[{w:108.69,h:18,t:"Recarregar com %@"}],rn:[{w:78.98,h:18,t:"Alugar com %@"}],se:[{w:74.22,h:18,t:"Configurar %@"}],sb:[{w:85.17,h:18,t:"Assinar com %@"}],sp:[{w:78.98,h:18,t:"Apoiar com %@"}],ti:[{w:108.94,h:18,t:"Dar gorjeta com %@"}],to:[{w:108.69,h:18,t:"Recarregar com %@"}]},s:"15px",ls:"0.22px"},"en-AU":{l:{a:[{w:110.86,h:18,t:"Add Money with %@"}],bo:[{w:68.8,h:18,t:"Book with %@"}],bu:[{w:60.39,h:18,t:"Buy with %@"}],ch:[{w:102.89,h:18,t:"Check out with %@"}],ci:[{w:95.58,h:18,t:"Continue with %@"}],co:[{w:105.94,h:18,t:"Contribute with %@"}],d:[{w:83,h:18,t:"Donate with %@"}],o:[{w:72.86,h:18,t:"Order with %@"}],pa:[{w:59,h:18,t:"Pay with %@"}],rl:[{w:80.89,h:18,t:"Reload with %@"}],rn:[{w:65.67,h:18,t:"Rent with %@"}],se:[{w:45.88,h:18,t:"Set up %@"}],sb:[{w:102.14,h:18,t:"Subscribe with %@"}],sp:[{w:88.67,h:18,t:"Support with %@"}],ti:[{w:55.58,h:18,t:"Tip with %@"}],to:[{w:81.66,h:18,t:"Top Up with %@"}]},s:"15px",ls:"0.22px"},"he-IL":{l:{a:[{w:148.58,h:17.22,t:"\u05dc\u05d4\u05d5\u05e1\u05d9\u05e3 \u05db\u05e1\u05e3 \u05d1\u05d0\u05de\u05e6\u05e2\u05d5\u05ea %@"}],bo:[{w:111.2,h:17.22,t:"\u05d4\u05d6\u05de\u05df/\u05d9 \u05d1\u05d0\u05de\u05e6\u05e2\u05d5\u05ea %@"}],bu:[{w:112.61,h:17,t:"\u05e8\u05db\u05d9\u05e9\u05d4 \u05d1\u05d0\u05de\u05e6\u05e2\u05d5\u05ea %@"}],ch:[{w:68.77,h:17.22,t:"\u05dc\u05e7\u05d5\u05e4\u05d4 \u05e2\u05dd %@"}],ci:[{w:77.39,h:17.22,t:"\u05d4\u05de\u05e9\u05da/\u05d9 \u05e2\u05dd %@"}],co:[{w:69.34,h:17,t:"\u05dc\u05ea\u05e8\u05d5\u05dd \u05e2\u05dd %@"}],d:[{w:70.98,h:17,t:"\u05ea\u05e8\u05d5\u05dd/\u05d9 \u05e2\u05dd %@"}],o:[{w:113.98,h:17.22,t:"\u05dc\u05d4\u05d6\u05de\u05d9\u05df \u05d1\u05d0\u05de\u05e6\u05e2\u05d5\u05ea %@"}],pa:[{w:109.45,h:17,t:"\u05e9\u05dc\u05dd/\u05d9 \u05d1\u05d0\u05de\u05e6\u05e2\u05d5\u05ea %@"}],rl:[{w:63.39,h:17.22,t:"\u05dc\u05d8\u05e2\u05d5\u05df \u05e2\u05dd %@"}],rn:[{w:110.7,h:17,t:"\u05dc\u05e9\u05db\u05d5\u05e8 \u05d1\u05d0\u05de\u05e6\u05e2\u05d5\u05ea %@"}],se:[{w:76.44,h:17,t:"\u05dc\u05d4\u05d2\u05d3\u05d9\u05e8 \u05d0\u05ea %@"}],sb:[{w:108.44,h:17,t:"\u05e8\u05d9\u05e9\u05d5\u05dd \u05db\u05de\u05d9\u05e0\u05d5\u05d9 \u05e2\u05dd %@"}],sp:[{w:112.34,h:17.22,t:"\u05dc\u05ea\u05de\u05d5\u05da \u05d1\u05d0\u05de\u05e6\u05e2\u05d5\u05ea %@"}],ti:[{w:150.63,h:17,t:"\u05dc\u05d4\u05e9\u05d0\u05d9\u05e8 \u05d8\u05d9\u05e4 \u05d1\u05d0\u05de\u05e6\u05e2\u05d5\u05ea %@"}],to:[{w:106,h:17,t:"\u05dc\u05de\u05dc\u05d0 \u05d1\u05d0\u05de\u05e6\u05e2\u05d5\u05ea %@"}]},s:"14px",rtl:!0,w:700},"ar-AB":{l:{a:[{w:99.73,h:15,t:"\u0625\u0636\u0627\u0641\u0629 \u0645\u0627\u0644 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 %@"}],bo:[{w:72.73,h:15,t:"\u062d\u062c\u0632 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 %@"}],bu:[{w:74.05,h:15,t:"\u0634\u0631\u0627\u0621 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 %@"}],ch:[{w:111.41,h:15,t:"\u062f\u0641\u0639 \u0627\u0644\u062d\u0633\u0627\u0628 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 %@"}],ci:[{w:33.95,h:15,t:"\u0645\u062a\u0627\u0628\u0639\u0629 %@"}],co:[{w:51.61,h:15,t:"\u0645\u0633\u0627\u0647\u0645\u0629 \u0628\u0640 %@"}],d:[{w:73.14,h:15,t:"\u062a\u0628\u0631\u0639 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 %@"}],o:[{w:74.09,h:15,t:"\u0637\u0644\u0628 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 %@"}],pa:[{w:69.69,h:15,t:"\u062f\u0641\u0639 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 %@"}],rl:[{w:112.33,h:15,t:"\u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u062a\u0639\u0628\u0626\u0629 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 %@"}],rn:[{w:88.36,h:15,t:"\u0627\u0633\u062a\u0626\u062c\u0627\u0631 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 %@"}],se:[{w:29.02,h:15,t:"\u0625\u0639\u062f\u0627\u062f %@"}],sb:[{w:85.2,h:15,t:"\u0627\u0634\u062a\u0631\u0627\u0643 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 %@"}],sp:[{w:71.73,h:15.08,t:"\u062f\u0639\u0645 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 %@"}],ti:[{w:113.48,h:15,t:"\u062f\u0641\u0639 \u0627\u0644\u0625\u0643\u0631\u0627\u0645\u064a\u0629 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 %@"}],to:[{w:112.78,h:15,t:"\u062a\u0639\u0628\u0626\u0629 \u0627\u0644\u0631\u0635\u064a\u062f \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 %@"}]},s:"12px",rtl:!0,w:700},"da-DK":{l:{a:[{w:113.38,h:18,t:"Tilf\xf8j penge med %@"}],bo:[{w:72.86,h:18,t:"Bestil med %@"}],bu:[{w:62.19,h:18,t:"K\xf8b med %@"}],ch:[{w:69.8,h:18,t:"Betal med %@"}],ci:[{w:88.09,h:18,t:"Forts\xe6t med %@"}],co:[{w:79.16,h:18,t:"Bidrag med %@"}],d:[{w:76.38,h:18,t:"Doner med %@"}],o:[{w:72.86,h:18,t:"Bestil med %@"}],pa:[{w:69.8,h:18,t:"Betal med %@"}],rl:[{w:87.45,h:18,t:"Tank op med %@"}],rn:[{w:55.41,h:18,t:"Lej med %@"}],se:[{w:43.45,h:18,t:"Indstil %@"}],sb:[{w:93.02,h:18,t:"Abonner med %@"}],sp:[{w:63.41,h:18,t:"St\xf8t med %@"}],ti:[{w:143.91,h:18,t:"Giv drikkepenge med %@"}],to:[{w:84.28,h:18,t:"Fyld op med %@"}]},s:"15px",ls:"0.22px"},"es-MX":{l:{a:[{w:129.58,h:18,t:"Agregar dinero con %@"}],bo:[{w:90.03,h:18,t:"Reservar con %@"}],bu:[{w:89.53,h:18,t:"Comprar con %@"}],ch:[{w:69.38,h:18,t:"Pagar con %@"}],ci:[{w:96.92,h:18,t:"Continuar con %@"}],co:[{w:97.92,h:18,t:"Contribuir con %@"}],d:[{w:71.52,h:18,t:"Donar con %@"}],o:[{w:65.34,h:18,t:"Pedir con %@"}],pa:[{w:69.38,h:18,t:"Pagar con %@"}],rl:[{w:91.2,h:18,t:"Recargar con %@"}],rn:[{w:75.05,h:18,t:"Rentar con %@"}],se:[{w:74.22,h:18,t:"Configurar %@"}],sb:[{w:105.81,h:18,t:"Suscribirse con %@"}],sp:[{w:78.77,h:18,t:"Apoyar con %@"}],ti:[{w:108.42,h:18,t:"Dar propina con %@"}],to:[{w:124.44,h:18,t:"Cubrir el resto con %@"}]},s:"15px",ls:"0.22px"},"uk-UA":{l:{a:[{w:121.47,h:18,t:"\u041f\u043e\u043f\u043e\u0432\u043d\u0438\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 %@"}],bo:[{w:113.38,h:18,t:"\u0417\u0430\u043c\u043e\u0432\u0438\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 %@"}],bu:[{w:94.89,h:18,t:"\u041a\u0443\u043f\u0438\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 %@"}],ch:[{w:119.34,h:18,t:"\u041e\u0444\u043e\u0440\u043c\u0438\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 %@"}],ci:[{w:101,h:18,t:"\u041f\u0440\u043e\u0434\u043e\u0432\u0436\u0438\u0442\u0438 \u0437 %@"}],co:[{w:155.2,h:18,t:"\u0417\u0440\u043e\u0431\u0438\u0442\u0438 \u0432\u043d\u0435\u0441\u043e\u043a \u0447\u0435\u0440\u0435\u0437 %@"}],d:[{w:145.48,h:18,t:"\u041f\u043e\u0436\u0435\u0440\u0442\u0432\u0443\u0432\u0430\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 %@"}],o:[{w:113.38,h:18,t:"\u0417\u0430\u043c\u043e\u0432\u0438\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 %@"}],pa:[{w:96.17,h:18,t:"\u041e\u043f\u043b\u0430\u0442\u0430 \u0447\u0435\u0440\u0435\u0437 %@"}],rl:[{w:121.47,h:18,t:"\u041f\u043e\u043f\u043e\u0432\u043d\u0438\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 %@"}],rn:[{w:129.73,h:18,t:"\u041e\u0440\u0435\u043d\u0434\u0443\u0432\u0430\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 %@"}],se:[{w:95.08,h:18,t:"\u041d\u0430\u043b\u0430\u0448\u0442\u0443\u0432\u0430\u0442\u0438 %@"}],sb:[{w:132.28,h:18,t:"\u041f\u0456\u0434\u043f\u0438\u0441\u0430\u0442\u0438\u0441\u044f \u0447\u0435\u0440\u0435\u0437 %@"}],sp:[{w:126.63,h:18,t:"\u041f\u0456\u0434\u0442\u0440\u0438\u043c\u0430\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 %@"}],ti:[{w:161.66,h:18,t:"\u0417\u0430\u043b\u0438\u0448\u0438\u0442\u0438 \u0447\u0430\u0439\u043e\u0432\u0456 \u0447\u0435\u0440\u0435\u0437 %@"}],to:[{w:121.47,h:18,t:"\u041f\u043e\u043f\u043e\u0432\u043d\u0438\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 %@"}]},s:"15px"},"tr-TR":{l:{a:[{w:82.14,h:18,t:"%@ ile Para Ekle"}],bo:[{w:134.94,h:18,t:"%@ ile Rezervasyon Yap"}],bu:[{w:72.36,h:18,t:"%@ ile Sat\u0131n Al"}],ch:[{w:49.59,h:18,t:"%@ ile \xd6de"}],ci:[{w:64.34,h:18,t:"%@ ile s\xfcrd\xfcr"}],co:[{w:113.28,h:18,t:"%@ ile Katk\u0131da Bulun"}],d:[{w:86.64,h:18,t:"%@ ile Ba\u011f\u0131\u015f Yap"}],o:[{w:92.42,h:18,t:"%@ ile Sipari\u015f Ver"}],pa:[{w:49.59,h:18,t:"%@ ile \xd6de"}],rl:[{w:114.63,h:18,t:"%@ ile Yeniden Y\xfckle"}],rn:[{w:59.02,h:18,t:"%@ ile Kirala"}],se:[{w:48.86,h:18,t:"Ayarla: %@"}],sb:[{w:83.16,h:18,t:"%@ ile Abone Ol"}],sp:[{w:86.34,h:18,t:"%@ ile Destek Ol"}],ti:[{w:91.27,h:18,t:"%@ ile Bah\u015fi\u015f Ver"}],to:[{w:66.09,h:18,t:"%@ ile Doldur"}]},s:"15px",ls:"0.22px"},"th-TH":{l:{a:[{w:64.11,h:15,t:"\u0e40\u0e15\u0e34\u0e21\u0e40\u0e07\u0e34\u0e19\u0e14\u0e49\u0e27\u0e22 %@"}],bo:[{w:45.84,h:15,t:"\u0e08\u0e2d\u0e07\u0e14\u0e49\u0e27\u0e22 %@"}],bu:[{w:40.47,h:18.41,t:"\u0e0b\u0e37\u0e49\u0e2d\u0e14\u0e49\u0e27\u0e22 %@"}],ch:[{w:69.86,h:15,t:"\u0e0a\u0e33\u0e23\u0e30\u0e40\u0e07\u0e34\u0e19\u0e14\u0e49\u0e27\u0e22 %@"}],ci:[{w:96.7,h:15,t:"\u0e14\u0e33\u0e40\u0e19\u0e34\u0e19\u0e01\u0e32\u0e23\u0e15\u0e48\u0e2d\u0e14\u0e49\u0e27\u0e22 %@"}],co:[{w:76.97,h:15,t:"\u0e21\u0e35\u0e2a\u0e48\u0e27\u0e19\u0e23\u0e48\u0e27\u0e21\u0e14\u0e49\u0e27\u0e22 %@"}],d:[{w:61.7,h:15,t:"\u0e1a\u0e23\u0e34\u0e08\u0e32\u0e04\u0e14\u0e49\u0e27\u0e22 %@"}],o:[{w:39.22,h:17.08,t:"\u0e2a\u0e31\u0e48\u0e07\u0e14\u0e49\u0e27\u0e22 %@"}],pa:[{w:51.52,h:15,t:"\u0e0a\u0e33\u0e23\u0e30\u0e14\u0e49\u0e27\u0e22 %@"}],rl:[{w:79.27,h:15.05,t:"\u0e42\u0e2b\u0e25\u0e14\u0e43\u0e2b\u0e21\u0e48\u0e14\u0e49\u0e27\u0e22 %@"}],rn:[{w:43.58,h:15,t:"\u0e40\u0e0a\u0e48\u0e32\u0e14\u0e49\u0e27\u0e22 %@"}],se:[{w:31.77,h:17.7,t:"\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32 %@"}],sb:[{w:70.42,h:15,t:"\u0e2a\u0e21\u0e31\u0e04\u0e23\u0e23\u0e31\u0e1a\u0e14\u0e49\u0e27\u0e22 %@"}],sp:[{w:73.39,h:15.64,t:"\u0e2a\u0e19\u0e31\u0e1a\u0e2a\u0e19\u0e38\u0e19\u0e14\u0e49\u0e27\u0e22 %@"}],ti:[{w:57.23,h:15,t:"\u0e43\u0e2b\u0e49\u0e17\u0e34\u0e1b\u0e14\u0e49\u0e27\u0e22 %@"}],to:[{w:45.75,h:15,t:"\u0e40\u0e15\u0e34\u0e21\u0e14\u0e49\u0e27\u0e22 %@"}]},s:"13px"},"ro-RO":{l:{a:[{w:114.67,h:18,t:"Ad\u0103uga\u021bi bani cu %@"}],bo:[{w:84.72,h:18,t:"Rezerva\u021bi cu %@"}],bu:[{w:92.45,h:18,t:"Cump\u0103ra\u021bi cu %@"}],ch:[{w:151.14,h:18,t:"Finaliza\u021bi tranzac\u021bia cu %@"}],ci:[{w:91.88,h:18,t:"Continua\u021bi cu %@"}],co:[{w:92.88,h:18,t:"Contribui\u021bi cu %@"}],d:[{w:66.47,h:18,t:"Dona\u021bi cu %@"}],o:[{w:95.94,h:18,t:"Comanda\u021bi cu %@"}],pa:[{w:60.25,h:18,t:"Pl\u0103ti\u021bi cu %@"}],rl:[{w:97.3,h:18,t:"Re\xeenc\u0103rca\u021bi cu %@"}],rn:[{w:80.72,h:18,t:"\xcenchiria\u021bi cu %@"}],se:[{w:77.58,h:18,t:"Configura\u021bi %@"}],sb:[{w:96.95,h:18,t:"Abona\u021bi\u2011v\u0103 cu %@"}],sp:[{w:92.88,h:18,t:"Contribui\u021bi cu %@"}],ti:[{w:110.34,h:18,t:"Oferi\u021bi bac\u0219i\u0219 cu %@"}],to:[{w:97.3,h:18,t:"Re\xeenc\u0103rca\u021bi cu %@"}]},s:"15px",ls:"0.22px"},"fi-FI":{l:{a:[{w:78.92,h:18,t:"Lis\xe4\xe4 rahaa "},{w:14.75,h:18,t:"lla"}],bo:[{w:74.11,h:18,t:"Tee varaus "},{w:14.75,h:18,t:"lla"}],bu:[{w:34.66,h:18,t:"Osta "},{w:14.75,h:18,t:"lla"}],ch:[{w:121.22,h:18,t:"Siirry maksamaan "},{w:14.75,h:18,t:"lla"}],ci:[{w:39.81,h:18,t:"Jatka "},{w:14.75,h:18,t:"lla"}],co:[{w:56.03,h:18,t:"Lahjoita "},{w:14.75,h:18,t:"lla"}],d:[{w:56.03,h:18,t:"Lahjoita "},{w:14.75,h:18,t:"lla"}],o:[{w:34.69,h:18,t:"Tilaa "},{w:14.75,h:18,t:"lla"}],pa:[{w:46.7,h:18,t:"Maksa "},{w:14.75,h:18,t:"lla"}],rl:[{w:40.13,h:18,t:"Lataa "},{w:14.75,h:18,t:"lla"}],rn:[{w:57.97,h:18,t:"Vuokraa "},{w:14.75,h:18,t:"lla"}],se:[{w:27.25,h:18,t:"Ota "},{w:61.7,h:18,t:" k\xe4ytt\xf6\xf6n"}],sb:[{w:34.69,h:18,t:"Tilaa "},{w:14.75,h:18,t:"lla"}],sp:[{w:27.2,h:18,t:"Tue "},{w:14.75,h:18,t:"lla"}],ti:[{w:70.44,h:18,t:"Anna tippi "},{w:14.75,h:18,t:"lla"}],to:[{w:68.19,h:18,t:"T\xe4ydenn\xe4 "},{w:14.75,h:18,t:"lla"}]},s:"15px",ls:"0.22px"},"pl-PL":{l:{a:[{w:91.52,h:18,t:"Dodaj \u015brodki ("},{w:5.16,h:18,t:")"}],bo:[{w:146.19,h:18,t:"Zarezerwuj, u\u017cywaj\u0105c %@"}],bu:[{w:98.39,h:18,t:"Kup, u\u017cywaj\u0105c %@"}],ch:[{w:175.7,h:18,t:"Sfinalizuj zakup, u\u017cywaj\u0105c %@"}],ci:[{w:80.53,h:18,t:"Kontynuuj - %@"}],co:[{w:92.56,h:18,t:"Wnie\u015b wk\u0142ad ("},{w:5.16,h:18,t:")"}],d:[{w:165.52,h:18,t:"Przeka\u017c datek, u\u017cywaj\u0105c %@"}],o:[{w:58.28,h:18,t:"Zam\xf3w ("},{w:5.16,h:18,t:")"}],pa:[{w:117.69,h:18,t:"Zap\u0142a\u0107, u\u017cywaj\u0105c %@"}],rl:[{w:114.61,h:18,t:"Uzupe\u0142nij \u015brodki ("},{w:5.16,h:18,t:")"}],rn:[{w:77.73,h:18,t:"Wypo\u017cycz ("},{w:5.16,h:18,t:")"}],se:[{w:79.19,h:18,t:"Skonfiguruj %@"}],sb:[{w:147.33,h:18,t:"Subskrybuj, u\u017cywaj\u0105c %@"}],sp:[{w:70.06,h:18,t:"Wesprzyj ("},{w:5.16,h:18,t:")"}],ti:[{w:89.44,h:18,t:"Daj napiwek ("},{w:5.16,h:18,t:")"}],to:[{w:59.44,h:18,t:"Do\u0142aduj ("},{w:5.16,h:18,t:")"}]},s:"15px",ls:"0.22px"},"zh-TW":{l:{a:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u5132\u503c"}],bo:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u9810\u7d04"}],bu:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u8cfc\u8cb7"}],ch:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u7d50\u5e33"}],ci:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u7e7c\u7e8c"}],co:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u6350\u52a9"}],d:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u6350\u6b3e"}],o:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u8a02\u8cfc"}],pa:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u4ed8\u6b3e"}],rl:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u5145\u503c"}],rn:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u79df\u501f"}],se:[{w:32.61,h:18,t:"\u8a2d\u5b9a %@"}],sb:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u8a02\u95b1"}],sp:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u652f\u63f4"}],ti:[{w:17.81,h:18,t:"\u7528 "},{w:62.2,h:18,t:" \u652f\u4ed8\u5c0f\u8cbb"}],to:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u52a0\u503c"}]},s:"14.8px"},"fr-CA":{l:{a:[{w:154.91,h:18,t:"Ajouter des fonds avec %@"}],bo:[{w:96.92,h:18,t:"R\xe9server avec %@"}],bu:[{w:90.47,h:18,t:"Acheter avec %@"}],ch:[{w:75.22,h:18,t:"Payer avec %@"}],ci:[{w:108.56,h:18,t:"Poursuivre avec %@"}],co:[{w:109.41,h:18,t:"Contribuer avec %@"}],d:[{w:118.92,h:18,t:"Faire un don avec %@"}],o:[{w:120.53,h:18,t:"Commander avec %@"}],pa:[{w:75.22,h:18,t:"Payer avec %@"}],rl:[{w:106.7,h:18,t:"Recharger avec %@"}],rn:[{w:75.95,h:18,t:"Louer avec %@"}],se:[{w:74.19,h:18,t:"Configurer %@"}],sb:[{w:105.61,h:18,t:"S\u2019abonner avec %@"}],sp:[{w:93.98,h:18,t:"Soutenir avec %@"}],ti:[{w:174.38,h:18,t:"Donner un pourboire avec %@"}],to:[{w:106.7,h:18,t:"Recharger avec %@"}]},s:"15px",ls:"0.22px"},"en-GB":{l:{a:[{w:110.86,h:18,t:"Add Money with %@"}],bo:[{w:68.8,h:18,t:"Book with %@"}],bu:[{w:60.39,h:18,t:"Buy with %@"}],ch:[{w:102.89,h:18,t:"Check out with %@"}],ci:[{w:95.58,h:18,t:"Continue with %@"}],co:[{w:105.94,h:18,t:"Contribute with %@"}],d:[{w:83,h:18,t:"Donate with %@"}],o:[{w:72.86,h:18,t:"Order with %@"}],pa:[{w:59,h:18,t:"Pay with %@"}],rl:[{w:80.89,h:18,t:"Reload with %@"}],rn:[{w:65.67,h:18,t:"Rent with %@"}],se:[{w:45.88,h:18,t:"Set up %@"}],sb:[{w:102.14,h:18,t:"Subscribe with %@"}],sp:[{w:88.67,h:18,t:"Support with %@"}],ti:[{w:55.58,h:18,t:"Tip with %@"}],to:[{w:81.66,h:18,t:"Top Up with %@"}]},s:"15px",ls:"0.22px"},"es-ES":{l:{a:[{w:120.05,h:18,t:"A\xf1adir dinero con %@"}],bo:[{w:90.03,h:18,t:"Reservar con %@"}],bu:[{w:89.53,h:18,t:"Comprar con %@"}],ch:[{w:69.38,h:18,t:"Pagar con %@"}],ci:[{w:96.92,h:18,t:"Continuar con %@"}],co:[{w:97.92,h:18,t:"Contribuir con %@"}],d:[{w:71.52,h:18,t:"Donar con %@"}],o:[{w:65.34,h:18,t:"Pedir con %@"}],pa:[{w:69.38,h:18,t:"Pagar con %@"}],rl:[{w:91.2,h:18,t:"Recargar con %@"}],rn:[{w:81.73,h:18,t:"Alquilar con %@"}],se:[{w:74.22,h:18,t:"Configurar %@"}],sb:[{w:105.81,h:18,t:"Suscribirse con %@"}],sp:[{w:97.92,h:18,t:"Contribuir con %@"}],ti:[{w:108.42,h:18,t:"Dar propina con %@"}],to:[{w:91.2,h:18,t:"Recargar con %@"}]},s:"15px",ls:"0.22px"},"de-DE":{l:{a:[{w:58.7,h:18,t:"Geld mit "},{w:77.88,h:18,t:" hinzuf\xfcgen"}],bo:[{w:24.41,h:18,t:"Mit "},{w:53.23,h:18,t:" buchen"}],bu:[{w:24.41,h:18,t:"Mit "},{w:48.45,h:18,t:" kaufen"}],ch:[{w:24.41,h:18,t:"Mit "},{w:63.94,h:18,t:" bezahlen"}],ci:[{w:70.61,h:18,t:"Weiter mit %@"}],co:[{w:24.41,h:18,t:"Mit "},{w:66.64,h:18,t:" beitragen"}],d:[{w:24.41,h:18,t:"Mit "},{w:61,h:18,t:" spenden"}],o:[{w:24.41,h:18,t:"Mit "},{w:63.91,h:18,t:" bestellen"}],pa:[{w:24.41,h:18,t:"Mit "},{w:63.94,h:18,t:" bezahlen"}],rl:[{w:24.41,h:18,t:"Mit "},{w:86.28,h:18,t:" erneut laden"}],rn:[{w:24.41,h:18,t:"Mit "},{w:43.22,h:18,t:" leihen"}],se:[{w:69.55,h:18,t:"%@ einrichten"}],sb:[{w:24.41,h:18,t:"Mit "},{w:77.94,h:18,t:" abonnieren"}],sp:[{w:24.41,h:18,t:"Mit "},{w:87.59,h:18,t:" unterst\xfctzen"}],ti:[{w:64.16,h:18,t:"%@ Trinkgeld"}],to:[{w:24.41,h:18,t:"Mit "},{w:61.42,h:18,t:" auff\xfcllen"}]},s:"15px",ls:"0.22px"},"nb-NO":{l:{a:[{w:135.02,h:18,t:"Legg til penger med %@"}],bo:[{w:76.34,h:18,t:"Bestill med %@"}],bu:[{w:66.05,h:18,t:"Kj\xf8p med %@"}],ch:[{w:69.8,h:18,t:"Betal med %@"}],ci:[{w:62.28,h:18,t:"Fortsett i %@"}],co:[{w:70.47,h:18,t:"Bidra med %@"}],d:[{w:76.38,h:18,t:"Doner med %@"}],o:[{w:76.34,h:18,t:"Bestill med %@"}],pa:[{w:69.8,h:18,t:"Betal med %@"}],rl:[{w:78.59,h:18,t:"Fyll p\xe5 med %@"}],rn:[{w:55.41,h:18,t:"Lei med %@"}],se:[{w:72.77,h:18,t:"Konfigurer %@"}],sb:[{w:93.02,h:18,t:"Abonner med %@"}],sp:[{w:68.44,h:18,t:"St\xf8tt med %@"}],ti:[{w:85.83,h:18,t:"Gi driks med %@"}],to:[{w:78.59,h:18,t:"Fyll p\xe5 med %@"}]},s:"15px",ls:"0.22px"},"ca-ES":{l:{a:[{w:120.41,h:18,t:"Afegir diners amb %@"}],bo:[{w:94.61,h:18,t:"Reservar amb %@"}],bu:[{w:94.11,h:18,t:"Comprar amb %@"}],ch:[{w:73.97,h:18,t:"Pagar amb %@"}],ci:[{w:96.38,h:18,t:"Continua amb %@"}],co:[{w:102.52,h:18,t:"Contribuir amb %@"}],d:[{w:141.59,h:18,t:"Fer una donaci\xf3 amb %@"}],o:[{w:96.41,h:18,t:"Demanar amb %@"}],pa:[{w:73.97,h:18,t:"Pagar amb %@"}],rl:[{w:109.06,h:18,t:"Recarregar amb %@"}],rn:[{w:77.56,h:18,t:"Llogar amb %@"}],se:[{w:74.22,h:18,t:"Configurar %@"}],sb:[{w:117.7,h:18,t:"Subscriure\u2019s amb %@"}],sp:[{w:129.63,h:18,t:"Compatibilitat amb %@"}],ti:[{w:132.08,h:18,t:"Deixar propina amb %@"}],to:[{w:109.06,h:18,t:"Recarregar amb %@"}]},s:"15px",ls:"0.22px"},"ja-JP":{l:{a:[{w:75,h:18,t:"%@\u3067\u30c1\u30e3\u30fc\u30b8"}],bo:[{w:45,h:18,t:"%@\u3067\u4e88\u7d04"}],bu:[{w:45,h:18,t:"%@\u3067\u8cfc\u5165"}],ch:[{w:90,h:18,t:"%@\u3067\u8cfc\u5165\u306b\u9032\u3080"}],ci:[{w:60,h:18,t:"%@\u3067\u7d9a\u3051\u308b"}],co:[{w:45,h:18,t:"%@\u3067\u732e\u91d1"}],d:[{w:45,h:18,t:"%@\u3067\u5bc4\u4ed8"}],o:[{w:45,h:18,t:"%@\u3067\u6ce8\u6587"}],pa:[{w:60,h:18,t:"%@\u3067\u652f\u6255\u3046"}],rl:[{w:75,h:18,t:"%@\u3067\u30c1\u30e3\u30fc\u30b8"}],rn:[{w:75,h:18,t:"%@\u3067\u30ec\u30f3\u30bf\u30eb"}],se:[{w:45,h:18,t:"%@\u3092\u8a2d\u5b9a"}],sb:[{w:150,h:18,t:"%@\u3067\u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3"}],sp:[{w:45,h:18,t:"%@\u3067\u652f\u63f4"}],ti:[{w:60,h:18,t:"%@\u3067\u30c1\u30c3\u30d7"}],to:[{w:75,h:18,t:"%@\u3067\u30c1\u30e3\u30fc\u30b8"}]},s:"15px",w:600},"vi-VN":{l:{a:[{w:95.7,h:18,t:"N\u1ea1p ti\u1ec1n b\u1eb1ng %@"}],bo:[{w:91.86,h:18,t:"\u0110\u1eb7t ch\u1ed7 b\u1eb1ng %@"}],bu:[{w:69.39,h:18,t:"Mua b\u1eb1ng %@"}],ch:[{w:115.56,h:18,t:"Thanh to\xe1n b\u1eb1ng %@"}],ci:[{w:93.8,h:18,t:"Ti\u1ebfp t\u1ee5c b\u1eb1ng %@"}],co:[{w:105.2,h:18,t:"\u0110\xf3ng g\xf3p b\u1eb1ng %@"}],d:[{w:113.02,h:18,t:"Quy\xean g\xf3p b\u1eb1ng %@"}],o:[{w:100.55,h:18,t:"\u0110\u1eb7t h\xe0ng b\u1eb1ng %@"}],pa:[{w:115.56,h:18,t:"Thanh to\xe1n b\u1eb1ng %@"}],rl:[{w:85.63,h:18,t:"N\u1ea1p l\u1ea1i b\u1eb1ng %@"}],rn:[{w:74.27,h:18,t:"Thu\xea b\u1eb1ng %@"}],se:[{w:60.72,h:18,t:"Thi\u1ebft l\u1eadp %@"}],sb:[{w:94.59,h:18,t:"\u0110\u0103ng k\xfd b\u1eb1ng %@"}],sp:[{w:81.38,h:18,t:"H\u1ed7 tr\u1ee3 b\u1eb1ng %@"}],ti:[{w:61,h:18,t:"Tip b\u1eb1ng %@"}],to:[{w:95.7,h:18,t:"N\u1ea1p ti\u1ec1n b\u1eb1ng %@"}]},s:"15px",ls:"0.22px"},"nl-NL":{l:{a:[{w:123.2,h:18,t:"Voeg geld toe met %@"}],bo:[{w:99.25,h:18,t:"Reserveer met %@"}],bu:[{w:66.8,h:18,t:"Koop met %@"}],ch:[{w:74.06,h:18,t:"Betaal met %@"}],ci:[{w:96.69,h:18,t:"Ga verder met %@"}],co:[{w:144.58,h:18,t:"Doe een bijdrage met %@"}],d:[{w:80.8,h:18,t:"Doneer met %@"}],o:[{w:73.63,h:18,t:"Bestel met %@"}],pa:[{w:74.06,h:18,t:"Betaal met %@"}],rl:[{w:125.09,h:18,t:"Laad opnieuw met %@"}],rn:[{w:64.84,h:18,t:"Huur met %@"}],se:[{w:82.33,h:18,t:"Configureer %@"}],sb:[{w:112.31,h:18,t:"Abonneer je met %@"}],sp:[{w:71.16,h:18,t:"Steun met %@"}],ti:[{w:92.61,h:18,t:"Geef fooi met %@"}],to:[{w:88.31,h:18,t:"Verhoog met %@"}]},s:"15px",ls:"0.22px"},"cs-CZ":{l:{a:[{w:114.92,h:18,t:"P\u0159idat hotovost s %@"}],bo:[{w:100.98,h:18,t:"Zarezervovat s %@"}],bu:[{w:56.98,h:18,t:"Koupit s %@"}],ch:[{w:65.02,h:18,t:"Zaplatit s %@"}],ci:[{w:88.44,h:18,t:"Pokra\u010dovat s %@"}],co:[{w:60.81,h:18,t:"P\u0159isp\u011bt s %@"}],d:[{w:65.84,h:18,t:"Darovat s %@"}],o:[{w:75.61,h:18,t:"Objednat s %@"}],pa:[{w:65.02,h:18,t:"Zaplatit s %@"}],rl:[{w:49.97,h:18,t:"Dob\xedt s %@"}],rn:[{w:68.38,h:18,t:"Vyp\u016fj\u010dit s %@"}],se:[{w:58.19,h:18,t:"Nastavit %@"}],sb:[{w:78.28,h:18,t:"P\u0159edplatit s %@"}],sp:[{w:70.45,h:18,t:"Podpo\u0159it s %@"}],ti:[{w:103.66,h:18,t:"D\xe1t spropitn\xe9 s %@"}],to:[{w:61.77,h:18,t:"Doplnit s %@"}]},s:"15px",ls:"0.22px"},"sv-SE":{l:{a:[{w:138.39,h:18,t:"L\xe4gg till pengar med %@"}],bo:[{w:69.44,h:18,t:"Boka med %@"}],bu:[{w:62.11,h:18,t:"K\xf6p med %@"}],ch:[{w:77.78,h:18,t:"Betala med %@"}],ci:[{w:88.16,h:18,t:"Forts\xe4tt med %@"}],co:[{w:70.47,h:18,t:"Bidra med %@"}],d:[{w:84.2,h:18,t:"Donera med %@"}],o:[{w:80.8,h:18,t:"Best\xe4ll med %@"}],pa:[{w:77.78,h:18,t:"Betala med %@"}],rl:[{w:78.59,h:18,t:"Fyll p\xe5 med %@"}],rn:[{w:59.63,h:18,t:"Hyr med %@"}],se:[{w:47.42,h:18,t:"St\xe4ll in %@"}],sb:[{w:121.25,h:18,t:"Prenumerera med %@"}],sp:[{w:67.13,h:18,t:"St\xf6d med %@"}],ti:[{w:98.45,h:18,t:"Ge dricks med %@"}],to:[{w:78.59,h:18,t:"Fyll p\xe5 med %@"}]},s:"15px",ls:"0.22px"},"it-IT":{l:{a:[{w:118.47,h:18,t:"Versa denaro con %@"}],bo:[{w:82.81,h:18,t:"Prenota con %@"}],bu:[{w:89.77,h:18,t:"Acquista con %@"}],ch:[{w:64.23,h:18,t:"Paga con %@"}],ci:[{w:91.78,h:18,t:"Continua con %@"}],co:[{w:111.69,h:18,t:"Contribuisci con %@"}],d:[{w:150.94,h:18,t:"Fai una donazione con %@"}],o:[{w:75.78,h:18,t:"Ordina con %@"}],pa:[{w:64.23,h:18,t:"Paga con %@"}],rl:[{w:84.5,h:18,t:"Ricarica con %@"}],rn:[{w:90.75,h:18,t:"Noleggia con %@"}],se:[{w:69.08,h:18,t:"Configura %@"}],sb:[{w:91.91,h:18,t:"Abbonati con %@"}],sp:[{w:84.77,h:18,t:"Sostieni con %@"}],ti:[{w:153.83,h:18,t:"Lascia una mancia con %@"}],to:[{w:84.5,h:18,t:"Ricarica con %@"}]},s:"15px",ls:"0.22px"},"hr-HR":{l:{a:[{w:145.14,h:18,t:"Dodaj novac koriste\u0107i %@"}],bo:[{w:128.28,h:18,t:"Rezerviraj koriste\u0107i %@"}],bu:[{w:92.84,h:18,t:"Kupi koriste\u0107i %@"}],ch:[{w:114.06,h:18,t:"Naplati koriste\u0107i: %@"}],ci:[{w:63.89,h:18,t:"Nastavi s %@"}],co:[{w:126.33,h:18,t:"Doprinesi koriste\u0107i %@"}],d:[{w:109.88,h:18,t:"Doniraj koriste\u0107i %@"}],o:[{w:106.19,h:18,t:"Naru\u010di koriste\u0107i %@"}],pa:[{w:91.72,h:18,t:"Plati koriste\u0107i %@"}],rl:[{w:110.16,h:18,t:"Napuni koriste\u0107i %@"}],rn:[{w:109.28,h:18,t:"Unajmi koriste\u0107i %@"}],se:[{w:48.05,h:18,t:"Podesi %@"}],sb:[{w:137.25,h:18,t:"Pretplati se koriste\u0107i %@"}],sp:[{w:104.63,h:18,t:"Podr\u017ei koriste\u0107i %@"}],ti:[{w:173.84,h:18,t:"Ostavi napojnicu koriste\u0107i %@"}],to:[{w:127.06,h:18,t:"Nadoplati koriste\u0107i %@"}]},s:"15px",ls:"0.22px"},"id-ID":{l:{a:[{w:146.39,h:18,t:"Tambah uang dengan %@"}],bo:[{w:97.41,h:18,t:"Pesan dengan %@"}],bu:[{w:81.23,h:18,t:"Beli dengan %@"}],ch:[{w:138.91,h:18,t:"Lanjut bayar dengan %@"}],ci:[{w:122.27,h:18,t:"Lanjutkan dengan %@"}],co:[{w:145.36,h:18,t:"Berkontribusi dengan %@"}],d:[{w:102.89,h:18,t:"Donasi dengan %@"}],o:[{w:94.8,h:18,t:"Order dengan %@"}],pa:[{w:94.91,h:18,t:"Bayar dengan %@"}],rl:[{w:113.94,h:18,t:"Isi Ulang dengan %@"}],rn:[{w:93.31,h:18,t:"Sewa dengan %@"}],se:[{w:31.2,h:18,t:"Atur %@"}],sb:[{w:149.42,h:18,t:"Berlangganan dengan %@"}],sp:[{w:108.81,h:18,t:"Dukung dengan %@"}],ti:[{w:103.34,h:18,t:"Beri tip dengan %@"}],to:[{w:147.81,h:18,t:"Tambah Dana dengan %@"}]},s:"15px",ls:"0.22px"},"hu-HU":{l:{a:[{w:160.58,h:18,t:"P\xe9nz hozz\xe1ad\xe1sa ezzel: %@"}],bo:[{w:113.28,h:18,t:"Lefoglal\xe1s ezzel: %@"}],bu:[{w:129.64,h:18,t:"Megv\xe1s\xe1rl\xe1s ezzel: %@"}],ch:[{w:116.84,h:18,t:"Kassz\xe1hoz ezzel: %@"}],ci:[{w:105.84,h:18,t:"Folytat\xe1s ezzel: %@"}],co:[{w:130.72,h:18,t:"Hozz\xe1j\xe1rul\xe1s ezzel: %@"}],d:[{w:139.45,h:18,t:"Adom\xe1nyoz\xe1s ezzel: %@"}],o:[{w:131.88,h:18,t:"Megrendel\xe9s ezzel: %@"}],pa:[{w:92.38,h:18,t:"Fizet\xe9s ezzel: %@"}],rl:[{w:109.23,h:18,t:"\xdajrat\xf6lt\xe9s ezzel: %@"}],rn:[{w:120.95,h:18,t:"K\xf6lcs\xf6nz\xe9s ezzel: %@"}],se:[{w:66.75,h:18,t:"%@ be\xe1ll\xedt\xe1sa"}],sb:[{w:109.69,h:18,t:"El\u0151fizet\xe9s ezzel: %@"}],sp:[{w:118.05,h:18,t:"T\xe1mogat\xe1s ezzel: %@"}],ti:[{w:108.28,h:18,t:"Borraval\xf3 ezzel: %@"}],to:[{w:101.67,h:18,t:"Felt\xf6lt\xe9s ezzel: %@"}]},s:"15px",ls:"0.22px"},"ru-RU":{l:{a:[{w:134.39,h:18,t:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0434\u0435\u043d\u044c\u0433\u0438 \u0441 %@"}],bo:[{w:77.81,h:18,t:"\u0417\u0430\u043a\u0430\u0437\u0430\u0442\u044c \u0441 %@"}],bu:[{w:63.44,h:18,t:"\u041a\u0443\u043f\u0438\u0442\u044c \u0441 %@"}],ch:[{w:81.38,h:18,t:"\u041e\u043f\u043b\u0430\u0442\u0438\u0442\u044c \u0441 %@"}],ci:[{w:103.5,h:18,t:"\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c \u0441 %@"}],co:[{w:89.8,h:18,t:"\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0441 %@"}],d:[{w:116.05,h:18,t:"\u041f\u043e\u0436\u0435\u0440\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0441 %@"}],o:[{w:77.81,h:18,t:"\u0417\u0430\u043a\u0430\u0437\u0430\u0442\u044c \u0441 %@"}],pa:[{w:81.38,h:18,t:"\u041e\u043f\u043b\u0430\u0442\u0438\u0442\u044c \u0441 %@"}],rl:[{w:90.94,h:18,t:"\u041f\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0441 %@"}],rn:[{w:98.55,h:18,t:"\u0410\u0440\u0435\u043d\u0434\u043e\u0432\u0430\u0442\u044c \u0441 %@"}],se:[{w:78.13,h:18,t:"\u041d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c %@"}],sb:[{w:106.73,h:18,t:"\u041f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u0441 %@"}],sp:[{w:103.39,h:18,t:"\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0441 %@"}],ti:[{w:144.09,h:18,t:"\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0447\u0430\u0435\u0432\u044b\u0435 \u0441 %@"}],to:[{w:90.94,h:18,t:"\u041f\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0441 %@"}]},s:"15px",ls:"0.22px"},"ko-KR":{l:{a:[{w:44.6,h:17,t:"%@ \ub85c \ucda9\uc804"}],bo:[{w:44.6,h:17,t:"%@ \ub85c \uc608\uc57d"}],bu:[{w:44.6,h:17,t:"%@ \ub85c \uad6c\uc785"}],ch:[{w:44.6,h:17,t:"%@ \ub85c \uacb0\uc81c"}],ci:[{w:73.04,h:17,t:"%@ \ub85c \uacc4\uc18d \uc9c4\ud589"}],co:[{w:69.16,h:17,t:"%@ \ub85c \ucc38\uc5ec\ud558\uae30"}],d:[{w:69.16,h:17,t:"%@ \ub85c \uae30\ubd80\ud558\uae30"}],o:[{w:44.6,h:17,t:"%@ \ub85c \uc8fc\ubb38"}],pa:[{w:44.6,h:17,t:"%@ \ub85c \uc9c0\ubd88"}],rl:[{w:44.6,h:17,t:"%@ \ub85c \ucda9\uc804"}],rn:[{w:44.6,h:17,t:"%@ \ub85c \ub300\uc5ec"}],se:[{w:28.45,h:17,t:"%@ \uc124\uc815"}],sb:[{w:44.6,h:17,t:"%@ \ub85c \uad6c\ub3c5"}],sp:[{w:69.16,h:17,t:"%@ \ub85c \uc9c0\uc6d0\ud558\uae30"}],ti:[{w:60.76,h:17,t:"%@ \ub85c \ud301 \uc9c0\ubd88"}],to:[{w:104.43,h:17,t:"%@ \ub85c \ucda9\uc804(top-up)"}]},s:"14.2px",w:600,ls:"1px"},"pt-PT":{l:{a:[{w:155.92,h:18,t:"Adicionar dinheiro com %@"}],bo:[{w:94.23,h:18,t:"Reservar com %@"}],bu:[{w:93.73,h:18,t:"Comprar com %@"}],ch:[{w:73.58,h:18,t:"Pagar com %@"}],ci:[{w:101.13,h:18,t:"Continuar com %@"}],co:[{w:102.14,h:18,t:"Contribuir com %@"}],d:[{w:156.5,h:18,t:"Fazer uma doa\xe7\xe3o com %@"}],o:[{w:119.66,h:18,t:"Encomendar com %@"}],pa:[{w:73.58,h:18,t:"Pagar com %@"}],rl:[{w:108.69,h:18,t:"Recarregar com %@"}],rn:[{w:78.98,h:18,t:"Alugar com %@"}],se:[{w:74.22,h:18,t:"Configurar %@"}],sb:[{w:85.17,h:18,t:"Assinar com %@"}],sp:[{w:78.98,h:18,t:"Apoiar com %@"}],ti:[{w:108.94,h:18,t:"Dar gorjeta com %@"}],to:[{w:93.81,h:18,t:"Carregar com %@"}]},s:"15px",ls:"0.22px"},"hi-IN":{l:{a:[{w:49.42,h:14.28,t:"%@ \u0938\u0947 \u0927\u0928 \u091c\u094b\u0921\u093c\u0947\u0902"}],bo:[{w:47.23,h:14.89,t:"%@ \u0938\u0947 \u092c\u0941\u0915 \u0915\u0930\u0947\u0902"}],bu:[{w:38.5,h:14.42,t:"%@ \u0938\u0947 \u0916\u093c\u0930\u0940\u0926\u0947\u0902"}],ch:[{w:96.38,h:14.28,t:"%@ \u0915\u0947 \u0938\u093e\u0925 \u091a\u0947\u0915\u0906\u0909\u091f \u0915\u0930\u0947\u0902"}],ci:[{w:75.66,h:14.42,t:"%@ \u0915\u0947 \u0938\u093e\u0925 \u091c\u093e\u0930\u0940 \u0930\u0916\u0947\u0902"}],co:[{w:65.02,h:14.28,t:"%@ \u0938\u0947 \u092f\u094b\u0917\u0926\u093e\u0928 \u0915\u0930\u0947\u0902"}],d:[{w:38.94,h:14.28,t:"%@ \u0938\u0947 \u0926\u093e\u0928 \u0926\u0947\u0902"}],o:[{w:55.03,h:14.34,t:"%@ \u0938\u0947 \u0911\u0930\u094d\u0921\u0930 \u0915\u0930\u0947\u0902"}],pa:[{w:61.91,h:14.89,t:"%@ \u0938\u0947 \u092d\u0941\u0917\u0924\u093e\u0928 \u0915\u0930\u0947\u0902"}],rl:[{w:58.19,h:14.42,t:"%@ \u0938\u0947 \u0930\u0940\u0932\u094b\u0921 \u0915\u0930\u0947\u0902"}],rn:[{w:67.59,h:14.42,t:"%@ \u0938\u0947 \u0915\u093f\u0930\u093e\u090f \u092a\u0930 \u0932\u0947\u0902"}],se:[{w:50.67,h:14.28,t:"%@ \u0938\u0947\u091f\u0905\u092a \u0915\u0930\u0947\u0902"}],sb:[{w:102.09,h:14.28,t:"%@ \u0915\u0947 \u0938\u093e\u0925 \u0938\u092c\u094d\u0938\u0915\u094d\u0930\u093e\u0907\u092c \u0915\u0930\u0947\u0902"}],sp:[{w:61.06,h:14.34,t:"%@ \u0938\u0947 \u0938\u092e\u0930\u094d\u0925\u0928 \u0915\u0930\u0947\u0902"}],ti:[{w:39.22,h:14.42,t:"%@ \u0938\u0947 \u091f\u093f\u092a \u0926\u0947\u0902"}],to:[{w:65.84,h:14.28,t:"%@ \u0938\u0947 \u091f\u0949\u092a \u0905\u092a \u0915\u0930\u0947\u0902"}]},s:"12px",w:600},"sk-SK":{l:{a:[{w:124.89,h:18,t:"Prida\u0165 peniaze cez %@"}],bo:[{w:104.45,h:18,t:"Rezervova\u0165 cez %@"}],bu:[{w:65.42,h:18,t:"K\xfapi\u0165 cez %@"}],ch:[{w:81.42,h:18,t:"Zaplati\u0165 cez %@"}],ci:[{w:100.61,h:18,t:"Pokra\u010dujte cez %@"}],co:[{w:80.69,h:18,t:"Prispie\u0165 cez %@"}],d:[{w:80.69,h:18,t:"Prispie\u0165 cez %@"}],o:[{w:92.02,h:18,t:"Objedna\u0165 cez %@"}],pa:[{w:81.42,h:18,t:"Zaplati\u0165 cez %@"}],rl:[{w:66.38,h:18,t:"Dobi\u0165 cez %@"}],rn:[{w:79.02,h:18,t:"Po\u017ei\u010da\u0165 cez %@"}],se:[{w:58.52,h:18,t:"Nastavi\u0165 %@"}],sb:[{w:93.55,h:18,t:"Odobera\u0165 cez %@"}],sp:[{w:86.86,h:18,t:"Podpori\u0165 cez %@"}],ti:[{w:119.8,h:18,t:"Da\u0165 sprepitn\xe9 cez %@"}],to:[{w:66.38,h:18,t:"Dobi\u0165 cez %@"}]},s:"15px",ls:"0.22px"},"ms-MY":{l:{a:[{w:151.3,h:18,t:"Tambah Wang dengan %@"}],bo:[{w:109.78,h:18,t:"Tempah dengan %@"}],bu:[{w:81.23,h:18,t:"Beli dengan %@"}],ch:[{w:94.91,h:18,t:"Bayar dengan %@"}],ci:[{w:117.09,h:18,t:"Teruskan dengan %@"}],co:[{w:144.94,h:18,t:"Sumbangkan dengan %@"}],d:[{w:101.03,h:18,t:"Derma dengan %@"}],o:[{w:97.41,h:18,t:"Pesan dengan %@"}],pa:[{w:94.91,h:18,t:"Bayar dengan %@"}],rl:[{w:122.72,h:18,t:"Isi semula dengan %@"}],rn:[{w:93.31,h:18,t:"Sewa dengan %@"}],se:[{w:64.88,h:18,t:"Sediakan %@"}],sb:[{w:114.98,h:18,t:"Langgan dengan %@"}],sp:[{w:107.3,h:18,t:"Sokong dengan %@"}],ti:[{w:127.48,h:18,t:"Berikan tip dengan %@"}],to:[{w:142.14,h:18,t:"Tambah Nilai dengan %@"}]},s:"15px",ls:"0.22px"}},Mr=[],Zi="ResizeObserver loop completed with undelivered notifications.";(_=Vr||(Vr={})).BORDER_BOX="border-box",_.CONTENT_BOX="content-box",_.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box";var $o,Ki,Ir=function(_){return Object.freeze(_)},Ss=function(_,m){this.inlineSize=_,this.blockSize=m,Ir(this)},En=function(){function _(m,b,S,B){return this.x=m,this.y=b,this.width=S,this.height=B,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Ir(this)}return _.prototype.toJSON=function(){var m=this;return{x:m.x,y:m.y,top:m.top,right:m.right,bottom:m.bottom,left:m.left,width:m.width,height:m.height}},_.fromRect=function(m){return new _(m.x,m.y,m.width,m.height)},_}(),Qs=function(_){return _ instanceof SVGElement&&"getBBox"in _},Yi=function(_){if(Qs(_)){var m=_.getBBox();return!m.width&&!m.height}return!(_.offsetWidth||_.offsetHeight||_.getClientRects().length)},Mt=function(_){var m,b;if(_ instanceof Element)return!0;var S=null===(b=null===(m=_)||void 0===m?void 0:m.ownerDocument)||void 0===b?void 0:b.defaultView;return!!(S&&_ instanceof S.Element)},Rt=typeof window<"u"?window:{},Je=new WeakMap,Ci=/auto|scroll/,bc=/^tb|vertical/,pn=/msie|trident/i.test(Rt.navigator&&Rt.navigator.userAgent),Zn=function(_){return parseFloat(_||"0")},Qi=function(_,m,b){return void 0===_&&(_=0),void 0===m&&(m=0),void 0===b&&(b=!1),new Ss((b?m:_)||0,(b?_:m)||0)},La=Ir({devicePixelContentBoxSize:Qi(),borderBoxSize:Qi(),contentBoxSize:Qi(),contentRect:new En(0,0,0,0)}),qn=function(_,m){if(void 0===m&&(m=!1),Je.has(_)&&!m)return Je.get(_);if(Yi(_))return Je.set(_,La),La;var b=getComputedStyle(_),S=Qs(_)&&_.ownerSVGElement&&_.getBBox(),B=!pn&&"border-box"===b.boxSizing,z=bc.test(b.writingMode||""),he=!S&&Ci.test(b.overflowY||""),lt=!S&&Ci.test(b.overflowX||""),Kt=S?0:Zn(b.paddingTop),rr=S?0:Zn(b.paddingRight),si=S?0:Zn(b.paddingBottom),Ms=S?0:Zn(b.paddingLeft),no=S?0:Zn(b.borderTopWidth),ro=S?0:Zn(b.borderRightWidth),ts=S?0:Zn(b.borderBottomWidth),Ua=Ms+rr,Dc=Kt+si,io=(S?0:Zn(b.borderLeftWidth))+ro,so=no+ts,za=lt?_.offsetHeight-so-_.clientHeight:0,Ar=he?_.offsetWidth-io-_.clientWidth:0,qa=B?Ua+io:0,ns=B?Dc+so:0,Is=S?S.width:Zn(b.width)-qa-Ar,rs=S?S.height:Zn(b.height)-ns-za,oo=Is+Ua+Ar+io,ao=rs+Dc+za+so,Ga=Ir({devicePixelContentBoxSize:Qi(Math.round(Is*devicePixelRatio),Math.round(rs*devicePixelRatio),z),borderBoxSize:Qi(oo,ao,z),contentBoxSize:Qi(Is,rs,z),contentRect:new En(Ms,Kt,Is,rs)});return Je.set(_,Ga),Ga},Dn=function(_,m,b){var S=qn(_,b),B=S.borderBoxSize,z=S.contentBoxSize,he=S.devicePixelContentBoxSize;switch(m){case Vr.DEVICE_PIXEL_CONTENT_BOX:return he;case Vr.BORDER_BOX:return B;default:return z}},$r=function(_){var m=qn(_);this.target=_,this.contentRect=m.contentRect,this.borderBoxSize=Ir([m.borderBoxSize]),this.contentBoxSize=Ir([m.contentBoxSize]),this.devicePixelContentBoxSize=Ir([m.devicePixelContentBoxSize])},gn=function(_){if(Yi(_))return 1/0;for(var m=0,b=_.parentNode;b;)m+=1,b=b.parentNode;return m},Cc=function(){var _=1/0,m=[];Mr.forEach(function(B){if(0!==B.activeTargets.length){var z=[];B.activeTargets.forEach(function(he){var lt=new $r(he.target),Kt=gn(he.target);z.push(lt),he.lastReportedSize=Dn(he.target,he.observedBox),Kt<_&&(_=Kt)}),m.push(function(){B.callback.call(B.observer,z,B.observer)}),B.activeTargets.splice(0,B.activeTargets.length)}});for(var b=0,S=m;b<S.length;b++)(0,S[b])();return _},ii=function(_){Mr.forEach(function(m){m.activeTargets.splice(0,m.activeTargets.length),m.skippedTargets.splice(0,m.skippedTargets.length),m.observationTargets.forEach(function(b){b.isActive()&&(gn(b.target)>_?m.activeTargets.push(b):m.skippedTargets.push(b))})})},Xs=[],Xi=0,Bo={attributes:!0,characterData:!0,childList:!0,subtree:!0},Js=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Ji=function(_){return void 0===_&&(_=0),Date.now()+_},ne=!1,eo=new(function(){function _(){var m=this;this.stopped=!0,this.listener=function(){return m.schedule()}}return _.prototype.run=function(m){var b=this;if(void 0===m&&(m=250),!ne){ne=!0;var S,B=Ji(m);S=function(){var z=!1;try{z=function(){var _,m=0;for(ii(m);Mr.some(function(b){return b.activeTargets.length>0});)m=Cc(),ii(m);return Mr.some(function(b){return b.skippedTargets.length>0})&&("function"==typeof ErrorEvent?_=new ErrorEvent("error",{message:Zi}):((_=document.createEvent("Event")).initEvent("error",!1,!1),_.message=Zi),window.dispatchEvent(_)),m>0}()}finally{if(ne=!1,m=B-Ji(),!Xi)return;z?b.run(1e3):m>0?b.run(m):b.start()}},function(){if(!$o){var m=0,b=document.createTextNode("");new MutationObserver(function(){return Xs.splice(0).forEach(function(S){return S()})}).observe(b,{characterData:!0}),$o=function(){b.textContent=""+(m?m--:m++)}}Xs.push(function(){requestAnimationFrame(S)}),$o()}()}},_.prototype.schedule=function(){this.stop(),this.run()},_.prototype.observe=function(){var m=this,b=function(){return m.observer&&m.observer.observe(document.body,Bo)};document.body?b():Rt.addEventListener("DOMContentLoaded",b)},_.prototype.start=function(){var m=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Js.forEach(function(b){return Rt.addEventListener(b,m.listener,!0)}))},_.prototype.stop=function(){var m=this;this.stopped||(this.observer&&this.observer.disconnect(),Js.forEach(function(b){return Rt.removeEventListener(b,m.listener,!0)}),this.stopped=!0)},_}()),$a=function(_){!Xi&&_>0&&eo.start(),!(Xi+=_)&&eo.stop()},jo=function(){function _(m,b){this.target=m,this.observedBox=b||Vr.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return _.prototype.isActive=function(){var m,b=Dn(this.target,this.observedBox,!0);return Qs(m=this.target)||function(S){switch(S.tagName){case"INPUT":if("image"!==S.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(m)||"inline"!==getComputedStyle(m).display||(this.lastReportedSize=b),this.lastReportedSize.inlineSize!==b.inlineSize||this.lastReportedSize.blockSize!==b.blockSize},_}(),Ba=function(_,m){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=_,this.callback=m},to=new WeakMap,Ho=function(_,m){for(var b=0;b<_.length;b+=1)if(_[b].target===m)return b;return-1},Uo=function(){function _(){}return _.connect=function(m,b){var S=new Ba(m,b);to.set(m,S)},_.observe=function(m,b,S){var B=to.get(m),z=0===B.observationTargets.length;Ho(B.observationTargets,b)<0&&(z&&Mr.push(B),B.observationTargets.push(new jo(b,S&&S.box)),$a(1),eo.schedule())},_.unobserve=function(m,b){var S=to.get(m),B=Ho(S.observationTargets,b);B>=0&&(1===S.observationTargets.length&&Mr.splice(Mr.indexOf(S),1),S.observationTargets.splice(B,1),$a(-1))},_.disconnect=function(m){var b=this,S=to.get(m);S.observationTargets.slice().forEach(function(B){return b.unobserve(m,B.target)}),S.activeTargets.splice(0,S.activeTargets.length)},_}(),Ec=function(){function _(m){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof m)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Uo.connect(this,m)}return _.prototype.observe=function(m,b){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Mt(m))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Uo.observe(this,m,b)},_.prototype.unobserve=function(m){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Mt(m))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Uo.unobserve(this,m)},_.prototype.disconnect=function(){Uo.disconnect(this)},_.toString=function(){return"function ResizeObserver () { [polyfill code] }"},_}();Ki=ri(document.documentElement),Ks()||xt(Ki)||Dr(Ki);var ja=Ks(),Nt=class extends HTMLElement{constructor(){super(),this.__registerHost(),Object(K.b)(this),this.logoOnly=!1,this.fontLoading=!ja,this.buttonStyle="black",this.type="buy"}checkStyle(_,m){var b=es(_,m);b!==_&&this.element.setAttribute("buttonstyle",b)}checkType(_,m){var b=Ts(_,m);b!==_&&this.element.setAttribute("type",b),this.metadata&&(this.minButtonWidth=this.getMinButtonWidth(this.metadata))}verifyLocaleAndSwapMetadata(_){this._locale=this.adjustLocaleAndSetLangIfNecessary(_),ja||this.loadFontIfNecessary(this._locale),this.metadata=wc[this._locale],this.minButtonWidth=this.getMinButtonWidth(this.metadata)}componentWillLoad(){var _=this;return Se(function*(){var m=es(_.buttonStyle);m!==_.buttonStyle&&_.element.setAttribute("buttonstyle",m);var b=Ts(_.type);b!==_.type&&_.element.setAttribute("type",b),_.verifyLocaleAndSwapMetadata(_.locale)})()}componentDidRender(){this.validateFontSize(this.container.offsetWidth)}componentDidLoad(){new Ec((_,m)=>{for(var b of _){var{width:S}=b.contentRect;if("plain"===this.type)return;this.validateFontSize(S)}}).observe(this.container),this.element.addEventListener("click",_=>_.stopPropagation())}validateFontSize(_){var m,b,S,B;"plain"!==this.type&&(_<this.minButtonWidth?(null===(m=this.container.querySelector("#svg-text"))||void 0===m||m.classList.add("hidden"),null===(b=this.container.querySelector("#svg-logo"))||void 0===b||b.classList.remove("hidden")):(null===(S=this.container.querySelector("#svg-text"))||void 0===S||S.classList.remove("hidden"),null===(B=this.container.querySelector("#svg-logo"))||void 0===B||B.classList.add("hidden")))}getStyle(_){return":host(apple-pay-button){display:inline-block;width:var(--apple-pay-button-width, auto);"+"min-width:".concat("plain"===_?"100px":"140px",";")+"min-height:30px;"+(sn()?"":"display:none;")+"}"}loadFontIfNecessary(_){try{var m=document.fonts.check("15px apple-pay-btn-".concat(_)),b=xt(_);b||Dr(_),this.fontLoading=!b||!m,this.fontLoading&&document.fonts.ready.then(()=>setTimeout(()=>{this.fontLoading=!1},0))}catch{this.fontLoading=!1}}getMinButtonWidth(_){var z,m=Ts(this.type),{width:b,height:S}="plain"===(z=m)?{width:35,height:15}:{width:Ra({metadata:_,buttonType:z}).width,height:18};return 15*b/S}adjustLocaleAndSetLangIfNecessary(_){var m=function(S){if(S){var B=at(At(S));if(B)return B}}(_);if(m){m!==_&&this.element.setAttribute("locale",m);var b=m.replace("_","-");this.element.setAttribute("lang",b)}else this.element.removeAttribute("locale"),this.element.removeAttribute("lang"),m=ri(this.element);return m}render(){var _=es(this.buttonStyle),m=Ts(this.type);return Object(K.c)(K.a,{"aria-hidden":sn()?void 0:"true"},Object(K.c)("div",{class:"apple-pay-btn-wrapper ".concat(m," ").concat(this._locale),style:{visibility:this.fontLoading?"hidden":"visible"}},Object(K.c)("style",null,this.getStyle(m)),Object(K.c)("button",{"aria-label":Vo(this.metadata,m),class:"apple-pay-btn ".concat(_)},Object(K.c)("span",{ref:b=>this.container=b,innerHTML:Tr({metadata:this.metadata,locale:this._locale,buttonStyle:_,buttonType:m})}))))}static get assetsDirs(){return["assets/1.0.0"]}get element(){return this}static get watchers(){return{buttonStyle:["checkStyle"],type:["checkType"],locale:["verifyLocaleAndSwapMetadata"]}}static get style(){return'.apple-pay-btn-wrapper{width:100%;min-height:30px;height:var(--apple-pay-button-height, 30px)}.apple-pay-btn-wrapper.plain{min-width:100px}.plain .apple-pay-btn{--apple-pay-button-width-default:100px}.apple-pay-btn-wrapper .apple-pay-btn{background-color:black;border:none;color:white;cursor:pointer;font-synthesis:none;-ms-flex-pack:center;justify-content:center;position:relative;margin:0;-webkit-box-sizing:var(--apple-pay-button-box-sizing, content-box);box-sizing:var(--apple-pay-button-box-sizing, content-box);min-height:30px;height:calc(var(--apple-pay-button-height, 30px));min-width:var(--apple-pay-button-width-default, 140px);width:100%;border-radius:var(--apple-pay-button-border-radius, 4px);padding:var(--apple-pay-button-padding, 0);-moz-font-feature-settings:kern;-moz-osx-font-smoothing:"grayscale";-webkit-font-smoothing:antialiased}.apple-pay-btn-wrapper .apple-pay-btn.white,.apple-pay-btn-wrapper .apple-pay-btn.white-outline{background-color:white;color:black}.apple-pay-btn-wrapper .apple-pay-btn.white-outline{border:1px solid black}.apple-pay-btn-wrapper .apple-pay-btn>span{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;height:100%}.apple-pay-btn-wrapper .apple-pay-btn>span>svg{max-width:100%;min-height:24px;min-width:50%;height:100%;-webkit-transform:translateZ(0) scale(1, 1);transform:translateZ(0) scale(1, 1)}.apple-pay-btn-wrapper .apple-pay-btn #svg-text.hidden,.apple-pay-btn-wrapper .apple-pay-btn #svg-logo.hidden{display:none}'}};function es(_,m){var b=["black","white-outline","white"],S=_.trim();return b.includes(S)?S:m&&b.includes(m)?m:"black"}function Ts(_,m){var b=_.trim();return Fo(b)?b:m&&Fo(m)?m:"buy"}typeof customElements<"u"&&[Object(K.d)(Nt,[1,"apple-pay-button",{buttonStyle:[513,"buttonstyle"],type:[1537],locale:[1025],logoOnly:[32],fontLoading:[32]}])].forEach(_=>{customElements.get(_.is)||customElements.define(_.is,_,void 0)})}var yt="https://applepay.cdn-apple.com/jsapi/v1/apple-pay-sdk.js";ue.p=new URL(yt.slice(0,yt.lastIndexOf("/")));var Qe,qe,Ve,se,dn=!0;try{dn=globalThis}catch{dn=!1}window.customElements&&window.fetch&&Symbol("desc").description&&dn?St():(Qe=ue.p+"/polyfills.js",qe=St,Ve=document.body,(se=document.createElement("script")).src=Qe,se.onload=qe,se.onreadystatechange=qe,Ve.appendChild(se))}.call(this,ue(44))},104:function(nn,Oe){function ue(xe){return Promise.resolve().then(function(){var K=new Error("Cannot find module '"+xe+"'");throw K.code="MODULE_NOT_FOUND",K})}ue.keys=function(){return[]},ue.resolve=ue,nn.exports=ue,ue.id=104},14:function(nn,Oe,ue){"use strict";var xe,K,Ae;function Mr(p,y,w,E,M,N,O){try{var I=p[N](O),V=I.value}catch($){return void w($)}I.done?y(V):Promise.resolve(V).then(E,M)}function Zi(p){return function(){var y=this,w=arguments;return new Promise(function(E,M){var N=p.apply(y,w);function O(V){Mr(N,E,M,O,I,"next",V)}function I(V){Mr(N,E,M,O,I,"throw",V)}O(void 0)})}}ue.d(Oe,"a",function(){return ne}),ue.d(Oe,"b",function(){return Kp}),ue.d(Oe,"c",function(){return Js}),ue.d(Oe,"d",function(){return xv});var p,Ki=!1,Ir=!1,Ss=!1,En=!1,Yi=!1,Mt=typeof window<"u"?window:{},Rt=Mt.document||{head:{}},Je={$flags$:0,$resourcesUrl$:"",jmp:p=>p(),raf:p=>requestAnimationFrame(p),ael:(p,y,w,E)=>p.addEventListener(y,w,E),rel:(p,y,w,E)=>p.removeEventListener(y,w,E),ce:(p,y)=>new CustomEvent(p,y)},bc=(()=>{var p=!1;try{Rt.addEventListener("e",null,Object.defineProperty({},"passive",{get(){p=!0}}))}catch{}return p})(),pn=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch{}return!1})(),Zn=(p,y,w,E)=>{w&&w.map(([M,N,O])=>{var I=La(p,M),V=Qi(y,O),$=qn(M);Je.ael(I,N,V,$),(y.$rmListeners$=y.$rmListeners$||[]).push(()=>Je.rel(I,N,V,$))})},Qi=(p,y)=>w=>{try{p.$hostElement$[y](w)}catch(E){oi(E)}},La=(p,y)=>4&y?Rt:8&y?Mt:16&y?Rt.body:p,qn=p=>bc?{passive:!!(1&p),capture:!!(2&p)}:!!(2&p),Dn="http://www.w3.org/1999/xlink",gn=new WeakMap,Xs=(p,y)=>"sc-"+(y&&32&p.$flags$?p.$tagName$+"-"+y:p.$tagName$),Xi={},Bo=p=>"object"==(p=typeof p)||"function"===p,Js=(p,y,...w)=>{var E=null,M=null,N=null,O=!1,I=!1,V=[],$=$e=>{for(var Yt=0;Yt<$e.length;Yt++)E=$e[Yt],Array.isArray(E)?$(E):null!=E&&"boolean"!=typeof E&&((O="function"!=typeof p&&!Bo(E))&&(E=String(E)),O&&I?V[V.length-1].$text$+=E:V.push(O?Ji(null,E):E),I=O)};if($(w),y&&(y.key&&(M=y.key),y.name&&(N=y.name),1)){var me=y.className||y.class;me&&(y.class="object"!=typeof me?me:Object.keys(me).filter($e=>me[$e]).join(" "))}if("function"==typeof p)return p(null===y?{}:y,V,$a);var pe=Ji(p,null);return pe.$attrs$=y,V.length>0&&(pe.$children$=V),pe.$key$=M,pe.$name$=N,pe},Ji=(p,y)=>({$flags$:0,$tag$:p,$text$:y,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),ne={},$a={forEach:(p,y)=>p.map(jo).forEach(y),map:(p,y)=>p.map(jo).map(y).map(Ba)},jo=p=>({vattrs:p.$attrs$,vchildren:p.$children$,vkey:p.$key$,vname:p.$name$,vtag:p.$tag$,vtext:p.$text$}),Ba=p=>{if("function"==typeof p.vtag){var y=Object.assign({},p.vattrs);return p.vkey&&(y.key=p.vkey),p.vname&&(y.name=p.vname),Js(p.vtag,y,...p.vchildren||[])}var w=Ji(p.vtag,p.vtext);return w.$attrs$=p.vattrs,w.$children$=p.vchildren,w.$key$=p.vkey,w.$name$=p.vname,w},Ho=(p,y,w,E,M,N)=>{if(w!==E){var O=Sc(p,y),I=y.toLowerCase();if("class"===y){var V=p.classList,$=Ec(w),me=Ec(E);V.remove(...$.filter(an=>an&&!me.includes(an))),V.add(...me.filter(an=>an&&!$.includes(an)))}else if("style"===y){for(var pe in w)E&&null!=E[pe]||(pe.includes("-")?p.style.removeProperty(pe):p.style[pe]="");for(var $e in E)w&&E[$e]===w[$e]||($e.includes("-")?p.style.setProperty($e,E[$e]):p.style[$e]=E[$e])}else if("key"!==y)if("ref"===y)E&&E(p);else if(p.__lookupSetter__(y)||"o"!==y[0]||"n"!==y[1]){var Yt=Bo(E);if((O||Yt&&null!==E)&&!M)try{if(p.tagName.includes("-"))p[y]=E;else{var Sn=E??"";"list"===y?O=!1:null!=w&&p[y]==Sn||(p[y]=Sn)}}catch{}var on=!1;I!==(I=I.replace(/^xlink\:?/,""))&&(y=I,on=!0),null==E||!1===E?!1===E&&""!==p.getAttribute(y)||(on?p.removeAttributeNS(Dn,y):p.removeAttribute(y)):(!O||4&N||M)&&!Yt&&(E=!0===E?"":E,on?p.setAttributeNS(Dn,y,E):p.setAttribute(y,E))}else y="-"===y[2]?y.slice(3):Sc(Mt,I)?I.slice(2):I[2]+y.slice(3),w&&Je.rel(p,y,w,!1),E&&Je.ael(p,y,E,!1)}},Uo=/\s/,Ec=p=>p?p.split(Uo):[],ja=(p,y,w,E)=>{var M=11===y.$elm$.nodeType&&y.$elm$.host?y.$elm$.host:y.$elm$,N=p&&p.$attrs$||Xi,O=y.$attrs$||Xi;for(E in N)E in O||Ho(M,E,N[E],void 0,w,y.$flags$);for(E in O)Ho(M,E,N[E],O[E],w,y.$flags$)},Nt=(p,y,w,E)=>{var M,N,O,I=y.$children$[w],V=0;if(!Ki&&(Ss=!0,"slot"===I.$tag$&&(xe&&E.classList.add(xe+"-s"),I.$flags$|=I.$children$?2:1)),null!==I.$text$)M=I.$elm$=Rt.createTextNode(I.$text$);else if(1&I.$flags$)M=I.$elm$=Rt.createTextNode("");else{if(!En&&(En="svg"===I.$tag$),M=I.$elm$=Rt.createElementNS(En?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&I.$flags$?"slot-fb":I.$tag$),En&&"foreignObject"===I.$tag$&&(En=!1),ja(null,I,En),null!=xe&&M["s-si"]!==xe&&M.classList.add(M["s-si"]=xe),I.$children$)for(V=0;V<I.$children$.length;++V)(N=Nt(p,I,V,M))&&M.appendChild(N);"svg"===I.$tag$?En=!1:"foreignObject"===M.tagName&&(En=!0)}return M["s-hn"]=Ae,3&I.$flags$&&(M["s-sr"]=!0,M["s-cr"]=K,M["s-sn"]=I.$name$||"",(O=p&&p.$children$&&p.$children$[w])&&O.$tag$===I.$tag$&&p.$elm$&&es(p.$elm$,!1)),M},es=(p,y)=>{Je.$flags$|=1;for(var w=p.childNodes,E=w.length-1;E>=0;E--){var M=w[E];M["s-hn"]!==Ae&&M["s-ol"]&&(b(M).insertBefore(M,m(M)),M["s-ol"].remove(),M["s-ol"]=void 0,Ss=!0),y&&es(M,y)}Je.$flags$&=-2},Ts=(p,y,w,E,M,N)=>{var O,I=p["s-cr"]&&p["s-cr"].parentNode||p;for(I.shadowRoot&&I.tagName===Ae&&(I=I.shadowRoot);M<=N;++M)E[M]&&(O=Nt(null,w,M,p))&&(E[M].$elm$=O,I.insertBefore(O,m(y)))},Ha=(p,y,w,E,M)=>{for(;y<=w;++y)(E=p[y])&&(M=E.$elm$,Kt(E),Ir=!0,M["s-ol"]?M["s-ol"].remove():es(M,!0),M.remove())},_=(p,y)=>p.$tag$===y.$tag$&&("slot"===p.$tag$?p.$name$===y.$name$:p.$key$===y.$key$),m=p=>p&&p["s-ol"]||p,b=p=>(p["s-ol"]?p["s-ol"]:p).parentNode,S=(p,y)=>{var w,E=y.$elm$=p.$elm$,M=p.$children$,N=y.$children$,O=y.$tag$,I=y.$text$;null!==I?(w=E["s-cr"])?w.parentNode.textContent=I:p.$text$!==I&&(E.data=I):(En="svg"===O||"foreignObject"!==O&&En,"slot"===O||ja(p,y,En),null!==M&&null!==N?((V,$,me,pe)=>{for(var $e,Yt,Sn=0,on=0,an=0,Di=0,Kn=$.length-1,Qt=$[0],Br=$[Kn],Si=pe.length-1,hr=pe[0],ai=pe[Si];Sn<=Kn&&on<=Si;)if(null==Qt)Qt=$[++Sn];else if(null==Br)Br=$[--Kn];else if(null==hr)hr=pe[++on];else if(null==ai)ai=pe[--Si];else if(_(Qt,hr))S(Qt,hr),Qt=$[++Sn],hr=pe[++on];else if(_(Br,ai))S(Br,ai),Br=$[--Kn],ai=pe[--Si];else if(_(Qt,ai))"slot"!==Qt.$tag$&&"slot"!==ai.$tag$||es(Qt.$elm$.parentNode,!1),S(Qt,ai),V.insertBefore(Qt.$elm$,Br.$elm$.nextSibling),Qt=$[++Sn],ai=pe[--Si];else if(_(Br,hr))"slot"!==Qt.$tag$&&"slot"!==ai.$tag$||es(Br.$elm$.parentNode,!1),S(Br,hr),V.insertBefore(Br.$elm$,Qt.$elm$),Br=$[--Kn],hr=pe[++on];else{for(an=-1,Di=Sn;Di<=Kn;++Di)if($[Di]&&null!==$[Di].$key$&&$[Di].$key$===hr.$key$){an=Di;break}an>=0?((Yt=$[an]).$tag$!==hr.$tag$?$e=Nt($&&$[on],me,an,V):(S(Yt,hr),$[an]=void 0,$e=Yt.$elm$),hr=pe[++on]):($e=Nt($&&$[on],me,on,V),hr=pe[++on]),$e&&b(Qt.$elm$).insertBefore($e,m(Qt.$elm$))}Sn>Kn?Ts(V,null==pe[Si+1]?null:pe[Si+1].$elm$,me,pe,on,Si):on>Si&&Ha($,Sn,Kn)})(E,M,y,N):null!==N?(null!==p.$text$&&(E.textContent=""),Ts(E,null,y,N,0,N.length-1)):null!==M&&Ha(M,0,M.length-1),En&&"svg"===O&&(En=!1))},B=p=>{var y,w,E,M,N,O,I=p.childNodes;for(w=0,E=I.length;w<E;w++)if(1===(y=I[w]).nodeType){if(y["s-sr"])for(N=y["s-sn"],y.hidden=!1,M=0;M<E;M++)if(O=I[M].nodeType,I[M]["s-hn"]!==y["s-hn"]||""!==N){if(1===O&&N===I[M].getAttribute("slot")){y.hidden=!0;break}}else if(1===O||3===O&&""!==I[M].textContent.trim()){y.hidden=!0;break}B(y)}},z=[],he=p=>{for(var y,w,E,M,N,O,I=0,V=p.childNodes,$=V.length;I<$;I++){if((y=V[I])["s-sr"]&&(w=y["s-cr"])&&w.parentNode)for(M=y["s-sn"],O=(E=w.parentNode.childNodes).length-1;O>=0;O--)(w=E[O])["s-cn"]||w["s-nr"]||w["s-hn"]===y["s-hn"]||(lt(w,M)?(N=z.find(me=>me.$nodeToRelocate$===w),Ir=!0,w["s-sn"]=w["s-sn"]||M,N?N.$slotRefNode$=y:z.push({$slotRefNode$:y,$nodeToRelocate$:w}),w["s-sr"]&&z.map(me=>{lt(me.$nodeToRelocate$,w["s-sn"])&&(N=z.find(pe=>pe.$nodeToRelocate$===w))&&!me.$slotRefNode$&&(me.$slotRefNode$=N.$slotRefNode$)})):z.some(me=>me.$nodeToRelocate$===w)||z.push({$nodeToRelocate$:w}));1===y.nodeType&&he(y)}},lt=(p,y)=>1===p.nodeType?null===p.getAttribute("slot")&&""===y||p.getAttribute("slot")===y:p["s-sn"]===y||""===y,Kt=p=>{p.$attrs$&&p.$attrs$.ref&&p.$attrs$.ref(null),p.$children$&&p.$children$.map(Kt)},rr=(p,y)=>{var w=p.$hostElement$,E=p.$cmpMeta$,M=p.$vnode$||Ji(null,null),N=(p=>p&&p.$tag$===ne)(y)?y:Js(null,null,y);if(Ae=w.tagName,E.$attrsToReflect$&&(N.$attrs$=N.$attrs$||{},E.$attrsToReflect$.map(([Yt,Sn])=>N.$attrs$[Sn]=w[Yt])),N.$tag$=null,N.$flags$|=4,p.$vnode$=N,N.$elm$=M.$elm$=w.shadowRoot||w,xe=w["s-sc"],K=w["s-cr"],Ki=!!(1&E.$flags$),Ir=!1,S(M,N),Je.$flags$|=1,Ss){var O,I,V,$,me,pe;he(N.$elm$);for(var $e=0;$e<z.length;$e++)(I=(O=z[$e]).$nodeToRelocate$)["s-ol"]||((V=Rt.createTextNode(""))["s-nr"]=I,I.parentNode.insertBefore(I["s-ol"]=V,I));for($e=0;$e<z.length;$e++)if(I=(O=z[$e]).$nodeToRelocate$,O.$slotRefNode$){for($=O.$slotRefNode$.parentNode,me=O.$slotRefNode$.nextSibling,V=I["s-ol"];V=V.previousSibling;)if((pe=V["s-nr"])&&pe["s-sn"]===I["s-sn"]&&$===pe.parentNode&&(!(pe=pe.nextSibling)||!pe["s-nr"])){me=pe;break}(!me&&$!==I.parentNode||I.nextSibling!==me)&&I!==me&&(!I["s-hn"]&&I["s-ol"]&&(I["s-hn"]=I["s-ol"].parentNode.nodeName),$.insertBefore(I,me))}else 1===I.nodeType&&(I.hidden=!0)}Ir&&B(N.$elm$),Je.$flags$&=-2,z.length=0},ts=(p,y)=>{p.$flags$|=16;return Cd(()=>Ua(p,y))},Ua=(p,y)=>{var w,E=p.$hostElement$,N=E;return y?(ns(E,"componentWillLoad"),w=Ar(N,"componentWillLoad")):(ns(E,"componentWillUpdate"),w=Ar(N,"componentWillUpdate")),ns(E,"componentWillRender"),w=qa(w,()=>Ar(N,"componentWillRender")),qa(w,()=>Dc(p,N,y))},Dc=(p=Zi(function*(y,w,E){var M=y.$hostElement$;E&&(p=>{var y=p.$cmpMeta$,w=p.$hostElement$,E=y.$flags$,N=((p,y,w)=>{var M=Xs(y,w),N=xs.get(M);if(p=11===p.nodeType?p:Rt,N)if("string"==typeof N){var O,I=gn.get(p=p.head||p);I||gn.set(p,I=new Set),I.has(M)||((O=Rt.createElement("style")).innerHTML=N,p.insertBefore(O,p.querySelector("link")),I&&I.add(M))}else!p.adoptedStyleSheets.includes(N)&&(p.adoptedStyleSheets=[...p.adoptedStyleSheets,N]);return M})(w.shadowRoot?w.shadowRoot:w.getRootNode(),y,p.$modeName$);10&E&&(w["s-sc"]=N,w.classList.add(N+"-h"),2&E&&w.classList.add(N+"-s"))})(y);io(y,w,M),so(y)}),function(y,w,E){return p.apply(this,arguments)}),io=(p,y,w)=>{try{y=y.render&&y.render(),p.$flags$&=-17,p.$flags$|=2,rr(p,y)}catch(I){oi(I,p.$hostElement$)}return null},so=p=>{var w=p.$hostElement$,M=w;Ar(M,"componentDidRender"),ns(w,"componentDidRender"),64&p.$flags$?(Ar(M,"componentDidUpdate"),ns(w,"componentDidUpdate")):(p.$flags$|=64,Ar(M,"componentDidLoad"),ns(w,"componentDidLoad"))},Ar=(p,y,w)=>{if(p&&p[y])try{return p[y](w)}catch(E){oi(E)}},qa=(p,y)=>p&&p.then?p.then(y):y(),ns=(p,y)=>{},md=(p,y,w)=>{if(y.$members$){p.watchers&&(y.$watchers$=p.watchers);var E=Object.entries(y.$members$),M=p.prototype;E.map(([O,[I]])=>{(31&I||32&I)&&Object.defineProperty(M,O,{get(){return V=O,As(this).$instanceValues$.get(V);var V},set(V){((p,y,w,E)=>{var M,N,O=As(p),I=p,V=O.$instanceValues$.get(y),$=O.$flags$,me=I;if(N=E.$members$[y][0],(w=null==(M=w)||Bo(M)?M:4&N?"false"!==M&&(""===M||!!M):2&N?parseFloat(M):1&N?String(M):M)!==V&&(O.$instanceValues$.set(y,w),1)){if(E.$watchers$&&128&$){var pe=E.$watchers$[y];pe&&pe.map($e=>{try{me[$e](w,V,y)}catch(Yt){oi(Yt,I)}})}if(2==(18&$)){if(me.componentShouldUpdate&&!1===me.componentShouldUpdate(w,V,y))return;ts(O,!1)}}})(this,O,V,y)},configurable:!0,enumerable:!0})});var N=new Map;M.attributeChangedCallback=function(O,I,V){Je.jmp(()=>{var $=N.get(O);this[$]=(null!==V||"boolean"!=typeof this[$])&&V})},p.observedAttributes=E.filter(([O,I])=>15&I[0]).map(([O,I])=>{var V=I[1]||O;return N.set(V,O),512&I[0]&&y.$attrsToReflect$.push([O,V]),V})}return p},yd=function(){var p=Zi(function*(y,w,E,M,N){if(!(32&w.$flags$)&&(N=y.constructor,w.$flags$|=160,N.style)){var V=N.style;"string"!=typeof V&&(V=V[w.$modeName$=(p=>wd.map(y=>y(p)).find(y=>!!y))(y)]);var $=Xs(E,w.$modeName$);if(!xs.has($)){((p,y,w)=>{var E=xs.get(p);pn&&w?(E=E||new CSSStyleSheet).replace(y):E=y,xs.set(p,E)})($,V,!!(1&E.$flags$))}}ts(w,!0)});return function(y,w,E,M,N){return p.apply(this,arguments)}}(),xv=(p,y)=>{var w={$flags$:y[0],$tagName$:y[1]};w.$members$=y[2],w.$listeners$=y[3],w.$watchers$=p.$watchers$,w.$attrsToReflect$=[];var E=p.prototype.connectedCallback,M=p.prototype.disconnectedCallback;return Object.assign(p.prototype,{__registerHost(){Wa(this,w)},connectedCallback(){(p=>{if(!(1&Je.$flags$)){var y=As(p),w=y.$cmpMeta$;1&y.$flags$?Zn(p,y,w.$listeners$):(y.$flags$|=1,12&w.$flags$&&(p=>{var y=p["s-cr"]=Rt.createComment("");y["s-cn"]=!0,p.insertBefore(y,p.firstChild)})(p),yd(p,y,w))}})(this),E&&E.call(this)},disconnectedCallback(){(()=>{if(!(1&Je.$flags$)){var y=As(this);y.$rmListeners$&&(y.$rmListeners$.map(E=>E()),y.$rmListeners$=void 0)}})(),M&&M.call(this)}}),p.is=w.$tagName$,md(p,w)},Kp=p=>{p.attachShadow({mode:"open"})},Ei=new WeakMap,As=p=>Ei.get(p),Wa=(p,y)=>{var w={$flags$:0,$hostElement$:p,$cmpMeta$:y,$instanceValues$:new Map};return Zn(p,w,y.$listeners$),Ei.set(p,w)},Sc=(p,y)=>y in p,oi=(p,y)=>(0,console.error)(p,y),xs=new Map,wd=[],qo=[],lo=[],bd=p=>{for(var y=0;y<p.length;y++)try{p[y](performance.now())}catch(w){oi(w)}p.length=0},Mc=()=>{bd(qo),bd(lo),(Yi=qo.length>0)&&Je.raf(Mc)},Cd=(p=>w=>{p.push(w),Yi||(Yi=!0,4&Je.$flags$?(p=>{Promise.resolve(void 0).then(p)})(Mc):Je.raf(Mc))})(lo)},195:function(nn,Oe,ue){"use strict";ue.r(Oe),ue.d(Oe,"scopeCss",function(){return dr});var xe=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",K=new RegExp("(-shadowcsshost"+xe,"gim"),Ae=new RegExp("(-shadowcsscontext"+xe,"gim"),Se=new RegExp("(-shadowcssslotted"+xe,"gim"),Ye=/-shadowcsshost-no-combinator([^\s]*)/,ee=[/::shadow/g,/::content/g],Q=/-shadowcsshost/gim,ae=/:host/gim,St=/::slotted/gim,yt=/:host-context/gim,dn=/\/\*\s*[\s\S]*?\*\//g,Qe=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g,qe=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,Ve=/([{}])/g,se=(de,Ne)=>{var be=Te(de),He=0;return be.escapedString.replace(qe,(...Re)=>{var ke=Re[2],je="",tt=Re[4],_t="";tt&&tt.startsWith("{%BLOCK%")&&(je=be.blocks[He++],tt=tt.substring(8),_t="{");var Ce=Ne({selector:ke,content:je});return"".concat(Re[1]).concat(Ce.selector).concat(Re[3]).concat(_t).concat(Ce.content).concat(tt)})},Te=de=>{for(var Ne=de.split(Ve),be=[],He=[],Re=0,ke=[],je=0;je<Ne.length;je++){var tt=Ne[je];"}"===tt&&Re--,Re>0?ke.push(tt):(ke.length>0&&(He.push(ke.join("")),be.push("%BLOCK%"),ke=[]),be.push(tt)),"{"===tt&&Re++}return ke.length>0&&(He.push(ke.join("")),be.push("%BLOCK%")),{escapedString:be.join(""),blocks:He}},Ge=(de,Ne,be)=>de.replace(Ne,(...He)=>{if(He[2]){for(var Re=He[2].split(","),ke=[],je=0;je<Re.length;je++){var tt=Re[je].trim();if(!tt)break;ke.push(be("-shadowcsshost-no-combinator",tt,He[3]))}return ke.join(",")}return"-shadowcsshost-no-combinator"+He[3]}),It=(de,Ne,be)=>de+Ne.replace("-shadowcsshost","")+be,sn=(de,Ne,be)=>Ne.indexOf("-shadowcsshost")>-1?It(de,Ne,be):de+Ne+be+", "+Ne+" "+de+be,zn=(de,Ne,be,He,Re)=>se(de,ke=>{var Ce,We,Pn,je=ke.selector,tt=ke.content;return"@"!==ke.selector[0]?(Ce=Ne,We=be,Pn=He,je=ke.selector.split(",").map(Wt=>Pn&&Wt.indexOf("."+Pn)>-1?Wt.trim():((de,Ne)=>{return!(be=Ne,be=be.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),new RegExp("^("+be+")([>\\s~+[.,{:][\\s\\S]*)?$","m")).test(de);var be})(Wt,Ce)?((de,Ne,be)=>{for(var He,Re="."+(Ne=Ne.replace(/\[is=([^\]]*)\]/g,(hn,...Xe)=>Xe[0])),ke=hn=>{var Xe=hn.trim();if(!Xe)return"";if(hn.indexOf("-shadowcsshost-no-combinator")>-1)Xe=((Lr,Ht,fn)=>{if(Q.lastIndex=0,Q.test(Lr)){var Ds=".".concat(fn);return Lr.replace(Ye,(nt,Fr)=>Fr.replace(/([^:]*)(:*)(.*)/,(At,Gi,at,ri)=>Gi+Ds+at+ri)).replace(Q,Ds+" ")}return Ht+" "+Lr})(hn,Ne,be);else{var Wn=hn.replace(Q,"");if(Wn.length>0){var Er=Wn.match(/([^:]*)(:*)(.*)/);Er&&(Xe=Er[1]+Re+Er[2]+Er[3])}}return Xe},je=(hn=>{var Xe=[],Wn=0;return{content:(hn=hn.replace(/(\[[^\]]*\])/g,(Er,Lr)=>{var Ht="__ph-".concat(Wn,"__");return Xe.push(Lr),Wn++,Ht})).replace(/(:nth-[-\w]+)(\([^)]+\))/g,(Er,Lr,Ht)=>{var fn="__ph-".concat(Wn,"__");return Xe.push(Ht),Wn++,Lr+fn}),placeholders:Xe}})(de),tt="",_t=0,Ce=/( |>|\+|~(?!=))\s*/g,We=!((de=je.content).indexOf("-shadowcsshost-no-combinator")>-1);null!==(He=Ce.exec(de));){var Pn=He[1],Wt=de.slice(_t,He.index).trim(),On=(We=We||Wt.indexOf("-shadowcsshost-no-combinator")>-1)?ke(Wt):Wt;tt+="".concat(On," ").concat(Pn," "),_t=Ce.lastIndex}var Cn,Zt=de.substring(_t);return tt+=(We=We||Zt.indexOf("-shadowcsshost-no-combinator")>-1)?ke(Zt):Zt,Cn=je.placeholders,tt.replace(/__ph-(\d+)__/g,(hn,Xe)=>Cn[+Xe])})(Wt,Ce,We).trim():Wt.trim()).join(", ")):(ke.selector.startsWith("@media")||ke.selector.startsWith("@supports")||ke.selector.startsWith("@page")||ke.selector.startsWith("@document"))&&(tt=zn(ke.content,Ne,be,He)),{selector:je.replace(/\s{2,}/g," ").trim(),content:tt}}),dr=(de,Ne,be)=>{var He=Ne+"-h",Re=Ne+"-s",ke=de.match(Qe)||[];de=de.replace(dn,"");var je=[];if(be){var tt=Ce=>{var We="/*!@___".concat(je.length,"___*/"),Pn="/*!@".concat(Ce.selector,"*/");return je.push({placeholder:We,comment:Pn}),Ce.selector=We+Ce.selector,Ce};de=se(de,Ce=>"@"!==Ce.selector[0]?tt(Ce):((Ce.selector.startsWith("@media")||Ce.selector.startsWith("@supports")||Ce.selector.startsWith("@page")||Ce.selector.startsWith("@document"))&&(Ce.content=se(Ce.content,tt)),Ce))}var _t=((de,Ne,be,He)=>{var je,ke=((je,tt)=>{var _t="."+tt+" > ",Ce=[];return je=je.replace(Se,(...We)=>{if(We[2]){for(var Pn=We[2].trim(),On=_t+Pn+We[3],Cn="",Zt=We[4]-1;Zt>=0;Zt--){var hn=We[5][Zt];if("}"===hn||","===hn)break;Cn=hn+Cn}var Xe=Cn+On,Wn="".concat(Cn.trimRight()).concat(On.trim());if(Xe.trim()!==Wn.trim()){var Er="".concat(Wn,", ").concat(Xe);Ce.push({orgSelector:Xe,updatedSelector:Er})}return On}return"-shadowcsshost-no-combinator"+We[3]}),{selectors:Ce,cssText:je}})(de=(je=>Ge(je,Ae,sn))((je=de=de.replace(yt,"-shadowcsscontext").replace(ae,"-shadowcsshost").replace(St,"-shadowcssslotted"),de=Ge(je,K,It))),He);return de=(je=>ee.reduce((tt,_t)=>tt.replace(_t," "),je))(de=ke.cssText),Ne&&(de=zn(de,Ne,be,He)),{cssText:(de=(de=de.replace(/-shadowcsshost-no-combinator/g,".".concat(be))).replace(/>\s*\*\s+([^{, ]+)/gm," $1 ")).trim(),slottedSelectors:ke.selectors}})(de,Ne,He,Re);return de=[_t.cssText,...ke].join("\n"),be&&je.forEach(({placeholder:Ce,comment:We})=>{de=de.replace(Ce,We)}),_t.slottedSelectors.forEach(Ce=>{de=de.replace(Ce.orgSelector,Ce.updatedSelector)}),de}},44:function(nn,Oe){var ue;ue=function(){return this}();try{ue=ue||new Function("return this")()}catch{"object"==typeof window&&(ue=window)}nn.exports=ue}})}},nn=>{nn(nn.s=204)}]);
3
+ (self.webpackChunk_motopays_pay_form=self.webpackChunk_motopays_pay_form||[]).push([[792],{204:(nn,Oe,ue)=>{"use strict";function xe(e,n){return Object.is(e,n)}let K=null,Ae=!1,Se=1;const Ye=Symbol("SIGNAL");function ee(e){const n=K;return K=e,n}const vt={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 dn(e){if(Ae)throw new Error("");if(null===K)return;K.consumerOnSignalRead(e);const n=K.nextProducerIndex++;dr(K),n<K.producerNode.length&&K.producerNode[n]!==e&&kn(K)&&zn(K.producerNode[n],K.producerIndexOfThis[n]),K.producerNode[n]!==e&&(K.producerNode[n]=e,K.producerIndexOfThis[n]=kn(K)?bi(e,K,n):0),K.producerLastReadVersion[n]=e.version}function qe(e){if((!kn(e)||e.dirty)&&(e.dirty||e.lastCleanEpoch!==Se)){if(!e.producerMustRecompute(e)&&!sn(e))return e.dirty=!1,void(e.lastCleanEpoch=Se);e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=Se}}function Ve(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 se(){return!1!==K?.consumerAllowSignalWrites}function Te(e){e.dirty=!0,Ve(e),e.consumerMarkedDirty?.(e)}function Ge(e){return e&&(e.nextProducerIndex=0),ee(e)}function It(e,n){if(ee(n),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(kn(e))for(let t=e.nextProducerIndex;t<e.producerNode.length;t++)zn(e.producerNode[t],e.producerIndexOfThis[t]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function sn(e){dr(e);for(let n=0;n<e.producerNode.length;n++){const t=e.producerNode[n],r=e.producerLastReadVersion[n];if(r!==t.version||(qe(t),r!==t.version))return!0}return!1}function bn(e){if(dr(e),kn(e))for(let n=0;n<e.producerNode.length;n++)zn(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 bi(e,n,t){if(de(e),0===e.liveConsumerNode.length&&Ne(e))for(let r=0;r<e.producerNode.length;r++)e.producerIndexOfThis[r]=bi(e.producerNode[r],e,r);return e.liveConsumerIndexOfThis.push(t),e.liveConsumerNode.push(n)-1}function zn(e,n){if(de(e),1===e.liveConsumerNode.length&&Ne(e))for(let r=0;r<e.producerNode.length;r++)zn(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];dr(i),i.producerIndexOfThis[r]=n}}function kn(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function dr(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function de(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Ne(e){return void 0!==e.producerNode}const He=Symbol("UNSET"),Re=Symbol("COMPUTING"),ke=Symbol("ERRORED"),je={...vt,value:He,dirty:!0,error:null,equal:xe,producerMustRecompute:e=>e.value===He||e.value===Re,producerRecomputeValue(e){if(e.value===Re)throw new Error("Detected cycle in computations.");const n=e.value;e.value=Re;const t=Ge(e);let r;try{r=e.computation()}catch(i){r=ke,e.error=i}finally{It(e,t)}n!==He&&n!==ke&&r!==ke&&e.equal(n,r)?e.value=n:(e.value=r,e.version++)}};let _t=function tt(){throw new Error};function Ce(){_t()}let Pn=null;function Kt(e,n){se()||Ce(),e.equal(e.value,n)||(e.value=n,function Er(e){e.version++,function Qe(){Se++}(),Ve(e),Pn?.()}(e))}const Wn={...vt,equal:xe,value:void 0};const Ht=()=>{},fn={...vt,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{null!==e.schedule&&e.schedule(e.ref)},hasRun:!1,cleanupFn:Ht};function nt(e){return"function"==typeof e}function Fr(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 At=Fr(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 Gi(e,n){if(e){const t=e.indexOf(n);0<=t&&e.splice(t,1)}}class lt{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(nt(r))try{r()}catch(s){n=s instanceof At?s.errors:[s]}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const s of i)try{xt(s)}catch(o){n=n??[],o instanceof At?n=[...n,...o.errors]:n.push(o)}}if(n)throw new At(n)}}add(n){var t;if(n&&n!==this)if(this.closed)xt(n);else{if(n instanceof lt){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)&&Gi(t,n)}remove(n){const{_finalizers:t}=this;t&&Gi(t,n),n instanceof lt&&n._removeParent(this)}}lt.EMPTY=(()=>{const e=new lt;return e.closed=!0,e})();const ri=lt.EMPTY;function Ks(e){return e instanceof lt||e&&"closed"in e&&nt(e.remove)&&nt(e.add)&&nt(e.unsubscribe)}function xt(e){nt(e)?e():e.unsubscribe()}const Dr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Tt={setTimeout(e,n,...t){const{delegate:r}=Tt;return r?.setTimeout?r.setTimeout(e,n,...t):setTimeout(e,n,...t)},clearTimeout(e){const{delegate:n}=Tt;return(n?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Ro(e){Tt.setTimeout(()=>{const{onUnhandledError:n}=Dr;if(!n)throw e;n(e)})}function Lo(){}const Fo=Vo("C",void 0,void 0);function Vo(e,n,t){return{kind:e,value:n,error:t}}let Sr=null;function Wi(e){if(Dr.useDeprecatedSynchronousErrorHandling){const n=!Sr;if(n&&(Sr={errorThrown:!1,error:null}),e(),n){const{errorThrown:t,error:r}=Sr;if(Sr=null,t)throw r}}else e()}class Ys extends lt{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,Ks(n)&&n.add(this)):this.destination=Ir}static create(n,t,r){return new Mr(n,t,r)}next(n){this.isStopped?Ki(function Oa(e){return Vo("N",e,void 0)}(n),this):this._next(n)}error(n){this.isStopped?Ki(function _c(e){return Vo("E",void 0,e)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?Ki(Fo,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 Tr=Function.prototype.bind;function Vr(e,n){return Tr.call(e,n)}class wc{constructor(n){this.partialObserver=n}next(n){const{partialObserver:t}=this;if(t.next)try{t.next(n)}catch(r){Zi(r)}}error(n){const{partialObserver:t}=this;if(t.error)try{t.error(n)}catch(r){Zi(r)}else Zi(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(t){Zi(t)}}}class Mr extends Ys{constructor(n,t,r){let i;if(super(),nt(n)||!n)i={next:n??void 0,error:t??void 0,complete:r??void 0};else{let s;this&&Dr.useDeprecatedNextContext?(s=Object.create(n),s.unsubscribe=()=>this.unsubscribe(),i={next:n.next&&Vr(n.next,s),error:n.error&&Vr(n.error,s),complete:n.complete&&Vr(n.complete,s)}):i=n}this.destination=new wc(i)}}function Zi(e){Dr.useDeprecatedSynchronousErrorHandling?function Ra(e){Dr.useDeprecatedSynchronousErrorHandling&&Sr&&(Sr.errorThrown=!0,Sr.error=e)}(e):Ro(e)}function Ki(e,n){const{onStoppedNotification:t}=Dr;t&&Tt.setTimeout(()=>t(e,n))}const Ir={closed:!0,next:Lo,error:function $o(e){throw e},complete:Lo},Ss="function"==typeof Symbol&&Symbol.observable||"@@observable";function En(e){return e}let Mt=(()=>{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 Ci(e){return e&&e instanceof Ys||function Je(e){return e&&nt(e.next)&&nt(e.error)&&nt(e.complete)}(e)&&Ks(e)}(t)?t:new Mr(t,r,i);return Wi(()=>{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=Rt(r))((i,s)=>{const o=new Mr({next:a=>{try{t(a)}catch(l){s(l),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)}[Ss](){return this}pipe(...t){return function Yi(e){return 0===e.length?En:1===e.length?e[0]:function(t){return e.reduce((r,i)=>i(r),t)}}(t)(this)}toPromise(t){return new(t=Rt(t))((r,i)=>{let s;this.subscribe(o=>s=o,o=>i(o),()=>r(s))})}}return e.create=n=>new e(n),e})();function Rt(e){var n;return null!==(n=e??Dr.Promise)&&void 0!==n?n:Promise}const bc=Fr(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let pn=(()=>{class e extends Mt{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const r=new Zn(this,this);return r.operator=t,r}_throwIfClosed(){if(this.closed)throw new bc}next(t){Wi(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(t)}})}error(t){Wi(()=>{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(){Wi(()=>{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?ri:(this.currentObservers=null,s.push(t),new lt(()=>{this.currentObservers=null,Gi(s,t)}))}_checkFinalizedStatuses(t){const{hasError:r,thrownError:i,isStopped:s}=this;r?t.error(i):s&&t.complete()}asObservable(){const t=new Mt;return t.source=this,t}}return e.create=(n,t)=>new Zn(n,t),e})();class Zn extends pn{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:ri}}class Qi extends pn{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 qn(e){return n=>{if(function La(e){return nt(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 Dn(e,n,t,r,i){return new $r(e,n,t,r,i)}class $r extends Ys{constructor(n,t,r,i,s,o){super(n),this.onFinalize=s,this.shouldUnsubscribe=o,this._next=t?function(a){try{t(a)}catch(l){n.error(l)}}:super._next,this._error=i?function(a){try{i(a)}catch(l){n.error(l)}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 gn(e,n){return qn((t,r)=>{let i=0;t.subscribe(Dn(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 Pv="https://g.co/ng/security#xss";class k extends Error{constructor(n,t){super(function Ka(e,n){return`NG0${Math.abs(e)}${n?": "+n:""}`}(n,t)),this.code=n}}function Ns(e){return{toString:e}.toString()}const Ut=globalThis;function wt(e){for(let n in e)if(e[n]===wt)return n;throw Error("Could not find renamed property on target object.")}function u6(e,n){for(const t in n)n.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=n[t])}function Rn(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Rn).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 tg(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n}const d6=wt({__forward_ref__:wt});function bt(e){return e.__forward_ref__=bt,e.toString=function(){return Rn(this())},e}function ye(e){return Dd(e)?e():e}function Dd(e){return"function"==typeof e&&e.hasOwnProperty(d6)&&e.__forward_ref__===bt}function te(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Ln(e){return{providers:e.providers||[],imports:e.imports||[]}}function Sd(e){return Fv(e,Md)||Fv(e,Vv)}function Fv(e,n){return e.hasOwnProperty(n)?e[n]:null}function Td(e){return e&&(e.hasOwnProperty(ng)||e.hasOwnProperty(m6))?e[ng]:null}const Md=wt({\u0275prov:wt}),ng=wt({\u0275inj:wt}),Vv=wt({ngInjectableDef:wt}),m6=wt({ngInjectorDef:wt});class Z{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=te({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function ag(e){return e&&!!e.\u0275providers}const Ic=wt({\u0275cmp:wt}),lg=wt({\u0275dir:wt}),cg=wt({\u0275pipe:wt}),Bv=wt({\u0275mod:wt}),ks=wt({\u0275fac:wt}),Ac=wt({__NG_ELEMENT_ID__:wt}),jv=wt({__NG_ENV_ID__:wt});function Me(e){return"string"==typeof e?e:null==e?"":String(e)}function ug(e,n){throw new k(-201,!1)}var Ze=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}(Ze||{});let dg;function Hv(){return dg}function xr(e){const n=dg;return dg=e,n}function Uv(e,n,t){const r=Sd(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:t&Ze.Optional?null:void 0!==n?n:void ug()}const xc={},hg="__NG_DI_FLAG__",Id="ngTempTokenPath",C6=/\n/gm,zv="__source";let el;function ho(e){const n=el;return el=e,n}function S6(e,n=Ze.Default){if(void 0===el)throw new k(-203,!1);return null===el?Uv(e,void 0,n):el.get(e,n&Ze.Optional?null:void 0,n)}function X(e,n=Ze.Default){return(Hv()||S6)(ye(e),n)}function q(e,n=Ze.Default){return X(e,Ad(n))}function Ad(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function fg(e){const n=[];for(let t=0;t<e.length;t++){const r=ye(e[t]);if(Array.isArray(r)){if(0===r.length)throw new k(900,!1);let i,s=Ze.Default;for(let o=0;o<r.length;o++){const a=r[o],l=T6(a);"number"==typeof l?-1===l?i=a.token:s|=l:i=a}n.push(X(i,s))}else n.push(X(r))}return n}function T6(e){return e[hg]}function Zo(e,n){return e.hasOwnProperty(ks)?e[ks]:null}function tl(e,n){e.forEach(t=>Array.isArray(t)?tl(t,n):n(t))}function Gv(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function xd(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function Ur(e,n,t){let r=nl(e,n);return r>=0?e[1|r]=t:(r=~r,function Wv(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 yg(e,n){const t=nl(e,n);if(t>=0)return e[1|t]}function nl(e,n){return function Zv(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 is={},rt=[],ss=new Z(""),Kv=new Z("",-1),vg=new Z("");class kd{get(n,t=xc){if(t===xc){const r=new Error(`NullInjectorError: No provider for ${Rn(n)}!`);throw r.name="NullInjectorError",r}return t}}var Pd=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(Pd||{}),Ti=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Ti||{}),fo=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(fo||{});function P6(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 _g(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];Qv(s)?e.setProperty(n,s,o):e.setAttribute(n,s,o),r++}}return r}function Yv(e){return 3===e||4===e||6===e}function Qv(e){return 64===e.charCodeAt(0)}function kc(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||Xv(e,t,i,null,-1===t||2===t?n[++r]:null)}}return e}function Xv(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 Jv="ng-template";function O6(e,n,t,r){let i=0;if(r){for(;i<n.length&&"string"==typeof n[i];i+=2)if("class"===n[i]&&-1!==P6(n[i+1].toLowerCase(),t,0))return!0}else if(wg(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 wg(e){return 4===e.type&&e.value!==Jv}function R6(e,n,t){return n===(4!==e.type||t?e.value:Jv)}function L6(e,n,t){let r=4;const i=e.attrs,s=null!==i?function $6(e){for(let n=0;n<e.length;n++)if(Yv(e[n]))return n;return e.length}(i):0;let o=!1;for(let a=0;a<n.length;a++){const l=n[a];if("number"!=typeof l){if(!o)if(4&r){if(r=2|1&r,""!==l&&!R6(e,l,t)||""===l&&1===n.length){if(Mi(r))return!1;o=!0}}else if(8&r){if(null===i||!O6(e,i,l,t)){if(Mi(r))return!1;o=!0}}else{const c=n[++a],u=F6(l,i,wg(e),t);if(-1===u){if(Mi(r))return!1;o=!0;continue}if(""!==c){let d;if(d=u>s?"":i[u+1].toLowerCase(),2&r&&c!==d){if(Mi(r))return!1;o=!0}}}}else{if(!o&&!Mi(r)&&!Mi(l))return!1;if(o&&Mi(l))continue;o=!1,r=l|1&r}}return Mi(r)||o}function Mi(e){return!(1&e)}function F6(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 B6(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 e_(e,n,t=!1){for(let r=0;r<n.length;r++)if(L6(e,n[r],t))return!0;return!1}function j6(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 t_(e,n){return e?":not("+n.trim()+")":n}function H6(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&&!Mi(o)&&(n+=t_(s,i),i=""),r=o,s=s||!Mi(r);t++}return""!==i&&(n+=t_(s,i)),n}function zt(e){return Ns(()=>{const n=r_(e),t={...n,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Pd.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Ti.Emulated,styles:e.styles||rt,_:null,schemas:e.schemas||null,tView:null,id:""};i_(t);const r=e.dependencies;return t.directiveDefs=Od(r,!1),t.pipeDefs=Od(r,!0),t.id=function Z6(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 q6(e){return Be(e)||Fn(e)}function G6(e){return null!==e}function Gn(e){return Ns(()=>({type:e.type,bootstrap:e.bootstrap||rt,declarations:e.declarations||rt,imports:e.imports||rt,exports:e.exports||rt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function n_(e,n){if(null==e)return is;const t={};for(const r in e)if(e.hasOwnProperty(r)){const i=e[r];let s,o,a=fo.None;Array.isArray(i)?(a=i[0],s=i[1],o=i[2]??s):(s=i,o=i),n?(t[s]=a!==fo.None?[r,a]:r,n[s]=o):t[s]=r}return t}function Ee(e){return Ns(()=>{const n=r_(e);return i_(n),n})}function Tn(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 Be(e){return e[Ic]||null}function Fn(e){return e[lg]||null}function Yn(e){return e[cg]||null}function r_(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||is,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||rt,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:n_(e.inputs,n),outputs:n_(e.outputs),debugInfo:null}}function i_(e){e.features?.forEach(n=>n(e))}function Od(e,n){if(!e)return null;const t=n?Yn:q6;return()=>("function"==typeof e?e():e).map(r=>t(r)).filter(G6)}function rl(e){return{\u0275providers:e}}function K6(...e){return{\u0275providers:bg(0,e),\u0275fromNgModule:!0}}function bg(e,...n){const t=[],r=new Set;let i;const s=o=>{t.push(o)};return tl(n,o=>{const a=o;Rd(a,s,[],r)&&(i||=[],i.push(a))}),void 0!==i&&s_(i,s),t}function s_(e,n){for(let t=0;t<e.length;t++){const{ngModule:r,providers:i}=e[t];Cg(i,s=>{n(s,r)})}}function Rd(e,n,t,r){if(!(e=ye(e)))return!1;let i=null,s=Td(e);const o=!s&&Be(e);if(s||o){if(o&&!o.standalone)return!1;i=e}else{const l=e.ngModule;if(s=Td(l),!s)return!1;i=l}const a=r.has(i);if(o){if(a)return!1;if(r.add(i),o.dependencies){const l="function"==typeof o.dependencies?o.dependencies():o.dependencies;for(const c of l)Rd(c,n,t,r)}}else{if(!s)return!1;{if(null!=s.imports&&!a){let c;r.add(i);try{tl(s.imports,u=>{Rd(u,n,t,r)&&(c||=[],c.push(u))})}finally{}void 0!==c&&s_(c,n)}if(!a){const c=Zo(i)||(()=>new i);n({provide:i,useFactory:c,deps:rt},i),n({provide:vg,useValue:i,multi:!0},i),n({provide:ss,useValue:()=>X(i),multi:!0},i)}const l=s.providers;if(null!=l&&!a){const c=e;Cg(l,u=>{n(u,c)})}}}return i!==e&&void 0!==e.providers}function Cg(e,n){for(let t of e)ag(t)&&(t=t.\u0275providers),Array.isArray(t)?Cg(t,n):n(t)}const Y6=wt({provide:String,useValue:wt});function Eg(e){return null!==e&&"object"==typeof e&&Y6 in e}function Yo(e){return"function"==typeof e}const Dg=new Z(""),Ld={},X6={};let Sg;function Fd(){return void 0===Sg&&(Sg=new kd),Sg}class li{}class il extends li{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,Mg(n,o=>this.processProvider(o)),this.records.set(Kv,sl(void 0,this)),i.has("environment")&&this.records.set(li,sl(void 0,this));const s=this.records.get(Dg);null!=s&&"string"==typeof s.value&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(vg,rt,Ze.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const n=ee(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(),ee(n)}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const t=ho(this),r=xr(void 0);try{return n()}finally{ho(t),xr(r)}}get(n,t=xc,r=Ze.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(jv))return n[jv](this);r=Ad(r);const s=ho(this),o=xr(void 0);try{if(!(r&Ze.SkipSelf)){let l=this.records.get(n);if(void 0===l){const c=function rT(e){return"function"==typeof e||"object"==typeof e&&e instanceof Z}(n)&&Sd(n);l=c&&this.injectableDefInScope(c)?sl(Tg(n),Ld):null,this.records.set(n,l)}if(null!=l)return this.hydrate(n,l)}return(r&Ze.Self?Fd():this.parent).get(n,t=r&Ze.Optional&&t===xc?null:t)}catch(a){if("NullInjectorError"===a.name){if((a[Id]=a[Id]||[]).unshift(Rn(n)),s)throw a;return function M6(e,n,t,r){const i=e[Id];throw n[zv]&&i.unshift(n[zv]),e.message=function I6(e,n,t,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let i=Rn(n);if(Array.isArray(n))i=n.map(Rn).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):Rn(a)))}i=`{${s.join(", ")}}`}return`${t}${r?"("+r+")":""}[${i}]: ${e.replace(C6,"\n ")}`}("\n"+e.message,i,t,r),e.ngTokenPath=i,e[Id]=null,e}(a,n,"R3InjectorError",this.source)}throw a}finally{xr(o),ho(s)}}resolveInjectorInitializers(){const n=ee(null),t=ho(this),r=xr(void 0);try{const s=this.get(ss,rt,Ze.Self);for(const o of s)o()}finally{ho(t),xr(r),ee(n)}}toString(){const n=[],t=this.records;for(const r of t.keys())n.push(Rn(r));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new k(205,!1)}processProvider(n){let t=Yo(n=ye(n))?n:ye(n&&n.provide);const r=function eT(e){return Eg(e)?sl(void 0,e.useValue):sl(l_(e),Ld)}(n);if(!Yo(n)&&!0===n.multi){let i=this.records.get(t);i||(i=sl(void 0,Ld,!0),i.factory=()=>fg(i.multi),this.records.set(t,i)),t=n,i.multi.push(n)}this.records.set(t,r)}hydrate(n,t){const r=ee(null);try{return t.value===Ld&&(t.value=X6,t.value=t.factory()),"object"==typeof t.value&&t.value&&function nT(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{ee(r)}}injectableDefInScope(n){if(!n.providedIn)return!1;const t=ye(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 Tg(e){const n=Sd(e),t=null!==n?n.factory:Zo(e);if(null!==t)return t;if(e instanceof Z)throw new k(204,!1);if(e instanceof Function)return function J6(e){if(e.length>0)throw new k(204,!1);const t=function g6(e){return e&&(e[Md]||e[Vv])||null}(e);return null!==t?()=>t.factory(e):()=>new e}(e);throw new k(204,!1)}function l_(e,n,t){let r;if(Yo(e)){const i=ye(e);return Zo(i)||Tg(i)}if(Eg(e))r=()=>ye(e.useValue);else if(function a_(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...fg(e.deps||[]));else if(function o_(e){return!(!e||!e.useExisting)}(e))r=()=>X(ye(e.useExisting));else{const i=ye(e&&(e.useClass||e.provide));if(!function tT(e){return!!e.deps}(e))return Zo(i)||Tg(i);r=()=>new i(...fg(e.deps))}return r}function sl(e,n,t=!1){return{factory:e,value:n,multi:t?[]:void 0}}function Mg(e,n){for(const t of e)Array.isArray(t)?Mg(t,n):t&&ag(t)?Mg(t.\u0275providers,n):n(t)}function c_(){return void 0!==Hv()||null!=function D6(){return el}()}const Jt=0,j=1,le=2,Mn=3,Ii=4,Qn=5,fr=6,al=7,Lt=8,In=9,os=10,ve=11,Oc=12,d_=13,ll=14,en=15,Qo=16,cl=17,Ps=18,ul=19,h_=20,po=21,$d=22,ci=23,re=25,xg=1,as=7,dl=9,mn=10;var jd=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(jd||{});function $n(e){return Array.isArray(e)&&"object"==typeof e[xg]}function sr(e){return Array.isArray(e)&&!0===e[xg]}function Ng(e){return!!(4&e.flags)}function Xo(e){return e.componentOffset>-1}function Hd(e){return!(1&~e.flags)}function Ai(e){return!!e.template}function Lc(e){return!!(512&e[le])}class y_{constructor(n,t,r){this.previousValue=n,this.currentValue=t,this.firstChange=r}isFirstChange(){return this.firstChange}}function v_(e,n,t,r){null!==n?n.applyValueToInputSignal(n,r):e[t]=r}function xi(){return __}function __(e){return e.type.prototype.ngOnChanges&&(e.setInput=yT),mT}function mT(){const e=b_(this),n=e?.current;if(n){const t=e.previous;if(t===is)e.previous=n;else for(let r in n)t[r]=n[r];e.current=null,this.ngOnChanges(n)}}function yT(e,n,t,r,i){const s=this.declaredInputs[r],o=b_(e)||function vT(e,n){return e[w_]=n}(e,{previous:is,current:null}),a=o.current||(o.current={}),l=o.previous,c=l[s];a[s]=new y_(c&&c.currentValue,t,l===is),v_(e,n,i,t)}xi.ngInherit=!0;const w_="__ngSimpleChanges__";function b_(e){return e[w_]||null}const ls=function(e,n,t){};function it(e){for(;Array.isArray(e);)e=e[Jt];return e}function Fc(e,n){return it(n[e])}function pr(e,n){return it(n[e.index])}function Vc(e,n){return e.data[n]}function Jo(e,n){return e[n]}function zr(e,n){const t=n[e];return $n(t)?t:t[Jt]}function Lg(e){return!(128&~e[le])}function ui(e,n){return null==n?null:e[n]}function D_(e){e[cl]=0}function S_(e){1024&e[le]||(e[le]|=1024,Lg(e)&&zd(e))}function Ud(e){return!!(9216&e[le]||e[ci]?.dirty)}function Fg(e){e[os].changeDetectionScheduler?.notify(8),64&e[le]&&(e[le]|=1024),Ud(e)&&zd(e)}function zd(e){e[os].changeDetectionScheduler?.notify(0);let n=Os(e);for(;null!==n&&!(8192&n[le])&&(n[le]|=8192,Lg(n));)n=Os(n)}function qd(e,n){if(!(256&~e[le]))throw new k(911,!1);null===e[po]&&(e[po]=[]),e[po].push(n)}function Os(e){const n=e[Mn];return sr(n)?n[Mn]:n}const _e={lFrame:V_(null),bindingsEnabled:!0,skipHydrationRootTNode:null};let M_=!1;function I_(){return _e.bindingsEnabled}function ea(){return null!==_e.skipHydrationRootTNode}function x(){return _e.lFrame.lView}function Le(){return _e.lFrame.tView}function ft(e){return _e.lFrame.contextLView=e,e[Lt]}function pt(e){return _e.lFrame.contextLView=null,e}function Ct(){let e=A_();for(;null!==e&&64===e.type;)e=e.parent;return e}function A_(){return _e.lFrame.currentTNode}function Ni(e,n){const t=_e.lFrame;t.currentTNode=e,t.isParent=n}function Bg(){return _e.lFrame.isParent}function jg(){_e.lFrame.isParent=!1}function x_(){return _e.lFrame.contextLView}function k_(){return M_}function P_(e){M_=e}function gr(){const e=_e.lFrame;let n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}function ki(){return _e.lFrame.bindingIndex++}function Ls(e){const n=_e.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}function kT(e,n){const t=_e.lFrame;t.bindingIndex=t.bindingRootIndex=e,Hg(n)}function Hg(e){_e.lFrame.currentDirectiveIndex=e}function Ug(e){const n=_e.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}function Wd(e){_e.lFrame.currentQueryIndex=e}function OT(e){const n=e[j];return 2===n.type?n.declTNode:1===n.type?e[Qn]:null}function L_(e,n,t){if(t&Ze.SkipSelf){let i=n,s=e;for(;!(i=i.parent,null!==i||t&Ze.Host||(i=OT(s),null===i||(s=s[ll],10&i.type))););if(null===i)return!1;n=i,e=s}const r=_e.lFrame=F_();return r.currentTNode=n,r.lView=e,!0}function qg(e){const n=F_(),t=e[j];_e.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function F_(){const e=_e.lFrame,n=null===e?null:e.child;return null===n?V_(e):n}function V_(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 $_(){const e=_e.lFrame;return _e.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const B_=$_;function Gg(){const e=$_();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 Xn(){return _e.lFrame.selectedIndex}function ta(e){_e.lFrame.selectedIndex=e}function Ft(){const e=_e.lFrame;return Vc(e.tView,e.selectedIndex)}let H_=!0;function Bc(){return H_}function cs(e){H_=e}function Zd(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:l,ngAfterViewChecked:c,ngOnDestroy:u}=s;o&&(e.contentHooks??=[]).push(-t,o),a&&((e.contentHooks??=[]).push(t,a),(e.contentCheckHooks??=[]).push(t,a)),l&&(e.viewHooks??=[]).push(-t,l),c&&((e.viewHooks??=[]).push(t,c),(e.viewCheckHooks??=[]).push(t,c)),null!=u&&(e.destroyHooks??=[]).push(t,u)}}function Kd(e,n,t){U_(e,n,3,t)}function Yd(e,n,t,r){(3&e[le])===t&&U_(e,n,t,r)}function Wg(e,n){let t=e[le];(3&t)===n&&(t&=16383,t+=1,e[le]=t)}function U_(e,n,t,r){const s=r??-1,o=n.length-1;let a=0;for(let l=void 0!==r?65535&e[cl]:0;l<o;l++)if("number"==typeof n[l+1]){if(a=n[l],null!=r&&a>=r)break}else n[l]<0&&(e[cl]+=65536),(a<s||-1==s)&&(jT(e,t,n,l),e[cl]=(4294901760&e[cl])+l+2),l++}function z_(e,n){ls(4,e,n);const t=ee(null);try{n.call(e)}finally{ee(t),ls(5,e,n)}}function jT(e,n,t,r){const i=t[r]<0,s=t[r+1],a=e[i?-t[r]:t[r]];i?e[le]>>14<e[cl]>>16&&(3&e[le])===n&&(e[le]+=16384,z_(a,s)):z_(a,s)}const hl=-1;class jc{constructor(n,t,r){this.factory=n,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=r}}const Kg={};class na{constructor(n,t){this.injector=n,this.parentInjector=t}get(n,t,r){r=Ad(r);const i=this.injector.get(n,Kg,r);return i!==Kg||t===Kg?i:this.parentInjector.get(n,t,r)}}function Yg(e){return e!==hl}function Hc(e){return 32767&e}function Uc(e,n){let t=function qT(e){return e>>16}(e),r=n;for(;t>0;)r=r[ll],t--;return r}let Qg=!0;function Qd(e){const n=Qg;return Qg=e,n}const G_=255,W_=5;let WT=0;const us={};function Xd(e,n){const t=Z_(e,n);if(-1!==t)return t;const r=n[j];r.firstCreatePass&&(e.injectorIndex=n.length,Xg(r.data,e),Xg(n,null),Xg(r.blueprint,null));const i=Jd(e,n),s=e.injectorIndex;if(Yg(i)){const o=Hc(i),a=Uc(i,n),l=a[j].data;for(let c=0;c<8;c++)n[s+c]=a[o+c]|l[o+c]}return n[s+8]=i,s}function Xg(e,n){e.push(0,0,0,0,0,0,0,0,n)}function Z_(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function Jd(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=t2(i),null===r)return hl;if(t++,i=i[ll],-1!==r.injectorIndex)return r.injectorIndex|t<<16}return hl}function Jg(e,n,t){!function ZT(e,n,t){let r;"string"==typeof t?r=t.charCodeAt(0)||0:t.hasOwnProperty(Ac)&&(r=t[Ac]),null==r&&(r=t[Ac]=WT++);const i=r&G_;n.data[e+(i>>W_)]|=1<<i}(e,n,t)}function K_(e,n,t){if(t&Ze.Optional||void 0!==e)return e;ug()}function Y_(e,n,t,r){if(t&Ze.Optional&&void 0===r&&(r=null),!(t&(Ze.Self|Ze.Host))){const i=e[In],s=xr(void 0);try{return i?i.get(n,r,t&Ze.Optional):Uv(n,r,t&Ze.Optional)}finally{xr(s)}}return K_(r,0,t)}function Q_(e,n,t,r=Ze.Default,i){if(null!==e){if(2048&n[le]&&!(r&Ze.Self)){const o=function JT(e,n,t,r,i){let s=e,o=n;for(;null!==s&&null!==o&&2048&o[le]&&!(512&o[le]);){const a=X_(s,o,t,r|Ze.Self,us);if(a!==us)return a;let l=s.parent;if(!l){const c=o[h_];if(c){const u=c.get(t,us,r);if(u!==us)return u}l=t2(o),o=o[ll]}s=l}return i}(e,n,t,r,us);if(o!==us)return o}const s=X_(e,n,t,r,us);if(s!==us)return s}return Y_(n,t,r,i)}function X_(e,n,t,r,i){const s=function QT(e){if("string"==typeof e)return e.charCodeAt(0)||0;const n=e.hasOwnProperty(Ac)?e[Ac]:void 0;return"number"==typeof n?n>=0?n&G_:XT:n}(t);if("function"==typeof s){if(!L_(n,e,r))return r&Ze.Host?K_(i,0,r):Y_(n,t,r,i);try{let o;if(o=s(r),null!=o||r&Ze.Optional)return o;ug()}finally{B_()}}else if("number"==typeof s){let o=null,a=Z_(e,n),l=hl,c=r&Ze.Host?n[en][Qn]:null;for((-1===a||r&Ze.SkipSelf)&&(l=-1===a?Jd(e,n):n[a+8],l!==hl&&e2(r,!1)?(o=n[j],a=Hc(l),n=Uc(l,n)):a=-1);-1!==a;){const u=n[j];if(J_(s,a,u.data)){const d=YT(a,n,t,o,r,c);if(d!==us)return d}l=n[a+8],l!==hl&&e2(r,n[j].data[a+8]===c)&&J_(s,a,n)?(o=u,a=Hc(l),n=Uc(l,n)):a=-1}}return i}function YT(e,n,t,r,i,s){const o=n[j],a=o.data[e+8],u=function eh(e,n,t,r,i){const s=e.providerIndexes,o=n.data,a=1048575&s,l=e.directiveStart,u=s>>20,f=i?a+u:e.directiveEnd;for(let h=r?a:a+u;h<f;h++){const g=o[h];if(h<l&&t===g||h>=l&&g.type===t)return h}if(i){const h=o[l];if(h&&Ai(h)&&h.type===t)return l}return null}(a,o,t,null==r?Xo(a)&&Qg:r!=o&&!!(3&a.type),i&Ze.Host&&s===a);return null!==u?ra(n,o,u,a):us}function ra(e,n,t,r){let i=e[t];const s=n.data;if(function HT(e){return e instanceof jc}(i)){const o=i;o.resolving&&function _6(e,n){throw n&&n.join(" > "),new k(-200,e)}(function ht(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Me(e)}(s[t]));const a=Qd(o.canSeeViewProviders);o.resolving=!0;const c=o.injectImpl?xr(o.injectImpl):null;L_(e,r,Ze.Default);try{i=e[t]=o.factory(void 0,s,e,r),n.firstCreatePass&&t>=r.directiveStart&&function BT(e,n,t){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:s}=n.type.prototype;if(r){const o=__(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!==c&&xr(c),Qd(a),o.resolving=!1,B_()}}return i}function J_(e,n,t){return!!(t[n+(e>>W_)]&1<<e)}function e2(e,n){return!(e&Ze.Self||e&Ze.Host&&n)}class Bn{constructor(n,t){this._tNode=n,this._lView=t}get(n,t,r){return Q_(this._tNode,this._lView,n,Ad(r),t)}}function XT(){return new Bn(Ct(),x())}function Jn(e){return Ns(()=>{const n=e.prototype.constructor,t=n[ks]||em(n),r=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){const s=i[ks]||em(i);if(s&&s!==t)return s;i=Object.getPrototypeOf(i)}return s=>new s})}function em(e){return Dd(e)?()=>{const n=em(ye(e));return n&&n()}:Zo(e)}function t2(e){const n=e[j],t=n.type;return 2===t?n.declTNode:1===t?e[Qn]:null}function o2(e,n=null,t=null,r){const i=a2(e,n,t,r);return i.resolveInjectorInitializers(),i}function a2(e,n=null,t=null,r,i=new Set){const s=[t||rt,K6(e)];return r=r||("object"==typeof e?void 0:Rn(e)),new il(s,n||Fd(),r||null,i)}class kt{static#e=this.THROW_IF_NOT_FOUND=xc;static#t=this.NULL=new kd;static create(n,t){if(Array.isArray(n))return o2({name:""},t,n,"");{const r=n.name??"";return o2({name:r},n.parent,n.providers,r)}}static#n=this.\u0275prov=te({token:kt,providedIn:"any",factory:()=>X(Kv)});static#r=this.__NG_ELEMENT_ID__=-1}new Z("").__NG_ELEMENT_ID__=e=>{const n=Ct();if(null===n)throw new k(204,!1);if(2&n.type)return n.value;if(e&Ze.Optional)return null;throw new k(204,!1)};function nm(e){return e.ngOriginalError}const c2=!0;let zc=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=c9;static#t=this.__NG_ENV_ID__=t=>t}return e})();class l9 extends zc{constructor(n){super(),this._lView=n}onDestroy(n){return qd(this._lView,n),()=>function Vg(e,n){if(null===e[po])return;const t=e[po].indexOf(n);-1!==t&&e[po].splice(t,1)}(this._lView,n)}}function c9(){return new l9(x())}let ia=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Qi(!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=te({token:e,providedIn:"root",factory:()=>new e})}return e})();const qt=class u9 extends pn{constructor(n=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=n,c_()&&(this.destroyRef=q(zc,{optional:!0})??void 0,this.pendingTasks=q(ia,{optional:!0})??void 0)}emit(n){const t=ee(null);try{super.next(n)}finally{ee(t)}}subscribe(n,t,r){let i=n,s=t||(()=>null),o=r;if(n&&"object"==typeof n){const l=n;i=l.next?.bind(l),s=l.error?.bind(l),o=l.complete?.bind(l)}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 lt&&n.add(a),a}wrapInTimeout(n){return t=>{const r=this.pendingTasks?.add();setTimeout(()=>{n(t),void 0!==r&&this.pendingTasks?.remove(r)})}}};function rh(...e){}function u2(e){let n,t;function r(){e=rh;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 d2(e){return queueMicrotask(()=>e()),()=>{e=rh}}const rm="isAngularZone",ih=rm+"_ID";let d9=0;class st{constructor(n){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new qt(!1),this.onMicrotaskEmpty=new qt(!1),this.onStable=new qt(!1),this.onError=new qt(!1);const{enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:s=c2}=n;if(typeof Zone>"u")throw new k(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 p9(e){const n=()=>{!function f9(e){function n(){u2(()=>{e.callbackScheduled=!1,sm(e),e.isCheckStableRunning=!0,im(e),e.isCheckStableRunning=!1})}e.isCheckStableRunning||e.callbackScheduled||(e.callbackScheduled=!0,e.scheduleInRootZone?Zone.root.run(()=>{n()}):e._outer.run(()=>{n()}),sm(e))}(e)},t=d9++;e._inner=e._inner.fork({name:"angular",properties:{[rm]:!0,[ih]:t,[ih+t]:!0},onInvokeTask:(r,i,s,o,a,l)=>{if(function g9(e){return p2(e,"__ignore_ng_zone__")}(l))return r.invokeTask(s,o,a,l);try{return h2(e),r.invokeTask(s,o,a,l)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&n(),f2(e)}},onInvoke:(r,i,s,o,a,l,c)=>{try{return h2(e),r.invoke(s,o,a,l,c)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!function m9(e){return p2(e,"__scheduler_tick__")}(l)&&n(),f2(e)}},onHasTask:(r,i,s,o)=>{r.hasTask(s,o),i===s&&("microTask"==o.change?(e._hasPendingMicrotasks=o.microTask,sm(e),im(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(rm)}static assertInAngularZone(){if(!st.isInAngularZone())throw new k(909,!1)}static assertNotInAngularZone(){if(st.isInAngularZone())throw new k(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,h9,rh,rh);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 h9={};function im(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 sm(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&!0===e.callbackScheduled)}function h2(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function f2(e){e._nesting--,im(e)}class om{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new qt,this.onMicrotaskEmpty=new qt,this.onStable=new qt,this.onError=new qt}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 p2(e,n){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0]?.data?.[n]}class ds{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&&nm(n);for(;t&&nm(t);)t=nm(t);return t||null}}const v9=new Z("",{providedIn:"root",factory:()=>{const e=q(st),n=q(ds);return t=>e.runOutsideAngular(()=>n.handleError(t))}});function _9(){return gl(Ct(),x())}function gl(e,n){return new qr(pr(e,n))}let qr=(()=>{class e{constructor(t){this.nativeElement=t}static#e=this.__NG_ELEMENT_ID__=_9}return e})();function Gc(e){return!(128&~e.flags)}Symbol;const cm=new Map;let C9=0;function um(e){cm.delete(e[ul])}const sh="__ngContext__";function or(e,n){$n(n)?(e[sh]=n[ul],function D9(e){cm.set(e[ul],e)}(n)):e[sh]=n}function T2(e){return I2(e[Oc])}function M2(e){return I2(e[Ii])}function I2(e){for(;null!==e&&!sr(e);)e=e[Ii];return e}let hm;function go(){if(void 0!==hm)return hm;if(typeof document<"u")return document;throw new k(210,!1)}const yl=new Z("",{providedIn:"root",factory:()=>j9}),j9="ng",L2=new Z(""),mo=new Z("",{providedIn:"platform",factory:()=>"unknown"}),F2=new Z(""),V2=new Z("",{providedIn:"root",factory:()=>go().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let $2=()=>null;function _m(e,n,t=!1){return $2(e,n,t)}const W2=new Z("",{providedIn:"root",factory:()=>!1});let ph,gh;function wl(e){return function Dm(){if(void 0===ph&&(ph=null,Ut.trustedTypes))try{ph=Ut.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return ph}()?.createHTML(e)||e}function Y2(e){return function Sm(){if(void 0===gh&&(gh=null,Ut.trustedTypes))try{gh=Ut.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return gh}()?.createHTML(e)||e}class oa{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Pv})`}}class tM extends oa{getTypeName(){return"HTML"}}class nM extends oa{getTypeName(){return"Style"}}class rM extends oa{getTypeName(){return"Script"}}class iM extends oa{getTypeName(){return"URL"}}class sM extends oa{getTypeName(){return"ResourceURL"}}function Gr(e){return e instanceof oa?e.changingThisBreaksApplicationSecurity:e}function hs(e,n){const t=function oM(e){return e instanceof oa&&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 ${Pv})`)}return t===n}class hM{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n="<body><remove></remove>"+n;try{const t=(new window.DOMParser).parseFromString(wl(n),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(n):(t.firstChild?.remove(),t)}catch{return null}}}class fM{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const t=this.inertDocument.createElement("template");return t.innerHTML=wl(n),t}}const gM=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function mh(e){return(e=String(e)).match(gM)?e:"unsafe:"+e}function Fs(e){const n={};for(const t of e.split(","))n[t]=!0;return n}function Jc(...e){const n={};for(const t of e)for(const r in t)t.hasOwnProperty(r)&&(n[r]=!0);return n}const ew=Fs("area,br,col,hr,img,wbr"),tw=Fs("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),nw=Fs("rp,rt"),Tm=Jc(ew,Jc(tw,Fs("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")),Jc(nw,Fs("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")),Jc(nw,tw)),Mm=Fs("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),rw=Jc(Mm,Fs("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"),Fs("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")),mM=Fs("script,style,template");class yM{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=wM(t);else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let s=_M(t);if(s){t=s;break}t=i.pop()}return this.buf.join("")}startElement(n){const t=iw(n).toLowerCase();if(!Tm.hasOwnProperty(t))return this.sanitizedSomething=!0,!mM.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(!rw.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=s.value;Mm[a]&&(l=mh(l)),this.buf.push(" ",o,'="',ow(l),'"')}return this.buf.push(">"),!0}endElement(n){const t=iw(n).toLowerCase();Tm.hasOwnProperty(t)&&!ew.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(n){this.buf.push(ow(n))}}function _M(e){const n=e.nextSibling;if(n&&e!==n.previousSibling)throw sw(n);return n}function wM(e){const n=e.firstChild;if(n&&function vM(e,n){return(e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(e,n))throw sw(n);return n}function iw(e){const n=e.nodeName;return"string"==typeof n?n:"FORM"}function sw(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}const bM=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,CM=/([^\#-~ |!])/g;function ow(e){return e.replace(/&/g,"&amp;").replace(bM,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(CM,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let yh;function aw(e,n){let t=null;try{yh=yh||function J2(e){const n=new fM(e);return function pM(){try{return!!(new window.DOMParser).parseFromString(wl(""),"text/html")}catch{return!1}}()?new hM(n):n}(e);let r=n?String(n):"";t=yh.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=yh.getInertBodyElement(r)}while(r!==s);return wl((new yM).sanitizeChildren(Im(t)||t))}finally{if(t){const r=Im(t)||t;for(;r.firstChild;)r.firstChild.remove()}}}function Im(e){return"content"in e&&function EM(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Wr=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}(Wr||{});function yo(e){const n=tu();return n?Y2(n.sanitize(Wr.HTML,e)||""):hs(e,"HTML")?Y2(Gr(e)):aw(go(),Me(e))}function eu(e){const n=tu();return n?n.sanitize(Wr.URL,e)||"":hs(e,"URL")?Gr(e):mh(Me(e))}function tu(){const e=x();return e&&e[os].sanitizer}const xM=/^>|^->|<!--|-->|--!>|<!-$/g,NM=/(<|>)/g,kM="\u200b$1\u200b";function fw(e){return e.ownerDocument}var vo=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(vo||{});let Nm;function km(e,n){return Nm(e,n)}function Cl(e,n,t,r,i){if(null!=r){let s,o=!1;sr(r)?s=r:$n(r)&&(o=!0,r=r[Jt]);const a=it(r);0===e&&null!==t?null==i?Cw(n,t,a):aa(n,t,a,i||null,!0):1===e&&null!==t?aa(n,t,a,i||null,!0):2===e?function ru(e,n,t){e.removeChild(null,n,t)}(n,a,o):3===e&&n.destroyNode(a),null!=s&&function QM(e,n,t,r,i){const s=t[as];s!==it(t)&&Cl(n,e,r,s,i);for(let a=mn;a<t.length;a++){const l=t[a];Eh(l[j],l,e,n,r,s)}}(n,e,s,t,i)}}function Om(e,n){return e.createComment(function cw(e){return e.replace(xM,n=>n.replace(NM,kM))}(n))}function wh(e,n,t){return e.createElement(n,t)}function _w(e,n){n[os].changeDetectionScheduler?.notify(9),Eh(e,n,n[ve],2,null,null)}function ww(e,n){const t=e[dl],r=n[Mn];($n(r)||n[en]!==r[Mn][en])&&(e[le]|=jd.HasTransplantedViews),null===t?e[dl]=[n]:t.push(n)}function Rm(e,n){const t=e[dl],r=t.indexOf(n);t.splice(r,1)}function nu(e,n){if(e.length<=mn)return;const t=mn+n,r=e[t];if(r){const i=r[Qo];null!==i&&i!==e&&Rm(i,r),n>0&&(e[t-1][Ii]=r[Ii]);const s=xd(e,mn+n);!function UM(e,n){_w(e,n),n[Jt]=null,n[Qn]=null}(r[j],r);const o=s[Ps];null!==o&&o.detachView(s[j]),r[Mn]=null,r[Ii]=null,r[le]&=-129}return r}function bh(e,n){if(!(256&n[le])){const t=n[ve];t.destroyNode&&Eh(e,n,t,3,null,null),function qM(e){let n=e[Oc];if(!n)return Lm(e[j],e);for(;n;){let t=null;if($n(n))t=n[Oc];else{const r=n[mn];r&&(t=r)}if(!t){for(;n&&!n[Ii]&&n!==e;)$n(n)&&Lm(n[j],n),n=n[Mn];null===n&&(n=e),$n(n)&&Lm(n[j],n),t=n&&n[Ii]}n=t}}(n)}}function Lm(e,n){if(256&n[le])return;const t=ee(null);try{n[le]&=-129,n[le]|=256,n[ci]&&bn(n[ci]),function ZM(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 jc)){const s=t[r+1];if(Array.isArray(s))for(let o=0;o<s.length;o+=2){const a=i[s[o]],l=s[o+1];ls(4,a,l);try{l.call(a)}finally{ls(5,a,l)}}else{ls(4,i,s);try{s.call(i)}finally{ls(5,i,s)}}}}}(e,n),function WM(e,n){const t=e.cleanup,r=n[al];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[al]=null);const i=n[po];if(null!==i){n[po]=null;for(let s=0;s<i.length;s++)(0,i[s])()}}(e,n),1===n[j].type&&n[ve].destroy();const r=n[Qo];if(null!==r&&sr(n[Mn])){r!==n[Mn]&&Rm(r,n);const i=n[Ps];null!==i&&i.detachView(e)}um(n)}finally{ee(t)}}function Fm(e,n,t){return function bw(e,n,t){let r=n;for(;null!==r&&168&r.type;)r=(n=r).parent;if(null===r)return t[Jt];{const{componentOffset:i}=r;if(i>-1){const{encapsulation:s}=e.data[r.directiveStart+i];if(s===Ti.None||s===Ti.Emulated)return null}return pr(r,t)}}(e,n.parent,t)}function aa(e,n,t,r,i){e.insertBefore(n,t,r,i)}function Cw(e,n,t){e.appendChild(n,t)}function Ew(e,n,t,r,i){null!==r?aa(e,n,t,r,i):Cw(e,n,t)}function Vm(e,n){return e.parentNode(n)}function Dw(e,n,t){return Tw(e,n,t)}let $m,Tw=function Sw(e,n,t){return 40&e.type?pr(e,t):null};function Ch(e,n,t,r){const i=Fm(e,r,n),s=n[ve],a=Dw(r.parent||n[Qn],r,n);if(null!=i)if(Array.isArray(t))for(let l=0;l<t.length;l++)Ew(s,i,t[l],a,!1);else Ew(s,i,t,a,!1);void 0!==$m&&$m(s,r,n,t,i)}function la(e,n){if(null!==n){const t=n.type;if(3&t)return pr(n,e);if(4&t)return Bm(-1,e[n.index]);if(8&t){const r=n.child;if(null!==r)return la(e,r);{const i=e[n.index];return sr(i)?Bm(-1,i):it(i)}}if(128&t)return la(e,n.next);if(32&t)return km(n,e)()||it(e[n.index]);{const r=Iw(e,n);return null!==r?Array.isArray(r)?r[0]:la(Os(e[en]),r):la(e,n.next)}}return null}function Iw(e,n){return null!==n?e[en][Qn].projection[n.projection]:null}function Bm(e,n){const t=mn+e+1;if(t<n.length){const r=n[t],i=r[j].firstChild;if(null!==i)return la(r,i)}return n[as]}function jm(e,n,t,r,i,s,o){for(;null!=t;){if(128===t.type){t=t.next;continue}const a=r[t.index],l=t.type;if(o&&0===n&&(a&&or(it(a),r),t.flags|=2),32&~t.flags)if(8&l)jm(e,n,t.child,r,i,s,!1),Cl(n,e,i,a,s);else if(32&l){const c=km(t,r);let u;for(;u=c();)Cl(n,e,i,u,s);Cl(n,e,i,a,s)}else 16&l?xw(e,n,r,t,i,s):Cl(n,e,i,a,s);t=o?t.projectionNext:t.next}}function Eh(e,n,t,r,i,s){jm(t,r,e.firstChild,n,i,s,!1)}function xw(e,n,t,r,i,s){const o=t[en],l=o[Qn].projection[r.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)Cl(n,e,i,l[c],s);else{let c=l;const u=o[Mn];Gc(r)&&(c.flags|=128),jm(e,n,c,u,i,s,!0)}}function Nw(e,n,t){""===t?e.removeAttribute(n,"class"):e.setAttribute(n,"class",t)}function kw(e,n,t){const{mergedAttrs:r,classes:i,styles:s}=t;null!==r&&_g(e,n,r),null!==i&&Nw(e,n,i),null!==s&&function JM(e,n,t){e.setAttribute(n,"style",t)}(e,n,s)}const Ie={};function P(e=1){Pw(Le(),x(),Xn()+e,!1)}function Pw(e,n,t,r){if(!r)if(3&~n[le]){const s=e.preOrderHooks;null!==s&&Yd(n,s,0,t)}else{const s=e.preOrderCheckHooks;null!==s&&Kd(n,s,t)}ta(t)}function A(e,n=Ze.Default){const t=x();return null===t?X(e,n):Q_(Ct(),t,ye(e),n)}function Ow(e,n,t,r,i,s){const o=ee(null);try{let a=null;i&fo.SignalBased&&(a=n[r][Ye]),null!==a&&void 0!==a.transformFn&&(s=a.transformFn(s)),i&fo.HasDecoratorInputTransform&&(s=e.inputTransforms[r].call(n,s)),null!==e.setInput?e.setInput(n,a,s,t,r):v_(n,a,r,s)}finally{ee(o)}}function Dh(e,n,t,r,i,s,o,a,l,c,u){const d=n.blueprint.slice();return d[Jt]=i,d[le]=204|r,(null!==c||e&&2048&e[le])&&(d[le]|=2048),D_(d),d[Mn]=d[ll]=e,d[Lt]=t,d[os]=o||e&&e[os],d[ve]=a||e&&e[ve],d[In]=l||e&&e[In]||null,d[Qn]=s,d[ul]=function E9(){return C9++}(),d[fr]=u,d[h_]=c,d[en]=2==n.type?e[en]:d,d}function ca(e,n,t,r,i){let s=e.data[n];if(null===s)s=function Hm(e,n,t,r,i){const s=A_(),o=Bg(),l=e.data[n]=function lI(e,n,t,r,i,s){let o=n?n.injectorIndex:-1,a=0;return ea()&&(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=l),null!==s&&(o?null==s.child&&null!==l.parent&&(s.child=l):null===s.next&&(s.next=l,l.prev=s)),l}(e,n,t,r,i),function NT(){return _e.lFrame.inI18n}()&&(s.flags|=32);else if(64&s.type){s.type=t,s.value=r,s.attrs=i;const o=function $c(){const e=_e.lFrame,n=e.currentTNode;return e.isParent?n:n.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return Ni(s,!0),s}function iu(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 Rw(e,n,t,r,i){const s=Xn(),o=2&r;try{ta(-1),o&&n.length>re&&Pw(e,n,re,!1),ls(o?2:0,i),t(r,i)}finally{ta(s),ls(o?3:1,i)}}function Um(e,n,t){if(Ng(n)){const r=ee(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{ee(r)}}}function zm(e,n,t){I_()&&(function gI(e,n,t,r){const i=t.directiveStart,s=t.directiveEnd;Xo(t)&&function CI(e,n,t){const r=pr(n,e),i=Lw(t);let o=16;t.signals?o=4096:t.onPush&&(o=64);const a=Sh(e,Dh(e,i,null,o,r,n,null,e[os].rendererFactory.createRenderer(r,t),null,null,null));e[n.index]=a}(n,t,e.data[i+t.componentOffset]),e.firstCreatePass||Xd(t,n),or(r,n);const o=t.initialInputs;for(let a=i;a<s;a++){const l=e.data[a],c=ra(n,e,a,t);or(c,n),null!==o&&EI(0,a-i,c,l,0,o),Ai(l)&&(zr(t.index,n)[Lt]=ra(n,e,a,t))}}(e,n,t,pr(t,n)),!(64&~t.flags)&&jw(e,n,t))}function qm(e,n,t=pr){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 Lw(e){const n=e.tView;return null===n||n.incompleteFirstPass?e.tView=Gm(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):n}function Gm(e,n,t,r,i,s,o,a,l,c,u){const d=re+r,f=d+i,h=function nI(e,n){const t=[];for(let r=0;r<n;r++)t.push(r<e?null:Ie);return t}(d,f),g="function"==typeof c?c():c;return h[j]={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:l,consts:g,incompleteFirstPass:!1,ssrId:u}}let Fw=()=>null;function Vw(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,l=fo.None;Array.isArray(o)?(a=o[0],l=o[1]):a=o;let c=s;if(null!==i){if(!i.hasOwnProperty(s))continue;c=i[s]}0===e?$w(r,t,c,a,l):$w(r,t,c,a)}return r}function $w(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 Pr(e,n,t,r,i,s,o,a){const l=pr(n,t);let u,c=n.inputs;!a&&null!=c&&(u=c[r])?(Qm(e,t,u,r,i),Xo(n)&&function dI(e,n){const t=zr(n,e);16&t[le]||(t[le]|=64)}(t,n.index)):3&n.type&&(r=function uI(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(l,r,i))}function Wm(e,n,t,r){if(I_()){const i=null===r?null:{"":-1},s=function yI(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(e_(n,o.selectors,!1))if(r||(r=[]),Ai(o))if(null!==o.findHostDirectiveDefs){const a=[];i=i||new Map,o.findHostDirectiveDefs(o,a,i),r.unshift(...a,o),Zm(e,n,a.length)}else r.unshift(o),Zm(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&&Bw(e,n,t,o,i,a),i&&function vI(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 k(-301,!1);r.push(n[i],s)}}}(t,r,i)}t.mergedAttrs=kc(t.mergedAttrs,t.attrs)}function Bw(e,n,t,r,i,s){for(let c=0;c<r.length;c++)Jg(Xd(t,n),e,r[c].type);!function wI(e,n,t){e.flags|=1,e.directiveStart=n,e.directiveEnd=n+t,e.providerIndexes=n}(t,e.data.length,r.length);for(let c=0;c<r.length;c++){const u=r[c];u.providersResolver&&u.providersResolver(u)}let o=!1,a=!1,l=iu(e,n,r.length,null);for(let c=0;c<r.length;c++){const u=r[c];t.mergedAttrs=kc(t.mergedAttrs,u.hostAttrs),bI(e,t,n,l,u),_I(l,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),l++}!function cI(e,n,t){const i=n.directiveEnd,s=e.data,o=n.attrs,a=[];let l=null,c=null;for(let u=n.directiveStart;u<i;u++){const d=s[u],f=t?t.get(d):null,g=f?f.outputs:null;l=Vw(0,d.inputs,u,l,f?f.inputs:null),c=Vw(1,d.outputs,u,c,g);const v=null===l||null===o||wg(n)?null:DI(l,u,o);a.push(v)}null!==l&&(l.hasOwnProperty("class")&&(n.flags|=8),l.hasOwnProperty("style")&&(n.flags|=16)),n.initialInputs=a,n.inputs=l,n.outputs=c}(e,t,s)}function jw(e,n,t){const r=t.directiveStart,i=t.directiveEnd,s=t.index,o=function PT(){return _e.lFrame.currentDirectiveIndex}();try{ta(s);for(let a=r;a<i;a++){const l=e.data[a],c=n[a];Hg(a),(null!==l.hostBindings||0!==l.hostVars||null!==l.hostAttrs)&&mI(l,c)}}finally{ta(-1),Hg(o)}}function mI(e,n){null!==e.hostBindings&&e.hostBindings(1,n)}function Zm(e,n,t){n.componentOffset=t,(e.components??=[]).push(n.index)}function _I(e,n,t){if(t){if(n.exportAs)for(let r=0;r<n.exportAs.length;r++)t[n.exportAs[r]]=e;Ai(n)&&(t[""]=e)}}function bI(e,n,t,r,i){e.data[r]=i;const s=i.factory||(i.factory=Zo(i.type)),o=new jc(s,Ai(i),A);e.blueprint[r]=o,t[r]=o,function fI(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 pI(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,iu(e,t,i.hostVars,Ie),i)}function fs(e,n,t,r,i,s){const o=pr(e,n);!function Km(e,n,t,r,i,s,o){if(null==s)e.removeAttribute(n,i,t);else{const a=null==o?Me(s):o(s,r||"",i);e.setAttribute(n,i,a,t)}}(n[ve],o,s,e.value,t,r,i)}function EI(e,n,t,r,i,s){const o=s[n];if(null!==o)for(let a=0;a<o.length;)Ow(r,t,o[a++],o[a++],o[a++],o[a++])}function DI(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 Hw(e,n,t,r){return[e,!0,0,n,null,r,null,t,null,null]}function Uw(e,n){const t=e.contentQueries;if(null!==t){const r=ee(null);try{for(let i=0;i<t.length;i+=2){const o=t[i+1];if(-1!==o){const a=e.data[o];Wd(t[i]),a.contentQueries(2,n[o],o)}}}finally{ee(r)}}}function Sh(e,n){return e[Oc]?e[d_][Ii]=n:e[Oc]=n,e[d_]=n,n}function Ym(e,n,t){Wd(0);const r=ee(null);try{n(e,t)}finally{ee(r)}}function Gw(e,n,t){return(null===e||Ai(e))&&(t=function Rg(e){for(;Array.isArray(e);){if("object"==typeof e[xg])return e;e=e[Jt]}return null}(t[n.index])),t[ve]}function Th(e,n){const t=e[In],r=t?t.get(ds,null):null;r&&r.handleError(n)}function Qm(e,n,t,r,i){for(let s=0;s<t.length;){const o=t[s++],a=t[s++],l=t[s++];Ow(e.data[o],n[o],r,a,l,i)}}function SI(e,n){const t=zr(n,e),r=t[j];!function TI(e,n){for(let t=n.length;t<e.blueprint.length;t++)n.push(e.blueprint[t])}(r,t);const i=t[Jt];null!==i&&null===t[fr]&&(t[fr]=_m(i,t[In])),Xm(r,t,t[Lt])}function Xm(e,n,t){qg(n);try{const r=e.viewQuery;null!==r&&Ym(1,r,t);const i=e.template;null!==i&&Rw(e,n,i,1,t),e.firstCreatePass&&(e.firstCreatePass=!1),n[Ps]?.finishViewCreation(e),e.staticContentQueries&&Uw(e,n),e.staticViewQueries&&Ym(2,e.viewQuery,t);const s=e.components;null!==s&&function MI(e,n){for(let t=0;t<n.length;t++)SI(e,n[t])}(n,s)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{n[le]&=-5,Gg()}}function El(e,n,t,r){const i=ee(null);try{const s=n.tView,l=Dh(e,s,t,4096&e[le]?4096:16,null,n,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null);l[Qo]=e[n.index];const u=e[Ps];return null!==u&&(l[Ps]=u.createEmbeddedView(s)),Xm(s,l,t),l}finally{ee(i)}}function Ww(e,n){const t=mn+n;if(t<e.length)return e[t]}function ua(e,n){return!n||null===n.firstChild||Gc(e)}function Dl(e,n,t,r=!0){const i=n[j];if(function GM(e,n,t,r){const i=mn+r,s=t.length;r>0&&(t[i-1][Ii]=n),r<s-mn?(n[Ii]=t[i],Gv(t,mn+r,n)):(t.push(n),n[Ii]=null),n[Mn]=t;const o=n[Qo];null!==o&&t!==o&&ww(o,n);const a=n[Ps];null!==a&&a.insertView(e),Fg(n),n[le]|=128}(i,n,e,t),r){const o=Bm(t,e),a=n[ve],l=Vm(a,e[as]);null!==l&&function zM(e,n,t,r,i,s){r[Jt]=i,r[Qn]=n,Eh(e,r,t,1,i,s)}(i,e[Qn],a,n,l,o)}const s=n[fr];null!==s&&null!==s.firstChild&&(s.firstChild=null)}function Jm(e,n){const t=nu(e,n);return void 0!==t&&bh(t[j],t),t}function su(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(it(s)),sr(s)&&Zw(s,r);const o=t.type;if(8&o)su(e,n,t.child,r);else if(32&o){const a=km(t,n);let l;for(;l=a();)r.push(l)}else if(16&o){const a=Iw(n,t);if(Array.isArray(a))r.push(...a);else{const l=Os(n[en]);su(l[j],l,a,r,!0)}}t=i?t.projectionNext:t.next}return r}function Zw(e,n){for(let t=mn;t<e.length;t++){const r=e[t],i=r[j].firstChild;null!==i&&su(r[j],r,i,n)}e[as]!==e[Jt]&&n.push(e[as])}let Kw=[];const NI={...vt,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{zd(e.lView)},consumerOnSignalRead(){this.lView[ci]=this}},PI={...vt,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let n=Os(e.lView);for(;n&&!Yw(n[j]);)n=Os(n);n&&S_(n)},consumerOnSignalRead(){this.lView[ci]=this}};function Yw(e){return 2!==e.type}const OI=100;function Mh(e,n=!0,t=0){const r=e[os],i=r.rendererFactory;i.begin?.();try{!function RI(e,n){const t=k_();try{P_(!0),e1(e,n);let r=0;for(;Ud(e);){if(r===OI)throw new k(103,!1);r++,e1(e,1)}}finally{P_(t)}}(e,t)}catch(o){throw n&&Th(e,o),o}finally{i.end?.(),r.inlineEffectRunner?.flush()}}function LI(e,n,t,r){const i=n[le];if(!(256&~i))return;n[os].inlineEffectRunner?.flush(),qg(n);let a=!0,l=null,c=null;Yw(e)?(c=function II(e){return e[ci]??function AI(e){const n=Kw.pop()??Object.create(NI);return n.lView=e,n}(e)}(n),l=Ge(c)):null===function Q(){return K}()?(a=!1,c=function kI(e){const n=e[ci]??Object.create(PI);return n.lView=e,n}(n),l=Ge(c)):n[ci]&&(bn(n[ci]),n[ci]=null);try{D_(n),function O_(e){return _e.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==t&&Rw(e,n,t,2,r);const u=!(3&~i);if(u){const h=e.preOrderCheckHooks;null!==h&&Kd(n,h,null)}else{const h=e.preOrderHooks;null!==h&&Yd(n,h,0,null),Wg(n,0)}if(function FI(e){for(let n=T2(e);null!==n;n=M2(n)){if(!(n[le]&jd.HasTransplantedViews))continue;const t=n[dl];for(let r=0;r<t.length;r++)S_(t[r])}}(n),Xw(n,0),null!==e.contentQueries&&Uw(e,n),u){const h=e.contentCheckHooks;null!==h&&Kd(n,h)}else{const h=e.contentHooks;null!==h&&Yd(n,h,1),Wg(n,1)}!function tI(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)ta(~i);else{const s=i,o=t[++r],a=t[++r];kT(o,s),a(2,n[s])}}}finally{ta(-1)}}(e,n);const d=e.components;null!==d&&eb(n,d,0);const f=e.viewQuery;if(null!==f&&Ym(2,f,r),u){const h=e.viewCheckHooks;null!==h&&Kd(n,h)}else{const h=e.viewHooks;null!==h&&Yd(n,h,2),Wg(n,2)}if(!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),n[$d]){for(const h of n[$d])h();n[$d]=null}n[le]&=-73}catch(u){throw zd(n),u}finally{null!==c&&(It(c,l),a&&function xI(e){e.lView[ci]!==e&&(e.lView=null,Kw.push(e))}(c)),Gg()}}function Xw(e,n){for(let t=T2(e);null!==t;t=M2(t))for(let r=mn;r<t.length;r++)Jw(t[r],n)}function VI(e,n,t){Jw(zr(n,e),t)}function Jw(e,n){Lg(e)&&e1(e,n)}function e1(e,n){const r=e[j],i=e[le],s=e[ci];let o=!!(0===n&&16&i);if(o||=!!(64&i&&0===n),o||=!!(1024&i),o||=!(!s?.dirty||!sn(s)),o||=!1,s&&(s.dirty=!1),e[le]&=-9217,o)LI(r,e,r.template,e[Lt]);else if(8192&i){Xw(e,1);const a=r.components;null!==a&&eb(e,a,1)}}function eb(e,n,t){for(let r=0;r<n.length;r++)VI(e,n[r],t)}function ou(e,n){const t=k_()?64:1088;for(e[os].changeDetectionScheduler?.notify(n);e;){e[le]|=t;const r=Os(e);if(Lc(e)&&!r)return e;e=r}return null}class au{get rootNodes(){const n=this._lView,t=n[j];return su(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[Lt]}set context(n){this._lView[Lt]=n}get destroyed(){return!(256&~this._lView[le])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[Mn];if(sr(n)){const t=n[8],r=t?t.indexOf(this):-1;r>-1&&(nu(n,r),xd(t,r))}this._attachedToViewContainer=!1}bh(this._lView[j],this._lView)}onDestroy(n){qd(this._lView,n)}markForCheck(){ou(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[le]&=-129}reattach(){Fg(this._lView),this._lView[le]|=128}detectChanges(){this._lView[le]|=1024,Mh(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new k(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;const n=Lc(this._lView),t=this._lView[Qo];null!==t&&!n&&Rm(t,this._lView),_w(this._lView[j],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new k(902,!1);this._appRef=n;const t=Lc(this._lView),r=this._lView[Qo];null!==r&&!t&&ww(r,this._lView),Fg(this._lView)}}let ps=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=jI}return e})();const $I=ps,BI=class extends $I{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=El(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:t,dehydratedView:r});return new au(i)}};function jI(){return Ih(Ct(),x())}function Ih(e,n){return 4&e.type?new BI(n,e,gl(e,n)):null}let bb=()=>null;function ha(e,n){return bb(e,n)}class Tl{}const gu=new Z("",{providedIn:"root",factory:()=>!1}),Cb=new Z(""),d1=new Z("");class P7{}class Eb{}class R7{resolveComponentFactory(n){throw function O7(e){const n=Error(`No component factory found for ${Rn(e)}.`);return n.ngComponent=e,n}(n)}}class fa{static#e=this.NULL=new R7}class Oh{}let $s=(()=>{class e{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function L7(){const e=x(),t=zr(Ct().index,e);return($n(t)?t:e)[ve]}()}return e})(),F7=(()=>{class e{static#e=this.\u0275prov=te({token:e,providedIn:"root",factory:()=>null})}return e})();function Lh(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=tg(i,a):2==s&&(r=tg(r,a+": "+n[++o]+";"))}t?e.styles=r:e.stylesWithoutHost=r,t?e.classes=i:e.classesWithoutHost=i}class Mb extends fa{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const t=Be(n);return new vu(t,this.ngModule)}}function Ib(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]:fo.None)&fo.SignalBased)}:{propName:o,templateName:r})}return t}class vu extends Eb{get inputs(){const n=this.componentDef,t=n.inputTransforms,r=Ib(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 Ib(this.componentDef.outputs,!1)}constructor(n,t){super(),this.componentDef=n,this.ngModule=t,this.componentType=n.type,this.selector=function U6(e){return e.map(H6).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!t}create(n,t,r,i){const s=ee(null);try{let o=(i=i||this.ngModule)instanceof li?i:i?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const a=o?new na(n,o):n,l=a.get(Oh,null);if(null===l)throw new k(407,!1);const d={rendererFactory:l,sanitizer:a.get(F7,null),inlineEffectRunner:null,changeDetectionScheduler:a.get(Tl,null)},f=l.createRenderer(null,this.componentDef),h=this.componentDef.selectors[0][0]||"div",g=r?function rI(e,n,t,r){const s=r.get(W2,!1)||t===Ti.ShadowDom,o=e.selectRootElement(n,s);return function iI(e){Fw(e)}(o),o}(f,r,this.componentDef.encapsulation,a):wh(f,h,function B7(e){const n=e.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(h));let v=512;this.componentDef.signals?v|=4096:this.componentDef.onPush||(v|=16);let C=null;null!==g&&(C=_m(g,a,!0));const T=Gm(0,null,null,1,0,null,null,null,null,null,null),D=Dh(null,T,null,v,null,null,d,f,a,null,C);qg(D);let F,L,H=null;try{const U=this.componentDef;let ce,Fe=null;U.findHostDirectiveDefs?(ce=[],Fe=new Map,U.findHostDirectiveDefs(U,ce,Fe),ce.push(U)):ce=[U];const Et=function H7(e,n){const t=e[j],r=re;return e[r]=n,ca(t,r,2,"#host",null)}(D,g);H=function U7(e,n,t,r,i,s,o){const a=i[j];!function z7(e,n,t,r){for(const i of e)n.mergedAttrs=kc(n.mergedAttrs,i.hostAttrs);null!==n.mergedAttrs&&(Lh(n,n.mergedAttrs,!0),null!==t&&kw(r,t,n))}(r,e,n,o);let l=null;null!==n&&(l=_m(n,i[In]));const c=s.rendererFactory.createRenderer(n,t);let u=16;t.signals?u=4096:t.onPush&&(u=64);const d=Dh(i,Lw(t),null,u,i[e.index],e,s,c,null,null,l);return a.firstCreatePass&&Zm(a,e,r.length-1),Sh(i,d),i[e.index]=d}(Et,g,U,ce,D,d,f),L=Vc(T,re),g&&function G7(e,n,t,r){if(r)_g(e,t,["ng-version","18.2.3"]);else{const{attrs:i,classes:s}=function z6(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(!Mi(i))break;i=s}r++}return{attrs:n,classes:t}}(n.selectors[0]);i&&_g(e,t,i),s&&s.length>0&&Nw(e,t,s.join(" "))}}(f,U,g,r),void 0!==t&&function W7(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)}}(L,this.ngContentSelectors,t),F=function q7(e,n,t,r,i,s){const o=Ct(),a=i[j],l=pr(o,i);Bw(a,i,o,t,null,r);for(let u=0;u<t.length;u++)or(ra(i,a,o.directiveStart+u,o),i);jw(a,i,o),l&&or(l,i);const c=ra(i,a,o.directiveStart+o.componentOffset,o);if(e[Lt]=i[Lt]=c,null!==s)for(const u of s)u(c,n);return Um(a,o,i),c}(H,U,ce,Fe,D,[Z7]),Xm(T,D,null)}catch(U){throw null!==H&&um(H),um(D),U}finally{Gg()}return new j7(this.componentType,F,gl(L,D),D,L)}finally{ee(s)}}}class j7 extends P7{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 au(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;Qm(s[j],s,i,n,t),this.previousInputValues.set(n,t),ou(zr(this._tNode.index,s),1)}}get injector(){return new Bn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}function Z7(){const e=Ct();Zd(x()[j],e)}let Pi=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=K7}return e})();function K7(){return function Nb(e,n){let t;const r=n[e.index];return sr(r)?t=r:(t=Hw(r,n,null,e),n[e.index]=t,Sh(n,t)),kb(t,n,e,r),new Ab(t,e,n)}(Ct(),x())}const Y7=Pi,Ab=class extends Y7{constructor(n,t,r){super(),this._lContainer=n,this._hostTNode=t,this._hostLView=r}get element(){return gl(this._hostTNode,this._hostLView)}get injector(){return new Bn(this._hostTNode,this._hostLView)}get parentInjector(){const n=Jd(this._hostTNode,this._hostLView);if(Yg(n)){const t=Uc(n,this._hostLView),r=Hc(n);return new Bn(t[j].data[r+8],t)}return new Bn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const t=xb(this._lContainer);return null!==t&&t[n]||null}get length(){return this._lContainer.length-mn}createEmbeddedView(n,t,r){let i,s;"number"==typeof r?i=r:null!=r&&(i=r.index,s=r.injector);const o=ha(this._lContainer,n.ssrId),a=n.createEmbeddedViewImpl(t||{},s,o);return this.insertImpl(a,i,ua(this._hostTNode,o)),a}createComponent(n,t,r,i,s){const o=n&&!function Pc(e){return"function"==typeof e}(n);let a;if(o)a=t;else{const g=t||{};a=g.index,r=g.injector,i=g.projectableNodes,s=g.environmentInjector||g.ngModuleRef}const l=o?n:new vu(Be(n)),c=r||this.parentInjector;if(!s&&null==l.ngModule){const v=(o?c:this.parentInjector).get(li,null);v&&(s=v)}const u=Be(l.componentType??{}),d=ha(this._lContainer,u?.id??null),h=l.create(c,i,d?.firstChild??null,s);return this.insertImpl(h.hostView,a,ua(this._hostTNode,d)),h}insert(n,t){return this.insertImpl(n,t,!0)}insertImpl(n,t,r){const i=n._lView;if(function CT(e){return sr(e[Mn])}(i)){const a=this.indexOf(n);if(-1!==a)this.detach(a);else{const l=i[Mn],c=new Ab(l,l[Qn],l[Mn]);c.detach(c.indexOf(n))}}const s=this._adjustIndex(t),o=this._lContainer;return Dl(o,i,s,r),n.attachToViewContainerRef(),Gv(p1(o),s,n),n}move(n,t){return this.insert(n,t)}indexOf(n){const t=xb(this._lContainer);return null!==t?t.indexOf(n):-1}remove(n){const t=this._adjustIndex(n,-1),r=nu(this._lContainer,t);r&&(xd(p1(this._lContainer),t),bh(r[j],r))}detach(n){const t=this._adjustIndex(n,-1),r=nu(this._lContainer,t);return r&&null!=xd(p1(this._lContainer),t)?new au(r):null}_adjustIndex(n,t=0){return n??this.length+t}};function xb(e){return e[8]}function p1(e){return e[8]||(e[8]=[])}let kb=function Ob(e,n,t,r){if(e[as])return;let i;i=8&t.type?it(r):function Q7(e,n){const t=e[ve],r=t.createComment(""),i=pr(n,e);return aa(t,Vm(t,i),r,function KM(e,n){return e.nextSibling(n)}(t,i),!1),r}(n,t),e[as]=i},g1=()=>!1;const Hb=new Set;function mr(e){Hb.has(e)||(Hb.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function ot(e,n){mr("NgSignals");const t=function Zt(e){const n=Object.create(Wn);n.value=e;const t=()=>(dn(n),n.value);return t[Ye]=n,t}(e),r=t[Ye];return n?.equal&&(r.equal=n.equal),t.set=i=>Kt(r,i),t.update=i=>function hn(e,n){se()||Ce(),Kt(e,n(e.value))}(r,i),t.asReadonly=zb.bind(t),t}function zb(){const e=this[Ye];if(void 0===e.readonlyFn){const n=()=>this();n[Ye]=e,e.readonlyFn=n}return e.readonlyFn}function qb(e){return function Ub(e){return"function"==typeof e&&void 0!==e[Ye]}(e)&&"function"==typeof e.set}function at(e){let n=function nC(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),t=!0;const r=[e];for(;n;){let i;if(Ai(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 o=e;o.inputs=Vh(e.inputs),o.inputTransforms=Vh(e.inputTransforms),o.declaredInputs=Vh(e.declaredInputs),o.outputs=Vh(e.outputs);const a=i.hostBindings;a&&wA(e,a);const l=i.viewQuery,c=i.contentQueries;if(l&&vA(e,l),c&&_A(e,c),mA(e,i),u6(e.outputs,i.outputs),Ai(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===at&&(t=!1)}}n=Object.getPrototypeOf(n)}!function yA(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=kc(i.hostAttrs,t=kc(t,i.hostAttrs))}}(r)}function mA(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 Vh(e){return e===is?{}:e===rt?[]:e}function vA(e,n){const t=e.viewQuery;e.viewQuery=t?(r,i)=>{n(r,i),t(r,i)}:n}function _A(e,n){const t=e.contentQueries;e.contentQueries=t?(r,i,s)=>{n(r,i,s),t(r,i,s)}:n}function wA(e,n){const t=e.hostBindings;e.hostBindings=t?(r,i)=>{n(r,i),t(r,i)}:n}class ga{}class MA{}class D1 extends ga{constructor(n,t,r,i=!0){super(),this.ngModuleType=n,this._parent=t,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Mb(this);const s=function ir(e,n){const t=e[Bv]||null;if(!t&&!0===n)throw new Error(`Type ${Rn(e)} does not have '\u0275mod' property.`);return t}(n);this._bootstrapComponents=function Zr(e){return e instanceof Function?e():e}(s.bootstrap),this._r3Injector=a2(n,t,[{provide:ga,useValue:this},{provide:fa,useValue:this.componentFactoryResolver},...r],Rn(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 S1 extends MA{constructor(n){super(),this.moduleType=n}create(n){return new D1(this.moduleType,n,[])}}class oC extends ga{constructor(n){super(),this.componentFactoryResolver=new Mb(this),this.instance=null;const t=new il([...n.providers,{provide:ga,useValue:this},{provide:fa,useValue:this.componentFactoryResolver}],n.parent||Fd(),n.debugName,new Set(["environment"]));this.injector=t,n.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function gs(e,n,t){return e[n]=t}function yn(e,n,t){return!Object.is(e[n],t)&&(e[n]=t,!0)}function ma(e,n,t,r){const i=yn(e,n,t);return yn(e,n+1,r)||i}function bu(e,n,t,r,i,s,o,a,l,c){const u=t+re,d=n.firstCreatePass?function OA(e,n,t,r,i,s,o,a,l){const c=n.consts,u=ca(n,e,4,o||null,a||null);Wm(n,t,u,ui(c,l)),Zd(n,u);const d=u.tView=Gm(2,u,r,i,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c,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,l):n.data[u];Ni(d,!1);const f=lC(n,e,d,t);Bc()&&Ch(n,e,f,d),or(f,e);const h=Hw(f,e,f,d);return e[u]=h,Sh(e,h),function Pb(e,n,t){return g1(e,n,t)}(h,d,e),Hd(d)&&zm(n,e,d),null!=l&&qm(e,d,c),d}function et(e,n,t,r,i,s,o,a){const l=x(),c=Le();return bu(l,c,e,n,t,r,i,ui(c.consts,s),o,a),et}let lC=function cC(e,n,t,r){return cs(!0),n[ve].createComment("")};var xl=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(xl||{});let gC=(()=>{class e{constructor(){this.impl=null}execute(){this.impl?.execute()}static#e=this.\u0275prov=te({token:e,providedIn:"root",factory:()=>new e})}return e})();class Du{constructor(){this.ngZone=q(st),this.scheduler=q(Tl),this.errorHandler=q(ds,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static#e=this.PHASES=[xl.EarlyRead,xl.Write,xl.MixedReadWrite,xl.Read];execute(){this.executing=!0;for(const n of Du.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=te({token:Du,providedIn:"root",factory:()=>new Du})}function er(e,n,t,r){const i=x();return yn(i,ki(),n)&&(Le(),fs(Ft(),i,e,n,t,r)),er}function Gh(e,n){return e<<17|n<<2}function bo(e){return e>>17&32767}function V1(e){return 2|e}function va(e){return(131068&e)>>2}function $1(e,n){return-131069&e|n<<2}function B1(e){return 1|e}function UC(e,n,t,r){const i=e[t+1],s=null===n;let o=r?bo(i):va(i),a=!1;for(;0!==o&&(!1===a||s);){const c=e[o+1];Cx(e[o],n)&&(a=!0,e[o+1]=r?B1(c):V1(c)),o=r?bo(c):va(c)}a&&(e[t+1]=r?V1(i):B1(i))}function Cx(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&nl(e,n)>=0}const jn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function zC(e){return e.substring(jn.key,jn.keyEnd)}function qC(e,n){const t=jn.textEnd;return t===n?-1:(n=jn.keyEnd=function Tx(e,n,t){for(;n<t&&e.charCodeAt(n)>32;)n++;return n}(e,jn.key=n,t),ql(e,n,t))}function ql(e,n,t){for(;n<t&&e.charCodeAt(n)<=32;)n++;return n}function ie(e,n,t){const r=x();return yn(r,ki(),n)&&Pr(Le(),Ft(),r,e,n,r[ve],t,!1),ie}function j1(e,n,t,r,i){const o=i?"class":"style";Qm(e,t,n.inputs[o],o,r)}function Gl(e,n,t){return Ri(e,n,t,!1),Gl}function Oi(e,n){return Ri(e,n,null,!0),Oi}function Bs(e){!function Li(e,n,t,r){const i=Le(),s=Ls(2);i.firstUpdatePass&&QC(i,null,s,r);const o=x();if(t!==Ie&&yn(o,s,t)){const a=i.data[Xn()];if(tE(a,r)&&!YC(i,s)){let l=r?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(t=tg(l,t||"")),j1(i,a,o,t,r)}else!function Lx(e,n,t,r,i,s,o,a){i===Ie&&(i=rt);let l=0,c=0,u=0<i.length?i[0]:null,d=0<s.length?s[0]:null;for(;null!==u||null!==d;){const f=l<i.length?i[l+1]:void 0,h=c<s.length?s[c+1]:void 0;let v,g=null;u===d?(l+=2,c+=2,f!==h&&(g=d,v=h)):null===d||null!==u&&u<d?(l+=2,g=u):(c+=2,g=d,v=h),null!==g&&JC(e,n,t,r,g,v,o,a),u=l<i.length?i[l]:null,d=c<s.length?s[c]:null}}(i,a,o,o[ve],o[s+1],o[s+1]=function Ox(e,n,t){if(null==t||""===t)return rt;const r=[],i=Gr(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)}}(Rx,ys,e,!0)}function ys(e,n){for(let t=function Dx(e){return function WC(e){jn.key=0,jn.keyEnd=0,jn.value=0,jn.valueEnd=0,jn.textEnd=e.length}(e),qC(e,ql(e,0,jn.textEnd))}(n);t>=0;t=qC(n,t))Ur(e,zC(n),!0)}function Ri(e,n,t,r){const i=x(),s=Le(),o=Ls(2);s.firstUpdatePass&&QC(s,e,o,r),n!==Ie&&yn(i,o,n)&&JC(s,s.data[Xn()],i,i[ve],e,i[o+1]=function Fx(e,n){return null==e||""===e||("string"==typeof n?e+=n:"object"==typeof e&&(e=Rn(Gr(e)))),e}(n,t),r,o)}function YC(e,n){return n>=e.expandoStartIndex}function QC(e,n,t,r){const i=e.data;if(null===i[t+1]){const s=i[Xn()],o=YC(e,t);tE(s,r)&&null===n&&!o&&(n=!1),n=function xx(e,n,t,r){const i=Ug(e);let s=r?n.residualClasses:n.residualStyles;if(null===i)0===(r?n.classBindings:n.styleBindings)&&(t=Tu(t=H1(null,e,n,t,r),n.attrs,r),s=null);else{const o=n.directiveStylingLast;if(-1===o||e[o]!==i)if(t=H1(i,e,n,t,r),null===s){let l=function Nx(e,n,t){const r=t?n.classBindings:n.styleBindings;if(0!==va(r))return e[bo(r)]}(e,n,r);void 0!==l&&Array.isArray(l)&&(l=H1(null,e,n,l[1],r),l=Tu(l,n.attrs,r),function kx(e,n,t,r){e[bo(t?n.classBindings:n.styleBindings)]=r}(e,n,r,l))}else s=function Px(e,n,t){let r;const i=n.directiveEnd;for(let s=1+n.directiveStylingLast;s<i;s++)r=Tu(r,e[s].hostAttrs,t);return Tu(r,n.attrs,t)}(e,n,r)}return void 0!==s&&(r?n.residualClasses=s:n.residualStyles=s),t}(i,s,n,r),function wx(e,n,t,r,i,s){let o=s?n.classBindings:n.styleBindings,a=bo(o),l=va(o);e[r]=t;let u,c=!1;if(Array.isArray(t)?(u=t[1],(null===u||nl(t,u)>0)&&(c=!0)):u=t,i)if(0!==l){const f=bo(e[a+1]);e[r+1]=Gh(f,a),0!==f&&(e[f+1]=$1(e[f+1],r)),e[a+1]=function vx(e,n){return 131071&e|n<<17}(e[a+1],r)}else e[r+1]=Gh(a,0),0!==a&&(e[a+1]=$1(e[a+1],r)),a=r;else e[r+1]=Gh(l,0),0===a?a=r:e[l+1]=$1(e[l+1],r),l=r;c&&(e[r+1]=V1(e[r+1])),UC(e,u,r,!0),UC(e,u,r,!1),function bx(e,n,t,r,i){const s=i?e.residualClasses:e.residualStyles;null!=s&&"string"==typeof n&&nl(s,n)>=0&&(t[r+1]=B1(t[r+1]))}(n,u,e,r,s),o=Gh(a,l),s?n.classBindings=o:n.styleBindings=o}(i,s,n,t,o,r)}}function H1(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=Tu(r,s.hostAttrs,i),s!==e);)a++;return null!==e&&(t.directiveStylingLast=a),r}function Tu(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]),Ur(e,o,!!t||n[++s]))}return void 0===e?null:e}function Rx(e,n,t){const r=String(n);""!==r&&!r.includes(" ")&&Ur(e,r,t)}function JC(e,n,t,r,i,s,o,a){if(!(3&n.type))return;const l=e.data,c=l[a+1],u=function _x(e){return!(1&~e)}(c)?eE(l,n,t,i,va(c),o):void 0;Wh(u)||(Wh(s)||function yx(e){return!(2&~e)}(c)&&(s=eE(l,null,t,i,a,o)),function XM(e,n,t,r,i){if(n)i?e.addClass(t,r):e.removeClass(t,r);else{let s=-1===r.indexOf("-")?void 0:vo.DashCase;null==i?e.removeStyle(t,r,s):("string"==typeof i&&i.endsWith("!important")&&(i=i.slice(0,-10),s|=vo.Important),e.setStyle(t,r,i,s))}}(r,o,Fc(Xn(),t),i,s))}function eE(e,n,t,r,i,s){const o=null===n;let a;for(;i>0;){const l=e[i],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let f=t[i+1];f===Ie&&(f=d?rt:void 0);let h=d?yg(f,r):u===r?f:void 0;if(c&&!Wh(h)&&(h=yg(l,r)),Wh(h)&&(a=h,o))return a;const g=e[i+1];i=o?bo(g):va(g)}if(null!==n){let l=s?n.residualClasses:n.residualStyles;null!=l&&(a=yg(l,r))}return a}function Wh(e){return void 0!==e}function tE(e,n){return!!(e.flags&(n?8:16))}class Zx{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 U1(e,n,t,r,i){return e===t&&Object.is(n,r)?1:Object.is(i(e,n),i(t,r))?-1:0}function z1(e,n,t,r){return!(void 0===n||!n.has(r)||(e.attach(t,n.get(r)),n.delete(r),0))}function nE(e,n,t,r,i){if(z1(e,n,r,t(r,i)))e.updateValue(r,i);else{const s=e.create(r,i);e.attach(r,s)}}function rE(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 iE{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 ut(e,n){mr("NgControlFlow");const t=x(),r=ki(),i=t[r]!==Ie?t[r]:-1,s=-1!==i?Zh(t,re+i):void 0;if(yn(t,r,e)){const a=ee(null);try{if(void 0!==s&&Jm(s,0),-1!==e){const l=re+e,c=Zh(t,l),u=q1(t[j],l),d=ha(c,u.tView.ssrId);Dl(c,El(t,u,n,{dehydratedView:d}),0,ua(u,d))}}finally{ee(a)}}else if(void 0!==s){const a=Ww(s,0);void 0!==a&&(a[Lt]=n)}}class Yx{constructor(n,t,r){this.lContainer=n,this.$implicit=t,this.$index=r}get $count(){return this.lContainer.length-mn}}function js(e){return e}function sE(e,n){return n}class Qx{constructor(n,t,r){this.hasEmptyBlock=n,this.trackByFn=t,this.liveCollection=r}}function Fi(e,n,t,r,i,s,o,a,l,c,u,d,f){mr("NgControlFlow");const h=x(),g=Le(),v=void 0!==l,C=x(),T=a?o.bind(C[en][Lt]):o,D=new Qx(v,T);C[re+e]=D,bu(h,g,e+1,n,t,r,i,ui(g.consts,s)),v&&bu(h,g,e+2,l,c,u,d,ui(g.consts,f))}class Xx extends Zx{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-mn}at(n){return this.getLView(n)[Lt].$implicit}attach(n,t){const r=t[fr];this.needsIndexUpdate||=n!==this.length,Dl(this.lContainer,t,n,ua(this.templateTNode,r))}detach(n){return this.needsIndexUpdate||=n!==this.length-1,function Jx(e,n){return nu(e,n)}(this.lContainer,n)}create(n,t){const r=ha(this.lContainer,this.templateTNode.tView.ssrId),i=El(this.hostLView,this.templateTNode,new Yx(this.lContainer,t,n),{dehydratedView:r});return this.operationsCounter?.recordCreate(),i}destroy(n){bh(n[j],n),this.operationsCounter?.recordDestroy()}updateValue(n,t){this.getLView(n)[Lt].$implicit=t}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let n=0;n<this.length;n++)this.getLView(n)[Lt].$index=n}getLView(n){return function eN(e,n){return Ww(e,n)}(this.lContainer,n)}}function Vi(e){const n=ee(null),t=Xn();try{const r=x(),i=r[j],s=r[t],o=t+1,a=Zh(r,o);if(void 0===s.liveCollection){const c=q1(i,o);s.liveCollection=new Xx(a,r,c)}else s.liveCollection.reset();const l=s.liveCollection;if(function Kx(e,n,t){let r,i,s=0,o=e.length-1;if(Array.isArray(n)){let l=n.length-1;for(;s<=o&&s<=l;){const c=e.at(s),u=n[s],d=U1(s,c,s,u,t);if(0!==d){d<0&&e.updateValue(s,u),s++;continue}const f=e.at(o),h=n[l],g=U1(o,f,l,h,t);if(0!==g){g<0&&e.updateValue(o,h),o--,l--;continue}const v=t(s,c),C=t(o,f),T=t(s,u);if(Object.is(T,C)){const D=t(l,h);Object.is(D,v)?(e.swap(s,o),e.updateValue(o,h),l--,o--):e.move(o,s),e.updateValue(s,u),s++}else if(r??=new iE,i??=rE(e,s,o,t),z1(e,r,s,T))e.updateValue(s,u),s++,o++;else if(i.has(T))r.set(v,e.detach(s)),o--;else{const D=e.create(s,n[s]);e.attach(s,D),s++,o++}}for(;s<=l;)nE(e,r,t,s,n[s]),s++}else if(null!=n){const l=n[Symbol.iterator]();let c=l.next();for(;!c.done&&s<=o;){const u=e.at(s),d=c.value,f=U1(s,u,s,d,t);if(0!==f)f<0&&e.updateValue(s,d),s++,c=l.next();else{r??=new iE,i??=rE(e,s,o,t);const h=t(s,d);if(z1(e,r,s,h))e.updateValue(s,d),s++,o++,c=l.next();else if(i.has(h)){const g=t(s,u);r.set(g,e.detach(s)),o--}else e.attach(s,e.create(s,d)),s++,o++,c=l.next()}}for(;!c.done;)nE(e,r,t,e.length,c.value),c=l.next()}for(;s<=o;)e.destroy(e.detach(o--));r?.forEach(l=>{e.destroy(l)})}(l,e,s.trackByFn),l.updateIndexes(),s.hasEmptyBlock){const c=ki(),u=0===l.length;if(yn(r,c,u)){const d=t+2,f=Zh(r,d);if(u){const h=q1(i,d),g=ha(f,h.tView.ssrId);Dl(f,El(r,h,void 0,{dehydratedView:g}),0,ua(h,g))}else Jm(f,0)}}}finally{ee(n)}}function Zh(e,n){return e[n]}function q1(e,n){return Vc(e,n)}function G(e,n,t,r){const i=x(),s=Le(),o=re+e,a=i[ve],l=s.firstCreatePass?function tN(e,n,t,r,i,s){const o=n.consts,l=ca(n,e,2,r,ui(o,i));return Wm(n,t,l,ui(o,s)),null!==l.attrs&&Lh(l,l.attrs,!1),null!==l.mergedAttrs&&Lh(l,l.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,l),l}(o,s,i,n,t,r):s.data[o],c=oE(s,i,l,a,n,e);i[o]=c;const u=Hd(l);return Ni(l,!0),kw(a,c,l),!function Il(e){return!(32&~e.flags)}(l)&&Bc()&&Ch(s,i,c,l),0===function ET(){return _e.lFrame.elementDepthCount}()&&or(c,i),function DT(){_e.lFrame.elementDepthCount++}(),u&&(zm(s,i,l),Um(s,l,i)),null!==r&&qm(i,l),G}function W(){let e=Ct();Bg()?jg():(e=e.parent,Ni(e,!1));const n=e;(function TT(e){return _e.skipHydrationRootTNode===e})(n)&&function xT(){_e.skipHydrationRootTNode=null}(),function ST(){_e.lFrame.elementDepthCount--}();const t=Le();return t.firstCreatePass&&(Zd(t,e),Ng(e)&&t.queries.elementEnd(e)),null!=n.classesWithoutHost&&function UT(e){return!!(8&e.flags)}(n)&&j1(t,n,x(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function zT(e){return!!(16&e.flags)}(n)&&j1(t,n,x(),n.stylesWithoutHost,!1),W}function gt(e,n,t,r){return G(e,n,t,r),W(),gt}let oE=(e,n,t,r,i,s)=>(cs(!0),wh(r,i,function j_(){return _e.lFrame.currentNamespace}()));function Wl(e,n,t){const r=x(),i=Le(),s=e+re,o=i.firstCreatePass?function iN(e,n,t,r,i){const s=n.consts,o=ui(s,r),a=ca(n,e,8,"ng-container",o);return null!==o&&Lh(a,o,!0),Wm(n,t,a,ui(s,i)),null!==n.queries&&n.queries.elementStart(n,a),a}(s,i,r,n,t):i.data[s];Ni(o,!0);const a=aE(i,r,o,e);return r[s]=a,Bc()&&Ch(i,r,a,o),or(a,r),Hd(o)&&(zm(i,r,o),Um(i,o,r)),null!=t&&qm(r,o),Wl}function Zl(){let e=Ct();const n=Le();return Bg()?jg():(e=e.parent,Ni(e,!1)),n.firstCreatePass&&(Zd(n,e),Ng(e)&&n.queries.elementEnd(e)),Zl}function Kl(e,n,t){return Wl(e,n,t),Zl(),Kl}let aE=(e,n,t,r)=>(cs(!0),Om(n[ve],""));function ar(){return x()}function Kh(e,n,t){const r=x();if(yn(r,ki(),n)){const s=Le(),o=Ft();Pr(s,o,r,e,n,Gw(Ug(s.data),o,r),t,!0)}return Kh}const Yh="en-US";let dE=Yh,AE=(e,n,t)=>{};function Ke(e,n,t,r){const i=x(),s=Le(),o=Ct();return Z1(s,i,i[ve],o,e,n,r),Ke}function Z1(e,n,t,r,i,s,o){const a=Hd(r),c=e.firstCreatePass&&function qw(e){return e.cleanup??=[]}(e),u=n[Lt],d=function zw(e){return e[al]??=[]}(n);let f=!0;if(3&r.type||o){const v=pr(r,n),C=o?o(v):v,T=d.length,D=o?L=>o(it(L[r.index])):r.index;let F=null;if(!o&&a&&(F=function QN(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[al],l=i[s+2];return a.length>l?a[l]:null}"string"==typeof o&&(s+=2)}return null}(e,n,i,r.index)),null!==F)(F.__ngLastListenerFn__||F).__ngNextListenerFn__=s,F.__ngLastListenerFn__=s,f=!1;else{s=PE(r,n,u,s),AE(v,i,s);const L=t.listen(C,i,s);d.push(s,L),c&&c.push(i,D,T,T+1)}}else s=PE(r,n,u,s);const h=r.outputs;let g;if(f&&null!==h&&(g=h[i])){const v=g.length;if(v)for(let C=0;C<v;C+=2){const H=n[g[C]][g[C+1]].subscribe(s),U=d.length;d.push(s,H),c&&c.push(i,r.index,U,-(U+1))}}}function kE(e,n,t,r){const i=ee(null);try{return ls(6,n,t),!1!==t(r)}catch(s){return Th(e,s),!1}finally{ls(7,n,t),ee(i)}}function PE(e,n,t,r){return function i(s){if(s===Function)return r;ou(e.componentOffset>-1?zr(e.index,n):n,5);let a=kE(n,t,r,s),l=i.__ngNextListenerFn__;for(;l;)a=kE(n,t,l,s)&&a,l=l.__ngNextListenerFn__;return a}}function J(e=1){return function RT(e){return(_e.lFrame.contextLView=function T_(e,n){for(;e>0;)n=n[ll],e--;return n}(e,_e.lFrame.contextLView))[Lt]}(e)}function XN(e,n){let t=null;const r=function V6(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?e_(e,s,!0):j6(r,s))return i}else t=i}return t}function K1(e,n=0,t,r,i,s){const o=x(),a=Le(),l=r?e+1:null;null!==l&&bu(o,a,l,r,i,s,null,t);const c=ca(a,re+e,16,null,t||null);null===c.projection&&(c.projection=n),jg();const d=!o[fr]||ea();null===o[en][Qn].projection[c.projection]&&null!==l?function JN(e,n,t){const r=re+t,i=n.data[r],s=e[r],o=ha(s,i.tView.ssrId);Dl(s,El(e,i,void 0,{dehydratedView:o}),0,ua(i,o))}(o,a,l):d&&32&~c.flags&&function YM(e,n,t){xw(n[ve],0,n,t,Fm(e,t,n),Dw(t.parent||n[Qn],t,n))}(a,o,c)}function Q1(e,n,t,r){t>=e.data.length&&(e.data[t]=null,e.blueprint[t]=null),n[t]=r}function X1(e){return Jo(x_(),re+e)}function De(e,n=""){const t=x(),r=Le(),i=e+re,s=r.firstCreatePass?ca(r,i,1,n,null):r.data[i],o=JE(r,t,s,n,e);t[i]=o,Bc()&&Ch(r,t,o,s),Ni(s,!1)}let JE=(e,n,t,r,i)=>(cs(!0),function Pm(e,n){return e.createText(n)}(n[ve],r));function tr(e){return Gt("",e,""),tr}function Gt(e,n,t){const r=x(),i=function Fl(e,n,t,r){return yn(e,ki(),t)?n+Me(t)+r:Ie}(r,e,n,t);return i!==Ie&&function Vs(e,n,t){const r=Fc(n,e);!function vw(e,n,t){e.setValue(n,t)}(e[ve],r,t)}(r,Xn(),i),Gt}function J1(e,n,t){qb(n)&&(n=n());const r=x();return yn(r,ki(),n)&&Pr(Le(),Ft(),r,e,n,r[ve],t,!1),J1}function e0(e,n){const t=x(),r=Le(),i=Ct();return Z1(r,t,t[ve],i,e,n),e0}const c8={};function hi(e){const n=Le(),t=x(),r=e+re;return Ni(ca(n,r,128,null,null),!1),Q1(n,t,r,c8),hi}function Qr(e){return mr("NgLet"),Q1(Le(),x(),Xn(),e),e}function Hn(e){const t=Jo(x_(),re+e);if(t===c8)throw new k(314,!1);return t}function t0(e,n,t,r,i){if(e=ye(e),Array.isArray(e))for(let s=0;s<e.length;s++)t0(e[s],n,t,r,i);else{const s=Le(),o=x(),a=Ct();let l=Yo(e)?e:ye(e.provide);const c=l_(e),u=1048575&a.providerIndexes,d=a.directiveStart,f=a.providerIndexes>>20;if(Yo(e)||!e.multi){const h=new jc(c,i,A),g=r0(l,n,i?u:u+f,d);-1===g?(Jg(Xd(a,o),s,l),n0(s,e,n.length),n.push(l),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),t.push(h),o.push(h)):(t[g]=h,o[g]=h)}else{const h=r0(l,n,u+f,d),g=r0(l,n,u,u+f),C=g>=0&&t[g];if(i&&!C||!i&&!(h>=0&&t[h])){Jg(Xd(a,o),s,l);const T=function bk(e,n,t,r,i){const s=new jc(e,t,A);return s.multi=[],s.index=n,s.componentProviders=0,u8(s,i,r&&!t),s}(i?wk:_k,t.length,i,r,c);!i&&C&&(t[g].providerFactory=T),n0(s,e,n.length,0),n.push(l),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),t.push(T),o.push(T)}else n0(s,e,h>-1?h:g,u8(t[i?g:h],c,!i&&r));!i&&r&&C&&t[g].componentProviders++}}}function n0(e,n,t,r){const i=Yo(n),s=function Q6(e){return!!e.useClass}(n);if(i||s){const l=(s?ye(n.useClass):n).prototype.ngOnDestroy;if(l){const c=e.destroyHooks||(e.destroyHooks=[]);if(!i&&n.multi){const u=c.indexOf(t);-1===u?c.push(t,[r,l]):c[u+1].push(r,l)}else c.push(t,l)}}}function u8(e,n,t){return t&&e.componentProviders++,e.multi.push(n)-1}function r0(e,n,t,r){for(let i=t;i<r;i++)if(n[i]===e)return i;return-1}function _k(e,n,t,r){return s0(this.multi,[])}function wk(e,n,t,r){const i=this.multi;let s;if(this.providerFactory){const o=this.providerFactory.componentProviders,a=ra(t,t[j],this.providerFactory.index,r);s=a.slice(0,o),s0(i,s);for(let l=o;l<a.length;l++)s.push(a[l])}else s=[],s0(i,s);return s}function s0(e,n){for(let t=0;t<e.length;t++)n.push((0,e[t])());return n}function $t(e,n=[]){return t=>{t.providersResolver=(r,i)=>function vk(e,n,t){const r=Le();if(r.firstCreatePass){const i=Ai(e);t0(t,r.data,r.blueprint,i,!0),t0(n,r.data,r.blueprint,i,!1)}}(r,i?i(e):e,n)}}let Ck=(()=>{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=bg(0,t.type),i=r.length>0?function aC(e,n,t=null){return new oC({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=te({token:e,providedIn:"environment",factory:()=>new e(X(li))})}return e})();function o0(e){mr("NgStandalone"),e.getStandaloneInjector=n=>n.get(Ck).getOrCreateStandaloneInjector(e)}function a0(e,n,t,r){return f8(x(),gr(),e,n,t,r)}function ku(e,n){const t=e[n];return t===Ie?void 0:t}function f8(e,n,t,r,i,s){const o=n+t;return yn(e,o,i)?gs(e,o+1,s?r.call(s,i):r(i)):ku(e,o+1)}function g8(e,n,t,r,i,s,o,a){const l=n+t;return function Bh(e,n,t,r,i){const s=ma(e,n,t,r);return yn(e,n+2,i)||s}(e,l,i,s,o)?gs(e,l+3,a?r.call(a,i,s,o):r(i,s,o)):ku(e,l+3)}function m8(e,n,t,r,i,s,o,a,l){const c=n+t;return function di(e,n,t,r,i,s){const o=ma(e,n,t,r);return ma(e,n+2,i,s)||o}(e,c,i,s,o,a)?gs(e,c+4,l?r.call(l,i,s,o,a):r(i,s,o,a)):ku(e,c+4)}function Bt(e,n){const t=Le();let r;const i=e+re;t.firstCreatePass?(r=function Rk(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=Zo(r.type)),a=xr(A);try{const l=Qd(!1),c=s();return Qd(l),Q1(t,x(),i,c),c}finally{xr(a)}}function Pu(e,n,t){const r=e+re,i=x(),s=Jo(i,r);return Ou(i,r)?f8(i,gr(),n,s.transform,t,s):s.transform(t)}function lr(e,n,t,r){const i=e+re,s=x(),o=Jo(s,i);return Ou(s,i)?function p8(e,n,t,r,i,s,o){const a=n+t;return ma(e,a,i,s)?gs(e,a+2,o?r.call(o,i,s):r(i,s)):ku(e,a+2)}(s,gr(),n,o.transform,t,r,o):o.transform(t,r)}function Ql(e,n,t,r,i){const s=e+re,o=x(),a=Jo(o,s);return Ou(o,s)?g8(o,gr(),n,a.transform,t,r,i,a):a.transform(t,r,i)}function Ou(e,n){return e[j].data[n].pure}function l0(e,n){return Ih(e,n)}const V8=new Z(""),sf=new Z("");let m0,p0=(()=>{class e{constructor(t,r,i){this._ngZone=t,this.registry=r,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,m0||(function xP(e){m0=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:()=>{st.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)(X(st),X(g0),X(sf))};static#t=this.\u0275prov=te({token:e,factory:e.\u0275fac})}return e})(),g0=(()=>{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 m0?.findTestabilityInTree(this,t,r)??null}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=te({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function af(e){return!!e&&"function"==typeof e.then}function $8(e){return!!e&&"function"==typeof e.subscribe}const NP=new Z("");let B8=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,r)=>{this.resolve=t,this.reject=r}),this.appInits=q(NP,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const t=[];for(const i of this.appInits){const s=i();if(af(s))t.push(s);else if($8(s)){const o=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});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=te({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const y0=new Z("");function H8(e,n){return Array.isArray(n)?n.reduce(H8,e):{...e,...n}}let fi=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=q(v9),this.afterRenderManager=q(gC),this.zonelessEnabled=q(gu),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new pn,this.afterTick=new pn,this.componentTypes=[],this.components=[],this.isStable=q(ia).hasPendingTasks.pipe(gn(t=>!t)),this._injector=q(li)}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 Eb;if(!this._injector.get(B8).done)throw!i&&function Ko(e){const n=Be(e)||Fn(e)||Yn(e);return null!==n&&n.standalone}(t),new k(405,!1);let o;o=i?t:this._injector.get(fa).resolveComponentFactory(t),this.componentTypes.push(o.componentType);const a=function kP(e){return e.isBoundToModule}(o)?void 0:this._injector.get(ga),c=o.create(kt.NULL,[],r||o.selector,a),u=c.location.nativeElement,d=c.injector.get(V8,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),lf(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new k(101,!1);const t=ee(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,ee(t),this.afterTick.next()}}synchronize(){let t=null;this._injector.destroyed||(t=this._injector.get(Oh,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)RP(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})=>Ud(t))?this.dirtyFlags|=2:this.dirtyFlags&=-8}attachView(t){const r=t;this._views.push(r),r.attachToAppRef(this)}detachView(t){const r=t;lf(this._views,r),r.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t);const r=this._injector.get(y0,[]);[...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),()=>lf(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=te({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function lf(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function RP(e,n,t,r){(t||Ud(e))&&Mh(e,n,t&&!r?0:1)}let $P=(()=>{class e{constructor(){this.zone=q(st),this.changeDetectionScheduler=q(Tl),this.applicationRef=q(fi)}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=te({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function v0({ngZoneFactory:e,ignoreChangesOutsideZone:n,scheduleInRootZone:t}){return e??=()=>new st({..._0(),scheduleInRootZone:t}),[{provide:st,useFactory:e},{provide:ss,multi:!0,useFactory:()=>{const r=q($P,{optional:!0});return()=>r.initialize()}},{provide:ss,multi:!0,useFactory:()=>{const r=q(jP);return()=>{r.initialize()}}},!0===n?{provide:Cb,useValue:!0}:[],{provide:d1,useValue:t??c2}]}function _0(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}let jP=(()=>{class e{constructor(){this.subscription=new lt,this.initialized=!1,this.zone=q(st),this.pendingTasks=q(ia)}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(()=>{st.assertNotInAngularZone(),queueMicrotask(()=>{null!==t&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(t),t=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{st.assertInAngularZone(),t??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=te({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Vu=(()=>{class e{constructor(){this.appRef=q(fi),this.taskService=q(ia),this.ngZone=q(st),this.zonelessEnabled=q(gu),this.disableScheduling=q(Cb,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new lt,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(ih):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(q(d1,{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 om||!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?d2:u2;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(ih+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,d2(()=>{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=te({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Co=new Z("",{providedIn:"root",factory:()=>q(Co,Ze.Optional|Ze.SkipSelf)||function HP(){return typeof $localize<"u"&&$localize.locale||Yh}()}),b0=new Z("");function uf(e){return!!e.platformInjector}let K8=(()=>{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=[v0({ngZoneFactory:()=>function y9(e="zone.js",n){return"noop"===e?new om:"zone.js"===e?new st(n):e}(r?.ngZone,{..._0({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}),scheduleInRootZone:i}),ignoreChangesOutsideZone:o}),{provide:Tl,useExisting:Vu}],l=function AA(e,n,t){return new D1(e,n,t,!1)}(t.moduleType,this.injector,a);return function Z8(e){const n=uf(e)?e.r3Injector:e.moduleRef.injector,t=n.get(st);return t.run(()=>{uf(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();const r=n.get(ds,null);let i;if(t.runOutsideAngular(()=>{i=t.onError.subscribe({next:s=>{r.handleError(s)}})}),uf(e)){const s=()=>n.destroy(),o=e.platformInjector.get(b0);o.add(s),n.onDestroy(()=>{i.unsubscribe(),o.delete(s)})}else e.moduleRef.onDestroy(()=>{lf(e.allPlatformModules,e.moduleRef),i.unsubscribe()});return function OP(e,n,t){try{const r=t();return af(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(B8);return s.runInitializers(),s.donePromise.then(()=>{if(function fN(e){"string"==typeof e&&(dE=e.toLowerCase().replace(/_/g,"-"))}(n.get(Co,Yh)||Yh),uf(e)){const a=n.get(fi);return void 0!==e.rootComponent&&a.bootstrap(e.rootComponent),a}return function ZP(e,n){const t=e.injector.get(fi);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:l,allPlatformModules:this._modules})}bootstrapModule(t,r=[]){const i=H8({},r);return function VP(e,n,t){const r=new S1(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 k(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const t=this._injector.get(b0,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)(X(kt))};static#t=this.\u0275prov=te({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),Eo=null;const Y8=new Z("");function Q8(e,n,t=[]){const r=`Platform: ${n}`,i=new Z(r);return(s=[])=>{let o=C0();if(!o||o.injector.get(Y8,!1)){const a=[...t,...s,{provide:i,useValue:!0}];e?e(a):function KP(e){if(Eo&&!Eo.get(Y8,!1))throw new k(400,!1);(function j8(){!function We(e){_t=e}(()=>{throw new k(600,!1)})})(),Eo=e;const n=e.get(K8);(function J8(e){e.get(L2,null)?.forEach(t=>t())})(e)}(function X8(e=[],n){return kt.create({name:n,providers:[{provide:Dg,useValue:"platform"},{provide:b0,useValue:new Set([()=>Eo=null])},...e]})}(a,r))}return function YP(){const n=C0();if(!n)throw new k(401,!1);return n}()}}function C0(){return Eo?.get(K8)??null}let ec=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=XP}return e})();function XP(e){return function JP(e,n,t){if(Xo(e)&&!t){const r=zr(e.index,n);return new au(r,r)}return 175&e.type?new au(n[en],n):null}(Ct(),x(),!(16&~e))}const dO=Q8(null,"core",[]);let hO=(()=>{class e{constructor(t){}static#e=this.\u0275fac=function(r){return new(r||e)(X(fi))};static#t=this.\u0275mod=Gn({type:e});static#n=this.\u0275inj=Ln({})}return e})();const SD=new Z("");function dt(e,n){mr("NgSignals");const t=function be(e){const n=Object.create(je);n.computation=e;const t=()=>{if(qe(n),dn(n),n.value===ke)throw n.error;return n.value};return t[Ye]=n,t}(e);return n?.equal&&(t[Ye].equal=n.equal),t}function vs(e){const n=ee(null);try{return e()}finally{ee(n)}}const zO=new Z("",{providedIn:"root",factory:()=>q(qO)});let qO=(()=>{class e{static#e=this.\u0275prov=te({token:e,providedIn:"root",factory:()=>new GO})}return e})();class GO{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=q(ia),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 WO{constructor(n,t,r,i,s,o){this.scheduler=n,this.effectFn=t,this.creationZone=r,this.injector=s,this.watcher=function Lr(e,n,t){const r=Object.create(fn);t&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=n;const i=l=>{r.cleanupFn=l};return r.ref={notify:()=>Te(r),run:()=>{if(null===r.fn)return;if(function ae(){return Ae}())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(r.dirty=!1,r.hasRun&&!sn(r))return;r.hasRun=!0;const l=Ge(r);try{r.cleanupFn(),r.cleanupFn=Ht,r.fn(i)}finally{It(r,l)}},cleanup:()=>r.cleanupFn(),destroy:()=>function o(l){(function s(l){return null===l.fn&&null===l.schedule})(l)||(bn(l),l.cleanupFn(),l.fn=null,l.schedule=null,l.cleanupFn=Ht)}(r),[Ye]: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(ds,null,{optional:!0})?.handleError(t)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}}function RD(e,n){mr("NgSignals"),!n?.injector&&function Ig(e){if(!c_())throw new k(-203,!1)}();const t=n?.injector??q(kt),r=!0!==n?.manualCleanup?t.get(zc):null,i=new WO(t.get(zO),e,typeof Zone>"u"?null:Zone.current,r,t,n?.allowSignalWrites??!1),s=t.get(ec,null,{optional:!0});return s&&8&s._lView[le]?(s._lView[$d]??=[]).push(i.watcher.notify):i.watcher.notify(),i}let LD=null;function Hu(){return LD}class KO{}const cr=new Z("");function qD(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 j0=/\s+/,GD=[];let H0=(()=>{class e{constructor(t,r){this._ngEl=t,this._renderer=r,this.initialClasses=GD,this.stateMap=new Map}set klass(t){this.initialClasses=null!=t?t.trim().split(j0):GD}set ngClass(t){this.rawClass="string"==typeof t?t.trim().split(j0):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(j0).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)(A(qr),A($s))};static#t=this.\u0275dir=Ee({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0})}return e})(),U0=(()=>{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 IA(e,n){return new D1(e,n??null,[])}(this.ngComponentOutletNgModule,WD(r)):this.ngComponentOutletNgModuleFactory?this.ngComponentOutletNgModuleFactory.create(WD(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)(A(Pi))};static#t=this.\u0275dir=Ee({type:e,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInputs:"ngComponentOutletInputs",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},standalone:!0,features:[xi]})}return e})();function WD(e){return e.get(ga).injector}let Nf=(()=>{class e{constructor(t,r){this._viewContainer=t,this._context=new FR,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){KD("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){KD("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)(A(Pi),A(ps))};static#t=this.\u0275dir=Ee({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return e})();class FR{constructor(){this.$implicit=null,this.ngIf=null}}function KD(e,n){if(n&&!n.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Rn(n)}'.`)}let QD=(()=>{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)(A(Pi))};static#t=this.\u0275dir=Ee({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[xi]})}return e})();let Z0=(()=>{class e{transform(t,r,i){if(null==t)return null;if(!this.supports(t))throw function Bi(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=Tn({name:"slice",type:e,pure:!1,standalone:!0})}return e})(),K0=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Gn({type:e});static#n=this.\u0275inj=Ln({})}return e})();function e3(e){return"server"===e}class t3{}class $L extends KO{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class J0 extends $L{static makeCurrent(){!function ZO(e){LD??=e}(new J0)}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 BL(){return Gu=Gu||document.querySelector("base"),Gu?Gu.getAttribute("href"):null}();return null==t?null:function jL(e){return new URL(e,document.baseURI).pathname}(t)}resetBaseElement(){Gu=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return qD(document.cookie,n)}}let Gu=null,UL=(()=>{class e{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=te({token:e,factory:e.\u0275fac})}return e})();const Rf=new Z("");let d3=(()=>{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 k(5101,!1);return this._eventNameToPlugin.set(t,r),r}static#e=this.\u0275fac=function(r){return new(r||e)(X(Rf),X(st))};static#t=this.\u0275prov=te({token:e,factory:e.\u0275fac})}return e})();class ey{constructor(n){this._doc=n}}const ty="ng-app-id";let h3=(()=>{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=e3(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[${ty}="${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(ty),s;{const o=this.doc.createElement("style");return this.nonce&&o.setAttribute("nonce",this.nonce),o.textContent=r,this.platformIsServer&&o.setAttribute(ty,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)(X(cr),X(yl),X(V2,8),X(mo))};static#t=this.\u0275prov=te({token:e,factory:e.\u0275fac})}return e})();const ny={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"},ry=/%COMP%/g,WL=new Z("",{providedIn:"root",factory:()=>!0});function p3(e,n){return n.map(t=>t.replace(ry,e))}let iy=(()=>{class e{constructor(t,r,i,s,o,a,l,c=null){this.eventManager=t,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=s,this.doc=o,this.platformId=a,this.ngZone=l,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=e3(a),this.defaultRenderer=new sy(t,o,l,this.platformIsServer)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Ti.ShadowDom&&(r={...r,encapsulation:Ti.Emulated});const i=this.getOrCreateRenderer(t,r);return i instanceof m3?i.applyToHost(t):i instanceof oy&&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,l=this.eventManager,c=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case Ti.Emulated:s=new m3(l,c,r,this.appId,u,o,a,d);break;case Ti.ShadowDom:return new QL(l,c,t,r,o,a,this.nonce,d);default:s=new oy(l,c,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)(X(d3),X(h3),X(yl),X(WL),X(cr),X(mo),X(st),X(V2))};static#t=this.\u0275prov=te({token:e,factory:e.\u0275fac})}return e})();class sy{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(ny[t]||t,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,t){(g3(n)?n.content:n).appendChild(t)}insertBefore(n,t,r){n&&(g3(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 s=ny[i];s?n.setAttributeNS(s,t,r):n.setAttribute(t,r)}else n.setAttribute(t,r)}removeAttribute(n,t,r){if(r){const i=ny[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&(vo.DashCase|vo.Important)?n.style.setProperty(t,r,i&vo.Important?"important":""):n.style[t]=r}removeStyle(n,t,r){r&vo.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=Hu().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 g3(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class QL extends sy{constructor(n,t,r,i,s,o,a,l){super(n,s,o,l),this.sharedStylesHost=t,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const c=p3(i.id,i.styles);for(const u of c){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 oy extends sy{constructor(n,t,r,i,s,o,a,l){super(n,s,o,a),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=i,this.styles=l?p3(l,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class m3 extends oy{constructor(n,t,r,i,s,o,a,l){const c=i+"-"+r.id;super(n,t,r,s,o,a,l,c),this.contentAttr=function ZL(e){return"_ngcontent-%COMP%".replace(ry,e)}(c),this.hostAttr=function KL(e){return"_nghost-%COMP%".replace(ry,e)}(c)}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 XL=(()=>{class e extends ey{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)(X(cr))};static#t=this.\u0275prov=te({token:e,factory:e.\u0275fac})}return e})(),JL=(()=>{class e extends ey{constructor(t){super(t),this.delegate=q(SD,{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)(X(cr))};static#t=this.\u0275prov=te({token:e,factory:e.\u0275fac})}return e})();const y3=["alt","control","meta","shift"],eF={"\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"},tF={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let nF=(()=>{class e extends ey{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(()=>Hu().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."),y3.forEach(c=>{const u=r.indexOf(c);u>-1&&(r.splice(u,1),o+=c+".")}),o+=s,0!=r.length||0===s.length)return null;const l={};return l.domEventName=i,l.fullKey=o,l}static matchEventFullKeyCode(t,r){let i=eF[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"),y3.forEach(o=>{o!==i&&(0,tF[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)(X(cr))};static#t=this.\u0275prov=te({token:e,factory:e.\u0275fac})}return e})();const oF=Q8(dO,"browser",[{provide:mo,useValue:"browser"},{provide:L2,useValue:function rF(){J0.makeCurrent()},multi:!0},{provide:cr,useFactory:function sF(){return function B9(e){hm=e}(document),document},deps:[]}]),aF=new Z(""),w3=[{provide:sf,useClass:class HL{addToWindow(n){Ut.getAngularTestability=(r,i=!0)=>{const s=n.findTestabilityInTree(r,i);if(null==s)throw new k(5103,!1);return s},Ut.getAllAngularTestabilities=()=>n.getAllTestabilities(),Ut.getAllAngularRootElements=()=>n.getAllRootElements(),Ut.frameworkStabilizers||(Ut.frameworkStabilizers=[]),Ut.frameworkStabilizers.push(r=>{const i=Ut.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?Hu().isShadowRoot(t)?this.findTestabilityInTree(n,t.host,!0):this.findTestabilityInTree(n,t.parentElement,!0):null)}},deps:[]},{provide:V8,useClass:p0,deps:[st,g0,sf]},{provide:p0,useClass:p0,deps:[st,g0,sf]}],b3=[{provide:Dg,useValue:"root"},{provide:ds,useFactory:function iF(){return new ds},deps:[]},{provide:Rf,useClass:XL,multi:!0,deps:[cr,st,mo]},{provide:Rf,useClass:nF,multi:!0,deps:[cr]},{provide:Rf,useClass:JL,multi:!0},iy,h3,d3,{provide:Oh,useExisting:iy},{provide:t3,useClass:UL,deps:[]},[]];let Lf=(()=>{class e{constructor(t){}static withServerTransition(t){return{ngModule:e,providers:[{provide:yl,useValue:t.appId}]}}static#e=this.\u0275fac=function(r){return new(r||e)(X(aF,12))};static#t=this.\u0275mod=Gn({type:e});static#n=this.\u0275inj=Ln({providers:[...b3,...w3],imports:[K0,hO]})}return e})(),ay=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=te({token:e,factory:function(r){let i=null;return i=r?new(r||e):X(dF),i},providedIn:"root"})}return e})(),dF=(()=>{class e extends ay{constructor(t){super(),this._doc=t}sanitize(t,r){if(null==r)return null;switch(t){case Wr.NONE:return r;case Wr.HTML:return hs(r,"HTML")?Gr(r):aw(this._doc,String(r)).toString();case Wr.STYLE:return hs(r,"Style")?Gr(r):r;case Wr.SCRIPT:if(hs(r,"Script"))return Gr(r);throw new k(5200,!1);case Wr.URL:return hs(r,"URL")?Gr(r):mh(String(r));case Wr.RESOURCE_URL:if(hs(r,"ResourceURL"))return Gr(r);throw new k(5201,!1);default:throw new k(5202,!1)}}bypassSecurityTrustHtml(t){return function aM(e){return new tM(e)}(t)}bypassSecurityTrustStyle(t){return function lM(e){return new nM(e)}(t)}bypassSecurityTrustScript(t){return function cM(e){return new rM(e)}(t)}bypassSecurityTrustUrl(t){return function uM(e){return new iM(e)}(t)}bypassSecurityTrustResourceUrl(t){return function dM(e){return new sM(e)}(t)}static#e=this.\u0275fac=function(r){return new(r||e)(X(cr))};static#t=this.\u0275prov=te({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const ly={now:()=>(ly.delegate||Date).now(),delegate:void 0};class hF extends pn{constructor(n=1/0,t=1/0,r=ly){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 l=1;l<r.length&&r[l]<=o;l+=2)a=l;a&&r.splice(0,a+1)}}}function Do(e){return this instanceof Do?(this.v=e,this):new Do(e)}function M3(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 hy(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,l){!function i(s,o,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},o)}(a,l,(o=e[s](o)).done,o.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const I3=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function A3(e){return nt(e?.then)}function x3(e){return nt(e[Ss])}function N3(e){return Symbol.asyncIterator&&nt(e?.[Symbol.asyncIterator])}function k3(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 P3=function OF(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function O3(e){return nt(e?.[P3])}function R3(e){return function T3(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(g){return Promise.resolve(g).then(h,d)}}),i[Symbol.asyncIterator]=function(){return this},i;function a(h,g){r[h]&&(i[h]=function(v){return new Promise(function(C,T){s.push([h,v,C,T])>1||l(h,v)})},g&&(i[h]=g(i[h])))}function l(h,g){try{!function c(h){h.value instanceof Do?Promise.resolve(h.value.v).then(u,d):f(s[0][2],h)}(r[h](g))}catch(v){f(s[0][3],v)}}function u(h){l("next",h)}function d(h){l("throw",h)}function f(h,g){h(g),s.shift(),s.length&&l(s[0][0],s[0][1])}}(this,arguments,function*(){const t=e.getReader();try{for(;;){const{value:r,done:i}=yield Do(t.read());if(i)return yield Do(void 0);yield yield Do(r)}}finally{t.releaseLock()}})}function L3(e){return nt(e?.getReader)}function ji(e){if(e instanceof Mt)return e;if(null!=e){if(x3(e))return function RF(e){return new Mt(n=>{const t=e[Ss]();if(nt(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(I3(e))return function LF(e){return new Mt(n=>{for(let t=0;t<e.length&&!n.closed;t++)n.next(e[t]);n.complete()})}(e);if(A3(e))return function FF(e){return new Mt(n=>{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,Ro)})}(e);if(N3(e))return F3(e);if(O3(e))return function VF(e){return new Mt(n=>{for(const t of e)if(n.next(t),n.closed)return;n.complete()})}(e);if(L3(e))return function $F(e){return F3(R3(e))}(e)}throw k3(e)}function F3(e){return new Mt(n=>{(function BF(e,n){var t,r,i,s;return function D3(e,n,t,r){return new(t||(t=Promise))(function(s,o){function a(u){try{c(r.next(u))}catch(d){o(d)}}function l(u){try{c(r.throw(u))}catch(d){o(d)}}function c(u){u.done?s(u.value):function i(s){return s instanceof t?s:new t(function(o){o(s)})}(u.value).then(a,l)}c((r=r.apply(e,n||[])).next())})}(this,void 0,void 0,function*(){try{for(t=M3(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 So(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 Vf(e,n,t=1/0){return nt(n)?Vf((r,i)=>gn((s,o)=>n(r,s,i,o))(ji(e(r,i))),t):("number"==typeof n&&(t=n),qn((r,i)=>function jF(e,n,t,r,i,s,o,a){const l=[];let c=0,u=0,d=!1;const f=()=>{d&&!l.length&&!c&&n.complete()},h=v=>c<r?g(v):l.push(v),g=v=>{s&&n.next(v),c++;let C=!1;ji(t(v,u++)).subscribe(Dn(n,T=>{i?.(T),s?h(T):n.next(T)},()=>{C=!0},void 0,()=>{if(C)try{for(c--;l.length&&c<r;){const T=l.shift();o?So(n,o,()=>g(T)):g(T)}f()}catch(T){n.error(T)}}))};return e.subscribe(Dn(n,h,()=>{d=!0,f()})),()=>{a?.()}}(r,i,e,t)))}function V3(e=1/0){return Vf(En,e)}const $3=new Mt(e=>e.complete());function B3(e){return e&&nt(e.schedule)}function fy(e){return e[e.length-1]}function $f(e){return B3(fy(e))?e.pop():void 0}function j3(e,n=0){return qn((t,r)=>{t.subscribe(Dn(r,i=>So(r,e,()=>r.next(i),n),()=>So(r,e,()=>r.complete(),n),i=>So(r,e,()=>r.error(i),n)))})}function H3(e,n=0){return qn((t,r)=>{r.add(e.schedule(()=>t.subscribe(r),n))})}function U3(e,n){if(!e)throw new Error("Iterable cannot be null");return new Mt(t=>{So(t,n,()=>{const r=e[Symbol.asyncIterator]();So(t,n,()=>{r.next().then(i=>{i.done?t.complete():t.next(i.value)})},0,!0)})})}function Wu(e,n){return n?function YF(e,n){if(null!=e){if(x3(e))return function qF(e,n){return ji(e).pipe(H3(n),j3(n))}(e,n);if(I3(e))return function WF(e,n){return new Mt(t=>{let r=0;return n.schedule(function(){r===e.length?t.complete():(t.next(e[r++]),t.closed||this.schedule())})})}(e,n);if(A3(e))return function GF(e,n){return ji(e).pipe(H3(n),j3(n))}(e,n);if(N3(e))return U3(e,n);if(O3(e))return function ZF(e,n){return new Mt(t=>{let r;return So(t,n,()=>{r=e[P3](),So(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)}),()=>nt(r?.return)&&r.return()})}(e,n);if(L3(e))return function KF(e,n){return U3(R3(e),n)}(e,n)}throw k3(e)}(e,n):ji(e)}function z3(e,n){return qn((t,r)=>{let i=null,s=0,o=!1;const a=()=>o&&!i&&r.complete();t.subscribe(Dn(r,l=>{i?.unsubscribe();let c=0;const u=s++;ji(e(l,u)).subscribe(i=Dn(r,d=>r.next(n?n(l,d,u,c++):d),()=>{i=null,a()}))},()=>{o=!0,a()}))})}const Bf={schedule(e,n){const t=setTimeout(e,n);return()=>clearTimeout(t)},scheduleBeforeRender(e){if(typeof window>"u")return Bf.schedule(e,0);if(typeof window.requestAnimationFrame>"u")return Bf.schedule(e,16);const n=window.requestAnimationFrame(e);return()=>window.cancelAnimationFrame(n)}};let py;function oV(e,n,t){let r=t;return function JF(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}(e)&&n.some((i,s)=>!("*"===i||!function tV(e,n){if(!py){const t=Element.prototype;py=t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE&&py.call(e,n)}(e,i)||(r=s,0))),r}class lV{constructor(n,t){this.componentFactory=t.get(fa).resolveComponentFactory(n)}create(n){return new cV(this.componentFactory,n)}}class cV{constructor(n,t){this.componentFactory=n,this.injector=t,this.eventEmitters=new hF(1),this.events=this.eventEmitters.pipe(z3(r=>function QF(...e){const n=$f(e),t=function zF(e,n){return"number"==typeof fy(e)?e.pop():n}(e,1/0),r=e;return r.length?1===r.length?ji(r[0]):V3(t)(Wu(r,n)):$3}(...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(st),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=Bf.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 nV(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=kt.create({providers:[],parent:this.injector}),r=function sV(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],l=oV(a,n,i);-1!==l&&r[l].push(a)}return r}(n,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,r,n),this.viewChangeDetectorRef=this.componentRef.injector.get(ec),this.implementsOnChanges=function eV(e){return"function"==typeof e}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(fi).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(gn(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=Bf.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 y_(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 uV extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}class tn{constructor(n,t){this.type=n,this.payload=t}}const Jr={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"}};class jf{constructor(){this.emitEnabled=!0,this.optionalEmitEnabled=!0,this.emitter=new qt}emit(n,t){this.emitEnabled&&(!t||t&&this.optionalEmitEnabled)&&this.emitter.emit(n)}}let ln=(()=>{class e{constructor(){this.componentsStates={availableCardBrands:ot({isRequired:!1,canShowError:!1,isValid:!0,filled:!0,enabled:!0}),cardList:ot({isRequired:!1,canShowError:!1,isValid:!0,filled:!0,enabled:!0}),cardForm:ot({isRequired:!0,canShowError:!1,isValid:!0,filled:!1,enabled:!0}),additionalForm:ot({isRequired:!1,canShowError:!1,isValid:!0,filled:!1,enabled:!0}),chargeTerms:ot({isRequired:!0,canShowError:!1,isValid:!0,filled:!1,enabled:!0}),payButton:ot({isRequired:!0,canShowError:!1,isValid:!0,filled:!1,enabled:!0}),apmList:ot({isRequired:!1,canShowError:!1,isValid:!0,filled:!0,enabled:!0}),userPreferences:ot({isRequired:!0,canShowError:!1,isValid:!0,filled:!1,enabled:!0}),merchantInfo:ot({isRequired:!1,canShowError:!1,isValid:!0,filled:!0,enabled:!0}),protectedBy:ot({isRequired:!1,canShowError:!1,isValid:!0,filled:!0,enabled:!0})},this.visibility={availableCardBrands:dt(()=>this.componentsStates.availableCardBrands().enabled&&!!this.data.settings()?.components?.some(t=>"available-card-brands"===t)),cardList:dt(()=>this.componentsStates.cardList().enabled&&!!this.data.settings()?.components?.some(t=>"card-list"===t)),cardForm:dt(()=>this.componentsStates.cardForm().enabled&&!!this.data.settings()?.components?.some(t=>"requisites"===t)),additionalForm:dt(()=>this.componentsStates.cardForm().enabled&&this.componentsStates.additionalForm().enabled&&!!this.data.settings()?.components?.some(t=>"phone-number"===t)),chargeTerms:dt(()=>this.componentsStates.chargeTerms().enabled&&!!this.data.settings()?.components?.some(t=>"charge-terms"===t)&&!this.visibility.noMethods()),payButton:dt(()=>(this.componentsStates.cardList().enabled||this.componentsStates.cardForm().enabled)&&this.componentsStates.payButton().enabled&&!!this.data.settings()?.components?.some(t=>"pay-button"===t)),apmList:dt(()=>this.componentsStates.apmList().enabled&&!!this.data.settings()?.components?.some(t=>"apm-list"===t)),userPreferences:dt(()=>this.componentsStates.userPreferences().enabled&&!!this.data.settings()?.components?.some(t=>"user-preferences"===t)&&!this.visibility.noMethods()),merchantInfo:dt(()=>this.componentsStates.merchantInfo().enabled&&!!this.data.settings()?.components?.some(t=>"merchant-info"===t)),protectedBy:dt(()=>this.componentsStates.protectedBy().enabled&&!!this.data.settings()?.components?.some(t=>"protected-by"===t)),noMethods:dt(()=>!this.componentsStates.cardForm().enabled&&!this.componentsStates.cardList().enabled&&!this.componentsStates.apmList().enabled)},this.data={payment:ot(void 0),settings:ot(void 0),userProvidedInfo:ot(void 0),loadedSettings:ot([]),state:ot({type:"empty",payload:void 0}),paymentSystemsLoading:ot(!1),cardsLoading:ot(!1)},this.computed={isLoading:dt(()=>this.data.paymentSystemsLoading()||this.data.cardsLoading()),paymentAvailability:dt(()=>{const t=this.data.settings(),r={canPay:{byCard:!1,byApm:!1},isPayButtonDisabled:!1};if(!t)return r;let i=!0,s=!0;for(let o in this.componentsStates)if(this.componentsStates.hasOwnProperty(o)){const a=this.componentsStates[o]();i=i&&(a.isValid||!a.enabled),s=s&&(a.filled||!a.enabled),"chargeTerms"===o&&(!a.enabled||a.isValid)&&(r.canPay.byApm=!0)}return"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 jf,error:new jf,close:new jf,paid:new jf,refresh:new qt}}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}))}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=te({token:e,factory:e.\u0275fac})}return e})();function Hf(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}function gy(e,...n){if(!n.length)return e;const t=n.shift();if(Hf(e)&&Hf(t))for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){const i=t[r];e[r]=Hf(i)&&Hf(e[r])?gy(e[r],i):i}return gy(e,...n)}function hV(...e){return gy({},...e)}function q3(e){return"string"==typeof e||e instanceof String?JSON.parse(e):e}const G3={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"},pV={urls:{},availableCardBrands:["mastercard","visa"],chargeTerms:void 0,isCloseButtonVisible:!0,isProblemTipsListVisible:!1,isSignatureRequired:!1,isHeaderVisible:!0,closePaymentRedirect:!0,languageSettings:{code:"en-US",languages:{"en-US":G3,"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"},"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"}}},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};var W3=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}(W3||{});function Z3(){const e=screen.height||window.innerHeight,n=screen.width||window.innerWidth,t=W3.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}}function mV(e,n){if(1&e&&(G(0,"div",1),gt(1,"img",2),W()),2&e){const t=J();P(),ie("src",t.src,eu)("alt",t.alt)}}let rc=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=zt({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&&et(0,mV,2,2,"div",0),2&r&&ie("ngIf",i.src)},dependencies:[Nf],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 ic=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}(ic||{});const sc_customHeaders_skipToastr="X-Skip-Toastr";let yV=(()=>{class e{transform(t){const r=ic[t];let i=r?.toString();if(i&&(r==ic.visa&&(i+="-brand"),r==ic.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=Tn({name:"brandLogo",type:e,pure:!0})}return e})();function vV(e,n){1&e&&gt(0,"moto-picture",4),2&e&&ie("src",n)}function _V(e,n){if(1&e&&(et(0,vV,1,1,"moto-picture",4),Bt(1,"brandLogo")),2&e){let t;ut((t=Pu(1,1,n.$implicit))?0:-1,t)}}let Y3=(()=>{class e{constructor(t){this.context=t}ngOnInit(){this.settings=this.context.data.settings}static#e=this.\u0275fac=function(r){return new(r||e)(A(ln))};static#t=this.\u0275cmp=zt({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&&(hi(0),G(1,"div",0)(2,"div",1)(3,"h6",2),De(4),W()(),G(5,"div",3),Fi(6,_V,2,3,null,null,js),W()()),2&r){const s=i.settings();P(4),Gt(" ",s.language.availableCardBrandsHeader," "),P(2),Vi(s.availableCardBrands)}},dependencies:[rc,yV],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 wV{constructor(n,t=ot(!1)){this.item=n,this.selected=t}setSelected(n){this.selected.set(n)}}var we=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}(we||{});const zs="*";function oc(e,n){return{type:we.Trigger,name:e,definitions:n,options:{}}}function Hi(e,n=null){return{type:we.Animate,styles:n,timings:e}}function cn(e){return{type:we.Style,styles:e,offset:null}}function Zu(e,n,t){return{type:we.State,name:e,styles:n,options:t}}function Ui(e,n,t=null){return{type:we.Transition,expr:e,animation:n,options:t}}class Ku{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 Q3{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 Yu_animation_defaultAnimateMc=0;class yy{constructor(n){this.animationTime=Yu_animation_defaultAnimateMc,Object.assign(this,n)}}const TV=oc("ANHeight",[Ui(":enter",[cn({overflow:"hidden",height:"0px"}),Hi(Yu_animation_defaultAnimateMc,cn({height:"*",overflow:"hidden"}))]),Ui(":leave",[cn({height:"*",overflow:"hidden"}),Hi(Yu_animation_defaultAnimateMc,cn({height:"0px",overflow:"hidden"}))])]),MV=oc("ANScale",[Ui(":enter",[cn({opacity:0,transform:"scale(0)"}),Hi(Yu_animation_defaultAnimateMc,cn({opacity:1,transform:"scale(1)"}))]),Ui(":leave",Hi(Yu_animation_defaultAnimateMc,cn({opacity:0,transform:"scale(0)"})))]),vy=e=>{const n=new yy({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 oc(r,[Ui(":enter",[cn(s),Hi(i,cn(o))]),Ui(":leave",[cn(o),Hi(i,cn(s))])])},IV=e=>{const n=new yy({animationName:"ANStates",fromState:"a",toState:"b"}),t=Object.assign(n,e),{animationName:r,animationTime:i,fromStyles:s,toStyles:o,fromState:a,toState:l}=t;return oc(r,[Zu(a,cn(s)),Zu(l,cn(o)),Ui(`${a}<=>${l}`,Hi(i))])},AV=e=>{const n=new yy({animationName:"ANStates"}),t=Object.assign(n,e),{animationName:r,animationTime:i,fromStyles:s,toStyles:o}=t;return oc(r,[Ui(":enter",[cn(s),Hi(i,cn(o))]),Ui(":leave",[cn(o),Hi(i,cn(s))])])};function To(...e){return Wu(e,$f(e))}function Uf(e){return qn((n,t)=>{let s,r=null,i=!1;r=n.subscribe(Dn(t,void 0,void 0,o=>{s=ji(e(o,Uf(e)(n))),r?(r.unsubscribe(),r=null,s.subscribe(t)):i=!0})),i&&(r.unsubscribe(),r=null,s.subscribe(t))})}function X3(e,n,t,r,i,s,o){try{var a=e[s](o),l=a.value}catch(c){return void t(c)}a.done?n(l):Promise.resolve(l).then(r,i)}function zf(e){return function(){var n=this,t=arguments;return new Promise(function(r,i){var s=e.apply(n,t);function o(l){X3(s,r,i,o,a,"next",l)}function a(l){X3(s,r,i,o,a,"throw",l)}o(void 0)})}}function J3(e,n){return nt(n)?Vf(e,n,1):Vf(e,1)}function e4(e,n){return qn((t,r)=>{let i=0;t.subscribe(Dn(r,s=>e.call(n,s,i++)&&r.next(s)))})}class qf{}class Gf{}class ei{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 ei?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 ei;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof ei?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 NV{encodeKey(n){return t4(n)}encodeValue(n){return t4(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const PV=/%(\d[a-f0-9])/gi,OV={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function t4(e){return encodeURIComponent(e).replace(PV,(n,t)=>OV[t]??n)}function Wf(e){return`${e}`}class qs{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new NV,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function kV(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))],l=t.get(o)||[];l.push(a),t.set(o,l)}),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(Wf):[Wf(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 qs({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(Wf(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(Wf(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 RV{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 n4(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function r4(e){return typeof Blob<"u"&&e instanceof Blob}function i4(e){return typeof FormData<"u"&&e instanceof FormData}class Qu{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 LV(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 ei,this.context??=new RV,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 qs,this.urlWithParams=t}serializeBody(){return null===this.body?null:"string"==typeof this.body||n4(this.body)||r4(this.body)||i4(this.body)||function FV(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}(this.body)?this.body:this.body instanceof qs?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||i4(this.body)?null:r4(this.body)?this.body.type||null:n4(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof qs?"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,l=n.reportProgress??this.reportProgress;let c=n.headers||this.headers,u=n.params||this.params;const d=n.context??this.context;return void 0!==n.setHeaders&&(c=Object.keys(n.setHeaders).reduce((f,h)=>f.set(h,n.setHeaders[h]),c)),n.setParams&&(u=Object.keys(n.setParams).reduce((f,h)=>f.set(h,n.setParams[h]),u)),new Qu(t,r,o,{params:u,headers:c,context:d,reportProgress:l,responseType:i,withCredentials:a,transferCache:s})}}var Mo=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}(Mo||{});class _y{constructor(n,t=200,r="OK"){this.headers=n.headers||new ei,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 Zf extends _y{constructor(n={}){super(n),this.type=Mo.ResponseHeader}clone(n={}){return new Zf({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 Ca extends _y{constructor(n={}){super(n),this.type=Mo.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new Ca({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 ac extends _y{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 wy(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 Kf=(()=>{class e{constructor(t){this.handler=t}request(t,r,i={}){let s;if(t instanceof Qu)s=t;else{let l,c;l=i.headers instanceof ei?i.headers:new ei(i.headers),i.params&&(c=i.params instanceof qs?i.params:new qs({fromObject:i.params})),s=new Qu(t,r,void 0!==i.body?i.body:null,{headers:l,context:i.context,params:c,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache})}const o=To(s).pipe(J3(l=>this.handler.handle(l)));if(t instanceof Qu||"events"===i.observe)return o;const a=o.pipe(e4(l=>l instanceof Ca));switch(i.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(gn(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(gn(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(gn(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(gn(l=>l.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 qs).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,wy(i,r))}post(t,r,i={}){return this.request("POST",t,wy(i,r))}put(t,r,i={}){return this.request("PUT",t,wy(i,r))}static#e=this.\u0275fac=function(r){return new(r||e)(X(qf))};static#t=this.\u0275prov=te({token:e,factory:e.\u0275fac})}return e})();const BV=/^\)\]\}',?\n/;function o4(e){if(e.url)return e.url;const n="X-Request-URL".toLocaleLowerCase();return e.headers.get(n)}let by=(()=>{class e{constructor(){this.fetchImpl=q(HV,{optional:!0})?.fetch??((...t)=>globalThis.fetch(...t)),this.ngZone=q(st)}handle(t){return new Mt(r=>{const i=new AbortController;return this.doRequest(t,i.signal,r).then(Cy,s=>r.error(new ac({error:s}))),()=>i.abort()})}doRequest(t,r,i){var s=this;return zf(function*(){const o=s.createRequestInit(t);let a;try{const g=s.ngZone.runOutsideAngular(()=>s.fetchImpl(t.urlWithParams,{signal:r,...o}));(function UV(e){e.then(Cy,Cy)})(g),i.next({type:Mo.Sent}),a=yield g}catch(g){return void i.error(new ac({error:g,status:g.status??0,statusText:g.statusText,url:t.urlWithParams,headers:g.headers}))}const l=new ei(a.headers),c=a.statusText,u=o4(a)??t.urlWithParams;let d=a.status,f=null;if(t.reportProgress&&i.next(new Zf({headers:l,status:d,statusText:c,url:u})),a.body){const g=a.headers.get("content-length"),v=[],C=a.body.getReader();let D,F,T=0;const L=typeof Zone<"u"&&Zone.current;yield s.ngZone.runOutsideAngular(zf(function*(){for(;;){const{done:U,value:ce}=yield C.read();if(U)break;if(v.push(ce),T+=ce.length,t.reportProgress){F="text"===t.responseType?(F??"")+(D??=new TextDecoder).decode(ce,{stream:!0}):void 0;const Fe=()=>i.next({type:Mo.DownloadProgress,total:g?+g:void 0,loaded:T,partialText:F});L?L.run(Fe):Fe()}}}));const H=s.concatChunks(v,T);try{const U=a.headers.get("Content-Type")??"";f=s.parseBody(t,H,U)}catch(U){return void i.error(new ac({error:U,headers:new ei(a.headers),status:a.status,statusText:a.statusText,url:o4(a)??t.urlWithParams}))}}0===d&&(d=f?200:0),d>=200&&d<300?(i.next(new Ca({body:f,headers:l,status:d,statusText:c,url:u})),i.complete()):i.error(new ac({error:f,headers:l,status:d,statusText:c,url:u}))})()}parseBody(t,r,i){switch(t.responseType){case"json":const s=(new TextDecoder).decode(r).replace(BV,"");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=te({token:e,factory:e.\u0275fac})}return e})();class HV{}function Cy(){}function a4(e,n){return n(e)}const Xu=new Z(""),l4=new Z(""),c4=new Z("",{providedIn:"root",factory:()=>!0});let u4=(()=>{class e extends qf{constructor(t,r){super(),this.backend=t,this.injector=r,this.chain=null,this.pendingTasks=q(ia),this.contributeToStability=q(c4)}handle(t){if(null===this.chain){const r=Array.from(new Set([...this.injector.get(Xu),...this.injector.get(l4,[])]));this.chain=r.reduceRight((i,s)=>function qV(e,n,t){return(r,i)=>function iT(e,n){e instanceof il&&e.assertNotDestroyed();const r=ho(e),i=xr(void 0);try{return n()}finally{ho(r),xr(i)}}(t,()=>n(r,s=>e(s,i)))}(i,s,this.injector),a4)}if(this.contributeToStability){const r=this.pendingTasks.add();return this.chain(t,i=>this.backend.handle(i)).pipe(function xV(e){return qn((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)(X(Gf),X(li))};static#t=this.\u0275prov=te({token:e,factory:e.\u0275fac})}return e})();const XV=/^\)\]\}',?\n/;let h4=(()=>{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?Wu(r.\u0275loadImpl()):To(null)).pipe(z3(()=>new Mt(s=>{const o=r.build();if(o.open(t.method,t.urlWithParams),t.withCredentials&&(o.withCredentials=!0),t.headers.forEach((v,C)=>o.setRequestHeader(v,C.join(","))),t.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const v=t.detectContentTypeHeader();null!==v&&o.setRequestHeader("Content-Type",v)}if(t.responseType){const v=t.responseType.toLowerCase();o.responseType="json"!==v?v:"text"}const a=t.serializeBody();let l=null;const c=()=>{if(null!==l)return l;const v=o.statusText||"OK",C=new ei(o.getAllResponseHeaders()),T=function JV(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 l=new Zf({headers:C,status:o.status,statusText:v,url:T}),l},u=()=>{let{headers:v,status:C,statusText:T,url:D}=c(),F=null;204!==C&&(F=typeof o.response>"u"?o.responseText:o.response),0===C&&(C=F?200:0);let L=C>=200&&C<300;if("json"===t.responseType&&"string"==typeof F){const H=F;F=F.replace(XV,"");try{F=""!==F?JSON.parse(F):null}catch(U){F=H,L&&(L=!1,F={error:U,text:F})}}L?(s.next(new Ca({body:F,headers:v,status:C,statusText:T,url:D||void 0})),s.complete()):s.error(new ac({error:F,headers:v,status:C,statusText:T,url:D||void 0}))},d=v=>{const{url:C}=c(),T=new ac({error:v,status:o.status||0,statusText:o.statusText||"Unknown Error",url:C||void 0});s.error(T)};let f=!1;const h=v=>{f||(s.next(c()),f=!0);let C={type:Mo.DownloadProgress,loaded:v.loaded};v.lengthComputable&&(C.total=v.total),"text"===t.responseType&&o.responseText&&(C.partialText=o.responseText),s.next(C)},g=v=>{let C={type:Mo.UploadProgress,loaded:v.loaded};v.lengthComputable&&(C.total=v.total),s.next(C)};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",g)),o.send(a),s.next({type:Mo.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",g)),o.readyState!==o.DONE&&o.abort()}})))}static#e=this.\u0275fac=function(r){return new(r||e)(X(t3))};static#t=this.\u0275prov=te({token:e,factory:e.\u0275fac})}return e})();const Ey=new Z(""),f4=new Z("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),p4=new Z("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class g4{}let n$=(()=>{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=qD(t,this.cookieName),this.lastCookieString=t),this.lastToken}static#e=this.\u0275fac=function(r){return new(r||e)(X(cr),X(mo),X(f4))};static#t=this.\u0275prov=te({token:e,factory:e.\u0275fac})}return e})();function r$(e,n){const t=e.url.toLowerCase();if(!q(Ey)||"GET"===e.method||"HEAD"===e.method||t.startsWith("http://")||t.startsWith("https://"))return n(e);const r=q(g4).getToken(),i=q(p4);return null!=r&&!e.headers.has(i)&&(e=e.clone({headers:e.headers.set(i,r)})),n(e)}var Io=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}(Io||{});function i$(...e){const n=[Kf,h4,u4,{provide:qf,useExisting:u4},{provide:Gf,useFactory:()=>q(by,{optional:!0})??q(h4)},{provide:Xu,useValue:r$,multi:!0},{provide:Ey,useValue:!0},{provide:g4,useClass:n$}];for(const t of e)n.push(...t.\u0275providers);return rl(n)}function s$(e){return function Ea(e,n){return{\u0275kind:e,\u0275providers:n}}(Io.Interceptors,e.map(n=>({provide:Xu,useValue:n,multi:!0})))}class p$ extends lt{constructor(n,t){super()}schedule(n,t=0){return this}}const Qf={setInterval(e,n,...t){const{delegate:r}=Qf;return r?.setInterval?r.setInterval(e,n,...t):setInterval(e,n,...t)},clearInterval(e){const{delegate:n}=Qf;return(n?.clearInterval||clearInterval)(e)},delegate:void 0};class Ju{constructor(n,t=Ju.now){this.schedulerActionCtor=n,this.now=t}schedule(n,t=0,r){return new this.schedulerActionCtor(this,n).schedule(r,t)}}Ju.now=ly.now;const D4=new class m$ extends Ju{constructor(n,t=Ju.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 g$ extends p${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 Qf.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&&Qf.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,Gi(r,this),null!=n&&(this.id=this.recycleAsyncId(t,n,null)),this.delay=null,super.unsubscribe()}}}),y$=D4;function S4(e=0,n,t=y$){let r=-1;return null!=n&&(B3(n)?t=n:r=n),new Mt(i=>{let s=function v$(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 T4(e,n){const t=nt(e)?e:()=>e,r=i=>i.error(t());return new Mt(n?i=>n.schedule(r,0,i):r)}function Dy(e){return new qs({fromObject:e})}function M4(e){const n=Object.entries(e).reduce((t,[r,i])=>(t[r]=String(i),t),{});return new ei(n)}const I4="Watchdog fake error";function Da(e,n){return`${e.endsWith("/")?e.slice(0,-1):e}${n.startsWith("/")?n:`/${n}`}`}let A4=(()=>{class e{constructor(t,r){this.http=t,this.context=r}getExistingCards(){const{merchantId:t,userAuthToken:r}=this.context.data.payment();if(!r)return To([]);const i=Dy({merchantId:t}),s=M4({[sc_customHeaders_skipToastr]:!0}),o=Da(this.host(),"/api/UserPaymentMethods");return this.http.get(o,{params:i,headers:s}).pipe(gn(a=>a.map(l=>({...l,name:l.name.toLocaleLowerCase(),type:l.type.toLocaleLowerCase()}))),gn(a=>a.filter(l=>"card"===l.type)),Uf(()=>To([])))}removeCard(t){const{merchantId:r}=this.context.data.payment(),i=Dy({merchantId:r}),s=Da(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)(X(Kf),X(ln))};static#t=this.\u0275prov=te({token:e,factory:e.\u0275fac})}return e})();const x4=["toast-component",""];function b$(e,n){if(1&e){const t=ar();G(0,"button",5),Ke("click",function(){return ft(t),pt(J().remove())}),G(1,"span",6),De(2,"\xd7"),W()()}}function C$(e,n){if(1&e&&(Wl(0),De(1),Zl()),2&e){const t=J(2);P(),Gt("[",t.duplicatesCount+1,"]")}}function E$(e,n){if(1&e&&(G(0,"div"),De(1),et(2,C$,2,1,"ng-container",4),W()),2&e){const t=J();Bs(t.options.titleClass),er("aria-label",t.title),P(),Gt(" ",t.title," "),P(),ie("ngIf",t.duplicatesCount)}}function D$(e,n){if(1&e&&gt(0,"div",7),2&e){const t=J();Bs(t.options.messageClass),ie("innerHTML",t.message,yo)}}function S$(e,n){if(1&e&&(G(0,"div",8),De(1),W()),2&e){const t=J();Bs(t.options.messageClass),er("aria-label",t.message),P(),Gt(" ",t.message," ")}}function T$(e,n){if(1&e&&(G(0,"div"),gt(1,"div",9),W()),2&e){const t=J();P(),Gl("width",t.width()+"%")}}class P${_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 O${_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 R${_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new pn;_activate=new pn;_manualClose=new pn;_resetTimeout=new pn;_countDuplicate=new pn;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 Xf{toastId;config;message;title;toastType;toastRef;_onTap=new pn;_onAction=new pn;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 k4=new Z("ToastConfig");class L$ extends O${_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 F$=(()=>{class e{_document=q(cr);_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=te({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class V${_portalHost;constructor(n){this._portalHost=n}attach(n,t=!0){return this._portalHost.attach(n,t)}detach(){return this._portalHost.detach()}}let $$=(()=>{class e{_overlayContainer=q(F$);_componentFactoryResolver=q(fa);_appRef=q(fi);_document=q(cr);_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 L$(t,this._componentFactoryResolver,this._appRef)}_createOverlayRef(t){return new V$(this._createPortalHost(t))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=te({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Jf=(()=>{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 l=this.overlay.create(s.positionClass,this.overlayContainer);this.index=this.index+1;let c=r;r&&s.enableHtml&&(c=this.sanitizer.sanitize(Wr.HTML,r));const u=new R$(l),d=new Xf(this.index,s,c,i,t,u),h=kt.create({providers:[{provide:Xf,useValue:d}],parent:this._injector}),g=new P$(s.toastComponent,h),v=l.attach(g,s.newestOnTop);u.componentInstance=v.instance;const C={toastId:this.index,title:i||"",message:r||"",toastRef:u,onShown:u.afterActivate(),onHidden:u.afterClosed(),onTap:d.onTap(),onAction:d.onAction(),portal:v};return a||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{C.toastRef.activate()})),this.toasts.push(C),C}static \u0275fac=function(r){return new(r||e)(X(k4),X($$),X(kt),X(ay),X(st))};static \u0275prov=te({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const B$={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=ot(-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=ot({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)(A(Jf),A(Xf),A(st))};static \u0275cmp=zt({type:e,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(r,i){1&r&&Ke("click",function(){return i.tapToast()})("mouseenter",function(){return i.stickAround()})("mouseleave",function(){return i.delayedHideToast()}),2&r&&(Kh("@flyInOut",i._state),Bs(i.toastClasses),Gl("display",i.displayStyle))},standalone:!0,features:[o0],attrs:x4,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&&et(0,b$,3,0,"button",0)(1,E$,3,5,"div",1)(2,D$,1,3,"div",2)(3,S$,2,4,"div",3)(4,T$,2,2,"div",4),2&r&&(ie("ngIf",i.options.closeButton),P(),ie("ngIf",i.title),P(),ie("ngIf",i.message&&i.options.enableHtml),P(),ie("ngIf",i.message&&!i.options.enableHtml),P(),ie("ngIf",i.options.progressBar))},dependencies:[Nf],encapsulation:2,data:{animation:[oc("flyInOut",[Zu("inactive",cn({opacity:0})),Zu("active",cn({opacity:1})),Zu("removed",cn({opacity:0})),Ui("inactive => active",Hi("{{ easeTime }}ms {{ easing }}")),Ui("active => removed",Hi("{{ easeTime }}ms {{ easing }}"))])]},changeDetection:0})}return e})()},j$=(e={})=>rl([{provide:k4,useValue:{default:B$,config:e}}]);let H$=(()=>{class e{static forRoot(t={}){return{ngModule:e,providers:[j$(t)]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=Gn({type:e});static \u0275inj=Ln({})}return e})();var U$=ue(634),P4=ue.n(U$),O4=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}(O4||{});let Sy=(()=>{class e{transform(t,r,i=null,s=null){const[o]=P4()(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 O4[o.type];case"code":if(s){const l=s[o.code.name];if(l)return l}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/${ic[t.type]||ic.default}.svg`}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275pipe=Tn({name:"cardInfo",type:e,pure:!0})}return e})(),R4=(()=>{class e{constructor(){this.selectEvent=new qt,this.removeEvent=new qt,this.optionsClickedEvent=new qt,this.isOpenPopup=!1,this.popupId=function gV(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.stopPropagation(),this.optionsClickedEvent.emit(this.option),this.isOpenPopup=!this.isOpenPopup}select(){this.option.selected()||this.selectEvent.emit(this.option)}remove(t){t.stopPropagation(),this.removeEvent.emit(this.option.item),this.isOpenPopup=!1}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=zt({type:e,selectors:[["moto-card"]],hostBindings:function(r,i){1&r&&Ke("click",function(o){return i.hidePopup(o.target)},0,fw)},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&&(G(0,"div",0),Ke("click",function(){return i.select()}),gt(1,"div",1),Bt(2,"slice"),gt(3,"moto-picture",2),Bt(4,"cardInfo"),G(5,"span",3),De(6),Bt(7,"cardInfo"),W(),G(8,"span",4),De(9),Bt(10,"slice"),W(),G(11,"div",5)(12,"i",6),Ke("click",function(o){return i.onOptionsClick(o)}),De(13,"more_vert"),W(),G(14,"div",7)(15,"span",8),Bt(16,"slice"),Ke("click",function(o){return i.remove(o)}),De(17),W()()()()),2&r&&(P(),Oi("selected",i.option.selected()),ie("id","select-card-"+lr(2,11,i.option.item.name,-6)+"-button"),P(2),ie("src",lr(4,14,i.option.item.name,"logo")),P(3),tr(lr(7,17,i.option.item.name,"payment-system")),P(3),tr(lr(10,20,i.option.item.name,-6)),P(2),er("data-card-popup",i.popupId),P(3),Oi("open",i.isOpenPopup),P(),ie("id","remove-card-"+lr(16,23,i.option.item.name,-6)+"-button"),P(2),tr(i.language.existingCards.removeCard))},dependencies:[rc,Z0,Sy],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 z$(e,n){if(1&e){const t=ar();G(0,"moto-card",8),Ke("select",function(i){return ft(t),pt(J().selectCard(i))})("remove",function(i){return ft(t),pt(J().removeCard(i))})("optionsClicked",function(i){return ft(t),pt(J().onOptionsClick(i))}),W()}if(2&e){const t=n.$implicit;J();const r=Hn(0);ie("option",t)("language",r)}}function q$(e,n){if(1&e){const t=ar();G(0,"button",9),Ke("click",function(){return ft(t),pt(J().showCardForm())})("focusin",function(){return ft(t),pt(J().onAddCardFocus())}),G(1,"i",10),De(2,"add"),W(),G(3,"span",11),De(4),W()()}if(2&e){J();const t=Hn(0);P(4),tr(t.existingCards.addNewCard)}}let Ty=(()=>{class e{constructor(t,r,i){this.billingProfiles=t,this.context=r,this.toastr=i,this.cardOptions=ot([]),this.isCardListShown=ot(!0),this.initialized=!1}ngOnInit(){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.initialized=!0,this.refresh(),this.context.events.refresh.asObservable().subscribe(()=>{this.initialized&&this.refresh()})}showCardForm(){this.context.events.analytics.emit(new tn("add-card-button-click")),this.isCardListShown.set(!1),this.cardFormState.update(t=>({...t,enabled:!0})),this.context.data.userProvidedInfo.set(void 0),this.resetSelected()}getSelectedCard(){return this.cardOptions().find(t=>t.selected())}removeCard(t){this.context.events.analytics.emit(new tn("remove-card-button-click",{last4Digits:t.name.slice(-4)})),this.billingProfiles.removeCard(t.id).subscribe(r=>{this.refresh();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 tn("cards-toggle-button-click",{toggle:this.isCardListShown()}))}onOptionsClick(t){this.context.events.analytics.emit(new tn("card-options-button-click",{last4Digits:t.item.name.slice(-4)}))}selectCard(t){this.context.events.analytics.emit(new tn("select-card-button-click",{last4Digits:t.item.name.slice(-4)})),this.selectCardImpl(t)}onAddCardFocus(){this.context.events.analytics.emit(new tn("add-card-button-focus"),!0)}refresh(){this.context.data.cardsLoading.set(!0),this.billingProfiles.getExistingCards().pipe(gn(t=>t.concat().sort(r=>r.isDefault?-1:1).map(r=>new wV(r)))).subscribe(t=>{t.length?(this.cardFormState.update(r=>({...r,enabled:!1})),this.cardOptions.set(t),this.selectCardImpl(this.cardOptions()[0])):(this.cardFormState.update(r=>({...r,enabled:!0})),this.componentState.update(r=>({...r,enabled:!1})),"existing-card"===this.context.data.userProvidedInfo()?.requisites?.type&&this.context.data.userProvidedInfo.set(void 0)),this.context.data.cardsLoading.set(!1)})}selectCardImpl(t){this.cardOptions().find(i=>i.selected())?.setSelected(!1),t.setSelected(!0),this.context.data.userProvidedInfo.update(i=>({...i,paymentSystemName:"card",requisites:{type:"existing-card",value:t.item}})),this.cardFormState().enabled&&this.cardFormState.update(i=>({...i,enabled:!1}))}resetSelected(){this.getSelectedCard()?.setSelected(!1)}static#e=this.\u0275fac=function(r){return new(r||e)(A(A4),A(ln),A(Jf))};static#t=this.\u0275cmp=zt({type:e,selectors:[["moto-card-list"]],decls:12,vars:6,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"],["id","add-card-button",1,"full-width"],[1,"__ndb-card-list-options-item",3,"select","remove","optionsClicked","option","language"],["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=ar();hi(0),G(1,"div",0)(2,"div",1),Ke("click",function(){return ft(s),pt(i.toggleCardList())}),G(3,"span",2),De(4),W(),G(5,"i",3),De(6,"keyboard_arrow_up"),W()(),G(7,"div",4)(8,"div",5),Fi(9,z$,1,2,"moto-card",6,js),W()(),et(11,q$,5,1,"button",7),W()}if(2&r){const s=Qr(i.settings().language);P(4),tr(s.existingCards.manageCardsHeader),P(),Oi("active",i.isCardListShown()),P(2),ie("@ANToggleList",i.isCardListShown()?"show":"hide"),P(2),Vi(i.cardOptions()),P(2),ut(i.isCardFormVisible()?-1:11)}},dependencies:[R4],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:[TV,MV,IV({animationName:"ANToggleList",fromState:"hide",toState:"show",fromStyles:{height:"0px",overflow:"hidden"},toStyles:{height:"*"}})]},changeDetection:0})}return e})();function L4(e,n=D4){return qn((t,r)=>{let i=null,s=null,o=null;const a=()=>{if(i){i.unsubscribe(),i=null;const c=s;s=null,r.next(c)}};function l(){const c=o+e,u=n.now();if(u<c)return i=this.schedule(void 0,c-u),void r.add(i);a()}t.subscribe(Dn(r,c=>{s=c,o=n.now(),i||(i=n.schedule(l,e),r.add(i))},()=>{a(),r.complete()},void 0,()=>{s=i=null}))})}let F4=(()=>{class e{constructor(){this.detector$=new pn}detectChanges(){this.detector$.next()}listenChangeDetection(){return this.detector$.asObservable()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=te({token:e,factory:e.\u0275fac})}return e})(),ep=(()=>{class e{constructor(t){this.injector=t,this.unsubscriber$=new pn,this.childrenDetector$=new pn}ngOnDestroy(){this.unsubscribe()}listenChildrenDetection(t){const r="local"===t,i="global"===t,s="full"===t;this.childrenDetector$.asObservable().pipe(L4(10),this.untilDestroy()).subscribe(()=>{(r||s)&&this.localDetect(),(i||s)&&this.globalDetect()})}localDetect(){this.injector.get(ec).detectChanges()}globalDetect(){this.injector.get(F4).detectChanges()}detect(){this.localDetect(),this.globalDetect()}untilDestroy(){return function G$(e){return qn((n,t)=>{ji(e).subscribe(Dn(t,()=>t.complete(),Lo)),!t.closed&&n.subscribe(t)})}(this.unsubscriber$.asObservable())}unsubscribe(){this.unsubscriber$.next()}static#e=this.\u0275fac=function(r){return new(r||e)(A(kt))};static#t=this.\u0275cmp=zt({type:e,selectors:[["ng-component"]],decls:0,vars:0,template:function(r,i){},encapsulation:2})}return e})();const{isArray:W$}=Array,{getPrototypeOf:Z$,prototype:K$,keys:Y$}=Object;const{isArray:J$}=Array;function nB(e,n){return e.reduce((t,r,i)=>(t[r]=n[i],t),{})}function rB(...e){const n=function UF(e){return nt(fy(e))?e.pop():void 0}(e),{args:t,keys:r}=function Q$(e){if(1===e.length){const n=e[0];if(W$(n))return{args:n,keys:null};if(function X$(e){return e&&"object"==typeof e&&Z$(e)===K$}(n)){const t=Y$(n);return{args:t.map(r=>n[r]),keys:t}}}return{args:e,keys:null}}(e),i=new Mt(s=>{const{length:o}=t;if(!o)return void s.complete();const a=new Array(o);let l=o,c=o;for(let u=0;u<o;u++){let d=!1;ji(t[u]).subscribe(Dn(s,f=>{d||(d=!0,c--),a[u]=f},()=>l--,void 0,()=>{(!l||!d)&&(c||s.next(r?nB(r,a):a),s.complete())}))}});return n?i.pipe(function tB(e){return gn(n=>function eB(e,n){return J$(n)?e(...n):e(n)}(e,n))}(n)):i}let V4=(()=>{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)(A($s),A(qr))};static#t=this.\u0275dir=Ee({type:e})}return e})(),Sa=(()=>{class e extends V4{static#e=this.\u0275fac=(()=>{let t;return function(i){return(t||(t=Jn(e)))(i||e)}})();static#t=this.\u0275dir=Ee({type:e,features:[at]})}return e})();const mi=new Z(""),iB={provide:mi,useExisting:bt(()=>tp),multi:!0};let tp=(()=>{class e extends Sa{writeValue(t){this.setProperty("checked",t)}static#e=this.\u0275fac=(()=>{let t;return function(i){return(t||(t=Jn(e)))(i||e)}})();static#t=this.\u0275dir=Ee({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,i){1&r&&Ke("change",function(o){return i.onChange(o.target.checked)})("blur",function(){return i.onTouched()})},features:[$t([iB]),at]})}return e})();const sB={provide:mi,useExisting:bt(()=>np),multi:!0},aB=new Z("");let np=(()=>{class e extends V4{constructor(t,r,i){super(t,r),this._compositionMode=i,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function oB(){const e=Hu()?Hu().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)(A($s),A(qr),A(aB,8))};static#t=this.\u0275dir=Ee({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&&Ke("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:[$t([sB]),at]})}return e})();function Ao(e){return null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}function $4(e){return null!=e&&"number"==typeof e.length}const nr=new Z(""),xo=new Z(""),lB=/^(?=.{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 _s{static min(n){return function B4(e){return n=>{if(Ao(n.value)||Ao(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 j4(e){return n=>{if(Ao(n.value)||Ao(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 H4(e){return Ao(e.value)?{required:!0}:null}(n)}static requiredTrue(n){return function U4(e){return!0===e.value?null:{required:!0}}(n)}static email(n){return function z4(e){return Ao(e.value)||lB.test(e.value)?null:{email:!0}}(n)}static minLength(n){return q4(n)}static maxLength(n){return G4(n)}static pattern(n){return function W4(e){if(!e)return rp;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(Ao(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 J4(n)}static composeAsync(n){return eS(n)}}function q4(e){return n=>Ao(n.value)||!$4(n.value)?null:n.value.length<e?{minlength:{requiredLength:e,actualLength:n.value.length}}:null}function G4(e){return n=>$4(n.value)&&n.value.length>e?{maxlength:{requiredLength:e,actualLength:n.value.length}}:null}function rp(e){return null}function Z4(e){return null!=e}function K4(e){return af(e)?Wu(e):e}function Y4(e){let n={};return e.forEach(t=>{n=null!=t?{...n,...t}:n}),0===Object.keys(n).length?null:n}function Q4(e,n){return n.map(t=>t(e))}function X4(e){return e.map(n=>function cB(e){return!e.validate}(n)?n:t=>n.validate(t))}function J4(e){if(!e)return null;const n=e.filter(Z4);return 0==n.length?null:function(t){return Y4(Q4(t,n))}}function My(e){return null!=e?J4(X4(e)):null}function eS(e){if(!e)return null;const n=e.filter(Z4);return 0==n.length?null:function(t){return rB(Q4(t,n).map(K4)).pipe(gn(Y4))}}function Iy(e){return null!=e?eS(X4(e)):null}function tS(e,n){return null===e?[n]:Array.isArray(e)?[...e,n]:[e,n]}function nS(e){return e._rawValidators}function rS(e){return e._rawAsyncValidators}function Ay(e){return e?Array.isArray(e)?e:[e]:[]}function ip(e,n){return Array.isArray(e)?e.includes(n):e===n}function iS(e,n){const t=Ay(n);return Ay(e).forEach(i=>{ip(t,i)||t.push(i)}),t}function sS(e,n){return Ay(n).filter(t=>!ip(e,t))}class oS{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=My(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=Iy(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 wr extends oS{get formDirective(){return null}get path(){return null}}class Gs extends oS{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class aS{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 lc=(()=>{class e extends aS{constructor(t){super(t)}static#e=this.\u0275fac=function(r){return new(r||e)(A(Gs,2))};static#t=this.\u0275dir=Ee({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,i){2&r&&Oi("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:[at]})}return e})(),sp=(()=>{class e extends aS{constructor(t){super(t)}static#e=this.\u0275fac=function(r){return new(r||e)(A(wr,10))};static#t=this.\u0275dir=Ee({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,i){2&r&&Oi("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:[at]})}return e})();const ed="VALID",ap="INVALID",cc="PENDING",td="DISABLED";class uc{}class cS extends uc{constructor(n,t){super(),this.value=n,this.source=t}}class ky extends uc{constructor(n,t){super(),this.pristine=n,this.source=t}}class Py extends uc{constructor(n,t){super(),this.touched=n,this.source=t}}class lp extends uc{constructor(n,t){super(),this.status=n,this.source=t}}class pB extends uc{constructor(n){super(),this.source=n}}class gB extends uc{constructor(n){super(),this.source=n}}function Oy(e){return(cp(e)?e.validators:e)||null}function Ry(e,n){return(cp(n)?n.asyncValidators:e)||null}function cp(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function uS(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 dS(e,n,t){e._forEachChild((r,i)=>{if(void 0===t[i])throw new k(1002,"")})}class up{constructor(n,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=dt(()=>this.statusReactive()),this.statusReactive=ot(void 0),this._pristine=dt(()=>this.pristineReactive()),this.pristineReactive=ot(!0),this._touched=dt(()=>this.touchedReactive()),this.touchedReactive=ot(!1),this._events=new pn,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 vs(this.statusReactive)}set status(n){vs(()=>this.statusReactive.set(n))}get valid(){return this.status===ed}get invalid(){return this.status===ap}get pending(){return this.status==cc}get disabled(){return this.status===td}get enabled(){return this.status!==td}get pristine(){return vs(this.pristineReactive)}set pristine(n){vs(()=>this.pristineReactive.set(n))}get dirty(){return!this.pristine}get touched(){return vs(this.touchedReactive)}set touched(n){vs(()=>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(iS(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(iS(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(sS(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(sS(n,this._rawAsyncValidators))}hasValidator(n){return ip(this._rawValidators,n)}hasAsyncValidator(n){return ip(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 Py(!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 Py(!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 ky(!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 ky(!0,r))}markAsPending(n={}){this.status=cc;const t=n.sourceControl??this;!1!==n.emitEvent&&(this._events.next(new lp(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=td,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 cS(this.value,r)),this._events.next(new lp(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=ed,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===ed||this.status===cc)&&this._runAsyncValidator(r,n.emitEvent)}const t=n.sourceControl??this;!1!==n.emitEvent&&(this._events.next(new cS(this.value,t)),this._events.next(new lp(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()?td:ed}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n,t){if(this.asyncValidator){this.status=cc,this._hasOwnPendingAsyncValidator={emitEvent:!1!==t};const r=K4(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 lp(this.status,t)),this._parent&&this._parent._updateControlsErrors(n,t,r)}_initObservables(){this.valueChanges=new qt,this.statusChanges=new qt}_calculateStatus(){return this._allControlsDisabled()?td:this.errors?ap:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(cc)?cc:this._anyControlsHaveStatus(ap)?ap:ed}_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 ky(this.pristine,t))}_updateTouched(n={},t){this.touched=this._anyControlsTouched(),this._events.next(new Py(this.touched,t)),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,t)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){cp(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 mB(e){return Array.isArray(e)?My(e):e||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function yB(e){return Array.isArray(e)?Iy(e):e||null}(this._rawAsyncValidators)}}class nd extends up{constructor(n,t,r){super(Oy(t),Ry(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={}){dS(this,0,n),Object.keys(n).forEach(r=>{uS(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 hS extends nd{}const Ta=new Z("CallSetDisabledState",{providedIn:"root",factory:()=>rd}),rd="always";function dp(e,n){return[...n.path,e]}function id(e,n,t=rd){Ly(e,n),n.valueAccessor.writeValue(e.value),(e.disabled||"always"===t)&&n.valueAccessor.setDisabledState?.(e.disabled),function _B(e,n){n.valueAccessor.registerOnChange(t=>{e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&fS(e,n)})}(e,n),function bB(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 wB(e,n){n.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&fS(e,n),"submit"!==e.updateOn&&e.markAsTouched()})}(e,n),function vB(e,n){if(n.valueAccessor.setDisabledState){const t=r=>{n.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(t),n._registerOnDestroy(()=>{e._unregisterOnDisabledChange(t)})}}(e,n)}function hp(e,n,t=!0){const r=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(r),n.valueAccessor.registerOnTouched(r)),pp(e,n),e&&(n._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function fp(e,n){e.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(n)})}function Ly(e,n){const t=nS(e);null!==n.validator?e.setValidators(tS(t,n.validator)):"function"==typeof t&&e.setValidators([t]);const r=rS(e);null!==n.asyncValidator?e.setAsyncValidators(tS(r,n.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const i=()=>e.updateValueAndValidity();fp(n._rawValidators,i),fp(n._rawAsyncValidators,i)}function pp(e,n){let t=!1;if(null!==e){if(null!==n.validator){const i=nS(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=rS(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 fp(n._rawValidators,r),fp(n._rawAsyncValidators,r),t}function fS(e,n){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function Vy(e,n){if(!e.hasOwnProperty("model"))return!1;const t=e.model;return!!t.isFirstChange()||!Object.is(n,t.currentValue)}function $y(e,n){if(!n)return null;let t,r,i;return Array.isArray(n),n.forEach(s=>{s.constructor===np?t=s:function DB(e){return Object.getPrototypeOf(e.constructor)===Sa}(s)?r=s:i=s}),i||r||t||null}function mS(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function yS(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}Promise.resolve();const od=class extends up{constructor(n=null,t,r){super(Oy(t),Ry(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}),cp(t)&&(t.nonNullable||t.initialValueIsDefault)&&(this.defaultValue=yS(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){mS(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){mS(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){yS(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 vS=(()=>{class e extends wr{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return dp(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=Jn(e)))(i||e)}})();static#t=this.\u0275dir=Ee({type:e,features:[at]})}return e})();const AB={provide:Gs,useExisting:bt(()=>gp)},wS=Promise.resolve();let gp=(()=>{class e extends Gs{constructor(t,r,i,s,o,a){super(),this._changeDetectorRef=o,this.callSetDisabledState=a,this.control=new od,this._registered=!1,this.name="",this.update=new qt,this._parent=t,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=$y(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),Vy(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(){id(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){wS.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){const r=t.isDisabled.currentValue,i=0!==r&&function N0(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}(r);wS.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?dp(t,this._parent):[t]}static#e=this.\u0275fac=function(r){return new(r||e)(A(wr,9),A(nr,10),A(xo,10),A(mi,10),A(ec,8),A(Ta,8))};static#t=this.\u0275dir=Ee({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:[$t([AB]),at,xi]})}return e})(),mp=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275dir=Ee({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return e})();const jy=new Z(""),RB={provide:wr,useExisting:bt(()=>dc)};let dc=(()=>{class e extends wr{get submitted(){return vs(this._submittedReactive)}set submitted(t){this._submittedReactive.set(t)}constructor(t,r,i){super(),this.callSetDisabledState=i,this._submitted=dt(()=>this._submittedReactive()),this._submittedReactive=ot(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new qt,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&&(pp(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 id(r,t,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),r}getControl(t){return this.form.get(t.path)}removeControl(t){hp(t.control||null,t,!1),function SB(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 gS(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 pB(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 gB(this.form))}_updateDomValue(){this.directives.forEach(t=>{const r=t.control,i=this.form.get(t.path);r!==i&&(hp(r||null,t),(e=>e instanceof od)(i)&&(id(i,t,this.callSetDisabledState),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const r=this.form.get(t.path);(function pS(e,n){Ly(e,n)})(r,t),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const r=this.form.get(t.path);r&&function CB(e,n){return pp(e,n)}(r,t)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ly(this.form,this),this._oldForm&&pp(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(r){return new(r||e)(A(nr,10),A(xo,10),A(Ta,8))};static#t=this.\u0275dir=Ee({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,i){1&r&&Ke("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[$t([RB]),at,xi]})}return e})();const LB={provide:wr,useExisting:bt(()=>yp)};let yp=(()=>{class e extends vS{constructor(t,r,i){super(),this.name=null,this._parent=t,this._setValidators(r),this._setAsyncValidators(i)}_checkParentType(){SS(this._parent)}static#e=this.\u0275fac=function(r){return new(r||e)(A(wr,13),A(nr,10),A(xo,10))};static#t=this.\u0275dir=Ee({type:e,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},features:[$t([LB]),at]})}return e})();const FB={provide:wr,useExisting:bt(()=>vp)};let vp=(()=>{class e extends wr{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 dp(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){SS(this._parent)}static#e=this.\u0275fac=function(r){return new(r||e)(A(wr,13),A(nr,10),A(xo,10))};static#t=this.\u0275dir=Ee({type:e,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},features:[$t([FB]),at]})}return e})();function SS(e){return!(e instanceof yp||e instanceof dc||e instanceof vp)}const VB={provide:Gs,useExisting:bt(()=>ad)};let ad=(()=>{class e extends Gs{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 qt,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=$y(0,s)}ngOnChanges(t){this._added||this._setUpControl(),Vy(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 dp(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)(A(wr,13),A(nr,10),A(xo,10),A(mi,10),A(jy,8))};static#n=this.\u0275dir=Ee({type:e,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[$t([VB]),at,xi]})}return e})();function IS(e){return"number"==typeof e?e:parseInt(e,10)}let Ma=(()=>{class e{constructor(){this._validator=rp}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):rp,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=Ee({type:e,features:[xi]})}return e})();const YB={provide:nr,useExisting:bt(()=>_p),multi:!0};let _p=(()=>{class e extends Ma{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=t=>IS(t),this.createValidator=t=>q4(t)}static#e=this.\u0275fac=(()=>{let t;return function(i){return(t||(t=Jn(e)))(i||e)}})();static#t=this.\u0275dir=Ee({type:e,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(r,i){2&r&&er("minlength",i._enabled?i.minlength:null)},inputs:{minlength:"minlength"},features:[$t([YB]),at]})}return e})();const QB={provide:nr,useExisting:bt(()=>ld),multi:!0};let ld=(()=>{class e extends Ma{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=t=>IS(t),this.createValidator=t=>G4(t)}static#e=this.\u0275fac=(()=>{let t;return function(i){return(t||(t=Jn(e)))(i||e)}})();static#t=this.\u0275dir=Ee({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(r,i){2&r&&er("maxlength",i._enabled?i.maxlength:null)},inputs:{maxlength:"maxlength"},features:[$t([QB]),at]})}return e})(),RS=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Gn({type:e});static#n=this.\u0275inj=Ln({})}return e})();class LS extends up{constructor(n,t,r){super(Oy(t),Ry(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={}){dS(this,0,n),n.forEach((r,i)=>{uS(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 FS(e){return!!e&&(void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn)}let qy=(()=>{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 FS(r)?s=r:null!==r&&(s.validators=r.validator,s.asyncValidators=r.asyncValidator),new nd(i,s)}record(t,r=null){const i=this._reduceControls(t);return new hS(i,r)}control(t,r,i){let s={};return this.useNonNullable?(FS(r)?s=r:(s.validators=r,s.asyncValidators=i),new od(t,{...s,nonNullable:!0})):new od(t,r,i)}array(t,r,i){const s=t.map(o=>this._createControl(o));return new LS(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 od||t instanceof up?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=te({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),VS=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:Ta,useValue:t.callSetDisabledState??rd}]}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Gn({type:e});static#n=this.\u0275inj=Ln({imports:[RS]})}return e})(),$S=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:jy,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:Ta,useValue:t.callSetDisabledState??rd}]}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Gn({type:e});static#n=this.\u0275inj=Ln({imports:[RS]})}return e})();class wp{static luhnAlgorithm({value:n}){return n&&function JB(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,l]=n.split(""),c=`${s}${o}`;return+c<1||+c>12||+`${a}${l}`<i?t:void 0}return t}static cardNumberLength({value:n}){const t=n?.length||0;return t>=Jr.card.number.length.min&&t<=Jr.card.number.length.max?void 0:{cardLength:!0}}static cardCodeLength(n="cardNumber"){return({value:t,parent:r})=>{const i=r?.get(n),[s]=P4()(i?.value),o=!!s?.code.size&&!!t,a=Jr.card.code.lengths[s?.type];return o&&(s?.code.size===t?.length||a?.includes(t?.length))?null:{cardCodeLength:!0}}}}function BS(...e){return function tj(){return V3(1)}()(Wu(e,$f(e)))}function jS(...e){const n=$f(e);return qn((t,r)=>{(n?BS(e,t,n):BS(e,t)).subscribe(r)})}function Gy(e,n,t,r,i,s,o){e.valueChanges.pipe(jS(null),L4(50),function nj(){return qn((e,n)=>{let t,r=!1;e.subscribe(Dn(n,i=>{const s=t;t=i,r&&n.next([s,i]),r=!0}))})}(),e4(([a,l])=>JSON.stringify(a)!==JSON.stringify(l)),t.untilDestroy()).subscribe(([a,l])=>{const c={...n()};let u=!1;!r()&&c.canShowError&&(u=!0,c.canShowError=!1);const d=i(l);c.filled!==d&&(u=!0,c.filled=d),u&&n.update(f=>({...c})),s&&s(l,o)}),e.statusChanges.pipe(jS(e.status),t.untilDestroy()).subscribe(a=>{n.update(l=>({...l,isValid:"VALID"===a}))})}function HS(e){return e&&e.replace(/\s+/g," ").trim()}const bp=new Z("ngx-mask config"),US=new Z("new ngx-mask config"),zS=new Z("initial ngx-mask config"),lj={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 qt,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")}}},cj=["Hh:m0:s0","Hh:m0","m0:s0"],uj=["percent","Hh","s0","m0","separator","d0/M0/0000","d0/M0","d0","M0"];let dj=(()=>{class e{constructor(){this._config=q(bp),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 l=o.length>1?`${a}${o[1]}`:"";let c=o[0]??"";const u=this.separatorLimit.replace(/\s/g,"");u&&+u&&(c="-"===c[0]?`-${c.slice(1,c.length).slice(0,u.length)}`:c.slice(0,u.length));const d=/(\d+)(\d{3})/;for(;r&&d.test(c);)c=c.replace(d,"$1"+r+"$2");return void 0===s?c+l:0===s?c:c+l.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 l=i.find(c=>c!==this.thousandSeparator);i=l||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 l=0,c="",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 g=t.toString().split("");if(this.allowNegativeNumbers&&"-"===t.slice(l,l+1)&&(c+=t.slice(l,l+1)),"IP"===r){const L=t.split(".");this.ipError=this._validIP(L),r="099.099.099.099"}const v=[];for(let L=0;L<t.length;L++)t[L]?.match("\\d")&&v.push(t[L]??"");if("CPF_CNPJ"===r&&(this.cpfCnpjError=11!==v.length&&14!==v.length,r=v.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 U=this.getPrecision(r);t=this.checkInputPrecision(t,U,this.decimalMarker)}const L="string"==typeof this.decimalMarker?this.decimalMarker:".";if(t.indexOf(L)>0&&!this.percentage(t.substring(0,t.indexOf(L)))){let U=t.substring(0,t.indexOf(L)-1);this.allowNegativeNumbers&&"-"===t.slice(l,l+1)&&!o&&(U=t.substring(0,t.indexOf(L))),t=`${U}${t.substring(t.indexOf(L),t.length)}`}let H="";H=this.allowNegativeNumbers&&"-"===t.slice(l,l+1)?t.slice(l+1,l+t.length):t,c=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)&&!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 L=this._charToRegExpExpression(this.thousandSeparator);let H='@#!$%^&*()_+|~=`{}\\[\\]:\\s,\\.";<>?\\/'.replace(L,"");if(Array.isArray(this.decimalMarker))for(const Dt of this.decimalMarker)H=H.replace(this._charToRegExpExpression(Dt),"");else H=H.replace(this._charToRegExpExpression(this.decimalMarker),"");const U=new RegExp("["+H+"]");(t.match(U)||1===t.length&&this._compareOrIncludes(t,this.decimalMarker,this.thousandSeparator))&&(t=t.substring(0,t.length-1));const ce=this.getPrecision(r),Fe=(t=this.checkInputPrecision(t,ce,this.decimalMarker)).replace(new RegExp(L,"g"),"");c=this._formatWithSeparators(Fe,this.thousandSeparator,this.decimalMarker,ce);const Et=c.indexOf(",")-t.indexOf(","),rn=c.length-t.length;if(rn>0&&c[i]!==this.thousandSeparator){d=!0;let Dt=0;do{this._shift.add(i+Dt),Dt++}while(Dt<rn)}else c[i-1]===this.decimalMarker||-4===rn||-3===rn||","===c[i]?(this._shift.clear(),this._shift.add(i-1)):0!==Et&&i>0&&!(c.indexOf(",")>=i&&i>3)||!(c.indexOf(".")>=i&&i>3)&&rn<=0?(this._shift.clear(),d=!0,f=rn,this._shift.add(i+=rn)):this._shift.clear()}else for(let L=0,H=g[0];L<g.length&&l!==r.length;L++,H=g[L]??""){const U="*"in this.patterns;if(this._checkSymbolMask(H,r[l]??"")&&"?"===r[l+1])c+=H,l+=2;else if("*"===r[l+1]&&u&&this._checkSymbolMask(H,r[l+2]??""))c+=H,l+=3,u=!1;else if(this._checkSymbolMask(H,r[l]??"")&&"*"===r[l+1]&&!U)c+=H,u=!0;else if("?"===r[l+1]&&this._checkSymbolMask(H,r[l+2]??""))c+=H,l+=3;else if(this._checkSymbolMask(H,r[l]??"")){if("H"===r[l]&&(this.apm?Number(H)>9:Number(H)>2)){i+=1,l+=1,this._shiftStep(r,l,g.length),L--,this.leadZeroDateTime&&(c+="0");continue}if("h"===r[l]&&(this.apm?1===c.length&&Number(c)>1||"1"===c&&Number(H)>2||1===t.slice(l-1,l).length&&Number(t.slice(l-1,l))>2||"1"===t.slice(l-1,l)&&Number(H)>2:"2"===c&&Number(H)>3||("2"===c.slice(l-2,l)||"2"===c.slice(l-3,l)||"2"===c.slice(l-4,l)||"2"===c.slice(l-1,l))&&Number(H)>3&&l>10)){i+=1,l+=1,L--;continue}if(("m"===r[l]||"s"===r[l])&&Number(H)>5){i+=1,l+=1,this._shiftStep(r,l,g.length),L--,this.leadZeroDateTime&&(c+="0");continue}const ce=31,Fe=t[l],Et=t[l+1],rn=t[l+2],Dt=t[l-1],Rr=t[l-2],bs=t[l-3],Cs=t.slice(l-3,l-1),ka=t.slice(l-1,l+1),Y=t.slice(l,l+2),oe=t.slice(l-2,l);if("d"===r[l]){const fe="M0"===r.slice(0,2),ze="M0"===r.slice(0,2)&&this.specialCharacters.includes(Rr);if(Number(H)>3&&this.leadZeroDateTime||!fe&&(Number(Y)>ce||Number(ka)>ce||this.specialCharacters.includes(Et))||(ze?Number(ka)>ce||!this.specialCharacters.includes(Fe)&&this.specialCharacters.includes(rn)||this.specialCharacters.includes(Fe):Number(Y)>ce||this.specialCharacters.includes(Et))){i+=1,l+=1,this._shiftStep(r,l,g.length),L--,this.leadZeroDateTime&&(c+="0");continue}}if("M"===r[l]){const ze=0===l&&(Number(H)>2||Number(Y)>12||this.specialCharacters.includes(Et)),Nn=r.slice(l+2,l+3),_i=Cs.includes(Nn)&&(this.specialCharacters.includes(Rr)&&Number(ka)>12&&!this.specialCharacters.includes(Fe)||this.specialCharacters.includes(Fe)||this.specialCharacters.includes(bs)&&Number(oe)>12&&!this.specialCharacters.includes(Dt)||this.specialCharacters.includes(Dt)),Cr=Number(Cs)<=ce&&!this.specialCharacters.includes(Cs)&&this.specialCharacters.includes(Dt)&&(Number(Y)>12||this.specialCharacters.includes(Et)),Es=Number(Y)>12&&5===l||this.specialCharacters.includes(Et)&&5===l,Wt=Number(Cs)>ce&&!this.specialCharacters.includes(Cs)&&!this.specialCharacters.includes(oe)&&Number(oe)>12,qp=Number(Cs)<=ce&&!this.specialCharacters.includes(Cs)&&!this.specialCharacters.includes(Dt)&&Number(ka)>12;if(Number(H)>1&&this.leadZeroDateTime||ze||_i||qp||Wt||Cr||Es&&!this.leadZeroDateTime){i+=1,l+=1,this._shiftStep(r,l,g.length),L--,this.leadZeroDateTime&&(c+="0");continue}}c+=H,l++}else" "===H&&" "===r[l]||"/"===H&&"/"===r[l]?(c+=H,l++):-1!==this.specialCharacters.indexOf(r[l]??"")?(c+=r[l],l++,this._shiftStep(r,l,g.length),L--):"9"===r[l]&&this.showMaskTyped?this._shiftStep(r,l,g.length):this.patterns[r[l]??""]&&this.patterns[r[l]??""]?.optional?(g[l]&&"099.099.099.099"!==r&&"000.000.000-00"!==r&&"00.000.000/0000-00"!==r&&!r.match(/^9+\.0+$/)&&!this.patterns[r[l]??""]?.optional&&(c+=g[l]),r.includes("9*")&&r.includes("0*")&&l++,l++,L--):"*"===this.maskExpression[l+1]&&this._findSpecialChar(this.maskExpression[l+2]??"")&&this._findSpecialChar(H)===this.maskExpression[l+2]&&u||"?"===this.maskExpression[l+1]&&this._findSpecialChar(this.maskExpression[l+2]??"")&&this._findSpecialChar(H)===this.maskExpression[l+2]&&u?(l+=3,c+=H):this.showMaskTyped&&this.specialCharacters.indexOf(H)<0&&H!==this.placeHolderCharacter&&1===this.placeHolderCharacter.length&&(h=!0)}c.length+1===r.length&&-1!==this.specialCharacters.indexOf(r[r.length-1]??"")&&(c+=r[r.length-1]);let C=i+1;for(;this._shift.has(C);)f++,C++;let T=s&&!r.startsWith("separator")?l:this._shift.has(i)?f:0;h&&T--,a(T,d),f<0&&this._shift.clear();let D=!1;o&&(D=g.every(L=>this.specialCharacters.includes(L)));let F=`${this.prefix}${D?"":c}${this.suffix}`;if(0===c.length&&(F=this.dropSpecialCharacters?`${c}`:`${this.prefix}${c}`),c.includes("-")&&this.prefix&&this.allowNegativeNumbers){if(o&&"-"===c)return"";F=`-${this.prefix}${c.split("-").join("")}${this.suffix}`}return F}_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=te({token:e,factory:e.\u0275fac}),e})(),Wy=(()=>{class e extends dj{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=q(cr),this._config=q(bp),this._elementRef=q(qr,{optional:!0}),this._renderer=q($s,{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 l=t&&"number"==typeof this.selStart?t[this.selStart]??"":"";let c="";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,l):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))),c=this.actualValue.length&&h.length<=t.length?this.shiftTypedSymbols(h.join("")):t}if(s&&(this.hiddenInput||!this.hiddenInput)&&(c=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)),c=this.maskChanged?t:c&&c.length?c: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(c,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 l=t.slice(0,this._start-1);return l.includes("{")?r+a:l+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=Jn(e)))(r||e)}})(),e.\u0275prov=te({token:e,factory:e.\u0275fac}),e})(),hj=(()=>{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 qt,this._maskValue="",this._position=null,this._maskExpressionArray=[],this._justPasted=!1,this._isComposing=!1,this.document=q(cr),this._maskService=q(Wy,{self:!0}),this._config=q(bp),this.onChange=t=>{},this.onTouch=()=>{}}ngOnChanges(t){const{maskExpression:r,specialCharacters:i,patterns:s,prefix:o,suffix:a,thousandSeparator:l,decimalMarker:c,dropSpecialCharacters:u,hiddenInput:d,showMaskTyped:f,placeHolderCharacter:h,shownMaskExpression:g,showTemplate:v,clearIfNotMatch:C,validation:T,separatorLimit:D,allowNegativeNumbers:F,leadZeroDateTime:L,leadZero:H,triggerOnMaskChange:U,apm:ce,inputTransformFn:Fe,outputTransformFn:Et,keepCharacterPositions:rn}=t;if(r&&(r.currentValue!==r.previousValue&&!r.firstChange&&(this._maskService.maskChanged=!0),F&&(this._maskService.allowNegativeNumbers=F.currentValue,this._maskService.allowNegativeNumbers&&(this._maskService.specialCharacters=this._maskService.specialCharacters.filter(Dt=>"-"!==Dt))),r.currentValue&&r.currentValue.split("||").length>1?(this._maskExpressionArray=r.currentValue.split("||").sort((Dt,Rr)=>Dt.length-Rr.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),ce&&ce.currentValue&&(this._maskService.apm=ce.currentValue),o&&(this._maskService.prefix=o.currentValue),a&&(this._maskService.suffix=a.currentValue),l&&(this._maskService.thousandSeparator=l.currentValue),c&&(this._maskService.decimalMarker=c.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),g&&(this._maskService.shownMaskExpression=g.currentValue),v&&(this._maskService.showTemplate=v.currentValue),C&&(this._maskService.clearIfNotMatch=C.currentValue),T&&(this._maskService.validation=T.currentValue),D&&(this._maskService.separatorLimit=D.currentValue),L&&(this._maskService.leadZeroDateTime=L.currentValue),H&&(this._maskService.leadZero=H.currentValue),U&&(this._maskService.triggerOnMaskChange=U.currentValue),Fe&&(this._maskService.inputTransformFn=Fe.currentValue),Et&&(this._maskService.outputTransformFn=Et.currentValue),rn&&(this._maskService.keepCharacterPositions=rn.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")||uj.includes(this._maskValue)||this._maskService.clearIfNotMatch)return null;if(cj.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 c=r.value.slice(s-1,s),u=this.prefix.length,d=this._maskService._checkSymbolMask(c,this._maskService.maskExpression[s-1-u]??""),f=this._maskService._checkSymbolMask(c,this._maskService.maskExpression[s+1-u]??""),h=this._maskService.selStart===this._maskService.selEnd,g=Number(this._maskService.selStart)-u,v=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===g&&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 C=r.value.substring(0,s),T=r.value.substring(s);this._maskService.actualValue=C+this._maskService.placeHolderCharacter+T}}else this._maskService.actualValue=this._maskService.selStart===u?this.prefix+this._maskService.maskIsShown.slice(0,v)+this._inputValue.split(this.prefix).join(""):this._maskService.selStart===this._maskService.maskIsShown.length+u?this._inputValue+this._maskService.maskIsShown.slice(g,v):this.prefix+this._inputValue.split(this.prefix).join("").slice(0,g)+this._maskService.maskIsShown.slice(g,v)+this._maskService.actualValue.slice(v+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)+c+r.value.slice(s+2),s+=1):d&&(this._maskService.actualValue=r.value.slice(0,s-1)+c+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 c=this._inputValue.slice(s-1,s);r.value=this._inputValue.slice(0,s-1)+c+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,(c,u)=>{this._justPasted=!1,o=c,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 l=this._position?this._inputValue.length+s+o:s+("Backspace"!==this._code||a?o:0);l>this._getActualInputLength()&&(l=this._getActualInputLength()),l<0&&(l=0),r.setSelectionRange(l,l),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 zf(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=Ee({type:e,selectors:[["input","mask",""],["textarea","mask",""]],hostBindings:function(t,r){1&t&&Ke("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:[$t([{provide:mi,useExisting:bt(()=>e),multi:!0},{provide:nr,useExisting:bt(()=>e),multi:!0},Wy]),xi]}),e})();function fj(e,n){return n instanceof Function?{...e,...n()}:{...e,...n}}let qS=(()=>{class e{static forRoot(t){return{ngModule:e,providers:[{provide:US,useValue:t},{provide:zS,useValue:lj},{provide:bp,useFactory:fj,deps:[zS,US]},Wy]}}static forChild(){return{ngModule:e}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Gn({type:e}),e.\u0275inj=Ln({}),e})();const pj=[[["prefix"]],[["suffix"]]],gj=["prefix","suffix"];let GS=(()=>{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 qt}ngOnInit(){this.initFormControl()}initFormControl(){this.formControl=this.injector.get(Gs)}get isInvalidControl(){return"invalid"===this.status||function rj(e){const{invalid:n,pristine:t,touched:r}=e;return!(!n||!r||t)}(this.formControl)&&this.validate}setValue(t){this.value=HS(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=HS(t),this.cdr.detectChanges()}setDisabledState(t){this.disabled=t,this.cdr.detectChanges()}static#e=this.\u0275fac=function(r){return new(r||e)(A(ec),A(kt))};static#t=this.\u0275cmp=zt({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:[$t([{provide:mi,useExisting:bt(()=>e),multi:!0}])],ngContentSelectors:gj,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=ar();(function OE(e){const n=x()[en][Qn];if(!n.projection){const r=n.projection=function Nd(e,n){const t=[];for(let r=0;r<e;r++)t.push(n);return t}(e?e.length:1,null),i=r.slice();let s=n.child;for(;null!==s;){if(128!==s.type){const o=e?XN(s,e):0;null!==o&&(i[o]?i[o].projectionNext=s:r[o]=s,i[o]=s)}s=s.next}}})(pj),G(0,"div",1)(1,"div",2),K1(2),W(),G(3,"div",3)(4,"input",4,0),Ke("ngModelChange",function(a){return ft(s),pt(i.setValue(a))})("blur",function(){return ft(s),pt(i.onTouched())})("paste",function(a){return ft(s),pt(i.paste(a))}),W()(),G(6,"div",2),K1(7,1),W()()}2&r&&(Oi("transparent",i.transparent)("invalid",i.isInvalidControl),P(4),ie("type",i.type)("placeholder",i.placeholder)("minlength",i.minlength)("maxlength",i.maxlength)("mask",i.mask)("dropSpecialCharacters",i.dropSpecialCharacters)("ngModel",i.value),er("data-locator",i.formControlName||i.placeholder)("autocomplete",i.autocomplete))},dependencies:[hj,np,lc,_p,ld,gp],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})();function mj(e,n){if(1&e&&(G(0,"span",4),De(1),W()),2&e){const t=J();ie("@ANTransform",void 0),P(),tr(t.paymentsErrorMsg())}}function yj(e,n){if(1&e&&(G(0,"span",15),De(1),W()),2&e){J();const t=Hn(2);ie("@ANTransform",void 0),P(),tr(t.errors.invalidCardHolder)}}let WS=(()=>{class e extends ep{constructor(t,r,i){super(t),this.injector=t,this.fb=r,this.context=i,this.constants=Jr}ngOnInit(){this.settings=this.context.data.settings,this.componentState=this.context.componentsStates.cardForm,this.initForm(),this.initComputedFields(),Gy(this.form,this.componentState,this,()=>!!this.settings().requiredFieldsBehavior?.markAsInvalidUntilCorrect,this.areRequiredFieldsFilled,this.onUpdate,this.context)}pasteCardNumber(t){const r=function aj(e){return e.replace(/\s/g,"")}(t);this.form.get("cardCredentials").get("cardNumber").setValue(r,{onlySelf:!0}),function oj(e,n,t=null,r=!0){n.forEach(i=>{const s=e.get(i);s||function ej(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 tn("card-number-field-focus"),!0);break;case"cvv":this.context.events.analytics.emit(new tn("cvv-field-focus"),!0);break;case"holder":this.context.events.analytics.emit(new tn("card-holder-field-focus"),!0);break;case"expiration":this.context.events.analytics.emit(new tn("expiration-date-field-focus"),!0)}}initForm(){this.form=this.fb.group({cardCredentials:this.fb.group({cardNumber:[null,[_s.required,wp.luhnAlgorithm,wp.cardNumberLength]],expiration:[null,[_s.required,_s.minLength(4),_s.maxLength(4),wp.cardExpiration]],cvv:[null,[_s.required,wp.cardCodeLength()]]}),cardHolder:[null,[_s.required,_s.maxLength(Jr.card.holder.length.max)]]})}initComputedFields(){this.isCredentialsErrorShown=dt(()=>{const t=this.form.get("cardCredentials");return this.componentState().canShowError&&t.invalid}),this.isCardHolderErrorShown=dt(()=>{const t=this.form.get("cardHolder");return this.componentState().canShowError&&t.invalid}),this.paymentDetailsHeader=dt(()=>{const t=this.settings();return`${t.language.requisites.paymentDetailsHeader}${this.componentState().isRequired&&t.requiredFieldsBehavior?.showStars?" *":""}`}),this.nameOnCardHeader=dt(()=>{const t=this.settings();return`${t.language.requisites.cardHolderHeader}${this.componentState().isRequired&&t.requiredFieldsBehavior?.showStars?" *":""}`}),this.paymentsErrorMsg=dt(()=>{const t=this.form.get("cardCredentials"),[r]=function sj(e){return function ij(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)(A(kt),A(qy),A(ln))};static#t=this.\u0275cmp=zt({type:e,selectors:[["moto-card-form"]],features:[at],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=ar();hi(0)(1)(2),G(3,"form",0)(4,"div",1)(5,"div",2)(6,"h6",3),De(7),W(),et(8,mj,2,2,"span",4),W(),G(9,"div",5)(10,"moto-form-input",6),Bt(11,"cardInfo"),Ke("paste",function(a){return ft(s),pt(i.pasteCardNumber(a))})("focusin",function(){return ft(s),pt(i.onFocus("number"))}),gt(12,"moto-picture",7),Bt(13,"cardInfo"),W(),gt(14,"div",8),G(15,"div",9)(16,"moto-form-input",10),Ke("focusin",function(){return ft(s),pt(i.onFocus("expiration"))}),W(),gt(17,"div",11),G(18,"moto-form-input",12),Bt(19,"cardInfo"),Bt(20,"cardInfo"),Ke("focusin",function(){return ft(s),pt(i.onFocus("cvv"))}),G(21,"div",13),Bt(22,"cardInfo"),G(23,"i",14),De(24,"error"),W()()()()()(),G(25,"div",1)(26,"div",2)(27,"h6",3),De(28),W(),et(29,yj,2,2,"span",15),W(),G(30,"div",16)(31,"moto-form-input",17),Ke("focusin",function(){return ft(s),pt(i.onFocus("holder"))}),W()()()()}if(2&r){const s=i.isCardHolderErrorShown(),o=i.isCredentialsErrorShown();P(2);const a=Qr(i.settings().language);P(),ie("formGroup",i.form),P(4),Gt(" ",i.paymentDetailsHeader()," "),P(),ut(o?8:-1),P(),Oi("invalid",o),P(),ie("placeholder",a.requisites.cardNumberPlaceholder)("mask",Ql(11,29,i.form.value.cardCredentials.cardNumber,"card-number-mask","0000 0000 0000 0000"))("transparent",!0)("validate",!1)("status",o?"invalid":"valid"),P(2),ie("src",lr(13,33,i.form.value.cardCredentials.cardNumber,"logo")),P(4),ie("placeholder",a.requisites.cardExpirationPlaceholder)("transparent",!0)("validate",!1)("status",o?"invalid":"valid"),P(2),ie("mask",Ql(19,36,i.form.value.cardCredentials.cardNumber,"code-mask","000"))("dropSpecialCharacters",!1)("placeholder",function v8(e,n,t,r,i,s){const o=e+re,a=x(),l=Jo(a,o);return Ou(a,o)?m8(a,gr(),n,l.transform,t,r,i,s,l):l.transform(t,r,i,s)}(20,40,i.form.value.cardCredentials.cardNumber,"code","CVV",a.requisites.cvvPlaceholder))("transparent",!0)("validate",!1)("status",o?"invalid":"valid"),P(3),er("data-tooltip",Ql(22,45,i.form.value.cardCredentials.cardNumber,"secure-text",a.requisites.cvvHint)),P(7),Gt(" ",i.nameOnCardHeader()," "),P(),ut(s?29:-1),P(2),ie("placeholder",a.requisites.cardHolderPlaceholder)("maxlength",i.constants.card.holder.length.max)("validate",!1)("status",s?"invalid":"valid")}},dependencies:[mp,lc,sp,ld,dc,ad,yp,rc,GS,Sy],data:{animation:[vy()]},changeDetection:0})}return e})();function vj(e,n){if(1&e&&(G(0,"span",4),De(1),W()),2&e){J();const t=Hn(0);ie("@ANTransform",void 0),P(),Gt(" ",t.errors.invalidPhoneNumber,"")}}let ZS=(()=>{class e extends ep{constructor(t,r,i){super(t),this.injector=t,this.fb=r,this.context=i,this.phoneConstants=Jr.phoneNumber}ngOnInit(){this.componentState=this.context.componentsStates.additionalForm,this.cardFormState=this.context.componentsStates.cardForm,this.settings=this.context.data.settings,this.initComputed(),this.initForm(),Gy(this.form,this.componentState,this,()=>!!this.settings().requiredFieldsBehavior?.markAsInvalidUntilCorrect,t=>!!t.phoneNumber)}onFocus(){this.context.events.analytics.emit(new tn("number-field-focus"),!0)}initForm(){this.form=this.fb.group({phoneNumber:["",[_s.minLength(Jr.phoneNumber.length.min),_s.maxLength(Jr.phoneNumber.length.max)]]})}initComputed(){this.header=dt(()=>{const t=this.settings();return`${t.language.phone.header}${this.componentState().isRequired&&t.requiredFieldsBehavior?.showStars?" *":""}`}),this.isErrorShown=dt(()=>{const t=this.componentState();return t.canShowError&&!t.isValid})}static#e=this.\u0275fac=function(r){return new(r||e)(A(kt),A(qy),A(ln))};static#t=this.\u0275cmp=zt({type:e,selectors:[["moto-additional-form"]],features:[at],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=ar();hi(0)(1),G(2,"form",0)(3,"div",1)(4,"div",2)(5,"h6",3),De(6),W(),et(7,vj,2,2,"span",4),W(),G(8,"div",5)(9,"moto-form-input",6),Ke("focusin",function(){return ft(s),pt(i.onFocus())}),W()()()()}if(2&r){const s=Qr(i.settings().language),o=i.isErrorShown();P(2),ie("formGroup",i.form),P(4),tr(i.header()),P(),ut(o?7:-1),P(2),ie("placeholder",s.phone.placeholder)("minlength",i.phoneConstants.length.min)("maxlength",i.phoneConstants.length.max)("validate",!1)("status",o?"invalid":"valid")}},dependencies:[mp,lc,sp,_p,ld,dc,ad,GS],data:{animation:[vy()]},changeDetection:0})}return e})(),Cp=(()=>{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)(A(ay,16))};static#t=this.\u0275pipe=Tn({name:"linkify",type:e,pure:!0})}return e})();function _j(e,n){if(1&e){const t=ar();G(0,"label",5)(1,"input",6),Ke("ngModelChange",function(i){ft(t);const s=J(),o=s.$implicit,a=s.$index;return pt(J(2).onChange(o,a,i))})("focusin",function(){ft(t);const i=J(),s=i.$implicit,o=i.$index;return pt(J(2).onFocus(s,o))}),W(),gt(2,"span",7)(3,"span",8),Bt(4,"linkify"),W()}if(2&e){const t=J(),r=t.$implicit,i=t.$index,s=J(2),o=Hn(2);P(),ie("name","charge-term-"+i)("id","charge-term-"+i)("formControlName",i),P(),Oi("invalid",o&&!s.form.get("checkboxes").get(i.toString()).value),P(),ie("innerHTML",lr(4,6,r,"__ndb-settings-checkboxes-checkbox-link fz-12 fw-500 font-description"),yo)}}function wj(e,n){1&e&&et(0,_j,5,9,"label",5),2&e&&ut(n.$implicit?0:-1)}function bj(e,n){if(1&e&&(G(0,"form",1),Wl(1,4),Fi(2,wj,1,1,null,null,js),Zl(),W()),2&e){const t=J(),r=Hn(1);ie("formGroup",t.form),P(2),Vi(r.checkboxes)}}function Cj(e,n){if(1&e&&(G(0,"p",2),Bt(1,"linkify"),De(2),W()),2&e){J();const t=Hn(1);ie("innerHTML",lr(1,2,t.text,"fz-12 fw-500 font-description"),yo),P(2),Gt(" ",t.text," ")}}function Ej(e,n){if(1&e&&(G(0,"span",3),De(1),W()),2&e){J();const t=Hn(0);ie("@ANTransform",void 0),P(),Gt(" ",t.language.errors.notCheckedCheckboxes," ")}}let KS=(()=>{class e extends ep{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=dt(()=>this.componentState().canShowError&&!this.componentState().isValid),this.initForm()?Gy(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 tn(i?`charge-term-checkbox-${r}-check`:`charge-term-checkbox-${r}-uncheck`,{text:t}))}onFocus(t,r){this.context.events.analytics.emit(new tn(`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,_s.requiredTrue));return this.form=this.fb.group({checkboxes:this.fb.array(r)}),!0}static#e=this.\u0275fac=function(r){return new(r||e)(A(ln),A(kt),A(qy))};static#t=this.\u0275cmp=zt({type:e,selectors:[["moto-charge-terms"]],features:[at],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&&(hi(0)(1)(2),G(3,"div",0),et(4,bj,4,1,"form",1)(5,Cj,3,5,"p",2)(6,Ej,2,2,"span",3),W()),2&r){const s=Qr(i.settings());P();const o=Qr(s.chargeTerms);P();const a=Qr(i.isErrorShown());P(2),ut(null!=o.checkboxes&&o.checkboxes.length?4:-1),P(),ut(o.text?5:-1),P(),ut(a?6:-1)}},dependencies:[mp,tp,lc,sp,dc,ad,vp,Cp],data:{animation:[vy()]},changeDetection:0})}return e})();var Dj="0123456789abcdefghijklmnopqrstuvwxyz";function Ws(e){return Dj.charAt(e)}function Sj(e,n){return e&n}function Ep(e,n){return e|n}function YS(e,n){return e^n}function QS(e,n){return e&~n}function Tj(e){if(0==e)return-1;var n=0;return 65535&e||(e>>=16,n+=16),255&e||(e>>=8,n+=8),15&e||(e>>=4,n+=4),3&e||(e>>=2,n+=2),1&e||++n,n}function Mj(e){for(var n=0;0!=e;)e&=e-1,++n;return n}var hc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Dp(e){var n,t,r="";for(n=0;n+3<=e.length;n+=3)t=parseInt(e.substring(n,n+3),16),r+=hc.charAt(t>>6)+hc.charAt(63&t);for(n+1==e.length?(t=parseInt(e.substring(n,n+1),16),r+=hc.charAt(t<<2)):n+2==e.length&&(t=parseInt(e.substring(n,n+2),16),r+=hc.charAt(t>>2)+hc.charAt((3&t)<<4));(3&r.length)>0;)r+="=";return r}function Zy(e){var t,n="",r=0,i=0;for(t=0;t<e.length&&"="!=e.charAt(t);++t){var s=hc.indexOf(e.charAt(t));s<0||(0==r?(n+=Ws(s>>2),i=3&s,r=1):1==r?(n+=Ws(i<<2|s>>4),i=15&s,r=2):2==r?(n+=Ws(i),n+=Ws(s>>2),i=3&s,r=3):(n+=Ws(i<<2|s>>4),n+=Ws(15&s),r=0))}return 1==r&&(n+=Ws(i<<2)),n}var fc,Ia,Ky={decode:function(e){var n;if(void 0===Ia){var r="= \f\n\r\t\xa0\u2028\u2029";for(Ia=Object.create(null),n=0;n<64;++n)Ia["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(n)]=n;for(Ia["-"]=62,Ia._=63,n=0;n<9;++n)Ia[r.charAt(n)]=-1}var i=[],s=0,o=0;for(n=0;n<e.length;++n){var a=e.charAt(n);if("="==a)break;if(-1!=(a=Ia[a])){if(void 0===a)throw new Error("Illegal character at offset "+n);s|=a,++o>=4?(i[i.length]=s>>16,i[i.length]=s>>8&255,i[i.length]=255&s,s=0,o=0):s<<=6}}switch(o){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:i[i.length]=s>>10;break;case 3:i[i.length]=s>>16,i[i.length]=s>>8&255}return i},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var n=Ky.re.exec(e);if(n)if(n[1])e=n[1];else{if(!n[2])throw new Error("RegExp out of sync");e=n[2]}return Ky.decode(e)}},pc=1e13,cd=function(){function e(n){this.buf=[+n||0]}return e.prototype.mulAdd=function(n,t){var s,o,r=this.buf,i=r.length;for(s=0;s<i;++s)(o=r[s]*n+t)<pc?t=0:o-=(t=0|o/pc)*pc,r[s]=o;t>0&&(r[s]=t)},e.prototype.sub=function(n){var i,s,t=this.buf,r=t.length;for(i=0;i<r;++i)(s=t[i]-n)<0?(s+=pc,n=1):n=0,t[i]=s;for(;0===t[t.length-1];)t.pop()},e.prototype.toString=function(n){if(10!=(n||10))throw new Error("only base 10 is supported");for(var t=this.buf,r=t[t.length-1].toString(),i=t.length-2;i>=0;--i)r+=(pc+t[i]).toString().substring(1);return r},e.prototype.valueOf=function(){for(var n=this.buf,t=0,r=n.length-1;r>=0;--r)t=t*pc+n[r];return t},e.prototype.simplify=function(){var n=this.buf;return 1==n.length?n[0]:this},e}(),Aj=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,xj=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function gc(e,n){return e.length>n&&(e=e.substring(0,n)+"\u2026"),e}var No,Yy=function(){function e(n,t){this.hexDigits="0123456789ABCDEF",n instanceof e?(this.enc=n.enc,this.pos=n.pos):(this.enc=n,this.pos=t)}return e.prototype.get=function(n){if(void 0===n&&(n=this.pos++),n>=this.enc.length)throw new Error("Requesting byte offset ".concat(n," on a stream of length ").concat(this.enc.length));return"string"==typeof this.enc?this.enc.charCodeAt(n):this.enc[n]},e.prototype.hexByte=function(n){return this.hexDigits.charAt(n>>4&15)+this.hexDigits.charAt(15&n)},e.prototype.hexDump=function(n,t,r){for(var i="",s=n;s<t;++s)if(i+=this.hexByte(this.get(s)),!0!==r)switch(15&s){case 7:i+=" ";break;case 15:i+="\n";break;default:i+=" "}return i},e.prototype.isASCII=function(n,t){for(var r=n;r<t;++r){var i=this.get(r);if(i<32||i>176)return!1}return!0},e.prototype.parseStringISO=function(n,t){for(var r="",i=n;i<t;++i)r+=String.fromCharCode(this.get(i));return r},e.prototype.parseStringUTF=function(n,t){for(var r="",i=n;i<t;){var s=this.get(i++);r+=String.fromCharCode(s<128?s:s>191&&s<224?(31&s)<<6|63&this.get(i++):(15&s)<<12|(63&this.get(i++))<<6|63&this.get(i++))}return r},e.prototype.parseStringBMP=function(n,t){for(var i,s,r="",o=n;o<t;)i=this.get(o++),s=this.get(o++),r+=String.fromCharCode(i<<8|s);return r},e.prototype.parseTime=function(n,t,r){var i=this.parseStringISO(n,t),s=(r?Aj:xj).exec(i);return s?(r&&(s[1]=+s[1],s[1]+=+s[1]<70?2e3:1900),i=s[1]+"-"+s[2]+"-"+s[3]+" "+s[4],s[5]&&(i+=":"+s[5],s[6]&&(i+=":"+s[6],s[7]&&(i+="."+s[7]))),s[8]&&(i+=" UTC","Z"!=s[8]&&(i+=s[8],s[9]&&(i+=":"+s[9]))),i):"Unrecognized time: "+i},e.prototype.parseInteger=function(n,t){for(var o,r=this.get(n),i=r>127,s=i?255:0,a="";r==s&&++n<t;)r=this.get(n);if(0==(o=t-n))return i?-1:0;if(o>4){for(a=r,o<<=3;!(128&(+a^s));)a=+a<<1,--o;a="("+o+" bit)\n"}i&&(r-=256);for(var l=new cd(r),c=n+1;c<t;++c)l.mulAdd(256,this.get(c));return a+l.toString()},e.prototype.parseBitString=function(n,t,r){for(var i=this.get(n),o="("+((t-n-1<<3)-i)+" bit)\n",a="",l=n+1;l<t;++l){for(var c=this.get(l),u=l==t-1?i:0,d=7;d>=u;--d)a+=c>>d&1?"1":"0";if(a.length>r)return o+gc(a,r)}return o+a},e.prototype.parseOctetString=function(n,t,r){if(this.isASCII(n,t))return gc(this.parseStringISO(n,t),r);var i=t-n,s="("+i+" byte)\n";i>(r/=2)&&(t=n+r);for(var o=n;o<t;++o)s+=this.hexByte(this.get(o));return i>r&&(s+="\u2026"),s},e.prototype.parseOID=function(n,t,r){for(var i="",s=new cd,o=0,a=n;a<t;++a){var l=this.get(a);if(s.mulAdd(128,127&l),o+=7,!(128&l)){if(""===i)if((s=s.simplify())instanceof cd)s.sub(80),i="2."+s.toString();else{var c=s<80?s<40?0:1:2;i=c+"."+(s-40*c)}else i+="."+s.toString();if(i.length>r)return gc(i,r);s=new cd,o=0}}return o>0&&(i+=".incomplete"),i},e}(),Nj=function(){function e(n,t,r,i,s){if(!(i instanceof e5))throw new Error("Invalid tag value.");this.stream=n,this.header=t,this.length=r,this.tag=i,this.sub=s}return e.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},e.prototype.content=function(n){if(void 0===this.tag)return null;void 0===n&&(n=1/0);var t=this.posContent(),r=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+r,n);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(t)?"false":"true";case 2:return this.stream.parseInteger(t,t+r);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(t,t+r,n);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+r,n);case 6:return this.stream.parseOID(t,t+r,n);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return gc(this.stream.parseStringUTF(t,t+r),n);case 18:case 19:case 20:case 21:case 22:case 26:return gc(this.stream.parseStringISO(t,t+r),n);case 30:return gc(this.stream.parseStringBMP(t,t+r),n);case 23:case 24:return this.stream.parseTime(t,t+r,23==this.tag.tagNumber)}return null},e.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},e.prototype.toPrettyString=function(n){void 0===n&&(n="");var t=n+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(t+="+"),t+=this.length,this.tag.tagConstructed?t+=" (constructed)":this.tag.isUniversal()&&(3==this.tag.tagNumber||4==this.tag.tagNumber)&&null!==this.sub&&(t+=" (encapsulates)"),t+="\n",null!==this.sub){n+=" ";for(var r=0,i=this.sub.length;r<i;++r)t+=this.sub[r].toPrettyString(n)}return t},e.prototype.posStart=function(){return this.stream.pos},e.prototype.posContent=function(){return this.stream.pos+this.header},e.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},e.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},e.decodeLength=function(n){var t=n.get(),r=127&t;if(r==t)return r;if(r>6)throw new Error("Length over 48 bits not supported at position "+(n.pos-1));if(0===r)return null;t=0;for(var i=0;i<r;++i)t=256*t+n.get();return t},e.prototype.getHexStringValue=function(){return this.toHexString().substr(2*this.header,2*this.length)},e.decode=function(n){var t;t=n instanceof Yy?n:new Yy(n,0);var r=new Yy(t),i=new e5(t),s=e.decodeLength(t),o=t.pos,a=o-r.pos,l=null,c=function(){var d=[];if(null!==s){for(var f=o+s;t.pos<f;)d[d.length]=e.decode(t);if(t.pos!=f)throw new Error("Content size is not correct for container starting at offset "+o)}else try{for(;;){var h=e.decode(t);if(h.tag.isEOC())break;d[d.length]=h}s=o-t.pos}catch(g){throw new Error("Exception while decoding undefined length content: "+g)}return d};if(i.tagConstructed)l=c();else if(i.isUniversal()&&(3==i.tagNumber||4==i.tagNumber))try{if(3==i.tagNumber&&0!=t.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");l=c();for(var u=0;u<l.length;++u)if(l[u].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{l=null}if(null===l){if(null===s)throw new Error("We can't skip over an invalid tag with undefined length at offset "+o);t.pos=o+Math.abs(s)}return new e(r,a,s,i,l)},e}(),e5=function(){function e(n){var t=n.get();if(this.tagClass=t>>6,this.tagConstructed=!!(32&t),this.tagNumber=31&t,31==this.tagNumber){var r=new cd;do{t=n.get(),r.mulAdd(128,127&t)}while(128&t);this.tagNumber=r.simplify()}}return e.prototype.isUniversal=function(){return 0===this.tagClass},e.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},e}(),br=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],Pj=(1<<26)/br[br.length-1],Pe=function(){function e(n,t,r){null!=n&&("number"==typeof n?this.fromNumber(n,t,r):this.fromString(n,null==t&&"string"!=typeof n?256:t))}return e.prototype.toString=function(n){if(this.s<0)return"-"+this.negate().toString(n);var t;if(16==n)t=4;else if(8==n)t=3;else if(2==n)t=1;else if(32==n)t=5;else{if(4!=n)return this.toRadix(n);t=2}var i,r=(1<<t)-1,s=!1,o="",a=this.t,l=this.DB-a*this.DB%t;if(a-- >0)for(l<this.DB&&(i=this[a]>>l)>0&&(s=!0,o=Ws(i));a>=0;)l<t?(i=(this[a]&(1<<l)-1)<<t-l,i|=this[--a]>>(l+=this.DB-t)):(i=this[a]>>(l-=t)&r,l<=0&&(l+=this.DB,--a)),i>0&&(s=!0),s&&(o+=Ws(i));return s?o:"0"},e.prototype.negate=function(){var n=Ue();return e.ZERO.subTo(this,n),n},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(n){var t=this.s-n.s;if(0!=t)return t;var r=this.t;if(0!=(t=r-n.t))return this.s<0?-t:t;for(;--r>=0;)if(0!=(t=this[r]-n[r]))return t;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+Tp(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(n){var t=Ue();return this.abs().divRemTo(n,null,t),this.s<0&&t.compareTo(e.ZERO)>0&&n.subTo(t,t),t},e.prototype.modPowInt=function(n,t){var r;return r=n<256||t.isEven()?new n5(t):new r5(t),this.exp(n,r)},e.prototype.clone=function(){var n=Ue();return this.copyTo(n),n},e.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},e.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var n=this.t,t=[];t[0]=this.s;var i,r=this.DB-n*this.DB%8,s=0;if(n-- >0)for(r<this.DB&&(i=this[n]>>r)!=(this.s&this.DM)>>r&&(t[s++]=i|this.s<<this.DB-r);n>=0;)r<8?(i=(this[n]&(1<<r)-1)<<8-r,i|=this[--n]>>(r+=this.DB-8)):(i=this[n]>>(r-=8)&255,r<=0&&(r+=this.DB,--n)),128&i&&(i|=-256),0==s&&(128&this.s)!=(128&i)&&++s,(s>0||i!=this.s)&&(t[s++]=i);return t},e.prototype.equals=function(n){return 0==this.compareTo(n)},e.prototype.min=function(n){return this.compareTo(n)<0?this:n},e.prototype.max=function(n){return this.compareTo(n)>0?this:n},e.prototype.and=function(n){var t=Ue();return this.bitwiseTo(n,Sj,t),t},e.prototype.or=function(n){var t=Ue();return this.bitwiseTo(n,Ep,t),t},e.prototype.xor=function(n){var t=Ue();return this.bitwiseTo(n,YS,t),t},e.prototype.andNot=function(n){var t=Ue();return this.bitwiseTo(n,QS,t),t},e.prototype.not=function(){for(var n=Ue(),t=0;t<this.t;++t)n[t]=this.DM&~this[t];return n.t=this.t,n.s=~this.s,n},e.prototype.shiftLeft=function(n){var t=Ue();return n<0?this.rShiftTo(-n,t):this.lShiftTo(n,t),t},e.prototype.shiftRight=function(n){var t=Ue();return n<0?this.lShiftTo(-n,t):this.rShiftTo(n,t),t},e.prototype.getLowestSetBit=function(){for(var n=0;n<this.t;++n)if(0!=this[n])return n*this.DB+Tj(this[n]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var n=0,t=this.s&this.DM,r=0;r<this.t;++r)n+=Mj(this[r]^t);return n},e.prototype.testBit=function(n){var t=Math.floor(n/this.DB);return t>=this.t?0!=this.s:!!(this[t]&1<<n%this.DB)},e.prototype.setBit=function(n){return this.changeBit(n,Ep)},e.prototype.clearBit=function(n){return this.changeBit(n,QS)},e.prototype.flipBit=function(n){return this.changeBit(n,YS)},e.prototype.add=function(n){var t=Ue();return this.addTo(n,t),t},e.prototype.subtract=function(n){var t=Ue();return this.subTo(n,t),t},e.prototype.multiply=function(n){var t=Ue();return this.multiplyTo(n,t),t},e.prototype.divide=function(n){var t=Ue();return this.divRemTo(n,t,null),t},e.prototype.remainder=function(n){var t=Ue();return this.divRemTo(n,null,t),t},e.prototype.divideAndRemainder=function(n){var t=Ue(),r=Ue();return this.divRemTo(n,t,r),[t,r]},e.prototype.modPow=function(n,t){var i,o,r=n.bitLength(),s=ko(1);if(r<=0)return s;i=r<18?1:r<48?3:r<144?4:r<768?5:6,o=r<8?new n5(t):t.isEven()?new Rj(t):new r5(t);var a=[],l=3,c=i-1,u=(1<<i)-1;if(a[1]=o.convert(this),i>1){var d=Ue();for(o.sqrTo(a[1],d);l<=u;)a[l]=Ue(),o.mulTo(d,a[l-2],a[l]),l+=2}var h,C,f=n.t-1,g=!0,v=Ue();for(r=Tp(n[f])-1;f>=0;){for(r>=c?h=n[f]>>r-c&u:(h=(n[f]&(1<<r+1)-1)<<c-r,f>0&&(h|=n[f-1]>>this.DB+r-c)),l=i;!(1&h);)h>>=1,--l;if((r-=l)<0&&(r+=this.DB,--f),g)a[h].copyTo(s),g=!1;else{for(;l>1;)o.sqrTo(s,v),o.sqrTo(v,s),l-=2;l>0?o.sqrTo(s,v):(C=s,s=v,v=C),o.mulTo(v,a[h],s)}for(;f>=0&&!(n[f]&1<<r);)o.sqrTo(s,v),C=s,s=v,v=C,--r<0&&(r=this.DB-1,--f)}return o.revert(s)},e.prototype.modInverse=function(n){var t=n.isEven();if(this.isEven()&&t||0==n.signum())return e.ZERO;for(var r=n.clone(),i=this.clone(),s=ko(1),o=ko(0),a=ko(0),l=ko(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),t?((!s.isEven()||!o.isEven())&&(s.addTo(this,s),o.subTo(n,o)),s.rShiftTo(1,s)):o.isEven()||o.subTo(n,o),o.rShiftTo(1,o);for(;i.isEven();)i.rShiftTo(1,i),t?((!a.isEven()||!l.isEven())&&(a.addTo(this,a),l.subTo(n,l)),a.rShiftTo(1,a)):l.isEven()||l.subTo(n,l),l.rShiftTo(1,l);r.compareTo(i)>=0?(r.subTo(i,r),t&&s.subTo(a,s),o.subTo(l,o)):(i.subTo(r,i),t&&a.subTo(s,a),l.subTo(o,l))}return 0!=i.compareTo(e.ONE)?e.ZERO:l.compareTo(n)>=0?l.subtract(n):l.signum()<0?(l.addTo(n,l),l.signum()<0?l.add(n):l):l},e.prototype.pow=function(n){return this.exp(n,new Oj)},e.prototype.gcd=function(n){var t=this.s<0?this.negate():this.clone(),r=n.s<0?n.negate():n.clone();if(t.compareTo(r)<0){var i=t;t=r,r=i}var s=t.getLowestSetBit(),o=r.getLowestSetBit();if(o<0)return t;for(s<o&&(o=s),o>0&&(t.rShiftTo(o,t),r.rShiftTo(o,r));t.signum()>0;)(s=t.getLowestSetBit())>0&&t.rShiftTo(s,t),(s=r.getLowestSetBit())>0&&r.rShiftTo(s,r),t.compareTo(r)>=0?(t.subTo(r,t),t.rShiftTo(1,t)):(r.subTo(t,r),r.rShiftTo(1,r));return o>0&&r.lShiftTo(o,r),r},e.prototype.isProbablePrime=function(n){var t,r=this.abs();if(1==r.t&&r[0]<=br[br.length-1]){for(t=0;t<br.length;++t)if(r[0]==br[t])return!0;return!1}if(r.isEven())return!1;for(t=1;t<br.length;){for(var i=br[t],s=t+1;s<br.length&&i<Pj;)i*=br[s++];for(i=r.modInt(i);t<s;)if(i%br[t++]==0)return!1}return r.millerRabin(n)},e.prototype.copyTo=function(n){for(var t=this.t-1;t>=0;--t)n[t]=this[t];n.t=this.t,n.s=this.s},e.prototype.fromInt=function(n){this.t=1,this.s=n<0?-1:0,n>0?this[0]=n:n<-1?this[0]=n+this.DV:this.t=0},e.prototype.fromString=function(n,t){var r;if(16==t)r=4;else if(8==t)r=3;else if(256==t)r=8;else if(2==t)r=1;else if(32==t)r=5;else{if(4!=t)return void this.fromRadix(n,t);r=2}this.t=0,this.s=0;for(var i=n.length,s=!1,o=0;--i>=0;){var a=8==r?255&+n[i]:s5(n,i);a<0?"-"==n.charAt(i)&&(s=!0):(s=!1,0==o?this[this.t++]=a:o+r>this.DB?(this[this.t-1]|=(a&(1<<this.DB-o)-1)<<o,this[this.t++]=a>>this.DB-o):this[this.t-1]|=a<<o,(o+=r)>=this.DB&&(o-=this.DB))}8==r&&128&+n[0]&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),s&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){for(var n=this.s&this.DM;this.t>0&&this[this.t-1]==n;)--this.t},e.prototype.dlShiftTo=function(n,t){var r;for(r=this.t-1;r>=0;--r)t[r+n]=this[r];for(r=n-1;r>=0;--r)t[r]=0;t.t=this.t+n,t.s=this.s},e.prototype.drShiftTo=function(n,t){for(var r=n;r<this.t;++r)t[r-n]=this[r];t.t=Math.max(this.t-n,0),t.s=this.s},e.prototype.lShiftTo=function(n,t){for(var r=n%this.DB,i=this.DB-r,s=(1<<i)-1,o=Math.floor(n/this.DB),a=this.s<<r&this.DM,l=this.t-1;l>=0;--l)t[l+o+1]=this[l]>>i|a,a=(this[l]&s)<<r;for(l=o-1;l>=0;--l)t[l]=0;t[o]=a,t.t=this.t+o+1,t.s=this.s,t.clamp()},e.prototype.rShiftTo=function(n,t){t.s=this.s;var r=Math.floor(n/this.DB);if(r>=this.t)t.t=0;else{var i=n%this.DB,s=this.DB-i,o=(1<<i)-1;t[0]=this[r]>>i;for(var a=r+1;a<this.t;++a)t[a-r-1]|=(this[a]&o)<<s,t[a-r]=this[a]>>i;i>0&&(t[this.t-r-1]|=(this.s&o)<<s),t.t=this.t-r,t.clamp()}},e.prototype.subTo=function(n,t){for(var r=0,i=0,s=Math.min(n.t,this.t);r<s;)i+=this[r]-n[r],t[r++]=i&this.DM,i>>=this.DB;if(n.t<this.t){for(i-=n.s;r<this.t;)i+=this[r],t[r++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;r<n.t;)i-=n[r],t[r++]=i&this.DM,i>>=this.DB;i-=n.s}t.s=i<0?-1:0,i<-1?t[r++]=this.DV+i:i>0&&(t[r++]=i),t.t=r,t.clamp()},e.prototype.multiplyTo=function(n,t){var r=this.abs(),i=n.abs(),s=r.t;for(t.t=s+i.t;--s>=0;)t[s]=0;for(s=0;s<i.t;++s)t[s+r.t]=r.am(0,i[s],t,s,0,r.t);t.s=0,t.clamp(),this.s!=n.s&&e.ZERO.subTo(t,t)},e.prototype.squareTo=function(n){for(var t=this.abs(),r=n.t=2*t.t;--r>=0;)n[r]=0;for(r=0;r<t.t-1;++r){var i=t.am(r,t[r],n,2*r,0,1);(n[r+t.t]+=t.am(r+1,2*t[r],n,2*r+1,i,t.t-r-1))>=t.DV&&(n[r+t.t]-=t.DV,n[r+t.t+1]=1)}n.t>0&&(n[n.t-1]+=t.am(r,t[r],n,2*r,0,1)),n.s=0,n.clamp()},e.prototype.divRemTo=function(n,t,r){var i=n.abs();if(!(i.t<=0)){var s=this.abs();if(s.t<i.t)return t?.fromInt(0),void(null!=r&&this.copyTo(r));null==r&&(r=Ue());var o=Ue(),a=this.s,l=n.s,c=this.DB-Tp(i[i.t-1]);c>0?(i.lShiftTo(c,o),s.lShiftTo(c,r)):(i.copyTo(o),s.copyTo(r));var u=o.t,d=o[u-1];if(0!=d){var f=d*(1<<this.F1)+(u>1?o[u-2]>>this.F2:0),h=this.FV/f,g=(1<<this.F1)/f,v=1<<this.F2,C=r.t,T=C-u,D=t??Ue();for(o.dlShiftTo(T,D),r.compareTo(D)>=0&&(r[r.t++]=1,r.subTo(D,r)),e.ONE.dlShiftTo(u,D),D.subTo(o,o);o.t<u;)o[o.t++]=0;for(;--T>=0;){var F=r[--C]==d?this.DM:Math.floor(r[C]*h+(r[C-1]+v)*g);if((r[C]+=o.am(0,F,r,T,0,u))<F)for(o.dlShiftTo(T,D),r.subTo(D,r);r[C]<--F;)r.subTo(D,r)}null!=t&&(r.drShiftTo(u,t),a!=l&&e.ZERO.subTo(t,t)),r.t=u,r.clamp(),c>0&&r.rShiftTo(c,r),a<0&&e.ZERO.subTo(r,r)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var n=this[0];if(!(1&n))return 0;var t=3&n;return(t=(t=(t=(t=t*(2-(15&n)*t)&15)*(2-(255&n)*t)&255)*(2-((65535&n)*t&65535))&65535)*(2-n*t%this.DV)%this.DV)>0?this.DV-t:-t},e.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},e.prototype.exp=function(n,t){if(n>4294967295||n<1)return e.ONE;var r=Ue(),i=Ue(),s=t.convert(this),o=Tp(n)-1;for(s.copyTo(r);--o>=0;)if(t.sqrTo(r,i),(n&1<<o)>0)t.mulTo(i,s,r);else{var a=r;r=i,i=a}return t.revert(r)},e.prototype.chunkSize=function(n){return Math.floor(Math.LN2*this.DB/Math.log(n))},e.prototype.toRadix=function(n){if(null==n&&(n=10),0==this.signum()||n<2||n>36)return"0";var t=this.chunkSize(n),r=Math.pow(n,t),i=ko(r),s=Ue(),o=Ue(),a="";for(this.divRemTo(i,s,o);s.signum()>0;)a=(r+o.intValue()).toString(n).substr(1)+a,s.divRemTo(i,s,o);return o.intValue().toString(n)+a},e.prototype.fromRadix=function(n,t){this.fromInt(0),null==t&&(t=10);for(var r=this.chunkSize(t),i=Math.pow(t,r),s=!1,o=0,a=0,l=0;l<n.length;++l){var c=s5(n,l);c<0?"-"==n.charAt(l)&&0==this.signum()&&(s=!0):(a=t*a+c,++o>=r&&(this.dMultiply(i),this.dAddOffset(a,0),o=0,a=0))}o>0&&(this.dMultiply(Math.pow(t,o)),this.dAddOffset(a,0)),s&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(n,t,r){if("number"==typeof t)if(n<2)this.fromInt(1);else for(this.fromNumber(n,r),this.testBit(n-1)||this.bitwiseTo(e.ONE.shiftLeft(n-1),Ep,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>n&&this.subTo(e.ONE.shiftLeft(n-1),this);else{var i=[],s=7&n;i.length=1+(n>>3),t.nextBytes(i),s>0?i[0]&=(1<<s)-1:i[0]=0,this.fromString(i,256)}},e.prototype.bitwiseTo=function(n,t,r){var i,s,o=Math.min(n.t,this.t);for(i=0;i<o;++i)r[i]=t(this[i],n[i]);if(n.t<this.t){for(s=n.s&this.DM,i=o;i<this.t;++i)r[i]=t(this[i],s);r.t=this.t}else{for(s=this.s&this.DM,i=o;i<n.t;++i)r[i]=t(s,n[i]);r.t=n.t}r.s=t(this.s,n.s),r.clamp()},e.prototype.changeBit=function(n,t){var r=e.ONE.shiftLeft(n);return this.bitwiseTo(r,t,r),r},e.prototype.addTo=function(n,t){for(var r=0,i=0,s=Math.min(n.t,this.t);r<s;)i+=this[r]+n[r],t[r++]=i&this.DM,i>>=this.DB;if(n.t<this.t){for(i+=n.s;r<this.t;)i+=this[r],t[r++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;r<n.t;)i+=n[r],t[r++]=i&this.DM,i>>=this.DB;i+=n.s}t.s=i<0?-1:0,i>0?t[r++]=i:i<-1&&(t[r++]=this.DV+i),t.t=r,t.clamp()},e.prototype.dMultiply=function(n){this[this.t]=this.am(0,n-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(n,t){if(0!=n){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=n;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},e.prototype.multiplyLowerTo=function(n,t,r){var i=Math.min(this.t+n.t,t);for(r.s=0,r.t=i;i>0;)r[--i]=0;for(var s=r.t-this.t;i<s;++i)r[i+this.t]=this.am(0,n[i],r,i,0,this.t);for(s=Math.min(n.t,t);i<s;++i)this.am(0,n[i],r,i,0,t-i);r.clamp()},e.prototype.multiplyUpperTo=function(n,t,r){--t;var i=r.t=this.t+n.t-t;for(r.s=0;--i>=0;)r[i]=0;for(i=Math.max(t-this.t,0);i<n.t;++i)r[this.t+i-t]=this.am(t-i,n[i],r,0,0,this.t+i-t);r.clamp(),r.drShiftTo(1,r)},e.prototype.modInt=function(n){if(n<=0)return 0;var t=this.DV%n,r=this.s<0?n-1:0;if(this.t>0)if(0==t)r=this[0]%n;else for(var i=this.t-1;i>=0;--i)r=(t*r+this[i])%n;return r},e.prototype.millerRabin=function(n){var t=this.subtract(e.ONE),r=t.getLowestSetBit();if(r<=0)return!1;var i=t.shiftRight(r);(n=n+1>>1)>br.length&&(n=br.length);for(var s=Ue(),o=0;o<n;++o){s.fromInt(br[Math.floor(Math.random()*br.length)]);var a=s.modPow(i,this);if(0!=a.compareTo(e.ONE)&&0!=a.compareTo(t)){for(var l=1;l++<r&&0!=a.compareTo(t);)if(0==(a=a.modPowInt(2,this)).compareTo(e.ONE))return!1;if(0!=a.compareTo(t))return!1}}return!0},e.prototype.square=function(){var n=Ue();return this.squareTo(n),n},e.prototype.gcda=function(n,t){var r=this.s<0?this.negate():this.clone(),i=n.s<0?n.negate():n.clone();if(r.compareTo(i)<0){var s=r;r=i,i=s}var o=r.getLowestSetBit(),a=i.getLowestSetBit();if(a<0)t(r);else{o<a&&(a=o),a>0&&(r.rShiftTo(a,r),i.rShiftTo(a,i));var l=function(){(o=r.getLowestSetBit())>0&&r.rShiftTo(o,r),(o=i.getLowestSetBit())>0&&i.rShiftTo(o,i),r.compareTo(i)>=0?(r.subTo(i,r),r.rShiftTo(1,r)):(i.subTo(r,i),i.rShiftTo(1,i)),r.signum()>0?setTimeout(l,0):(a>0&&i.lShiftTo(a,i),setTimeout(function(){t(i)},0))};setTimeout(l,10)}},e.prototype.fromNumberAsync=function(n,t,r,i){if("number"==typeof t)if(n<2)this.fromInt(1);else{this.fromNumber(n,r),this.testBit(n-1)||this.bitwiseTo(e.ONE.shiftLeft(n-1),Ep,this),this.isEven()&&this.dAddOffset(1,0);var s=this,o=function(){s.dAddOffset(2,0),s.bitLength()>n&&s.subTo(e.ONE.shiftLeft(n-1),s),s.isProbablePrime(t)?setTimeout(function(){i()},0):setTimeout(o,0)};setTimeout(o,0)}else{var a=[],l=7&n;a.length=1+(n>>3),t.nextBytes(a),l>0?a[0]&=(1<<l)-1:a[0]=0,this.fromString(a,256)}},e}(),Oj=function(){function e(){}return e.prototype.convert=function(n){return n},e.prototype.revert=function(n){return n},e.prototype.mulTo=function(n,t,r){n.multiplyTo(t,r)},e.prototype.sqrTo=function(n,t){n.squareTo(t)},e}(),n5=function(){function e(n){this.m=n}return e.prototype.convert=function(n){return n.s<0||n.compareTo(this.m)>=0?n.mod(this.m):n},e.prototype.revert=function(n){return n},e.prototype.reduce=function(n){n.divRemTo(this.m,null,n)},e.prototype.mulTo=function(n,t,r){n.multiplyTo(t,r),this.reduce(r)},e.prototype.sqrTo=function(n,t){n.squareTo(t),this.reduce(t)},e}(),r5=function(){function e(n){this.m=n,this.mp=n.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<n.DB-15)-1,this.mt2=2*n.t}return e.prototype.convert=function(n){var t=Ue();return n.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),n.s<0&&t.compareTo(Pe.ZERO)>0&&this.m.subTo(t,t),t},e.prototype.revert=function(n){var t=Ue();return n.copyTo(t),this.reduce(t),t},e.prototype.reduce=function(n){for(;n.t<=this.mt2;)n[n.t++]=0;for(var t=0;t<this.m.t;++t){var r=32767&n[t],i=r*this.mpl+((r*this.mph+(n[t]>>15)*this.mpl&this.um)<<15)&n.DM;for(n[r=t+this.m.t]+=this.m.am(0,i,n,t,0,this.m.t);n[r]>=n.DV;)n[r]-=n.DV,n[++r]++}n.clamp(),n.drShiftTo(this.m.t,n),n.compareTo(this.m)>=0&&n.subTo(this.m,n)},e.prototype.mulTo=function(n,t,r){n.multiplyTo(t,r),this.reduce(r)},e.prototype.sqrTo=function(n,t){n.squareTo(t),this.reduce(t)},e}(),Rj=function(){function e(n){this.m=n,this.r2=Ue(),this.q3=Ue(),Pe.ONE.dlShiftTo(2*n.t,this.r2),this.mu=this.r2.divide(n)}return e.prototype.convert=function(n){if(n.s<0||n.t>2*this.m.t)return n.mod(this.m);if(n.compareTo(this.m)<0)return n;var t=Ue();return n.copyTo(t),this.reduce(t),t},e.prototype.revert=function(n){return n},e.prototype.reduce=function(n){for(n.drShiftTo(this.m.t-1,this.r2),n.t>this.m.t+1&&(n.t=this.m.t+1,n.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);n.compareTo(this.r2)<0;)n.dAddOffset(1,this.m.t+1);for(n.subTo(this.r2,n);n.compareTo(this.m)>=0;)n.subTo(this.m,n)},e.prototype.mulTo=function(n,t,r){n.multiplyTo(t,r),this.reduce(r)},e.prototype.sqrTo=function(n,t){n.squareTo(t),this.reduce(t)},e}();function Ue(){return new Pe(null)}function un(e,n){return new Pe(e,n)}var i5=typeof navigator<"u";i5&&"Microsoft Internet Explorer"==navigator.appName?(Pe.prototype.am=function(n,t,r,i,s,o){for(var a=32767&t,l=t>>15;--o>=0;){var c=32767&this[n],u=this[n++]>>15,d=l*c+u*a;s=((c=a*c+((32767&d)<<15)+r[i]+(1073741823&s))>>>30)+(d>>>15)+l*u+(s>>>30),r[i++]=1073741823&c}return s},No=30):i5&&"Netscape"!=navigator.appName?(Pe.prototype.am=function(n,t,r,i,s,o){for(;--o>=0;){var a=t*this[n++]+r[i]+s;s=Math.floor(a/67108864),r[i++]=67108863&a}return s},No=26):(Pe.prototype.am=function(n,t,r,i,s,o){for(var a=16383&t,l=t>>14;--o>=0;){var c=16383&this[n],u=this[n++]>>14,d=l*c+u*a;s=((c=a*c+((16383&d)<<14)+r[i]+s)>>28)+(d>>14)+l*u,r[i++]=268435455&c}return s},No=28),Pe.prototype.DB=No,Pe.prototype.DM=(1<<No)-1,Pe.prototype.DV=1<<No,Pe.prototype.FV=Math.pow(2,52),Pe.prototype.F1=52-No,Pe.prototype.F2=2*No-52;var mc,yi,Sp=[];for(mc=48,yi=0;yi<=9;++yi)Sp[mc++]=yi;for(mc=97,yi=10;yi<36;++yi)Sp[mc++]=yi;for(mc=65,yi=10;yi<36;++yi)Sp[mc++]=yi;function s5(e,n){return Sp[e.charCodeAt(n)]??-1}function ko(e){var n=Ue();return n.fromInt(e),n}function Tp(e){var t,n=1;return 0!=(t=e>>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}Pe.ZERO=ko(0),Pe.ONE=ko(1);var Mp,zi,Lj=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(n){var t,r,i;for(t=0;t<256;++t)this.S[t]=t;for(r=0,t=0;t<256;++t)i=this.S[t],this.S[t]=this.S[r=r+this.S[t]+n[t%n.length]&255],this.S[r]=i;this.i=0,this.j=0},e.prototype.next=function(){var n;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,n=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=n,this.S[n+this.S[this.i]&255]},e}(),Po=null;if(null==Po){Po=[],zi=0;var Ip=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var Xy=new Uint32Array(256);for(window.crypto.getRandomValues(Xy),Ip=0;Ip<Xy.length;++Ip)Po[zi++]=255&Xy[Ip]}var Ap=0,xp=function(e){if((Ap=Ap||0)>=256||zi>=256)window.removeEventListener?window.removeEventListener("mousemove",xp,!1):window.detachEvent&&window.detachEvent("onmousemove",xp);else try{Po[zi++]=255&e.x+e.y,Ap+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",xp,!1):window.attachEvent&&window.attachEvent("onmousemove",xp))}function Vj(){if(null==Mp){for(Mp=function Fj(){return new Lj}();zi<256;){var e=Math.floor(65536*Math.random());Po[zi++]=255&e}for(Mp.init(Po),zi=0;zi<Po.length;++zi)Po[zi]=0;zi=0}return Mp.next()}var Jy=function(){function e(){}return e.prototype.nextBytes=function(n){for(var t=0;t<n.length;++t)n[t]=Vj()},e}(),jj=function(){function e(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return e.prototype.doPublic=function(n){return n.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(n){if(null==this.p||null==this.q)return n.modPow(this.d,this.n);for(var t=n.mod(this.p).modPow(this.dmp1,this.p),r=n.mod(this.q).modPow(this.dmq1,this.q);t.compareTo(r)<0;)t=t.add(this.p);return t.subtract(r).multiply(this.coeff).mod(this.p).multiply(this.q).add(r)},e.prototype.setPublic=function(n,t){null!=n&&null!=t&&n.length>0&&t.length>0?(this.n=un(n,16),this.e=parseInt(t,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(n){var t=this.n.bitLength()+7>>3,r=function Bj(e,n){if(n<e.length+11)return console.error("Message too long for RSA"),null;for(var t=[],r=e.length-1;r>=0&&n>0;){var i=e.charCodeAt(r--);i<128?t[--n]=i:i>127&&i<2048?(t[--n]=63&i|128,t[--n]=i>>6|192):(t[--n]=63&i|128,t[--n]=i>>6&63|128,t[--n]=i>>12|224)}t[--n]=0;for(var s=new Jy,o=[];n>2;){for(o[0]=0;0==o[0];)s.nextBytes(o);t[--n]=o[0]}return t[--n]=2,t[--n]=0,new Pe(t)}(n,t);if(null==r)return null;var i=this.doPublic(r);if(null==i)return null;for(var s=i.toString(16),o=s.length,a=0;a<2*t-o;a++)s="0"+s;return s},e.prototype.setPrivate=function(n,t,r){null!=n&&null!=t&&n.length>0&&t.length>0?(this.n=un(n,16),this.e=parseInt(t,16),this.d=un(r,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(n,t,r,i,s,o,a,l){null!=n&&null!=t&&n.length>0&&t.length>0?(this.n=un(n,16),this.e=parseInt(t,16),this.d=un(r,16),this.p=un(i,16),this.q=un(s,16),this.dmp1=un(o,16),this.dmq1=un(a,16),this.coeff=un(l,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(n,t){var r=new Jy,i=n>>1;this.e=parseInt(t,16);for(var s=new Pe(t,16);;){for(;this.p=new Pe(n-i,1,r),0!=this.p.subtract(Pe.ONE).gcd(s).compareTo(Pe.ONE)||!this.p.isProbablePrime(10););for(;this.q=new Pe(i,1,r),0!=this.q.subtract(Pe.ONE).gcd(s).compareTo(Pe.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}var a=this.p.subtract(Pe.ONE),l=this.q.subtract(Pe.ONE),c=a.multiply(l);if(0==c.gcd(s).compareTo(Pe.ONE)){this.n=this.p.multiply(this.q),this.d=s.modInverse(c),this.dmp1=this.d.mod(a),this.dmq1=this.d.mod(l),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(n){var t=un(n,16),r=this.doPrivate(t);return null==r?null:function Hj(e,n){for(var t=e.toByteArray(),r=0;r<t.length&&0==t[r];)++r;if(t.length-r!=n-1||2!=t[r])return null;for(++r;0!=t[r];)if(++r>=t.length)return null;for(var i="";++r<t.length;){var s=255&t[r];s<128?i+=String.fromCharCode(s):s>191&&s<224?(i+=String.fromCharCode((31&s)<<6|63&t[r+1]),++r):(i+=String.fromCharCode((15&s)<<12|(63&t[r+1])<<6|63&t[r+2]),r+=2)}return i}(r,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(n,t,r){var i=new Jy,s=n>>1;this.e=parseInt(t,16);var o=new Pe(t,16),a=this,l=function(){var c=function(){if(a.p.compareTo(a.q)<=0){var f=a.p;a.p=a.q,a.q=f}var h=a.p.subtract(Pe.ONE),g=a.q.subtract(Pe.ONE),v=h.multiply(g);0==v.gcd(o).compareTo(Pe.ONE)?(a.n=a.p.multiply(a.q),a.d=o.modInverse(v),a.dmp1=a.d.mod(h),a.dmq1=a.d.mod(g),a.coeff=a.q.modInverse(a.p),setTimeout(function(){r()},0)):setTimeout(l,0)},u=function(){a.q=Ue(),a.q.fromNumberAsync(s,1,i,function(){a.q.subtract(Pe.ONE).gcda(o,function(f){0==f.compareTo(Pe.ONE)&&a.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(u,0)})})},d=function(){a.p=Ue(),a.p.fromNumberAsync(n-s,1,i,function(){a.p.subtract(Pe.ONE).gcda(o,function(f){0==f.compareTo(Pe.ONE)&&a.p.isProbablePrime(10)?setTimeout(u,0):setTimeout(d,0)})})};setTimeout(d,0)};setTimeout(l,0)},e.prototype.sign=function(n,t,r){var i=function Uj(e){return Np[e]||""}(r),o=function $j(e,n){if(n<e.length+22)return console.error("Message too long for RSA"),null;for(var t=n-e.length-6,r="",i=0;i<t;i+=2)r+="ff";return un("0001"+r+"00"+e,16)}(i+t(n).toString(),this.n.bitLength()/4);if(null==o)return null;var a=this.doPrivate(o);if(null==a)return null;var l=a.toString(16);return 1&l.length?"0"+l:l},e.prototype.verify=function(n,t,r){var i=un(t,16),s=this.doPublic(i);if(null==s)return null;var a=function zj(e){for(var n in Np)if(Np.hasOwnProperty(n)){var t=Np[n],r=t.length;if(e.substr(0,r)==t)return e.substr(r)}return e}(s.toString(16).replace(/^1f+00/,""));return a==r(n).toString()},e}(),Np={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"},wn={};wn.lang={extend:function(e,n,t){if(!n||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var r=function(){};if(r.prototype=n.prototype,e.prototype=new r,e.prototype.constructor=e,e.superclass=n.prototype,n.prototype.constructor==Object.prototype.constructor&&(n.prototype.constructor=n),t){var i;for(i in t)e.prototype[i]=t[i];var s=function(){},o=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(s=function(a,l){for(i=0;i<o.length;i+=1){var c=o[i],u=l[c];"function"==typeof u&&u!=Object.prototype[c]&&(a[c]=u)}})}catch{}s(e.prototype,t)}}};var R={};(typeof R.asn1>"u"||!R.asn1)&&(R.asn1={}),R.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var n=e.toString(16);return n.length%2==1&&(n="0"+n),n},this.bigIntToMinTwosComplementsHex=function(e){var n=e.toString(16);if("-"!=n.substr(0,1))n.length%2==1?n="0"+n:n.match(/^[0-7]/)||(n="00"+n);else{var r=n.substr(1).length;r%2==1?r+=1:n.match(/^[0-7]/)||(r+=2);for(var i="",s=0;s<r;s++)i+="f";n=new Pe(i,16).xor(e).add(Pe.ONE).toString(16).replace(/^-/,"")}return n},this.getPEMStringFromHex=function(e,n){return hextopem(e,n)},this.newObject=function(e){var t=R.asn1,r=t.DERBoolean,i=t.DERInteger,s=t.DERBitString,o=t.DEROctetString,a=t.DERNull,l=t.DERObjectIdentifier,c=t.DEREnumerated,u=t.DERUTF8String,d=t.DERNumericString,f=t.DERPrintableString,h=t.DERTeletexString,g=t.DERIA5String,v=t.DERUTCTime,C=t.DERGeneralizedTime,T=t.DERSequence,D=t.DERSet,F=t.DERTaggedObject,L=t.ASN1Util.newObject,H=Object.keys(e);if(1!=H.length)throw"key of param shall be only one.";var U=H[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+U+":"))throw"undefined key: "+U;if("bool"==U)return new r(e[U]);if("int"==U)return new i(e[U]);if("bitstr"==U)return new s(e[U]);if("octstr"==U)return new o(e[U]);if("null"==U)return new a(e[U]);if("oid"==U)return new l(e[U]);if("enum"==U)return new c(e[U]);if("utf8str"==U)return new u(e[U]);if("numstr"==U)return new d(e[U]);if("prnstr"==U)return new f(e[U]);if("telstr"==U)return new h(e[U]);if("ia5str"==U)return new g(e[U]);if("utctime"==U)return new v(e[U]);if("gentime"==U)return new C(e[U]);if("seq"==U){for(var ce=e[U],Fe=[],Et=0;Et<ce.length;Et++){var rn=L(ce[Et]);Fe.push(rn)}return new T({array:Fe})}if("set"==U){for(ce=e[U],Fe=[],Et=0;Et<ce.length;Et++)rn=L(ce[Et]),Fe.push(rn);return new D({array:Fe})}if("tag"==U){var Dt=e[U];if("[object Array]"===Object.prototype.toString.call(Dt)&&3==Dt.length){var Rr=L(Dt[2]);return new F({tag:Dt[0],explicit:Dt[1],obj:Rr})}var bs={};if(void 0!==Dt.explicit&&(bs.explicit=Dt.explicit),void 0!==Dt.tag&&(bs.tag=Dt.tag),void 0===Dt.obj)throw"obj shall be specified for 'tag'.";return bs.obj=L(Dt.obj),new F(bs)}},this.jsonToASN1HEX=function(e){return this.newObject(e).getEncodedHex()}},R.asn1.ASN1Util.oidHexToInt=function(e){for(var i="",n=parseInt(e.substr(0,2),16),s=(i=Math.floor(n/40)+"."+n%40,""),o=2;o<e.length;o+=2){var l=("00000000"+parseInt(e.substr(o,2),16).toString(2)).slice(-8);s+=l.substr(1,7),"0"==l.substr(0,1)&&(i=i+"."+new Pe(s,2).toString(10),s="")}return i},R.asn1.ASN1Util.oidIntToHex=function(e){var n=function(a){var l=a.toString(16);return 1==l.length&&(l="0"+l),l},t=function(a){var l="",u=new Pe(a,10).toString(2),d=7-u.length%7;7==d&&(d=0);for(var f="",h=0;h<d;h++)f+="0";for(u=f+u,h=0;h<u.length-1;h+=7){var g=u.substr(h,7);h!=u.length-7&&(g="1"+g),l+=n(parseInt(g,2))}return l};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var r="",i=e.split("."),s=40*parseInt(i[0])+parseInt(i[1]);r+=n(s),i.splice(0,2);for(var o=0;o<i.length;o++)r+=t(i[o]);return r},R.asn1.ASN1Object=function(){this.getLengthHexFromValue=function(){if(typeof this.hV>"u"||null==this.hV)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n=0,v="+this.hV;var s=this.hV.length/2,o=s.toString(16);if(o.length%2==1&&(o="0"+o),s<128)return o;var a=o.length/2;if(a>15)throw"ASN.1 length too long to represent by 8x: n = "+s.toString(16);return(128+a).toString(16)+o},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},R.asn1.DERAbstractString=function(e){R.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(r){this.hTLV=null,this.isModified=!0,this.s=r,this.hV=stohex(this.s)},this.setStringHex=function(r){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&("string"==typeof e?this.setString(e):typeof e.str<"u"?this.setString(e.str):typeof e.hex<"u"&&this.setStringHex(e.hex))},wn.lang.extend(R.asn1.DERAbstractString,R.asn1.ASN1Object),R.asn1.DERAbstractTime=function(e){R.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(r){return utc=r.getTime()+6e4*r.getTimezoneOffset(),new Date(utc)},this.formatDate=function(r,i,s){var o=this.zeroPadding,a=this.localDateToUTC(r),l=String(a.getFullYear());"utc"==i&&(l=l.substr(2,2));var g=l+o(String(a.getMonth()+1),2)+o(String(a.getDate()),2)+o(String(a.getHours()),2)+o(String(a.getMinutes()),2)+o(String(a.getSeconds()),2);if(!0===s){var v=a.getMilliseconds();if(0!=v){var C=o(String(v),3);g=g+"."+(C=C.replace(/[0]+$/,""))}}return g+"Z"},this.zeroPadding=function(r,i){return r.length>=i?r:new Array(i-r.length+1).join("0")+r},this.getString=function(){return this.s},this.setString=function(r){this.hTLV=null,this.isModified=!0,this.s=r,this.hV=stohex(r)},this.setByDateValue=function(r,i,s,o,a,l){var c=new Date(Date.UTC(r,i-1,s,o,a,l,0));this.setByDate(c)},this.getFreshValueHex=function(){return this.hV}},wn.lang.extend(R.asn1.DERAbstractTime,R.asn1.ASN1Object),R.asn1.DERAbstractStructured=function(e){R.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,typeof e<"u"&&typeof e.array<"u"&&(this.asn1Array=e.array)},wn.lang.extend(R.asn1.DERAbstractStructured,R.asn1.ASN1Object),R.asn1.DERBoolean=function(){R.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},wn.lang.extend(R.asn1.DERBoolean,R.asn1.ASN1Object),R.asn1.DERInteger=function(e){R.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(n){this.hTLV=null,this.isModified=!0,this.hV=R.asn1.ASN1Util.bigIntToMinTwosComplementsHex(n)},this.setByInteger=function(n){var t=new Pe(String(n),10);this.setByBigInteger(t)},this.setValueHex=function(n){this.hV=n},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.bigint<"u"?this.setByBigInteger(e.bigint):typeof e.int<"u"?this.setByInteger(e.int):"number"==typeof e?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},wn.lang.extend(R.asn1.DERInteger,R.asn1.ASN1Object),R.asn1.DERBitString=function(e){if(void 0!==e&&typeof e.obj<"u"){var n=R.asn1.ASN1Util.newObject(e.obj);e.hex="00"+n.getEncodedHex()}R.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,r){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u = "+t;var i="0"+t;this.hTLV=null,this.isModified=!0,this.hV=i+r},this.setByBinaryString=function(t){var r=8-(t=t.replace(/0+$/,"")).length%8;8==r&&(r=0);for(var i=0;i<=r;i++)t+="0";var s="";for(i=0;i<t.length-1;i+=8){var o=t.substr(i,8),a=parseInt(o,2).toString(16);1==a.length&&(a="0"+a),s+=a}this.hTLV=null,this.isModified=!0,this.hV="0"+r+s},this.setByBooleanArray=function(t){for(var r="",i=0;i<t.length;i++)r+=1==t[i]?"1":"0";this.setByBinaryString(r)},this.newFalseArray=function(t){for(var r=new Array(t),i=0;i<t;i++)r[i]=!1;return r},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&("string"==typeof e&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):typeof e.hex<"u"?this.setHexValueIncludingUnusedBits(e.hex):typeof e.bin<"u"?this.setByBinaryString(e.bin):typeof e.array<"u"&&this.setByBooleanArray(e.array))},wn.lang.extend(R.asn1.DERBitString,R.asn1.ASN1Object),R.asn1.DEROctetString=function(e){if(void 0!==e&&typeof e.obj<"u"){var n=R.asn1.ASN1Util.newObject(e.obj);e.hex=n.getEncodedHex()}R.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},wn.lang.extend(R.asn1.DEROctetString,R.asn1.DERAbstractString),R.asn1.DERNull=function(){R.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},wn.lang.extend(R.asn1.DERNull,R.asn1.ASN1Object),R.asn1.DERObjectIdentifier=function(e){var n=function(r){var i=r.toString(16);return 1==i.length&&(i="0"+i),i},t=function(r){var i="",o=new Pe(r,10).toString(2),a=7-o.length%7;7==a&&(a=0);for(var l="",c=0;c<a;c++)l+="0";for(o=l+o,c=0;c<o.length-1;c+=7){var u=o.substr(c,7);c!=o.length-7&&(u="1"+u),i+=n(parseInt(u,2))}return i};R.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(r){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueOidString=function(r){if(!r.match(/^[0-9.]+$/))throw"malformed oid string: "+r;var i="",s=r.split("."),o=40*parseInt(s[0])+parseInt(s[1]);i+=n(o),s.splice(0,2);for(var a=0;a<s.length;a++)i+=t(s[a]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueName=function(r){var i=R.asn1.x509.OID.name2oid(r);if(""===i)throw"DERObjectIdentifier oidName undefined: "+r;this.setValueOidString(i)},this.getFreshValueHex=function(){return this.hV},void 0!==e&&("string"==typeof e?e.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(e):this.setValueName(e):void 0!==e.oid?this.setValueOidString(e.oid):void 0!==e.hex?this.setValueHex(e.hex):void 0!==e.name&&this.setValueName(e.name))},wn.lang.extend(R.asn1.DERObjectIdentifier,R.asn1.ASN1Object),R.asn1.DEREnumerated=function(e){R.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(n){this.hTLV=null,this.isModified=!0,this.hV=R.asn1.ASN1Util.bigIntToMinTwosComplementsHex(n)},this.setByInteger=function(n){var t=new Pe(String(n),10);this.setByBigInteger(t)},this.setValueHex=function(n){this.hV=n},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.int<"u"?this.setByInteger(e.int):"number"==typeof e?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},wn.lang.extend(R.asn1.DEREnumerated,R.asn1.ASN1Object),R.asn1.DERUTF8String=function(e){R.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},wn.lang.extend(R.asn1.DERUTF8String,R.asn1.DERAbstractString),R.asn1.DERNumericString=function(e){R.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},wn.lang.extend(R.asn1.DERNumericString,R.asn1.DERAbstractString),R.asn1.DERPrintableString=function(e){R.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},wn.lang.extend(R.asn1.DERPrintableString,R.asn1.DERAbstractString),R.asn1.DERTeletexString=function(e){R.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},wn.lang.extend(R.asn1.DERTeletexString,R.asn1.DERAbstractString),R.asn1.DERIA5String=function(e){R.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},wn.lang.extend(R.asn1.DERIA5String,R.asn1.DERAbstractString),R.asn1.DERUTCTime=function(e){R.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT="17",this.setByDate=function(n){this.hTLV=null,this.isModified=!0,this.date=n,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date>"u"&&typeof this.s>"u"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},void 0!==e&&(void 0!==e.str?this.setString(e.str):"string"==typeof e&&e.match(/^[0-9]{12}Z$/)?this.setString(e):void 0!==e.hex?this.setStringHex(e.hex):void 0!==e.date&&this.setByDate(e.date))},wn.lang.extend(R.asn1.DERUTCTime,R.asn1.DERAbstractTime),R.asn1.DERGeneralizedTime=function(e){R.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT="18",this.withMillis=!1,this.setByDate=function(n){this.hTLV=null,this.isModified=!0,this.date=n,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},void 0!==e&&(void 0!==e.str?this.setString(e.str):"string"==typeof e&&e.match(/^[0-9]{14}Z$/)?this.setString(e):void 0!==e.hex?this.setStringHex(e.hex):void 0!==e.date&&this.setByDate(e.date),!0===e.millis&&(this.withMillis=!0))},wn.lang.extend(R.asn1.DERGeneralizedTime,R.asn1.DERAbstractTime),R.asn1.DERSequence=function(e){R.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var n="",t=0;t<this.asn1Array.length;t++)n+=this.asn1Array[t].getEncodedHex();return this.hV=n,this.hV}},wn.lang.extend(R.asn1.DERSequence,R.asn1.DERAbstractStructured),R.asn1.DERSet=function(e){R.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var n=new Array,t=0;t<this.asn1Array.length;t++)n.push(this.asn1Array[t].getEncodedHex());return 1==this.sortFlag&&n.sort(),this.hV=n.join(""),this.hV},typeof e<"u"&&typeof e.sortflag<"u"&&0==e.sortflag&&(this.sortFlag=!1)},wn.lang.extend(R.asn1.DERSet,R.asn1.DERAbstractStructured),R.asn1.DERTaggedObject=function(e){R.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(n,t,r){this.hT=t,this.isExplicit=n,this.asn1Object=r,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=r.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,t),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.tag<"u"&&(this.hT=e.tag),typeof e.explicit<"u"&&(this.isExplicit=e.explicit),typeof e.obj<"u"&&(this.asn1Object=e.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},wn.lang.extend(R.asn1.DERTaggedObject,R.asn1.ASN1Object);var ev,qj=function(){var e=function(n,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])})(n,t)};return function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}}(),a5=function(e){function n(t){var r=e.call(this)||this;return t&&("string"==typeof t?r.parseKey(t):(n.hasPrivateKeyProperty(t)||n.hasPublicKeyProperty(t))&&r.parsePropertiesFrom(t)),r}return qj(n,e),n.prototype.parseKey=function(t){try{var r=0,i=0,o=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/.test(t)?function(e){var n;if(void 0===fc){var t="0123456789ABCDEF",r=" \f\n\r\t\xa0\u2028\u2029";for(fc={},n=0;n<16;++n)fc[t.charAt(n)]=n;for(t=t.toLowerCase(),n=10;n<16;++n)fc[t.charAt(n)]=n;for(n=0;n<8;++n)fc[r.charAt(n)]=-1}var i=[],s=0,o=0;for(n=0;n<e.length;++n){var a=e.charAt(n);if("="==a)break;if(-1!=(a=fc[a])){if(void 0===a)throw new Error("Illegal character at offset "+n);s|=a,++o>=2?(i[i.length]=s,s=0,o=0):s<<=4}}if(o)throw new Error("Hex encoding incomplete: 4 bits missing");return i}(t):Ky.unarmor(t),a=Nj.decode(o);if(3===a.sub.length&&(a=a.sub[2].sub[0]),9===a.sub.length){r=a.sub[1].getHexStringValue(),this.n=un(r,16),i=a.sub[2].getHexStringValue(),this.e=parseInt(i,16);var l=a.sub[3].getHexStringValue();this.d=un(l,16);var c=a.sub[4].getHexStringValue();this.p=un(c,16);var u=a.sub[5].getHexStringValue();this.q=un(u,16);var d=a.sub[6].getHexStringValue();this.dmp1=un(d,16);var f=a.sub[7].getHexStringValue();this.dmq1=un(f,16);var h=a.sub[8].getHexStringValue();this.coeff=un(h,16)}else{if(2!==a.sub.length)return!1;if(a.sub[0].sub){var v=a.sub[1].sub[0];r=v.sub[0].getHexStringValue(),this.n=un(r,16),i=v.sub[1].getHexStringValue(),this.e=parseInt(i,16)}else r=a.sub[0].getHexStringValue(),this.n=un(r,16),i=a.sub[1].getHexStringValue(),this.e=parseInt(i,16)}return!0}catch{return!1}},n.prototype.getPrivateBaseKey=function(){var t={array:[new R.asn1.DERInteger({int:0}),new R.asn1.DERInteger({bigint:this.n}),new R.asn1.DERInteger({int:this.e}),new R.asn1.DERInteger({bigint:this.d}),new R.asn1.DERInteger({bigint:this.p}),new R.asn1.DERInteger({bigint:this.q}),new R.asn1.DERInteger({bigint:this.dmp1}),new R.asn1.DERInteger({bigint:this.dmq1}),new R.asn1.DERInteger({bigint:this.coeff})]};return new R.asn1.DERSequence(t).getEncodedHex()},n.prototype.getPrivateBaseKeyB64=function(){return Dp(this.getPrivateBaseKey())},n.prototype.getPublicBaseKey=function(){var t=new R.asn1.DERSequence({array:[new R.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new R.asn1.DERNull]}),r=new R.asn1.DERSequence({array:[new R.asn1.DERInteger({bigint:this.n}),new R.asn1.DERInteger({int:this.e})]}),i=new R.asn1.DERBitString({hex:"00"+r.getEncodedHex()});return new R.asn1.DERSequence({array:[t,i]}).getEncodedHex()},n.prototype.getPublicBaseKeyB64=function(){return Dp(this.getPublicBaseKey())},n.wordwrap=function(t,r){return r=r||64,t?t.match(RegExp("(.{1,"+r+"})( +|$\n?)|(.{1,"+r+"})","g")).join("\n"):t},n.prototype.getPrivateKey=function(){var t="-----BEGIN RSA PRIVATE KEY-----\n";return(t+=n.wordwrap(this.getPrivateBaseKeyB64())+"\n")+"-----END RSA PRIVATE KEY-----"},n.prototype.getPublicKey=function(){var t="-----BEGIN PUBLIC KEY-----\n";return(t+=n.wordwrap(this.getPublicBaseKeyB64())+"\n")+"-----END PUBLIC KEY-----"},n.hasPublicKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")},n.hasPrivateKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},n.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)},n}(jj),Gj=typeof process<"u"?null===(ev=process.env)||void 0===ev?void 0:ev.npm_package_version:void 0;const Zj=function(){function e(n){void 0===n&&(n={}),this.default_key_size=(n=n||{}).default_key_size?parseInt(n.default_key_size,10):1024,this.default_public_exponent=n.default_public_exponent||"010001",this.log=n.log||!1,this.key=null}return e.prototype.setKey=function(n){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new a5(n)},e.prototype.setPrivateKey=function(n){this.setKey(n)},e.prototype.setPublicKey=function(n){this.setKey(n)},e.prototype.decrypt=function(n){try{return this.getKey().decrypt(Zy(n))}catch{return!1}},e.prototype.encrypt=function(n){try{return Dp(this.getKey().encrypt(n))}catch{return!1}},e.prototype.sign=function(n,t,r){try{return Dp(this.getKey().sign(n,t,r))}catch{return!1}},e.prototype.verify=function(n,t,r){try{return this.getKey().verify(n,Zy(t),r)}catch{return!1}},e.prototype.getKey=function(n){if(!this.key){if(this.key=new a5,n&&"[object Function]"==={}.toString.call(n))return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,n);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},e.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},e.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},e.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},e.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},e.version=Gj,e}();let ud=(()=>{class e{constructor(t,r,i){this.context=t,this.http=r,this.mapper=i,this.secretId=2}getAvailablePaymentSystems(){const{currency:t,userId:r,merchantId:i}=this.context.data.payment(),s=Dy({currency:t,payerId:r}),o=Da(this.host(),`/api/merchants/${i}/settings`);return this.http.get(o,{params:s}).pipe(gn(a=>{const l=new Set;return{payments:a.payments.filter(u=>!l.has(u.name)&&(l.add(u.name),!0))}}),Uf(()=>To({payments:[]})))}getPaymentInfo(t){const{merchantId:r}=this.context.data.payment(),i=Da(this.host(),`/api/merchants/${r}/payments/${t}`);return this.http.get(i)}pay(){const t=this.context.data.payment(),r=this.context.data.settings(),i=this.context.data.userProvidedInfo(),o={...Z3()};t.ipAddress&&(o.ipAddress=t.ipAddress);const l={headers:M4(o)},c=Da(this.host(),`/api/merchants/${t.merchantId}/payments`);let u=this.mapper.mapPaymentRequest(t,i,r);return"applepay"==i.paymentSystemName?this.http.post(c,u,l):this.getSecretKey().pipe(J3(d=>{const f=new Zj;f.setPublicKey(d);const g={invoice:f.encrypt(JSON.stringify(u)),ei:this.secretId};return this.http.post(c,g,l)}))}getSecretKey(){const r=Da(this.context.data.settings().urls.processing,`/api/security/key/${this.secretId}`);return this.http.get(r)}host(){return this.context.data.settings().urls.processing}static#e=this.\u0275fac=function(r){return new(r||e)(X(ln),X(Kf),X(yc))};static#t=this.\u0275prov=te({token:e,factory:e.\u0275fac})}return e})();const tv=new Z("moto-window-document",{providedIn:"root",factory:()=>window});let l5=(()=>{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)(A(tv,16))};static#t=this.\u0275pipe=Tn({name:"currencySymbol",type:e,pure:!0})}return e})(),Kj=(()=>{class e{transform(t,r,i){return r&&i&&"net"==i?t+r:t}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275pipe=Tn({name:"price",type:e,pure:!0})}return e})();function Yj(e,n){if(1&e&&(gt(0,"div",8),G(1,"div",9),gt(2,"moto-picture",10),Bt(3,"cardInfo"),G(4,"span",11),De(5),Bt(6,"slice"),W()()),2&e){const t=n;P(2),ie("src",lr(3,2,t.name,"logo")),P(3),Gt(" \u2022\u2022",lr(6,5,t.name,-4)," ")}}let c5=(()=>{class e{constructor(t,r){this.context=t,this.processing=r}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=dt(()=>{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 tn("pay-button-click")),!this.context.computed.paymentAvailability().canPay.byCard)return void this.context.updateCanShowError(!0);const t=this.processing.pay();this.context.data.state.set({type:"payLoading",payload:{observable:t}})}onFocus(){this.context.events.analytics.emit(new tn("pay-button-focus"),!0)}static#e=this.\u0275fac=function(r){return new(r||e)(A(ln),A(ud))};static#t=this.\u0275cmp=zt({type:e,selectors:[["moto-pay-button"]],decls:21,vars:21,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","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=ar();hi(0)(1)(2),G(3,"div",0)(4,"div",1)(5,"span",2),De(6),W(),G(7,"span",3),De(8),Bt(9,"price"),Bt(10,"currencySymbol"),W()(),G(11,"button",4),Ke("click",function(){return ft(s),pt(i.pay())})("focusin",function(){return ft(s),pt(i.onFocus())}),G(12,"div",5)(13,"div",6)(14,"span"),De(15),G(16,"span",7),De(17),Bt(18,"price"),Bt(19,"currencySymbol"),W()()(),et(20,Yj,7,8),W()()()}if(2&r){let s;const o=i.payment(),a=i.paymentAvailability(),l=i.settings().language;P(6),tr(l.totalHeader),P(2),tr(lr(10,11,Ql(9,7,o.amount,o.tax,o.amountType),o.currency)),P(3),ie("ngClass",a.buttonDisableClass)("disabled",a.isPayButtonDisabled),P(4),Gt(" ",l.pay," "),P(2),Gt(" ",lr(19,18,Ql(18,14,o.amount,o.tax,o.amountType),o.currency)," "),P(3),ut((s=i.existingCard())?20:-1,s)}},dependencies:[H0,rc,l5,Z0,Sy,Kj],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;gap:14px}.__ndb-pay-info[_ngcontent-%COMP%]{display:flex;width:100%;align-items:center;justify-content:space-between;gap:20px}.__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})();const Qj=new Z("LANGUAGE_TOKEN",{factory:()=>q(tv).navigator.language}),u5=new Z("APPLE_PAY_JS_SERVICE_TOKEN");let nv=(()=>{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():To(!1)}pay(t,r){const{amount:i,currency:s,description:o,billingAddress:a,merchantId:l,userAuthToken:c}=t,u=a?.country?a.country:this.defaultCountryCode,d={total:{amount:i.toString(),currency:s.toUpperCase(),label:o},countryCode:u.toUpperCase(),merchantId:l,userToken:c,processingUrl:r};return this.applePayJsService.pay(d).pipe(gn(({payment:f})=>JSON.stringify(f)))}static#e=this.\u0275fac=function(r){return new(r||e)(X(Qj),X(u5))};static#t=this.\u0275prov=te({token:e,factory:e.\u0275fac})}return e})(),kp=(()=>{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]=ot(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]=ot(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=te({token:e,factory:e.\u0275fac})}return e})(),Xj=(()=>{class e{constructor(t,r){this.renderer=t,this.elRef=r,this.buttonClick=new qt,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)(A($s),A(qr))};static#t=this.\u0275dir=Ee({type:e,selectors:[["","motoApplePayButton",""]],inputs:{buttonStyle:"buttonStyle",locale:"locale",type:"type"},outputs:{buttonClick:"buttonClick"}})}return e})(),Jj=(()=>{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)(A(Pi),A(ps))};static#t=this.\u0275dir=Ee({type:e,selectors:[["","let",""]],inputs:{_let:[0,"let","_let"]}})}return e})();const eH=(e,n)=>n.name,tH=e=>({applepay:e}),nH=e=>({$implicit:e});function rH(e,n){if(1&e){const t=ar();G(0,"div",4)(1,"span",6),Ke("click",function(){return ft(t),pt(J(2).apmsCollapseClick())}),De(2),W()()}if(2&e){J(2);const t=Hn(2);P(),ie("ngClass",t.apmsCollapse?"__ndb-apm-list__delimiter-text__apms-collapse":""),P(),tr(t.apmsCollapse?t.language.apms.orUseAlternative:t.language.apms.or)}}function iH(e,n){if(1&e&&Kl(0,7),2&e){const t=n.$implicit,r=J(2).let;J();const i=X1(5);ie("ngTemplateOutlet",t.logo?i:r[t.name])("ngTemplateOutletContext",a0(2,nH,t))}}function sH(e,n){if(1&e&&(G(0,"div",5),Fi(1,iH,1,4,"ng-container",7,eH),W()),2&e){J(2);const t=Hn(0);P(),Vi(t)}}function oH(e,n){if(1&e&&(G(0,"div",3),et(1,rH,3,2,"div",4)(2,sH,3,0,"div",5),W()),2&e){let t;const r=J(),i=Hn(2);P(),ut(r.cardPaymentAvailable()?1:-1),P(),ut(i.apmsCollapse&&r.apmsCollapsed&&(null===(t=r.apmsCollapsed())||void 0===t||t)?-1:2)}}function aH(e,n){if(1&e){const t=ar();G(0,"button",8),Ke("focusin",function(){const i=ft(t).$implicit;return pt(J().onFocus(i))})("click",function(){const i=ft(t).$implicit;return pt(J().pay(i))}),gt(1,"img",9),W()}if(2&e){const t=n.$implicit;J();const r=Hn(1);ie("id","apm-"+(null==t?null:t.name)+"-button")("ngClass",r.elementDisableClass),P(),ie("src",t.logo,eu)("alt",t.name)}}function lH(e,n){if(1&e){const t=ar();G(0,"button",10),Ke("buttonClick",function(){const i=ft(t).$implicit;return pt(J().pay(i))})("focusin",function(){const i=ft(t).$implicit;return pt(J().onFocus(i))}),W()}2&e&&(J(),ie("ngClass",Hn(1).elementDisableClass))}let d5=(()=>{class e{constructor(t,r,i,s,o){this.context=t,this.processingService=r,this.mapper=i,this.applePayService=s,this.sessionStorage=o,this.apms=ot([])}ngOnInit(){this.settings=this.context.data.settings,this.paymentInfo=this.context.data.payment,this.settings().apmsCollapse&&(this.apmsCollapsed=this.sessionStorage.getOrSetItemSignal(Jr.keys.apmsCollapse,!0)),this.paymentAvailability=this.context.computed.paymentAvailability,this.apms=dt(()=>{let t=this.context.data.loadedSettings().filter(i=>"card"!==i.name);return t.some(i=>"applepay"===i.name)&&!this.applePayService.isAvailable(this.paymentInfo())&&(t=t.filter(i=>"applepay"!==i.name)),this.mapper.mapApms(t)}),this.cardPaymentAvailable=dt(()=>this.context.componentsStates.cardForm().enabled||this.context.componentsStates.cardList().enabled)}pay(t){if(this.context.events.analytics.emit(new tn(`${t.name}-button-click`)),this.paymentAvailability().canPay.byApm)if("applepay"===t.name){const r=Da(this.settings().urls.processing,`api/applepay/${this.paymentInfo().merchantId}/merchantValidation`);this.applePayService.pay(this.paymentInfo(),r).subscribe(i=>{t.token=i,this.makePaymentAndRedirect(t)})}else this.makePaymentAndRedirect(t);else this.context.updateCanShowErrorForApm(!0)}onFocus(t){this.context.events.analytics.emit(new tn(`${t.name}-button-focus`),!0)}apmsCollapseClick(){if(this.settings().apmsCollapse){const t=this.apmsCollapsed();this.sessionStorage.setItem(Jr.keys.apmsCollapse,!t),this.context.events.analytics.emit(new tn("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}})}static#e=this.\u0275fac=function(r){return new(r||e)(A(ln),A(ud),A(yc),A(nv),A(kp))};static#t=this.\u0275cmp=zt({type:e,selectors:[["moto-apm-list"]],decls:8,vars:6,consts:[["apmDefaultRef",""],["applePayRef",""],["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"]],template:function(r,i){if(1&r&&(hi(0)(1)(2),et(3,oH,3,2,"div",2)(4,aH,2,4,"ng-template",null,0,l0)(6,lH,1,1,"ng-template",null,1,l0)),2&r){const s=X1(7);Qr(i.apms()),P(),Qr(i.paymentAvailability()),P(),Qr(i.settings()),P(),ie("let",a0(4,tH,s))}},dependencies:[H0,QD,Xj,Jj],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}'],changeDetection:0})}return e})();function cH(e,n){if(1&e){const t=ar();G(0,"label",3)(1,"input",4),e0("ngModelChange",function(i){ft(t);const s=J().$implicit;return function l8(e,n){const t=qb(e);return t&&e.set(n),t}(s.value,i)||(s.value=i),pt(i)}),Ke("ngModelChange",function(){ft(t);const i=J(),s=i.$implicit,o=i.$index;return pt(J(2).onChange(s,o))})("focusin",function(){ft(t);const i=J(),s=i.$implicit,o=i.$index;return pt(J(2).onFocus(s,o))}),W(),gt(2,"span",5)(3,"span",6),Bt(4,"linkify"),W()}if(2&e){const t=J().$implicit;P(),ie("name","user-preference-"+t.name)("id","user-preference-"+t.name),J1("ngModel",t.value),P(2),ie("innerHTML",lr(4,4,t.text,"__ndb-settings-checkboxes-checkbox-link fz-12 fw-500 font-description"),yo)}}function uH(e,n){1&e&&et(0,cH,5,7,"label",3),2&e&&ut(n.$implicit.text?0:-1)}function dH(e,n){if(1&e&&(G(0,"div",1),Fi(1,uH,1,1,null,null,js),W()),2&e){const t=J();P(),Vi(t.userPreferenceCheckboxes)}}function hH(e,n){1&e&&(gt(0,"p",2),Bt(1,"linkify")),2&e&&(J(),ie("innerHTML",lr(1,1,Hn(0).userPreferences.text,"fz-12 fw-500 font-description"),yo))}let h5=(()=>{class e extends ep{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 tn(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 tn(`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.localDetect()):this.userPreferenceCheckboxes=[]}static#e=this.\u0275fac=function(r){return new(r||e)(A(kt),A(ln))};static#t=this.\u0275cmp=zt({type:e,selectors:[["moto-user-preferences"]],features:[at],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&&(hi(0),G(1,"div",0),et(2,dH,3,0,"div",1)(3,hH,2,4,"p",2),W()),2&r){const s=Qr(i.settings());P(2),ut(i.userPreferenceCheckboxes.length?2:-1),P(),ut(null!=s&&null!=s.userPreferences&&s.userPreferences.text?3:-1)}},dependencies:[tp,lc,gp,Cp],styles:[".__ndb-settings-checkboxes-checkbox-checkmark[_ngcontent-%COMP%]{border-radius:2px}"],changeDetection:0})}return e})();function fH(e,n){1&e&&(G(0,"span",4),De(1,"\xb7"),W())}function pH(e,n){if(1&e&&(G(0,"a",3),De(1),W(),et(2,fH,2,0,"span",4)),2&e){const t=n.$implicit,r=n.$index,i=n.$count;ie("href",t.href,eu),P(),Gt(" ",t.text," "),P(),ut(r!==i-1?2:-1)}}function gH(e,n){if(1&e&&(G(0,"div",1),Fi(1,pH,3,3,null,null,js),W()),2&e){J(2);const t=Hn(0);P(),Vi(t.links)}}function mH(e,n){1&e&&(gt(0,"p",2),Bt(1,"linkify")),2&e&&(J(2),ie("innerHTML",lr(1,1,Hn(0).text,"__ndb-merchant-info-checkbox-link fz-12 fw-500 font-description"),yo))}function yH(e,n){if(1&e&&(G(0,"div",0),et(1,gH,3,0,"div",1)(2,mH,2,4,"p",2),W()),2&e){J();const t=Hn(0);P(),ut(null!=t.links&&t.links.length?1:-1),P(),ut(t.text?2:-1)}}let f5=(()=>{class e{constructor(t){this.context=t}ngOnInit(){this.settings=this.context.data.settings}static#e=this.\u0275fac=function(r){return new(r||e)(A(ln))};static#t=this.\u0275cmp=zt({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&&(hi(0),et(1,yH,3,2,"div",0)),2&r){const s=Qr(i.settings().merchantInfo);P(),ut(null!=s.links&&s.links.length||s.text?1:-1)}},dependencies:[Cp],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})(),p5=(()=>{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=Tn({name:"image",type:e,pure:!0})}return e})();function vH(e,n){1&e&&(gt(0,"moto-picture",3),Bt(1,"image")),2&e&&ie("src",Pu(1,1,"visa-secure.svg"))}function _H(e,n){1&e&&(gt(0,"moto-picture",3),Bt(1,"image")),2&e&&ie("src",Pu(1,1,"master-card-secure.svg"))}function wH(e,n){if(1&e&&(G(0,"div",0)(1,"p",1),De(2),W(),G(3,"div",2),et(4,vH,2,3,"moto-picture",3)(5,_H,2,3,"moto-picture",3),W()()),2&e){const t=J();P(2),Gt(" ",t.settings().language.transactionProtectedBy," "),P(2),ut(t.isVisaAvailable()?4:-1),P(),ut(t.isMastercardAvailable()?5:-1)}}let g5=(()=>{class e{constructor(t){this.context=t}ngOnInit(){this.settings=this.context.data.settings,this.isMastercardAvailable=dt(()=>!!this.settings().availableCardBrands?.some(t=>"mastercard"===t)),this.isVisaAvailable=dt(()=>!!this.settings().availableCardBrands?.some(t=>"visa"===t))}static#e=this.\u0275fac=function(r){return new(r||e)(A(ln))};static#t=this.\u0275cmp=zt({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&&et(0,wH,6,3,"div",0),2&r&&ut(i.isMastercardAvailable()||i.isVisaAvailable()?0:-1)},dependencies:[rc,p5],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})(),m5=(()=>{class e{constructor(t){this.context=t}ngOnInit(){this.settings=this.context.data.settings}static#e=this.\u0275fac=function(r){return new(r||e)(A(ln))};static#t=this.\u0275cmp=zt({type:e,selectors:[["moto-no-payments"]],decls:2,vars:1,consts:[[1,"__ndb-no-methods"]],template:function(r,i){1&r&&(G(0,"h2",0),De(1),W()),2&r&&(P(),Gt(" ",i.settings().language.noAvailablePaymentMethods,"\n"))},styles:[".__ndb-no-methods[_ngcontent-%COMP%]{text-align:center}"],changeDetection:0})}return e})(),yc=(()=>{class e{mapApms(t){return t.map(r=>({...r}))}mapPaymentRequest(t,r,i){let s=t.details;r.userPreferences?.length&&(s=r.userPreferences.reduce((c,u)=>(c[u.name]=u.value,c),s||{}));const o={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)},a={browserData:Z3()},l={id:t.userId,email:t.email,phoneNumber:r.phoneNumber??t.phoneNumber,ipAddress:t.ipAddress,deviceInfo:a,billingAddress:t.billingAddress};return{id:t.paymentId,initiator:this.mapInitiatorType(t.initiator)??"Customer",returnUrl:t.returnUrl,webhookUrl:t.webhookUrl,order:o,payer:l,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:Y3,visible:r.availableCardBrands};case"no-methods":return{component:m5,visible:r.noMethods};case"card-list":return{component:Ty,visible:r.cardList};case"requisites":return{component:WS,visible:r.cardForm};case"phone-number":return{component:ZS,visible:r.additionalForm};case"charge-terms":return{component:KS,visible:r.chargeTerms};case"pay-button":return{component:c5,visible:r.payButton};case"apm-list":return{component:d5,visible:r.apmList};case"user-preferences":return{component:h5,visible:r.userPreferences};case"merchant-info":return{component:f5,visible:r.merchantInfo};case"protected-by":return{component:g5,visible:r.protectedBy}}})}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}: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}: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;return{availableCardBrands:t.availableCardBrands,closePaymentRedirect:t.closePaymentRedirect,components:t.components,events:t.events,isCloseButtonVisible:t.isCloseButtonVisible,isHeaderVisible:t.isHeaderVisible,isProblemTipsListVisible:t.isProblemTipsListVisible,isSignatureRequired:t.isSignatureRequired,language:i??G3,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}}mapRequisites(t){switch(t.type){case"apm":const r=t.value;return{type:r.name,paymentToken:r.token};case"existing-card":return{anchor:t.value.rebill,type:"rebill"};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=te({token:e,factory:e.\u0275fac})}return e})(),y5=(()=>{class e{constructor(t){this.mapper=t}preparePaymentOrError(t){let r=q3(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=q3(t);const i=this.validateSettings(r);if(i)return i;const s=hV(pV,r);return this.mapper.mapInterfaceSettingsToDomain(s)}validateModelsCompatibility(t,r){if(!t.signature&&r.isSignatureRequired)return"not-exist-signature"}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?void 0:"invalid-urls":"not-exist-settings"}static#e=this.\u0275fac=function(r){return new(r||e)(X(yc))};static#t=this.\u0275prov=te({token:e,factory:e.\u0275fac})}return e})();function bH(e,n){if(1&e){const t=ar();G(0,"div",2)(1,"i",3),Ke("click",function(){return ft(t),pt(J().close())}),De(2,"close"),W()()}if(2&e){let t;J();const r=Hn(0);er("data-tooltip",null!==(t=null==r||null==r.language?null:r.language.close)&&void 0!==t?t:"Close")}}let v5=(()=>{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)(A(ln))};static#t=this.\u0275cmp=zt({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&&(hi(0),G(1,"header",0)(2,"h6",1),De(3),W(),et(4,bH,3,1,"div",2),W()),2&r){let s,o;const a=Qr(i.settings());P(3),Gt(" ",null!==(s=null==a||null==a.language?null:a.language.header)&&void 0!==s?s:"Checkout"," "),P(),ut(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})(),_5=(()=>{class e{constructor(){this.shadow=!0}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=zt({type:e,selectors:[["moto-loader"]],hostVars:1,hostBindings:function(r,i){2&r&&Kh("@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&&(G(0,"div",0),gt(1,"moto-picture",1),Bt(2,"image"),W()),2&r&&(Oi("shadow",i.shadow),P(),ie("src",Pu(2,3,"spinner-small.gif")))},dependencies:[rc,p5],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:[AV({animationName:"ANFade",fromStyles:{opacity:"0"},toStyles:{opacity:"1"}})]},changeDetection:0})}return e})();function CH(e,n){1&e&&Kl(0)}function EH(e,n){1&e&&et(0,CH,1,0,"ng-container",0),2&e&&ie("ngComponentOutlet",J().$implicit.component)}function DH(e,n){1&e&&et(0,EH,1,1,"ng-container"),2&e&&ut(n.$implicit.visible()?0:-1)}function SH(e,n){1&e&&gt(0,"moto-loader")}let TH=(()=>{class e{constructor(t,r,i,s){this.context=t,this.processingService=r,this.mapper=i,this.applePayService=s,this.components=[]}ngOnInit(){this.isLoaderShown=this.context.computed.isLoading,this.context.data.paymentSystemsLoading.set(!0),this.processingService.getAvailablePaymentSystems().subscribe(r=>{r.payments.some(i=>"applepay"===i.name)?this.applePayService.isAvailable(this.context.data.payment()).subscribe(i=>{let s=r.payments;i||(s=s.filter(o=>"applepay"!==o.name)),this.applyPaymentSystems(s)}):this.applyPaymentSystems(r.payments)});const t=this.mapper.mapComponents(this.context.data.settings().components,this.context.visibility);this.components=t}applyPaymentSystems(t){this.context.data.loadedSettings.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)(A(ln),A(ud),A(yc),A(nv))};static#t=this.\u0275cmp=zt({type:e,selectors:[["moto-pay-form"]],decls:3,vars:1,consts:[[4,"ngComponentOutlet"]],template:function(r,i){1&r&&(Fi(0,DH,1,1,null,null,sE),et(2,SH,1,0,"moto-loader")),2&r&&(Vi(i.components),P(2),ut(i.isLoaderShown()?2:-1))},dependencies:[_5,U0],styles:["[_nghost-%COMP%]{display:flex;gap:28px;flex-direction:column}"],changeDetection:0})}return e})();const w5={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'}};let MH=(()=>{class e{constructor(t){this.context=t}ngOnInit(){const t=this.context.data.state().payload;this.error=w5.errors[t.error],this.message=w5.message}static#e=this.\u0275fac=function(r){return new(r||e)(A(ln))};static#t=this.\u0275cmp=zt({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&&(G(0,"div",0)(1,"i",1),De(2,"cancel"),W(),G(3,"h6",2),De(4),W(),G(5,"p",3),De(6),W()()),2&r&&(P(4),tr(i.error),P(2),Gt(" ",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})(),IH=(()=>{class e{constructor(t,r,i,s){this.context=t,this.processing=r,this.sessionStorage=i,this.window=s,this.openedWindow=null}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)}handleConfirmation(t){switch(t.name){case"3ds":this.open3Ds(t.data);break;case"redirect":this.openApm(t.data);break;default:throw new Error("Unexpected action name")}}openApm(t){this.openedWindow=this.window.open(t.location,"_blank")}open3Ds(t){const r=document.createElement("form");r.setAttribute("method","POST"),r.setAttribute("action",t.acsurl),r.setAttribute("target","_blank"),r.appendChild(this.createHiddenInput("PaReq",t.paReq)),r.appendChild(this.createHiddenInput("MD",t.md)),r.appendChild(this.createHiddenInput("TermUrl",t.termUrl)),document.body.appendChild(r),r.submit(),document.body.removeChild(r)}createHiddenInput(t,r){const i=document.createElement("input");return i.setAttribute("type","hidden"),i.setAttribute("name",t),i.setAttribute("value",r),i}waitingPaymentCompleted(t){(function w$(e,n,t){return e.pipe(gn(r=>{if(n(r))return r;throw new Error(I4)}),function _$(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?En:qn((s,o)=>{let l,a=0;const c=()=>{let u=!1;l=s.subscribe(Dn(o,d=>{i&&(a=0),o.next(d)},void 0,d=>{if(a++<t){const f=()=>{l?(l.unsubscribe(),l=null,c()):u=!0};if(null!=r){const h="number"==typeof r?S4(r):ji(r(d,a)),g=Dn(o,()=>{g.unsubscribe(),f()},()=>{o.complete()});h.subscribe(g)}else f()}else o.error(d)})),u&&(l.unsubscribe(),l=null,c())};c()})}({delay:r=>r.message==I4?S4(t):T4(()=>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)})}showResult(t,r){const i=this.settings();i.closePaymentRedirect&&this.openedWindow?.close(),i.apmsCollapse&&t&&"rejected"===t.payment.state&&"card"===t.payment.info.paymentType&&this.sessionStorage.setItem(Jr.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)(A(ln),A(ud),A(kp),A(tv))};static#t=this.\u0275cmp=zt({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&&(G(0,"div",0)(1,"div",1)(2,"h2",2),De(3),W(),G(4,"div",3)(5,"div",4)(6,"div",5),gt(7,"div")(8,"div")(9,"div")(10,"div"),W(),gt(11,"div",6),W()()()()),2&r&&(P(3),tr(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 AH(e,n){1&e&&Kl(0)}function xH(e,n){1&e&&et(0,AH,1,0,"ng-container",5),2&e&&ie("ngComponentOutlet",J().$implicit.component)}function NH(e,n){1&e&&et(0,xH,1,1,"ng-container"),2&e&&ut(n.$implicit.visible()?0:-1)}function kH(e,n){if(1&e&&(G(0,"p",3),De(1),W()),2&e){const t=J();P(),Gt(" ",t.resultModel.description," ")}}function PH(e,n){if(1&e&&(G(0,"li",6)(1,"p",7),De(2),W()()),2&e){const t=n.$implicit;P(2),Gt(" ",t," ")}}function OH(e,n){if(1&e&&(G(0,"ul",4),Fi(1,PH,3,1,"li",6,js),W()),2&e){const t=J();P(),Vi(null==t.paymentResult.payment.rejectionDetails?null:t.paymentResult.payment.rejectionDetails.problemSolvingTips)}}function RH(e,n){1&e&&Kl(0)}function LH(e,n){1&e&&et(0,RH,1,0,"ng-container",5),2&e&&ie("ngComponentOutlet",J().$implicit.component)}function FH(e,n){1&e&&et(0,LH,1,1,"ng-container"),2&e&&ut(n.$implicit.visible()?0:-1)}let VH=(()=>{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)(A(ln),A(yc))};static#t=this.\u0275cmp=zt({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&&(Fi(0,NH,1,1,null,null,js),G(2,"div",0)(3,"i",1),De(4),W(),G(5,"h6",2),De(6),W(),et(7,kH,2,1,"p",3)(8,OH,3,0,"ul",4),W(),Fi(9,FH,1,1,null,null,js)),2&r&&(Vi(i.aboveComponents),P(4),tr(i.resultModel.icon),P(2),tr(i.resultModel.title),P(),ut(i.resultModel.description?7:-1),P(),ut(i.paymentResult&&i.settings().isProblemTipsListVisible&&null!=i.paymentResult.payment.rejectionDetails&&null!=i.paymentResult.payment.rejectionDetails.problemSolvingTips&&i.paymentResult.payment.rejectionDetails.problemSolvingTips.length?8:-1),P(),Vi(i.belowComponents))},dependencies:[U0],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 $H(e,n){1&e&&gt(0,"moto-header")}function BH(e,n){1&e&&gt(0,"moto-pay-form")}function jH(e,n){1&e&&gt(0,"moto-invalid-pay-form")}function HH(e,n){1&e&&gt(0,"moto-processing")}function UH(e,n){1&e&&gt(0,"moto-result")}function zH(e,n){}let qH=(()=>{class e{constructor(t,r,i){this.context=t,this.dataHandler=r,this.sessionStorage=i,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,RD(()=>{this.context.computed.isLoading()?this.context.events.analytics.emit(new tn("init-start")):this.context.events.analytics.emit(new tn("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,this.settingsSignal=dt(()=>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()}ngOnDestroy(){this.context.data.settings()?.apmsCollapse&&this.sessionStorage.removeItem(Jr.keys.apmsCollapse)}validate(){const t=this.context.data.settings(),r=this.context.data.payment(),i=this.dataHandler.validateModelsCompatibility(r,t);i?this.state.set({type:"invalid",payload:{error:i}}):(this.applySettings(),this.context.data.settings()?.requiredFieldsBehavior?.markAsInvalidUntilCorrect?this.context.updateCanShowError(!0):this.context.updateCanShowError(!1),void 0!==this.context.data.userProvidedInfo&&this.context.data.userProvidedInfo.set(void 0),this.context.events.refresh.emit(),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})),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(Jr.keys.apmsCollapse,!0)}static#e=this.\u0275fac=function(r){return new(r||e)(A(ln),A(y5),A(kp))};static#t=this.\u0275cmp=zt({type:e,selectors:[["moto-payment-form"]],inputs:{payment:"payment",settings:"settings"},outputs:{closeEvent:"close",paidEvent:"paid",analyticsEvent:"analyticsTracked",error:"error"},features:[xi],decls:9,vars:2,consts:[[1,"__ndb-wrapper"],[1,"__ndb-wrapper-content"],[1,"__ndb-wrapper-content-main"]],template:function(r,i){if(1&r&&(G(0,"div",0)(1,"div",1),et(2,$H,1,0,"moto-header"),G(3,"div",2),et(4,BH,1,0,"moto-pay-form")(5,jH,1,0,"moto-invalid-pay-form")(6,HH,1,0,"moto-processing")(7,UH,1,0,"moto-result")(8,zH,0,0),W()()()),2&r){let s,o;P(2),ut(null===(s=null==(s=i.settingsSignal())?null:s.isHeaderVisible)||void 0===s||s?2:-1),P(2),ut("correct"===(o=i.state().type)?4:"invalid"===o?5:"payLoading"===o?6:"result"===o?7:"empty"===o?8:-1)}},dependencies:[v5,TH,MH,IH,VH],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})(),b5=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Gn({type:e});static#n=this.\u0275inj=Ln({})}return e})();function C5(e){return new k(3e3,!1)}function Oo(e){switch(e.length){case 0:return new Ku;case 1:return e[0];default:return new Q3(e)}}function E5(e,n,t=new Map,r=new Map){const i=[],s=[];let o=-1,a=null;if(n.forEach(l=>{const c=l.get("offset"),u=c==o,d=u&&a||new Map;l.forEach((f,h)=>{let g=h,v=f;if("offset"!==h)switch(g=e.normalizePropertyName(g,i),v){case"!":v=t.get(h);break;case zs:v=r.get(h);break;default:v=e.normalizeStyleValue(h,g,v,i)}d.set(g,v)}),u||s.push(d),a=d,o=c}),i.length)throw function pU(){return new k(3502,!1)}();return s}function rv(e,n,t,r){switch(n){case"start":e.onStart(()=>r(t&&iv(t,"start",e)));break;case"done":e.onDone(()=>r(t&&iv(t,"done",e)));break;case"destroy":e.onDestroy(()=>r(t&&iv(t,"destroy",e)))}}function iv(e,n,t){const s=sv(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 sv(e,n,t,r,i="",s=0,o){return{element:e,triggerName:n,fromState:t,toState:r,phaseName:i,totalTime:s,disabled:!!o}}function ti(e,n,t){let r=e.get(n);return r||e.set(n,r=t),r}function D5(e){const n=e.indexOf(":");return[e.substring(1,n),e.slice(n+1)]}const TU=typeof document>"u"?null:document.documentElement;function ov(e){const n=e.parentNode||e.host||null;return n===TU?null:n}let Aa=null,S5=!1;function T5(e,n){for(;n;){if(n===e)return!0;n=ov(n)}return!1}function M5(e,n,t){if(t)return Array.from(e.querySelectorAll(n));const r=e.querySelector(n);return r?[r]:[]}let av=(()=>{class e{validateStyleProperty(t){return function IU(e){Aa||(Aa=function AU(){return typeof document<"u"?document.body:null}()||{},S5=!!Aa.style&&"WebkitAppearance"in Aa.style);let n=!0;return Aa.style&&!function MU(e){return"ebkit"==e.substring(1,6)}(e)&&(n=e in Aa.style,!n&&S5&&(n="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in Aa.style)),n}(t)}containsElement(t,r){return T5(t,r)}getParentElement(t){return ov(t)}query(t,r,i){return M5(t,r,i)}computeStyle(t,r,i){return i||""}animate(t,r,i,s,o,a=[],l){return new Ku(i,s)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=te({token:e,factory:e.\u0275fac})}return e})();class lv{static#e=this.NOOP=new av}class cv{}const NU=1e3,uv="ng-enter",Pp="ng-leave",Op="ng-trigger",Rp=".ng-trigger",A5="ng-animating",dv=".ng-animating";function Zs(e){if("number"==typeof e)return e;const n=e.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:hv(parseFloat(n[1]),n[2])}function hv(e,n){return"s"===n?e*NU:e}function Lp(e,n,t){return e.hasOwnProperty("duration")?e:function PU(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(C5()),{duration:0,delay:0,easing:""};i=hv(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=hv(parseFloat(l),a[4]));const c=a[5];c&&(o=c)}else i=e;if(!t){let a=!1,l=n.length;i<0&&(n.push(function GH(){return new k(3100,!1)}()),a=!0),s<0&&(n.push(function WH(){return new k(3101,!1)}()),a=!0),a&&n.splice(l,0,C5())}return{duration:i,delay:s,easing:o}}(e,n,t)}function ws(e,n,t){n.forEach((r,i)=>{const s=pv(i);t&&!t.has(i)&&t.set(i,e.style[s]),e.style[s]=r})}function xa(e,n){n.forEach((t,r)=>{const i=pv(r);e.style[i]=""})}function dd(e){return Array.isArray(e)?1==e.length?e[0]:function bV(e,n=null){return{type:we.Sequence,steps:e,options:n}}(e):e}const fv=new RegExp("{{\\s*(.+?)\\s*}}","g");function N5(e){let n=[];if("string"==typeof e){let t;for(;t=fv.exec(e);)n.push(t[1]);fv.lastIndex=0}return n}function hd(e,n,t){const r=`${e}`,i=r.replace(fv,(s,o)=>{let a=n[o];return null==a&&(t.push(function KH(){return new k(3003,!1)}()),a=""),a.toString()});return i==r?e:i}const LU=/-+([a-z0-9])/g;function pv(e){return e.replace(LU,(...n)=>n[1].toUpperCase())}function ni(e,n,t){switch(n.type){case we.Trigger:return e.visitTrigger(n,t);case we.State:return e.visitState(n,t);case we.Transition:return e.visitTransition(n,t);case we.Sequence:return e.visitSequence(n,t);case we.Group:return e.visitGroup(n,t);case we.Animate:return e.visitAnimate(n,t);case we.Keyframes:return e.visitKeyframes(n,t);case we.Style:return e.visitStyle(n,t);case we.Reference:return e.visitReference(n,t);case we.AnimateChild:return e.visitAnimateChild(n,t);case we.AnimateRef:return e.visitAnimateRef(n,t);case we.Query:return e.visitQuery(n,t);case we.Stagger:return e.visitStagger(n,t);default:throw function YH(){return new k(3004,!1)}()}}function gv(e,n){return window.getComputedStyle(e)[n]}const $U=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 k5 extends cv{normalizePropertyName(n,t){return pv(n)}normalizeStyleValue(n,t,r,i){let s="";const o=r.toString().trim();if($U.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 QH(){return new k(3005,!1)}())}return o+s}}const Fp="*";const Vp=new Set(["true","1"]),$p=new Set(["false","0"]);function P5(e,n){const t=Vp.has(e)||$p.has(e),r=Vp.has(n)||$p.has(n);return(i,s)=>{let o=e==Fp||e==i,a=n==Fp||n==s;return!o&&t&&"boolean"==typeof i&&(o=i?Vp.has(e):$p.has(e)),!a&&r&&"boolean"==typeof s&&(a=s?Vp.has(n):$p.has(n)),o&&a}}const UU=new RegExp("s*:selfs*,?","g");function mv(e,n,t,r){return new zU(e).build(n,t,r)}class zU{constructor(n){this._driver=n}build(n,t,r){const i=new WU(t);return this._resetContextStyleTimingState(i),ni(this,dd(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 XH(){return new k(3006,!1)}()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==we.State){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,s.push(this.visitState(l,t))}),l.name=c}else if(a.type==we.Transition){const l=this.visitTransition(a,t);r+=l.queryCount,i+=l.depCount,o.push(l)}else t.errors.push(function JH(){return new k(3007,!1)}())}),{type:we.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(l=>{N5(l).forEach(c=>{o.hasOwnProperty(c)||s.add(c)})})}),s.size&&t.errors.push(function eU(){return new k(3008,!1)}(0,s.values()))}return{type:we.State,name:n.name,style:r,options:i?{params:i}:null}}visitTransition(n,t){t.queryCount=0,t.depCount=0;const r=ni(this,dd(n.animation),t),i=function BU(e,n){const t=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(r=>function jU(e,n,t){if(":"==e[0]){const l=function HU(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 uU(){return new k(3016,!1)}()),"* => *"}}(e,t);if("function"==typeof l)return void n.push(l);e=l}const r=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return t.push(function cU(){return new k(3015,!1)}()),n;const i=r[1],s=r[2],o=r[3];n.push(P5(i,o)),"<"==s[0]&&(i!=Fp||o!=Fp)&&n.push(P5(o,i))}(r,t,n)):t.push(e),t}(n.expr,t.errors);return{type:we.Transition,matchers:i,animation:r,queryCount:t.queryCount,depCount:t.depCount,options:Na(n.options)}}visitSequence(n,t){return{type:we.Sequence,steps:n.steps.map(r=>ni(this,r,t)),options:Na(n.options)}}visitGroup(n,t){const r=t.currentTime;let i=0;const s=n.steps.map(o=>{t.currentTime=r;const a=ni(this,o,t);return i=Math.max(i,t.currentTime),a});return t.currentTime=i,{type:we.Group,steps:s,options:Na(n.options)}}visitAnimate(n,t){const r=function KU(e,n){if(e.hasOwnProperty("duration"))return e;if("number"==typeof e)return yv(Lp(e,n).duration,0,"");const t=e;if(t.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=yv(0,0,"");return s.dynamic=!0,s.strValue=t,s}const i=Lp(t,n);return yv(i.duration,i.delay,i.easing)}(n.timings,t.errors);t.currentAnimateTimings=r;let i,s=n.styles?n.styles:cn({});if(s.type==we.Keyframes)i=this.visitKeyframes(s,t);else{let o=n.styles,a=!1;if(!o){a=!0;const c={};r.easing&&(c.easing=r.easing),o=cn(c)}t.currentTime+=r.duration+r.delay;const l=this.visitStyle(o,t);l.isEmptyStep=a,i=l}return t.currentAnimateTimings=null,{type:we.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===zs?r.push(a):t.errors.push(new k(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 l of a.values())if(l.toString().indexOf("{{")>=0){s=!0;break}}),{type:we.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,l)=>{const c=t.collectedStyles.get(t.currentQuerySelector),u=c.get(l);let d=!0;u&&(s!=i&&s>=u.startTime&&i<=u.endTime&&(t.errors.push(function nU(){return new k(3010,!1)}()),d=!1),s=u.startTime),d&&c.set(l,{startTime:s,endTime:i}),t.options&&function RU(e,n,t){const r=n.params||{},i=N5(e);i.length&&i.forEach(s=>{r.hasOwnProperty(s)||t.push(function ZH(){return new k(3001,!1)}())})}(a,t.options,t.errors)})})}visitKeyframes(n,t){const r={type:we.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function rU(){return new k(3011,!1)}()),r;let s=0;const o=[];let a=!1,l=!1,c=0;const u=n.steps.map(T=>{const D=this._makeStyleAst(T,t);let F=null!=D.offset?D.offset:function ZU(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}(D.styles),L=0;return null!=F&&(s++,L=D.offset=F),l=l||L<0||L>1,a=a||L<c,c=L,o.push(L),D});l&&t.errors.push(function iU(){return new k(3012,!1)}()),a&&t.errors.push(function sU(){return new k(3200,!1)}());const d=n.steps.length;let f=0;s>0&&s<d?t.errors.push(function oU(){return new k(3202,!1)}()):0==s&&(f=1/(d-1));const h=d-1,g=t.currentTime,v=t.currentAnimateTimings,C=v.duration;return u.forEach((T,D)=>{const F=f>0?D==h?1:f*D:o[D],L=F*C;t.currentTime=g+v.delay+L,v.duration=L,this._validateStyleAst(T,t),T.offset=F,r.styles.push(T)}),r}visitReference(n,t){return{type:we.Reference,animation:ni(this,dd(n.animation),t),options:Na(n.options)}}visitAnimateChild(n,t){return t.depCount++,{type:we.AnimateChild,options:Na(n.options)}}visitAnimateRef(n,t){return{type:we.AnimateRef,animation:this.visitReference(n.animation,t),options:Na(n.options)}}visitQuery(n,t){const r=t.currentQuerySelector,i=n.options||{};t.queryCount++,t.currentQuery=n;const[s,o]=function qU(e){const n=!!e.split(/\s*,\s*/).find(t=>":self"==t);return n&&(e=e.replace(UU,"")),e=e.replace(/@\*/g,Rp).replace(/@\w+/g,t=>Rp+"-"+t.slice(1)).replace(/:animating/g,dv),[e,n]}(n.selector);t.currentQuerySelector=r.length?r+" "+s:s,ti(t.collectedStyles,t.currentQuerySelector,new Map);const a=ni(this,dd(n.animation),t);return t.currentQuery=null,t.currentQuerySelector=r,{type:we.Query,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:o,animation:a,originalSelector:n.selector,options:Na(n.options)}}visitStagger(n,t){t.currentQuery||t.errors.push(function aU(){return new k(3013,!1)}());const r="full"===n.timings?{duration:0,delay:0,easing:"full"}:Lp(n.timings,t.errors,!0);return{type:we.Stagger,animation:ni(this,dd(n.animation),t),timings:r,options:null}}}class WU{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 Na(e){return e?(e={...e}).params&&(e.params=function GU(e){return e?{...e}:null}(e.params)):e={},e}function yv(e,n,t){return{duration:e,delay:n,easing:t}}function vv(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 Bp{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 XU=new RegExp(":enter","g"),ez=new RegExp(":leave","g");function _v(e,n,t,r,i,s=new Map,o=new Map,a,l,c=[]){return(new tz).buildKeyframes(e,n,t,r,i,s,o,a,l,c)}class tz{buildKeyframes(n,t,r,i,s,o,a,l,c,u=[]){c=c||new Bp;const d=new wv(n,t,c,i,s,u,[]);d.options=l;const f=l.delay?Zs(l.delay):0;d.currentTimeline.delayNextStep(f),d.currentTimeline.setStyles([o],null,d.errors,l),ni(this,r,d);const h=d.timelines.filter(g=>g.containsAnimation());if(h.length&&a.size){let g;for(let v=h.length-1;v>=0;v--){const C=h[v];if(C.element===t){g=C;break}}g&&!g.allowOnlyTimelineStyles()&&g.setStyles([a],null,d.errors,l)}return h.length?h.map(g=>g.buildKeyframes()):[vv(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:Zs(hd(s,i?.params??{},t.errors));r.delayNextStep(o)}}}_visitSubInstructions(n,t,r){let s=t.currentTimeline.currentTime;const o=null!=r.duration?Zs(r.duration):null,a=null!=r.delay?Zs(r.delay):null;return 0!==o&&n.forEach(l=>{const c=t.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(n,t){t.updateOptions(n.options,!0),ni(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==we.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=jp);const o=Zs(s.delay);i.delayNextStep(o)}n.steps.length&&(n.steps.forEach(o=>ni(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?Zs(n.options.delay):0;n.steps.forEach(o=>{const a=t.createSubContext(n.options);s&&a.delayNextStep(s),ni(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 Lp(t.params?hd(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==we.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(l=>{a.forwardTime((l.offset||0)*s),a.setStyles(l.styles,l.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?Zs(i.delay):0;s&&(t.previousNode.type===we.Style||0==r&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=jp);let o=r;const a=t.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{t.currentQueryIndex=u;const d=t.createSubContext(n.options,c);s&&d.delayNextStep(s),c===t.element&&(l=d.currentTimeline),ni(this,n.animation,d),d.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,d.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),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 l=o*t.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=r.currentStaggerTime}const u=t.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;ni(this,n.animation,t),t.previousNode=n,r.currentStaggerTime=i.currentTime-d+(i.startTime-r.currentTimeline.startTime)}}const jp={};class wv{constructor(n,t,r,i,s,o,a,l){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=jp,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Hp(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=Zs(r.duration)),null!=r.delay&&(i.delay=Zs(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]=hd(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 wv(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=jp,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 nz(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(XU,"."+this._enterClassName)).replace(ez,"."+this._leaveClassName);let c=this._driver.query(this.element,n,1!=r);0!==r&&(c=r<0?c.slice(c.length+r,c.length):c.slice(0,r)),a.push(...c)}return!s&&0==a.length&&o.push(function lU(){return new k(3014,!1)}()),a}}class Hp{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 Hp(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||zs),this._currentKeyframe.set(t,zs);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,t,r,i){t&&this._previousKeyframe.set("easing",t);const s=i&&i.params||{},o=function rz(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,zs)}else for(let[s,o]of i)t.set(s,o)}),t}(n,this._globalTimelineStyles);for(let[a,l]of o){const c=hd(l,s,r);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??zs),this._updateStyle(a,c)}}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,l)=>{const c=new Map([...this._backFill,...a]);c.forEach((u,d)=>{"!"===u?n.add(d):u===zs&&t.add(d)}),r||c.set("offset",l/this.duration),i.push(c)});const s=[...n.values()],o=[...t.values()];if(r){const a=i[0],l=new Map(a);a.set("offset",0),l.set("offset",1),i=[a,l]}return vv(this.element,i,s,o,this.duration,this.startTime,this.easing,!1)}}class nz extends Hp{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,l=new Map(n[0]);l.set("offset",0),s.push(l);const c=new Map(n[0]);c.set("offset",L5(a)),s.push(c);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",L5((t+h*r)/o)),s.push(f)}r=o,t=0,i="",n=s}return vv(this.element,n,this.preStyleProps,this.postStyleProps,r,t,i,!0)}}function L5(e,n=3){const t=Math.pow(10,n-1);return Math.round(e*t)/t}function F5(e,n,t,r,i,s,o,a,l,c,u,d,f){return{type:0,element:e,triggerName:n,isRemovalTransition:i,fromState:t,fromStyles:s,toState:r,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:f}}const bv={};class V5{constructor(n,t,r){this._triggerName=n,this.ast=t,this._stateStyles=r}match(n,t,r,i){return function iz(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,l,c,u){const d=[],f=this.ast.options&&this.ast.options.params||bv,g=this.buildStyles(r,a&&a.params||bv,d),v=l&&l.params||bv,C=this.buildStyles(i,v,d),T=new Set,D=new Map,F=new Map,L="void"===i,H={params:$5(v,f),delay:this.ast.options?.delay},U=u?[]:_v(n,t,this.ast.animation,s,o,g,C,H,c,d);let ce=0;return U.forEach(Fe=>{ce=Math.max(Fe.duration+Fe.delay,ce)}),d.length?F5(t,this._triggerName,r,i,L,g,C,[],[],D,F,ce,d):(U.forEach(Fe=>{const Et=Fe.element,rn=ti(D,Et,new Set);Fe.preStyleProps.forEach(Rr=>rn.add(Rr));const Dt=ti(F,Et,new Set);Fe.postStyleProps.forEach(Rr=>Dt.add(Rr)),Et!==t&&T.add(Et)}),F5(t,this._triggerName,r,i,L,g,C,U,[...T.values()],D,F,ce))}}function $5(e,n){const t={...n};return Object.entries(e).forEach(([r,i])=>{null!=i&&(t[r]=i)}),t}class sz{constructor(n,t,r){this.styles=n,this.defaultParams=t,this.normalizer=r}buildStyles(n,t){const r=new Map,i=$5(n,this.defaultParams);return this.styles.styles.forEach(s=>{"string"!=typeof s&&s.forEach((o,a)=>{o&&(o=hd(o,i,t));const l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),r.set(a,o)})}),r}}class az{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 sz(i.style,i.options&&i.options.params||{},r))}),B5(this.states,"true","1"),B5(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new V5(n,i,this.states))}),this.fallbackTransition=function lz(e,n){return new V5(e,{type:we.Transition,animation:{type:we.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 B5(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 cz=new Bp;class uz{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=mv(this._driver,t,r,[]);if(r.length)throw function gU(){return new k(3503,!1)}();this._animations.set(n,s)}_buildPlayer(n,t,r){const i=n.element,s=E5(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=_v(this._driver,t,s,uv,Pp,new Map,new Map,r,cz,i),o.forEach(u=>{const d=ti(a,u.element,new Map);u.postStyleProps.forEach(f=>d.set(f,null))})):(i.push(function mU(){return new k(3300,!1)}()),o=[]),i.length)throw function yU(){return new k(3504,!1)}();a.forEach((u,d)=>{u.forEach((f,h)=>{u.set(h,this._driver.computeStyle(d,h,zs))})});const c=Oo(o.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(n,c),c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}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 vU(){return new k(3301,!1)}();return t}listen(n,t,r,i){const s=sv(t,"","","");return rv(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 j5="ng-animate-queued",Cv="ng-animate-disabled",gz=[],H5={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},mz={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},qi="__ng_removed";class Ev{get params(){return this.options.params}constructor(n,t=""){this.namespaceId=t;const r=n&&n.hasOwnProperty("value");if(this.value=function wz(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 fd="void",Dv=new Ev(fd);class yz{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,vi(t,this._hostClassName)}listen(n,t,r,i){if(!this._triggers.has(t))throw function _U(){return new k(3302,!1)}();if(null==r||0==r.length)throw function wU(){return new k(3303,!1)}();if(!function bz(e){return"start"==e||"done"==e}(r))throw function bU(){return new k(3400,!1)}();const s=ti(this._elementListeners,n,[]),o={name:t,phase:r,callback:i};s.push(o);const a=ti(this._engine.statesByElement,n,new Map);return a.has(t)||(vi(n,Op),vi(n,Op+"-"+t),a.set(t,Dv)),()=>{this._engine.afterFlush(()=>{const l=s.indexOf(o);l>=0&&s.splice(l,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 CU(){return new k(3401,!1)}();return t}trigger(n,t,r,i=!0){const s=this._getTrigger(t),o=new Sv(this.id,t,n);let a=this._engine.statesByElement.get(n);a||(vi(n,Op),vi(n,Op+"-"+t),this._engine.statesByElement.set(n,a=new Map));let l=a.get(t);const c=new Ev(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=Dv),c.value!==fd&&l.value===c.value){if(!function Dz(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}(l.params,c.params)){const v=[],C=s.matchStyles(l.value,l.params,v),T=s.matchStyles(c.value,c.params,v);v.length?this._engine.reportError(v):this._engine.afterFlush(()=>{xa(n,C),ws(n,T)})}return}const f=ti(this._engine.playersByElement,n,[]);f.forEach(v=>{v.namespaceId==this.id&&v.triggerName==t&&v.queued&&v.destroy()});let h=s.matchTransition(l.value,c.value,n,c.params),g=!1;if(!h){if(!i)return;h=s.fallbackTransition,g=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:t,transition:h,fromState:l,toState:c,player:o,isFallbackTransition:g}),g||(vi(n,j5),o.onStart(()=>{vc(n,j5)})),o.onDone(()=>{let v=this.players.indexOf(o);v>=0&&this.players.splice(v,1);const C=this._engine.playersByElement.get(n);if(C){let T=C.indexOf(o);T>=0&&C.splice(T,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,Rp,!0);r.forEach(i=>{if(i[qi])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((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){const u=this.trigger(n,c,fd,i);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,t,o),r&&Oo(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 l=this._triggers.get(o).fallbackTransition,c=r.get(o)||Dv,u=new Ev(fd),d=new Sv(this.id,o,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:o,transition:l,fromState:c,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[qi];(!s||s===H5)&&(r.afterFlush(()=>this.clearElementCache(n)),r.destroyInnerAnimations(n),r._onRemovalComplete(n,t))}}insertNode(n,t){vi(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 l=sv(s,r.triggerName,r.fromState.value,r.toState.value);l._data=n,rv(r.player,a.phase,l,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 vz{_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 yz(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 l=i.get(a);if(l){const c=r.indexOf(l);r.splice(c+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(Up(t)){const s=this._fetchNamespace(n);if(s)return s.trigger(t,r,i),!0}return!1}insertNode(n,t,r,i){if(!Up(t))return;const s=t[qi];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),vi(n,Cv)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),vc(n,Cv))}removeNode(n,t,r){if(Up(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[qi]={namespaceId:n,setForRemoval:i,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:s}}listen(n,t,r,i,s){return Up(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,Rp,!0);t.forEach(r=>this.destroyActiveAnimationsForElement(r)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(n,dv,!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 Oo(this.players).onDone(()=>n());n()})}processLeaveNode(n){const t=n[qi];if(t&&t.setForRemoval){if(n[qi]=H5,t.namespaceId){this.destroyInnerAnimations(n);const r=this._fetchNamespace(t.namespaceId);r&&r.clearElementCache(n)}this._onRemovalComplete(n,t.setForRemoval)}n.classList?.contains(Cv)&&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++)vi(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?Oo(t).onDone(()=>{r.forEach(i=>i())}):r.forEach(i=>i())}}reportError(n){throw function EU(){return new k(3402,!1)}()}_flushAnimations(n,t){const r=new Bp,i=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(Y=>{u.add(Y);const oe=this.driver.query(Y,".ng-animate-queued",!0);for(let fe=0;fe<oe.length;fe++)u.add(oe[fe])});const d=this.bodyNode,f=Array.from(this.statesByElement.keys()),h=q5(f,this.collectedEnterElements),g=new Map;let v=0;h.forEach((Y,oe)=>{const fe=uv+v++;g.set(oe,fe),Y.forEach(ze=>vi(ze,fe))});const C=[],T=new Set,D=new Set;for(let Y=0;Y<this.collectedLeaveElements.length;Y++){const oe=this.collectedLeaveElements[Y],fe=oe[qi];fe&&fe.setForRemoval&&(C.push(oe),T.add(oe),fe.hasAnimation?this.driver.query(oe,".ng-star-inserted",!0).forEach(ze=>T.add(ze)):D.add(oe))}const F=new Map,L=q5(f,Array.from(T));L.forEach((Y,oe)=>{const fe=Pp+v++;F.set(oe,fe),Y.forEach(ze=>vi(ze,fe))}),n.push(()=>{h.forEach((Y,oe)=>{const fe=g.get(oe);Y.forEach(ze=>vc(ze,fe))}),L.forEach((Y,oe)=>{const fe=F.get(oe);Y.forEach(ze=>vc(ze,fe))}),C.forEach(Y=>{this.processLeaveNode(Y)})});const H=[],U=[];for(let Y=this._namespaceList.length-1;Y>=0;Y--)this._namespaceList[Y].drainQueuedTransitions(t).forEach(fe=>{const ze=fe.player,Nn=fe.element;if(H.push(ze),this.collectedEnterElements.length){const ur=Nn[qi];if(ur&&ur.setForMove){if(ur.previousTriggersValues&&ur.previousTriggersValues.has(fe.triggerName)){const Pa=ur.previousTriggersValues.get(fe.triggerName),wi=this.statesByElement.get(fe.element);if(wi&&wi.has(fe.triggerName)){const Gp=wi.get(fe.triggerName);Gp.value=Pa,wi.set(fe.triggerName,Gp)}}return void ze.destroy()}}const _i=!d||!this.driver.containsElement(d,Nn),Cr=F.get(Nn),Es=g.get(Nn),Wt=this._buildInstruction(fe,r,Es,Cr,_i);if(Wt.errors&&Wt.errors.length)return void U.push(Wt);if(_i)return ze.onStart(()=>xa(Nn,Wt.fromStyles)),ze.onDestroy(()=>ws(Nn,Wt.toStyles)),void i.push(ze);if(fe.isFallbackTransition)return ze.onStart(()=>xa(Nn,Wt.fromStyles)),ze.onDestroy(()=>ws(Nn,Wt.toStyles)),void i.push(ze);const qp=[];Wt.timelines.forEach(ur=>{ur.stretchStartingKeyframe=!0,this.disabledNodes.has(ur.element)||qp.push(ur)}),Wt.timelines=qp,r.append(Nn,Wt.timelines),o.push({instruction:Wt,player:ze,element:Nn}),Wt.queriedElements.forEach(ur=>ti(a,ur,[]).push(ze)),Wt.preStyleProps.forEach((ur,Pa)=>{if(ur.size){let wi=l.get(Pa);wi||l.set(Pa,wi=new Set),ur.forEach((Gp,Iv)=>wi.add(Iv))}}),Wt.postStyleProps.forEach((ur,Pa)=>{let wi=c.get(Pa);wi||c.set(Pa,wi=new Set),ur.forEach((Gp,Iv)=>wi.add(Iv))})});if(U.length){const Y=[];U.forEach(oe=>{Y.push(function DU(){return new k(3505,!1)}())}),H.forEach(oe=>oe.destroy()),this.reportError(Y)}const ce=new Map,Fe=new Map;o.forEach(Y=>{const oe=Y.element;r.has(oe)&&(Fe.set(oe,oe),this._beforeAnimationBuild(Y.player.namespaceId,Y.instruction,ce))}),i.forEach(Y=>{const oe=Y.element;this._getPreviousPlayers(oe,!1,Y.namespaceId,Y.triggerName,null).forEach(ze=>{ti(ce,oe,[]).push(ze),ze.destroy()})});const Et=C.filter(Y=>W5(Y,l,c)),rn=new Map;z5(rn,this.driver,D,c,zs).forEach(Y=>{W5(Y,l,c)&&Et.push(Y)});const Rr=new Map;h.forEach((Y,oe)=>{z5(Rr,this.driver,new Set(Y),l,"!")}),Et.forEach(Y=>{const oe=rn.get(Y),fe=Rr.get(Y);rn.set(Y,new Map([...oe?.entries()??[],...fe?.entries()??[]]))});const bs=[],Cs=[],ka={};o.forEach(Y=>{const{element:oe,player:fe,instruction:ze}=Y;if(r.has(oe)){if(u.has(oe))return fe.onDestroy(()=>ws(oe,ze.toStyles)),fe.disabled=!0,fe.overrideTotalTime(ze.totalTime),void i.push(fe);let Nn=ka;if(Fe.size>1){let Cr=oe;const Es=[];for(;Cr=Cr.parentNode;){const Wt=Fe.get(Cr);if(Wt){Nn=Wt;break}Es.push(Cr)}Es.forEach(Wt=>Fe.set(Wt,Nn))}const _i=this._buildAnimation(fe.namespaceId,ze,ce,s,Rr,rn);if(fe.setRealPlayer(_i),Nn===ka)bs.push(fe);else{const Cr=this.playersByElement.get(Nn);Cr&&Cr.length&&(fe.parentPlayer=Oo(Cr)),i.push(fe)}}else xa(oe,ze.fromStyles),fe.onDestroy(()=>ws(oe,ze.toStyles)),Cs.push(fe),u.has(oe)&&i.push(fe)}),Cs.forEach(Y=>{const oe=s.get(Y.element);if(oe&&oe.length){const fe=Oo(oe);Y.setRealPlayer(fe)}}),i.forEach(Y=>{Y.parentPlayer?Y.syncPlayerEvents(Y.parentPlayer):Y.destroy()});for(let Y=0;Y<C.length;Y++){const oe=C[Y],fe=oe[qi];if(vc(oe,Pp),fe&&fe.hasAnimation)continue;let ze=[];if(a.size){let _i=a.get(oe);_i&&_i.length&&ze.push(..._i);let Cr=this.driver.query(oe,dv,!0);for(let Es=0;Es<Cr.length;Es++){let Wt=a.get(Cr[Es]);Wt&&Wt.length&&ze.push(...Wt)}}const Nn=ze.filter(_i=>!_i.destroyed);Nn.length?Cz(this,oe,Nn):this.processLeaveNode(oe)}return C.length=0,bs.forEach(Y=>{this.players.push(Y),Y.onDone(()=>{Y.destroy();const oe=this.players.indexOf(Y);this.players.splice(oe,1)}),Y.play()}),bs}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 l=!s||s==fd;a.forEach(c=>{c.queued||!l&&c.triggerName!=i||o.push(c)})}}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 l of t.timelines){const c=l.element,u=c!==s,d=ti(r,c,[]);this._getPreviousPlayers(c,u,o,a,t.toState).forEach(h=>{const g=h.getRealPlayer();g.beforeDestroy&&g.beforeDestroy(),h.destroy(),d.push(h)})}xa(s,t.fromStyles)}_buildAnimation(n,t,r,i,s,o){const a=t.triggerName,l=t.element,c=[],u=new Set,d=new Set,f=t.timelines.map(g=>{const v=g.element;u.add(v);const C=v[qi];if(C&&C.removedBeforeQueried)return new Ku(g.duration,g.delay);const T=v!==l,D=function Ez(e){const n=[];return G5(e,n),n}((r.get(v)||gz).map(ce=>ce.getRealPlayer())).filter(ce=>!!ce.element&&ce.element===v),F=s.get(v),L=o.get(v),H=E5(this._normalizer,g.keyframes,F,L),U=this._buildPlayer(g,H,D);if(g.subTimeline&&i&&d.add(v),T){const ce=new Sv(n,a,v);ce.setRealPlayer(U),c.push(ce)}return U});c.forEach(g=>{ti(this.playersByQueriedElement,g.element,[]).push(g),g.onDone(()=>function _z(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,g.element,g))}),u.forEach(g=>vi(g,A5));const h=Oo(f);return h.onDestroy(()=>{u.forEach(g=>vc(g,A5)),ws(l,t.toStyles)}),d.forEach(g=>{ti(i,g,[]).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 Ku(n.duration,n.delay)}}class Sv{constructor(n,t,r){this.namespaceId=n,this.triggerName=t,this.element=r,this._player=new Ku,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=>rv(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){ti(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 Up(e){return e&&1===e.nodeType}function U5(e,n){const t=e.style.display;return e.style.display=n??"none",t}function z5(e,n,t,r,i){const s=[];t.forEach(l=>s.push(U5(l)));const o=[];r.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const f=n.computeStyle(c,d,i);u.set(d,f),(!f||0==f.length)&&(c[qi]=mz,o.push(c))}),e.set(c,u)});let a=0;return t.forEach(l=>U5(l,s[a++])),o}function q5(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 l=s.get(a);if(l)return l;const c=a.parentNode;return l=t.has(c)?c:i.has(c)?1:o(c),s.set(a,l),l}return n.forEach(a=>{const l=o(a);1!==l&&t.get(l).push(a)}),t}function vi(e,n){e.classList?.add(n)}function vc(e,n){e.classList?.remove(n)}function Cz(e,n,t){Oo(t).onDone(()=>e.processLeaveNode(n))}function G5(e,n){for(let t=0;t<e.length;t++){const r=e[t];r instanceof Q3?G5(r.players,n):n.push(r)}}function W5(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 pd{constructor(n,t,r){this._driver=t,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(i,s)=>{},this._transitionEngine=new vz(n.body,t,r),this._timelineEngine=new uz(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 l=[],u=mv(this._driver,s,l,[]);if(l.length)throw function fU(){return new k(3404,!1)}();a=function oz(e,n,t){return new az(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]=D5(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]=D5(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 gd{static#e=this.initialStylesByElement=new WeakMap;constructor(n,t,r){this._element=n,this._startStyles=t,this._endStyles=r,this._state=0;let i=gd.initialStylesByElement.get(n);i||gd.initialStylesByElement.set(n,i=new Map),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&ws(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ws(this._element,this._initialStyles),this._endStyles&&(ws(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(gd.initialStylesByElement.delete(this._element),this._startStyles&&(xa(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(xa(this._element,this._endStyles),this._endStyles=null),ws(this._element,this._initialStyles),this._state=3)}}function Tv(e){let n=null;return e.forEach((t,r)=>{(function Tz(e){return"display"===e||"position"===e})(r)&&(n=n||new Map,n.set(r,t))}),n}class Z5{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:gv(this.element,i))}),this.currentSnapshot=n}triggerCallback(n){const t="start"===n?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}class K5{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}containsElement(n,t){return T5(n,t)}getParentElement(n){return ov(n)}query(n,t,r){return M5(n,t,r)}computeStyle(n,t,r){return gv(n,t)}animate(n,t,r,i,s,o=[]){const l={duration:r,delay:i,fill:0==i?"both":"forwards"};s&&(l.easing=s);const c=new Map,u=o.filter(h=>h instanceof Z5);(function FU(e,n){return 0===e||0===n})(r,i)&&u.forEach(h=>{h.currentSnapshot.forEach((g,v)=>c.set(v,g))});let d=function OU(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 VU(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,gv(e,a)))}}return n}(n,d,c);const f=function Sz(e,n){let t=null,r=null;return Array.isArray(n)&&n.length?(t=Tv(n[0]),n.length>1&&(r=Tv(n[n.length-1]))):n instanceof Map&&(t=Tv(n)),t||r?new gd(e,t,r):null}(n,d);return new Z5(n,d,l,f)}}const Y5="@.disabled";class Q5{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==Y5?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 Mz extends Q5{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==Y5?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 Iz(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 Az(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 xz{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 c=this._rendererCache;let u=c.get(i);return u||(u=new Q5("",i,this.engine,()=>c.delete(i)),c.set(i,u)),u}const s=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,n);const a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(s,o,n,c.name,c)};return t.data.animation.forEach(a),new Mz(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 X5=[{provide:cv,useFactory:function kz(){return new k5}},{provide:pd,useClass:(()=>{class e extends pd{constructor(t,r,i){super(t,r,i)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(r){return new(r||e)(X(cr),X(lv),X(cv))};static#t=this.\u0275prov=te({token:e,factory:e.\u0275fac})}return e})()},{provide:Oh,useFactory:function Pz(e,n,t){return new xz(e,n,t)},deps:[iy,pd,st]}],Mv=[{provide:lv,useFactory:()=>new K5},{provide:F2,useValue:"BrowserAnimations"},...X5],J5=[{provide:lv,useClass:av},{provide:F2,useValue:"NoopAnimations"},...X5];let e6=(()=>{class e{static withConfig(t){return{ngModule:e,providers:t.disableAnimations?J5:Mv}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Gn({type:e});static#n=this.\u0275inj=Ln({providers:Mv,imports:[Lf]})}return e})();ue(557);const t6={merchantCapabilities:["supports3DS"],supportedNetworks:["visa","masterCard","amex","discover"]},Oz=Fr(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}),n6=new Z("APPLE_PAY_SESSION_TOKEN",{factory:()=>q(cr).defaultView.ApplePaySession});let r6=(()=>{class e{constructor(t){this.applePaySession=t}canMakePayments(){return ApplePaySession.canMakePayments()}createPaySession(t,r,i){return new Mt(s=>{const o=a=>{s.error(a),console.error(a)};try{const a=new this.applePaySession(t,r),l=(c,u)=>{a.abort(),o({event:c,error:u})};a.onvalidatemerchant=function(){var c=zf(function*(u){try{const d=yield function Rz(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 Oz)}})})}(i(u));a.completeMerchantValidation(d)}catch(d){l(u,d)}});return function(u){return c.apply(this,arguments)}}(),a.onpaymentmethodselected=c=>{const u={newTotal:{...r.total}};a.completePaymentMethodSelection(u)},a.onshippingmethodselected=c=>{a.completeShippingMethodSelection({})},a.onshippingcontactselected=c=>{a.completeShippingContactSelection({})},a.onpaymentauthorized=c=>{a.completePayment({status:ApplePaySession.STATUS_SUCCESS}),s.next(c),s.complete()},a.oncancel=c=>{o(c)},a.begin()}catch(a){o(a)}})}static#e=this.\u0275fac=function(r){return new(r||e)(X(n6))};static#t=this.\u0275prov=te({token:e,factory:e.\u0275fac})}return e})(),i6=(()=>{class e{constructor(t,r){this.nativeService=t,this.http=r}canMakePayment(){return To(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=t6.supportedNetworks,merchantCapabilities:o=t6.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)(X(r6),X(Kf))};static#t=this.\u0275prov=te({token:e,factory:e.\u0275fac})}return e})();const Lz=new Z("APPLE_PAY_SESSION_SUPPORT_TOKEN",{factory:()=>!!q(n6)}),Fz={canMakePayment:()=>To(!1),pay(e){throw new Error("not implemented")}};let s6=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Gn({type:e});static#n=this.\u0275inj=Ln({providers:[r6,i6,{provide:u5,deps:[Lz,i6],useFactory:(t,r)=>t?r:Fz}]})}return e})(),o6=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Gn({type:e});static#n=this.\u0275inj=Ln({providers:[F4],imports:[qS.forRoot(),b5,$S,VS,K0,Lf,e6,s6,qS,b5,$S,VS,K0,Lf,e6,s6]})}return e})(),Vz=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Gn({type:e});static#n=this.\u0275inj=Ln({providers:[ln,yc,nv,kp],imports:[o6]})}return e})(),$z=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Gn({type:e});static#n=this.\u0275inj=Ln({providers:[A4,ud]})}return e})(),Bz=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Gn({type:e});static#n=this.\u0275inj=Ln({providers:[y5]})}return e})();function jz(e,n){let t=e;const r=q(ln),i=q(Jf),s=r.data.settings().language,o=!!e.headers.get(sc_customHeaders_skipToastr);return o&&(t=e.clone({headers:e.headers.delete(sc_customHeaders_skipToastr)})),n(t).pipe(Uf(a=>(o||i.error(s.notifications.error.default.text,s.notifications.error.default.title),r.events.error.emit(a),T4(()=>a))))}function Hz(e,n){let t=e;const r=q(ln);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 Uz=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Gn({type:e});static#n=this.\u0275inj=Ln({providers:[i$(s$([jz,Hz]))],imports:[H$.forRoot(),Vz,o6,$z,Bz]})}return e})(),zz=(()=>{class e{constructor(t){this.injector=t}ngDoBootstrap(t){const{injector:r}=this,i=function dV(e,n){const t=function iV(e,n){return n.get(fa).resolveComponentFactory(e).inputs}(e,n.injector),r=n.strategyFactory||new lV(e,n.injector),i=function rV(e){const n={};return e.forEach(({propName:t,templateName:r,transform:i})=>{n[function XF(e){return e.replace(/[A-Z]/g,n=>`-${n.toLowerCase()}`)}(r)]=[t,i]}),n}(t);class s extends uV{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:l,transform:c})=>{if(!this.hasOwnProperty(l))return;const u=this[l];delete this[l],a.setInputValue(l,u,c)})}return this._ngElementStrategy}constructor(a){super(),this.injector=a}attributeChangedCallback(a,l,c,u){const[d,f]=i[a];this.ngElementStrategy.setInputValue(d,c,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 l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return t.forEach(({propName:o,transform:a})=>{Object.defineProperty(s.prototype,o,{get(){return this.ngElementStrategy.getInputValue(o)},set(l){this.ngElementStrategy.setInputValue(o,l,a)},configurable:!0,enumerable:!0})}),s}(qH,{injector:r});customElements.define("moto-payment-form",i)}static#e=this.\u0275fac=function(r){return new(r||e)(X(kt))};static#t=this.\u0275mod=Gn({type:e});static#n=this.\u0275inj=Ln({imports:[Lf,Uz]})}return e})();oF().bootstrapModule(zz).catch(e=>console.log(e))},634:function(nn,Oe,ue){"use strict";var xe=this&&this.__assign||function(){return xe=Object.assign||function(se){for(var Te,Ge=1,It=arguments.length;Ge<It;Ge++)for(var sn in Te=arguments[Ge])Object.prototype.hasOwnProperty.call(Te,sn)&&(se[sn]=Te[sn]);return se},xe.apply(this,arguments)},K=ue(990),Ae=ue(402),Se=ue(987),Ye=ue(250),ee=ue(507),Q={},ae={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"},St=[ae.VISA,ae.MASTERCARD,ae.AMERICAN_EXPRESS,ae.DINERS_CLUB,ae.DISCOVER,ae.JCB,ae.UNIONPAY,ae.MAESTRO,ae.ELO,ae.MIR,ae.HIPER,ae.HIPERCARD],vt=(0,ee.clone)(St);function dn(se){return Q[se]||K[se]}function qe(se,Te){void 0===Te&&(Te=!1);var Ge=vt.indexOf(se);if(!Te&&-1===Ge)throw new Error('"'+se+'" is not a supported card type.');return Ge}function Ve(se){var Te=[];if(!(0,Se.isValidInputType)(se))return Te;if(0===se.length)return function Qe(){return vt.map(function(se){return(0,ee.clone)(dn(se))})}();vt.forEach(function(It){var sn=dn(It);(0,Ae.addMatchingCardsToResults)(se,sn,Te)});var Ge=(0,Ye.findBestMatch)(Te);return Ge?[Ge]:Te}Ve.getTypeInfo=function(se){return(0,ee.clone)(dn(se))},Ve.removeCard=function(se){var Te=qe(se);vt.splice(Te,1)},Ve.addCard=function(se){var Te=qe(se.type,!0);Q[se.type]=se,-1===Te&&vt.push(se.type)},Ve.updateCard=function(se,Te){var Ge=Q[se]||K[se];if(!Ge)throw new Error('"'.concat(se,"\" is not a recognized type. Use `addCard` instead.'"));if(Te.type&&Ge.type!==Te.type)throw new Error("Cannot overwrite type parameter.");var It=(0,ee.clone)(Ge);It=xe(xe({},It),Te),Q[It.type]=It},Ve.changeOrder=function(se,Te){var Ge=qe(se);vt.splice(Ge,1),vt.splice(Te,0,se)},Ve.resetModifications=function(){vt=(0,ee.clone)(St),Q={}},Ve.types=ae,nn.exports=Ve},402:(nn,Oe,ue)=>{"use strict";Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.addMatchingCardsToResults=void 0;var xe=ue(507),K=ue(595);Oe.addMatchingCardsToResults=function Ae(Se,Ye,ee){var Q,ae;for(Q=0;Q<Ye.patterns.length;Q++){var St=Ye.patterns[Q];if((0,K.matches)(Se,St)){var vt=(0,xe.clone)(Ye);ae=Array.isArray(St)?String(St[0]).length:String(St).length,Se.length>=ae&&(vt.matchStrength=ae),ee.push(vt);break}}}},990:nn=>{"use strict";nn.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:(nn,Oe)=>{"use strict";Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.clone=void 0,Oe.clone=function ue(xe){return xe?JSON.parse(JSON.stringify(xe)):null}},250:(nn,Oe)=>{"use strict";Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.findBestMatch=void 0,Oe.findBestMatch=function xe(K){return function ue(K){var Ae=K.filter(function(Se){return Se.matchStrength}).length;return Ae>0&&Ae===K.length}(K)?K.reduce(function(Ae,Se){return!Ae||Number(Ae.matchStrength)<Number(Se.matchStrength)?Se:Ae}):null}},987:(nn,Oe)=>{"use strict";Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.isValidInputType=void 0,Oe.isValidInputType=function ue(xe){return"string"==typeof xe||xe instanceof String}},595:(nn,Oe)=>{"use strict";Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.matches=void 0,Oe.matches=function K(Ae,Se){return Array.isArray(Se)?function ue(Ae,Se,Ye){var ee=String(Se).length,Q=Ae.substr(0,ee),ae=parseInt(Q,10);return Se=parseInt(String(Se).substr(0,Q.length),10),Ye=parseInt(String(Ye).substr(0,Q.length),10),ae>=Se&&ae<=Ye}(Ae,Se[0],Se[1]):function xe(Ae,Se){return(Se=String(Se)).substring(0,Ae.length)===Ae.substring(0,Se.length)}(Ae,Se)}},557:()=>{!function(nn){function Oe(Q){for(var ae,St,vt=Q[0],dn=Q[1],Qe=0,qe=[];Qe<vt.length;Qe++)St=vt[Qe],Object.prototype.hasOwnProperty.call(xe,St)&&xe[St]&&qe.push(xe[St][0]),xe[St]=0;for(ae in dn)Object.prototype.hasOwnProperty.call(dn,ae)&&(nn[ae]=dn[ae]);for(ee&&ee(Q);qe.length;)qe.shift()()}var ue={},xe={0:0};function K(Q){if(ue[Q])return ue[Q].exports;var ae=ue[Q]={i:Q,l:!1,exports:{}};return nn[Q].call(ae.exports,ae,ae.exports,K),ae.l=!0,ae.exports}K.e=function(){return Promise.resolve()},K.m=nn,K.c=ue,K.d=function(Q,ae,St){K.o(Q,ae)||Object.defineProperty(Q,ae,{enumerable:!0,get:St})},K.r=function(Q){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(Q,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(Q,"__esModule",{value:!0})},K.t=function(Q,ae){if(1&ae&&(Q=K(Q)),8&ae||4&ae&&"object"==typeof Q&&Q&&Q.__esModule)return Q;var St=Object.create(null);if(K.r(St),Object.defineProperty(St,"default",{enumerable:!0,value:Q}),2&ae&&"string"!=typeof Q)for(var vt in Q)K.d(St,vt,function(dn){return Q[dn]}.bind(null,vt));return St},K.n=function(Q){var ae=Q&&Q.__esModule?function(){return Q.default}:function(){return Q};return K.d(ae,"a",ae),ae},K.o=function(Q,ae){return Object.prototype.hasOwnProperty.call(Q,ae)},K.p="",K.oe=function(Q){throw console.error(Q),Q};var Ae=window.webpackJsonp=window.webpackJsonp||[],Se=Ae.push.bind(Ae);Ae.push=Oe,Ae=Ae.slice();for(var Ye=0;Ye<Ae.length;Ye++)Oe(Ae[Ye]);var ee=Se;K(K.s=103)}({103:function(nn,Oe,ue){"use strict";ue.r(Oe),function(xe){var K=ue(14);function Ae(Qe,qe,Ve,se,Te,Ge,It){try{var sn=Qe[Ge](It),bn=sn.value}catch(bi){return void Ve(bi)}sn.done?qe(bn):Promise.resolve(bn).then(se,Te)}function Se(Qe){return function(){var qe=this,Ve=arguments;return new Promise(function(se,Te){var Ge=Qe.apply(qe,Ve);function It(bn){Ae(Ge,se,Te,It,sn,"next",bn)}function sn(bn){Ae(Ge,se,Te,It,sn,"throw",bn)}It(void 0)})}}function Ye(Qe,qe,Ve){return qe in Qe?Object.defineProperty(Qe,qe,{value:Ve,enumerable:!0,configurable:!0,writable:!0}):Qe[qe]=Ve,Qe}function ee(Qe,qe){return Ve=Qe,(se=ae(Qe,qe,"get")).get?se.get.call(Ve):se.value;var Ve,se}function ae(Qe,qe,Ve){if(!qe.has(Qe))throw new TypeError("attempted to "+Ve+" private field on non-instance");return qe.get(Qe)}function St(){var Qe="https://applepay.cdn-apple.com/jsapi/v1/apple-pay-sdk.js",Ve=document.createElement("div"),se=Qe.slice(0,Qe.lastIndexOf("/"))||"",Te=_=>{for(var m in Ve.setAttribute("data-"+_,""),Ve.dataset)return delete Ve.dataset[m],m},Ge=_=>{Ve.dataset[_]="";var m=Ve.attributes[0];return Ve.removeAttribute(m.name),m.name.slice(5)};function It(_){return se+_.replace(/^\.\//,"/")}function sn(){var _;try{return null===(_=window.ApplePaySession)||void 0===_?void 0:_.canMakePayments()}catch(m){return console.warn(m),!1}}var bn=!1;if(typeof window<"u"){var bi={get passive(){bn=!0}};window.addEventListener("testPassive",null,bi),window.removeEventListener("testPassive",null,bi)}var zn=typeof window<"u"&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),kn=[],dr=!1,de=-1,Ne=void 0,be=void 0,He=void 0,Re=function(_){return kn.some(function(m){return!(!m.options.allowTouchMove||!m.options.allowTouchMove(_))})},ke=function(_){var m=_||window.event;return!!Re(m.target)||m.touches.length>1||(m.preventDefault&&m.preventDefault(),!1)},_t=new WeakMap;class Ce extends HTMLElement{constructor(){super(),_t.set(this,{writable:!0,value:void 0}),Ye(this,"open",!1),Ye(this,"ready",!1),Ye(this,"url",We.url),Ye(this,"theme",We.theme),Ye(this,"locale",We.locale),this.close=this.close.bind(this)}connectedCallback(){var m=this;return Se(function*(){(function Q(Qe,qe,Ve){(function(se,Te,Ge){if(Te.set)Te.set.call(se,Ge);else{if(!Te.writable)throw new TypeError("attempted to set read only private field");Te.value=Ge}})(Qe,ae(Qe,qe,"set"),Ve)})(m,_t,m.attachShadow({mode:"closed"})),m.update(),ee(m,_t).addEventListener("click",b=>{b.preventDefault(),b.stopPropagation();var S=b.target.closest('a[href*="'.concat("#apple-pay-close",'"]'));S&&b.currentTarget.contains(S)&&m.close()}),m.addEventListener("click",b=>m.close())})()}show(){(function(_){if(_){if(!kn.some(function(S){return S.targetElement===_})){var b={targetElement:_,options:{}};kn=[].concat(function(S){if(Array.isArray(S)){for(var B=0,z=Array(S.length);B<S.length;B++)z[B]=S[B];return z}return Array.from(S)}(kn),[b]),zn?window.requestAnimationFrame(function(){if(void 0===be){be={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left};var S=window,B=S.scrollY,z=S.scrollX,he=S.innerHeight;document.body.style.position="fixed",document.body.style.top=-B,document.body.style.left=-z,setTimeout(function(){return window.requestAnimationFrame(function(){var ct=he-window.innerHeight;ct&&B>=he&&(document.body.style.top=-(B+ct))})},300)}}):function(){if(void 0===He)window,document;void 0===Ne&&(Ne=document.body.style.overflow,document.body.style.overflow="hidden")}(),zn&&(_.ontouchstart=function(S){1===S.targetTouches.length&&(de=S.targetTouches[0].clientY)},_.ontouchmove=function(S){var B,z,ct,he;1===S.targetTouches.length&&(z=_,he=(B=S).targetTouches[0].clientY-de,!Re(B.target)&&(z&&0===z.scrollTop&&he>0||(ct=z)&&ct.scrollHeight-ct.scrollTop<=ct.clientHeight&&he<0?ke(B):B.stopPropagation()))},dr||(document.addEventListener("touchmove",ke,bn?{passive:!1}:void 0),dr=!0))}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")})(this.ownerDocument.body||this.ownerDocument.documentElement),this.setAttribute("open",""),this.open=!0;var m=ee(this,_t).querySelector("iframe");this.ready||(this.ready=!0,this.accessibilityTranslations(),Promise.race([new Promise(b=>m.onload=b),new Promise((b,S)=>setTimeout(S,10800))]).then(()=>{},()=>(console.error("Modal loading timeout. Check connection or try again later."),this.close())))}close(){var _;(_=this.ownerDocument.body||this.ownerDocument.documentElement)?(kn=kn.filter(function(m){return m.targetElement!==_}),zn&&(_.ontouchstart=null,_.ontouchmove=null,dr&&0===kn.length&&(document.removeEventListener("touchmove",ke,bn?{passive:!1}:void 0),dr=!1)),zn?function(){if(void 0!==be){var m=-parseInt(document.body.style.top,10),b=-parseInt(document.body.style.left,10);document.body.style.position=be.position,document.body.style.top=be.top,document.body.style.left=be.left,window.scrollTo(b,m),be=void 0}}():(void 0!==He&&(document.body.style.paddingRight=He,He=void 0),void 0!==Ne&&(document.body.style.overflow=Ne,Ne=void 0))):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices."),this.removeAttribute("open"),this.open=!1}update(){ee(this,_t).innerHTML='<section class="dialog theme-'.concat(this.theme,'" role="dialog" aria-modal="true"><div class="content"><iframe src="').concat(this.url,'" frameBorder="0" scrolling="no" loading="lazy"></iframe></div><a class="close" data-accessibility="closeButton" href="').concat("#apple-pay-close",'"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M12.12,10l4.07-4.06a1.5,1.5,0,1,0-2.11-2.12L10,7.88,5.94,3.81A1.5,1.5,0,1,0,3.82,5.93L7.88,10,3.81,14.06a1.5,1.5,0,0,0,0,2.12,1.51,1.51,0,0,0,2.13,0L10,12.12l4.06,4.07a1.45,1.45,0,0,0,1.06.44,1.5,1.5,0,0,0,1.06-2.56Z"></path></svg></a></section><style>').concat(":host{font-family:var(--apple-pay-font-family, '-apple-system', 'SF Pro Display', 'SF Pro Icons', 'Helvetica Neue', 'Helvetica', 'Arial', 'sans-serif');position:fixed;overflow:scroll;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;visibility:hidden;background-color:rgba(50,50,50,.58);-ms-flex-pack:center;justify-content:center;padding:2rem 0;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;opacity:0;-webkit-transition:visibility 0s .28s, opacity .28s, z-index 0s .28s;transition:visibility 0s .28s, opacity .28s, z-index 0s .28s;z-index:-1}:host([open]){visibility:visible;opacity:1;-webkit-transition:visibility 0s, opacity .28s, z-index 0s 0s;transition:visibility 0s, opacity .28s, z-index 0s 0s;z-index:1728}.dialog{--apple-pay-modal-padding-top:22px;--apple-pay-modal-padding-bottom:22px;--apple-pay-modal-padding-inline:22px;border-radius:20px;border:none;background-color:white;padding:0;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;position:relative;margin:auto;opacity:0;-webkit-transform:scale(.97) translateZ(0);transform:scale(.97) translateZ(0);-webkit-transition:all .108s .054s;transition:all .108s .054s}:host([open]) .dialog{opacity:1;-webkit-transform:scale(1) translateZ(0);transform:scale(1) translateZ(0)}.dialog.theme-dark{background-color:#000}@media (prefers-color-scheme: dark){.dialog.theme-auto{background-color:#000}}.dialog .content{-webkit-margin-start:var(--apple-pay-modal-padding-inline);margin-inline-start:var(--apple-pay-modal-padding-inline);-webkit-margin-end:var(--apple-pay-modal-padding-inline);margin-inline-end:var(--apple-pay-modal-padding-inline);margin-top:var(--apple-pay-modal-padding-top);margin-bottom:var(--apple-pay-modal-padding-bottom);position:relative}.dialog iframe{border:none;width:320px;height:750px}@media (min-width: 376px){.dialog iframe{width:360px;height:720px}}.dialog footer{-webkit-padding-start:var(--apple-pay-modal-padding-inline);padding-inline-start:var(--apple-pay-modal-padding-inline);-webkit-padding-end:var(--apple-pay-modal-padding-inline);padding-inline-end:var(--apple-pay-modal-padding-inline);padding-top:var(--apple-pay-modal-padding-top);padding-bottom:var(--apple-pay-modal-padding-bottom);position:absolute;bottom:0;left:0;right:0}.dialog .close{position:absolute;top:20px;right:20px;width:36px;height:36px;border-radius:36px;display:-ms-flexbox;display:flex;background-color:rgb(232, 232, 237);color:rgba(0, 0, 0, 0.56);-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;outline:none}.dialog .close:hover{background-color:rgb(236, 236, 240);color:rgba(0, 0, 0, 0.72)}.dialog .close svg{fill:currentColor;width:20px;height:20px}.theme-dark.dialog .close{background-color:#333336;color:rgba(255,255,255,0.8)}.theme-dark.dialog .close:hover{background-color:#37373a;color:#fff}@media (prefers-color-scheme: dark){.theme-auto.dialog .close{background-color:#333336;color:rgba(255,255,255,0.8)}.theme-auto.dialog .close:hover{background-color:#37373a;color:#fff}}","</style>"),this.setAttribute("theme",this.theme)}accessibilityTranslations(){var m=this;Se(function*(){var b=yield(yield fetch(It("./merchandising-".concat(m.locale.split("-")[1].toLowerCase(),".json")))).json(),S=m.locale.split("-")[0],B=b.accessibility[S],z=/\{\{\s*([^\s]+)\s*\}\}/gi;ee(m,_t).querySelectorAll("[data-accessibility]").forEach(he=>{var ct=he.dataset.accessibility;he.ariaLabel=B[ct].replaceAll(z,(Yt,rr,si)=>rr),he.alt=B[ct].replaceAll(z,(Yt,rr,si)=>rr)})})()}static get observedAttributes(){return Pn}attributeChangedCallback(m,b,S){m=Te(m),null==S?delete this[m]:this[m]="true"===S||"false"!==S&&(""===S||S),S!==b&&this.update()}}var We={theme:"auto",locale:"en-US",url:""},Pn=Object.keys(We).map(Ge);Object.assign(Ce.prototype,We),customElements.define("apple-pay-merchandising-modal",Ce);var Zt=document.createElement("apple-pay-merchandising-modal");document.contains(Zt)||(document.body||document.documentElement).appendChild(Zt);var On,Cn,Kt,hn=function(_,m,b){if(!m.has(_))throw new TypeError("attempted to set private field on non-instance");return m.set(_,b),b},Xe=function(_,m){if(!m.has(_))throw new TypeError("attempted to get private field on non-instance");return m.get(_)},Wn={us:{text:{en:{badge:'<a class="info-circle" href="{{ modalUrl }}" style="display:block"><svg width="16" style="display:block" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><path d="M29.9475268,59.5867724 C46.1333288,59.5867724 59.534715,46.15661 59.534715,29.9998218 C59.534715,13.8140198 46.1043387,0.412871288 29.9185367,0.412871288 C13.7617248,0.412871288 0.36059406,13.8140198 0.36059406,29.9998218 C0.36059406,46.15661 13.7907743,59.5867724 29.9475268,59.5867724 Z M29.9475268,54.6556041 C16.256299,54.6556041 5.32073466,43.6910496 5.32073466,29.9998218 C5.32073466,16.3085941 16.2273089,5.34403961 29.9185367,5.34403961 C43.6097644,5.34403961 54.5743189,16.3085941 54.6035429,29.9998218 C54.6325367,43.6910496 43.6387545,54.6556041 29.9475268,54.6556041 Z M29.6864971,19.673406 C31.8039624,19.673406 33.4573486,17.9909703 33.4573486,15.873505 C33.4573486,13.7559802 31.8039624,12.073604 29.6864971,12.073604 C27.5979624,12.073604 25.9155862,13.7559802 25.9155862,15.873505 C25.9155862,17.9909703 27.5979624,19.673406 29.6864971,19.673406 Z M24.8713486,45.9535605 L36.6770912,45.9535605 C37.8663981,45.9535605 38.7946159,45.0833585 38.7946159,43.8940991 C38.7946159,42.7628318 37.8663981,41.863604 36.6770912,41.863604 L33.0802991,41.863604 L33.0802991,27.0991486 C33.0802991,25.5327921 32.2970911,24.4885545 30.8177644,24.4885545 L25.3644773,24.4885545 C24.1751703,24.4885545 23.2469525,25.3877228 23.2469525,26.5189901 C23.2469525,27.7082971 24.1751703,28.5784753 25.3644773,28.5784753 L28.4682,28.5784753 L28.4682,41.863604 L24.8713486,41.863604 C23.6820416,41.863604 22.7538238,42.7628318 22.7538238,43.8940991 C22.7538238,45.0833585 23.6820416,45.9535605 24.8713486,45.9535605 Z" transform="translate(2 2)"></path></svg></a>',plain:'Pay in full or use Apple Pay Later to&nbsp;make {{ frequency }}&nbsp;interest\u2011free payments of&nbsp;{{ paymentsAmount }}. <a href="{{ modalUrl }}"><strong>Learn&nbsp;more</strong></a>',price:'Or {{ frequency }}&nbsp;interest\u2011free payments of&nbsp;{{ paymentsAmount }} with Apple Pay Later. <a href="{{ modalUrl }}"><strong>Learn&nbsp;more</strong></a>',checkout:'Pay in full or use Apple Pay Later to&nbsp;make {{ frequency }}&nbsp;interest\u2011free payments of&nbsp;{{ paymentsAmount }}. <a href="{{ modalUrl }}"><strong>Learn&nbsp;more</strong></a>'}},legal:{default:"No fees and no impact to credit fees eligibility.\nPayment options are subject to eligibility checks and approvals at checkout.\nLoans are issued by Apple Financing LLC, NMLS #2154940, and may not be available in all states.\nCA Residents: Loans issued by Apple Financing LLC are made or arranged pursuant to a California Finance Lenders Law license.",learnMore:"Apple Pay Later loans are subject to eligibility checks and approvals, are issued by Apple Financing LLC, NMLS #2154940, and may not be available in all states. CA residents: Loans are made or arranged pursuant to a California Finance Lenders Law license."},nativeContent:{en:{promoText:"Pay in full or use Apple Pay Later to make {frequency} interest\u2011free payments of {paymentsAmount}."}},modal:{en:{"large-title":"Apple Pay Later",intro:"Pay purchases in {{ frequency }} interest-free payments every 2 weeks. Available to use everywhere Apple Pay is accepted.",payments:"Example payments for",amount:"{{ paymentsAmount }} every 2 weeks",frequency:"{{ frequency }} payments",today:'Due Today <span style="float: right;">{{ paymentsAmount }}</span>',"2weeks":'In 2 Weeks <span style="float: right;">{{ paymentsAmount }}</span>',"4weeks":'In 4 Weeks <span style="float: right;">{{ paymentsAmount }}</span>',"6weeks":'In 6 Weeks <span style="float: right;">{{ lastPaymentAmount }}</span>',total:"Total Cost {{ amount }}",interest:"No Interest"}},learnMore:{en:{intro:"Pay 4 interest-free payments, every 2 weeks.",headline1:"Check out with Apple Pay",subheadline1:"Check out with Apple Pay online and select the Pay Later option to review your available payment plan.",headline2:"No Fees or Impact to Credit",subheadline2:"No fees or funny stuff. Checking your eligibility will never impact your credit.",headline3:"Pay 25% today",subheadline3:"Your first payment is due at checkout, the rest every 2 weeks for 6 weeks.",headline4:"Manage in Wallet",subheadline4:"After your purchase, you can relax and manage your remaining payments right in the Wallet app."}},accessibility:{en:{applePayLaterLogo:"Apple Pay Later",applePayIcon:"Apple Pay icon",priceTagIcon:"Price Tag icon",dollarSignIcon:"Dollar Sign icon",walletIcon:"Wallet icon",applePayLaterAppLogo:"Apple Pay Later Icon",closeButton:"Close Button"}},presets:{badge:{logoType:"pay_later",logoStyle:"none",logoAlign:"left"},plain:{logoType:"pay",logoAlign:"right",logoStyle:"black"},checkout:{logoType:"pay",logoAlign:"left",logoStyle:"white"},price:{logoType:"pay",logoAlign:"right",logoStyle:"black"},custom:{logoType:"none",logoAlign:"left",logoStyle:"none"}},currencyCode:"USD",method:{bnpl:{minAmount:50,maxAmount:1e3,frequency:4}}}},Er={apple_pay_later_logo_black:'<svg xmlns="http://www.w3.org/2000/svg" width="476.234" height="99.409" viewBox="0 0 476.234 99.409" style="enable-background:new 0 0 476.234 99.409" xml:space="preserve"><path d="M105.946 5.505c14.176 0 24.048 9.771 24.048 23.998 0 14.277-10.074 24.1-24.402 24.1H89.896v24.96h-11.34V5.505h27.39zm-16.05 38.579h13.012c9.873 0 15.492-5.315 15.492-14.53 0-9.214-5.619-14.479-15.441-14.479H89.896v29.009zm43.164 19.341c0-9.316 7.139-15.037 19.796-15.746l14.581-.86v-4.101c0-5.924-4-9.468-10.683-9.468-6.329 0-10.278 3.037-11.24 7.797h-10.328c.607-9.62 8.81-16.708 21.973-16.708 12.911 0 21.163 6.835 21.163 17.518v36.706h-10.48v-8.759h-.253c-3.088 5.924-9.821 9.67-16.809 9.67-10.429 0-17.72-6.481-17.72-16.049zm34.377-4.81v-4.202l-13.113.81c-6.531.456-10.227 3.342-10.227 7.898 0 4.657 3.848 7.695 9.721 7.695 7.645 0 13.619-5.265 13.619-12.201zm20.779 39.541v-8.86c.81.202 2.632.202 3.544.202 5.062 0 7.797-2.126 9.467-7.594 0-.102.963-3.24.963-3.291l-19.24-53.312h11.847l13.468 43.339h.202l13.468-43.339h11.543L213.53 81.347c-4.556 12.911-9.821 17.062-20.858 17.062-.912 0-3.647-.101-4.456-.253zm112.339-19.594h-45.363V5.505h11.341V68.74h34.022v9.822zm4.937-15.137c0-9.316 7.139-15.037 19.796-15.746l14.581-.86v-4.101c0-5.924-4-9.468-10.683-9.468-6.329 0-10.278 3.037-11.24 7.797h-10.328c.607-9.62 8.81-16.708 21.973-16.708 12.911 0 21.163 6.835 21.163 17.518v36.706h-10.48v-8.759h-.253c-3.088 5.924-9.821 9.67-16.809 9.67-10.43 0-17.72-6.481-17.72-16.049zm34.377-4.81v-4.202l-13.113.81c-6.531.456-10.227 3.342-10.227 7.898 0 4.657 3.848 7.695 9.721 7.695 7.644 0 13.619-5.265 13.619-12.201zm35.649-45.921V25.3h10.125v8.658h-10.125v29.364c0 4.607 2.024 6.683 6.48 6.683 1.113 0 2.886-.101 3.594-.253v8.657c-1.215.305-3.645.507-6.075.507-10.784 0-14.986-4.101-14.986-14.379V33.959h-7.746v-8.658h7.746V12.694h10.987zm63.409 50.224c-1.519 9.721-10.733 16.657-22.935 16.657-15.645 0-25.111-10.581-25.111-27.391 0-16.707 9.619-27.846 24.656-27.846 14.783 0 23.997 10.43 23.997 26.58v3.747h-37.616v.658c0 9.265 5.568 15.391 14.327 15.391 6.228 0 10.835-3.139 12.303-7.797h10.379zM401.968 47.02h26.631c-.253-8.15-5.417-13.872-13.062-13.872s-13.012 5.823-13.569 13.872zm46.028-21.719h10.43v9.062h.253c1.772-6.227 6.531-9.923 12.81-9.923 1.569 0 2.937.253 3.746.405v10.176c-.86-.354-2.784-.607-4.911-.607-7.037 0-11.391 4.709-11.391 12.252v31.896h-10.937V25.301zm-400.1-6.172c-6.518-.482-12.048 3.641-15.133 3.641-3.13 0-7.956-3.537-13.074-3.44-6.719.098-12.912 3.91-16.377 9.926C-3.667 41.369 1.53 59.32 8.328 69.15c3.325 4.803 7.291 10.216 12.5 10.019 5.014-.197 6.911-3.243 12.972-3.243 6.057 0 7.766 3.243 13.068 3.146 5.397-.1 8.816-4.903 12.117-9.733 3.82-5.575 5.389-10.973 5.482-11.259-.119-.045-10.52-4.036-10.624-16.019-.094-10.018 8.177-14.834 8.553-15.066-4.693-6.914-11.945-7.677-14.5-7.866zm-4.022-6.489C46.642 9.294 48.505 4.634 47.992 0c-3.984.158-8.803 2.654-11.661 5.998-2.559 2.962-4.807 7.706-4.196 12.246 4.441.342 8.973-2.257 11.739-5.604z"/></svg>',apple_pay_later_mark_black:'<svg viewBox="0 0 299 106" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M283.698,0 L14.823,0 C14.257,0 13.69,0 13.125,0.003 C12.648,0.007 12.172,0.012 11.695,0.025 C10.656,0.053 9.608,0.115 8.582,0.299 C7.55304935,0.475289397 6.5561053,0.803896713 5.624,1.274 C3.75016438,2.22707876 2.22707876,3.75016438 1.274,5.624 C0.803057197,6.55646163 0.474412543,7.5541931 0.299,8.584 C0.113,9.611 0.052,10.658 0.024,11.696 C0.011,12.173 0.005,12.649 0,13.126 C0,13.69 0,14.256 0,14.823 L0,91.141 C0,91.708 0,92.273 0,92.84 C0.005,93.316 0.011,93.793 0.024,94.27 C0.052,95.306 0.114,96.354 0.299,97.38 C0.474052532,98.4097641 0.802361489,99.4074997 1.273,100.34 C1.74618424,101.271314 2.36382962,102.121842 3.103,102.86 C3.84090499,103.599466 4.69148278,104.217148 5.623,104.69 C6.57,105.173 7.54,105.48 8.583,105.667 C9.608,105.85 10.656,105.912 11.695,105.94 C12.172,105.951 12.648,105.958 13.125,105.96 C13.69,105.964 14.257,105.964 14.823,105.964 L283.698,105.964 C284.263,105.964 284.83,105.964 285.395,105.96 C285.87205,105.957616 286.349069,105.950949 286.826,105.94 C287.863,105.912 288.911,105.85 289.939,105.667 C290.968174,105.490543 291.96519,105.161238 292.897,104.69 C294.769895,103.735625 296.292625,102.212895 297.247,100.34 C297.73,99.393 298.036,98.423 298.221,97.38 C298.407,96.354 298.467,95.306 298.495,94.27 C298.508,93.793 298.515,93.316 298.517,92.84 C298.521,92.273 298.521,91.708 298.521,91.141 L298.521,14.824 C298.521,14.257 298.521,13.691 298.517,13.125 C298.515064,12.6485989 298.50773,12.172235 298.495,11.696 C298.467,10.658 298.407,9.611 298.221,8.584 C298.046831,7.55401695 297.71848,6.55615176 297.247,5.624 C296.293413,3.75053315 294.770467,2.22758663 292.897,1.274 C291.964782,0.80438048 290.967861,0.476117852 289.939,0.3 C288.911,0.115 287.863,0.054 286.826,0.026 C286.349085,0.0138870152 285.872062,0.00655331365 285.395,0.004 C284.83,0 284.263,0 283.698,0 Z" id="Outline" fill="rgba(255,255,255,.075)"></path><path d="M285.37,3.535 C285.822,3.538 286.275,3.543 286.73,3.555 C287.522,3.577 288.449,3.62 289.313,3.775 C290.063,3.91 290.693,4.115 291.297,4.423 C292.505746,5.03755904 293.487734,6.0205978 294.101,7.23 C294.407,7.83 294.611,8.456 294.746,9.213 C294.9,10.067 294.943,10.996 294.964,11.793 C294.977,12.243 294.983,12.693 294.984,13.153 C294.989,13.71 294.989,14.266 294.989,14.824 L294.989,91.142 C294.989,91.7 294.989,92.256 294.985,92.824 C294.983,93.274 294.977,93.724 294.965,94.174 C294.943,94.97 294.9,95.899 294.744,96.763 C294.630594,97.4502806 294.413097,98.1162614 294.099,98.738 C293.484409,99.9478082 292.501027,100.93084 291.291,101.545 C290.691,101.851 290.063,102.057 289.32,102.19 C288.438,102.347 287.473,102.39 286.746,102.41 C286.289,102.42 285.834,102.427 285.367,102.429 C284.812,102.433 284.254,102.433 283.698,102.433 L14.801,102.433 C14.251,102.433 13.701,102.433 13.141,102.429 C12.6909551,102.427046 12.240937,102.421046 11.791,102.411 C11.047,102.391 10.081,102.347 9.207,102.191 C8.51598039,102.075842 7.84638728,101.85669 7.221,101.541 C6.62111744,101.236271 6.07359362,100.837949 5.599,100.361 C5.12290857,99.8857571 4.72529217,99.3379376 4.421,98.738 C4.10640097,98.1127736 3.88826296,97.4435248 3.774,96.753 C3.619,95.89 3.576,94.965 3.554,94.175 C3.54269765,93.7234137 3.53603063,93.2717232 3.532,92.82 L3.532,91.493 L3.532,14.474 L3.532,13.149 C3.537,12.696 3.542,12.244 3.554,11.792 C3.576,11 3.619,10.075 3.776,9.205 C3.89017322,8.51586104 4.10797216,7.84796678 4.422,7.224 C4.726,6.626 5.122,6.08 5.602,5.602 C6.07772872,5.1254978 6.62583457,4.72724354 7.226,4.422 C7.8498075,4.10823092 8.5172811,3.89012212 9.206,3.775 C10.071,3.62 10.998,3.577 11.792,3.555 C12.244,3.543 12.697,3.538 13.146,3.535 L14.823,3.532 L283.698,3.532 L285.37,3.535 Z" id="Bg" fill="#000"></path><path d="M45.186,35.64 C46.603,33.868 47.566,31.488 47.312,29.055 C45.237,29.159 42.705,30.425 41.239,32.198 C39.923,33.718 38.759,36.198 39.062,38.528 C41.392,38.73 43.718,37.363 45.186,35.641 M47.285,38.983 C43.903,38.781 41.027,40.902 39.412,40.902 C37.796,40.902 35.322,39.084 32.648,39.133 C29.166,39.184 25.935,41.153 24.168,44.283 C20.534,50.547 23.209,59.839 26.743,64.94 C28.46,67.464 30.528,70.243 33.253,70.143 C35.828,70.042 36.837,68.475 39.967,68.475 C43.095,68.475 44.004,70.143 46.73,70.092 C49.557,70.042 51.324,67.567 53.04,65.041 C55.009,62.164 55.815,59.386 55.865,59.233 C55.815,59.183 50.415,57.111 50.365,50.9 C50.314,45.699 54.605,43.225 54.806,43.072 C52.383,39.488 48.597,39.084 47.286,38.982 M76.734,31.944 C84.084,31.944 89.204,37.011 89.204,44.388 C89.204,51.792 83.979,56.885 76.55,56.885 L68.41,56.885 L68.41,69.828 L62.53,69.828 L62.53,31.944 L76.734,31.944 Z M68.41,51.949 L75.157,51.949 C80.277,51.949 83.191,49.193 83.191,44.415 C83.191,39.637 80.277,36.906 75.183,36.906 L68.41,36.906 L68.41,51.95 L68.41,51.949 Z M90.74,61.979 C90.74,57.148 94.442,54.181 101.006,53.813 L108.566,53.367 L108.566,51.241 C108.566,48.169 106.492,46.331 103.027,46.331 C99.745,46.331 97.697,47.906 97.199,50.374 L91.843,50.374 C92.158,45.386 96.411,41.71 103.237,41.71 C109.932,41.71 114.211,45.255 114.211,50.794 L114.211,69.828 L108.776,69.828 L108.776,65.286 L108.646,65.286 C107.044,68.358 103.552,70.301 99.929,70.301 C94.521,70.301 90.74,66.941 90.74,61.979 L90.74,61.979 Z M108.566,59.485 L108.566,57.305 L101.766,57.725 C98.38,57.962 96.463,59.458 96.463,61.821 C96.463,64.236 98.459,65.811 101.504,65.811 C105.468,65.811 108.566,63.081 108.566,59.485 L108.566,59.485 Z M119.342,79.989 L119.342,75.394 C119.761,75.499 120.706,75.499 121.179,75.499 C123.804,75.499 125.222,74.397 126.088,71.561 C126.088,71.509 126.588,69.881 126.588,69.855 L116.611,42.209 L122.754,42.209 L129.738,64.683 L129.842,64.683 L136.827,42.209 L142.812,42.209 L132.468,71.272 C130.106,77.967 127.375,80.12 121.652,80.12 C121.179,80.12 119.761,80.067 119.342,79.989 L119.342,79.989 Z" id="Pay" fill="#fff"></path><path d="M181.896484,70 L181.896484,64.7792969 L164.204102,64.7792969 L164.204102,31.9521484 L158.113281,31.9521484 L158.113281,70 L181.896484,70 Z M194.369219,70.5009766 C198.113359,70.5009766 201.224688,68.734375 202.859453,65.8076172 L203.149492,65.8076172 L203.149492,70 L209.003008,70 L209.003008,50.6201172 C209.003008,44.8193359 204.784258,41.2333984 197.770586,41.2333984 C191.020586,41.2333984 186.696367,44.6347656 186.142656,49.4072266 L186.116289,49.6445312 L191.706133,49.6445312 L191.7325,49.4863281 C192.312578,47.4033203 194.342852,46.0585938 197.533281,46.0585938 C201.171953,46.0585938 203.149492,47.8251953 203.149492,50.8574219 L203.149492,53.1513672 L195.555742,53.5996094 C188.805742,53.9951172 185.008867,56.9746094 185.008867,61.9580078 L185.008867,62.0107422 C185.008867,67.1259766 188.884844,70.5009766 194.369219,70.5009766 Z M196.003984,65.8339844 C192.971758,65.8339844 190.88875,64.3046875 190.88875,61.7998047 L190.88875,61.7470703 C190.88875,59.3212891 192.708086,57.8974609 196.346758,57.6601562 L203.149492,57.2382812 L203.149492,59.5322266 C203.149492,63.1181641 200.090898,65.8339844 196.003984,65.8339844 Z M225.06168,70.3691406 C226.221836,70.3691406 227.302891,70.2373047 228.120273,70.1054688 L228.120273,65.5175781 C227.513828,65.5703125 227.012852,65.6230469 226.248203,65.6230469 C223.637852,65.6230469 222.451328,64.5683594 222.451328,61.6416016 L222.451328,46.4013672 L228.120273,46.4013672 L228.120273,41.7871094 L222.451328,41.7871094 L222.451328,34.5888672 L216.439609,34.5888672 L216.439609,41.7871094 L212.220859,41.7871094 L212.220859,46.4013672 L216.439609,46.4013672 L216.439609,62.5380859 C216.439609,68.0751953 219.102695,70.3691406 225.06168,70.3691406 Z M244.23168,70.5537109 C251.377187,70.5537109 255.464102,66.3876953 256.386953,62.3007812 L256.439687,62.0634766 L250.823477,62.0634766 L250.744375,62.2480469 C250.058828,64.0146484 247.870352,65.78125 244.363516,65.78125 C239.801992,65.78125 236.901602,62.6962891 236.796133,57.3964844 L256.729727,57.3964844 L256.729727,55.3925781 C256.729727,46.9023438 251.851797,41.2333984 243.941641,41.2333984 C236.005117,41.2333984 230.889883,47.1132812 230.889883,55.9462891 L230.889883,55.9726562 C230.889883,64.9111328 235.926016,70.5537109 244.23168,70.5537109 Z M250.928945,53.2568359 L236.875234,53.2568359 C237.376211,48.5371094 240.223867,46.0058594 243.968008,46.0058594 C247.738516,46.0058594 250.480703,48.3789062 250.928945,53.2568359 Z M267.093086,70 L267.093086,53.2568359 C267.093086,49.1171875 269.703438,46.5859375 273.71125,46.5859375 C274.818672,46.5859375 275.820625,46.7177734 276.585273,46.9023438 L276.585273,41.4970703 C276.05793,41.3916016 275.187813,41.2597656 274.317695,41.2597656 C270.810859,41.2597656 268.332344,43.1582031 267.356758,46.3222656 L267.093086,46.3222656 L267.093086,41.7871094 L261.186836,41.7871094 L261.186836,70 L267.093086,70 Z" id="Later" fill="#fff"></path></svg>',apple_pay_later_mark_none:'<svg viewBox="20 0 260 106" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M45.186,35.64 C46.603,33.868 47.566,31.488 47.312,29.055 C45.237,29.159 42.705,30.425 41.239,32.198 C39.923,33.718 38.759,36.198 39.062,38.528 C41.392,38.73 43.718,37.363 45.186,35.641 M47.285,38.983 C43.903,38.781 41.027,40.902 39.412,40.902 C37.796,40.902 35.322,39.084 32.648,39.133 C29.166,39.184 25.935,41.153 24.168,44.283 C20.534,50.547 23.209,59.839 26.743,64.94 C28.46,67.464 30.528,70.243 33.253,70.143 C35.828,70.042 36.837,68.475 39.967,68.475 C43.095,68.475 44.004,70.143 46.73,70.092 C49.557,70.042 51.324,67.567 53.04,65.041 C55.009,62.164 55.815,59.386 55.865,59.233 C55.815,59.183 50.415,57.111 50.365,50.9 C50.314,45.699 54.605,43.225 54.806,43.072 C52.383,39.488 48.597,39.084 47.286,38.982 M76.734,31.944 C84.084,31.944 89.204,37.011 89.204,44.388 C89.204,51.792 83.979,56.885 76.55,56.885 L68.41,56.885 L68.41,69.828 L62.53,69.828 L62.53,31.944 L76.734,31.944 Z M68.41,51.949 L75.157,51.949 C80.277,51.949 83.191,49.193 83.191,44.415 C83.191,39.637 80.277,36.906 75.183,36.906 L68.41,36.906 L68.41,51.95 L68.41,51.949 Z M90.74,61.979 C90.74,57.148 94.442,54.181 101.006,53.813 L108.566,53.367 L108.566,51.241 C108.566,48.169 106.492,46.331 103.027,46.331 C99.745,46.331 97.697,47.906 97.199,50.374 L91.843,50.374 C92.158,45.386 96.411,41.71 103.237,41.71 C109.932,41.71 114.211,45.255 114.211,50.794 L114.211,69.828 L108.776,69.828 L108.776,65.286 L108.646,65.286 C107.044,68.358 103.552,70.301 99.929,70.301 C94.521,70.301 90.74,66.941 90.74,61.979 L90.74,61.979 Z M108.566,59.485 L108.566,57.305 L101.766,57.725 C98.38,57.962 96.463,59.458 96.463,61.821 C96.463,64.236 98.459,65.811 101.504,65.811 C105.468,65.811 108.566,63.081 108.566,59.485 L108.566,59.485 Z M119.342,79.989 L119.342,75.394 C119.761,75.499 120.706,75.499 121.179,75.499 C123.804,75.499 125.222,74.397 126.088,71.561 C126.088,71.509 126.588,69.881 126.588,69.855 L116.611,42.209 L122.754,42.209 L129.738,64.683 L129.842,64.683 L136.827,42.209 L142.812,42.209 L132.468,71.272 C130.106,77.967 127.375,80.12 121.652,80.12 C121.179,80.12 119.761,80.067 119.342,79.989 L119.342,79.989 Z" id="Pay"></path><path d="M181.896484,70 L181.896484,64.7792969 L164.204102,64.7792969 L164.204102,31.9521484 L158.113281,31.9521484 L158.113281,70 L181.896484,70 Z M194.369219,70.5009766 C198.113359,70.5009766 201.224688,68.734375 202.859453,65.8076172 L203.149492,65.8076172 L203.149492,70 L209.003008,70 L209.003008,50.6201172 C209.003008,44.8193359 204.784258,41.2333984 197.770586,41.2333984 C191.020586,41.2333984 186.696367,44.6347656 186.142656,49.4072266 L186.116289,49.6445312 L191.706133,49.6445312 L191.7325,49.4863281 C192.312578,47.4033203 194.342852,46.0585938 197.533281,46.0585938 C201.171953,46.0585938 203.149492,47.8251953 203.149492,50.8574219 L203.149492,53.1513672 L195.555742,53.5996094 C188.805742,53.9951172 185.008867,56.9746094 185.008867,61.9580078 L185.008867,62.0107422 C185.008867,67.1259766 188.884844,70.5009766 194.369219,70.5009766 Z M196.003984,65.8339844 C192.971758,65.8339844 190.88875,64.3046875 190.88875,61.7998047 L190.88875,61.7470703 C190.88875,59.3212891 192.708086,57.8974609 196.346758,57.6601562 L203.149492,57.2382812 L203.149492,59.5322266 C203.149492,63.1181641 200.090898,65.8339844 196.003984,65.8339844 Z M225.06168,70.3691406 C226.221836,70.3691406 227.302891,70.2373047 228.120273,70.1054688 L228.120273,65.5175781 C227.513828,65.5703125 227.012852,65.6230469 226.248203,65.6230469 C223.637852,65.6230469 222.451328,64.5683594 222.451328,61.6416016 L222.451328,46.4013672 L228.120273,46.4013672 L228.120273,41.7871094 L222.451328,41.7871094 L222.451328,34.5888672 L216.439609,34.5888672 L216.439609,41.7871094 L212.220859,41.7871094 L212.220859,46.4013672 L216.439609,46.4013672 L216.439609,62.5380859 C216.439609,68.0751953 219.102695,70.3691406 225.06168,70.3691406 Z M244.23168,70.5537109 C251.377187,70.5537109 255.464102,66.3876953 256.386953,62.3007812 L256.439687,62.0634766 L250.823477,62.0634766 L250.744375,62.2480469 C250.058828,64.0146484 247.870352,65.78125 244.363516,65.78125 C239.801992,65.78125 236.901602,62.6962891 236.796133,57.3964844 L256.729727,57.3964844 L256.729727,55.3925781 C256.729727,46.9023438 251.851797,41.2333984 243.941641,41.2333984 C236.005117,41.2333984 230.889883,47.1132812 230.889883,55.9462891 L230.889883,55.9726562 C230.889883,64.9111328 235.926016,70.5537109 244.23168,70.5537109 Z M250.928945,53.2568359 L236.875234,53.2568359 C237.376211,48.5371094 240.223867,46.0058594 243.968008,46.0058594 C247.738516,46.0058594 250.480703,48.3789062 250.928945,53.2568359 Z M267.093086,70 L267.093086,53.2568359 C267.093086,49.1171875 269.703438,46.5859375 273.71125,46.5859375 C274.818672,46.5859375 275.820625,46.7177734 276.585273,46.9023438 L276.585273,41.4970703 C276.05793,41.3916016 275.187813,41.2597656 274.317695,41.2597656 C270.810859,41.2597656 268.332344,43.1582031 267.356758,46.3222656 L267.093086,46.3222656 L267.093086,41.7871094 L261.186836,41.7871094 L261.186836,70 L267.093086,70 Z" id="Later"></path></svg>',apple_pay_later_mark_white_outline:'<svg viewBox="0 0 299 106" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M283.698,0 L14.823,0 C14.257,0 13.69,0 13.125,0.003 C12.648,0.007 12.172,0.012 11.695,0.025 C10.656,0.053 9.608,0.115 8.582,0.299 C7.55304935,0.475289397 6.5561053,0.803896713 5.624,1.274 C3.75016438,2.22707876 2.22707876,3.75016438 1.274,5.624 C0.803057197,6.55646163 0.474412543,7.5541931 0.299,8.584 C0.113,9.611 0.052,10.658 0.024,11.696 C0.011,12.173 0.005,12.649 0,13.126 C0,13.69 0,14.256 0,14.823 L0,91.141 C0,91.708 0,92.273 0,92.84 C0.005,93.316 0.011,93.793 0.024,94.27 C0.052,95.306 0.114,96.354 0.299,97.38 C0.474052532,98.4097641 0.802361489,99.4074997 1.273,100.34 C1.74618424,101.271314 2.36382962,102.121842 3.103,102.86 C3.84090499,103.599466 4.69148278,104.217148 5.623,104.69 C6.57,105.173 7.54,105.48 8.583,105.667 C9.608,105.85 10.656,105.912 11.695,105.94 C12.172,105.951 12.648,105.958 13.125,105.96 C13.69,105.964 14.257,105.964 14.823,105.964 L283.698,105.964 C284.263,105.964 284.83,105.964 285.395,105.96 C285.87205,105.957616 286.349069,105.950949 286.826,105.94 C287.863,105.912 288.911,105.85 289.939,105.667 C290.968174,105.490543 291.96519,105.161238 292.897,104.69 C294.769895,103.735625 296.292625,102.212895 297.247,100.34 C297.73,99.393 298.036,98.423 298.221,97.38 C298.407,96.354 298.467,95.306 298.495,94.27 C298.508,93.793 298.515,93.316 298.517,92.84 C298.521,92.273 298.521,91.708 298.521,91.141 L298.521,14.824 C298.521,14.257 298.521,13.691 298.517,13.125 C298.515064,12.6485989 298.50773,12.172235 298.495,11.696 C298.467,10.658 298.407,9.611 298.221,8.584 C298.046831,7.55401695 297.71848,6.55615176 297.247,5.624 C296.293413,3.75053315 294.770467,2.22758663 292.897,1.274 C291.964782,0.80438048 290.967861,0.476117852 289.939,0.3 C288.911,0.115 287.863,0.054 286.826,0.026 C286.349085,0.0138870152 285.872062,0.00655331365 285.395,0.004 C284.83,0 284.263,0 283.698,0 Z" id="Outline" fill="#000000"></path><path d="M285.37,3.535 C285.822,3.538 286.275,3.543 286.73,3.555 C287.522,3.577 288.449,3.62 289.313,3.775 C290.063,3.91 290.693,4.115 291.297,4.423 C292.505746,5.03755904 293.487734,6.0205978 294.101,7.23 C294.407,7.83 294.611,8.456 294.746,9.213 C294.9,10.067 294.943,10.996 294.964,11.793 C294.977,12.243 294.983,12.693 294.984,13.153 C294.989,13.71 294.989,14.266 294.989,14.824 L294.989,91.142 C294.989,91.7 294.989,92.256 294.985,92.824 C294.983,93.274 294.977,93.724 294.965,94.174 C294.943,94.97 294.9,95.899 294.744,96.763 C294.630594,97.4502806 294.413097,98.1162614 294.099,98.738 C293.484409,99.9478082 292.501027,100.93084 291.291,101.545 C290.691,101.851 290.063,102.057 289.32,102.19 C288.438,102.347 287.473,102.39 286.746,102.41 C286.289,102.42 285.834,102.427 285.367,102.429 C284.812,102.433 284.254,102.433 283.698,102.433 L14.801,102.433 C14.251,102.433 13.701,102.433 13.141,102.429 C12.6909551,102.427046 12.240937,102.421046 11.791,102.411 C11.047,102.391 10.081,102.347 9.207,102.191 C8.51598039,102.075842 7.84638728,101.85669 7.221,101.541 C6.62111744,101.236271 6.07359362,100.837949 5.599,100.361 C5.12290857,99.8857571 4.72529217,99.3379376 4.421,98.738 C4.10640097,98.1127736 3.88826296,97.4435248 3.774,96.753 C3.619,95.89 3.576,94.965 3.554,94.175 C3.54269765,93.7234137 3.53603063,93.2717232 3.532,92.82 L3.532,91.493 L3.532,14.474 L3.532,13.149 C3.537,12.696 3.542,12.244 3.554,11.792 C3.576,11 3.619,10.075 3.776,9.205 C3.89017322,8.51586104 4.10797216,7.84796678 4.422,7.224 C4.726,6.626 5.122,6.08 5.602,5.602 C6.07772872,5.1254978 6.62583457,4.72724354 7.226,4.422 C7.8498075,4.10823092 8.5172811,3.89012212 9.206,3.775 C10.071,3.62 10.998,3.577 11.792,3.555 C12.244,3.543 12.697,3.538 13.146,3.535 L14.823,3.532 L283.698,3.532 L285.37,3.535 Z" id="Bg" fill="#FFFFFF"></path><path d="M45.186,35.64 C46.603,33.868 47.566,31.488 47.312,29.055 C45.237,29.159 42.705,30.425 41.239,32.198 C39.923,33.718 38.759,36.198 39.062,38.528 C41.392,38.73 43.718,37.363 45.186,35.641 M47.285,38.983 C43.903,38.781 41.027,40.902 39.412,40.902 C37.796,40.902 35.322,39.084 32.648,39.133 C29.166,39.184 25.935,41.153 24.168,44.283 C20.534,50.547 23.209,59.839 26.743,64.94 C28.46,67.464 30.528,70.243 33.253,70.143 C35.828,70.042 36.837,68.475 39.967,68.475 C43.095,68.475 44.004,70.143 46.73,70.092 C49.557,70.042 51.324,67.567 53.04,65.041 C55.009,62.164 55.815,59.386 55.865,59.233 C55.815,59.183 50.415,57.111 50.365,50.9 C50.314,45.699 54.605,43.225 54.806,43.072 C52.383,39.488 48.597,39.084 47.286,38.982 M76.734,31.944 C84.084,31.944 89.204,37.011 89.204,44.388 C89.204,51.792 83.979,56.885 76.55,56.885 L68.41,56.885 L68.41,69.828 L62.53,69.828 L62.53,31.944 L76.734,31.944 Z M68.41,51.949 L75.157,51.949 C80.277,51.949 83.191,49.193 83.191,44.415 C83.191,39.637 80.277,36.906 75.183,36.906 L68.41,36.906 L68.41,51.95 L68.41,51.949 Z M90.74,61.979 C90.74,57.148 94.442,54.181 101.006,53.813 L108.566,53.367 L108.566,51.241 C108.566,48.169 106.492,46.331 103.027,46.331 C99.745,46.331 97.697,47.906 97.199,50.374 L91.843,50.374 C92.158,45.386 96.411,41.71 103.237,41.71 C109.932,41.71 114.211,45.255 114.211,50.794 L114.211,69.828 L108.776,69.828 L108.776,65.286 L108.646,65.286 C107.044,68.358 103.552,70.301 99.929,70.301 C94.521,70.301 90.74,66.941 90.74,61.979 L90.74,61.979 Z M108.566,59.485 L108.566,57.305 L101.766,57.725 C98.38,57.962 96.463,59.458 96.463,61.821 C96.463,64.236 98.459,65.811 101.504,65.811 C105.468,65.811 108.566,63.081 108.566,59.485 L108.566,59.485 Z M119.342,79.989 L119.342,75.394 C119.761,75.499 120.706,75.499 121.179,75.499 C123.804,75.499 125.222,74.397 126.088,71.561 C126.088,71.509 126.588,69.881 126.588,69.855 L116.611,42.209 L122.754,42.209 L129.738,64.683 L129.842,64.683 L136.827,42.209 L142.812,42.209 L132.468,71.272 C130.106,77.967 127.375,80.12 121.652,80.12 C121.179,80.12 119.761,80.067 119.342,79.989 L119.342,79.989 Z" id="Pay" fill="#000000"></path><path d="M181.896484,70 L181.896484,64.7792969 L164.204102,64.7792969 L164.204102,31.9521484 L158.113281,31.9521484 L158.113281,70 L181.896484,70 Z M194.369219,70.5009766 C198.113359,70.5009766 201.224688,68.734375 202.859453,65.8076172 L203.149492,65.8076172 L203.149492,70 L209.003008,70 L209.003008,50.6201172 C209.003008,44.8193359 204.784258,41.2333984 197.770586,41.2333984 C191.020586,41.2333984 186.696367,44.6347656 186.142656,49.4072266 L186.116289,49.6445312 L191.706133,49.6445312 L191.7325,49.4863281 C192.312578,47.4033203 194.342852,46.0585938 197.533281,46.0585938 C201.171953,46.0585938 203.149492,47.8251953 203.149492,50.8574219 L203.149492,53.1513672 L195.555742,53.5996094 C188.805742,53.9951172 185.008867,56.9746094 185.008867,61.9580078 L185.008867,62.0107422 C185.008867,67.1259766 188.884844,70.5009766 194.369219,70.5009766 Z M196.003984,65.8339844 C192.971758,65.8339844 190.88875,64.3046875 190.88875,61.7998047 L190.88875,61.7470703 C190.88875,59.3212891 192.708086,57.8974609 196.346758,57.6601562 L203.149492,57.2382812 L203.149492,59.5322266 C203.149492,63.1181641 200.090898,65.8339844 196.003984,65.8339844 Z M225.06168,70.3691406 C226.221836,70.3691406 227.302891,70.2373047 228.120273,70.1054688 L228.120273,65.5175781 C227.513828,65.5703125 227.012852,65.6230469 226.248203,65.6230469 C223.637852,65.6230469 222.451328,64.5683594 222.451328,61.6416016 L222.451328,46.4013672 L228.120273,46.4013672 L228.120273,41.7871094 L222.451328,41.7871094 L222.451328,34.5888672 L216.439609,34.5888672 L216.439609,41.7871094 L212.220859,41.7871094 L212.220859,46.4013672 L216.439609,46.4013672 L216.439609,62.5380859 C216.439609,68.0751953 219.102695,70.3691406 225.06168,70.3691406 Z M244.23168,70.5537109 C251.377187,70.5537109 255.464102,66.3876953 256.386953,62.3007812 L256.439687,62.0634766 L250.823477,62.0634766 L250.744375,62.2480469 C250.058828,64.0146484 247.870352,65.78125 244.363516,65.78125 C239.801992,65.78125 236.901602,62.6962891 236.796133,57.3964844 L256.729727,57.3964844 L256.729727,55.3925781 C256.729727,46.9023438 251.851797,41.2333984 243.941641,41.2333984 C236.005117,41.2333984 230.889883,47.1132812 230.889883,55.9462891 L230.889883,55.9726562 C230.889883,64.9111328 235.926016,70.5537109 244.23168,70.5537109 Z M250.928945,53.2568359 L236.875234,53.2568359 C237.376211,48.5371094 240.223867,46.0058594 243.968008,46.0058594 C247.738516,46.0058594 250.480703,48.3789062 250.928945,53.2568359 Z M267.093086,70 L267.093086,53.2568359 C267.093086,49.1171875 269.703438,46.5859375 273.71125,46.5859375 C274.818672,46.5859375 275.820625,46.7177734 276.585273,46.9023438 L276.585273,41.4970703 C276.05793,41.3916016 275.187813,41.2597656 274.317695,41.2597656 C270.810859,41.2597656 268.332344,43.1582031 267.356758,46.3222656 L267.093086,46.3222656 L267.093086,41.7871094 L261.186836,41.7871094 L261.186836,70 L267.093086,70 Z" id="Later" fill="#000000"></path></svg>',apple_pay_later_mark_white:'<svg viewBox="0 0 299 106" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M283.698,0 L14.823,0 C14.257,0 13.69,0 13.125,0.003 C12.648,0.007 12.172,0.012 11.695,0.025 C10.656,0.053 9.608,0.115 8.582,0.299 C7.55304935,0.475289397 6.5561053,0.803896713 5.624,1.274 C3.75016438,2.22707876 2.22707876,3.75016438 1.274,5.624 C0.803057197,6.55646163 0.474412543,7.5541931 0.299,8.584 C0.113,9.611 0.052,10.658 0.024,11.696 C0.011,12.173 0.005,12.649 0,13.126 C0,13.69 0,14.256 0,14.823 L0,91.141 C0,91.708 0,92.273 0,92.84 C0.005,93.316 0.011,93.793 0.024,94.27 C0.052,95.306 0.114,96.354 0.299,97.38 C0.474052532,98.4097641 0.802361489,99.4074997 1.273,100.34 C1.74618424,101.271314 2.36382962,102.121842 3.103,102.86 C3.84090499,103.599466 4.69148278,104.217148 5.623,104.69 C6.57,105.173 7.54,105.48 8.583,105.667 C9.608,105.85 10.656,105.912 11.695,105.94 C12.172,105.951 12.648,105.958 13.125,105.96 C13.69,105.964 14.257,105.964 14.823,105.964 L283.698,105.964 C284.263,105.964 284.83,105.964 285.395,105.96 C285.87205,105.957616 286.349069,105.950949 286.826,105.94 C287.863,105.912 288.911,105.85 289.939,105.667 C290.968174,105.490543 291.96519,105.161238 292.897,104.69 C294.769895,103.735625 296.292625,102.212895 297.247,100.34 C297.73,99.393 298.036,98.423 298.221,97.38 C298.407,96.354 298.467,95.306 298.495,94.27 C298.508,93.793 298.515,93.316 298.517,92.84 C298.521,92.273 298.521,91.708 298.521,91.141 L298.521,14.824 C298.521,14.257 298.521,13.691 298.517,13.125 C298.515064,12.6485989 298.50773,12.172235 298.495,11.696 C298.467,10.658 298.407,9.611 298.221,8.584 C298.046831,7.55401695 297.71848,6.55615176 297.247,5.624 C296.293413,3.75053315 294.770467,2.22758663 292.897,1.274 C291.964782,0.80438048 290.967861,0.476117852 289.939,0.3 C288.911,0.115 287.863,0.054 286.826,0.026 C286.349085,0.0138870152 285.872062,0.00655331365 285.395,0.004 C284.83,0 284.263,0 283.698,0 Z" id="Outline" fill="rgba(0,0,0,.075)"></path><path d="M285.37,3.535 C285.822,3.538 286.275,3.543 286.73,3.555 C287.522,3.577 288.449,3.62 289.313,3.775 C290.063,3.91 290.693,4.115 291.297,4.423 C292.505746,5.03755904 293.487734,6.0205978 294.101,7.23 C294.407,7.83 294.611,8.456 294.746,9.213 C294.9,10.067 294.943,10.996 294.964,11.793 C294.977,12.243 294.983,12.693 294.984,13.153 C294.989,13.71 294.989,14.266 294.989,14.824 L294.989,91.142 C294.989,91.7 294.989,92.256 294.985,92.824 C294.983,93.274 294.977,93.724 294.965,94.174 C294.943,94.97 294.9,95.899 294.744,96.763 C294.630594,97.4502806 294.413097,98.1162614 294.099,98.738 C293.484409,99.9478082 292.501027,100.93084 291.291,101.545 C290.691,101.851 290.063,102.057 289.32,102.19 C288.438,102.347 287.473,102.39 286.746,102.41 C286.289,102.42 285.834,102.427 285.367,102.429 C284.812,102.433 284.254,102.433 283.698,102.433 L14.801,102.433 C14.251,102.433 13.701,102.433 13.141,102.429 C12.6909551,102.427046 12.240937,102.421046 11.791,102.411 C11.047,102.391 10.081,102.347 9.207,102.191 C8.51598039,102.075842 7.84638728,101.85669 7.221,101.541 C6.62111744,101.236271 6.07359362,100.837949 5.599,100.361 C5.12290857,99.8857571 4.72529217,99.3379376 4.421,98.738 C4.10640097,98.1127736 3.88826296,97.4435248 3.774,96.753 C3.619,95.89 3.576,94.965 3.554,94.175 C3.54269765,93.7234137 3.53603063,93.2717232 3.532,92.82 L3.532,91.493 L3.532,14.474 L3.532,13.149 C3.537,12.696 3.542,12.244 3.554,11.792 C3.576,11 3.619,10.075 3.776,9.205 C3.89017322,8.51586104 4.10797216,7.84796678 4.422,7.224 C4.726,6.626 5.122,6.08 5.602,5.602 C6.07772872,5.1254978 6.62583457,4.72724354 7.226,4.422 C7.8498075,4.10823092 8.5172811,3.89012212 9.206,3.775 C10.071,3.62 10.998,3.577 11.792,3.555 C12.244,3.543 12.697,3.538 13.146,3.535 L14.823,3.532 L283.698,3.532 L285.37,3.535 Z" id="Bg" fill="#FFFFFF"></path><path d="M45.186,35.64 C46.603,33.868 47.566,31.488 47.312,29.055 C45.237,29.159 42.705,30.425 41.239,32.198 C39.923,33.718 38.759,36.198 39.062,38.528 C41.392,38.73 43.718,37.363 45.186,35.641 M47.285,38.983 C43.903,38.781 41.027,40.902 39.412,40.902 C37.796,40.902 35.322,39.084 32.648,39.133 C29.166,39.184 25.935,41.153 24.168,44.283 C20.534,50.547 23.209,59.839 26.743,64.94 C28.46,67.464 30.528,70.243 33.253,70.143 C35.828,70.042 36.837,68.475 39.967,68.475 C43.095,68.475 44.004,70.143 46.73,70.092 C49.557,70.042 51.324,67.567 53.04,65.041 C55.009,62.164 55.815,59.386 55.865,59.233 C55.815,59.183 50.415,57.111 50.365,50.9 C50.314,45.699 54.605,43.225 54.806,43.072 C52.383,39.488 48.597,39.084 47.286,38.982 M76.734,31.944 C84.084,31.944 89.204,37.011 89.204,44.388 C89.204,51.792 83.979,56.885 76.55,56.885 L68.41,56.885 L68.41,69.828 L62.53,69.828 L62.53,31.944 L76.734,31.944 Z M68.41,51.949 L75.157,51.949 C80.277,51.949 83.191,49.193 83.191,44.415 C83.191,39.637 80.277,36.906 75.183,36.906 L68.41,36.906 L68.41,51.95 L68.41,51.949 Z M90.74,61.979 C90.74,57.148 94.442,54.181 101.006,53.813 L108.566,53.367 L108.566,51.241 C108.566,48.169 106.492,46.331 103.027,46.331 C99.745,46.331 97.697,47.906 97.199,50.374 L91.843,50.374 C92.158,45.386 96.411,41.71 103.237,41.71 C109.932,41.71 114.211,45.255 114.211,50.794 L114.211,69.828 L108.776,69.828 L108.776,65.286 L108.646,65.286 C107.044,68.358 103.552,70.301 99.929,70.301 C94.521,70.301 90.74,66.941 90.74,61.979 L90.74,61.979 Z M108.566,59.485 L108.566,57.305 L101.766,57.725 C98.38,57.962 96.463,59.458 96.463,61.821 C96.463,64.236 98.459,65.811 101.504,65.811 C105.468,65.811 108.566,63.081 108.566,59.485 L108.566,59.485 Z M119.342,79.989 L119.342,75.394 C119.761,75.499 120.706,75.499 121.179,75.499 C123.804,75.499 125.222,74.397 126.088,71.561 C126.088,71.509 126.588,69.881 126.588,69.855 L116.611,42.209 L122.754,42.209 L129.738,64.683 L129.842,64.683 L136.827,42.209 L142.812,42.209 L132.468,71.272 C130.106,77.967 127.375,80.12 121.652,80.12 C121.179,80.12 119.761,80.067 119.342,79.989 L119.342,79.989 Z" id="Pay" fill="#000000"></path><path d="M181.896484,70 L181.896484,64.7792969 L164.204102,64.7792969 L164.204102,31.9521484 L158.113281,31.9521484 L158.113281,70 L181.896484,70 Z M194.369219,70.5009766 C198.113359,70.5009766 201.224688,68.734375 202.859453,65.8076172 L203.149492,65.8076172 L203.149492,70 L209.003008,70 L209.003008,50.6201172 C209.003008,44.8193359 204.784258,41.2333984 197.770586,41.2333984 C191.020586,41.2333984 186.696367,44.6347656 186.142656,49.4072266 L186.116289,49.6445312 L191.706133,49.6445312 L191.7325,49.4863281 C192.312578,47.4033203 194.342852,46.0585938 197.533281,46.0585938 C201.171953,46.0585938 203.149492,47.8251953 203.149492,50.8574219 L203.149492,53.1513672 L195.555742,53.5996094 C188.805742,53.9951172 185.008867,56.9746094 185.008867,61.9580078 L185.008867,62.0107422 C185.008867,67.1259766 188.884844,70.5009766 194.369219,70.5009766 Z M196.003984,65.8339844 C192.971758,65.8339844 190.88875,64.3046875 190.88875,61.7998047 L190.88875,61.7470703 C190.88875,59.3212891 192.708086,57.8974609 196.346758,57.6601562 L203.149492,57.2382812 L203.149492,59.5322266 C203.149492,63.1181641 200.090898,65.8339844 196.003984,65.8339844 Z M225.06168,70.3691406 C226.221836,70.3691406 227.302891,70.2373047 228.120273,70.1054688 L228.120273,65.5175781 C227.513828,65.5703125 227.012852,65.6230469 226.248203,65.6230469 C223.637852,65.6230469 222.451328,64.5683594 222.451328,61.6416016 L222.451328,46.4013672 L228.120273,46.4013672 L228.120273,41.7871094 L222.451328,41.7871094 L222.451328,34.5888672 L216.439609,34.5888672 L216.439609,41.7871094 L212.220859,41.7871094 L212.220859,46.4013672 L216.439609,46.4013672 L216.439609,62.5380859 C216.439609,68.0751953 219.102695,70.3691406 225.06168,70.3691406 Z M244.23168,70.5537109 C251.377187,70.5537109 255.464102,66.3876953 256.386953,62.3007812 L256.439687,62.0634766 L250.823477,62.0634766 L250.744375,62.2480469 C250.058828,64.0146484 247.870352,65.78125 244.363516,65.78125 C239.801992,65.78125 236.901602,62.6962891 236.796133,57.3964844 L256.729727,57.3964844 L256.729727,55.3925781 C256.729727,46.9023438 251.851797,41.2333984 243.941641,41.2333984 C236.005117,41.2333984 230.889883,47.1132812 230.889883,55.9462891 L230.889883,55.9726562 C230.889883,64.9111328 235.926016,70.5537109 244.23168,70.5537109 Z M250.928945,53.2568359 L236.875234,53.2568359 C237.376211,48.5371094 240.223867,46.0058594 243.968008,46.0058594 C247.738516,46.0058594 250.480703,48.3789062 250.928945,53.2568359 Z M267.093086,70 L267.093086,53.2568359 C267.093086,49.1171875 269.703438,46.5859375 273.71125,46.5859375 C274.818672,46.5859375 275.820625,46.7177734 276.585273,46.9023438 L276.585273,41.4970703 C276.05793,41.3916016 275.187813,41.2597656 274.317695,41.2597656 C270.810859,41.2597656 268.332344,43.1582031 267.356758,46.3222656 L267.093086,46.3222656 L267.093086,41.7871094 L261.186836,41.7871094 L261.186836,70 L267.093086,70 Z" id="Later" fill="#000000"></path></svg>',apple_pay_mark_black:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 165.521 105.965"><path fill="rgba(255,255,255,.075)" d="M150.698 0H14.823c-.566 0-1.133 0-1.698.003-.477.004-.953.009-1.43.022-1.039.028-2.087.09-3.113.274a10.51 10.51 0 0 0-2.958.975 9.932 9.932 0 0 0-4.35 4.35 10.463 10.463 0 0 0-.975 2.96C.113 9.611.052 10.658.024 11.696c-.013.477-.019.953-.022 1.43C0 13.69 0 14.256 0 14.823v76.318c0 .567 0 1.132.002 1.699.003.476.009.953.022 1.43.028 1.036.09 2.084.275 3.11a10.46 10.46 0 0 0 .974 2.96 9.897 9.897 0 0 0 1.83 2.52 9.874 9.874 0 0 0 2.52 1.83c.947.483 1.917.79 2.96.977 1.025.183 2.073.245 3.112.273.477.011.953.018 1.43.02.565.004 1.132.004 1.698.004h135.875c.565 0 1.132 0 1.697-.004a79.71 79.71 0 0 0 1.431-.02c1.037-.028 2.085-.09 3.113-.273a10.478 10.478 0 0 0 2.958-.977 9.955 9.955 0 0 0 4.35-4.35c.483-.947.789-1.917.974-2.96.186-1.026.246-2.074.274-3.11.013-.477.02-.954.022-1.43.004-.567.004-1.132.004-1.699V14.824c0-.567 0-1.133-.004-1.699a63.067 63.067 0 0 0-.022-1.429c-.028-1.038-.088-2.085-.274-3.112a10.4 10.4 0 0 0-.974-2.96 9.941 9.941 0 0 0-4.35-4.35A10.52 10.52 0 0 0 156.939.3c-1.028-.185-2.076-.246-3.113-.274a71.413 71.413 0 0 0-1.431-.022C151.83 0 151.263 0 150.698 0z"/><path fill="black" d="m150.698 3.532 1.672.003c.452.003.905.008 1.36.02.792.022 1.719.065 2.583.22.75.135 1.38.34 1.984.648a6.392 6.392 0 0 1 2.804 2.807c.306.6.51 1.226.645 1.983.154.854.197 1.783.218 2.58.013.45.019.9.02 1.36.005.557.005 1.113.005 1.671v76.318c0 .558 0 1.114-.004 1.682-.002.45-.008.9-.02 1.35-.022.796-.065 1.725-.221 2.589a6.855 6.855 0 0 1-.645 1.975 6.397 6.397 0 0 1-2.808 2.807c-.6.306-1.228.512-1.971.645-.882.157-1.847.2-2.574.22-.457.01-.912.017-1.379.019-.555.004-1.113.004-1.669.004H14.801c-.55 0-1.1 0-1.66-.004a75.086 75.086 0 0 1-1.35-.018c-.744-.02-1.71-.064-2.584-.22a6.938 6.938 0 0 1-1.986-.65 6.337 6.337 0 0 1-1.622-1.18 6.355 6.355 0 0 1-1.178-1.623 6.935 6.935 0 0 1-.647-1.985c-.155-.863-.198-1.788-.22-2.578a66.017 66.017 0 0 1-.02-1.355l-.002-1.327V14.474l.002-1.325c.003-.453.008-.905.02-1.357.022-.792.065-1.717.222-2.587a6.924 6.924 0 0 1 .646-1.981c.304-.598.7-1.144 1.18-1.622a6.385 6.385 0 0 1 1.624-1.18 6.96 6.96 0 0 1 1.98-.647c.865-.155 1.792-.198 2.586-.22.452-.012.905-.017 1.354-.02l1.677-.003h135.875"/><path fill="white" d="M45.186 35.64c1.417-1.772 2.38-4.152 2.126-6.585-2.075.104-4.607 1.37-6.073 3.143-1.316 1.52-2.48 4-2.177 6.33 2.33.202 4.656-1.165 6.124-2.887M47.285 38.983c-3.382-.202-6.258 1.919-7.873 1.919-1.616 0-4.09-1.818-6.764-1.769-3.482.051-6.713 2.02-8.48 5.15-3.634 6.264-.959 15.556 2.575 20.657 1.717 2.524 3.785 5.303 6.51 5.203 2.575-.101 3.584-1.668 6.714-1.668 3.128 0 4.037 1.668 6.763 1.617 2.827-.05 4.594-2.525 6.31-5.051 1.969-2.877 2.775-5.655 2.825-5.808-.05-.05-5.45-2.122-5.5-8.333-.051-5.201 4.24-7.675 4.441-7.828-2.423-3.584-6.209-3.988-7.52-4.09M76.734 31.944c7.35 0 12.47 5.067 12.47 12.444 0 7.404-5.225 12.497-12.654 12.497h-8.14v12.943h-5.88V31.944h14.204zM68.41 51.949h6.747c5.12 0 8.034-2.756 8.034-7.534 0-4.778-2.914-7.509-8.008-7.509h-6.773V51.95zM90.74 61.979c0-4.831 3.702-7.798 10.266-8.166l7.56-.446v-2.126c0-3.072-2.074-4.91-5.539-4.91-3.282 0-5.33 1.575-5.828 4.043h-5.356c.315-4.988 4.568-8.664 11.394-8.664 6.695 0 10.974 3.545 10.974 9.084v19.034h-5.435v-4.542h-.13c-1.602 3.072-5.094 5.015-8.717 5.015-5.408 0-9.189-3.36-9.189-8.322zm17.826-2.494v-2.18l-6.8.42c-3.386.237-5.303 1.733-5.303 4.096 0 2.415 1.996 3.99 5.041 3.99 3.964 0 7.062-2.73 7.062-6.326zM119.342 79.989v-4.595c.419.105 1.364.105 1.837.105 2.625 0 4.043-1.102 4.909-3.938 0-.052.5-1.68.5-1.706l-9.977-27.646h6.143l6.984 22.474h.104l6.985-22.474h5.985l-10.344 29.063c-2.362 6.695-5.093 8.848-10.816 8.848-.473 0-1.891-.053-2.31-.131z"/></svg>',apple_pay_mark_none:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 165.521 105.965"><path fill="black" d="M45.186 35.64c1.417-1.772 2.38-4.152 2.126-6.585-2.075.104-4.607 1.37-6.073 3.143-1.316 1.52-2.48 4-2.177 6.33 2.33.202 4.656-1.165 6.124-2.887M47.285 38.983c-3.382-.202-6.258 1.919-7.873 1.919-1.616 0-4.09-1.818-6.764-1.769-3.482.051-6.713 2.02-8.48 5.15-3.634 6.264-.959 15.556 2.575 20.657 1.717 2.524 3.785 5.303 6.51 5.203 2.575-.101 3.584-1.668 6.714-1.668 3.128 0 4.037 1.668 6.763 1.617 2.827-.05 4.594-2.525 6.31-5.051 1.969-2.877 2.775-5.655 2.825-5.808-.05-.05-5.45-2.122-5.5-8.333-.051-5.201 4.24-7.675 4.441-7.828-2.423-3.584-6.209-3.988-7.52-4.09M76.734 31.944c7.35 0 12.47 5.067 12.47 12.444 0 7.404-5.225 12.497-12.654 12.497h-8.14v12.943h-5.88V31.944h14.204zM68.41 51.949h6.747c5.12 0 8.034-2.756 8.034-7.534 0-4.778-2.914-7.509-8.008-7.509h-6.773V51.95zM90.74 61.979c0-4.831 3.702-7.798 10.266-8.166l7.56-.446v-2.126c0-3.072-2.074-4.91-5.539-4.91-3.282 0-5.33 1.575-5.828 4.043h-5.356c.315-4.988 4.568-8.664 11.394-8.664 6.695 0 10.974 3.545 10.974 9.084v19.034h-5.435v-4.542h-.13c-1.602 3.072-5.094 5.015-8.717 5.015-5.408 0-9.189-3.36-9.189-8.322zm17.826-2.494v-2.18l-6.8.42c-3.386.237-5.303 1.733-5.303 4.096 0 2.415 1.996 3.99 5.041 3.99 3.964 0 7.062-2.73 7.062-6.326zM119.342 79.989v-4.595c.419.105 1.364.105 1.837.105 2.625 0 4.043-1.102 4.909-3.938 0-.052.5-1.68.5-1.706l-9.977-27.646h6.143l6.984 22.474h.104l6.985-22.474h5.985l-10.344 29.063c-2.362 6.695-5.093 8.848-10.816 8.848-.473 0-1.891-.053-2.31-.131z"/></svg>',apple_pay_mark_white_outline:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 165.521 105.965"><path d="M150.698 0H14.823c-.566 0-1.133 0-1.698.003-.477.004-.953.009-1.43.022-1.039.028-2.087.09-3.113.274a10.51 10.51 0 0 0-2.958.975 9.932 9.932 0 0 0-4.35 4.35 10.463 10.463 0 0 0-.975 2.96C.113 9.611.052 10.658.024 11.696c-.013.477-.019.953-.022 1.43C0 13.69 0 14.256 0 14.823v76.318c0 .567 0 1.132.002 1.699.003.476.009.953.022 1.43.028 1.036.09 2.084.275 3.11a10.46 10.46 0 0 0 .974 2.96 9.897 9.897 0 0 0 1.83 2.52 9.874 9.874 0 0 0 2.52 1.83c.947.483 1.917.79 2.96.977 1.025.183 2.073.245 3.112.273.477.011.953.018 1.43.02.565.004 1.132.004 1.698.004h135.875c.565 0 1.132 0 1.697-.004a79.71 79.71 0 0 0 1.431-.02c1.037-.028 2.085-.09 3.113-.273a10.478 10.478 0 0 0 2.958-.977 9.955 9.955 0 0 0 4.35-4.35c.483-.947.789-1.917.974-2.96.186-1.026.246-2.074.274-3.11.013-.477.02-.954.022-1.43.004-.567.004-1.132.004-1.699V14.824c0-.567 0-1.133-.004-1.699a63.067 63.067 0 0 0-.022-1.429c-.028-1.038-.088-2.085-.274-3.112a10.4 10.4 0 0 0-.974-2.96 9.941 9.941 0 0 0-4.35-4.35A10.52 10.52 0 0 0 156.939.3c-1.028-.185-2.076-.246-3.113-.274a71.413 71.413 0 0 0-1.431-.022C151.83 0 151.263 0 150.698 0z"/><path fill="white" d="m150.698 3.532 1.672.003c.452.003.905.008 1.36.02.792.022 1.719.065 2.583.22.75.135 1.38.34 1.984.648a6.392 6.392 0 0 1 2.804 2.807c.306.6.51 1.226.645 1.983.154.854.197 1.783.218 2.58.013.45.019.9.02 1.36.005.557.005 1.113.005 1.671v76.318c0 .558 0 1.114-.004 1.682-.002.45-.008.9-.02 1.35-.022.796-.065 1.725-.221 2.589a6.855 6.855 0 0 1-.645 1.975 6.397 6.397 0 0 1-2.808 2.807c-.6.306-1.228.512-1.971.645-.882.157-1.847.2-2.574.22-.457.01-.912.017-1.379.019-.555.004-1.113.004-1.669.004H14.801c-.55 0-1.1 0-1.66-.004a75.086 75.086 0 0 1-1.35-.018c-.744-.02-1.71-.064-2.584-.22a6.938 6.938 0 0 1-1.986-.65 6.337 6.337 0 0 1-1.622-1.18 6.355 6.355 0 0 1-1.178-1.623 6.935 6.935 0 0 1-.647-1.985c-.155-.863-.198-1.788-.22-2.578a66.017 66.017 0 0 1-.02-1.355l-.002-1.327V14.474l.002-1.325c.003-.453.008-.905.02-1.357.022-.792.065-1.717.222-2.587a6.924 6.924 0 0 1 .646-1.981c.304-.598.7-1.144 1.18-1.622a6.385 6.385 0 0 1 1.624-1.18 6.96 6.96 0 0 1 1.98-.647c.865-.155 1.792-.198 2.586-.22.452-.012.905-.017 1.354-.02l1.677-.003h135.875"/><path fill="black" d="M45.186 35.64c1.417-1.772 2.38-4.152 2.126-6.585-2.075.104-4.607 1.37-6.073 3.143-1.316 1.52-2.48 4-2.177 6.33 2.33.202 4.656-1.165 6.124-2.887M47.285 38.983c-3.382-.202-6.258 1.919-7.873 1.919-1.616 0-4.09-1.818-6.764-1.769-3.482.051-6.713 2.02-8.48 5.15-3.634 6.264-.959 15.556 2.575 20.657 1.717 2.524 3.785 5.303 6.51 5.203 2.575-.101 3.584-1.668 6.714-1.668 3.128 0 4.037 1.668 6.763 1.617 2.827-.05 4.594-2.525 6.31-5.051 1.969-2.877 2.775-5.655 2.825-5.808-.05-.05-5.45-2.122-5.5-8.333-.051-5.201 4.24-7.675 4.441-7.828-2.423-3.584-6.209-3.988-7.52-4.09M76.734 31.944c7.35 0 12.47 5.067 12.47 12.444 0 7.404-5.225 12.497-12.654 12.497h-8.14v12.943h-5.88V31.944h14.204zM68.41 51.949h6.747c5.12 0 8.034-2.756 8.034-7.534 0-4.778-2.914-7.509-8.008-7.509h-6.773V51.95zM90.74 61.979c0-4.831 3.702-7.798 10.266-8.166l7.56-.446v-2.126c0-3.072-2.074-4.91-5.539-4.91-3.282 0-5.33 1.575-5.828 4.043h-5.356c.315-4.988 4.568-8.664 11.394-8.664 6.695 0 10.974 3.545 10.974 9.084v19.034h-5.435v-4.542h-.13c-1.602 3.072-5.094 5.015-8.717 5.015-5.408 0-9.189-3.36-9.189-8.322zm17.826-2.494v-2.18l-6.8.42c-3.386.237-5.303 1.733-5.303 4.096 0 2.415 1.996 3.99 5.041 3.99 3.964 0 7.062-2.73 7.062-6.326zM119.342 79.989v-4.595c.419.105 1.364.105 1.837.105 2.625 0 4.043-1.102 4.909-3.938 0-.052.5-1.68.5-1.706l-9.977-27.646h6.143l6.984 22.474h.104l6.985-22.474h5.985l-10.344 29.063c-2.362 6.695-5.093 8.848-10.816 8.848-.473 0-1.891-.053-2.31-.131z"/></svg>',apple_pay_mark_white:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 165.521 105.965"><path fill="rgba(0,0,0,.075)" d="M150.698 0H14.823c-.566 0-1.133 0-1.698.003-.477.004-.953.009-1.43.022-1.039.028-2.087.09-3.113.274a10.51 10.51 0 0 0-2.958.975 9.932 9.932 0 0 0-4.35 4.35 10.463 10.463 0 0 0-.975 2.96C.113 9.611.052 10.658.024 11.696c-.013.477-.019.953-.022 1.43C0 13.69 0 14.256 0 14.823v76.318c0 .567 0 1.132.002 1.699.003.476.009.953.022 1.43.028 1.036.09 2.084.275 3.11a10.46 10.46 0 0 0 .974 2.96 9.897 9.897 0 0 0 1.83 2.52 9.874 9.874 0 0 0 2.52 1.83c.947.483 1.917.79 2.96.977 1.025.183 2.073.245 3.112.273.477.011.953.018 1.43.02.565.004 1.132.004 1.698.004h135.875c.565 0 1.132 0 1.697-.004a79.71 79.71 0 0 0 1.431-.02c1.037-.028 2.085-.09 3.113-.273a10.478 10.478 0 0 0 2.958-.977 9.955 9.955 0 0 0 4.35-4.35c.483-.947.789-1.917.974-2.96.186-1.026.246-2.074.274-3.11.013-.477.02-.954.022-1.43.004-.567.004-1.132.004-1.699V14.824c0-.567 0-1.133-.004-1.699a63.067 63.067 0 0 0-.022-1.429c-.028-1.038-.088-2.085-.274-3.112a10.4 10.4 0 0 0-.974-2.96 9.941 9.941 0 0 0-4.35-4.35A10.52 10.52 0 0 0 156.939.3c-1.028-.185-2.076-.246-3.113-.274a71.413 71.413 0 0 0-1.431-.022C151.83 0 151.263 0 150.698 0z"/><path fill="white" d="m150.698 3.532 1.672.003c.452.003.905.008 1.36.02.792.022 1.719.065 2.583.22.75.135 1.38.34 1.984.648a6.392 6.392 0 0 1 2.804 2.807c.306.6.51 1.226.645 1.983.154.854.197 1.783.218 2.58.013.45.019.9.02 1.36.005.557.005 1.113.005 1.671v76.318c0 .558 0 1.114-.004 1.682-.002.45-.008.9-.02 1.35-.022.796-.065 1.725-.221 2.589a6.855 6.855 0 0 1-.645 1.975 6.397 6.397 0 0 1-2.808 2.807c-.6.306-1.228.512-1.971.645-.882.157-1.847.2-2.574.22-.457.01-.912.017-1.379.019-.555.004-1.113.004-1.669.004H14.801c-.55 0-1.1 0-1.66-.004a75.086 75.086 0 0 1-1.35-.018c-.744-.02-1.71-.064-2.584-.22a6.938 6.938 0 0 1-1.986-.65 6.337 6.337 0 0 1-1.622-1.18 6.355 6.355 0 0 1-1.178-1.623 6.935 6.935 0 0 1-.647-1.985c-.155-.863-.198-1.788-.22-2.578a66.017 66.017 0 0 1-.02-1.355l-.002-1.327V14.474l.002-1.325c.003-.453.008-.905.02-1.357.022-.792.065-1.717.222-2.587a6.924 6.924 0 0 1 .646-1.981c.304-.598.7-1.144 1.18-1.622a6.385 6.385 0 0 1 1.624-1.18 6.96 6.96 0 0 1 1.98-.647c.865-.155 1.792-.198 2.586-.22.452-.012.905-.017 1.354-.02l1.677-.003h135.875"/><path fill="black" d="M45.186 35.64c1.417-1.772 2.38-4.152 2.126-6.585-2.075.104-4.607 1.37-6.073 3.143-1.316 1.52-2.48 4-2.177 6.33 2.33.202 4.656-1.165 6.124-2.887M47.285 38.983c-3.382-.202-6.258 1.919-7.873 1.919-1.616 0-4.09-1.818-6.764-1.769-3.482.051-6.713 2.02-8.48 5.15-3.634 6.264-.959 15.556 2.575 20.657 1.717 2.524 3.785 5.303 6.51 5.203 2.575-.101 3.584-1.668 6.714-1.668 3.128 0 4.037 1.668 6.763 1.617 2.827-.05 4.594-2.525 6.31-5.051 1.969-2.877 2.775-5.655 2.825-5.808-.05-.05-5.45-2.122-5.5-8.333-.051-5.201 4.24-7.675 4.441-7.828-2.423-3.584-6.209-3.988-7.52-4.09M76.734 31.944c7.35 0 12.47 5.067 12.47 12.444 0 7.404-5.225 12.497-12.654 12.497h-8.14v12.943h-5.88V31.944h14.204zM68.41 51.949h6.747c5.12 0 8.034-2.756 8.034-7.534 0-4.778-2.914-7.509-8.008-7.509h-6.773V51.95zM90.74 61.979c0-4.831 3.702-7.798 10.266-8.166l7.56-.446v-2.126c0-3.072-2.074-4.91-5.539-4.91-3.282 0-5.33 1.575-5.828 4.043h-5.356c.315-4.988 4.568-8.664 11.394-8.664 6.695 0 10.974 3.545 10.974 9.084v19.034h-5.435v-4.542h-.13c-1.602 3.072-5.094 5.015-8.717 5.015-5.408 0-9.189-3.36-9.189-8.322zm17.826-2.494v-2.18l-6.8.42c-3.386.237-5.303 1.733-5.303 4.096 0 2.415 1.996 3.99 5.041 3.99 3.964 0 7.062-2.73 7.062-6.326zM119.342 79.989v-4.595c.419.105 1.364.105 1.837.105 2.625 0 4.043-1.102 4.909-3.938 0-.052.5-1.68.5-1.706l-9.977-27.646h6.143l6.984 22.474h.104l6.985-22.474h5.985l-10.344 29.063c-2.362 6.695-5.093 8.848-10.816 8.848-.473 0-1.891-.053-2.31-.131z"/></svg>'},Lr=/\{\{\s*([^\s]+)\s*\}\}/gi;typeof WEBVIEW>"u"&&(xe.WEBVIEW=!1);class Ht extends HTMLElement{constructor(){super(),this.locale=fn.locale,this.countryCode=fn.countryCode,this.currencyCode=fn.currencyCode,this.type=fn.type,this.modalType=fn.modalType,this.debug=!1,On.set(this,void 0),Cn.set(this,void 0),Kt.set(this,void 0),hn(this,Kt,new Promise(m=>setTimeout(m)).then(()=>Ht.getData({countryCode:this.countryCode,amount:this.amount,currencyCode:this.currencyCode,locale:this.locale})).then(m=>{var b=new Event("load");return this.dispatchEvent(b),this.data=m,new Promise(S=>setTimeout(S))},m=>{console.warn("Apple Pay Merchandising: unable to fetch merchandising data",m),this.disable()}).then(()=>{hn(this,On,this.ownerDocument.createElement("div")),Xe(this,On).className="theme-".concat(this.theme," content"),hn(this,Cn,this.attachShadow({mode:"closed"})),Xe(this,Cn).innerHTML="<style>".concat(":host{font-family:var(--apple-pay-font-family, '-apple-system', 'SF Pro Display', 'SF Pro Icons', 'Helvetica Neue', 'Helvetica', 'Arial', 'sans-serif');font-size:var(--apple-pay-font-size, 13px);line-height:1.33;max-width:var(--apple-pay-width, 340px);display:inline-block}:host([disabled]),:host([hidden]){display:none!important;margin:0}:host>*{display:none}*{-webkit-box-sizing:border-box;box-sizing:border-box}.content{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:start;align-items:flex-start;margin:0 auto;color:inherit;gap:.75ex}.theme-dark.content .paymark.align-left.type-pay_later.style-none{-webkit-filter:invert(1);filter:invert(1)}.theme-dark.content .theme-dark.text .info-circle{-webkit-filter:invert(1);filter:invert(1)}.paymark{-ms-flex-order:2;order:2;margin:.054em 0 0}.paymark.align-left{-ms-flex-order:0;order:0;margin-right:.75ex}.paymark.align-right{margin-left:.75ex}.paymark.type-none{display:none}.paymark.style-none{margin:0}.content p{-ms-flex-order:1;order:1;margin:0}.content .text{-ms-flex-positive:1;flex-grow:1;margin:0 auto;-ms-flex-item-align:center;align-self:center}a{color:var(--apple-pay-link-color, #0066CC);text-decoration:none}@media (hover: hover){a:hover{text-decoration:underline}}.theme-dark{color:var(--apple-pay-text-color-dark, #F5F5F7)}.theme-light{color:var(--apple-pay-text-color, #1D1D1F)}.theme-dark a{color:var(--apple-pay-link-color-dark, #2997FF)}.theme-light a{color:var(--apple-pay-link-color, #0066CC)}.paymark svg,.paymark img{display:block;height:2rem}","</style>"),Xe(this,Cn).appendChild(Xe(this,On)),Xe(this,Cn).addEventListener("click",m=>{var b,S,B=m.target.closest('a[href*="'.concat(this.data.modalUrl,'"]'));B&&m.currentTarget.contains(B)&&(m.preventDefault(),WEBVIEW?null===(S=null===(b=webkit.messageHandlers)||void 0===b?void 0:b.applePayDetails)||void 0===S||S.postMessage("show-modal"):(Zt.setAttribute("locale",this.locale),Zt.setAttribute("theme",this.theme),Zt.setAttribute("url",this.data.modalUrl),Zt.show()))})}))}connectedCallback(){var m=this;return Se(function*(){yield Xe(m,Kt),m.ready=!0,m.classList.add("ready"),m.update()})()}disconnectedCallback(){var m=this;return Se(function*(){yield Xe(m,Kt),m.disable()})()}disable(){var m,b;!(null===(m=Xe(this,Cn))||void 0===m)&&m.contains(Xe(this,On))&&(null===(b=Xe(this,Cn))||void 0===b||b.removeChild(Xe(this,On))),this.setAttribute("disabled",""),this.setAttribute("hidden",""),this.disabled=!0}enable(){var m;null===(m=Xe(this,Cn))||void 0===m||m.appendChild(Xe(this,On)),this.disabled=!1,this.removeAttribute("disabled"),this.removeAttribute("hidden")}update(){var m=this;return Se(function*(){if(m.ready)if(m.debug||(yield Ht.isEligible(m))){m.enable();var b=m.data=yield Ht.getData(m),S=yield Ht.fetchData(m),B=S.presets[m.type||fn.type]||S.presets.custom;"custom"===m.type&&(b.promoText=m.innerHTML);var z=new Intl.NumberFormat(m.locale,{style:"currency",currency:m.currencyCode,minimumFractionDigits:Number.isInteger(b.paymentsAmount)?0:2,currencyDisplay:"narrowSymbol"}),he=Object.assign(Object.assign(Object.assign({},b),B),{paymentsAmount:z.format(b.paymentsAmount),hideLogo:b.logo?"":"hidden",hideText:b.promoText?"":"hidden",theme:m.theme||fn.theme,modalUrl:b.modalUrl}),ct='<div class="paymark align-{{ logoAlign }} type-{{ logoType }} style-{{ logoStyle }}" {{ hideLogo }}>{{ logo }}</div><p class="theme-{{ theme }} text" {{ hideText }}>'.concat(b.promoText,"</p>");Xe(m,On).innerHTML=ct.replace(Lr,(Yt,rr)=>he[rr])}else m.disable()})()}static get observedAttributes(){return Ds}attributeChangedCallback(m,b,S){m=Te(m),null==S?delete this[m]:this[m]="true"===S||"false"!==S&&(""===S||S),b!==S&&this.update()}static fetchData({countryCode:m}){return Se(function*(){var b,S=m.toLowerCase();try{b=Wn[S]||(Wn[S]=yield(yield fetch(It("./merchandising-".concat(S,".json")))).json())}catch{throw Error("Apple Pay Merchandising: unable to fetch merchandising data")}return b})()}static getData({countryCode:m,locale:b,amount:S,modalType:B="learn-more",theme:z="light",type:he="plain"}){return Se(function*(){var ct,Yt=yield Ht.fetchData({countryCode:m}),rr=(Yt.text[b]||Yt.text[b.slice(0,2)]||Yt.text[Object.keys(Yt.text)[0]])[he]||"",si=null===(ct=Object.entries(Yt.method).find(([,ts])=>ts.minAmount<=S&&ts.maxAmount>=S))||void 0===ct?void 0:ct[1],Ms=Yt.presets[he||fn.type]||Yt.presets.custom,no=Math.round(S/si.frequency*100)/100,ro=location.hostname||window.frames.top.document.location.hostname;if(b.split("-")[1].toLowerCase()!==m.toLowerCase())throw Error("Apple Pay Merchandising: unsupported locale");return Object.assign({logo:"none"===Ms.logoType?"":Er["apple_".concat(Ms.logoType,"_mark_").concat(Ms.logoStyle)],promoText:rr,paymentsAmount:no,lastPaymentAmount:S-no*(si.frequency-1),modalUrl:It("./".concat(B,".html"))+"#data=".concat(btoa(JSON.stringify(Object.assign({amount:S,theme:z,locale:b,referrerUrl:ro},si))))},si)})()}static isEligible({amount:m,currencyCode:b,countryCode:S}){return Se(function*(){if(!function(z={}){try{return new PaymentRequest([{supportedMethods:"https://apple.com/apple-pay",data:{version:15,features:["applePayLater"],merchantIdentifier:"",countryCode:z.countryCode,supportedNetworks:["masterCard"],merchantCapabilities:["supports3DS"]}}],{total:{label:"applePayLater",amount:{currency:z.currencyCode,value:"0.00"}}}),!0}catch{return!1}}({currencyCode:b,countryCode:S}))return!1;var B=yield Ht.fetchData({countryCode:S});return b===B.currencyCode&&Object.entries(B.method).some(([,z])=>z.minAmount<=m&&z.maxAmount>=m)})()}}On=new WeakMap,Cn=new WeakMap,Kt=new WeakMap;var fn={merchantToken:null,amount:null,type:"plain",locale:"en-US",modalType:"learn-more",countryCode:"US",currencyCode:"USD",debug:!1,theme:"auto"},Ds=Object.keys(fn).map(Ge);customElements.define("apple-pay-merchandising",Ht),window.ApplePayMerchandising=Ht;var nt=["ar-AB","ca-ES","cs-CZ","da-DK","de-DE","el-GR","en-US","en-AU","en-GB","es-ES","es-MX","fi-FI","fr-CA","fr-FR","he-IL","hi-IN","hr-HR","hu-HU","id-ID","it-IT","ja-JP","ko-KR","ms-MY","nb-NO","nl-NL","pl-PL","pt-BR","pt-PT","ro-RO","ru-RU","sk-SK","sv-SE","th-TH","tr-TR","uk-UA","vi-VN","zh-CN","zh-HK","zh-TW"];function Fr(_){return _?.includes("-")&&!!nt.find(m=>m===_)}function At(_){if(_){var m=_.trim().replace("_","-").split("-"),b=m[0].toLowerCase();return 1===m.length?b:b+"-"+m[1].toUpperCase()}}function lt(_,m=!0){var z,he,b=_?.includes("-");if(b){var S=nt.find(z=>z===_);if(S)return S}if(_&&(!b||m)){var B=(z=_,he=z?.split("-")[0],nt.find(ct=>new RegExp("^".concat(he),"g").test(ct)));if(B)return B}}function ri(_){var m=function Gi(_){var m=((void 0===navigator.languages?[navigator.language]:navigator.languages)||[]).map(At),b=_?.closest("[lang]"),S=b?.lang?At(b.lang):void 0;return S&&m.unshift(S),m}(_).reduce((b,S)=>{if(b&&b.includes("-"))return b;if(!b){if(Fr(S))return S;var B=(z=S,he=z?.split("-")[0],he&&nt.find(ct=>ct.startsWith(he))?he:void 0);if(B)return B}var z,he;return b&&!b.includes("-")&&S.startsWith(b)&&Fr(S)?S:b},void 0);return(m?.includes("-")?m:lt(m))||"en-US"}function Ks(){try{return document.fonts.check("15px -apple-system")}catch{return!1}}function xt(_){return!!document.getElementById(Tt(_))}function Dr(_){var m=document.createElement("style");m.id=Tt(_),m.innerHTML="@font-face{"+"font-family:apple-pay-btn-".concat(_,";")+"src:url(".concat(Ro("./assets/1.0.0/fonts/".concat(_,".woff2")),') format("woff2"),')+"url(".concat(Ro("./assets/1.0.0/fonts/".concat(_,".woff")),') format("woff");')+"font-display:block;}",document.head.appendChild(m)}function Tt(_){return"apple-pay-btn-font-".concat(_)}function Ro(_){return se+_.replace(/^\.\//,"/")}var Lo=["add-money","book","buy","check-out","continue","contribute","donate","order","pay","plain","reload","rent","set-up","subscribe","support","tip","top-up"];function Fo(_){return Lo.includes(_)}function _c(_){switch(_){case"add-money":return"a";case"book":return"bo";case"buy":return"bu";case"check-out":return"ch";case"continue":return"ci";case"contribute":return"co";case"donate":return"d";case"order":return"o";case"pay":return"pa";case"plain":return"p";case"reload":return"rl";case"rent":return"rn";case"set-up":return"se";case"subscribe":return"sb";case"support":return"sp";case"tip":return"ti";case"top-up":return"to"}}function Oa(_,m){var b=[..._.l[_c(m)]],S=b[0].t.startsWith("%@")?0:1;return(b=b.map(B=>Object.assign(Object.assign({},B),{t:B.t.replace(/%@/g,"")}))).splice(S,0,{t:"%@"}),_.rtl&&b.reverse(),b}function Vo(_,m){if("plain"===m)return"Apple Pay";var b=Oa(_,m);return _.rtl&&b.reverse(),b.reduce((S,B)=>S+("%@"===B.t?"Apple Pay":B.t),"")}function Sr(_,m,b,S,B){var z=m.t.replace(/\s/g,"&#160;");return'<text x="'.concat(_,'" y="').concat(function(he){switch(he){case"ja-JP":return 20;case"ko-KR":return 19.6}return 19.5}(S),'" ')+"".concat(b?'direction="rtl" unicode-bidi="bidi-override" text-anchor="end"':""," ")+"".concat(B?'style="letter-spacing:'.concat(B,';"'):""," ")+"".concat(function(he){return"hi-IN"!==he&&"th-TH"!==he}(S)?'height="'.concat(m.h,'" width="').concat(m.w,'" ').concat(b?"":'textLength="'.concat(m.w,'"')):"",">")+"".concat(z,"</text>")}function Wi(_,m,b,S,B){var z='<?xml version="1.0" encoding="UTF-8"?>\n<svg class="logo" viewBox="0 0 105 43" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <title>Apple Logo</title>\n <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g fill="#FFF">\n <path d="M19.4028,5.5674 C20.6008,4.0684 21.4138,2.0564 21.1998,0.0004 C19.4458,0.0874 17.3058,1.1574 16.0668,2.6564 C14.9538,3.9414 13.9688,6.0374 14.2258,8.0074 C16.1948,8.1784 18.1618,7.0244 19.4028,5.5674"></path>\n <path d="M21.1772,8.3926 C18.3182,8.2226 15.8872,10.0156 14.5212,10.0156 C13.1552,10.0156 11.0642,8.4786 8.8022,8.5196 C5.8592,8.5626 3.1282,10.2276 1.6342,12.8746 C-1.4378,18.1696 0.8232,26.0246 3.8112,30.3376 C5.2622,32.4716 7.0102,34.8206 9.3142,34.7366 C11.4912,34.6506 12.3442,33.3266 14.9902,33.3266 C17.6352,33.3266 18.4042,34.7366 20.7082,34.6936 C23.0972,34.6506 24.5922,32.5586 26.0422,30.4226 C27.7072,27.9906 28.3882,25.6426 28.4312,25.5126 C28.3882,25.4706 23.8232,23.7186 23.7812,18.4676 C23.7382,14.0706 27.3652,11.9786 27.5362,11.8496 C25.4882,8.8196 22.2872,8.4786 21.1772,8.3926"></path>\n <path d="M85.5508,43.0381 L85.5508,39.1991 C85.8628,39.2421 86.6158,39.2871 87.0158,39.2871 C89.2138,39.2871 90.4558,38.3551 91.2108,35.9581 L91.6548,34.5371 L83.2428,11.2321 L88.4368,11.2321 L94.2958,30.1421 L94.4068,30.1421 L100.2668,11.2321 L105.3278,11.2321 L96.6048,35.7141 C94.6078,41.3291 92.3208,43.1721 87.4828,43.1721 C87.1048,43.1721 85.8838,43.1271 85.5508,43.0381"></path>\n <path d="M42.6499,19.3555 L48.3549,19.3555 C52.6829,19.3555 55.1469,17.0255 55.1469,12.9855 C55.1469,8.9455 52.6829,6.6375 48.3769,6.6375 L42.6499,6.6375 L42.6499,19.3555 Z M49.6869,2.4425 C55.9009,2.4425 60.2289,6.7265 60.2289,12.9625 C60.2289,19.2225 55.8129,23.5285 49.5309,23.5285 L42.6499,23.5285 L42.6499,34.4705 L37.6779,34.4705 L37.6779,2.4425 L49.6869,2.4425 Z"></path>\n <path d="M76.5547,25.7705 L76.5547,23.9715 L71.0287,24.3275 C67.9207,24.5275 66.3007,25.6815 66.3007,27.7015 C66.3007,29.6545 67.9887,30.9195 70.6287,30.9195 C74.0027,30.9195 76.5547,28.7665 76.5547,25.7705 M61.4617,27.8345 C61.4617,23.7285 64.5917,21.3755 70.3627,21.0205 L76.5547,20.6425 L76.5547,18.8675 C76.5547,16.2705 74.8457,14.8495 71.8057,14.8495 C69.2967,14.8495 67.4777,16.1375 67.0997,18.1125 L62.6167,18.1125 C62.7497,13.9615 66.6567,10.9435 71.9387,10.9435 C77.6207,10.9435 81.3267,13.9175 81.3267,18.5345 L81.3267,34.4705 L76.7327,34.4705 L76.7327,30.6305 L76.6217,30.6305 C75.3127,33.1395 72.4267,34.7145 69.2967,34.7145 C64.6807,34.7145 61.4617,31.9625 61.4617,27.8345"></path>\n </g>\n </g>\n</svg>'.replace("<svg","<svg ".concat(B?'id="'.concat(B,'"'):"",' x="').concat(_,'" y="').concat(m,'" height="').concat(b,'" width="').concat(35,'"'));return"black"!==S&&(z=z.replace('fill="#FFF"','fill="#000"')),z}function Ra(_){var m=Oa(_.metadata,_.buttonType),b=_.metadata.ls,{width:S,domStr:B}=m.reduce((z,he,ct)=>{var Yt;if("%@"===he.t){ct>0&&new RegExp(/\s$/).test(z.prev)&&(z.width=z.width+1);var rr=0===ct||ct===m.length-1;return{domStr:z.domStr+Wi(z.width+.2,7.92,15,_.buttonStyle),width:z.width+35+(rr?.2:.4),prev:he.t}}return"%@"===z.prev&&null!==(Yt=he.t)&&void 0!==Yt&&Yt.startsWith(" ")?z.width=z.width+1:"%@"===z.prev&&(z.width=z.width+.2),{domStr:z.domStr+Sr(z.width,he,!!_.metadata.rtl,_.locale,b),width:z.width+he.w,prev:he.t}},{width:12.5,domStr:"",prev:""});return{width:S+12.5,domStr:B}}function Ys(_,m=!1){return'<svg id="svg-logo" viewBox="0 0 '.concat(35," ").concat(15,'" ').concat(m?'class="hidden"':"",">\n ").concat(Wi(0,3.85,7.3,_,"svg-logo"),"\n </svg>")}function Tr(_){if("plain"===_.buttonType)return Ys(_.buttonStyle,!1);var{width:m,domStr:b}=Ra(_),S=Ks();return'<svg id="svg-text" viewBox="0 0 '.concat(m,' 28.571" aria-hidden="true">\n <defs>\n <style>\n text {\n fill: ').concat("black"===_.buttonStyle?"#FFF":"#000",";\n font-family: ").concat(S?"-apple-system":"apple-pay-btn-".concat(_.locale),";\n font-size: ").concat(_.metadata.s,";\n font-weight: ").concat(_.metadata.w||500,";\n }\n </style>\n </defs>\n <g>\n ").concat(b,"\n </g>\n </svg>\n ").concat(Ys(_.buttonStyle,!0))}var Vr,_,wc={"en-US":{l:{a:[{w:110.86,h:18,t:"Add Money with %@"}],bo:[{w:68.8,h:18,t:"Book with %@"}],bu:[{w:60.39,h:18,t:"Buy with %@"}],ch:[{w:102.89,h:18,t:"Check out with %@"}],ci:[{w:95.58,h:18,t:"Continue with %@"}],co:[{w:105.94,h:18,t:"Contribute with %@"}],d:[{w:83,h:18,t:"Donate with %@"}],o:[{w:72.86,h:18,t:"Order with %@"}],pa:[{w:59,h:18,t:"Pay with %@"}],rl:[{w:80.89,h:18,t:"Reload with %@"}],rn:[{w:65.67,h:18,t:"Rent with %@"}],se:[{w:45.88,h:18,t:"Set up %@"}],sb:[{w:102.14,h:18,t:"Subscribe with %@"}],sp:[{w:88.67,h:18,t:"Support with %@"}],ti:[{w:55.58,h:18,t:"Tip with %@"}],to:[{w:81.66,h:18,t:"Top Up with %@"}]},s:"15px",ls:"0.22px"},"fr-FR":{l:{a:[{w:159.45,h:18,t:"Ajouter de l\u2019argent avec %@"}],bo:[{w:96.92,h:18,t:"R\xe9server avec %@"}],bu:[{w:90.47,h:18,t:"Acheter avec %@"}],ch:[{w:75.22,h:18,t:"Payer avec %@"}],ci:[{w:108.56,h:18,t:"Poursuivre avec %@"}],co:[{w:109.41,h:18,t:"Contribuer avec %@"}],d:[{w:118.92,h:18,t:"Faire un don avec %@"}],o:[{w:120.53,h:18,t:"Commander avec %@"}],pa:[{w:75.22,h:18,t:"Payer avec %@"}],rl:[{w:106.7,h:18,t:"Recharger avec %@"}],rn:[{w:75.95,h:18,t:"Louer avec %@"}],se:[{w:74.19,h:18,t:"Configurer %@"}],sb:[{w:105.61,h:18,t:"S\u2019abonner avec %@"}],sp:[{w:93.98,h:18,t:"Soutenir avec %@"}],ti:[{w:173.25,h:18,t:"Laisser un pourboire avec %@"}],to:[{w:106.7,h:18,t:"Recharger avec %@"}]},s:"15px",ls:"0.22px"},"el-GR":{l:{a:[{w:190.19,h:18,t:"\u03a0\u03c1\u03bf\u03c3\u03b8\u03ae\u03ba\u03b7 \u03c7\u03c1\u03b7\u03bc\u03ac\u03c4\u03c9\u03bd \u03bc\u03ad\u03c3\u03c9 %@"}],bo:[{w:106,h:18,t:"\u039a\u03c1\u03ac\u03c4\u03b7\u03c3\u03b7 \u03bc\u03ad\u03c3\u03c9 %@"}],bu:[{w:87.64,h:18,t:"\u0391\u03b3\u03bf\u03c1\u03ac \u03bc\u03ad\u03c3\u03c9 %@"}],ch:[{w:109.66,h:18,t:"\u03a0\u03bb\u03b7\u03c1\u03c9\u03bc\u03ae \u03bc\u03ad\u03c3\u03c9 %@"}],ci:[{w:95.81,h:18,t:"\u03a3\u03c5\u03bd\u03ad\u03c7\u03b5\u03b9\u03b1 \u03bc\u03b5 \xab"},{w:9.42,h:18,t:"\xbb"}],co:[{w:127.23,h:18,t:"\u03a3\u03c5\u03bd\u03b5\u03b9\u03c3\u03c6\u03bf\u03c1\u03ac \u03bc\u03ad\u03c3\u03c9 %@"}],d:[{w:90.83,h:18,t:"\u0394\u03c9\u03c1\u03b5\u03ac \u03bc\u03ad\u03c3\u03c9 %@"}],o:[{w:127.36,h:18,t:"\u03a0\u03b1\u03c1\u03b1\u03b3\u03b3\u03b5\u03bb\u03af\u03b1 \u03bc\u03ad\u03c3\u03c9 %@"}],pa:[{w:89.17,h:18,t:"\u03a0\u03bb\u03b7\u03c1\u03c9\u03bc\u03ae \u03bc\u03b5 %@"}],rl:[{w:153.41,h:18,t:"\u0395\u03c0\u03b1\u03bd\u03b1\u03c6\u03cc\u03c1\u03c4\u03c9\u03c3\u03b7 \u03bc\u03ad\u03c3\u03c9 %@"}],rn:[{w:113.61,h:18,t:"\u0395\u03bd\u03bf\u03b9\u03ba\u03af\u03b1\u03c3\u03b7 \u03bc\u03ad\u03c3\u03c9 %@"}],se:[{w:92.92,h:18,t:"\u0394\u03b9\u03b1\u03bc\u03cc\u03c1\u03c6\u03c9\u03c3\u03b7 %@"}],sb:[{w:112.38,h:18,t:"\u03a3\u03c5\u03bd\u03b4\u03c1\u03bf\u03bc\u03ae \u03bc\u03ad\u03c3\u03c9 %@"}],sp:[{w:126.31,h:18,t:"\u03a5\u03c0\u03bf\u03c3\u03c4\u03ae\u03c1\u03b9\u03be\u03b7 \u03bc\u03ad\u03c3\u03c9 %@"}],ti:[{w:132.8,h:18,t:"\u03a6\u03b9\u03bb\u03bf\u03b4\u03ce\u03c1\u03b7\u03bc\u03b1 \u03bc\u03ad\u03c3\u03c9 %@"}],to:[{w:116.41,h:18,t:"\u0391\u03bd\u03b1\u03bd\u03ad\u03c9\u03c3\u03b7 \u03bc\u03ad\u03c3\u03c9 %@"}]},s:"15px",ls:"0.22px"},"zh-HK":{l:{a:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u589e\u503c"}],bo:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u8a02\u4f4d"}],bu:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u8cfc\u8cb7"}],ch:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u7d50\u5e33"}],ci:[{w:32.61,h:18,t:"\u4f7f\u7528 "},{w:32.61,h:18,t:" \u7e7c\u7e8c"}],co:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u6350\u8d08"}],d:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u6350\u6b3e"}],o:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u8a02\u8cfc"}],pa:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u4ed8\u6b3e"}],rl:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u589e\u503c"}],rn:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u79df\u501f"}],se:[{w:32.61,h:18,t:"\u8a2d\u5b9a %@"}],sb:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u8a02\u95b2"}],sp:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u652f\u6301"}],ti:[{w:17.81,h:18,t:"\u7528 "},{w:62.2,h:18,t:" \u652f\u4ed8\u8cbc\u58eb"}],to:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u589e\u503c"}]},s:"14.8px"},"zh-CN":{l:{a:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u5145\u503c"}],bo:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u9884\u8ba2"}],bu:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u8d2d\u4e70"}],ch:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u7ed3\u8d26"}],ci:[{w:32.61,h:18,t:"\u901a\u8fc7 "},{w:32.61,h:18,t:" \u7ee7\u7eed"}],co:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u6350\u8d60"}],d:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u6350\u6b3e"}],o:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u8ba2\u8d2d"}],pa:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u652f\u4ed8"}],rl:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u5145\u503c"}],rn:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u79df\u501f"}],se:[{w:32.61,h:18,t:"\u8bbe\u7f6e %@"}],sb:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u8ba2\u9605"}],sp:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u652f\u6301"}],ti:[{w:17.81,h:18,t:"\u7528 "},{w:47.41,h:18,t:" \u4ed8\u5c0f\u8d39"}],to:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u5145\u503c"}]},s:"14.8px"},"pt-BR":{l:{a:[{w:152.69,h:18,t:"Adicione Dinheiro com %@"}],bo:[{w:94.23,h:18,t:"Reservar com %@"}],bu:[{w:93.73,h:18,t:"Comprar com %@"}],ch:[{w:73.58,h:18,t:"Pagar com %@"}],ci:[{w:101.13,h:18,t:"Continuar com %@"}],co:[{w:101.52,h:18,t:"Contribua com %@"}],d:[{w:67.33,h:18,t:"Doar com %@"}],o:[{w:119.66,h:18,t:"Encomendar com %@"}],pa:[{w:73.58,h:18,t:"Pagar com %@"}],rl:[{w:108.69,h:18,t:"Recarregar com %@"}],rn:[{w:78.98,h:18,t:"Alugar com %@"}],se:[{w:74.22,h:18,t:"Configurar %@"}],sb:[{w:85.17,h:18,t:"Assinar com %@"}],sp:[{w:78.98,h:18,t:"Apoiar com %@"}],ti:[{w:108.94,h:18,t:"Dar gorjeta com %@"}],to:[{w:108.69,h:18,t:"Recarregar com %@"}]},s:"15px",ls:"0.22px"},"en-AU":{l:{a:[{w:110.86,h:18,t:"Add Money with %@"}],bo:[{w:68.8,h:18,t:"Book with %@"}],bu:[{w:60.39,h:18,t:"Buy with %@"}],ch:[{w:102.89,h:18,t:"Check out with %@"}],ci:[{w:95.58,h:18,t:"Continue with %@"}],co:[{w:105.94,h:18,t:"Contribute with %@"}],d:[{w:83,h:18,t:"Donate with %@"}],o:[{w:72.86,h:18,t:"Order with %@"}],pa:[{w:59,h:18,t:"Pay with %@"}],rl:[{w:80.89,h:18,t:"Reload with %@"}],rn:[{w:65.67,h:18,t:"Rent with %@"}],se:[{w:45.88,h:18,t:"Set up %@"}],sb:[{w:102.14,h:18,t:"Subscribe with %@"}],sp:[{w:88.67,h:18,t:"Support with %@"}],ti:[{w:55.58,h:18,t:"Tip with %@"}],to:[{w:81.66,h:18,t:"Top Up with %@"}]},s:"15px",ls:"0.22px"},"he-IL":{l:{a:[{w:148.58,h:17.22,t:"\u05dc\u05d4\u05d5\u05e1\u05d9\u05e3 \u05db\u05e1\u05e3 \u05d1\u05d0\u05de\u05e6\u05e2\u05d5\u05ea %@"}],bo:[{w:111.2,h:17.22,t:"\u05d4\u05d6\u05de\u05df/\u05d9 \u05d1\u05d0\u05de\u05e6\u05e2\u05d5\u05ea %@"}],bu:[{w:112.61,h:17,t:"\u05e8\u05db\u05d9\u05e9\u05d4 \u05d1\u05d0\u05de\u05e6\u05e2\u05d5\u05ea %@"}],ch:[{w:68.77,h:17.22,t:"\u05dc\u05e7\u05d5\u05e4\u05d4 \u05e2\u05dd %@"}],ci:[{w:77.39,h:17.22,t:"\u05d4\u05de\u05e9\u05da/\u05d9 \u05e2\u05dd %@"}],co:[{w:69.34,h:17,t:"\u05dc\u05ea\u05e8\u05d5\u05dd \u05e2\u05dd %@"}],d:[{w:70.98,h:17,t:"\u05ea\u05e8\u05d5\u05dd/\u05d9 \u05e2\u05dd %@"}],o:[{w:113.98,h:17.22,t:"\u05dc\u05d4\u05d6\u05de\u05d9\u05df \u05d1\u05d0\u05de\u05e6\u05e2\u05d5\u05ea %@"}],pa:[{w:109.45,h:17,t:"\u05e9\u05dc\u05dd/\u05d9 \u05d1\u05d0\u05de\u05e6\u05e2\u05d5\u05ea %@"}],rl:[{w:63.39,h:17.22,t:"\u05dc\u05d8\u05e2\u05d5\u05df \u05e2\u05dd %@"}],rn:[{w:110.7,h:17,t:"\u05dc\u05e9\u05db\u05d5\u05e8 \u05d1\u05d0\u05de\u05e6\u05e2\u05d5\u05ea %@"}],se:[{w:76.44,h:17,t:"\u05dc\u05d4\u05d2\u05d3\u05d9\u05e8 \u05d0\u05ea %@"}],sb:[{w:108.44,h:17,t:"\u05e8\u05d9\u05e9\u05d5\u05dd \u05db\u05de\u05d9\u05e0\u05d5\u05d9 \u05e2\u05dd %@"}],sp:[{w:112.34,h:17.22,t:"\u05dc\u05ea\u05de\u05d5\u05da \u05d1\u05d0\u05de\u05e6\u05e2\u05d5\u05ea %@"}],ti:[{w:150.63,h:17,t:"\u05dc\u05d4\u05e9\u05d0\u05d9\u05e8 \u05d8\u05d9\u05e4 \u05d1\u05d0\u05de\u05e6\u05e2\u05d5\u05ea %@"}],to:[{w:106,h:17,t:"\u05dc\u05de\u05dc\u05d0 \u05d1\u05d0\u05de\u05e6\u05e2\u05d5\u05ea %@"}]},s:"14px",rtl:!0,w:700},"ar-AB":{l:{a:[{w:99.73,h:15,t:"\u0625\u0636\u0627\u0641\u0629 \u0645\u0627\u0644 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 %@"}],bo:[{w:72.73,h:15,t:"\u062d\u062c\u0632 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 %@"}],bu:[{w:74.05,h:15,t:"\u0634\u0631\u0627\u0621 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 %@"}],ch:[{w:111.41,h:15,t:"\u062f\u0641\u0639 \u0627\u0644\u062d\u0633\u0627\u0628 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 %@"}],ci:[{w:33.95,h:15,t:"\u0645\u062a\u0627\u0628\u0639\u0629 %@"}],co:[{w:51.61,h:15,t:"\u0645\u0633\u0627\u0647\u0645\u0629 \u0628\u0640 %@"}],d:[{w:73.14,h:15,t:"\u062a\u0628\u0631\u0639 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 %@"}],o:[{w:74.09,h:15,t:"\u0637\u0644\u0628 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 %@"}],pa:[{w:69.69,h:15,t:"\u062f\u0641\u0639 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 %@"}],rl:[{w:112.33,h:15,t:"\u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u062a\u0639\u0628\u0626\u0629 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 %@"}],rn:[{w:88.36,h:15,t:"\u0627\u0633\u062a\u0626\u062c\u0627\u0631 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 %@"}],se:[{w:29.02,h:15,t:"\u0625\u0639\u062f\u0627\u062f %@"}],sb:[{w:85.2,h:15,t:"\u0627\u0634\u062a\u0631\u0627\u0643 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 %@"}],sp:[{w:71.73,h:15.08,t:"\u062f\u0639\u0645 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 %@"}],ti:[{w:113.48,h:15,t:"\u062f\u0641\u0639 \u0627\u0644\u0625\u0643\u0631\u0627\u0645\u064a\u0629 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 %@"}],to:[{w:112.78,h:15,t:"\u062a\u0639\u0628\u0626\u0629 \u0627\u0644\u0631\u0635\u064a\u062f \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 %@"}]},s:"12px",rtl:!0,w:700},"da-DK":{l:{a:[{w:113.38,h:18,t:"Tilf\xf8j penge med %@"}],bo:[{w:72.86,h:18,t:"Bestil med %@"}],bu:[{w:62.19,h:18,t:"K\xf8b med %@"}],ch:[{w:69.8,h:18,t:"Betal med %@"}],ci:[{w:88.09,h:18,t:"Forts\xe6t med %@"}],co:[{w:79.16,h:18,t:"Bidrag med %@"}],d:[{w:76.38,h:18,t:"Doner med %@"}],o:[{w:72.86,h:18,t:"Bestil med %@"}],pa:[{w:69.8,h:18,t:"Betal med %@"}],rl:[{w:87.45,h:18,t:"Tank op med %@"}],rn:[{w:55.41,h:18,t:"Lej med %@"}],se:[{w:43.45,h:18,t:"Indstil %@"}],sb:[{w:93.02,h:18,t:"Abonner med %@"}],sp:[{w:63.41,h:18,t:"St\xf8t med %@"}],ti:[{w:143.91,h:18,t:"Giv drikkepenge med %@"}],to:[{w:84.28,h:18,t:"Fyld op med %@"}]},s:"15px",ls:"0.22px"},"es-MX":{l:{a:[{w:129.58,h:18,t:"Agregar dinero con %@"}],bo:[{w:90.03,h:18,t:"Reservar con %@"}],bu:[{w:89.53,h:18,t:"Comprar con %@"}],ch:[{w:69.38,h:18,t:"Pagar con %@"}],ci:[{w:96.92,h:18,t:"Continuar con %@"}],co:[{w:97.92,h:18,t:"Contribuir con %@"}],d:[{w:71.52,h:18,t:"Donar con %@"}],o:[{w:65.34,h:18,t:"Pedir con %@"}],pa:[{w:69.38,h:18,t:"Pagar con %@"}],rl:[{w:91.2,h:18,t:"Recargar con %@"}],rn:[{w:75.05,h:18,t:"Rentar con %@"}],se:[{w:74.22,h:18,t:"Configurar %@"}],sb:[{w:105.81,h:18,t:"Suscribirse con %@"}],sp:[{w:78.77,h:18,t:"Apoyar con %@"}],ti:[{w:108.42,h:18,t:"Dar propina con %@"}],to:[{w:124.44,h:18,t:"Cubrir el resto con %@"}]},s:"15px",ls:"0.22px"},"uk-UA":{l:{a:[{w:121.47,h:18,t:"\u041f\u043e\u043f\u043e\u0432\u043d\u0438\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 %@"}],bo:[{w:113.38,h:18,t:"\u0417\u0430\u043c\u043e\u0432\u0438\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 %@"}],bu:[{w:94.89,h:18,t:"\u041a\u0443\u043f\u0438\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 %@"}],ch:[{w:119.34,h:18,t:"\u041e\u0444\u043e\u0440\u043c\u0438\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 %@"}],ci:[{w:101,h:18,t:"\u041f\u0440\u043e\u0434\u043e\u0432\u0436\u0438\u0442\u0438 \u0437 %@"}],co:[{w:155.2,h:18,t:"\u0417\u0440\u043e\u0431\u0438\u0442\u0438 \u0432\u043d\u0435\u0441\u043e\u043a \u0447\u0435\u0440\u0435\u0437 %@"}],d:[{w:145.48,h:18,t:"\u041f\u043e\u0436\u0435\u0440\u0442\u0432\u0443\u0432\u0430\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 %@"}],o:[{w:113.38,h:18,t:"\u0417\u0430\u043c\u043e\u0432\u0438\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 %@"}],pa:[{w:96.17,h:18,t:"\u041e\u043f\u043b\u0430\u0442\u0430 \u0447\u0435\u0440\u0435\u0437 %@"}],rl:[{w:121.47,h:18,t:"\u041f\u043e\u043f\u043e\u0432\u043d\u0438\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 %@"}],rn:[{w:129.73,h:18,t:"\u041e\u0440\u0435\u043d\u0434\u0443\u0432\u0430\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 %@"}],se:[{w:95.08,h:18,t:"\u041d\u0430\u043b\u0430\u0448\u0442\u0443\u0432\u0430\u0442\u0438 %@"}],sb:[{w:132.28,h:18,t:"\u041f\u0456\u0434\u043f\u0438\u0441\u0430\u0442\u0438\u0441\u044f \u0447\u0435\u0440\u0435\u0437 %@"}],sp:[{w:126.63,h:18,t:"\u041f\u0456\u0434\u0442\u0440\u0438\u043c\u0430\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 %@"}],ti:[{w:161.66,h:18,t:"\u0417\u0430\u043b\u0438\u0448\u0438\u0442\u0438 \u0447\u0430\u0439\u043e\u0432\u0456 \u0447\u0435\u0440\u0435\u0437 %@"}],to:[{w:121.47,h:18,t:"\u041f\u043e\u043f\u043e\u0432\u043d\u0438\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 %@"}]},s:"15px"},"tr-TR":{l:{a:[{w:82.14,h:18,t:"%@ ile Para Ekle"}],bo:[{w:134.94,h:18,t:"%@ ile Rezervasyon Yap"}],bu:[{w:72.36,h:18,t:"%@ ile Sat\u0131n Al"}],ch:[{w:49.59,h:18,t:"%@ ile \xd6de"}],ci:[{w:64.34,h:18,t:"%@ ile s\xfcrd\xfcr"}],co:[{w:113.28,h:18,t:"%@ ile Katk\u0131da Bulun"}],d:[{w:86.64,h:18,t:"%@ ile Ba\u011f\u0131\u015f Yap"}],o:[{w:92.42,h:18,t:"%@ ile Sipari\u015f Ver"}],pa:[{w:49.59,h:18,t:"%@ ile \xd6de"}],rl:[{w:114.63,h:18,t:"%@ ile Yeniden Y\xfckle"}],rn:[{w:59.02,h:18,t:"%@ ile Kirala"}],se:[{w:48.86,h:18,t:"Ayarla: %@"}],sb:[{w:83.16,h:18,t:"%@ ile Abone Ol"}],sp:[{w:86.34,h:18,t:"%@ ile Destek Ol"}],ti:[{w:91.27,h:18,t:"%@ ile Bah\u015fi\u015f Ver"}],to:[{w:66.09,h:18,t:"%@ ile Doldur"}]},s:"15px",ls:"0.22px"},"th-TH":{l:{a:[{w:64.11,h:15,t:"\u0e40\u0e15\u0e34\u0e21\u0e40\u0e07\u0e34\u0e19\u0e14\u0e49\u0e27\u0e22 %@"}],bo:[{w:45.84,h:15,t:"\u0e08\u0e2d\u0e07\u0e14\u0e49\u0e27\u0e22 %@"}],bu:[{w:40.47,h:18.41,t:"\u0e0b\u0e37\u0e49\u0e2d\u0e14\u0e49\u0e27\u0e22 %@"}],ch:[{w:69.86,h:15,t:"\u0e0a\u0e33\u0e23\u0e30\u0e40\u0e07\u0e34\u0e19\u0e14\u0e49\u0e27\u0e22 %@"}],ci:[{w:96.7,h:15,t:"\u0e14\u0e33\u0e40\u0e19\u0e34\u0e19\u0e01\u0e32\u0e23\u0e15\u0e48\u0e2d\u0e14\u0e49\u0e27\u0e22 %@"}],co:[{w:76.97,h:15,t:"\u0e21\u0e35\u0e2a\u0e48\u0e27\u0e19\u0e23\u0e48\u0e27\u0e21\u0e14\u0e49\u0e27\u0e22 %@"}],d:[{w:61.7,h:15,t:"\u0e1a\u0e23\u0e34\u0e08\u0e32\u0e04\u0e14\u0e49\u0e27\u0e22 %@"}],o:[{w:39.22,h:17.08,t:"\u0e2a\u0e31\u0e48\u0e07\u0e14\u0e49\u0e27\u0e22 %@"}],pa:[{w:51.52,h:15,t:"\u0e0a\u0e33\u0e23\u0e30\u0e14\u0e49\u0e27\u0e22 %@"}],rl:[{w:79.27,h:15.05,t:"\u0e42\u0e2b\u0e25\u0e14\u0e43\u0e2b\u0e21\u0e48\u0e14\u0e49\u0e27\u0e22 %@"}],rn:[{w:43.58,h:15,t:"\u0e40\u0e0a\u0e48\u0e32\u0e14\u0e49\u0e27\u0e22 %@"}],se:[{w:31.77,h:17.7,t:"\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32 %@"}],sb:[{w:70.42,h:15,t:"\u0e2a\u0e21\u0e31\u0e04\u0e23\u0e23\u0e31\u0e1a\u0e14\u0e49\u0e27\u0e22 %@"}],sp:[{w:73.39,h:15.64,t:"\u0e2a\u0e19\u0e31\u0e1a\u0e2a\u0e19\u0e38\u0e19\u0e14\u0e49\u0e27\u0e22 %@"}],ti:[{w:57.23,h:15,t:"\u0e43\u0e2b\u0e49\u0e17\u0e34\u0e1b\u0e14\u0e49\u0e27\u0e22 %@"}],to:[{w:45.75,h:15,t:"\u0e40\u0e15\u0e34\u0e21\u0e14\u0e49\u0e27\u0e22 %@"}]},s:"13px"},"ro-RO":{l:{a:[{w:114.67,h:18,t:"Ad\u0103uga\u021bi bani cu %@"}],bo:[{w:84.72,h:18,t:"Rezerva\u021bi cu %@"}],bu:[{w:92.45,h:18,t:"Cump\u0103ra\u021bi cu %@"}],ch:[{w:151.14,h:18,t:"Finaliza\u021bi tranzac\u021bia cu %@"}],ci:[{w:91.88,h:18,t:"Continua\u021bi cu %@"}],co:[{w:92.88,h:18,t:"Contribui\u021bi cu %@"}],d:[{w:66.47,h:18,t:"Dona\u021bi cu %@"}],o:[{w:95.94,h:18,t:"Comanda\u021bi cu %@"}],pa:[{w:60.25,h:18,t:"Pl\u0103ti\u021bi cu %@"}],rl:[{w:97.3,h:18,t:"Re\xeenc\u0103rca\u021bi cu %@"}],rn:[{w:80.72,h:18,t:"\xcenchiria\u021bi cu %@"}],se:[{w:77.58,h:18,t:"Configura\u021bi %@"}],sb:[{w:96.95,h:18,t:"Abona\u021bi\u2011v\u0103 cu %@"}],sp:[{w:92.88,h:18,t:"Contribui\u021bi cu %@"}],ti:[{w:110.34,h:18,t:"Oferi\u021bi bac\u0219i\u0219 cu %@"}],to:[{w:97.3,h:18,t:"Re\xeenc\u0103rca\u021bi cu %@"}]},s:"15px",ls:"0.22px"},"fi-FI":{l:{a:[{w:78.92,h:18,t:"Lis\xe4\xe4 rahaa "},{w:14.75,h:18,t:"lla"}],bo:[{w:74.11,h:18,t:"Tee varaus "},{w:14.75,h:18,t:"lla"}],bu:[{w:34.66,h:18,t:"Osta "},{w:14.75,h:18,t:"lla"}],ch:[{w:121.22,h:18,t:"Siirry maksamaan "},{w:14.75,h:18,t:"lla"}],ci:[{w:39.81,h:18,t:"Jatka "},{w:14.75,h:18,t:"lla"}],co:[{w:56.03,h:18,t:"Lahjoita "},{w:14.75,h:18,t:"lla"}],d:[{w:56.03,h:18,t:"Lahjoita "},{w:14.75,h:18,t:"lla"}],o:[{w:34.69,h:18,t:"Tilaa "},{w:14.75,h:18,t:"lla"}],pa:[{w:46.7,h:18,t:"Maksa "},{w:14.75,h:18,t:"lla"}],rl:[{w:40.13,h:18,t:"Lataa "},{w:14.75,h:18,t:"lla"}],rn:[{w:57.97,h:18,t:"Vuokraa "},{w:14.75,h:18,t:"lla"}],se:[{w:27.25,h:18,t:"Ota "},{w:61.7,h:18,t:" k\xe4ytt\xf6\xf6n"}],sb:[{w:34.69,h:18,t:"Tilaa "},{w:14.75,h:18,t:"lla"}],sp:[{w:27.2,h:18,t:"Tue "},{w:14.75,h:18,t:"lla"}],ti:[{w:70.44,h:18,t:"Anna tippi "},{w:14.75,h:18,t:"lla"}],to:[{w:68.19,h:18,t:"T\xe4ydenn\xe4 "},{w:14.75,h:18,t:"lla"}]},s:"15px",ls:"0.22px"},"pl-PL":{l:{a:[{w:91.52,h:18,t:"Dodaj \u015brodki ("},{w:5.16,h:18,t:")"}],bo:[{w:146.19,h:18,t:"Zarezerwuj, u\u017cywaj\u0105c %@"}],bu:[{w:98.39,h:18,t:"Kup, u\u017cywaj\u0105c %@"}],ch:[{w:175.7,h:18,t:"Sfinalizuj zakup, u\u017cywaj\u0105c %@"}],ci:[{w:80.53,h:18,t:"Kontynuuj - %@"}],co:[{w:92.56,h:18,t:"Wnie\u015b wk\u0142ad ("},{w:5.16,h:18,t:")"}],d:[{w:165.52,h:18,t:"Przeka\u017c datek, u\u017cywaj\u0105c %@"}],o:[{w:58.28,h:18,t:"Zam\xf3w ("},{w:5.16,h:18,t:")"}],pa:[{w:117.69,h:18,t:"Zap\u0142a\u0107, u\u017cywaj\u0105c %@"}],rl:[{w:114.61,h:18,t:"Uzupe\u0142nij \u015brodki ("},{w:5.16,h:18,t:")"}],rn:[{w:77.73,h:18,t:"Wypo\u017cycz ("},{w:5.16,h:18,t:")"}],se:[{w:79.19,h:18,t:"Skonfiguruj %@"}],sb:[{w:147.33,h:18,t:"Subskrybuj, u\u017cywaj\u0105c %@"}],sp:[{w:70.06,h:18,t:"Wesprzyj ("},{w:5.16,h:18,t:")"}],ti:[{w:89.44,h:18,t:"Daj napiwek ("},{w:5.16,h:18,t:")"}],to:[{w:59.44,h:18,t:"Do\u0142aduj ("},{w:5.16,h:18,t:")"}]},s:"15px",ls:"0.22px"},"zh-TW":{l:{a:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u5132\u503c"}],bo:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u9810\u7d04"}],bu:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u8cfc\u8cb7"}],ch:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u7d50\u5e33"}],ci:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u7e7c\u7e8c"}],co:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u6350\u52a9"}],d:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u6350\u6b3e"}],o:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u8a02\u8cfc"}],pa:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u4ed8\u6b3e"}],rl:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u5145\u503c"}],rn:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u79df\u501f"}],se:[{w:32.61,h:18,t:"\u8a2d\u5b9a %@"}],sb:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u8a02\u95b1"}],sp:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u652f\u63f4"}],ti:[{w:17.81,h:18,t:"\u7528 "},{w:62.2,h:18,t:" \u652f\u4ed8\u5c0f\u8cbb"}],to:[{w:17.81,h:18,t:"\u7528 "},{w:32.61,h:18,t:" \u52a0\u503c"}]},s:"14.8px"},"fr-CA":{l:{a:[{w:154.91,h:18,t:"Ajouter des fonds avec %@"}],bo:[{w:96.92,h:18,t:"R\xe9server avec %@"}],bu:[{w:90.47,h:18,t:"Acheter avec %@"}],ch:[{w:75.22,h:18,t:"Payer avec %@"}],ci:[{w:108.56,h:18,t:"Poursuivre avec %@"}],co:[{w:109.41,h:18,t:"Contribuer avec %@"}],d:[{w:118.92,h:18,t:"Faire un don avec %@"}],o:[{w:120.53,h:18,t:"Commander avec %@"}],pa:[{w:75.22,h:18,t:"Payer avec %@"}],rl:[{w:106.7,h:18,t:"Recharger avec %@"}],rn:[{w:75.95,h:18,t:"Louer avec %@"}],se:[{w:74.19,h:18,t:"Configurer %@"}],sb:[{w:105.61,h:18,t:"S\u2019abonner avec %@"}],sp:[{w:93.98,h:18,t:"Soutenir avec %@"}],ti:[{w:174.38,h:18,t:"Donner un pourboire avec %@"}],to:[{w:106.7,h:18,t:"Recharger avec %@"}]},s:"15px",ls:"0.22px"},"en-GB":{l:{a:[{w:110.86,h:18,t:"Add Money with %@"}],bo:[{w:68.8,h:18,t:"Book with %@"}],bu:[{w:60.39,h:18,t:"Buy with %@"}],ch:[{w:102.89,h:18,t:"Check out with %@"}],ci:[{w:95.58,h:18,t:"Continue with %@"}],co:[{w:105.94,h:18,t:"Contribute with %@"}],d:[{w:83,h:18,t:"Donate with %@"}],o:[{w:72.86,h:18,t:"Order with %@"}],pa:[{w:59,h:18,t:"Pay with %@"}],rl:[{w:80.89,h:18,t:"Reload with %@"}],rn:[{w:65.67,h:18,t:"Rent with %@"}],se:[{w:45.88,h:18,t:"Set up %@"}],sb:[{w:102.14,h:18,t:"Subscribe with %@"}],sp:[{w:88.67,h:18,t:"Support with %@"}],ti:[{w:55.58,h:18,t:"Tip with %@"}],to:[{w:81.66,h:18,t:"Top Up with %@"}]},s:"15px",ls:"0.22px"},"es-ES":{l:{a:[{w:120.05,h:18,t:"A\xf1adir dinero con %@"}],bo:[{w:90.03,h:18,t:"Reservar con %@"}],bu:[{w:89.53,h:18,t:"Comprar con %@"}],ch:[{w:69.38,h:18,t:"Pagar con %@"}],ci:[{w:96.92,h:18,t:"Continuar con %@"}],co:[{w:97.92,h:18,t:"Contribuir con %@"}],d:[{w:71.52,h:18,t:"Donar con %@"}],o:[{w:65.34,h:18,t:"Pedir con %@"}],pa:[{w:69.38,h:18,t:"Pagar con %@"}],rl:[{w:91.2,h:18,t:"Recargar con %@"}],rn:[{w:81.73,h:18,t:"Alquilar con %@"}],se:[{w:74.22,h:18,t:"Configurar %@"}],sb:[{w:105.81,h:18,t:"Suscribirse con %@"}],sp:[{w:97.92,h:18,t:"Contribuir con %@"}],ti:[{w:108.42,h:18,t:"Dar propina con %@"}],to:[{w:91.2,h:18,t:"Recargar con %@"}]},s:"15px",ls:"0.22px"},"de-DE":{l:{a:[{w:58.7,h:18,t:"Geld mit "},{w:77.88,h:18,t:" hinzuf\xfcgen"}],bo:[{w:24.41,h:18,t:"Mit "},{w:53.23,h:18,t:" buchen"}],bu:[{w:24.41,h:18,t:"Mit "},{w:48.45,h:18,t:" kaufen"}],ch:[{w:24.41,h:18,t:"Mit "},{w:63.94,h:18,t:" bezahlen"}],ci:[{w:70.61,h:18,t:"Weiter mit %@"}],co:[{w:24.41,h:18,t:"Mit "},{w:66.64,h:18,t:" beitragen"}],d:[{w:24.41,h:18,t:"Mit "},{w:61,h:18,t:" spenden"}],o:[{w:24.41,h:18,t:"Mit "},{w:63.91,h:18,t:" bestellen"}],pa:[{w:24.41,h:18,t:"Mit "},{w:63.94,h:18,t:" bezahlen"}],rl:[{w:24.41,h:18,t:"Mit "},{w:86.28,h:18,t:" erneut laden"}],rn:[{w:24.41,h:18,t:"Mit "},{w:43.22,h:18,t:" leihen"}],se:[{w:69.55,h:18,t:"%@ einrichten"}],sb:[{w:24.41,h:18,t:"Mit "},{w:77.94,h:18,t:" abonnieren"}],sp:[{w:24.41,h:18,t:"Mit "},{w:87.59,h:18,t:" unterst\xfctzen"}],ti:[{w:64.16,h:18,t:"%@ Trinkgeld"}],to:[{w:24.41,h:18,t:"Mit "},{w:61.42,h:18,t:" auff\xfcllen"}]},s:"15px",ls:"0.22px"},"nb-NO":{l:{a:[{w:135.02,h:18,t:"Legg til penger med %@"}],bo:[{w:76.34,h:18,t:"Bestill med %@"}],bu:[{w:66.05,h:18,t:"Kj\xf8p med %@"}],ch:[{w:69.8,h:18,t:"Betal med %@"}],ci:[{w:62.28,h:18,t:"Fortsett i %@"}],co:[{w:70.47,h:18,t:"Bidra med %@"}],d:[{w:76.38,h:18,t:"Doner med %@"}],o:[{w:76.34,h:18,t:"Bestill med %@"}],pa:[{w:69.8,h:18,t:"Betal med %@"}],rl:[{w:78.59,h:18,t:"Fyll p\xe5 med %@"}],rn:[{w:55.41,h:18,t:"Lei med %@"}],se:[{w:72.77,h:18,t:"Konfigurer %@"}],sb:[{w:93.02,h:18,t:"Abonner med %@"}],sp:[{w:68.44,h:18,t:"St\xf8tt med %@"}],ti:[{w:85.83,h:18,t:"Gi driks med %@"}],to:[{w:78.59,h:18,t:"Fyll p\xe5 med %@"}]},s:"15px",ls:"0.22px"},"ca-ES":{l:{a:[{w:120.41,h:18,t:"Afegir diners amb %@"}],bo:[{w:94.61,h:18,t:"Reservar amb %@"}],bu:[{w:94.11,h:18,t:"Comprar amb %@"}],ch:[{w:73.97,h:18,t:"Pagar amb %@"}],ci:[{w:96.38,h:18,t:"Continua amb %@"}],co:[{w:102.52,h:18,t:"Contribuir amb %@"}],d:[{w:141.59,h:18,t:"Fer una donaci\xf3 amb %@"}],o:[{w:96.41,h:18,t:"Demanar amb %@"}],pa:[{w:73.97,h:18,t:"Pagar amb %@"}],rl:[{w:109.06,h:18,t:"Recarregar amb %@"}],rn:[{w:77.56,h:18,t:"Llogar amb %@"}],se:[{w:74.22,h:18,t:"Configurar %@"}],sb:[{w:117.7,h:18,t:"Subscriure\u2019s amb %@"}],sp:[{w:129.63,h:18,t:"Compatibilitat amb %@"}],ti:[{w:132.08,h:18,t:"Deixar propina amb %@"}],to:[{w:109.06,h:18,t:"Recarregar amb %@"}]},s:"15px",ls:"0.22px"},"ja-JP":{l:{a:[{w:75,h:18,t:"%@\u3067\u30c1\u30e3\u30fc\u30b8"}],bo:[{w:45,h:18,t:"%@\u3067\u4e88\u7d04"}],bu:[{w:45,h:18,t:"%@\u3067\u8cfc\u5165"}],ch:[{w:90,h:18,t:"%@\u3067\u8cfc\u5165\u306b\u9032\u3080"}],ci:[{w:60,h:18,t:"%@\u3067\u7d9a\u3051\u308b"}],co:[{w:45,h:18,t:"%@\u3067\u732e\u91d1"}],d:[{w:45,h:18,t:"%@\u3067\u5bc4\u4ed8"}],o:[{w:45,h:18,t:"%@\u3067\u6ce8\u6587"}],pa:[{w:60,h:18,t:"%@\u3067\u652f\u6255\u3046"}],rl:[{w:75,h:18,t:"%@\u3067\u30c1\u30e3\u30fc\u30b8"}],rn:[{w:75,h:18,t:"%@\u3067\u30ec\u30f3\u30bf\u30eb"}],se:[{w:45,h:18,t:"%@\u3092\u8a2d\u5b9a"}],sb:[{w:150,h:18,t:"%@\u3067\u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3"}],sp:[{w:45,h:18,t:"%@\u3067\u652f\u63f4"}],ti:[{w:60,h:18,t:"%@\u3067\u30c1\u30c3\u30d7"}],to:[{w:75,h:18,t:"%@\u3067\u30c1\u30e3\u30fc\u30b8"}]},s:"15px",w:600},"vi-VN":{l:{a:[{w:95.7,h:18,t:"N\u1ea1p ti\u1ec1n b\u1eb1ng %@"}],bo:[{w:91.86,h:18,t:"\u0110\u1eb7t ch\u1ed7 b\u1eb1ng %@"}],bu:[{w:69.39,h:18,t:"Mua b\u1eb1ng %@"}],ch:[{w:115.56,h:18,t:"Thanh to\xe1n b\u1eb1ng %@"}],ci:[{w:93.8,h:18,t:"Ti\u1ebfp t\u1ee5c b\u1eb1ng %@"}],co:[{w:105.2,h:18,t:"\u0110\xf3ng g\xf3p b\u1eb1ng %@"}],d:[{w:113.02,h:18,t:"Quy\xean g\xf3p b\u1eb1ng %@"}],o:[{w:100.55,h:18,t:"\u0110\u1eb7t h\xe0ng b\u1eb1ng %@"}],pa:[{w:115.56,h:18,t:"Thanh to\xe1n b\u1eb1ng %@"}],rl:[{w:85.63,h:18,t:"N\u1ea1p l\u1ea1i b\u1eb1ng %@"}],rn:[{w:74.27,h:18,t:"Thu\xea b\u1eb1ng %@"}],se:[{w:60.72,h:18,t:"Thi\u1ebft l\u1eadp %@"}],sb:[{w:94.59,h:18,t:"\u0110\u0103ng k\xfd b\u1eb1ng %@"}],sp:[{w:81.38,h:18,t:"H\u1ed7 tr\u1ee3 b\u1eb1ng %@"}],ti:[{w:61,h:18,t:"Tip b\u1eb1ng %@"}],to:[{w:95.7,h:18,t:"N\u1ea1p ti\u1ec1n b\u1eb1ng %@"}]},s:"15px",ls:"0.22px"},"nl-NL":{l:{a:[{w:123.2,h:18,t:"Voeg geld toe met %@"}],bo:[{w:99.25,h:18,t:"Reserveer met %@"}],bu:[{w:66.8,h:18,t:"Koop met %@"}],ch:[{w:74.06,h:18,t:"Betaal met %@"}],ci:[{w:96.69,h:18,t:"Ga verder met %@"}],co:[{w:144.58,h:18,t:"Doe een bijdrage met %@"}],d:[{w:80.8,h:18,t:"Doneer met %@"}],o:[{w:73.63,h:18,t:"Bestel met %@"}],pa:[{w:74.06,h:18,t:"Betaal met %@"}],rl:[{w:125.09,h:18,t:"Laad opnieuw met %@"}],rn:[{w:64.84,h:18,t:"Huur met %@"}],se:[{w:82.33,h:18,t:"Configureer %@"}],sb:[{w:112.31,h:18,t:"Abonneer je met %@"}],sp:[{w:71.16,h:18,t:"Steun met %@"}],ti:[{w:92.61,h:18,t:"Geef fooi met %@"}],to:[{w:88.31,h:18,t:"Verhoog met %@"}]},s:"15px",ls:"0.22px"},"cs-CZ":{l:{a:[{w:114.92,h:18,t:"P\u0159idat hotovost s %@"}],bo:[{w:100.98,h:18,t:"Zarezervovat s %@"}],bu:[{w:56.98,h:18,t:"Koupit s %@"}],ch:[{w:65.02,h:18,t:"Zaplatit s %@"}],ci:[{w:88.44,h:18,t:"Pokra\u010dovat s %@"}],co:[{w:60.81,h:18,t:"P\u0159isp\u011bt s %@"}],d:[{w:65.84,h:18,t:"Darovat s %@"}],o:[{w:75.61,h:18,t:"Objednat s %@"}],pa:[{w:65.02,h:18,t:"Zaplatit s %@"}],rl:[{w:49.97,h:18,t:"Dob\xedt s %@"}],rn:[{w:68.38,h:18,t:"Vyp\u016fj\u010dit s %@"}],se:[{w:58.19,h:18,t:"Nastavit %@"}],sb:[{w:78.28,h:18,t:"P\u0159edplatit s %@"}],sp:[{w:70.45,h:18,t:"Podpo\u0159it s %@"}],ti:[{w:103.66,h:18,t:"D\xe1t spropitn\xe9 s %@"}],to:[{w:61.77,h:18,t:"Doplnit s %@"}]},s:"15px",ls:"0.22px"},"sv-SE":{l:{a:[{w:138.39,h:18,t:"L\xe4gg till pengar med %@"}],bo:[{w:69.44,h:18,t:"Boka med %@"}],bu:[{w:62.11,h:18,t:"K\xf6p med %@"}],ch:[{w:77.78,h:18,t:"Betala med %@"}],ci:[{w:88.16,h:18,t:"Forts\xe4tt med %@"}],co:[{w:70.47,h:18,t:"Bidra med %@"}],d:[{w:84.2,h:18,t:"Donera med %@"}],o:[{w:80.8,h:18,t:"Best\xe4ll med %@"}],pa:[{w:77.78,h:18,t:"Betala med %@"}],rl:[{w:78.59,h:18,t:"Fyll p\xe5 med %@"}],rn:[{w:59.63,h:18,t:"Hyr med %@"}],se:[{w:47.42,h:18,t:"St\xe4ll in %@"}],sb:[{w:121.25,h:18,t:"Prenumerera med %@"}],sp:[{w:67.13,h:18,t:"St\xf6d med %@"}],ti:[{w:98.45,h:18,t:"Ge dricks med %@"}],to:[{w:78.59,h:18,t:"Fyll p\xe5 med %@"}]},s:"15px",ls:"0.22px"},"it-IT":{l:{a:[{w:118.47,h:18,t:"Versa denaro con %@"}],bo:[{w:82.81,h:18,t:"Prenota con %@"}],bu:[{w:89.77,h:18,t:"Acquista con %@"}],ch:[{w:64.23,h:18,t:"Paga con %@"}],ci:[{w:91.78,h:18,t:"Continua con %@"}],co:[{w:111.69,h:18,t:"Contribuisci con %@"}],d:[{w:150.94,h:18,t:"Fai una donazione con %@"}],o:[{w:75.78,h:18,t:"Ordina con %@"}],pa:[{w:64.23,h:18,t:"Paga con %@"}],rl:[{w:84.5,h:18,t:"Ricarica con %@"}],rn:[{w:90.75,h:18,t:"Noleggia con %@"}],se:[{w:69.08,h:18,t:"Configura %@"}],sb:[{w:91.91,h:18,t:"Abbonati con %@"}],sp:[{w:84.77,h:18,t:"Sostieni con %@"}],ti:[{w:153.83,h:18,t:"Lascia una mancia con %@"}],to:[{w:84.5,h:18,t:"Ricarica con %@"}]},s:"15px",ls:"0.22px"},"hr-HR":{l:{a:[{w:145.14,h:18,t:"Dodaj novac koriste\u0107i %@"}],bo:[{w:128.28,h:18,t:"Rezerviraj koriste\u0107i %@"}],bu:[{w:92.84,h:18,t:"Kupi koriste\u0107i %@"}],ch:[{w:114.06,h:18,t:"Naplati koriste\u0107i: %@"}],ci:[{w:63.89,h:18,t:"Nastavi s %@"}],co:[{w:126.33,h:18,t:"Doprinesi koriste\u0107i %@"}],d:[{w:109.88,h:18,t:"Doniraj koriste\u0107i %@"}],o:[{w:106.19,h:18,t:"Naru\u010di koriste\u0107i %@"}],pa:[{w:91.72,h:18,t:"Plati koriste\u0107i %@"}],rl:[{w:110.16,h:18,t:"Napuni koriste\u0107i %@"}],rn:[{w:109.28,h:18,t:"Unajmi koriste\u0107i %@"}],se:[{w:48.05,h:18,t:"Podesi %@"}],sb:[{w:137.25,h:18,t:"Pretplati se koriste\u0107i %@"}],sp:[{w:104.63,h:18,t:"Podr\u017ei koriste\u0107i %@"}],ti:[{w:173.84,h:18,t:"Ostavi napojnicu koriste\u0107i %@"}],to:[{w:127.06,h:18,t:"Nadoplati koriste\u0107i %@"}]},s:"15px",ls:"0.22px"},"id-ID":{l:{a:[{w:146.39,h:18,t:"Tambah uang dengan %@"}],bo:[{w:97.41,h:18,t:"Pesan dengan %@"}],bu:[{w:81.23,h:18,t:"Beli dengan %@"}],ch:[{w:138.91,h:18,t:"Lanjut bayar dengan %@"}],ci:[{w:122.27,h:18,t:"Lanjutkan dengan %@"}],co:[{w:145.36,h:18,t:"Berkontribusi dengan %@"}],d:[{w:102.89,h:18,t:"Donasi dengan %@"}],o:[{w:94.8,h:18,t:"Order dengan %@"}],pa:[{w:94.91,h:18,t:"Bayar dengan %@"}],rl:[{w:113.94,h:18,t:"Isi Ulang dengan %@"}],rn:[{w:93.31,h:18,t:"Sewa dengan %@"}],se:[{w:31.2,h:18,t:"Atur %@"}],sb:[{w:149.42,h:18,t:"Berlangganan dengan %@"}],sp:[{w:108.81,h:18,t:"Dukung dengan %@"}],ti:[{w:103.34,h:18,t:"Beri tip dengan %@"}],to:[{w:147.81,h:18,t:"Tambah Dana dengan %@"}]},s:"15px",ls:"0.22px"},"hu-HU":{l:{a:[{w:160.58,h:18,t:"P\xe9nz hozz\xe1ad\xe1sa ezzel: %@"}],bo:[{w:113.28,h:18,t:"Lefoglal\xe1s ezzel: %@"}],bu:[{w:129.64,h:18,t:"Megv\xe1s\xe1rl\xe1s ezzel: %@"}],ch:[{w:116.84,h:18,t:"Kassz\xe1hoz ezzel: %@"}],ci:[{w:105.84,h:18,t:"Folytat\xe1s ezzel: %@"}],co:[{w:130.72,h:18,t:"Hozz\xe1j\xe1rul\xe1s ezzel: %@"}],d:[{w:139.45,h:18,t:"Adom\xe1nyoz\xe1s ezzel: %@"}],o:[{w:131.88,h:18,t:"Megrendel\xe9s ezzel: %@"}],pa:[{w:92.38,h:18,t:"Fizet\xe9s ezzel: %@"}],rl:[{w:109.23,h:18,t:"\xdajrat\xf6lt\xe9s ezzel: %@"}],rn:[{w:120.95,h:18,t:"K\xf6lcs\xf6nz\xe9s ezzel: %@"}],se:[{w:66.75,h:18,t:"%@ be\xe1ll\xedt\xe1sa"}],sb:[{w:109.69,h:18,t:"El\u0151fizet\xe9s ezzel: %@"}],sp:[{w:118.05,h:18,t:"T\xe1mogat\xe1s ezzel: %@"}],ti:[{w:108.28,h:18,t:"Borraval\xf3 ezzel: %@"}],to:[{w:101.67,h:18,t:"Felt\xf6lt\xe9s ezzel: %@"}]},s:"15px",ls:"0.22px"},"ru-RU":{l:{a:[{w:134.39,h:18,t:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0434\u0435\u043d\u044c\u0433\u0438 \u0441 %@"}],bo:[{w:77.81,h:18,t:"\u0417\u0430\u043a\u0430\u0437\u0430\u0442\u044c \u0441 %@"}],bu:[{w:63.44,h:18,t:"\u041a\u0443\u043f\u0438\u0442\u044c \u0441 %@"}],ch:[{w:81.38,h:18,t:"\u041e\u043f\u043b\u0430\u0442\u0438\u0442\u044c \u0441 %@"}],ci:[{w:103.5,h:18,t:"\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c \u0441 %@"}],co:[{w:89.8,h:18,t:"\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0441 %@"}],d:[{w:116.05,h:18,t:"\u041f\u043e\u0436\u0435\u0440\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0441 %@"}],o:[{w:77.81,h:18,t:"\u0417\u0430\u043a\u0430\u0437\u0430\u0442\u044c \u0441 %@"}],pa:[{w:81.38,h:18,t:"\u041e\u043f\u043b\u0430\u0442\u0438\u0442\u044c \u0441 %@"}],rl:[{w:90.94,h:18,t:"\u041f\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0441 %@"}],rn:[{w:98.55,h:18,t:"\u0410\u0440\u0435\u043d\u0434\u043e\u0432\u0430\u0442\u044c \u0441 %@"}],se:[{w:78.13,h:18,t:"\u041d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c %@"}],sb:[{w:106.73,h:18,t:"\u041f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u0441 %@"}],sp:[{w:103.39,h:18,t:"\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0441 %@"}],ti:[{w:144.09,h:18,t:"\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0447\u0430\u0435\u0432\u044b\u0435 \u0441 %@"}],to:[{w:90.94,h:18,t:"\u041f\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0441 %@"}]},s:"15px",ls:"0.22px"},"ko-KR":{l:{a:[{w:44.6,h:17,t:"%@ \ub85c \ucda9\uc804"}],bo:[{w:44.6,h:17,t:"%@ \ub85c \uc608\uc57d"}],bu:[{w:44.6,h:17,t:"%@ \ub85c \uad6c\uc785"}],ch:[{w:44.6,h:17,t:"%@ \ub85c \uacb0\uc81c"}],ci:[{w:73.04,h:17,t:"%@ \ub85c \uacc4\uc18d \uc9c4\ud589"}],co:[{w:69.16,h:17,t:"%@ \ub85c \ucc38\uc5ec\ud558\uae30"}],d:[{w:69.16,h:17,t:"%@ \ub85c \uae30\ubd80\ud558\uae30"}],o:[{w:44.6,h:17,t:"%@ \ub85c \uc8fc\ubb38"}],pa:[{w:44.6,h:17,t:"%@ \ub85c \uc9c0\ubd88"}],rl:[{w:44.6,h:17,t:"%@ \ub85c \ucda9\uc804"}],rn:[{w:44.6,h:17,t:"%@ \ub85c \ub300\uc5ec"}],se:[{w:28.45,h:17,t:"%@ \uc124\uc815"}],sb:[{w:44.6,h:17,t:"%@ \ub85c \uad6c\ub3c5"}],sp:[{w:69.16,h:17,t:"%@ \ub85c \uc9c0\uc6d0\ud558\uae30"}],ti:[{w:60.76,h:17,t:"%@ \ub85c \ud301 \uc9c0\ubd88"}],to:[{w:104.43,h:17,t:"%@ \ub85c \ucda9\uc804(top-up)"}]},s:"14.2px",w:600,ls:"1px"},"pt-PT":{l:{a:[{w:155.92,h:18,t:"Adicionar dinheiro com %@"}],bo:[{w:94.23,h:18,t:"Reservar com %@"}],bu:[{w:93.73,h:18,t:"Comprar com %@"}],ch:[{w:73.58,h:18,t:"Pagar com %@"}],ci:[{w:101.13,h:18,t:"Continuar com %@"}],co:[{w:102.14,h:18,t:"Contribuir com %@"}],d:[{w:156.5,h:18,t:"Fazer uma doa\xe7\xe3o com %@"}],o:[{w:119.66,h:18,t:"Encomendar com %@"}],pa:[{w:73.58,h:18,t:"Pagar com %@"}],rl:[{w:108.69,h:18,t:"Recarregar com %@"}],rn:[{w:78.98,h:18,t:"Alugar com %@"}],se:[{w:74.22,h:18,t:"Configurar %@"}],sb:[{w:85.17,h:18,t:"Assinar com %@"}],sp:[{w:78.98,h:18,t:"Apoiar com %@"}],ti:[{w:108.94,h:18,t:"Dar gorjeta com %@"}],to:[{w:93.81,h:18,t:"Carregar com %@"}]},s:"15px",ls:"0.22px"},"hi-IN":{l:{a:[{w:49.42,h:14.28,t:"%@ \u0938\u0947 \u0927\u0928 \u091c\u094b\u0921\u093c\u0947\u0902"}],bo:[{w:47.23,h:14.89,t:"%@ \u0938\u0947 \u092c\u0941\u0915 \u0915\u0930\u0947\u0902"}],bu:[{w:38.5,h:14.42,t:"%@ \u0938\u0947 \u0916\u093c\u0930\u0940\u0926\u0947\u0902"}],ch:[{w:96.38,h:14.28,t:"%@ \u0915\u0947 \u0938\u093e\u0925 \u091a\u0947\u0915\u0906\u0909\u091f \u0915\u0930\u0947\u0902"}],ci:[{w:75.66,h:14.42,t:"%@ \u0915\u0947 \u0938\u093e\u0925 \u091c\u093e\u0930\u0940 \u0930\u0916\u0947\u0902"}],co:[{w:65.02,h:14.28,t:"%@ \u0938\u0947 \u092f\u094b\u0917\u0926\u093e\u0928 \u0915\u0930\u0947\u0902"}],d:[{w:38.94,h:14.28,t:"%@ \u0938\u0947 \u0926\u093e\u0928 \u0926\u0947\u0902"}],o:[{w:55.03,h:14.34,t:"%@ \u0938\u0947 \u0911\u0930\u094d\u0921\u0930 \u0915\u0930\u0947\u0902"}],pa:[{w:61.91,h:14.89,t:"%@ \u0938\u0947 \u092d\u0941\u0917\u0924\u093e\u0928 \u0915\u0930\u0947\u0902"}],rl:[{w:58.19,h:14.42,t:"%@ \u0938\u0947 \u0930\u0940\u0932\u094b\u0921 \u0915\u0930\u0947\u0902"}],rn:[{w:67.59,h:14.42,t:"%@ \u0938\u0947 \u0915\u093f\u0930\u093e\u090f \u092a\u0930 \u0932\u0947\u0902"}],se:[{w:50.67,h:14.28,t:"%@ \u0938\u0947\u091f\u0905\u092a \u0915\u0930\u0947\u0902"}],sb:[{w:102.09,h:14.28,t:"%@ \u0915\u0947 \u0938\u093e\u0925 \u0938\u092c\u094d\u0938\u0915\u094d\u0930\u093e\u0907\u092c \u0915\u0930\u0947\u0902"}],sp:[{w:61.06,h:14.34,t:"%@ \u0938\u0947 \u0938\u092e\u0930\u094d\u0925\u0928 \u0915\u0930\u0947\u0902"}],ti:[{w:39.22,h:14.42,t:"%@ \u0938\u0947 \u091f\u093f\u092a \u0926\u0947\u0902"}],to:[{w:65.84,h:14.28,t:"%@ \u0938\u0947 \u091f\u0949\u092a \u0905\u092a \u0915\u0930\u0947\u0902"}]},s:"12px",w:600},"sk-SK":{l:{a:[{w:124.89,h:18,t:"Prida\u0165 peniaze cez %@"}],bo:[{w:104.45,h:18,t:"Rezervova\u0165 cez %@"}],bu:[{w:65.42,h:18,t:"K\xfapi\u0165 cez %@"}],ch:[{w:81.42,h:18,t:"Zaplati\u0165 cez %@"}],ci:[{w:100.61,h:18,t:"Pokra\u010dujte cez %@"}],co:[{w:80.69,h:18,t:"Prispie\u0165 cez %@"}],d:[{w:80.69,h:18,t:"Prispie\u0165 cez %@"}],o:[{w:92.02,h:18,t:"Objedna\u0165 cez %@"}],pa:[{w:81.42,h:18,t:"Zaplati\u0165 cez %@"}],rl:[{w:66.38,h:18,t:"Dobi\u0165 cez %@"}],rn:[{w:79.02,h:18,t:"Po\u017ei\u010da\u0165 cez %@"}],se:[{w:58.52,h:18,t:"Nastavi\u0165 %@"}],sb:[{w:93.55,h:18,t:"Odobera\u0165 cez %@"}],sp:[{w:86.86,h:18,t:"Podpori\u0165 cez %@"}],ti:[{w:119.8,h:18,t:"Da\u0165 sprepitn\xe9 cez %@"}],to:[{w:66.38,h:18,t:"Dobi\u0165 cez %@"}]},s:"15px",ls:"0.22px"},"ms-MY":{l:{a:[{w:151.3,h:18,t:"Tambah Wang dengan %@"}],bo:[{w:109.78,h:18,t:"Tempah dengan %@"}],bu:[{w:81.23,h:18,t:"Beli dengan %@"}],ch:[{w:94.91,h:18,t:"Bayar dengan %@"}],ci:[{w:117.09,h:18,t:"Teruskan dengan %@"}],co:[{w:144.94,h:18,t:"Sumbangkan dengan %@"}],d:[{w:101.03,h:18,t:"Derma dengan %@"}],o:[{w:97.41,h:18,t:"Pesan dengan %@"}],pa:[{w:94.91,h:18,t:"Bayar dengan %@"}],rl:[{w:122.72,h:18,t:"Isi semula dengan %@"}],rn:[{w:93.31,h:18,t:"Sewa dengan %@"}],se:[{w:64.88,h:18,t:"Sediakan %@"}],sb:[{w:114.98,h:18,t:"Langgan dengan %@"}],sp:[{w:107.3,h:18,t:"Sokong dengan %@"}],ti:[{w:127.48,h:18,t:"Berikan tip dengan %@"}],to:[{w:142.14,h:18,t:"Tambah Nilai dengan %@"}]},s:"15px",ls:"0.22px"}},Mr=[],Zi="ResizeObserver loop completed with undelivered notifications.";(_=Vr||(Vr={})).BORDER_BOX="border-box",_.CONTENT_BOX="content-box",_.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box";var $o,Ki,Ir=function(_){return Object.freeze(_)},Ss=function(_,m){this.inlineSize=_,this.blockSize=m,Ir(this)},En=function(){function _(m,b,S,B){return this.x=m,this.y=b,this.width=S,this.height=B,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Ir(this)}return _.prototype.toJSON=function(){var m=this;return{x:m.x,y:m.y,top:m.top,right:m.right,bottom:m.bottom,left:m.left,width:m.width,height:m.height}},_.fromRect=function(m){return new _(m.x,m.y,m.width,m.height)},_}(),Qs=function(_){return _ instanceof SVGElement&&"getBBox"in _},Yi=function(_){if(Qs(_)){var m=_.getBBox();return!m.width&&!m.height}return!(_.offsetWidth||_.offsetHeight||_.getClientRects().length)},Mt=function(_){var m,b;if(_ instanceof Element)return!0;var S=null===(b=null===(m=_)||void 0===m?void 0:m.ownerDocument)||void 0===b?void 0:b.defaultView;return!!(S&&_ instanceof S.Element)},Rt=typeof window<"u"?window:{},Je=new WeakMap,Ci=/auto|scroll/,bc=/^tb|vertical/,pn=/msie|trident/i.test(Rt.navigator&&Rt.navigator.userAgent),Zn=function(_){return parseFloat(_||"0")},Qi=function(_,m,b){return void 0===_&&(_=0),void 0===m&&(m=0),void 0===b&&(b=!1),new Ss((b?m:_)||0,(b?_:m)||0)},La=Ir({devicePixelContentBoxSize:Qi(),borderBoxSize:Qi(),contentBoxSize:Qi(),contentRect:new En(0,0,0,0)}),qn=function(_,m){if(void 0===m&&(m=!1),Je.has(_)&&!m)return Je.get(_);if(Yi(_))return Je.set(_,La),La;var b=getComputedStyle(_),S=Qs(_)&&_.ownerSVGElement&&_.getBBox(),B=!pn&&"border-box"===b.boxSizing,z=bc.test(b.writingMode||""),he=!S&&Ci.test(b.overflowY||""),ct=!S&&Ci.test(b.overflowX||""),Yt=S?0:Zn(b.paddingTop),rr=S?0:Zn(b.paddingRight),si=S?0:Zn(b.paddingBottom),Ms=S?0:Zn(b.paddingLeft),no=S?0:Zn(b.borderTopWidth),ro=S?0:Zn(b.borderRightWidth),ts=S?0:Zn(b.borderBottomWidth),Ua=Ms+rr,Dc=Yt+si,io=(S?0:Zn(b.borderLeftWidth))+ro,so=no+ts,za=ct?_.offsetHeight-so-_.clientHeight:0,Ar=he?_.offsetWidth-io-_.clientWidth:0,qa=B?Ua+io:0,ns=B?Dc+so:0,Is=S?S.width:Zn(b.width)-qa-Ar,rs=S?S.height:Zn(b.height)-ns-za,oo=Is+Ua+Ar+io,ao=rs+Dc+za+so,Ga=Ir({devicePixelContentBoxSize:Qi(Math.round(Is*devicePixelRatio),Math.round(rs*devicePixelRatio),z),borderBoxSize:Qi(oo,ao,z),contentBoxSize:Qi(Is,rs,z),contentRect:new En(Ms,Yt,Is,rs)});return Je.set(_,Ga),Ga},Dn=function(_,m,b){var S=qn(_,b),B=S.borderBoxSize,z=S.contentBoxSize,he=S.devicePixelContentBoxSize;switch(m){case Vr.DEVICE_PIXEL_CONTENT_BOX:return he;case Vr.BORDER_BOX:return B;default:return z}},$r=function(_){var m=qn(_);this.target=_,this.contentRect=m.contentRect,this.borderBoxSize=Ir([m.borderBoxSize]),this.contentBoxSize=Ir([m.contentBoxSize]),this.devicePixelContentBoxSize=Ir([m.devicePixelContentBoxSize])},gn=function(_){if(Yi(_))return 1/0;for(var m=0,b=_.parentNode;b;)m+=1,b=b.parentNode;return m},Cc=function(){var _=1/0,m=[];Mr.forEach(function(B){if(0!==B.activeTargets.length){var z=[];B.activeTargets.forEach(function(he){var ct=new $r(he.target),Yt=gn(he.target);z.push(ct),he.lastReportedSize=Dn(he.target,he.observedBox),Yt<_&&(_=Yt)}),m.push(function(){B.callback.call(B.observer,z,B.observer)}),B.activeTargets.splice(0,B.activeTargets.length)}});for(var b=0,S=m;b<S.length;b++)(0,S[b])();return _},ii=function(_){Mr.forEach(function(m){m.activeTargets.splice(0,m.activeTargets.length),m.skippedTargets.splice(0,m.skippedTargets.length),m.observationTargets.forEach(function(b){b.isActive()&&(gn(b.target)>_?m.activeTargets.push(b):m.skippedTargets.push(b))})})},Xs=[],Xi=0,Bo={attributes:!0,characterData:!0,childList:!0,subtree:!0},Js=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Ji=function(_){return void 0===_&&(_=0),Date.now()+_},ne=!1,eo=new(function(){function _(){var m=this;this.stopped=!0,this.listener=function(){return m.schedule()}}return _.prototype.run=function(m){var b=this;if(void 0===m&&(m=250),!ne){ne=!0;var S,B=Ji(m);S=function(){var z=!1;try{z=function(){var _,m=0;for(ii(m);Mr.some(function(b){return b.activeTargets.length>0});)m=Cc(),ii(m);return Mr.some(function(b){return b.skippedTargets.length>0})&&("function"==typeof ErrorEvent?_=new ErrorEvent("error",{message:Zi}):((_=document.createEvent("Event")).initEvent("error",!1,!1),_.message=Zi),window.dispatchEvent(_)),m>0}()}finally{if(ne=!1,m=B-Ji(),!Xi)return;z?b.run(1e3):m>0?b.run(m):b.start()}},function(){if(!$o){var m=0,b=document.createTextNode("");new MutationObserver(function(){return Xs.splice(0).forEach(function(S){return S()})}).observe(b,{characterData:!0}),$o=function(){b.textContent=""+(m?m--:m++)}}Xs.push(function(){requestAnimationFrame(S)}),$o()}()}},_.prototype.schedule=function(){this.stop(),this.run()},_.prototype.observe=function(){var m=this,b=function(){return m.observer&&m.observer.observe(document.body,Bo)};document.body?b():Rt.addEventListener("DOMContentLoaded",b)},_.prototype.start=function(){var m=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Js.forEach(function(b){return Rt.addEventListener(b,m.listener,!0)}))},_.prototype.stop=function(){var m=this;this.stopped||(this.observer&&this.observer.disconnect(),Js.forEach(function(b){return Rt.removeEventListener(b,m.listener,!0)}),this.stopped=!0)},_}()),$a=function(_){!Xi&&_>0&&eo.start(),!(Xi+=_)&&eo.stop()},jo=function(){function _(m,b){this.target=m,this.observedBox=b||Vr.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return _.prototype.isActive=function(){var m,b=Dn(this.target,this.observedBox,!0);return Qs(m=this.target)||function(S){switch(S.tagName){case"INPUT":if("image"!==S.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(m)||"inline"!==getComputedStyle(m).display||(this.lastReportedSize=b),this.lastReportedSize.inlineSize!==b.inlineSize||this.lastReportedSize.blockSize!==b.blockSize},_}(),Ba=function(_,m){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=_,this.callback=m},to=new WeakMap,Ho=function(_,m){for(var b=0;b<_.length;b+=1)if(_[b].target===m)return b;return-1},Uo=function(){function _(){}return _.connect=function(m,b){var S=new Ba(m,b);to.set(m,S)},_.observe=function(m,b,S){var B=to.get(m),z=0===B.observationTargets.length;Ho(B.observationTargets,b)<0&&(z&&Mr.push(B),B.observationTargets.push(new jo(b,S&&S.box)),$a(1),eo.schedule())},_.unobserve=function(m,b){var S=to.get(m),B=Ho(S.observationTargets,b);B>=0&&(1===S.observationTargets.length&&Mr.splice(Mr.indexOf(S),1),S.observationTargets.splice(B,1),$a(-1))},_.disconnect=function(m){var b=this,S=to.get(m);S.observationTargets.slice().forEach(function(B){return b.unobserve(m,B.target)}),S.activeTargets.splice(0,S.activeTargets.length)},_}(),Ec=function(){function _(m){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof m)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Uo.connect(this,m)}return _.prototype.observe=function(m,b){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Mt(m))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Uo.observe(this,m,b)},_.prototype.unobserve=function(m){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Mt(m))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Uo.unobserve(this,m)},_.prototype.disconnect=function(){Uo.disconnect(this)},_.toString=function(){return"function ResizeObserver () { [polyfill code] }"},_}();Ki=ri(document.documentElement),Ks()||xt(Ki)||Dr(Ki);var ja=Ks(),Nt=class extends HTMLElement{constructor(){super(),this.__registerHost(),Object(K.b)(this),this.logoOnly=!1,this.fontLoading=!ja,this.buttonStyle="black",this.type="buy"}checkStyle(_,m){var b=es(_,m);b!==_&&this.element.setAttribute("buttonstyle",b)}checkType(_,m){var b=Ts(_,m);b!==_&&this.element.setAttribute("type",b),this.metadata&&(this.minButtonWidth=this.getMinButtonWidth(this.metadata))}verifyLocaleAndSwapMetadata(_){this._locale=this.adjustLocaleAndSetLangIfNecessary(_),ja||this.loadFontIfNecessary(this._locale),this.metadata=wc[this._locale],this.minButtonWidth=this.getMinButtonWidth(this.metadata)}componentWillLoad(){var _=this;return Se(function*(){var m=es(_.buttonStyle);m!==_.buttonStyle&&_.element.setAttribute("buttonstyle",m);var b=Ts(_.type);b!==_.type&&_.element.setAttribute("type",b),_.verifyLocaleAndSwapMetadata(_.locale)})()}componentDidRender(){this.validateFontSize(this.container.offsetWidth)}componentDidLoad(){new Ec((_,m)=>{for(var b of _){var{width:S}=b.contentRect;if("plain"===this.type)return;this.validateFontSize(S)}}).observe(this.container),this.element.addEventListener("click",_=>_.stopPropagation())}validateFontSize(_){var m,b,S,B;"plain"!==this.type&&(_<this.minButtonWidth?(null===(m=this.container.querySelector("#svg-text"))||void 0===m||m.classList.add("hidden"),null===(b=this.container.querySelector("#svg-logo"))||void 0===b||b.classList.remove("hidden")):(null===(S=this.container.querySelector("#svg-text"))||void 0===S||S.classList.remove("hidden"),null===(B=this.container.querySelector("#svg-logo"))||void 0===B||B.classList.add("hidden")))}getStyle(_){return":host(apple-pay-button){display:inline-block;width:var(--apple-pay-button-width, auto);"+"min-width:".concat("plain"===_?"100px":"140px",";")+"min-height:30px;"+(sn()?"":"display:none;")+"}"}loadFontIfNecessary(_){try{var m=document.fonts.check("15px apple-pay-btn-".concat(_)),b=xt(_);b||Dr(_),this.fontLoading=!b||!m,this.fontLoading&&document.fonts.ready.then(()=>setTimeout(()=>{this.fontLoading=!1},0))}catch{this.fontLoading=!1}}getMinButtonWidth(_){var z,m=Ts(this.type),{width:b,height:S}="plain"===(z=m)?{width:35,height:15}:{width:Ra({metadata:_,buttonType:z}).width,height:18};return 15*b/S}adjustLocaleAndSetLangIfNecessary(_){var m=function(S){if(S){var B=lt(At(S));if(B)return B}}(_);if(m){m!==_&&this.element.setAttribute("locale",m);var b=m.replace("_","-");this.element.setAttribute("lang",b)}else this.element.removeAttribute("locale"),this.element.removeAttribute("lang"),m=ri(this.element);return m}render(){var _=es(this.buttonStyle),m=Ts(this.type);return Object(K.c)(K.a,{"aria-hidden":sn()?void 0:"true"},Object(K.c)("div",{class:"apple-pay-btn-wrapper ".concat(m," ").concat(this._locale),style:{visibility:this.fontLoading?"hidden":"visible"}},Object(K.c)("style",null,this.getStyle(m)),Object(K.c)("button",{"aria-label":Vo(this.metadata,m),class:"apple-pay-btn ".concat(_)},Object(K.c)("span",{ref:b=>this.container=b,innerHTML:Tr({metadata:this.metadata,locale:this._locale,buttonStyle:_,buttonType:m})}))))}static get assetsDirs(){return["assets/1.0.0"]}get element(){return this}static get watchers(){return{buttonStyle:["checkStyle"],type:["checkType"],locale:["verifyLocaleAndSwapMetadata"]}}static get style(){return'.apple-pay-btn-wrapper{width:100%;min-height:30px;height:var(--apple-pay-button-height, 30px)}.apple-pay-btn-wrapper.plain{min-width:100px}.plain .apple-pay-btn{--apple-pay-button-width-default:100px}.apple-pay-btn-wrapper .apple-pay-btn{background-color:black;border:none;color:white;cursor:pointer;font-synthesis:none;-ms-flex-pack:center;justify-content:center;position:relative;margin:0;-webkit-box-sizing:var(--apple-pay-button-box-sizing, content-box);box-sizing:var(--apple-pay-button-box-sizing, content-box);min-height:30px;height:calc(var(--apple-pay-button-height, 30px));min-width:var(--apple-pay-button-width-default, 140px);width:100%;border-radius:var(--apple-pay-button-border-radius, 4px);padding:var(--apple-pay-button-padding, 0);-moz-font-feature-settings:kern;-moz-osx-font-smoothing:"grayscale";-webkit-font-smoothing:antialiased}.apple-pay-btn-wrapper .apple-pay-btn.white,.apple-pay-btn-wrapper .apple-pay-btn.white-outline{background-color:white;color:black}.apple-pay-btn-wrapper .apple-pay-btn.white-outline{border:1px solid black}.apple-pay-btn-wrapper .apple-pay-btn>span{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;height:100%}.apple-pay-btn-wrapper .apple-pay-btn>span>svg{max-width:100%;min-height:24px;min-width:50%;height:100%;-webkit-transform:translateZ(0) scale(1, 1);transform:translateZ(0) scale(1, 1)}.apple-pay-btn-wrapper .apple-pay-btn #svg-text.hidden,.apple-pay-btn-wrapper .apple-pay-btn #svg-logo.hidden{display:none}'}};function es(_,m){var b=["black","white-outline","white"],S=_.trim();return b.includes(S)?S:m&&b.includes(m)?m:"black"}function Ts(_,m){var b=_.trim();return Fo(b)?b:m&&Fo(m)?m:"buy"}typeof customElements<"u"&&[Object(K.d)(Nt,[1,"apple-pay-button",{buttonStyle:[513,"buttonstyle"],type:[1537],locale:[1025],logoOnly:[32],fontLoading:[32]}])].forEach(_=>{customElements.get(_.is)||customElements.define(_.is,_,void 0)})}var vt="https://applepay.cdn-apple.com/jsapi/v1/apple-pay-sdk.js";ue.p=new URL(vt.slice(0,vt.lastIndexOf("/")));var Qe,qe,Ve,se,dn=!0;try{dn=globalThis}catch{dn=!1}window.customElements&&window.fetch&&Symbol("desc").description&&dn?St():(Qe=ue.p+"/polyfills.js",qe=St,Ve=document.body,(se=document.createElement("script")).src=Qe,se.onload=qe,se.onreadystatechange=qe,Ve.appendChild(se))}.call(this,ue(44))},104:function(nn,Oe){function ue(xe){return Promise.resolve().then(function(){var K=new Error("Cannot find module '"+xe+"'");throw K.code="MODULE_NOT_FOUND",K})}ue.keys=function(){return[]},ue.resolve=ue,nn.exports=ue,ue.id=104},14:function(nn,Oe,ue){"use strict";var xe,K,Ae;function Mr(p,y,w,E,M,N,O){try{var I=p[N](O),V=I.value}catch($){return void w($)}I.done?y(V):Promise.resolve(V).then(E,M)}function Zi(p){return function(){var y=this,w=arguments;return new Promise(function(E,M){var N=p.apply(y,w);function O(V){Mr(N,E,M,O,I,"next",V)}function I(V){Mr(N,E,M,O,I,"throw",V)}O(void 0)})}}ue.d(Oe,"a",function(){return ne}),ue.d(Oe,"b",function(){return Kp}),ue.d(Oe,"c",function(){return Js}),ue.d(Oe,"d",function(){return xv});var p,Ki=!1,Ir=!1,Ss=!1,En=!1,Yi=!1,Mt=typeof window<"u"?window:{},Rt=Mt.document||{head:{}},Je={$flags$:0,$resourcesUrl$:"",jmp:p=>p(),raf:p=>requestAnimationFrame(p),ael:(p,y,w,E)=>p.addEventListener(y,w,E),rel:(p,y,w,E)=>p.removeEventListener(y,w,E),ce:(p,y)=>new CustomEvent(p,y)},bc=(()=>{var p=!1;try{Rt.addEventListener("e",null,Object.defineProperty({},"passive",{get(){p=!0}}))}catch{}return p})(),pn=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch{}return!1})(),Zn=(p,y,w,E)=>{w&&w.map(([M,N,O])=>{var I=La(p,M),V=Qi(y,O),$=qn(M);Je.ael(I,N,V,$),(y.$rmListeners$=y.$rmListeners$||[]).push(()=>Je.rel(I,N,V,$))})},Qi=(p,y)=>w=>{try{p.$hostElement$[y](w)}catch(E){oi(E)}},La=(p,y)=>4&y?Rt:8&y?Mt:16&y?Rt.body:p,qn=p=>bc?{passive:!!(1&p),capture:!!(2&p)}:!!(2&p),Dn="http://www.w3.org/1999/xlink",gn=new WeakMap,Xs=(p,y)=>"sc-"+(y&&32&p.$flags$?p.$tagName$+"-"+y:p.$tagName$),Xi={},Bo=p=>"object"==(p=typeof p)||"function"===p,Js=(p,y,...w)=>{var E=null,M=null,N=null,O=!1,I=!1,V=[],$=$e=>{for(var Qt=0;Qt<$e.length;Qt++)E=$e[Qt],Array.isArray(E)?$(E):null!=E&&"boolean"!=typeof E&&((O="function"!=typeof p&&!Bo(E))&&(E=String(E)),O&&I?V[V.length-1].$text$+=E:V.push(O?Ji(null,E):E),I=O)};if($(w),y&&(y.key&&(M=y.key),y.name&&(N=y.name),1)){var me=y.className||y.class;me&&(y.class="object"!=typeof me?me:Object.keys(me).filter($e=>me[$e]).join(" "))}if("function"==typeof p)return p(null===y?{}:y,V,$a);var pe=Ji(p,null);return pe.$attrs$=y,V.length>0&&(pe.$children$=V),pe.$key$=M,pe.$name$=N,pe},Ji=(p,y)=>({$flags$:0,$tag$:p,$text$:y,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),ne={},$a={forEach:(p,y)=>p.map(jo).forEach(y),map:(p,y)=>p.map(jo).map(y).map(Ba)},jo=p=>({vattrs:p.$attrs$,vchildren:p.$children$,vkey:p.$key$,vname:p.$name$,vtag:p.$tag$,vtext:p.$text$}),Ba=p=>{if("function"==typeof p.vtag){var y=Object.assign({},p.vattrs);return p.vkey&&(y.key=p.vkey),p.vname&&(y.name=p.vname),Js(p.vtag,y,...p.vchildren||[])}var w=Ji(p.vtag,p.vtext);return w.$attrs$=p.vattrs,w.$children$=p.vchildren,w.$key$=p.vkey,w.$name$=p.vname,w},Ho=(p,y,w,E,M,N)=>{if(w!==E){var O=Sc(p,y),I=y.toLowerCase();if("class"===y){var V=p.classList,$=Ec(w),me=Ec(E);V.remove(...$.filter(an=>an&&!me.includes(an))),V.add(...me.filter(an=>an&&!$.includes(an)))}else if("style"===y){for(var pe in w)E&&null!=E[pe]||(pe.includes("-")?p.style.removeProperty(pe):p.style[pe]="");for(var $e in E)w&&E[$e]===w[$e]||($e.includes("-")?p.style.setProperty($e,E[$e]):p.style[$e]=E[$e])}else if("key"!==y)if("ref"===y)E&&E(p);else if(p.__lookupSetter__(y)||"o"!==y[0]||"n"!==y[1]){var Qt=Bo(E);if((O||Qt&&null!==E)&&!M)try{if(p.tagName.includes("-"))p[y]=E;else{var Sn=E??"";"list"===y?O=!1:null!=w&&p[y]==Sn||(p[y]=Sn)}}catch{}var on=!1;I!==(I=I.replace(/^xlink\:?/,""))&&(y=I,on=!0),null==E||!1===E?!1===E&&""!==p.getAttribute(y)||(on?p.removeAttributeNS(Dn,y):p.removeAttribute(y)):(!O||4&N||M)&&!Qt&&(E=!0===E?"":E,on?p.setAttributeNS(Dn,y,E):p.setAttribute(y,E))}else y="-"===y[2]?y.slice(3):Sc(Mt,I)?I.slice(2):I[2]+y.slice(3),w&&Je.rel(p,y,w,!1),E&&Je.ael(p,y,E,!1)}},Uo=/\s/,Ec=p=>p?p.split(Uo):[],ja=(p,y,w,E)=>{var M=11===y.$elm$.nodeType&&y.$elm$.host?y.$elm$.host:y.$elm$,N=p&&p.$attrs$||Xi,O=y.$attrs$||Xi;for(E in N)E in O||Ho(M,E,N[E],void 0,w,y.$flags$);for(E in O)Ho(M,E,N[E],O[E],w,y.$flags$)},Nt=(p,y,w,E)=>{var M,N,O,I=y.$children$[w],V=0;if(!Ki&&(Ss=!0,"slot"===I.$tag$&&(xe&&E.classList.add(xe+"-s"),I.$flags$|=I.$children$?2:1)),null!==I.$text$)M=I.$elm$=Rt.createTextNode(I.$text$);else if(1&I.$flags$)M=I.$elm$=Rt.createTextNode("");else{if(!En&&(En="svg"===I.$tag$),M=I.$elm$=Rt.createElementNS(En?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&I.$flags$?"slot-fb":I.$tag$),En&&"foreignObject"===I.$tag$&&(En=!1),ja(null,I,En),null!=xe&&M["s-si"]!==xe&&M.classList.add(M["s-si"]=xe),I.$children$)for(V=0;V<I.$children$.length;++V)(N=Nt(p,I,V,M))&&M.appendChild(N);"svg"===I.$tag$?En=!1:"foreignObject"===M.tagName&&(En=!0)}return M["s-hn"]=Ae,3&I.$flags$&&(M["s-sr"]=!0,M["s-cr"]=K,M["s-sn"]=I.$name$||"",(O=p&&p.$children$&&p.$children$[w])&&O.$tag$===I.$tag$&&p.$elm$&&es(p.$elm$,!1)),M},es=(p,y)=>{Je.$flags$|=1;for(var w=p.childNodes,E=w.length-1;E>=0;E--){var M=w[E];M["s-hn"]!==Ae&&M["s-ol"]&&(b(M).insertBefore(M,m(M)),M["s-ol"].remove(),M["s-ol"]=void 0,Ss=!0),y&&es(M,y)}Je.$flags$&=-2},Ts=(p,y,w,E,M,N)=>{var O,I=p["s-cr"]&&p["s-cr"].parentNode||p;for(I.shadowRoot&&I.tagName===Ae&&(I=I.shadowRoot);M<=N;++M)E[M]&&(O=Nt(null,w,M,p))&&(E[M].$elm$=O,I.insertBefore(O,m(y)))},Ha=(p,y,w,E,M)=>{for(;y<=w;++y)(E=p[y])&&(M=E.$elm$,Yt(E),Ir=!0,M["s-ol"]?M["s-ol"].remove():es(M,!0),M.remove())},_=(p,y)=>p.$tag$===y.$tag$&&("slot"===p.$tag$?p.$name$===y.$name$:p.$key$===y.$key$),m=p=>p&&p["s-ol"]||p,b=p=>(p["s-ol"]?p["s-ol"]:p).parentNode,S=(p,y)=>{var w,E=y.$elm$=p.$elm$,M=p.$children$,N=y.$children$,O=y.$tag$,I=y.$text$;null!==I?(w=E["s-cr"])?w.parentNode.textContent=I:p.$text$!==I&&(E.data=I):(En="svg"===O||"foreignObject"!==O&&En,"slot"===O||ja(p,y,En),null!==M&&null!==N?((V,$,me,pe)=>{for(var $e,Qt,Sn=0,on=0,an=0,Di=0,Kn=$.length-1,Xt=$[0],Br=$[Kn],Si=pe.length-1,hr=pe[0],ai=pe[Si];Sn<=Kn&&on<=Si;)if(null==Xt)Xt=$[++Sn];else if(null==Br)Br=$[--Kn];else if(null==hr)hr=pe[++on];else if(null==ai)ai=pe[--Si];else if(_(Xt,hr))S(Xt,hr),Xt=$[++Sn],hr=pe[++on];else if(_(Br,ai))S(Br,ai),Br=$[--Kn],ai=pe[--Si];else if(_(Xt,ai))"slot"!==Xt.$tag$&&"slot"!==ai.$tag$||es(Xt.$elm$.parentNode,!1),S(Xt,ai),V.insertBefore(Xt.$elm$,Br.$elm$.nextSibling),Xt=$[++Sn],ai=pe[--Si];else if(_(Br,hr))"slot"!==Xt.$tag$&&"slot"!==ai.$tag$||es(Br.$elm$.parentNode,!1),S(Br,hr),V.insertBefore(Br.$elm$,Xt.$elm$),Br=$[--Kn],hr=pe[++on];else{for(an=-1,Di=Sn;Di<=Kn;++Di)if($[Di]&&null!==$[Di].$key$&&$[Di].$key$===hr.$key$){an=Di;break}an>=0?((Qt=$[an]).$tag$!==hr.$tag$?$e=Nt($&&$[on],me,an,V):(S(Qt,hr),$[an]=void 0,$e=Qt.$elm$),hr=pe[++on]):($e=Nt($&&$[on],me,on,V),hr=pe[++on]),$e&&b(Xt.$elm$).insertBefore($e,m(Xt.$elm$))}Sn>Kn?Ts(V,null==pe[Si+1]?null:pe[Si+1].$elm$,me,pe,on,Si):on>Si&&Ha($,Sn,Kn)})(E,M,y,N):null!==N?(null!==p.$text$&&(E.textContent=""),Ts(E,null,y,N,0,N.length-1)):null!==M&&Ha(M,0,M.length-1),En&&"svg"===O&&(En=!1))},B=p=>{var y,w,E,M,N,O,I=p.childNodes;for(w=0,E=I.length;w<E;w++)if(1===(y=I[w]).nodeType){if(y["s-sr"])for(N=y["s-sn"],y.hidden=!1,M=0;M<E;M++)if(O=I[M].nodeType,I[M]["s-hn"]!==y["s-hn"]||""!==N){if(1===O&&N===I[M].getAttribute("slot")){y.hidden=!0;break}}else if(1===O||3===O&&""!==I[M].textContent.trim()){y.hidden=!0;break}B(y)}},z=[],he=p=>{for(var y,w,E,M,N,O,I=0,V=p.childNodes,$=V.length;I<$;I++){if((y=V[I])["s-sr"]&&(w=y["s-cr"])&&w.parentNode)for(M=y["s-sn"],O=(E=w.parentNode.childNodes).length-1;O>=0;O--)(w=E[O])["s-cn"]||w["s-nr"]||w["s-hn"]===y["s-hn"]||(ct(w,M)?(N=z.find(me=>me.$nodeToRelocate$===w),Ir=!0,w["s-sn"]=w["s-sn"]||M,N?N.$slotRefNode$=y:z.push({$slotRefNode$:y,$nodeToRelocate$:w}),w["s-sr"]&&z.map(me=>{ct(me.$nodeToRelocate$,w["s-sn"])&&(N=z.find(pe=>pe.$nodeToRelocate$===w))&&!me.$slotRefNode$&&(me.$slotRefNode$=N.$slotRefNode$)})):z.some(me=>me.$nodeToRelocate$===w)||z.push({$nodeToRelocate$:w}));1===y.nodeType&&he(y)}},ct=(p,y)=>1===p.nodeType?null===p.getAttribute("slot")&&""===y||p.getAttribute("slot")===y:p["s-sn"]===y||""===y,Yt=p=>{p.$attrs$&&p.$attrs$.ref&&p.$attrs$.ref(null),p.$children$&&p.$children$.map(Yt)},rr=(p,y)=>{var w=p.$hostElement$,E=p.$cmpMeta$,M=p.$vnode$||Ji(null,null),N=(p=>p&&p.$tag$===ne)(y)?y:Js(null,null,y);if(Ae=w.tagName,E.$attrsToReflect$&&(N.$attrs$=N.$attrs$||{},E.$attrsToReflect$.map(([Qt,Sn])=>N.$attrs$[Sn]=w[Qt])),N.$tag$=null,N.$flags$|=4,p.$vnode$=N,N.$elm$=M.$elm$=w.shadowRoot||w,xe=w["s-sc"],K=w["s-cr"],Ki=!!(1&E.$flags$),Ir=!1,S(M,N),Je.$flags$|=1,Ss){var O,I,V,$,me,pe;he(N.$elm$);for(var $e=0;$e<z.length;$e++)(I=(O=z[$e]).$nodeToRelocate$)["s-ol"]||((V=Rt.createTextNode(""))["s-nr"]=I,I.parentNode.insertBefore(I["s-ol"]=V,I));for($e=0;$e<z.length;$e++)if(I=(O=z[$e]).$nodeToRelocate$,O.$slotRefNode$){for($=O.$slotRefNode$.parentNode,me=O.$slotRefNode$.nextSibling,V=I["s-ol"];V=V.previousSibling;)if((pe=V["s-nr"])&&pe["s-sn"]===I["s-sn"]&&$===pe.parentNode&&(!(pe=pe.nextSibling)||!pe["s-nr"])){me=pe;break}(!me&&$!==I.parentNode||I.nextSibling!==me)&&I!==me&&(!I["s-hn"]&&I["s-ol"]&&(I["s-hn"]=I["s-ol"].parentNode.nodeName),$.insertBefore(I,me))}else 1===I.nodeType&&(I.hidden=!0)}Ir&&B(N.$elm$),Je.$flags$&=-2,z.length=0},ts=(p,y)=>{p.$flags$|=16;return Cd(()=>Ua(p,y))},Ua=(p,y)=>{var w,E=p.$hostElement$,N=E;return y?(ns(E,"componentWillLoad"),w=Ar(N,"componentWillLoad")):(ns(E,"componentWillUpdate"),w=Ar(N,"componentWillUpdate")),ns(E,"componentWillRender"),w=qa(w,()=>Ar(N,"componentWillRender")),qa(w,()=>Dc(p,N,y))},Dc=(p=Zi(function*(y,w,E){var M=y.$hostElement$;E&&(p=>{var y=p.$cmpMeta$,w=p.$hostElement$,E=y.$flags$,N=((p,y,w)=>{var M=Xs(y,w),N=xs.get(M);if(p=11===p.nodeType?p:Rt,N)if("string"==typeof N){var O,I=gn.get(p=p.head||p);I||gn.set(p,I=new Set),I.has(M)||((O=Rt.createElement("style")).innerHTML=N,p.insertBefore(O,p.querySelector("link")),I&&I.add(M))}else!p.adoptedStyleSheets.includes(N)&&(p.adoptedStyleSheets=[...p.adoptedStyleSheets,N]);return M})(w.shadowRoot?w.shadowRoot:w.getRootNode(),y,p.$modeName$);10&E&&(w["s-sc"]=N,w.classList.add(N+"-h"),2&E&&w.classList.add(N+"-s"))})(y);io(y,w,M),so(y)}),function(y,w,E){return p.apply(this,arguments)}),io=(p,y,w)=>{try{y=y.render&&y.render(),p.$flags$&=-17,p.$flags$|=2,rr(p,y)}catch(I){oi(I,p.$hostElement$)}return null},so=p=>{var w=p.$hostElement$,M=w;Ar(M,"componentDidRender"),ns(w,"componentDidRender"),64&p.$flags$?(Ar(M,"componentDidUpdate"),ns(w,"componentDidUpdate")):(p.$flags$|=64,Ar(M,"componentDidLoad"),ns(w,"componentDidLoad"))},Ar=(p,y,w)=>{if(p&&p[y])try{return p[y](w)}catch(E){oi(E)}},qa=(p,y)=>p&&p.then?p.then(y):y(),ns=(p,y)=>{},md=(p,y,w)=>{if(y.$members$){p.watchers&&(y.$watchers$=p.watchers);var E=Object.entries(y.$members$),M=p.prototype;E.map(([O,[I]])=>{(31&I||32&I)&&Object.defineProperty(M,O,{get(){return V=O,As(this).$instanceValues$.get(V);var V},set(V){((p,y,w,E)=>{var M,N,O=As(p),I=p,V=O.$instanceValues$.get(y),$=O.$flags$,me=I;if(N=E.$members$[y][0],(w=null==(M=w)||Bo(M)?M:4&N?"false"!==M&&(""===M||!!M):2&N?parseFloat(M):1&N?String(M):M)!==V&&(O.$instanceValues$.set(y,w),1)){if(E.$watchers$&&128&$){var pe=E.$watchers$[y];pe&&pe.map($e=>{try{me[$e](w,V,y)}catch(Qt){oi(Qt,I)}})}if(2==(18&$)){if(me.componentShouldUpdate&&!1===me.componentShouldUpdate(w,V,y))return;ts(O,!1)}}})(this,O,V,y)},configurable:!0,enumerable:!0})});var N=new Map;M.attributeChangedCallback=function(O,I,V){Je.jmp(()=>{var $=N.get(O);this[$]=(null!==V||"boolean"!=typeof this[$])&&V})},p.observedAttributes=E.filter(([O,I])=>15&I[0]).map(([O,I])=>{var V=I[1]||O;return N.set(V,O),512&I[0]&&y.$attrsToReflect$.push([O,V]),V})}return p},yd=function(){var p=Zi(function*(y,w,E,M,N){if(!(32&w.$flags$)&&(N=y.constructor,w.$flags$|=160,N.style)){var V=N.style;"string"!=typeof V&&(V=V[w.$modeName$=(p=>wd.map(y=>y(p)).find(y=>!!y))(y)]);var $=Xs(E,w.$modeName$);if(!xs.has($)){((p,y,w)=>{var E=xs.get(p);pn&&w?(E=E||new CSSStyleSheet).replace(y):E=y,xs.set(p,E)})($,V,!!(1&E.$flags$))}}ts(w,!0)});return function(y,w,E,M,N){return p.apply(this,arguments)}}(),xv=(p,y)=>{var w={$flags$:y[0],$tagName$:y[1]};w.$members$=y[2],w.$listeners$=y[3],w.$watchers$=p.$watchers$,w.$attrsToReflect$=[];var E=p.prototype.connectedCallback,M=p.prototype.disconnectedCallback;return Object.assign(p.prototype,{__registerHost(){Wa(this,w)},connectedCallback(){(p=>{if(!(1&Je.$flags$)){var y=As(p),w=y.$cmpMeta$;1&y.$flags$?Zn(p,y,w.$listeners$):(y.$flags$|=1,12&w.$flags$&&(p=>{var y=p["s-cr"]=Rt.createComment("");y["s-cn"]=!0,p.insertBefore(y,p.firstChild)})(p),yd(p,y,w))}})(this),E&&E.call(this)},disconnectedCallback(){(()=>{if(!(1&Je.$flags$)){var y=As(this);y.$rmListeners$&&(y.$rmListeners$.map(E=>E()),y.$rmListeners$=void 0)}})(),M&&M.call(this)}}),p.is=w.$tagName$,md(p,w)},Kp=p=>{p.attachShadow({mode:"open"})},Ei=new WeakMap,As=p=>Ei.get(p),Wa=(p,y)=>{var w={$flags$:0,$hostElement$:p,$cmpMeta$:y,$instanceValues$:new Map};return Zn(p,w,y.$listeners$),Ei.set(p,w)},Sc=(p,y)=>y in p,oi=(p,y)=>(0,console.error)(p,y),xs=new Map,wd=[],qo=[],lo=[],bd=p=>{for(var y=0;y<p.length;y++)try{p[y](performance.now())}catch(w){oi(w)}p.length=0},Mc=()=>{bd(qo),bd(lo),(Yi=qo.length>0)&&Je.raf(Mc)},Cd=(p=>w=>{p.push(w),Yi||(Yi=!0,4&Je.$flags$?(p=>{Promise.resolve(void 0).then(p)})(Mc):Je.raf(Mc))})(lo)},195:function(nn,Oe,ue){"use strict";ue.r(Oe),ue.d(Oe,"scopeCss",function(){return dr});var xe=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",K=new RegExp("(-shadowcsshost"+xe,"gim"),Ae=new RegExp("(-shadowcsscontext"+xe,"gim"),Se=new RegExp("(-shadowcssslotted"+xe,"gim"),Ye=/-shadowcsshost-no-combinator([^\s]*)/,ee=[/::shadow/g,/::content/g],Q=/-shadowcsshost/gim,ae=/:host/gim,St=/::slotted/gim,vt=/:host-context/gim,dn=/\/\*\s*[\s\S]*?\*\//g,Qe=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g,qe=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,Ve=/([{}])/g,se=(de,Ne)=>{var be=Te(de),He=0;return be.escapedString.replace(qe,(...Re)=>{var ke=Re[2],je="",tt=Re[4],_t="";tt&&tt.startsWith("{%BLOCK%")&&(je=be.blocks[He++],tt=tt.substring(8),_t="{");var Ce=Ne({selector:ke,content:je});return"".concat(Re[1]).concat(Ce.selector).concat(Re[3]).concat(_t).concat(Ce.content).concat(tt)})},Te=de=>{for(var Ne=de.split(Ve),be=[],He=[],Re=0,ke=[],je=0;je<Ne.length;je++){var tt=Ne[je];"}"===tt&&Re--,Re>0?ke.push(tt):(ke.length>0&&(He.push(ke.join("")),be.push("%BLOCK%"),ke=[]),be.push(tt)),"{"===tt&&Re++}return ke.length>0&&(He.push(ke.join("")),be.push("%BLOCK%")),{escapedString:be.join(""),blocks:He}},Ge=(de,Ne,be)=>de.replace(Ne,(...He)=>{if(He[2]){for(var Re=He[2].split(","),ke=[],je=0;je<Re.length;je++){var tt=Re[je].trim();if(!tt)break;ke.push(be("-shadowcsshost-no-combinator",tt,He[3]))}return ke.join(",")}return"-shadowcsshost-no-combinator"+He[3]}),It=(de,Ne,be)=>de+Ne.replace("-shadowcsshost","")+be,sn=(de,Ne,be)=>Ne.indexOf("-shadowcsshost")>-1?It(de,Ne,be):de+Ne+be+", "+Ne+" "+de+be,zn=(de,Ne,be,He,Re)=>se(de,ke=>{var Ce,We,Pn,je=ke.selector,tt=ke.content;return"@"!==ke.selector[0]?(Ce=Ne,We=be,Pn=He,je=ke.selector.split(",").map(Zt=>Pn&&Zt.indexOf("."+Pn)>-1?Zt.trim():((de,Ne)=>{return!(be=Ne,be=be.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),new RegExp("^("+be+")([>\\s~+[.,{:][\\s\\S]*)?$","m")).test(de);var be})(Zt,Ce)?((de,Ne,be)=>{for(var He,Re="."+(Ne=Ne.replace(/\[is=([^\]]*)\]/g,(hn,...Xe)=>Xe[0])),ke=hn=>{var Xe=hn.trim();if(!Xe)return"";if(hn.indexOf("-shadowcsshost-no-combinator")>-1)Xe=((Lr,Ht,fn)=>{if(Q.lastIndex=0,Q.test(Lr)){var Ds=".".concat(fn);return Lr.replace(Ye,(nt,Fr)=>Fr.replace(/([^:]*)(:*)(.*)/,(At,Gi,lt,ri)=>Gi+Ds+lt+ri)).replace(Q,Ds+" ")}return Ht+" "+Lr})(hn,Ne,be);else{var Wn=hn.replace(Q,"");if(Wn.length>0){var Er=Wn.match(/([^:]*)(:*)(.*)/);Er&&(Xe=Er[1]+Re+Er[2]+Er[3])}}return Xe},je=(hn=>{var Xe=[],Wn=0;return{content:(hn=hn.replace(/(\[[^\]]*\])/g,(Er,Lr)=>{var Ht="__ph-".concat(Wn,"__");return Xe.push(Lr),Wn++,Ht})).replace(/(:nth-[-\w]+)(\([^)]+\))/g,(Er,Lr,Ht)=>{var fn="__ph-".concat(Wn,"__");return Xe.push(Ht),Wn++,Lr+fn}),placeholders:Xe}})(de),tt="",_t=0,Ce=/( |>|\+|~(?!=))\s*/g,We=!((de=je.content).indexOf("-shadowcsshost-no-combinator")>-1);null!==(He=Ce.exec(de));){var Pn=He[1],Zt=de.slice(_t,He.index).trim(),On=(We=We||Zt.indexOf("-shadowcsshost-no-combinator")>-1)?ke(Zt):Zt;tt+="".concat(On," ").concat(Pn," "),_t=Ce.lastIndex}var Cn,Kt=de.substring(_t);return tt+=(We=We||Kt.indexOf("-shadowcsshost-no-combinator")>-1)?ke(Kt):Kt,Cn=je.placeholders,tt.replace(/__ph-(\d+)__/g,(hn,Xe)=>Cn[+Xe])})(Zt,Ce,We).trim():Zt.trim()).join(", ")):(ke.selector.startsWith("@media")||ke.selector.startsWith("@supports")||ke.selector.startsWith("@page")||ke.selector.startsWith("@document"))&&(tt=zn(ke.content,Ne,be,He)),{selector:je.replace(/\s{2,}/g," ").trim(),content:tt}}),dr=(de,Ne,be)=>{var He=Ne+"-h",Re=Ne+"-s",ke=de.match(Qe)||[];de=de.replace(dn,"");var je=[];if(be){var tt=Ce=>{var We="/*!@___".concat(je.length,"___*/"),Pn="/*!@".concat(Ce.selector,"*/");return je.push({placeholder:We,comment:Pn}),Ce.selector=We+Ce.selector,Ce};de=se(de,Ce=>"@"!==Ce.selector[0]?tt(Ce):((Ce.selector.startsWith("@media")||Ce.selector.startsWith("@supports")||Ce.selector.startsWith("@page")||Ce.selector.startsWith("@document"))&&(Ce.content=se(Ce.content,tt)),Ce))}var _t=((de,Ne,be,He)=>{var je,ke=((je,tt)=>{var _t="."+tt+" > ",Ce=[];return je=je.replace(Se,(...We)=>{if(We[2]){for(var Pn=We[2].trim(),On=_t+Pn+We[3],Cn="",Kt=We[4]-1;Kt>=0;Kt--){var hn=We[5][Kt];if("}"===hn||","===hn)break;Cn=hn+Cn}var Xe=Cn+On,Wn="".concat(Cn.trimRight()).concat(On.trim());if(Xe.trim()!==Wn.trim()){var Er="".concat(Wn,", ").concat(Xe);Ce.push({orgSelector:Xe,updatedSelector:Er})}return On}return"-shadowcsshost-no-combinator"+We[3]}),{selectors:Ce,cssText:je}})(de=(je=>Ge(je,Ae,sn))((je=de=de.replace(vt,"-shadowcsscontext").replace(ae,"-shadowcsshost").replace(St,"-shadowcssslotted"),de=Ge(je,K,It))),He);return de=(je=>ee.reduce((tt,_t)=>tt.replace(_t," "),je))(de=ke.cssText),Ne&&(de=zn(de,Ne,be,He)),{cssText:(de=(de=de.replace(/-shadowcsshost-no-combinator/g,".".concat(be))).replace(/>\s*\*\s+([^{, ]+)/gm," $1 ")).trim(),slottedSelectors:ke.selectors}})(de,Ne,He,Re);return de=[_t.cssText,...ke].join("\n"),be&&je.forEach(({placeholder:Ce,comment:We})=>{de=de.replace(Ce,We)}),_t.slottedSelectors.forEach(Ce=>{de=de.replace(Ce.orgSelector,Ce.updatedSelector)}),de}},44:function(nn,Oe){var ue;ue=function(){return this}();try{ue=ue||new Function("return this")()}catch{"object"==typeof window&&(ue=window)}nn.exports=ue}})}},nn=>{nn(nn.s=204)}]);